@contractspec/module.notifications 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +121 -0
- package/dist/channels/index.d.ts +107 -0
- package/dist/channels/index.d.ts.map +1 -0
- package/dist/channels/index.js +127 -0
- package/dist/channels/index.js.map +1 -0
- package/dist/contracts/index.d.ts +638 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +433 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/entities/index.d.ts +183 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +254 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -0
- package/dist/notifications.feature.d.ts +12 -0
- package/dist/notifications.feature.d.ts.map +1 -0
- package/dist/notifications.feature.js +70 -0
- package/dist/notifications.feature.js.map +1 -0
- package/dist/templates/index.d.ts +92 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +202 -0
- package/dist/templates/index.js.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
2
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/contracts/index.d.ts
|
|
5
|
+
declare const NotificationFilterEnum: _contractspec_lib_schema0.EnumType<[string, string, string]>;
|
|
6
|
+
declare const NotificationModel: _contractspec_lib_schema0.SchemaModel<{
|
|
7
|
+
id: {
|
|
8
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
9
|
+
isOptional: false;
|
|
10
|
+
};
|
|
11
|
+
userId: {
|
|
12
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
13
|
+
isOptional: false;
|
|
14
|
+
};
|
|
15
|
+
title: {
|
|
16
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
17
|
+
isOptional: false;
|
|
18
|
+
};
|
|
19
|
+
body: {
|
|
20
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
21
|
+
isOptional: false;
|
|
22
|
+
};
|
|
23
|
+
type: {
|
|
24
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
25
|
+
isOptional: false;
|
|
26
|
+
};
|
|
27
|
+
status: {
|
|
28
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
29
|
+
isOptional: false;
|
|
30
|
+
};
|
|
31
|
+
channels: {
|
|
32
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
33
|
+
isArray: true;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
actionUrl: {
|
|
37
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
38
|
+
isOptional: true;
|
|
39
|
+
};
|
|
40
|
+
readAt: {
|
|
41
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
42
|
+
isOptional: true;
|
|
43
|
+
};
|
|
44
|
+
createdAt: {
|
|
45
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
declare const NotificationPreferenceModel: _contractspec_lib_schema0.SchemaModel<{
|
|
50
|
+
userId: {
|
|
51
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
52
|
+
isOptional: false;
|
|
53
|
+
};
|
|
54
|
+
globalEnabled: {
|
|
55
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
56
|
+
isOptional: false;
|
|
57
|
+
};
|
|
58
|
+
channelPreferences: {
|
|
59
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
typePreferences: {
|
|
63
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
quietHoursStart: {
|
|
67
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
68
|
+
isOptional: true;
|
|
69
|
+
};
|
|
70
|
+
quietHoursEnd: {
|
|
71
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
72
|
+
isOptional: true;
|
|
73
|
+
};
|
|
74
|
+
timezone: {
|
|
75
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
76
|
+
isOptional: false;
|
|
77
|
+
};
|
|
78
|
+
digestEnabled: {
|
|
79
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
82
|
+
digestFrequency: {
|
|
83
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
84
|
+
isOptional: true;
|
|
85
|
+
};
|
|
86
|
+
}>;
|
|
87
|
+
declare const SendNotificationInputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
88
|
+
userId: {
|
|
89
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
templateId: {
|
|
93
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
94
|
+
isOptional: true;
|
|
95
|
+
};
|
|
96
|
+
title: {
|
|
97
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
98
|
+
isOptional: true;
|
|
99
|
+
};
|
|
100
|
+
body: {
|
|
101
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
102
|
+
isOptional: true;
|
|
103
|
+
};
|
|
104
|
+
type: {
|
|
105
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
106
|
+
isOptional: false;
|
|
107
|
+
};
|
|
108
|
+
channels: {
|
|
109
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
110
|
+
isArray: true;
|
|
111
|
+
isOptional: true;
|
|
112
|
+
};
|
|
113
|
+
actionUrl: {
|
|
114
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
115
|
+
isOptional: true;
|
|
116
|
+
};
|
|
117
|
+
variables: {
|
|
118
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
119
|
+
isOptional: true;
|
|
120
|
+
};
|
|
121
|
+
metadata: {
|
|
122
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
123
|
+
isOptional: true;
|
|
124
|
+
};
|
|
125
|
+
}>;
|
|
126
|
+
declare const ListNotificationsInputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
127
|
+
status: {
|
|
128
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
|
|
129
|
+
isOptional: true;
|
|
130
|
+
};
|
|
131
|
+
type: {
|
|
132
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
133
|
+
isOptional: true;
|
|
134
|
+
};
|
|
135
|
+
limit: {
|
|
136
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
137
|
+
isOptional: true;
|
|
138
|
+
defaultValue: number;
|
|
139
|
+
};
|
|
140
|
+
offset: {
|
|
141
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
142
|
+
isOptional: true;
|
|
143
|
+
defaultValue: number;
|
|
144
|
+
};
|
|
145
|
+
}>;
|
|
146
|
+
declare const ListNotificationsOutputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
147
|
+
notifications: {
|
|
148
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
149
|
+
id: {
|
|
150
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
151
|
+
isOptional: false;
|
|
152
|
+
};
|
|
153
|
+
userId: {
|
|
154
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
155
|
+
isOptional: false;
|
|
156
|
+
};
|
|
157
|
+
title: {
|
|
158
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
159
|
+
isOptional: false;
|
|
160
|
+
};
|
|
161
|
+
body: {
|
|
162
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
163
|
+
isOptional: false;
|
|
164
|
+
};
|
|
165
|
+
type: {
|
|
166
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
167
|
+
isOptional: false;
|
|
168
|
+
};
|
|
169
|
+
status: {
|
|
170
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
171
|
+
isOptional: false;
|
|
172
|
+
};
|
|
173
|
+
channels: {
|
|
174
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
175
|
+
isArray: true;
|
|
176
|
+
isOptional: false;
|
|
177
|
+
};
|
|
178
|
+
actionUrl: {
|
|
179
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
180
|
+
isOptional: true;
|
|
181
|
+
};
|
|
182
|
+
readAt: {
|
|
183
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
184
|
+
isOptional: true;
|
|
185
|
+
};
|
|
186
|
+
createdAt: {
|
|
187
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
188
|
+
isOptional: false;
|
|
189
|
+
};
|
|
190
|
+
}>;
|
|
191
|
+
isArray: true;
|
|
192
|
+
isOptional: false;
|
|
193
|
+
};
|
|
194
|
+
total: {
|
|
195
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
196
|
+
isOptional: false;
|
|
197
|
+
};
|
|
198
|
+
unreadCount: {
|
|
199
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
200
|
+
isOptional: false;
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
203
|
+
declare const UpdatePreferencesInputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
204
|
+
globalEnabled: {
|
|
205
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
206
|
+
isOptional: true;
|
|
207
|
+
};
|
|
208
|
+
channelPreferences: {
|
|
209
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
210
|
+
isOptional: true;
|
|
211
|
+
};
|
|
212
|
+
typePreferences: {
|
|
213
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
214
|
+
isOptional: true;
|
|
215
|
+
};
|
|
216
|
+
quietHoursStart: {
|
|
217
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
218
|
+
isOptional: true;
|
|
219
|
+
};
|
|
220
|
+
quietHoursEnd: {
|
|
221
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
222
|
+
isOptional: true;
|
|
223
|
+
};
|
|
224
|
+
timezone: {
|
|
225
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
226
|
+
isOptional: true;
|
|
227
|
+
};
|
|
228
|
+
digestEnabled: {
|
|
229
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
230
|
+
isOptional: true;
|
|
231
|
+
};
|
|
232
|
+
digestFrequency: {
|
|
233
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
234
|
+
isOptional: true;
|
|
235
|
+
};
|
|
236
|
+
}>;
|
|
237
|
+
/**
|
|
238
|
+
* Send a notification.
|
|
239
|
+
*/
|
|
240
|
+
declare const SendNotificationContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
241
|
+
userId: {
|
|
242
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
243
|
+
isOptional: false;
|
|
244
|
+
};
|
|
245
|
+
templateId: {
|
|
246
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
247
|
+
isOptional: true;
|
|
248
|
+
};
|
|
249
|
+
title: {
|
|
250
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
251
|
+
isOptional: true;
|
|
252
|
+
};
|
|
253
|
+
body: {
|
|
254
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
255
|
+
isOptional: true;
|
|
256
|
+
};
|
|
257
|
+
type: {
|
|
258
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
259
|
+
isOptional: false;
|
|
260
|
+
};
|
|
261
|
+
channels: {
|
|
262
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
263
|
+
isArray: true;
|
|
264
|
+
isOptional: true;
|
|
265
|
+
};
|
|
266
|
+
actionUrl: {
|
|
267
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
268
|
+
isOptional: true;
|
|
269
|
+
};
|
|
270
|
+
variables: {
|
|
271
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
272
|
+
isOptional: true;
|
|
273
|
+
};
|
|
274
|
+
metadata: {
|
|
275
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
276
|
+
isOptional: true;
|
|
277
|
+
};
|
|
278
|
+
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
279
|
+
id: {
|
|
280
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
281
|
+
isOptional: false;
|
|
282
|
+
};
|
|
283
|
+
userId: {
|
|
284
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
285
|
+
isOptional: false;
|
|
286
|
+
};
|
|
287
|
+
title: {
|
|
288
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
289
|
+
isOptional: false;
|
|
290
|
+
};
|
|
291
|
+
body: {
|
|
292
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
293
|
+
isOptional: false;
|
|
294
|
+
};
|
|
295
|
+
type: {
|
|
296
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
297
|
+
isOptional: false;
|
|
298
|
+
};
|
|
299
|
+
status: {
|
|
300
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
301
|
+
isOptional: false;
|
|
302
|
+
};
|
|
303
|
+
channels: {
|
|
304
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
305
|
+
isArray: true;
|
|
306
|
+
isOptional: false;
|
|
307
|
+
};
|
|
308
|
+
actionUrl: {
|
|
309
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
310
|
+
isOptional: true;
|
|
311
|
+
};
|
|
312
|
+
readAt: {
|
|
313
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
314
|
+
isOptional: true;
|
|
315
|
+
};
|
|
316
|
+
createdAt: {
|
|
317
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
318
|
+
isOptional: false;
|
|
319
|
+
};
|
|
320
|
+
}>, {
|
|
321
|
+
key: string;
|
|
322
|
+
version: number;
|
|
323
|
+
when: string;
|
|
324
|
+
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
325
|
+
id: {
|
|
326
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
327
|
+
isOptional: false;
|
|
328
|
+
};
|
|
329
|
+
userId: {
|
|
330
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
331
|
+
isOptional: false;
|
|
332
|
+
};
|
|
333
|
+
title: {
|
|
334
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
335
|
+
isOptional: false;
|
|
336
|
+
};
|
|
337
|
+
body: {
|
|
338
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
339
|
+
isOptional: false;
|
|
340
|
+
};
|
|
341
|
+
type: {
|
|
342
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
343
|
+
isOptional: false;
|
|
344
|
+
};
|
|
345
|
+
status: {
|
|
346
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
347
|
+
isOptional: false;
|
|
348
|
+
};
|
|
349
|
+
channels: {
|
|
350
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
351
|
+
isArray: true;
|
|
352
|
+
isOptional: false;
|
|
353
|
+
};
|
|
354
|
+
actionUrl: {
|
|
355
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
356
|
+
isOptional: true;
|
|
357
|
+
};
|
|
358
|
+
readAt: {
|
|
359
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
360
|
+
isOptional: true;
|
|
361
|
+
};
|
|
362
|
+
createdAt: {
|
|
363
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
364
|
+
isOptional: false;
|
|
365
|
+
};
|
|
366
|
+
}>;
|
|
367
|
+
}[]>;
|
|
368
|
+
/**
|
|
369
|
+
* List notifications for current user.
|
|
370
|
+
*/
|
|
371
|
+
declare const ListNotificationsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
372
|
+
status: {
|
|
373
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
|
|
374
|
+
isOptional: true;
|
|
375
|
+
};
|
|
376
|
+
type: {
|
|
377
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
378
|
+
isOptional: true;
|
|
379
|
+
};
|
|
380
|
+
limit: {
|
|
381
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
382
|
+
isOptional: true;
|
|
383
|
+
defaultValue: number;
|
|
384
|
+
};
|
|
385
|
+
offset: {
|
|
386
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
387
|
+
isOptional: true;
|
|
388
|
+
defaultValue: number;
|
|
389
|
+
};
|
|
390
|
+
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
391
|
+
notifications: {
|
|
392
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
393
|
+
id: {
|
|
394
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
395
|
+
isOptional: false;
|
|
396
|
+
};
|
|
397
|
+
userId: {
|
|
398
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
399
|
+
isOptional: false;
|
|
400
|
+
};
|
|
401
|
+
title: {
|
|
402
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
403
|
+
isOptional: false;
|
|
404
|
+
};
|
|
405
|
+
body: {
|
|
406
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
407
|
+
isOptional: false;
|
|
408
|
+
};
|
|
409
|
+
type: {
|
|
410
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
411
|
+
isOptional: false;
|
|
412
|
+
};
|
|
413
|
+
status: {
|
|
414
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
415
|
+
isOptional: false;
|
|
416
|
+
};
|
|
417
|
+
channels: {
|
|
418
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
419
|
+
isArray: true;
|
|
420
|
+
isOptional: false;
|
|
421
|
+
};
|
|
422
|
+
actionUrl: {
|
|
423
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
424
|
+
isOptional: true;
|
|
425
|
+
};
|
|
426
|
+
readAt: {
|
|
427
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
428
|
+
isOptional: true;
|
|
429
|
+
};
|
|
430
|
+
createdAt: {
|
|
431
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
432
|
+
isOptional: false;
|
|
433
|
+
};
|
|
434
|
+
}>;
|
|
435
|
+
isArray: true;
|
|
436
|
+
isOptional: false;
|
|
437
|
+
};
|
|
438
|
+
total: {
|
|
439
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
440
|
+
isOptional: false;
|
|
441
|
+
};
|
|
442
|
+
unreadCount: {
|
|
443
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
444
|
+
isOptional: false;
|
|
445
|
+
};
|
|
446
|
+
}>, undefined>;
|
|
447
|
+
/**
|
|
448
|
+
* Mark notification as read.
|
|
449
|
+
*/
|
|
450
|
+
declare const MarkNotificationReadContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
451
|
+
notificationId: {
|
|
452
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
453
|
+
isOptional: false;
|
|
454
|
+
};
|
|
455
|
+
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
456
|
+
id: {
|
|
457
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
458
|
+
isOptional: false;
|
|
459
|
+
};
|
|
460
|
+
userId: {
|
|
461
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
462
|
+
isOptional: false;
|
|
463
|
+
};
|
|
464
|
+
title: {
|
|
465
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
466
|
+
isOptional: false;
|
|
467
|
+
};
|
|
468
|
+
body: {
|
|
469
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
470
|
+
isOptional: false;
|
|
471
|
+
};
|
|
472
|
+
type: {
|
|
473
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
474
|
+
isOptional: false;
|
|
475
|
+
};
|
|
476
|
+
status: {
|
|
477
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
478
|
+
isOptional: false;
|
|
479
|
+
};
|
|
480
|
+
channels: {
|
|
481
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
482
|
+
isArray: true;
|
|
483
|
+
isOptional: false;
|
|
484
|
+
};
|
|
485
|
+
actionUrl: {
|
|
486
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
487
|
+
isOptional: true;
|
|
488
|
+
};
|
|
489
|
+
readAt: {
|
|
490
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
491
|
+
isOptional: true;
|
|
492
|
+
};
|
|
493
|
+
createdAt: {
|
|
494
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
495
|
+
isOptional: false;
|
|
496
|
+
};
|
|
497
|
+
}>, undefined>;
|
|
498
|
+
/**
|
|
499
|
+
* Mark all notifications as read.
|
|
500
|
+
*/
|
|
501
|
+
declare const MarkAllNotificationsReadContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.AnySchemaModel, _contractspec_lib_schema0.SchemaModel<{
|
|
502
|
+
markedCount: {
|
|
503
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
504
|
+
isOptional: false;
|
|
505
|
+
};
|
|
506
|
+
}>, undefined>;
|
|
507
|
+
/**
|
|
508
|
+
* Get notification preferences.
|
|
509
|
+
*/
|
|
510
|
+
declare const GetNotificationPreferencesContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.AnySchemaModel, _contractspec_lib_schema0.SchemaModel<{
|
|
511
|
+
userId: {
|
|
512
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
513
|
+
isOptional: false;
|
|
514
|
+
};
|
|
515
|
+
globalEnabled: {
|
|
516
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
517
|
+
isOptional: false;
|
|
518
|
+
};
|
|
519
|
+
channelPreferences: {
|
|
520
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
521
|
+
isOptional: false;
|
|
522
|
+
};
|
|
523
|
+
typePreferences: {
|
|
524
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
525
|
+
isOptional: false;
|
|
526
|
+
};
|
|
527
|
+
quietHoursStart: {
|
|
528
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
529
|
+
isOptional: true;
|
|
530
|
+
};
|
|
531
|
+
quietHoursEnd: {
|
|
532
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
533
|
+
isOptional: true;
|
|
534
|
+
};
|
|
535
|
+
timezone: {
|
|
536
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
537
|
+
isOptional: false;
|
|
538
|
+
};
|
|
539
|
+
digestEnabled: {
|
|
540
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
541
|
+
isOptional: false;
|
|
542
|
+
};
|
|
543
|
+
digestFrequency: {
|
|
544
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
545
|
+
isOptional: true;
|
|
546
|
+
};
|
|
547
|
+
}>, undefined>;
|
|
548
|
+
/**
|
|
549
|
+
* Update notification preferences.
|
|
550
|
+
*/
|
|
551
|
+
declare const UpdateNotificationPreferencesContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
552
|
+
globalEnabled: {
|
|
553
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
554
|
+
isOptional: true;
|
|
555
|
+
};
|
|
556
|
+
channelPreferences: {
|
|
557
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
558
|
+
isOptional: true;
|
|
559
|
+
};
|
|
560
|
+
typePreferences: {
|
|
561
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
562
|
+
isOptional: true;
|
|
563
|
+
};
|
|
564
|
+
quietHoursStart: {
|
|
565
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
566
|
+
isOptional: true;
|
|
567
|
+
};
|
|
568
|
+
quietHoursEnd: {
|
|
569
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
570
|
+
isOptional: true;
|
|
571
|
+
};
|
|
572
|
+
timezone: {
|
|
573
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
574
|
+
isOptional: true;
|
|
575
|
+
};
|
|
576
|
+
digestEnabled: {
|
|
577
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
578
|
+
isOptional: true;
|
|
579
|
+
};
|
|
580
|
+
digestFrequency: {
|
|
581
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
582
|
+
isOptional: true;
|
|
583
|
+
};
|
|
584
|
+
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
585
|
+
userId: {
|
|
586
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
587
|
+
isOptional: false;
|
|
588
|
+
};
|
|
589
|
+
globalEnabled: {
|
|
590
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
591
|
+
isOptional: false;
|
|
592
|
+
};
|
|
593
|
+
channelPreferences: {
|
|
594
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
595
|
+
isOptional: false;
|
|
596
|
+
};
|
|
597
|
+
typePreferences: {
|
|
598
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
599
|
+
isOptional: false;
|
|
600
|
+
};
|
|
601
|
+
quietHoursStart: {
|
|
602
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
603
|
+
isOptional: true;
|
|
604
|
+
};
|
|
605
|
+
quietHoursEnd: {
|
|
606
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
607
|
+
isOptional: true;
|
|
608
|
+
};
|
|
609
|
+
timezone: {
|
|
610
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
611
|
+
isOptional: false;
|
|
612
|
+
};
|
|
613
|
+
digestEnabled: {
|
|
614
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
615
|
+
isOptional: false;
|
|
616
|
+
};
|
|
617
|
+
digestFrequency: {
|
|
618
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
619
|
+
isOptional: true;
|
|
620
|
+
};
|
|
621
|
+
}>, undefined>;
|
|
622
|
+
/**
|
|
623
|
+
* Delete a notification.
|
|
624
|
+
*/
|
|
625
|
+
declare const DeleteNotificationContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
626
|
+
notificationId: {
|
|
627
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
628
|
+
isOptional: false;
|
|
629
|
+
};
|
|
630
|
+
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
631
|
+
success: {
|
|
632
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
633
|
+
isOptional: false;
|
|
634
|
+
};
|
|
635
|
+
}>, undefined>;
|
|
636
|
+
//#endregion
|
|
637
|
+
export { DeleteNotificationContract, GetNotificationPreferencesContract, ListNotificationsContract, ListNotificationsInputModel, ListNotificationsOutputModel, MarkAllNotificationsReadContract, MarkNotificationReadContract, NotificationFilterEnum, NotificationModel, NotificationPreferenceModel, SendNotificationContract, SendNotificationInputModel, UpdateNotificationPreferencesContract, UpdatePreferencesInputModel };
|
|
638
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/contracts/index.ts"],"sourcesContent":[],"mappings":";;;;cA6Ba,wBAIX,yBAAA,CAJiC;cAQtB,6CAAiB;;UAmB5B,yBAAA,CAAA;IA3BW,UAAA,EAAA,KAAA;EAQA,CAAA;EAmBX,MAAA,EAAA;;;;;;;;;;;;;IAnB4B,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAqBjB,UAAA,EAAA,KAAA;EAuBX,CAAA;;;;;;;;;;;;;;EAvBsC,MAAA,EAAA;IAyB3B,IAAA,qCAkBX,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;cA3CW,uDAA2B;;UAuBtC,yBAAA,CAAA;;;;6CAEqC,CAAA,OAAA,EAAA,OAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAoB1B,CAAA;EAiBX,kBAAA,EAAA;;;;;IAjBsC,IAAA,qCAAA,OAAA,CAAA,MAAA,EAAA,OAAA,CAAA,QAAA,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA;IAmB3B,UAAA,EAAA,KAAA;EAYX,CAAA;;;;;;;;;;;;;;;;EAZuC,CAAA;EAc5B,e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