-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
125 lines (123 loc) · 5.01 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
export type Subscription = {
id: string;
fcmToken?: string;
apnsToken?: string;
auth: string;
publicKey: string;
privateKey: string;
vapidKey: string;
};
export type Notification = {
title?: string;
titleLocKey?: LocKey;
titleLocArgs?: string[];
subtitle?: string;
subtitleLocKey?: LocKey;
subtitleLocArgs?: string[];
body?: string;
bodyLocKey?: LocKey;
bodyLocArgs?: string[];
image?: string;
payload?: Record<string, object | undefined>;
};
export type LocKey =
| "_notification.youWereFollowed"
| "_notification.youGotMention"
| "_notification.youGotReply"
| "_notification.youRenoted"
| "_notification.youGotQuote"
| "_notification.newNote"
| "_notification.youReceivedFollowRequest"
| "_notification.yourFollowRequestAccepted"
| "_notification.achievementEarned"
| "_notification.pollEnded"
| "_notification.testNotification"
| "_notification.notificationWillBeDisplayedLikeThis"
| "_notification.login"
| "_notification.exportOfAntennasCompleted"
| "_notification.exportOfBlockedUsersCompleted"
| "_notification.exportOfClipsCompleted"
| "_notification.exportOfCustomEmojisCompleted"
| "_notification.exportOfFavoritesCompleted"
| "_notification.exportOfFollowingCompleted"
| "_notification.exportOfMutedUsersCompleted"
| "_notification.exportOfNotesCompleted"
| "_notification.exportOfListsCompleted"
| "_achievements._types._notes1.title"
| "_achievements._types._notes10.title"
| "_achievements._types._notes100.title"
| "_achievements._types._notes500.title"
| "_achievements._types._notes1000.title"
| "_achievements._types._notes5000.title"
| "_achievements._types._notes10000.title"
| "_achievements._types._notes20000.title"
| "_achievements._types._notes30000.title"
| "_achievements._types._notes40000.title"
| "_achievements._types._notes50000.title"
| "_achievements._types._notes60000.title"
| "_achievements._types._notes70000.title"
| "_achievements._types._notes80000.title"
| "_achievements._types._notes90000.title"
| "_achievements._types._notes100000.title"
| "_achievements._types._login3.title"
| "_achievements._types._login7.title"
| "_achievements._types._login15.title"
| "_achievements._types._login30.title"
| "_achievements._types._login60.title"
| "_achievements._types._login100.title"
| "_achievements._types._login200.title"
| "_achievements._types._login300.title"
| "_achievements._types._login400.title"
| "_achievements._types._login500.title"
| "_achievements._types._login600.title"
| "_achievements._types._login700.title"
| "_achievements._types._login800.title"
| "_achievements._types._login900.title"
| "_achievements._types._login1000.title"
| "_achievements._types._noteClipped1.title"
| "_achievements._types._noteFavorited1.title"
| "_achievements._types._myNoteFavorited1.title"
| "_achievements._types._profileFilled.title"
| "_achievements._types._markedAsCat.title"
| "_achievements._types._following1.title"
| "_achievements._types._following10.title"
| "_achievements._types._following50.title"
| "_achievements._types._following100.title"
| "_achievements._types._following300.title"
| "_achievements._types._followers1.title"
| "_achievements._types._followers10.title"
| "_achievements._types._followers50.title"
| "_achievements._types._followers100.title"
| "_achievements._types._followers300.title"
| "_achievements._types._followers500.title"
| "_achievements._types._followers1000.title"
| "_achievements._types._collectAchievements30.title"
| "_achievements._types._viewAchievements3min.title"
| "_achievements._types._iLoveMisskey.title"
| "_achievements._types._foundTreasure.title"
| "_achievements._types._client30min.title"
| "_achievements._types._client60min.title"
| "_achievements._types._noteDeletedWithin1min.title"
| "_achievements._types._postedAtLateNight.title"
| "_achievements._types._postedAt0min0sec.title"
| "_achievements._types._selfQuote.title"
| "_achievements._types._htl20npm.title"
| "_achievements._types._viewInstanceChart.title"
| "_achievements._types._outputHelloWorldOnScratchpad.title"
| "_achievements._types._open3windows.title"
| "_achievements._types._driveFolderCircularReference.title"
| "_achievements._types._reactWithoutRead.title"
| "_achievements._types._clickedClickHere.title"
| "_achievements._types._justPlainLucky.title"
| "_achievements._types._setNameToSyuilo.title"
| "_achievements._types._passedSinceAccountCreated1.title"
| "_achievements._types._passedSinceAccountCreated2.title"
| "_achievements._types._passedSinceAccountCreated3.title"
| "_achievements._types._loggedInOnBirthday.title"
| "_achievements._types._loggedInOnNewYearsDay.title"
| "_achievements._types._cookieClicked.title"
| "_achievements._types._brainDiver.title"
| "_achievements._types._smashTestNotificationButton.title"
| "_achievements._types._tutorialCompleted.title"
| "_achievements._types._bubbleGameExplodingHead.title"
| "_achievements._types._bubbleGameDoubleExplodingHead.title";