feat: お知らせの確認待機時間・優先順位機能

b7fd6bf33a835fd73c2a86eb007074d3680f6efd によるリワーク

This reverts commit eeef3965b7
This reverts commit 04fefb2056
This reverts commit 576251200f
This commit is contained in:
まっちゃとーにゅ
2023-08-19 04:48:28 +09:00
parent 3c2b83c3ae
commit 6893e5d60b
27 changed files with 832 additions and 264 deletions

View File

@@ -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[];
};

View File

@@ -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; };

View File

@@ -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;
};