@doctocar/tooling 0.3.1-4 → 0.3.1-42

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 (1269) hide show
  1. package/dist/emails/enums/AWSSESEmailsTemplatesNames.enum.d.ts +4 -1
  2. package/dist/emails/enums/AWSSESEmailsTemplatesNames.enum.js +4 -1
  3. package/dist/emails/maps/EmailTemplateDataMap.map.d.ts +5 -2
  4. package/dist/emails/maps/EmailTemplateDataMap.map.js +0 -4
  5. package/dist/emails/types/company/CompanyVatRejectedEmailData.type.d.ts +5 -0
  6. package/dist/emails/types/company/CompanyVatRejectedEmailData.type.js +2 -0
  7. package/dist/emails/types/company/CompanyVatVerifiedEmailData.type.d.ts +3 -0
  8. package/dist/emails/types/company/CompanyVatVerifiedEmailData.type.js +2 -0
  9. package/dist/emails/types/company/index.d.ts +2 -0
  10. package/dist/emails/types/company/index.js +18 -0
  11. package/dist/emails/types/customer/CustomerBookingConfirmationEmailData.type.d.ts +2 -2
  12. package/dist/emails/types/customer/CustomerConfirmedOrderCancelledEmailData.type.d.ts +2 -2
  13. package/dist/emails/types/customer/CustomerEntityCreatedEmailData.type.d.ts +1 -0
  14. package/dist/emails/types/customer/CustomerEntityCreatedEmailData.type.js +2 -0
  15. package/dist/emails/types/customer/CustomerOrderIssueReportedConfirmationEmailData.type.d.ts +1 -1
  16. package/dist/emails/types/customer/CustomerOrderNewMessageReceivedEmailData.type.d.ts +2 -2
  17. package/dist/emails/types/customer/CustomerOrderReviewRequestedEmailData.type.d.ts +2 -2
  18. package/dist/emails/types/customer/CustomerServiceCompletedByProfessionalEmailData.type.d.ts +2 -2
  19. package/dist/emails/types/customer/CustomerServiceStartedEmailData.type.d.ts +2 -2
  20. package/dist/emails/types/customer/CustomerUpcomingOrderReminderEmailData.type.d.ts +2 -2
  21. package/dist/emails/types/customer/CustomerWelcomeEmailData.type.d.ts +1 -0
  22. package/dist/emails/types/customer/CustomerWelcomeEmailData.type.js +2 -0
  23. package/dist/emails/types/entity/EntityCreatedEmailData.type.d.ts +1 -0
  24. package/dist/emails/types/entity/EntityCreatedEmailData.type.js +2 -0
  25. package/dist/emails/types/entity/EntityMemberInviteEmailData.type.d.ts +8 -0
  26. package/dist/emails/types/entity/EntityMemberInviteEmailData.type.js +2 -0
  27. package/dist/emails/types/entity/EntityVatVerificationFailedEmailData.type.d.ts +0 -1
  28. package/dist/emails/types/entity/ServiceProviderEntityIsNotCompliantAnymoreEmailData.type.d.ts +4 -0
  29. package/dist/emails/types/entity/ServiceProviderEntityIsNotCompliantAnymoreEmailData.type.js +2 -0
  30. package/dist/emails/types/entity/ServiceProviderEntityIsNowCompliantEmailData.type.d.ts +3 -0
  31. package/dist/emails/types/entity/ServiceProviderEntityIsNowCompliantEmailData.type.js +2 -0
  32. package/dist/emails/types/entity/ServiceProviderEntityOnboardingCompletedEmailData.type.d.ts +3 -0
  33. package/dist/emails/types/entity/ServiceProviderEntityOnboardingCompletedEmailData.type.js +2 -0
  34. package/dist/emails/types/entity/index.d.ts +4 -0
  35. package/dist/emails/types/entity/index.js +4 -0
  36. package/dist/emails/types/professional/ProfessionalConfirmedOrderCancelledEmailData.type.d.ts +2 -2
  37. package/dist/emails/types/professional/ProfessionalNewBookingEmailData.type.d.ts +1 -1
  38. package/dist/emails/types/professional/ProfessionalOrderIssueReportedConfirmationEmailData.type.d.ts +1 -1
  39. package/dist/emails/types/professional/ProfessionalOrderNewMessageReceivedEmailData.type.d.ts +2 -2
  40. package/dist/emails/types/professional/ProfessionalServiceCompletedByProfessionalEmailData.type.d.ts +2 -2
  41. package/dist/emails/types/professional/ProfessionalUpcomingOrderReminderEmailData.type.d.ts +1 -1
  42. package/dist/emails/types/professional/index.d.ts +0 -1
  43. package/dist/emails/types/professional/index.js +0 -1
  44. package/dist/enums/payment/PaymentStatusTypes.enum.d.ts +0 -2
  45. package/dist/enums/payment/PaymentStatusTypes.enum.js +0 -2
  46. package/dist/errors/enums/cloudFunctions/customers/ProcessCustomerUserOnboardingErrorCodes.enum.d.ts +22 -0
  47. package/dist/errors/enums/cloudFunctions/customers/ProcessCustomerUserOnboardingErrorCodes.enum.js +26 -0
  48. package/dist/errors/enums/cloudFunctions/customers/index.d.ts +0 -2
  49. package/dist/errors/enums/cloudFunctions/customers/index.js +0 -2
  50. package/dist/errors/enums/cloudFunctions/entities/AcceptEntityMemberInviteErrorCodes.enum.d.ts +15 -0
  51. package/dist/errors/enums/cloudFunctions/entities/AcceptEntityMemberInviteErrorCodes.enum.js +19 -0
  52. package/dist/errors/enums/cloudFunctions/entities/CreateEntityMemberInviteErrorCodes.enum.d.ts +16 -0
  53. package/dist/errors/enums/cloudFunctions/entities/CreateEntityMemberInviteErrorCodes.enum.js +20 -0
  54. package/dist/errors/enums/cloudFunctions/entities/CreateEntityVehicleErrorCodes.enum.d.ts +17 -0
  55. package/dist/errors/enums/cloudFunctions/entities/CreateEntityVehicleErrorCodes.enum.js +21 -0
  56. package/dist/errors/enums/cloudFunctions/entities/CreateNewEntityErrorCodes.enum.d.ts +7 -1
  57. package/dist/errors/enums/cloudFunctions/entities/CreateNewEntityErrorCodes.enum.js +6 -0
  58. package/dist/errors/enums/cloudFunctions/entities/DeleteEntityVehicleErrorCodes.enum.d.ts +10 -0
  59. package/dist/errors/enums/cloudFunctions/entities/DeleteEntityVehicleErrorCodes.enum.js +14 -0
  60. package/dist/errors/enums/cloudFunctions/entities/JoinEntityErrorCodes.enum.d.ts +13 -0
  61. package/dist/errors/enums/cloudFunctions/entities/JoinEntityErrorCodes.enum.js +17 -0
  62. package/dist/errors/enums/cloudFunctions/entities/RedeemPromoCodeForEntityErrorCodes.enum.d.ts +18 -0
  63. package/dist/errors/enums/cloudFunctions/entities/RedeemPromoCodeForEntityErrorCodes.enum.js +22 -0
  64. package/dist/errors/enums/cloudFunctions/entities/RevokeEntityMemberErrorCodes.enum.d.ts +11 -0
  65. package/dist/errors/enums/cloudFunctions/entities/RevokeEntityMemberErrorCodes.enum.js +15 -0
  66. package/dist/errors/enums/cloudFunctions/entities/RevokeEntityMemberInviteErrorCodes.enum.d.ts +13 -0
  67. package/dist/errors/enums/cloudFunctions/entities/RevokeEntityMemberInviteErrorCodes.enum.js +17 -0
  68. package/dist/errors/enums/cloudFunctions/entities/TransferEntityOwnershipErrorCodes.enum.d.ts +11 -0
  69. package/dist/errors/enums/cloudFunctions/entities/TransferEntityOwnershipErrorCodes.enum.js +15 -0
  70. package/dist/errors/enums/cloudFunctions/entities/UpdateEntityAgreementsErrorCodes.enum.d.ts +12 -0
  71. package/dist/errors/enums/cloudFunctions/entities/UpdateEntityAgreementsErrorCodes.enum.js +16 -0
  72. package/dist/errors/enums/cloudFunctions/entities/UpdateEntityMemberErrorCodes.enum.d.ts +13 -0
  73. package/dist/errors/enums/cloudFunctions/entities/UpdateEntityMemberErrorCodes.enum.js +17 -0
  74. package/dist/errors/enums/cloudFunctions/entities/UpdateEntityProfessionalLiabilityInsuranceErrorCodes.enum.d.ts +11 -0
  75. package/dist/errors/enums/cloudFunctions/entities/UpdateEntityProfessionalLiabilityInsuranceErrorCodes.enum.js +15 -0
  76. package/dist/errors/enums/cloudFunctions/entities/UpdateEntityVehicleErrorCodes.enum.d.ts +17 -0
  77. package/dist/errors/enums/cloudFunctions/entities/UpdateEntityVehicleErrorCodes.enum.js +21 -0
  78. package/dist/errors/enums/cloudFunctions/entities/index.d.ts +12 -0
  79. package/dist/errors/enums/cloudFunctions/entities/index.js +12 -0
  80. package/dist/errors/enums/cloudFunctions/googleGeocode/GoogleReverseGeocodeErrorCodes.enum.d.ts +12 -0
  81. package/dist/errors/enums/cloudFunctions/googleGeocode/GoogleReverseGeocodeErrorCodes.enum.js +16 -0
  82. package/dist/errors/enums/cloudFunctions/googleGeocode/index.d.ts +1 -0
  83. package/dist/errors/enums/cloudFunctions/googleGeocode/index.js +17 -0
  84. package/dist/errors/enums/cloudFunctions/googlePlace/GooglePlaceAutocompleteErrorCodes.enum.d.ts +10 -0
  85. package/dist/errors/enums/cloudFunctions/googlePlace/GooglePlaceAutocompleteErrorCodes.enum.js +14 -0
  86. package/dist/errors/enums/cloudFunctions/googlePlace/GooglePlaceDetailsErrorCodes.enum.d.ts +9 -0
  87. package/dist/errors/enums/cloudFunctions/googlePlace/GooglePlaceDetailsErrorCodes.enum.js +13 -0
  88. package/dist/errors/enums/cloudFunctions/googlePlace/index.d.ts +2 -0
  89. package/dist/errors/enums/cloudFunctions/googlePlace/index.js +18 -0
  90. package/dist/errors/enums/cloudFunctions/index.d.ts +4 -2
  91. package/dist/errors/enums/cloudFunctions/index.js +4 -2
  92. package/dist/errors/enums/cloudFunctions/orders/CancelConfirmedOrInProgressOrderErrorCodes.enum.d.ts +1 -1
  93. package/dist/errors/enums/cloudFunctions/orders/CancelConfirmedOrInProgressOrderErrorCodes.enum.js +1 -1
  94. package/dist/errors/enums/cloudFunctions/orders/ConfirmServiceCompletionByServiceProviderErrorCodes.enum.d.ts +7 -0
  95. package/dist/errors/enums/cloudFunctions/orders/ConfirmServiceCompletionByServiceProviderErrorCodes.enum.js +11 -0
  96. package/dist/errors/enums/cloudFunctions/orders/CustomerSubmitOrderRatingAndReviewErrorCodes.enum.d.ts +1 -1
  97. package/dist/errors/enums/cloudFunctions/orders/CustomerSubmitOrderRatingAndReviewErrorCodes.enum.js +1 -1
  98. package/dist/errors/enums/cloudFunctions/orders/GetOrCreateServiceBookingOrderWithPaymentIntentErrorCodes.enum.d.ts +6 -4
  99. package/dist/errors/enums/cloudFunctions/orders/GetOrCreateServiceBookingOrderWithPaymentIntentErrorCodes.enum.js +6 -4
  100. package/dist/errors/enums/cloudFunctions/orders/ServiceProviderUserDeleteOrderServicePhotosErrorCodes.enum.d.ts +9 -0
  101. package/dist/errors/enums/cloudFunctions/orders/ServiceProviderUserDeleteOrderServicePhotosErrorCodes.enum.js +13 -0
  102. package/dist/errors/enums/cloudFunctions/orders/ServiceProviderUserUploadOrderServicePhotosErrorCodes.enum.d.ts +13 -0
  103. package/dist/errors/enums/cloudFunctions/orders/ServiceProviderUserUploadOrderServicePhotosErrorCodes.enum.js +17 -0
  104. package/dist/errors/enums/cloudFunctions/orders/StartConfirmedOrderByServiceProviderErrorCodes.enum.d.ts +6 -0
  105. package/dist/errors/enums/cloudFunctions/orders/StartConfirmedOrderByServiceProviderErrorCodes.enum.js +10 -0
  106. package/dist/errors/enums/cloudFunctions/orders/index.d.ts +4 -4
  107. package/dist/errors/enums/cloudFunctions/orders/index.js +4 -4
  108. package/dist/errors/enums/cloudFunctions/professionals/index.d.ts +0 -1
  109. package/dist/errors/enums/cloudFunctions/professionals/index.js +0 -1
  110. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/CreateServiceProviderUserPublicDocumentErrorCodes.enum.d.ts +6 -0
  111. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/CreateServiceProviderUserPublicDocumentErrorCodes.enum.js +10 -0
  112. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/CreateServiceProviderUserSlotDocumentErrorCodes.enum.d.ts +4 -0
  113. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/CreateServiceProviderUserSlotDocumentErrorCodes.enum.js +8 -0
  114. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserErrorCodes.enum.d.ts +7 -0
  115. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserErrorCodes.enum.js +11 -0
  116. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserServiceErrorCodes.enum.d.ts +7 -0
  117. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserServiceErrorCodes.enum.js +11 -0
  118. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentErrorCodes.enum.d.ts +6 -0
  119. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentErrorCodes.enum.js +10 -0
  120. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/ProcessServiceProviderUserOnboardingBaseCompanyInfosErrorCodes.enum.d.ts +20 -0
  121. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/ProcessServiceProviderUserOnboardingBaseCompanyInfosErrorCodes.enum.js +24 -0
  122. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServiceErrorCodes.enum.d.ts +7 -0
  123. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServiceErrorCodes.enum.js +11 -0
  124. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServicesLocationErrorCodes.enum.d.ts +8 -0
  125. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserServicesLocationErrorCodes.enum.js +12 -0
  126. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserSlotDocumentErrorCodes.enum.d.ts +4 -0
  127. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/UpdateServiceProviderUserSlotDocumentErrorCodes.enum.js +8 -0
  128. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/index.d.ts +8 -0
  129. package/dist/errors/enums/cloudFunctions/serviceProviderUsers/index.js +24 -0
  130. package/dist/errors/enums/cloudFunctions/stripe/CreateStripeEntityAccountLinkErrorCodes.enum.d.ts +11 -0
  131. package/dist/errors/enums/cloudFunctions/stripe/CreateStripeEntityAccountLinkErrorCodes.enum.js +15 -0
  132. package/dist/errors/enums/cloudFunctions/stripe/index.d.ts +1 -0
  133. package/dist/errors/enums/cloudFunctions/stripe/index.js +17 -0
  134. package/dist/errors/enums/cloudFunctions/users/CreateUserDocumentErrorCodes.enum.d.ts +5 -0
  135. package/dist/errors/enums/cloudFunctions/users/CreateUserDocumentErrorCodes.enum.js +9 -0
  136. package/dist/errors/enums/cloudFunctions/users/UpdateUserIdentityErrorCodes.enum.d.ts +6 -1
  137. package/dist/errors/enums/cloudFunctions/users/UpdateUserIdentityErrorCodes.enum.js +5 -0
  138. package/dist/errors/enums/cloudFunctions/users/UpdateUserNotificationPreferencesErrorCodes.enum.d.ts +7 -0
  139. package/dist/errors/enums/cloudFunctions/users/UpdateUserNotificationPreferencesErrorCodes.enum.js +11 -0
  140. package/dist/errors/enums/cloudFunctions/users/UpdateUserProfilePictureErrorCodes.enum.d.ts +5 -0
  141. package/dist/errors/enums/cloudFunctions/users/UpdateUserProfilePictureErrorCodes.enum.js +5 -0
  142. package/dist/errors/enums/cloudFunctions/users/auth/SendUserEmailVerificationErrorCodes.enum.d.ts +1 -0
  143. package/dist/errors/enums/cloudFunctions/users/auth/SendUserEmailVerificationErrorCodes.enum.js +1 -0
  144. package/dist/errors/enums/cloudFunctions/users/index.d.ts +2 -0
  145. package/dist/errors/enums/cloudFunctions/users/index.js +2 -0
  146. package/dist/errors/enums/cloudFunctions/wallets/RequestWalletWithdrawalErrorCodes.enum.d.ts +5 -0
  147. package/dist/errors/enums/cloudFunctions/wallets/RequestWalletWithdrawalErrorCodes.enum.js +5 -0
  148. package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.d.ts +26 -20
  149. package/dist/firebase/cloudFunctions/enums/OnCallCloudFunctionsNames.enum.js +27 -22
  150. package/dist/firebase/cloudFunctions/enums/TaskCloudFunctionsNames.enum.d.ts +3 -2
  151. package/dist/firebase/cloudFunctions/enums/TaskCloudFunctionsNames.enum.js +3 -2
  152. package/dist/firebase/cloudFunctions/enums/testUsers/TestUsersEmails.enum.d.ts +3 -2
  153. package/dist/firebase/cloudFunctions/enums/testUsers/TestUsersEmails.enum.js +3 -2
  154. package/dist/firebase/cloudFunctions/enums/testUsers/TestUsersScenarios.enum.d.ts +3 -2
  155. package/dist/firebase/cloudFunctions/enums/testUsers/TestUsersScenarios.enum.js +3 -2
  156. package/dist/firebase/cloudFunctions/maps/OnCallCloudFunctionsTypeMappings.map.d.ts +97 -73
  157. package/dist/firebase/cloudFunctions/maps/testUsers/TestUsersEmailsScenariosMap.js +3 -2
  158. package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteRequestData.type.d.ts +4 -0
  159. package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteRequestData.type.js +2 -0
  160. package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteResponseData.type.d.ts +1 -0
  161. package/dist/firebase/cloudFunctions/types/entities/AcceptEntityMemberInviteResponseData.type.js +2 -0
  162. package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInvitePayload.type.d.ts +8 -0
  163. package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInvitePayload.type.js +2 -0
  164. package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInviteRequestData.type.d.ts +7 -0
  165. package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInviteRequestData.type.js +2 -0
  166. package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInviteResponseData.type.d.ts +1 -0
  167. package/dist/firebase/cloudFunctions/types/entities/CreateEntityMemberInviteResponseData.type.js +2 -0
  168. package/dist/firebase/cloudFunctions/types/entities/CreateEntityVehiclePayload.type.d.ts +11 -0
  169. package/dist/firebase/cloudFunctions/types/entities/CreateEntityVehiclePayload.type.js +2 -0
  170. package/dist/firebase/cloudFunctions/types/entities/CreateEntityVehicleRequestData.type.d.ts +3 -0
  171. package/dist/firebase/cloudFunctions/types/entities/CreateEntityVehicleRequestData.type.js +2 -0
  172. package/dist/firebase/cloudFunctions/types/entities/CreateEntityVehicleResponseData.type.d.ts +3 -0
  173. package/dist/firebase/cloudFunctions/types/entities/CreateEntityVehicleResponseData.type.js +2 -0
  174. package/dist/firebase/cloudFunctions/types/entities/CreateNewEntityPayload.type.d.ts +4 -0
  175. package/dist/firebase/cloudFunctions/types/entities/DeleteEntityVehiclePayload.type.d.ts +4 -0
  176. package/dist/firebase/cloudFunctions/types/entities/DeleteEntityVehiclePayload.type.js +2 -0
  177. package/dist/firebase/cloudFunctions/types/entities/DeleteEntityVehicleRequestData.type.d.ts +3 -0
  178. package/dist/firebase/cloudFunctions/types/entities/DeleteEntityVehicleRequestData.type.js +2 -0
  179. package/dist/firebase/cloudFunctions/types/entities/DeleteEntityVehicleResponseData.type.d.ts +1 -0
  180. package/dist/firebase/cloudFunctions/types/entities/DeleteEntityVehicleResponseData.type.js +2 -0
  181. package/dist/firebase/cloudFunctions/types/entities/JoinEntityRequestData.type.d.ts +4 -0
  182. package/dist/firebase/cloudFunctions/types/entities/JoinEntityRequestData.type.js +2 -0
  183. package/dist/firebase/cloudFunctions/types/entities/JoinEntityResponseData.type.d.ts +3 -0
  184. package/dist/firebase/cloudFunctions/types/entities/JoinEntityResponseData.type.js +2 -0
  185. package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityRequestData.type.d.ts +5 -0
  186. package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityRequestData.type.js +2 -0
  187. package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityResponseData.type.d.ts +5 -0
  188. package/dist/firebase/cloudFunctions/types/entities/RedeemPromoCodeForEntityResponseData.type.js +2 -0
  189. package/dist/firebase/cloudFunctions/types/entities/RevokeEntityMemberInviteRequestData.type.d.ts +5 -0
  190. package/dist/firebase/cloudFunctions/types/entities/RevokeEntityMemberInviteRequestData.type.js +2 -0
  191. package/dist/firebase/cloudFunctions/types/entities/RevokeEntityMemberInviteResponseData.type.d.ts +1 -0
  192. package/dist/firebase/cloudFunctions/types/entities/RevokeEntityMemberInviteResponseData.type.js +2 -0
  193. package/dist/firebase/cloudFunctions/types/entities/RevokeEntityMemberRequestData.type.d.ts +5 -0
  194. package/dist/firebase/cloudFunctions/types/entities/RevokeEntityMemberRequestData.type.js +2 -0
  195. package/dist/firebase/cloudFunctions/types/entities/RevokeEntityMemberResponseData.type.d.ts +1 -0
  196. package/dist/firebase/cloudFunctions/types/entities/RevokeEntityMemberResponseData.type.js +2 -0
  197. package/dist/firebase/cloudFunctions/types/entities/TransferEntityOwnershipRequestData.type.d.ts +5 -0
  198. package/dist/firebase/cloudFunctions/types/entities/TransferEntityOwnershipRequestData.type.js +2 -0
  199. package/dist/firebase/cloudFunctions/types/entities/TransferEntityOwnershipResponseData.type.d.ts +1 -0
  200. package/dist/firebase/cloudFunctions/types/entities/TransferEntityOwnershipResponseData.type.js +2 -0
  201. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsPayload.type.d.ts +18 -0
  202. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsPayload.type.js +2 -0
  203. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsRequestData.type.d.ts +3 -0
  204. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsRequestData.type.js +2 -0
  205. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsResponseData.type.d.ts +3 -0
  206. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityAgreementsResponseData.type.js +2 -0
  207. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityMemberPayload.type.d.ts +6 -0
  208. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityMemberPayload.type.js +2 -0
  209. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityMemberRequestData.type.d.ts +3 -0
  210. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityMemberRequestData.type.js +2 -0
  211. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityMemberResponseData.type.d.ts +1 -0
  212. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityMemberResponseData.type.js +2 -0
  213. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityProfessionalLiabilityInsuranceRequestData.type.d.ts +5 -0
  214. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityProfessionalLiabilityInsuranceRequestData.type.js +2 -0
  215. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityProfessionalLiabilityInsuranceResponseData.type.d.ts +1 -0
  216. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityProfessionalLiabilityInsuranceResponseData.type.js +2 -0
  217. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityVehiclePayload.type.d.ts +12 -0
  218. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityVehiclePayload.type.js +2 -0
  219. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityVehicleRequestData.type.d.ts +3 -0
  220. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityVehicleRequestData.type.js +2 -0
  221. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityVehicleResponseData.type.d.ts +3 -0
  222. package/dist/firebase/cloudFunctions/types/entities/UpdateEntityVehicleResponseData.type.js +2 -0
  223. package/dist/firebase/cloudFunctions/types/entities/index.d.ts +29 -0
  224. package/dist/firebase/cloudFunctions/types/entities/index.js +29 -0
  225. package/dist/firebase/cloudFunctions/types/googleGeocode/GoogleReverseGeocodeResponseData.type.d.ts +4 -2
  226. package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/DoctoCarPlaceAutocompleteSuggestion.type.d.ts +4 -0
  227. package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/DoctoCarPlaceAutocompleteSuggestion.type.js +2 -0
  228. package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/GooglePlaceAutocompleteApiResponseData.type.d.ts +10 -0
  229. package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/GooglePlaceAutocompleteApiResponseData.type.js +2 -0
  230. package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/GooglePlaceAutocompleteResponseData.type.d.ts +2 -2
  231. package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/index.d.ts +2 -1
  232. package/dist/firebase/cloudFunctions/types/googlePlace/autocomplete/index.js +2 -1
  233. package/dist/firebase/cloudFunctions/types/googlePlace/details/CloudFunctionGooglePlaceDetailsResponseData.type.d.ts +4 -2
  234. package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderRequestData.type.d.ts +4 -0
  235. package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderRequestData.type.js +2 -0
  236. package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderResponseData.type.d.ts +1 -0
  237. package/dist/firebase/cloudFunctions/types/orders/ConfirmServiceCompletionByServiceProviderResponseData.type.js +2 -0
  238. package/dist/firebase/cloudFunctions/types/orders/GetOrCreateServiceBookingOrderWithPaymentIntentRequestData.type.d.ts +4 -4
  239. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityRequestData.type.d.ts +5 -0
  240. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityRequestData.type.js +2 -0
  241. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityResponseData.type.d.ts +1 -0
  242. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeForEntityResponseData.type.js +2 -0
  243. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeRequestData.type.d.ts +5 -0
  244. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeRequestData.type.js +2 -0
  245. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeResponseData.type.d.ts +9 -0
  246. package/dist/firebase/cloudFunctions/types/orders/RedeemPromoCodeResponseData.type.js +2 -0
  247. package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserDeleteOrderServicePhotosRequestData.type.d.ts +8 -0
  248. package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserDeleteOrderServicePhotosRequestData.type.js +2 -0
  249. package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserDeleteOrderServicePhotosResponseData.type.d.ts +1 -0
  250. package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserDeleteOrderServicePhotosResponseData.type.js +2 -0
  251. package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserUploadOrderServicePhotosRequestData.type.d.ts +8 -0
  252. package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserUploadOrderServicePhotosRequestData.type.js +2 -0
  253. package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserUploadOrderServicePhotosResponseData.type.d.ts +1 -0
  254. package/dist/firebase/cloudFunctions/types/orders/ServiceProviderUserUploadOrderServicePhotosResponseData.type.js +2 -0
  255. package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderRequestData.type.d.ts +4 -0
  256. package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderRequestData.type.js +2 -0
  257. package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderResponseData.type.d.ts +1 -0
  258. package/dist/firebase/cloudFunctions/types/orders/StartConfirmedOrderByServiceProviderResponseData.type.js +2 -0
  259. package/dist/firebase/cloudFunctions/types/orders/index.d.ts +8 -10
  260. package/dist/firebase/cloudFunctions/types/orders/index.js +8 -10
  261. package/dist/firebase/cloudFunctions/types/stripe/CreateStripeEntityAccountLinkRequestData.type.d.ts +6 -0
  262. package/dist/firebase/cloudFunctions/types/stripe/CreateStripeEntityAccountLinkRequestData.type.js +2 -0
  263. package/dist/firebase/cloudFunctions/types/stripe/CreateStripeEntityAccountLinkResponseData.type.d.ts +8 -0
  264. package/dist/firebase/cloudFunctions/types/stripe/CreateStripeEntityAccountLinkResponseData.type.js +2 -0
  265. package/dist/firebase/cloudFunctions/types/stripe/index.d.ts +2 -2
  266. package/dist/firebase/cloudFunctions/types/stripe/index.js +2 -2
  267. package/dist/firebase/cloudFunctions/types/users/CreateUserDocumentRequestData.type.d.ts +4 -1
  268. package/dist/firebase/cloudFunctions/types/users/UpdateUserIdentityRequestData.type.d.ts +2 -0
  269. package/dist/firebase/cloudFunctions/types/users/UpdateUserNotificationPreferencesRequestData.type.d.ts +6 -0
  270. package/dist/firebase/cloudFunctions/types/users/UpdateUserNotificationPreferencesRequestData.type.js +2 -0
  271. package/dist/firebase/cloudFunctions/types/users/UpdateUserNotificationPreferencesResponseData.type.d.ts +1 -0
  272. package/dist/firebase/cloudFunctions/types/users/UpdateUserNotificationPreferencesResponseData.type.js +2 -0
  273. package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingRequestData.type.d.ts +15 -0
  274. package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingRequestData.type.js +2 -0
  275. package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingResponseData.type.d.ts +1 -0
  276. package/dist/firebase/cloudFunctions/types/users/customers/ProcessCustomerUserOnboardingResponseData.type.js +2 -0
  277. package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingPayload.type.d.ts +14 -0
  278. package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingPayload.type.js +2 -0
  279. package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingRequestData.type.d.ts +3 -0
  280. package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingRequestData.type.js +2 -0
  281. package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingResponseData.type.d.ts +1 -0
  282. package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/ProcessCustomerUserOnboardingResponseData.type.js +2 -0
  283. package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/index.d.ts +3 -0
  284. package/dist/firebase/cloudFunctions/types/users/customers/processCustomerUserOnboarding/index.js +19 -0
  285. package/dist/firebase/cloudFunctions/types/users/fcm/ClearUserFcmBadgeRequestData.type.d.ts +3 -0
  286. package/dist/firebase/cloudFunctions/types/users/fcm/ClearUserFcmBadgeRequestData.type.js +2 -0
  287. package/dist/firebase/cloudFunctions/types/users/fcm/ClearUserFcmBadgeResponseData.type.d.ts +1 -0
  288. package/dist/firebase/cloudFunctions/types/users/fcm/ClearUserFcmBadgeResponseData.type.js +2 -0
  289. package/dist/firebase/cloudFunctions/types/users/fcm/index.d.ts +2 -0
  290. package/dist/firebase/cloudFunctions/types/users/fcm/index.js +2 -0
  291. package/dist/firebase/cloudFunctions/types/users/index.d.ts +3 -4
  292. package/dist/firebase/cloudFunctions/types/users/index.js +3 -4
  293. package/dist/firebase/cloudFunctions/types/users/professionals/index.d.ts +0 -6
  294. package/dist/firebase/cloudFunctions/types/users/professionals/index.js +0 -6
  295. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/CreateServiceProviderUserPublicDocumentRequestData.type.d.ts +2 -0
  296. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/CreateServiceProviderUserPublicDocumentRequestData.type.js +2 -0
  297. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/CreateServiceProviderUserPublicDocumentResponseData.type.d.ts +1 -0
  298. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/CreateServiceProviderUserPublicDocumentResponseData.type.js +2 -0
  299. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserServiceRequestData.type.d.ts +5 -0
  300. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserServiceRequestData.type.js +2 -0
  301. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserServiceResponseData.type.d.ts +1 -0
  302. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserServiceResponseData.type.js +2 -0
  303. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentRequestData.type.d.ts +4 -0
  304. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentRequestData.type.js +2 -0
  305. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentResponseData.type.d.ts +1 -0
  306. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/DeleteServiceProviderUserSlotDocumentResponseData.type.js +2 -0
  307. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServiceRequestData.type.d.ts +5 -0
  308. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServiceRequestData.type.js +2 -0
  309. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServiceResponseData.type.d.ts +1 -0
  310. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServiceResponseData.type.js +2 -0
  311. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServicesLocationRequestData.type.d.ts +5 -0
  312. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServicesLocationRequestData.type.js +2 -0
  313. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServicesLocationResponseData.type.d.ts +1 -0
  314. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/UpdateServiceProviderUserServicesLocationResponseData.type.js +2 -0
  315. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/index.d.ts +11 -0
  316. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/index.js +27 -0
  317. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/CreateServiceProviderUserSlotDocumentRequestData.type.d.ts +5 -0
  318. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/CreateServiceProviderUserSlotDocumentRequestData.type.js +2 -0
  319. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/CreateServiceProviderUserSlotDocumentResponseData.type.d.ts +3 -0
  320. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/CreateServiceProviderUserSlotDocumentResponseData.type.js +2 -0
  321. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/RequestOneTimeSlot.type.d.ts +8 -0
  322. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/RequestOneTimeSlot.type.js +2 -0
  323. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/RequestRecurringSlot.type.d.ts +6 -0
  324. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/RequestRecurringSlot.type.js +2 -0
  325. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/RequestSlotDocument.type.d.ts +4 -0
  326. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/RequestSlotDocument.type.js +2 -0
  327. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/RequestTimeOffSlot.type.d.ts +8 -0
  328. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/RequestTimeOffSlot.type.js +2 -0
  329. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/UpdateServiceProviderUserSlotDocumentRequestData.type.d.ts +6 -0
  330. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/UpdateServiceProviderUserSlotDocumentRequestData.type.js +2 -0
  331. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/UpdateServiceProviderUserSlotDocumentResponseData.type.d.ts +1 -0
  332. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/UpdateServiceProviderUserSlotDocumentResponseData.type.js +2 -0
  333. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/index.d.ts +8 -0
  334. package/dist/firebase/cloudFunctions/types/users/serviceProviderUsers/slots/index.js +24 -0
  335. package/dist/firebase/cloudFunctions/types/wallet/ApplyTestWalletLedgerEntryRequestData.type.d.ts +1 -0
  336. package/dist/firebase/cloudFunctions/types/wallet/RequestWalletWithdrawalRequestData.type.d.ts +1 -0
  337. package/dist/firebase/constants/entities/index.d.ts +1 -0
  338. package/dist/firebase/constants/entities/index.js +17 -0
  339. package/dist/firebase/constants/entities/testEntityIdPrefix.constant.d.ts +1 -0
  340. package/dist/firebase/constants/entities/testEntityIdPrefix.constant.js +4 -0
  341. package/dist/firebase/constants/index.d.ts +1 -0
  342. package/dist/firebase/constants/index.js +1 -0
  343. package/dist/firebase/firestore/constants/credits/firestoreCreditsSchemaVersion.enum.d.ts +1 -0
  344. package/dist/firebase/firestore/constants/credits/firestoreCreditsSchemaVersion.enum.js +4 -0
  345. package/dist/firebase/firestore/constants/credits/index.d.ts +1 -0
  346. package/dist/firebase/firestore/constants/credits/index.js +17 -0
  347. package/dist/firebase/firestore/constants/creditsLedgerEntry/firestoreCreditsLedgerEntrySchemaVersion.enum.d.ts +1 -0
  348. package/dist/firebase/firestore/constants/creditsLedgerEntry/firestoreCreditsLedgerEntrySchemaVersion.enum.js +4 -0
  349. package/dist/firebase/firestore/constants/creditsLedgerEntry/index.d.ts +1 -0
  350. package/dist/firebase/firestore/constants/creditsLedgerEntry/index.js +17 -0
  351. package/dist/firebase/firestore/constants/index.d.ts +9 -6
  352. package/dist/firebase/firestore/constants/index.js +9 -6
  353. package/dist/firebase/firestore/constants/maximumEntityMembers.constant.d.ts +1 -0
  354. package/dist/firebase/firestore/constants/maximumEntityMembers.constant.js +4 -0
  355. package/dist/firebase/firestore/constants/maximumEntityVehicles.constant.d.ts +1 -0
  356. package/dist/firebase/firestore/constants/maximumEntityVehicles.constant.js +4 -0
  357. package/dist/firebase/firestore/constants/orders/index.d.ts +2 -0
  358. package/dist/firebase/firestore/constants/orders/index.js +18 -0
  359. package/dist/firebase/firestore/constants/orders/orderIdPrefix.constant.d.ts +1 -0
  360. package/dist/firebase/firestore/constants/orders/orderIdPrefix.constant.js +4 -0
  361. package/dist/firebase/firestore/constants/orders/productionOrderIdPrefix.constant.d.ts +1 -0
  362. package/dist/firebase/firestore/constants/orders/productionOrderIdPrefix.constant.js +4 -0
  363. package/dist/firebase/firestore/constants/orders/sandboxOrderIdPrefix.constant.d.ts +1 -0
  364. package/dist/firebase/firestore/constants/orders/sandboxOrderIdPrefix.constant.js +4 -0
  365. package/dist/firebase/firestore/constants/platformBalances/firestorePlatformBalancesSchemaVersion.enum.d.ts +1 -0
  366. package/dist/firebase/firestore/constants/platformBalances/firestorePlatformBalancesSchemaVersion.enum.js +4 -0
  367. package/dist/firebase/firestore/constants/platformBalances/index.d.ts +1 -0
  368. package/dist/firebase/firestore/constants/platformBalances/index.js +17 -0
  369. package/dist/firebase/firestore/constants/platformBalancesLedgerEntry/firestorePlatformBalancesLedgerEntrySchemaVersion.enum.d.ts +1 -0
  370. package/dist/firebase/firestore/constants/platformBalancesLedgerEntry/firestorePlatformBalancesLedgerEntrySchemaVersion.enum.js +4 -0
  371. package/dist/firebase/firestore/constants/platformBalancesLedgerEntry/index.d.ts +1 -0
  372. package/dist/firebase/firestore/constants/platformBalancesLedgerEntry/index.js +17 -0
  373. package/dist/firebase/firestore/constants/providerLocationServiceMaxRadiusInKM.constant.d.ts +1 -0
  374. package/dist/firebase/firestore/constants/providerLocationServiceMaxRadiusInKM.constant.js +4 -0
  375. package/dist/firebase/firestore/constants/providerLocationServiceMinRadiusInKM.constant.d.ts +1 -0
  376. package/dist/firebase/firestore/constants/providerLocationServiceMinRadiusInKM.constant.js +4 -0
  377. package/dist/firebase/firestore/constants/providerServiceMinimumDurationIncrementInMinutes.constant.d.ts +1 -0
  378. package/dist/firebase/firestore/constants/providerServiceMinimumDurationIncrementInMinutes.constant.js +4 -0
  379. package/dist/firebase/firestore/constants/providerServiceMinimumPriceIncrementInCents.constant.d.ts +1 -0
  380. package/dist/firebase/firestore/constants/providerServiceMinimumPriceIncrementInCents.constant.js +4 -0
  381. package/dist/firebase/firestore/constants/sandboxDocumentIdPrefix.constant.d.ts +1 -0
  382. package/dist/firebase/firestore/constants/sandboxDocumentIdPrefix.constant.js +4 -0
  383. package/dist/firebase/firestore/enums/FirestoreCollections.enum.d.ts +30 -23
  384. package/dist/firebase/firestore/enums/FirestoreCollections.enum.js +30 -23
  385. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryContextReferenceType.enum.d.ts +6 -0
  386. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryContextReferenceType.enum.js +10 -0
  387. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryReason.enum.d.ts +10 -0
  388. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryReason.enum.js +14 -0
  389. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryType.enum.d.ts +4 -0
  390. package/dist/firebase/firestore/enums/creditsLedgerEntry/CreditsLedgerEntryType.enum.js +8 -0
  391. package/dist/firebase/firestore/enums/creditsLedgerEntry/index.d.ts +3 -0
  392. package/dist/firebase/firestore/enums/creditsLedgerEntry/index.js +19 -0
  393. package/dist/firebase/firestore/enums/customers/CustomerUserNonComplianceReason.enum.d.ts +5 -0
  394. package/dist/firebase/firestore/enums/customers/CustomerUserNonComplianceReason.enum.js +9 -0
  395. package/dist/firebase/firestore/enums/customers/index.d.ts +1 -0
  396. package/dist/firebase/firestore/enums/customers/index.js +17 -0
  397. package/dist/firebase/firestore/enums/entities/EntityComplianceStatus.enum.d.ts +4 -0
  398. package/dist/firebase/firestore/enums/entities/EntityComplianceStatus.enum.js +8 -0
  399. package/dist/firebase/firestore/enums/entities/EntityCustomerNonComplianceReason.enum.d.ts +4 -0
  400. package/dist/firebase/firestore/enums/entities/EntityCustomerNonComplianceReason.enum.js +8 -0
  401. package/dist/firebase/firestore/enums/entities/EntityServiceProviderComplianceStatus.enum.d.ts +2 -3
  402. package/dist/firebase/firestore/enums/entities/EntityServiceProviderComplianceStatus.enum.js +2 -3
  403. package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonBookableReason.enum.d.ts +6 -1
  404. package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonBookableReason.enum.js +6 -1
  405. package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonComplianceReason.enum.d.ts +17 -0
  406. package/dist/firebase/firestore/enums/entities/EntityServiceProviderNonComplianceReason.enum.js +21 -0
  407. package/dist/firebase/firestore/enums/entities/index.d.ts +3 -2
  408. package/dist/firebase/firestore/enums/entities/index.js +3 -2
  409. package/dist/firebase/firestore/enums/entityMembers/EntityMemberInviteStatus.enum.d.ts +6 -0
  410. package/dist/firebase/firestore/enums/entityMembers/EntityMemberInviteStatus.enum.js +10 -0
  411. package/dist/firebase/firestore/enums/entityMembers/EntityMemberStatus.enum.d.ts +1 -2
  412. package/dist/firebase/firestore/enums/entityMembers/EntityMemberStatus.enum.js +1 -2
  413. package/dist/firebase/firestore/enums/entityMembers/index.d.ts +1 -0
  414. package/dist/firebase/firestore/enums/entityMembers/index.js +1 -0
  415. package/dist/firebase/firestore/enums/index.d.ts +6 -2
  416. package/dist/firebase/firestore/enums/index.js +6 -2
  417. package/dist/firebase/firestore/enums/legal/TermsAndPolicyStatus.enum.d.ts +5 -0
  418. package/dist/firebase/firestore/enums/legal/TermsAndPolicyStatus.enum.js +9 -0
  419. package/dist/firebase/firestore/enums/legal/index.d.ts +1 -0
  420. package/dist/firebase/firestore/enums/legal/index.js +17 -0
  421. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventChannelDeliveryRecordStatus.enum.d.ts +5 -0
  422. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventChannelDeliveryRecordStatus.enum.js +9 -0
  423. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryStateStatus.enum.d.ts +5 -0
  424. package/dist/firebase/firestore/enums/notificationEvent/NotificationEventDeliveryStateStatus.enum.js +9 -0
  425. package/dist/firebase/firestore/enums/notificationEvent/index.d.ts +1 -0
  426. package/dist/firebase/firestore/enums/notificationEvent/index.js +17 -0
  427. package/dist/firebase/firestore/enums/orders/OrderActorRole.enum.d.ts +1 -1
  428. package/dist/firebase/firestore/enums/orders/OrderActorRole.enum.js +1 -1
  429. package/dist/firebase/firestore/enums/orders/OrderCancellationByTypes.enum.d.ts +1 -1
  430. package/dist/firebase/firestore/enums/orders/OrderCancellationByTypes.enum.js +1 -1
  431. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundReasonTypes.enum.d.ts +6 -0
  432. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundReasonTypes.enum.js +10 -0
  433. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundSourceTypes.enum.d.ts +4 -0
  434. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundSourceTypes.enum.js +8 -0
  435. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundStatusTypes.enum.d.ts +7 -0
  436. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundStatusTypes.enum.js +11 -0
  437. package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoContext.enum.d.ts +4 -0
  438. package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoContext.enum.js +8 -0
  439. package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoMoment.enum.d.ts +4 -0
  440. package/dist/firebase/firestore/enums/orders/OrderServiceDetailsPhotoMoment.enum.js +8 -0
  441. package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.d.ts +9 -0
  442. package/dist/firebase/firestore/enums/orders/OrderServiceProviderCancellationReason.enum.js +13 -0
  443. package/dist/firebase/firestore/enums/orders/OrderUpdatedByType.enum.d.ts +4 -0
  444. package/dist/firebase/firestore/enums/orders/OrderUpdatedByType.enum.js +8 -0
  445. package/dist/firebase/firestore/enums/orders/dispute/OrderDisputeOpenedBy.enum.d.ts +1 -1
  446. package/dist/firebase/firestore/enums/orders/dispute/OrderDisputeOpenedBy.enum.js +1 -1
  447. package/dist/firebase/firestore/enums/orders/index.d.ts +4 -2
  448. package/dist/firebase/firestore/enums/orders/index.js +4 -2
  449. package/dist/firebase/firestore/enums/orders/snapshots/VehicleSnapshotForOrderOwnerType.enum.d.ts +4 -0
  450. package/dist/firebase/firestore/enums/orders/snapshots/VehicleSnapshotForOrderOwnerType.enum.js +8 -0
  451. package/dist/firebase/firestore/enums/orders/snapshots/index.d.ts +1 -0
  452. package/dist/firebase/firestore/enums/orders/snapshots/index.js +17 -0
  453. package/dist/firebase/firestore/enums/ordersIssues/CustomerOrderIssueReason.enum.d.ts +2 -2
  454. package/dist/firebase/firestore/enums/ordersIssues/CustomerOrderIssueReason.enum.js +2 -2
  455. package/dist/firebase/firestore/enums/ordersIssues/ServiceProviderOrderIssueReason.enum.d.ts +10 -0
  456. package/dist/firebase/firestore/enums/ordersIssues/ServiceProviderOrderIssueReason.enum.js +14 -0
  457. package/dist/firebase/firestore/enums/ordersIssues/index.d.ts +1 -1
  458. package/dist/firebase/firestore/enums/ordersIssues/index.js +1 -1
  459. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentReasonTypes.enum.d.ts +6 -0
  460. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentReasonTypes.enum.js +10 -0
  461. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentStatusTypes.enum.d.ts +7 -0
  462. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentStatusTypes.enum.js +11 -0
  463. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentStepStatusTypes.enum.d.ts +7 -0
  464. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentStepStatusTypes.enum.js +11 -0
  465. package/dist/firebase/firestore/enums/ordersRefundIntents/index.d.ts +3 -0
  466. package/dist/firebase/firestore/enums/ordersRefundIntents/index.js +19 -0
  467. package/dist/firebase/firestore/enums/platformBalancesLedgerEntry/PlatformBalancesLedgerEntryContextReferenceType.enum.d.ts +6 -0
  468. package/dist/firebase/firestore/enums/platformBalancesLedgerEntry/PlatformBalancesLedgerEntryContextReferenceType.enum.js +10 -0
  469. package/dist/firebase/firestore/enums/platformBalancesLedgerEntry/PlatformBalancesLedgerEntryReason.enum.d.ts +10 -0
  470. package/dist/firebase/firestore/enums/platformBalancesLedgerEntry/PlatformBalancesLedgerEntryReason.enum.js +14 -0
  471. package/dist/firebase/firestore/enums/platformBalancesLedgerEntry/PlatformBalancesLedgerEntryType.enum.d.ts +4 -0
  472. package/dist/firebase/firestore/enums/platformBalancesLedgerEntry/PlatformBalancesLedgerEntryType.enum.js +8 -0
  473. package/dist/firebase/firestore/enums/platformBalancesLedgerEntry/index.d.ts +3 -0
  474. package/dist/firebase/firestore/enums/platformBalancesLedgerEntry/index.js +19 -0
  475. package/dist/firebase/firestore/enums/promoCode/PromoCodeDiscountType.enum.d.ts +0 -1
  476. package/dist/firebase/firestore/enums/promoCode/PromoCodeDiscountType.enum.js +1 -1
  477. package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserComplianceStatus.enum.d.ts +4 -0
  478. package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserComplianceStatus.enum.js +8 -0
  479. package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonBookableReason.enum.d.ts +6 -0
  480. package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonBookableReason.enum.js +10 -0
  481. package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonComplianceReason.enum.d.ts +6 -0
  482. package/dist/firebase/firestore/enums/serviceProviderUsers/ServiceProviderUserNonComplianceReason.enum.js +10 -0
  483. package/dist/firebase/firestore/enums/serviceProviderUsers/index.d.ts +1 -0
  484. package/dist/firebase/firestore/enums/serviceProviderUsers/index.js +17 -0
  485. package/dist/firebase/firestore/enums/services/ServicesCategoryTypes.enum.d.ts +3 -0
  486. package/dist/firebase/firestore/enums/services/ServicesCategoryTypes.enum.js +7 -0
  487. package/dist/firebase/firestore/enums/services/ServicesTypes.enum.d.ts +10 -0
  488. package/dist/firebase/firestore/enums/services/ServicesTypes.enum.js +16 -0
  489. package/dist/firebase/firestore/enums/services/index.d.ts +2 -2
  490. package/dist/firebase/firestore/enums/services/index.js +2 -2
  491. package/dist/firebase/firestore/enums/users/UserComplianceStatus.enum.d.ts +4 -0
  492. package/dist/firebase/firestore/enums/users/UserComplianceStatus.enum.js +8 -0
  493. package/dist/firebase/firestore/enums/users/index.d.ts +1 -1
  494. package/dist/firebase/firestore/enums/users/index.js +1 -1
  495. package/dist/firebase/firestore/enums/users/professionals/ProfessionalBadgesTypes.enum.d.ts +1 -1
  496. package/dist/firebase/firestore/enums/users/professionals/ProfessionalBadgesTypes.enum.js +1 -1
  497. package/dist/firebase/firestore/enums/users/professionals/ServiceProviderBadgesTypes.enum.d.ts +3 -0
  498. package/dist/firebase/firestore/enums/users/professionals/ServiceProviderBadgesTypes.enum.js +7 -0
  499. package/dist/firebase/firestore/enums/users/professionals/index.d.ts +1 -3
  500. package/dist/firebase/firestore/enums/users/professionals/index.js +1 -3
  501. package/dist/firebase/firestore/maps/FirestoreCollectionDocumentTypeMap.d.ts +11 -4
  502. package/dist/firebase/firestore/maps/FirestoreCollectionDocumentTypeMap.js +0 -4
  503. package/dist/firebase/firestore/types/agreements/FirestoreUserAgreements.type.d.ts +1 -3
  504. package/dist/firebase/firestore/types/bookedSlot/FirestoreBookedSlotDocument.type.d.ts +2 -2
  505. package/dist/firebase/firestore/types/company/index.d.ts +0 -5
  506. package/dist/firebase/firestore/types/company/index.js +0 -5
  507. package/dist/firebase/firestore/types/configs/CountryServicesPublicConfig.type.d.ts +2 -2
  508. package/dist/firebase/firestore/types/configs/FirestoreNotificationEventsPublicConfigDocument.type.d.ts +2 -1
  509. package/dist/firebase/firestore/types/configs/FirestoreOrdersPublicConfigDocument.type.d.ts +3 -3
  510. package/dist/firebase/firestore/types/configs/FirestorePlatformPublicConfigDocument.type.d.ts +5 -17
  511. package/dist/firebase/firestore/types/configs/FirestoreServicesPublicConfig.type.d.ts +4 -5
  512. package/dist/firebase/firestore/types/configs/ServicesPublicConfigByVehicleType.type.d.ts +2 -6
  513. package/dist/firebase/firestore/types/configs/ServicesPublicConfigPhotosRequirements.type.d.ts +2 -2
  514. package/dist/firebase/firestore/types/configs/ServicesPublicConfigVehiclePricingAndDuration.type.d.ts +6 -0
  515. package/dist/firebase/firestore/types/configs/ServicesPublicConfigVehiclePricingAndDuration.type.js +2 -0
  516. package/dist/firebase/firestore/types/configs/index.d.ts +1 -0
  517. package/dist/firebase/firestore/types/configs/index.js +1 -0
  518. package/dist/firebase/firestore/types/credits/CheckoutCreditsSummary.type.d.ts +6 -0
  519. package/dist/firebase/firestore/types/credits/CheckoutCreditsSummary.type.js +2 -0
  520. package/dist/firebase/firestore/types/credits/FirestoreCreditsDocument.type.d.ts +17 -0
  521. package/dist/firebase/firestore/types/credits/FirestoreCreditsDocument.type.js +2 -0
  522. package/dist/firebase/firestore/types/credits/index.d.ts +1 -0
  523. package/dist/firebase/firestore/types/credits/index.js +17 -0
  524. package/dist/firebase/firestore/types/creditsLedgerEntryDocument/FirestoreCreditsLedgerEntryDocument.type.d.ts +21 -0
  525. package/dist/firebase/firestore/types/creditsLedgerEntryDocument/FirestoreCreditsLedgerEntryDocument.type.js +2 -0
  526. package/dist/firebase/firestore/types/creditsLedgerEntryDocument/index.d.ts +1 -0
  527. package/dist/firebase/firestore/types/creditsLedgerEntryDocument/index.js +17 -0
  528. package/dist/firebase/firestore/types/entities/EntityAgreements.type.d.ts +10 -0
  529. package/dist/firebase/firestore/types/entities/EntityAgreements.type.js +2 -0
  530. package/dist/firebase/firestore/types/entities/EntityRegistration.enum.d.ts +6 -0
  531. package/dist/firebase/firestore/types/entities/EntityRegistration.enum.js +2 -0
  532. package/dist/firebase/firestore/types/entities/EntityVatDetails.type.d.ts +1 -1
  533. package/dist/firebase/firestore/types/entities/FirestoreEntityDocument.type.d.ts +29 -34
  534. package/dist/firebase/firestore/types/entities/FirestoreEntityMetrics.type.d.ts +10 -0
  535. package/dist/firebase/firestore/types/entities/FirestoreEntityMetrics.type.js +2 -0
  536. package/dist/firebase/firestore/types/entities/index.d.ts +2 -0
  537. package/dist/firebase/firestore/types/entities/index.js +2 -0
  538. package/dist/firebase/firestore/types/entityMemberInvites/EntityMemberInviteRole.type.d.ts +2 -0
  539. package/dist/firebase/firestore/types/entityMemberInvites/EntityMemberInviteRole.type.js +2 -0
  540. package/dist/firebase/firestore/types/entityMemberInvites/FirestoreEntityMemberInviteDocument.type.d.ts +22 -0
  541. package/dist/firebase/firestore/types/entityMemberInvites/FirestoreEntityMemberInviteDocument.type.js +2 -0
  542. package/dist/firebase/firestore/types/entityMemberInvites/index.d.ts +2 -0
  543. package/dist/firebase/firestore/types/entityMemberInvites/index.js +18 -0
  544. package/dist/firebase/firestore/types/entityMembers/FirestoreEntityMemberDocument.type.d.ts +16 -0
  545. package/dist/firebase/firestore/types/index.d.ts +6 -2
  546. package/dist/firebase/firestore/types/index.js +6 -2
  547. package/dist/firebase/firestore/types/legal/TermsAndPolicy.type.d.ts +2 -0
  548. package/dist/firebase/firestore/types/location/DoctoCarLocation.type.d.ts +7 -0
  549. package/dist/firebase/firestore/types/marketplaceFinancialReports/FirestoreMarketplaceFinancialReportsDocument.type.d.ts +3 -3
  550. package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventChannelDeliveryRecordDocument.type.d.ts +10 -0
  551. package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventChannelDeliveryRecordDocument.type.js +2 -0
  552. package/dist/firebase/firestore/types/notificationEvent/FirestoreNotificationEventDeliveryStateDocument.type.d.ts +2 -1
  553. package/dist/firebase/firestore/types/notificationEvent/index.d.ts +1 -1
  554. package/dist/firebase/firestore/types/notificationEvent/index.js +1 -1
  555. package/dist/firebase/firestore/types/order/FirestoreBookedSlotCancellationDetails.type.d.ts +6 -0
  556. package/dist/firebase/firestore/types/order/FirestoreBookedSlotCancellationDetails.type.js +2 -0
  557. package/dist/firebase/firestore/types/order/FirestoreOrderCancellationReason.type.d.ts +2 -2
  558. package/dist/firebase/firestore/types/order/FirestoreOrderDocument.type.d.ts +47 -108
  559. package/dist/firebase/firestore/types/order/FirestoreOrderPaymentBreakdown.type.d.ts +42 -0
  560. package/dist/firebase/firestore/types/order/FirestoreOrderPaymentBreakdown.type.js +2 -0
  561. package/dist/firebase/firestore/types/order/FirestoreOrderPricingDetails.type.d.ts +48 -0
  562. package/dist/firebase/firestore/types/order/FirestoreOrderPricingDetails.type.js +2 -0
  563. package/dist/firebase/firestore/types/order/FirestoreOrderProfessionalServiceDetails.type.d.ts +2 -2
  564. package/dist/firebase/firestore/types/order/FirestoreOrderServiceDetails.type.d.ts +10 -0
  565. package/dist/firebase/firestore/types/order/FirestoreOrderServiceDetails.type.js +2 -0
  566. package/dist/firebase/firestore/types/order/OrderExternalPaymentRefund.type.d.ts +13 -0
  567. package/dist/firebase/firestore/types/order/OrderExternalPaymentRefund.type.js +2 -0
  568. package/dist/firebase/firestore/types/order/OrderOperationalBooleanOps.type.d.ts +3 -3
  569. package/dist/firebase/firestore/types/order/OrderPaymentBreakdownRefund.type.d.ts +24 -0
  570. package/dist/firebase/firestore/types/order/OrderPaymentBreakdownRefund.type.js +2 -0
  571. package/dist/firebase/firestore/types/order/OrderPaymentRefund.type.d.ts +12 -0
  572. package/dist/firebase/firestore/types/order/OrderPaymentRefund.type.js +2 -0
  573. package/dist/firebase/firestore/types/order/OrderPlatformBalancePaymentRefund.type.d.ts +8 -0
  574. package/dist/firebase/firestore/types/order/OrderPlatformBalancePaymentRefund.type.js +2 -0
  575. package/dist/firebase/firestore/types/order/OrderUpdatedBy.type.d.ts +8 -0
  576. package/dist/firebase/firestore/types/order/OrderUpdatedBy.type.js +2 -0
  577. package/dist/firebase/firestore/types/order/index.d.ts +6 -1
  578. package/dist/firebase/firestore/types/order/index.js +6 -1
  579. package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicAssetsUrls.type.d.ts +2 -2
  580. package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicImagesUrlsServiceDetailPhotos.type.d.ts +3 -0
  581. package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientPublicImagesUrlsServiceDetailPhotos.type.js +2 -0
  582. package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientServicesDetailsPublicImagesUrls.type.d.ts +5 -0
  583. package/dist/firebase/firestore/types/order/publicAssets/FirestoreOrderClientServicesDetailsPublicImagesUrls.type.js +2 -0
  584. package/dist/firebase/firestore/types/order/publicAssets/index.d.ts +2 -2
  585. package/dist/firebase/firestore/types/order/publicAssets/index.js +2 -2
  586. package/dist/firebase/firestore/types/order/snapshots/CompanyEntitySnapshotForOrder.type.d.ts +30 -0
  587. package/dist/firebase/firestore/types/order/snapshots/CompanyEntitySnapshotForOrder.type.js +2 -0
  588. package/dist/firebase/firestore/types/order/snapshots/CustomerEntitySnapshotForOrder.type.d.ts +8 -0
  589. package/dist/firebase/firestore/types/order/snapshots/CustomerEntitySnapshotForOrder.type.js +2 -0
  590. package/dist/firebase/firestore/types/order/snapshots/CustomerUserSnapshotForOrder.type.d.ts +7 -0
  591. package/dist/firebase/firestore/types/order/snapshots/CustomerUserSnapshotForOrder.type.js +2 -0
  592. package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrder.type.d.ts +26 -0
  593. package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrder.type.js +2 -0
  594. package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrderBase.type.d.ts +7 -0
  595. package/dist/firebase/firestore/types/order/snapshots/EntitySnapshotForOrderBase.type.js +2 -0
  596. package/dist/firebase/firestore/types/order/snapshots/IndividualEntitySnapshotForOrder.type.d.ts +5 -0
  597. package/dist/firebase/firestore/types/order/snapshots/IndividualEntitySnapshotForOrder.type.js +2 -0
  598. package/dist/firebase/firestore/types/order/snapshots/ServiceProviderEntitySnapshotForOrder.type.d.ts +8 -0
  599. package/dist/firebase/firestore/types/order/snapshots/ServiceProviderEntitySnapshotForOrder.type.js +2 -0
  600. package/dist/firebase/firestore/types/order/snapshots/ServiceProviderUserSnapshotForOrder.type.d.ts +7 -0
  601. package/dist/firebase/firestore/types/order/snapshots/ServiceProviderUserSnapshotForOrder.type.js +2 -0
  602. package/dist/firebase/firestore/types/order/snapshots/TermsAndPolicySnapshotForOrder.type.d.ts +6 -0
  603. package/dist/firebase/firestore/types/order/snapshots/TermsAndPolicySnapshotForOrder.type.js +2 -0
  604. package/dist/firebase/firestore/types/order/snapshots/UserSnapshotForOrder.type.d.ts +6 -0
  605. package/dist/firebase/firestore/types/order/snapshots/UserSnapshotForOrder.type.js +2 -0
  606. package/dist/firebase/firestore/types/order/snapshots/VehicleSnapshotForOrder.type.d.ts +17 -0
  607. package/dist/firebase/firestore/types/order/snapshots/VehicleSnapshotForOrder.type.js +2 -0
  608. package/dist/firebase/firestore/types/order/snapshots/index.d.ts +10 -0
  609. package/dist/firebase/firestore/types/order/snapshots/index.js +26 -0
  610. package/dist/firebase/firestore/types/ordersIssues/OrderIssueReason.type.d.ts +2 -2
  611. package/dist/firebase/firestore/types/ordersRefundIntents/FirestoreOrderRefundIntent.type.d.ts +27 -0
  612. package/dist/firebase/firestore/types/ordersRefundIntents/FirestoreOrderRefundIntent.type.js +2 -0
  613. package/dist/firebase/firestore/types/ordersRefundIntents/FirestoreOrderRefundIntentDocument.type.d.ts +35 -0
  614. package/dist/firebase/firestore/types/ordersRefundIntents/FirestoreOrderRefundIntentDocument.type.js +2 -0
  615. package/dist/firebase/firestore/types/ordersRefundIntents/index.d.ts +1 -0
  616. package/dist/firebase/firestore/types/ordersRefundIntents/index.js +17 -0
  617. package/dist/firebase/firestore/types/ordersReviews/FirestoreOrderReviewDocument.type.d.ts +1 -1
  618. package/dist/firebase/firestore/types/paymentProviders/stripes/StripeConnectAccountRequirementsSummary.type.d.ts +1 -0
  619. package/dist/firebase/firestore/types/platformBalances/FirestorePlatformBalancesDocument.type.d.ts +17 -0
  620. package/dist/firebase/firestore/types/platformBalances/FirestorePlatformBalancesDocument.type.js +2 -0
  621. package/dist/firebase/firestore/types/platformBalances/index.d.ts +1 -0
  622. package/dist/firebase/firestore/types/platformBalances/index.js +17 -0
  623. package/dist/firebase/firestore/types/platformBalancesLedgerEntryDocument/FirestorePlatformBalancesLedgerEntryDocument.type.d.ts +21 -0
  624. package/dist/firebase/firestore/types/platformBalancesLedgerEntryDocument/FirestorePlatformBalancesLedgerEntryDocument.type.js +2 -0
  625. package/dist/firebase/firestore/types/platformBalancesLedgerEntryDocument/index.d.ts +1 -0
  626. package/dist/firebase/firestore/types/platformBalancesLedgerEntryDocument/index.js +17 -0
  627. package/dist/firebase/firestore/types/promoCode/FirestorePromoCodeDocument.type.d.ts +8 -14
  628. package/dist/firebase/firestore/types/promoCodeRedemptions/FirestorePromoCodeRedemptionDocument.type.d.ts +9 -0
  629. package/dist/firebase/firestore/types/promoCodeRedemptions/FirestorePromoCodeRedemptionDocument.type.js +2 -0
  630. package/dist/firebase/firestore/types/promoCodeRedemptions/index.d.ts +1 -0
  631. package/dist/firebase/firestore/types/promoCodeRedemptions/index.js +17 -0
  632. package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocument.type.d.ts +46 -0
  633. package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocument.type.js +2 -0
  634. package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.d.ts +4 -0
  635. package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.js +2 -0
  636. package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.d.ts +4 -0
  637. package/dist/firebase/firestore/types/serviceProviderPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.js +2 -0
  638. package/dist/firebase/firestore/types/serviceProviderPublicDocument/index.d.ts +3 -0
  639. package/dist/firebase/firestore/types/serviceProviderPublicDocument/index.js +19 -0
  640. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocument.type.d.ts +49 -0
  641. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocument.type.js +2 -0
  642. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.d.ts +4 -0
  643. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.js +2 -0
  644. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.d.ts +4 -0
  645. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.js +2 -0
  646. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/index.d.ts +3 -0
  647. package/dist/firebase/firestore/types/serviceProviderUserPublicDocument/index.js +19 -0
  648. package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocument.type.d.ts +46 -0
  649. package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocument.type.js +2 -0
  650. package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.d.ts +4 -0
  651. package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentReviewAggregates.type.js +2 -0
  652. package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.d.ts +4 -0
  653. package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/FirestoreServiceProviderUserPublicDocumentServicesLocation.type.js +2 -0
  654. package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/index.d.ts +3 -0
  655. package/dist/firebase/firestore/types/serviceProviderUsersPublicDocument/index.js +19 -0
  656. package/dist/firebase/firestore/types/services/ProfessionalService.type.d.ts +3 -3
  657. package/dist/firebase/firestore/types/services/ProviderService.type.d.ts +8 -0
  658. package/dist/firebase/firestore/types/services/ProviderService.type.js +2 -0
  659. package/dist/firebase/firestore/types/services/ServiceProviderService.type.d.ts +8 -0
  660. package/dist/firebase/firestore/types/services/ServiceProviderService.type.js +2 -0
  661. package/dist/firebase/firestore/types/services/ServiceProviderServiceDetails.type.d.ts +8 -0
  662. package/dist/firebase/firestore/types/services/ServiceProviderServiceDetails.type.js +2 -0
  663. package/dist/firebase/firestore/types/services/index.d.ts +1 -1
  664. package/dist/firebase/firestore/types/services/index.js +1 -1
  665. package/dist/firebase/firestore/types/userDocument/FirestoreUserDocument.type.d.ts +40 -12
  666. package/dist/firebase/firestore/types/userDocument/FirestoreUserDocumentProfessionalInfos.type.d.ts +2 -7
  667. package/dist/firebase/firestore/types/userDocument/index.d.ts +0 -2
  668. package/dist/firebase/firestore/types/userDocument/index.js +0 -2
  669. package/dist/firebase/firestore/types/userPublicDocument/FirestoreProfessionalUserPublicDocument.type.d.ts +14 -8
  670. package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocument.type.d.ts +46 -0
  671. package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocument.type.js +2 -0
  672. package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.d.ts +4 -0
  673. package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentReviewAggregates.type.js +2 -0
  674. package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.d.ts +4 -0
  675. package/dist/firebase/firestore/types/userPublicDocument/FirestoreServiceProviderPublicDocumentServicesLocation.type.js +2 -0
  676. package/dist/firebase/firestore/types/vehicles/FirestoreVehicleDocument.type.d.ts +21 -4
  677. package/dist/firebase/firestore/types/wallets/FirestoreWalletsDocument.type.d.ts +1 -0
  678. package/dist/firebase/firestore/types/walletsLedgerEntryDocument/FirestoreWalletsLedgerEntryDocument.type.d.ts +2 -0
  679. package/dist/firebase/firestore/types/walletsWithdrawalIntents/FirestoreWalletsWithdrawalIntentsDocument.type.d.ts +1 -0
  680. package/dist/firebase/firestore/utils/address/__tests__/isValidLegalAddress.test.d.ts +1 -0
  681. package/dist/firebase/firestore/utils/address/__tests__/isValidLegalAddress.test.js +73 -0
  682. package/dist/firebase/firestore/utils/address/index.d.ts +1 -0
  683. package/dist/firebase/firestore/utils/address/index.js +17 -0
  684. package/dist/firebase/firestore/utils/address/isValidLegalAddress.d.ts +2 -0
  685. package/dist/firebase/firestore/utils/address/isValidLegalAddress.js +11 -0
  686. package/dist/firebase/firestore/utils/address/types/IsValidLegalAddressParams.type.d.ts +4 -0
  687. package/dist/firebase/firestore/utils/address/types/IsValidLegalAddressParams.type.js +2 -0
  688. package/dist/firebase/firestore/utils/address/types/index.d.ts +1 -0
  689. package/dist/firebase/firestore/utils/address/types/index.js +17 -0
  690. package/dist/firebase/firestore/utils/company/__tests__/entityDocumentSupportsOrganizationMembers.util.test.d.ts +1 -0
  691. package/dist/firebase/firestore/utils/company/__tests__/entityDocumentSupportsOrganizationMembers.util.test.js +56 -0
  692. package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.d.ts +6 -0
  693. package/dist/firebase/firestore/utils/company/entityDocumentSupportsOrganizationMembers.util.js +20 -0
  694. package/dist/firebase/firestore/utils/configs/__tests__/getAvailableServicesPublicConfigForVehicleType.test.d.ts +1 -0
  695. package/dist/firebase/firestore/utils/configs/__tests__/getAvailableServicesPublicConfigForVehicleType.test.js +146 -0
  696. package/dist/firebase/firestore/utils/configs/getAvailableServicesPublicConfigForVehicleType.d.ts +6 -0
  697. package/dist/firebase/firestore/utils/configs/getAvailableServicesPublicConfigForVehicleType.js +24 -0
  698. package/dist/firebase/firestore/utils/configs/index.d.ts +1 -0
  699. package/dist/firebase/firestore/utils/configs/index.js +17 -0
  700. package/dist/firebase/firestore/utils/configs/types/GetAvailableServicesPublicConfigForVehicleTypeParams.type.d.ts +6 -0
  701. package/dist/firebase/firestore/utils/configs/types/GetAvailableServicesPublicConfigForVehicleTypeParams.type.js +2 -0
  702. package/dist/firebase/firestore/utils/configs/types/index.d.ts +1 -0
  703. package/dist/firebase/firestore/utils/configs/types/index.js +17 -0
  704. package/dist/firebase/firestore/utils/dataValidators/company/index.d.ts +0 -2
  705. package/dist/firebase/firestore/utils/dataValidators/company/index.js +0 -2
  706. package/dist/firebase/firestore/utils/dataValidators/index.d.ts +1 -1
  707. package/dist/firebase/firestore/utils/dataValidators/index.js +1 -1
  708. package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalService.test.js +47 -89
  709. package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidProfessionalServiceType.test.js +1 -1
  710. package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidServicePricingAndDurationForVehicle.test.d.ts +1 -0
  711. package/dist/firebase/firestore/utils/dataValidators/professionalService/__tests__/isValidServicePricingAndDurationForVehicle.test.js +136 -0
  712. package/dist/firebase/firestore/utils/dataValidators/professionalService/index.d.ts +1 -2
  713. package/dist/firebase/firestore/utils/dataValidators/professionalService/index.js +1 -2
  714. package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalService.js +6 -13
  715. package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServiceType.d.ts +2 -2
  716. package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidProfessionalServiceType.js +1 -1
  717. package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidServicePricingAndDurationForVehicle.d.ts +2 -0
  718. package/dist/firebase/firestore/utils/dataValidators/professionalService/isValidServicePricingAndDurationForVehicle.js +29 -0
  719. package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidProfessionalServiceParams.type.d.ts +2 -2
  720. package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidServicePricingAndDurationForVehicleParams.type.d.ts +5 -0
  721. package/dist/firebase/firestore/utils/dataValidators/professionalService/types/IsValidServicePricingAndDurationForVehicleParams.type.js +2 -0
  722. package/dist/firebase/firestore/utils/dataValidators/professionalService/types/index.d.ts +1 -1
  723. package/dist/firebase/firestore/utils/dataValidators/professionalService/types/index.js +1 -1
  724. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProfessionalService.test.d.ts +1 -0
  725. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProfessionalService.test.js +172 -0
  726. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProviderService.test.d.ts +1 -0
  727. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidProviderService.test.js +172 -0
  728. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidServicePricingAndDurationForVehicle.test.d.ts +1 -0
  729. package/dist/firebase/firestore/utils/dataValidators/services/__tests__/isValidServicePricingAndDurationForVehicle.test.js +136 -0
  730. package/dist/firebase/firestore/utils/dataValidators/services/index.d.ts +2 -0
  731. package/dist/firebase/firestore/utils/dataValidators/services/index.js +18 -0
  732. package/dist/firebase/firestore/utils/dataValidators/services/isValidProfessionalService.d.ts +2 -0
  733. package/dist/firebase/firestore/utils/dataValidators/services/isValidProfessionalService.js +42 -0
  734. package/dist/firebase/firestore/utils/dataValidators/services/isValidProviderService.d.ts +2 -0
  735. package/dist/firebase/firestore/utils/dataValidators/services/isValidProviderService.js +42 -0
  736. package/dist/firebase/firestore/utils/dataValidators/services/isValidServicePricingAndDurationForVehicle.d.ts +2 -0
  737. package/dist/firebase/firestore/utils/dataValidators/services/isValidServicePricingAndDurationForVehicle.js +29 -0
  738. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProfessionalServiceParams.type.d.ts +6 -0
  739. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProfessionalServiceParams.type.js +2 -0
  740. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProviderServiceParams.type.d.ts +6 -0
  741. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidProviderServiceParams.type.js +2 -0
  742. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidServicePricingAndDurationForVehicleParams.type.d.ts +5 -0
  743. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidServicePricingAndDurationForVehicleParams.type.js +2 -0
  744. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidVehicleForProfessionalServiceParams.type.d.ts +6 -0
  745. package/dist/firebase/firestore/utils/dataValidators/services/types/IsValidVehicleForProfessionalServiceParams.type.js +2 -0
  746. package/dist/firebase/firestore/utils/dataValidators/services/types/index.d.ts +2 -0
  747. package/dist/firebase/firestore/utils/dataValidators/services/types/index.js +18 -0
  748. package/dist/firebase/firestore/utils/dataValidators/slots/__tests__/isValidOneTimeSlot.test.d.ts +1 -0
  749. package/dist/firebase/firestore/utils/dataValidators/slots/__tests__/isValidOneTimeSlot.test.js +287 -0
  750. package/dist/firebase/firestore/utils/dataValidators/slots/__tests__/isValidRecurringSlot.test.d.ts +1 -0
  751. package/dist/firebase/firestore/utils/dataValidators/slots/__tests__/isValidRecurringSlot.test.js +527 -0
  752. package/dist/firebase/firestore/utils/dataValidators/slots/__tests__/isValidTimeOffSlot.test.d.ts +1 -0
  753. package/dist/firebase/firestore/utils/dataValidators/slots/__tests__/isValidTimeOffSlot.test.js +272 -0
  754. package/dist/firebase/firestore/utils/dataValidators/slots/index.d.ts +3 -3
  755. package/dist/firebase/firestore/utils/dataValidators/slots/index.js +3 -3
  756. package/dist/firebase/firestore/utils/dataValidators/slots/isValidOneTimeSlot.d.ts +2 -0
  757. package/dist/firebase/firestore/utils/dataValidators/slots/isValidOneTimeSlot.js +45 -0
  758. package/dist/firebase/firestore/utils/dataValidators/slots/isValidRecurringSlot.d.ts +2 -0
  759. package/dist/firebase/firestore/utils/dataValidators/slots/isValidRecurringSlot.js +83 -0
  760. package/dist/firebase/firestore/utils/dataValidators/slots/isValidTimeOffSlot.d.ts +2 -0
  761. package/dist/firebase/firestore/utils/dataValidators/slots/isValidTimeOffSlot.js +45 -0
  762. package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.test.d.ts +1 -0
  763. package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.test.js +56 -0
  764. package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.util.test.d.ts +1 -0
  765. package/dist/firebase/firestore/utils/entities/__tests__/entityDocumentSupportsOrganizationMembers.util.test.js +56 -0
  766. package/dist/firebase/firestore/utils/entities/__tests__/isEntityLegalDetailsVatVerified.test.d.ts +1 -0
  767. package/dist/firebase/firestore/utils/entities/__tests__/isEntityLegalDetailsVatVerified.test.js +61 -0
  768. package/dist/firebase/firestore/utils/entities/__tests__/isEntityMemberAuthorized.test.d.ts +1 -0
  769. package/dist/firebase/firestore/utils/entities/__tests__/isEntityMemberAuthorized.test.js +83 -0
  770. package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.d.ts +6 -0
  771. package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.js +20 -0
  772. package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.util.d.ts +6 -0
  773. package/dist/firebase/firestore/utils/entities/entityDocumentSupportsOrganizationMembers.util.js +20 -0
  774. package/dist/firebase/firestore/utils/entities/index.d.ts +2 -0
  775. package/dist/firebase/firestore/utils/entities/index.js +18 -0
  776. package/dist/firebase/firestore/utils/entities/isEntityLegalDetailsVatVerified.d.ts +2 -0
  777. package/dist/firebase/firestore/utils/entities/isEntityLegalDetailsVatVerified.js +17 -0
  778. package/dist/firebase/firestore/utils/entities/isEntityMemberAuthorized.d.ts +2 -0
  779. package/dist/firebase/firestore/utils/entities/isEntityMemberAuthorized.js +9 -0
  780. package/dist/firebase/firestore/utils/entities/types/IsEntityLegalDetailsVatVerifiedParams.type.d.ts +4 -0
  781. package/dist/firebase/firestore/utils/entities/types/IsEntityLegalDetailsVatVerifiedParams.type.js +2 -0
  782. package/dist/firebase/firestore/utils/entities/types/IsEntityMemberAuthorizedParams.type.d.ts +7 -0
  783. package/dist/firebase/firestore/utils/entities/types/IsEntityMemberAuthorizedParams.type.js +2 -0
  784. package/dist/firebase/firestore/utils/entities/types/index.d.ts +2 -0
  785. package/dist/firebase/firestore/utils/entities/types/index.js +18 -0
  786. package/dist/firebase/firestore/utils/index.d.ts +3 -2
  787. package/dist/firebase/firestore/utils/index.js +3 -2
  788. package/dist/firebase/firestore/utils/order/__tests__/buildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetails.service.test.js +40 -40
  789. package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.test.d.ts +1 -0
  790. package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.test.js +259 -0
  791. package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndServicesDetails.test.d.ts +1 -0
  792. package/dist/firebase/firestore/utils/order/__tests__/buildOrderServicePreTaxLinesAndServicesDetails.test.js +259 -0
  793. package/dist/firebase/firestore/utils/order/buildFirestoreOrderPricingDetailsFromInvoiceTotals.util.d.ts +8 -0
  794. package/dist/firebase/firestore/utils/order/buildFirestoreOrderPricingDetailsFromInvoiceTotals.util.js +37 -0
  795. package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.d.ts +2 -0
  796. package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndProfessionalServicesDetails.js +48 -0
  797. package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndServicesDetails.d.ts +2 -0
  798. package/dist/firebase/firestore/utils/order/buildOrderServicePreTaxLinesAndServicesDetails.js +48 -0
  799. package/dist/firebase/firestore/utils/order/index.d.ts +1 -2
  800. package/dist/firebase/firestore/utils/order/index.js +1 -2
  801. package/dist/firebase/firestore/utils/order/types/BuildOrderProfessionalServicePreTaxLinesAndProfessionalServicesDetailsProps.type.d.ts +2 -2
  802. package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsProps.type.d.ts +8 -0
  803. package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsProps.type.js +2 -0
  804. package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsReturn.type.d.ts +6 -0
  805. package/dist/firebase/firestore/utils/order/types/BuildOrderServicePreTaxLinesAndServicesDetailsReturn.type.js +2 -0
  806. package/dist/firebase/firestore/utils/order/types/index.d.ts +2 -4
  807. package/dist/firebase/firestore/utils/order/types/index.js +2 -4
  808. package/dist/firebase/firestore/utils/reviews/__tests__/getAverageRatingFromReviewAggregates.test.d.ts +1 -0
  809. package/dist/firebase/firestore/utils/reviews/__tests__/getAverageRatingFromReviewAggregates.test.js +97 -0
  810. package/dist/firebase/firestore/utils/reviews/getAverageRatingFromReviewAggregates.d.ts +2 -0
  811. package/dist/firebase/firestore/utils/reviews/getAverageRatingFromReviewAggregates.js +13 -0
  812. package/dist/firebase/firestore/utils/reviews/index.d.ts +1 -1
  813. package/dist/firebase/firestore/utils/reviews/index.js +1 -1
  814. package/dist/firebase/firestore/utils/services/__tests__/areAllRequestedProfessionalUserServicesActiveForVehicleType.test.js +27 -27
  815. package/dist/firebase/firestore/utils/services/__tests__/computeTotalProfessionalServiceDurationInMinutesForVehicleType.test.js +24 -24
  816. package/dist/firebase/firestore/utils/services/__tests__/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.test.d.ts +1 -0
  817. package/dist/firebase/firestore/utils/services/__tests__/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.test.js +101 -0
  818. package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.test.d.ts +1 -0
  819. package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.test.js +12 -0
  820. package/dist/firebase/firestore/utils/services/__tests__/createProfessionalServiceVehicleComboKey.util.test.js +1 -1
  821. package/dist/firebase/firestore/utils/services/__tests__/createServiceVehicleComboKey.test.d.ts +1 -0
  822. package/dist/firebase/firestore/utils/services/__tests__/createServiceVehicleComboKey.test.js +12 -0
  823. package/dist/firebase/firestore/utils/services/__tests__/getActiveProfessionalServicePricingAndDurationForVehicleOrThrow.util.test.js +35 -35
  824. package/dist/firebase/firestore/utils/services/__tests__/getActiveServicePricingAndDurationForVehicleOrThrow.test.d.ts +1 -0
  825. package/dist/firebase/firestore/utils/services/__tests__/getActiveServicePricingAndDurationForVehicleOrThrow.test.js +225 -0
  826. package/dist/firebase/firestore/utils/services/__tests__/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.test.d.ts +1 -0
  827. package/dist/firebase/firestore/utils/services/__tests__/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.test.js +225 -0
  828. package/dist/firebase/firestore/utils/services/__tests__/getAvailableServiceProviderServicesForVehicleType.test.d.ts +1 -0
  829. package/dist/firebase/firestore/utils/services/__tests__/getAvailableServiceProviderServicesForVehicleType.test.js +295 -0
  830. package/dist/firebase/firestore/utils/services/__tests__/getBookableServiceProviderServicesForVehicleType.test.d.ts +1 -0
  831. package/dist/firebase/firestore/utils/services/__tests__/getBookableServiceProviderServicesForVehicleType.test.js +295 -0
  832. package/dist/firebase/firestore/utils/services/__tests__/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.test.d.ts +1 -0
  833. package/dist/firebase/firestore/utils/services/__tests__/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.test.js +225 -0
  834. package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.d.ts +2 -0
  835. package/dist/firebase/firestore/utils/services/areAllRequestedProfessionalUserServicesActiveForVehicleType.js +14 -0
  836. package/dist/firebase/firestore/utils/services/computeTotalProfessionalServiceDurationInMinutesForVehicleType.d.ts +2 -0
  837. package/dist/firebase/firestore/utils/services/computeTotalProfessionalServiceDurationInMinutesForVehicleType.js +16 -0
  838. package/dist/firebase/firestore/utils/services/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.d.ts +2 -0
  839. package/dist/firebase/firestore/utils/services/computeTotalServiceProviderServiceDurationInMinutesForVehicleType.js +18 -0
  840. package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.d.ts +2 -0
  841. package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.js +6 -0
  842. package/dist/firebase/firestore/utils/services/createProfessionalServiceVehicleComboKey.util.d.ts +2 -2
  843. package/dist/firebase/firestore/utils/services/createServiceVehicleComboKey.d.ts +2 -0
  844. package/dist/firebase/firestore/utils/services/createServiceVehicleComboKey.js +6 -0
  845. package/dist/firebase/firestore/utils/services/getActiveServicePricingAndDurationForVehicleOrThrow.d.ts +3 -0
  846. package/dist/firebase/firestore/utils/services/getActiveServicePricingAndDurationForVehicleOrThrow.js +19 -0
  847. package/dist/firebase/firestore/utils/services/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.d.ts +3 -0
  848. package/dist/firebase/firestore/utils/services/getActiveServiceProviderServicePricingAndDurationForVehicleOrThrow.js +19 -0
  849. package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesForVehicleType.d.ts +6 -0
  850. package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesForVehicleType.js +29 -0
  851. package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesTypesForVehicleType.d.ts +6 -0
  852. package/dist/firebase/firestore/utils/services/getAvailableServiceProviderServicesTypesForVehicleType.js +31 -0
  853. package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.d.ts +5 -0
  854. package/dist/firebase/firestore/utils/services/getBookableServiceProviderServicesForVehicleType.js +32 -0
  855. package/dist/firebase/firestore/utils/services/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.d.ts +3 -0
  856. package/dist/firebase/firestore/utils/services/getServiceProviderActiveServicePricingAndDurationForVehicleOrThrow.js +19 -0
  857. package/dist/firebase/firestore/utils/services/index.d.ts +4 -4
  858. package/dist/firebase/firestore/utils/services/index.js +4 -4
  859. package/dist/firebase/firestore/utils/services/types/AreAllRequestedProfessionalUserServicesActiveForVehicleTypeArgs.type..d.ts +2 -2
  860. package/dist/firebase/firestore/utils/services/types/ComputeTotalProfessionalServiceDurationInMinutesForVehicleTypeArgs.type.d.ts +2 -2
  861. package/dist/firebase/firestore/utils/services/types/ComputeTotalServiceProviderServiceDurationInMinutesForVehicleTypeArgs.type.d.ts +7 -0
  862. package/dist/firebase/firestore/utils/services/types/ComputeTotalServiceProviderServiceDurationInMinutesForVehicleTypeArgs.type.js +2 -0
  863. package/dist/firebase/firestore/utils/services/types/GetActiveProfessionalServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +2 -2
  864. package/dist/firebase/firestore/utils/services/types/GetActiveServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +7 -0
  865. package/dist/firebase/firestore/utils/services/types/GetActiveServicePricingAndDurationForVehicleOrThrowParams.type.js +2 -0
  866. package/dist/firebase/firestore/utils/services/types/GetActiveServiceProviderServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +7 -0
  867. package/dist/firebase/firestore/utils/services/types/GetActiveServiceProviderServicePricingAndDurationForVehicleOrThrowParams.type.js +2 -0
  868. package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesForVehicleTypeParams.type.d.ts +7 -0
  869. package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesForVehicleTypeParams.type.js +2 -0
  870. package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesTypesForVehicleTypeParams.type.d.ts +7 -0
  871. package/dist/firebase/firestore/utils/services/types/GetAvailableServiceProviderServicesTypesForVehicleTypeParams.type.js +2 -0
  872. package/dist/firebase/firestore/utils/services/types/GetBookableServiceProviderServicesForVehicleTypeParams.type.d.ts +7 -0
  873. package/dist/firebase/firestore/utils/services/types/GetBookableServiceProviderServicesForVehicleTypeParams.type.js +2 -0
  874. package/dist/firebase/firestore/utils/services/types/GetServiceProviderActiveServicePricingAndDurationForVehicleOrThrowParams.type.d.ts +7 -0
  875. package/dist/firebase/firestore/utils/services/types/GetServiceProviderActiveServicePricingAndDurationForVehicleOrThrowParams.type.js +2 -0
  876. package/dist/firebase/firestore/utils/services/types/index.d.ts +3 -3
  877. package/dist/firebase/firestore/utils/services/types/index.js +3 -3
  878. package/dist/firebase/firestore/utils/stubs/company/index.d.ts +0 -2
  879. package/dist/firebase/firestore/utils/stubs/company/index.js +0 -2
  880. package/dist/firebase/firestore/utils/stubs/configs/countryServicesPublicConfigStub.js +1 -1
  881. package/dist/firebase/firestore/utils/stubs/configs/firestoreNotificationEventsPublicConfigDocumentStub.js +44 -2
  882. package/dist/firebase/firestore/utils/stubs/configs/firestoreOrdersPublicConfigDocumentStub.js +3 -3
  883. package/dist/firebase/firestore/utils/stubs/configs/firestorePlatformPublicConfigDocumentStub.js +4 -23
  884. package/dist/firebase/firestore/utils/stubs/configs/firestoreServicesPublicConfigStub.js +4 -5
  885. package/dist/firebase/firestore/utils/stubs/credits/firestoreCreditsDocumentStub.d.ts +2 -0
  886. package/dist/firebase/firestore/utils/stubs/credits/firestoreCreditsDocumentStub.js +24 -0
  887. package/dist/firebase/firestore/utils/stubs/credits/index.d.ts +1 -0
  888. package/dist/firebase/firestore/utils/stubs/credits/index.js +17 -0
  889. package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/firestoreCreditsLedgerEntryDocumentStub.d.ts +2 -0
  890. package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/firestoreCreditsLedgerEntryDocumentStub.js +27 -0
  891. package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/index.d.ts +1 -0
  892. package/dist/firebase/firestore/utils/stubs/creditsLedgerEntry/index.js +17 -0
  893. package/dist/firebase/firestore/utils/stubs/entities/entityVatDetailsStub.js +1 -0
  894. package/dist/firebase/firestore/utils/stubs/entities/firestoreEntityDocumentStub.js +11 -0
  895. package/dist/firebase/firestore/utils/stubs/entityMemberInvites/firestoreEntityMemberInviteDocumentStub.d.ts +2 -0
  896. package/dist/firebase/firestore/utils/stubs/entityMemberInvites/firestoreEntityMemberInviteDocumentStub.js +22 -0
  897. package/dist/firebase/firestore/utils/stubs/entityMemberInvites/index.d.ts +1 -0
  898. package/dist/firebase/firestore/utils/stubs/entityMemberInvites/index.js +17 -0
  899. package/dist/firebase/firestore/utils/stubs/index.d.ts +7 -1
  900. package/dist/firebase/firestore/utils/stubs/index.js +7 -1
  901. package/dist/firebase/firestore/utils/stubs/location/doctoCarLocationStub.js +7 -0
  902. package/dist/firebase/firestore/utils/stubs/marketplaceFinancialReports/firestoreMarketplaceFinancialReportsDocumentStub.js +3 -3
  903. package/dist/firebase/firestore/utils/stubs/notificationEvent/firestoreNotificationEventChannelDeliveryRecordDocumentStub.d.ts +2 -0
  904. package/dist/firebase/firestore/utils/stubs/notificationEvent/firestoreNotificationEventChannelDeliveryRecordDocumentStub.js +15 -0
  905. package/dist/firebase/firestore/utils/stubs/notificationEvent/firestoreNotificationEventDeliveryStateDocumentStub.js +2 -1
  906. package/dist/firebase/firestore/utils/stubs/notificationEvent/index.d.ts +1 -1
  907. package/dist/firebase/firestore/utils/stubs/notificationEvent/index.js +1 -1
  908. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientPublicAssetsUrlsStub.js +2 -2
  909. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientServicesDetailsPublicImagesUrlsStub.d.ts +2 -0
  910. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderClientServicesDetailsPublicImagesUrlsStub.js +25 -0
  911. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderDocumentPricingDetailStub.js +36 -10
  912. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderDocumentStub.js +151 -95
  913. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderProfessionalServiceDetailsStub.js +1 -1
  914. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderServiceDetailsStub.d.ts +2 -0
  915. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderServiceDetailsStub.js +18 -0
  916. package/dist/firebase/firestore/utils/stubs/order/index.d.ts +2 -2
  917. package/dist/firebase/firestore/utils/stubs/order/index.js +2 -2
  918. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/firestoreOrderRefundIntentDocumentStub.d.ts +2 -0
  919. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/firestoreOrderRefundIntentDocumentStub.js +29 -0
  920. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/firestoreOrderRefundIntentStub.d.ts +2 -0
  921. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/firestoreOrderRefundIntentStub.js +19 -0
  922. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/index.d.ts +1 -0
  923. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/index.js +17 -0
  924. package/dist/firebase/firestore/utils/stubs/ordersReviews/firestoreOrderReviewDocumentStub.js +1 -1
  925. package/dist/firebase/firestore/utils/stubs/platformBalances/firestorePlatformBalancesDocumentStub.d.ts +2 -0
  926. package/dist/firebase/firestore/utils/stubs/platformBalances/firestorePlatformBalancesDocumentStub.js +24 -0
  927. package/dist/firebase/firestore/utils/stubs/platformBalances/index.d.ts +1 -0
  928. package/dist/firebase/firestore/utils/stubs/platformBalances/index.js +17 -0
  929. package/dist/firebase/firestore/utils/stubs/platformBalancesLedgerEntry/firestorePlatformBalancesLedgerEntryDocumentStub.d.ts +2 -0
  930. package/dist/firebase/firestore/utils/stubs/platformBalancesLedgerEntry/firestorePlatformBalancesLedgerEntryDocumentStub.js +27 -0
  931. package/dist/firebase/firestore/utils/stubs/platformBalancesLedgerEntry/index.d.ts +1 -0
  932. package/dist/firebase/firestore/utils/stubs/platformBalancesLedgerEntry/index.js +17 -0
  933. package/dist/firebase/firestore/utils/stubs/promoCode/firestorePromoCodeDocumentStub.d.ts +2 -0
  934. package/dist/firebase/firestore/utils/stubs/promoCode/firestorePromoCodeDocumentStub.js +23 -0
  935. package/dist/firebase/firestore/utils/stubs/promoCode/index.d.ts +1 -0
  936. package/dist/firebase/firestore/utils/stubs/promoCode/index.js +17 -0
  937. package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/firestorePromoCodeRedemptionDocumentStub.d.ts +2 -0
  938. package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/firestorePromoCodeRedemptionDocumentStub.js +10 -0
  939. package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/index.d.ts +1 -0
  940. package/dist/firebase/firestore/utils/stubs/promoCodeRedemptions/index.js +17 -0
  941. package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/firestoreServiceProviderPublicDocumentStub.d.ts +2 -0
  942. package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/firestoreServiceProviderPublicDocumentStub.js +36 -0
  943. package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/index.d.ts +1 -0
  944. package/dist/firebase/firestore/utils/stubs/serviceProviderPublicDocument/index.js +17 -0
  945. package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/firestoreServiceProviderUserPublicDocumentStub.d.ts +2 -0
  946. package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/firestoreServiceProviderUserPublicDocumentStub.js +44 -0
  947. package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/index.d.ts +1 -0
  948. package/dist/firebase/firestore/utils/stubs/serviceProviderUserPublicDocument/index.js +17 -0
  949. package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/firestoreServiceProviderUserPublicDocumentStub.d.ts +2 -0
  950. package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/firestoreServiceProviderUserPublicDocumentStub.js +36 -0
  951. package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/index.d.ts +1 -0
  952. package/dist/firebase/firestore/utils/stubs/serviceProviderUsersPublicDocument/index.js +17 -0
  953. package/dist/firebase/firestore/utils/stubs/services/index.d.ts +1 -1
  954. package/dist/firebase/firestore/utils/stubs/services/index.js +1 -1
  955. package/dist/firebase/firestore/utils/stubs/services/pricingAndDurationForVehicleStub.js +2 -2
  956. package/dist/firebase/firestore/utils/stubs/services/professionalServiceStub.d.ts +2 -2
  957. package/dist/firebase/firestore/utils/stubs/services/professionalServiceStub.js +1 -1
  958. package/dist/firebase/firestore/utils/stubs/services/providerServiceStub.d.ts +5 -0
  959. package/dist/firebase/firestore/utils/stubs/services/providerServiceStub.js +21 -0
  960. package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceDetailsStub.d.ts +5 -0
  961. package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceDetailsStub.js +21 -0
  962. package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceStub.d.ts +5 -0
  963. package/dist/firebase/firestore/utils/stubs/services/serviceProviderServiceStub.js +21 -0
  964. package/dist/firebase/firestore/utils/stubs/userDocument/firestoreUserDocumentStub.js +1 -4
  965. package/dist/firebase/firestore/utils/stubs/userDocument/index.d.ts +0 -2
  966. package/dist/firebase/firestore/utils/stubs/userDocument/index.js +0 -2
  967. package/dist/firebase/firestore/utils/stubs/userPublicDocument/firestoreProfessionalUserPublicDocumentStub.js +11 -5
  968. package/dist/firebase/firestore/utils/stubs/vehicles/firestoreVehicleDocumentStub.js +6 -0
  969. package/dist/firebase/firestore/utils/stubs/wallets/firestoreWalletsDocumentStub.js +1 -0
  970. package/dist/firebase/firestore/utils/stubs/walletsLedgerEntry/firestoreWalletsLedgerEntryDocumentStub.js +2 -0
  971. package/dist/firebase/firestore/utils/stubs/walletsWithdrawalIntents/firestoreWalletsWithdrawalIntentsDocumentStub.js +1 -0
  972. package/dist/firebase/firestore/utils/users/__tests__/assertCustomerUserCanBookServices.test.js +7 -7
  973. package/dist/firebase/firestore/utils/users/__tests__/assertProfessionalUserIsBookable.util.test.js +13 -13
  974. package/dist/firebase/firestore/utils/users/assertCustomerUserCanBookServices.js +53 -30
  975. package/dist/firebase/firestore/utils/users/assertProfessionalUserIsBookable.util.js +110 -61
  976. package/dist/firebase/firestore/utils/users/index.d.ts +0 -1
  977. package/dist/firebase/firestore/utils/users/index.js +0 -1
  978. package/dist/firebase/storage/enums/FirebaseStorageBasePaths.enum.d.ts +3 -2
  979. package/dist/firebase/storage/enums/FirebaseStorageBasePaths.enum.js +4 -2
  980. package/dist/firebase/storage/enums/FirebaseStorageEntityPrivateSubPaths.enum.d.ts +3 -0
  981. package/dist/firebase/storage/enums/FirebaseStorageEntityPrivateSubPaths.enum.js +7 -0
  982. package/dist/firebase/storage/enums/FirebaseStorageFilesNames.enum.d.ts +1 -1
  983. package/dist/firebase/storage/enums/FirebaseStorageFilesNames.enum.js +1 -1
  984. package/dist/firebase/storage/enums/FirebaseStorageServicesProvidersUsersPublicSubPaths.enum.d.ts +3 -0
  985. package/dist/firebase/storage/enums/FirebaseStorageServicesProvidersUsersPublicSubPaths.enum.js +7 -0
  986. package/dist/firebase/storage/enums/FirebaseStorageUserPrivateSubPaths.enum.d.ts +1 -3
  987. package/dist/firebase/storage/enums/FirebaseStorageUserPrivateSubPaths.enum.js +1 -3
  988. package/dist/firebase/storage/enums/index.d.ts +2 -1
  989. package/dist/firebase/storage/enums/index.js +2 -1
  990. package/dist/firebase/storage/utils/__tests__/buildStoragePeriodSlug.test.js +15 -6
  991. package/dist/gcp/address/enums/GoogleAddressComponentType.enum.d.ts +11 -0
  992. package/dist/gcp/address/enums/GoogleAddressComponentType.enum.js +15 -0
  993. package/dist/gcp/address/enums/index.d.ts +1 -0
  994. package/dist/gcp/address/enums/index.js +17 -0
  995. package/dist/gcp/address/index.d.ts +3 -0
  996. package/dist/gcp/address/index.js +19 -0
  997. package/dist/gcp/address/types/GoogleAddressComponent.type.d.ts +6 -0
  998. package/dist/gcp/address/types/GoogleAddressComponent.type.js +2 -0
  999. package/dist/gcp/address/types/index.d.ts +1 -0
  1000. package/dist/gcp/address/types/index.js +17 -0
  1001. package/dist/gcp/address/utils/__tests__/findGoogleAddressComponent.test.d.ts +1 -0
  1002. package/dist/gcp/address/utils/__tests__/findGoogleAddressComponent.test.js +77 -0
  1003. package/dist/gcp/address/utils/findGoogleAddressComponent.d.ts +3 -0
  1004. package/dist/gcp/address/utils/findGoogleAddressComponent.js +6 -0
  1005. package/dist/gcp/address/utils/index.d.ts +2 -0
  1006. package/dist/gcp/address/utils/index.js +18 -0
  1007. package/dist/gcp/address/utils/types/FindGoogleAddressComponentParams.type.d.ts +6 -0
  1008. package/dist/gcp/address/utils/types/FindGoogleAddressComponentParams.type.js +2 -0
  1009. package/dist/gcp/address/utils/types/index.d.ts +1 -0
  1010. package/dist/gcp/address/utils/types/index.js +17 -0
  1011. package/dist/gcp/cloudTask/enums/CloudTasksQueueName.enum.d.ts +3 -2
  1012. package/dist/gcp/cloudTask/enums/CloudTasksQueueName.enum.js +3 -2
  1013. package/dist/gcp/cloudTask/maps/CloudTaskEnvelopeMap.map.d.ts +4 -3
  1014. package/dist/gcp/cloudTask/types/OnTaskRecomputeCustomerUserComplianceEnvelope.d.ts +4 -0
  1015. package/dist/gcp/cloudTask/types/OnTaskRecomputeCustomerUserComplianceEnvelope.js +2 -0
  1016. package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderAvailabilityEnvelope.type.d.ts +4 -0
  1017. package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderAvailabilityEnvelope.type.js +2 -0
  1018. package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderUserComplianceEnvelope.d.ts +4 -0
  1019. package/dist/gcp/cloudTask/types/OnTaskRecomputeServiceProviderUserComplianceEnvelope.js +2 -0
  1020. package/dist/gcp/cloudTask/types/index.d.ts +3 -2
  1021. package/dist/gcp/cloudTask/types/index.js +3 -2
  1022. package/dist/gcp/cloudTask/utils/stubs/index.d.ts +3 -2
  1023. package/dist/gcp/cloudTask/utils/stubs/index.js +3 -2
  1024. package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeCustomerUserComplianceEnvelopeStub.d.ts +2 -0
  1025. package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeCustomerUserComplianceEnvelopeStub.js +19 -0
  1026. package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderAvailabilityEnvelopeStub.d.ts +2 -0
  1027. package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderAvailabilityEnvelopeStub.js +19 -0
  1028. package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderUserComplianceEnvelopeStub.d.ts +2 -0
  1029. package/dist/gcp/cloudTask/utils/stubs/onTaskRecomputeServiceProviderUserComplianceEnvelopeStub.js +19 -0
  1030. package/dist/gcp/enums/GoogleAddressComponentType.enum.d.ts +11 -0
  1031. package/dist/gcp/enums/GoogleAddressComponentType.enum.js +15 -0
  1032. package/dist/gcp/enums/index.d.ts +1 -0
  1033. package/dist/gcp/enums/index.js +17 -0
  1034. package/dist/gcp/geocode/types/GeocodeRawAddressComponent.type.d.ts +6 -0
  1035. package/dist/gcp/geocode/types/GeocodeRawAddressComponent.type.js +2 -0
  1036. package/dist/gcp/geocode/types/GeocodeResponseResultData.type.d.ts +2 -6
  1037. package/dist/gcp/geocode/types/index.d.ts +1 -0
  1038. package/dist/gcp/geocode/types/index.js +1 -0
  1039. package/dist/gcp/geocode/utils/__tests__/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.test.js +7 -4
  1040. package/dist/gcp/geocode/utils/__tests__/getCountryIsoCodeFromGoogleGeocodeAddressComponents.test.d.ts +1 -0
  1041. package/dist/gcp/geocode/utils/__tests__/getCountryIsoCodeFromGoogleGeocodeAddressComponents.test.js +34 -0
  1042. package/dist/gcp/geocode/utils/__tests__/mapGeocodeRawAddressComponent.test.d.ts +1 -0
  1043. package/dist/gcp/geocode/utils/__tests__/mapGeocodeRawAddressComponent.test.js +52 -0
  1044. package/dist/gcp/geocode/utils/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.d.ts +2 -2
  1045. package/dist/gcp/geocode/utils/getCountryISOCodeFromGoogleGeocodeAddressComponents.util.js +9 -8
  1046. package/dist/gcp/geocode/utils/getCountryIsoCodeFromGoogleGeocodeAddressComponents.d.ts +2 -0
  1047. package/dist/gcp/geocode/utils/getCountryIsoCodeFromGoogleGeocodeAddressComponents.js +12 -0
  1048. package/dist/gcp/geocode/utils/index.d.ts +2 -1
  1049. package/dist/gcp/geocode/utils/index.js +2 -1
  1050. package/dist/gcp/geocode/utils/mapGeocodeRawAddressComponent.d.ts +3 -0
  1051. package/dist/gcp/geocode/utils/mapGeocodeRawAddressComponent.js +10 -0
  1052. package/dist/gcp/index.d.ts +1 -0
  1053. package/dist/gcp/index.js +1 -0
  1054. package/dist/gcp/place/enums/PlaceDetailsAddressType.enum.d.ts +3 -1
  1055. package/dist/gcp/place/enums/PlaceDetailsAddressType.enum.js +3 -1
  1056. package/dist/gcp/place/index.d.ts +0 -2
  1057. package/dist/gcp/place/index.js +0 -2
  1058. package/dist/gcp/place/types/PlaceDetailsResponse.type.d.ts +2 -2
  1059. package/dist/gcp/place/types/index.d.ts +0 -1
  1060. package/dist/gcp/place/types/index.js +0 -1
  1061. package/dist/gcp/place/utils/__tests__/getComponentFromGooglePlaceDetailsAddressComponents.util.test.js +1 -1
  1062. package/dist/gcp/place/utils/types/GetComponentFromGooglePlaceDetailsAddressComponentsParams.type.d.ts +1 -1
  1063. package/dist/gcp/pubsub/enums/PubSubTopics.enum.d.ts +10 -3
  1064. package/dist/gcp/pubsub/enums/PubSubTopics.enum.js +9 -2
  1065. package/dist/gcp/pubsub/maps/PubSubTopicMessageMap.map.d.ts +10 -3
  1066. package/dist/gcp/pubsub/types/PubSubNotificationEventMessage.type.d.ts +1 -1
  1067. package/dist/gcp/pubsub/types/entities/PubSubEntityMemberProjectionResyncRequestedMessage.type.d.ts +4 -0
  1068. package/dist/gcp/pubsub/types/entities/PubSubEntityMemberProjectionResyncRequestedMessage.type.js +2 -0
  1069. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityBookableChangedMessage.type.d.ts +3 -0
  1070. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityBookableChangedMessage.type.js +2 -0
  1071. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNotCompliantAnymoreMessage.type.d.ts +3 -0
  1072. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNotCompliantAnymoreMessage.type.js +2 -0
  1073. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNowCompliantMessage.type.d.ts +3 -0
  1074. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityIsNowCompliantMessage.type.js +2 -0
  1075. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityStateRecomputeRequestedMessage.type.d.ts +3 -0
  1076. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderEntityStateRecomputeRequestedMessage.type.js +2 -0
  1077. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderUserComplianceRecomputeRequestedMessage.type.d.ts +4 -0
  1078. package/dist/gcp/pubsub/types/entities/PubSubServiceProviderUserComplianceRecomputeRequestedMessage.type.js +2 -0
  1079. package/dist/gcp/pubsub/types/entities/index.d.ts +2 -0
  1080. package/dist/gcp/pubsub/types/entities/index.js +2 -0
  1081. package/dist/gcp/pubsub/types/index.d.ts +1 -0
  1082. package/dist/gcp/pubsub/types/index.js +1 -0
  1083. package/dist/gcp/pubsub/types/orders/PubSubOrderExternalRefundFailedMessage.type.d.ts +5 -0
  1084. package/dist/gcp/pubsub/types/orders/PubSubOrderExternalRefundFailedMessage.type.js +2 -0
  1085. package/dist/gcp/pubsub/types/orders/PubSubOrderExternalRefundSucceededMessage.type.d.ts +5 -0
  1086. package/dist/gcp/pubsub/types/orders/PubSubOrderExternalRefundSucceededMessage.type.js +2 -0
  1087. package/dist/gcp/pubsub/types/orders/PubSubOrderInvoicedMessage.type.d.ts +3 -0
  1088. package/dist/gcp/pubsub/types/orders/PubSubOrderInvoicedMessage.type.js +2 -0
  1089. package/dist/gcp/pubsub/types/orders/PubSubOrderOperationalStateRecomputeRequestedMessage.type.d.ts +3 -0
  1090. package/dist/gcp/pubsub/types/orders/PubSubOrderOperationalStateRecomputeRequestedMessage.type.js +2 -0
  1091. package/dist/gcp/pubsub/types/orders/PubSubOrderRefundRequestedMessage.type.d.ts +3 -0
  1092. package/dist/gcp/pubsub/types/orders/PubSubOrderRefundRequestedMessage.type.js +2 -0
  1093. package/dist/gcp/pubsub/types/orders/PubSubProcessOrderRefundIntentMessage.type.d.ts +4 -0
  1094. package/dist/gcp/pubsub/types/orders/PubSubProcessOrderRefundIntentMessage.type.js +2 -0
  1095. package/dist/gcp/pubsub/types/orders/index.d.ts +5 -2
  1096. package/dist/gcp/pubsub/types/orders/index.js +5 -2
  1097. package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderBookedSlotReleaseRequestedMessage.type.d.ts +10 -0
  1098. package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderBookedSlotReleaseRequestedMessage.type.js +2 -0
  1099. package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileRecomputeRequestedMessage.type.d.ts +3 -0
  1100. package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileRecomputeRequestedMessage.type.js +2 -0
  1101. package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileResyncRequestedMessage.type.d.ts +3 -0
  1102. package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderPublicProfileResyncRequestedMessage.type.js +2 -0
  1103. package/dist/gcp/pubsub/types/serviceProvider/index.d.ts +2 -0
  1104. package/dist/gcp/pubsub/types/serviceProvider/index.js +18 -0
  1105. package/dist/gcp/pubsub/types/wallets/PubSubProcessWalletWithdrawalRequestMessage.type.d.ts +2 -0
  1106. package/dist/gcp/pubsub/types/wallets/PubSubWalletWithdrawalFailedMessage.type.d.ts +2 -0
  1107. package/dist/gcp/pubsub/types/wallets/PubSubWalletWithdrawalSucceededMessage.type.d.ts +2 -0
  1108. package/dist/gcp/pubsub/utils/stubs/entities/index.d.ts +2 -0
  1109. package/dist/gcp/pubsub/utils/stubs/entities/index.js +2 -0
  1110. package/dist/gcp/pubsub/utils/stubs/entities/pubSubEntityMemberProjectionResyncRequestedMessageStub.d.ts +2 -0
  1111. package/dist/gcp/pubsub/utils/stubs/entities/pubSubEntityMemberProjectionResyncRequestedMessageStub.js +10 -0
  1112. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityBookableChangedMessageStub.d.ts +2 -0
  1113. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityBookableChangedMessageStub.js +9 -0
  1114. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNotCompliantAnymoreMessageStub.d.ts +2 -0
  1115. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNotCompliantAnymoreMessageStub.js +9 -0
  1116. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNowCompliantMessageStub.d.ts +2 -0
  1117. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityIsNowCompliantMessageStub.js +9 -0
  1118. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityStateRecomputeRequestedMessageStub.d.ts +2 -0
  1119. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderEntityStateRecomputeRequestedMessageStub.js +9 -0
  1120. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderUserComplianceRecomputeRequestedMessageStub.d.ts +2 -0
  1121. package/dist/gcp/pubsub/utils/stubs/entities/pubSubServiceProviderUserComplianceRecomputeRequestedMessageStub.js +10 -0
  1122. package/dist/gcp/pubsub/utils/stubs/index.d.ts +6 -1
  1123. package/dist/gcp/pubsub/utils/stubs/index.js +6 -1
  1124. package/dist/gcp/pubsub/utils/stubs/pubSubOrderExternalRefundFailedMessageStub.d.ts +2 -0
  1125. package/dist/gcp/pubsub/utils/stubs/pubSubOrderExternalRefundFailedMessageStub.js +11 -0
  1126. package/dist/gcp/pubsub/utils/stubs/pubSubOrderExternalRefundSucceededMessageStub.d.ts +2 -0
  1127. package/dist/gcp/pubsub/utils/stubs/pubSubOrderExternalRefundSucceededMessageStub.js +11 -0
  1128. package/dist/gcp/pubsub/utils/stubs/pubSubOrderInvoicedMessageStub.d.ts +2 -0
  1129. package/dist/gcp/pubsub/utils/stubs/pubSubOrderInvoicedMessageStub.js +9 -0
  1130. package/dist/gcp/pubsub/utils/stubs/pubSubOrderOperationalStateRecomputeRequestedMessageStub.d.ts +2 -0
  1131. package/dist/gcp/pubsub/utils/stubs/pubSubOrderOperationalStateRecomputeRequestedMessageStub.js +9 -0
  1132. package/dist/gcp/pubsub/utils/stubs/pubSubOrderRefundRequestedMessageStub.d.ts +2 -0
  1133. package/dist/gcp/pubsub/utils/stubs/pubSubOrderRefundRequestedMessageStub.js +9 -0
  1134. package/dist/gcp/pubsub/utils/stubs/pubSubProcessOrderRefundIntentMessageStub.d.ts +2 -0
  1135. package/dist/gcp/pubsub/utils/stubs/pubSubProcessOrderRefundIntentMessageStub.js +10 -0
  1136. package/dist/gcp/pubsub/utils/stubs/serviceProvider/index.d.ts +2 -0
  1137. package/dist/gcp/pubsub/utils/stubs/serviceProvider/index.js +18 -0
  1138. package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderBookedSlotReleaseRequestedMessageStub.d.ts +2 -0
  1139. package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderBookedSlotReleaseRequestedMessageStub.js +15 -0
  1140. package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileRecomputeRequestedMessageStub.d.ts +2 -0
  1141. package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileRecomputeRequestedMessageStub.js +9 -0
  1142. package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileResyncRequestedMessageStub.d.ts +2 -0
  1143. package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderPublicProfileResyncRequestedMessageStub.js +9 -0
  1144. package/dist/gcp/pubsub/utils/stubs/wallets/pubSubProcessWalletWithdrawalRequestMessageStub.js +2 -0
  1145. package/dist/gcp/pubsub/utils/stubs/wallets/pubSubWalletWithdrawalFailedMessageStub.js +2 -0
  1146. package/dist/gcp/pubsub/utils/stubs/wallets/pubSubWalletWithdrawalSucceededMessageStub.js +2 -0
  1147. package/dist/gcp/types/GoogleAddressComponent.type.d.ts +6 -0
  1148. package/dist/gcp/types/GoogleAddressComponent.type.js +2 -0
  1149. package/dist/gcp/types/index.d.ts +1 -0
  1150. package/dist/gcp/types/index.js +17 -0
  1151. package/dist/gcp/utils/__tests__/getGoogleAddressComponentFromAddressComponentsList.test.d.ts +1 -0
  1152. package/dist/gcp/utils/__tests__/getGoogleAddressComponentFromAddressComponentsList.test.js +78 -0
  1153. package/dist/gcp/utils/getGoogleAddressComponentFromAddressComponentsList.d.ts +3 -0
  1154. package/dist/gcp/utils/getGoogleAddressComponentFromAddressComponentsList.js +6 -0
  1155. package/dist/gcp/utils/index.d.ts +2 -0
  1156. package/dist/gcp/utils/index.js +18 -0
  1157. package/dist/gcp/utils/types/GetGoogleAddressComponentFromAddressComponentsListParams.type.d.ts +6 -0
  1158. package/dist/gcp/utils/types/GetGoogleAddressComponentFromAddressComponentsListParams.type.js +2 -0
  1159. package/dist/gcp/utils/types/index.d.ts +1 -0
  1160. package/dist/gcp/utils/types/index.js +17 -0
  1161. package/dist/notifications/enums/CompanyNotificationEventType.d.ts +4 -0
  1162. package/dist/notifications/enums/CompanyNotificationEventType.js +8 -0
  1163. package/dist/notifications/enums/EntityNotificationEventType.d.ts +4 -1
  1164. package/dist/notifications/enums/EntityNotificationEventType.js +3 -0
  1165. package/dist/notifications/enums/NotificationChannels.enum.d.ts +5 -0
  1166. package/dist/notifications/enums/NotificationChannels.enum.js +9 -0
  1167. package/dist/notifications/enums/NotificationEventCategory.d.ts +4 -0
  1168. package/dist/notifications/enums/NotificationEventCategory.js +8 -0
  1169. package/dist/notifications/enums/ProfessionalNotificationEventType.d.ts +1 -2
  1170. package/dist/notifications/enums/ProfessionalNotificationEventType.js +0 -1
  1171. package/dist/notifications/enums/index.d.ts +1 -0
  1172. package/dist/notifications/enums/index.js +1 -0
  1173. package/dist/notifications/pushNotifications/enums/CompanyPushNotificationType.d.ts +4 -0
  1174. package/dist/notifications/pushNotifications/enums/CompanyPushNotificationType.js +8 -0
  1175. package/dist/notifications/pushNotifications/maps/CompanyPushNotificationDataMap.d.ts +1 -0
  1176. package/dist/notifications/pushNotifications/maps/CompanyPushNotificationDataMap.js +2 -0
  1177. package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationFailedPushNotificationData.type.d.ts +4 -0
  1178. package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationFailedPushNotificationData.type.js +2 -0
  1179. package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationSucceededPushNotificationData.type.d.ts +4 -0
  1180. package/dist/notifications/pushNotifications/types/company/CompanyVatVerificationSucceededPushNotificationData.type.js +2 -0
  1181. package/dist/notifications/pushNotifications/types/company/index.d.ts +2 -0
  1182. package/dist/notifications/pushNotifications/types/company/index.js +18 -0
  1183. package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationFailedPushNotificationData.type.d.ts +4 -0
  1184. package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationFailedPushNotificationData.type.js +2 -0
  1185. package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationSucceededPushNotificationData.type.d.ts +4 -0
  1186. package/dist/notifications/pushNotifications/types/customer/CustomerEntityVatVerificationSucceededPushNotificationData.type.js +2 -0
  1187. package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationFailedPushNotificationData.type.d.ts +4 -0
  1188. package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationFailedPushNotificationData.type.js +2 -0
  1189. package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationSucceededPushNotificationData.type.d.ts +4 -0
  1190. package/dist/notifications/pushNotifications/types/professional/ProfessionalEntityVatVerificationSucceededPushNotificationData.type.js +2 -0
  1191. package/dist/pricing/__tests__/calculateInvoiceTotalWithTax.test.d.ts +1 -0
  1192. package/dist/pricing/__tests__/calculateInvoiceTotalWithTax.test.js +955 -0
  1193. package/dist/pricing/__tests__/calculateInvoiceTotalWithTax.util.test.js +20 -20
  1194. package/dist/pricing/__tests__/computeOrderPaymentBreakdownWithPlatformBalance.test.d.ts +1 -0
  1195. package/dist/pricing/__tests__/computeOrderPaymentBreakdownWithPlatformBalance.test.js +58 -0
  1196. package/dist/pricing/__tests__/computeOrderPaymentBreakdownWithPlatformBalance.util.test.d.ts +1 -0
  1197. package/dist/pricing/__tests__/computeOrderPaymentBreakdownWithPlatformBalance.util.test.js +58 -0
  1198. package/dist/pricing/calculateInvoiceTotalWithTax.d.ts +1 -1
  1199. package/dist/pricing/calculateInvoiceTotalWithTax.js +2 -2
  1200. package/dist/pricing/computeOrderPaymentBreakdownWithPlatformBalance.d.ts +6 -0
  1201. package/dist/pricing/computeOrderPaymentBreakdownWithPlatformBalance.js +22 -0
  1202. package/dist/pricing/index.d.ts +1 -0
  1203. package/dist/pricing/index.js +1 -0
  1204. package/dist/pricing/types/CalculateInvoiceTotalsWithTaxParams.type.d.ts +1 -1
  1205. package/dist/pricing/types/ComputeOrderPaymentBreakdownWithPlatformBalanceParams.type.d.ts +5 -0
  1206. package/dist/pricing/types/ComputeOrderPaymentBreakdownWithPlatformBalanceParams.type.js +2 -0
  1207. package/dist/pricing/types/ComputeOrderPaymentBreakdownWithPlatformBalanceResult.type.d.ts +6 -0
  1208. package/dist/pricing/types/ComputeOrderPaymentBreakdownWithPlatformBalanceResult.type.js +2 -0
  1209. package/dist/pricing/types/index.d.ts +2 -0
  1210. package/dist/pricing/types/index.js +2 -0
  1211. package/dist/pricing/utils/applyBasisPointsRateHalfUp.util.js +1 -1
  1212. package/dist/pricing/utils/calculateMarketplaceFeeWithTax.util.js +1 -1
  1213. package/dist/pricing/utils/stubs/computeOrderPaymentBreakdownWithPlatformBalanceStub.d.ts +2 -0
  1214. package/dist/pricing/utils/stubs/computeOrderPaymentBreakdownWithPlatformBalanceStub.js +12 -0
  1215. package/dist/pricing/utils/stubs/index.d.ts +1 -0
  1216. package/dist/pricing/utils/stubs/index.js +1 -0
  1217. package/dist/stripe/types/StripeCustomPaymentIntentMetadata.type.d.ts +3 -1
  1218. package/dist/stripe/types/StripeCustomProfessionalPayoutMetadata.type.d.ts +2 -0
  1219. package/dist/stripe/types/StripeCustomRefundMetadata.type.d.ts +8 -0
  1220. package/dist/stripe/types/StripeCustomRefundMetadata.type.js +2 -0
  1221. package/dist/stripe/types/StripeCustomServiceProviderPayoutMetadata.type.d.ts +5 -0
  1222. package/dist/stripe/types/StripeCustomServiceProviderPayoutMetadata.type.js +2 -0
  1223. package/dist/stripe/types/index.d.ts +2 -1
  1224. package/dist/stripe/types/index.js +2 -1
  1225. package/dist/utils/format/__tests__/escapeHtml.test.d.ts +1 -0
  1226. package/dist/utils/format/__tests__/escapeHtml.test.js +32 -0
  1227. package/dist/utils/format/__tests__/formatApproximateAddress.test.d.ts +1 -0
  1228. package/dist/utils/format/__tests__/formatApproximateAddress.test.js +45 -0
  1229. package/dist/utils/format/__tests__/formatFullName.test.d.ts +1 -0
  1230. package/dist/utils/format/__tests__/formatFullName.test.js +20 -0
  1231. package/dist/utils/format/__tests__/formatObfuscatedFullName.test.d.ts +1 -0
  1232. package/dist/utils/format/__tests__/formatObfuscatedFullName.test.js +26 -0
  1233. package/dist/utils/format/__tests__/formatObfuscatedLicensePlate.test.d.ts +1 -0
  1234. package/dist/utils/format/__tests__/formatObfuscatedLicensePlate.test.js +32 -0
  1235. package/dist/utils/format/__tests__/formatPriceInCents.test.d.ts +1 -0
  1236. package/dist/utils/format/__tests__/formatPriceInCents.test.js +34 -0
  1237. package/dist/utils/format/escapeHtml.d.ts +1 -0
  1238. package/dist/utils/format/escapeHtml.js +11 -0
  1239. package/dist/utils/format/formatApproximateAddress.d.ts +2 -0
  1240. package/dist/utils/format/formatApproximateAddress.js +35 -0
  1241. package/dist/utils/format/formatFullName.d.ts +2 -0
  1242. package/dist/utils/format/formatFullName.js +14 -0
  1243. package/dist/utils/format/formatObfuscatedFullName.d.ts +2 -0
  1244. package/dist/utils/format/formatObfuscatedFullName.js +28 -0
  1245. package/dist/utils/format/formatObfuscatedLicensePlate.d.ts +1 -0
  1246. package/dist/utils/format/formatObfuscatedLicensePlate.js +26 -0
  1247. package/dist/utils/format/formatPriceInCents.d.ts +2 -0
  1248. package/dist/utils/format/formatPriceInCents.js +28 -0
  1249. package/dist/utils/format/index.d.ts +7 -2
  1250. package/dist/utils/format/index.js +7 -2
  1251. package/dist/utils/format/types/FormatApproximateAddressParams.type.d.ts +9 -0
  1252. package/dist/utils/format/types/FormatApproximateAddressParams.type.js +2 -0
  1253. package/dist/utils/format/types/FormatFullNameParams.type.d.ts +4 -0
  1254. package/dist/utils/format/types/FormatFullNameParams.type.js +2 -0
  1255. package/dist/utils/format/types/FormatObfuscatedFullNameParams.type.d.ts +4 -0
  1256. package/dist/utils/format/types/FormatObfuscatedFullNameParams.type.js +2 -0
  1257. package/dist/utils/format/types/index.d.ts +3 -0
  1258. package/dist/utils/format/types/index.js +19 -0
  1259. package/dist/utils/vat/__tests__/extractVATNumber.util.test.d.ts +1 -0
  1260. package/dist/utils/vat/__tests__/extractVATNumber.util.test.js +39 -0
  1261. package/dist/utils/vat/__tests__/validateVATFormat.util.test.d.ts +1 -0
  1262. package/dist/utils/vat/__tests__/validateVATFormat.util.test.js +329 -0
  1263. package/dist/utils/vat/extractVATNumber.util.d.ts +4 -0
  1264. package/dist/utils/vat/extractVATNumber.util.js +10 -0
  1265. package/dist/utils/vat/types/ValidateVATFormatArgs.type.d.ts +4 -0
  1266. package/dist/utils/vat/types/ValidateVATFormatArgs.type.js +2 -0
  1267. package/dist/utils/vat/validateVATFormat.util.d.ts +2 -0
  1268. package/dist/utils/vat/validateVATFormat.util.js +24 -0
  1269. package/package.json +1 -1
@@ -0,0 +1,955 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const enums_1 = require("../../enums");
4
+ const firebase_1 = require("../../firebase");
5
+ const calculateInvoiceTotalWithTax_1 = require("../calculateInvoiceTotalWithTax");
6
+ const constants_1 = require("../constants");
7
+ const enums_2 = require("../enums");
8
+ const countriesPricingPublicConfigsMock = (0, firebase_1.countriesPricingPublicConfigStub)({
9
+ [enums_1.SupportedCountryIsoCodes.FRANCE]: {
10
+ currency: enums_1.SupportedIsoCurrency.EUR,
11
+ vatRateBasisPoints: 2_000, // 20%
12
+ marketplaceFeeRateBasisPoints: 1000, // 10%
13
+ minimumMarketplaceFeePreTaxInCents: 300, // 3 EUR
14
+ },
15
+ // [SupportedCountryIsoCodes.SPAIN]: {
16
+ // currency: SupportedIsoCurrency.EUR,
17
+ // vatRateBasisPoints: 2100, // 21%
18
+ // marketplaceFeeRateBasisPoints: 900, // 9%
19
+ // minimumMarketplaceFeePreTaxInCents: 200, // 2 EUR
20
+ // },
21
+ // [SupportedCountryIsoCodes.ITALY]: {
22
+ // currency: SupportedIsoCurrency.EUR,
23
+ // vatRateBasisPoints: 2200, // 22%
24
+ // marketplaceFeeRateBasisPoints: 800, // 8%
25
+ // minimumMarketplaceFeePreTaxInCents: 100, // 1 EUR
26
+ // },
27
+ });
28
+ const serviceOneId = `${firebase_1.ServicesTypes.EXTERIOR_CLEANING}`;
29
+ const serviceTwoId = `${firebase_1.ServicesTypes.INTERIOR_CLEANING}`;
30
+ const BASE_PARAMS = {
31
+ pricingPreTaxLines: [
32
+ {
33
+ id: serviceOneId,
34
+ amountPreTaxInCents: 10_000,
35
+ category: enums_2.PricingLineCategories.SERVICE,
36
+ currency: enums_1.SupportedIsoCurrency.EUR,
37
+ },
38
+ {
39
+ id: serviceTwoId,
40
+ amountPreTaxInCents: 20_000,
41
+ category: enums_2.PricingLineCategories.SERVICE,
42
+ currency: enums_1.SupportedIsoCurrency.EUR,
43
+ },
44
+ ],
45
+ prestationCountry: enums_1.SupportedCountryIsoCodes.FRANCE, // will override per test
46
+ serviceProviderCountry: enums_1.SupportedCountryIsoCodes.FRANCE, // override
47
+ serviceProviderIsVatExempt: false, // override
48
+ customerCountry: enums_1.SupportedCountryIsoCodes.FRANCE, // override
49
+ customerIsSubjectToVat: false, // override
50
+ marketplaceCountry: enums_1.SupportedCountryIsoCodes.FRANCE, // override
51
+ countriesPricingPublicConfigs: countriesPricingPublicConfigsMock,
52
+ };
53
+ const domesticCases = [
54
+ {
55
+ only: false,
56
+ name: "When customer is vat exempted, it should not have an impact on service provider vat and marketplace fee vat because domestic",
57
+ params: {
58
+ ...BASE_PARAMS,
59
+ prestationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
60
+ serviceProviderCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
61
+ serviceProviderIsVatExempt: false,
62
+ customerCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
63
+ customerIsSubjectToVat: false,
64
+ marketplaceCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
65
+ },
66
+ expected: {
67
+ totalServicesPreTaxInCents: 30_000,
68
+ totalServicesPostTaxInCents: 36_000,
69
+ totalServicesVatInCents: 6_000, // 20% of 30_000
70
+ totalMarketplaceFeePreTaxInCents: 3_000, // 10% of 30_000
71
+ totalMarketplaceFeePostTaxInCents: 3_600, // 3_000 + 20 % VAT
72
+ totalMarketplaceFeeVatInCents: 600, // 20% of 3_000
73
+ totalPreTaxInCents: 33_000, // 30_000 + 3_000
74
+ totalVatInCents: 6_600, // 6_000 + 600
75
+ totalPostTaxInCents: 39_600, // 36_000 + 3_600
76
+ pricingPreTaxLines: [
77
+ {
78
+ id: serviceOneId,
79
+ amountPreTaxInCents: 10_000,
80
+ category: enums_2.PricingLineCategories.SERVICE,
81
+ currency: enums_1.SupportedIsoCurrency.EUR,
82
+ },
83
+ {
84
+ id: serviceTwoId,
85
+ amountPreTaxInCents: 20_000,
86
+ category: enums_2.PricingLineCategories.SERVICE,
87
+ currency: enums_1.SupportedIsoCurrency.EUR,
88
+ },
89
+ ],
90
+ pricingPostTaxLines: [
91
+ {
92
+ id: serviceOneId,
93
+ category: enums_2.PricingLineCategories.SERVICE,
94
+ amountPreTaxInCents: 10_000,
95
+ amountPostTaxInCents: 12_000,
96
+ vatAmountInCents: 2_000,
97
+ currency: enums_1.SupportedIsoCurrency.EUR,
98
+ },
99
+ {
100
+ id: serviceTwoId,
101
+ category: enums_2.PricingLineCategories.SERVICE,
102
+ amountPreTaxInCents: 20_000,
103
+ amountPostTaxInCents: 24_000,
104
+ vatAmountInCents: 4_000,
105
+ currency: enums_1.SupportedIsoCurrency.EUR,
106
+ },
107
+ {
108
+ id: constants_1.MARKETPLACE_FEE_LINE_ID,
109
+ category: enums_2.PricingLineCategories.MARKETPLACE_FEE,
110
+ amountPreTaxInCents: 3_000,
111
+ amountPostTaxInCents: 3_600,
112
+ vatAmountInCents: 600,
113
+ currency: enums_1.SupportedIsoCurrency.EUR,
114
+ },
115
+ ],
116
+ serviceTaxApplication: firebase_1.TaxApplication.STANDARD,
117
+ marketplaceFeeTaxApplication: firebase_1.TaxApplication.STANDARD,
118
+ effectiveServiceVatRateBasisPoints: 2_000,
119
+ effectiveMarketplaceFeeVatRateBasisPoints: 2_000,
120
+ calculationVersion: constants_1.PRICING_CALCULATION_VERSION,
121
+ currency: enums_1.SupportedIsoCurrency.EUR,
122
+ },
123
+ },
124
+ {
125
+ only: false,
126
+ name: "service provider not vat exempted, services should be taxed",
127
+ params: {
128
+ ...BASE_PARAMS,
129
+ prestationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
130
+ serviceProviderCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
131
+ serviceProviderIsVatExempt: false,
132
+ customerCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
133
+ customerIsSubjectToVat: true,
134
+ marketplaceCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
135
+ },
136
+ expected: {
137
+ totalServicesPreTaxInCents: 30_000,
138
+ totalServicesPostTaxInCents: 36_000,
139
+ totalServicesVatInCents: 6_000, // 20% of 30_000
140
+ totalMarketplaceFeePreTaxInCents: 3_000, // 10% of 30_000
141
+ totalMarketplaceFeePostTaxInCents: 3_600, // 3_000 + 20 % VAT
142
+ totalMarketplaceFeeVatInCents: 600, // 20% of 3_000
143
+ totalPreTaxInCents: 33_000, // 30_000 + 3_000
144
+ totalVatInCents: 6_600, // 6_000 + 600
145
+ totalPostTaxInCents: 39_600, // 36_000 + 3_600
146
+ pricingPreTaxLines: [
147
+ {
148
+ id: serviceOneId,
149
+ amountPreTaxInCents: 10_000,
150
+ category: enums_2.PricingLineCategories.SERVICE,
151
+ currency: enums_1.SupportedIsoCurrency.EUR,
152
+ },
153
+ {
154
+ id: serviceTwoId,
155
+ amountPreTaxInCents: 20_000,
156
+ category: enums_2.PricingLineCategories.SERVICE,
157
+ currency: enums_1.SupportedIsoCurrency.EUR,
158
+ },
159
+ ],
160
+ pricingPostTaxLines: [
161
+ {
162
+ id: serviceOneId,
163
+ category: enums_2.PricingLineCategories.SERVICE,
164
+ amountPreTaxInCents: 10_000,
165
+ amountPostTaxInCents: 12_000,
166
+ vatAmountInCents: 2_000,
167
+ currency: enums_1.SupportedIsoCurrency.EUR,
168
+ },
169
+ {
170
+ id: serviceTwoId,
171
+ category: enums_2.PricingLineCategories.SERVICE,
172
+ amountPreTaxInCents: 20_000,
173
+ amountPostTaxInCents: 24_000,
174
+ vatAmountInCents: 4_000,
175
+ currency: enums_1.SupportedIsoCurrency.EUR,
176
+ },
177
+ {
178
+ id: constants_1.MARKETPLACE_FEE_LINE_ID,
179
+ category: enums_2.PricingLineCategories.MARKETPLACE_FEE,
180
+ amountPreTaxInCents: 3_000,
181
+ amountPostTaxInCents: 3_600,
182
+ vatAmountInCents: 600,
183
+ currency: enums_1.SupportedIsoCurrency.EUR,
184
+ },
185
+ ],
186
+ serviceTaxApplication: firebase_1.TaxApplication.STANDARD,
187
+ marketplaceFeeTaxApplication: firebase_1.TaxApplication.STANDARD,
188
+ effectiveServiceVatRateBasisPoints: 2_000,
189
+ effectiveMarketplaceFeeVatRateBasisPoints: 2_000,
190
+ calculationVersion: constants_1.PRICING_CALCULATION_VERSION,
191
+ currency: enums_1.SupportedIsoCurrency.EUR,
192
+ },
193
+ },
194
+ {
195
+ name: "negative service line should be treated as 0",
196
+ only: false,
197
+ params: {
198
+ ...BASE_PARAMS,
199
+ pricingPreTaxLines: [
200
+ {
201
+ id: serviceOneId,
202
+ amountPreTaxInCents: -10_000,
203
+ category: enums_2.PricingLineCategories.SERVICE,
204
+ currency: enums_1.SupportedIsoCurrency.EUR,
205
+ },
206
+ {
207
+ id: serviceTwoId,
208
+ amountPreTaxInCents: -5_000,
209
+ category: enums_2.PricingLineCategories.SERVICE,
210
+ currency: enums_1.SupportedIsoCurrency.EUR,
211
+ },
212
+ ],
213
+ prestationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
214
+ serviceProviderCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
215
+ serviceProviderIsVatExempt: false,
216
+ customerCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
217
+ customerIsSubjectToVat: true,
218
+ marketplaceCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
219
+ },
220
+ expected: {
221
+ totalServicesPreTaxInCents: 0,
222
+ totalServicesPostTaxInCents: 0,
223
+ totalServicesVatInCents: 0,
224
+ totalMarketplaceFeePreTaxInCents: 300, // Minimum marketplace fee
225
+ totalMarketplaceFeePostTaxInCents: 360, // 300 + 20 % VAT
226
+ totalMarketplaceFeeVatInCents: 60, // 20% of 300
227
+ totalPreTaxInCents: 300, // 0 + 300
228
+ totalVatInCents: 60, // 0 + 60
229
+ totalPostTaxInCents: 360, // 0 + 360
230
+ pricingPreTaxLines: expect.any(Array),
231
+ pricingPostTaxLines: [
232
+ {
233
+ id: serviceOneId,
234
+ category: enums_2.PricingLineCategories.SERVICE,
235
+ amountPreTaxInCents: 0,
236
+ amountPostTaxInCents: 0,
237
+ vatAmountInCents: 0,
238
+ currency: enums_1.SupportedIsoCurrency.EUR,
239
+ },
240
+ {
241
+ id: serviceTwoId,
242
+ category: enums_2.PricingLineCategories.SERVICE,
243
+ amountPreTaxInCents: 0,
244
+ amountPostTaxInCents: 0,
245
+ vatAmountInCents: 0,
246
+ currency: enums_1.SupportedIsoCurrency.EUR,
247
+ },
248
+ {
249
+ id: constants_1.MARKETPLACE_FEE_LINE_ID,
250
+ category: enums_2.PricingLineCategories.MARKETPLACE_FEE,
251
+ amountPreTaxInCents: 300,
252
+ amountPostTaxInCents: 360,
253
+ vatAmountInCents: 60,
254
+ currency: enums_1.SupportedIsoCurrency.EUR,
255
+ },
256
+ ],
257
+ serviceTaxApplication: firebase_1.TaxApplication.STANDARD,
258
+ marketplaceFeeTaxApplication: firebase_1.TaxApplication.STANDARD,
259
+ effectiveServiceVatRateBasisPoints: 2_000,
260
+ effectiveMarketplaceFeeVatRateBasisPoints: 2_000,
261
+ calculationVersion: constants_1.PRICING_CALCULATION_VERSION,
262
+ currency: enums_1.SupportedIsoCurrency.EUR,
263
+ },
264
+ },
265
+ {
266
+ name: "minimum marketplace fee > marketplace fee rate, it should apply minimum marketplace fee",
267
+ only: false,
268
+ params: {
269
+ ...BASE_PARAMS,
270
+ pricingPreTaxLines: [
271
+ {
272
+ id: serviceOneId,
273
+ amountPreTaxInCents: 100,
274
+ category: enums_2.PricingLineCategories.SERVICE,
275
+ currency: enums_1.SupportedIsoCurrency.EUR,
276
+ },
277
+ {
278
+ id: serviceTwoId,
279
+ amountPreTaxInCents: 150,
280
+ category: enums_2.PricingLineCategories.SERVICE,
281
+ currency: enums_1.SupportedIsoCurrency.EUR,
282
+ },
283
+ ],
284
+ prestationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
285
+ serviceProviderCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
286
+ serviceProviderIsVatExempt: false,
287
+ customerCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
288
+ customerIsSubjectToVat: true,
289
+ marketplaceCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
290
+ },
291
+ expected: {
292
+ totalServicesPreTaxInCents: 250,
293
+ totalServicesPostTaxInCents: 300, // 250 + 50 VAT
294
+ totalServicesVatInCents: 50, // 20% of 250
295
+ totalMarketplaceFeePreTaxInCents: 300, // Minimum marketplace fee
296
+ totalMarketplaceFeePostTaxInCents: 360, // 300 + 20 % VAT
297
+ totalMarketplaceFeeVatInCents: 60, // 20% of 300
298
+ totalPreTaxInCents: 550, // 250 + 300
299
+ totalVatInCents: 110, // 50 + 60
300
+ totalPostTaxInCents: 660, // 300 + 360
301
+ pricingPreTaxLines: expect.any(Array),
302
+ pricingPostTaxLines: [
303
+ {
304
+ amountPostTaxInCents: 120, // 100 + 20% VAT
305
+ amountPreTaxInCents: 100,
306
+ id: serviceOneId,
307
+ vatAmountInCents: 20,
308
+ category: enums_2.PricingLineCategories.SERVICE,
309
+ currency: enums_1.SupportedIsoCurrency.EUR,
310
+ },
311
+ {
312
+ amountPostTaxInCents: 180, // 150 + 20% VAT
313
+ amountPreTaxInCents: 150,
314
+ id: serviceTwoId,
315
+ vatAmountInCents: 30,
316
+ category: enums_2.PricingLineCategories.SERVICE,
317
+ currency: enums_1.SupportedIsoCurrency.EUR,
318
+ },
319
+ {
320
+ id: constants_1.MARKETPLACE_FEE_LINE_ID,
321
+ category: enums_2.PricingLineCategories.MARKETPLACE_FEE,
322
+ amountPreTaxInCents: 300,
323
+ amountPostTaxInCents: 360,
324
+ vatAmountInCents: 60,
325
+ currency: enums_1.SupportedIsoCurrency.EUR,
326
+ },
327
+ ],
328
+ serviceTaxApplication: firebase_1.TaxApplication.STANDARD,
329
+ marketplaceFeeTaxApplication: firebase_1.TaxApplication.STANDARD,
330
+ effectiveServiceVatRateBasisPoints: 2_000,
331
+ effectiveMarketplaceFeeVatRateBasisPoints: 2_000,
332
+ calculationVersion: constants_1.PRICING_CALCULATION_VERSION,
333
+ currency: enums_1.SupportedIsoCurrency.EUR,
334
+ },
335
+ },
336
+ {
337
+ name: "minimum marketplace fee < marketplace fee rate, it should apply marketplace fee rate",
338
+ only: false,
339
+ params: {
340
+ ...BASE_PARAMS,
341
+ pricingPreTaxLines: [
342
+ {
343
+ id: serviceOneId,
344
+ amountPreTaxInCents: 5000,
345
+ category: enums_2.PricingLineCategories.SERVICE,
346
+ currency: enums_1.SupportedIsoCurrency.EUR,
347
+ },
348
+ ],
349
+ prestationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
350
+ serviceProviderCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
351
+ serviceProviderIsVatExempt: false,
352
+ customerCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
353
+ customerIsSubjectToVat: true,
354
+ marketplaceCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
355
+ },
356
+ expected: {
357
+ totalServicesPreTaxInCents: 5000,
358
+ totalServicesPostTaxInCents: 6000, // 5000 + 1000 VAT
359
+ totalServicesVatInCents: 1000, // 20% of 5000
360
+ totalMarketplaceFeePreTaxInCents: 500, // 10 % marketplace fee rate
361
+ totalMarketplaceFeePostTaxInCents: 600, // 500 + 20 % VAT
362
+ totalMarketplaceFeeVatInCents: 100, // 20% of 500
363
+ totalPreTaxInCents: 5500, // 5000 + 500
364
+ totalVatInCents: 1100, // 1000 + 100
365
+ totalPostTaxInCents: 6600, // 6000 + 600
366
+ pricingPreTaxLines: expect.any(Array),
367
+ pricingPostTaxLines: [
368
+ {
369
+ amountPostTaxInCents: 6000, // 5000 + 20% VAT
370
+ amountPreTaxInCents: 5000,
371
+ id: serviceOneId,
372
+ vatAmountInCents: 1000,
373
+ category: enums_2.PricingLineCategories.SERVICE,
374
+ currency: enums_1.SupportedIsoCurrency.EUR,
375
+ },
376
+ {
377
+ id: constants_1.MARKETPLACE_FEE_LINE_ID,
378
+ category: enums_2.PricingLineCategories.MARKETPLACE_FEE,
379
+ amountPreTaxInCents: 500,
380
+ amountPostTaxInCents: 600,
381
+ vatAmountInCents: 100,
382
+ currency: enums_1.SupportedIsoCurrency.EUR,
383
+ },
384
+ ],
385
+ serviceTaxApplication: firebase_1.TaxApplication.STANDARD,
386
+ marketplaceFeeTaxApplication: firebase_1.TaxApplication.STANDARD,
387
+ effectiveServiceVatRateBasisPoints: 2_000,
388
+ effectiveMarketplaceFeeVatRateBasisPoints: 2_000,
389
+ calculationVersion: constants_1.PRICING_CALCULATION_VERSION,
390
+ currency: enums_1.SupportedIsoCurrency.EUR,
391
+ },
392
+ },
393
+ {
394
+ name: "service provider vat exempted, services should not be taxed, only marketplace fees",
395
+ only: false,
396
+ params: {
397
+ ...BASE_PARAMS,
398
+ prestationCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
399
+ serviceProviderCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
400
+ serviceProviderIsVatExempt: true,
401
+ customerCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
402
+ customerIsSubjectToVat: true,
403
+ marketplaceCountry: enums_1.SupportedCountryIsoCodes.FRANCE,
404
+ },
405
+ expected: {
406
+ totalServicesPreTaxInCents: 30_000,
407
+ totalServicesPostTaxInCents: 30_000,
408
+ totalServicesVatInCents: 0, // exemption override
409
+ totalMarketplaceFeePreTaxInCents: 3_000, // 10% of 30_000
410
+ totalMarketplaceFeePostTaxInCents: 3_600, // 3_000 + 20 % VAT
411
+ totalMarketplaceFeeVatInCents: 600, // 20% of 3_000
412
+ totalPreTaxInCents: 33_000, // 30_000 + 3_000
413
+ totalVatInCents: 600, // 0 + 600
414
+ totalPostTaxInCents: 33_600, // 30_000 + 3_600
415
+ pricingPreTaxLines: expect.any(Array),
416
+ pricingPostTaxLines: [
417
+ {
418
+ amountPostTaxInCents: 10_000,
419
+ amountPreTaxInCents: 10_000,
420
+ id: serviceOneId,
421
+ vatAmountInCents: 0,
422
+ category: enums_2.PricingLineCategories.SERVICE,
423
+ currency: enums_1.SupportedIsoCurrency.EUR,
424
+ },
425
+ {
426
+ amountPostTaxInCents: 20_000,
427
+ amountPreTaxInCents: 20_000,
428
+ id: serviceTwoId,
429
+ vatAmountInCents: 0,
430
+ category: enums_2.PricingLineCategories.SERVICE,
431
+ currency: enums_1.SupportedIsoCurrency.EUR,
432
+ },
433
+ {
434
+ id: constants_1.MARKETPLACE_FEE_LINE_ID,
435
+ category: enums_2.PricingLineCategories.MARKETPLACE_FEE,
436
+ amountPreTaxInCents: 3_000,
437
+ amountPostTaxInCents: 3_600,
438
+ vatAmountInCents: 600,
439
+ currency: enums_1.SupportedIsoCurrency.EUR,
440
+ },
441
+ ],
442
+ serviceTaxApplication: firebase_1.TaxApplication.EXEMPT,
443
+ marketplaceFeeTaxApplication: firebase_1.TaxApplication.STANDARD,
444
+ effectiveServiceVatRateBasisPoints: 0,
445
+ effectiveMarketplaceFeeVatRateBasisPoints: 2_000,
446
+ calculationVersion: constants_1.PRICING_CALCULATION_VERSION,
447
+ currency: enums_1.SupportedIsoCurrency.EUR,
448
+ },
449
+ },
450
+ ];
451
+ const domesticCasesHasOnly = domesticCases.some((c) => c.only);
452
+ const filteredDomesticCases = domesticCasesHasOnly
453
+ ? domesticCases.filter((c) => c.only)
454
+ : domesticCases;
455
+ // const crossBorderEuCases: Case[] = [
456
+ // {
457
+ // name: "🇪🇸 Pro vat exempted, services should not be taxed.",
458
+ // only: false,
459
+ // params: {
460
+ // ...BASE_PARAMS,
461
+ // prestationCountry: SupportedCountryIsoCodes.SPAIN,
462
+ // serviceProviderCountry: SupportedCountryIsoCodes.SPAIN,
463
+ // serviceProviderIsVatExempt: true,
464
+ // customerCountry: SupportedCountryIsoCodes.SPAIN,
465
+ // customerIsSubjectToVat: false,
466
+ // marketplaceCountry: SupportedCountryIsoCodes.FRANCE,
467
+ // },
468
+ // expected: {
469
+ // totalServicesPreTaxInCents: 30_000,
470
+ // totalServicesPostTaxInCents: 30_000,
471
+ // totalServicesVatInCents: 0,
472
+ // totalMarketplaceFeePreTaxInCents: 2_700, // Spanish 9% of 30_000
473
+ // totalMarketplaceFeePostTaxInCents: 3_267, // VAT for fees as customer is not vat exempted
474
+ // totalMarketplaceFeeVatInCents: 567, // 21% of 2_700
475
+ // totalPreTaxInCents: 32_700, // 30_000 + 2_700
476
+ // totalVatInCents: 567, // 0 + 567
477
+ // totalPostTaxInCents: 33_267, // 32_700 + 567
478
+ // pricingPreTaxLines: expect.any(Array),
479
+ // pricingPostTaxLines: [
480
+ // {
481
+ // amountPostTaxInCents: 10_000,
482
+ // amountPreTaxInCents: 10_000,
483
+ // id: serviceOneId,
484
+ // vatAmountInCents: 0,
485
+ // category: PricingLineCategories.SERVICE,
486
+ // currency: SupportedIsoCurrency.EUR,
487
+ // },
488
+ // {
489
+ // amountPostTaxInCents: 20_000,
490
+ // amountPreTaxInCents: 20_000,
491
+ // id: serviceTwoId,
492
+ // vatAmountInCents: 0,
493
+ // category: PricingLineCategories.SERVICE,
494
+ // currency: SupportedIsoCurrency.EUR,
495
+ // },
496
+ // {
497
+ // id: MARKETPLACE_FEE_LINE_ID,
498
+ // category: PricingLineCategories.MARKETPLACE_FEE,
499
+ // amountPreTaxInCents: 2_700,
500
+ // amountPostTaxInCents: 3_267,
501
+ // vatAmountInCents: 567,
502
+ // currency: SupportedIsoCurrency.EUR,
503
+ // },
504
+ // ],
505
+ // serviceReverseChargeApplied: false, // Never apply when service is physically executed
506
+ // feeReverseChargeApplied: false, // cross-border within EU
507
+ // effectiveServiceVatRateBasisPoints: 0,
508
+ // effectiveMarketplaceFeeVatRateBasisPoints: 2_100, // Spanish 21% VAT
509
+ // currency: SupportedIsoCurrency.EUR,
510
+ // },
511
+ // },
512
+ // {
513
+ // name: "🇪🇸 Pro NOT vat exempted, services should be taxed with local vat (spain).",
514
+ // only: false,
515
+ // params: {
516
+ // ...BASE_PARAMS,
517
+ // prestationCountry: SupportedCountryIsoCodes.SPAIN,
518
+ // serviceProviderCountry: SupportedCountryIsoCodes.SPAIN,
519
+ // serviceProviderIsVatExempt: false,
520
+ // customerCountry: SupportedCountryIsoCodes.SPAIN,
521
+ // customerIsSubjectToVat: false,
522
+ // marketplaceCountry: SupportedCountryIsoCodes.FRANCE,
523
+ // },
524
+ // expected: {
525
+ // totalServicesPreTaxInCents: 30_000,
526
+ // totalServicesPostTaxInCents: 36_300, // 30_000 + 21% VAT
527
+ // totalServicesVatInCents: 6_300,
528
+ // totalMarketplaceFeePreTaxInCents: 2_700, // Spanish 9% of 30_000
529
+ // totalMarketplaceFeePostTaxInCents: 3_267, // VAT for fees as customer is not vat exempted
530
+ // totalMarketplaceFeeVatInCents: 567, // 21% of 2_700
531
+ // totalPreTaxInCents: 32_700, // 30_000 + 2_700
532
+ // totalVatInCents: 6_867, // 6_300 + 567
533
+ // totalPostTaxInCents: 39_567, // 32_700 + 6_867
534
+ // pricingPreTaxLines: expect.any(Array),
535
+ // pricingPostTaxLines: [
536
+ // {
537
+ // amountPostTaxInCents: 12_100,
538
+ // amountPreTaxInCents: 10_000,
539
+ // id: serviceOneId,
540
+ // vatAmountInCents: 2_100,
541
+ // category: PricingLineCategories.SERVICE,
542
+ // currency: SupportedIsoCurrency.EUR,
543
+ // },
544
+ // {
545
+ // amountPostTaxInCents: 24_200, // 20_000 + 21% VAT
546
+ // amountPreTaxInCents: 20_000,
547
+ // id: serviceTwoId,
548
+ // vatAmountInCents: 4_200,
549
+ // category: PricingLineCategories.SERVICE,
550
+ // currency: SupportedIsoCurrency.EUR,
551
+ // },
552
+ // {
553
+ // id: MARKETPLACE_FEE_LINE_ID,
554
+ // category: PricingLineCategories.MARKETPLACE_FEE,
555
+ // amountPreTaxInCents: 2_700,
556
+ // amountPostTaxInCents: 3_267,
557
+ // vatAmountInCents: 567,
558
+ // currency: SupportedIsoCurrency.EUR,
559
+ // },
560
+ // ],
561
+ // serviceReverseChargeApplied: false, // Never apply when service is physically executed
562
+ // feeReverseChargeApplied: false, // cross-border within EU
563
+ // effectiveServiceVatRateBasisPoints: 2_100, // Spanish 21% VAT
564
+ // effectiveMarketplaceFeeVatRateBasisPoints: 2_100, // Spanish 21% VAT
565
+ // currency: SupportedIsoCurrency.EUR,
566
+ // },
567
+ // },
568
+ // {
569
+ // name: "🇪🇸 Customer is subject to VAT, reverse charge should apply to marketplace fees",
570
+ // only: false,
571
+ // params: {
572
+ // ...BASE_PARAMS,
573
+ // prestationCountry: SupportedCountryIsoCodes.SPAIN,
574
+ // serviceProviderCountry: SupportedCountryIsoCodes.SPAIN,
575
+ // serviceProviderIsVatExempt: true,
576
+ // customerCountry: SupportedCountryIsoCodes.SPAIN,
577
+ // customerIsSubjectToVat: true,
578
+ // marketplaceCountry: SupportedCountryIsoCodes.FRANCE,
579
+ // },
580
+ // expected: {
581
+ // totalServicesPreTaxInCents: 30_000,
582
+ // totalServicesPostTaxInCents: 30_000,
583
+ // totalServicesVatInCents: 0,
584
+ // totalMarketplaceFeePreTaxInCents: 2_700, // Spanish 9% of 30_000
585
+ // totalMarketplaceFeePostTaxInCents: 2_700, // Reverse charge applies, no VAT
586
+ // totalMarketplaceFeeVatInCents: 0, // No VAT due to reverse charge
587
+ // totalPreTaxInCents: 32_700, // 30_000 + 2_700
588
+ // totalVatInCents: 0, // 0
589
+ // totalPostTaxInCents: 32_700, // 32_700 + 0
590
+ // pricingPreTaxLines: expect.any(Array),
591
+ // pricingPostTaxLines: [
592
+ // {
593
+ // amountPostTaxInCents: 10_000,
594
+ // amountPreTaxInCents: 10_000,
595
+ // id: serviceOneId,
596
+ // vatAmountInCents: 0,
597
+ // category: PricingLineCategories.SERVICE,
598
+ // currency: SupportedIsoCurrency.EUR,
599
+ // },
600
+ // {
601
+ // amountPostTaxInCents: 20_000,
602
+ // amountPreTaxInCents: 20_000,
603
+ // id: serviceTwoId,
604
+ // vatAmountInCents: 0,
605
+ // category: PricingLineCategories.SERVICE,
606
+ // currency: SupportedIsoCurrency.EUR,
607
+ // },
608
+ // {
609
+ // id: MARKETPLACE_FEE_LINE_ID,
610
+ // category: PricingLineCategories.MARKETPLACE_FEE,
611
+ // amountPreTaxInCents: 2_700,
612
+ // amountPostTaxInCents: 2_700,
613
+ // vatAmountInCents: 0,
614
+ // currency: SupportedIsoCurrency.EUR,
615
+ // },
616
+ // ],
617
+ // serviceReverseChargeApplied: false, // Never apply when service is physically executed
618
+ // feeReverseChargeApplied: true, // cross-border within EU
619
+ // effectiveServiceVatRateBasisPoints: 0,
620
+ // effectiveMarketplaceFeeVatRateBasisPoints: 0, // Reverse charge applies, no VAT
621
+ // currency: SupportedIsoCurrency.EUR,
622
+ // },
623
+ // },
624
+ // {
625
+ // name: "🇪🇸 Customer not subject to VAT, VAT should apply on marketplace fees (Spain vat)",
626
+ // only: false,
627
+ // params: {
628
+ // ...BASE_PARAMS,
629
+ // prestationCountry: SupportedCountryIsoCodes.SPAIN,
630
+ // serviceProviderCountry: SupportedCountryIsoCodes.SPAIN,
631
+ // serviceProviderIsVatExempt: true,
632
+ // customerCountry: SupportedCountryIsoCodes.SPAIN,
633
+ // customerIsSubjectToVat: false,
634
+ // marketplaceCountry: SupportedCountryIsoCodes.FRANCE,
635
+ // },
636
+ // expected: {
637
+ // totalServicesPreTaxInCents: 30_000,
638
+ // totalServicesPostTaxInCents: 30_000,
639
+ // totalServicesVatInCents: 0,
640
+ // totalMarketplaceFeePreTaxInCents: 2_700, // Spanish 9% of 30_000
641
+ // totalMarketplaceFeePostTaxInCents: 3_267, // 2_700 + 21% VAT
642
+ // totalMarketplaceFeeVatInCents: 567, // 21% of 2_700
643
+ // totalPreTaxInCents: 32_700, // 30_000 + 2_700
644
+ // totalVatInCents: 567, // 0 + 567
645
+ // totalPostTaxInCents: 33_267, // 32_700 + 567
646
+ // pricingPreTaxLines: expect.any(Array),
647
+ // pricingPostTaxLines: [
648
+ // {
649
+ // amountPostTaxInCents: 10_000,
650
+ // amountPreTaxInCents: 10_000,
651
+ // id: serviceOneId,
652
+ // vatAmountInCents: 0,
653
+ // category: PricingLineCategories.SERVICE,
654
+ // currency: SupportedIsoCurrency.EUR,
655
+ // },
656
+ // {
657
+ // amountPostTaxInCents: 20_000,
658
+ // amountPreTaxInCents: 20_000,
659
+ // id: serviceTwoId,
660
+ // vatAmountInCents: 0,
661
+ // category: PricingLineCategories.SERVICE,
662
+ // currency: SupportedIsoCurrency.EUR,
663
+ // },
664
+ // {
665
+ // id: MARKETPLACE_FEE_LINE_ID,
666
+ // category: PricingLineCategories.MARKETPLACE_FEE,
667
+ // amountPreTaxInCents: 2_700,
668
+ // amountPostTaxInCents: 3_267,
669
+ // vatAmountInCents: 567, // 21% VAT
670
+ // currency: SupportedIsoCurrency.EUR,
671
+ // },
672
+ // ],
673
+ // serviceReverseChargeApplied: false, // Never apply when service is physically executed
674
+ // feeReverseChargeApplied: false, // cross-border within EU
675
+ // effectiveServiceVatRateBasisPoints: 0,
676
+ // effectiveMarketplaceFeeVatRateBasisPoints: 2_100, // VAT of spain
677
+ // currency: SupportedIsoCurrency.EUR,
678
+ // },
679
+ // },
680
+ // ];
681
+ // const crossBorderEuCasesHasOnly = crossBorderEuCases.some((c) => c.only);
682
+ // const filteredCrossBorderEuCases = crossBorderEuCasesHasOnly
683
+ // ? crossBorderEuCases.filter((c) => c.only)
684
+ // : crossBorderEuCases;
685
+ describe("calculateInvoiceTotalsWithTax", () => {
686
+ describe("🇫🇷 Domestic cases", () => {
687
+ test.each(filteredDomesticCases)("$name", ({ params, expected }) => {
688
+ const result = (0, calculateInvoiceTotalWithTax_1.calculateInvoiceTotalsWithTax)(params);
689
+ expect(result).toEqual(expected);
690
+ });
691
+ });
692
+ // describe("🇪🇺 Cross-border EU cases", () => {
693
+ // test.each(filteredCrossBorderEuCases)("$name", ({ params, expected }) => {
694
+ // const result = calculateInvoiceTotalsWithTax(params);
695
+ // expect(result).toEqual(expected);
696
+ // });
697
+ // });
698
+ // it("services VAT should follow prestationCountry, not serviceProviderCountry (pro=IT, prestation=ES, client=ES B2C)", () => {
699
+ // const params: CalculateInvoiceTotalsWithTaxParams = {
700
+ // ...BASE_PARAMS,
701
+ // prestationCountry: SupportedCountryIsoCodes.SPAIN,
702
+ // serviceProviderCountry: SupportedCountryIsoCodes.ITALY,
703
+ // serviceProviderIsVatExempt: false,
704
+ // customerCountry: SupportedCountryIsoCodes.SPAIN,
705
+ // customerIsSubjectToVat: false, // B2C
706
+ // marketplaceCountry: SupportedCountryIsoCodes.FRANCE,
707
+ // };
708
+ // const result = calculateInvoiceTotalsWithTax(params);
709
+ // expect(result).toEqual({
710
+ // totalServicesPreTaxInCents: 30_000,
711
+ // totalServicesPostTaxInCents: 36_300, // 30_000 + 21% ES
712
+ // totalServicesVatInCents: 6_300,
713
+ // totalMarketplaceFeePreTaxInCents: 2_700, // 9% ES
714
+ // totalMarketplaceFeePostTaxInCents: 3_267, // +21% ES (client ES B2C)
715
+ // totalMarketplaceFeeVatInCents: 567,
716
+ // totalPreTaxInCents: 32_700,
717
+ // totalVatInCents: 6_867,
718
+ // totalPostTaxInCents: 39_567,
719
+ // pricingPreTaxLines: [
720
+ // {
721
+ // id: serviceOneId,
722
+ // amountPreTaxInCents: 10_000,
723
+ // category: PricingLineCategories.SERVICE,
724
+ // currency: SupportedIsoCurrency.EUR,
725
+ // },
726
+ // {
727
+ // id: serviceTwoId,
728
+ // amountPreTaxInCents: 20_000,
729
+ // category: PricingLineCategories.SERVICE,
730
+ // currency: SupportedIsoCurrency.EUR,
731
+ // },
732
+ // ],
733
+ // pricingPostTaxLines: [
734
+ // {
735
+ // id: serviceOneId,
736
+ // category: PricingLineCategories.SERVICE,
737
+ // amountPreTaxInCents: 10_000,
738
+ // amountPostTaxInCents: 12_100, // +21%
739
+ // vatAmountInCents: 2_100,
740
+ // currency: SupportedIsoCurrency.EUR,
741
+ // },
742
+ // {
743
+ // id: serviceTwoId,
744
+ // category: PricingLineCategories.SERVICE,
745
+ // amountPreTaxInCents: 20_000,
746
+ // amountPostTaxInCents: 24_200, // +21%
747
+ // vatAmountInCents: 4_200,
748
+ // currency: SupportedIsoCurrency.EUR,
749
+ // },
750
+ // {
751
+ // id: MARKETPLACE_FEE_LINE_ID,
752
+ // category: PricingLineCategories.MARKETPLACE_FEE,
753
+ // amountPreTaxInCents: 2_700,
754
+ // amountPostTaxInCents: 3_267,
755
+ // vatAmountInCents: 567,
756
+ // currency: SupportedIsoCurrency.EUR,
757
+ // },
758
+ // ],
759
+ // serviceReverseChargeApplied: false,
760
+ // feeReverseChargeApplied: false,
761
+ // effectiveServiceVatRateBasisPoints: 2_100, // ES 21%
762
+ // effectiveMarketplaceFeeVatRateBasisPoints: 2_100, // client ES 21%
763
+ // currency: SupportedIsoCurrency.EUR,
764
+ // });
765
+ // });
766
+ // it("should apply minimum marketplace fee when fee % = 0 but min fee > 0 (domestic FR)", () => {
767
+ // const customConfigs = countriesPricingPublicConfigStub({
768
+ // [SupportedCountryIsoCodes.FRANCE]: {
769
+ // currency: SupportedIsoCurrency.EUR,
770
+ // vatRateBasisPoints: 2_000, // 20% FR
771
+ // marketplaceFeeRateBasisPoints: 0, // 0%
772
+ // minimumMarketplaceFeePreTaxInCents: 300, // 3 EUR
773
+ // },
774
+ // [SupportedCountryIsoCodes.SPAIN]: {
775
+ // currency: SupportedIsoCurrency.EUR,
776
+ // vatRateBasisPoints: 2_100,
777
+ // marketplaceFeeRateBasisPoints: 900,
778
+ // minimumMarketplaceFeePreTaxInCents: 200,
779
+ // },
780
+ // [SupportedCountryIsoCodes.ITALY]: {
781
+ // currency: SupportedIsoCurrency.EUR,
782
+ // vatRateBasisPoints: 2_200,
783
+ // marketplaceFeeRateBasisPoints: 800,
784
+ // minimumMarketplaceFeePreTaxInCents: 100,
785
+ // },
786
+ // });
787
+ // const params: CalculateInvoiceTotalsWithTaxParams = {
788
+ // ...BASE_PARAMS,
789
+ // countriesPricingPublicConfigs: customConfigs,
790
+ // prestationCountry: SupportedCountryIsoCodes.FRANCE,
791
+ // serviceProviderCountry: SupportedCountryIsoCodes.FRANCE,
792
+ // serviceProviderIsVatExempt: false,
793
+ // customerCountry: SupportedCountryIsoCodes.FRANCE,
794
+ // customerIsSubjectToVat: true,
795
+ // marketplaceCountry: SupportedCountryIsoCodes.FRANCE,
796
+ // };
797
+ // const result = calculateInvoiceTotalsWithTax(params);
798
+ // expect(result).toEqual({
799
+ // totalServicesPreTaxInCents: 30_000,
800
+ // totalServicesPostTaxInCents: 36_000, // +20%
801
+ // totalServicesVatInCents: 6_000,
802
+ // totalMarketplaceFeePreTaxInCents: 300, // min fee
803
+ // totalMarketplaceFeePostTaxInCents: 360, // +20%
804
+ // totalMarketplaceFeeVatInCents: 60,
805
+ // totalPreTaxInCents: 30_300,
806
+ // totalVatInCents: 6_060,
807
+ // totalPostTaxInCents: 36_360,
808
+ // pricingPreTaxLines: [
809
+ // {
810
+ // id: serviceOneId,
811
+ // amountPreTaxInCents: 10_000,
812
+ // category: PricingLineCategories.SERVICE,
813
+ // currency: SupportedIsoCurrency.EUR,
814
+ // },
815
+ // {
816
+ // id: serviceTwoId,
817
+ // amountPreTaxInCents: 20_000,
818
+ // category: PricingLineCategories.SERVICE,
819
+ // currency: SupportedIsoCurrency.EUR,
820
+ // },
821
+ // ],
822
+ // pricingPostTaxLines: [
823
+ // {
824
+ // id: serviceOneId,
825
+ // category: PricingLineCategories.SERVICE,
826
+ // amountPreTaxInCents: 10_000,
827
+ // amountPostTaxInCents: 12_000,
828
+ // vatAmountInCents: 2_000,
829
+ // currency: SupportedIsoCurrency.EUR,
830
+ // },
831
+ // {
832
+ // id: serviceTwoId,
833
+ // category: PricingLineCategories.SERVICE,
834
+ // amountPreTaxInCents: 20_000,
835
+ // amountPostTaxInCents: 24_000,
836
+ // vatAmountInCents: 4_000,
837
+ // currency: SupportedIsoCurrency.EUR,
838
+ // },
839
+ // {
840
+ // id: MARKETPLACE_FEE_LINE_ID,
841
+ // category: PricingLineCategories.MARKETPLACE_FEE,
842
+ // amountPreTaxInCents: 300,
843
+ // amountPostTaxInCents: 360,
844
+ // vatAmountInCents: 60,
845
+ // currency: SupportedIsoCurrency.EUR,
846
+ // },
847
+ // ],
848
+ // serviceReverseChargeApplied: false,
849
+ // feeReverseChargeApplied: false,
850
+ // effectiveServiceVatRateBasisPoints: 2_000,
851
+ // effectiveMarketplaceFeeVatRateBasisPoints: 2_000,
852
+ // currency: SupportedIsoCurrency.EUR,
853
+ // });
854
+ // });
855
+ // it("with zero services and cross-border EU B2B (assujetti), should apply RC on fee and still apply ES minimum fee", () => {
856
+ // const params: CalculateInvoiceTotalsWithTaxParams = {
857
+ // ...BASE_PARAMS,
858
+ // pricingPreTaxLines: [
859
+ // {
860
+ // id: serviceOneId,
861
+ // amountPreTaxInCents: -10_000, // clamp → 0
862
+ // category: PricingLineCategories.SERVICE,
863
+ // currency: SupportedIsoCurrency.EUR,
864
+ // },
865
+ // {
866
+ // id: serviceTwoId,
867
+ // amountPreTaxInCents: -5_000, // clamp → 0
868
+ // category: PricingLineCategories.SERVICE,
869
+ // currency: SupportedIsoCurrency.EUR,
870
+ // },
871
+ // ],
872
+ // prestationCountry: SupportedCountryIsoCodes.SPAIN, // service in ES
873
+ // serviceProviderCountry: SupportedCountryIsoCodes.SPAIN,
874
+ // serviceProviderIsVatExempt: true,
875
+ // customerCountry: SupportedCountryIsoCodes.SPAIN,
876
+ // customerIsSubjectToVat: true,
877
+ // marketplaceCountry: SupportedCountryIsoCodes.FRANCE, // ≠ ES → cross-border
878
+ // };
879
+ // const result = calculateInvoiceTotalsWithTax(params);
880
+ // expect(result).toEqual({
881
+ // totalServicesPreTaxInCents: 0,
882
+ // totalServicesPostTaxInCents: 0,
883
+ // totalServicesVatInCents: 0,
884
+ // totalMarketplaceFeePreTaxInCents: 200, // min fee ES (config: 2 EUR)
885
+ // totalMarketplaceFeePostTaxInCents: 200, // RC → TVA 0
886
+ // totalMarketplaceFeeVatInCents: 0,
887
+ // totalPreTaxInCents: 200,
888
+ // totalVatInCents: 0,
889
+ // totalPostTaxInCents: 200,
890
+ // pricingPreTaxLines: expect.any(Array),
891
+ // pricingPostTaxLines: [
892
+ // {
893
+ // id: serviceOneId,
894
+ // category: PricingLineCategories.SERVICE,
895
+ // amountPreTaxInCents: 0,
896
+ // amountPostTaxInCents: 0,
897
+ // vatAmountInCents: 0,
898
+ // currency: SupportedIsoCurrency.EUR,
899
+ // },
900
+ // {
901
+ // id: serviceTwoId,
902
+ // category: PricingLineCategories.SERVICE,
903
+ // amountPreTaxInCents: 0,
904
+ // amountPostTaxInCents: 0,
905
+ // vatAmountInCents: 0,
906
+ // currency: SupportedIsoCurrency.EUR,
907
+ // },
908
+ // {
909
+ // id: MARKETPLACE_FEE_LINE_ID,
910
+ // category: PricingLineCategories.MARKETPLACE_FEE,
911
+ // amountPreTaxInCents: 200,
912
+ // amountPostTaxInCents: 200,
913
+ // vatAmountInCents: 0,
914
+ // currency: SupportedIsoCurrency.EUR,
915
+ // },
916
+ // ],
917
+ // serviceReverseChargeApplied: false,
918
+ // feeReverseChargeApplied: true, // Reverse charge applied
919
+ // effectiveServiceVatRateBasisPoints: 0,
920
+ // effectiveMarketplaceFeeVatRateBasisPoints: 0,
921
+ // currency: SupportedIsoCurrency.EUR,
922
+ // });
923
+ // });
924
+ // it("Should raise if countriesPricingPublicConfigs is invalid", () => {
925
+ // const paramsWithoutConfigs: CalculateInvoiceTotalsWithTaxParams = {
926
+ // ...BASE_PARAMS,
927
+ // marketplaceCountry: SupportedCountryIsoCodes.FRANCE,
928
+ // customerCountry: SupportedCountryIsoCodes.FRANCE,
929
+ // serviceProviderCountry: SupportedCountryIsoCodes.SPAIN,
930
+ // prestationCountry: SupportedCountryIsoCodes.SPAIN,
931
+ // customerIsSubjectToVat: true,
932
+ // countriesPricingPublicConfigs: countriesPricingPublicConfigStub({
933
+ // [SupportedCountryIsoCodes.FRANCE]: undefined, // Invalid config
934
+ // [SupportedCountryIsoCodes.SPAIN]: {
935
+ // currency: SupportedIsoCurrency.EUR,
936
+ // vatRateBasisPoints: 2100, // 21%
937
+ // marketplaceFeeRateBasisPoints: 900, // 9%
938
+ // minimumMarketplaceFeePreTaxInCents: 200, // 2 EUR
939
+ // },
940
+ // [SupportedCountryIsoCodes.ITALY]: {
941
+ // currency: SupportedIsoCurrency.EUR,
942
+ // vatRateBasisPoints: 2200, // 22%
943
+ // marketplaceFeeRateBasisPoints: 800, // 8%
944
+ // minimumMarketplaceFeePreTaxInCents: 100, // 1 EUR
945
+ // },
946
+ // }),
947
+ // };
948
+ // expect(() => calculateInvoiceTotalsWithTax(paramsWithoutConfigs)).toThrow(
949
+ // `Pricing configuration not found for one of the countries:
950
+ // Place of Supply: ${SupportedCountryIsoCodes.SPAIN}
951
+ // Prestation: ${SupportedCountryIsoCodes.SPAIN}
952
+ // Marketplace: ${SupportedCountryIsoCodes.FRANCE}`,
953
+ // );
954
+ // });
955
+ });