@dereekb/firebase-server 12.4.0 → 12.4.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,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [12.4.1](https://github.com/dereekb/dbx-components/compare/v12.4.0-dev...v12.4.1) (2025-09-09)
6
+
7
+
8
+
5
9
  # [12.4.0](https://github.com/dereekb/dbx-components/compare/v12.3.12-dev-dev...v12.4.0) (2025-08-30)
6
10
 
7
11
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/mailgun",
3
- "version": "12.4.0",
3
+ "version": "12.4.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.4.0",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "main": "./src/index.js"
@@ -1,6 +1,7 @@
1
- import { CreateNotificationDocumentPairResult, NotificationDocument, SendNotificationResult } from '@dereekb/firebase';
1
+ import { CreateNotificationDocumentPairResult, NotificationDocument, SendNotificationParams, SendNotificationResult } from '@dereekb/firebase';
2
2
  import { NotificationServerActions } from './notification.action.server';
3
3
  import { Abstract, Provider } from '@nestjs/common';
4
+ export type NotificationExpediteServiceSendNotificationOptions = Pick<SendNotificationParams, 'ignoreSendAtThrottle' | 'throwErrorIfSent'>;
4
5
  /**
5
6
  * Interface for a service that allows access to a NotificationServerActions instance and "expediting" the sending of notification(s) that should be emitted immediately for timeliness.
6
7
  *
@@ -14,7 +15,7 @@ export declare abstract class NotificationExpediteService {
14
15
  /**
15
16
  * Attempts to immediately send/run the input notification document.
16
17
  */
17
- abstract sendNotification(notificationDocument: NotificationDocument): Promise<SendNotificationResult>;
18
+ abstract sendNotification(notificationDocument: NotificationDocument, options?: NotificationExpediteServiceSendNotificationOptions): Promise<SendNotificationResult>;
18
19
  /**
19
20
  * Creates a new NotificationExpediteServiceInstance.
20
21
  */
@@ -41,7 +42,7 @@ export interface NotificationExpediteServiceInstance {
41
42
  /**
42
43
  * Attempts to send all the queued notifications.
43
44
  */
44
- send(): Promise<SendNotificationResult[]>;
45
+ send(options?: NotificationExpediteServiceSendNotificationOptions): Promise<SendNotificationResult[]>;
45
46
  }
46
47
  /**
47
48
  * Creates a new NotificationExpediteServiceInstance with the input NotificationExpediteService.
@@ -74,7 +75,7 @@ export declare class MutableNotificationExpediteService implements NotificationE
74
75
  * Sets the NotificationServerActions instance to use.
75
76
  */
76
77
  setNotificationServerActions(notificationServerActions: NotificationServerActions): void;
77
- sendNotification(notificationDocument: NotificationDocument): Promise<SendNotificationResult>;
78
+ sendNotification(notificationDocument: NotificationDocument, options?: NotificationExpediteServiceSendNotificationOptions): Promise<SendNotificationResult>;
78
79
  expediteInstance(): NotificationExpediteServiceInstance;
79
80
  }
80
81
  /**
@@ -38,8 +38,8 @@ function notificationExpediteServiceInstance(notificationExpediteService) {
38
38
  }
39
39
  return enqueued;
40
40
  };
41
- const send = async () => {
42
- const results = await (0, util_1.runAsyncTasksForValues)(_documentsToSend, (x) => notificationExpediteService.sendNotification(x), {
41
+ const send = async (options) => {
42
+ const results = await (0, util_1.runAsyncTasksForValues)(_documentsToSend, (x) => notificationExpediteService.sendNotification(x, options), {
43
43
  nonConcurrentTaskKeyFactory: (x) => x.parent.id // only send one notification at a time for a notification box
44
44
  });
45
45
  return results;
@@ -74,8 +74,8 @@ let MutableNotificationExpediteService = class MutableNotificationExpediteServic
74
74
  setNotificationServerActions(notificationServerActions) {
75
75
  this._notificationServerActions = notificationServerActions;
76
76
  }
77
- async sendNotification(notificationDocument) {
78
- const sendNotification = await this._notificationServerActions.sendNotification({ key: (0, firebase_1.firestoreDummyKey)() });
77
+ async sendNotification(notificationDocument, options) {
78
+ const sendNotification = await this._notificationServerActions.sendNotification({ key: (0, firebase_1.firestoreDummyKey)(), ...options });
79
79
  return sendNotification(notificationDocument);
80
80
  }
81
81
  expediteInstance() {
@@ -1 +1 @@
1
- {"version":3,"file":"notification.expedite.service.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/model/src/lib/notification/notification.expedite.service.ts"],"names":[],"mappings":";;;AA4DA,kFAoCC;AAoDD,8FAQC;AAOD,4FAEC;;AArKD,gDAA0I;AAE1I,2CAAgE;AAChE,wCAAuD;AAEvD;;;;GAIG;AACH,MAAsB,2BAA2B;CAehD;AAfD,kEAeC;AA6BD;;;;;GAKG;AACH,SAAgB,mCAAmC,CAAC,2BAAwD;IAC1G,IAAI,gBAAgB,GAA2B,EAAE,CAAC;IAElD,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,gBAAgB,GAAG,EAAE,CAAC,CAAC,+BAA+B;IACxD,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,CAAC,oBAA0C,EAAE,EAAE;QAC7D,gBAAgB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC9C,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,CAAC,YAAkD,EAAE,EAAE;QACjF,IAAI,QAAQ,GAAG,KAAK,CAAC;QAErB,IAAI,YAAY,CAAC,oBAAoB,EAAE,CAAC;YACtC,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;YAC3C,QAAQ,GAAG,IAAI,CAAC;QAClB,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;QACtB,MAAM,OAAO,GAAG,MAAM,IAAA,6BAAsB,EAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE;YACrH,2BAA2B,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,8DAA8D;SAC/G,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;IAEF,OAAO;QACL,UAAU;QACV,OAAO;QACP,mBAAmB;QACnB,IAAI;KACL,CAAC;AACJ,CAAC;AASD,uBAAuB;AACvB;;;;;;;GAOG;AAEI,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IACrC,0BAA0B,CAA6B;IAE/D;;OAEG;IACH,4BAA4B;QAC1B,OAAO,IAAI,CAAC,0BAA0B,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,4BAA4B,CAAC,yBAAoD;QAC/E,IAAI,CAAC,0BAA0B,GAAG,yBAAyB,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,oBAA0C;QAC/D,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,IAAA,4BAAiB,GAAE,EAAE,CAAC,CAAC;QAC9G,OAAO,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAChD,CAAC;IAED,gBAAgB;QACd,OAAO,mCAAmC,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AAzBY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,mBAAU,GAAE;GACA,kCAAkC,CAyB9C;AAED,kBAAkB;AAClB;;;;GAIG;AACH,SAAgB,yCAAyC;IACvD,OAAO;QACL,kCAAkC;QAClC;YACE,OAAO,EAAE,2BAA2B;YACpC,WAAW,EAAE,kCAAkC;SAChD;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,wCAAwC;IACtD,OAAO,CAAC,2BAA2B,EAAE,kCAAkC,CAAC,CAAC;AAC3E,CAAC"}
1
+ {"version":3,"file":"notification.expedite.service.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/model/src/lib/notification/notification.expedite.service.ts"],"names":[],"mappings":";;;AA8DA,kFAoCC;AAoDD,8F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;IACrC,0BAA0B,CAA6B;IAE/D;;OAEG;IACH,4BAA4B;QAC1B,OAAO,IAAI,CAAC,0BAA0B,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,4BAA4B,CAAC,yBAAoD;QAC/E,IAAI,CAAC,0BAA0B,GAAG,yBAAyB,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,oBAA0C,EAAE,OAA4D;QAC7H,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,IAAA,4BAAiB,GAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;QAC1H,OAAO,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAChD,CAAC;IAED,gBAAgB;QACd,OAAO,mCAAmC,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AAzBY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,mBAAU,GAAE;GACA,kCAAkC,CAyB9C;AAED,kBAAkB;AAClB;;;;GAIG;AACH,SAAgB,yCAAyC;IACvD,OAAO;QACL,kCAAkC;QAClC;YACE,OAAO,EAAE,2BAA2B;YACpC,WAAW,EAAE,kCAAkC;SAChD;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,wCAAwC;IACtD,OAAO,CAAC,2BAA2B,EAAE,kCAAkC,CAAC,CAAC;AAC3E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server",
3
- "version": "12.4.0",
3
+ "version": "12.4.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
package/test/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/test",
3
- "version": "12.4.0",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "main": "./src/index.js"
package/zoho/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/zoho",
3
- "version": "12.4.0",
3
+ "version": "12.4.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",