feat: お知らせの確認待機時間・優先順位機能
b7fd6bf33a835fd73c2a86eb007074d3680f6efd によるリワーク This reverts commiteeef3965b7This reverts commit04fefb2056This reverts commit576251200f
This commit is contained in:
parent
3c2b83c3ae
commit
6893e5d60b
27 changed files with 832 additions and 264 deletions
|
|
@ -33,6 +33,8 @@ type Announcement = {
|
|||
display: 'normal' | 'banner' | 'dialog';
|
||||
icon: 'info' | 'warning' | 'error' | 'success';
|
||||
needConfirmationToRead: boolean;
|
||||
closeDuration: number;
|
||||
displayOrder: number;
|
||||
forYou: boolean;
|
||||
isRead?: boolean;
|
||||
};
|
||||
|
|
@ -568,10 +570,9 @@ export type Endpoints = {
|
|||
};
|
||||
'announcements': {
|
||||
req: {
|
||||
isActive?: boolean;
|
||||
limit?: number;
|
||||
withUnreads?: boolean;
|
||||
sinceId?: Announcement['id'];
|
||||
untilId?: Announcement['id'];
|
||||
offset?: number;
|
||||
};
|
||||
res: Announcement[];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ export type Endpoints = {
|
|||
'admin/relays/remove': { req: TODO; res: TODO; };
|
||||
|
||||
// announcements
|
||||
'announcements': { req: { limit?: number; withUnreads?: boolean; sinceId?: Announcement['id']; untilId?: Announcement['id']; }; res: Announcement[]; };
|
||||
'announcements': { req: { isActive?: boolean; limit?: number; offset?: number; }; res: Announcement[]; };
|
||||
|
||||
// antennas
|
||||
'antennas/create': { req: TODO; res: Antenna; };
|
||||
|
|
|
|||
|
|
@ -422,6 +422,8 @@ export type Announcement = {
|
|||
display: 'normal' | 'banner' | 'dialog';
|
||||
icon: 'info' | 'warning' | 'error' | 'success';
|
||||
needConfirmationToRead: boolean;
|
||||
closeDuration: number;
|
||||
displayOrder: number;
|
||||
forYou: boolean;
|
||||
isRead?: boolean;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue