@dereekb/firebase-server 12.2.1 → 12.3.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [12.3.1](https://github.com/dereekb/dbx-components/compare/v12.3.0-dev...v12.3.1) (2025-07-11)
6
+
7
+
8
+
9
+ # [12.3.0](https://github.com/dereekb/dbx-components/compare/v12.2.1-dev...v12.3.0) (2025-07-04)
10
+
11
+
12
+ ### Features
13
+
14
+ * notification tasks ([60e9959](https://github.com/dereekb/dbx-components/commit/60e995919b14d3262191cbeedc26a169c179ff24))
15
+
16
+
17
+
5
18
  ## [12.2.1](https://github.com/dereekb/dbx-components/compare/v12.2.0-dev...v12.2.1) (2025-07-02)
6
19
 
7
20
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/mailgun",
3
- "version": "12.2.1",
3
+ "version": "12.3.1",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "mailgun.js": "^12.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/model",
3
- "version": "12.2.1",
3
+ "version": "12.3.1",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "main": "./src/index.js"
@@ -7,5 +7,7 @@ export * from './notification.send.service.notificationsummary';
7
7
  export * from './notification.send.service.text';
8
8
  export * from './notification.send.service';
9
9
  export * from './notification.send';
10
+ export * from './notification.task.service';
11
+ export * from './notification.task.service.handler';
10
12
  export * from './notification.error';
11
13
  export * from './notification.util';
@@ -10,6 +10,8 @@ tslib_1.__exportStar(require("./notification.send.service.notificationsummary"),
10
10
  tslib_1.__exportStar(require("./notification.send.service.text"), exports);
11
11
  tslib_1.__exportStar(require("./notification.send.service"), exports);
12
12
  tslib_1.__exportStar(require("./notification.send"), exports);
13
+ tslib_1.__exportStar(require("./notification.task.service"), exports);
14
+ tslib_1.__exportStar(require("./notification.task.service.handler"), exports);
13
15
  tslib_1.__exportStar(require("./notification.error"), exports);
14
16
  tslib_1.__exportStar(require("./notification.util"), exports);
15
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/model/src/lib/notification/index.ts"],"names":[],"mappings":";;;AAAA,uEAA6C;AAC7C,4EAAkD;AAClD,wEAA8C;AAC9C,gEAAsC;AACtC,gEAAsC;AACtC,0FAAgE;AAChE,2EAAiD;AACjD,sEAA4C;AAC5C,8DAAoC;AACpC,+DAAqC;AACrC,8DAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/model/src/lib/notification/index.ts"],"names":[],"mappings":";;;AAAA,uEAA6C;AAC7C,4EAAkD;AAClD,wEAA8C;AAC9C,gEAAsC;AACtC,gEAAsC;AACtC,0FAAgE;AAChE,2EAAiD;AACjD,sEAA4C;AAC5C,8DAAoC;AACpC,sEAA4C;AAC5C,8EAAoD;AACpD,+DAAqC;AACrC,8DAAoC"}
@@ -5,6 +5,7 @@ import { type Maybe } from '@dereekb/util';
5
5
  import { type InjectionToken } from '@nestjs/common';
6
6
  import { type NotificationTemplateServiceRef } from './notification.config.service';
7
7
  import { type NotificationSendServiceRef } from './notification.send.service';
8
+ import { NotificationTaskServiceRef } from './notification.task.service';
8
9
  /**
9
10
  * Injection token for the BaseNotificationServerActionsContext
10
11
  */
@@ -15,7 +16,7 @@ export declare const BASE_NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN: InjectionTok
15
16
  export declare const NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN: InjectionToken;
16
17
  export interface BaseNotificationServerActionsContext extends FirebaseServerActionsContext, NotificationFirestoreCollections, FirebaseServerAuthServiceRef, FirestoreContextReference {
17
18
  }
18
- export interface NotificationServerActionsContext extends FirebaseServerActionsContext, NotificationFirestoreCollections, AppNotificationTemplateTypeInfoRecordServiceRef, FirebaseServerAuthServiceRef, NotificationTemplateServiceRef, NotificationSendServiceRef, FirestoreContextReference {
19
+ export interface NotificationServerActionsContext extends FirebaseServerActionsContext, NotificationFirestoreCollections, AppNotificationTemplateTypeInfoRecordServiceRef, FirebaseServerAuthServiceRef, NotificationTemplateServiceRef, NotificationSendServiceRef, NotificationTaskServiceRef, FirestoreContextReference {
19
20
  }
20
21
  export declare abstract class NotificationServerActions {
21
22
  abstract createNotificationUser(params: CreateNotificationUserParams): AsyncNotificationUserCreateAction<CreateNotificationUserParams>;
@@ -84,10 +85,14 @@ export declare function updateNotificationBoxRecipientInTransactionFactory(conte
84
85
  export declare function updateNotificationBoxRecipientFactory(context: NotificationServerActionsContext): import("@dereekb/model").TransformAndValidateFunctionResultFunction<UpdateNotificationBoxRecipientParams, (notificationBoxDocument: NotificationBoxDocument) => Promise<NotificationBoxDocument>, object, unknown>;
85
86
  export declare const UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY = 8;
86
87
  export declare const UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS = 1;
88
+ export declare const UNKNOWN_NOTIFICATION_TASK_TYPE_HOURS_DELAY = 8;
89
+ export declare const UNKNOWN_NOTIFICATION_TASK_TYPE_DELETE_AFTER_RETRY_ATTEMPTS = 1;
87
90
  export declare const KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY = 8;
88
91
  export declare const KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS = 5;
89
92
  export declare const NOTIFICATION_MAX_SEND_ATTEMPTS = 5;
90
93
  export declare const NOTIFICATION_BOX_NOT_INITIALIZED_DELAY_MINUTES = 8;
94
+ export declare const NOTIFICATION_TASK_TYPE_FAILURE_DELAY_HOURS = 3;
95
+ export declare const NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS: number;
91
96
  export declare function sendNotificationFactory(context: NotificationServerActionsContext): import("@dereekb/model").TransformAndValidateFunctionResultFunction<SendNotificationParams, (notificationDocument: NotificationDocument) => Promise<SendNotificationResult>, object, unknown>;
92
97
  export declare function sendQueuedNotificationsFactory(context: NotificationServerActionsContext): import("@dereekb/model").TransformAndValidateFunctionResultFunction<SendQueuedNotificationsParams, () => Promise<SendQueuedNotificationsResult>, object, unknown>;
93
98
  export declare function cleanupSentNotificationsFactory(context: NotificationServerActionsContext): import("@dereekb/model").TransformAndValidateFunctionResultFunction<CleanupSentNotificationsParams, () => Promise<CleanupSentNotificationsResult>, object, unknown>;