@doctocar/tooling 0.3.1-3 → 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/enums/AWSSESEmailSenders.enum.d.ts +1 -1
- package/dist/emails/enums/AWSSESEmailSenders.enum.js +1 -1
- package/dist/emails/enums/AWSSESEmailsTemplatesNames.enum.d.ts +2 -3
- package/dist/emails/enums/AWSSESEmailsTemplatesNames.enum.js +3 -4
- package/dist/emails/maps/EmailTemplateDataMap.map.d.ts +3 -4
- package/dist/emails/types/customer/index.d.ts +0 -1
- package/dist/emails/types/customer/index.js +0 -1
- package/dist/emails/types/entity/EntityVatVerificationFailedEmailData.type.d.ts +4 -0
- package/dist/emails/types/entity/EntityVatVerificationSucceededEmailData.type.d.ts +3 -0
- package/dist/emails/types/entity/index.d.ts +2 -0
- package/dist/{notifications/pushNotifications/types/company → emails/types/entity}/index.js +2 -2
- package/dist/emails/types/index.d.ts +1 -1
- package/dist/emails/types/index.js +1 -1
- package/dist/errors/enums/cloudFunctions/customers/index.d.ts +0 -1
- package/dist/errors/enums/cloudFunctions/customers/index.js +0 -1
- package/dist/errors/enums/cloudFunctions/entities/CreateNewEntityErrorCodes.enum.d.ts +26 -0
- package/dist/errors/enums/cloudFunctions/entities/CreateNewEntityErrorCodes.enum.js +30 -0
- package/dist/errors/enums/cloudFunctions/entities/index.d.ts +1 -0
- package/dist/{emails/types/company → errors/enums/cloudFunctions/entities}/index.js +1 -2
- package/dist/errors/enums/cloudFunctions/index.d.ts +1 -0
- package/dist/errors/enums/cloudFunctions/index.js +1 -0
- package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.d.ts +1 -1
- package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.js +2 -1
- package/dist/firebase/cloudFunctions/maps/OnCallCloudFunctionsTypeMappings.map.d.ts +5 -5
- package/dist/firebase/cloudFunctions/types/entities/CreateNewEntityPayload.type.d.ts +16 -0
- package/dist/firebase/cloudFunctions/types/entities/CreateNewEntityRequestData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/entities/CreateNewEntityResponseData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/entities/index.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/entities/index.js +19 -0
- package/dist/firebase/cloudFunctions/types/index.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/index.js +1 -0
- package/dist/firebase/cloudFunctions/types/users/customers/index.d.ts +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/index.js +0 -2
- package/dist/firebase/firestore/enums/FirestoreCollections.enum.d.ts +2 -1
- package/dist/firebase/firestore/enums/FirestoreCollections.enum.js +1 -0
- package/dist/firebase/firestore/enums/entities/EntityRegistrationIdentifierVerificationSource.enum.d.ts +3 -0
- package/dist/firebase/firestore/enums/entities/EntityRegistrationIdentifierVerificationSource.enum.js +7 -0
- package/dist/firebase/firestore/enums/entities/EntityRegistrationIdentifierVerificationStatus.enum.d.ts +6 -0
- package/dist/firebase/firestore/enums/entities/EntityRegistrationIdentifierVerificationStatus.enum.js +10 -0
- package/dist/firebase/firestore/enums/entities/index.d.ts +2 -0
- package/dist/firebase/firestore/enums/entities/index.js +2 -0
- 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/maps/FirestoreCollectionDocumentTypeMap.d.ts +2 -1
- package/dist/firebase/firestore/types/company/FrenchCompanyRegistration.type.d.ts +1 -1
- package/dist/firebase/firestore/types/entities/EntityLegalDetails.type.d.ts +8 -1
- package/dist/firebase/firestore/types/entities/EntityLegalRepresentative.type.d.ts +2 -2
- package/dist/firebase/firestore/types/entities/index.d.ts +1 -1
- package/dist/firebase/firestore/types/entities/index.js +1 -1
- package/dist/firebase/firestore/types/entityUniqueKeys/FirestoreEntityUniqueKeyDocument.type.d.ts +6 -0
- package/dist/firebase/firestore/types/entityUniqueKeys/index.d.ts +1 -0
- package/dist/firebase/firestore/types/entityUniqueKeys/index.js +17 -0
- package/dist/firebase/firestore/types/index.d.ts +1 -0
- package/dist/firebase/firestore/types/index.js +1 -0
- package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventDeliveryStateDocument.type.d.ts +2 -1
- package/dist/firebase/firestore/types/paymentProviders/stripes/StripeConnectAccountSummary.type.d.ts +1 -0
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentCustomerInfos.type.d.ts +0 -7
- package/dist/firebase/firestore/utils/stubs/company/frenchCompanyRegistrationStub.js +2 -2
- package/dist/firebase/firestore/utils/stubs/configs/firestoreNotificationEventsPublicConfigDocumentStub.js +25 -32
- package/dist/firebase/firestore/utils/stubs/entityUniqueKeys/firestoreEntityUniqueKeyDocumentStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/entityUniqueKeys/firestoreEntityUniqueKeyDocumentStub.js +12 -0
- package/dist/firebase/firestore/utils/stubs/entityUniqueKeys/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/entityUniqueKeys/index.js +17 -0
- package/dist/firebase/firestore/utils/stubs/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/index.js +1 -0
- 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/enums/PubSubTopics.enum.d.ts +2 -1
- package/dist/gcp/pubsub/enums/PubSubTopics.enum.js +1 -0
- package/dist/gcp/pubsub/maps/PubSubTopicMessageMap.map.d.ts +2 -1
- package/dist/gcp/pubsub/types/PubSubNotificationEventMessage.type.d.ts +1 -1
- package/dist/gcp/pubsub/types/entities/PubSubEntityVatNumberVerificationRequestedMessage.type.d.ts +3 -0
- package/dist/gcp/pubsub/types/entities/index.d.ts +1 -0
- package/dist/gcp/pubsub/types/entities/index.js +17 -0
- package/dist/gcp/pubsub/types/index.d.ts +1 -0
- package/dist/gcp/pubsub/types/index.js +1 -0
- package/dist/gcp/pubsub/utils/stubs/entities/index.d.ts +1 -0
- package/dist/gcp/pubsub/utils/stubs/entities/index.js +17 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubEntityVatNumberVerificationRequestedMessageStub.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubEntityVatNumberVerificationRequestedMessageStub.js +9 -0
- package/dist/gcp/pubsub/utils/stubs/index.d.ts +1 -0
- package/dist/gcp/pubsub/utils/stubs/index.js +1 -0
- package/dist/notifications/enums/CustomerNotificationEventType.d.ts +1 -2
- package/dist/notifications/enums/CustomerNotificationEventType.js +0 -1
- package/dist/notifications/enums/EntityNotificationEventType.d.ts +4 -0
- package/dist/notifications/enums/EntityNotificationEventType.js +8 -0
- package/dist/notifications/enums/index.d.ts +1 -1
- package/dist/notifications/enums/index.js +1 -1
- package/dist/notifications/pushNotifications/enums/EntityPushNotificationType.d.ts +4 -0
- package/dist/notifications/pushNotifications/enums/EntityPushNotificationType.js +8 -0
- package/dist/notifications/pushNotifications/enums/index.d.ts +1 -1
- package/dist/notifications/pushNotifications/enums/index.js +1 -1
- package/dist/notifications/pushNotifications/maps/EntityPushNotificationDataMap.d.ts +9 -0
- package/dist/notifications/pushNotifications/maps/EntityPushNotificationDataMap.js +6 -0
- package/dist/notifications/pushNotifications/maps/index.d.ts +1 -0
- package/dist/notifications/pushNotifications/maps/index.js +1 -0
- package/dist/notifications/pushNotifications/types/PushNotificationDataMap.type.d.ts +2 -3
- package/dist/notifications/pushNotifications/types/entity/EntityVatVerificationFailedPushNotificationData.type.d.ts +4 -0
- package/dist/notifications/pushNotifications/types/entity/EntityVatVerificationSucceededPushNotificationData.type.d.ts +4 -0
- package/dist/notifications/pushNotifications/types/entity/index.d.ts +2 -0
- package/dist/notifications/pushNotifications/types/entity/index.js +18 -0
- package/dist/notifications/pushNotifications/types/index.d.ts +1 -1
- package/dist/notifications/pushNotifications/types/index.js +1 -1
- package/dist/notifications/types/NotificationEvent.type.d.ts +2 -2
- package/dist/utils/regex/__tests__/isValidCompanyLegalName.util.test.js +5 -0
- package/dist/utils/vat/__tests__/extractVatNumberAndCountryCode.test.js +39 -0
- package/dist/utils/vat/__tests__/{validateVATFormat.util.test.js → validateVatNumberFormat.test.js} +3 -3
- package/dist/utils/vat/extractVatNumberAndCountryCode.d.ts +4 -0
- package/dist/utils/vat/{extractVATNumber.util.js → extractVatNumberAndCountryCode.js} +2 -2
- package/dist/utils/vat/index.d.ts +2 -2
- package/dist/utils/vat/index.js +2 -2
- package/dist/utils/vat/types/{ValidateVATFormatArgs.type.d.ts → ValidateVatNumberFormatArgs.type.d.ts} +1 -1
- package/dist/utils/vat/types/ValidateVatNumberFormatArgs.type.js +2 -0
- package/dist/utils/vat/types/index.d.ts +1 -1
- package/dist/utils/vat/types/index.js +1 -1
- package/dist/utils/vat/validateVatNumberFormat.d.ts +2 -0
- package/dist/utils/vat/{validateVATFormat.util.js → validateVatNumberFormat.js} +2 -2
- package/package.json +1 -1
- package/dist/emails/types/company/CompanyVatRejectedEmailData.type.d.ts +0 -5
- package/dist/emails/types/company/CompanyVatVerifiedEmailData.type.d.ts +0 -3
- package/dist/emails/types/company/index.d.ts +0 -2
- package/dist/emails/types/customer/CustomerWelcomeEmailData.type.d.ts +0 -1
- package/dist/errors/enums/cloudFunctions/customers/ProcessCustomerUserOnboardingErrorCodes.enum.d.ts +0 -22
- package/dist/errors/enums/cloudFunctions/customers/ProcessCustomerUserOnboardingErrorCodes.enum.js +0 -26
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingRequestData.type.d.ts +0 -15
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingResponseData.type.d.ts +0 -1
- package/dist/notifications/enums/CompanyNotificationEventType.d.ts +0 -4
- package/dist/notifications/enums/CompanyNotificationEventType.js +0 -8
- package/dist/notifications/pushNotifications/enums/CompanyPushNotificationType.d.ts +0 -4
- package/dist/notifications/pushNotifications/enums/CompanyPushNotificationType.js +0 -8
- package/dist/notifications/pushNotifications/maps/CompanyPushNotificationDataMap.d.ts +0 -6
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationFailedPushNotificationData.type.d.ts +0 -4
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationSucceededPushNotificationData.type.d.ts +0 -4
- package/dist/notifications/pushNotifications/types/company/index.d.ts +0 -2
- package/dist/utils/vat/__tests__/extractVATNumber.util.test.js +0 -39
- package/dist/utils/vat/extractVATNumber.util.d.ts +0 -4
- package/dist/utils/vat/validateVATFormat.util.d.ts +0 -2
- /package/dist/emails/types/{company/CompanyVatRejectedEmailData.type.js → entity/EntityVatVerificationFailedEmailData.type.js} +0 -0
- /package/dist/emails/types/{company/CompanyVatVerifiedEmailData.type.js → entity/EntityVatVerificationSucceededEmailData.type.js} +0 -0
- /package/dist/{emails/types/customer/CustomerWelcomeEmailData.type.js → firebase/cloudFunctions/types/entities/CreateNewEntityPayload.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/customers/ProcessCustomerUserOnboardingRequestData.type.js → entities/CreateNewEntityRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/customers/ProcessCustomerUserOnboardingResponseData.type.js → entities/CreateNewEntityResponseData.type.js} +0 -0
- /package/dist/firebase/firestore/types/entities/{EntityRegistration.enum.d.ts → EntityRegistration.type.d.ts} +0 -0
- /package/dist/firebase/firestore/types/entities/{EntityRegistration.enum.js → EntityRegistration.type.js} +0 -0
- /package/dist/{notifications/pushNotifications/maps/CompanyPushNotificationDataMap.js → firebase/firestore/types/entityUniqueKeys/FirestoreEntityUniqueKeyDocument.type.js} +0 -0
- /package/dist/{notifications/pushNotifications/types/company/CompanyVatVerificationFailedPushNotificationData.type.js → gcp/pubsub/types/entities/PubSubEntityVatNumberVerificationRequestedMessage.type.js} +0 -0
- /package/dist/notifications/pushNotifications/types/{company/CompanyVatVerificationSucceededPushNotificationData.type.js → entity/EntityVatVerificationFailedPushNotificationData.type.js} +0 -0
- /package/dist/{utils/vat/types/ValidateVATFormatArgs.type.js → notifications/pushNotifications/types/entity/EntityVatVerificationSucceededPushNotificationData.type.js} +0 -0
- /package/dist/utils/vat/__tests__/{extractVATNumber.util.test.d.ts → extractVatNumberAndCountryCode.test.d.ts} +0 -0
- /package/dist/utils/vat/__tests__/{validateVATFormat.util.test.d.ts → validateVatNumberFormat.test.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FirestoreEntityUniqueKeyDocument.type";
|
|
@@ -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("./FirestoreEntityUniqueKeyDocument.type"), 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
|
};
|
package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentCustomerInfos.type.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { SupportedLocaleCodes } from "../../../../enums";
|
|
|
2
2
|
import type { CustomerAccountTypes } from "../../enums";
|
|
3
3
|
import type { CustomerCompanyDetails, LegalAddress } from "../company";
|
|
4
4
|
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
5
|
-
import type { FirestoreImageVariantSet } from "../image";
|
|
6
5
|
import type { TermsAndPolicy } from "../legal";
|
|
7
6
|
import type { CustomerInfosNotificationsPreferences } from "./CustomerInfosNotificationsPreferences.type";
|
|
8
7
|
export type FirestoreUserDocumentCustomerInfos = {
|
|
@@ -10,12 +9,6 @@ export type FirestoreUserDocumentCustomerInfos = {
|
|
|
10
9
|
stripe?: {
|
|
11
10
|
customerId?: string;
|
|
12
11
|
};
|
|
13
|
-
profile?: {
|
|
14
|
-
photo?: {
|
|
15
|
-
storagePaths: FirestoreImageVariantSet;
|
|
16
|
-
updatedAt: FirestoreTimestamp;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
12
|
preferredCommunicationLanguageLocale: SupportedLocaleCodes;
|
|
20
13
|
termsOfUse?: TermsAndPolicy;
|
|
21
14
|
privacyPolicy?: TermsAndPolicy;
|
|
@@ -5,8 +5,8 @@ const enums_1 = require("../../../../../enums");
|
|
|
5
5
|
function frenchCompanyRegistrationStub(overwrite = {}) {
|
|
6
6
|
return {
|
|
7
7
|
shareCapitalInEuros: 1_000,
|
|
8
|
-
siren: "
|
|
9
|
-
siretPrincipal: "
|
|
8
|
+
siren: "732829320",
|
|
9
|
+
siretPrincipal: "73282932000074",
|
|
10
10
|
rcsCity: enums_1.FrenchRcsCities.PARIS,
|
|
11
11
|
rneDepartment: enums_1.FrenchDepartments.PARIS,
|
|
12
12
|
rna: "W123004320",
|
|
@@ -13,6 +13,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
13
13
|
},
|
|
14
14
|
data: {
|
|
15
15
|
events: {
|
|
16
|
+
// Customer
|
|
16
17
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_UPCOMING_REMINDER]: {
|
|
17
18
|
enabled: true,
|
|
18
19
|
userConfigurableChannels: {},
|
|
@@ -73,7 +74,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
73
74
|
},
|
|
74
75
|
deliveryRules: {},
|
|
75
76
|
},
|
|
76
|
-
[notifications_1.
|
|
77
|
+
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_REVIEW_REQUESTED]: {
|
|
77
78
|
enabled: true,
|
|
78
79
|
userConfigurableChannels: {},
|
|
79
80
|
defaultChannels: {
|
|
@@ -83,7 +84,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
83
84
|
},
|
|
84
85
|
deliveryRules: {},
|
|
85
86
|
},
|
|
86
|
-
[notifications_1.
|
|
87
|
+
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION]: {
|
|
87
88
|
enabled: true,
|
|
88
89
|
userConfigurableChannels: {},
|
|
89
90
|
defaultChannels: {
|
|
@@ -93,7 +94,8 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
93
94
|
},
|
|
94
95
|
deliveryRules: {},
|
|
95
96
|
},
|
|
96
|
-
|
|
97
|
+
// Professional
|
|
98
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_UPCOMING_REMINDER]: {
|
|
97
99
|
enabled: true,
|
|
98
100
|
userConfigurableChannels: {},
|
|
99
101
|
defaultChannels: {
|
|
@@ -103,7 +105,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
103
105
|
},
|
|
104
106
|
deliveryRules: {},
|
|
105
107
|
},
|
|
106
|
-
[notifications_1.ProfessionalNotificationEventType.
|
|
108
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_CANCELED]: {
|
|
107
109
|
enabled: true,
|
|
108
110
|
userConfigurableChannels: {},
|
|
109
111
|
defaultChannels: {
|
|
@@ -113,7 +115,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
113
115
|
},
|
|
114
116
|
deliveryRules: {},
|
|
115
117
|
},
|
|
116
|
-
[notifications_1.ProfessionalNotificationEventType.
|
|
118
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_NEW_MESSAGE_RECEIVED]: {
|
|
117
119
|
enabled: true,
|
|
118
120
|
userConfigurableChannels: {},
|
|
119
121
|
defaultChannels: {
|
|
@@ -123,8 +125,8 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
123
125
|
},
|
|
124
126
|
deliveryRules: {},
|
|
125
127
|
},
|
|
126
|
-
[notifications_1.
|
|
127
|
-
enabled:
|
|
128
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_NEW_ORDER_RECEIVED]: {
|
|
129
|
+
enabled: true,
|
|
128
130
|
userConfigurableChannels: {},
|
|
129
131
|
defaultChannels: {
|
|
130
132
|
email: false,
|
|
@@ -133,8 +135,8 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
133
135
|
},
|
|
134
136
|
deliveryRules: {},
|
|
135
137
|
},
|
|
136
|
-
[notifications_1.ProfessionalNotificationEventType.
|
|
137
|
-
enabled:
|
|
138
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_COMPLETED_BY_PROFESSIONAL]: {
|
|
139
|
+
enabled: true,
|
|
138
140
|
userConfigurableChannels: {},
|
|
139
141
|
defaultChannels: {
|
|
140
142
|
email: false,
|
|
@@ -143,8 +145,8 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
143
145
|
},
|
|
144
146
|
deliveryRules: {},
|
|
145
147
|
},
|
|
146
|
-
[notifications_1.
|
|
147
|
-
enabled:
|
|
148
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_ISSUE_REPORTED_CONFIRMATION]: {
|
|
149
|
+
enabled: true,
|
|
148
150
|
userConfigurableChannels: {},
|
|
149
151
|
defaultChannels: {
|
|
150
152
|
email: false,
|
|
@@ -154,17 +156,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
154
156
|
deliveryRules: {},
|
|
155
157
|
},
|
|
156
158
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_WELCOME]: {
|
|
157
|
-
enabled:
|
|
158
|
-
userConfigurableChannels: {},
|
|
159
|
-
defaultChannels: {
|
|
160
|
-
email: false,
|
|
161
|
-
push: false,
|
|
162
|
-
sms: false,
|
|
163
|
-
},
|
|
164
|
-
deliveryRules: {},
|
|
165
|
-
},
|
|
166
|
-
[notifications_1.CompanyNotificationEventType.COMPANY_VAT_VERIFICATION_FAILED]: {
|
|
167
|
-
enabled: false,
|
|
159
|
+
enabled: true,
|
|
168
160
|
userConfigurableChannels: {},
|
|
169
161
|
defaultChannels: {
|
|
170
162
|
email: false,
|
|
@@ -173,8 +165,8 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
173
165
|
},
|
|
174
166
|
deliveryRules: {},
|
|
175
167
|
},
|
|
176
|
-
[notifications_1.
|
|
177
|
-
enabled:
|
|
168
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_IS_NOW_BOOKABLE]: {
|
|
169
|
+
enabled: true,
|
|
178
170
|
userConfigurableChannels: {},
|
|
179
171
|
defaultChannels: {
|
|
180
172
|
email: false,
|
|
@@ -183,8 +175,8 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
183
175
|
},
|
|
184
176
|
deliveryRules: {},
|
|
185
177
|
},
|
|
186
|
-
[notifications_1.ProfessionalNotificationEventType.
|
|
187
|
-
enabled:
|
|
178
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_IS_NOT_BOOKABLE_ANYMORE]: {
|
|
179
|
+
enabled: true,
|
|
188
180
|
userConfigurableChannels: {},
|
|
189
181
|
defaultChannels: {
|
|
190
182
|
email: false,
|
|
@@ -193,8 +185,8 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
193
185
|
},
|
|
194
186
|
deliveryRules: {},
|
|
195
187
|
},
|
|
196
|
-
[notifications_1.ProfessionalNotificationEventType.
|
|
197
|
-
enabled:
|
|
188
|
+
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ONBOARDING_COMPLETED]: {
|
|
189
|
+
enabled: true,
|
|
198
190
|
userConfigurableChannels: {},
|
|
199
191
|
defaultChannels: {
|
|
200
192
|
email: false,
|
|
@@ -203,8 +195,9 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
203
195
|
},
|
|
204
196
|
deliveryRules: {},
|
|
205
197
|
},
|
|
206
|
-
|
|
207
|
-
|
|
198
|
+
// Entity
|
|
199
|
+
[notifications_1.EntityNotificationEventType.ENTITY_VAT_VERIFICATION_FAILED]: {
|
|
200
|
+
enabled: true,
|
|
208
201
|
userConfigurableChannels: {},
|
|
209
202
|
defaultChannels: {
|
|
210
203
|
email: false,
|
|
@@ -213,8 +206,8 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
213
206
|
},
|
|
214
207
|
deliveryRules: {},
|
|
215
208
|
},
|
|
216
|
-
[notifications_1.
|
|
217
|
-
enabled:
|
|
209
|
+
[notifications_1.EntityNotificationEventType.ENTITY_VAT_VERIFICATION_SUCCEEDED]: {
|
|
210
|
+
enabled: true,
|
|
218
211
|
userConfigurableChannels: {},
|
|
219
212
|
defaultChannels: {
|
|
220
213
|
email: false,
|
package/dist/firebase/firestore/utils/stubs/entityUniqueKeys/firestoreEntityUniqueKeyDocumentStub.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.firestoreEntityUniqueKeyDocumentStub = firestoreEntityUniqueKeyDocumentStub;
|
|
4
|
+
const firestoreTimestampStub_1 = require("../firestoreTimestampStub");
|
|
5
|
+
function firestoreEntityUniqueKeyDocumentStub(overwrite = {}) {
|
|
6
|
+
return {
|
|
7
|
+
createdAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
|
|
8
|
+
updatedAt: (0, firestoreTimestampStub_1.firestoreTimestampStub)(),
|
|
9
|
+
entityId: "some-entity-id",
|
|
10
|
+
...overwrite,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./firestoreEntityUniqueKeyDocumentStub";
|
|
@@ -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("./firestoreEntityUniqueKeyDocumentStub"), exports);
|
|
@@ -42,3 +42,4 @@ __exportStar(require("./functionsDeploymentRuns"), exports);
|
|
|
42
42
|
__exportStar(require("./marketplaceFinancialReports"), exports);
|
|
43
43
|
__exportStar(require("./entities"), exports);
|
|
44
44
|
__exportStar(require("./entityMembers"), exports);
|
|
45
|
+
__exportStar(require("./entityUniqueKeys"), exports);
|
|
@@ -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",
|
|
@@ -20,5 +20,6 @@ export declare enum PubSubTopics {
|
|
|
20
20
|
FIRESTORE_USER_METRICS = "firestore-user-metrics",
|
|
21
21
|
AUTO_CANCEL_EXPIRED_CONFIRMED_ORDER = "auto-cancel-expired-confirmed-order",
|
|
22
22
|
DEFAULT_DLQ = "default-dead-letter-queue",
|
|
23
|
-
NOTIFICATION_EVENT = "notification-event"
|
|
23
|
+
NOTIFICATION_EVENT = "notification-event",
|
|
24
|
+
ENTITY_VAT_NUMBER_VERIFICATION_REQUESTED = "entity-vat-number-verification-requested"
|
|
24
25
|
}
|
|
@@ -25,4 +25,5 @@ var PubSubTopics;
|
|
|
25
25
|
PubSubTopics["AUTO_CANCEL_EXPIRED_CONFIRMED_ORDER"] = "auto-cancel-expired-confirmed-order";
|
|
26
26
|
PubSubTopics["DEFAULT_DLQ"] = "default-dead-letter-queue";
|
|
27
27
|
PubSubTopics["NOTIFICATION_EVENT"] = "notification-event";
|
|
28
|
+
PubSubTopics["ENTITY_VAT_NUMBER_VERIFICATION_REQUESTED"] = "entity-vat-number-verification-requested";
|
|
28
29
|
})(PubSubTopics || (exports.PubSubTopics = PubSubTopics = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PubSubTopics } from "../enums";
|
|
2
|
-
import type { PubSubAutoCancelConfirmedOrderMessage, PubSubAutoCompleteOrderAfterIssueReportingWindowMessage, PubSubBillingAlertsMessage, PubSubDefaultDlqMessage, PubSubFirestoreUserMetricsMessage, PubSubNotificationEventMessage, PubSubOrderCompletedMessage, PubSubOrderInvoicesReadyMessage, PubSubOrderIssueReportedMessage, PubSubOrderIssueStateRecomputeRequestedMessage, PubSubOrderOperationalStateShouldUpdateMessage, PubSubOrderPaymentCanceledMessage, PubSubOrderPaymentFailedMessage, PubSubOrderPaymentSucceededMessage, PubSubOrderStartedMessage, PubSubProcessWalletWithdrawalRequestMessage, PubSubServicesCompletedMessage, PubSubStripeConnectedAccountBalanceAvailableUpdatedMessage, PubSubStripeConnectedAccountUpdatedMessage, PubSubUserOrderReminderMessage, PubSubWalletWithdrawalFailedMessage, PubSubWalletWithdrawalSucceededMessage } from "../types";
|
|
2
|
+
import type { PubSubAutoCancelConfirmedOrderMessage, PubSubAutoCompleteOrderAfterIssueReportingWindowMessage, PubSubBillingAlertsMessage, PubSubDefaultDlqMessage, PubSubEntityVatNumberVerificationRequestedMessage, PubSubFirestoreUserMetricsMessage, PubSubNotificationEventMessage, PubSubOrderCompletedMessage, PubSubOrderInvoicesReadyMessage, PubSubOrderIssueReportedMessage, PubSubOrderIssueStateRecomputeRequestedMessage, PubSubOrderOperationalStateShouldUpdateMessage, PubSubOrderPaymentCanceledMessage, PubSubOrderPaymentFailedMessage, PubSubOrderPaymentSucceededMessage, PubSubOrderStartedMessage, PubSubProcessWalletWithdrawalRequestMessage, PubSubServicesCompletedMessage, PubSubStripeConnectedAccountBalanceAvailableUpdatedMessage, PubSubStripeConnectedAccountUpdatedMessage, PubSubUserOrderReminderMessage, PubSubWalletWithdrawalFailedMessage, PubSubWalletWithdrawalSucceededMessage } from "../types";
|
|
3
3
|
type PubSubTopicMessageMapBase = {
|
|
4
4
|
[PubSubTopics.BILLING_ALERTS]: PubSubBillingAlertsMessage;
|
|
5
5
|
[PubSubTopics.STRIPE_CONNECTED_ACCOUNT_UPDATED]: PubSubStripeConnectedAccountUpdatedMessage;
|
|
@@ -23,6 +23,7 @@ type PubSubTopicMessageMapBase = {
|
|
|
23
23
|
[PubSubTopics.ORDER_ISSUE_REPORTED]: PubSubOrderIssueReportedMessage;
|
|
24
24
|
[PubSubTopics.ORDER_ISSUES_STATE_RECOMPUTE_REQUESTED]: PubSubOrderIssueStateRecomputeRequestedMessage;
|
|
25
25
|
[PubSubTopics.DEFAULT_DLQ]: PubSubDefaultDlqMessage;
|
|
26
|
+
[PubSubTopics.ENTITY_VAT_NUMBER_VERIFICATION_REQUESTED]: PubSubEntityVatNumberVerificationRequestedMessage;
|
|
26
27
|
};
|
|
27
28
|
export type PubSubTopicMessageMap = {
|
|
28
29
|
[K in PubSubTopics]: PubSubTopicMessageMapBase[K];
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PubSubEntityVatNumberVerificationRequestedMessage.type";
|
|
@@ -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("./PubSubEntityVatNumberVerificationRequestedMessage.type"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./pubSubEntityVatNumberVerificationRequestedMessageStub";
|
|
@@ -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("./pubSubEntityVatNumberVerificationRequestedMessageStub"), exports);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { PubSubEntityVatNumberVerificationRequestedMessage } from "../../../types";
|
|
2
|
+
export declare function pubSubEntityVatNumberVerificationRequestedMessageStub(overwrite?: Partial<PubSubEntityVatNumberVerificationRequestedMessage>): PubSubEntityVatNumberVerificationRequestedMessage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pubSubEntityVatNumberVerificationRequestedMessageStub = pubSubEntityVatNumberVerificationRequestedMessageStub;
|
|
4
|
+
function pubSubEntityVatNumberVerificationRequestedMessageStub(overwrite = {}) {
|
|
5
|
+
return {
|
|
6
|
+
entityDocumentId: "entity-document-id",
|
|
7
|
+
...overwrite,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -13,3 +13,4 @@ export * from "./pubSubStripeConnectedAccountBalanceAvailableUpdatedMessageStub"
|
|
|
13
13
|
export * from "./wallets";
|
|
14
14
|
export * from "./pubSubOrderIssueReportedMessageStub";
|
|
15
15
|
export * from "./pubSubOrderIssueStateRecomputeRequestedMessageStub";
|
|
16
|
+
export * from "./entities";
|
|
@@ -29,3 +29,4 @@ __exportStar(require("./pubSubStripeConnectedAccountBalanceAvailableUpdatedMessa
|
|
|
29
29
|
__exportStar(require("./wallets"), exports);
|
|
30
30
|
__exportStar(require("./pubSubOrderIssueReportedMessageStub"), exports);
|
|
31
31
|
__exportStar(require("./pubSubOrderIssueStateRecomputeRequestedMessageStub"), exports);
|
|
32
|
+
__exportStar(require("./entities"), exports);
|
|
@@ -6,6 +6,5 @@ export declare enum CustomerNotificationEventType {
|
|
|
6
6
|
CUSTOMER_ORDER_COMPLETED_BY_PROFESSIONAL = "CUSTOMER_ORDER_COMPLETED_BY_PROFESSIONAL",
|
|
7
7
|
CUSTOMER_ORDER_CANCELED = "CUSTOMER_ORDER_CANCELED",
|
|
8
8
|
CUSTOMER_ORDER_NEW_MESSAGE_RECEIVED = "CUSTOMER_ORDER_NEW_MESSAGE_RECEIVED",
|
|
9
|
-
CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION = "CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION"
|
|
10
|
-
CUSTOMER_ONBOARDING_COMPLETED = "CUSTOMER_ONBOARDING_COMPLETED"
|
|
9
|
+
CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION = "CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION"
|
|
11
10
|
}
|
|
@@ -11,5 +11,4 @@ var CustomerNotificationEventType;
|
|
|
11
11
|
CustomerNotificationEventType["CUSTOMER_ORDER_CANCELED"] = "CUSTOMER_ORDER_CANCELED";
|
|
12
12
|
CustomerNotificationEventType["CUSTOMER_ORDER_NEW_MESSAGE_RECEIVED"] = "CUSTOMER_ORDER_NEW_MESSAGE_RECEIVED";
|
|
13
13
|
CustomerNotificationEventType["CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION"] = "CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION";
|
|
14
|
-
CustomerNotificationEventType["CUSTOMER_ONBOARDING_COMPLETED"] = "CUSTOMER_ONBOARDING_COMPLETED";
|
|
15
14
|
})(CustomerNotificationEventType || (exports.CustomerNotificationEventType = CustomerNotificationEventType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityNotificationEventType = void 0;
|
|
4
|
+
var EntityNotificationEventType;
|
|
5
|
+
(function (EntityNotificationEventType) {
|
|
6
|
+
EntityNotificationEventType["ENTITY_VAT_VERIFICATION_FAILED"] = "ENTITY_VAT_VERIFICATION_FAILED";
|
|
7
|
+
EntityNotificationEventType["ENTITY_VAT_VERIFICATION_SUCCEEDED"] = "ENTITY_VAT_VERIFICATION_SUCCEEDED";
|
|
8
|
+
})(EntityNotificationEventType || (exports.EntityNotificationEventType = EntityNotificationEventType = {}));
|
|
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CustomerNotificationEventType"), exports);
|
|
18
18
|
__exportStar(require("./ProfessionalNotificationEventType"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./EntityNotificationEventType"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityPushNotificationType = void 0;
|
|
4
|
+
var EntityPushNotificationType;
|
|
5
|
+
(function (EntityPushNotificationType) {
|
|
6
|
+
EntityPushNotificationType["ENTITY_VAT_VERIFICATION_FAILED"] = "ENTITY_VAT_VERIFICATION_FAILED";
|
|
7
|
+
EntityPushNotificationType["ENTITY_VAT_VERIFICATION_SUCCEEDED"] = "ENTITY_VAT_VERIFICATION_SUCCEEDED";
|
|
8
|
+
})(EntityPushNotificationType || (exports.EntityPushNotificationType = EntityPushNotificationType = {}));
|
|
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CustomerPushNotificationType"), exports);
|
|
18
18
|
__exportStar(require("./ProfessionalPushNotificationType"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./EntityPushNotificationType"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EntityPushNotificationType } from "../enums";
|
|
2
|
+
import type { EntityVatVerificationFailedPushNotificationData, EntityVatVerificationSucceededPushNotificationData } from "../types";
|
|
3
|
+
export type EntityPushNotificationDataMapBase = {
|
|
4
|
+
[EntityPushNotificationType.ENTITY_VAT_VERIFICATION_FAILED]: EntityVatVerificationFailedPushNotificationData;
|
|
5
|
+
[EntityPushNotificationType.ENTITY_VAT_VERIFICATION_SUCCEEDED]: EntityVatVerificationSucceededPushNotificationData;
|
|
6
|
+
};
|
|
7
|
+
export type EntityPushNotificationDataMap = {
|
|
8
|
+
[K in EntityPushNotificationType]: EntityPushNotificationDataMapBase[K];
|
|
9
|
+
};
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CustomerPushNotificationDataMap"), exports);
|
|
18
18
|
__exportStar(require("./ProfessionalPushNotificationDataMap"), exports);
|
|
19
|
+
__exportStar(require("./EntityPushNotificationDataMap"), exports);
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { CustomerPushNotificationDataMap, ProfessionalPushNotificationDataMap } from "../maps";
|
|
2
|
-
|
|
3
|
-
export type PushNotificationDataMap = CustomerPushNotificationDataMap & ProfessionalPushNotificationDataMap & CompanyPushNotificationDataMap;
|
|
1
|
+
import type { CustomerPushNotificationDataMap, EntityPushNotificationDataMap, ProfessionalPushNotificationDataMap } from "../maps";
|
|
2
|
+
export type PushNotificationDataMap = CustomerPushNotificationDataMap & ProfessionalPushNotificationDataMap & EntityPushNotificationDataMap;
|