@doctocar/tooling 0.3.1-11 → 0.3.1-13
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/firebase/firestore/types/walletsLedgerEntryDocument/FirestoreWalletsLedgerEntryDocument.type.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/walletsLedgerEntry/firestoreWalletsLedgerEntryDocumentStub.js +2 -0
- package/package.json +1 -1
- package/dist/emails/types/company/CompanyVatRejectedEmailData.type.d.ts +0 -5
- package/dist/emails/types/company/CompanyVatRejectedEmailData.type.js +0 -2
- package/dist/emails/types/company/CompanyVatVerifiedEmailData.type.d.ts +0 -3
- package/dist/emails/types/company/CompanyVatVerifiedEmailData.type.js +0 -2
- package/dist/emails/types/company/index.d.ts +0 -2
- package/dist/emails/types/company/index.js +0 -18
- package/dist/emails/types/customer/CustomerEntityCreatedEmailData.type.d.ts +0 -1
- package/dist/emails/types/customer/CustomerEntityCreatedEmailData.type.js +0 -2
- package/dist/emails/types/customer/CustomerWelcomeEmailData.type.d.ts +0 -1
- package/dist/emails/types/customer/CustomerWelcomeEmailData.type.js +0 -2
- package/dist/emails/types/entity/EntityCreatedEmailData.type.d.ts +0 -1
- package/dist/emails/types/entity/EntityCreatedEmailData.type.js +0 -2
- package/dist/emails/types/professional/ProfessionalOnboardingCompletedEmailData.type.d.ts +0 -1
- package/dist/emails/types/professional/ProfessionalOnboardingCompletedEmailData.type.js +0 -2
- package/dist/errors/enums/cloudFunctions/customers/CreateCustomerVehicleErrorCodes.enum.d.ts +0 -14
- package/dist/errors/enums/cloudFunctions/customers/CreateCustomerVehicleErrorCodes.enum.js +0 -18
- package/dist/errors/enums/cloudFunctions/customers/DeleteCustomerVehicleErrorCodes.enum.d.ts +0 -7
- package/dist/errors/enums/cloudFunctions/customers/DeleteCustomerVehicleErrorCodes.enum.js +0 -11
- 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/errors/enums/cloudFunctions/customers/UpdateCustomerVehicleErrorCodes.enum.d.ts +0 -14
- package/dist/errors/enums/cloudFunctions/customers/UpdateCustomerVehicleErrorCodes.enum.js +0 -18
- package/dist/errors/enums/cloudFunctions/customers/index.d.ts +0 -1
- package/dist/errors/enums/cloudFunctions/customers/index.js +0 -17
- package/dist/errors/enums/cloudFunctions/entities/AcceptEntityMemberInviteErrorCodes.enum.d.ts +0 -15
- package/dist/errors/enums/cloudFunctions/entities/AcceptEntityMemberInviteErrorCodes.enum.js +0 -19
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserDeleteOrderServicePhotosErrorCodes.enum.d.ts +0 -9
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserDeleteOrderServicePhotosErrorCodes.enum.js +0 -13
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserUploadOrderServicePhotosErrorCodes.enum.d.ts +0 -13
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserUploadOrderServicePhotosErrorCodes.enum.js +0 -17
- package/dist/errors/enums/cloudFunctions/professionals/CreateProfessionalUserSlotDocumentErrorCodes.enum.d.ts +0 -4
- package/dist/errors/enums/cloudFunctions/professionals/CreateProfessionalUserSlotDocumentErrorCodes.enum.js +0 -8
- package/dist/errors/enums/cloudFunctions/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosErrorCodes.enum.d.ts +0 -20
- package/dist/errors/enums/cloudFunctions/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosErrorCodes.enum.js +0 -24
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserLiabilityInsuranceErrorCodes.enum.d.ts +0 -8
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserLiabilityInsuranceErrorCodes.enum.js +0 -12
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserServicesLocationErrorCodes.enum.d.ts +0 -8
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserServicesLocationErrorCodes.enum.js +0 -12
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserSlotDocumentErrorCodes.enum.d.ts +0 -4
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserSlotDocumentErrorCodes.enum.js +0 -8
- package/dist/errors/enums/cloudFunctions/professionals/index.d.ts +0 -4
- package/dist/errors/enums/cloudFunctions/professionals/index.js +0 -20
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/ProcessServiceProviderUserOnboardingBaseCompanyInfosErrorCodes.enum.d.ts +0 -20
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/ProcessServiceProviderUserOnboardingBaseCompanyInfosErrorCodes.enum.js +0 -24
- package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteRequestData.type.d.ts +0 -4
- package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInvitePayload.type.d.ts +0 -8
- package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInvitePayload.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/GooglePlaceAutocompleteSuggestion.type.d.ts +0 -11
- package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/GooglePlaceAutocompleteSuggestion.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosRequestData.type.d.ts +0 -8
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosRequestData.type.d.ts +0 -8
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/stripe/CreateStripeUserAccountLinkRequestData.type.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/stripe/CreateStripeUserAccountLinkRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/stripe/CreateStripeUserAccountLinkResponseData.type.d.ts +0 -8
- package/dist/firebase/cloudFunctions/types/stripe/CreateStripeUserAccountLinkResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/AcceptEntityInviteRequestData.type.d.ts +0 -4
- package/dist/firebase/cloudFunctions/types/users/AcceptEntityInviteRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/AcceptEntityInviteResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/AcceptEntityInviteResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/CreateCustomerVehicleRequestData.type.d.ts +0 -11
- package/dist/firebase/cloudFunctions/types/users/customers/CreateCustomerVehicleRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/CreateCustomerVehicleResponseData.type.d.ts +0 -3
- package/dist/firebase/cloudFunctions/types/users/customers/CreateCustomerVehicleResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/DeleteCustomerVehicleRequestData.type.d.ts +0 -4
- package/dist/firebase/cloudFunctions/types/users/customers/DeleteCustomerVehicleRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/DeleteCustomerVehicleResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/customers/DeleteCustomerVehicleResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingRequestData.type.d.ts +0 -15
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/UpdateCustomerVehicleRequestData.type.d.ts +0 -12
- package/dist/firebase/cloudFunctions/types/users/customers/UpdateCustomerVehicleRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/UpdateCustomerVehicleResponseData.type.d.ts +0 -3
- package/dist/firebase/cloudFunctions/types/users/customers/UpdateCustomerVehicleResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/index.d.ts +0 -6
- package/dist/firebase/cloudFunctions/types/users/customers/index.js +0 -22
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingPayload.type.d.ts +0 -14
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingPayload.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingRequestData.type.d.ts +0 -3
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/index.d.ts +0 -3
- package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/index.js +0 -19
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentRequestData.type.d.ts +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceRequestData.type.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentRequestData.type.d.ts +0 -4
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosRequestData.type.d.ts +0 -14
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceRequestData.type.d.ts +0 -4
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceRequestData.type.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationRequestData.type.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceRequestData.type.d.ts +0 -15
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/index.d.ts +0 -11
- package/dist/firebase/cloudFunctions/types/users/professionals/index.js +0 -27
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentRequestData.type.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentResponseData.type.d.ts +0 -3
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestOneTimeSlot.type.d.ts +0 -8
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestOneTimeSlot.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestRecurringSlot.type.d.ts +0 -6
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestRecurringSlot.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestSlotDocument.type.d.ts +0 -4
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestSlotDocument.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestTimeOffSlot.type.d.ts +0 -8
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/RequestTimeOffSlot.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentRequestData.type.d.ts +0 -6
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentRequestData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentResponseData.type.js +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/index.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/index.js +0 -21
- package/dist/firebase/firestore/constants/maximumCustomerVehicles.constant.d.ts +0 -1
- package/dist/firebase/firestore/constants/maximumCustomerVehicles.constant.js +0 -4
- package/dist/firebase/firestore/constants/minimumCustomerVehicles.constant.d.ts +0 -1
- package/dist/firebase/firestore/constants/minimumCustomerVehicles.constant.js +0 -4
- package/dist/firebase/firestore/constants/orders/index.d.ts +0 -2
- package/dist/firebase/firestore/constants/orders/index.js +0 -18
- package/dist/firebase/firestore/constants/orders/orderIdPrefix.constant.d.ts +0 -1
- package/dist/firebase/firestore/constants/orders/orderIdPrefix.constant.js +0 -4
- package/dist/firebase/firestore/constants/orders/productionOrderIdPrefix.constant.d.ts +0 -1
- package/dist/firebase/firestore/constants/orders/productionOrderIdPrefix.constant.js +0 -4
- package/dist/firebase/firestore/constants/orders/sandboxOrderIdPrefix.constant.d.ts +0 -1
- package/dist/firebase/firestore/constants/orders/sandboxOrderIdPrefix.constant.js +0 -4
- package/dist/firebase/firestore/enums/documents/DocumentValidationStatus.enum.d.ts +0 -5
- package/dist/firebase/firestore/enums/documents/DocumentValidationStatus.enum.js +0 -9
- package/dist/firebase/firestore/enums/documents/index.d.ts +0 -1
- package/dist/firebase/firestore/enums/documents/index.js +0 -17
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderComplianceStatus.enum.d.ts +0 -4
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderComplianceStatus.enum.js +0 -8
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonBookableReason.enum.d.ts +0 -16
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonBookableReason.enum.js +0 -20
- package/dist/firebase/firestore/enums/orders/OrderProfessionalServiceDetailsPhotoMoment.enum.d.ts +0 -4
- package/dist/firebase/firestore/enums/orders/OrderProfessionalServiceDetailsPhotoMoment.enum.js +0 -8
- package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoContext.enum.d.ts +0 -4
- package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoContext.enum.js +0 -8
- package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.d.ts +0 -9
- package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.js +0 -13
- package/dist/firebase/firestore/enums/professionalUser/ProfessionalNonBookableReason.enum.d.ts +0 -13
- package/dist/firebase/firestore/enums/professionalUser/ProfessionalNonBookableReason.enum.js +0 -17
- package/dist/firebase/firestore/enums/professionalUser/index.d.ts +0 -1
- package/dist/firebase/firestore/enums/professionalUser/index.js +0 -17
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserComplianceStatus.enum.d.ts +0 -4
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserComplianceStatus.enum.js +0 -8
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonBookableReason.enum.d.ts +0 -6
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonBookableReason.enum.js +0 -10
- package/dist/firebase/firestore/enums/services/ProfessionalServicesCategoryTypes.enum.d.ts +0 -3
- package/dist/firebase/firestore/enums/services/ProfessionalServicesCategoryTypes.enum.js +0 -7
- package/dist/firebase/firestore/enums/services/ProfessionalServicesTypes.enum.d.ts +0 -10
- package/dist/firebase/firestore/enums/services/ProfessionalServicesTypes.enum.js +0 -16
- package/dist/firebase/firestore/enums/users/customers/CustomerAccountTypes.enum.d.ts +0 -4
- package/dist/firebase/firestore/enums/users/customers/CustomerAccountTypes.enum.js +0 -8
- package/dist/firebase/firestore/enums/users/customers/index.d.ts +0 -1
- package/dist/firebase/firestore/enums/users/customers/index.js +0 -17
- package/dist/firebase/firestore/enums/users/professionals/ProfessionalOnboardingStepNames.enum.d.ts +0 -6
- package/dist/firebase/firestore/enums/users/professionals/ProfessionalOnboardingStepNames.enum.js +0 -10
- package/dist/firebase/firestore/enums/users/professionals/ProfessionalOnboardingStepStatus.enum.d.ts +0 -5
- package/dist/firebase/firestore/enums/users/professionals/ProfessionalOnboardingStepStatus.enum.js +0 -9
- package/dist/firebase/firestore/types/company/CompanyLegalRepresentative.type.d.ts +0 -6
- package/dist/firebase/firestore/types/company/CompanyLegalRepresentative.type.js +0 -2
- package/dist/firebase/firestore/types/company/CompanyRegistrationPerCountry.type.d.ts +0 -5
- package/dist/firebase/firestore/types/company/CompanyRegistrationPerCountry.type.js +0 -2
- package/dist/firebase/firestore/types/company/CompanyVATDetails.type.d.ts +0 -15
- package/dist/firebase/firestore/types/company/CompanyVATDetails.type.js +0 -2
- package/dist/firebase/firestore/types/company/CustomerCompanyDetails.type.d.ts +0 -7
- package/dist/firebase/firestore/types/company/CustomerCompanyDetails.type.js +0 -2
- package/dist/firebase/firestore/types/company/ProfessionalCompanyDetails.type.d.ts +0 -11
- package/dist/firebase/firestore/types/company/ProfessionalCompanyDetails.type.js +0 -2
- package/dist/firebase/firestore/types/companyUnique/FirestoreCompanyUniqueDocument.type.d.ts +0 -6
- package/dist/firebase/firestore/types/companyUnique/FirestoreCompanyUniqueDocument.type.js +0 -2
- package/dist/firebase/firestore/types/companyUnique/index.d.ts +0 -1
- package/dist/firebase/firestore/types/companyUnique/index.js +0 -17
- package/dist/firebase/firestore/types/entities/EntityRegistration.enum.d.ts +0 -6
- package/dist/firebase/firestore/types/entities/EntityRegistration.enum.js +0 -2
- package/dist/firebase/firestore/types/order/FirestoreOrderProfessionalServiceDetails.type.d.ts +0 -10
- package/dist/firebase/firestore/types/order/FirestoreOrderProfessionalServiceDetails.type.js +0 -2
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientProfessionalServicesDetailsPublicImagesUrls.type.d.ts +0 -5
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientProfessionalServicesDetailsPublicImagesUrls.type.js +0 -2
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos.type.d.ts +0 -3
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos.type.js +0 -2
- package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrder.type.d.ts +0 -26
- package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrder.type.js +0 -2
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocument.type.d.ts +0 -46
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocument.type.js +0 -2
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.d.ts +0 -4
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.js +0 -2
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.d.ts +0 -4
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.js +0 -2
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/index.d.ts +0 -3
- package/dist/firebase/firestore/types/serviceProviderPublicDocument/index.js +0 -19
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocument.type.d.ts +0 -46
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocument.type.js +0 -2
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.d.ts +0 -4
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.js +0 -2
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.d.ts +0 -4
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.js +0 -2
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/index.d.ts +0 -3
- package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/index.js +0 -19
- package/dist/firebase/firestore/types/services/ServiceProviderServiceDetails.type.d.ts +0 -8
- package/dist/firebase/firestore/types/services/ServiceProviderServiceDetails.type.js +0 -2
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentCustomerInfos.type.d.ts +0 -44
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentCustomerInfos.type.js +0 -2
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentProfessionalInfos.type.d.ts +0 -78
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentProfessionalInfos.type.js +0 -3
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocument.type.d.ts +0 -46
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocument.type.js +0 -2
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.d.ts +0 -4
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.js +0 -2
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.d.ts +0 -4
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.js +0 -2
- package/dist/firebase/firestore/utils/company/__tests__/entityDocumentSupportsOrganizationMembers.util.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/company/__tests__/entityDocumentSupportsOrganizationMembers.util.test.js +0 -56
- package/dist/firebase/firestore/utils/company/__tests__/isIndividualCompany.util.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/company/__tests__/isIndividualCompany.util.test.js +0 -52
- package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.d.ts +0 -6
- package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.js +0 -20
- package/dist/firebase/firestore/utils/company/index.d.ts +0 -1
- package/dist/firebase/firestore/utils/company/index.js +0 -17
- package/dist/firebase/firestore/utils/company/isIndividualCompany.util.d.ts +0 -2
- package/dist/firebase/firestore/utils/company/isIndividualCompany.util.js +0 -19
- package/dist/firebase/firestore/utils/dataValidators/company/__tests__/isCompanyVatValid.util.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/dataValidators/company/__tests__/isCompanyVatValid.util.test.js +0 -30
- package/dist/firebase/firestore/utils/dataValidators/company/__tests__/isLegalAddressValid.util.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/dataValidators/company/__tests__/isLegalAddressValid.util.test.js +0 -24
- package/dist/firebase/firestore/utils/dataValidators/company/isCompanyVatValid.util.d.ts +0 -2
- package/dist/firebase/firestore/utils/dataValidators/company/isCompanyVatValid.util.js +0 -10
- package/dist/firebase/firestore/utils/dataValidators/company/isLegalAddressValid.util.d.ts +0 -2
- package/dist/firebase/firestore/utils/dataValidators/company/isLegalAddressValid.util.js +0 -7
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalService.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalService.test.js +0 -177
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServicePricingAndDurationForVehicle.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServicePricingAndDurationForVehicle.test.js +0 -129
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServiceType.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServiceType.test.js +0 -15
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidServicePricingAndDurationForVehicle.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidServicePricingAndDurationForVehicle.test.js +0 -136
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidVehicleForProfessionalService.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidVehicleForProfessionalService.test.js +0 -32
- package/dist/firebase/firestore/utils/dataValidators/professionalService/index.d.ts +0 -3
- package/dist/firebase/firestore/utils/dataValidators/professionalService/index.js +0 -19
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalService.d.ts +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalService.js +0 -44
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServicePricingAndDurationForVehicle.d.ts +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServicePricingAndDurationForVehicle.js +0 -25
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServiceType.d.ts +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServiceType.js +0 -7
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidServicePricingAndDurationForVehicle.d.ts +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidServicePricingAndDurationForVehicle.js +0 -29
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidVehicleForProfessionalService.d.ts +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidVehicleForProfessionalService.js +0 -11
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServiceParams.type.d.ts +0 -6
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServiceParams.type.js +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServicePricingAndDurationForVehicleParams.type.d.ts +0 -5
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServicePricingAndDurationForVehicleParams.type.js +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidServicePricingAndDurationForVehicleParams.type.d.ts +0 -5
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidServicePricingAndDurationForVehicleParams.type.js +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidVehicleForProfessionalServiceParams.type.d.ts +0 -6
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidVehicleForProfessionalServiceParams.type.js +0 -2
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/index.d.ts +0 -3
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/index.js +0 -19
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidVehicleForProfessionalServiceParams.type.d.ts +0 -6
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidVehicleForProfessionalServiceParams.type.js +0 -2
- package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.test.js +0 -56
- package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.util.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.util.test.js +0 -56
- package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.d.ts +0 -6
- package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.js +0 -20
- package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.util.d.ts +0 -6
- package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.util.js +0 -20
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.service.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.service.test.js +0 -261
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.test.js +0 -259
- package/dist/firebase/firestore/utils/order/__tests__/getOrderCustomerAndProfessionalIds.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/order/__tests__/getOrderCustomerAndProfessionalIds.test.js +0 -27
- package/dist/firebase/firestore/utils/order/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.utils.d.ts +0 -2
- package/dist/firebase/firestore/utils/order/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.utils.js +0 -49
- package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.d.ts +0 -2
- package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.js +0 -48
- package/dist/firebase/firestore/utils/order/getOrderCustomerAndProfessionalIds.d.ts +0 -2
- package/dist/firebase/firestore/utils/order/getOrderCustomerAndProfessionalIds.js +0 -9
- package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsProps.type.d.ts +0 -8
- package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsProps.type.js +0 -2
- package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsReturn.type.d.ts +0 -6
- package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsReturn.type.js +0 -2
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsParams.type.d.ts +0 -4
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsParams.type.js +0 -2
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsResult.type.d.ts +0 -4
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsResult.type.js +0 -2
- package/dist/firebase/firestore/utils/services/__tests__/areAllRequestedProfessionalUserServicesActiveForVehicleType.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/services/__tests__/areAllRequestedProfessionalUserServicesActiveForVehicleType.test.js +0 -145
- package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.test.js +0 -12
- package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.util.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.util.test.js +0 -12
- package/dist/firebase/firestore/utils/services/__tests__/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.util.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/services/__tests__/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.util.test.js +0 -225
- package/dist/firebase/firestore/utils/services/__tests__/getActiveServicePricingAndDurationForVehicleOrThrow.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/services/__tests__/getActiveServicePricingAndDurationForVehicleOrThrow.test.js +0 -225
- package/dist/firebase/firestore/utils/services/__tests__/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/services/__tests__/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.test.js +0 -225
- package/dist/firebase/firestore/utils/services/__tests__/getAvailableServiceProviderServicesForVehicleType.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/services/__tests__/getAvailableServiceProviderServicesForVehicleType.test.js +0 -295
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.d.ts +0 -2
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.js +0 -14
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.util.d.ts +0 -2
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.util.js +0 -14
- package/dist/firebase/firestore/utils/services/computeTotalProfessionalServiceDurationInMinutesForVehicleType.util.d.ts +0 -2
- package/dist/firebase/firestore/utils/services/computeTotalProfessionalServiceDurationInMinutesForVehicleType.util.js +0 -16
- package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.d.ts +0 -2
- package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.js +0 -6
- package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.util.d.ts +0 -2
- package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.util.js +0 -6
- package/dist/firebase/firestore/utils/services/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.d.ts +0 -3
- package/dist/firebase/firestore/utils/services/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.js +0 -19
- package/dist/firebase/firestore/utils/services/getActiveServicePricingAndDurationForVehicleOrThrow.d.ts +0 -3
- package/dist/firebase/firestore/utils/services/getActiveServicePricingAndDurationForVehicleOrThrow.js +0 -19
- package/dist/firebase/firestore/utils/services/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.d.ts +0 -3
- package/dist/firebase/firestore/utils/services/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.js +0 -19
- package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesForVehicleType.d.ts +0 -6
- package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesForVehicleType.js +0 -29
- package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesTypesForVehicleType.d.ts +0 -6
- package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesTypesForVehicleType.js +0 -31
- package/dist/firebase/firestore/utils/services/types/AreAllRequestedProfessionalUserServicesActiveForVehicleTypeArgs.type..d.ts +0 -7
- package/dist/firebase/firestore/utils/services/types/AreAllRequestedProfessionalUserServicesActiveForVehicleTypeArgs.type..js +0 -2
- package/dist/firebase/firestore/utils/services/types/GetActiveProfessionalServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +0 -7
- package/dist/firebase/firestore/utils/services/types/GetActiveProfessionalServicePricingAndDurationForVehicleOrThrowParams.type.js +0 -2
- package/dist/firebase/firestore/utils/services/types/GetActiveServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +0 -7
- package/dist/firebase/firestore/utils/services/types/GetActiveServicePricingAndDurationForVehicleOrThrowParams.type.js +0 -2
- package/dist/firebase/firestore/utils/services/types/GetActiveServiceProviderServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +0 -7
- package/dist/firebase/firestore/utils/services/types/GetActiveServiceProviderServicePricingAndDurationForVehicleOrThrowParams.type.js +0 -2
- package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesForVehicleTypeParams.type.d.ts +0 -7
- package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesForVehicleTypeParams.type.js +0 -2
- package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesTypesForVehicleTypeParams.type.d.ts +0 -7
- package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesTypesForVehicleTypeParams.type.js +0 -2
- package/dist/firebase/firestore/utils/stubs/company/customerCompanyDetailsStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/company/customerCompanyDetailsStub.js +0 -21
- package/dist/firebase/firestore/utils/stubs/company/professionalCompanyDetailsStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/company/professionalCompanyDetailsStub.js +0 -32
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientProfessionalServicesDetailsPublicImagesUrlsStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientProfessionalServicesDetailsPublicImagesUrlsStub.js +0 -25
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderProfessionalServiceDetailsStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderProfessionalServiceDetailsStub.js +0 -18
- package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/firestoreServiceProviderPublicDocumentStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/firestoreServiceProviderPublicDocumentStub.js +0 -36
- package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/index.d.ts +0 -1
- package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/index.js +0 -17
- package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/firestoreServiceProviderUserPublicDocumentStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/firestoreServiceProviderUserPublicDocumentStub.js +0 -36
- package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/index.d.ts +0 -1
- package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/index.js +0 -17
- package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceDetailsStub.d.ts +0 -5
- package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceDetailsStub.js +0 -21
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentCustomerInfosStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentCustomerInfosStub.js +0 -54
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentProfessionalInfosStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentProfessionalInfosStub.js +0 -60
- package/dist/firebase/firestore/utils/users/__tests__/assertCustomerUserCanBookServices.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/users/__tests__/assertCustomerUserCanBookServices.test.js +0 -257
- package/dist/firebase/firestore/utils/users/__tests__/assertProfessionalUserIsBookable.util.test.d.ts +0 -1
- package/dist/firebase/firestore/utils/users/__tests__/assertProfessionalUserIsBookable.util.test.js +0 -400
- package/dist/firebase/firestore/utils/users/assertCustomerUserCanBookServices.d.ts +0 -3
- package/dist/firebase/firestore/utils/users/assertCustomerUserCanBookServices.js +0 -58
- package/dist/firebase/firestore/utils/users/assertProfessionalUserIsBookable.util.d.ts +0 -3
- package/dist/firebase/firestore/utils/users/assertProfessionalUserIsBookable.util.js +0 -115
- package/dist/firebase/firestore/utils/users/errors/enums/AssertCustomerUserCanBookServicesErrorCodes.enum.d.ts +0 -7
- package/dist/firebase/firestore/utils/users/errors/enums/AssertCustomerUserCanBookServicesErrorCodes.enum.js +0 -11
- package/dist/firebase/firestore/utils/users/errors/enums/index.d.ts +0 -1
- package/dist/firebase/firestore/utils/users/errors/enums/index.js +0 -17
- package/dist/firebase/firestore/utils/users/errors/index.d.ts +0 -1
- package/dist/firebase/firestore/utils/users/errors/index.js +0 -17
- package/dist/firebase/firestore/utils/users/index.d.ts +0 -3
- package/dist/firebase/firestore/utils/users/index.js +0 -19
- package/dist/firebase/firestore/utils/users/types/BookableProfessionalUserDocument.type.d.ts +0 -35
- package/dist/firebase/firestore/utils/users/types/BookableProfessionalUserDocument.type.js +0 -2
- package/dist/firebase/firestore/utils/users/types/BookingReadyCustomerUserDocument.type.d.ts +0 -13
- package/dist/firebase/firestore/utils/users/types/BookingReadyCustomerUserDocument.type.js +0 -2
- package/dist/firebase/firestore/utils/users/types/index.d.ts +0 -2
- package/dist/firebase/firestore/utils/users/types/index.js +0 -18
- package/dist/firebase/storage/enums/FirebaseStorageProfessionalUsersPublicSubPaths.enum.d.ts +0 -3
- package/dist/firebase/storage/enums/FirebaseStorageProfessionalUsersPublicSubPaths.enum.js +0 -7
- package/dist/gcp/cloudTask/types/OnTaskRecomputeProfessionalBookabilityEnvelope.type.d.ts +0 -4
- package/dist/gcp/cloudTask/types/OnTaskRecomputeProfessionalBookabilityEnvelope.type.js +0 -2
- package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderAvailabilityEnvelope.type.d.ts +0 -4
- package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderAvailabilityEnvelope.type.js +0 -2
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeProfessionalBookabilityEnvelopeStub.d.ts +0 -2
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeProfessionalBookabilityEnvelopeStub.js +0 -19
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderAvailabilityEnvelopeStub.d.ts +0 -2
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderAvailabilityEnvelopeStub.js +0 -19
- package/dist/gcp/enums/GoogleAddressComponentType.enum.d.ts +0 -11
- package/dist/gcp/enums/GoogleAddressComponentType.enum.js +0 -15
- package/dist/gcp/enums/index.d.ts +0 -1
- package/dist/gcp/enums/index.js +0 -17
- package/dist/gcp/geocode/utils/__tests__/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.test.d.ts +0 -1
- package/dist/gcp/geocode/utils/__tests__/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.test.js +0 -34
- package/dist/gcp/geocode/utils/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.d.ts +0 -2
- package/dist/gcp/geocode/utils/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.js +0 -12
- package/dist/gcp/place/enums/PlaceDetailsAddressType.enum.d.ts +0 -11
- package/dist/gcp/place/enums/PlaceDetailsAddressType.enum.js +0 -15
- package/dist/gcp/place/enums/index.d.ts +0 -1
- package/dist/gcp/place/enums/index.js +0 -17
- package/dist/gcp/place/types/PlaceDetailsAddressComponent.type.d.ts +0 -6
- package/dist/gcp/place/types/PlaceDetailsAddressComponent.type.js +0 -2
- package/dist/gcp/place/utils/__tests__/getComponentFromGooglePlaceDetailsAddressComponents.util.test.d.ts +0 -1
- package/dist/gcp/place/utils/__tests__/getComponentFromGooglePlaceDetailsAddressComponents.util.test.js +0 -78
- package/dist/gcp/place/utils/getComponentFromGooglePlaceDetailsAddressComponents.util.d.ts +0 -3
- package/dist/gcp/place/utils/getComponentFromGooglePlaceDetailsAddressComponents.util.js +0 -7
- package/dist/gcp/place/utils/index.d.ts +0 -2
- package/dist/gcp/place/utils/index.js +0 -18
- package/dist/gcp/place/utils/types/GetComponentFromGooglePlaceDetailsAddressComponentsParams.type.d.ts +0 -6
- package/dist/gcp/place/utils/types/GetComponentFromGooglePlaceDetailsAddressComponentsParams.type.js +0 -2
- package/dist/gcp/place/utils/types/index.d.ts +0 -1
- package/dist/gcp/place/utils/types/index.js +0 -17
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityBookableChangedMessage.type.d.ts +0 -3
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityBookableChangedMessage.type.js +0 -2
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNotCompliantAnymoreMessage.type.d.ts +0 -3
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNotCompliantAnymoreMessage.type.js +0 -2
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNowCompliantMessage.type.d.ts +0 -3
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNowCompliantMessage.type.js +0 -2
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderUserComplianceRecomputeRequestedMessage.type.d.ts +0 -4
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderUserComplianceRecomputeRequestedMessage.type.js +0 -2
- package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileRecomputeRequestedMessage.type.d.ts +0 -3
- package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileRecomputeRequestedMessage.type.js +0 -2
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityBookableChangedMessageStub.d.ts +0 -2
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityBookableChangedMessageStub.js +0 -9
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNotCompliantAnymoreMessageStub.d.ts +0 -2
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNotCompliantAnymoreMessageStub.js +0 -9
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNowCompliantMessageStub.d.ts +0 -2
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNowCompliantMessageStub.js +0 -9
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderUserComplianceRecomputeRequestedMessageStub.d.ts +0 -2
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderUserComplianceRecomputeRequestedMessageStub.js +0 -10
- package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileRecomputeRequestedMessageStub.d.ts +0 -2
- package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileRecomputeRequestedMessageStub.js +0 -9
- package/dist/gcp/types/GoogleAddressComponent.type.d.ts +0 -6
- package/dist/gcp/types/GoogleAddressComponent.type.js +0 -2
- package/dist/gcp/types/index.d.ts +0 -1
- package/dist/gcp/types/index.js +0 -17
- package/dist/gcp/utils/__tests__/getGoogleAddressComponentFromAddressComponentsList.test.d.ts +0 -1
- package/dist/gcp/utils/__tests__/getGoogleAddressComponentFromAddressComponentsList.test.js +0 -78
- package/dist/gcp/utils/getGoogleAddressComponentFromAddressComponentsList.d.ts +0 -3
- package/dist/gcp/utils/getGoogleAddressComponentFromAddressComponentsList.js +0 -6
- package/dist/gcp/utils/index.d.ts +0 -2
- package/dist/gcp/utils/index.js +0 -18
- package/dist/gcp/utils/types/GetGoogleAddressComponentFromAddressComponentsListParams.type.d.ts +0 -6
- package/dist/gcp/utils/types/GetGoogleAddressComponentFromAddressComponentsListParams.type.js +0 -2
- package/dist/gcp/utils/types/index.d.ts +0 -1
- package/dist/gcp/utils/types/index.js +0 -17
- package/dist/notifications/enums/CompanyNotificationEventType.d.ts +0 -4
- package/dist/notifications/enums/CompanyNotificationEventType.js +0 -8
- package/dist/notifications/enums/NotificationChannels.enum.d.ts +0 -5
- package/dist/notifications/enums/NotificationChannels.enum.js +0 -9
- 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 -1
- package/dist/notifications/pushNotifications/maps/CompanyPushNotificationDataMap.js +0 -2
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationFailedPushNotificationData.type.d.ts +0 -4
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationFailedPushNotificationData.type.js +0 -2
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationSucceededPushNotificationData.type.d.ts +0 -4
- package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationSucceededPushNotificationData.type.js +0 -2
- package/dist/notifications/pushNotifications/types/company/index.d.ts +0 -2
- package/dist/notifications/pushNotifications/types/company/index.js +0 -18
- package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationFailedPushNotificationData.type.d.ts +0 -4
- package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationFailedPushNotificationData.type.js +0 -2
- package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationSucceededPushNotificationData.type.d.ts +0 -4
- package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationSucceededPushNotificationData.type.js +0 -2
- package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationFailedPushNotificationData.type.d.ts +0 -4
- package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationFailedPushNotificationData.type.js +0 -2
- package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationSucceededPushNotificationData.type.d.ts +0 -4
- package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationSucceededPushNotificationData.type.js +0 -2
- package/dist/utils/format/__tests__/escapeHtml.util.test.d.ts +0 -1
- package/dist/utils/format/__tests__/escapeHtml.util.test.js +0 -32
- package/dist/utils/format/__tests__/formatPriceInCents.util.test.d.ts +0 -1
- package/dist/utils/format/__tests__/formatPriceInCents.util.test.js +0 -34
- package/dist/utils/format/escapeHtml.util.d.ts +0 -1
- package/dist/utils/format/escapeHtml.util.js +0 -11
- package/dist/utils/format/formatPriceInCents.util.d.ts +0 -2
- package/dist/utils/format/formatPriceInCents.util.js +0 -28
- package/dist/utils/vat/__tests__/extractVATNumber.util.test.d.ts +0 -1
- package/dist/utils/vat/__tests__/extractVATNumber.util.test.js +0 -39
- package/dist/utils/vat/__tests__/validateVATFormat.util.test.d.ts +0 -1
- package/dist/utils/vat/__tests__/validateVATFormat.util.test.js +0 -329
- package/dist/utils/vat/extractVATNumber.util.d.ts +0 -4
- package/dist/utils/vat/extractVATNumber.util.js +0 -10
- package/dist/utils/vat/types/ValidateVATFormatArgs.type.d.ts +0 -4
- package/dist/utils/vat/types/ValidateVATFormatArgs.type.js +0 -2
- package/dist/utils/vat/validateVATFormat.util.d.ts +0 -2
- package/dist/utils/vat/validateVATFormat.util.js +0 -24
package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./isIndividualCompany.util";
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./isIndividualCompany.util"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isIndividualCompany = isIndividualCompany;
|
|
4
|
-
const enums_1 = require("../../../../enums");
|
|
5
|
-
function isIndividualCompany(companyDetails) {
|
|
6
|
-
switch (companyDetails.registrationCountry) {
|
|
7
|
-
case enums_1.SupportedCountryIsoCodes.FRANCE: {
|
|
8
|
-
const registration = companyDetails.registration[enums_1.SupportedCountryIsoCodes.FRANCE];
|
|
9
|
-
if (!registration)
|
|
10
|
-
return false;
|
|
11
|
-
return (registration.legalForm ===
|
|
12
|
-
enums_1.SupportedFrenchCompanyLegalForms.ENTREPRISE_INDIVIDUELLE ||
|
|
13
|
-
registration.legalForm ===
|
|
14
|
-
enums_1.SupportedFrenchCompanyLegalForms.MICRO_ENTREPRENEUR);
|
|
15
|
-
}
|
|
16
|
-
default:
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const enums_1 = require("../../../../enums");
|
|
4
|
-
const isCompanyVatValid_util_1 = require("../isCompanyVatValid.util");
|
|
5
|
-
describe("isCompanyVatValid", () => {
|
|
6
|
-
let companyVatDetails;
|
|
7
|
-
it("should return true for valid VAT details", () => {
|
|
8
|
-
companyVatDetails = {
|
|
9
|
-
isVATExempt: false,
|
|
10
|
-
vatNumber: "123456789",
|
|
11
|
-
vatNumberVerificationStatus: enums_1.VatVerificationStatus.VERIFIED,
|
|
12
|
-
};
|
|
13
|
-
expect((0, isCompanyVatValid_util_1.isCompanyVatValid)(companyVatDetails)).toBe(true);
|
|
14
|
-
});
|
|
15
|
-
it("should return false for invalid VAT details", () => {
|
|
16
|
-
companyVatDetails = {
|
|
17
|
-
isVATExempt: false,
|
|
18
|
-
vatNumber: "",
|
|
19
|
-
vatNumberVerificationStatus: enums_1.VatVerificationStatus.PENDING,
|
|
20
|
-
};
|
|
21
|
-
expect((0, isCompanyVatValid_util_1.isCompanyVatValid)(companyVatDetails)).toBe(false);
|
|
22
|
-
});
|
|
23
|
-
it("should return true for VAT exempt companies", () => {
|
|
24
|
-
companyVatDetails = {
|
|
25
|
-
isVATExempt: true,
|
|
26
|
-
vatNumber: "",
|
|
27
|
-
};
|
|
28
|
-
expect((0, isCompanyVatValid_util_1.isCompanyVatValid)(companyVatDetails)).toBe(true);
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const enums_1 = require("../../../../../../enums");
|
|
4
|
-
const isLegalAddressValid_util_1 = require("../isLegalAddressValid.util");
|
|
5
|
-
describe("isLegalAddressValid", () => {
|
|
6
|
-
it("should return true for a valid legal address", () => {
|
|
7
|
-
const legalAddress = {
|
|
8
|
-
line1: "123 Main St",
|
|
9
|
-
postalCode: "12345",
|
|
10
|
-
city: "Test City",
|
|
11
|
-
country: enums_1.SupportedCountryIsoCodes.FRANCE,
|
|
12
|
-
};
|
|
13
|
-
expect((0, isLegalAddressValid_util_1.isLegalAddressValid)(legalAddress)).toBe(true);
|
|
14
|
-
});
|
|
15
|
-
it("should return false for an invalid country code", () => {
|
|
16
|
-
const legalAddress = {
|
|
17
|
-
line1: "123 Main St",
|
|
18
|
-
postalCode: "12345",
|
|
19
|
-
city: "Test City",
|
|
20
|
-
country: "XX",
|
|
21
|
-
};
|
|
22
|
-
expect((0, isLegalAddressValid_util_1.isLegalAddressValid)(legalAddress)).toBe(false);
|
|
23
|
-
});
|
|
24
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isCompanyVatValid = isCompanyVatValid;
|
|
4
|
-
const enums_1 = require("../../../enums");
|
|
5
|
-
function isCompanyVatValid(companyVatDetails) {
|
|
6
|
-
return (companyVatDetails.isVATExempt ||
|
|
7
|
-
(Boolean(companyVatDetails.vatNumber) &&
|
|
8
|
-
companyVatDetails.vatNumberVerificationStatus ===
|
|
9
|
-
enums_1.VatVerificationStatus.VERIFIED));
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isLegalAddressValid = isLegalAddressValid;
|
|
4
|
-
const enums_1 = require("../../../../../enums");
|
|
5
|
-
function isLegalAddressValid(legalAddress) {
|
|
6
|
-
return Object.values(enums_1.SupportedCountryIsoCodes).includes(legalAddress.country);
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,177 +0,0 @@
|
|
|
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 errors_1 = require("../../../../../../errors");
|
|
6
|
-
const enums_2 = require("../../../../enums");
|
|
7
|
-
const stubs_1 = require("../../../stubs");
|
|
8
|
-
const isValidProfessionalService_1 = require("../isValidProfessionalService");
|
|
9
|
-
const isValidServicePricingAndDurationForVehicle_1 = require("../isValidServicePricingAndDurationForVehicle");
|
|
10
|
-
jest.mock("../isValidVehicleForProfessionalService");
|
|
11
|
-
jest.mock("../isValidServicePricingAndDurationForVehicle");
|
|
12
|
-
describe("isValidProfessionalService", () => {
|
|
13
|
-
let defaultProps;
|
|
14
|
-
let isValidServicePricingAndDurationForVehicleMock;
|
|
15
|
-
let isValidServicePricingAndDurationForVehicleReturnValue;
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
defaultProps = {
|
|
18
|
-
professionalService: {
|
|
19
|
-
isActive: true,
|
|
20
|
-
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
21
|
-
pricingAndDurationByVehicleType: {
|
|
22
|
-
[enums_2.VehicleTypes.SEDAN]: {
|
|
23
|
-
isActive: true,
|
|
24
|
-
type: enums_2.VehicleTypes.SEDAN,
|
|
25
|
-
pricePreTaxInCents: 2000,
|
|
26
|
-
currency: enums_1.SupportedIsoCurrency.EUR,
|
|
27
|
-
durationInMinutes: 30,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
countryProfessionalServicePublicConfig: (0, stubs_1.countryServicesPublicConfigStub)({
|
|
32
|
-
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.firestoreServicesPublicConfigStub)({}),
|
|
33
|
-
}),
|
|
34
|
-
};
|
|
35
|
-
isValidServicePricingAndDurationForVehicleMock =
|
|
36
|
-
isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle;
|
|
37
|
-
isValidServicePricingAndDurationForVehicleReturnValue = true;
|
|
38
|
-
isValidServicePricingAndDurationForVehicleMock.mockImplementation(() => {
|
|
39
|
-
return isValidServicePricingAndDurationForVehicleReturnValue;
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
afterEach(() => {
|
|
43
|
-
jest.clearAllMocks();
|
|
44
|
-
});
|
|
45
|
-
it("should not throw if is a valid service with empty pricing and empty subservice", async () => {
|
|
46
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).resolves.not.toThrow();
|
|
47
|
-
});
|
|
48
|
-
describe("Active", () => {
|
|
49
|
-
it("should throw if the active field is not a boolean", async () => {
|
|
50
|
-
defaultProps.professionalService.isActive = "yes";
|
|
51
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow(new errors_1.DoctoCarError("Professional service is active is required and must be a boolean", errors_1.DoctoCarValidationErrorCodes.INVALID_SERVICE_IS_ACTIVE));
|
|
52
|
-
expect(isValidServicePricingAndDurationForVehicleMock).not.toHaveBeenCalled();
|
|
53
|
-
});
|
|
54
|
-
it("should throw if the active field is not provided", async () => {
|
|
55
|
-
defaultProps.professionalService.isActive = undefined;
|
|
56
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow(new errors_1.DoctoCarError("Professional service is active is required and must be a boolean", errors_1.DoctoCarValidationErrorCodes.INVALID_SERVICE_IS_ACTIVE));
|
|
57
|
-
expect(isValidServicePricingAndDurationForVehicleMock).not.toHaveBeenCalled();
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
describe("Service type", () => {
|
|
61
|
-
it("should throw if the service type is not a valid ServicesTypes", async () => {
|
|
62
|
-
defaultProps.professionalService.type = "INVALID_TYPE";
|
|
63
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow();
|
|
64
|
-
expect(isValidServicePricingAndDurationForVehicleMock).not.toHaveBeenCalled();
|
|
65
|
-
});
|
|
66
|
-
it("should throw if the type is not provided", async () => {
|
|
67
|
-
defaultProps.professionalService.type = undefined;
|
|
68
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow();
|
|
69
|
-
expect(isValidServicePricingAndDurationForVehicleMock).not.toHaveBeenCalled();
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
describe("Professional service public config", () => {
|
|
73
|
-
it("should throw if the professional service public config is not defined for the professional service type", async () => {
|
|
74
|
-
defaultProps.countryProfessionalServicePublicConfig = {};
|
|
75
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow(new errors_1.DoctoCarError("Professional service public config is not defined for the professional service type", errors_1.DoctoCarValidationErrorCodes.INVALID_SERVICE_TYPE));
|
|
76
|
-
expect(isValidServicePricingAndDurationForVehicleMock).not.toHaveBeenCalled();
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
describe("Price and duration", () => {
|
|
80
|
-
it("should not throw if isValidServicePricingAndDurationForVehicle return true", async () => {
|
|
81
|
-
isValidServicePricingAndDurationForVehicleReturnValue = true;
|
|
82
|
-
isValidServicePricingAndDurationForVehicleMock.mockReturnValue(isValidServicePricingAndDurationForVehicleReturnValue);
|
|
83
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).resolves.not.toThrow();
|
|
84
|
-
expect(isValidServicePricingAndDurationForVehicleMock).toHaveBeenCalledTimes(1);
|
|
85
|
-
expect(isValidServicePricingAndDurationForVehicleMock).toHaveBeenCalledWith({
|
|
86
|
-
professionalServicePublicConfig: defaultProps.countryProfessionalServicePublicConfig[defaultProps.professionalService.type],
|
|
87
|
-
servicePricingAndDuration: defaultProps.professionalService.pricingAndDurationByVehicleType[enums_2.VehicleTypes.SEDAN],
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
it("Should throw if isValidServicePricingAndDurationForVehicle return false", async () => {
|
|
91
|
-
isValidServicePricingAndDurationForVehicleReturnValue = false;
|
|
92
|
-
isValidServicePricingAndDurationForVehicleMock.mockReturnValue(isValidServicePricingAndDurationForVehicleReturnValue);
|
|
93
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow();
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
describe("parentsServices", () => {
|
|
97
|
-
it("Should throw if a service does not have the parents services indicated in the config", async () => {
|
|
98
|
-
defaultProps.professionalService = {
|
|
99
|
-
isActive: true,
|
|
100
|
-
type: enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT,
|
|
101
|
-
parentsServices: [],
|
|
102
|
-
pricingAndDurationByVehicleType: {},
|
|
103
|
-
};
|
|
104
|
-
defaultProps.countryProfessionalServicePublicConfig =
|
|
105
|
-
(0, stubs_1.countryServicesPublicConfigStub)({
|
|
106
|
-
[enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT]: (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
107
|
-
parentsServices: [
|
|
108
|
-
enums_2.ServicesTypes.INTERIOR_CLEANING,
|
|
109
|
-
enums_2.ServicesTypes.INTERIOR_AND_EXTERIOR_CLEANING,
|
|
110
|
-
],
|
|
111
|
-
}),
|
|
112
|
-
});
|
|
113
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow();
|
|
114
|
-
});
|
|
115
|
-
it("Should not throw if a valid service have the parents services indicated in the config", async () => {
|
|
116
|
-
defaultProps.professionalService = {
|
|
117
|
-
isActive: true,
|
|
118
|
-
type: enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT,
|
|
119
|
-
parentsServices: [
|
|
120
|
-
enums_2.ServicesTypes.INTERIOR_CLEANING,
|
|
121
|
-
enums_2.ServicesTypes.INTERIOR_AND_EXTERIOR_CLEANING,
|
|
122
|
-
],
|
|
123
|
-
pricingAndDurationByVehicleType: {},
|
|
124
|
-
};
|
|
125
|
-
defaultProps.countryProfessionalServicePublicConfig =
|
|
126
|
-
(0, stubs_1.countryServicesPublicConfigStub)({
|
|
127
|
-
[enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT]: (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
128
|
-
parentsServices: [
|
|
129
|
-
enums_2.ServicesTypes.INTERIOR_CLEANING,
|
|
130
|
-
enums_2.ServicesTypes.INTERIOR_AND_EXTERIOR_CLEANING,
|
|
131
|
-
],
|
|
132
|
-
}),
|
|
133
|
-
});
|
|
134
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).resolves.not.toThrow();
|
|
135
|
-
});
|
|
136
|
-
it("Should throw if a valid service have the parents services indicated in the config but miss one", async () => {
|
|
137
|
-
defaultProps.professionalService = {
|
|
138
|
-
isActive: true,
|
|
139
|
-
type: enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT,
|
|
140
|
-
parentsServices: [enums_2.ServicesTypes.INTERIOR_CLEANING],
|
|
141
|
-
pricingAndDurationByVehicleType: {},
|
|
142
|
-
};
|
|
143
|
-
defaultProps.countryProfessionalServicePublicConfig =
|
|
144
|
-
(0, stubs_1.countryServicesPublicConfigStub)({
|
|
145
|
-
[enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT]: (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
146
|
-
parentsServices: [
|
|
147
|
-
enums_2.ServicesTypes.INTERIOR_CLEANING,
|
|
148
|
-
enums_2.ServicesTypes.INTERIOR_AND_EXTERIOR_CLEANING,
|
|
149
|
-
],
|
|
150
|
-
}),
|
|
151
|
-
});
|
|
152
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow();
|
|
153
|
-
});
|
|
154
|
-
it("Should throw if a valid service have the parents services indicated in the config but have one more", async () => {
|
|
155
|
-
defaultProps.professionalService = {
|
|
156
|
-
isActive: true,
|
|
157
|
-
type: enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT,
|
|
158
|
-
parentsServices: [
|
|
159
|
-
enums_2.ServicesTypes.INTERIOR_CLEANING,
|
|
160
|
-
enums_2.ServicesTypes.INTERIOR_AND_EXTERIOR_CLEANING,
|
|
161
|
-
enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
162
|
-
],
|
|
163
|
-
pricingAndDurationByVehicleType: {},
|
|
164
|
-
};
|
|
165
|
-
defaultProps.countryProfessionalServicePublicConfig =
|
|
166
|
-
(0, stubs_1.countryServicesPublicConfigStub)({
|
|
167
|
-
[enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT]: (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
168
|
-
parentsServices: [
|
|
169
|
-
enums_2.ServicesTypes.INTERIOR_CLEANING,
|
|
170
|
-
enums_2.ServicesTypes.INTERIOR_AND_EXTERIOR_CLEANING,
|
|
171
|
-
],
|
|
172
|
-
}),
|
|
173
|
-
});
|
|
174
|
-
await expect((0, isValidProfessionalService_1.isValidProfessionalService)(defaultProps)).rejects.toThrow();
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,129 +0,0 @@
|
|
|
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 constants_1 = require("../../../../constants");
|
|
6
|
-
const enums_2 = require("../../../../enums");
|
|
7
|
-
const stubs_1 = require("../../../stubs");
|
|
8
|
-
const isValidProfessionalServicePricingAndDurationForVehicle_1 = require("../isValidProfessionalServicePricingAndDurationForVehicle");
|
|
9
|
-
describe("isValidProfessionalServicePricingAndDurationForVehicle", () => {
|
|
10
|
-
let defaultProps;
|
|
11
|
-
let minimumPriceInCents;
|
|
12
|
-
let maximumPriceInCents;
|
|
13
|
-
let durationInMinutes;
|
|
14
|
-
beforeEach(() => {
|
|
15
|
-
minimumPriceInCents = constants_1.PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS;
|
|
16
|
-
maximumPriceInCents =
|
|
17
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS * 10;
|
|
18
|
-
durationInMinutes =
|
|
19
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES;
|
|
20
|
-
defaultProps = {
|
|
21
|
-
professionalServicePublicConfig: (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
22
|
-
byVehicleType: {
|
|
23
|
-
[enums_2.VehicleTypes.CITY_CAR]: {
|
|
24
|
-
durationInMinutes: durationInMinutes,
|
|
25
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
26
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
27
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
28
|
-
},
|
|
29
|
-
[enums_2.VehicleTypes.SUV]: {
|
|
30
|
-
durationInMinutes: durationInMinutes,
|
|
31
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
32
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
33
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
34
|
-
},
|
|
35
|
-
[enums_2.VehicleTypes.MOTORCYCLE]: {
|
|
36
|
-
durationInMinutes: durationInMinutes,
|
|
37
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
38
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
39
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
40
|
-
},
|
|
41
|
-
[enums_2.VehicleTypes.SEDAN]: {
|
|
42
|
-
durationInMinutes: durationInMinutes,
|
|
43
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
44
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
45
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
46
|
-
},
|
|
47
|
-
[enums_2.VehicleTypes.PICKUP_TRUCK]: {
|
|
48
|
-
durationInMinutes: durationInMinutes,
|
|
49
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
50
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
51
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
52
|
-
},
|
|
53
|
-
[enums_2.VehicleTypes.VAN]: {
|
|
54
|
-
durationInMinutes: durationInMinutes,
|
|
55
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
56
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
57
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
allowedVehicles: [enums_2.VehicleTypes.CITY_CAR],
|
|
61
|
-
}),
|
|
62
|
-
servicePricingAndDuration: {
|
|
63
|
-
isActive: true,
|
|
64
|
-
type: enums_2.VehicleTypes.CITY_CAR,
|
|
65
|
-
pricePreTaxInCents: minimumPriceInCents,
|
|
66
|
-
currency: enums_1.SupportedIsoCurrency.EUR,
|
|
67
|
-
durationInMinutes: durationInMinutes,
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
});
|
|
71
|
-
afterEach(() => {
|
|
72
|
-
jest.clearAllMocks();
|
|
73
|
-
});
|
|
74
|
-
it("should return true if pricing is valid for service", () => {
|
|
75
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(true);
|
|
76
|
-
});
|
|
77
|
-
it("Should return false if active is not a boolean", () => {
|
|
78
|
-
defaultProps.servicePricingAndDuration.isActive = "Not a boolean";
|
|
79
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
80
|
-
});
|
|
81
|
-
it("Should return false if pricePreTaxInCents is not a number", () => {
|
|
82
|
-
defaultProps.servicePricingAndDuration.pricePreTaxInCents =
|
|
83
|
-
"Not a number";
|
|
84
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
85
|
-
});
|
|
86
|
-
it("Should return false if pricePreTaxInCents is less than the service minimum", () => {
|
|
87
|
-
defaultProps.servicePricingAndDuration.pricePreTaxInCents =
|
|
88
|
-
minimumPriceInCents -
|
|
89
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS;
|
|
90
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
91
|
-
});
|
|
92
|
-
it("Should return false if pricePreTaxInCents is more than PROFESSIONAL_SERVICE_MAXIMUM_PRICE_IN_CENTS", () => {
|
|
93
|
-
defaultProps.servicePricingAndDuration.pricePreTaxInCents =
|
|
94
|
-
maximumPriceInCents +
|
|
95
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS;
|
|
96
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
97
|
-
});
|
|
98
|
-
it("Should return false if pricePreTaxInCents is not a multiple of PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS", () => {
|
|
99
|
-
defaultProps.servicePricingAndDuration.pricePreTaxInCents =
|
|
100
|
-
maximumPriceInCents - 1;
|
|
101
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
102
|
-
});
|
|
103
|
-
it("Should return false if SupportedIsoCurrency is not a valid currency", () => {
|
|
104
|
-
defaultProps.servicePricingAndDuration.currency =
|
|
105
|
-
"Not a valid currency";
|
|
106
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
107
|
-
});
|
|
108
|
-
it("Should return false if durationInMinutes is not a number", () => {
|
|
109
|
-
defaultProps.servicePricingAndDuration.durationInMinutes =
|
|
110
|
-
"Not a number";
|
|
111
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
112
|
-
});
|
|
113
|
-
it("Should return false if durationInMinutes is less than the duration for the service", () => {
|
|
114
|
-
defaultProps.servicePricingAndDuration.durationInMinutes =
|
|
115
|
-
durationInMinutes -
|
|
116
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES;
|
|
117
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
118
|
-
});
|
|
119
|
-
it("Should return false if durationInMinutes is more than the duration for the service", () => {
|
|
120
|
-
defaultProps.servicePricingAndDuration.durationInMinutes =
|
|
121
|
-
durationInMinutes +
|
|
122
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES;
|
|
123
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
124
|
-
});
|
|
125
|
-
it("Should return false if the type is not a valid vehicle type", () => {
|
|
126
|
-
defaultProps.servicePricingAndDuration.type = "Not a vehicle type";
|
|
127
|
-
expect((0, isValidProfessionalServicePricingAndDurationForVehicle_1.isValidProfessionalServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
128
|
-
});
|
|
129
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
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 isValidProfessionalServiceType_1 = require("../isValidProfessionalServiceType");
|
|
6
|
-
describe("isValidProfessionalServiceType", () => {
|
|
7
|
-
describe.each(Object.values(enums_1.ServicesTypes))("when the service type is %p", (serviceType) => {
|
|
8
|
-
it("should return true", () => {
|
|
9
|
-
expect((0, isValidProfessionalServiceType_1.isValidProfessionalServiceType)(serviceType)).toBe(true);
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
it("should return false when the service type is unknown", () => {
|
|
13
|
-
expect((0, isValidProfessionalServiceType_1.isValidProfessionalServiceType)("UNKNOWN_SERVICE_TYPE")).toBe(false);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,136 +0,0 @@
|
|
|
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 constants_1 = require("../../../../constants");
|
|
6
|
-
const enums_2 = require("../../../../enums");
|
|
7
|
-
const stubs_1 = require("../../../stubs");
|
|
8
|
-
const isValidServicePricingAndDurationForVehicle_1 = require("../isValidServicePricingAndDurationForVehicle");
|
|
9
|
-
describe("isValidServicePricingAndDurationForVehicle", () => {
|
|
10
|
-
let defaultProps;
|
|
11
|
-
let minimumPriceInCents;
|
|
12
|
-
let maximumPriceInCents;
|
|
13
|
-
let durationInMinutes;
|
|
14
|
-
beforeEach(() => {
|
|
15
|
-
minimumPriceInCents = constants_1.PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS;
|
|
16
|
-
maximumPriceInCents =
|
|
17
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS * 10;
|
|
18
|
-
durationInMinutes =
|
|
19
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES;
|
|
20
|
-
defaultProps = {
|
|
21
|
-
servicePublicConfig: (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
22
|
-
byVehicleType: {
|
|
23
|
-
[enums_2.VehicleTypes.CITY_CAR]: {
|
|
24
|
-
durationInMinutes: durationInMinutes,
|
|
25
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
26
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
27
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
28
|
-
},
|
|
29
|
-
[enums_2.VehicleTypes.SUV]: {
|
|
30
|
-
durationInMinutes: durationInMinutes,
|
|
31
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
32
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
33
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
34
|
-
},
|
|
35
|
-
[enums_2.VehicleTypes.MOTORCYCLE]: {
|
|
36
|
-
durationInMinutes: durationInMinutes,
|
|
37
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
38
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
39
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
40
|
-
},
|
|
41
|
-
[enums_2.VehicleTypes.SEDAN]: {
|
|
42
|
-
durationInMinutes: durationInMinutes,
|
|
43
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
44
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
45
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
46
|
-
},
|
|
47
|
-
[enums_2.VehicleTypes.PICKUP_TRUCK]: {
|
|
48
|
-
durationInMinutes: durationInMinutes,
|
|
49
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
50
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
51
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
52
|
-
},
|
|
53
|
-
[enums_2.VehicleTypes.VAN]: {
|
|
54
|
-
durationInMinutes: durationInMinutes,
|
|
55
|
-
minimumPriceInCents: minimumPriceInCents,
|
|
56
|
-
maximumPriceInCents: maximumPriceInCents,
|
|
57
|
-
recommendedPriceInCents: maximumPriceInCents,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
}),
|
|
61
|
-
servicePricingAndDurationForVehicle: {
|
|
62
|
-
isActive: true,
|
|
63
|
-
type: enums_2.VehicleTypes.CITY_CAR,
|
|
64
|
-
pricePreTaxInCents: minimumPriceInCents,
|
|
65
|
-
currency: enums_1.SupportedIsoCurrency.EUR,
|
|
66
|
-
durationInMinutes: durationInMinutes,
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
});
|
|
70
|
-
afterEach(() => {
|
|
71
|
-
jest.clearAllMocks();
|
|
72
|
-
});
|
|
73
|
-
it("should return true if pricing is valid for service", () => {
|
|
74
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(true);
|
|
75
|
-
});
|
|
76
|
-
it("Should return false if active is not a boolean", () => {
|
|
77
|
-
defaultProps.servicePricingAndDurationForVehicle.isActive =
|
|
78
|
-
"Not a boolean";
|
|
79
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
80
|
-
});
|
|
81
|
-
it("Should return false if service public config is not defined for the vehicle type", () => {
|
|
82
|
-
defaultProps.servicePublicConfig.byVehicleType = {
|
|
83
|
-
[enums_2.VehicleTypes.CITY_CAR]: undefined,
|
|
84
|
-
};
|
|
85
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
86
|
-
});
|
|
87
|
-
it("Should return false if pricePreTaxInCents is not a number", () => {
|
|
88
|
-
defaultProps.servicePricingAndDurationForVehicle.pricePreTaxInCents =
|
|
89
|
-
"Not a number";
|
|
90
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
91
|
-
});
|
|
92
|
-
it("Should return false if pricePreTaxInCents is less than the service minimum", () => {
|
|
93
|
-
defaultProps.servicePricingAndDurationForVehicle.pricePreTaxInCents =
|
|
94
|
-
minimumPriceInCents -
|
|
95
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS;
|
|
96
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
97
|
-
});
|
|
98
|
-
it("Should return false if pricePreTaxInCents is more than PROFESSIONAL_SERVICE_MAXIMUM_PRICE_IN_CENTS", () => {
|
|
99
|
-
defaultProps.servicePricingAndDurationForVehicle.pricePreTaxInCents =
|
|
100
|
-
maximumPriceInCents +
|
|
101
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS;
|
|
102
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
103
|
-
});
|
|
104
|
-
it("Should return false if pricePreTaxInCents is not a multiple of PROFESSIONAL_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS", () => {
|
|
105
|
-
defaultProps.servicePricingAndDurationForVehicle.pricePreTaxInCents =
|
|
106
|
-
maximumPriceInCents - 1;
|
|
107
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
108
|
-
});
|
|
109
|
-
it("Should return false if SupportedIsoCurrency is not a valid currency", () => {
|
|
110
|
-
defaultProps.servicePricingAndDurationForVehicle.currency =
|
|
111
|
-
"Not a valid currency";
|
|
112
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
113
|
-
});
|
|
114
|
-
it("Should return false if durationInMinutes is not a number", () => {
|
|
115
|
-
defaultProps.servicePricingAndDurationForVehicle.durationInMinutes =
|
|
116
|
-
"Not a number";
|
|
117
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
118
|
-
});
|
|
119
|
-
it("Should return false if durationInMinutes is less than the duration for the service", () => {
|
|
120
|
-
defaultProps.servicePricingAndDurationForVehicle.durationInMinutes =
|
|
121
|
-
durationInMinutes -
|
|
122
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES;
|
|
123
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
124
|
-
});
|
|
125
|
-
it("Should return false if durationInMinutes is more than the duration for the service", () => {
|
|
126
|
-
defaultProps.servicePricingAndDurationForVehicle.durationInMinutes =
|
|
127
|
-
durationInMinutes +
|
|
128
|
-
constants_1.PROFESSIONAL_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES;
|
|
129
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
130
|
-
});
|
|
131
|
-
it("Should return false if the type is not a valid vehicle type", () => {
|
|
132
|
-
defaultProps.servicePricingAndDurationForVehicle.type =
|
|
133
|
-
"Not a vehicle type";
|
|
134
|
-
expect((0, isValidServicePricingAndDurationForVehicle_1.isValidServicePricingAndDurationForVehicle)(defaultProps)).toBe(false);
|
|
135
|
-
});
|
|
136
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|