@dereekb/firebase 13.0.6 → 13.1.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.
@@ -1,11 +1,12 @@
1
- import { TargetModelParams, type FirestoreModelKey, type FirebaseAuthUserId } from '../../common';
1
+ import { type Type } from 'arktype';
2
+ import { type TargetModelParams, type FirestoreModelKey, type FirebaseAuthUserId } from '../../common';
2
3
  import { type ModelFirebaseCrudFunction, type FirebaseFunctionTypeConfigMap, type ModelFirebaseCrudFunctionConfigMap, type ModelFirebaseFunctionMap } from '../../client';
3
4
  import { type E164PhoneNumber, type EmailAddress, type IndexNumber, type Maybe } from '@dereekb/util';
4
5
  import { type NotificationTypes } from './notification';
5
6
  import { type NotificationUserDefaultNotificationBoxRecipientConfig, type NotificationBoxRecipientTemplateConfigArrayEntry, NotificationBoxRecipientFlag } from './notification.config';
6
7
  import { type NotificationBoxId, type NotificationSummaryId, type NotificationTemplateType } from './notification.id';
7
8
  import { type NotificationSendEmailMessagesResult, type NotificationSendTextMessagesResult, type NotificationSendNotificationSummaryMessagesResult } from './notification.send';
8
- import { NotificationTaskServiceTaskHandlerCompletionType } from './notification.task';
9
+ import { type NotificationTaskServiceTaskHandlerCompletionType } from './notification.task';
9
10
  export declare const NOTIFICATION_RECIPIENT_NAME_MIN_LENGTH = 0;
10
11
  export declare const NOTIFICATION_RECIPIENT_NAME_MAX_LENGTH = 42;
11
12
  export declare const NOTIFICATION_SUBJECT_MIN_LENGTH = 2;
@@ -15,134 +16,98 @@ export declare const NOTIFICATION_MESSAGE_MAX_LENGTH = 1000;
15
16
  /**
16
17
  * Config entries are inserted, unless marked as remove.
17
18
  */
18
- export declare class NotificationBoxRecipientTemplateConfigArrayEntryParam implements NotificationBoxRecipientTemplateConfigArrayEntry {
19
- type: string;
20
- sd?: Maybe<boolean>;
21
- se?: Maybe<boolean>;
22
- st?: Maybe<boolean>;
23
- sp?: Maybe<boolean>;
24
- sn?: Maybe<boolean>;
25
- /**
26
- * If true, removes this configuration
27
- */
28
- remove?: Maybe<boolean>;
19
+ export interface NotificationBoxRecipientTemplateConfigArrayEntryParam extends NotificationBoxRecipientTemplateConfigArrayEntry {
20
+ readonly type: string;
21
+ readonly sd?: Maybe<boolean>;
22
+ readonly se?: Maybe<boolean>;
23
+ readonly st?: Maybe<boolean>;
24
+ readonly sp?: Maybe<boolean>;
25
+ readonly sn?: Maybe<boolean>;
26
+ readonly remove?: Maybe<boolean>;
29
27
  }
28
+ export declare const notificationBoxRecipientTemplateConfigArrayEntryParamType: import("arktype/internal/variants/object.ts").ObjectType<{
29
+ type: string;
30
+ sd?: boolean | null | undefined;
31
+ se?: boolean | null | undefined;
32
+ st?: boolean | null | undefined;
33
+ sp?: boolean | null | undefined;
34
+ sn?: boolean | null | undefined;
35
+ remove?: boolean | null | undefined;
36
+ }, {}>;
30
37
  /**
31
38
  * Used for creating a new NotificationUser for a user.
32
39
  */
33
- export declare class CreateNotificationUserParams {
34
- /**
35
- * UID of the user to create the NotificationUser for.
36
- */
37
- uid: FirebaseAuthUserId;
40
+ export interface CreateNotificationUserParams {
41
+ readonly uid: FirebaseAuthUserId;
38
42
  }
43
+ export declare const createNotificationUserParamsType: Type<CreateNotificationUserParams>;
39
44
  /**
40
45
  * Used for updating the global or default config on a NotificationUser.
41
46
  */
42
- export declare class UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams implements Omit<NotificationUserDefaultNotificationBoxRecipientConfig, 'c'> {
43
- /**
44
- * NotificationBox recipient to update. Is ignored if UID is provided and matches a user. Used for external recipients/users.
45
- */
46
- i?: Maybe<IndexNumber>;
47
- /**
48
- * Override email address
49
- */
50
- e?: Maybe<EmailAddress>;
51
- /**
52
- * Override phone number
53
- */
54
- t?: Maybe<E164PhoneNumber>;
55
- /**
56
- * Array of configs that correspond with "c"
57
- */
58
- configs?: Maybe<NotificationBoxRecipientTemplateConfigArrayEntryParam[]>;
59
- lk?: Maybe<boolean>;
60
- bk?: Maybe<boolean>;
61
- f?: Maybe<NotificationBoxRecipientFlag>;
47
+ export interface UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams extends Omit<NotificationUserDefaultNotificationBoxRecipientConfig, 'c'> {
48
+ readonly i?: Maybe<IndexNumber>;
49
+ readonly e?: Maybe<EmailAddress>;
50
+ readonly t?: Maybe<E164PhoneNumber>;
51
+ readonly configs?: Maybe<NotificationBoxRecipientTemplateConfigArrayEntryParam[]>;
52
+ readonly lk?: Maybe<boolean>;
53
+ readonly bk?: Maybe<boolean>;
54
+ readonly f?: Maybe<NotificationBoxRecipientFlag>;
62
55
  }
63
- export declare class UpdateNotificationBoxRecipientLikeParams {
64
- /**
65
- * Override email address
66
- */
67
- e?: Maybe<EmailAddress>;
68
- /**
69
- * Override phone number
70
- */
71
- t?: Maybe<E164PhoneNumber>;
72
- /**
73
- * Notification summary id
74
- */
75
- s?: Maybe<NotificationSummaryId>;
76
- /**
77
- * Array of configs
78
- */
79
- configs?: Maybe<NotificationBoxRecipientTemplateConfigArrayEntryParam[]>;
56
+ export declare const updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType: Type<UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams>;
57
+ export interface UpdateNotificationBoxRecipientLikeParams {
58
+ readonly e?: Maybe<EmailAddress>;
59
+ readonly t?: Maybe<E164PhoneNumber>;
60
+ readonly s?: Maybe<NotificationSummaryId>;
61
+ readonly configs?: Maybe<NotificationBoxRecipientTemplateConfigArrayEntryParam[]>;
80
62
  }
63
+ export declare const updateNotificationBoxRecipientLikeParamsType: Type<UpdateNotificationBoxRecipientLikeParams>;
81
64
  /**
82
65
  * Used for updating the target NotificationUserNotificationBoxRecipientConfig.
83
66
  */
84
- export declare class UpdateNotificationUserNotificationBoxRecipientParams extends UpdateNotificationBoxRecipientLikeParams {
85
- /**
86
- * NotificationBox config to update
87
- */
88
- nb: NotificationBoxId;
89
- rm?: Maybe<boolean>;
90
- lk?: Maybe<boolean>;
91
- bk?: Maybe<boolean>;
92
- f?: Maybe<NotificationBoxRecipientFlag>;
93
- /**
94
- * Whether or not to delete this configuration entirely.
95
- *
96
- * Will only delete if rm is true and ns is false. Is ignored otherwise.
97
- */
98
- deleteRemovedConfig?: Maybe<boolean>;
67
+ export interface UpdateNotificationUserNotificationBoxRecipientParams extends UpdateNotificationBoxRecipientLikeParams {
68
+ readonly nb: NotificationBoxId;
69
+ readonly rm?: Maybe<boolean>;
70
+ readonly lk?: Maybe<boolean>;
71
+ readonly bk?: Maybe<boolean>;
72
+ readonly f?: Maybe<NotificationBoxRecipientFlag>;
73
+ readonly deleteRemovedConfig?: Maybe<boolean>;
99
74
  }
75
+ export declare const updateNotificationUserNotificationBoxRecipientParamsType: Type<UpdateNotificationUserNotificationBoxRecipientParams>;
100
76
  /**
101
77
  * Used for updating the NotificationUser.
102
78
  */
103
- export declare class UpdateNotificationUserParams extends TargetModelParams {
104
- gc?: Maybe<UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams>;
105
- dc?: Maybe<UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams>;
106
- bc?: Maybe<UpdateNotificationUserNotificationBoxRecipientParams[]>;
107
- }
108
- export declare class ResyncNotificationUserParams extends TargetModelParams {
79
+ export interface UpdateNotificationUserParams extends TargetModelParams {
80
+ readonly gc?: Maybe<UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams>;
81
+ readonly dc?: Maybe<UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams>;
82
+ readonly bc?: Maybe<UpdateNotificationUserNotificationBoxRecipientParams[]>;
109
83
  }
84
+ export declare const updateNotificationUserParamsType: Type<UpdateNotificationUserParams>;
85
+ export type ResyncNotificationUserParams = TargetModelParams;
86
+ export declare const resyncNotificationUserParamsType: Type<ResyncNotificationUserParams>;
110
87
  export interface ResyncNotificationUserResult {
111
- /**
112
- * Total number of notification boxes updated.
113
- */
114
88
  readonly notificationBoxesUpdated: number;
115
89
  }
116
- export declare class ResyncAllNotificationUserParams {
90
+ export interface ResyncAllNotificationUserParams {
117
91
  }
92
+ export declare const resyncAllNotificationUserParamsType: Type<ResyncAllNotificationUserParams>;
118
93
  export interface ResyncAllNotificationUsersResult extends ResyncNotificationUserResult {
119
- /**
120
- * Total number of users updated.
121
- */
122
94
  readonly notificationUsersResynced: number;
123
95
  }
124
96
  /**
125
97
  * Used for creating a new NotificationSummary for a model.
126
98
  */
127
- export declare class CreateNotificationSummaryParams {
128
- /**
129
- * Model to create the NotificationSummary for.
130
- */
131
- model: FirestoreModelKey;
99
+ export interface CreateNotificationSummaryParams {
100
+ readonly model: FirestoreModelKey;
132
101
  }
102
+ export declare const createNotificationSummaryParamsType: Type<CreateNotificationSummaryParams>;
133
103
  /**
134
104
  * Used for updating the NotificationSummary.
135
105
  */
136
- export declare class UpdateNotificationSummaryParams extends TargetModelParams {
137
- /**
138
- * Updates the "rat" time to now.
139
- */
106
+ export interface UpdateNotificationSummaryParams extends TargetModelParams {
140
107
  readonly flagAllRead?: Maybe<boolean>;
141
- /**
142
- * Sets the "rat" time to the given date, or clears it.
143
- */
144
108
  readonly setReadAtTime?: Maybe<Date>;
145
109
  }
110
+ export declare const updateNotificationSummaryParamsType: Type<UpdateNotificationSummaryParams>;
146
111
  /**
147
112
  * Used for creating or initializing a new NotificationBox for a model.
148
113
  *
@@ -150,28 +115,29 @@ export declare class UpdateNotificationSummaryParams extends TargetModelParams {
150
115
  *
151
116
  * The preferred way is to create a NotificationBox through a Notification.
152
117
  */
153
- export declare class CreateNotificationBoxParams {
154
- model: FirestoreModelKey;
118
+ export interface CreateNotificationBoxParams {
119
+ readonly model: FirestoreModelKey;
155
120
  }
121
+ export declare const createNotificationBoxParamsType: Type<CreateNotificationBoxParams>;
156
122
  /**
157
123
  * Used for initializing an uninitialized model like NotificationBox or NotificationSummary.
158
124
  */
159
- export declare class InitializeNotificationModelParams extends TargetModelParams {
160
- /**
161
- * Whether or not to throw an error if the notification has already been sent or is being sent.
162
- */
163
- throwErrorIfAlreadyInitialized?: boolean;
125
+ export interface InitializeNotificationModelParams extends TargetModelParams {
126
+ readonly throwErrorIfAlreadyInitialized?: boolean;
164
127
  }
165
- export declare class InitializeAllApplicableNotificationBoxesParams {
128
+ export declare const initializeNotificationModelParamsType: Type<InitializeNotificationModelParams>;
129
+ export interface InitializeAllApplicableNotificationBoxesParams {
166
130
  }
131
+ export declare const initializeAllApplicableNotificationBoxesParamsType: Type<InitializeAllApplicableNotificationBoxesParams>;
167
132
  export interface InitializeAllApplicableNotificationBoxesResult {
168
133
  readonly notificationBoxesVisited: number;
169
134
  readonly notificationBoxesSucceeded: number;
170
135
  readonly notificationBoxesFailed: number;
171
136
  readonly notificationBoxesAlreadyInitialized: number;
172
137
  }
173
- export declare class InitializeAllApplicableNotificationSummariesParams {
138
+ export interface InitializeAllApplicableNotificationSummariesParams {
174
139
  }
140
+ export declare const initializeAllApplicableNotificationSummariesParamsType: Type<InitializeAllApplicableNotificationSummariesParams>;
175
141
  export interface InitializeAllApplicableNotificationSummariesResult {
176
142
  readonly notificationSummariesVisited: number;
177
143
  readonly notificationSummariesSucceeded: number;
@@ -181,244 +147,87 @@ export interface InitializeAllApplicableNotificationSummariesResult {
181
147
  /**
182
148
  * Used for updating the NotificationBox.
183
149
  */
184
- export declare class UpdateNotificationBoxParams extends TargetModelParams {
185
- }
150
+ export type UpdateNotificationBoxParams = TargetModelParams;
151
+ export declare const updateNotificationBoxParamsType: Type<UpdateNotificationBoxParams>;
186
152
  /**
187
153
  * Used to create/update a notification box recipient.
188
154
  */
189
- export declare class UpdateNotificationBoxRecipientParams extends UpdateNotificationBoxRecipientLikeParams implements TargetModelParams {
190
- /**
191
- * NotificationBox key to update.
192
- */
193
- key: FirestoreModelKey;
194
- /**
195
- * NotificationBox recipient to update. Is ignored if UID is provided and matches a user. Used for external recipients/users.
196
- */
197
- i?: Maybe<IndexNumber>;
198
- /**
199
- * Notification recipient to update by UID, if applicable.
200
- */
201
- uid?: Maybe<FirebaseAuthUserId>;
202
- /**
203
- * Whether or not to create the user if they currently do not exist. Defaults to false.
204
- */
205
- insert?: Maybe<boolean>;
206
- /**
207
- * Whether or not to enable/disable the recipient from recieving items from this box.
208
- */
209
- enabled?: Maybe<boolean>;
210
- /**
211
- * Whether or not to remove the user if they exist. Defaults to false.
212
- */
213
- remove?: Maybe<boolean>;
214
- /**
215
- * If true, the target recipient will have this NotificationBox added to their exclusion list.
216
- * If false, the target recipient will have this NotificationBox removed from their exclusion list.
217
- *
218
- * If set, the other functions are ignored.
219
- *
220
- * If targeting the user by the index, the NotificationBox must exist, and the user must have a uid, otherwise an error will be thrown.
221
- */
222
- setExclusion?: Maybe<boolean>;
155
+ export interface UpdateNotificationBoxRecipientParams extends UpdateNotificationBoxRecipientLikeParams, TargetModelParams {
156
+ readonly key: FirestoreModelKey;
157
+ readonly i?: Maybe<IndexNumber>;
158
+ readonly uid?: Maybe<FirebaseAuthUserId>;
159
+ readonly insert?: Maybe<boolean>;
160
+ readonly enabled?: Maybe<boolean>;
161
+ readonly remove?: Maybe<boolean>;
162
+ readonly setExclusion?: Maybe<boolean>;
223
163
  }
224
- export declare class NotificationRecipientParams {
225
- /**
226
- * User to send the notification to.
227
- */
228
- uid?: Maybe<FirebaseAuthUserId>;
229
- /**
230
- * Recipient Name
231
- */
232
- un?: Maybe<string>;
233
- /**
234
- * Email address
235
- */
236
- e?: Maybe<EmailAddress>;
237
- /**
238
- * Phone number
239
- */
240
- p?: Maybe<E164PhoneNumber>;
164
+ export declare const updateNotificationBoxRecipientParamsType: Type<UpdateNotificationBoxRecipientParams>;
165
+ export interface NotificationRecipientParams {
166
+ readonly uid?: Maybe<FirebaseAuthUserId>;
167
+ readonly un?: Maybe<string>;
168
+ readonly e?: Maybe<EmailAddress>;
169
+ readonly p?: Maybe<E164PhoneNumber>;
241
170
  }
171
+ export declare const notificationRecipientParamsType: Type<NotificationRecipientParams>;
242
172
  /**
243
173
  * Used for sending the notification immediately, if it has not already been sent.
244
174
  */
245
- export declare class SendNotificationParams extends TargetModelParams {
246
- /**
247
- * Whether or not to ignore the send at time. Defaults to false.
248
- *
249
- * If true, the send at time will be ignored and the notification will be sent immediately.
250
- */
251
- ignoreSendAtThrottle?: Maybe<boolean>;
252
- /**
253
- * Whether or not to throw an error if the notification has already been sent or is being sent.
254
- *
255
- * Defaults to false.
256
- */
257
- throwErrorIfSent?: Maybe<boolean>;
175
+ export interface SendNotificationParams extends TargetModelParams {
176
+ readonly ignoreSendAtThrottle?: Maybe<boolean>;
177
+ readonly throwErrorIfSent?: Maybe<boolean>;
258
178
  }
179
+ export declare const sendNotificationParamsType: Type<SendNotificationParams>;
259
180
  /**
260
181
  * Params class used for subscribing a system user to a NotificationBox for a model.
261
182
  */
262
- export declare abstract class AbstractSubscribeToNotificationBoxParams extends TargetModelParams {
263
- /**
264
- * Notification recipient to subscribe to notifications
265
- */
266
- uid: FirebaseAuthUserId;
183
+ export interface AbstractSubscribeToNotificationBoxParams extends TargetModelParams {
184
+ readonly uid: FirebaseAuthUserId;
267
185
  }
268
- export declare abstract class AbstractSubscribeOrUnsubscribeToNotificationBoxParams extends AbstractSubscribeToNotificationBoxParams {
269
- /**
270
- * If true, unsubscribes from the notification box instead.
271
- */
272
- unsubscribe?: Maybe<boolean>;
186
+ export declare const abstractSubscribeToNotificationBoxParamsType: Type<AbstractSubscribeToNotificationBoxParams>;
187
+ export interface AbstractSubscribeOrUnsubscribeToNotificationBoxParams extends AbstractSubscribeToNotificationBoxParams {
188
+ readonly unsubscribe?: Maybe<boolean>;
273
189
  }
190
+ export declare const abstractSubscribeOrUnsubscribeToNotificationBoxParamsType: Type<AbstractSubscribeOrUnsubscribeToNotificationBoxParams>;
274
191
  export interface SendNotificationResultOnSendCompleteResult<T = unknown> {
275
- /**
276
- * Value, if returned by the onSendSuccess callback.
277
- */
278
192
  readonly value?: T;
279
- /**
280
- * Error value if the onSendSuccess callback throws an error.
281
- */
282
193
  readonly error?: Maybe<unknown>;
283
194
  }
284
195
  export interface SendNotificationResult {
285
- /**
286
- * Attempted notification type
287
- */
288
196
  readonly notificationTemplateType: Maybe<NotificationTemplateType>;
289
- /**
290
- * Whether or not the notification was of a known type.
291
- */
292
197
  readonly isKnownTemplateType: Maybe<boolean>;
293
- /**
294
- * Whether or not the notification was of a task type.
295
- */
296
198
  readonly isNotificationTask: boolean;
297
- /**
298
- * True if the notification task is flagged as unique.
299
- */
300
199
  readonly isUniqueNotificationTask: boolean;
301
- /**
302
- * True if the notification task is flagged as unique and there was a conflict where a new notification task was created while the old one was mid-task.
303
- */
304
200
  readonly uniqueNotificationTaskConflict: boolean;
305
- /**
306
- * Whether or not the notification was of a configured type.
307
- */
308
201
  readonly isConfiguredTemplateType: Maybe<boolean>;
309
- /**
310
- * Whether or not the try was aborted due to being throttled.
311
- */
312
202
  readonly throttled: boolean;
313
- /**
314
- * Whether or not the run was successful.
315
- *
316
- * In cases where the Notification is set to SEND_IF_BOX_EXISTS and the box does not exist, this will return true.
317
- */
318
203
  readonly success: boolean;
319
- /**
320
- * Completion type for the notification task, if applicable.
321
- */
322
204
  readonly notificationTaskCompletionType?: Maybe<NotificationTaskServiceTaskHandlerCompletionType>;
323
- /**
324
- * Number of parts of the notification task that were run.
325
- *
326
- * Set only if the notification was a task.
327
- */
328
205
  readonly notificationTaskPartsRunCount?: Maybe<number>;
329
- /**
330
- * Whether or not the notification task was triggered by the looping protection.
331
- */
332
206
  readonly notificationTaskLoopingProtectionTriggered?: Maybe<boolean>;
333
- /**
334
- * Whether or not the notification was marked as done.
335
- *
336
- * May occur in cases where success is false, but the notification reached the max number of send attempts.
337
- */
338
207
  readonly notificationMarkedDone: boolean;
339
- /**
340
- * Whether or not the NotificationBox was created.
341
- */
342
208
  readonly createdBox: boolean;
343
- /**
344
- * Whether or not the NotificationBox exists but still needs initialization.
345
- */
346
209
  readonly notificationBoxNeedsInitialization: boolean;
347
- /**
348
- * Whether or not the notification was deleted.
349
- *
350
- * This typically only occurs when SEND_IF_BOX_EXISTS is set and the box does not exist, or the notification has reached the maximum number of send attempts.
351
- */
352
210
  readonly deletedNotification: boolean;
353
- /**
354
- * Whether or not the notification exists.
355
- */
356
211
  readonly exists: boolean;
357
- /**
358
- * Whether or not the NotificationBox exists.
359
- */
360
212
  readonly boxExists: boolean;
361
- /**
362
- * Whether or not the run was tried.
363
- */
364
213
  readonly tryRun: boolean;
365
- /**
366
- * Send emails result.
367
- *
368
- * Undefined if not attempted or a task notification.
369
- */
370
214
  readonly sendEmailsResult: Maybe<NotificationSendEmailMessagesResult>;
371
- /**
372
- *
373
- * Send texts result.
374
- *
375
- * Undefined if not attempted or a task notification.
376
- */
377
215
  readonly sendTextsResult: Maybe<NotificationSendTextMessagesResult>;
378
- /**
379
- * Send notification summaries result.
380
- *
381
- * Undefined if not attempted or a task notification.
382
- */
383
216
  readonly sendNotificationSummaryResult: Maybe<NotificationSendNotificationSummaryMessagesResult>;
384
- /**
385
- * Failed while attempting to loada the proper message function
386
- */
387
217
  readonly loadMessageFunctionFailure: boolean;
388
- /**
389
- * Failed while attempting to build a message
390
- */
391
218
  readonly buildMessageFailure: boolean;
392
- /**
393
- * Result of the onSendAttempted callback, if called.
394
- */
395
219
  readonly onSendAttemptedResult?: Maybe<SendNotificationResultOnSendCompleteResult>;
396
- /**
397
- * Result of the onSendSuccess callback, if called.
398
- */
399
220
  readonly onSendSuccessResult?: Maybe<SendNotificationResultOnSendCompleteResult>;
400
221
  }
401
222
  /**
402
223
  * Used for sending queued notifications in the system.
403
224
  */
404
- export declare class SendQueuedNotificationsParams {
405
- /**
406
- * The max number of send loops to run.
407
- *
408
- * No limit by default.
409
- */
225
+ export interface SendQueuedNotificationsParams {
410
226
  readonly maxSendNotificationLoops?: Maybe<number>;
411
- /**
412
- * The max number of parallel send tasks to run.
413
- *
414
- * Defaults to 5.
415
- */
416
227
  readonly maxParellelSendTasks?: Maybe<number>;
417
- /**
418
- * The threshold to use when to log a warning for an excessive of notification loops.
419
- */
420
228
  readonly sendNotificationLoopsTaskExcessThreshold?: Maybe<number>;
421
229
  }
230
+ export declare const sendQueuedNotificationsParamsType: Type<SendQueuedNotificationsParams>;
422
231
  export interface SendQueuedNotificationsResult extends Omit<SendNotificationResult, 'throttled' | 'isNotificationTask' | 'isUniqueNotificationTask' | 'notificationTaskCompletionType' | 'uniqueNotificationTaskConflict' | 'isConfiguredTemplateType' | 'isKnownTemplateType' | 'notificationTemplateType' | 'notificationMarkedDone' | 'deletedNotification' | 'createdBox' | 'success' | 'exists' | 'boxExists' | 'notificationBoxNeedsInitialization' | 'tryRun' | 'loadMessageFunctionFailure' | 'buildMessageFailure'> {
423
232
  readonly excessLoopsDetected: boolean;
424
233
  readonly notificationLoopCount: number;
@@ -433,12 +242,10 @@ export interface SendQueuedNotificationsResult extends Omit<SendNotificationResu
433
242
  /**
434
243
  * Used for sending queued notifications in the system.
435
244
  */
436
- export declare class CleanupSentNotificationsParams {
245
+ export interface CleanupSentNotificationsParams {
437
246
  }
247
+ export declare const cleanupSentNotificationsParamsType: Type<CleanupSentNotificationsParams>;
438
248
  export interface CleanupSentNotificationsResult {
439
- /**
440
- * Number of total updates. May include the same notification box more than once.
441
- */
442
249
  readonly notificationBoxesUpdatesCount: number;
443
250
  readonly notificationTasksDeletedCount: number;
444
251
  readonly notificationsDeleted: number;