@doctocar/tooling 0.3.1-40 → 0.3.1-43

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 (24) hide show
  1. package/dist/firebase/firestore/enums/FirestoreCollections.enum.d.ts +2 -1
  2. package/dist/firebase/firestore/enums/FirestoreCollections.enum.js +2 -1
  3. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventChannelDeliveryRecordStatus.enum.d.ts +5 -0
  4. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventChannelDeliveryRecordStatus.enum.js +9 -0
  5. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryAttemptChannelStatus.enum.d.ts +5 -0
  6. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryAttemptChannelStatus.enum.js +9 -0
  7. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryAttemptStatus.enum.d.ts +5 -0
  8. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryAttemptStatus.enum.js +9 -0
  9. package/dist/firebase/firestore/enums/notificationEvent/index.d.ts +3 -1
  10. package/dist/firebase/firestore/enums/notificationEvent/index.js +3 -1
  11. package/dist/firebase/firestore/maps/FirestoreCollectionDocumentTypeMap.d.ts +3 -2
  12. package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventChannelDeliveryRecordDocument.type.d.ts +10 -0
  13. package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventChannelDeliveryRecordDocument.type.js +2 -0
  14. package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventDeliveryAttemptDocument.type.d.ts +22 -0
  15. package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventDeliveryAttemptDocument.type.js +2 -0
  16. package/dist/firebase/firestore/types/notificationEvent/index.d.ts +2 -1
  17. package/dist/firebase/firestore/types/notificationEvent/index.js +2 -1
  18. package/dist/firebase/firestore/utils/stubs/notificationEvent/firestoreNotificationEventChannelDeliveryRecordDocumentStub.d.ts +2 -0
  19. package/dist/firebase/firestore/utils/stubs/notificationEvent/firestoreNotificationEventChannelDeliveryRecordDocumentStub.js +15 -0
  20. package/dist/firebase/firestore/utils/stubs/notificationEvent/firestoreNotificationEventDeliveryAttemptDocumentStub.d.ts +2 -0
  21. package/dist/firebase/firestore/utils/stubs/notificationEvent/firestoreNotificationEventDeliveryAttemptDocumentStub.js +24 -0
  22. package/dist/firebase/firestore/utils/stubs/notificationEvent/index.d.ts +2 -1
  23. package/dist/firebase/firestore/utils/stubs/notificationEvent/index.js +2 -1
  24. package/package.json +1 -1
@@ -28,7 +28,8 @@ export declare enum FirestoreCollections {
28
28
  PROMO_CODES = "promo_codes",
29
29
  PROMO_CODE_REDEMPTIONS = "promo_code_redemptions",
30
30
  COUNTERS = "counters",
31
- NOTIFICATION_EVENT_DELIVERY_STATES = "notification_event_delivery_states",
31
+ NOTIFICATION_EVENT_CHANNEL_DELIVERY_RECORDS = "notification_event_channel_delivery_records",
32
+ NOTIFICATION_EVENT_DELIVERY_ATTEMPTS = "notification_event_delivery_attempts",
32
33
  WALLETS = "wallets",
33
34
  WALLETS_LEDGER_ENTRIES = "wallets_ledger_entries",
34
35
  WALLETS_WITHDRAWAL_INTENTS = "wallets_withdrawal_intents",
@@ -32,7 +32,8 @@ var FirestoreCollections;
32
32
  FirestoreCollections["PROMO_CODES"] = "promo_codes";
33
33
  FirestoreCollections["PROMO_CODE_REDEMPTIONS"] = "promo_code_redemptions";
34
34
  FirestoreCollections["COUNTERS"] = "counters";
35
- FirestoreCollections["NOTIFICATION_EVENT_DELIVERY_STATES"] = "notification_event_delivery_states";
35
+ FirestoreCollections["NOTIFICATION_EVENT_CHANNEL_DELIVERY_RECORDS"] = "notification_event_channel_delivery_records";
36
+ FirestoreCollections["NOTIFICATION_EVENT_DELIVERY_ATTEMPTS"] = "notification_event_delivery_attempts";
36
37
  FirestoreCollections["WALLETS"] = "wallets";
37
38
  FirestoreCollections["WALLETS_LEDGER_ENTRIES"] = "wallets_ledger_entries";
38
39
  FirestoreCollections["WALLETS_WITHDRAWAL_INTENTS"] = "wallets_withdrawal_intents";
@@ -0,0 +1,5 @@
1
+ export declare enum NotificationEventChannelDeliveryRecordStatus {
2
+ PENDING = "pending",
3
+ SENT = "sent",
4
+ FAILED = "failed"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationEventChannelDeliveryRecordStatus = void 0;
4
+ var NotificationEventChannelDeliveryRecordStatus;
5
+ (function (NotificationEventChannelDeliveryRecordStatus) {
6
+ NotificationEventChannelDeliveryRecordStatus["PENDING"] = "pending";
7
+ NotificationEventChannelDeliveryRecordStatus["SENT"] = "sent";
8
+ NotificationEventChannelDeliveryRecordStatus["FAILED"] = "failed";
9
+ })(NotificationEventChannelDeliveryRecordStatus || (exports.NotificationEventChannelDeliveryRecordStatus = NotificationEventChannelDeliveryRecordStatus = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum NotificationEventDeliveryAttemptChannelStatus {
2
+ PROCESSING = "PROCESSING",
3
+ SUCCEEDED = "SUCCEEDED",
4
+ FAILED = "FAILED"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationEventDeliveryAttemptChannelStatus = void 0;
4
+ var NotificationEventDeliveryAttemptChannelStatus;
5
+ (function (NotificationEventDeliveryAttemptChannelStatus) {
6
+ NotificationEventDeliveryAttemptChannelStatus["PROCESSING"] = "PROCESSING";
7
+ NotificationEventDeliveryAttemptChannelStatus["SUCCEEDED"] = "SUCCEEDED";
8
+ NotificationEventDeliveryAttemptChannelStatus["FAILED"] = "FAILED";
9
+ })(NotificationEventDeliveryAttemptChannelStatus || (exports.NotificationEventDeliveryAttemptChannelStatus = NotificationEventDeliveryAttemptChannelStatus = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum NotificationEventDeliveryAttemptStatus {
2
+ PROCESSING = "PROCESSING",
3
+ SUCCEEDED = "SUCCEEDED",
4
+ FAILED = "FAILED"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationEventDeliveryAttemptStatus = void 0;
4
+ var NotificationEventDeliveryAttemptStatus;
5
+ (function (NotificationEventDeliveryAttemptStatus) {
6
+ NotificationEventDeliveryAttemptStatus["PROCESSING"] = "PROCESSING";
7
+ NotificationEventDeliveryAttemptStatus["SUCCEEDED"] = "SUCCEEDED";
8
+ NotificationEventDeliveryAttemptStatus["FAILED"] = "FAILED";
9
+ })(NotificationEventDeliveryAttemptStatus || (exports.NotificationEventDeliveryAttemptStatus = NotificationEventDeliveryAttemptStatus = {}));
@@ -1 +1,3 @@
1
- export * from "./NotificationEventDeliveryStateStatus.enum";
1
+ export * from "./NotificationEventChannelDeliveryRecordStatus.enum";
2
+ export * from "./NotificationEventDeliveryAttemptChannelStatus.enum";
3
+ export * from "./NotificationEventDeliveryAttemptStatus.enum";
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./NotificationEventDeliveryStateStatus.enum"), exports);
17
+ __exportStar(require("./NotificationEventChannelDeliveryRecordStatus.enum"), exports);
18
+ __exportStar(require("./NotificationEventDeliveryAttemptChannelStatus.enum"), exports);
19
+ __exportStar(require("./NotificationEventDeliveryAttemptStatus.enum"), exports);
@@ -1,5 +1,5 @@
1
1
  import { FirestoreCollections } from "../enums";
2
- import type { FirestoreBookedSlotDocument, FirestoreDailyMetricsDocument, FirestoreDebugPublicConfigDocument, FirestoreDeviceTokenDocument, FirestoreEmailsBlacklistDocument, FirestoreEmailsSoftBounceDocument, FirestoreEntityDocument, FirestoreEntityMemberDocument, FirestoreEntityMemberInviteDocument, FirestoreEntityUniqueKeyDocument, FirestoreFunctionsDeploymentRunsDocument, FirestoreGlobalMetricsDocument, FirestoreInvoiceCounterDocument, FirestoreMarketplaceFinancialReportsDocument, FirestoreMessageDocument, FirestoreNotificationEventDeliveryStateDocument, FirestoreNotificationEventsPublicConfigDocument, FirestoreOnTaskExecutionStateDocument, FirestoreOrderDocument, FirestoreOrderIssueDocument, FirestoreOrderRefundIntentDocument, FirestoreOrderReviewDocument, FirestoreOrdersPublicConfigDocument, FirestorePaymentIntentDocument, FirestorePlatformPublicConfigDocument, FirestorePricingPublicConfigDocument, FirestoreServiceProviderUserPublicDocument, FirestorePromoCodeDocument, FirestorePromoCodeRedemptionDocument, FirestoreRateLimitDocument, FirestoreServicesPublicConfigDocument, FirestoreSlotDocument, FirestoreUserDocument, FirestoreUserUploadRateLimitDocument, FirestoreVehicleDocument, FirestorePlatformBalancesDocument, FirestorePlatformBalancesLedgerEntryDocument, FirestoreWalletsDocument, FirestoreWalletsLedgerEntryDocument, FirestoreWalletsWithdrawalIntentsDocument } from "../types";
2
+ import type { FirestoreBookedSlotDocument, FirestoreDailyMetricsDocument, FirestoreDebugPublicConfigDocument, FirestoreDeviceTokenDocument, FirestoreEmailsBlacklistDocument, FirestoreEmailsSoftBounceDocument, FirestoreEntityDocument, FirestoreEntityMemberDocument, FirestoreEntityMemberInviteDocument, FirestoreEntityUniqueKeyDocument, FirestoreFunctionsDeploymentRunsDocument, FirestoreGlobalMetricsDocument, FirestoreInvoiceCounterDocument, FirestoreMarketplaceFinancialReportsDocument, FirestoreMessageDocument, FirestoreNotificationEventChannelDeliveryRecordDocument, FirestoreNotificationEventDeliveryAttemptDocument, FirestoreNotificationEventsPublicConfigDocument, FirestoreOnTaskExecutionStateDocument, FirestoreOrderDocument, FirestoreOrderIssueDocument, FirestoreOrderRefundIntentDocument, FirestoreOrderReviewDocument, FirestoreOrdersPublicConfigDocument, FirestorePaymentIntentDocument, FirestorePlatformPublicConfigDocument, FirestorePricingPublicConfigDocument, FirestoreServiceProviderUserPublicDocument, FirestorePromoCodeDocument, FirestorePromoCodeRedemptionDocument, FirestoreRateLimitDocument, FirestoreServicesPublicConfigDocument, FirestoreSlotDocument, FirestoreUserDocument, FirestoreUserUploadRateLimitDocument, FirestoreVehicleDocument, FirestorePlatformBalancesDocument, FirestorePlatformBalancesLedgerEntryDocument, FirestoreWalletsDocument, FirestoreWalletsLedgerEntryDocument, FirestoreWalletsWithdrawalIntentsDocument } from "../types";
3
3
  type FirestoreCollectionDocumentTypeMapBase = {
4
4
  [FirestoreCollections.USERS]: FirestoreUserDocument;
5
5
  [FirestoreCollections.DEVICE_TOKENS]: FirestoreDeviceTokenDocument;
@@ -31,7 +31,8 @@ type FirestoreCollectionDocumentTypeMapBase = {
31
31
  [FirestoreCollections.PROMO_CODES]: FirestorePromoCodeDocument;
32
32
  [FirestoreCollections.PROMO_CODE_REDEMPTIONS]: FirestorePromoCodeRedemptionDocument;
33
33
  [FirestoreCollections.COUNTERS]: FirestoreInvoiceCounterDocument;
34
- [FirestoreCollections.NOTIFICATION_EVENT_DELIVERY_STATES]: FirestoreNotificationEventDeliveryStateDocument;
34
+ [FirestoreCollections.NOTIFICATION_EVENT_CHANNEL_DELIVERY_RECORDS]: FirestoreNotificationEventChannelDeliveryRecordDocument;
35
+ [FirestoreCollections.NOTIFICATION_EVENT_DELIVERY_ATTEMPTS]: FirestoreNotificationEventDeliveryAttemptDocument;
35
36
  [FirestoreCollections.FUNCTIONS_DEPLOYMENT_RUNS]: FirestoreFunctionsDeploymentRunsDocument;
36
37
  [FirestoreCollections.MARKETPLACE_FINANCIAL_REPORTS]: FirestoreMarketplaceFinancialReportsDocument;
37
38
  [FirestoreCollections.ENTITIES]: FirestoreEntityDocument;
@@ -0,0 +1,10 @@
1
+ import type { NotificationEventChannelDeliveryRecordStatus } from "../../enums";
2
+ import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
3
+ export type FirestoreNotificationEventChannelDeliveryRecordDocument = {
4
+ createdAt: FirestoreTimestamp;
5
+ updatedAt: FirestoreTimestamp;
6
+ lastSentAt?: FirestoreTimestamp;
7
+ sentCount?: number;
8
+ status: NotificationEventChannelDeliveryRecordStatus;
9
+ ttlExpiration?: FirestoreTimestamp;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import type { NotificationEventDeliveryAttemptChannelStatus, NotificationEventDeliveryAttemptStatus } from "../../enums";
2
+ import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
3
+ export type FirestoreNotificationEventDeliveryAttemptDocument = {
4
+ createdAt: FirestoreTimestamp;
5
+ updatedAt: FirestoreTimestamp;
6
+ status: NotificationEventDeliveryAttemptStatus;
7
+ channels: {
8
+ email?: {
9
+ status: NotificationEventDeliveryAttemptChannelStatus;
10
+ completedAt?: FirestoreTimestamp;
11
+ };
12
+ push?: {
13
+ status: NotificationEventDeliveryAttemptChannelStatus;
14
+ completedAt?: FirestoreTimestamp;
15
+ };
16
+ sms?: {
17
+ status: NotificationEventDeliveryAttemptChannelStatus;
18
+ completedAt?: FirestoreTimestamp;
19
+ };
20
+ };
21
+ ttlExpiration?: FirestoreTimestamp;
22
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export * from "./FirestoreNotificationEventDeliveryStateDocument.type";
1
+ export * from "./FirestoreNotificationEventChannelDeliveryRecordDocument.type";
2
+ export * from "./FirestoreNotificationEventDeliveryAttemptDocument.type";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./FirestoreNotificationEventDeliveryStateDocument.type"), exports);
17
+ __exportStar(require("./FirestoreNotificationEventChannelDeliveryRecordDocument.type"), exports);
18
+ __exportStar(require("./FirestoreNotificationEventDeliveryAttemptDocument.type"), exports);
@@ -0,0 +1,2 @@
1
+ import type { FirestoreNotificationEventChannelDeliveryRecordDocument } from "../../../types";
2
+ export declare function firestoreNotificationEventChannelDeliveryRecordDocumentStub(overwrite?: Partial<FirestoreNotificationEventChannelDeliveryRecordDocument>): FirestoreNotificationEventChannelDeliveryRecordDocument;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firestoreNotificationEventChannelDeliveryRecordDocumentStub = firestoreNotificationEventChannelDeliveryRecordDocumentStub;
4
+ const enums_1 = require("../../../enums");
5
+ const firestoreTimestampStub_1 = require("../firestoreTimestampStub");
6
+ function firestoreNotificationEventChannelDeliveryRecordDocumentStub(overwrite = {}) {
7
+ return {
8
+ createdAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
9
+ updatedAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
10
+ lastSentAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
11
+ sentCount: 0,
12
+ status: enums_1.NotificationEventChannelDeliveryRecordStatus.PENDING,
13
+ ...overwrite,
14
+ };
15
+ }
@@ -0,0 +1,2 @@
1
+ import type { FirestoreNotificationEventDeliveryAttemptDocument } from "../../../types";
2
+ export declare function firestoreNotificationEventDeliveryAttemptDocumentStub(overwrite?: Partial<FirestoreNotificationEventDeliveryAttemptDocument>): FirestoreNotificationEventDeliveryAttemptDocument;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firestoreNotificationEventDeliveryAttemptDocumentStub = firestoreNotificationEventDeliveryAttemptDocumentStub;
4
+ const enums_1 = require("../../../enums");
5
+ const firestoreTimestampStub_1 = require("../firestoreTimestampStub");
6
+ function firestoreNotificationEventDeliveryAttemptDocumentStub(overwrite = {}) {
7
+ return {
8
+ createdAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
9
+ updatedAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
10
+ status: enums_1.NotificationEventDeliveryAttemptStatus.PROCESSING,
11
+ channels: {
12
+ email: {
13
+ status: enums_1.NotificationEventDeliveryAttemptChannelStatus.PROCESSING,
14
+ },
15
+ push: {
16
+ status: enums_1.NotificationEventDeliveryAttemptChannelStatus.PROCESSING,
17
+ },
18
+ sms: {
19
+ status: enums_1.NotificationEventDeliveryAttemptChannelStatus.PROCESSING,
20
+ },
21
+ },
22
+ ...overwrite,
23
+ };
24
+ }
@@ -1 +1,2 @@
1
- export * from "./firestoreNotificationEventDeliveryStateDocumentStub";
1
+ export * from "./firestoreNotificationEventChannelDeliveryRecordDocumentStub";
2
+ export * from "./firestoreNotificationEventDeliveryAttemptDocumentStub";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./firestoreNotificationEventDeliveryStateDocumentStub"), exports);
17
+ __exportStar(require("./firestoreNotificationEventChannelDeliveryRecordDocumentStub"), exports);
18
+ __exportStar(require("./firestoreNotificationEventDeliveryAttemptDocumentStub"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doctocar/tooling",
3
- "version": "0.3.1-40",
3
+ "version": "0.3.1-43",
4
4
  "description": "A set of tools for DoctoCar projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",