@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.
Files changed (228) hide show
  1. package/dist/emails/types/professional/ProfessionalOrderIssueReportedConfirmationEmailData.type.d.ts +1 -1
  2. package/dist/emails/types/professional/ProfessionalServiceCompletedByProfessionalEmailData.type.d.ts +1 -1
  3. package/dist/errors/enums/cloudFunctions/entities/RedeemPromoCodeForEntityErrorCodes.enum.d.ts +18 -0
  4. package/dist/errors/enums/cloudFunctions/entities/RedeemPromoCodeForEntityErrorCodes.enum.js +22 -0
  5. package/dist/errors/enums/cloudFunctions/entities/index.d.ts +1 -0
  6. package/dist/errors/enums/cloudFunctions/entities/index.js +1 -0
  7. package/dist/errors/enums/cloudFunctions/orders/CancelConfirmedOrInProgressOrderErrorCodes.enum.d.ts +1 -1
  8. package/dist/errors/enums/cloudFunctions/orders/CancelConfirmedOrInProgressOrderErrorCodes.enum.js +1 -1
  9. package/dist/errors/enums/cloudFunctions/orders/ConfirmServiceCompletionByServiceProviderErrorCodes.enum.d.ts +7 -0
  10. package/dist/errors/enums/cloudFunctions/orders/ConfirmServiceCompletionByServiceProviderErrorCodes.enum.js +11 -0
  11. package/dist/errors/enums/cloudFunctions/orders/StartConfirmedOrderByServiceProviderErrorCodes.enum.d.ts +6 -0
  12. package/dist/errors/enums/cloudFunctions/orders/StartConfirmedOrderByServiceProviderErrorCodes.enum.js +10 -0
  13. package/dist/errors/enums/cloudFunctions/orders/index.d.ts +2 -2
  14. package/dist/errors/enums/cloudFunctions/orders/index.js +2 -2
  15. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserServiceErrorCodes.enum.d.ts +1 -1
  16. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserServiceErrorCodes.enum.js +1 -1
  17. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServiceErrorCodes.enum.d.ts +1 -1
  18. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServiceErrorCodes.enum.js +1 -1
  19. package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.d.ts +3 -3
  20. package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.js +3 -3
  21. package/dist/firebase/cloudFunctions/enums/TaskCloudFunctionsNames.enum.d.ts +1 -1
  22. package/dist/firebase/cloudFunctions/enums/TaskCloudFunctionsNames.enum.js +1 -1
  23. package/dist/firebase/cloudFunctions/maps/OnCallCloudFunctionsTypeMappings.map.d.ts +11 -11
  24. package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityRequestData.type.d.ts +5 -0
  25. package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityRequestData.type.js +2 -0
  26. package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityResponseData.type.d.ts +1 -0
  27. package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityResponseData.type.js +2 -0
  28. package/dist/firebase/cloudFunctions/types/entities/index.d.ts +2 -0
  29. package/dist/firebase/cloudFunctions/types/entities/index.js +2 -0
  30. package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderRequestData.type.d.ts +4 -0
  31. package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderRequestData.type.js +2 -0
  32. package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderResponseData.type.d.ts +1 -0
  33. package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderResponseData.type.js +2 -0
  34. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityRequestData.type.d.ts +5 -0
  35. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityRequestData.type.js +2 -0
  36. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityResponseData.type.d.ts +1 -0
  37. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityResponseData.type.js +2 -0
  38. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeRequestData.type.d.ts +5 -0
  39. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeRequestData.type.js +2 -0
  40. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeResponseData.type.d.ts +9 -0
  41. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeResponseData.type.js +2 -0
  42. package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderRequestData.type.d.ts +4 -0
  43. package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderRequestData.type.js +2 -0
  44. package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderResponseData.type.d.ts +1 -0
  45. package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderResponseData.type.js +2 -0
  46. package/dist/firebase/cloudFunctions/types/orders/index.d.ts +4 -6
  47. package/dist/firebase/cloudFunctions/types/orders/index.js +4 -6
  48. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServiceRequestData.type.d.ts +2 -2
  49. package/dist/firebase/firestore/constants/credits/firestoreCreditsSchemaVersion.enum.d.ts +1 -0
  50. package/dist/firebase/firestore/constants/credits/firestoreCreditsSchemaVersion.enum.js +4 -0
  51. package/dist/firebase/firestore/constants/credits/index.d.ts +1 -0
  52. package/dist/firebase/firestore/constants/credits/index.js +17 -0
  53. package/dist/firebase/firestore/constants/creditsLedgerEntry/firestoreCreditsLedgerEntrySchemaVersion.enum.d.ts +1 -0
  54. package/dist/firebase/firestore/constants/creditsLedgerEntry/firestoreCreditsLedgerEntrySchemaVersion.enum.js +4 -0
  55. package/dist/firebase/firestore/constants/creditsLedgerEntry/index.d.ts +1 -0
  56. package/dist/firebase/firestore/constants/creditsLedgerEntry/index.js +17 -0
  57. package/dist/firebase/firestore/constants/index.d.ts +6 -4
  58. package/dist/firebase/firestore/constants/index.js +6 -4
  59. package/dist/firebase/firestore/constants/providerLocationServiceMaxRadiusInKM.constant.d.ts +1 -0
  60. package/dist/firebase/firestore/constants/providerLocationServiceMaxRadiusInKM.constant.js +4 -0
  61. package/dist/firebase/firestore/constants/providerLocationServiceMinRadiusInKM.constant.d.ts +1 -0
  62. package/dist/firebase/firestore/constants/providerLocationServiceMinRadiusInKM.constant.js +4 -0
  63. package/dist/firebase/firestore/constants/providerServiceMinimumDurationIncrementInMinutes.constant.d.ts +1 -0
  64. package/dist/firebase/firestore/constants/providerServiceMinimumDurationIncrementInMinutes.constant.js +4 -0
  65. package/dist/firebase/firestore/constants/providerServiceMinimumPriceIncrementInCents.constant.d.ts +1 -0
  66. package/dist/firebase/firestore/constants/providerServiceMinimumPriceIncrementInCents.constant.js +4 -0
  67. package/dist/firebase/firestore/enums/FirestoreCollections.enum.d.ts +4 -1
  68. package/dist/firebase/firestore/enums/FirestoreCollections.enum.js +4 -1
  69. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryContextReferenceType.enum.d.ts +6 -0
  70. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryContextReferenceType.enum.js +10 -0
  71. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryReason.enum.d.ts +10 -0
  72. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryReason.enum.js +14 -0
  73. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryType.enum.d.ts +4 -0
  74. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryType.enum.js +8 -0
  75. package/dist/firebase/firestore/enums/creditsLedgerEntry/index.d.ts +3 -0
  76. package/dist/firebase/firestore/enums/creditsLedgerEntry/index.js +19 -0
  77. package/dist/firebase/firestore/enums/index.d.ts +1 -0
  78. package/dist/firebase/firestore/enums/index.js +1 -0
  79. package/dist/firebase/firestore/enums/orders/OrderCancellationByTypes.enum.d.ts +1 -1
  80. package/dist/firebase/firestore/enums/orders/OrderCancellationByTypes.enum.js +1 -1
  81. package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.d.ts +7 -7
  82. package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.js +7 -7
  83. package/dist/firebase/firestore/enums/orders/dispute/OrderDisputeOpenedBy.enum.d.ts +1 -1
  84. package/dist/firebase/firestore/enums/orders/dispute/OrderDisputeOpenedBy.enum.js +1 -1
  85. package/dist/firebase/firestore/enums/orders/index.d.ts +1 -1
  86. package/dist/firebase/firestore/enums/orders/index.js +1 -1
  87. package/dist/firebase/firestore/enums/ordersIssues/CustomerOrderIssueReason.enum.d.ts +2 -2
  88. package/dist/firebase/firestore/enums/ordersIssues/CustomerOrderIssueReason.enum.js +2 -2
  89. package/dist/firebase/firestore/enums/ordersIssues/ServiceProviderOrderIssueReason.enum.d.ts +10 -0
  90. package/dist/firebase/firestore/enums/ordersIssues/ServiceProviderOrderIssueReason.enum.js +14 -0
  91. package/dist/firebase/firestore/enums/ordersIssues/index.d.ts +1 -1
  92. package/dist/firebase/firestore/enums/ordersIssues/index.js +1 -1
  93. package/dist/firebase/firestore/enums/promoCode/PromoCodeDiscountType.enum.d.ts +0 -1
  94. package/dist/firebase/firestore/enums/promoCode/PromoCodeDiscountType.enum.js +1 -1
  95. package/dist/firebase/firestore/enums/users/professionals/ServiceProviderBadgesTypes.enum.d.ts +3 -0
  96. package/dist/firebase/firestore/enums/users/professionals/ServiceProviderBadgesTypes.enum.js +7 -0
  97. package/dist/firebase/firestore/enums/users/professionals/index.d.ts +1 -1
  98. package/dist/firebase/firestore/enums/users/professionals/index.js +1 -1
  99. package/dist/firebase/firestore/maps/FirestoreCollectionDocumentTypeMap.d.ts +5 -2
  100. package/dist/firebase/firestore/types/credits/CheckoutCreditsSummary.type.d.ts +6 -0
  101. package/dist/firebase/firestore/types/credits/CheckoutCreditsSummary.type.js +2 -0
  102. package/dist/firebase/firestore/types/credits/FirestoreCreditsDocument.type.d.ts +17 -0
  103. package/dist/firebase/firestore/types/credits/FirestoreCreditsDocument.type.js +2 -0
  104. package/dist/firebase/firestore/types/credits/index.d.ts +1 -0
  105. package/dist/firebase/firestore/types/credits/index.js +17 -0
  106. package/dist/firebase/firestore/types/creditsLedgerEntryDocument/FirestoreCreditsLedgerEntryDocument.type.d.ts +21 -0
  107. package/dist/firebase/firestore/types/creditsLedgerEntryDocument/FirestoreCreditsLedgerEntryDocument.type.js +2 -0
  108. package/dist/firebase/firestore/types/creditsLedgerEntryDocument/index.d.ts +1 -0
  109. package/dist/firebase/firestore/types/creditsLedgerEntryDocument/index.js +17 -0
  110. package/dist/firebase/firestore/types/entities/FirestoreEntityDocument.type.d.ts +3 -0
  111. package/dist/firebase/firestore/types/index.d.ts +4 -1
  112. package/dist/firebase/firestore/types/index.js +4 -1
  113. package/dist/firebase/firestore/types/order/FirestoreOrderCancellationReason.type.d.ts +2 -2
  114. package/dist/firebase/firestore/types/order/FirestoreOrderDocument.type.d.ts +3 -0
  115. package/dist/firebase/firestore/types/ordersIssues/OrderIssueReason.type.d.ts +2 -2
  116. package/dist/firebase/firestore/types/ordersReviews/FirestoreOrderReviewDocument.type.d.ts +1 -1
  117. package/dist/firebase/firestore/types/promoCode/FirestorePromoCodeDocument.type.d.ts +8 -14
  118. package/dist/firebase/firestore/types/promoCodeRedemptions/FirestorePromoCodeRedemptionDocument.type.d.ts +9 -0
  119. package/dist/firebase/firestore/types/promoCodeRedemptions/FirestorePromoCodeRedemptionDocument.type.js +2 -0
  120. package/dist/firebase/firestore/types/promoCodeRedemptions/index.d.ts +1 -0
  121. package/dist/firebase/firestore/types/promoCodeRedemptions/index.js +17 -0
  122. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocument.type.d.ts +49 -0
  123. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocument.type.js +2 -0
  124. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.d.ts +4 -0
  125. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.js +2 -0
  126. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.d.ts +4 -0
  127. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.js +2 -0
  128. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/index.d.ts +3 -0
  129. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/index.js +19 -0
  130. package/dist/firebase/firestore/types/services/ProviderService.type.d.ts +8 -0
  131. package/dist/firebase/firestore/types/services/ProviderService.type.js +2 -0
  132. package/dist/firebase/firestore/types/services/ServiceProviderService.type.d.ts +8 -0
  133. package/dist/firebase/firestore/types/services/ServiceProviderService.type.js +2 -0
  134. package/dist/firebase/firestore/types/services/index.d.ts +1 -1
  135. package/dist/firebase/firestore/types/services/index.js +1 -1
  136. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProfessionalService.test.js +11 -11
  137. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProviderService.test.d.ts +1 -0
  138. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProviderService.test.js +172 -0
  139. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidServicePricingAndDurationForVehicle.test.js +9 -9
  140. package/dist/firebase/firestore/utils/dataValidators/services/index.d.ts +1 -1
  141. package/dist/firebase/firestore/utils/dataValidators/services/index.js +1 -1
  142. package/dist/firebase/firestore/utils/dataValidators/services/isValidProfessionalService.d.ts +1 -1
  143. package/dist/firebase/firestore/utils/dataValidators/services/isValidProfessionalService.js +13 -13
  144. package/dist/firebase/firestore/utils/dataValidators/services/isValidProviderService.d.ts +2 -0
  145. package/dist/firebase/firestore/utils/dataValidators/services/isValidProviderService.js +42 -0
  146. package/dist/firebase/firestore/utils/dataValidators/services/isValidServicePricingAndDurationForVehicle.js +2 -2
  147. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProfessionalServiceParams.type.d.ts +2 -2
  148. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProviderServiceParams.type.d.ts +6 -0
  149. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProviderServiceParams.type.js +2 -0
  150. package/dist/firebase/firestore/utils/dataValidators/services/types/index.d.ts +1 -1
  151. package/dist/firebase/firestore/utils/dataValidators/services/types/index.js +1 -1
  152. package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndServicesDetails.test.js +13 -13
  153. package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndServicesDetails.d.ts +1 -1
  154. package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndServicesDetails.js +2 -2
  155. package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsProps.type.d.ts +2 -2
  156. package/dist/firebase/firestore/utils/reviews/__tests__/getAverageRatingFromReviewAggregates.test.d.ts +1 -0
  157. package/dist/firebase/firestore/utils/reviews/__tests__/getAverageRatingFromReviewAggregates.test.js +97 -0
  158. package/dist/firebase/firestore/utils/reviews/getAverageRatingFromReviewAggregates.d.ts +2 -0
  159. package/dist/firebase/firestore/utils/reviews/getAverageRatingFromReviewAggregates.js +13 -0
  160. package/dist/firebase/firestore/utils/reviews/index.d.ts +1 -1
  161. package/dist/firebase/firestore/utils/reviews/index.js +1 -1
  162. package/dist/firebase/firestore/utils/services/__tests__/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.test.d.ts +1 -0
  163. package/dist/firebase/firestore/utils/services/__tests__/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.test.js +101 -0
  164. package/dist/firebase/firestore/utils/services/__tests__/createServiceVehicleComboKey.test.js +4 -4
  165. package/dist/firebase/firestore/utils/services/__tests__/getBookableServiceProviderServicesForVehicleType.test.js +49 -49
  166. package/dist/firebase/firestore/utils/services/__tests__/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.test.js +32 -32
  167. package/dist/firebase/firestore/utils/services/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.d.ts +2 -0
  168. package/dist/firebase/firestore/utils/services/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.js +18 -0
  169. package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.d.ts +3 -3
  170. package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.js +11 -11
  171. package/dist/firebase/firestore/utils/services/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.d.ts +1 -1
  172. package/dist/firebase/firestore/utils/services/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.js +2 -2
  173. package/dist/firebase/firestore/utils/services/index.d.ts +1 -1
  174. package/dist/firebase/firestore/utils/services/index.js +1 -1
  175. package/dist/firebase/firestore/utils/services/types/ComputeTotalServiceProviderServiceDurationInMinutesForVehicleTypeArgs.type.d.ts +7 -0
  176. package/dist/firebase/firestore/utils/services/types/ComputeTotalServiceProviderServiceDurationInMinutesForVehicleTypeArgs.type.js +2 -0
  177. package/dist/firebase/firestore/utils/services/types/GetBookableServiceProviderServicesForVehicleTypeParams.type.d.ts +2 -2
  178. package/dist/firebase/firestore/utils/services/types/GetServiceProviderActiveServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +2 -2
  179. package/dist/firebase/firestore/utils/services/types/index.d.ts +1 -1
  180. package/dist/firebase/firestore/utils/services/types/index.js +1 -1
  181. package/dist/firebase/firestore/utils/stubs/credits/firestoreCreditsDocumentStub.d.ts +2 -0
  182. package/dist/firebase/firestore/utils/stubs/credits/firestoreCreditsDocumentStub.js +24 -0
  183. package/dist/firebase/firestore/utils/stubs/credits/index.d.ts +1 -0
  184. package/dist/firebase/firestore/utils/stubs/credits/index.js +17 -0
  185. package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/firestoreCreditsLedgerEntryDocumentStub.d.ts +2 -0
  186. package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/firestoreCreditsLedgerEntryDocumentStub.js +27 -0
  187. package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/index.d.ts +1 -0
  188. package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/index.js +17 -0
  189. package/dist/firebase/firestore/utils/stubs/entities/firestoreEntityDocumentStub.js +3 -0
  190. package/dist/firebase/firestore/utils/stubs/index.d.ts +5 -1
  191. package/dist/firebase/firestore/utils/stubs/index.js +5 -1
  192. package/dist/firebase/firestore/utils/stubs/ordersReviews/firestoreOrderReviewDocumentStub.js +1 -1
  193. package/dist/firebase/firestore/utils/stubs/promoCode/firestorePromoCodeDocumentStub.d.ts +2 -0
  194. package/dist/firebase/firestore/utils/stubs/promoCode/firestorePromoCodeDocumentStub.js +23 -0
  195. package/dist/firebase/firestore/utils/stubs/promoCode/index.d.ts +1 -0
  196. package/dist/firebase/firestore/utils/stubs/promoCode/index.js +17 -0
  197. package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/firestorePromoCodeRedemptionDocumentStub.d.ts +2 -0
  198. package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/firestorePromoCodeRedemptionDocumentStub.js +10 -0
  199. package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/index.d.ts +1 -0
  200. package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/index.js +17 -0
  201. package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/firestoreServiceProviderUserPublicDocumentStub.d.ts +2 -0
  202. package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/firestoreServiceProviderUserPublicDocumentStub.js +44 -0
  203. package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/index.d.ts +1 -0
  204. package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/index.js +17 -0
  205. package/dist/firebase/firestore/utils/stubs/services/index.d.ts +1 -1
  206. package/dist/firebase/firestore/utils/stubs/services/index.js +1 -1
  207. package/dist/firebase/firestore/utils/stubs/services/pricingAndDurationForVehicleStub.js +2 -2
  208. package/dist/firebase/firestore/utils/stubs/services/providerServiceStub.d.ts +5 -0
  209. package/dist/firebase/firestore/utils/stubs/services/providerServiceStub.js +21 -0
  210. package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceStub.d.ts +5 -0
  211. package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceStub.js +21 -0
  212. package/dist/firebase/storage/enums/FirebaseStorageBasePaths.enum.js +1 -1
  213. package/dist/firebase/storage/utils/__tests__/buildStoragePeriodSlug.test.js +8 -6
  214. package/dist/gcp/cloudTask/enums/CloudTasksQueueName.enum.d.ts +1 -1
  215. package/dist/gcp/cloudTask/enums/CloudTasksQueueName.enum.js +1 -1
  216. package/dist/gcp/cloudTask/maps/CloudTaskEnvelopeMap.map.d.ts +2 -2
  217. package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderAvailabilityEnvelope.type.d.ts +1 -1
  218. package/dist/gcp/cloudTask/types/index.d.ts +1 -1
  219. package/dist/gcp/cloudTask/types/index.js +1 -1
  220. package/dist/gcp/cloudTask/utils/stubs/index.d.ts +1 -1
  221. package/dist/gcp/cloudTask/utils/stubs/index.js +1 -1
  222. package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderAvailabilityEnvelopeStub.js +1 -1
  223. package/dist/pricing/__tests__/calculateInvoiceTotalWithTax.util.test.js +3 -3
  224. package/dist/stripe/types/StripeCustomServiceProviderPayoutMetadata.type.d.ts +5 -0
  225. package/dist/stripe/types/StripeCustomServiceProviderPayoutMetadata.type.js +2 -0
  226. package/dist/stripe/types/index.d.ts +1 -1
  227. package/dist/stripe/types/index.js +1 -1
  228. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- export * from "./professionalLocationServiceMaxRadiusInKM.constant";
2
- export * from "./professionalLocationServiceMinRadiusInKM.constant";
3
- export * from "./professionalServiceMinimumDurationIncrementInMinutes.constant";
4
- export * from "./professionalServiceMinimumPriceIncrementInCents.constant";
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("./professionalLocationServiceMaxRadiusInKM.constant"), exports);
18
- __exportStar(require("./professionalLocationServiceMinRadiusInKM.constant"), exports);
19
- __exportStar(require("./professionalServiceMinimumDurationIncrementInMinutes.constant"), exports);
20
- __exportStar(require("./professionalServiceMinimumPriceIncrementInCents.constant"), exports);
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,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROVIDER_LOCATION_SERVICE_MAX_RADIUS_IN_KM = void 0;
4
+ exports.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,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROVIDER_LOCATION_SERVICE_MIN_RADIUS_IN_KM = void 0;
4
+ exports.PROVIDER_LOCATION_SERVICE_MIN_RADIUS_IN_KM = 1;
@@ -0,0 +1 @@
1
+ export declare const PROVIDER_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES = 15;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROVIDER_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES = void 0;
4
+ exports.PROVIDER_SERVICE_MINIMUM_DURATION_INCREMENT_IN_MINUTES = 15;
@@ -0,0 +1 @@
1
+ export declare const PROVIDER_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS = 100;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROVIDER_SERVICE_MINIMUM_PRICE_INCREMENT_IN_CENTS = void 0;
4
+ exports.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
- PROFESSIONAL_USERS_PUBLIC = "professional_users_public",
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["PROFESSIONAL_USERS_PUBLIC"] = "professional_users_public";
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,6 @@
1
+ export declare enum CreditsLedgerEntryContextReferenceType {
2
+ ORDER = "order",
3
+ PROMO_CODE = "promo_code",
4
+ REFERRAL = "referral",
5
+ SUPPORT = "support"
6
+ }
@@ -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,4 @@
1
+ export declare enum CreditsLedgerEntryType {
2
+ CREDIT = "credit",
3
+ DEBIT = "debit"
4
+ }
@@ -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,3 @@
1
+ export * from "./CreditsLedgerEntryType.enum";
2
+ export * from "./CreditsLedgerEntryReason.enum";
3
+ export * from "./CreditsLedgerEntryContextReferenceType.enum";
@@ -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);
@@ -1,6 +1,6 @@
1
1
  export declare enum OrderCancellationByTypes {
2
2
  CUSTOMER = "customer",
3
- PROFESSIONAL = "professional",
3
+ SERVICE_PROVIDER = "service_provider",
4
4
  SYSTEM = "system",
5
5
  OTHER = "other"
6
6
  }
@@ -4,7 +4,7 @@ exports.OrderCancellationByTypes = void 0;
4
4
  var OrderCancellationByTypes;
5
5
  (function (OrderCancellationByTypes) {
6
6
  OrderCancellationByTypes["CUSTOMER"] = "customer";
7
- OrderCancellationByTypes["PROFESSIONAL"] = "professional";
7
+ OrderCancellationByTypes["SERVICE_PROVIDER"] = "service_provider";
8
8
  OrderCancellationByTypes["SYSTEM"] = "system";
9
9
  OrderCancellationByTypes["OTHER"] = "other";
10
10
  })(OrderCancellationByTypes || (exports.OrderCancellationByTypes = OrderCancellationByTypes = {}));
@@ -1,9 +1,9 @@
1
1
  export declare enum OrderServiceProviderCancellationReason {
2
- WEATHER = "serviceProvider_cancelled_weather",
3
- UNABLE_TO_CONTACT_CUSTOMER = "serviceProvider_cancelled_unable_to_contact_customer",
4
- UNSAFE_LOCATION = "serviceProvider_cancelled_unsafe_location",
5
- VEHICLE_NOT_ACCESSIBLE = "serviceProvider_cancelled_vehicle_not_accessible",
6
- BOOKING_CONFLICT = "serviceProvider_cancelled_booking_conflict",
7
- NOT_AVAILABLE = "serviceProvider_cancelled_not_available",
8
- OTHER = "serviceProvider_cancelled_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"] = "serviceProvider_cancelled_weather";
7
- OrderServiceProviderCancellationReason["UNABLE_TO_CONTACT_CUSTOMER"] = "serviceProvider_cancelled_unable_to_contact_customer";
8
- OrderServiceProviderCancellationReason["UNSAFE_LOCATION"] = "serviceProvider_cancelled_unsafe_location";
9
- OrderServiceProviderCancellationReason["VEHICLE_NOT_ACCESSIBLE"] = "serviceProvider_cancelled_vehicle_not_accessible";
10
- OrderServiceProviderCancellationReason["BOOKING_CONFLICT"] = "serviceProvider_cancelled_booking_conflict";
11
- OrderServiceProviderCancellationReason["NOT_AVAILABLE"] = "serviceProvider_cancelled_not_available";
12
- OrderServiceProviderCancellationReason["OTHER"] = "serviceProvider_cancelled_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 = {}));
@@ -1,5 +1,5 @@
1
1
  export declare enum OrderDisputeOpenedBy {
2
2
  CUSTOMER = "customer",
3
- PROFESSIONAL = "professional",
3
+ SERVICE_PROVIDER = "service_provider",
4
4
  SYSTEM = "system"
5
5
  }
@@ -4,6 +4,6 @@ exports.OrderDisputeOpenedBy = void 0;
4
4
  var OrderDisputeOpenedBy;
5
5
  (function (OrderDisputeOpenedBy) {
6
6
  OrderDisputeOpenedBy["CUSTOMER"] = "customer";
7
- OrderDisputeOpenedBy["PROFESSIONAL"] = "professional";
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 "./OrderProfessionalCancellationReason.enum";
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("./OrderProfessionalCancellationReason.enum"), exports);
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
- PROFESSIONAL_BEHAVIOR_ISSUE = "professional_behavior_issue",
2
+ SERVICE_PROVIDER_BEHAVIOR_ISSUE = "service_provider_behavior_issue",
3
3
  VEHICLE_DAMAGE_OR_THEFT = "vehicle_damage_or_theft",
4
- PROFESSIONAL_ABSENT_OR_LATE = "professional_absent_or_late",
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["PROFESSIONAL_BEHAVIOR_ISSUE"] = "professional_behavior_issue";
6
+ CustomerOrderIssueReason["SERVICE_PROVIDER_BEHAVIOR_ISSUE"] = "service_provider_behavior_issue";
7
7
  CustomerOrderIssueReason["VEHICLE_DAMAGE_OR_THEFT"] = "vehicle_damage_or_theft";
8
- CustomerOrderIssueReason["PROFESSIONAL_ABSENT_OR_LATE"] = "professional_absent_or_late";
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 = {}));
@@ -1,4 +1,4 @@
1
1
  export * from "./OrderIssueStatusTypes.enum";
2
2
  export * from "./OrderIssueSeverityLevel.enum";
3
3
  export * from "./CustomerOrderIssueReason.enum";
4
- export * from "./ProfessionalOrderIssueReason.enum";
4
+ export * from "./ServiceProviderOrderIssueReason.enum";
@@ -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("./ProfessionalOrderIssueReason.enum"), exports);
20
+ __exportStar(require("./ServiceProviderOrderIssueReason.enum"), exports);
@@ -1,4 +1,3 @@
1
1
  export declare enum PromoCodeDiscountType {
2
- PERCENT = "PERCENT",
3
2
  FIXED = "FIXED"
4
3
  }
@@ -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
- PromoCodeDiscountType["PERCENT"] = "PERCENT";
6
+ // PERCENT = "PERCENT",
7
7
  PromoCodeDiscountType["FIXED"] = "FIXED";
8
8
  })(PromoCodeDiscountType || (exports.PromoCodeDiscountType = PromoCodeDiscountType = {}));
@@ -0,0 +1,3 @@
1
+ export declare enum ServiceProviderBadgesTypes {
2
+ PROFESSIONAL_LIABILITY_INSURANCE = "professional_liability_insurance"
3
+ }
@@ -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 = {}));
@@ -1,3 +1,3 @@
1
1
  export * from "./ProfessionalInsurancesTypes.enum";
2
2
  export * from "./ProfessionalDiplomasTypes.enum";
3
- export * from "./ProfessionalBadgesTypes.enum";
3
+ export * from "./ServiceProviderBadgesTypes.enum";
@@ -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("./ProfessionalBadgesTypes.enum"), exports);
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, FirestoreProfessionalUserPublicDocument, FirestorePromoCodeDocument, FirestoreRateLimitDocument, FirestoreServicesPublicConfigDocument, FirestoreSlotDocument, FirestoreUserDocument, FirestoreUserUploadRateLimitDocument, FirestoreVehicleDocument, FirestoreWalletsDocument, FirestoreWalletsLedgerEntryDocument, FirestoreWalletsWithdrawalIntentsDocument } from "../types";
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.PROFESSIONAL_USERS_PUBLIC]: FirestoreProfessionalUserPublicDocument;
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,6 @@
1
+ export type CheckoutCreditsSummary = {
2
+ invoiceTotalAmountInCents: number;
3
+ creditsUsedInCents: number;
4
+ remainingAmountToChargeInCents: number;
5
+ remainingCreditsBalanceInCents: number;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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;