@doctocar/tooling 0.3.1-21 → 0.3.1-27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emails/types/professional/ProfessionalOrderIssueReportedConfirmationEmailData.type.d.ts +1 -1
- package/dist/emails/types/professional/ProfessionalServiceCompletedByProfessionalEmailData.type.d.ts +1 -1
- package/dist/errors/enums/cloudFunctions/entities/RedeemPromoCodeForEntityErrorCodes.enum.d.ts +18 -0
- package/dist/errors/enums/cloudFunctions/entities/RedeemPromoCodeForEntityErrorCodes.enum.js +22 -0
- package/dist/errors/enums/cloudFunctions/entities/index.d.ts +1 -0
- package/dist/errors/enums/cloudFunctions/entities/index.js +1 -0
- package/dist/errors/enums/cloudFunctions/orders/CancelConfirmedOrInProgressOrderErrorCodes.enum.d.ts +1 -1
- package/dist/errors/enums/cloudFunctions/orders/CancelConfirmedOrInProgressOrderErrorCodes.enum.js +1 -1
- package/dist/errors/enums/cloudFunctions/orders/ConfirmServiceCompletionByServiceProviderErrorCodes.enum.d.ts +7 -0
- package/dist/errors/enums/cloudFunctions/orders/ConfirmServiceCompletionByServiceProviderErrorCodes.enum.js +11 -0
- package/dist/errors/enums/cloudFunctions/orders/StartConfirmedOrderByServiceProviderErrorCodes.enum.d.ts +6 -0
- package/dist/errors/enums/cloudFunctions/orders/StartConfirmedOrderByServiceProviderErrorCodes.enum.js +10 -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/DeleteServiceProviderUserServiceErrorCodes.enum.d.ts +1 -1
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserServiceErrorCodes.enum.js +1 -1
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServiceErrorCodes.enum.d.ts +1 -1
- package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServiceErrorCodes.enum.js +1 -1
- package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.d.ts +3 -3
- package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.js +3 -3
- package/dist/firebase/cloudFunctions/enums/TaskCloudFunctionsNames.enum.d.ts +1 -1
- package/dist/firebase/cloudFunctions/enums/TaskCloudFunctionsNames.enum.js +1 -1
- package/dist/firebase/cloudFunctions/maps/OnCallCloudFunctionsTypeMappings.map.d.ts +11 -11
- package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/entities/index.d.ts +2 -0
- package/dist/firebase/cloudFunctions/types/entities/index.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderRequestData.type.d.ts +4 -0
- package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeRequestData.type.d.ts +5 -0
- package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeResponseData.type.d.ts +9 -0
- package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderRequestData.type.d.ts +4 -0
- package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderRequestData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderResponseData.type.d.ts +1 -0
- package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderResponseData.type.js +2 -0
- package/dist/firebase/cloudFunctions/types/orders/index.d.ts +4 -6
- package/dist/firebase/cloudFunctions/types/orders/index.js +4 -6
- package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServiceRequestData.type.d.ts +2 -2
- package/dist/firebase/firestore/constants/credits/firestoreCreditsSchemaVersion.enum.d.ts +1 -0
- package/dist/firebase/firestore/constants/credits/firestoreCreditsSchemaVersion.enum.js +4 -0
- package/dist/firebase/firestore/constants/credits/index.d.ts +1 -0
- package/dist/firebase/firestore/constants/credits/index.js +17 -0
- package/dist/firebase/firestore/constants/creditsLedgerEntry/firestoreCreditsLedgerEntrySchemaVersion.enum.d.ts +1 -0
- package/dist/firebase/firestore/constants/creditsLedgerEntry/firestoreCreditsLedgerEntrySchemaVersion.enum.js +4 -0
- package/dist/firebase/firestore/constants/creditsLedgerEntry/index.d.ts +1 -0
- package/dist/firebase/firestore/constants/creditsLedgerEntry/index.js +17 -0
- package/dist/firebase/firestore/constants/index.d.ts +6 -4
- package/dist/firebase/firestore/constants/index.js +6 -4
- package/dist/firebase/firestore/constants/providerLocationServiceMaxRadiusInKM.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/providerLocationServiceMaxRadiusInKM.constant.js +4 -0
- package/dist/firebase/firestore/constants/providerLocationServiceMinRadiusInKM.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/providerLocationServiceMinRadiusInKM.constant.js +4 -0
- package/dist/firebase/firestore/constants/providerServiceMinimumDurationIncrementInMinutes.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/providerServiceMinimumDurationIncrementInMinutes.constant.js +4 -0
- package/dist/firebase/firestore/constants/providerServiceMinimumPriceIncrementInCents.constant.d.ts +1 -0
- package/dist/firebase/firestore/constants/providerServiceMinimumPriceIncrementInCents.constant.js +4 -0
- package/dist/firebase/firestore/enums/FirestoreCollections.enum.d.ts +4 -1
- package/dist/firebase/firestore/enums/FirestoreCollections.enum.js +4 -1
- package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryContextReferenceType.enum.d.ts +6 -0
- package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryContextReferenceType.enum.js +10 -0
- package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryReason.enum.d.ts +10 -0
- package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryReason.enum.js +14 -0
- package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryType.enum.d.ts +4 -0
- package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryType.enum.js +8 -0
- package/dist/firebase/firestore/enums/creditsLedgerEntry/index.d.ts +3 -0
- package/dist/firebase/firestore/enums/creditsLedgerEntry/index.js +19 -0
- package/dist/firebase/firestore/enums/index.d.ts +1 -0
- package/dist/firebase/firestore/enums/index.js +1 -0
- package/dist/firebase/firestore/enums/orders/OrderCancellationByTypes.enum.d.ts +1 -1
- package/dist/firebase/firestore/enums/orders/OrderCancellationByTypes.enum.js +1 -1
- package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.d.ts +7 -7
- package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.js +7 -7
- package/dist/firebase/firestore/enums/orders/dispute/OrderDisputeOpenedBy.enum.d.ts +1 -1
- package/dist/firebase/firestore/enums/orders/dispute/OrderDisputeOpenedBy.enum.js +1 -1
- package/dist/firebase/firestore/enums/orders/index.d.ts +1 -1
- package/dist/firebase/firestore/enums/orders/index.js +1 -1
- package/dist/firebase/firestore/enums/ordersIssues/CustomerOrderIssueReason.enum.d.ts +2 -2
- package/dist/firebase/firestore/enums/ordersIssues/CustomerOrderIssueReason.enum.js +2 -2
- package/dist/firebase/firestore/enums/ordersIssues/ServiceProviderOrderIssueReason.enum.d.ts +10 -0
- package/dist/firebase/firestore/enums/ordersIssues/ServiceProviderOrderIssueReason.enum.js +14 -0
- package/dist/firebase/firestore/enums/ordersIssues/index.d.ts +1 -1
- package/dist/firebase/firestore/enums/ordersIssues/index.js +1 -1
- package/dist/firebase/firestore/enums/promoCode/PromoCodeDiscountType.enum.d.ts +0 -1
- package/dist/firebase/firestore/enums/promoCode/PromoCodeDiscountType.enum.js +1 -1
- package/dist/firebase/firestore/enums/users/professionals/ServiceProviderBadgesTypes.enum.d.ts +3 -0
- package/dist/firebase/firestore/enums/users/professionals/ServiceProviderBadgesTypes.enum.js +7 -0
- package/dist/firebase/firestore/enums/users/professionals/index.d.ts +1 -1
- package/dist/firebase/firestore/enums/users/professionals/index.js +1 -1
- package/dist/firebase/firestore/maps/FirestoreCollectionDocumentTypeMap.d.ts +5 -2
- package/dist/firebase/firestore/types/credits/CheckoutCreditsSummary.type.d.ts +6 -0
- package/dist/firebase/firestore/types/credits/CheckoutCreditsSummary.type.js +2 -0
- package/dist/firebase/firestore/types/credits/FirestoreCreditsDocument.type.d.ts +17 -0
- package/dist/firebase/firestore/types/credits/FirestoreCreditsDocument.type.js +2 -0
- package/dist/firebase/firestore/types/credits/index.d.ts +1 -0
- package/dist/firebase/firestore/types/credits/index.js +17 -0
- package/dist/firebase/firestore/types/creditsLedgerEntryDocument/FirestoreCreditsLedgerEntryDocument.type.d.ts +21 -0
- package/dist/firebase/firestore/types/creditsLedgerEntryDocument/FirestoreCreditsLedgerEntryDocument.type.js +2 -0
- package/dist/firebase/firestore/types/creditsLedgerEntryDocument/index.d.ts +1 -0
- package/dist/firebase/firestore/types/creditsLedgerEntryDocument/index.js +17 -0
- package/dist/firebase/firestore/types/entities/FirestoreEntityDocument.type.d.ts +3 -0
- package/dist/firebase/firestore/types/index.d.ts +4 -1
- package/dist/firebase/firestore/types/index.js +4 -1
- package/dist/firebase/firestore/types/order/FirestoreOrderCancellationReason.type.d.ts +2 -2
- package/dist/firebase/firestore/types/order/FirestoreOrderDocument.type.d.ts +3 -0
- package/dist/firebase/firestore/types/ordersIssues/OrderIssueReason.type.d.ts +2 -2
- package/dist/firebase/firestore/types/ordersReviews/FirestoreOrderReviewDocument.type.d.ts +1 -1
- package/dist/firebase/firestore/types/promoCode/FirestorePromoCodeDocument.type.d.ts +8 -14
- package/dist/firebase/firestore/types/promoCodeRedemptions/FirestorePromoCodeRedemptionDocument.type.d.ts +9 -0
- package/dist/firebase/firestore/types/promoCodeRedemptions/FirestorePromoCodeRedemptionDocument.type.js +2 -0
- package/dist/firebase/firestore/types/promoCodeRedemptions/index.d.ts +1 -0
- package/dist/firebase/firestore/types/promoCodeRedemptions/index.js +17 -0
- package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocument.type.d.ts +49 -0
- package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocument.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.d.ts +4 -0
- package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.d.ts +4 -0
- package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.js +2 -0
- package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/index.d.ts +3 -0
- package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/index.js +19 -0
- package/dist/firebase/firestore/types/services/ProviderService.type.d.ts +8 -0
- package/dist/firebase/firestore/types/services/ProviderService.type.js +2 -0
- package/dist/firebase/firestore/types/services/ServiceProviderService.type.d.ts +8 -0
- package/dist/firebase/firestore/types/services/ServiceProviderService.type.js +2 -0
- package/dist/firebase/firestore/types/services/index.d.ts +1 -1
- package/dist/firebase/firestore/types/services/index.js +1 -1
- package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProfessionalService.test.js +11 -11
- package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProviderService.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProviderService.test.js +172 -0
- package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidServicePricingAndDurationForVehicle.test.js +9 -9
- package/dist/firebase/firestore/utils/dataValidators/services/index.d.ts +1 -1
- package/dist/firebase/firestore/utils/dataValidators/services/index.js +1 -1
- package/dist/firebase/firestore/utils/dataValidators/services/isValidProfessionalService.d.ts +1 -1
- package/dist/firebase/firestore/utils/dataValidators/services/isValidProfessionalService.js +13 -13
- package/dist/firebase/firestore/utils/dataValidators/services/isValidProviderService.d.ts +2 -0
- package/dist/firebase/firestore/utils/dataValidators/services/isValidProviderService.js +42 -0
- package/dist/firebase/firestore/utils/dataValidators/services/isValidServicePricingAndDurationForVehicle.js +2 -2
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProfessionalServiceParams.type.d.ts +2 -2
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProviderServiceParams.type.d.ts +6 -0
- package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProviderServiceParams.type.js +2 -0
- package/dist/firebase/firestore/utils/dataValidators/services/types/index.d.ts +1 -1
- package/dist/firebase/firestore/utils/dataValidators/services/types/index.js +1 -1
- package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndServicesDetails.test.js +13 -13
- package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndServicesDetails.d.ts +1 -1
- package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndServicesDetails.js +2 -2
- package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsProps.type.d.ts +2 -2
- package/dist/firebase/firestore/utils/reviews/__tests__/getAverageRatingFromReviewAggregates.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/reviews/__tests__/getAverageRatingFromReviewAggregates.test.js +97 -0
- package/dist/firebase/firestore/utils/reviews/getAverageRatingFromReviewAggregates.d.ts +2 -0
- package/dist/firebase/firestore/utils/reviews/getAverageRatingFromReviewAggregates.js +13 -0
- package/dist/firebase/firestore/utils/reviews/index.d.ts +1 -1
- package/dist/firebase/firestore/utils/reviews/index.js +1 -1
- package/dist/firebase/firestore/utils/services/__tests__/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.test.d.ts +1 -0
- package/dist/firebase/firestore/utils/services/__tests__/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.test.js +101 -0
- package/dist/firebase/firestore/utils/services/__tests__/createServiceVehicleComboKey.test.js +4 -4
- package/dist/firebase/firestore/utils/services/__tests__/getBookableServiceProviderServicesForVehicleType.test.js +49 -49
- package/dist/firebase/firestore/utils/services/__tests__/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.test.js +32 -32
- package/dist/firebase/firestore/utils/services/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.d.ts +2 -0
- package/dist/firebase/firestore/utils/services/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.js +18 -0
- package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.d.ts +3 -3
- package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.js +11 -11
- package/dist/firebase/firestore/utils/services/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.d.ts +1 -1
- package/dist/firebase/firestore/utils/services/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.js +2 -2
- package/dist/firebase/firestore/utils/services/index.d.ts +1 -1
- package/dist/firebase/firestore/utils/services/index.js +1 -1
- package/dist/firebase/firestore/utils/services/types/ComputeTotalServiceProviderServiceDurationInMinutesForVehicleTypeArgs.type.d.ts +7 -0
- package/dist/firebase/firestore/utils/services/types/ComputeTotalServiceProviderServiceDurationInMinutesForVehicleTypeArgs.type.js +2 -0
- package/dist/firebase/firestore/utils/services/types/GetBookableServiceProviderServicesForVehicleTypeParams.type.d.ts +2 -2
- package/dist/firebase/firestore/utils/services/types/GetServiceProviderActiveServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +2 -2
- package/dist/firebase/firestore/utils/services/types/index.d.ts +1 -1
- package/dist/firebase/firestore/utils/services/types/index.js +1 -1
- package/dist/firebase/firestore/utils/stubs/credits/firestoreCreditsDocumentStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/credits/firestoreCreditsDocumentStub.js +24 -0
- package/dist/firebase/firestore/utils/stubs/credits/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/credits/index.js +17 -0
- package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/firestoreCreditsLedgerEntryDocumentStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/firestoreCreditsLedgerEntryDocumentStub.js +27 -0
- package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/index.js +17 -0
- package/dist/firebase/firestore/utils/stubs/entities/firestoreEntityDocumentStub.js +3 -0
- package/dist/firebase/firestore/utils/stubs/index.d.ts +5 -1
- package/dist/firebase/firestore/utils/stubs/index.js +5 -1
- package/dist/firebase/firestore/utils/stubs/ordersReviews/firestoreOrderReviewDocumentStub.js +1 -1
- package/dist/firebase/firestore/utils/stubs/promoCode/firestorePromoCodeDocumentStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/promoCode/firestorePromoCodeDocumentStub.js +23 -0
- package/dist/firebase/firestore/utils/stubs/promoCode/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/promoCode/index.js +17 -0
- package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/firestorePromoCodeRedemptionDocumentStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/firestorePromoCodeRedemptionDocumentStub.js +10 -0
- package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/index.js +17 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/firestoreServiceProviderUserPublicDocumentStub.d.ts +2 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/firestoreServiceProviderUserPublicDocumentStub.js +44 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/index.d.ts +1 -0
- package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/index.js +17 -0
- package/dist/firebase/firestore/utils/stubs/services/index.d.ts +1 -1
- package/dist/firebase/firestore/utils/stubs/services/index.js +1 -1
- package/dist/firebase/firestore/utils/stubs/services/pricingAndDurationForVehicleStub.js +2 -2
- package/dist/firebase/firestore/utils/stubs/services/providerServiceStub.d.ts +5 -0
- package/dist/firebase/firestore/utils/stubs/services/providerServiceStub.js +21 -0
- package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceStub.d.ts +5 -0
- package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceStub.js +21 -0
- package/dist/firebase/storage/enums/FirebaseStorageBasePaths.enum.js +1 -1
- package/dist/firebase/storage/utils/__tests__/buildStoragePeriodSlug.test.js +8 -6
- package/dist/gcp/cloudTask/enums/CloudTasksQueueName.enum.d.ts +1 -1
- package/dist/gcp/cloudTask/enums/CloudTasksQueueName.enum.js +1 -1
- package/dist/gcp/cloudTask/maps/CloudTaskEnvelopeMap.map.d.ts +2 -2
- package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderAvailabilityEnvelope.type.d.ts +1 -1
- package/dist/gcp/cloudTask/types/index.d.ts +1 -1
- package/dist/gcp/cloudTask/types/index.js +1 -1
- package/dist/gcp/cloudTask/utils/stubs/index.d.ts +1 -1
- package/dist/gcp/cloudTask/utils/stubs/index.js +1 -1
- package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderAvailabilityEnvelopeStub.js +1 -1
- package/dist/pricing/__tests__/calculateInvoiceTotalWithTax.util.test.js +3 -3
- package/dist/stripe/types/StripeCustomServiceProviderPayoutMetadata.type.d.ts +5 -0
- package/dist/stripe/types/StripeCustomServiceProviderPayoutMetadata.type.js +2 -0
- package/dist/stripe/types/index.d.ts +1 -1
- package/dist/stripe/types/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
1
|
+
export * from "./providerLocationServiceMaxRadiusInKM.constant";
|
|
2
|
+
export * from "./providerLocationServiceMinRadiusInKM.constant";
|
|
3
|
+
export * from "./providerServiceMinimumDurationIncrementInMinutes.constant";
|
|
4
|
+
export * from "./providerServiceMinimumPriceIncrementInCents.constant";
|
|
5
5
|
export * from "./vehicleTypesExamples.constant";
|
|
6
6
|
export * from "./maximumEntityMembers.constant";
|
|
7
7
|
export * from "./maximumEntityVehicles.constant";
|
|
@@ -9,4 +9,6 @@ export * from "./orderIdempotencyWindowInMs.constant";
|
|
|
9
9
|
export * from "./maximumSlotCapacity.constant";
|
|
10
10
|
export * from "./walletLedgerEntry";
|
|
11
11
|
export * from "./wallets";
|
|
12
|
+
export * from "./creditsLedgerEntry";
|
|
13
|
+
export * from "./credits";
|
|
12
14
|
export * from "./sandboxDocumentIdPrefix.constant";
|
|
@@ -14,10 +14,10 @@ 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("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./providerLocationServiceMaxRadiusInKM.constant"), exports);
|
|
18
|
+
__exportStar(require("./providerLocationServiceMinRadiusInKM.constant"), exports);
|
|
19
|
+
__exportStar(require("./providerServiceMinimumDurationIncrementInMinutes.constant"), exports);
|
|
20
|
+
__exportStar(require("./providerServiceMinimumPriceIncrementInCents.constant"), exports);
|
|
21
21
|
__exportStar(require("./vehicleTypesExamples.constant"), exports);
|
|
22
22
|
__exportStar(require("./maximumEntityMembers.constant"), exports);
|
|
23
23
|
__exportStar(require("./maximumEntityVehicles.constant"), exports);
|
|
@@ -25,4 +25,6 @@ __exportStar(require("./orderIdempotencyWindowInMs.constant"), exports);
|
|
|
25
25
|
__exportStar(require("./maximumSlotCapacity.constant"), exports);
|
|
26
26
|
__exportStar(require("./walletLedgerEntry"), exports);
|
|
27
27
|
__exportStar(require("./wallets"), exports);
|
|
28
|
+
__exportStar(require("./creditsLedgerEntry"), exports);
|
|
29
|
+
__exportStar(require("./credits"), exports);
|
|
28
30
|
__exportStar(require("./sandboxDocumentIdPrefix.constant"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PROVIDER_LOCATION_SERVICE_MAX_RADIUS_IN_KM = 30;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PROVIDER_LOCATION_SERVICE_MIN_RADIUS_IN_KM = 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PROVIDER_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES = 15;
|
package/dist/firebase/firestore/constants/providerServiceMinimumPriceIncrementInCents.constant.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PROVIDER_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS = 100;
|
|
@@ -3,7 +3,7 @@ export declare enum FirestoreCollections {
|
|
|
3
3
|
SLOTS = "slots",
|
|
4
4
|
BOOKED_SLOTS = "booked_slots",
|
|
5
5
|
DEVICE_TOKENS = "device_tokens",
|
|
6
|
-
|
|
6
|
+
SERVICE_PROVIDER_USERS_PUBLIC = "service_providers_users_public",
|
|
7
7
|
VEHICLES = "vehicles",
|
|
8
8
|
ORDERS = "orders",
|
|
9
9
|
ORDERS_SANDBOX = "orders_sandbox",
|
|
@@ -25,11 +25,14 @@ export declare enum FirestoreCollections {
|
|
|
25
25
|
METRICS = "metrics",
|
|
26
26
|
ON_TASK_EXECUTION_STATE = "on_task_execution_state",
|
|
27
27
|
PROMO_CODES = "promo_codes",
|
|
28
|
+
PROMO_CODE_REDEMPTIONS = "promo_code_redemptions",
|
|
28
29
|
COUNTERS = "counters",
|
|
29
30
|
NOTIFICATION_EVENT_DELIVERY_STATES = "notification_event_delivery_states",
|
|
30
31
|
WALLETS = "wallets",
|
|
31
32
|
WALLETS_LEDGER_ENTRIES = "wallets_ledger_entries",
|
|
32
33
|
WALLETS_WITHDRAWAL_INTENTS = "wallets_withdrawal_intents",
|
|
34
|
+
CREDITS = "credits",
|
|
35
|
+
CREDITS_LEDGER_ENTRIES = "credits_ledger_entries",
|
|
33
36
|
FUNCTIONS_DEPLOYMENT_RUNS = "functions_deployment_runs",
|
|
34
37
|
MARKETPLACE_FINANCIAL_REPORTS = "marketplace_financial_reports"
|
|
35
38
|
}
|
|
@@ -7,7 +7,7 @@ var FirestoreCollections;
|
|
|
7
7
|
FirestoreCollections["SLOTS"] = "slots";
|
|
8
8
|
FirestoreCollections["BOOKED_SLOTS"] = "booked_slots";
|
|
9
9
|
FirestoreCollections["DEVICE_TOKENS"] = "device_tokens";
|
|
10
|
-
FirestoreCollections["
|
|
10
|
+
FirestoreCollections["SERVICE_PROVIDER_USERS_PUBLIC"] = "service_providers_users_public";
|
|
11
11
|
FirestoreCollections["VEHICLES"] = "vehicles";
|
|
12
12
|
FirestoreCollections["ORDERS"] = "orders";
|
|
13
13
|
FirestoreCollections["ORDERS_SANDBOX"] = "orders_sandbox";
|
|
@@ -29,11 +29,14 @@ var FirestoreCollections;
|
|
|
29
29
|
FirestoreCollections["METRICS"] = "metrics";
|
|
30
30
|
FirestoreCollections["ON_TASK_EXECUTION_STATE"] = "on_task_execution_state";
|
|
31
31
|
FirestoreCollections["PROMO_CODES"] = "promo_codes";
|
|
32
|
+
FirestoreCollections["PROMO_CODE_REDEMPTIONS"] = "promo_code_redemptions";
|
|
32
33
|
FirestoreCollections["COUNTERS"] = "counters";
|
|
33
34
|
FirestoreCollections["NOTIFICATION_EVENT_DELIVERY_STATES"] = "notification_event_delivery_states";
|
|
34
35
|
FirestoreCollections["WALLETS"] = "wallets";
|
|
35
36
|
FirestoreCollections["WALLETS_LEDGER_ENTRIES"] = "wallets_ledger_entries";
|
|
36
37
|
FirestoreCollections["WALLETS_WITHDRAWAL_INTENTS"] = "wallets_withdrawal_intents";
|
|
38
|
+
FirestoreCollections["CREDITS"] = "credits";
|
|
39
|
+
FirestoreCollections["CREDITS_LEDGER_ENTRIES"] = "credits_ledger_entries";
|
|
37
40
|
FirestoreCollections["FUNCTIONS_DEPLOYMENT_RUNS"] = "functions_deployment_runs";
|
|
38
41
|
FirestoreCollections["MARKETPLACE_FINANCIAL_REPORTS"] = "marketplace_financial_reports";
|
|
39
42
|
})(FirestoreCollections || (exports.FirestoreCollections = FirestoreCollections = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditsLedgerEntryContextReferenceType = void 0;
|
|
4
|
+
var CreditsLedgerEntryContextReferenceType;
|
|
5
|
+
(function (CreditsLedgerEntryContextReferenceType) {
|
|
6
|
+
CreditsLedgerEntryContextReferenceType["ORDER"] = "order";
|
|
7
|
+
CreditsLedgerEntryContextReferenceType["PROMO_CODE"] = "promo_code";
|
|
8
|
+
CreditsLedgerEntryContextReferenceType["REFERRAL"] = "referral";
|
|
9
|
+
CreditsLedgerEntryContextReferenceType["SUPPORT"] = "support";
|
|
10
|
+
})(CreditsLedgerEntryContextReferenceType || (exports.CreditsLedgerEntryContextReferenceType = CreditsLedgerEntryContextReferenceType = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum CreditsLedgerEntryReason {
|
|
2
|
+
REFERRAL_REWARD = "referral_reward",
|
|
3
|
+
PROMO_REWARD = "promo_reward",
|
|
4
|
+
CASHBACK = "cashback",
|
|
5
|
+
BOOKING_USAGE = "booking_usage",
|
|
6
|
+
BOOKING_REFUND = "booking_refund",
|
|
7
|
+
MANUAL_ADJUSTMENT = "manual_adjustment",
|
|
8
|
+
CUSTOMER_SUPPORT_COMPENSATION = "customer_support_compensation",
|
|
9
|
+
EXPIRED = "expired"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditsLedgerEntryReason = void 0;
|
|
4
|
+
var CreditsLedgerEntryReason;
|
|
5
|
+
(function (CreditsLedgerEntryReason) {
|
|
6
|
+
CreditsLedgerEntryReason["REFERRAL_REWARD"] = "referral_reward";
|
|
7
|
+
CreditsLedgerEntryReason["PROMO_REWARD"] = "promo_reward";
|
|
8
|
+
CreditsLedgerEntryReason["CASHBACK"] = "cashback";
|
|
9
|
+
CreditsLedgerEntryReason["BOOKING_USAGE"] = "booking_usage";
|
|
10
|
+
CreditsLedgerEntryReason["BOOKING_REFUND"] = "booking_refund";
|
|
11
|
+
CreditsLedgerEntryReason["MANUAL_ADJUSTMENT"] = "manual_adjustment";
|
|
12
|
+
CreditsLedgerEntryReason["CUSTOMER_SUPPORT_COMPENSATION"] = "customer_support_compensation";
|
|
13
|
+
CreditsLedgerEntryReason["EXPIRED"] = "expired";
|
|
14
|
+
})(CreditsLedgerEntryReason || (exports.CreditsLedgerEntryReason = CreditsLedgerEntryReason = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditsLedgerEntryType = void 0;
|
|
4
|
+
var CreditsLedgerEntryType;
|
|
5
|
+
(function (CreditsLedgerEntryType) {
|
|
6
|
+
CreditsLedgerEntryType["CREDIT"] = "credit";
|
|
7
|
+
CreditsLedgerEntryType["DEBIT"] = "debit";
|
|
8
|
+
})(CreditsLedgerEntryType || (exports.CreditsLedgerEntryType = CreditsLedgerEntryType = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreditsLedgerEntryType.enum"), exports);
|
|
18
|
+
__exportStar(require("./CreditsLedgerEntryReason.enum"), exports);
|
|
19
|
+
__exportStar(require("./CreditsLedgerEntryContextReferenceType.enum"), exports);
|
|
@@ -16,6 +16,7 @@ export * from "./operation";
|
|
|
16
16
|
export * from "./promoCode";
|
|
17
17
|
export * from "./walletLedgerEntry";
|
|
18
18
|
export * from "./walletWithdrawalIntents";
|
|
19
|
+
export * from "./creditsLedgerEntry";
|
|
19
20
|
export * from "./ordersIssues";
|
|
20
21
|
export * from "./marketplaceFinancialReports";
|
|
21
22
|
export * from "./entities";
|
|
@@ -32,6 +32,7 @@ __exportStar(require("./operation"), exports);
|
|
|
32
32
|
__exportStar(require("./promoCode"), exports);
|
|
33
33
|
__exportStar(require("./walletLedgerEntry"), exports);
|
|
34
34
|
__exportStar(require("./walletWithdrawalIntents"), exports);
|
|
35
|
+
__exportStar(require("./creditsLedgerEntry"), exports);
|
|
35
36
|
__exportStar(require("./ordersIssues"), exports);
|
|
36
37
|
__exportStar(require("./marketplaceFinancialReports"), exports);
|
|
37
38
|
__exportStar(require("./entities"), exports);
|
|
@@ -4,7 +4,7 @@ exports.OrderCancellationByTypes = void 0;
|
|
|
4
4
|
var OrderCancellationByTypes;
|
|
5
5
|
(function (OrderCancellationByTypes) {
|
|
6
6
|
OrderCancellationByTypes["CUSTOMER"] = "customer";
|
|
7
|
-
OrderCancellationByTypes["
|
|
7
|
+
OrderCancellationByTypes["SERVICE_PROVIDER"] = "service_provider";
|
|
8
8
|
OrderCancellationByTypes["SYSTEM"] = "system";
|
|
9
9
|
OrderCancellationByTypes["OTHER"] = "other";
|
|
10
10
|
})(OrderCancellationByTypes || (exports.OrderCancellationByTypes = OrderCancellationByTypes = {}));
|
package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare enum OrderServiceProviderCancellationReason {
|
|
2
|
-
WEATHER = "
|
|
3
|
-
UNABLE_TO_CONTACT_CUSTOMER = "
|
|
4
|
-
UNSAFE_LOCATION = "
|
|
5
|
-
VEHICLE_NOT_ACCESSIBLE = "
|
|
6
|
-
BOOKING_CONFLICT = "
|
|
7
|
-
NOT_AVAILABLE = "
|
|
8
|
-
OTHER = "
|
|
2
|
+
WEATHER = "service_provider_cancelled_weather",
|
|
3
|
+
UNABLE_TO_CONTACT_CUSTOMER = "service_provider_cancelled_unable_to_contact_customer",
|
|
4
|
+
UNSAFE_LOCATION = "service_provider_cancelled_unsafe_location",
|
|
5
|
+
VEHICLE_NOT_ACCESSIBLE = "service_provider_cancelled_vehicle_not_accessible",
|
|
6
|
+
BOOKING_CONFLICT = "service_provider_cancelled_booking_conflict",
|
|
7
|
+
NOT_AVAILABLE = "service_provider_cancelled_not_available",
|
|
8
|
+
OTHER = "service_provider_cancelled_other"
|
|
9
9
|
}
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OrderServiceProviderCancellationReason = void 0;
|
|
4
4
|
var OrderServiceProviderCancellationReason;
|
|
5
5
|
(function (OrderServiceProviderCancellationReason) {
|
|
6
|
-
OrderServiceProviderCancellationReason["WEATHER"] = "
|
|
7
|
-
OrderServiceProviderCancellationReason["UNABLE_TO_CONTACT_CUSTOMER"] = "
|
|
8
|
-
OrderServiceProviderCancellationReason["UNSAFE_LOCATION"] = "
|
|
9
|
-
OrderServiceProviderCancellationReason["VEHICLE_NOT_ACCESSIBLE"] = "
|
|
10
|
-
OrderServiceProviderCancellationReason["BOOKING_CONFLICT"] = "
|
|
11
|
-
OrderServiceProviderCancellationReason["NOT_AVAILABLE"] = "
|
|
12
|
-
OrderServiceProviderCancellationReason["OTHER"] = "
|
|
6
|
+
OrderServiceProviderCancellationReason["WEATHER"] = "service_provider_cancelled_weather";
|
|
7
|
+
OrderServiceProviderCancellationReason["UNABLE_TO_CONTACT_CUSTOMER"] = "service_provider_cancelled_unable_to_contact_customer";
|
|
8
|
+
OrderServiceProviderCancellationReason["UNSAFE_LOCATION"] = "service_provider_cancelled_unsafe_location";
|
|
9
|
+
OrderServiceProviderCancellationReason["VEHICLE_NOT_ACCESSIBLE"] = "service_provider_cancelled_vehicle_not_accessible";
|
|
10
|
+
OrderServiceProviderCancellationReason["BOOKING_CONFLICT"] = "service_provider_cancelled_booking_conflict";
|
|
11
|
+
OrderServiceProviderCancellationReason["NOT_AVAILABLE"] = "service_provider_cancelled_not_available";
|
|
12
|
+
OrderServiceProviderCancellationReason["OTHER"] = "service_provider_cancelled_other";
|
|
13
13
|
})(OrderServiceProviderCancellationReason || (exports.OrderServiceProviderCancellationReason = OrderServiceProviderCancellationReason = {}));
|
|
@@ -4,6 +4,6 @@ exports.OrderDisputeOpenedBy = void 0;
|
|
|
4
4
|
var OrderDisputeOpenedBy;
|
|
5
5
|
(function (OrderDisputeOpenedBy) {
|
|
6
6
|
OrderDisputeOpenedBy["CUSTOMER"] = "customer";
|
|
7
|
-
OrderDisputeOpenedBy["
|
|
7
|
+
OrderDisputeOpenedBy["SERVICE_PROVIDER"] = "service_provider";
|
|
8
8
|
OrderDisputeOpenedBy["SYSTEM"] = "system";
|
|
9
9
|
})(OrderDisputeOpenedBy || (exports.OrderDisputeOpenedBy = OrderDisputeOpenedBy = {}));
|
|
@@ -5,7 +5,7 @@ export * from "./invoices";
|
|
|
5
5
|
export * from "./snapshots";
|
|
6
6
|
export * from "./OrderCustomerCancellationReason.enum";
|
|
7
7
|
export * from "./OrderPaymentCancellationReason.enum";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./OrderServiceProviderCancellationReason.enum";
|
|
9
9
|
export * from "./OrderSystemCancellationReason.enum";
|
|
10
10
|
export * from "./OrderServiceDetailsPhotoMoment.enum";
|
|
11
11
|
export * from "./OrderActorRole.enum";
|
|
@@ -21,7 +21,7 @@ __exportStar(require("./invoices"), exports);
|
|
|
21
21
|
__exportStar(require("./snapshots"), exports);
|
|
22
22
|
__exportStar(require("./OrderCustomerCancellationReason.enum"), exports);
|
|
23
23
|
__exportStar(require("./OrderPaymentCancellationReason.enum"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./OrderServiceProviderCancellationReason.enum"), exports);
|
|
25
25
|
__exportStar(require("./OrderSystemCancellationReason.enum"), exports);
|
|
26
26
|
__exportStar(require("./OrderServiceDetailsPhotoMoment.enum"), exports);
|
|
27
27
|
__exportStar(require("./OrderActorRole.enum"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare enum CustomerOrderIssueReason {
|
|
2
|
-
|
|
2
|
+
SERVICE_PROVIDER_BEHAVIOR_ISSUE = "service_provider_behavior_issue",
|
|
3
3
|
VEHICLE_DAMAGE_OR_THEFT = "vehicle_damage_or_theft",
|
|
4
|
-
|
|
4
|
+
SERVICE_PROVIDER_ABSENT_OR_LATE = "service_provider_absent_or_late",
|
|
5
5
|
SERVICE_QUALITY_ISSUE = "service_quality_issue",
|
|
6
6
|
PAYMENT_ISSUE = "payment_issue",
|
|
7
7
|
OTHER = "other"
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CustomerOrderIssueReason = void 0;
|
|
4
4
|
var CustomerOrderIssueReason;
|
|
5
5
|
(function (CustomerOrderIssueReason) {
|
|
6
|
-
CustomerOrderIssueReason["
|
|
6
|
+
CustomerOrderIssueReason["SERVICE_PROVIDER_BEHAVIOR_ISSUE"] = "service_provider_behavior_issue";
|
|
7
7
|
CustomerOrderIssueReason["VEHICLE_DAMAGE_OR_THEFT"] = "vehicle_damage_or_theft";
|
|
8
|
-
CustomerOrderIssueReason["
|
|
8
|
+
CustomerOrderIssueReason["SERVICE_PROVIDER_ABSENT_OR_LATE"] = "service_provider_absent_or_late";
|
|
9
9
|
CustomerOrderIssueReason["SERVICE_QUALITY_ISSUE"] = "service_quality_issue";
|
|
10
10
|
CustomerOrderIssueReason["PAYMENT_ISSUE"] = "payment_issue";
|
|
11
11
|
CustomerOrderIssueReason["OTHER"] = "other";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum ServiceProviderOrderIssueReason {
|
|
2
|
+
CUSTOMER_BEHAVIOR_ISSUE = "customer_behavior_issue",
|
|
3
|
+
SAFETY_OR_SECURITY_ISSUE = "safety_or_security_issue",
|
|
4
|
+
CUSTOMER_ABSENT_OR_UNRESPONSIVE = "customer_absent_or_unresponsive",
|
|
5
|
+
LOCATION_ACCESS_ISSUE = "location_access_issue",
|
|
6
|
+
VEHICLE_NOT_COMPLIANT = "vehicle_not_compliant",
|
|
7
|
+
PAYMENT_OR_PAYOUT_ISSUE = "payment_or_payout_issue",
|
|
8
|
+
WEATHER_CONDITIONS_ISSUE = "weather_conditions_issue",
|
|
9
|
+
OTHER = "other"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceProviderOrderIssueReason = void 0;
|
|
4
|
+
var ServiceProviderOrderIssueReason;
|
|
5
|
+
(function (ServiceProviderOrderIssueReason) {
|
|
6
|
+
ServiceProviderOrderIssueReason["CUSTOMER_BEHAVIOR_ISSUE"] = "customer_behavior_issue";
|
|
7
|
+
ServiceProviderOrderIssueReason["SAFETY_OR_SECURITY_ISSUE"] = "safety_or_security_issue";
|
|
8
|
+
ServiceProviderOrderIssueReason["CUSTOMER_ABSENT_OR_UNRESPONSIVE"] = "customer_absent_or_unresponsive";
|
|
9
|
+
ServiceProviderOrderIssueReason["LOCATION_ACCESS_ISSUE"] = "location_access_issue";
|
|
10
|
+
ServiceProviderOrderIssueReason["VEHICLE_NOT_COMPLIANT"] = "vehicle_not_compliant";
|
|
11
|
+
ServiceProviderOrderIssueReason["PAYMENT_OR_PAYOUT_ISSUE"] = "payment_or_payout_issue";
|
|
12
|
+
ServiceProviderOrderIssueReason["WEATHER_CONDITIONS_ISSUE"] = "weather_conditions_issue";
|
|
13
|
+
ServiceProviderOrderIssueReason["OTHER"] = "other";
|
|
14
|
+
})(ServiceProviderOrderIssueReason || (exports.ServiceProviderOrderIssueReason = ServiceProviderOrderIssueReason = {}));
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./OrderIssueStatusTypes.enum"), exports);
|
|
18
18
|
__exportStar(require("./OrderIssueSeverityLevel.enum"), exports);
|
|
19
19
|
__exportStar(require("./CustomerOrderIssueReason.enum"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./ServiceProviderOrderIssueReason.enum"), exports);
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PromoCodeDiscountType = void 0;
|
|
4
4
|
var PromoCodeDiscountType;
|
|
5
5
|
(function (PromoCodeDiscountType) {
|
|
6
|
-
|
|
6
|
+
// PERCENT = "PERCENT",
|
|
7
7
|
PromoCodeDiscountType["FIXED"] = "FIXED";
|
|
8
8
|
})(PromoCodeDiscountType || (exports.PromoCodeDiscountType = PromoCodeDiscountType = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceProviderBadgesTypes = void 0;
|
|
4
|
+
var ServiceProviderBadgesTypes;
|
|
5
|
+
(function (ServiceProviderBadgesTypes) {
|
|
6
|
+
ServiceProviderBadgesTypes["PROFESSIONAL_LIABILITY_INSURANCE"] = "professional_liability_insurance";
|
|
7
|
+
})(ServiceProviderBadgesTypes || (exports.ServiceProviderBadgesTypes = ServiceProviderBadgesTypes = {}));
|
|
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ProfessionalInsurancesTypes.enum"), exports);
|
|
18
18
|
__exportStar(require("./ProfessionalDiplomasTypes.enum"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./ServiceProviderBadgesTypes.enum"), exports);
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { FirestoreCollections } from "../enums";
|
|
2
|
-
import type { FirestoreBookedSlotDocument, FirestoreDailyMetricsDocument, FirestoreDebugPublicConfigDocument, FirestoreDeviceTokenDocument, FirestoreEmailsBlacklistDocument, FirestoreEmailsSoftBounceDocument, FirestoreEntityDocument, FirestoreEntityMemberDocument, FirestoreEntityMemberInviteDocument, FirestoreEntityUniqueKeyDocument, FirestoreFunctionsDeploymentRunsDocument, FirestoreGlobalMetricsDocument, FirestoreInvoiceCounterDocument, FirestoreMarketplaceFinancialReportsDocument, FirestoreMessageDocument, FirestoreNotificationEventDeliveryStateDocument, FirestoreNotificationEventsPublicConfigDocument, FirestoreOnTaskExecutionStateDocument, FirestoreOrderDocument, FirestoreOrderIssueDocument, FirestoreOrderReviewDocument, FirestoreOrdersPublicConfigDocument, FirestorePaymentIntentDocument, FirestorePlatformPublicConfigDocument, FirestorePricingPublicConfigDocument,
|
|
2
|
+
import type { FirestoreBookedSlotDocument, FirestoreDailyMetricsDocument, FirestoreDebugPublicConfigDocument, FirestoreDeviceTokenDocument, FirestoreEmailsBlacklistDocument, FirestoreEmailsSoftBounceDocument, FirestoreEntityDocument, FirestoreEntityMemberDocument, FirestoreEntityMemberInviteDocument, FirestoreEntityUniqueKeyDocument, FirestoreFunctionsDeploymentRunsDocument, FirestoreGlobalMetricsDocument, FirestoreInvoiceCounterDocument, FirestoreMarketplaceFinancialReportsDocument, FirestoreMessageDocument, FirestoreNotificationEventDeliveryStateDocument, FirestoreNotificationEventsPublicConfigDocument, FirestoreOnTaskExecutionStateDocument, FirestoreOrderDocument, FirestoreOrderIssueDocument, FirestoreOrderReviewDocument, FirestoreOrdersPublicConfigDocument, FirestorePaymentIntentDocument, FirestorePlatformPublicConfigDocument, FirestorePricingPublicConfigDocument, FirestoreServiceProviderUserPublicDocument, FirestorePromoCodeDocument, FirestorePromoCodeRedemptionDocument, FirestoreRateLimitDocument, FirestoreServicesPublicConfigDocument, FirestoreSlotDocument, FirestoreUserDocument, FirestoreUserUploadRateLimitDocument, FirestoreVehicleDocument, FirestoreCreditsDocument, FirestoreCreditsLedgerEntryDocument, FirestoreWalletsDocument, FirestoreWalletsLedgerEntryDocument, FirestoreWalletsWithdrawalIntentsDocument } from "../types";
|
|
3
3
|
type FirestoreCollectionDocumentTypeMapBase = {
|
|
4
4
|
[FirestoreCollections.USERS]: FirestoreUserDocument;
|
|
5
5
|
[FirestoreCollections.DEVICE_TOKENS]: FirestoreDeviceTokenDocument;
|
|
6
|
-
[FirestoreCollections.
|
|
6
|
+
[FirestoreCollections.SERVICE_PROVIDER_USERS_PUBLIC]: FirestoreServiceProviderUserPublicDocument;
|
|
7
7
|
[FirestoreCollections.WALLETS]: FirestoreWalletsDocument;
|
|
8
8
|
[FirestoreCollections.WALLETS_LEDGER_ENTRIES]: FirestoreWalletsLedgerEntryDocument;
|
|
9
9
|
[FirestoreCollections.WALLETS_WITHDRAWAL_INTENTS]: FirestoreWalletsWithdrawalIntentsDocument;
|
|
10
|
+
[FirestoreCollections.CREDITS]: FirestoreCreditsDocument;
|
|
11
|
+
[FirestoreCollections.CREDITS_LEDGER_ENTRIES]: FirestoreCreditsLedgerEntryDocument;
|
|
10
12
|
[FirestoreCollections.SLOTS]: FirestoreSlotDocument;
|
|
11
13
|
[FirestoreCollections.BOOKED_SLOTS]: FirestoreBookedSlotDocument;
|
|
12
14
|
[FirestoreCollections.MESSAGES]: FirestoreMessageDocument;
|
|
@@ -26,6 +28,7 @@ type FirestoreCollectionDocumentTypeMapBase = {
|
|
|
26
28
|
[FirestoreCollections.PAYMENT_INTENTS]: FirestorePaymentIntentDocument;
|
|
27
29
|
[FirestoreCollections.METRICS]: FirestoreDailyMetricsDocument | FirestoreGlobalMetricsDocument;
|
|
28
30
|
[FirestoreCollections.PROMO_CODES]: FirestorePromoCodeDocument;
|
|
31
|
+
[FirestoreCollections.PROMO_CODE_REDEMPTIONS]: FirestorePromoCodeRedemptionDocument;
|
|
29
32
|
[FirestoreCollections.COUNTERS]: FirestoreInvoiceCounterDocument;
|
|
30
33
|
[FirestoreCollections.NOTIFICATION_EVENT_DELIVERY_STATES]: FirestoreNotificationEventDeliveryStateDocument;
|
|
31
34
|
[FirestoreCollections.FUNCTIONS_DEPLOYMENT_RUNS]: FirestoreFunctionsDeploymentRunsDocument;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SupportedIsoCurrency } from "../../../../enums";
|
|
2
|
+
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
3
|
+
export type FirestoreCreditsDocument = {
|
|
4
|
+
schemaVersion: number;
|
|
5
|
+
ownerEntityId: string;
|
|
6
|
+
currency: SupportedIsoCurrency;
|
|
7
|
+
balances: {
|
|
8
|
+
availableInCents: number;
|
|
9
|
+
pendingInCents: number;
|
|
10
|
+
lifetimeEarnedInCents: number;
|
|
11
|
+
lifetimeSpentInCents: number;
|
|
12
|
+
updatedAt: FirestoreTimestamp;
|
|
13
|
+
};
|
|
14
|
+
createdAt: FirestoreTimestamp;
|
|
15
|
+
updatedAt: FirestoreTimestamp;
|
|
16
|
+
isTest: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FirestoreCreditsDocument.type";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FirestoreCreditsDocument.type"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SupportedIsoCurrency } from "../../../../enums";
|
|
2
|
+
import type { CreditsLedgerEntryContextReferenceType, CreditsLedgerEntryReason, CreditsLedgerEntryType } from "../../enums";
|
|
3
|
+
import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
|
|
4
|
+
export type FirestoreCreditsLedgerEntryDocument = {
|
|
5
|
+
createdAt: FirestoreTimestamp;
|
|
6
|
+
effectiveAt: FirestoreTimestamp;
|
|
7
|
+
schemaVersion: number;
|
|
8
|
+
creditsDocumentId: string;
|
|
9
|
+
type: CreditsLedgerEntryType;
|
|
10
|
+
reason: CreditsLedgerEntryReason;
|
|
11
|
+
amountInCents: number;
|
|
12
|
+
balanceBeforeInCents: number;
|
|
13
|
+
balanceAfterInCents: number;
|
|
14
|
+
currency: SupportedIsoCurrency;
|
|
15
|
+
context?: {
|
|
16
|
+
referenceId: string;
|
|
17
|
+
referenceType: CreditsLedgerEntryContextReferenceType;
|
|
18
|
+
metadata?: Record<string, string | number | boolean>;
|
|
19
|
+
};
|
|
20
|
+
isTest: boolean;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FirestoreCreditsLedgerEntryDocument.type";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FirestoreCreditsLedgerEntryDocument.type"), exports);
|
|
@@ -92,6 +92,9 @@ export type FirestoreEntityDocument = {
|
|
|
92
92
|
wallets: {
|
|
93
93
|
byCurrency: Partial<Record<SupportedIsoCurrency, string>>;
|
|
94
94
|
};
|
|
95
|
+
credits: {
|
|
96
|
+
byCurrency: Partial<Record<SupportedIsoCurrency, string>>;
|
|
97
|
+
};
|
|
95
98
|
paymentProviders?: {
|
|
96
99
|
stripe?: {
|
|
97
100
|
connect?: StripeConnectAccountSummary;
|