@doctocar/tooling 0.3.1-4 → 0.3.1-5
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/dist/emails/types/entity/EntityVatVerificationFailedEmailData.type.d.ts +0 -1
- package/dist/firebase/firestore/enums/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/index.js +1 -0
- package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryStateStatus.enum.d.ts +5 -0
- package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryStateStatus.enum.js +9 -0
- package/dist/firebase/firestore/enums/notificationEvent/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/notificationEvent/index.js +17 -0
- package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventDeliveryStateDocument.type.d.ts +2 -1
- package/dist/firebase/firestore/utils/stubs/notificationEvent/firestoreNotificationEventDeliveryStateDocumentStub.js +2 -1
- package/dist/firebase/storage/utils/__tests__/buildStoragePeriodSlug.test.js +7 -0
- package/dist/gcp/pubsub/types/PubSubNotificationEventMessage.type.d.ts +1 -1
- package/package.json +1 -1
package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryStateStatus.enum.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationEventDeliveryStateStatus = void 0;
|
|
4
|
+
var NotificationEventDeliveryStateStatus;
|
|
5
|
+
(function (NotificationEventDeliveryStateStatus) {
|
|
6
|
+
NotificationEventDeliveryStateStatus["PENDING"] = "pending";
|
|
7
|
+
NotificationEventDeliveryStateStatus["SENT"] = "sent";
|
|
8
|
+
NotificationEventDeliveryStateStatus["FAILED"] = "failed";
|
|
9
|
+
})(NotificationEventDeliveryStateStatus || (exports.NotificationEventDeliveryStateStatus = NotificationEventDeliveryStateStatus = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NotificationEventDeliveryStateStatus.enum";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./NotificationEventDeliveryStateStatus.enum"), exports);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { NotificationEventDeliveryStateStatus } from "../../enums";
|
|
1
2
|
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
2
3
|
export type FirestoreNotificationEventDeliveryStateDocument = {
|
|
3
4
|
createdAt: FirestoreTimestamp;
|
|
4
5
|
updatedAt: FirestoreTimestamp;
|
|
5
6
|
lastSentAt?: FirestoreTimestamp;
|
|
6
7
|
sentCount?: number;
|
|
7
|
-
status:
|
|
8
|
+
status: NotificationEventDeliveryStateStatus;
|
|
8
9
|
ttlExpiration?: FirestoreTimestamp;
|
|
9
10
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.firestoreNotificationEventDeliveryStateDocumentStub = firestoreNotificationEventDeliveryStateDocumentStub;
|
|
4
|
+
const enums_1 = require("../../../enums");
|
|
4
5
|
const firestoreTimestampStub_1 = require("../firestoreTimestampStub");
|
|
5
6
|
function firestoreNotificationEventDeliveryStateDocumentStub(overwrite = {}) {
|
|
6
7
|
return {
|
|
@@ -8,7 +9,7 @@ function firestoreNotificationEventDeliveryStateDocumentStub(overwrite = {}) {
|
|
|
8
9
|
updatedAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
|
|
9
10
|
lastSentAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
|
|
10
11
|
sentCount: 0,
|
|
11
|
-
status:
|
|
12
|
+
status: enums_1.NotificationEventDeliveryStateStatus.PENDING,
|
|
12
13
|
...overwrite,
|
|
13
14
|
};
|
|
14
15
|
}
|
|
@@ -4,6 +4,13 @@ const luxon_1 = require("luxon");
|
|
|
4
4
|
const buildStoragePeriodSlug_1 = require("../buildStoragePeriodSlug");
|
|
5
5
|
const enums_1 = require("../enums");
|
|
6
6
|
describe("buildStoragePeriodSlug", () => {
|
|
7
|
+
beforeEach(() => {
|
|
8
|
+
jest.useFakeTimers();
|
|
9
|
+
jest.setSystemTime(new Date("2026-01-01T00:00:00"));
|
|
10
|
+
});
|
|
11
|
+
afterEach(() => {
|
|
12
|
+
jest.useRealTimers();
|
|
13
|
+
});
|
|
7
14
|
describe.each([
|
|
8
15
|
[
|
|
9
16
|
"should build monthly slug",
|
|
@@ -3,7 +3,7 @@ import type { NotificationEvent } from "../../../notifications";
|
|
|
3
3
|
export type PubSubNotificationEventMessage = {
|
|
4
4
|
orderId?: string;
|
|
5
5
|
orderIssueId?: string;
|
|
6
|
-
|
|
6
|
+
entityId?: string;
|
|
7
7
|
userId: string;
|
|
8
8
|
appName: AppsNames;
|
|
9
9
|
notificationEvent: NotificationEvent;
|