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