@calcom/atoms 1.12.1 → 2.0.0

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 (564) hide show
  1. package/dist/{AddressInput-XLZv7IiA.js → AddressInput-BpSJca3r.js} +3 -3
  2. package/dist/{AlbyPriceComponent-9oW3P2T3.js → AlbyPriceComponent-0EzHrAW1.js} +19 -19
  3. package/dist/{AppCard-pI4hF2G4.js → AppCard-8e-kpo72.js} +62 -60
  4. package/dist/{AppListCardPlatformWrapper-_fuIku6m.js → AppListCardPlatformWrapper-ixynsgLl.js} +1 -1
  5. package/dist/{AppListCardWebWrapper-KxhUj5a7.js → AppListCardWebWrapper-fZ9Ne6_r.js} +6 -6
  6. package/dist/{AppSettingsInterface-1VG9yRmX.js → AppSettingsInterface-jrZ0xNex.js} +8 -8
  7. package/dist/{AppSettingsInterface-5ccYT4YK.js → AppSettingsInterface-vmWnGjAP.js} +2 -2
  8. package/dist/{AppSettingsInterface-7fMHRoTt.js → AppSettingsInterface-vtpma4Ty.js} +1 -1
  9. package/dist/DateRangePicker-YEvczWqa.js +96 -0
  10. package/dist/{EventTypeAppCardInterface-gLvUEDc4.js → EventTypeAppCardInterface-64u7JDmK.js} +9 -9
  11. package/dist/{EventTypeAppCardInterface-8xy1uUqA.js → EventTypeAppCardInterface-AxmjB7N4.js} +6 -6
  12. package/dist/{EventTypeAppCardInterface-16Svea1R.js → EventTypeAppCardInterface-GgzM8H2q.js} +7 -7
  13. package/dist/{EventTypeAppCardInterface-Joa7ghXo.js → EventTypeAppCardInterface-ILCE1dyV.js} +9 -9
  14. package/dist/{EventTypeAppCardInterface-Ay3WLq5q.js → EventTypeAppCardInterface-J2GpH83m.js} +8 -8
  15. package/dist/{EventTypeAppCardInterface-XJCj8viJ.js → EventTypeAppCardInterface-KfTLSDMB.js} +7 -7
  16. package/dist/{EventTypeAppCardInterface-2nyah6aL.js → EventTypeAppCardInterface-MQTWgkIo.js} +11 -11
  17. package/dist/{EventTypeAppCardInterface-533txrWR.js → EventTypeAppCardInterface-Ms-ryW85.js} +11 -11
  18. package/dist/{EventTypeAppCardInterface-lvEgOcQm.js → EventTypeAppCardInterface-RR8Pdcmk.js} +14 -14
  19. package/dist/{EventTypeAppCardInterface-L6ILJNgu.js → EventTypeAppCardInterface-SThwQJqI.js} +8 -8
  20. package/dist/{EventTypeAppCardInterface-yaDE3Hhr.js → EventTypeAppCardInterface-T51D3u6j.js} +3 -3
  21. package/dist/{EventTypeAppCardInterface-BGfeNJyQ.js → EventTypeAppCardInterface-Wd5IxHUp.js} +17 -17
  22. package/dist/{EventTypeAppCardInterface-ueFADJg2.js → EventTypeAppCardInterface-XQAC7Sns.js} +6 -6
  23. package/dist/{EventTypeAppCardInterface-I4h9rph3.js → EventTypeAppCardInterface-XYdXwsp1.js} +6 -6
  24. package/dist/{EventTypeAppCardInterface-AwCFtu0i.js → EventTypeAppCardInterface-YsABP7F5.js} +8 -8
  25. package/dist/{EventTypeAppCardInterface-ejBkd_PD.js → EventTypeAppCardInterface-aH_uqNUP.js} +11 -11
  26. package/dist/{EventTypeAppCardInterface-A0R2Zrzu.js → EventTypeAppCardInterface-bmQeZj3C.js} +6 -6
  27. package/dist/EventTypeAppCardInterface-cJTTVbQp.js +43 -0
  28. package/dist/{EventTypeAppCardInterface-nrkly6rQ.js → EventTypeAppCardInterface-i5sePaPw.js} +6 -6
  29. package/dist/EventTypeAppCardInterface-i6nf7Wge.js +48 -0
  30. package/dist/{EventTypeAppCardInterface-oa8_FlOs.js → EventTypeAppCardInterface-lBKaAtVo.js} +6 -6
  31. package/dist/EventTypeAppCardInterface-r9B6g_vb.js +43 -0
  32. package/dist/{EventTypeAppCardInterface-TPUqMlom.js → EventTypeAppCardInterface-rOrmbyNN.js} +11 -11
  33. package/dist/{EventTypeAppCardInterface-K4OHLVq9.js → EventTypeAppCardInterface-tFi51kOu.js} +3 -3
  34. package/dist/{EventTypeAppCardInterface-zTd8gwij.js → EventTypeAppCardInterface-x_wvzB0v.js} +8 -8
  35. package/dist/{EventTypeAppCardInterface-l3l21REQ.js → EventTypeAppCardInterface-xdH4tRYC.js} +11 -11
  36. package/dist/{EventTypeAppCardInterface-YlosxFDt.js → EventTypeAppCardInterface-yg1X_xul.js} +8 -8
  37. package/dist/EventTypeAppCardInterface-zruB2FzC.js +39 -0
  38. package/dist/{EventTypeAppSettingsInterface-TlO5TVYX.js → EventTypeAppSettingsInterface-A9lNB6of.js} +1 -1
  39. package/dist/EventTypeAppSettingsInterface-JPQ1yyiJ.js +56 -0
  40. package/dist/{EventTypeAppSettingsInterface-A7a6mixC.js → EventTypeAppSettingsInterface-NcU2fhCq.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-Nyao8oEh.js → EventTypeAppSettingsInterface-NwadKkE9.js} +10 -10
  42. package/dist/{EventTypeAppSettingsInterface-gnaLzdwT.js → EventTypeAppSettingsInterface-O49EtYq9.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-6sO-QTP6.js → EventTypeAppSettingsInterface-UM5TZ94u.js} +1 -1
  44. package/dist/{EventTypeAppSettingsInterface-q0xc3hTj.js → EventTypeAppSettingsInterface-WtvV4-VQ.js} +1 -1
  45. package/dist/{EventTypeAppSettingsInterface-z5iMQkwK.js → EventTypeAppSettingsInterface-_mhcQh98.js} +22 -22
  46. package/dist/{EventTypeAppSettingsInterface-oberfR8v.js → EventTypeAppSettingsInterface-gQwMLmra.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-0dQHUVa4.js → EventTypeAppSettingsInterface-jYxTenwf.js} +5 -5
  48. package/dist/{EventTypeAppSettingsInterface-dHflb4ux.js → EventTypeAppSettingsInterface-je_rg4FH.js} +10 -10
  49. package/dist/{EventTypeAppSettingsInterface-xcau5Skk.js → EventTypeAppSettingsInterface-kSolFl0q.js} +2 -2
  50. package/dist/{EventTypeAppSettingsInterface-__hm1tDu.js → EventTypeAppSettingsInterface-lUUXnR-g.js} +1 -1
  51. package/dist/{EventTypeAppSettingsInterface-0caEcaUv.js → EventTypeAppSettingsInterface-wQb-fMuk.js} +1 -1
  52. package/dist/{InstallAppButton-Xl44Eys-.js → InstallAppButton-9HlFrOHB.js} +3 -3
  53. package/dist/{InstallAppButton-tED6MA4x.js → InstallAppButton-IvfhWvux.js} +1 -1
  54. package/dist/{InstallAppButton-8GmTBNzV.js → InstallAppButton-o3I02uwv.js} +3 -3
  55. package/dist/{PhoneInput-Ugj5tpUu.js → PhoneInput-GWE7KXiz.js} +582 -572
  56. package/dist/StripePaymentForm-QbBVD2ns.js +540 -0
  57. package/dist/cal-atoms.js +34 -33
  58. package/dist/cal-atoms.umd.cjs +656 -0
  59. package/dist/{index-D6s7-q99.js → index-FKnC-Bdq.js} +1 -1
  60. package/dist/index-SoDSIlE9.js +664 -0
  61. package/dist/{index-d93whXsZ.js → index-c1AU6gV4.js} +109076 -124903
  62. package/dist/{index-GeV5zNpe.js → index-n0I0RFcR.js} +1 -1
  63. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  64. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookFormAsModal.d.ts.map +1 -1
  65. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookingFields.d.ts.map +1 -1
  66. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +2 -1
  67. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  68. package/dist/packages/features/bookings/Booker/components/LargeCalendar.d.ts.map +1 -1
  69. package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts.map +1 -1
  70. package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts +1 -1
  71. package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts.map +1 -1
  72. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
  73. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +4 -4
  74. package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.d.ts +1 -1
  75. package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.d.ts.map +1 -1
  76. package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.test.d.ts +2 -0
  77. package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.test.d.ts.map +1 -0
  78. package/dist/packages/features/bookings/Booker/components/hooks/useVerifyEmail.d.ts.map +1 -1
  79. package/dist/packages/features/bookings/Booker/store.d.ts +7 -3
  80. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  81. package/dist/packages/features/bookings/Booker/utils/event.d.ts +48 -10
  82. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  83. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +4 -4
  84. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -1
  85. package/dist/packages/features/bookings/lib/EventManager.d.ts +3 -2
  86. package/dist/packages/features/bookings/lib/EventManager.d.ts.map +1 -1
  87. package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts +33 -43
  88. package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts.map +1 -1
  89. package/dist/packages/features/bookings/lib/client/booking-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
  90. package/dist/packages/features/bookings/lib/getAllCredentialsForUsersOnEvent/getAllCredentials.d.ts.map +1 -1
  91. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts +8 -5
  92. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts.map +1 -1
  93. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +18 -21
  94. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts.map +1 -1
  95. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +35 -40
  96. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts.map +1 -1
  97. package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts +5 -3
  98. package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts.map +1 -1
  99. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +16 -10
  100. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  101. package/dist/packages/features/bookings/lib/getCalEventResponses.d.ts.map +1 -1
  102. package/dist/packages/features/bookings/lib/getHostsAndGuests.d.ts +36 -0
  103. package/dist/packages/features/bookings/lib/getHostsAndGuests.d.ts.map +1 -0
  104. package/dist/packages/features/bookings/lib/getLuckyUser.d.ts.map +1 -1
  105. package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts.map +1 -1
  106. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts +1 -0
  107. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  108. package/dist/packages/features/bookings/lib/handleConfirmation.d.ts.map +1 -1
  109. package/dist/packages/features/bookings/lib/handleNewBooking/checkIfBookerEmailIsBlocked.d.ts +2 -1
  110. package/dist/packages/features/bookings/lib/handleNewBooking/checkIfBookerEmailIsBlocked.d.ts.map +1 -1
  111. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +38 -35
  112. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  113. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +24 -28
  114. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
  115. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +67 -53
  116. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  117. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +38 -35
  118. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  119. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +22 -21
  120. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  121. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +14 -14
  122. package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts.map +1 -1
  123. package/dist/packages/features/bookings/lib/handleSeats/handleSeats.d.ts.map +1 -1
  124. package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts +6 -4
  125. package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts.map +1 -1
  126. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts +6 -5
  127. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts.map +1 -1
  128. package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts +3 -0
  129. package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts.map +1 -1
  130. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +1 -1
  131. package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts +6 -2
  132. package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts.map +1 -1
  133. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsSyncTasker.d.ts +23 -0
  134. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsSyncTasker.d.ts.map +1 -0
  135. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsTaskService.d.ts +22 -0
  136. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsTaskService.d.ts.map +1 -0
  137. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsTasker.d.ts +24 -0
  138. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsTasker.d.ts.map +1 -0
  139. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsTriggerTasker.d.ts +19 -0
  140. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsTriggerTasker.d.ts.map +1 -0
  141. package/dist/packages/features/bookings/lib/tasker/trigger/notifications/schema.d.ts +24 -0
  142. package/dist/packages/features/bookings/lib/tasker/trigger/notifications/schema.d.ts.map +1 -0
  143. package/dist/packages/features/bookings/lib/tasker/types.d.ts +32 -0
  144. package/dist/packages/features/bookings/lib/tasker/types.d.ts.map +1 -0
  145. package/dist/packages/features/bookings/lib/types/actor.d.ts +108 -0
  146. package/dist/packages/features/bookings/lib/types/actor.d.ts.map +1 -0
  147. package/dist/packages/features/bookings/lib/useFilterQuery.d.ts +4 -4
  148. package/dist/packages/features/bookings/types.d.ts +1 -1
  149. package/dist/packages/features/bookings/types.d.ts.map +1 -1
  150. package/dist/packages/features/components/phone-input/PhoneInput.d.ts.map +1 -1
  151. package/dist/packages/features/data-table/components/DataTable.d.ts +4 -2
  152. package/dist/packages/features/data-table/components/DataTable.d.ts.map +1 -1
  153. package/dist/packages/features/data-table/components/DataTableWrapper.d.ts +5 -1
  154. package/dist/packages/features/data-table/components/DataTableWrapper.d.ts.map +1 -1
  155. package/dist/packages/features/data-table/components/filters/BaseSelectFilterOptions.d.ts +7 -6
  156. package/dist/packages/features/data-table/components/filters/BaseSelectFilterOptions.d.ts.map +1 -1
  157. package/dist/packages/features/data-table/components/filters/ColumnVisibilityButton.test.d.ts +2 -0
  158. package/dist/packages/features/data-table/components/filters/ColumnVisibilityButton.test.d.ts.map +1 -0
  159. package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts +2 -2
  160. package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
  161. package/dist/packages/features/data-table/components/filters/FilterPopover.d.ts.map +1 -1
  162. package/dist/packages/features/data-table/components/filters/MultiSelectFilterOptions.d.ts +2 -2
  163. package/dist/packages/features/data-table/components/filters/MultiSelectFilterOptions.d.ts.map +1 -1
  164. package/dist/packages/features/data-table/components/filters/NumberFilterOptions.d.ts +2 -2
  165. package/dist/packages/features/data-table/components/filters/NumberFilterOptions.d.ts.map +1 -1
  166. package/dist/packages/features/data-table/components/filters/SingleSelectFilterOptions.d.ts +2 -2
  167. package/dist/packages/features/data-table/components/filters/SingleSelectFilterOptions.d.ts.map +1 -1
  168. package/dist/packages/features/data-table/components/filters/TextFilterOptions.d.ts +2 -2
  169. package/dist/packages/features/data-table/components/filters/TextFilterOptions.d.ts.map +1 -1
  170. package/dist/packages/features/data-table/components/filters/index.d.ts.map +1 -1
  171. package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
  172. package/dist/packages/features/data-table/hooks/useFilterValue.d.ts +3 -2
  173. package/dist/packages/features/data-table/hooks/useFilterValue.d.ts.map +1 -1
  174. package/dist/packages/features/data-table/lib/parsers.d.ts +27 -27
  175. package/dist/packages/features/data-table/lib/serializers.d.ts +18 -18
  176. package/dist/packages/features/data-table/lib/types.d.ts +148 -177
  177. package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
  178. package/dist/packages/features/data-table/repositories/filterSegment.type.d.ts +204 -204
  179. package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.d.ts.map +1 -1
  180. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.deleted.team-plan.d.ts.map +1 -1
  181. package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.org.d.ts.map +1 -1
  182. package/dist/packages/features/ee/billing/credit-service.d.ts +17 -4
  183. package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
  184. package/dist/packages/features/ee/billing/di/containers/Billing.d.ts +7 -0
  185. package/dist/packages/features/ee/billing/di/containers/Billing.d.ts.map +1 -0
  186. package/dist/packages/features/ee/billing/di/modules/BillingProviderService.d.ts +3 -0
  187. package/dist/packages/features/ee/billing/di/modules/BillingProviderService.d.ts.map +1 -0
  188. package/dist/packages/features/ee/billing/di/modules/BillingRepositoryFactory.d.ts +3 -0
  189. package/dist/packages/features/ee/billing/di/modules/BillingRepositoryFactory.d.ts.map +1 -0
  190. package/dist/packages/features/ee/billing/di/modules/IsTeamBillingEnabled.d.ts +3 -0
  191. package/dist/packages/features/ee/billing/di/modules/IsTeamBillingEnabled.d.ts.map +1 -0
  192. package/dist/packages/features/ee/billing/di/modules/StripeClient.d.ts +4 -0
  193. package/dist/packages/features/ee/billing/di/modules/StripeClient.d.ts.map +1 -0
  194. package/dist/packages/features/ee/billing/di/modules/TeamBillingDataRepositoryFactory.d.ts +3 -0
  195. package/dist/packages/features/ee/billing/di/modules/TeamBillingDataRepositoryFactory.d.ts.map +1 -0
  196. package/dist/packages/features/ee/billing/di/modules/TeamBillingServiceFactory.d.ts +3 -0
  197. package/dist/packages/features/ee/billing/di/modules/TeamBillingServiceFactory.d.ts.map +1 -0
  198. package/dist/packages/features/ee/billing/di/tokens.d.ts +13 -0
  199. package/dist/packages/features/ee/billing/di/tokens.d.ts.map +1 -0
  200. package/dist/packages/features/ee/billing/helpers/getUserAndTeamWithBillingPermission.d.ts +24 -0
  201. package/dist/packages/features/ee/billing/helpers/getUserAndTeamWithBillingPermission.d.ts.map +1 -0
  202. package/dist/packages/features/ee/billing/helpers/handleInsufficientCredits.d.ts +10 -0
  203. package/dist/packages/features/ee/billing/helpers/handleInsufficientCredits.d.ts.map +1 -0
  204. package/dist/packages/features/ee/billing/repository/billing/IBillingRepository.d.ts.map +1 -0
  205. package/dist/packages/features/ee/billing/repository/{PrismaOrganizationBillingRepository.d.ts → billing/PrismaOrganizationBillingRepository.d.ts} +1 -1
  206. package/dist/packages/features/ee/billing/repository/billing/PrismaOrganizationBillingRepository.d.ts.map +1 -0
  207. package/dist/packages/features/ee/billing/repository/{PrismaTeamBillingRepository.d.ts → billing/PrismaTeamBillingRepository.d.ts} +1 -1
  208. package/dist/packages/features/ee/billing/repository/billing/PrismaTeamBillingRepository.d.ts.map +1 -0
  209. package/dist/packages/features/ee/billing/repository/billing/StubBillingRepository.d.ts +5 -0
  210. package/dist/packages/features/ee/billing/repository/billing/StubBillingRepository.d.ts.map +1 -0
  211. package/dist/packages/features/ee/billing/{teams/team-billing.repository.interface.d.ts → repository/teamBillingData/ITeamBillingDataRepository.d.ts} +5 -4
  212. package/dist/packages/features/ee/billing/repository/teamBillingData/ITeamBillingDataRepository.d.ts.map +1 -0
  213. package/dist/packages/features/ee/billing/{teams/team-billing.repository.d.ts → repository/teamBillingData/PrismaTeamBillingRepository.d.ts} +10 -14
  214. package/dist/packages/features/ee/billing/repository/teamBillingData/PrismaTeamBillingRepository.d.ts.map +1 -0
  215. package/dist/packages/features/ee/billing/repository/teamBillingData/StubTeamBillingRepository.d.ts +20 -0
  216. package/dist/packages/features/ee/billing/repository/teamBillingData/StubTeamBillingRepository.d.ts.map +1 -0
  217. package/dist/packages/features/ee/billing/{billing-service.d.ts → service/billingProvider/IBillingProviderService.d.ts} +4 -3
  218. package/dist/packages/features/ee/billing/service/billingProvider/IBillingProviderService.d.ts.map +1 -0
  219. package/dist/packages/features/ee/billing/{stripe-billing-service.d.ts → service/billingProvider/StripeBillingService.d.ts} +16 -16
  220. package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.d.ts.map +1 -0
  221. package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.test.d.ts +2 -0
  222. package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.test.d.ts.map +1 -0
  223. package/dist/packages/features/ee/billing/{teams/team-billing.d.ts → service/teams/ITeamBillingService.d.ts} +7 -3
  224. package/dist/packages/features/ee/billing/service/teams/ITeamBillingService.d.ts.map +1 -0
  225. package/dist/packages/features/ee/billing/service/teams/StubTeamBillingService.d.ts +13 -0
  226. package/dist/packages/features/ee/billing/service/teams/StubTeamBillingService.d.ts.map +1 -0
  227. package/dist/packages/features/ee/billing/service/teams/TeamBillingFactory.test.d.ts +2 -0
  228. package/dist/packages/features/ee/billing/service/teams/TeamBillingFactory.test.d.ts.map +1 -0
  229. package/dist/packages/features/ee/billing/{teams/internal-team-billing.d.ts → service/teams/TeamBillingService.d.ts} +15 -6
  230. package/dist/packages/features/ee/billing/service/teams/TeamBillingService.d.ts.map +1 -0
  231. package/dist/packages/features/ee/billing/service/teams/TeamBillingService.test.d.ts +2 -0
  232. package/dist/packages/features/ee/billing/service/teams/TeamBillingService.test.d.ts.map +1 -0
  233. package/dist/packages/features/ee/billing/service/teams/TeamBillingServiceFactory.d.ts +23 -0
  234. package/dist/packages/features/ee/billing/service/teams/TeamBillingServiceFactory.d.ts.map +1 -0
  235. package/dist/packages/features/ee/payments/pages/payment.d.ts +6 -5
  236. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  237. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +3 -0
  238. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  239. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +13 -13
  240. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  241. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  242. package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
  243. package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.d.ts.map +1 -1
  244. package/dist/packages/features/ee/workflows/components/AddActionDialog.d.ts +1 -0
  245. package/dist/packages/features/ee/workflows/components/AddActionDialog.d.ts.map +1 -1
  246. package/dist/packages/features/ee/workflows/components/TestPhoneCallDialog.d.ts +3 -1
  247. package/dist/packages/features/ee/workflows/components/TestPhoneCallDialog.d.ts.map +1 -1
  248. package/dist/packages/features/ee/workflows/components/WebCallDialog.d.ts +3 -1
  249. package/dist/packages/features/ee/workflows/components/WebCallDialog.d.ts.map +1 -1
  250. package/dist/packages/features/ee/workflows/components/WorkflowCreationDialog.d.ts.map +1 -1
  251. package/dist/packages/features/ee/workflows/components/WorkflowDetailsPage.d.ts +2 -1
  252. package/dist/packages/features/ee/workflows/components/WorkflowDetailsPage.d.ts.map +1 -1
  253. package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts +2 -0
  254. package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts.map +1 -1
  255. package/dist/packages/features/ee/workflows/components/agent-configuration/AgentConfigurationSheet.d.ts.map +1 -1
  256. package/dist/packages/features/ee/workflows/components/agent-configuration/components/dialogs/BuyNumberDialog.d.ts.map +1 -1
  257. package/dist/packages/features/ee/workflows/components/agent-configuration/components/tabs/OutgoingCallsTab.d.ts +5 -1
  258. package/dist/packages/features/ee/workflows/components/agent-configuration/components/tabs/OutgoingCallsTab.d.ts.map +1 -1
  259. package/dist/packages/features/ee/workflows/components/agent-configuration/components/tabs/PhoneNumberTab.d.ts +2 -1
  260. package/dist/packages/features/ee/workflows/components/agent-configuration/components/tabs/PhoneNumberTab.d.ts.map +1 -1
  261. package/dist/packages/features/ee/workflows/components/agent-configuration/hooks/useAgentForms.d.ts +2 -0
  262. package/dist/packages/features/ee/workflows/components/agent-configuration/hooks/useAgentForms.d.ts.map +1 -1
  263. package/dist/packages/features/ee/workflows/components/agent-configuration/types/schemas.d.ts +3 -0
  264. package/dist/packages/features/ee/workflows/components/agent-configuration/types/schemas.d.ts.map +1 -1
  265. package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts +11 -1
  266. package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts.map +1 -1
  267. package/dist/packages/features/ee/workflows/lib/constants.d.ts +1 -1
  268. package/dist/packages/features/ee/workflows/lib/constants.d.ts.map +1 -1
  269. package/dist/packages/features/ee/workflows/lib/getOptions.d.ts +2 -1
  270. package/dist/packages/features/ee/workflows/lib/getOptions.d.ts.map +1 -1
  271. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +2 -1
  272. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
  273. package/dist/packages/features/ee/workflows/lib/reminders/aiPhoneCallManager.d.ts +19 -4
  274. package/dist/packages/features/ee/workflows/lib/reminders/aiPhoneCallManager.d.ts.map +1 -1
  275. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +4 -11
  276. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  277. package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts +3 -0
  278. package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts.map +1 -1
  279. package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts +1 -1
  280. package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts.map +1 -1
  281. package/dist/packages/features/ee/workflows/lib/reminders/providers/twilioProvider.d.ts.map +1 -1
  282. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts +12 -9
  283. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
  284. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts +2 -44
  285. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
  286. package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts +11 -1
  287. package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts.map +1 -1
  288. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts +1 -1
  289. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts.map +1 -1
  290. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts +1 -1
  291. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts.map +1 -1
  292. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts +1 -1
  293. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
  294. package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts +2 -1
  295. package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
  296. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +60 -3
  297. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts.map +1 -1
  298. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts +101 -0
  299. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts.map +1 -0
  300. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.test.d.ts +2 -0
  301. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.test.d.ts.map +1 -0
  302. package/dist/packages/features/ee/workflows/lib/service/WorkflowService.d.ts +42 -2
  303. package/dist/packages/features/ee/workflows/lib/service/WorkflowService.d.ts.map +1 -1
  304. package/dist/packages/features/ee/workflows/lib/types.d.ts +67 -1
  305. package/dist/packages/features/ee/workflows/lib/types.d.ts.map +1 -1
  306. package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
  307. package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts +99 -0
  308. package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts.map +1 -0
  309. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts +2 -0
  310. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts.map +1 -1
  311. package/dist/packages/features/eventtypes/components/DuplicateDialog.d.ts.map +1 -1
  312. package/dist/packages/features/eventtypes/components/MultiplePrivateLinksController.d.ts.map +1 -1
  313. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts.map +1 -1
  314. package/dist/packages/features/eventtypes/components/locations/Locations.d.ts.map +1 -1
  315. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  316. package/dist/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.d.ts.map +1 -1
  317. package/dist/packages/features/eventtypes/components/tabs/instant/InstantEventController.d.ts.map +1 -1
  318. package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts +23 -15
  319. package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts.map +1 -1
  320. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts +87 -54
  321. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts.map +1 -1
  322. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts +51 -37
  323. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts.map +1 -1
  324. package/dist/packages/features/eventtypes/lib/getEventTypeById.integration-test.d.ts +2 -0
  325. package/dist/packages/features/eventtypes/lib/getEventTypeById.integration-test.d.ts.map +1 -0
  326. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts +7 -5
  327. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts.map +1 -1
  328. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts +6 -5
  329. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts.map +1 -1
  330. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +121 -15
  331. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  332. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +12 -0
  333. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  334. package/dist/packages/features/eventtypes/lib/types.d.ts +69 -50
  335. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  336. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts +48 -10
  337. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts.map +1 -1
  338. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts +294 -42
  339. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts.map +1 -1
  340. package/dist/packages/features/form-builder/FormBuilder.d.ts.map +1 -1
  341. package/dist/packages/features/form-builder/FormBuilderField.d.ts +6 -1
  342. package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
  343. package/dist/packages/features/form-builder/schema.d.ts +1 -1
  344. package/dist/packages/features/form-builder/schema.d.ts.map +1 -1
  345. package/dist/packages/features/schedules/lib/slots.d.ts.map +1 -1
  346. package/dist/packages/features/schedules/lib/use-schedule/useApiV2AvailableSlots.d.ts.map +1 -1
  347. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts.map +1 -1
  348. package/dist/packages/features/shell/DynamicModals.d.ts +12 -0
  349. package/dist/packages/features/shell/DynamicModals.d.ts.map +1 -0
  350. package/dist/packages/features/shell/components/WelcomeToCalcomModal.d.ts +2 -0
  351. package/dist/packages/features/shell/components/WelcomeToCalcomModal.d.ts.map +1 -0
  352. package/dist/packages/features/shell/hooks/useWelcomeToCalcomModal.d.ts +6 -0
  353. package/dist/packages/features/shell/hooks/useWelcomeToCalcomModal.d.ts.map +1 -0
  354. package/dist/packages/features/shell/navigation/NavigationItem.d.ts.map +1 -1
  355. package/dist/packages/features/shell/useBottomNavItems.d.ts.map +1 -1
  356. package/dist/packages/kysely/types.d.ts +102 -9
  357. package/dist/packages/kysely/types.d.ts.map +1 -1
  358. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  359. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  360. package/dist/packages/platform/atoms/booker/types.d.ts +3 -2
  361. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  362. package/dist/packages/platform/atoms/booker-embed/useGetRoutingFormUrlProps.d.ts +0 -1
  363. package/dist/packages/platform/atoms/booker-embed/useGetRoutingFormUrlProps.d.ts.map +1 -1
  364. package/dist/packages/platform/atoms/calendar-view/CalendarViewComponent.d.ts +2 -0
  365. package/dist/packages/platform/atoms/calendar-view/CalendarViewComponent.d.ts.map +1 -0
  366. package/dist/packages/platform/atoms/calendar-view/EventTypeCalendarViewComponent.d.ts +7 -0
  367. package/dist/packages/platform/atoms/calendar-view/EventTypeCalendarViewComponent.d.ts.map +1 -0
  368. package/dist/packages/platform/atoms/calendar-view/wrappers/CalendarViewPlatformWrapper.d.ts +20 -3
  369. package/dist/packages/platform/atoms/calendar-view/wrappers/CalendarViewPlatformWrapper.d.ts.map +1 -1
  370. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +1 -0
  371. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
  372. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomsGetInstalledConferencingApps.d.ts +59 -1
  373. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomsGetInstalledConferencingApps.d.ts.map +1 -1
  374. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +33 -21
  375. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  376. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +6 -5
  377. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
  378. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +10 -6
  379. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  380. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  381. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +0 -1
  382. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
  383. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts +1 -1
  384. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  385. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
  386. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +1 -0
  387. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
  388. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +1 -0
  389. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
  390. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +1 -0
  391. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
  392. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +48 -10
  393. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  394. package/dist/packages/platform/atoms/hooks/useAvailableSlots.d.ts.map +1 -1
  395. package/dist/packages/platform/atoms/hooks/useCalendarsBusyTimes.d.ts.map +1 -1
  396. package/dist/packages/platform/atoms/hooks/useMe.d.ts +3 -0
  397. package/dist/packages/platform/atoms/hooks/useMe.d.ts.map +1 -1
  398. package/dist/packages/platform/atoms/hooks/useUpdateUserTimezone.d.ts +3 -0
  399. package/dist/packages/platform/atoms/hooks/useUpdateUserTimezone.d.ts.map +1 -1
  400. package/dist/packages/platform/atoms/hooks/useVerifyEmail.d.ts.map +1 -1
  401. package/dist/packages/platform/atoms/index.d.ts +1 -0
  402. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  403. package/dist/packages/platform/atoms/vite.config.d.ts +1 -1
  404. package/dist/packages/platform/atoms/vite.config.d.ts.map +1 -1
  405. package/dist/packages/platform/libraries/bookings.d.ts +8 -0
  406. package/dist/packages/platform/libraries/bookings.d.ts.map +1 -1
  407. package/dist/packages/platform/libraries/conferencing.d.ts +2 -1
  408. package/dist/packages/platform/libraries/conferencing.d.ts.map +1 -1
  409. package/dist/packages/platform/libraries/index.d.ts +5 -3
  410. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  411. package/dist/packages/platform/libraries/organizations.d.ts +5 -0
  412. package/dist/packages/platform/libraries/organizations.d.ts.map +1 -0
  413. package/dist/packages/platform/libraries/pbac.d.ts +11 -0
  414. package/dist/packages/platform/libraries/pbac.d.ts.map +1 -0
  415. package/dist/packages/platform/libraries/slots.d.ts +1 -1
  416. package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
  417. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
  418. package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-booking-recordings.output.d.ts +1 -0
  419. package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-booking-recordings.output.d.ts.map +1 -1
  420. package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-booking-transcripts.output.d.ts +1 -0
  421. package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-booking-transcripts.output.d.ts.map +1 -1
  422. package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-booking-video-sessions.output.d.ts +22 -0
  423. package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-booking-video-sessions.output.d.ts.map +1 -0
  424. package/dist/packages/platform/types/bookings/2024-08-13/outputs/index.d.ts +1 -0
  425. package/dist/packages/platform/types/bookings/2024-08-13/outputs/index.d.ts.map +1 -1
  426. package/dist/packages/platform/types/embed.d.ts +0 -1
  427. package/dist/packages/platform/types/embed.d.ts.map +1 -1
  428. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  429. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/get-event-types-query.input.d.ts +6 -0
  430. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/get-event-types-query.input.d.ts.map +1 -1
  431. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/locations.input.d.ts +1 -1
  432. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/locations.input.d.ts.map +1 -1
  433. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
  434. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
  435. package/dist/packages/platform/types/me.d.ts +9 -0
  436. package/dist/packages/platform/types/me.d.ts.map +1 -1
  437. package/dist/packages/platform/types/pagination/pagination.input.d.ts +5 -0
  438. package/dist/packages/platform/types/pagination/pagination.input.d.ts.map +1 -1
  439. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts +0 -1
  440. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts.map +1 -1
  441. package/dist/packages/prisma/zod/inputTypeSchemas/AccessCodeScalarFieldEnumSchema.d.ts +1 -1
  442. package/dist/packages/prisma/zod/inputTypeSchemas/AccessCodeScalarFieldEnumSchema.d.ts.map +1 -1
  443. package/dist/packages/prisma/zod/inputTypeSchemas/AgentScalarFieldEnumSchema.d.ts +1 -1
  444. package/dist/packages/prisma/zod/inputTypeSchemas/AgentScalarFieldEnumSchema.d.ts.map +1 -1
  445. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActorScalarFieldEnumSchema.d.ts +4 -0
  446. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActorScalarFieldEnumSchema.d.ts.map +1 -0
  447. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActorTypeSchema.d.ts +5 -0
  448. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActorTypeSchema.d.ts.map +1 -0
  449. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditActionSchema.d.ts +5 -0
  450. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditActionSchema.d.ts.map +1 -0
  451. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditScalarFieldEnumSchema.d.ts +4 -0
  452. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditScalarFieldEnumSchema.d.ts.map +1 -0
  453. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditTypeSchema.d.ts +5 -0
  454. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditTypeSchema.d.ts.map +1 -0
  455. package/dist/packages/prisma/zod/inputTypeSchemas/BookingReportScalarFieldEnumSchema.d.ts +1 -1
  456. package/dist/packages/prisma/zod/inputTypeSchemas/BookingReportScalarFieldEnumSchema.d.ts.map +1 -1
  457. package/dist/packages/prisma/zod/inputTypeSchemas/BookingReportStatusSchema.d.ts +5 -0
  458. package/dist/packages/prisma/zod/inputTypeSchemas/BookingReportStatusSchema.d.ts.map +1 -0
  459. package/dist/packages/prisma/zod/inputTypeSchemas/CalVideoSettingsScalarFieldEnumSchema.d.ts +1 -1
  460. package/dist/packages/prisma/zod/inputTypeSchemas/CalVideoSettingsScalarFieldEnumSchema.d.ts.map +1 -1
  461. package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts +1 -1
  462. package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts.map +1 -1
  463. package/dist/packages/prisma/zod/inputTypeSchemas/JsonNullValueFilterSchema.d.ts +1 -1
  464. package/dist/packages/prisma/zod/inputTypeSchemas/NullableJsonNullValueInputSchema.d.ts +1 -1
  465. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts +1 -1
  466. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts.map +1 -1
  467. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientTypeSchema.d.ts +5 -0
  468. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientTypeSchema.d.ts.map +1 -0
  469. package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationSettingsScalarFieldEnumSchema.d.ts +1 -1
  470. package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationSettingsScalarFieldEnumSchema.d.ts.map +1 -1
  471. package/dist/packages/prisma/zod/inputTypeSchemas/VideoCallGuestScalarFieldEnumSchema.d.ts +4 -0
  472. package/dist/packages/prisma/zod/inputTypeSchemas/VideoCallGuestScalarFieldEnumSchema.d.ts.map +1 -0
  473. package/dist/packages/prisma/zod/inputTypeSchemas/WebhookTriggerEventsSchema.d.ts +1 -1
  474. package/dist/packages/prisma/zod/inputTypeSchemas/WebhookTriggerEventsSchema.d.ts.map +1 -1
  475. package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts +8 -0
  476. package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts.map +1 -1
  477. package/dist/packages/prisma/zod/modelSchema/AccessCodeSchema.d.ts +6 -0
  478. package/dist/packages/prisma/zod/modelSchema/AccessCodeSchema.d.ts.map +1 -1
  479. package/dist/packages/prisma/zod/modelSchema/AgentSchema.d.ts +3 -0
  480. package/dist/packages/prisma/zod/modelSchema/AgentSchema.d.ts.map +1 -1
  481. package/dist/packages/prisma/zod/modelSchema/AuditActorSchema.d.ts +32 -0
  482. package/dist/packages/prisma/zod/modelSchema/AuditActorSchema.d.ts.map +1 -0
  483. package/dist/packages/prisma/zod/modelSchema/BookingAuditSchema.d.ts +35 -0
  484. package/dist/packages/prisma/zod/modelSchema/BookingAuditSchema.d.ts.map +1 -0
  485. package/dist/packages/prisma/zod/modelSchema/BookingReportSchema.d.ts +3 -0
  486. package/dist/packages/prisma/zod/modelSchema/BookingReportSchema.d.ts.map +1 -1
  487. package/dist/packages/prisma/zod/modelSchema/CalVideoSettingsSchema.d.ts +3 -0
  488. package/dist/packages/prisma/zod/modelSchema/CalVideoSettingsSchema.d.ts.map +1 -1
  489. package/dist/packages/prisma/zod/modelSchema/CreditExpenseLogSchema.d.ts +2 -2
  490. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts +51 -40
  491. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts.map +1 -1
  492. package/dist/packages/prisma/zod/modelSchema/InstantMeetingTokenSchema.d.ts +2 -2
  493. package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts +6 -3
  494. package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts.map +1 -1
  495. package/dist/packages/prisma/zod/modelSchema/OrganizationSettingsSchema.d.ts +33 -0
  496. package/dist/packages/prisma/zod/modelSchema/OrganizationSettingsSchema.d.ts.map +1 -1
  497. package/dist/packages/prisma/zod/modelSchema/RoutingFormResponseDenormalizedSchema.d.ts +2 -2
  498. package/dist/packages/prisma/zod/modelSchema/UserSchema.d.ts +3 -3
  499. package/dist/packages/prisma/zod/modelSchema/VerificationTokenSchema.d.ts +2 -2
  500. package/dist/packages/prisma/zod/modelSchema/VideoCallGuestSchema.d.ts +29 -0
  501. package/dist/packages/prisma/zod/modelSchema/VideoCallGuestSchema.d.ts.map +1 -0
  502. package/dist/packages/prisma/zod/modelSchema/WatchlistAuditSchema.d.ts +3 -3
  503. package/dist/packages/prisma/zod/modelSchema/WatchlistEventAuditSchema.d.ts +2 -2
  504. package/dist/packages/prisma/zod/modelSchema/WebhookSchema.d.ts +3 -3
  505. package/dist/packages/prisma/zod/modelSchema/WorkflowReminderSchema.d.ts +2 -2
  506. package/dist/packages/prisma/zod/modelSchema/index.d.ts +3 -0
  507. package/dist/packages/prisma/zod/modelSchema/index.d.ts.map +1 -1
  508. package/dist/packages/prisma/zod-utils.d.ts +138 -115
  509. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  510. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +0 -3
  511. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts.map +1 -1
  512. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts +1 -2
  513. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
  514. package/dist/packages/trpc/server/routers/viewer/slots/isAvailable.schema.d.ts +2 -2
  515. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +0 -21
  516. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
  517. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +1 -3
  518. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  519. package/dist/style.css +1 -1
  520. package/dist/{useIsAppEnabled-AAopxdBc.js → useIsAppEnabled-LmZ5_dpZ.js} +4 -4
  521. package/globals.min.css +2 -22
  522. package/package.json +8 -5
  523. package/dist/DateRangePicker-AvaT63ag.js +0 -74
  524. package/dist/EventTypeAppCardInterface-BYENKxKb.js +0 -43
  525. package/dist/EventTypeAppCardInterface-EGDQbhKF.js +0 -43
  526. package/dist/EventTypeAppCardInterface-G4AHOdBc.js +0 -25
  527. package/dist/StripePaymentForm-ifJrn5Q2.js +0 -493
  528. package/dist/index-6bsFojHJ.js +0 -558
  529. package/dist/packages/features/ee/billing/billing-service-factory.d.ts +0 -4
  530. package/dist/packages/features/ee/billing/billing-service-factory.d.ts.map +0 -1
  531. package/dist/packages/features/ee/billing/billing-service.d.ts.map +0 -1
  532. package/dist/packages/features/ee/billing/index.d.ts +0 -4
  533. package/dist/packages/features/ee/billing/index.d.ts.map +0 -1
  534. package/dist/packages/features/ee/billing/repository/IBillingRepository.d.ts.map +0 -1
  535. package/dist/packages/features/ee/billing/repository/PrismaOrganizationBillingRepository.d.ts.map +0 -1
  536. package/dist/packages/features/ee/billing/repository/PrismaTeamBillingRepository.d.ts.map +0 -1
  537. package/dist/packages/features/ee/billing/repository/billingRepositoryFactory.d.ts +0 -6
  538. package/dist/packages/features/ee/billing/repository/billingRepositoryFactory.d.ts.map +0 -1
  539. package/dist/packages/features/ee/billing/repository/billingRepositoryFactory.test.d.ts +0 -2
  540. package/dist/packages/features/ee/billing/repository/billingRepositoryFactory.test.d.ts.map +0 -1
  541. package/dist/packages/features/ee/billing/stripe-billing-service.d.ts.map +0 -1
  542. package/dist/packages/features/ee/billing/stripe-billing-service.test.d.ts +0 -2
  543. package/dist/packages/features/ee/billing/stripe-billing-service.test.d.ts.map +0 -1
  544. package/dist/packages/features/ee/billing/teams/index.d.ts +0 -14
  545. package/dist/packages/features/ee/billing/teams/index.d.ts.map +0 -1
  546. package/dist/packages/features/ee/billing/teams/internal-team-billing.d.ts.map +0 -1
  547. package/dist/packages/features/ee/billing/teams/stub-team-billing.d.ts +0 -16
  548. package/dist/packages/features/ee/billing/teams/stub-team-billing.d.ts.map +0 -1
  549. package/dist/packages/features/ee/billing/teams/team-billing.d.ts.map +0 -1
  550. package/dist/packages/features/ee/billing/teams/team-billing.repository.d.ts.map +0 -1
  551. package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts.map +0 -1
  552. package/dist/packages/features/ee/billing/teams/team-billing.repository.test.d.ts +0 -2
  553. package/dist/packages/features/ee/billing/teams/team-billing.repository.test.d.ts.map +0 -1
  554. package/dist/packages/features/ee/billing/teams/team-billing.test.d.ts +0 -2
  555. package/dist/packages/features/ee/billing/teams/team-billing.test.d.ts.map +0 -1
  556. package/dist/packages/features/eventtypes/lib/getEventTypeById.test.d.ts +0 -2
  557. package/dist/packages/features/eventtypes/lib/getEventTypeById.test.d.ts.map +0 -1
  558. package/dist/packages/features/shell/CalAiBanner.d.ts +0 -2
  559. package/dist/packages/features/shell/CalAiBanner.d.ts.map +0 -1
  560. package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.d.ts +0 -30
  561. package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.d.ts.map +0 -1
  562. package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.test.d.ts +0 -2
  563. package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.test.d.ts.map +0 -1
  564. /package/dist/packages/features/ee/billing/repository/{IBillingRepository.d.ts → billing/IBillingRepository.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"_checkout.session.completed.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/_checkout.session.completed.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,QAAA,MAAM,OAAO,GAAU,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC,MAAM,CAAC;;;;;EA8BxE,CAAC;AAkJF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"_checkout.session.completed.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/_checkout.session.completed.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAK1C,QAAA,MAAM,OAAO,GAAU,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC,MAAM,CAAC;;;;;EAuDxE,CAAC;AAkJF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"_customer.subscription.deleted.team-plan.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/_customer.subscription.deleted.team-plan.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAM1C,QAAA,MAAM,OAAO,GAAU,MAAM,MAAM,CAAC,+BAA+B,CAAC,CAAC,MAAM,CAAC;;EAc3E,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"_customer.subscription.deleted.team-plan.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/_customer.subscription.deleted.team-plan.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAM1C,QAAA,MAAM,OAAO,GAAU,MAAM,MAAM,CAAC,+BAA+B,CAAC,CAAC,MAAM,CAAC;;EAwB3E,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"_invoice.paid.org.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/_invoice.paid.org.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AA+B1C,QAAA,MAAM,OAAO,GAAU,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC;;;;;;EA8G1D,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"_invoice.paid.org.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/_invoice.paid.org.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AA+B1C,QAAA,MAAM,OAAO,GAAU,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC;;;;;;EAgH1D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import type { TFunction } from "i18next";
2
2
  import { type PrismaTransaction } from '../../../prisma';
3
- import type { CreditUsageType } from '../../../prisma/enums';
4
- import { CreditType } from '../../../prisma/enums';
3
+ import { CreditUsageType, CreditType } from '../../../prisma/enums';
5
4
  type LowCreditBalanceResultBase = {
6
5
  team?: {
7
6
  id: number;
@@ -19,6 +18,7 @@ type LowCreditBalanceResultBase = {
19
18
  email: string;
20
19
  t: TFunction;
21
20
  };
21
+ creditFor?: CreditUsageType;
22
22
  };
23
23
  type LowCreditBalanceLimitReachedResult = LowCreditBalanceResultBase & {
24
24
  type: "LIMIT_REACHED";
@@ -30,6 +30,7 @@ type LowCreditBalanceWarningResult = LowCreditBalanceResultBase & {
30
30
  balance: number;
31
31
  };
32
32
  type LowCreditBalanceResult = LowCreditBalanceLimitReachedResult | LowCreditBalanceWarningResult | null;
33
+ export type CreditCheckFn = CreditService["hasAvailableCredits"];
33
34
  export declare class CreditService {
34
35
  chargeCredits({ userId, teamId, credits, bookingUid, smsSid, smsSegments, phoneNumber, email, callDuration, creditFor, externalRef, }: {
35
36
  userId?: number;
@@ -52,7 +53,7 @@ export declare class CreditService {
52
53
  userId: number | undefined;
53
54
  teamId: number | undefined;
54
55
  }>;
55
- hasAvailableCredits({ userId, teamId }: {
56
+ hasAvailableCredits({ userId, teamId, }: {
56
57
  userId?: number | null;
57
58
  teamId?: number | null;
58
59
  }): Promise<boolean>;
@@ -67,6 +68,16 @@ export declare class CreditService {
67
68
  creditType: "ADDITIONAL";
68
69
  limitReached: boolean;
69
70
  } | null>;
71
+ /**
72
+ * Separates memberships into organization and team memberships.
73
+ * Organizations take precedence - if user belongs to any organization,
74
+ * only organization memberships are returned.
75
+ *
76
+ * @param memberships - User's accepted team memberships
77
+ * @param teams - Team data including isOrganization and parentId
78
+ * @returns Memberships to check (org memberships if any exist, otherwise team memberships)
79
+ */
80
+ private static filterMembershipsForCreditCheck;
70
81
  protected _getTeamWithAvailableCredits({ userId, tx }: {
71
82
  userId: number;
72
83
  tx: PrismaTransaction;
@@ -155,10 +166,11 @@ export declare class CreditService {
155
166
  tx: PrismaTransaction;
156
167
  externalRef?: string;
157
168
  }): Promise<void>;
158
- protected _handleLowCreditBalance({ teamId, userId, remainingCredits, tx, }: {
169
+ protected _handleLowCreditBalance({ teamId, userId, remainingCredits, creditFor, tx, }: {
159
170
  teamId?: number | null;
160
171
  userId?: number | null;
161
172
  remainingCredits: number;
173
+ creditFor?: CreditUsageType;
162
174
  tx: PrismaTransaction;
163
175
  }): Promise<LowCreditBalanceResult>;
164
176
  private _handleLowCreditBalanceResult;
@@ -211,6 +223,7 @@ export declare class CreditService {
211
223
  teamId: number;
212
224
  orgId: number;
213
225
  } | undefined>;
226
+ private _getUserIdsWithoutCredits;
214
227
  }
215
228
  export {};
216
229
  //# sourceMappingURL=credit-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"credit-service.d.ts","sourceRoot":"","sources":["../../../../../../../features/ee/billing/credit-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAgBzC,OAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIlD,KAAK,0BAA0B,GAAG;IAChC,IAAI,CAAC,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE;YACd,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;YACpB,KAAK,EAAE,MAAM,CAAC;YACd,CAAC,EAAE,SAAS,CAAC;SACd,EAAE,CAAC;KACL,CAAC;IACF,IAAI,CAAC,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,CAAC,EAAE,SAAS,CAAC;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tC,yBAAyB,CAAC,KAAK,EAAE,MAAM;IAOjC,aAAa,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;;;;;;cAM1E,cAAc,CAAC,EAC7B,MAAM,EACN,MAAM,EACN,EAAE,GACH,EAAE;QACD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,EAAE,EAAE,iBAAiB,CAAC;KACvB;;;;;;IAwBK,oBAAoB,CAAC,MAAM,EAAE,MAAM;;;;;;cAMzB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,iBAAiB,CAAA;KAAE;;;;;;IAqBzF,wBAAwB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;YA6DrE,yBAAyB;CA6BxC"}
@@ -0,0 +1,7 @@
1
+ import type { ITeamBillingDataRepository } from "../../repository/teamBillingData/ITeamBillingDataRepository";
2
+ import type { StripeBillingService } from "../../service/billingProvider/StripeBillingService";
3
+ import type { TeamBillingServiceFactory } from "../../service/teams/TeamBillingServiceFactory";
4
+ export declare function getTeamBillingServiceFactory(): TeamBillingServiceFactory;
5
+ export declare function getBillingProviderService(): StripeBillingService;
6
+ export declare function getTeamBillingDataRepository(): ITeamBillingDataRepository;
7
+ //# sourceMappingURL=Billing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Billing.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/containers/Billing.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAC9G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAW/F,wBAAgB,4BAA4B,IAAI,yBAAyB,CAExE;AAED,wBAAgB,yBAAyB,IAAI,oBAAoB,CAEhE;AAED,wBAAgB,4BAA4B,IAAI,0BAA0B,CAEzE"}
@@ -0,0 +1,3 @@
1
+ import { ModuleLoader } from '../../../../di/di';
2
+ export declare const billingProviderServiceModuleLoader: ModuleLoader;
3
+ //# sourceMappingURL=BillingProviderService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillingProviderService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/BillingProviderService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAUpF,eAAO,MAAM,kCAAkC,EAAE,YAShD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ModuleLoader } from '../../../../di/di';
2
+ export declare const billingRepositoryFactoryModuleLoader: ModuleLoader;
3
+ //# sourceMappingURL=BillingRepositoryFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillingRepositoryFactory.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/BillingRepositoryFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAgC1G,eAAO,MAAM,oCAAoC,EAAE,YAUlD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ModuleLoader } from '../../../../di/di';
2
+ export declare const isTeamBillingEnabledModuleLoader: ModuleLoader;
3
+ //# sourceMappingURL=IsTeamBillingEnabled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IsTeamBillingEnabled.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/IsTeamBillingEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAWpF,eAAO,MAAM,gCAAgC,EAAE,YAK9C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ModuleLoader } from '../../../../di/di';
2
+ export declare const stripeClientModule: import("@evyweb/ioctopus").Module;
3
+ export declare const stripeClientModuleLoader: ModuleLoader;
4
+ //# sourceMappingURL=StripeClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StripeClient.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/StripeClient.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgC,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAIpF,eAAO,MAAM,kBAAkB,mCAAiB,CAAC;AAYjD,eAAO,MAAM,wBAAwB,EAAE,YAKtC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ModuleLoader } from '../../../../di/di';
2
+ export declare const teamBillingDataRepositoryModuleLoader: ModuleLoader;
3
+ //# sourceMappingURL=TeamBillingDataRepositoryFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamBillingDataRepositoryFactory.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/TeamBillingDataRepositoryFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAuB1G,eAAO,MAAM,qCAAqC,EAAE,YAUnD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ModuleLoader } from '../../../../di/di';
2
+ export declare const teamBillingServiceFactoryModuleLoader: ModuleLoader;
3
+ //# sourceMappingURL=TeamBillingServiceFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamBillingServiceFactory.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/TeamBillingServiceFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,YAAY,EAA4B,MAAM,wBAAwB,CAAC;AAyB9F,eAAO,MAAM,qCAAqC,EAAE,YAGnD,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare const DI_TOKENS: {
2
+ STRIPE_CLIENT: symbol;
3
+ IS_TEAM_BILLING_ENABLED: symbol;
4
+ BILLING_PROVIDER_SERVICE: symbol;
5
+ BILLING_PROVIDER_SERVICE_MODULE: symbol;
6
+ BILLING_REPOSITORY_FACTORY: symbol;
7
+ BILLING_REPOSITORY_FACTORY_MODULE: symbol;
8
+ TEAM_BILLING_DATA_REPOSITORY: symbol;
9
+ TEAM_BILLING_DATA_REPOSITORY_MODULE: symbol;
10
+ TEAM_BILLING_SERVICE_FACTORY: symbol;
11
+ TEAM_BILLING_SERVICE_FACTORY_MODULE: symbol;
12
+ };
13
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/di/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { TFunction } from "i18next";
2
+ import type { PrismaClient } from '../../../../prisma';
3
+ interface UserWithBillingAccess {
4
+ id: number;
5
+ name: string | null;
6
+ email: string;
7
+ t: TFunction;
8
+ }
9
+ interface TeamWithBillingAdmins {
10
+ id: number;
11
+ name: string;
12
+ adminAndOwners: UserWithBillingAccess[];
13
+ }
14
+ interface GetUserAndTeamResult {
15
+ user?: UserWithBillingAccess;
16
+ team?: TeamWithBillingAdmins;
17
+ }
18
+ export declare function getUserAndTeamWithBillingPermission({ userId, teamId, prismaClient, }: {
19
+ userId?: number | null;
20
+ teamId?: number | null;
21
+ prismaClient: PrismaClient;
22
+ }): Promise<GetUserAndTeamResult>;
23
+ export {};
24
+ //# sourceMappingURL=getUserAndTeamWithBillingPermission.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserAndTeamWithBillingPermission.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/helpers/getUserAndTeamWithBillingPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,UAAU,qBAAqB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,SAAS,CAAC;CACd;AAED,UAAU,qBAAqB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,qBAAqB,EAAE,CAAC;CACzC;AAED,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;AAED,wBAAsB,mCAAmC,CAAC,EACxD,MAAM,EACN,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;CAC5B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA+ChC"}
@@ -0,0 +1,10 @@
1
+ import type { PrismaClient } from '../../../../prisma';
2
+ import type { CreditUsageType } from '../../../../prisma/enums';
3
+ export declare function handleInsufficientCredits({ userId, teamId, creditFor, prismaClient, context, }: {
4
+ userId?: number | null;
5
+ teamId?: number | null;
6
+ creditFor: CreditUsageType;
7
+ prismaClient: PrismaClient;
8
+ context?: Record<string, unknown>;
9
+ }): Promise<void>;
10
+ //# sourceMappingURL=handleInsufficientCredits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleInsufficientCredits.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/helpers/handleInsufficientCredits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAM5D,wBAAsB,yBAAyB,CAAC,EAC9C,MAAM,EACN,MAAM,EACN,SAAS,EACT,YAAY,EACZ,OAAO,GACR,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,GAAG,OAAO,CAAC,IAAI,CAAC,CAsChB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IBillingRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/billing/IBillingRepository.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI;IACd,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,UAAU,eAAe;CAC1B;AAED,oBAAY,kBAAkB;IAC5B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,kBAAkB,CAAC;IAC3B,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,IAAI,CAAC;CACxB"}
@@ -1,4 +1,4 @@
1
- import type { PrismaClient } from '../../../../prisma';
1
+ import type { PrismaClient } from '../../../../../prisma';
2
2
  import { IBillingRepository, IBillingRepositoryCreateArgs, BillingRecord } from "./IBillingRepository";
3
3
  export declare class PrismaOrganizationBillingRepository implements IBillingRepository {
4
4
  private readonly prismaClient;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrismaOrganizationBillingRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/billing/PrismaOrganizationBillingRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC5B,aAAa,EAGd,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,mCAAoC,YAAW,kBAAkB;IAChE,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IACjD,MAAM,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC;CAazE"}
@@ -1,4 +1,4 @@
1
- import type { PrismaClient } from '../../../../prisma';
1
+ import type { PrismaClient } from '../../../../../prisma';
2
2
  import { IBillingRepository, IBillingRepositoryCreateArgs, BillingRecord } from "./IBillingRepository";
3
3
  export declare class PrismaTeamBillingRepository implements IBillingRepository {
4
4
  private readonly prismaClient;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrismaTeamBillingRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/billing/PrismaTeamBillingRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC5B,aAAa,EAGd,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,2BAA4B,YAAW,kBAAkB;IACxD,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IACjD,MAAM,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC;CAazE"}
@@ -0,0 +1,5 @@
1
+ import type { BillingRecord, IBillingRepository, IBillingRepositoryCreateArgs } from "./IBillingRepository";
2
+ export declare class StubBillingRepository implements IBillingRepository {
3
+ create(args: IBillingRepositoryCreateArgs): Promise<BillingRecord>;
4
+ }
5
+ //# sourceMappingURL=StubBillingRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StubBillingRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/billing/StubBillingRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAE5G,qBAAa,qBAAsB,YAAW,kBAAkB;IACxD,MAAM,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC;CAYzE"}
@@ -1,16 +1,17 @@
1
- import type { Prisma } from '../../../../kysely/types.ts';
1
+ import type { Prisma } from '../../../../../kysely/types.ts';
2
2
  export declare const teamBillingSelect: {
3
3
  id: true;
4
4
  metadata: true;
5
5
  isOrganization: true;
6
6
  parentId: true;
7
+ name: true;
7
8
  };
8
9
  export type TeamBillingType = Prisma.TeamGetPayload<{
9
10
  select: typeof teamBillingSelect;
10
11
  }>;
11
- export interface ITeamBillingRepository {
12
+ export interface ITeamBillingDataRepository {
12
13
  find(teamId: number): Promise<TeamBillingType>;
13
- findBySubscriptionId(subscriptionId: string): Promise<TeamBillingType>;
14
+ findBySubscriptionId(subscriptionId: string): Promise<TeamBillingType | null>;
14
15
  findMany(teamIds: number[]): Promise<TeamBillingType[]>;
15
16
  }
16
- //# sourceMappingURL=team-billing.repository.interface.d.ts.map
17
+ //# sourceMappingURL=ITeamBillingDataRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITeamBillingDataRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/teamBillingData/ITeamBillingDataRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,eAAO,MAAM,iBAAiB;;;;;;CAMD,CAAC;AAE9B,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC;IAClD,MAAM,EAAE,OAAO,iBAAiB,CAAC;CAClC,CAAC,CAAC;AAEH,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC/C,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAC9E,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;CACzD"}
@@ -1,12 +1,11 @@
1
- import type { ITeamBillingRepository } from "./team-billing.repository.interface";
2
- export declare class TeamBillingRepository implements ITeamBillingRepository {
1
+ import type { PrismaClient } from '../../../../../prisma';
2
+ import type { ITeamBillingDataRepository } from "./ITeamBillingDataRepository";
3
+ export declare class PrismaTeamBillingDataRepository implements ITeamBillingDataRepository {
4
+ private prisma;
5
+ constructor(prisma: PrismaClient);
3
6
  /** Fetch a single team with minimal data needed for billing */
4
7
  find(teamId: number): Promise<{
5
- id: number;
6
- metadata: {};
7
- isOrganization: boolean;
8
- parentId: number;
9
- } | {
8
+ name: string;
10
9
  id: number;
11
10
  metadata: import("@prisma/client/runtime/client").JsonValue;
12
11
  parentId: number | null;
@@ -14,22 +13,19 @@ export declare class TeamBillingRepository implements ITeamBillingRepository {
14
13
  }>;
15
14
  /** Fetch a single team with minimal data needed for billing */
16
15
  findBySubscriptionId(subscriptionId: string): Promise<{
17
- id: number;
18
- metadata: {};
19
- isOrganization: boolean;
20
- parentId: number;
21
- } | {
16
+ name: string;
22
17
  id: number;
23
18
  metadata: import("@prisma/client/runtime/client").JsonValue;
24
19
  parentId: number | null;
25
20
  isOrganization: boolean;
26
- }>;
21
+ } | null>;
27
22
  /** Fetch multiple teams with minimal data needed for billing */
28
23
  findMany(teamIds: number[]): Promise<{
24
+ name: string;
29
25
  id: number;
30
26
  metadata: import("@prisma/client/runtime/client").JsonValue;
31
27
  parentId: number | null;
32
28
  isOrganization: boolean;
33
29
  }[]>;
34
30
  }
35
- //# sourceMappingURL=team-billing.repository.d.ts.map
31
+ //# sourceMappingURL=PrismaTeamBillingRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrismaTeamBillingRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/teamBillingData/PrismaTeamBillingRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAG/E,qBAAa,+BAAgC,YAAW,0BAA0B;IACpE,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,YAAY;IAExC,+DAA+D;IACzD,IAAI,CAAC,MAAM,EAAE,MAAM;;;;;;;IAGzB,+DAA+D;IACzD,oBAAoB,CAAC,cAAc,EAAE,MAAM;;;;;;;IAWjD,gEAAgE;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE;;;;;;;CAGjC"}
@@ -0,0 +1,20 @@
1
+ import { ITeamBillingDataRepository, TeamBillingType } from "./ITeamBillingDataRepository";
2
+ export declare class StubTeamBillingDataRepository implements ITeamBillingDataRepository {
3
+ stubTeam: {
4
+ id: number;
5
+ metadata: {};
6
+ isOrganization: boolean;
7
+ parentId: number;
8
+ name: string;
9
+ };
10
+ find(): Promise<{
11
+ id: number;
12
+ metadata: {};
13
+ isOrganization: boolean;
14
+ parentId: number;
15
+ name: string;
16
+ }>;
17
+ findBySubscriptionId(): Promise<TeamBillingType>;
18
+ findMany(): Promise<TeamBillingType[]>;
19
+ }
20
+ //# sourceMappingURL=StubTeamBillingRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StubTeamBillingRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/teamBillingData/StubTeamBillingRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE3F,qBAAa,6BAA8B,YAAW,0BAA0B;IAC9E,QAAQ;;;;;;MAA0E;IAE5E,IAAI;;;;;;;IAIJ,oBAAoB,IAAI,OAAO,CAAC,eAAe,CAAC;IAIhD,QAAQ,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAG7C"}
@@ -1,5 +1,6 @@
1
1
  import type Stripe from "stripe";
2
- export interface BillingService {
2
+ import { SubscriptionStatus } from "../../repository/billing/IBillingRepository";
3
+ export interface IBillingProviderService {
3
4
  checkoutSessionIsPaid(paymentId: string): Promise<boolean>;
4
5
  handleSubscriptionCancel(subscriptionId: string): Promise<void>;
5
6
  handleSubscriptionCreation(subscriptionId: string): Promise<void>;
@@ -60,7 +61,7 @@ export interface BillingService {
60
61
  priceId: string;
61
62
  }>;
62
63
  getPrice(priceId: string): Promise<Stripe.Price | null>;
63
- getSubscriptionStatus(subscriptionId: string): Promise<Stripe.Subscription.Status | null>;
64
+ getSubscriptionStatus(subscriptionId: string): Promise<SubscriptionStatus | null>;
64
65
  getCheckoutSession(checkoutSessionId: string): Promise<Stripe.Checkout.Session | null>;
65
66
  getCustomer(customerId: string): Promise<Stripe.Customer | Stripe.DeletedCustomer | null>;
66
67
  getSubscriptions(customerId: string): Promise<Stripe.Subscription[] | null>;
@@ -70,4 +71,4 @@ export interface BillingService {
70
71
  userId?: number;
71
72
  }): Promise<void>;
72
73
  }
73
- //# sourceMappingURL=billing-service.d.ts.map
74
+ //# sourceMappingURL=IBillingProviderService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IBillingProviderService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/billingProvider/IBillingProviderService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF,MAAM,WAAW,uBAAuB;IACtC,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D,wBAAwB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,wBAAwB,CAAC,IAAI,EAAE;QAC7B,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,eAAe,EAAE,MAAM,CAAC;KACzB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAGtD,cAAc,CAAC,IAAI,EAAE;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACnC,GAAG,OAAO,CAAC;QAAE,gBAAgB,EAAE,MAAM,CAAA;KAAE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QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;QAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;KAC5C,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IACxD,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IAElF,kBAAkB,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACvF,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAC1F,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAAC;IAC5E,cAAc,CAAC,IAAI,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7F"}
@@ -1,13 +1,13 @@
1
- import Stripe from "stripe";
2
- import type { BillingService } from "./billing-service";
3
- import { SubscriptionStatus } from "./repository/IBillingRepository";
4
- export declare class StripeBillingService implements BillingService {
1
+ import type Stripe from "stripe";
2
+ import { SubscriptionStatus } from "../../repository/billing/IBillingRepository";
3
+ import type { IBillingProviderService } from "./IBillingProviderService";
4
+ export declare class StripeBillingService implements IBillingProviderService {
5
5
  private stripe;
6
- constructor();
7
- createCustomer(args: Parameters<BillingService["createCustomer"]>[0]): Promise<{
6
+ constructor(stripe: Stripe);
7
+ createCustomer(args: Parameters<IBillingProviderService["createCustomer"]>[0]): Promise<{
8
8
  stripeCustomerId: string;
9
9
  }>;
10
- createPaymentIntent(args: Parameters<BillingService["createPaymentIntent"]>[0]): Promise<{
10
+ createPaymentIntent(args: Parameters<IBillingProviderService["createPaymentIntent"]>[0]): Promise<{
11
11
  id: string;
12
12
  client_secret: string | null;
13
13
  }>;
@@ -21,25 +21,25 @@ export declare class StripeBillingService implements BillingService {
21
21
  checkoutUrl: string | null;
22
22
  sessionId: string;
23
23
  }>;
24
- createSubscriptionCheckout(args: Parameters<BillingService["createSubscriptionCheckout"]>[0]): Promise<{
24
+ createSubscriptionCheckout(args: Parameters<IBillingProviderService["createSubscriptionCheckout"]>[0]): Promise<{
25
25
  checkoutUrl: string | null;
26
26
  sessionId: string;
27
27
  }>;
28
- createPrice(args: Parameters<BillingService["createPrice"]>[0]): Promise<{
28
+ createPrice(args: Parameters<IBillingProviderService["createPrice"]>[0]): Promise<{
29
29
  priceId: string;
30
30
  }>;
31
31
  handleSubscriptionCreation(subscriptionId: string): Promise<void>;
32
32
  handleSubscriptionCancel(subscriptionId: string): Promise<void>;
33
- handleSubscriptionUpdate(args: Parameters<BillingService["handleSubscriptionUpdate"]>[0]): Promise<void>;
33
+ handleSubscriptionUpdate(args: Parameters<IBillingProviderService["handleSubscriptionUpdate"]>[0]): Promise<void>;
34
34
  handleEndTrial(subscriptionId: string): Promise<void>;
35
35
  checkoutSessionIsPaid(paymentId: string): Promise<boolean>;
36
- getSubscriptionStatus(subscriptionId: string): Promise<Stripe.Subscription.Status | null>;
36
+ getSubscriptionStatus(subscriptionId: string): Promise<SubscriptionStatus | null>;
37
37
  getCheckoutSession(checkoutSessionId: string): Promise<Stripe.Response<Stripe.Checkout.Session>>;
38
38
  getCustomer(customerId: string): Promise<Stripe.Response<Stripe.Customer | Stripe.DeletedCustomer>>;
39
39
  getSubscriptions(customerId: string): Promise<Stripe.Subscription[]>;
40
- updateCustomer(args: Parameters<BillingService["updateCustomer"]>[0]): Promise<void>;
40
+ updateCustomer(args: Parameters<IBillingProviderService["updateCustomer"]>[0]): Promise<void>;
41
41
  getPrice(priceId: string): Promise<Stripe.Response<Stripe.Price>>;
42
- static extractSubscriptionDates(subscription: {
42
+ extractSubscriptionDates(subscription: {
43
43
  start_date: number;
44
44
  trial_end?: number | null;
45
45
  cancel_at?: number | null;
@@ -48,9 +48,9 @@ export declare class StripeBillingService implements BillingService {
48
48
  subscriptionTrialEnd: Date | null;
49
49
  subscriptionEnd: Date | null;
50
50
  };
51
- static mapStripeStatusToCalStatus: ({ stripeStatus, subscriptionId, }: {
51
+ mapStripeStatusToCalStatus({ stripeStatus, subscriptionId, }: {
52
52
  stripeStatus: string;
53
53
  subscriptionId: string;
54
- }) => SubscriptionStatus;
54
+ }): SubscriptionStatus;
55
55
  }
56
- //# sourceMappingURL=stripe-billing-service.d.ts.map
56
+ //# sourceMappingURL=StripeBillingService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StripeBillingService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/billingProvider/StripeBillingService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAIjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,qBAAa,oBAAqB,YAAW,uBAAuB;IACtD,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAE5B,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;;;IAY7E,mBAAmB,CAAC,IAAI,EAAE,UAAU,CAAC,uBAAuB,CAAC,qBAAq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cAAc,GACf,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,cAAc,EAAE,MAAM,CAAC;KACxB;CAqBF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=StripeBillingService.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StripeBillingService.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/billingProvider/StripeBillingService.test.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
- import type { Team } from '../../../../kysely/types.ts';
1
+ import type { Team } from '../../../../../kysely/types.ts';
2
+ import { SubscriptionStatus, IBillingRepositoryCreateArgs } from "../../repository/billing/IBillingRepository";
2
3
  export type TeamBillingInput = Pick<Team, "id" | "parentId" | "metadata" | "isOrganization">;
3
4
  export declare const TeamBillingPublishResponseStatus: {
4
5
  readonly REQUIRES_PAYMENT: "REQUIRES_PAYMENT";
@@ -9,10 +10,13 @@ export type TeamBillingPublishResponse = {
9
10
  redirectUrl: string | null;
10
11
  status: (typeof TeamBillingPublishResponseStatus)[keyof typeof TeamBillingPublishResponseStatus];
11
12
  };
12
- export interface TeamBilling {
13
+ export interface ITeamBillingService {
13
14
  cancel(): Promise<void>;
14
15
  publish(): Promise<TeamBillingPublishResponse>;
15
16
  downgrade(): Promise<void>;
16
17
  updateQuantity(): Promise<void>;
18
+ getSubscriptionStatus(): Promise<SubscriptionStatus | null>;
19
+ endTrial(): Promise<boolean>;
20
+ saveTeamBilling(args: IBillingRepositoryCreateArgs): Promise<void>;
17
21
  }
18
- //# sourceMappingURL=team-billing.d.ts.map
22
+ //# sourceMappingURL=ITeamBillingService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITeamBillingService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/teams/ITeamBillingService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,6CAA6C,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,GAAG,UAAU,GAAG,gBAAgB,CAAC,CAAC;AAC7F,eAAO,MAAM,gCAAgC;;;;CAInC,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;CAClG,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,OAAO,IAAI,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC/C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,qBAAqB,IAAI,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IAC5D,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,eAAe,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE"}
@@ -0,0 +1,13 @@
1
+ import type { ITeamBillingService, TeamBillingInput, TeamBillingPublishResponse } from "./ITeamBillingService";
2
+ export declare class StubTeamBillingService implements ITeamBillingService {
3
+ private team;
4
+ constructor(team: TeamBillingInput);
5
+ cancel(): Promise<void>;
6
+ publish(): Promise<TeamBillingPublishResponse>;
7
+ downgrade(): Promise<void>;
8
+ updateQuantity(): Promise<void>;
9
+ getSubscriptionStatus(): Promise<null>;
10
+ endTrial(): Promise<boolean>;
11
+ saveTeamBilling(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=StubTeamBillingService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StubTeamBillingService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/teams/StubTeamBillingService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,0BAA0B,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,sBAAuB,YAAW,mBAAmB;IACpD,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,gBAAgB;IAEpC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,OAAO,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAO9C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,qBAAqB;IAIrB,QAAQ;IAIR,eAAe;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TeamBillingFactory.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamBillingFactory.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/teams/TeamBillingFactory.test.ts"],"names":[],"mappings":""}
@@ -1,9 +1,18 @@
1
- import { IBillingRepositoryCreateArgs } from "../repository/IBillingRepository";
2
- import { type TeamBilling, type TeamBillingInput } from "./team-billing";
3
- export declare class InternalTeamBilling implements TeamBilling {
1
+ import type { IBillingRepository, IBillingRepositoryCreateArgs } from "../../repository/billing/IBillingRepository";
2
+ import { ITeamBillingDataRepository } from "../../repository/teamBillingData/ITeamBillingDataRepository";
3
+ import type { IBillingProviderService } from "../billingProvider/IBillingProviderService";
4
+ import { type ITeamBillingService, type TeamBillingInput } from "./ITeamBillingService";
5
+ export declare class TeamBillingService implements ITeamBillingService {
4
6
  private _team;
7
+ private billingProviderService;
5
8
  private billingRepository;
6
- constructor(team: TeamBillingInput);
9
+ private teamBillingDataRepository;
10
+ constructor({ team, billingProviderService, teamBillingDataRepository, billingRepository, }: {
11
+ team: TeamBillingInput;
12
+ billingProviderService: IBillingProviderService;
13
+ teamBillingDataRepository: ITeamBillingDataRepository;
14
+ billingRepository: IBillingRepository;
15
+ });
7
16
  set team(team: TeamBillingInput);
8
17
  get team(): typeof this._team;
9
18
  private getOrgIfNeeded;
@@ -36,7 +45,7 @@ export declare class InternalTeamBilling implements TeamBilling {
36
45
  paymentRequired: boolean;
37
46
  }>;
38
47
  /** Returns the subscription status (active, past_due, trialing, ...) */
39
- getSubscriptionStatus(): Promise<import("stripe").Stripe.Subscription.Status | null>;
48
+ getSubscriptionStatus(): Promise<import("../../repository/billing/IBillingRepository").SubscriptionStatus | null>;
40
49
  /**
41
50
  * Ends the trial period for a team subscription by converting it to a regular subscription
42
51
  * @returns {Promise<boolean>} True if successful, false otherwise
@@ -44,4 +53,4 @@ export declare class InternalTeamBilling implements TeamBilling {
44
53
  endTrial(): Promise<boolean>;
45
54
  saveTeamBilling(args: IBillingRepositoryCreateArgs): Promise<void>;
46
55
  }
47
- //# sourceMappingURL=internal-team-billing.d.ts.map
56
+ //# sourceMappingURL=TeamBillingService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamBillingService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/teams/TeamBillingService.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AACzG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAM/B,qBAAa,kBAAmB,YAAW,mBAAmB;IAC5D,OAAO,CAAC,KAAK,CAEX;IACF,OAAO,CAAC,sBAAsB,CAA0B;IACxD,OAAO,CAAC,iBAAiB,CAAqB;IAC9C,OAAO,CAAC,yBAAyB,CAA6B;gBAElD,EACV,IAAI,EACJ,sBAAsB,EACtB,yBAAyB,EACzB,iBAAiB,GAClB,EAAE;QACD,IAAI,EAAE,gBAAgB,CAAC;QACvB,sBAAsB,EAAE,uBAAuB,CAAC;QAChD,yBAAyB,EAAE,0BAA0B,CAAC;QACtD,iBAAiB,EAAE,kBAAkB,CAAC;KACvC;IAMD,IAAI,IAAI,CAAC,IAAI,EAAE,gBAAgB,EAG9B;IACD,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,CAE5B;YACa,cAAc;IAK5B,OAAO,CAAC,mBAAmB;IAKrB,MAAM;IAaN,OAAO;;;;;;;;;;IA8CP,SAAS;IAcT,cAAc;IAiCpB,uDAAuD;IACjD,0BAA0B;;;;;;;;;;;;;IAchC,wEAAwE;IAClE,qBAAqB;IAM3B;;;OAGG;IACG,QAAQ;IAmBR,eAAe,CAAC,IAAI,EAAE,4BAA4B;CAGzD"}