@doctocar/tooling 0.3.1-6 → 0.3.1-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emails/enums/AWSSESEmailsTemplatesNames.enum.d.ts +3 -1
- package/dist/emails/enums/AWSSESEmailsTemplatesNames.enum.js +3 -1
- package/dist/emails/maps/EmailTemplateDataMap.map.d.ts +4 -2
- package/dist/emails/maps/EmailTemplateDataMap.map.js +0 -4
- package/dist/emails/types/entity/ServiceProviderEntityIsNotCompliantAnymoreEmailData.type.d.ts +4 -0
- package/dist/emails/types/entity/ServiceProviderEntityIsNowCompliantEmailData.type.d.ts +3 -0
- package/dist/emails/types/entity/ServiceProviderEntityOnboardingCompletedEmailData.type.d.ts +3 -0
- package/dist/emails/types/entity/index.d.ts +3 -0
- package/dist/emails/types/entity/index.js +3 -0
- package/dist/emails/types/professional/index.d.ts +0 -1
- package/dist/emails/types/professional/index.js +0 -1
- package/dist/errors/enums/cloudFunctions/entities/UpdateEntityAgreementsErrorCodes.enum.d.ts +12 -0
- package/dist/errors/enums/cloudFunctions/entities/UpdateEntityAgreementsErrorCodes.enum.js +16 -0
- package/dist/errors/enums/cloudFunctions/entities/UpdateEntityProfessionalLiabilityInsuranceErrorCodes.enum.d.ts +11 -0
- package/dist/errors/enums/cloudFunctions/entities/UpdateEntityProfessionalLiabilityInsuranceErrorCodes.enum.js +15 -0
- package/dist/errors/enums/cloudFunctions/entities/index.d.ts +2 -0
- package/dist/errors/enums/cloudFunctions/entities/index.js +2 -0
- package/dist/errors/enums/cloudFunctions/index.d.ts +2 -1
- package/dist/errors/enums/cloudFunctions/index.js +2 -1
- package/dist/errors/enums/cloudFunctions/orders/CustomerSubmitOrderRatingAndReviewErrorCodes.enum.d.ts +1 -1
- package/dist/errors/enums/cloudFunctions/orders/CustomerSubmitOrderRatingAndReviewErrorCodes.enum.js +1 -1
- package/dist/errors/enums/cloudFunctions/orders/GetOrCreateServiceBookingOrderWithPaymentIntentErrorCodes.enum.d.ts +6 -4
- package/dist/errors/enums/cloudFunctions/orders/GetOrCreateServiceBookingOrderWithPaymentIntentErrorCodes.enum.js +6 -4
- package/dist/errors/enums/cloudFunctions/orders/{ProfessionalUserDeleteOrderServicePhotosErrorCodes.enum.d.ts → ServiceProviderUserDeleteOrderServicePhotosErrorCodes.enum.d.ts} +1 -1
- package/dist/errors/enums/cloudFunctions/orders/ServiceProviderUserDeleteOrderServicePhotosErrorCodes.enum.js +13 -0
- package/dist/errors/enums/cloudFunctions/orders/{ProfessionalUserUploadOrderServicePhotosErrorCodes.enum.d.ts → ServiceProviderUserUploadOrderServicePhotosErrorCodes.enum.d.ts} +2 -2
- package/dist/errors/enums/cloudFunctions/orders/ServiceProviderUserUploadOrderServicePhotosErrorCodes.enum.js +17 -0
- package/dist/errors/enums/cloudFunctions/orders/index.d.ts +2 -2
- package/dist/errors/enums/cloudFunctions/orders/index.js +2 -2
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/CreateServiceProviderUserPublicDocumentErrorCodes.enum.d.ts +6 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/CreateServiceProviderUserPublicDocumentErrorCodes.enum.js +10 -0
- package/dist/errors/enums/cloudFunctions/{professionals/CreateProfessionalUserSlotDocumentErrorCodes.enum.d.ts → serviceProviderUsers/CreateServiceProviderUserSlotDocumentErrorCodes.enum.d.ts} +1 -1
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/CreateServiceProviderUserSlotDocumentErrorCodes.enum.js +8 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserErrorCodes.enum.d.ts +7 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserErrorCodes.enum.js +11 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserServiceErrorCodes.enum.d.ts +7 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserServiceErrorCodes.enum.js +11 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentErrorCodes.enum.d.ts +6 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentErrorCodes.enum.js +10 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServiceErrorCodes.enum.d.ts +7 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServiceErrorCodes.enum.js +11 -0
- package/dist/errors/enums/cloudFunctions/{professionals/UpdateProfessionalUserServicesLocationErrorCodes.enum.d.ts → serviceProviderUsers/UpdateServiceProviderUserServicesLocationErrorCodes.enum.d.ts} +2 -2
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServicesLocationErrorCodes.enum.js +12 -0
- package/dist/errors/enums/cloudFunctions/{professionals/UpdateProfessionalUserSlotDocumentErrorCodes.enum.d.ts → serviceProviderUsers/UpdateServiceProviderUserSlotDocumentErrorCodes.enum.d.ts} +1 -1
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserSlotDocumentErrorCodes.enum.js +8 -0
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/index.d.ts +8 -0
- package/dist/errors/enums/cloudFunctions/{professionals → serviceProviderUsers}/index.js +8 -5
- package/dist/errors/enums/cloudFunctions/stripe/CreateStripeEntityAccountLinkErrorCodes.enum.d.ts +11 -0
- package/dist/errors/enums/cloudFunctions/stripe/CreateStripeEntityAccountLinkErrorCodes.enum.js +15 -0
- package/dist/errors/enums/cloudFunctions/stripe/index.d.ts +1 -0
- package/dist/errors/enums/cloudFunctions/stripe/index.js +17 -0
- package/dist/errors/enums/cloudFunctions/users/CreateUserDocumentErrorCodes.enum.d.ts +5 -0
- package/dist/errors/enums/cloudFunctions/users/CreateUserDocumentErrorCodes.enum.js +9 -0
- package/dist/errors/enums/cloudFunctions/users/auth/SendUserEmailVerificationErrorCodes.enum.d.ts +1 -0
- package/dist/errors/enums/cloudFunctions/users/auth/SendUserEmailVerificationErrorCodes.enum.js +1 -0
- package/dist/errors/enums/cloudFunctions/users/index.d.ts +1 -0
- package/dist/errors/enums/cloudFunctions/users/index.js +1 -0
- package/dist/errors/enums/cloudFunctions/wallets/RequestWalletWithdrawalErrorCodes.enum.d.ts +5 -0
- package/dist/errors/enums/cloudFunctions/wallets/RequestWalletWithdrawalErrorCodes.enum.js +5 -0
- package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.d.ts +12 -13
- package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.js +13 -14
- package/dist/firebase/cloudFunctions/enums/TaskCloudFunctionsNames.enum.d.ts +2 -1
- package/dist/firebase/cloudFunctions/enums/TaskCloudFunctionsNames.enum.js +2 -1
- package/dist/firebase/cloudFunctions/enums/testUsers/TestUsersEmails.enum.d.ts +2 -2
- package/dist/firebase/cloudFunctions/enums/testUsers/TestUsersEmails.enum.js +2 -2
- package/dist/firebase/cloudFunctions/enums/testUsers/TestUsersScenarios.enum.d.ts +2 -2
- package/dist/firebase/cloudFunctions/enums/testUsers/TestUsersScenarios.enum.js +2 -2
- package/dist/firebase/cloudFunctions/maps/OnCallCloudFunctionsTypeMappings.map.d.ts +39 -43
- package/dist/firebase/cloudFunctions/maps/testUsers/TestUsersEmailsScenariosMap.js +2 -2
- package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsPayload.type.d.ts +18 -0
- package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsRequestData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsResponseData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/entities/UpdateEntityProfessionalLiabilityInsuranceRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/entities/UpdateEntityProfessionalLiabilityInsuranceResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/entities/index.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/entities/index.js +5 -0
- package/dist/firebase/cloudFunctions/types/orders/GetOrCreateServiceBookingOrderWithPaymentIntentRequestData.type.d.ts +4 -4
- package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserDeleteOrderServicePhotosRequestData.type.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserDeleteOrderServicePhotosResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserUploadOrderServicePhotosRequestData.type.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserUploadOrderServicePhotosResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/orders/index.d.ts +4 -4
- package/dist/firebase/cloudFunctions/types/orders/index.js +4 -4
- package/dist/firebase/cloudFunctions/types/stripe/{CreateStripeUserAccountLinkRequestData.type.d.ts → CreateStripeEntityAccountLinkRequestData.type.d.ts} +2 -1
- package/dist/firebase/cloudFunctions/types/stripe/{CreateStripeUserAccountLinkResponseData.type.d.ts → CreateStripeEntityAccountLinkResponseData.type.d.ts} +1 -1
- package/dist/firebase/cloudFunctions/types/stripe/index.d.ts +2 -2
- package/dist/firebase/cloudFunctions/types/stripe/index.js +2 -2
- package/dist/firebase/cloudFunctions/types/users/CreateUserDocumentRequestData.type.d.ts +4 -1
- package/dist/firebase/cloudFunctions/types/users/index.d.ts +1 -1
- package/dist/firebase/cloudFunctions/types/users/index.js +1 -1
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/CreateServiceProviderUserPublicDocumentRequestData.type.d.ts +2 -0
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/CreateServiceProviderUserPublicDocumentResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserServiceRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserServiceResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/{professionals/DeleteProfessionalUserSlotDocumentRequestData.type.d.ts → serviceProviderUsers/DeleteServiceProviderUserSlotDocumentRequestData.type.d.ts} +1 -1
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServiceRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServiceResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserServicesLocationRequestData.type.d.ts → serviceProviderUsers/UpdateServiceProviderUserServicesLocationRequestData.type.d.ts} +1 -1
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServicesLocationResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/index.d.ts +11 -0
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/index.js +27 -0
- package/dist/firebase/cloudFunctions/types/users/{professionals/slots/CreateProfessionalUserSlotDocumentRequestData.type.d.ts → serviceProviderUsers/slots/CreateServiceProviderUserSlotDocumentRequestData.type.d.ts} +1 -1
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/CreateServiceProviderUserSlotDocumentResponseData.type.d.ts +3 -0
- package/dist/firebase/cloudFunctions/types/users/{professionals/slots/UpdateProfessionalUserSlotDocumentRequestData.type.d.ts → serviceProviderUsers/slots/UpdateServiceProviderUserSlotDocumentRequestData.type.d.ts} +1 -1
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/UpdateServiceProviderUserSlotDocumentResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/index.d.ts +8 -0
- package/dist/firebase/cloudFunctions/types/users/{professionals → serviceProviderUsers}/slots/index.js +7 -4
- package/dist/firebase/cloudFunctions/types/wallet/ApplyTestWalletLedgerEntryRequestData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/wallet/RequestWalletWithdrawalRequestData.type.d.ts +1 -0
- package/dist/firebase/constants/entities/index.d.ts +1 -0
- package/dist/firebase/{firestore/utils/company → constants/entities}/index.js +1 -1
- package/dist/firebase/constants/entities/testEntityIdPrefix.constant.d.ts +1 -0
- package/dist/firebase/constants/entities/testEntityIdPrefix.constant.js +4 -0
- package/dist/firebase/constants/index.d.ts +1 -0
- package/dist/firebase/constants/index.js +1 -0
- package/dist/firebase/firestore/constants/index.d.ts +1 -0
- package/dist/firebase/firestore/constants/index.js +1 -0
- package/dist/firebase/firestore/constants/maximumEntityMembers.constant.d.ts +1 -1
- package/dist/firebase/firestore/constants/maximumEntityMembers.constant.js +1 -1
- package/dist/firebase/firestore/constants/sandboxDocumentIdPrefix.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/sandboxDocumentIdPrefix.constant.js +4 -0
- package/dist/firebase/firestore/enums/FirestoreCollections.enum.d.ts +26 -24
- package/dist/firebase/firestore/enums/FirestoreCollections.enum.js +26 -24
- package/dist/firebase/firestore/enums/customers/CustomerUserNonComplianceReason.enum.d.ts +5 -0
- package/dist/firebase/firestore/enums/customers/CustomerUserNonComplianceReason.enum.js +9 -0
- package/dist/firebase/firestore/enums/customers/index.d.ts +1 -0
- package/dist/firebase/firestore/{types/companyUnique → enums/customers}/index.js +1 -1
- package/dist/firebase/firestore/enums/entities/EntityComplianceStatus.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/entities/EntityComplianceStatus.enum.js +8 -0
- package/dist/firebase/firestore/enums/entities/EntityCustomerNonComplianceReason.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/entities/EntityCustomerNonComplianceReason.enum.js +8 -0
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonComplianceReason.enum.d.ts +17 -0
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonComplianceReason.enum.js +21 -0
- package/dist/firebase/firestore/enums/entities/index.d.ts +3 -2
- package/dist/firebase/firestore/enums/entities/index.js +3 -2
- package/dist/firebase/firestore/enums/index.d.ts +3 -2
- package/dist/firebase/firestore/enums/index.js +3 -2
- package/dist/firebase/firestore/enums/legal/TermsAndPolicyStatus.enum.d.ts +5 -0
- package/dist/firebase/firestore/enums/legal/TermsAndPolicyStatus.enum.js +9 -0
- package/dist/firebase/firestore/enums/legal/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/{users/customers → legal}/index.js +1 -1
- package/dist/firebase/firestore/enums/orders/OrderActorRole.enum.d.ts +1 -1
- package/dist/firebase/firestore/enums/orders/OrderActorRole.enum.js +1 -1
- package/dist/firebase/firestore/enums/orders/{OrderProfessionalServiceDetailsPhotoMoment.enum.d.ts → OrderServiceDetailsPhotoMoment.enum.d.ts} +1 -1
- package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoMoment.enum.js +8 -0
- package/dist/firebase/firestore/enums/orders/OrderUpdatedByType.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/orders/OrderUpdatedByType.enum.js +8 -0
- package/dist/firebase/firestore/enums/orders/index.d.ts +3 -1
- package/dist/firebase/firestore/enums/orders/index.js +3 -1
- package/dist/firebase/firestore/enums/orders/snapshots/VehicleSnapshotForOrderOwnerType.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/orders/snapshots/VehicleSnapshotForOrderOwnerType.enum.js +8 -0
- package/dist/firebase/firestore/enums/orders/snapshots/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/{professionalUser → orders/snapshots}/index.js +1 -1
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonComplianceReason.enum.d.ts +6 -0
- package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonComplianceReason.enum.js +10 -0
- package/dist/firebase/firestore/enums/serviceProviderUsers/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/serviceProviderUsers/index.js +17 -0
- package/dist/firebase/firestore/enums/services/ServicesCategoryTypes.enum.d.ts +3 -0
- package/dist/firebase/firestore/enums/services/ServicesCategoryTypes.enum.js +7 -0
- package/dist/firebase/firestore/enums/services/{ProfessionalServicesTypes.enum.d.ts → ServicesTypes.enum.d.ts} +1 -1
- package/dist/firebase/firestore/enums/services/ServicesTypes.enum.js +16 -0
- package/dist/firebase/firestore/enums/services/index.d.ts +2 -2
- package/dist/firebase/firestore/enums/services/index.js +2 -2
- package/dist/firebase/firestore/enums/users/UserComplianceStatus.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/users/UserComplianceStatus.enum.js +8 -0
- package/dist/firebase/firestore/enums/users/index.d.ts +1 -1
- package/dist/firebase/firestore/enums/users/index.js +1 -1
- package/dist/firebase/firestore/enums/users/professionals/index.d.ts +0 -2
- package/dist/firebase/firestore/enums/users/professionals/index.js +0 -2
- package/dist/firebase/firestore/maps/FirestoreCollectionDocumentTypeMap.d.ts +4 -2
- package/dist/firebase/firestore/maps/FirestoreCollectionDocumentTypeMap.js +0 -4
- package/dist/firebase/firestore/types/company/index.d.ts +0 -5
- package/dist/firebase/firestore/types/company/index.js +0 -5
- package/dist/firebase/firestore/types/configs/CountryServicesPublicConfig.type.d.ts +2 -2
- package/dist/firebase/firestore/types/configs/FirestoreOrdersPublicConfigDocument.type.d.ts +3 -3
- package/dist/firebase/firestore/types/configs/FirestorePlatformPublicConfigDocument.type.d.ts +1 -13
- package/dist/firebase/firestore/types/configs/FirestoreServicesPublicConfig.type.d.ts +4 -5
- package/dist/firebase/firestore/types/configs/ServicesPublicConfigByVehicleType.type.d.ts +2 -6
- package/dist/firebase/firestore/types/configs/ServicesPublicConfigPhotosRequirements.type.d.ts +2 -2
- package/dist/firebase/firestore/types/configs/ServicesPublicConfigVehiclePricingAndDuration.type.d.ts +6 -0
- package/dist/firebase/firestore/types/configs/index.d.ts +1 -0
- package/dist/firebase/firestore/types/configs/index.js +1 -0
- package/dist/firebase/firestore/types/entities/EntityAgreements.type.d.ts +1 -1
- package/dist/firebase/firestore/types/entities/EntityVatDetails.type.d.ts +1 -1
- package/dist/firebase/firestore/types/entities/FirestoreEntityDocument.type.d.ts +41 -6
- package/dist/firebase/firestore/types/entityMembers/FirestoreEntityMemberDocument.type.d.ts +7 -1
- package/dist/firebase/firestore/types/index.d.ts +0 -1
- package/dist/firebase/firestore/types/index.js +0 -1
- package/dist/firebase/firestore/types/legal/TermsAndPolicy.type.d.ts +2 -0
- package/dist/firebase/firestore/types/location/DoctoCarLocation.type.d.ts +2 -0
- package/dist/firebase/firestore/types/order/FirestoreOrderDocument.type.d.ts +35 -56
- package/dist/firebase/firestore/types/order/FirestoreOrderServiceDetails.type.d.ts +10 -0
- package/dist/firebase/firestore/types/order/OrderOperationalBooleanOps.type.d.ts +3 -3
- package/dist/firebase/firestore/types/order/OrderUpdatedBy.type.d.ts +8 -0
- package/dist/firebase/firestore/types/order/index.d.ts +3 -1
- package/dist/firebase/firestore/types/order/index.js +3 -1
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicAssetsUrls.type.d.ts +2 -2
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicImagesUrlsServiceDetailPhotos.type.d.ts +3 -0
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientServicesDetailsPublicImagesUrls.type.d.ts +5 -0
- package/dist/firebase/firestore/types/order/publicAssets/index.d.ts +2 -2
- package/dist/firebase/firestore/types/order/publicAssets/index.js +2 -2
- package/dist/firebase/firestore/types/order/snapshots/CompanyEntitySnapshotForOrder.type.d.ts +30 -0
- package/dist/firebase/firestore/types/order/snapshots/CustomerEntitySnapshotForOrder.type.d.ts +8 -0
- package/dist/firebase/firestore/types/order/snapshots/CustomerUserSnapshotForOrder.type.d.ts +7 -0
- package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrderBase.type.d.ts +7 -0
- package/dist/firebase/firestore/types/order/snapshots/IndividualEntitySnapshotForOrder.type.d.ts +5 -0
- package/dist/firebase/firestore/types/order/snapshots/ServiceProviderEntitySnapshotForOrder.type.d.ts +8 -0
- package/dist/firebase/firestore/types/order/snapshots/ServiceProviderUserSnapshotForOrder.type.d.ts +7 -0
- package/dist/firebase/firestore/types/order/snapshots/TermsAndPolicySnapshotForOrder.type.d.ts +6 -0
- package/dist/firebase/firestore/types/order/snapshots/UserSnapshotForOrder.type.d.ts +6 -0
- package/dist/firebase/firestore/types/order/snapshots/VehicleSnapshotForOrder.type.d.ts +17 -0
- package/dist/firebase/firestore/types/order/snapshots/index.d.ts +10 -0
- package/dist/firebase/firestore/{utils/users → types/order/snapshots}/index.js +10 -4
- package/dist/firebase/firestore/types/paymentProviders/stripes/StripeConnectAccountRequirementsSummary.type.d.ts +1 -0
- package/dist/firebase/firestore/types/promoCode/FirestorePromoCodeDocument.type.d.ts +2 -2
- package/dist/firebase/firestore/types/services/ProfessionalService.type.d.ts +3 -3
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocument.type.d.ts +40 -12
- package/dist/firebase/firestore/types/userDocument/index.d.ts +0 -2
- package/dist/firebase/firestore/types/userDocument/index.js +0 -2
- package/dist/firebase/firestore/types/userPublicDocument/FirestoreProfessionalUserPublicDocument.type.d.ts +10 -7
- package/dist/firebase/firestore/types/vehicles/FirestoreVehicleDocument.type.d.ts +2 -0
- package/dist/firebase/firestore/types/wallets/FirestoreWalletsDocument.type.d.ts +1 -0
- package/dist/firebase/firestore/types/walletsWithdrawalIntents/FirestoreWalletsWithdrawalIntentsDocument.type.d.ts +1 -0
- package/dist/firebase/firestore/utils/address/__tests__/isValidLegalAddress.test.js +73 -0
- package/dist/firebase/firestore/utils/address/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/{users/errors → address}/index.js +1 -1
- package/dist/firebase/firestore/utils/address/isValidLegalAddress.d.ts +2 -0
- package/dist/firebase/firestore/utils/address/isValidLegalAddress.js +11 -0
- package/dist/firebase/firestore/utils/address/types/IsValidLegalAddressParams.type.d.ts +4 -0
- package/dist/firebase/firestore/utils/address/types/index.d.ts +1 -0
- package/dist/firebase/firestore/{enums/documents → utils/address/types}/index.js +1 -1
- package/dist/firebase/firestore/utils/configs/__tests__/getAvailableServicesPublicConfigForVehicleType.test.js +146 -0
- package/dist/firebase/firestore/utils/configs/getAvailableServicesPublicConfigForVehicleType.d.ts +6 -0
- package/dist/firebase/firestore/utils/configs/getAvailableServicesPublicConfigForVehicleType.js +24 -0
- package/dist/firebase/firestore/utils/configs/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/configs/index.js +17 -0
- package/dist/firebase/firestore/utils/configs/types/GetAvailableServicesPublicConfigForVehicleTypeParams.type.d.ts +6 -0
- package/dist/firebase/firestore/utils/configs/types/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/configs/types/index.js +17 -0
- package/dist/firebase/firestore/utils/dataValidators/company/index.d.ts +0 -2
- package/dist/firebase/firestore/utils/dataValidators/company/index.js +0 -2
- package/dist/firebase/firestore/utils/dataValidators/index.d.ts +1 -1
- package/dist/firebase/firestore/utils/dataValidators/index.js +1 -1
- package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProfessionalService.test.js +172 -0
- package/dist/firebase/firestore/utils/dataValidators/{professionalService/__tests__/isValidProfessionalServicePricingAndDurationForVehicle.test.js → services/__tests__/isValidServicePricingAndDurationForVehicle.test.js} +33 -26
- package/dist/firebase/firestore/utils/dataValidators/services/index.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/services/index.js +18 -0
- package/dist/firebase/firestore/utils/dataValidators/{professionalService → services}/isValidProfessionalService.d.ts +1 -1
- package/dist/firebase/firestore/utils/dataValidators/{professionalService → services}/isValidProfessionalService.js +14 -23
- package/dist/firebase/firestore/utils/dataValidators/services/isValidServicePricingAndDurationForVehicle.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/services/isValidServicePricingAndDurationForVehicle.js +29 -0
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProfessionalServiceParams.type.d.ts +6 -0
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidServicePricingAndDurationForVehicleParams.type.d.ts +5 -0
- package/dist/firebase/firestore/utils/dataValidators/services/types/index.d.ts +2 -0
- package/dist/firebase/firestore/utils/{users → dataValidators/services}/types/index.js +2 -2
- package/dist/firebase/firestore/utils/entities/__tests__/isEntityLegalDetailsVatVerified.test.js +61 -0
- package/dist/firebase/firestore/utils/entities/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/entities/index.js +1 -0
- package/dist/firebase/firestore/utils/entities/isEntityLegalDetailsVatVerified.d.ts +2 -0
- package/dist/firebase/firestore/utils/entities/isEntityLegalDetailsVatVerified.js +17 -0
- package/dist/firebase/firestore/utils/entities/types/IsEntityLegalDetailsVatVerifiedParams.type.d.ts +4 -0
- package/dist/firebase/firestore/utils/entities/types/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/entities/types/index.js +1 -0
- package/dist/firebase/firestore/utils/index.d.ts +2 -2
- package/dist/firebase/firestore/utils/index.js +2 -2
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndServicesDetails.test.js +259 -0
- package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndServicesDetails.d.ts +2 -0
- package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndServicesDetails.js +48 -0
- package/dist/firebase/firestore/utils/order/index.d.ts +1 -2
- package/dist/firebase/firestore/utils/order/index.js +1 -2
- package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsProps.type.d.ts +8 -0
- package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsReturn.type.d.ts +6 -0
- package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsReturn.type.js +2 -0
- package/dist/firebase/firestore/utils/order/types/index.d.ts +2 -4
- package/dist/firebase/firestore/utils/order/types/index.js +2 -4
- package/dist/firebase/firestore/utils/services/__tests__/computeTotalProfessionalServiceDurationInMinutesForVehicleType.test.js +24 -24
- package/dist/firebase/firestore/utils/services/__tests__/createServiceVehicleComboKey.test.js +12 -0
- package/dist/firebase/firestore/utils/services/__tests__/getBookableServiceProviderServicesForVehicleType.test.js +295 -0
- package/dist/firebase/firestore/utils/services/__tests__/{getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.util.test.js → getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.test.js} +42 -42
- package/dist/firebase/firestore/utils/services/createServiceVehicleComboKey.d.ts +2 -0
- package/dist/firebase/firestore/utils/services/createServiceVehicleComboKey.js +6 -0
- package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.d.ts +5 -0
- package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.js +32 -0
- package/dist/firebase/firestore/utils/services/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.d.ts +3 -0
- package/dist/firebase/firestore/utils/services/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.js +19 -0
- package/dist/firebase/firestore/utils/services/index.d.ts +4 -4
- package/dist/firebase/firestore/utils/services/index.js +4 -4
- package/dist/firebase/firestore/utils/services/types/ComputeTotalProfessionalServiceDurationInMinutesForVehicleTypeArgs.type.d.ts +2 -2
- package/dist/firebase/firestore/utils/services/types/GetBookableServiceProviderServicesForVehicleTypeParams.type.d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/GetBookableServiceProviderServicesForVehicleTypeParams.type.js +2 -0
- package/dist/firebase/firestore/utils/services/types/GetServiceProviderActiveServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/GetServiceProviderActiveServicePricingAndDurationForVehicleOrThrowParams.type.js +2 -0
- package/dist/firebase/firestore/utils/services/types/index.d.ts +2 -2
- package/dist/firebase/firestore/utils/services/types/index.js +2 -2
- package/dist/firebase/firestore/utils/stubs/company/index.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/company/index.js +0 -2
- package/dist/firebase/firestore/utils/stubs/configs/countryServicesPublicConfigStub.js +1 -1
- package/dist/firebase/firestore/utils/stubs/configs/firestoreNotificationEventsPublicConfigDocumentStub.js +22 -2
- package/dist/firebase/firestore/utils/stubs/configs/firestoreOrdersPublicConfigDocumentStub.js +3 -3
- package/dist/firebase/firestore/utils/stubs/configs/firestorePlatformPublicConfigDocumentStub.js +0 -19
- package/dist/firebase/firestore/utils/stubs/configs/firestoreServicesPublicConfigStub.js +4 -5
- package/dist/firebase/firestore/utils/stubs/entities/entityVatDetailsStub.js +1 -0
- package/dist/firebase/firestore/utils/stubs/entities/firestoreEntityDocumentStub.js +27 -0
- package/dist/firebase/firestore/utils/stubs/location/doctoCarLocationStub.js +2 -0
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientPublicAssetsUrlsStub.js +2 -2
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientServicesDetailsPublicImagesUrlsStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/order/{firestoreOrderClientProfessionalServicesDetailsPublicImagesUrlsStub.js → firestoreOrderClientServicesDetailsPublicImagesUrlsStub.js} +5 -5
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderDocumentStub.js +127 -91
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderServiceDetailsStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderServiceDetailsStub.js +18 -0
- package/dist/firebase/firestore/utils/stubs/order/index.d.ts +2 -2
- package/dist/firebase/firestore/utils/stubs/order/index.js +2 -2
- package/dist/firebase/firestore/utils/stubs/services/professionalServiceStub.d.ts +2 -2
- package/dist/firebase/firestore/utils/stubs/services/professionalServiceStub.js +1 -1
- package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentStub.js +1 -4
- package/dist/firebase/firestore/utils/stubs/userDocument/index.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/userDocument/index.js +0 -2
- package/dist/firebase/firestore/utils/stubs/userPublicDocument/firestoreProfessionalUserPublicDocumentStub.js +11 -3
- package/dist/firebase/firestore/utils/stubs/vehicles/firestoreVehicleDocumentStub.js +2 -0
- package/dist/firebase/firestore/utils/stubs/wallets/firestoreWalletsDocumentStub.js +1 -0
- package/dist/firebase/firestore/utils/stubs/walletsWithdrawalIntents/firestoreWalletsWithdrawalIntentsDocumentStub.js +1 -0
- package/dist/firebase/storage/enums/FirebaseStorageBasePaths.enum.d.ts +3 -2
- package/dist/firebase/storage/enums/FirebaseStorageBasePaths.enum.js +3 -1
- package/dist/firebase/storage/enums/FirebaseStorageEntityPrivateSubPaths.enum.d.ts +3 -0
- package/dist/firebase/storage/enums/FirebaseStorageEntityPrivateSubPaths.enum.js +7 -0
- package/dist/firebase/storage/enums/FirebaseStorageFilesNames.enum.d.ts +1 -1
- package/dist/firebase/storage/enums/FirebaseStorageFilesNames.enum.js +1 -1
- package/dist/firebase/storage/enums/FirebaseStorageServicesProvidersUsersPublicSubPaths.enum.d.ts +3 -0
- package/dist/firebase/storage/enums/FirebaseStorageServicesProvidersUsersPublicSubPaths.enum.js +7 -0
- package/dist/firebase/storage/enums/FirebaseStorageUserPrivateSubPaths.enum.d.ts +1 -3
- package/dist/firebase/storage/enums/FirebaseStorageUserPrivateSubPaths.enum.js +1 -3
- package/dist/firebase/storage/enums/index.d.ts +2 -1
- package/dist/firebase/storage/enums/index.js +2 -1
- package/dist/gcp/cloudTask/enums/CloudTasksQueueName.enum.d.ts +2 -1
- package/dist/gcp/cloudTask/enums/CloudTasksQueueName.enum.js +2 -1
- package/dist/gcp/cloudTask/maps/CloudTaskEnvelopeMap.map.d.ts +3 -2
- package/dist/gcp/cloudTask/types/OnTaskRecomputeCustomerUserComplianceEnvelope.d.ts +4 -0
- package/dist/gcp/cloudTask/types/OnTaskRecomputeCustomerUserComplianceEnvelope.js +2 -0
- package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderUserComplianceEnvelope.d.ts +4 -0
- package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderUserComplianceEnvelope.js +2 -0
- package/dist/gcp/cloudTask/types/index.d.ts +2 -1
- package/dist/gcp/cloudTask/types/index.js +2 -1
- package/dist/gcp/cloudTask/utils/stubs/index.d.ts +2 -1
- package/dist/gcp/cloudTask/utils/stubs/index.js +2 -1
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeCustomerUserComplianceEnvelopeStub.d.ts +2 -0
- package/dist/gcp/cloudTask/utils/stubs/{onTaskRecomputeProfessionalBookabilityEnvelopeStub.js → onTaskRecomputeCustomerUserComplianceEnvelopeStub.js} +3 -3
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderUserComplianceEnvelopeStub.d.ts +2 -0
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderUserComplianceEnvelopeStub.js +19 -0
- package/dist/gcp/pubsub/enums/PubSubTopics.enum.d.ts +3 -1
- package/dist/gcp/pubsub/enums/PubSubTopics.enum.js +2 -0
- package/dist/gcp/pubsub/maps/PubSubTopicMessageMap.map.d.ts +3 -1
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityStateRecomputeRequestedMessage.type.d.ts +3 -0
- package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityStateRecomputeRequestedMessage.type.js +2 -0
- package/dist/gcp/pubsub/types/entities/index.d.ts +1 -0
- package/dist/gcp/pubsub/types/entities/index.js +1 -0
- package/dist/gcp/pubsub/types/index.d.ts +1 -0
- package/dist/gcp/pubsub/types/index.js +1 -0
- package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileResyncRequestedMessage.type.d.ts +3 -0
- package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileResyncRequestedMessage.type.js +2 -0
- package/dist/gcp/pubsub/types/serviceProvider/index.d.ts +1 -0
- package/dist/gcp/pubsub/types/serviceProvider/index.js +17 -0
- package/dist/gcp/pubsub/types/wallets/PubSubProcessWalletWithdrawalRequestMessage.type.d.ts +2 -0
- package/dist/gcp/pubsub/types/wallets/PubSubWalletWithdrawalFailedMessage.type.d.ts +2 -0
- package/dist/gcp/pubsub/types/wallets/PubSubWalletWithdrawalSucceededMessage.type.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/entities/index.d.ts +1 -0
- package/dist/gcp/pubsub/utils/stubs/entities/index.js +1 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityStateRecomputeRequestedMessageStub.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityStateRecomputeRequestedMessageStub.js +9 -0
- package/dist/gcp/pubsub/utils/stubs/index.d.ts +1 -0
- package/dist/gcp/pubsub/utils/stubs/index.js +1 -0
- package/dist/gcp/pubsub/utils/stubs/serviceProvider/index.d.ts +1 -0
- package/dist/gcp/pubsub/utils/stubs/serviceProvider/index.js +17 -0
- package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileResyncRequestedMessageStub.d.ts +2 -0
- package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileResyncRequestedMessageStub.js +9 -0
- package/dist/gcp/pubsub/utils/stubs/wallets/pubSubProcessWalletWithdrawalRequestMessageStub.js +2 -0
- package/dist/gcp/pubsub/utils/stubs/wallets/pubSubWalletWithdrawalFailedMessageStub.js +2 -0
- package/dist/gcp/pubsub/utils/stubs/wallets/pubSubWalletWithdrawalSucceededMessageStub.js +2 -0
- package/dist/notifications/enums/EntityNotificationEventType.d.ts +4 -1
- package/dist/notifications/enums/EntityNotificationEventType.js +3 -0
- package/dist/notifications/enums/ProfessionalNotificationEventType.d.ts +1 -2
- package/dist/notifications/enums/ProfessionalNotificationEventType.js +0 -1
- package/dist/pricing/__tests__/calculateInvoiceTotalWithTax.util.test.js +17 -17
- package/dist/pricing/calculateInvoiceTotalWithTax.d.ts +1 -1
- package/dist/pricing/calculateInvoiceTotalWithTax.js +2 -2
- package/dist/pricing/types/CalculateInvoiceTotalsWithTaxParams.type.d.ts +1 -1
- package/dist/pricing/utils/calculateMarketplaceFeeWithTax.util.js +1 -1
- package/dist/stripe/types/StripeCustomPaymentIntentMetadata.type.d.ts +3 -1
- package/dist/stripe/types/StripeCustomProfessionalPayoutMetadata.type.d.ts +2 -0
- package/dist/utils/format/__tests__/{escapeHtml.util.test.js → escapeHtml.test.js} +8 -8
- package/dist/utils/format/__tests__/{formatPriceInCents.util.test.js → formatPriceInCents.test.js} +6 -6
- package/dist/utils/format/index.d.ts +2 -2
- package/dist/utils/format/index.js +2 -2
- package/package.json +1 -1
- package/dist/emails/types/professional/ProfessionalOnboardingCompletedEmailData.type.d.ts +0 -1
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserDeleteOrderServicePhotosErrorCodes.enum.js +0 -13
- package/dist/errors/enums/cloudFunctions/orders/ProfessionalUserUploadOrderServicePhotosErrorCodes.enum.js +0 -17
- 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.js +0 -12
- package/dist/errors/enums/cloudFunctions/professionals/UpdateProfessionalUserSlotDocumentErrorCodes.enum.js +0 -8
- package/dist/errors/enums/cloudFunctions/professionals/index.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosRequestData.type.d.ts +0 -8
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosRequestData.type.d.ts +0 -8
- package/dist/firebase/cloudFunctions/types/orders/ProfessionalUserUploadOrderServicePhotosResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentRequestData.type.d.ts +0 -2
- package/dist/firebase/cloudFunctions/types/users/professionals/CreateProfessionalUserPublicDocumentResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceRequestData.type.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserServiceResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/DeleteProfessionalUserSlotDocumentResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosRequestData.type.d.ts +0 -14
- package/dist/firebase/cloudFunctions/types/users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceRequestData.type.d.ts +0 -4
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserLiabilityInsuranceResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceRequestData.type.d.ts +0 -5
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServiceResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserServicesLocationResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceRequestData.type.d.ts +0 -15
- package/dist/firebase/cloudFunctions/types/users/professionals/UpdateProfessionalUserTermsAcceptanceResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/index.d.ts +0 -17
- package/dist/firebase/cloudFunctions/types/users/professionals/index.js +0 -33
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/CreateProfessionalUserSlotDocumentResponseData.type.d.ts +0 -3
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/UpdateProfessionalUserSlotDocumentResponseData.type.d.ts +0 -1
- package/dist/firebase/cloudFunctions/types/users/professionals/slots/index.d.ts +0 -5
- 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/entities/EntityServiceProviderComplianceStatus.enum.d.ts +0 -5
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderComplianceStatus.enum.js +0 -9
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonBookableReason.enum.d.ts +0 -11
- package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonBookableReason.enum.js +0 -15
- package/dist/firebase/firestore/enums/orders/OrderProfessionalServiceDetailsPhotoMoment.enum.js +0 -8
- 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/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.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/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/CompanyRegistrationPerCountry.type.d.ts +0 -5
- package/dist/firebase/firestore/types/company/CompanyVATDetails.type.d.ts +0 -15
- package/dist/firebase/firestore/types/company/CustomerCompanyDetails.type.d.ts +0 -7
- package/dist/firebase/firestore/types/company/ProfessionalCompanyDetails.type.d.ts +0 -11
- package/dist/firebase/firestore/types/companyUnique/FirestoreCompanyUniqueDocument.type.d.ts +0 -6
- package/dist/firebase/firestore/types/companyUnique/index.d.ts +0 -1
- package/dist/firebase/firestore/types/order/FirestoreOrderProfessionalServiceDetails.type.d.ts +0 -10
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientProfessionalServicesDetailsPublicImagesUrls.type.d.ts +0 -5
- package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos.type.d.ts +0 -3
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentCustomerInfos.type.d.ts +0 -44
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentProfessionalInfos.type.d.ts +0 -83
- package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentProfessionalInfos.type.js +0 -3
- package/dist/firebase/firestore/utils/company/__tests__/isIndividualCompany.util.test.js +0 -52
- package/dist/firebase/firestore/utils/company/index.d.ts +0 -1
- 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.js +0 -30
- 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.js +0 -219
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServiceType.test.js +0 -15
- package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidVehicleForProfessionalService.test.js +0 -32
- package/dist/firebase/firestore/utils/dataValidators/professionalService/index.d.ts +0 -4
- package/dist/firebase/firestore/utils/dataValidators/professionalService/index.js +0 -20
- 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/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/IsValidProfessionalServicePricingAndDurationForVehicleParams.type.d.ts +0 -5
- package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidVehicleForProfessionalServiceParams.type.d.ts +0 -6
- 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/order/__tests__/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.service.test.js +0 -261
- 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/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/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsReturn.type.d.ts +0 -6
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsParams.type.d.ts +0 -4
- package/dist/firebase/firestore/utils/order/types/GetOrderCustomerAndProfessionalIdsResult.type.d.ts +0 -4
- package/dist/firebase/firestore/utils/services/__tests__/areAllRequestedProfessionalUserServicesActiveForVehicleType.test.js +0 -145
- 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/areAllRequestedProfessionalUserServicesActiveForVehicleType.util.d.ts +0 -2
- package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.util.js +0 -14
- 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/types/AreAllRequestedProfessionalUserServicesActiveForVehicleTypeArgs.type..d.ts +0 -7
- package/dist/firebase/firestore/utils/services/types/GetActiveProfessionalServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +0 -7
- 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/firestoreOrderProfessionalServiceDetailsStub.d.ts +0 -2
- package/dist/firebase/firestore/utils/stubs/order/firestoreOrderProfessionalServiceDetailsStub.js +0 -18
- 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 -35
- package/dist/firebase/firestore/utils/users/assertProfessionalUserIsBookable.util.d.ts +0 -3
- package/dist/firebase/firestore/utils/users/assertProfessionalUserIsBookable.util.js +0 -66
- 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/index.d.ts +0 -4
- package/dist/firebase/firestore/utils/users/types/BookableProfessionalUserDocument.type.d.ts +0 -35
- package/dist/firebase/firestore/utils/users/types/BookingReadyCustomerUserDocument.type.d.ts +0 -13
- package/dist/firebase/firestore/utils/users/types/index.d.ts +0 -2
- 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/utils/stubs/onTaskRecomputeProfessionalBookabilityEnvelopeStub.d.ts +0 -2
- package/dist/utils/format/__tests__/escapeHtml.util.test.d.ts +0 -1
- package/dist/utils/format/__tests__/formatPriceInCents.util.test.d.ts +0 -1
- /package/dist/emails/types/{professional/ProfessionalOnboardingCompletedEmailData.type.js → entity/ServiceProviderEntityIsNotCompliantAnymoreEmailData.type.js} +0 -0
- /package/dist/{firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosRequestData.type.js → emails/types/entity/ServiceProviderEntityIsNowCompliantEmailData.type.js} +0 -0
- /package/dist/{firebase/cloudFunctions/types/orders/ProfessionalUserDeleteOrderServicePhotosResponseData.type.js → emails/types/entity/ServiceProviderEntityOnboardingCompletedEmailData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{orders/ProfessionalUserUploadOrderServicePhotosRequestData.type.js → entities/UpdateEntityAgreementsPayload.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{orders/ProfessionalUserUploadOrderServicePhotosResponseData.type.js → entities/UpdateEntityAgreementsRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{stripe/CreateStripeUserAccountLinkRequestData.type.js → entities/UpdateEntityAgreementsResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{stripe/CreateStripeUserAccountLinkResponseData.type.js → entities/UpdateEntityProfessionalLiabilityInsuranceRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/professionals/CreateProfessionalUserPublicDocumentRequestData.type.js → entities/UpdateEntityProfessionalLiabilityInsuranceResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/professionals/CreateProfessionalUserPublicDocumentResponseData.type.js → orders/ServiceProviderUserDeleteOrderServicePhotosRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/professionals/DeleteProfessionalUserServiceRequestData.type.js → orders/ServiceProviderUserDeleteOrderServicePhotosResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/professionals/DeleteProfessionalUserServiceResponseData.type.js → orders/ServiceProviderUserUploadOrderServicePhotosRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/professionals/DeleteProfessionalUserSlotDocumentRequestData.type.js → orders/ServiceProviderUserUploadOrderServicePhotosResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/professionals/DeleteProfessionalUserSlotDocumentResponseData.type.js → stripe/CreateStripeEntityAccountLinkRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/{users/professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosRequestData.type.js → stripe/CreateStripeEntityAccountLinkResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/ProcessProfessionalUserOnboardingBaseCompanyInfosResponseData.type.js → serviceProviderUsers/CreateServiceProviderUserPublicDocumentRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserLiabilityInsuranceRequestData.type.js → serviceProviderUsers/CreateServiceProviderUserPublicDocumentResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserLiabilityInsuranceResponseData.type.js → serviceProviderUsers/DeleteServiceProviderUserServiceRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserServiceRequestData.type.js → serviceProviderUsers/DeleteServiceProviderUserServiceResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserServiceResponseData.type.js → serviceProviderUsers/DeleteServiceProviderUserSlotDocumentRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserServicesLocationRequestData.type.js → serviceProviderUsers/DeleteServiceProviderUserSlotDocumentResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserServicesLocationResponseData.type.js → serviceProviderUsers/UpdateServiceProviderUserServiceRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserTermsAcceptanceRequestData.type.js → serviceProviderUsers/UpdateServiceProviderUserServiceResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/UpdateProfessionalUserTermsAcceptanceResponseData.type.js → serviceProviderUsers/UpdateServiceProviderUserServicesLocationRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/slots/CreateProfessionalUserSlotDocumentRequestData.type.js → serviceProviderUsers/UpdateServiceProviderUserServicesLocationResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/slots/CreateProfessionalUserSlotDocumentResponseData.type.js → serviceProviderUsers/slots/CreateServiceProviderUserSlotDocumentRequestData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/slots/RequestOneTimeSlot.type.js → serviceProviderUsers/slots/CreateServiceProviderUserSlotDocumentResponseData.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals → serviceProviderUsers}/slots/RequestOneTimeSlot.type.d.ts +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/slots/RequestRecurringSlot.type.js → serviceProviderUsers/slots/RequestOneTimeSlot.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals → serviceProviderUsers}/slots/RequestRecurringSlot.type.d.ts +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/slots/RequestSlotDocument.type.js → serviceProviderUsers/slots/RequestRecurringSlot.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals → serviceProviderUsers}/slots/RequestSlotDocument.type.d.ts +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/slots/RequestTimeOffSlot.type.js → serviceProviderUsers/slots/RequestSlotDocument.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals → serviceProviderUsers}/slots/RequestTimeOffSlot.type.d.ts +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/slots/UpdateProfessionalUserSlotDocumentRequestData.type.js → serviceProviderUsers/slots/RequestTimeOffSlot.type.js} +0 -0
- /package/dist/firebase/cloudFunctions/types/users/{professionals/slots/UpdateProfessionalUserSlotDocumentResponseData.type.js → serviceProviderUsers/slots/UpdateServiceProviderUserSlotDocumentRequestData.type.js} +0 -0
- /package/dist/firebase/{firestore/types/company/CompanyLegalRepresentative.type.js → cloudFunctions/types/users/serviceProviderUsers/slots/UpdateServiceProviderUserSlotDocumentResponseData.type.js} +0 -0
- /package/dist/firebase/firestore/types/{company/CompanyRegistrationPerCountry.type.js → configs/ServicesPublicConfigVehiclePricingAndDuration.type.js} +0 -0
- /package/dist/firebase/firestore/types/{company/CompanyVATDetails.type.js → order/FirestoreOrderServiceDetails.type.js} +0 -0
- /package/dist/firebase/firestore/types/{company/CustomerCompanyDetails.type.js → order/OrderUpdatedBy.type.js} +0 -0
- /package/dist/firebase/firestore/types/{company/ProfessionalCompanyDetails.type.js → order/publicAssets/FirestoreOrderClientPublicImagesUrlsServiceDetailPhotos.type.js} +0 -0
- /package/dist/firebase/firestore/types/{companyUnique/FirestoreCompanyUniqueDocument.type.js → order/publicAssets/FirestoreOrderClientServicesDetailsPublicImagesUrls.type.js} +0 -0
- /package/dist/firebase/firestore/types/order/{FirestoreOrderProfessionalServiceDetails.type.js → snapshots/CompanyEntitySnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/types/order/{publicAssets/FirestoreOrderClientProfessionalServicesDetailsPublicImagesUrls.type.js → snapshots/CustomerEntitySnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/types/order/{publicAssets/FirestoreOrderClientPublicImagesUrlsProfessionalServiceDetailPhotos.type.js → snapshots/CustomerUserSnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/types/{userDocument/FirestoreUserDocumentCustomerInfos.type.js → order/snapshots/EntitySnapshotForOrderBase.type.js} +0 -0
- /package/dist/firebase/firestore/{utils/dataValidators/professionalService/types/IsValidProfessionalServiceParams.type.js → types/order/snapshots/IndividualEntitySnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/{utils/dataValidators/professionalService/types/IsValidProfessionalServicePricingAndDurationForVehicleParams.type.js → types/order/snapshots/ServiceProviderEntitySnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/{utils/dataValidators/professionalService/types/IsValidVehicleForProfessionalServiceParams.type.js → types/order/snapshots/ServiceProviderUserSnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/{utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsProps.type.js → types/order/snapshots/TermsAndPolicySnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/{utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsReturn.type.js → types/order/snapshots/UserSnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/{utils/order/types/GetOrderCustomerAndProfessionalIdsParams.type.js → types/order/snapshots/VehicleSnapshotForOrder.type.js} +0 -0
- /package/dist/firebase/firestore/utils/{company/__tests__/isIndividualCompany.util.test.d.ts → address/__tests__/isValidLegalAddress.test.d.ts} +0 -0
- /package/dist/firebase/firestore/utils/{order/types/GetOrderCustomerAndProfessionalIdsResult.type.js → address/types/IsValidLegalAddressParams.type.js} +0 -0
- /package/dist/firebase/firestore/utils/{dataValidators/company/__tests__/isCompanyVatValid.util.test.d.ts → configs/__tests__/getAvailableServicesPublicConfigForVehicleType.test.d.ts} +0 -0
- /package/dist/firebase/firestore/utils/{services/types/AreAllRequestedProfessionalUserServicesActiveForVehicleTypeArgs.type..js → configs/types/GetAvailableServicesPublicConfigForVehicleTypeParams.type.js} +0 -0
- /package/dist/firebase/firestore/utils/dataValidators/{professionalService → services}/__tests__/isValidProfessionalService.test.d.ts +0 -0
- /package/dist/firebase/firestore/utils/dataValidators/{company/__tests__/isLegalAddressValid.util.test.d.ts → services/__tests__/isValidServicePricingAndDurationForVehicle.test.d.ts} +0 -0
- /package/dist/firebase/firestore/utils/{services/types/GetActiveProfessionalServicePricingAndDurationForVehicleOrThrowParams.type.js → dataValidators/services/types/IsValidProfessionalServiceParams.type.js} +0 -0
- /package/dist/firebase/firestore/utils/{users/types/BookableProfessionalUserDocument.type.js → dataValidators/services/types/IsValidServicePricingAndDurationForVehicleParams.type.js} +0 -0
- /package/dist/firebase/firestore/utils/{dataValidators/professionalService/__tests__/isValidProfessionalServicePricingAndDurationForVehicle.test.d.ts → entities/__tests__/isEntityLegalDetailsVatVerified.test.d.ts} +0 -0
- /package/dist/firebase/firestore/utils/{users/types/BookingReadyCustomerUserDocument.type.js → entities/types/IsEntityLegalDetailsVatVerifiedParams.type.js} +0 -0
- /package/dist/firebase/firestore/utils/{dataValidators/professionalService/__tests__/isValidProfessionalServiceType.test.d.ts → order/__tests__/buildOrderServicePreTaxLinesAndServicesDetails.test.d.ts} +0 -0
- /package/dist/{gcp/cloudTask/types/OnTaskRecomputeProfessionalBookabilityEnvelope.type.js → firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsProps.type.js} +0 -0
- /package/dist/firebase/firestore/utils/{dataValidators/professionalService/__tests__/isValidVehicleForProfessionalService.test.d.ts → services/__tests__/createServiceVehicleComboKey.test.d.ts} +0 -0
- /package/dist/firebase/firestore/utils/{order/__tests__/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.service.test.d.ts → services/__tests__/getBookableServiceProviderServicesForVehicleType.test.d.ts} +0 -0
- /package/dist/firebase/firestore/utils/{order/__tests__/getOrderCustomerAndProfessionalIds.test.d.ts → services/__tests__/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.test.d.ts} +0 -0
- /package/dist/firebase/firestore/utils/services/{computeTotalProfessionalServiceDurationInMinutesForVehicleType.util.d.ts → computeTotalProfessionalServiceDurationInMinutesForVehicleType.d.ts} +0 -0
- /package/dist/firebase/firestore/utils/services/{computeTotalProfessionalServiceDurationInMinutesForVehicleType.util.js → computeTotalProfessionalServiceDurationInMinutesForVehicleType.js} +0 -0
- /package/dist/{firebase/firestore/utils/services/__tests__/areAllRequestedProfessionalUserServicesActiveForVehicleType.test.d.ts → utils/format/__tests__/escapeHtml.test.d.ts} +0 -0
- /package/dist/{firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.util.test.d.ts → utils/format/__tests__/formatPriceInCents.test.d.ts} +0 -0
- /package/dist/utils/format/{escapeHtml.util.d.ts → escapeHtml.d.ts} +0 -0
- /package/dist/utils/format/{escapeHtml.util.js → escapeHtml.js} +0 -0
- /package/dist/utils/format/{formatPriceInCents.util.d.ts → formatPriceInCents.d.ts} +0 -0
- /package/dist/utils/format/{formatPriceInCents.util.js → formatPriceInCents.js} +0 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const __1 = require("../../../../..");
|
|
4
|
+
const enums_1 = require("../../../enums");
|
|
5
|
+
const configs_1 = require("../../configs");
|
|
6
|
+
const stubs_1 = require("../../stubs");
|
|
7
|
+
const getBookableServiceProviderServicesForVehicleType_1 = require("../getBookableServiceProviderServicesForVehicleType");
|
|
8
|
+
jest.mock("../../configs", () => ({
|
|
9
|
+
getAvailableServicesPublicConfigForVehicleType: jest.fn(),
|
|
10
|
+
}));
|
|
11
|
+
describe("getBookableServiceProviderServicesForVehicleType", () => {
|
|
12
|
+
let getAvailableServicesPublicConfigForVehicleTypeMock;
|
|
13
|
+
let getAvailableServicesPublicConfigForVehicleTypeReturn;
|
|
14
|
+
let serviceProviderUserPublicDocument;
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
getAvailableServicesPublicConfigForVehicleTypeMock =
|
|
17
|
+
configs_1.getAvailableServicesPublicConfigForVehicleType;
|
|
18
|
+
getAvailableServicesPublicConfigForVehicleTypeReturn = {
|
|
19
|
+
availableMainServicesPublicConfigList: [],
|
|
20
|
+
availableSubServicesPublicConfigList: [],
|
|
21
|
+
};
|
|
22
|
+
getAvailableServicesPublicConfigForVehicleTypeMock.mockReturnValue(getAvailableServicesPublicConfigForVehicleTypeReturn);
|
|
23
|
+
serviceProviderUserPublicDocument =
|
|
24
|
+
(0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
25
|
+
professionalServices: {
|
|
26
|
+
[enums_1.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
27
|
+
isActive: true,
|
|
28
|
+
pricingAndDurationByVehicleType: {
|
|
29
|
+
[enums_1.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
30
|
+
type: enums_1.VehicleTypes.SEDAN,
|
|
31
|
+
isActive: true,
|
|
32
|
+
pricePreTaxInCents: 2_000,
|
|
33
|
+
durationInMinutes: 30,
|
|
34
|
+
currency: __1.SupportedIsoCurrency.EUR,
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
afterEach(() => {
|
|
42
|
+
jest.clearAllMocks();
|
|
43
|
+
});
|
|
44
|
+
it("delegates service config filtering by vehicle type", () => {
|
|
45
|
+
(0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
46
|
+
countryServicesPublicConfig: {},
|
|
47
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
48
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
49
|
+
});
|
|
50
|
+
expect(getAvailableServicesPublicConfigForVehicleTypeMock).toHaveBeenCalledWith({
|
|
51
|
+
countryServicesPublicConfig: {},
|
|
52
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
it("returns empty arrays when config helper returns no services", () => {
|
|
56
|
+
const result = (0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
57
|
+
countryServicesPublicConfig: {},
|
|
58
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
59
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
60
|
+
});
|
|
61
|
+
expect(result).toEqual({
|
|
62
|
+
mainAvailableProfessionalServices: [],
|
|
63
|
+
subAvailableProfessionalServices: [],
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
it("keeps matching active main and sub services", () => {
|
|
67
|
+
const exteriorCleaning = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
68
|
+
type: enums_1.ServicesTypes.EXTERIOR_CLEANING,
|
|
69
|
+
parentsServices: [],
|
|
70
|
+
});
|
|
71
|
+
const carpetShampoo = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
72
|
+
type: enums_1.ServicesTypes.CARPET_SHAMPOO,
|
|
73
|
+
parentsServices: [enums_1.ServicesTypes.INTERIOR_CLEANING],
|
|
74
|
+
});
|
|
75
|
+
getAvailableServicesPublicConfigForVehicleTypeReturn = {
|
|
76
|
+
availableMainServicesPublicConfigList: [exteriorCleaning],
|
|
77
|
+
availableSubServicesPublicConfigList: [carpetShampoo],
|
|
78
|
+
};
|
|
79
|
+
getAvailableServicesPublicConfigForVehicleTypeMock.mockReturnValue(getAvailableServicesPublicConfigForVehicleTypeReturn);
|
|
80
|
+
serviceProviderUserPublicDocument =
|
|
81
|
+
(0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
82
|
+
professionalServices: {
|
|
83
|
+
[enums_1.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
84
|
+
isActive: true,
|
|
85
|
+
pricingAndDurationByVehicleType: {
|
|
86
|
+
[enums_1.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
87
|
+
isActive: true,
|
|
88
|
+
}),
|
|
89
|
+
},
|
|
90
|
+
}),
|
|
91
|
+
[enums_1.ServicesTypes.CARPET_SHAMPOO]: (0, stubs_1.professionalServiceStub)({
|
|
92
|
+
isActive: true,
|
|
93
|
+
pricingAndDurationByVehicleType: {
|
|
94
|
+
[enums_1.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
95
|
+
isActive: true,
|
|
96
|
+
}),
|
|
97
|
+
},
|
|
98
|
+
}),
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
const result = (0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
102
|
+
countryServicesPublicConfig: {},
|
|
103
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
104
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
105
|
+
});
|
|
106
|
+
expect(result.availableMainProfessionalServices).toEqual([
|
|
107
|
+
serviceProviderUserPublicDocument.professionalServices[enums_1.ServicesTypes.EXTERIOR_CLEANING],
|
|
108
|
+
]);
|
|
109
|
+
expect(result.availableSubProfessionalServices).toEqual([
|
|
110
|
+
serviceProviderUserPublicDocument.professionalServices[enums_1.ServicesTypes.CARPET_SHAMPOO],
|
|
111
|
+
]);
|
|
112
|
+
});
|
|
113
|
+
it("filters out services not offered by the service provider", () => {
|
|
114
|
+
const unavailableForServiceProvider = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
115
|
+
type: enums_1.ServicesTypes.ANIMAL_HAIR_TREATMENT,
|
|
116
|
+
});
|
|
117
|
+
getAvailableServicesPublicConfigForVehicleTypeReturn = {
|
|
118
|
+
availableMainServicesPublicConfigList: [unavailableForServiceProvider],
|
|
119
|
+
availableSubServicesPublicConfigList: [],
|
|
120
|
+
};
|
|
121
|
+
getAvailableServicesPublicConfigForVehicleTypeMock.mockReturnValue(getAvailableServicesPublicConfigForVehicleTypeReturn);
|
|
122
|
+
const result = (0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
123
|
+
countryServicesPublicConfig: {},
|
|
124
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
125
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
126
|
+
});
|
|
127
|
+
expect(result.availableMainProfessionalServices).toEqual([]);
|
|
128
|
+
});
|
|
129
|
+
it("filters out services disabled at service provider level", () => {
|
|
130
|
+
const exteriorCleaning = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
131
|
+
type: enums_1.ServicesTypes.EXTERIOR_CLEANING,
|
|
132
|
+
});
|
|
133
|
+
getAvailableServicesPublicConfigForVehicleTypeReturn = {
|
|
134
|
+
availableMainServicesPublicConfigList: [exteriorCleaning],
|
|
135
|
+
availableSubServicesPublicConfigList: [],
|
|
136
|
+
};
|
|
137
|
+
getAvailableServicesPublicConfigForVehicleTypeMock.mockReturnValue(getAvailableServicesPublicConfigForVehicleTypeReturn);
|
|
138
|
+
serviceProviderUserPublicDocument =
|
|
139
|
+
(0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
140
|
+
professionalServices: {
|
|
141
|
+
[enums_1.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
142
|
+
isActive: false,
|
|
143
|
+
}),
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
const result = (0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
147
|
+
countryServicesPublicConfig: {},
|
|
148
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
149
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
150
|
+
});
|
|
151
|
+
expect(result.availableMainProfessionalServices).toEqual([]);
|
|
152
|
+
});
|
|
153
|
+
it("filters out services with missing pricing for the requested vehicle type", () => {
|
|
154
|
+
const exteriorCleaning = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
155
|
+
type: enums_1.ServicesTypes.EXTERIOR_CLEANING,
|
|
156
|
+
});
|
|
157
|
+
getAvailableServicesPublicConfigForVehicleTypeReturn = {
|
|
158
|
+
availableMainServicesPublicConfigList: [exteriorCleaning],
|
|
159
|
+
availableSubServicesPublicConfigList: [],
|
|
160
|
+
};
|
|
161
|
+
getAvailableServicesPublicConfigForVehicleTypeMock.mockReturnValue(getAvailableServicesPublicConfigForVehicleTypeReturn);
|
|
162
|
+
serviceProviderUserPublicDocument =
|
|
163
|
+
(0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
164
|
+
professionalServices: {
|
|
165
|
+
[enums_1.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
166
|
+
isActive: true,
|
|
167
|
+
pricingAndDurationByVehicleType: {
|
|
168
|
+
[enums_1.VehicleTypes.SUV]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
169
|
+
type: enums_1.VehicleTypes.SUV,
|
|
170
|
+
isActive: true,
|
|
171
|
+
}),
|
|
172
|
+
},
|
|
173
|
+
}),
|
|
174
|
+
},
|
|
175
|
+
});
|
|
176
|
+
const result = (0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
177
|
+
countryServicesPublicConfig: {},
|
|
178
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
179
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
180
|
+
});
|
|
181
|
+
expect(result.availableMainProfessionalServices).toEqual([]);
|
|
182
|
+
});
|
|
183
|
+
it("filters out services with inactive pricing for the requested vehicle type", () => {
|
|
184
|
+
const exteriorCleaning = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
185
|
+
type: enums_1.ServicesTypes.EXTERIOR_CLEANING,
|
|
186
|
+
});
|
|
187
|
+
getAvailableServicesPublicConfigForVehicleTypeReturn = {
|
|
188
|
+
availableMainServicesPublicConfigList: [exteriorCleaning],
|
|
189
|
+
availableSubServicesPublicConfigList: [],
|
|
190
|
+
};
|
|
191
|
+
getAvailableServicesPublicConfigForVehicleTypeMock.mockReturnValue(getAvailableServicesPublicConfigForVehicleTypeReturn);
|
|
192
|
+
serviceProviderUserPublicDocument =
|
|
193
|
+
(0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
194
|
+
professionalServices: {
|
|
195
|
+
[enums_1.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
196
|
+
isActive: true,
|
|
197
|
+
pricingAndDurationByVehicleType: {
|
|
198
|
+
[enums_1.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
199
|
+
type: enums_1.VehicleTypes.SEDAN,
|
|
200
|
+
isActive: false,
|
|
201
|
+
}),
|
|
202
|
+
},
|
|
203
|
+
}),
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
const result = (0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
207
|
+
countryServicesPublicConfig: {},
|
|
208
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
209
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
210
|
+
});
|
|
211
|
+
expect(result.availableMainProfessionalServices).toEqual([]);
|
|
212
|
+
});
|
|
213
|
+
it("preserves service order from vehicle-filtered configuration", () => {
|
|
214
|
+
const firstService = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
215
|
+
type: enums_1.ServicesTypes.EXTERIOR_CLEANING,
|
|
216
|
+
});
|
|
217
|
+
const secondService = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
218
|
+
type: enums_1.ServicesTypes.INTERIOR_CLEANING,
|
|
219
|
+
});
|
|
220
|
+
getAvailableServicesPublicConfigForVehicleTypeReturn = {
|
|
221
|
+
availableMainServicesPublicConfigList: [firstService, secondService],
|
|
222
|
+
availableSubServicesPublicConfigList: [],
|
|
223
|
+
};
|
|
224
|
+
getAvailableServicesPublicConfigForVehicleTypeMock.mockReturnValue(getAvailableServicesPublicConfigForVehicleTypeReturn);
|
|
225
|
+
serviceProviderUserPublicDocument =
|
|
226
|
+
(0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
227
|
+
professionalServices: {
|
|
228
|
+
[enums_1.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
229
|
+
isActive: true,
|
|
230
|
+
pricingAndDurationByVehicleType: {
|
|
231
|
+
[enums_1.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
232
|
+
isActive: true,
|
|
233
|
+
}),
|
|
234
|
+
},
|
|
235
|
+
}),
|
|
236
|
+
[enums_1.ServicesTypes.INTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
237
|
+
isActive: true,
|
|
238
|
+
pricingAndDurationByVehicleType: {
|
|
239
|
+
[enums_1.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
240
|
+
isActive: true,
|
|
241
|
+
}),
|
|
242
|
+
},
|
|
243
|
+
}),
|
|
244
|
+
},
|
|
245
|
+
});
|
|
246
|
+
const result = (0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
247
|
+
countryServicesPublicConfig: {},
|
|
248
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
249
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
250
|
+
});
|
|
251
|
+
expect(result.availableMainProfessionalServices).toEqual([
|
|
252
|
+
serviceProviderUserPublicDocument.professionalServices[enums_1.ServicesTypes.EXTERIOR_CLEANING],
|
|
253
|
+
serviceProviderUserPublicDocument.professionalServices[enums_1.ServicesTypes.INTERIOR_CLEANING],
|
|
254
|
+
]);
|
|
255
|
+
});
|
|
256
|
+
it("does not include extra professional services not present in filtered config", () => {
|
|
257
|
+
const exteriorCleaning = (0, stubs_1.firestoreServicesPublicConfigStub)({
|
|
258
|
+
type: enums_1.ServicesTypes.EXTERIOR_CLEANING,
|
|
259
|
+
});
|
|
260
|
+
getAvailableServicesPublicConfigForVehicleTypeReturn = {
|
|
261
|
+
availableMainServicesPublicConfigList: [exteriorCleaning],
|
|
262
|
+
availableSubServicesPublicConfigList: [],
|
|
263
|
+
};
|
|
264
|
+
getAvailableServicesPublicConfigForVehicleTypeMock.mockReturnValue(getAvailableServicesPublicConfigForVehicleTypeReturn);
|
|
265
|
+
serviceProviderUserPublicDocument =
|
|
266
|
+
(0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
267
|
+
professionalServices: {
|
|
268
|
+
[enums_1.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
269
|
+
isActive: true,
|
|
270
|
+
pricingAndDurationByVehicleType: {
|
|
271
|
+
[enums_1.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
272
|
+
isActive: true,
|
|
273
|
+
}),
|
|
274
|
+
},
|
|
275
|
+
}),
|
|
276
|
+
[enums_1.ServicesTypes.CARPET_SHAMPOO]: (0, stubs_1.professionalServiceStub)({
|
|
277
|
+
isActive: true,
|
|
278
|
+
pricingAndDurationByVehicleType: {
|
|
279
|
+
[enums_1.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
280
|
+
isActive: true,
|
|
281
|
+
}),
|
|
282
|
+
},
|
|
283
|
+
}),
|
|
284
|
+
},
|
|
285
|
+
});
|
|
286
|
+
const result = (0, getBookableServiceProviderServicesForVehicleType_1.getBookableServiceProviderServicesForVehicleType)({
|
|
287
|
+
countryServicesPublicConfig: {},
|
|
288
|
+
professionalUserPublicDocument: serviceProviderUserPublicDocument,
|
|
289
|
+
vehicleType: enums_1.VehicleTypes.SEDAN,
|
|
290
|
+
});
|
|
291
|
+
expect(result.availableMainProfessionalServices).toEqual([
|
|
292
|
+
serviceProviderUserPublicDocument.professionalServices[enums_1.ServicesTypes.EXTERIOR_CLEANING],
|
|
293
|
+
]);
|
|
294
|
+
});
|
|
295
|
+
});
|
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const enums_1 = require("../../../../../enums");
|
|
4
4
|
const enums_2 = require("../../../enums");
|
|
5
5
|
const stubs_1 = require("../../stubs");
|
|
6
|
-
const
|
|
6
|
+
const getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow_1 = require("../getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow");
|
|
7
7
|
const errorCases = [
|
|
8
8
|
{
|
|
9
|
-
name: "Should throw an error if the service is not offered by the
|
|
9
|
+
name: "Should throw an error if the service is not offered by the service provider",
|
|
10
10
|
professionalUserPublicDocument: (0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
11
11
|
professionalServices: {
|
|
12
|
-
[enums_2.
|
|
12
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
13
13
|
isActive: true,
|
|
14
|
-
type: enums_2.
|
|
14
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
15
15
|
pricingAndDurationByVehicleType: {
|
|
16
16
|
[enums_2.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
17
17
|
type: enums_2.VehicleTypes.SEDAN,
|
|
@@ -24,17 +24,17 @@ const errorCases = [
|
|
|
24
24
|
}),
|
|
25
25
|
},
|
|
26
26
|
}),
|
|
27
|
-
|
|
27
|
+
serviceType: enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT,
|
|
28
28
|
vehicleType: enums_2.VehicleTypes.SEDAN,
|
|
29
|
-
error: new Error(`Service “${enums_2.
|
|
29
|
+
error: new Error(`Service “${enums_2.ServicesTypes.ANIMAL_HAIR_TREATMENT}” is not offered by this service provider.`),
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
name: "Should throw an error if the service is not active",
|
|
33
33
|
professionalUserPublicDocument: (0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
34
34
|
professionalServices: {
|
|
35
|
-
[enums_2.
|
|
35
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
36
36
|
isActive: false,
|
|
37
|
-
type: enums_2.
|
|
37
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
38
38
|
pricingAndDurationByVehicleType: {
|
|
39
39
|
[enums_2.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
40
40
|
type: enums_2.VehicleTypes.SEDAN,
|
|
@@ -47,17 +47,17 @@ const errorCases = [
|
|
|
47
47
|
}),
|
|
48
48
|
},
|
|
49
49
|
}),
|
|
50
|
-
|
|
50
|
+
serviceType: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
51
51
|
vehicleType: enums_2.VehicleTypes.SEDAN,
|
|
52
|
-
error: new Error(`Service “${enums_2.
|
|
52
|
+
error: new Error(`Service “${enums_2.ServicesTypes.EXTERIOR_CLEANING}” is not offered by this service provider.`),
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
name: "Should throw an error if the vehicle type is not active for the service",
|
|
56
56
|
professionalUserPublicDocument: (0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
57
57
|
professionalServices: {
|
|
58
|
-
[enums_2.
|
|
58
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
59
59
|
isActive: true,
|
|
60
|
-
type: enums_2.
|
|
60
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
61
61
|
pricingAndDurationByVehicleType: {
|
|
62
62
|
[enums_2.VehicleTypes.VAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
63
63
|
type: enums_2.VehicleTypes.VAN,
|
|
@@ -70,31 +70,31 @@ const errorCases = [
|
|
|
70
70
|
}),
|
|
71
71
|
},
|
|
72
72
|
}),
|
|
73
|
-
|
|
73
|
+
serviceType: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
74
74
|
vehicleType: enums_2.VehicleTypes.VAN,
|
|
75
|
-
error: new Error(`Service “${enums_2.
|
|
75
|
+
error: new Error(`Service “${enums_2.ServicesTypes.EXTERIOR_CLEANING}” is not available for vehicle type “${enums_2.VehicleTypes.VAN}”.`),
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
name: "Should throw an error if the service does not have pricing and duration for the vehicle type",
|
|
79
79
|
professionalUserPublicDocument: (0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
80
80
|
professionalServices: {
|
|
81
|
-
[enums_2.
|
|
82
|
-
type: enums_2.
|
|
81
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
82
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
83
83
|
isActive: true,
|
|
84
84
|
pricingAndDurationByVehicleType: {},
|
|
85
85
|
}),
|
|
86
86
|
},
|
|
87
87
|
}),
|
|
88
|
-
|
|
88
|
+
serviceType: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
89
89
|
vehicleType: enums_2.VehicleTypes.SEDAN,
|
|
90
|
-
error: new Error(`Service “${enums_2.
|
|
90
|
+
error: new Error(`Service “${enums_2.ServicesTypes.EXTERIOR_CLEANING}” is not available for vehicle type “${enums_2.VehicleTypes.SEDAN}”.`),
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
name: "Should throw an error if the service pricing and duration for the vehicle type is missing required pricePreTaxInCents fields",
|
|
94
94
|
professionalUserPublicDocument: (0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
95
95
|
professionalServices: {
|
|
96
|
-
[enums_2.
|
|
97
|
-
type: enums_2.
|
|
96
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
97
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
98
98
|
pricingAndDurationByVehicleType: {
|
|
99
99
|
[enums_2.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
100
100
|
type: enums_2.VehicleTypes.SEDAN,
|
|
@@ -107,16 +107,16 @@ const errorCases = [
|
|
|
107
107
|
}),
|
|
108
108
|
},
|
|
109
109
|
}),
|
|
110
|
-
|
|
110
|
+
serviceType: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
111
111
|
vehicleType: enums_2.VehicleTypes.SEDAN,
|
|
112
|
-
error: new Error(`Service “${enums_2.
|
|
112
|
+
error: new Error(`Service “${enums_2.ServicesTypes.EXTERIOR_CLEANING}” is not available for vehicle type “${enums_2.VehicleTypes.SEDAN}”.`),
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
name: "Should throw an error if the service pricing and duration for the vehicle type is missing required durationInMinutes fields",
|
|
116
116
|
professionalUserPublicDocument: (0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
117
117
|
professionalServices: {
|
|
118
|
-
[enums_2.
|
|
119
|
-
type: enums_2.
|
|
118
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
119
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
120
120
|
pricingAndDurationByVehicleType: {
|
|
121
121
|
[enums_2.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
122
122
|
type: enums_2.VehicleTypes.SEDAN,
|
|
@@ -129,16 +129,16 @@ const errorCases = [
|
|
|
129
129
|
}),
|
|
130
130
|
},
|
|
131
131
|
}),
|
|
132
|
-
|
|
132
|
+
serviceType: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
133
133
|
vehicleType: enums_2.VehicleTypes.SEDAN,
|
|
134
|
-
error: new Error(`Service “${enums_2.
|
|
134
|
+
error: new Error(`Service “${enums_2.ServicesTypes.EXTERIOR_CLEANING}” is not available for vehicle type “${enums_2.VehicleTypes.SEDAN}”.`),
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
name: "Should throw an error if the service pricing and duration for the vehicle type is missing required currency fields",
|
|
138
138
|
professionalUserPublicDocument: (0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
139
139
|
professionalServices: {
|
|
140
|
-
[enums_2.
|
|
141
|
-
type: enums_2.
|
|
140
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
141
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
142
142
|
pricingAndDurationByVehicleType: {
|
|
143
143
|
[enums_2.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
144
144
|
type: enums_2.VehicleTypes.SEDAN,
|
|
@@ -151,16 +151,16 @@ const errorCases = [
|
|
|
151
151
|
}),
|
|
152
152
|
},
|
|
153
153
|
}),
|
|
154
|
-
|
|
154
|
+
serviceType: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
155
155
|
vehicleType: enums_2.VehicleTypes.SEDAN,
|
|
156
|
-
error: new Error(`Service “${enums_2.
|
|
156
|
+
error: new Error(`Service “${enums_2.ServicesTypes.EXTERIOR_CLEANING}” is not available for vehicle type “${enums_2.VehicleTypes.SEDAN}”.`),
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
name: "Should throw an error if the service pricing and duration for the vehicle type is missing required type fields",
|
|
160
160
|
professionalUserPublicDocument: (0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
161
161
|
professionalServices: {
|
|
162
|
-
[enums_2.
|
|
163
|
-
type: enums_2.
|
|
162
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
163
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
164
164
|
pricingAndDurationByVehicleType: {
|
|
165
165
|
[enums_2.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
166
166
|
type: undefined,
|
|
@@ -173,19 +173,19 @@ const errorCases = [
|
|
|
173
173
|
}),
|
|
174
174
|
},
|
|
175
175
|
}),
|
|
176
|
-
|
|
176
|
+
serviceType: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
177
177
|
vehicleType: enums_2.VehicleTypes.SEDAN,
|
|
178
|
-
error: new Error(`Service “${enums_2.
|
|
178
|
+
error: new Error(`Service “${enums_2.ServicesTypes.EXTERIOR_CLEANING}” is not available for vehicle type “${enums_2.VehicleTypes.SEDAN}”.`),
|
|
179
179
|
},
|
|
180
180
|
];
|
|
181
|
-
describe("
|
|
181
|
+
describe("getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow", () => {
|
|
182
182
|
let professionalUserPublicDocument;
|
|
183
183
|
beforeEach(() => {
|
|
184
184
|
professionalUserPublicDocument =
|
|
185
185
|
(0, stubs_1.firestoreProfessionalUserPublicDocumentStub)({
|
|
186
186
|
professionalServices: {
|
|
187
|
-
[enums_2.
|
|
188
|
-
type: enums_2.
|
|
187
|
+
[enums_2.ServicesTypes.EXTERIOR_CLEANING]: (0, stubs_1.professionalServiceStub)({
|
|
188
|
+
type: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
189
189
|
pricingAndDurationByVehicleType: {
|
|
190
190
|
[enums_2.VehicleTypes.SEDAN]: (0, stubs_1.pricingAndDurationForVehicleStub)({
|
|
191
191
|
type: enums_2.VehicleTypes.SEDAN,
|
|
@@ -200,9 +200,9 @@ describe("getActiveProfessionalServicePricingAndDurationForVehicleOrThrow", () =
|
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
202
|
it("should return the correct pricing and duration for a valid service and vehicle type (Happy path)", () => {
|
|
203
|
-
const result = (0,
|
|
203
|
+
const result = (0, getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow_1.getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow)({
|
|
204
204
|
professionalUserPublicDocument,
|
|
205
|
-
|
|
205
|
+
serviceType: enums_2.ServicesTypes.EXTERIOR_CLEANING,
|
|
206
206
|
vehicleType: enums_2.VehicleTypes.SEDAN,
|
|
207
207
|
});
|
|
208
208
|
expect(result).toEqual({
|
|
@@ -214,10 +214,10 @@ describe("getActiveProfessionalServicePricingAndDurationForVehicleOrThrow", () =
|
|
|
214
214
|
});
|
|
215
215
|
});
|
|
216
216
|
describe("error cases", () => {
|
|
217
|
-
test.each(errorCases)("should throw error if $name", async ({ professionalUserPublicDocument,
|
|
218
|
-
expect(() => (0,
|
|
217
|
+
test.each(errorCases)("should throw error if $name", async ({ professionalUserPublicDocument, serviceType, vehicleType, error, }) => {
|
|
218
|
+
expect(() => (0, getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow_1.getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow)({
|
|
219
219
|
professionalUserPublicDocument,
|
|
220
|
-
|
|
220
|
+
serviceType,
|
|
221
221
|
vehicleType,
|
|
222
222
|
})).toThrow(error);
|
|
223
223
|
});
|
package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GetBookableServiceProviderServicesForVehicleTypeParams } from "./types";
|
|
2
|
+
export declare function getBookableServiceProviderServicesForVehicleType({ countryServicesPublicConfig, professionalUserPublicDocument, vehicleType, }: GetBookableServiceProviderServicesForVehicleTypeParams): {
|
|
3
|
+
availableMainProfessionalServices: (import("../..").ProfessionalService<import("../..").ServicesTypes.INTERIOR_CLEANING> | import("../..").ProfessionalService<import("../..").ServicesTypes.EXTERIOR_CLEANING> | import("../..").ProfessionalService<import("../..").ServicesTypes.INTERIOR_AND_EXTERIOR_CLEANING> | import("../..").ProfessionalService<import("../..").ServicesTypes.LEATHER_SEAT_SHAMPOO_AND_TREATMENT> | import("../..").ProfessionalService<import("../..").ServicesTypes.FABRIC_SEAT_SHAMPOO> | import("../..").ProfessionalService<import("../..").ServicesTypes.CARPET_SHAMPOO> | import("../..").ProfessionalService<import("../..").ServicesTypes.CEILING_CLEANING> | import("../..").ProfessionalService<import("../..").ServicesTypes.ANIMAL_HAIR_TREATMENT>)[];
|
|
4
|
+
availableSubProfessionalServices: (import("../..").ProfessionalService<import("../..").ServicesTypes.INTERIOR_CLEANING> | import("../..").ProfessionalService<import("../..").ServicesTypes.EXTERIOR_CLEANING> | import("../..").ProfessionalService<import("../..").ServicesTypes.INTERIOR_AND_EXTERIOR_CLEANING> | import("../..").ProfessionalService<import("../..").ServicesTypes.LEATHER_SEAT_SHAMPOO_AND_TREATMENT> | import("../..").ProfessionalService<import("../..").ServicesTypes.FABRIC_SEAT_SHAMPOO> | import("../..").ProfessionalService<import("../..").ServicesTypes.CARPET_SHAMPOO> | import("../..").ProfessionalService<import("../..").ServicesTypes.CEILING_CLEANING> | import("../..").ProfessionalService<import("../..").ServicesTypes.ANIMAL_HAIR_TREATMENT>)[];
|
|
5
|
+
};
|
package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBookableServiceProviderServicesForVehicleType = getBookableServiceProviderServicesForVehicleType;
|
|
4
|
+
const configs_1 = require("../configs");
|
|
5
|
+
function getBookableServiceProviderServicesForVehicleType({ countryServicesPublicConfig, professionalUserPublicDocument, vehicleType, }) {
|
|
6
|
+
const { availableMainServicesPublicConfigList, availableSubServicesPublicConfigList, } = (0, configs_1.getAvailableServicesPublicConfigForVehicleType)({
|
|
7
|
+
countryServicesPublicConfig,
|
|
8
|
+
vehicleType,
|
|
9
|
+
});
|
|
10
|
+
const configMainAvailableServicesTypes = availableMainServicesPublicConfigList.map((servicePublicConfig) => servicePublicConfig.type);
|
|
11
|
+
const configSubAvailableServicesTypes = availableSubServicesPublicConfigList.map((servicePublicConfig) => servicePublicConfig.type);
|
|
12
|
+
return {
|
|
13
|
+
availableMainProfessionalServices: configMainAvailableServicesTypes.flatMap((serviceType) => {
|
|
14
|
+
const professionalService = professionalUserPublicDocument.professionalServices[serviceType];
|
|
15
|
+
if (!professionalService || !professionalService.isActive)
|
|
16
|
+
return [];
|
|
17
|
+
const pricingAndDurationForVehicle = professionalService.pricingAndDurationByVehicleType[vehicleType];
|
|
18
|
+
if (!pricingAndDurationForVehicle?.isActive)
|
|
19
|
+
return [];
|
|
20
|
+
return [professionalService];
|
|
21
|
+
}),
|
|
22
|
+
availableSubProfessionalServices: configSubAvailableServicesTypes.flatMap((serviceType) => {
|
|
23
|
+
const professionalService = professionalUserPublicDocument.professionalServices[serviceType];
|
|
24
|
+
if (!professionalService || !professionalService.isActive)
|
|
25
|
+
return [];
|
|
26
|
+
const pricingAndDurationForVehicle = professionalService.pricingAndDurationByVehicleType[vehicleType];
|
|
27
|
+
if (!pricingAndDurationForVehicle?.isActive)
|
|
28
|
+
return [];
|
|
29
|
+
return [professionalService];
|
|
30
|
+
}),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ServicePricingAndDurationForVehicle } from "../../types";
|
|
2
|
+
import type { GetServiceProviderActiveServicePricingAndDurationForVehicleOrThrowParams } from "./types";
|
|
3
|
+
export declare function getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow({ professionalUserPublicDocument, serviceType, vehicleType, }: GetServiceProviderActiveServicePricingAndDurationForVehicleOrThrowParams): ServicePricingAndDurationForVehicle;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow = getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow;
|
|
4
|
+
function getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow({ professionalUserPublicDocument, serviceType, vehicleType, }) {
|
|
5
|
+
const service = professionalUserPublicDocument.professionalServices?.[serviceType];
|
|
6
|
+
if (!service || !service.isActive) {
|
|
7
|
+
throw new Error(`Service “${serviceType}” is not offered by this service provider.`);
|
|
8
|
+
}
|
|
9
|
+
const pricingAndDurationForVehicle = service.pricingAndDurationByVehicleType?.[vehicleType];
|
|
10
|
+
if (!pricingAndDurationForVehicle ||
|
|
11
|
+
!pricingAndDurationForVehicle.isActive ||
|
|
12
|
+
!pricingAndDurationForVehicle.type ||
|
|
13
|
+
!pricingAndDurationForVehicle.pricePreTaxInCents ||
|
|
14
|
+
!pricingAndDurationForVehicle.durationInMinutes ||
|
|
15
|
+
!pricingAndDurationForVehicle.currency) {
|
|
16
|
+
throw new Error(`Service “${serviceType}” is not available for vehicle type “${vehicleType}”.`);
|
|
17
|
+
}
|
|
18
|
+
return pricingAndDurationForVehicle;
|
|
19
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./createServiceVehicleComboKey";
|
|
2
|
+
export * from "./getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow";
|
|
3
3
|
export * from "./types";
|
|
4
|
-
export * from "./computeTotalProfessionalServiceDurationInMinutesForVehicleType
|
|
5
|
-
export * from "./
|
|
4
|
+
export * from "./computeTotalProfessionalServiceDurationInMinutesForVehicleType";
|
|
5
|
+
export * from "./getBookableServiceProviderServicesForVehicleType";
|
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./createServiceVehicleComboKey"), exports);
|
|
18
|
+
__exportStar(require("./getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow"), exports);
|
|
19
19
|
__exportStar(require("./types"), exports);
|
|
20
|
-
__exportStar(require("./computeTotalProfessionalServiceDurationInMinutesForVehicleType
|
|
21
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./computeTotalProfessionalServiceDurationInMinutesForVehicleType"), exports);
|
|
21
|
+
__exportStar(require("./getBookableServiceProviderServicesForVehicleType"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ServicesTypes, VehicleTypes } from "../../../enums";
|
|
2
2
|
import type { FirestoreProfessionalUserPublicDocument } from "../../../types";
|
|
3
3
|
export type ComputeTotalProfessionalServiceDurationInMinutesForVehicleTypeArgs = {
|
|
4
4
|
professionalServices: FirestoreProfessionalUserPublicDocument["professionalServices"];
|
|
5
|
-
servicesTypes:
|
|
5
|
+
servicesTypes: ServicesTypes[];
|
|
6
6
|
vehicleType: VehicleTypes;
|
|
7
7
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VehicleTypes } from "../../../enums";
|
|
2
|
+
import type { CountryServicesPublicConfig, FirestoreProfessionalUserPublicDocument } from "../../../types";
|
|
3
|
+
export type GetBookableServiceProviderServicesForVehicleTypeParams = {
|
|
4
|
+
countryServicesPublicConfig: CountryServicesPublicConfig;
|
|
5
|
+
professionalUserPublicDocument: FirestoreProfessionalUserPublicDocument;
|
|
6
|
+
vehicleType: VehicleTypes;
|
|
7
|
+
};
|