@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare enum AWSSESEmailSenders {
|
|
2
2
|
CUSTOMERS_NOTIFICATIONS = "'DoctoCar' <customers@notifications.doctocar.fr>",
|
|
3
3
|
PROFESSIONALS_NOTIFICATIONS = "'DoctoCar Pro' <pro@notifications.doctocar.fr>",
|
|
4
|
-
|
|
4
|
+
ACCOUNTS_NOTIFICATIONS = "'DoctoCar Account' <accounts@notifications.doctocar.fr>",
|
|
5
5
|
DEV_EMAILS = "'DoctoCar Test' <test@dev-emails.doctocar.fr>"
|
|
6
6
|
}
|
|
@@ -5,6 +5,6 @@ var AWSSESEmailSenders;
|
|
|
5
5
|
(function (AWSSESEmailSenders) {
|
|
6
6
|
AWSSESEmailSenders["CUSTOMERS_NOTIFICATIONS"] = "'DoctoCar' <customers@notifications.doctocar.fr>";
|
|
7
7
|
AWSSESEmailSenders["PROFESSIONALS_NOTIFICATIONS"] = "'DoctoCar Pro' <pro@notifications.doctocar.fr>";
|
|
8
|
-
AWSSESEmailSenders["
|
|
8
|
+
AWSSESEmailSenders["ACCOUNTS_NOTIFICATIONS"] = "'DoctoCar Account' <accounts@notifications.doctocar.fr>";
|
|
9
9
|
AWSSESEmailSenders["DEV_EMAILS"] = "'DoctoCar Test' <test@dev-emails.doctocar.fr>";
|
|
10
10
|
})(AWSSESEmailSenders || (exports.AWSSESEmailSenders = AWSSESEmailSenders = {}));
|
|
@@ -18,13 +18,12 @@ export declare enum AWSSESEmailsTemplatesNames {
|
|
|
18
18
|
CUSTOMER_BOOKING_CONFIRMATION = "customerBookingConfirmation",
|
|
19
19
|
CUSTOMER_UPCOMING_ORDER_REMINDER = "customerUpcomingOrderReminder",
|
|
20
20
|
CUSTOMER_CONFIRMED_ORDER_CANCELLED = "customerConfirmedOrderCancelled",
|
|
21
|
-
CUSTOMER_ONBOARDING_COMPLETED = "customerOnboardingCompleted",
|
|
22
21
|
CUSTOMER_SERVICE_STARTED = "customerServiceStartedNotification",
|
|
23
22
|
CUSTOMER_SERVICE_COMPLETED_BY_PROFESSIONAL = "customerServiceCompletedByProfessionalNotification",
|
|
24
23
|
CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION = "customerOrderIssueReportedConfirmation",
|
|
25
24
|
CUSTOMER_ORDER_REVIEW_REQUESTED = "customerOrderReviewRequested",
|
|
26
25
|
CUSTOMER_ORDER_NEW_MESSAGE_RECEIVED = "customerOrderNewMessageReceived",
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
ENTITY_VAT_VERIFICATION_FAILED = "entityVatVerificationFailed",
|
|
27
|
+
ENTITY_VAT_VERIFICATION_SUCCEEDED = "entityVatVerificationSucceeded",
|
|
29
28
|
EXAMPLE_EMAIL_TEMPLATE = "exampleEmailTemplate"
|
|
30
29
|
}
|
|
@@ -25,15 +25,14 @@ var AWSSESEmailsTemplatesNames;
|
|
|
25
25
|
AWSSESEmailsTemplatesNames["CUSTOMER_BOOKING_CONFIRMATION"] = "customerBookingConfirmation";
|
|
26
26
|
AWSSESEmailsTemplatesNames["CUSTOMER_UPCOMING_ORDER_REMINDER"] = "customerUpcomingOrderReminder";
|
|
27
27
|
AWSSESEmailsTemplatesNames["CUSTOMER_CONFIRMED_ORDER_CANCELLED"] = "customerConfirmedOrderCancelled";
|
|
28
|
-
AWSSESEmailsTemplatesNames["CUSTOMER_ONBOARDING_COMPLETED"] = "customerOnboardingCompleted";
|
|
29
28
|
AWSSESEmailsTemplatesNames["CUSTOMER_SERVICE_STARTED"] = "customerServiceStartedNotification";
|
|
30
29
|
AWSSESEmailsTemplatesNames["CUSTOMER_SERVICE_COMPLETED_BY_PROFESSIONAL"] = "customerServiceCompletedByProfessionalNotification";
|
|
31
30
|
AWSSESEmailsTemplatesNames["CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION"] = "customerOrderIssueReportedConfirmation";
|
|
32
31
|
AWSSESEmailsTemplatesNames["CUSTOMER_ORDER_REVIEW_REQUESTED"] = "customerOrderReviewRequested";
|
|
33
32
|
AWSSESEmailsTemplatesNames["CUSTOMER_ORDER_NEW_MESSAGE_RECEIVED"] = "customerOrderNewMessageReceived";
|
|
34
|
-
//
|
|
35
|
-
AWSSESEmailsTemplatesNames["
|
|
36
|
-
AWSSESEmailsTemplatesNames["
|
|
33
|
+
// Entity
|
|
34
|
+
AWSSESEmailsTemplatesNames["ENTITY_VAT_VERIFICATION_FAILED"] = "entityVatVerificationFailed";
|
|
35
|
+
AWSSESEmailsTemplatesNames["ENTITY_VAT_VERIFICATION_SUCCEEDED"] = "entityVatVerificationSucceeded";
|
|
37
36
|
// Examples
|
|
38
37
|
AWSSESEmailsTemplatesNames["EXAMPLE_EMAIL_TEMPLATE"] = "exampleEmailTemplate";
|
|
39
38
|
})(AWSSESEmailsTemplatesNames || (exports.AWSSESEmailsTemplatesNames = AWSSESEmailsTemplatesNames = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AWSSESEmailsTemplatesNames } from "../enums";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CustomerBookingConfirmationEmailData, CustomerConfirmedOrderCancelledEmailData, CustomerOrderIssueReportedConfirmationEmailData, CustomerOrderNewMessageReceivedEmailData, CustomerOrderReviewRequestedEmailData, CustomerServiceCompletedByProfessionalEmailData, CustomerServiceStartedEmailData, CustomerUpcomingOrderReminderEmailData, EmailAddressChangedEmailData, EmailAddressVerificationEmailData, EntityVatVerificationFailedEmailData, EntityVatVerificationSucceededEmailData, ExampleEmailTemplateEmailData, PasswordResetEmailData, ProfessionalConfirmedOrderCancelledEmailData, ProfessionalDocumentStatusRejectedEmailData, ProfessionalDocumentStatusValidatedEmailData, ProfessionalDocumentUploadedWaitingForValidationEmailData, ProfessionalIsNotBookableAnymoreEmailData, ProfessionalIsNowBookableEmailData, ProfessionalNewBookingEmailData, ProfessionalOnboardingCompletedEmailData, ProfessionalOrderIssueReportedConfirmationEmailData, ProfessionalOrderNewMessageReceivedEmailData, ProfessionalServiceCompletedByProfessionalEmailData, ProfessionalUpcomingOrderReminderEmailData, ProfessionalWelcomeEmailData } from "../types";
|
|
3
3
|
type EmailTemplateDataMapBase = {
|
|
4
4
|
[AWSSESEmailsTemplatesNames.EXAMPLE_EMAIL_TEMPLATE]: ExampleEmailTemplateEmailData;
|
|
5
5
|
[AWSSESEmailsTemplatesNames.EMAIL_ADDRESS_VERIFICATION]: EmailAddressVerificationEmailData;
|
|
@@ -21,14 +21,13 @@ type EmailTemplateDataMapBase = {
|
|
|
21
21
|
[AWSSESEmailsTemplatesNames.CUSTOMER_BOOKING_CONFIRMATION]: CustomerBookingConfirmationEmailData;
|
|
22
22
|
[AWSSESEmailsTemplatesNames.CUSTOMER_CONFIRMED_ORDER_CANCELLED]: CustomerConfirmedOrderCancelledEmailData;
|
|
23
23
|
[AWSSESEmailsTemplatesNames.CUSTOMER_UPCOMING_ORDER_REMINDER]: CustomerUpcomingOrderReminderEmailData;
|
|
24
|
-
[AWSSESEmailsTemplatesNames.CUSTOMER_ONBOARDING_COMPLETED]: CustomerOnboardingCompletedEmailData;
|
|
25
24
|
[AWSSESEmailsTemplatesNames.CUSTOMER_SERVICE_STARTED]: CustomerServiceStartedEmailData;
|
|
26
25
|
[AWSSESEmailsTemplatesNames.CUSTOMER_SERVICE_COMPLETED_BY_PROFESSIONAL]: CustomerServiceCompletedByProfessionalEmailData;
|
|
27
26
|
[AWSSESEmailsTemplatesNames.CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION]: CustomerOrderIssueReportedConfirmationEmailData;
|
|
28
27
|
[AWSSESEmailsTemplatesNames.CUSTOMER_ORDER_REVIEW_REQUESTED]: CustomerOrderReviewRequestedEmailData;
|
|
29
28
|
[AWSSESEmailsTemplatesNames.CUSTOMER_ORDER_NEW_MESSAGE_RECEIVED]: CustomerOrderNewMessageReceivedEmailData;
|
|
30
|
-
[AWSSESEmailsTemplatesNames.
|
|
31
|
-
[AWSSESEmailsTemplatesNames.
|
|
29
|
+
[AWSSESEmailsTemplatesNames.ENTITY_VAT_VERIFICATION_FAILED]: EntityVatVerificationFailedEmailData;
|
|
30
|
+
[AWSSESEmailsTemplatesNames.ENTITY_VAT_VERIFICATION_SUCCEEDED]: EntityVatVerificationSucceededEmailData;
|
|
32
31
|
};
|
|
33
32
|
export type EmailTemplateDataMap = {
|
|
34
33
|
[K in AWSSESEmailsTemplatesNames]: EmailTemplateDataMapBase[K];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from "./CustomerBookingConfirmationEmailData.type";
|
|
2
|
-
export * from "./CustomerWelcomeEmailData.type";
|
|
3
2
|
export * from "./CustomerConfirmedOrderCancelledEmailData.type";
|
|
4
3
|
export * from "./CustomerUpcomingOrderReminderEmailData.type";
|
|
5
4
|
export * from "./CustomerServiceStartedEmailData.type";
|
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CustomerBookingConfirmationEmailData.type"), exports);
|
|
18
|
-
__exportStar(require("./CustomerWelcomeEmailData.type"), exports);
|
|
19
18
|
__exportStar(require("./CustomerConfirmedOrderCancelledEmailData.type"), exports);
|
|
20
19
|
__exportStar(require("./CustomerUpcomingOrderReminderEmailData.type"), exports);
|
|
21
20
|
__exportStar(require("./CustomerServiceStartedEmailData.type"), exports);
|
|
@@ -14,5 +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("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./EntityVatVerificationFailedEmailData.type"), exports);
|
|
18
|
+
__exportStar(require("./EntityVatVerificationSucceededEmailData.type"), exports);
|
|
@@ -21,4 +21,4 @@ __exportStar(require("./EmailTemplateTranslations.type"), exports);
|
|
|
21
21
|
__exportStar(require("./EmailTemplateTranslationsData.type"), exports);
|
|
22
22
|
__exportStar(require("./professional"), exports);
|
|
23
23
|
__exportStar(require("./customer"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./entity"), exports);
|
|
@@ -14,7 +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("./ProcessCustomerUserOnboardingErrorCodes.enum"), exports);
|
|
18
17
|
__exportStar(require("./CreateCustomerVehicleErrorCodes.enum"), exports);
|
|
19
18
|
__exportStar(require("./DeleteCustomerVehicleErrorCodes.enum"), exports);
|
|
20
19
|
__exportStar(require("./UpdateCustomerVehicleErrorCodes.enum"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum CreateNewEntityErrorCodes {
|
|
2
|
+
REQUEST_DATA_VALIDATION_FAILED = "REQUEST_DATA_VALIDATION_FAILED",
|
|
3
|
+
CONTEXT_VALIDATION_FAILED = "CONTEXT_VALIDATION_FAILED",
|
|
4
|
+
INVALID_ENTITY_LEGAL_TYPE = "INVALID_ENTITY_LEGAL_TYPE",
|
|
5
|
+
INVALID_USE_CURRENT_USER_AS_ENTITY_LEGAL_REPRESENTATIVE = "INVALID_USE_CURRENT_USER_AS_ENTITY_LEGAL_REPRESENTATIVE",
|
|
6
|
+
MISSING_ENTITY_LEGAL_REPRESENTATIVE = "MISSING_ENTITY_LEGAL_REPRESENTATIVE",
|
|
7
|
+
INVALID_ENTITY_LEGAL_REPRESENTATIVE_FIRST_NAME = "INVALID_ENTITY_LEGAL_REPRESENTATIVE_FIRST_NAME",
|
|
8
|
+
INVALID_ENTITY_LEGAL_REPRESENTATIVE_LAST_NAME = "INVALID_ENTITY_LEGAL_REPRESENTATIVE_LAST_NAME",
|
|
9
|
+
INVALID_ENTITY_BILLING_ADDRESS_PLACE_ID = "INVALID_ENTITY_BILLING_ADDRESS_PLACE_ID",
|
|
10
|
+
INVALID_ENTITY_LEGAL_NAME = "INVALID_ENTITY_LEGAL_NAME",
|
|
11
|
+
INVALID_ENTITY_LEGAL_ADDRESS_PLACE_ID = "INVALID_ENTITY_LEGAL_ADDRESS_PLACE_ID",
|
|
12
|
+
INVALID_ENTITY_VAT_NUMBER = "INVALID_ENTITY_VAT_NUMBER",
|
|
13
|
+
INVALID_ENTITY_IS_VAT_EXEMPT = "INVALID_ENTITY_IS_VAT_EXEMPT",
|
|
14
|
+
INVALID_ENTITY_BILLING_ADDRESS_IS_SAME_AS_LEGAL_ADDRESS = "INVALID_ENTITY_BILLING_ADDRESS_IS_SAME_AS_LEGAL_ADDRESS",
|
|
15
|
+
INVALID_ENTITY_REGISTRATION_DETAILS = "INVALID_ENTITY_REGISTRATION_DETAILS",
|
|
16
|
+
MISMATCHING_ENTITY_BILLING_AND_LEGAL_ADDRESS_COUNTRIES = "MISMATCHING_ENTITY_BILLING_AND_LEGAL_ADDRESS_COUNTRIES",
|
|
17
|
+
MISMATCHING_LEGAL_ADDRESS_AND_ENTITY_REGISTRATION_COUNTRIES = "MISMATCHING_LEGAL_ADDRESS_AND_ENTITY_REGISTRATION_COUNTRIES",
|
|
18
|
+
INSEE_SIREN_VALIDATION_FAILED = "INSEE_SIREN_VALIDATION_FAILED",
|
|
19
|
+
STRIPE_TERMS_OF_SERVICE_NOT_ACCEPTED = "STRIPE_TERMS_OF_SERVICE_NOT_ACCEPTED",
|
|
20
|
+
ENTITY_WITH_SAME_DETAILS_ALREADY_EXISTS = "ENTITY_WITH_SAME_DETAILS_ALREADY_EXISTS",
|
|
21
|
+
ENTITY_OWNER_USER_IDENTITY_INCOMPLETE = "ENTITY_OWNER_USER_IDENTITY_INCOMPLETE",
|
|
22
|
+
ENTITY_OWNER_USER_DOCUMENT_NOT_FOUND = "ENTITY_OWNER_USER_DOCUMENT_NOT_FOUND",
|
|
23
|
+
ENTITY_OWNER_USER_ALREADY_HAS_AN_ENTITY = "ENTITY_OWNER_USER_ALREADY_HAS_AN_ENTITY",
|
|
24
|
+
STRIPE_CUSTOM_ACCOUNT_CREATION_FAILED = "STRIPE_CUSTOM_ACCOUNT_CREATION_FAILED",
|
|
25
|
+
STRIPE_CUSTOMER_CREATION_FAILED = "STRIPE_CUSTOMER_CREATION_FAILED"
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateNewEntityErrorCodes = void 0;
|
|
4
|
+
var CreateNewEntityErrorCodes;
|
|
5
|
+
(function (CreateNewEntityErrorCodes) {
|
|
6
|
+
CreateNewEntityErrorCodes["REQUEST_DATA_VALIDATION_FAILED"] = "REQUEST_DATA_VALIDATION_FAILED";
|
|
7
|
+
CreateNewEntityErrorCodes["CONTEXT_VALIDATION_FAILED"] = "CONTEXT_VALIDATION_FAILED";
|
|
8
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_LEGAL_TYPE"] = "INVALID_ENTITY_LEGAL_TYPE";
|
|
9
|
+
CreateNewEntityErrorCodes["INVALID_USE_CURRENT_USER_AS_ENTITY_LEGAL_REPRESENTATIVE"] = "INVALID_USE_CURRENT_USER_AS_ENTITY_LEGAL_REPRESENTATIVE";
|
|
10
|
+
CreateNewEntityErrorCodes["MISSING_ENTITY_LEGAL_REPRESENTATIVE"] = "MISSING_ENTITY_LEGAL_REPRESENTATIVE";
|
|
11
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_LEGAL_REPRESENTATIVE_FIRST_NAME"] = "INVALID_ENTITY_LEGAL_REPRESENTATIVE_FIRST_NAME";
|
|
12
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_LEGAL_REPRESENTATIVE_LAST_NAME"] = "INVALID_ENTITY_LEGAL_REPRESENTATIVE_LAST_NAME";
|
|
13
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_BILLING_ADDRESS_PLACE_ID"] = "INVALID_ENTITY_BILLING_ADDRESS_PLACE_ID";
|
|
14
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_LEGAL_NAME"] = "INVALID_ENTITY_LEGAL_NAME";
|
|
15
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_LEGAL_ADDRESS_PLACE_ID"] = "INVALID_ENTITY_LEGAL_ADDRESS_PLACE_ID";
|
|
16
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_VAT_NUMBER"] = "INVALID_ENTITY_VAT_NUMBER";
|
|
17
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_IS_VAT_EXEMPT"] = "INVALID_ENTITY_IS_VAT_EXEMPT";
|
|
18
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_BILLING_ADDRESS_IS_SAME_AS_LEGAL_ADDRESS"] = "INVALID_ENTITY_BILLING_ADDRESS_IS_SAME_AS_LEGAL_ADDRESS";
|
|
19
|
+
CreateNewEntityErrorCodes["INVALID_ENTITY_REGISTRATION_DETAILS"] = "INVALID_ENTITY_REGISTRATION_DETAILS";
|
|
20
|
+
CreateNewEntityErrorCodes["MISMATCHING_ENTITY_BILLING_AND_LEGAL_ADDRESS_COUNTRIES"] = "MISMATCHING_ENTITY_BILLING_AND_LEGAL_ADDRESS_COUNTRIES";
|
|
21
|
+
CreateNewEntityErrorCodes["MISMATCHING_LEGAL_ADDRESS_AND_ENTITY_REGISTRATION_COUNTRIES"] = "MISMATCHING_LEGAL_ADDRESS_AND_ENTITY_REGISTRATION_COUNTRIES";
|
|
22
|
+
CreateNewEntityErrorCodes["INSEE_SIREN_VALIDATION_FAILED"] = "INSEE_SIREN_VALIDATION_FAILED";
|
|
23
|
+
CreateNewEntityErrorCodes["STRIPE_TERMS_OF_SERVICE_NOT_ACCEPTED"] = "STRIPE_TERMS_OF_SERVICE_NOT_ACCEPTED";
|
|
24
|
+
CreateNewEntityErrorCodes["ENTITY_WITH_SAME_DETAILS_ALREADY_EXISTS"] = "ENTITY_WITH_SAME_DETAILS_ALREADY_EXISTS";
|
|
25
|
+
CreateNewEntityErrorCodes["ENTITY_OWNER_USER_IDENTITY_INCOMPLETE"] = "ENTITY_OWNER_USER_IDENTITY_INCOMPLETE";
|
|
26
|
+
CreateNewEntityErrorCodes["ENTITY_OWNER_USER_DOCUMENT_NOT_FOUND"] = "ENTITY_OWNER_USER_DOCUMENT_NOT_FOUND";
|
|
27
|
+
CreateNewEntityErrorCodes["ENTITY_OWNER_USER_ALREADY_HAS_AN_ENTITY"] = "ENTITY_OWNER_USER_ALREADY_HAS_AN_ENTITY";
|
|
28
|
+
CreateNewEntityErrorCodes["STRIPE_CUSTOM_ACCOUNT_CREATION_FAILED"] = "STRIPE_CUSTOM_ACCOUNT_CREATION_FAILED";
|
|
29
|
+
CreateNewEntityErrorCodes["STRIPE_CUSTOMER_CREATION_FAILED"] = "STRIPE_CUSTOMER_CREATION_FAILED";
|
|
30
|
+
})(CreateNewEntityErrorCodes || (exports.CreateNewEntityErrorCodes = CreateNewEntityErrorCodes = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateNewEntityErrorCodes.enum";
|
|
@@ -14,5 +14,4 @@ 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("./
|
|
18
|
-
__exportStar(require("./CompanyVatVerifiedEmailData.type"), exports);
|
|
17
|
+
__exportStar(require("./CreateNewEntityErrorCodes.enum"), exports);
|
|
@@ -32,7 +32,6 @@ export declare enum OnCallCloudFunctionsNames {
|
|
|
32
32
|
CREATE_CUSTOMER_VEHICLE = "createCustomerVehicle",
|
|
33
33
|
UPDATE_CUSTOMER_VEHICLE = "updateCustomerVehicle",
|
|
34
34
|
DELETE_CUSTOMER_VEHICLE = "deleteCustomerVehicle",
|
|
35
|
-
PROCESS_CUSTOMER_USER_ONBOARDING = "processCustomerUserOnboarding",
|
|
36
35
|
REQUEST_WALLET_WITHDRAWAL = "requestWalletWithdrawal",
|
|
37
36
|
APPLY_TEST_WALLET_LEDGER_ENTRY = "applyTestWalletLedgerEntry",
|
|
38
37
|
GET_OR_CREATE_SERVICE_BOOKING_ORDER_WITH_PAYMENT_INTENT = "getOrCreateServiceBookingOrderWithPaymentIntent",
|
|
@@ -47,6 +46,7 @@ export declare enum OnCallCloudFunctionsNames {
|
|
|
47
46
|
CUSTOMER_SUBMIT_ORDER_RATING_AND_REVIEW = "customerSubmitOrderRatingAndReview",
|
|
48
47
|
REPORT_ISSUE_WITH_ORDER = "reportIssueWithOrder",
|
|
49
48
|
SEND_ORDER_CHAT_MESSAGE = "sendOrderChatMessage",
|
|
49
|
+
CREATE_NEW_ENTITY = "createNewEntity",
|
|
50
50
|
CREATE_SIGNED_UPLOAD_URLS = "createSignedUploadUrls",
|
|
51
51
|
SEND_CLIENT_FIRESTORE_OPS_METRICS = "sendClientFirestoreOpsMetrics"
|
|
52
52
|
}
|
|
@@ -44,7 +44,6 @@ var OnCallCloudFunctionsNames;
|
|
|
44
44
|
OnCallCloudFunctionsNames["CREATE_CUSTOMER_VEHICLE"] = "createCustomerVehicle";
|
|
45
45
|
OnCallCloudFunctionsNames["UPDATE_CUSTOMER_VEHICLE"] = "updateCustomerVehicle";
|
|
46
46
|
OnCallCloudFunctionsNames["DELETE_CUSTOMER_VEHICLE"] = "deleteCustomerVehicle";
|
|
47
|
-
OnCallCloudFunctionsNames["PROCESS_CUSTOMER_USER_ONBOARDING"] = "processCustomerUserOnboarding";
|
|
48
47
|
// Wallet
|
|
49
48
|
OnCallCloudFunctionsNames["REQUEST_WALLET_WITHDRAWAL"] = "requestWalletWithdrawal";
|
|
50
49
|
OnCallCloudFunctionsNames["APPLY_TEST_WALLET_LEDGER_ENTRY"] = "applyTestWalletLedgerEntry";
|
|
@@ -61,6 +60,8 @@ var OnCallCloudFunctionsNames;
|
|
|
61
60
|
OnCallCloudFunctionsNames["CUSTOMER_SUBMIT_ORDER_RATING_AND_REVIEW"] = "customerSubmitOrderRatingAndReview";
|
|
62
61
|
OnCallCloudFunctionsNames["REPORT_ISSUE_WITH_ORDER"] = "reportIssueWithOrder";
|
|
63
62
|
OnCallCloudFunctionsNames["SEND_ORDER_CHAT_MESSAGE"] = "sendOrderChatMessage";
|
|
63
|
+
// Entities
|
|
64
|
+
OnCallCloudFunctionsNames["CREATE_NEW_ENTITY"] = "createNewEntity";
|
|
64
65
|
// Files
|
|
65
66
|
OnCallCloudFunctionsNames["CREATE_SIGNED_UPLOAD_URLS"] = "createSignedUploadUrls";
|
|
66
67
|
// Metrics
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OnCallCloudFunctionsNames } from "../enums";
|
|
2
|
-
import type { AcceptEntityInviteRequestData, AcceptEntityInviteResponseData, ApplyTestWalletLedgerEntryRequestData, ApplyTestWalletLedgerEntryResponseData, CancelConfirmedOrInProgressOrderRequestData, CancelConfirmedOrInProgressOrderResponseData, CancelPendingOrderRequestData, CancelPendingOrderResponseData, CheckAndRetrievePromoCodeRequestData, CheckAndRetrievePromoCodeResponseData, CloudFunctionGooglePlaceDetailsRequestData, CloudFunctionGooglePlaceDetailsResponseData, ConfirmServiceCompletionByProfessionalRequestData, ConfirmServiceCompletionByProfessionalResponseData, CreateCustomerVehicleRequestData, CreateCustomerVehicleResponseData, CreateProfessionalUserPublicDocumentRequestData, CreateProfessionalUserPublicDocumentResponseData, CreateProfessionalUserSlotDocumentRequestData, CreateProfessionalUserSlotDocumentResponseData, CreateSignedUploadUrlsRequestData, CreateSignedUploadUrlsResponseData, CreateStripeUserAccountLinkRequestData, CreateStripeUserAccountLinkResponseData, CreateTestUserRequestData, CreateTestUserResponseData, CreateUserDocumentRequestData, CreateUserDocumentResponseData, CustomerSubmitOrderRatingAndReviewRequestData, CustomerSubmitOrderRatingAndReviewResponseData, DebugLogClientMessageRequestData, DebugLogClientMessageResponseData, DebugOnCallRequestData, DebugOnCallResponseData, DeleteCustomerVehicleRequestData, DeleteCustomerVehicleResponseData, DeleteProfessionalUserServiceRequestData, DeleteProfessionalUserServiceResponseData, DeleteProfessionalUserSlotDocumentRequestData, DeleteProfessionalUserSlotDocumentResponseData, ExampleOnCallRequestData, ExampleOnCallResponseData, ExampleOnCallWithAppCheckAndLoggedUserRequestData, ExampleOnCallWithAppCheckAndLoggedUserResponseData, ExampleOnCallWithAppCheckRequestData, ExampleOnCallWithAppCheckResponseData, ExampleOnCallWithLoggedUserRequestData, ExampleOnCallWithLoggedUserResponseData, GetOrCreateServiceBookingOrderWithPaymentIntentRequestData, GetOrCreateServiceBookingOrderWithPaymentIntentResponseData, GetOrderPublicAssetsUrlsRequestData, GetOrderPublicAssetsUrlsResponseData, GooglePlaceAutocompleteRequestData, GooglePlaceAutocompleteResponseData, GoogleReverseGeocodeRequestData, GoogleReverseGeocodeResponseData,
|
|
2
|
+
import type { AcceptEntityInviteRequestData, AcceptEntityInviteResponseData, ApplyTestWalletLedgerEntryRequestData, ApplyTestWalletLedgerEntryResponseData, CancelConfirmedOrInProgressOrderRequestData, CancelConfirmedOrInProgressOrderResponseData, CancelPendingOrderRequestData, CancelPendingOrderResponseData, CheckAndRetrievePromoCodeRequestData, CheckAndRetrievePromoCodeResponseData, CloudFunctionGooglePlaceDetailsRequestData, CloudFunctionGooglePlaceDetailsResponseData, ConfirmServiceCompletionByProfessionalRequestData, ConfirmServiceCompletionByProfessionalResponseData, CreateCustomerVehicleRequestData, CreateCustomerVehicleResponseData, CreateNewEntityRequestData, CreateNewEntityResponseData, CreateProfessionalUserPublicDocumentRequestData, CreateProfessionalUserPublicDocumentResponseData, CreateProfessionalUserSlotDocumentRequestData, CreateProfessionalUserSlotDocumentResponseData, CreateSignedUploadUrlsRequestData, CreateSignedUploadUrlsResponseData, CreateStripeUserAccountLinkRequestData, CreateStripeUserAccountLinkResponseData, CreateTestUserRequestData, CreateTestUserResponseData, CreateUserDocumentRequestData, CreateUserDocumentResponseData, CustomerSubmitOrderRatingAndReviewRequestData, CustomerSubmitOrderRatingAndReviewResponseData, DebugLogClientMessageRequestData, DebugLogClientMessageResponseData, DebugOnCallRequestData, DebugOnCallResponseData, DeleteCustomerVehicleRequestData, DeleteCustomerVehicleResponseData, DeleteProfessionalUserServiceRequestData, DeleteProfessionalUserServiceResponseData, DeleteProfessionalUserSlotDocumentRequestData, DeleteProfessionalUserSlotDocumentResponseData, ExampleOnCallRequestData, ExampleOnCallResponseData, ExampleOnCallWithAppCheckAndLoggedUserRequestData, ExampleOnCallWithAppCheckAndLoggedUserResponseData, ExampleOnCallWithAppCheckRequestData, ExampleOnCallWithAppCheckResponseData, ExampleOnCallWithLoggedUserRequestData, ExampleOnCallWithLoggedUserResponseData, GetOrCreateServiceBookingOrderWithPaymentIntentRequestData, GetOrCreateServiceBookingOrderWithPaymentIntentResponseData, GetOrderPublicAssetsUrlsRequestData, GetOrderPublicAssetsUrlsResponseData, GooglePlaceAutocompleteRequestData, GooglePlaceAutocompleteResponseData, GoogleReverseGeocodeRequestData, GoogleReverseGeocodeResponseData, ProcessProfessionalUserOnboardingBaseCompanyInfosRequestData, ProcessProfessionalUserOnboardingBaseCompanyInfosResponseData, ProfessionalUserDeleteOrderServicePhotosRequestData, ProfessionalUserDeleteOrderServicePhotosResponseData, ProfessionalUserUploadOrderServicePhotosRequestData, ProfessionalUserUploadOrderServicePhotosResponseData, ReportIssueWithOrderRequestData, ReportIssueWithOrderResponseData, RequestWalletWithdrawalRequestData, RequestWalletWithdrawalResponseData, SaveUserDeviceFcmTokenRequestData, SaveUserDeviceFcmTokenResponseData, SendClientFirestoreOpsMetricsRequestData, SendClientFirestoreOpsMetricsResponseData, SendOrderChatMessageRequestData, SendOrderChatMessageResponseData, SendPhoneNumberOtpRequestData, SendPhoneNumberOtpResponseData, SendUserEmailVerificationRequestData, SendUserEmailVerificationResponseData, SendUserPasswordResetEmailRequestData, SendUserPasswordResetEmailResponseData, StartConfirmedOrderByProfessionalRequestData, StartConfirmedOrderByProfessionalResponseData, UpdateCustomerVehicleRequestData, UpdateCustomerVehicleResponseData, UpdateProfessionalUserLiabilityInsuranceRequestData, UpdateProfessionalUserLiabilityInsuranceResponseData, UpdateProfessionalUserServiceRequestData, UpdateProfessionalUserServiceResponseData, UpdateProfessionalUserServicesLocationRequestData, UpdateProfessionalUserServicesLocationResponseData, UpdateProfessionalUserSlotDocumentRequestData, UpdateProfessionalUserSlotDocumentResponseData, UpdateProfessionalUserTermsAcceptanceRequestData, UpdateProfessionalUserTermsAcceptanceResponseData, UpdateUserIdentityRequestData, UpdateUserIdentityResponseData, UpdateUserProfilePictureRequestData, UpdateUserProfilePictureResponseData, VerifyPhoneNumberOtpRequestData, VerifyPhoneNumberOtpResponseData } from "../types";
|
|
3
3
|
type OnCallCloudFunctionsTypeMappingsBase = {
|
|
4
4
|
[OnCallCloudFunctionsNames.GOOGLE_PLACE_AUTOCOMPLETE]: {
|
|
5
5
|
requestType: GooglePlaceAutocompleteRequestData;
|
|
@@ -121,6 +121,10 @@ type OnCallCloudFunctionsTypeMappingsBase = {
|
|
|
121
121
|
requestType: DeleteProfessionalUserSlotDocumentRequestData;
|
|
122
122
|
responseType: DeleteProfessionalUserSlotDocumentResponseData;
|
|
123
123
|
};
|
|
124
|
+
[OnCallCloudFunctionsNames.CREATE_NEW_ENTITY]: {
|
|
125
|
+
requestType: CreateNewEntityRequestData;
|
|
126
|
+
responseType: CreateNewEntityResponseData;
|
|
127
|
+
};
|
|
124
128
|
[OnCallCloudFunctionsNames.REQUEST_WALLET_WITHDRAWAL]: {
|
|
125
129
|
requestType: RequestWalletWithdrawalRequestData;
|
|
126
130
|
responseType: RequestWalletWithdrawalResponseData;
|
|
@@ -141,10 +145,6 @@ type OnCallCloudFunctionsTypeMappingsBase = {
|
|
|
141
145
|
requestType: DeleteCustomerVehicleRequestData;
|
|
142
146
|
responseType: DeleteCustomerVehicleResponseData;
|
|
143
147
|
};
|
|
144
|
-
[OnCallCloudFunctionsNames.PROCESS_CUSTOMER_USER_ONBOARDING]: {
|
|
145
|
-
requestType: ProcessCustomerUserOnboardingRequestData;
|
|
146
|
-
responseType: ProcessCustomerUserOnboardingResponseData;
|
|
147
|
-
};
|
|
148
148
|
[OnCallCloudFunctionsNames.GET_OR_CREATE_SERVICE_BOOKING_ORDER_WITH_PAYMENT_INTENT]: {
|
|
149
149
|
requestType: GetOrCreateServiceBookingOrderWithPaymentIntentRequestData;
|
|
150
150
|
responseType: GetOrCreateServiceBookingOrderWithPaymentIntentResponseData;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EntityLegalRepresentative, EntityLegalType, EntityRegistration } from "../../../firestore";
|
|
2
|
+
export type CreateNewEntityPayload = {
|
|
3
|
+
entityLegalType: EntityLegalType.INDIVIDUAL;
|
|
4
|
+
} | {
|
|
5
|
+
entityLegalType: EntityLegalType.COMPANY;
|
|
6
|
+
entityLegalName: string;
|
|
7
|
+
entityLegalAddressPlaceId: string;
|
|
8
|
+
entityBillingAddressIsSameAsLegalAddress: boolean;
|
|
9
|
+
entityBillingAddressPlaceId?: string;
|
|
10
|
+
useCurrentUserAsEntityLegalRepresentative: boolean;
|
|
11
|
+
entityLegalRepresentative?: Pick<EntityLegalRepresentative, "firstName" | "lastName">;
|
|
12
|
+
entityRegistration: EntityRegistration;
|
|
13
|
+
entityIsVatExempt: boolean;
|
|
14
|
+
entityVatNumber?: string;
|
|
15
|
+
stripeTosShownAndAccepted?: boolean;
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./CreateNewEntityRequestData.type"), exports);
|
|
18
|
+
__exportStar(require("./CreateNewEntityResponseData.type"), exports);
|
|
19
|
+
__exportStar(require("./CreateNewEntityPayload.type"), exports);
|
|
@@ -4,5 +4,3 @@ export * from "./UpdateCustomerVehicleRequestData.type";
|
|
|
4
4
|
export * from "./UpdateCustomerVehicleResponseData.type";
|
|
5
5
|
export * from "./DeleteCustomerVehicleRequestData.type";
|
|
6
6
|
export * from "./DeleteCustomerVehicleResponseData.type";
|
|
7
|
-
export * from "./ProcessCustomerUserOnboardingRequestData.type";
|
|
8
|
-
export * from "./ProcessCustomerUserOnboardingResponseData.type";
|
|
@@ -20,5 +20,3 @@ __exportStar(require("./UpdateCustomerVehicleRequestData.type"), exports);
|
|
|
20
20
|
__exportStar(require("./UpdateCustomerVehicleResponseData.type"), exports);
|
|
21
21
|
__exportStar(require("./DeleteCustomerVehicleRequestData.type"), exports);
|
|
22
22
|
__exportStar(require("./DeleteCustomerVehicleResponseData.type"), exports);
|
|
23
|
-
__exportStar(require("./ProcessCustomerUserOnboardingRequestData.type"), exports);
|
|
24
|
-
__exportStar(require("./ProcessCustomerUserOnboardingResponseData.type"), exports);
|
|
@@ -27,5 +27,6 @@ export declare enum FirestoreCollections {
|
|
|
27
27
|
FUNCTIONS_DEPLOYMENT_RUNS = "functionsDeploymentRuns",
|
|
28
28
|
MARKETPLACE_FINANCIAL_REPORTS = "marketplaceFinancialReports",
|
|
29
29
|
ENTITIES = "entities",
|
|
30
|
-
ENTITY_MEMBERS = "entityMembers"
|
|
30
|
+
ENTITY_MEMBERS = "entityMembers",
|
|
31
|
+
ENTITY_UNIQUE_KEYS = "entityUniqueKeys"
|
|
31
32
|
}
|
|
@@ -32,4 +32,5 @@ var FirestoreCollections;
|
|
|
32
32
|
FirestoreCollections["MARKETPLACE_FINANCIAL_REPORTS"] = "marketplaceFinancialReports";
|
|
33
33
|
FirestoreCollections["ENTITIES"] = "entities";
|
|
34
34
|
FirestoreCollections["ENTITY_MEMBERS"] = "entityMembers";
|
|
35
|
+
FirestoreCollections["ENTITY_UNIQUE_KEYS"] = "entityUniqueKeys";
|
|
35
36
|
})(FirestoreCollections || (exports.FirestoreCollections = FirestoreCollections = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityRegistrationIdentifierVerificationSource = void 0;
|
|
4
|
+
var EntityRegistrationIdentifierVerificationSource;
|
|
5
|
+
(function (EntityRegistrationIdentifierVerificationSource) {
|
|
6
|
+
EntityRegistrationIdentifierVerificationSource["INSEE"] = "INSEE";
|
|
7
|
+
})(EntityRegistrationIdentifierVerificationSource || (exports.EntityRegistrationIdentifierVerificationSource = EntityRegistrationIdentifierVerificationSource = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityRegistrationIdentifierVerificationStatus = void 0;
|
|
4
|
+
var EntityRegistrationIdentifierVerificationStatus;
|
|
5
|
+
(function (EntityRegistrationIdentifierVerificationStatus) {
|
|
6
|
+
EntityRegistrationIdentifierVerificationStatus["PENDING"] = "PENDING";
|
|
7
|
+
EntityRegistrationIdentifierVerificationStatus["VERIFIED"] = "VERIFIED";
|
|
8
|
+
EntityRegistrationIdentifierVerificationStatus["REJECTED"] = "REJECTED";
|
|
9
|
+
EntityRegistrationIdentifierVerificationStatus["EXPIRED"] = "EXPIRED";
|
|
10
|
+
})(EntityRegistrationIdentifierVerificationStatus || (exports.EntityRegistrationIdentifierVerificationStatus = EntityRegistrationIdentifierVerificationStatus = {}));
|
|
@@ -4,3 +4,5 @@ export * from "./EntityInsuranceType.enum";
|
|
|
4
4
|
export * from "./EntityInsuranceFileValidationStatus.enum";
|
|
5
5
|
export * from "./EntityServiceProviderNonBookableReason.enum";
|
|
6
6
|
export * from "./EntityServiceProviderComplianceStatus.enum";
|
|
7
|
+
export * from "./EntityRegistrationIdentifierVerificationStatus.enum";
|
|
8
|
+
export * from "./EntityRegistrationIdentifierVerificationSource.enum";
|
|
@@ -20,3 +20,5 @@ __exportStar(require("./EntityInsuranceType.enum"), exports);
|
|
|
20
20
|
__exportStar(require("./EntityInsuranceFileValidationStatus.enum"), exports);
|
|
21
21
|
__exportStar(require("./EntityServiceProviderNonBookableReason.enum"), exports);
|
|
22
22
|
__exportStar(require("./EntityServiceProviderComplianceStatus.enum"), exports);
|
|
23
|
+
__exportStar(require("./EntityRegistrationIdentifierVerificationStatus.enum"), exports);
|
|
24
|
+
__exportStar(require("./EntityRegistrationIdentifierVerificationSource.enum"), exports);
|
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,5 +1,5 @@
|
|
|
1
1
|
import { FirestoreCollections } from "../enums";
|
|
2
|
-
import type { FirestoreBookedSlotDocument, FirestoreCompanyUniqueDocument, FirestoreDailyMetricsDocument, FirestoreDebugPublicConfigDocument, FirestoreDeviceTokenDocument, FirestoreEmailsBlacklistDocument, FirestoreEmailsSoftBounceDocument, FirestoreEntityDocument, FirestoreEntityMemberDocument, FirestoreFunctionsDeploymentRunsDocument, FirestoreGlobalMetricsDocument, FirestoreInvoiceCounterDocument, FirestoreMarketplaceFinancialReportsDocument, FirestoreMessageDocument, FirestoreNotificationEventDeliveryStateDocument, FirestoreNotificationEventsPublicConfigDocument, FirestoreOnTaskExecutionStateDocument, FirestoreOrderDocument, FirestoreOrderIssueDocument, FirestoreOrderReviewDocument, FirestoreOrdersPublicConfigDocument, FirestorePaymentIntentDocument, FirestorePlatformPublicConfigDocument, FirestorePricingPublicConfigDocument, FirestoreProfessionalUserPublicDocument, FirestorePromoCodeDocument, FirestoreRateLimitDocument, FirestoreServicesPublicConfigDocument, FirestoreSlotDocument, FirestoreUserDocument, FirestoreUserUploadRateLimitDocument, FirestoreVehicleDocument, FirestoreWalletsDocument, FirestoreWalletsLedgerEntryDocument, FirestoreWalletsWithdrawalIntentsDocument } from "../types";
|
|
2
|
+
import type { FirestoreBookedSlotDocument, FirestoreCompanyUniqueDocument, FirestoreDailyMetricsDocument, FirestoreDebugPublicConfigDocument, FirestoreDeviceTokenDocument, FirestoreEmailsBlacklistDocument, FirestoreEmailsSoftBounceDocument, FirestoreEntityDocument, FirestoreEntityMemberDocument, FirestoreEntityUniqueKeyDocument, FirestoreFunctionsDeploymentRunsDocument, FirestoreGlobalMetricsDocument, FirestoreInvoiceCounterDocument, FirestoreMarketplaceFinancialReportsDocument, FirestoreMessageDocument, FirestoreNotificationEventDeliveryStateDocument, FirestoreNotificationEventsPublicConfigDocument, FirestoreOnTaskExecutionStateDocument, FirestoreOrderDocument, FirestoreOrderIssueDocument, FirestoreOrderReviewDocument, FirestoreOrdersPublicConfigDocument, FirestorePaymentIntentDocument, FirestorePlatformPublicConfigDocument, FirestorePricingPublicConfigDocument, FirestoreProfessionalUserPublicDocument, FirestorePromoCodeDocument, FirestoreRateLimitDocument, FirestoreServicesPublicConfigDocument, FirestoreSlotDocument, FirestoreUserDocument, FirestoreUserUploadRateLimitDocument, FirestoreVehicleDocument, FirestoreWalletsDocument, FirestoreWalletsLedgerEntryDocument, FirestoreWalletsWithdrawalIntentsDocument } from "../types";
|
|
3
3
|
type FirestoreCollectionDocumentTypeMapBase = {
|
|
4
4
|
[FirestoreCollections.USERS]: FirestoreUserDocument;
|
|
5
5
|
[FirestoreCollections.DEVICE_TOKENS]: FirestoreDeviceTokenDocument;
|
|
@@ -30,6 +30,7 @@ type FirestoreCollectionDocumentTypeMapBase = {
|
|
|
30
30
|
[FirestoreCollections.MARKETPLACE_FINANCIAL_REPORTS]: FirestoreMarketplaceFinancialReportsDocument;
|
|
31
31
|
[FirestoreCollections.ENTITIES]: FirestoreEntityDocument;
|
|
32
32
|
[FirestoreCollections.ENTITY_MEMBERS]: FirestoreEntityMemberDocument;
|
|
33
|
+
[FirestoreCollections.ENTITY_UNIQUE_KEYS]: FirestoreEntityUniqueKeyDocument;
|
|
33
34
|
};
|
|
34
35
|
export type FirestoreCollectionDocumentTypeMap = {
|
|
35
36
|
[K in FirestoreCollections]: FirestoreCollectionDocumentTypeMapBase[K];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FrenchDepartments, FrenchRcsCities, SupportedFrenchCompanyLegalForms } from "../../../../enums";
|
|
2
2
|
export type FrenchCompanyRegistration = {
|
|
3
3
|
shareCapitalInEuros?: number;
|
|
4
4
|
siren: string;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import type { EntityRegistrationIdentifierVerificationSource, EntityRegistrationIdentifierVerificationStatus } from "../../enums";
|
|
1
2
|
import type { LegalAddress } from "../company";
|
|
2
|
-
import type {
|
|
3
|
+
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
4
|
+
import type { EntityRegistration } from "./EntityRegistration.type";
|
|
3
5
|
import type { EntityVatDetails } from "./EntityVatDetails.type";
|
|
4
6
|
export type EntityLegalDetails = {
|
|
5
7
|
legalName: string;
|
|
6
8
|
legalAddress: LegalAddress;
|
|
7
9
|
vatDetails: EntityVatDetails;
|
|
8
10
|
registration: EntityRegistration;
|
|
11
|
+
registrationIdentifierVerification?: {
|
|
12
|
+
source: EntityRegistrationIdentifierVerificationSource;
|
|
13
|
+
status: EntityRegistrationIdentifierVerificationStatus;
|
|
14
|
+
lastVerificationDate: FirestoreTimestamp;
|
|
15
|
+
};
|
|
9
16
|
};
|
|
@@ -2,4 +2,4 @@ export * from "./FirestoreEntityDocument.type";
|
|
|
2
2
|
export * from "./EntityLegalDetails.type";
|
|
3
3
|
export * from "./EntityLegalRepresentative.type";
|
|
4
4
|
export * from "./EntityVatDetails.type";
|
|
5
|
-
export * from "./EntityRegistration.
|
|
5
|
+
export * from "./EntityRegistration.type";
|
|
@@ -18,4 +18,4 @@ __exportStar(require("./FirestoreEntityDocument.type"), exports);
|
|
|
18
18
|
__exportStar(require("./EntityLegalDetails.type"), exports);
|
|
19
19
|
__exportStar(require("./EntityLegalRepresentative.type"), exports);
|
|
20
20
|
__exportStar(require("./EntityVatDetails.type"), exports);
|
|
21
|
-
__exportStar(require("./EntityRegistration.
|
|
21
|
+
__exportStar(require("./EntityRegistration.type"), exports);
|