Mostly migrate pl-fe notifications to notification groups

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-11-03 00:18:29 +01:00
parent 40c0c7512d
commit fe5653cce9
11 changed files with 301 additions and 223 deletions

View File

@ -15,4 +15,17 @@ interface GetGroupedNotificationsParams extends PaginationParams {
include_filtered?: boolean;
}
export type { GetGroupedNotificationsParams };
interface GetUnreadNotificationGroupCountParams {
/** Maximum number of results to return. Defaults to 100 notifications. Max 1000 notifications. */
limit?: number;
/** Types of notifications that should count towards unread notifications. */
types?: Array<string>;
/** Types of notifications that should not count towards unread notifications. */
exclude_types?: Array<string>;
/** Only count unread notifications received from the specified account. */
account_id?: string;
/** Restrict which notification types can be grouped. Use this if there are notification types for which your client does not support grouping. If omitted, the server will group notifications of all types it supports (currently, `favourite`, `follow` and `reblog`). If you do not want any notification grouping, use GET /api/v1/notifications/unread_count instead. */
grouped_types?: Array<string>;
}
export type { GetGroupedNotificationsParams, GetUnreadNotificationGroupCountParams };

View File

@ -4,6 +4,7 @@ export * from './apps';
export * from './chats';
export * from './events';
export * from './filtering';
export * from './grouped-notifications';
export * from './groups';
export * from './instance';
export * from './interaction-requests';