@doctocar/tooling 0.3.1-16 → 0.3.1-17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emails/types/company/CompanyVatRejectedEmailData.type.d.ts +5 -0
- package/dist/emails/types/company/CompanyVatRejectedEmailData.type.js +2 -0
- package/dist/emails/types/company/CompanyVatVerifiedEmailData.type.d.ts +3 -0
- package/dist/emails/types/company/CompanyVatVerifiedEmailData.type.js +2 -0
- package/dist/emails/types/company/index.d.ts +2 -0
- package/dist/emails/types/company/index.js +18 -0
- package/dist/emails/types/customer/CustomerEntityCreatedEmailData.type.d.ts +1 -0
- package/dist/emails/types/customer/CustomerEntityCreatedEmailData.type.js +2 -0
- package/dist/emails/types/customer/CustomerWelcomeEmailData.type.d.ts +1 -0
- package/dist/emails/types/customer/CustomerWelcomeEmailData.type.js +2 -0
- package/dist/emails/types/entity/EntityCreatedEmailData.type.d.ts +1 -0
- package/dist/emails/types/entity/EntityCreatedEmailData.type.js +2 -0
- package/dist/emails/types/professional/ProfessionalOnboardingCompletedEmailData.type.d.ts +1 -0
- package/dist/emails/types/professional/ProfessionalOnboardingCompletedEmailData.type.js +2 -0
- package/dist/errors/enums/cloudFunctions/customers/CreateCustomerVehicleErrorCodes.enum.d.ts +14 -0
- package/dist/errors/enums/cloudFunctions/customers/CreateCustomerVehicleErrorCodes.enum.js +18 -0
- package/dist/errors/enums/cloudFunctions/customers/DeleteCustomerVehicleErrorCodes.enum.d.ts +7 -0
- package/dist/errors/enums/cloudFunctions/customers/DeleteCustomerVehicleErrorCodes.enum.js +11 -0
- package/dist/errors/enums/cloudFunctions/customers/ProcessCustomerUserOnboardingErrorCodes.enum.d.ts +22 -0
- package/dist/errors/enums/cloudFunctions/customers/ProcessCustomerUserOnboardingErrorCodes.enum.js +26 -0
- package/dist/errors/enums/cloudFunctions/customers/UpdateCustomerVehicleErrorCodes.enum.d.ts +14 -0
- package/dist/errors/enums/cloudFunctions/customers/UpdateCustomerVehicleErrorCodes.enum.js +18 -0
- package/dist/errors/enums/cloudFunctions/customers/index.d.ts +1 -0
- package/dist/errors/enums/cloudFunctions/customers/index.js +17 -0
- package/dist/errors/enums/cloudFunctions/entities/AcceptEntityMemberInviteErrorCodes.enum.d.ts +15 -0
- package/dist/errors/enums/cloudFunctions/entities/AcceptEntityMemberInviteErrorCodes.enum.js +19 -0
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserDeleteOrderServicePhotosErrorCodes.enum.d.ts +9 -0
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserDeleteOrderServicePhotosErrorCodes.enum.js +13 -0
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserUploadOrderServicePhotosErrorCodes.enum.d.ts +13 -0
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserUploadOrderServicePhotosErrorCodes.enum.js +17 -0
- package/dist/errors/enums/cloudFunctions/professionals/CreateProfessionalUserSlotDocumentErrorCodes.enum.d.ts +4 -0
- package/dist/errors/enums/cloudFunctions/professionals/CreateProfessionalUserSlotDocumentErrorCodes.enum.js +8 -0
- package/dist/errors/enums/cloudFunctions/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosErrorCodes.enum.d.ts +20 -0
- package/dist/errors/enums/cloudFunctions/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosErrorCodes.enum.js +24 -0
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserLiabilityInsuranceErrorCodes.enum.d.ts +8 -0
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserLiabilityInsuranceErrorCodes.enum.js +12 -0
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserServicesLocationErrorCodes.enum.d.ts +8 -0
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserServicesLocationErrorCodes.enum.js +12 -0
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserSlotDocumentErrorCodes.enum.d.ts +4 -0
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserSlotDocumentErrorCodes.enum.js +8 -0
- package/dist/errors/enums/cloudFunctions/professionals/index.d.ts +4 -0
- package/dist/errors/enums/cloudFunctions/professionals/index.js +20 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/ProcessServiceProviderUserOnboardingBaseCompanyInfosErrorCodes.enum.d.ts +20 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/ProcessServiceProviderUserOnboardingBaseCompanyInfosErrorCodes.enum.js +24 -0
- package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteRequestData.type.d.ts +4 -0
- package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInvitePayload.type.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInvitePayload.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/GooglePlaceAutocompleteSuggestion.type.d.ts +11 -0
- package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/GooglePlaceAutocompleteSuggestion.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosRequestData.type.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosRequestData.type.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/stripe/CreateStripeUserAccountLinkRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/stripe/CreateStripeUserAccountLinkRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/stripe/CreateStripeUserAccountLinkResponseData.type.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/stripe/CreateStripeUserAccountLinkResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/AcceptEntityInviteRequestData.type.d.ts +4 -0
- package/dist/firebase/cloudFunctions/types/users/AcceptEntityInviteRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/AcceptEntityInviteResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/AcceptEntityInviteResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/CreateCustomerVehicleRequestData.type.d.ts +11 -0
- package/dist/firebase/cloudFunctions/types/users/customers/CreateCustomerVehicleRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/CreateCustomerVehicleResponseData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/users/customers/CreateCustomerVehicleResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/DeleteCustomerVehicleRequestData.type.d.ts +4 -0
- package/dist/firebase/cloudFunctions/types/users/customers/DeleteCustomerVehicleRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/DeleteCustomerVehicleResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/customers/DeleteCustomerVehicleResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingRequestData.type.d.ts +15 -0
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/UpdateCustomerVehicleRequestData.type.d.ts +12 -0
- package/dist/firebase/cloudFunctions/types/users/customers/UpdateCustomerVehicleRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/UpdateCustomerVehicleResponseData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/users/customers/UpdateCustomerVehicleResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/index.d.ts +6 -0
- package/dist/firebase/cloudFunctions/types/users/customers/index.js +22 -0
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingPayload.type.d.ts +14 -0
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingPayload.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingRequestData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/index.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/index.js +19 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentRequestData.type.d.ts +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentRequestData.type.d.ts +4 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosRequestData.type.d.ts +14 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceRequestData.type.d.ts +4 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceRequestData.type.d.ts +15 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/index.d.ts +11 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/index.js +27 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentResponseData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestOneTimeSlot.type.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestOneTimeSlot.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestRecurringSlot.type.d.ts +6 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestRecurringSlot.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestSlotDocument.type.d.ts +4 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestSlotDocument.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestTimeOffSlot.type.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestTimeOffSlot.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentRequestData.type.d.ts +6 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/index.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/index.js +21 -0
- package/dist/firebase/firestore/constants/maximumCustomerVehicles.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/maximumCustomerVehicles.constant.js +4 -0
- package/dist/firebase/firestore/constants/minimumCustomerVehicles.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/minimumCustomerVehicles.constant.js +4 -0
- package/dist/firebase/firestore/constants/orders/index.d.ts +2 -0
- package/dist/firebase/firestore/constants/orders/index.js +18 -0
- package/dist/firebase/firestore/constants/orders/orderIdPrefix.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/orders/orderIdPrefix.constant.js +4 -0
- package/dist/firebase/firestore/constants/orders/productionOrderIdPrefix.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/orders/productionOrderIdPrefix.constant.js +4 -0
- package/dist/firebase/firestore/constants/orders/sandboxOrderIdPrefix.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/orders/sandboxOrderIdPrefix.constant.js +4 -0
- package/dist/firebase/firestore/enums/documents/DocumentValidationStatus.enum.d.ts +5 -0
- package/dist/firebase/firestore/enums/documents/DocumentValidationStatus.enum.js +9 -0
- package/dist/firebase/firestore/enums/documents/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/documents/index.js +17 -0
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderComplianceStatus.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderComplianceStatus.enum.js +8 -0
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonBookableReason.enum.d.ts +16 -0
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonBookableReason.enum.js +20 -0
- package/dist/firebase/firestore/enums/orders/OrderProfessionalServiceDetailsPhotoMoment.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/orders/OrderProfessionalServiceDetailsPhotoMoment.enum.js +8 -0
- package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoContext.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoContext.enum.js +8 -0
- package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.d.ts +9 -0
- package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.js +13 -0
- package/dist/firebase/firestore/enums/professionalUser/ProfessionalNonBookableReason.enum.d.ts +13 -0
- package/dist/firebase/firestore/enums/professionalUser/ProfessionalNonBookableReason.enum.js +17 -0
- package/dist/firebase/firestore/enums/professionalUser/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/professionalUser/index.js +17 -0
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserComplianceStatus.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserComplianceStatus.enum.js +8 -0
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonBookableReason.enum.d.ts +6 -0
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonBookableReason.enum.js +10 -0
- package/dist/firebase/firestore/enums/services/ProfessionalServicesCategoryTypes.enum.d.ts +3 -0
- package/dist/firebase/firestore/enums/services/ProfessionalServicesCategoryTypes.enum.js +7 -0
- package/dist/firebase/firestore/enums/services/ProfessionalServicesTypes.enum.d.ts +10 -0
- package/dist/firebase/firestore/enums/services/ProfessionalServicesTypes.enum.js +16 -0
- package/dist/firebase/firestore/enums/users/customers/CustomerAccountTypes.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/users/customers/CustomerAccountTypes.enum.js +8 -0
- package/dist/firebase/firestore/enums/users/customers/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/users/customers/index.js +17 -0
- package/dist/firebase/firestore/enums/users/professionals/ProfessionalOnboardingStepNames.enum.d.ts +6 -0
- package/dist/firebase/firestore/enums/users/professionals/ProfessionalOnboardingStepNames.enum.js +10 -0
- package/dist/firebase/firestore/enums/users/professionals/ProfessionalOnboardingStepStatus.enum.d.ts +5 -0
- package/dist/firebase/firestore/enums/users/professionals/ProfessionalOnboardingStepStatus.enum.js +9 -0
- package/dist/firebase/firestore/types/company/CompanyLegalRepresentative.type.d.ts +6 -0
- package/dist/firebase/firestore/types/company/CompanyLegalRepresentative.type.js +2 -0
- package/dist/firebase/firestore/types/company/CompanyRegistrationPerCountry.type.d.ts +5 -0
- package/dist/firebase/firestore/types/company/CompanyRegistrationPerCountry.type.js +2 -0
- package/dist/firebase/firestore/types/company/CompanyVATDetails.type.d.ts +15 -0
- package/dist/firebase/firestore/types/company/CompanyVATDetails.type.js +2 -0
- package/dist/firebase/firestore/types/company/CustomerCompanyDetails.type.d.ts +7 -0
- package/dist/firebase/firestore/types/company/CustomerCompanyDetails.type.js +2 -0
- package/dist/firebase/firestore/types/company/ProfessionalCompanyDetails.type.d.ts +11 -0
- package/dist/firebase/firestore/types/company/ProfessionalCompanyDetails.type.js +2 -0
- package/dist/firebase/firestore/types/companyUnique/FirestoreCompanyUniqueDocument.type.d.ts +6 -0
- package/dist/firebase/firestore/types/companyUnique/FirestoreCompanyUniqueDocument.type.js +2 -0
- package/dist/firebase/firestore/types/companyUnique/index.d.ts +1 -0
- package/dist/firebase/firestore/types/companyUnique/index.js +17 -0
- package/dist/firebase/firestore/types/entities/EntityRegistration.enum.d.ts +6 -0
- package/dist/firebase/firestore/types/entities/EntityRegistration.enum.js +2 -0
- package/dist/firebase/firestore/types/order/FirestoreOrderProfessionalServiceDetails.type.d.ts +10 -0
- package/dist/firebase/firestore/types/order/FirestoreOrderProfessionalServiceDetails.type.js +2 -0
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientProfessionalServicesDetailsPublicImagesUrls.type.d.ts +5 -0
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientProfessionalServicesDetailsPublicImagesUrls.type.js +2 -0
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos.type.d.ts +3 -0
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos.type.js +2 -0
- package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrder.type.d.ts +26 -0
- package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrder.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocument.type.d.ts +46 -0
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocument.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.d.ts +4 -0
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.d.ts +4 -0
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/index.d.ts +3 -0
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/index.js +19 -0
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocument.type.d.ts +46 -0
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocument.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.d.ts +4 -0
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.d.ts +4 -0
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/index.d.ts +3 -0
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/index.js +19 -0
- package/dist/firebase/firestore/types/services/ServiceProviderServiceDetails.type.d.ts +8 -0
- package/dist/firebase/firestore/types/services/ServiceProviderServiceDetails.type.js +2 -0
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentCustomerInfos.type.d.ts +44 -0
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentCustomerInfos.type.js +2 -0
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentProfessionalInfos.type.d.ts +78 -0
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentProfessionalInfos.type.js +3 -0
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocument.type.d.ts +46 -0
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocument.type.js +2 -0
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.d.ts +4 -0
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.js +2 -0
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.d.ts +4 -0
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.js +2 -0
- package/dist/firebase/firestore/utils/company/__tests__/entityDocumentSupportsOrganizationMembers.util.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/company/__tests__/entityDocumentSupportsOrganizationMembers.util.test.js +56 -0
- package/dist/firebase/firestore/utils/company/__tests__/isIndividualCompany.util.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/company/__tests__/isIndividualCompany.util.test.js +52 -0
- package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.d.ts +6 -0
- package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.js +20 -0
- package/dist/firebase/firestore/utils/company/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/company/index.js +17 -0
- package/dist/firebase/firestore/utils/company/isIndividualCompany.util.d.ts +2 -0
- package/dist/firebase/firestore/utils/company/isIndividualCompany.util.js +19 -0
- package/dist/firebase/firestore/utils/dataValidators/company/__tests__/isCompanyVatValid.util.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/dataValidators/company/__tests__/isCompanyVatValid.util.test.js +30 -0
- package/dist/firebase/firestore/utils/dataValidators/company/__tests__/isLegalAddressValid.util.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/dataValidators/company/__tests__/isLegalAddressValid.util.test.js +24 -0
- package/dist/firebase/firestore/utils/dataValidators/company/isCompanyVatValid.util.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/company/isCompanyVatValid.util.js +10 -0
- package/dist/firebase/firestore/utils/dataValidators/company/isLegalAddressValid.util.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/company/isLegalAddressValid.util.js +7 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalService.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalService.test.js +177 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServicePricingAndDurationForVehicle.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServicePricingAndDurationForVehicle.test.js +129 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServiceType.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServiceType.test.js +15 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidServicePricingAndDurationForVehicle.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidServicePricingAndDurationForVehicle.test.js +136 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidVehicleForProfessionalService.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidVehicleForProfessionalService.test.js +32 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/index.d.ts +3 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/index.js +19 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalService.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalService.js +44 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServicePricingAndDurationForVehicle.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServicePricingAndDurationForVehicle.js +25 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServiceType.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServiceType.js +7 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidServicePricingAndDurationForVehicle.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidServicePricingAndDurationForVehicle.js +29 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidVehicleForProfessionalService.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidVehicleForProfessionalService.js +11 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServiceParams.type.d.ts +6 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServiceParams.type.js +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServicePricingAndDurationForVehicleParams.type.d.ts +5 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServicePricingAndDurationForVehicleParams.type.js +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidServicePricingAndDurationForVehicleParams.type.d.ts +5 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidServicePricingAndDurationForVehicleParams.type.js +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidVehicleForProfessionalServiceParams.type.d.ts +6 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidVehicleForProfessionalServiceParams.type.js +2 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/index.d.ts +3 -0
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/index.js +19 -0
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidVehicleForProfessionalServiceParams.type.d.ts +6 -0
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidVehicleForProfessionalServiceParams.type.js +2 -0
- package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.test.js +56 -0
- package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.util.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.util.test.js +56 -0
- package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.d.ts +6 -0
- package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.js +20 -0
- package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.util.d.ts +6 -0
- package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.util.js +20 -0
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.service.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.service.test.js +261 -0
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.test.js +259 -0
- package/dist/firebase/firestore/utils/order/__tests__/getOrderCustomerAndProfessionalIds.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/order/__tests__/getOrderCustomerAndProfessionalIds.test.js +27 -0
- package/dist/firebase/firestore/utils/order/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.utils.d.ts +2 -0
- package/dist/firebase/firestore/utils/order/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.utils.js +49 -0
- package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.d.ts +2 -0
- package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.js +48 -0
- package/dist/firebase/firestore/utils/order/getOrderCustomerAndProfessionalIds.d.ts +2 -0
- package/dist/firebase/firestore/utils/order/getOrderCustomerAndProfessionalIds.js +9 -0
- package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsProps.type.d.ts +8 -0
- package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsProps.type.js +2 -0
- package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsReturn.type.d.ts +6 -0
- package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsReturn.type.js +2 -0
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsParams.type.d.ts +4 -0
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsParams.type.js +2 -0
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsResult.type.d.ts +4 -0
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsResult.type.js +2 -0
- package/dist/firebase/firestore/utils/services/__tests__/areAllRequestedProfessionalUserServicesActiveForVehicleType.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/services/__tests__/areAllRequestedProfessionalUserServicesActiveForVehicleType.test.js +145 -0
- package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.test.js +12 -0
- package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.util.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.util.test.js +12 -0
- package/dist/firebase/firestore/utils/services/__tests__/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.util.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/services/__tests__/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.util.test.js +225 -0
- package/dist/firebase/firestore/utils/services/__tests__/getActiveServicePricingAndDurationForVehicleOrThrow.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/services/__tests__/getActiveServicePricingAndDurationForVehicleOrThrow.test.js +225 -0
- package/dist/firebase/firestore/utils/services/__tests__/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/services/__tests__/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.test.js +225 -0
- package/dist/firebase/firestore/utils/services/__tests__/getAvailableServiceProviderServicesForVehicleType.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/services/__tests__/getAvailableServiceProviderServicesForVehicleType.test.js +295 -0
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.d.ts +2 -0
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.js +14 -0
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.util.d.ts +2 -0
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.util.js +14 -0
- package/dist/firebase/firestore/utils/services/computeTotalProfessionalServiceDurationInMinutesForVehicleType.util.d.ts +2 -0
- package/dist/firebase/firestore/utils/services/computeTotalProfessionalServiceDurationInMinutesForVehicleType.util.js +16 -0
- package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.d.ts +2 -0
- package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.js +6 -0
- package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.util.d.ts +2 -0
- package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.util.js +6 -0
- package/dist/firebase/firestore/utils/services/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.d.ts +3 -0
- package/dist/firebase/firestore/utils/services/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.js +19 -0
- package/dist/firebase/firestore/utils/services/getActiveServicePricingAndDurationForVehicleOrThrow.d.ts +3 -0
- package/dist/firebase/firestore/utils/services/getActiveServicePricingAndDurationForVehicleOrThrow.js +19 -0
- package/dist/firebase/firestore/utils/services/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.d.ts +3 -0
- package/dist/firebase/firestore/utils/services/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.js +19 -0
- package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesForVehicleType.d.ts +6 -0
- package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesForVehicleType.js +29 -0
- package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesTypesForVehicleType.d.ts +6 -0
- package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesTypesForVehicleType.js +31 -0
- package/dist/firebase/firestore/utils/services/types/AreAllRequestedProfessionalUserServicesActiveForVehicleTypeArgs.type..d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/AreAllRequestedProfessionalUserServicesActiveForVehicleTypeArgs.type..js +2 -0
- package/dist/firebase/firestore/utils/services/types/GetActiveProfessionalServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/GetActiveProfessionalServicePricingAndDurationForVehicleOrThrowParams.type.js +2 -0
- package/dist/firebase/firestore/utils/services/types/GetActiveServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/GetActiveServicePricingAndDurationForVehicleOrThrowParams.type.js +2 -0
- package/dist/firebase/firestore/utils/services/types/GetActiveServiceProviderServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/GetActiveServiceProviderServicePricingAndDurationForVehicleOrThrowParams.type.js +2 -0
- package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesForVehicleTypeParams.type.d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesForVehicleTypeParams.type.js +2 -0
- package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesTypesForVehicleTypeParams.type.d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesTypesForVehicleTypeParams.type.js +2 -0
- package/dist/firebase/firestore/utils/stubs/company/customerCompanyDetailsStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/company/customerCompanyDetailsStub.js +21 -0
- package/dist/firebase/firestore/utils/stubs/company/professionalCompanyDetailsStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/company/professionalCompanyDetailsStub.js +32 -0
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientProfessionalServicesDetailsPublicImagesUrlsStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientProfessionalServicesDetailsPublicImagesUrlsStub.js +25 -0
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderProfessionalServiceDetailsStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderProfessionalServiceDetailsStub.js +18 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/firestoreServiceProviderPublicDocumentStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/firestoreServiceProviderPublicDocumentStub.js +36 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/index.js +17 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/firestoreServiceProviderUserPublicDocumentStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/firestoreServiceProviderUserPublicDocumentStub.js +36 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/index.js +17 -0
- package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceDetailsStub.d.ts +5 -0
- package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceDetailsStub.js +21 -0
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentCustomerInfosStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentCustomerInfosStub.js +54 -0
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentProfessionalInfosStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentProfessionalInfosStub.js +60 -0
- package/dist/firebase/firestore/utils/users/__tests__/assertCustomerUserCanBookServices.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/users/__tests__/assertCustomerUserCanBookServices.test.js +257 -0
- package/dist/firebase/firestore/utils/users/__tests__/assertProfessionalUserIsBookable.util.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/users/__tests__/assertProfessionalUserIsBookable.util.test.js +400 -0
- package/dist/firebase/firestore/utils/users/assertCustomerUserCanBookServices.d.ts +3 -0
- package/dist/firebase/firestore/utils/users/assertCustomerUserCanBookServices.js +58 -0
- package/dist/firebase/firestore/utils/users/assertProfessionalUserIsBookable.util.d.ts +3 -0
- package/dist/firebase/firestore/utils/users/assertProfessionalUserIsBookable.util.js +115 -0
- package/dist/firebase/firestore/utils/users/errors/enums/AssertCustomerUserCanBookServicesErrorCodes.enum.d.ts +7 -0
- package/dist/firebase/firestore/utils/users/errors/enums/AssertCustomerUserCanBookServicesErrorCodes.enum.js +11 -0
- package/dist/firebase/firestore/utils/users/errors/enums/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/users/errors/enums/index.js +17 -0
- package/dist/firebase/firestore/utils/users/errors/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/users/errors/index.js +17 -0
- package/dist/firebase/firestore/utils/users/index.d.ts +3 -0
- package/dist/firebase/firestore/utils/users/index.js +19 -0
- package/dist/firebase/firestore/utils/users/types/BookableProfessionalUserDocument.type.d.ts +35 -0
- package/dist/firebase/firestore/utils/users/types/BookableProfessionalUserDocument.type.js +2 -0
- package/dist/firebase/firestore/utils/users/types/BookingReadyCustomerUserDocument.type.d.ts +13 -0
- package/dist/firebase/firestore/utils/users/types/BookingReadyCustomerUserDocument.type.js +2 -0
- package/dist/firebase/firestore/utils/users/types/index.d.ts +2 -0
- package/dist/firebase/firestore/utils/users/types/index.js +18 -0
- package/dist/firebase/storage/enums/FirebaseStorageProfessionalUsersPublicSubPaths.enum.d.ts +3 -0
- package/dist/firebase/storage/enums/FirebaseStorageProfessionalUsersPublicSubPaths.enum.js +7 -0
- package/dist/gcp/cloudTask/types/OnTaskRecomputeProfessionalBookabilityEnvelope.type.d.ts +4 -0
- package/dist/gcp/cloudTask/types/OnTaskRecomputeProfessionalBookabilityEnvelope.type.js +2 -0
- package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderAvailabilityEnvelope.type.d.ts +4 -0
- package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderAvailabilityEnvelope.type.js +2 -0
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeProfessionalBookabilityEnvelopeStub.d.ts +2 -0
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeProfessionalBookabilityEnvelopeStub.js +19 -0
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderAvailabilityEnvelopeStub.d.ts +2 -0
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderAvailabilityEnvelopeStub.js +19 -0
- package/dist/gcp/enums/GoogleAddressComponentType.enum.d.ts +11 -0
- package/dist/gcp/enums/GoogleAddressComponentType.enum.js +15 -0
- package/dist/gcp/enums/index.d.ts +1 -0
- package/dist/gcp/enums/index.js +17 -0
- package/dist/gcp/geocode/utils/__tests__/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.test.d.ts +1 -0
- package/dist/gcp/geocode/utils/__tests__/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.test.js +34 -0
- package/dist/gcp/geocode/utils/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.d.ts +2 -0
- package/dist/gcp/geocode/utils/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.js +12 -0
- package/dist/gcp/place/enums/PlaceDetailsAddressType.enum.d.ts +11 -0
- package/dist/gcp/place/enums/PlaceDetailsAddressType.enum.js +15 -0
- package/dist/gcp/place/enums/index.d.ts +1 -0
- package/dist/gcp/place/enums/index.js +17 -0
- package/dist/gcp/place/types/PlaceDetailsAddressComponent.type.d.ts +6 -0
- package/dist/gcp/place/types/PlaceDetailsAddressComponent.type.js +2 -0
- package/dist/gcp/place/utils/__tests__/getComponentFromGooglePlaceDetailsAddressComponents.util.test.d.ts +1 -0
- package/dist/gcp/place/utils/__tests__/getComponentFromGooglePlaceDetailsAddressComponents.util.test.js +78 -0
- package/dist/gcp/place/utils/getComponentFromGooglePlaceDetailsAddressComponents.util.d.ts +3 -0
- package/dist/gcp/place/utils/getComponentFromGooglePlaceDetailsAddressComponents.util.js +7 -0
- package/dist/gcp/place/utils/index.d.ts +2 -0
- package/dist/gcp/place/utils/index.js +18 -0
- package/dist/gcp/place/utils/types/GetComponentFromGooglePlaceDetailsAddressComponentsParams.type.d.ts +6 -0
- package/dist/gcp/place/utils/types/GetComponentFromGooglePlaceDetailsAddressComponentsParams.type.js +2 -0
- package/dist/gcp/place/utils/types/index.d.ts +1 -0
- package/dist/gcp/place/utils/types/index.js +17 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityBookableChangedMessage.type.d.ts +3 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityBookableChangedMessage.type.js +2 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNotCompliantAnymoreMessage.type.d.ts +3 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNotCompliantAnymoreMessage.type.js +2 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNowCompliantMessage.type.d.ts +3 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNowCompliantMessage.type.js +2 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderUserComplianceRecomputeRequestedMessage.type.d.ts +4 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderUserComplianceRecomputeRequestedMessage.type.js +2 -0
- package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileRecomputeRequestedMessage.type.d.ts +3 -0
- package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileRecomputeRequestedMessage.type.js +2 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityBookableChangedMessageStub.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityBookableChangedMessageStub.js +9 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNotCompliantAnymoreMessageStub.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNotCompliantAnymoreMessageStub.js +9 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNowCompliantMessageStub.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNowCompliantMessageStub.js +9 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderUserComplianceRecomputeRequestedMessageStub.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderUserComplianceRecomputeRequestedMessageStub.js +10 -0
- package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileRecomputeRequestedMessageStub.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileRecomputeRequestedMessageStub.js +9 -0
- package/dist/gcp/types/GoogleAddressComponent.type.d.ts +6 -0
- package/dist/gcp/types/GoogleAddressComponent.type.js +2 -0
- package/dist/gcp/types/index.d.ts +1 -0
- package/dist/gcp/types/index.js +17 -0
- package/dist/gcp/utils/__tests__/getGoogleAddressComponentFromAddressComponentsList.test.d.ts +1 -0
- package/dist/gcp/utils/__tests__/getGoogleAddressComponentFromAddressComponentsList.test.js +78 -0
- package/dist/gcp/utils/getGoogleAddressComponentFromAddressComponentsList.d.ts +3 -0
- package/dist/gcp/utils/getGoogleAddressComponentFromAddressComponentsList.js +6 -0
- package/dist/gcp/utils/index.d.ts +2 -0
- package/dist/gcp/utils/index.js +18 -0
- package/dist/gcp/utils/types/GetGoogleAddressComponentFromAddressComponentsListParams.type.d.ts +6 -0
- package/dist/gcp/utils/types/GetGoogleAddressComponentFromAddressComponentsListParams.type.js +2 -0
- package/dist/gcp/utils/types/index.d.ts +1 -0
- package/dist/gcp/utils/types/index.js +17 -0
- package/dist/notifications/enums/CompanyNotificationEventType.d.ts +4 -0
- package/dist/notifications/enums/CompanyNotificationEventType.js +8 -0
- package/dist/notifications/enums/NotificationChannels.enum.d.ts +5 -0
- package/dist/notifications/enums/NotificationChannels.enum.js +9 -0
- package/dist/notifications/pushNotifications/enums/CompanyPushNotificationType.d.ts +4 -0
- package/dist/notifications/pushNotifications/enums/CompanyPushNotificationType.js +8 -0
- package/dist/notifications/pushNotifications/maps/CompanyPushNotificationDataMap.d.ts +1 -0
- package/dist/notifications/pushNotifications/maps/CompanyPushNotificationDataMap.js +2 -0
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationFailedPushNotificationData.type.d.ts +4 -0
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationFailedPushNotificationData.type.js +2 -0
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationSucceededPushNotificationData.type.d.ts +4 -0
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationSucceededPushNotificationData.type.js +2 -0
- package/dist/notifications/pushNotifications/types/company/index.d.ts +2 -0
- package/dist/notifications/pushNotifications/types/company/index.js +18 -0
- package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationFailedPushNotificationData.type.d.ts +4 -0
- package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationFailedPushNotificationData.type.js +2 -0
- package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationSucceededPushNotificationData.type.d.ts +4 -0
- package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationSucceededPushNotificationData.type.js +2 -0
- package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationFailedPushNotificationData.type.d.ts +4 -0
- package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationFailedPushNotificationData.type.js +2 -0
- package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationSucceededPushNotificationData.type.d.ts +4 -0
- package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationSucceededPushNotificationData.type.js +2 -0
- package/dist/utils/format/__tests__/escapeHtml.util.test.d.ts +1 -0
- package/dist/utils/format/__tests__/escapeHtml.util.test.js +32 -0
- package/dist/utils/format/__tests__/formatPriceInCents.util.test.d.ts +1 -0
- package/dist/utils/format/__tests__/formatPriceInCents.util.test.js +34 -0
- package/dist/utils/format/escapeHtml.util.d.ts +1 -0
- package/dist/utils/format/escapeHtml.util.js +11 -0
- package/dist/utils/format/formatPriceInCents.util.d.ts +2 -0
- package/dist/utils/format/formatPriceInCents.util.js +28 -0
- package/dist/utils/vat/__tests__/extractVATNumber.util.test.d.ts +1 -0
- package/dist/utils/vat/__tests__/extractVATNumber.util.test.js +39 -0
- package/dist/utils/vat/__tests__/validateVATFormat.util.test.d.ts +1 -0
- package/dist/utils/vat/__tests__/validateVATFormat.util.test.js +329 -0
- package/dist/utils/vat/extractVATNumber.util.d.ts +4 -0
- package/dist/utils/vat/extractVATNumber.util.js +10 -0
- package/dist/utils/vat/types/ValidateVATFormatArgs.type.d.ts +4 -0
- package/dist/utils/vat/types/ValidateVATFormatArgs.type.js +2 -0
- package/dist/utils/vat/validateVATFormat.util.d.ts +2 -0
- package/dist/utils/vat/validateVATFormat.util.js +24 -0
- package/package.json +1 -1
package/dist/firebase/firestore/types/order/FirestoreOrderProfessionalServiceDetails.type.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OrderProfessionalServiceDetailsPhotoContext, ServicesTypes } from "../../enums";
|
|
2
|
+
import type { FirestoreImageVariantSet } from "../image";
|
|
3
|
+
export type FirestoreOrderProfessionalServiceDetails = {
|
|
4
|
+
id: string;
|
|
5
|
+
pricingLineId: string;
|
|
6
|
+
type: ServicesTypes;
|
|
7
|
+
photosStoragePaths: Record<OrderProfessionalServiceDetailsPhotoContext, Array<FirestoreImageVariantSet>>;
|
|
8
|
+
durationInMinutes: number;
|
|
9
|
+
isSubservice?: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos } from "./FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos.type";
|
|
2
|
+
export type FirestoreOrderClientProfessionalServicesDetailsPublicImagesUrls = Array<{
|
|
3
|
+
professionalServiceDetailsId: string;
|
|
4
|
+
photos: FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos;
|
|
5
|
+
}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { OrderProfessionalServiceDetailsPhotoContext } from "../../../enums";
|
|
2
|
+
import type { FirestoreImageVariantSet } from "../../image";
|
|
3
|
+
export type FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos = Record<OrderProfessionalServiceDetailsPhotoContext, Array<FirestoreImageVariantSet>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SupportedCountryIsoCodes, SupportedFrenchCompanyLegalForms } from "../../../../../enums";
|
|
2
|
+
import type { EntityLegalType } from "../../../enums";
|
|
3
|
+
import type { LegalAddress } from "../../company";
|
|
4
|
+
import type { EntityLegalRepresentative } from "../../entities";
|
|
5
|
+
type EntitySnapshotForOrderBase = {
|
|
6
|
+
legalName: string;
|
|
7
|
+
billingAddress: LegalAddress;
|
|
8
|
+
legalRepresentative: EntityLegalRepresentative;
|
|
9
|
+
};
|
|
10
|
+
export type EntitySnapshotForOrder = (EntitySnapshotForOrderBase & {
|
|
11
|
+
legalType: EntityLegalType.INDIVIDUAL;
|
|
12
|
+
}) | (EntitySnapshotForOrderBase & {
|
|
13
|
+
legalType: EntityLegalType.COMPANY;
|
|
14
|
+
registration: {
|
|
15
|
+
countryIsoCode: SupportedCountryIsoCodes;
|
|
16
|
+
identifier: string;
|
|
17
|
+
secondaryIdentifier?: string;
|
|
18
|
+
legalForm: SupportedFrenchCompanyLegalForms;
|
|
19
|
+
};
|
|
20
|
+
legalAddress: LegalAddress;
|
|
21
|
+
vatDetails: {
|
|
22
|
+
vatNumber: string | null;
|
|
23
|
+
isVatExempt: boolean;
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SupportedCountryIsoCodes } from "../../../../enums";
|
|
2
|
+
import type { ProfessionalBadgesTypes, ServicesTypes } from "../../enums";
|
|
3
|
+
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
4
|
+
import type { FirestoreImageVariantSet } from "../image";
|
|
5
|
+
import type { ServiceProviderServiceDetails } from "../services/ServiceProviderServiceDetails.type";
|
|
6
|
+
import type { FirestoreServiceProviderPublicDocumentReviewAggregates } from "./FirestoreServiceProviderPublicDocumentReviewAggregates.type";
|
|
7
|
+
import type { FirestoreServiceProviderPublicDocumentServicesLocation } from "./FirestoreServiceProviderPublicDocumentServicesLocation.type";
|
|
8
|
+
export type FirestoreServiceProviderPublicDocument = {
|
|
9
|
+
createdAt: FirestoreTimestamp;
|
|
10
|
+
updatedAt: FirestoreTimestamp;
|
|
11
|
+
companyNickname: string;
|
|
12
|
+
country: SupportedCountryIsoCodes;
|
|
13
|
+
isVATExempt: boolean;
|
|
14
|
+
profile?: {
|
|
15
|
+
photo?: {
|
|
16
|
+
storagePaths: FirestoreImageVariantSet;
|
|
17
|
+
updatedAt: FirestoreTimestamp;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
coverPicture?: {
|
|
21
|
+
storagePaths: FirestoreImageVariantSet;
|
|
22
|
+
updatedAt: FirestoreTimestamp;
|
|
23
|
+
};
|
|
24
|
+
publicDescription?: string;
|
|
25
|
+
activeServicesVehiclesCombos: string[];
|
|
26
|
+
servicesDetails: Partial<{
|
|
27
|
+
[T in ServicesTypes]: ServiceProviderServiceDetails<T>;
|
|
28
|
+
}>;
|
|
29
|
+
reviewAggregates: FirestoreServiceProviderPublicDocumentReviewAggregates;
|
|
30
|
+
servicesLocation?: FirestoreServiceProviderPublicDocumentServicesLocation;
|
|
31
|
+
availability: {
|
|
32
|
+
horizonStart: FirestoreTimestamp;
|
|
33
|
+
horizonDays: number;
|
|
34
|
+
granularityMinutes: number;
|
|
35
|
+
encodedOpenTimeline: string;
|
|
36
|
+
encodedBlockedTimeline: string;
|
|
37
|
+
updatedAt: FirestoreTimestamp;
|
|
38
|
+
};
|
|
39
|
+
isBookable: boolean;
|
|
40
|
+
badges?: Partial<Record<ProfessionalBadgesTypes, {
|
|
41
|
+
grantedAt: FirestoreTimestamp;
|
|
42
|
+
expiredAt?: FirestoreTimestamp;
|
|
43
|
+
metadata?: Record<string, any>;
|
|
44
|
+
}>>;
|
|
45
|
+
isTest: boolean;
|
|
46
|
+
};
|
|
@@ -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("./FirestoreServiceProviderPublicDocument.type"), exports);
|
|
18
|
+
__exportStar(require("./FirestoreServiceProviderPublicDocumentServicesLocation.type"), exports);
|
|
19
|
+
__exportStar(require("./FirestoreServiceProviderPublicDocumentReviewAggregates.type"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SupportedCountryIsoCodes } from "../../../../enums";
|
|
2
|
+
import type { ProfessionalBadgesTypes, ServicesTypes } from "../../enums";
|
|
3
|
+
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
4
|
+
import type { FirestoreImageVariantSet } from "../image";
|
|
5
|
+
import type { ServiceProviderServiceDetails } from "../services/ServiceProviderServiceDetails.type";
|
|
6
|
+
import type { FirestoreServiceProviderUserPublicDocumentReviewAggregates } from "./FirestoreServiceProviderUserPublicDocumentReviewAggregates.type";
|
|
7
|
+
import type { FirestoreServiceProviderUserPublicDocumentServicesLocation } from "./FirestoreServiceProviderUserPublicDocumentServicesLocation.type";
|
|
8
|
+
export type FirestoreServiceProviderUserPublicDocument = {
|
|
9
|
+
createdAt: FirestoreTimestamp;
|
|
10
|
+
updatedAt: FirestoreTimestamp;
|
|
11
|
+
companyNickname: string;
|
|
12
|
+
country: SupportedCountryIsoCodes;
|
|
13
|
+
isVATExempt: boolean;
|
|
14
|
+
profile?: {
|
|
15
|
+
photo?: {
|
|
16
|
+
storagePaths: FirestoreImageVariantSet;
|
|
17
|
+
updatedAt: FirestoreTimestamp;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
coverPicture?: {
|
|
21
|
+
storagePaths: FirestoreImageVariantSet;
|
|
22
|
+
updatedAt: FirestoreTimestamp;
|
|
23
|
+
};
|
|
24
|
+
publicDescription?: string;
|
|
25
|
+
activeServicesVehiclesCombos: string[];
|
|
26
|
+
servicesDetails: Partial<{
|
|
27
|
+
[T in ServicesTypes]: ServiceProviderServiceDetails<T>;
|
|
28
|
+
}>;
|
|
29
|
+
reviewAggregates: FirestoreServiceProviderUserPublicDocumentReviewAggregates;
|
|
30
|
+
servicesLocation?: FirestoreServiceProviderUserPublicDocumentServicesLocation;
|
|
31
|
+
availability: {
|
|
32
|
+
horizonStart: FirestoreTimestamp;
|
|
33
|
+
horizonDays: number;
|
|
34
|
+
granularityMinutes: number;
|
|
35
|
+
encodedOpenTimeline: string;
|
|
36
|
+
encodedBlockedTimeline: string;
|
|
37
|
+
updatedAt: FirestoreTimestamp;
|
|
38
|
+
};
|
|
39
|
+
isBookable: boolean;
|
|
40
|
+
badges?: Partial<Record<ProfessionalBadgesTypes, {
|
|
41
|
+
grantedAt: FirestoreTimestamp;
|
|
42
|
+
expiredAt?: FirestoreTimestamp;
|
|
43
|
+
metadata?: Record<string, any>;
|
|
44
|
+
}>>;
|
|
45
|
+
isTest: boolean;
|
|
46
|
+
};
|
|
@@ -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("./FirestoreServiceProviderUserPublicDocument.type"), exports);
|
|
18
|
+
__exportStar(require("./FirestoreServiceProviderUserPublicDocumentServicesLocation.type"), exports);
|
|
19
|
+
__exportStar(require("./FirestoreServiceProviderUserPublicDocumentReviewAggregates.type"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServicesTypes, type VehicleTypes } from "../../enums";
|
|
2
|
+
import type { ServicePricingAndDurationForVehicle } from "./ServicePricingAndDurationForVehicle.type";
|
|
3
|
+
export type ServiceProviderServiceDetails<T extends ServicesTypes> = {
|
|
4
|
+
type: T;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
parentsServices?: ServicesTypes[];
|
|
7
|
+
pricingAndDurationByVehicleType: Partial<Record<VehicleTypes, ServicePricingAndDurationForVehicle>>;
|
|
8
|
+
};
|
package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentCustomerInfos.type.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { SupportedLocaleCodes } from "../../../../enums";
|
|
2
|
+
import type { CustomerAccountTypes } from "../../enums";
|
|
3
|
+
import type { CustomerCompanyDetails, LegalAddress } from "../company";
|
|
4
|
+
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
5
|
+
import type { TermsAndPolicy } from "../legal";
|
|
6
|
+
import type { CustomerInfosNotificationsPreferences } from "./CustomerInfosNotificationsPreferences.type";
|
|
7
|
+
export type FirestoreUserDocumentCustomerInfos = {
|
|
8
|
+
customerAccountType: CustomerAccountTypes;
|
|
9
|
+
stripe?: {
|
|
10
|
+
customerId?: string;
|
|
11
|
+
};
|
|
12
|
+
preferredCommunicationLanguageLocale: SupportedLocaleCodes;
|
|
13
|
+
termsOfUse?: TermsAndPolicy;
|
|
14
|
+
privacyPolicy?: TermsAndPolicy;
|
|
15
|
+
marketingConsent?: TermsAndPolicy;
|
|
16
|
+
companyDetails?: CustomerCompanyDetails;
|
|
17
|
+
legalRepresentativeFirstName: string;
|
|
18
|
+
legalRepresentativeLastName: string;
|
|
19
|
+
onboarding: {
|
|
20
|
+
onboardingCompleted: boolean;
|
|
21
|
+
};
|
|
22
|
+
notifications: {
|
|
23
|
+
settings: {
|
|
24
|
+
reminderBeforeOrderStartInMinutes: number;
|
|
25
|
+
};
|
|
26
|
+
preferences: CustomerInfosNotificationsPreferences;
|
|
27
|
+
};
|
|
28
|
+
billingAddress: LegalAddress;
|
|
29
|
+
metrics: {
|
|
30
|
+
orders: {
|
|
31
|
+
totalOrdersCreated: number;
|
|
32
|
+
totalOrdersCompleted: number;
|
|
33
|
+
totalOrdersCanceled: number;
|
|
34
|
+
lastOrderAt?: FirestoreTimestamp;
|
|
35
|
+
};
|
|
36
|
+
orderIssues: {
|
|
37
|
+
totalOrderIssuesCreated: number;
|
|
38
|
+
totalOrderIssuesClosed: number;
|
|
39
|
+
lastOrderIssueCreatedAt?: FirestoreTimestamp;
|
|
40
|
+
lastOrderIssueClosedAt?: FirestoreTimestamp;
|
|
41
|
+
};
|
|
42
|
+
updatedAt: FirestoreTimestamp;
|
|
43
|
+
};
|
|
44
|
+
};
|
package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentProfessionalInfos.type.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { SupportedLocaleCodes } from "../../../../enums";
|
|
2
|
+
import { ProfessionalDiplomasTypes, ProfessionalInsurancesTypes, ProfessionalOnboardingStepStatus, type ProfessionalNonBookableReason } from "../../enums";
|
|
3
|
+
import { DocumentValidationStatus } from "../../enums/documents/DocumentValidationStatus.enum";
|
|
4
|
+
import type { CompanyLegalRepresentative, ProfessionalCompanyDetails } from "../company";
|
|
5
|
+
import { FirestoreFile } from "../FirestoreFile.type";
|
|
6
|
+
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
7
|
+
import type { TermsAndPolicy } from "../legal";
|
|
8
|
+
import type { ProfessionalInfosNotificationsPreferences } from "./ProfessionalInfosNotificationsPreferences.type";
|
|
9
|
+
export type ProfessionalOnboardingStepDetails = {
|
|
10
|
+
status: ProfessionalOnboardingStepStatus;
|
|
11
|
+
startedAt?: FirestoreTimestamp;
|
|
12
|
+
updatedAt?: FirestoreTimestamp;
|
|
13
|
+
completedAt?: FirestoreTimestamp;
|
|
14
|
+
};
|
|
15
|
+
export type InsuranceFile = FirestoreFile & {
|
|
16
|
+
validationStatus: DocumentValidationStatus;
|
|
17
|
+
expirationDate?: FirestoreTimestamp | null;
|
|
18
|
+
};
|
|
19
|
+
export type DiplomaFile = FirestoreFile & {
|
|
20
|
+
validationStatus: DocumentValidationStatus;
|
|
21
|
+
expirationDate?: FirestoreTimestamp | null;
|
|
22
|
+
};
|
|
23
|
+
export type FirestoreUserDocumentProfessionalInfos = {
|
|
24
|
+
companyLegalRepresentative: CompanyLegalRepresentative;
|
|
25
|
+
companyDetails: ProfessionalCompanyDetails;
|
|
26
|
+
termsOfService?: TermsAndPolicy;
|
|
27
|
+
privacyPolicyPro?: TermsAndPolicy;
|
|
28
|
+
selfBillingAgreement?: TermsAndPolicy;
|
|
29
|
+
marketingConsent?: TermsAndPolicy;
|
|
30
|
+
isBookable: boolean;
|
|
31
|
+
nonBookableReasons?: ProfessionalNonBookableReason[];
|
|
32
|
+
insurances?: {
|
|
33
|
+
[ProfessionalInsurancesTypes.RESPONSABILITE_CIVILE_PROFESSIONNELLE]?: InsuranceFile;
|
|
34
|
+
};
|
|
35
|
+
diplomas?: {
|
|
36
|
+
[ProfessionalDiplomasTypes.MECANIQUE]?: DiplomaFile;
|
|
37
|
+
};
|
|
38
|
+
onboarding: {
|
|
39
|
+
onboardingCompleted: boolean;
|
|
40
|
+
onboardingStepsDetails: {};
|
|
41
|
+
};
|
|
42
|
+
notifications: {
|
|
43
|
+
settings: {
|
|
44
|
+
reminderBeforeOrderStartInMinutes: number;
|
|
45
|
+
};
|
|
46
|
+
preferences: ProfessionalInfosNotificationsPreferences;
|
|
47
|
+
};
|
|
48
|
+
stripe?: {
|
|
49
|
+
businessType?: any;
|
|
50
|
+
detailsSubmitted?: boolean;
|
|
51
|
+
chargesEnabled?: boolean;
|
|
52
|
+
payoutsEnabled?: boolean;
|
|
53
|
+
accountRequirement?: {
|
|
54
|
+
alternatives?: any;
|
|
55
|
+
current_deadline?: number | null;
|
|
56
|
+
currently_due?: Array<string> | null;
|
|
57
|
+
disabled_reason?: any;
|
|
58
|
+
errors?: Array<any> | null;
|
|
59
|
+
eventually_due?: Array<string> | null;
|
|
60
|
+
past_due?: Array<string> | null;
|
|
61
|
+
pending_verification?: Array<string> | null;
|
|
62
|
+
};
|
|
63
|
+
accountFutureRequirements?: {
|
|
64
|
+
alternatives: any;
|
|
65
|
+
current_deadline: number | null;
|
|
66
|
+
currently_due: Array<string> | null;
|
|
67
|
+
disabled_reason: any;
|
|
68
|
+
errors: Array<any> | null;
|
|
69
|
+
eventually_due: Array<string> | null;
|
|
70
|
+
past_due: Array<string> | null;
|
|
71
|
+
pending_verification: Array<string> | null;
|
|
72
|
+
};
|
|
73
|
+
hasDiscrepancyWithFirestore?: boolean;
|
|
74
|
+
discrepancyDetails?: string[];
|
|
75
|
+
accountId?: string;
|
|
76
|
+
};
|
|
77
|
+
preferredCommunicationLanguageLocale?: SupportedLocaleCodes;
|
|
78
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SupportedCountryIsoCodes } from "../../../../enums";
|
|
2
|
+
import type { ProfessionalBadgesTypes, ServicesTypes } from "../../enums";
|
|
3
|
+
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
4
|
+
import type { FirestoreImageVariantSet } from "../image";
|
|
5
|
+
import type { ServiceProviderServiceDetails } from "../services/ServiceProviderServiceDetails.type";
|
|
6
|
+
import type { FirestoreServiceProviderPublicDocumentReviewAggregates } from "./FirestoreServiceProviderPublicDocumentReviewAggregates.type";
|
|
7
|
+
import type { FirestoreServiceProviderPublicDocumentServicesLocation } from "./FirestoreServiceProviderPublicDocumentServicesLocation.type";
|
|
8
|
+
export type FirestoreServiceProviderPublicDocument = {
|
|
9
|
+
createdAt: FirestoreTimestamp;
|
|
10
|
+
updatedAt: FirestoreTimestamp;
|
|
11
|
+
companyNickname: string;
|
|
12
|
+
country: SupportedCountryIsoCodes;
|
|
13
|
+
isVATExempt: boolean;
|
|
14
|
+
profile?: {
|
|
15
|
+
photo?: {
|
|
16
|
+
storagePaths: FirestoreImageVariantSet;
|
|
17
|
+
updatedAt: FirestoreTimestamp;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
coverPicture?: {
|
|
21
|
+
storagePaths: FirestoreImageVariantSet;
|
|
22
|
+
updatedAt: FirestoreTimestamp;
|
|
23
|
+
};
|
|
24
|
+
publicDescription?: string;
|
|
25
|
+
activeServicesVehiclesCombos: string[];
|
|
26
|
+
servicesDetails: Partial<{
|
|
27
|
+
[T in ServicesTypes]: ServiceProviderServiceDetails<T>;
|
|
28
|
+
}>;
|
|
29
|
+
reviewAggregates: FirestoreServiceProviderPublicDocumentReviewAggregates;
|
|
30
|
+
servicesLocation?: FirestoreServiceProviderPublicDocumentServicesLocation;
|
|
31
|
+
availability: {
|
|
32
|
+
horizonStart: FirestoreTimestamp;
|
|
33
|
+
horizonDays: number;
|
|
34
|
+
granularityMinutes: number;
|
|
35
|
+
encodedOpenTimeline: string;
|
|
36
|
+
encodedBlockedTimeline: string;
|
|
37
|
+
updatedAt: FirestoreTimestamp;
|
|
38
|
+
};
|
|
39
|
+
isBookable: boolean;
|
|
40
|
+
badges?: Partial<Record<ProfessionalBadgesTypes, {
|
|
41
|
+
grantedAt: FirestoreTimestamp;
|
|
42
|
+
expiredAt?: FirestoreTimestamp;
|
|
43
|
+
metadata?: Record<string, any>;
|
|
44
|
+
}>>;
|
|
45
|
+
isTest: boolean;
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const enums_1 = require("../../../../../enums");
|
|
4
|
+
const enums_2 = require("../../../enums");
|
|
5
|
+
const frenchCompanyRegistrationStub_1 = require("../../stubs/company/frenchCompanyRegistrationStub");
|
|
6
|
+
const firestoreEntityDocumentStub_1 = require("../../stubs/entities/firestoreEntityDocumentStub");
|
|
7
|
+
const entityLegalDetailsStub_1 = require("../../stubs/entities/entityLegalDetailsStub");
|
|
8
|
+
const entityRegistrationStub_1 = require("../../stubs/entities/entityRegistrationStub");
|
|
9
|
+
const entityDocumentSupportsOrganizationMembers_util_1 = require("../entityDocumentSupportsOrganizationMembers.util");
|
|
10
|
+
describe("entityDocumentSupportsOrganizationMembers", () => {
|
|
11
|
+
it("returns false if entity document is undefined", () => {
|
|
12
|
+
expect((0, entityDocumentSupportsOrganizationMembers_util_1.entityDocumentSupportsOrganizationMembers)(undefined)).toBe(false);
|
|
13
|
+
});
|
|
14
|
+
it("returns false if legal type is INDIVIDUAL", () => {
|
|
15
|
+
expect((0, entityDocumentSupportsOrganizationMembers_util_1.entityDocumentSupportsOrganizationMembers)((0, firestoreEntityDocumentStub_1.firestoreEntityDocumentStub)({
|
|
16
|
+
legalType: enums_2.EntityLegalType.INDIVIDUAL,
|
|
17
|
+
}))).toBe(false);
|
|
18
|
+
});
|
|
19
|
+
it("returns false for COMPANY with micro-entrepreneur legal form", () => {
|
|
20
|
+
const doc = (0, firestoreEntityDocumentStub_1.firestoreEntityDocumentStub)({
|
|
21
|
+
legalType: enums_2.EntityLegalType.COMPANY,
|
|
22
|
+
legalDetails: (0, entityLegalDetailsStub_1.entityLegalDetailsStub)({
|
|
23
|
+
registration: (0, entityRegistrationStub_1.entityRegistrationStub)({
|
|
24
|
+
data: (0, frenchCompanyRegistrationStub_1.frenchCompanyRegistrationStub)({
|
|
25
|
+
legalForm: enums_1.SupportedFrenchCompanyLegalForms.MICRO_ENTREPRENEUR,
|
|
26
|
+
}),
|
|
27
|
+
}),
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
30
|
+
expect((0, entityDocumentSupportsOrganizationMembers_util_1.entityDocumentSupportsOrganizationMembers)(doc)).toBe(false);
|
|
31
|
+
});
|
|
32
|
+
it("returns false for COMPANY with entreprise individuelle legal form", () => {
|
|
33
|
+
const doc = (0, firestoreEntityDocumentStub_1.firestoreEntityDocumentStub)({
|
|
34
|
+
legalType: enums_2.EntityLegalType.COMPANY,
|
|
35
|
+
legalDetails: (0, entityLegalDetailsStub_1.entityLegalDetailsStub)({
|
|
36
|
+
registration: (0, entityRegistrationStub_1.entityRegistrationStub)({
|
|
37
|
+
data: (0, frenchCompanyRegistrationStub_1.frenchCompanyRegistrationStub)({
|
|
38
|
+
legalForm: enums_1.SupportedFrenchCompanyLegalForms.ENTREPRISE_INDIVIDUELLE,
|
|
39
|
+
}),
|
|
40
|
+
}),
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
expect((0, entityDocumentSupportsOrganizationMembers_util_1.entityDocumentSupportsOrganizationMembers)(doc)).toBe(false);
|
|
44
|
+
});
|
|
45
|
+
it("returns true for COMPANY with SARL legal form", () => {
|
|
46
|
+
expect((0, entityDocumentSupportsOrganizationMembers_util_1.entityDocumentSupportsOrganizationMembers)((0, firestoreEntityDocumentStub_1.firestoreEntityDocumentStub)({
|
|
47
|
+
legalType: enums_2.EntityLegalType.COMPANY,
|
|
48
|
+
}))).toBe(true);
|
|
49
|
+
});
|
|
50
|
+
it("returns true for COMPANY when legal form is missing (legacy / incomplete entity)", () => {
|
|
51
|
+
expect((0, entityDocumentSupportsOrganizationMembers_util_1.entityDocumentSupportsOrganizationMembers)((0, firestoreEntityDocumentStub_1.firestoreEntityDocumentStub)({
|
|
52
|
+
legalType: enums_2.EntityLegalType.COMPANY,
|
|
53
|
+
legalDetails: undefined,
|
|
54
|
+
}))).toBe(true);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
+
const enums_1 = require("../../../../../enums");
|
|
5
|
+
const isIndividualCompany_util_1 = require("../isIndividualCompany.util");
|
|
6
|
+
describe("isIndividualCompany", () => {
|
|
7
|
+
it("should return true for a French individual company", () => {
|
|
8
|
+
const companyDetails = {
|
|
9
|
+
legalAddress: {},
|
|
10
|
+
legalName: "John Doe",
|
|
11
|
+
vatDetails: {},
|
|
12
|
+
registrationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
|
|
13
|
+
registration: {
|
|
14
|
+
[enums_1.SupportedCountryIsoCodes.FRANCE]: {
|
|
15
|
+
legalForm: enums_1.SupportedFrenchCompanyLegalForms.ENTREPRISE_INDIVIDUELLE,
|
|
16
|
+
siren: "123456789",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
expect((0, isIndividualCompany_util_1.isIndividualCompany)(companyDetails)).toBe(true);
|
|
21
|
+
});
|
|
22
|
+
it("should return true for a French micro-entrepreneur", () => {
|
|
23
|
+
const companyDetails = {
|
|
24
|
+
legalAddress: {},
|
|
25
|
+
legalName: "Jane Doe",
|
|
26
|
+
vatDetails: {},
|
|
27
|
+
registrationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
|
|
28
|
+
registration: {
|
|
29
|
+
[enums_1.SupportedCountryIsoCodes.FRANCE]: {
|
|
30
|
+
legalForm: enums_1.SupportedFrenchCompanyLegalForms.MICRO_ENTREPRENEUR,
|
|
31
|
+
siren: "987654321",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
expect((0, isIndividualCompany_util_1.isIndividualCompany)(companyDetails)).toBe(true);
|
|
36
|
+
});
|
|
37
|
+
it("should return false for a French SARL", () => {
|
|
38
|
+
const companyDetails = {
|
|
39
|
+
legalAddress: {},
|
|
40
|
+
legalName: "Doe SARL",
|
|
41
|
+
vatDetails: {},
|
|
42
|
+
registrationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
|
|
43
|
+
registration: {
|
|
44
|
+
[enums_1.SupportedCountryIsoCodes.FRANCE]: {
|
|
45
|
+
legalForm: enums_1.SupportedFrenchCompanyLegalForms.SARL,
|
|
46
|
+
siren: "112233445",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
expect((0, isIndividualCompany_util_1.isIndividualCompany)(companyDetails)).toBe(false);
|
|
51
|
+
});
|
|
52
|
+
});
|
package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FirestoreEntityDocument } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Organization / multi-member account UI applies to company entities whose
|
|
4
|
+
* French legal form is not a solo structure (micro-entrepreneur, EI).
|
|
5
|
+
*/
|
|
6
|
+
export declare function entityDocumentSupportsOrganizationMembers(entityDocument: FirestoreEntityDocument | undefined): boolean;
|
package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.entityDocumentSupportsOrganizationMembers = entityDocumentSupportsOrganizationMembers;
|
|
4
|
+
const enums_1 = require("../../../../enums");
|
|
5
|
+
const enums_2 = require("../../enums");
|
|
6
|
+
/**
|
|
7
|
+
* Organization / multi-member account UI applies to company entities whose
|
|
8
|
+
* French legal form is not a solo structure (micro-entrepreneur, EI).
|
|
9
|
+
*/
|
|
10
|
+
function entityDocumentSupportsOrganizationMembers(entityDocument) {
|
|
11
|
+
if (!entityDocument || entityDocument.legalType !== enums_2.EntityLegalType.COMPANY) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
const legalForm = entityDocument.legalDetails?.registration?.data?.legalForm;
|
|
15
|
+
if (legalForm === enums_1.SupportedFrenchCompanyLegalForms.MICRO_ENTREPRENEUR ||
|
|
16
|
+
legalForm === enums_1.SupportedFrenchCompanyLegalForms.ENTREPRISE_INDIVIDUELLE) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./isIndividualCompany.util";
|