lbry-desktop/flow-typed/notification.js

44 lines
882 B
JavaScript
Raw Normal View History

2020-07-23 16:22:57 +02:00
// @flow
declare type WebNotification = {
active_at: string,
created_at: string,
id: number,
is_app_readable: boolean,
is_device_notified: boolean,
is_emailed: boolean,
is_read: boolean,
2020-08-21 21:44:54 +02:00
is_seen: boolean,
2020-07-23 16:22:57 +02:00
notification_parameters: {
device: {
analytics_label: string,
image_url: string,
is_data_only: boolean,
name: string,
placeholders: ?string,
target: string,
text: string,
title: string,
type: string,
},
dynamic: {
comment_author: string,
2020-09-08 22:56:48 +02:00
reply_author: string,
hash: string,
claim_title: string,
2020-08-21 21:44:54 +02:00
comment?: string,
2020-11-02 17:51:08 +01:00
channel_url: string,
2020-07-23 16:22:57 +02:00
},
email: {},
},
notification_rule: string,
type: string,
updated_at: string,
user_id: number,
group_count?: number,
2020-07-23 16:22:57 +02:00
};
declare type NotificationCategory = {
name: string,
types: ?Array<string>,
};