@calcom/atoms 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddressInput-D_qJhLzB.js → AddressInput-f4vKQ-ZH.js} +2 -2
- package/dist/{AlbyPriceComponent-DTr4dS2T.js → AlbyPriceComponent-CA9cczi2.js} +22 -22
- package/dist/{AppCard-D9BWbLoQ.js → AppCard-BJK_0kDR.js} +16 -16
- package/dist/{AppListCardPlatformWrapper-_EBRqeMS.js → AppListCardPlatformWrapper-mFSRYSqN.js} +1 -1
- package/dist/{AppListCardWebWrapper-xuH4zmXc.js → AppListCardWebWrapper-DexGUFDR.js} +5 -5
- package/dist/{AppSettingsInterface-WBHsOfkQ.js → AppSettingsInterface-BdvqEr52.js} +6 -6
- package/dist/{AppSettingsInterface-DUBl5_Qa.js → AppSettingsInterface-Cya3jpVo.js} +1 -1
- package/dist/{AppSettingsInterface-CeGmkTJH.js → AppSettingsInterface-i7PYOQQH.js} +1 -1
- package/dist/{DateRangePicker-DUmLGrBy.js → DateRangePicker-xZvH_2z1.js} +37 -34
- package/dist/EventTypeAppCardInterface-1cNQoGFP.js +35 -0
- package/dist/{EventTypeAppCardInterface-Buzf2G85.js → EventTypeAppCardInterface-6geoLxir.js} +11 -11
- package/dist/{EventTypeAppCardInterface-BJAQezPj.js → EventTypeAppCardInterface-9qwd3aOJ.js} +6 -6
- package/dist/{EventTypeAppCardInterface-pbXXAWOK.js → EventTypeAppCardInterface-B07yJ1mF.js} +4 -4
- package/dist/{EventTypeAppCardInterface-vgO23u6L.js → EventTypeAppCardInterface-B6suxu2l.js} +8 -8
- package/dist/EventTypeAppCardInterface-B9hU46fc.js +1057 -0
- package/dist/{EventTypeAppCardInterface-BL3g5Np7.js → EventTypeAppCardInterface-BDXOIv18.js} +4 -4
- package/dist/{EventTypeAppCardInterface-DsjqV8kI.js → EventTypeAppCardInterface-BIOuvr-b.js} +8 -8
- package/dist/{EventTypeAppCardInterface-C68vmVHv.js → EventTypeAppCardInterface-BMrth1bt.js} +9 -9
- package/dist/{EventTypeAppCardInterface-pgeXlPI3.js → EventTypeAppCardInterface-BNlsjO5x.js} +2 -2
- package/dist/{EventTypeAppCardInterface-xRLCtgu-.js → EventTypeAppCardInterface-BTU-TRid.js} +8 -8
- package/dist/{EventTypeAppCardInterface-NjjjNfKW.js → EventTypeAppCardInterface-BVGDzJOq.js} +11 -11
- package/dist/{EventTypeAppCardInterface-CH2qCEPy.js → EventTypeAppCardInterface-BXxxuuJ7.js} +10 -10
- package/dist/{EventTypeAppCardInterface-BKEeGNl1.js → EventTypeAppCardInterface-BXzC3kC-.js} +11 -11
- package/dist/{EventTypeAppCardInterface-CJVu3xox.js → EventTypeAppCardInterface-Bs4namZI.js} +3 -3
- package/dist/{EventTypeAppCardInterface-Cl484XrN.js → EventTypeAppCardInterface-CAPrKZmL.js} +8 -8
- package/dist/{EventTypeAppCardInterface-CvqxuVoH.js → EventTypeAppCardInterface-CGX9b3dQ.js} +11 -11
- package/dist/{EventTypeAppCardInterface-DU9AFmCP.js → EventTypeAppCardInterface-CXLtF6WB.js} +10 -10
- package/dist/EventTypeAppCardInterface-CkVUhYGv.js +595 -0
- package/dist/{EventTypeAppCardInterface-B760l1_N.js → EventTypeAppCardInterface-CnkDo5qs.js} +3 -3
- package/dist/{EventTypeAppCardInterface-DCeEs1Xh.js → EventTypeAppCardInterface-D1TORolY.js} +11 -11
- package/dist/{EventTypeAppCardInterface-Cu1P7ygp.js → EventTypeAppCardInterface-D50Rq3yV.js} +3 -3
- package/dist/{EventTypeAppCardInterface-B23sJAMz.js → EventTypeAppCardInterface-DOEDZhro.js} +6 -6
- package/dist/{EventTypeAppCardInterface-EKXHRvho.js → EventTypeAppCardInterface-Du9uVrns.js} +11 -11
- package/dist/{EventTypeAppCardInterface-CQiBqsEG.js → EventTypeAppCardInterface-PgAvyoAD.js} +9 -9
- package/dist/{EventTypeAppCardInterface-2TdM9o8J.js → EventTypeAppCardInterface-mGHooErl.js} +3 -3
- package/dist/{EventTypeAppCardInterface-BKh8cGfG.js → EventTypeAppCardInterface-wJhvni5q.js} +3 -3
- package/dist/{EventTypeAppCardInterface-B7ZcnYKc.js → EventTypeAppCardInterface-zHfqLGJM.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-LbM_iIAR.js → EventTypeAppSettingsInterface-B9haaCfB.js} +2 -2
- package/dist/{EventTypeAppSettingsInterface-DgGOMDGJ.js → EventTypeAppSettingsInterface-BchIxELb.js} +5 -5
- package/dist/{EventTypeAppSettingsInterface-GIPEBkW3.js → EventTypeAppSettingsInterface-BgX-ogxt.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-CQ_bvTKH.js → EventTypeAppSettingsInterface-CI4hn91b.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-C9JadH2b.js → EventTypeAppSettingsInterface-CLW1NtaN.js} +8 -8
- package/dist/{EventTypeAppSettingsInterface-BRaHtL2K.js → EventTypeAppSettingsInterface-DGry6tH6.js} +7 -7
- package/dist/{EventTypeAppSettingsInterface-SYoB6JXp.js → EventTypeAppSettingsInterface-DP4wdyyj.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-By6EBo9E.js → EventTypeAppSettingsInterface-DPyV91Do.js} +18 -18
- package/dist/{EventTypeAppSettingsInterface-CKB_rBL9.js → EventTypeAppSettingsInterface-DeugzLHf.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-Cn-Whfe6.js → EventTypeAppSettingsInterface-JEjsuGmk.js} +14 -14
- package/dist/{EventTypeAppSettingsInterface-CpkD6C9g.js → EventTypeAppSettingsInterface-MsmSSDZl.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BADk3O7K.js → EventTypeAppSettingsInterface-NB1ekair.js} +4 -4
- package/dist/{EventTypeAppSettingsInterface-B3avXMpC.js → EventTypeAppSettingsInterface-Rg2oX8f4.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-CxO1EY_c.js → EventTypeAppSettingsInterface-UxGRBfXd.js} +12 -12
- package/dist/{EventTypeDescription-tEiAJAgH.js → EventTypeDescription-CKlCgvPh.js} +3 -3
- package/dist/{InstallAppButton-CLOCHjEc.js → InstallAppButton-BTAdrty4.js} +5 -5
- package/dist/{InstallAppButton-DkdGTx_I.js → InstallAppButton-BvOyTPxP.js} +1 -1
- package/dist/{InstallAppButton-uz1sLv6L.js → InstallAppButton-BxlN-3rh.js} +1 -1
- package/dist/{PhoneInput-C4aNpAaj.js → PhoneInput-4hYjhM4r.js} +102 -102
- package/dist/{StripePaymentForm-71xbsx4D.js → StripePaymentForm-DyQCn9dg.js} +25 -25
- package/dist/{Tips-C9obntAr.js → Tips-V2FgN4J3.js} +23 -23
- package/dist/cal-atoms.js +32 -31
- package/dist/{index-D0_H5uQg.js → index-DJmppf57.js} +115215 -98548
- package/dist/index-DWXW1cmD.js +27 -0
- package/dist/packages/dayjs/__mocks__/index.d.ts.map +1 -1
- package/dist/packages/dayjs/index.d.ts.map +1 -1
- package/dist/packages/dayjs/plugins/business-days-plugin.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/__tests__/test-utils.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/__tests__/test-utils.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/store.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/store.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useAvailableTimeSlots.d.ts +2 -2
- package/dist/packages/features/bookings/Booker/hooks/useAvailableTimeSlots.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useBookerLayout.d.ts +4 -3
- package/dist/packages/features/bookings/Booker/hooks/useBookerLayout.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useBookerTime.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/hooks/useBookerTime.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useBookingForm.d.ts +2 -2
- package/dist/packages/features/bookings/Booker/hooks/useBookingForm.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useInitialFormValues.d.ts +2 -2
- package/dist/packages/features/bookings/Booker/hooks/useInitialFormValues.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/hooks/useInitialFormValues.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/hooks/useLocalSet.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/store.d.ts +6 -1
- package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts +10 -50
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +28 -8
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/isFeatureEnabledForVisitor.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/isTimeslotAvailable.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/utils/isTimeslotAvailable.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/EventManager.d.ts +6 -1
- package/dist/packages/features/bookings/lib/EventManager.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts +12 -12
- package/dist/packages/features/bookings/lib/bookingSuccessRedirect.d.ts +2 -1
- package/dist/packages/features/bookings/lib/bookingSuccessRedirect.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/create-booking.d.ts +17 -14
- package/dist/packages/features/bookings/lib/create-booking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +17 -14
- package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/get-booking.d.ts +5 -5
- package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts +23 -20
- package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getAssignmentReasonCategory.d.ts +8 -0
- package/dist/packages/features/bookings/lib/getAssignmentReasonCategory.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/getAssignmentReasonCategory.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getAssignmentReasonCategory.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +4 -4
- package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +8 -8
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +14 -6
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +9 -9
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts +7 -3
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts +7 -3
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +6 -5
- package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +36 -14
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/findBookingQuery.d.ts +2 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/findBookingQuery.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +8 -8
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +55 -19
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +36 -14
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +19 -13
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +8 -7
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/getNewBookingHandler.d.ts +17 -14
- package/dist/packages/features/bookings/lib/handleNewBooking/test/getNewBookingHandler.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/per-host-locations.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/per-host-locations.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handlePayment.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +39 -5
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.integration-test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.integration-test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts +2 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/combineTwoSeatedBookings.d.ts +2 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/combineTwoSeatedBookings.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts +2 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +6 -5
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts +3 -6
- package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/payment/getBooking.d.ts +15 -7
- package/dist/packages/features/bookings/lib/payment/getBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts +1 -1
- package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/payment/handlePaymentRefund.d.ts +1 -1
- package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +4 -6
- package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts +53 -42
- package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts.map +1 -1
- package/dist/packages/features/bookings/types.d.ts +1 -1
- package/dist/packages/features/bookings/types.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts +18 -3
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.org.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.team.d.ts +6 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.team.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.d.ts +11 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.d.ts +11 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.upcoming.d.ts +20 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.upcoming.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.d.ts +23 -0
- package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/index.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/di/modules/HighWaterMarkRepository.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/HighWaterMarkRepository.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/HighWaterMarkService.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/HighWaterMarkService.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/MonthlyProrationService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/di/modules/MonthlyProrationTeamRepository.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/MonthlyProrationTeamRepository.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/tasker/ProrationEmailSyncTasker.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/tasker/ProrationEmailSyncTasker.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTasker.container.d.ts +3 -0
- package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTasker.container.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTasker.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTasker.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTriggerDevTasker.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTriggerDevTasker.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/tasker/tokens.d.ts +8 -0
- package/dist/packages/features/ee/billing/di/tasker/tokens.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/di/tokens.d.ts +6 -0
- package/dist/packages/features/ee/billing/di/tokens.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/lib/month-key.d.ts +1 -0
- package/dist/packages/features/ee/billing/lib/month-key.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/lib/proration-utils.d.ts +12 -0
- package/dist/packages/features/ee/billing/lib/proration-utils.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/lib/stripe-subscription-utils.d.ts +24 -2
- package/dist/packages/features/ee/billing/lib/stripe-subscription-utils.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/lib/subscription-updates.d.ts +13 -0
- package/dist/packages/features/ee/billing/lib/subscription-updates.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/repository/billing/IBillingRepository.d.ts +13 -0
- package/dist/packages/features/ee/billing/repository/billing/IBillingRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/billing/PrismaOrganizationBillingRepository.d.ts +6 -1
- package/dist/packages/features/ee/billing/repository/billing/PrismaOrganizationBillingRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/billing/PrismaTeamBillingRepository.d.ts +6 -1
- package/dist/packages/features/ee/billing/repository/billing/PrismaTeamBillingRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/billing/StubBillingRepository.d.ts +6 -1
- package/dist/packages/features/ee/billing/repository/billing/StubBillingRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.d.ts +54 -0
- package/dist/packages/features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/repository/highWaterMark/__tests__/HighWaterMarkRepository.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/repository/highWaterMark/__tests__/HighWaterMarkRepository.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationRepository.d.ts +8 -0
- package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationTeamRepository.d.ts +5 -0
- package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationTeamRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/billingPeriod/BillingPeriodService.d.ts +10 -1
- package/dist/packages/features/ee/billing/service/billingPeriod/BillingPeriodService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/billingProvider/IBillingProviderService.d.ts +57 -1
- package/dist/packages/features/ee/billing/service/billingProvider/IBillingProviderService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.d.ts +44 -1
- package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/dueInvoice/DueInvoiceService.d.ts +46 -0
- package/dist/packages/features/ee/billing/service/dueInvoice/DueInvoiceService.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dueInvoice/cleanup-proration-test.d.ts +12 -0
- package/dist/packages/features/ee/billing/service/dueInvoice/cleanup-proration-test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dueInvoice/seed-proration-test.d.ts +24 -0
- package/dist/packages/features/ee/billing/service/dueInvoice/seed-proration-test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/highWaterMark/HighWaterMarkService.d.ts +51 -0
- package/dist/packages/features/ee/billing/service/highWaterMark/HighWaterMarkService.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/highWaterMark/__tests__/HighWaterMarkService.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/highWaterMark/__tests__/HighWaterMarkService.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/highWaterMark/__tests__/HighWaterMarkStripe.integration-test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/highWaterMark/__tests__/HighWaterMarkStripe.integration-test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/highWaterMark/seed-hwm-test.d.ts +1 -0
- package/dist/packages/features/ee/billing/service/highWaterMark/seed-hwm-test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/MonthlyProrationService.d.ts +7 -1
- package/dist/packages/features/ee/billing/service/proration/MonthlyProrationService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/ProrationEmailService.d.ts +17 -0
- package/dist/packages/features/ee/billing/service/proration/ProrationEmailService.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/MonthlyProrationSyncTasker.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailSyncTasker.d.ts +16 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailSyncTasker.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailTasker.d.ts +23 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailTasker.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailTriggerDevTasker.d.ts +16 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailTriggerDevTasker.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/cancelProrationReminder.d.ts +10 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/cancelProrationReminder.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailConfig.d.ts +6 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailConfig.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailSchemas.d.ts +35 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailSchemas.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/processMonthlyProrationBatch.d.ts +33 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/processMonthlyProrationBatch.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/scheduleMonthlyProration.d.ts +31 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/scheduleMonthlyProration.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationInvoiceEmail.d.ts +16 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationInvoiceEmail.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationReminderEmail.d.ts +13 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationReminderEmail.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/types.d.ts +23 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/types.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/seatTracking/SeatChangeTrackingService.d.ts +14 -3
- package/dist/packages/features/ee/billing/service/seatTracking/SeatChangeTrackingService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/teams/TeamBillingService.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/pages/payment.d.ts +5 -2
- package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +4 -0
- package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +35 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +12 -7
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts +4 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/utils/bookingSelect.d.ts +2 -0
- package/dist/packages/features/ee/round-robin/utils/bookingSelect.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +0 -8
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +1 -2
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts +0 -11
- package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +2 -2
- package/dist/packages/features/ee/workflows/lib/scheduleWorkflowNotifications.d.ts +2 -2
- package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts +1 -2
- package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/test/urlScanner.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/test/urlScanner.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/types.d.ts +0 -3
- package/dist/packages/features/ee/workflows/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/urlScanner.d.ts +63 -0
- package/dist/packages/features/ee/workflows/lib/urlScanner.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts +0 -3
- package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts +7 -12
- package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/AssignAllTeamMembers.d.ts +11 -0
- package/dist/packages/features/eventtypes/components/AssignAllTeamMembers.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/BulkEditDefaultForEventsModal.d.ts +27 -0
- package/dist/packages/features/eventtypes/components/BulkEditDefaultForEventsModal.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts +40 -0
- package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/ChildrenEventTypeSelect.d.ts +32 -0
- package/dist/packages/features/eventtypes/components/ChildrenEventTypeSelect.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/CreateEventTypeForm.d.ts +16 -0
- package/dist/packages/features/eventtypes/components/CreateEventTypeForm.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/LearnMoreLink.d.ts +9 -0
- package/dist/packages/features/eventtypes/components/LearnMoreLink.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/WeightDescription.d.ts +5 -0
- package/dist/packages/features/eventtypes/components/WeightDescription.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/dialogs/HostEditDialogs.d.ts +28 -0
- package/dist/packages/features/eventtypes/components/dialogs/HostEditDialogs.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/dialogs/ManagedEventDialog.d.ts +13 -0
- package/dist/packages/features/eventtypes/components/dialogs/ManagedEventDialog.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/locations/LocationInput.d.ts +12 -0
- package/dist/packages/features/eventtypes/components/locations/LocationInput.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/locations/types.d.ts +23 -0
- package/dist/packages/features/eventtypes/components/locations/types.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts +58 -0
- package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts +10 -0
- package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/tabs/recurring/EventRecurringTab.d.ts +4 -0
- package/dist/packages/features/eventtypes/components/tabs/recurring/EventRecurringTab.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.d.ts +22 -0
- package/dist/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/eventtypes.repository.interface.d.ts +13 -0
- package/dist/packages/features/eventtypes/eventtypes.repository.interface.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts +57 -15
- package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts +52 -10
- package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts +7 -1
- package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts +4 -1
- package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +49 -11
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +2 -0
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +13 -0
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts +30 -10
- package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts +116 -31
- package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts +1 -1
- package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/DateOverrideList.d.ts +7 -2
- package/dist/packages/features/schedules/components/DateOverrideList.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/{Schedule.d.ts → ScheduleComponent.d.ts} +1 -10
- package/dist/packages/features/schedules/components/ScheduleComponent.d.ts.map +1 -0
- package/dist/packages/features/schedules/components/ScheduleListItem.d.ts +18 -2
- package/dist/packages/features/schedules/components/ScheduleListItem.d.ts.map +1 -1
- package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts +0 -2
- package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts.map +1 -1
- package/dist/packages/kysely/types.d.ts +59 -4
- package/dist/packages/kysely/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/types.d.ts +3 -2
- package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts +3 -0
- package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts.map +1 -1
- package/dist/packages/platform/atoms/cal-provider/BaseCalProvider.d.ts +6 -2
- package/dist/packages/platform/atoms/cal-provider/BaseCalProvider.d.ts.map +1 -1
- package/dist/packages/platform/atoms/cal-provider/CalOAuthProvider.d.ts +19 -0
- package/dist/packages/platform/atoms/cal-provider/CalOAuthProvider.d.ts.map +1 -0
- package/dist/packages/platform/atoms/cal-provider/CalProvider.d.ts +7 -2
- package/dist/packages/platform/atoms/cal-provider/CalProvider.d.ts.map +1 -1
- package/dist/packages/platform/atoms/cal-provider/index.d.ts +1 -0
- package/dist/packages/platform/atoms/cal-provider/index.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/ConferencingAppsViewPlatformWrapper.d.ts +17 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/ConferencingAppsViewPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +2 -0
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/DestinationCalendarSelector.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +31 -3
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +5 -2
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +14 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventLimitsTabPlatformWrapper.d.ts +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventLimitsTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventRecurringTabPlatformWrapper.d.ts +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventRecurringTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTeamAssignmentTabPlatformWrapper.d.ts +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTeamAssignmentTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +17 -14
- package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +19 -16
- package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +17 -14
- package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +2 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventTypeForm.d.ts +8 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventTypeForm.d.ts.map +1 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +2 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +2 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +31 -11
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +2 -320
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useOAuthClient.d.ts +8 -6
- package/dist/packages/platform/atoms/hooks/useOAuthClient.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useOAuthFlow.d.ts +4 -1
- package/dist/packages/platform/atoms/hooks/useOAuthFlow.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +2 -1
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/timezone/index.d.ts +2 -2
- package/dist/packages/platform/atoms/timezone/index.d.ts.map +1 -1
- package/dist/packages/platform/atoms/vite.config.d.ts.map +1 -1
- package/dist/packages/platform/constants/index.d.ts +1 -1
- package/dist/packages/platform/constants/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +29 -25
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/organizations.d.ts +6 -0
- package/dist/packages/platform/libraries/organizations.d.ts.map +1 -1
- package/dist/packages/platform/libraries/tasker.d.ts +2 -0
- package/dist/packages/platform/libraries/tasker.d.ts.map +1 -0
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/add-guests.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking-input.pipe.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/reschedule-booking.input.d.ts +1 -0
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/reschedule-booking.input.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditActionSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditActionSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditSourceSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditSourceSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/CredentialScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/CredentialScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/HostLocationScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/HostLocationScalarFieldEnumSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/MonthlyProrationScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/MonthlyProrationScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientStatusSchema.d.ts +5 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientStatusSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationBillingScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationBillingScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/PendingRoutingTraceScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/PendingRoutingTraceScalarFieldEnumSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/RoutingTraceScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/RoutingTraceScalarFieldEnumSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/SelectedCalendarScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/SelectedCalendarScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/TeamBillingScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/TeamBillingScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/UserScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/UserScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/WebhookTriggerEventsSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/WebhookTriggerEventsSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/AttendeeSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/BookingAuditSchema.d.ts +6 -6
- package/dist/packages/prisma/zod/modelSchema/BookingReferenceSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/BookingSchema.d.ts +4 -4
- package/dist/packages/prisma/zod/modelSchema/CalAiPhoneNumberSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/CredentialSchema.d.ts +3 -0
- package/dist/packages/prisma/zod/modelSchema/CredentialSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/CreditExpenseLogSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/DelegationCredentialSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/DestinationCalendarSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/DomainWideDelegationSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts +35 -8
- package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/HostLocationSchema.d.ts +38 -0
- package/dist/packages/prisma/zod/modelSchema/HostLocationSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/IntegrationAttributeSyncSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/MonthlyProrationSchema.d.ts +3 -0
- package/dist/packages/prisma/zod/modelSchema/MonthlyProrationSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts +18 -0
- package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/OrganizationBillingSchema.d.ts +6 -0
- package/dist/packages/prisma/zod/modelSchema/OrganizationBillingSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/OrganizationOnboardingSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/PaymentSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/PendingRoutingTraceSchema.d.ts +23 -0
- package/dist/packages/prisma/zod/modelSchema/PendingRoutingTraceSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/RoutingTraceSchema.d.ts +29 -0
- package/dist/packages/prisma/zod/modelSchema/RoutingTraceSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/SelectedCalendarSchema.d.ts +8 -2
- package/dist/packages/prisma/zod/modelSchema/SelectedCalendarSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/TeamBillingSchema.d.ts +6 -0
- package/dist/packages/prisma/zod/modelSchema/TeamBillingSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/UserSchema.d.ts +0 -6
- package/dist/packages/prisma/zod/modelSchema/UserSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/VerifiedNumberSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/WebhookSchema.d.ts +3 -3
- package/dist/packages/prisma/zod/modelSchema/WorkspacePlatformSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/index.d.ts +3 -0
- package/dist/packages/prisma/zod/modelSchema/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +63 -18
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/{server.browser-BJMk0EAl.js → server.browser-CyeXzv12.js} +51 -51
- package/dist/{useIsAppEnabled-Bx1VHlWh.js → useIsAppEnabled-CyDpJ2dz.js} +4 -4
- package/package.json +2 -1
- package/dist/EventTypeAppCardInterface-C4r11pBP.js +0 -858
- package/dist/EventTypeAppCardInterface-CBkk_xfC.js +0 -514
- package/dist/EventTypeAppCardInterface-D9uSoM3s.js +0 -35
- package/dist/index-Bc5ILkDb.js +0 -5
- package/dist/index-CK8KWA8T.js +0 -27
- package/dist/packages/features/bookings/Booker/components/hooks/useAvailableTimeSlots.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookerTime.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +0 -227
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +0 -299
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useDecoyBooking.d.ts +0 -8
- package/dist/packages/features/bookings/Booker/components/hooks/useDecoyBooking.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.test.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useInitializeWeekStart.d.ts +0 -2
- package/dist/packages/features/bookings/Booker/components/hooks/useInitializeWeekStart.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useIsQuickAvailabilityCheckFeatureEnabled.d.ts +0 -2
- package/dist/packages/features/bookings/Booker/components/hooks/useIsQuickAvailabilityCheckFeatureEnabled.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useLocalSet.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useOverlayCalendar.d.ts +0 -11
- package/dist/packages/features/bookings/Booker/components/hooks/useOverlayCalendar.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useSkipConfirmStep.d.ts +0 -6
- package/dist/packages/features/bookings/Booker/components/hooks/useSkipConfirmStep.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useSlots.d.ts +0 -24
- package/dist/packages/features/bookings/Booker/components/hooks/useSlots.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useVerifyCode.d.ts +0 -18
- package/dist/packages/features/bookings/Booker/components/hooks/useVerifyCode.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useVerifyEmail.d.ts +0 -19
- package/dist/packages/features/bookings/Booker/components/hooks/useVerifyEmail.d.ts.map +0 -1
- package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts +0 -21
- package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts.map +0 -1
- package/dist/packages/features/components/timezone-select/index.d.ts +0 -3
- package/dist/packages/features/components/timezone-select/index.d.ts.map +0 -1
- package/dist/packages/features/components/timezone-select/timezone-select.test.d.ts +0 -2
- package/dist/packages/features/components/timezone-select/timezone-select.test.d.ts.map +0 -1
- package/dist/packages/features/ee/workflows/hooks/useAgentsData.d.ts +0 -23
- package/dist/packages/features/ee/workflows/hooks/useAgentsData.d.ts.map +0 -1
- package/dist/packages/features/ee/workflows/lib/test/replaceCloakedLinksInHtml.test.d.ts +0 -2
- package/dist/packages/features/ee/workflows/lib/test/replaceCloakedLinksInHtml.test.d.ts.map +0 -1
- package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts +0 -137
- package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts.map +0 -1
- package/dist/packages/features/schedules/components/NewScheduleButton.d.ts +0 -5
- package/dist/packages/features/schedules/components/NewScheduleButton.d.ts.map +0 -1
- package/dist/packages/features/schedules/components/Schedule.d.ts.map +0 -1
- package/dist/packages/features/schedules/components/date-override-list.test.d.ts +0 -2
- package/dist/packages/features/schedules/components/date-override-list.test.d.ts.map +0 -1
- /package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useInitialFormValues.test.d.ts +0 -0
- /package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useLocalSet.d.ts +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SWHMap } from './__handler';
|
|
2
|
+
type Data = SWHMap["invoice.upcoming"]["data"];
|
|
3
|
+
declare const handler: (data: Data) => Promise<{
|
|
4
|
+
success: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
highWaterMarkApplied?: undefined;
|
|
7
|
+
error?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
success: boolean;
|
|
10
|
+
highWaterMarkApplied: boolean;
|
|
11
|
+
message?: undefined;
|
|
12
|
+
error?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
success: boolean;
|
|
15
|
+
error: string;
|
|
16
|
+
message?: undefined;
|
|
17
|
+
highWaterMarkApplied?: undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export default handler;
|
|
20
|
+
//# sourceMappingURL=_invoice.upcoming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_invoice.upcoming.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/_invoice.upcoming.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,KAAK,IAAI,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI/C,QAAA,MAAM,OAAO,GAAU,MAAM,IAAI;;;;;;;;;;;;;;;EA4ChC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Logger } from 'tslog';
|
|
2
|
+
export declare function extractPeriodStartFromInvoice(linesData: Array<{
|
|
3
|
+
period?: {
|
|
4
|
+
start: number;
|
|
5
|
+
end: number;
|
|
6
|
+
};
|
|
7
|
+
}>): number | undefined;
|
|
8
|
+
export declare function validateInvoiceLinesForHwm(linesData: Array<{
|
|
9
|
+
period?: {
|
|
10
|
+
start: number;
|
|
11
|
+
end: number;
|
|
12
|
+
};
|
|
13
|
+
}>, subscriptionId: string, log?: Logger<unknown>): {
|
|
14
|
+
isValid: boolean;
|
|
15
|
+
periodStart?: number;
|
|
16
|
+
};
|
|
17
|
+
export interface HwmResetResult {
|
|
18
|
+
success: boolean;
|
|
19
|
+
updated?: boolean;
|
|
20
|
+
error?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function handleHwmResetAfterRenewal(subscriptionId: string, periodStartTimestamp: number | undefined, log?: Logger<unknown>): Promise<HwmResetResult>;
|
|
23
|
+
//# sourceMappingURL=hwm-webhook-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hwm-webhook-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/hwm-webhook-utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAIpC,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,KAAK,CAAC;IAAE,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,GAC5D,MAAM,GAAG,SAAS,CAKpB;AAED,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,KAAK,CAAC;IAAE,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,EAC7D,cAAc,EAAE,MAAM,EACtB,GAAG,GAAE,MAAM,CAAC,OAAO,CAAiB,GACnC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAiB5C;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,0BAA0B,CAC9C,cAAc,EAAE,MAAM,EACtB,oBAAoB,EAAE,MAAM,GAAG,SAAS,EACxC,GAAG,GAAE,MAAM,CAAC,OAAO,CAAiB,GACnC,OAAO,CAAC,cAAc,CAAC,CAoCzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hwm-webhook-utils.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/hwm-webhook-utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/api/webhook/index.ts"],"names":[],"mappings":";AAiBA,wBAIG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ModuleLoader } from '../../../../di/di';
|
|
2
|
+
import { HighWaterMarkRepository } from '../../repository/highWaterMark/HighWaterMarkRepository';
|
|
3
|
+
export declare const highWaterMarkRepositoryModuleLoader: ModuleLoader;
|
|
4
|
+
export type { HighWaterMarkRepository };
|
|
5
|
+
//# sourceMappingURL=HighWaterMarkRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighWaterMarkRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/HighWaterMarkRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,8EAA8E,CAAC;AAgBvH,eAAO,MAAM,mCAAmC,EAAE,YAGjD,CAAC;AAEF,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ModuleLoader } from '../../../../di/di';
|
|
2
|
+
import { HighWaterMarkService } from '../../service/highWaterMark/HighWaterMarkService';
|
|
3
|
+
export declare const highWaterMarkServiceModuleLoader: ModuleLoader;
|
|
4
|
+
export type { HighWaterMarkService };
|
|
5
|
+
//# sourceMappingURL=HighWaterMarkService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighWaterMarkService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/HighWaterMarkService.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,wEAAwE,CAAC;AAyB9G,eAAO,MAAM,gCAAgC,EAAE,YAG9C,CAAC;AAEF,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthlyProrationService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/MonthlyProrationService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MonthlyProrationService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/MonthlyProrationService.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,mCAAmC;;;CAGxB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ModuleLoader } from '../../../../di/di';
|
|
2
|
+
import { MonthlyProrationTeamRepository } from '../../repository/proration/MonthlyProrationTeamRepository';
|
|
3
|
+
export declare const monthlyProrationTeamRepositoryModuleLoader: ModuleLoader;
|
|
4
|
+
export type { MonthlyProrationTeamRepository };
|
|
5
|
+
//# sourceMappingURL=MonthlyProrationTeamRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonthlyProrationTeamRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/modules/MonthlyProrationTeamRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEnG,OAAO,EAAE,8BAA8B,EAAE,MAAM,iFAAiF,CAAC;AAgBjI,eAAO,MAAM,0CAA0C,EAAE,YAGxD,CAAC;AAEF,YAAY,EAAE,8BAA8B,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProrationEmailSyncTasker.module.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/tasker/ProrationEmailSyncTasker.module.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,YAAY;;;CAGD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProrationEmailTasker.container.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/tasker/ProrationEmailTasker.container.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AAOtH,wBAAgB,uBAAuB,IAAI,oBAAoB,CAG9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProrationEmailTasker.module.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/tasker/ProrationEmailTasker.module.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,YAAY;;;CAGD,CAAC"}
|
package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTriggerDevTasker.module.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProrationEmailTriggerDevTasker.module.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/tasker/ProrationEmailTriggerDevTasker.module.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,YAAY;;;CAGD,CAAC"}
|
|
@@ -6,4 +6,12 @@ export declare const MONTHLY_PRORATION_TASKER_DI_TOKENS: {
|
|
|
6
6
|
MONTHLY_PRORATION_TRIGGER_TASKER: symbol;
|
|
7
7
|
MONTHLY_PRORATION_TRIGGER_TASKER_MODULE: symbol;
|
|
8
8
|
};
|
|
9
|
+
export declare const PRORATION_EMAIL_TASKER_DI_TOKENS: {
|
|
10
|
+
PRORATION_EMAIL_TASKER: symbol;
|
|
11
|
+
PRORATION_EMAIL_TASKER_MODULE: symbol;
|
|
12
|
+
PRORATION_EMAIL_SYNC_TASKER: symbol;
|
|
13
|
+
PRORATION_EMAIL_SYNC_TASKER_MODULE: symbol;
|
|
14
|
+
PRORATION_EMAIL_TRIGGER_TASKER: symbol;
|
|
15
|
+
PRORATION_EMAIL_TRIGGER_TASKER_MODULE: symbol;
|
|
16
|
+
};
|
|
9
17
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/tasker/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC;;;;;;;CAO9C,CAAC"}
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/di/tasker/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC;;;;;;;CAO9C,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;CAO5C,CAAC"}
|
|
@@ -11,5 +11,11 @@ export declare const DI_TOKENS: {
|
|
|
11
11
|
TEAM_BILLING_SERVICE_FACTORY_MODULE: symbol;
|
|
12
12
|
MONTHLY_PRORATION_SERVICE: symbol;
|
|
13
13
|
MONTHLY_PRORATION_SERVICE_MODULE: symbol;
|
|
14
|
+
HIGH_WATER_MARK_SERVICE: symbol;
|
|
15
|
+
HIGH_WATER_MARK_SERVICE_MODULE: symbol;
|
|
16
|
+
HIGH_WATER_MARK_REPOSITORY: symbol;
|
|
17
|
+
HIGH_WATER_MARK_REPOSITORY_MODULE: symbol;
|
|
18
|
+
MONTHLY_PRORATION_TEAM_REPOSITORY: symbol;
|
|
19
|
+
MONTHLY_PRORATION_TEAM_REPOSITORY_MODULE: symbol;
|
|
14
20
|
};
|
|
15
21
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/di/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/di/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAmBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"month-key.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/lib/month-key.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAIjD"}
|
|
1
|
+
{"version":3,"file":"month-key.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/lib/month-key.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAIjD;AAID,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEtD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const MONTHLY_PRORATION_METADATA_TYPE = "monthly_proration";
|
|
2
|
+
type MetadataContainer = {
|
|
3
|
+
metadata?: Record<string, string | null | undefined> | null;
|
|
4
|
+
};
|
|
5
|
+
export declare function buildMonthlyProrationMetadata(params: {
|
|
6
|
+
prorationId: string;
|
|
7
|
+
teamId?: number;
|
|
8
|
+
monthKey?: string;
|
|
9
|
+
}): Record<string, string>;
|
|
10
|
+
export declare function findMonthlyProrationLineItem<T extends MetadataContainer>(lineItems: T[]): T | undefined;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=proration-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proration-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/lib/proration-utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,sBAAsB,CAAC;AAEnE,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC;CAC7D,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,MAAM,EAAE;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAezB;AAED,wBAAgB,4BAA4B,CAAC,CAAC,SAAS,iBAAiB,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,SAAS,CAEvG"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
import { default as Stripe } from 'stripe';
|
|
2
1
|
import { BillingPeriod } from '../../../../prisma/enums';
|
|
2
|
+
type SubscriptionItemLike = {
|
|
3
|
+
id: string;
|
|
4
|
+
quantity?: number | null;
|
|
5
|
+
price: {
|
|
6
|
+
unit_amount: number | null;
|
|
7
|
+
recurring: {
|
|
8
|
+
interval: string;
|
|
9
|
+
} | null;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type SubscriptionItems = SubscriptionItemLike[] | {
|
|
13
|
+
data: SubscriptionItemLike[];
|
|
14
|
+
};
|
|
15
|
+
export interface StripeSubscriptionLike {
|
|
16
|
+
items: SubscriptionItems;
|
|
17
|
+
current_period_start: number;
|
|
18
|
+
current_period_end: number;
|
|
19
|
+
trial_end: number | null;
|
|
20
|
+
}
|
|
3
21
|
export interface BillingData {
|
|
4
22
|
billingPeriod: BillingPeriod;
|
|
5
23
|
pricePerSeat: number | undefined;
|
|
6
24
|
paidSeats: number | undefined;
|
|
25
|
+
subscriptionStart: Date | undefined;
|
|
26
|
+
subscriptionEnd: Date | undefined;
|
|
27
|
+
subscriptionTrialEnd: Date | undefined;
|
|
7
28
|
}
|
|
8
|
-
export declare function extractBillingDataFromStripeSubscription(subscription:
|
|
29
|
+
export declare function extractBillingDataFromStripeSubscription(subscription: StripeSubscriptionLike): BillingData;
|
|
30
|
+
export {};
|
|
9
31
|
//# sourceMappingURL=stripe-subscription-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-subscription-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/lib/stripe-subscription-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"stripe-subscription-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/lib/stripe-subscription-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,oBAAoB,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,SAAS,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;KACxC,CAAC;CACH,CAAC;AAEF,KAAK,iBAAiB,GAAG,oBAAoB,EAAE,GAAG;IAAE,IAAI,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAAC;AAEnF,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,iBAAiB,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,WAAW;IAC1B,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,iBAAiB,EAAE,IAAI,GAAG,SAAS,CAAC;IACpC,eAAe,EAAE,IAAI,GAAG,SAAS,CAAC;IAClC,oBAAoB,EAAE,IAAI,GAAG,SAAS,CAAC;CACxC;AAKD,wBAAgB,wCAAwC,CAAC,YAAY,EAAE,sBAAsB,GAAG,WAAW,CA6B1G"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISimpleLogger } from '../../../di/shared/services/logger.service';
|
|
2
|
+
import { IBillingProviderService } from '../service/billingProvider/IBillingProviderService';
|
|
3
|
+
type ProrationBehavior = "none" | "create_prorations" | "always_invoice";
|
|
4
|
+
export declare function updateSubscriptionQuantity(params: {
|
|
5
|
+
billingService: IBillingProviderService;
|
|
6
|
+
subscriptionId: string;
|
|
7
|
+
subscriptionItemId: string;
|
|
8
|
+
quantity: number;
|
|
9
|
+
prorationBehavior?: ProrationBehavior;
|
|
10
|
+
logger?: ISimpleLogger;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=subscription-updates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-updates.d.ts","sourceRoot":"","sources":["../../../../../../../../features/ee/billing/lib/subscription-updates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAExF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAElG,KAAK,iBAAiB,GAAG,MAAM,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;AAEzE,wBAAsB,0BAA0B,CAAC,MAAM,EAAE;IACvD,cAAc,EAAE,uBAAuB,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBhB"}
|
|
@@ -22,8 +22,21 @@ export interface BillingRecord {
|
|
|
22
22
|
planName: Plan;
|
|
23
23
|
status: SubscriptionStatus;
|
|
24
24
|
}
|
|
25
|
+
export interface IBillingRepositoryUpdateArgs {
|
|
26
|
+
paidSeats?: number | null;
|
|
27
|
+
subscriptionStart?: Date | null;
|
|
28
|
+
subscriptionEnd?: Date | null;
|
|
29
|
+
subscriptionTrialEnd?: Date | null;
|
|
30
|
+
billingPeriod?: "MONTHLY" | "ANNUALLY" | null;
|
|
31
|
+
pricePerSeat?: number | null;
|
|
32
|
+
}
|
|
25
33
|
export interface IBillingRepository {
|
|
26
34
|
create(args: IBillingRepositoryCreateArgs): Promise<BillingRecord>;
|
|
35
|
+
findBySubscriptionId(subscriptionId: string): Promise<{
|
|
36
|
+
id: string;
|
|
37
|
+
teamId: number;
|
|
38
|
+
} | null>;
|
|
39
|
+
updateById(id: string, data: IBillingRepositoryUpdateArgs): Promise<void>;
|
|
27
40
|
}
|
|
28
41
|
export interface IBillingRepositoryConstructorArgs {
|
|
29
42
|
teamId: number;
|
|
@@ -1 +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;
|
|
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,4BAA4B;IAC3C,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,iBAAiB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAChC,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,oBAAoB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnC,aAAa,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,IAAI,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACnE,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IAC7F,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3E;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;IACvB,aAAa,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { PrismaClient } from '../../../../../prisma';
|
|
2
|
-
import { IBillingRepository, IBillingRepositoryCreateArgs, BillingRecord } from './IBillingRepository';
|
|
2
|
+
import { IBillingRepository, IBillingRepositoryCreateArgs, IBillingRepositoryUpdateArgs, BillingRecord } from './IBillingRepository';
|
|
3
3
|
export declare class PrismaOrganizationBillingRepository implements IBillingRepository {
|
|
4
4
|
private readonly prismaClient;
|
|
5
5
|
constructor(prismaClient: PrismaClient);
|
|
6
6
|
create(args: IBillingRepositoryCreateArgs): Promise<BillingRecord>;
|
|
7
|
+
findBySubscriptionId(subscriptionId: string): Promise<{
|
|
8
|
+
id: string;
|
|
9
|
+
teamId: number;
|
|
10
|
+
} | null>;
|
|
11
|
+
updateById(id: string, data: IBillingRepositoryUpdateArgs): Promise<void>;
|
|
7
12
|
}
|
|
8
13
|
//# sourceMappingURL=PrismaOrganizationBillingRepository.d.ts.map
|
|
@@ -1 +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,
|
|
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,KAAK,EACV,kBAAkB,EAClB,4BAA4B,EAC5B,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;IAclE,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAQ5F,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC;CAMhF"}
|
package/dist/packages/features/ee/billing/repository/billing/PrismaTeamBillingRepository.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { PrismaClient } from '../../../../../prisma';
|
|
2
|
-
import { IBillingRepository, IBillingRepositoryCreateArgs, BillingRecord } from './IBillingRepository';
|
|
2
|
+
import { IBillingRepository, IBillingRepositoryCreateArgs, IBillingRepositoryUpdateArgs, BillingRecord } from './IBillingRepository';
|
|
3
3
|
export declare class PrismaTeamBillingRepository implements IBillingRepository {
|
|
4
4
|
private readonly prismaClient;
|
|
5
5
|
constructor(prismaClient: PrismaClient);
|
|
6
6
|
create(args: IBillingRepositoryCreateArgs): Promise<BillingRecord>;
|
|
7
|
+
findBySubscriptionId(subscriptionId: string): Promise<{
|
|
8
|
+
id: string;
|
|
9
|
+
teamId: number;
|
|
10
|
+
} | null>;
|
|
11
|
+
updateById(id: string, data: IBillingRepositoryUpdateArgs): Promise<void>;
|
|
7
12
|
}
|
|
8
13
|
//# sourceMappingURL=PrismaTeamBillingRepository.d.ts.map
|
package/dist/packages/features/ee/billing/repository/billing/PrismaTeamBillingRepository.d.ts.map
CHANGED
|
@@ -1 +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,
|
|
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,KAAK,EACV,kBAAkB,EAClB,4BAA4B,EAC5B,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;IAclE,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAQ5F,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC;CAMhF"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { BillingRecord, IBillingRepository, IBillingRepositoryCreateArgs } from './IBillingRepository';
|
|
1
|
+
import { BillingRecord, IBillingRepository, IBillingRepositoryCreateArgs, IBillingRepositoryUpdateArgs } from './IBillingRepository';
|
|
2
2
|
export declare class StubBillingRepository implements IBillingRepository {
|
|
3
3
|
create(args: IBillingRepositoryCreateArgs): Promise<BillingRecord>;
|
|
4
|
+
findBySubscriptionId(_subscriptionId: string): Promise<{
|
|
5
|
+
id: string;
|
|
6
|
+
teamId: number;
|
|
7
|
+
} | null>;
|
|
8
|
+
updateById(_id: string, _data: IBillingRepositoryUpdateArgs): Promise<void>;
|
|
4
9
|
}
|
|
5
10
|
//# sourceMappingURL=StubBillingRepository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StubBillingRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/billing/StubBillingRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"StubBillingRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/billing/StubBillingRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,qBAAsB,YAAW,kBAAkB;IACxD,MAAM,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC;IAalE,oBAAoB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAK7F,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlF"}
|
package/dist/packages/features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { PrismaClient } from '../../../../../prisma';
|
|
2
|
+
import { BillingPeriod } from '../../../../../prisma/enums';
|
|
3
|
+
export interface HighWaterMarkData {
|
|
4
|
+
id: string;
|
|
5
|
+
teamId: number;
|
|
6
|
+
isOrganization: boolean;
|
|
7
|
+
highWaterMark: number | null;
|
|
8
|
+
highWaterMarkPeriodStart: Date | null;
|
|
9
|
+
paidSeats: number | null;
|
|
10
|
+
billingPeriod: BillingPeriod | null;
|
|
11
|
+
subscriptionId: string;
|
|
12
|
+
subscriptionItemId: string;
|
|
13
|
+
customerId: string;
|
|
14
|
+
subscriptionStart: Date | null;
|
|
15
|
+
}
|
|
16
|
+
export interface HighWaterMarkBySubscriptionData {
|
|
17
|
+
id: string;
|
|
18
|
+
teamId: number;
|
|
19
|
+
isOrganization: boolean;
|
|
20
|
+
highWaterMark: number | null;
|
|
21
|
+
highWaterMarkPeriodStart: Date | null;
|
|
22
|
+
paidSeats: number | null;
|
|
23
|
+
billingPeriod: BillingPeriod | null;
|
|
24
|
+
subscriptionId: string;
|
|
25
|
+
subscriptionItemId: string;
|
|
26
|
+
subscriptionStart: Date | null;
|
|
27
|
+
}
|
|
28
|
+
export declare class HighWaterMarkRepository {
|
|
29
|
+
private prisma;
|
|
30
|
+
constructor(prisma?: PrismaClient);
|
|
31
|
+
getByTeamId(teamId: number): Promise<HighWaterMarkData | null>;
|
|
32
|
+
getBySubscriptionId(subscriptionId: string): Promise<HighWaterMarkBySubscriptionData | null>;
|
|
33
|
+
updateIfHigher(params: {
|
|
34
|
+
teamId: number;
|
|
35
|
+
isOrganization: boolean;
|
|
36
|
+
newSeatCount: number;
|
|
37
|
+
periodStart: Date;
|
|
38
|
+
}): Promise<{
|
|
39
|
+
updated: boolean;
|
|
40
|
+
previousHighWaterMark: number | null;
|
|
41
|
+
}>;
|
|
42
|
+
reset(params: {
|
|
43
|
+
teamId: number;
|
|
44
|
+
isOrganization: boolean;
|
|
45
|
+
currentSeatCount: number;
|
|
46
|
+
newPeriodStart: Date;
|
|
47
|
+
}): Promise<void>;
|
|
48
|
+
updateQuantityAfterStripeSync(params: {
|
|
49
|
+
teamId: number;
|
|
50
|
+
isOrganization: boolean;
|
|
51
|
+
paidSeats: number;
|
|
52
|
+
}): Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=HighWaterMarkRepository.d.ts.map
|
package/dist/packages/features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighWaterMarkRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,wBAAwB,EAAE,IAAI,GAAG,IAAI,CAAC;IACtC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,+BAA+B;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,wBAAwB,EAAE,IAAI,GAAG,IAAI,CAAC;IACtC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;CAChC;AAED,qBAAa,uBAAuB;IAClC,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,CAAC,EAAE,YAAY;IAI3B,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAiD9D,mBAAmB,CACvB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,+BAA+B,GAAG,IAAI,CAAC;IAkD5C,cAAc,CAAC,MAAM,EAAE;QAC3B,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,OAAO,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,IAAI,CAAC;KACnB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAwEjE,KAAK,CAAC,MAAM,EAAE;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,OAAO,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,IAAI,CAAC;KACtB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBX,6BAA6B,CAAC,MAAM,EAAE;QAC1C,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,OAAO,CAAC;QACxB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,IAAI,CAAC;CAelB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighWaterMarkRepository.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../features/ee/billing/repository/highWaterMark/__tests__/HighWaterMarkRepository.test.ts"],"names":[],"mappings":""}
|
package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationRepository.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare class MonthlyProrationRepository {
|
|
|
29
29
|
updateProrationStatus(prorationId: string, status: ProrationStatus, additionalData?: {
|
|
30
30
|
invoiceItemId?: string;
|
|
31
31
|
invoiceId?: string;
|
|
32
|
+
invoiceUrl?: string;
|
|
32
33
|
chargedAt?: Date;
|
|
33
34
|
failedAt?: Date;
|
|
34
35
|
failureReason?: string;
|
|
@@ -37,5 +38,12 @@ export declare class MonthlyProrationRepository {
|
|
|
37
38
|
findById(prorationId: string): Promise<MonthlyProration | null>;
|
|
38
39
|
findByTeamAndMonth(teamId: number, monthKey: string): Promise<MonthlyProration | null>;
|
|
39
40
|
incrementRetryCount(prorationId: string): Promise<MonthlyProration>;
|
|
41
|
+
findForEmail(prorationId: string): Promise<{
|
|
42
|
+
status: import('../../../../../kysely/types.ts').ProrationStatus;
|
|
43
|
+
monthKey: string;
|
|
44
|
+
netSeatIncrease: number;
|
|
45
|
+
proratedAmount: number;
|
|
46
|
+
invoiceId: string | null;
|
|
47
|
+
} | null>;
|
|
40
48
|
}
|
|
41
49
|
//# sourceMappingURL=MonthlyProrationRepository.d.ts.map
|
package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationRepository.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthlyProrationRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/proration/MonthlyProrationRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,IAAI,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,IAAI,CAAC;IACxB,eAAe,EAAE,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,CAAC,EAAE,YAAY;IAI3B,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASrE,qBAAqB,CACzB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,eAAe,EACvB,cAAc,CAAC,EAAE;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,GACA,OAAO,CAAC,gBAAgB,CAAC;IAUtB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAM/D,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAWtF,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"MonthlyProrationRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/proration/MonthlyProrationRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,IAAI,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,IAAI,CAAC;IACxB,eAAe,EAAE,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,CAAC,EAAE,YAAY;IAI3B,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASrE,qBAAqB,CACzB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,eAAe,EACvB,cAAc,CAAC,EAAE;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,GACA,OAAO,CAAC,gBAAgB,CAAC;IAUtB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAM/D,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAWtF,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAWnE,YAAY,CAAC,WAAW,EAAE,MAAM;;;;;;;CAYvC"}
|
package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationTeamRepository.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare class MonthlyProrationTeamRepository {
|
|
|
29
29
|
subscriptionEnd?: Date;
|
|
30
30
|
}): Promise<void>;
|
|
31
31
|
updatePaidSeats(teamId: number, isOrganization: boolean, billingId: string, paidSeats: number): Promise<void>;
|
|
32
|
+
getTeamMemberCount(teamId: number): Promise<number | null>;
|
|
32
33
|
createOrganizationBilling(data: {
|
|
33
34
|
teamId: number;
|
|
34
35
|
subscriptionId: string;
|
|
@@ -58,6 +59,8 @@ export declare class MonthlyProrationTeamRepository {
|
|
|
58
59
|
subscriptionTrialEnd: Date | null;
|
|
59
60
|
subscriptionEnd: Date | null;
|
|
60
61
|
paidSeats: number | null;
|
|
62
|
+
highWaterMark: number | null;
|
|
63
|
+
highWaterMarkPeriodStart: Date | null;
|
|
61
64
|
}>;
|
|
62
65
|
createTeamBilling(data: {
|
|
63
66
|
teamId: number;
|
|
@@ -88,6 +91,8 @@ export declare class MonthlyProrationTeamRepository {
|
|
|
88
91
|
subscriptionTrialEnd: Date | null;
|
|
89
92
|
subscriptionEnd: Date | null;
|
|
90
93
|
paidSeats: number | null;
|
|
94
|
+
highWaterMark: number | null;
|
|
95
|
+
highWaterMarkPeriodStart: Date | null;
|
|
91
96
|
}>;
|
|
92
97
|
private extractBillingFromMetadata;
|
|
93
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthlyProrationTeamRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/proration/MonthlyProrationTeamRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAInD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,8BAA8B;IACzC,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,CAAC,EAAE,YAAY;IAI3B,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"MonthlyProrationTeamRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/proration/MonthlyProrationTeamRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAInD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,8BAA8B;IACzC,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,CAAC,EAAE,YAAY;IAI3B,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IA0DnE,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IA8BlE,iBAAiB,CACrB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE;QACJ,aAAa,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;QACvC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,iBAAiB,CAAC,EAAE,IAAI,CAAC;QACzB,eAAe,CAAC,EAAE,IAAI,CAAC;KACxB,GACA,OAAO,CAAC,IAAI,CAAC;IAgBV,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;IAgBV,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAa1D,yBAAyB,CAAC,IAAI,EAAE;QACpC,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,SAAS,GAAG,UAAU,CAAC;QACtC,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;QAC/B,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;QAC7B,oBAAoB,EAAE,IAAI,GAAG,IAAI,CAAC;KACnC;;;;;;;;;;;;;;;;;;;IAIK,iBAAiB,CAAC,IAAI,EAAE;QAC5B,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,SAAS,GAAG,UAAU,CAAC;QACtC,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;QAC/B,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;QAC7B,oBAAoB,EAAE,IAAI,GAAG,IAAI,CAAC;KACnC;;;;;;;;;;;;;;;;;;;IAID,OAAO,CAAC,0BAA0B;CAmBnC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BillingPeriodRepository } from '../../repository/billingPeriod/BillingPeriodRepository';
|
|
2
|
+
import { IFeaturesRepository } from '../../../../flags/features.repository.interface';
|
|
2
3
|
import { BillingPeriod } from '../../../../../prisma/enums';
|
|
3
4
|
import { Logger } from 'tslog';
|
|
4
5
|
export interface BillingPeriodInfo {
|
|
@@ -10,13 +11,21 @@ export interface BillingPeriodInfo {
|
|
|
10
11
|
pricePerSeat: number | null;
|
|
11
12
|
isOrganization: boolean;
|
|
12
13
|
}
|
|
14
|
+
export interface BillingPeriodServiceDeps {
|
|
15
|
+
logger?: Logger<unknown>;
|
|
16
|
+
repository?: BillingPeriodRepository;
|
|
17
|
+
featuresRepository?: IFeaturesRepository;
|
|
18
|
+
}
|
|
13
19
|
export declare class BillingPeriodService {
|
|
14
20
|
private logger;
|
|
15
21
|
private repository;
|
|
16
|
-
|
|
22
|
+
private featuresRepository;
|
|
23
|
+
constructor(deps?: BillingPeriodServiceDeps);
|
|
17
24
|
isAnnualPlan(teamId: number): Promise<boolean>;
|
|
18
25
|
isInTrialPeriod(teamId: number): Promise<boolean>;
|
|
19
26
|
shouldApplyMonthlyProration(teamId: number): Promise<boolean>;
|
|
27
|
+
shouldApplyHighWaterMark(teamId: number): Promise<boolean>;
|
|
28
|
+
isMonthlyBilling(teamId: number): Promise<boolean>;
|
|
20
29
|
getOrCreateBillingPeriodInfo(teamId: number): Promise<BillingPeriodInfo>;
|
|
21
30
|
getBillingPeriodInfo(teamId: number): Promise<BillingPeriodInfo>;
|
|
22
31
|
updateBillingPeriod(params: {
|
package/dist/packages/features/ee/billing/service/billingPeriod/BillingPeriodService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BillingPeriodService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/billingPeriod/BillingPeriodService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BillingPeriodService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/billingPeriod/BillingPeriodService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8EAA8E,CAAC;AAGvH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAGhG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAIpC,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;CAC1C;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,kBAAkB,CAAsB;gBAEpC,IAAI,CAAC,EAAE,wBAAwB;IAMrC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK9C,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKjD,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAgB7D,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAgB1D,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKlD,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAwGxE,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIhE,mBAAmB,CAAC,MAAM,EAAE;QAChC,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,aAAa,CAAC;QAC7B,YAAY,EAAE,MAAM,CAAC;KACtB,GAAG,OAAO,CAAC,IAAI,CAAC;CAqBlB"}
|