2020-05-26 07:33:55 +02:00
|
|
|
export const notificationTypes = ['follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote', 'receiveFollowRequest', 'followRequestAccepted', 'groupInvited', 'app'] as const;
|
|
|
|
|
|
|
|
export const noteVisibilities = ['public', 'home', 'followers', 'specified'] as const;
|
2020-07-27 06:34:20 +02:00
|
|
|
|
|
|
|
export const mutedNoteReasons = ['word', 'manual', 'spam', 'other'] as const;
|
2021-02-10 14:19:09 +01:00
|
|
|
|
|
|
|
export type pushNotificationData = {
|
2021-02-14 22:05:18 +01:00
|
|
|
type: 'notification' | 'unreadMessagingMessage' | 'readNotifications' | 'readAllMessagingMessagesOfARoom' | 'readAllNotifications' | 'readAllMessagingMessages';
|
|
|
|
body: {
|
|
|
|
[x: string]: any;
|
|
|
|
id?: string;
|
|
|
|
type?: typeof notificationTypes[number];
|
|
|
|
notificationIds?: string[];
|
|
|
|
user?: any;
|
|
|
|
userId?: string | null;
|
|
|
|
note?: any;
|
|
|
|
choice?: number;
|
|
|
|
reaction?: string;
|
|
|
|
invitation?: any;
|
|
|
|
};
|
|
|
|
userId: string;
|
2021-02-10 14:19:09 +01:00
|
|
|
};
|