@calcom/atoms 2.3.5 → 2.3.6
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-b1rAEaYK.js → AddressInput-CmIdeAlE.js} +1 -1
- package/dist/{AlbyPriceComponent-BxonL_Yu.js → AlbyPriceComponent-BVhYvfAq.js} +1 -1
- package/dist/AppCard-Cvb3MXJc.js +232 -0
- package/dist/{AppListCardPlatformWrapper-B2b-LiNw.js → AppListCardPlatformWrapper-CSOpnZRU.js} +1 -1
- package/dist/{AppListCardWebWrapper-BmtG0DKw.js → AppListCardWebWrapper-CbnG2jQ8.js} +1 -1
- package/dist/{AppSettingsInterface-Bbn5Kz1E.js → AppSettingsInterface-B4m0n40R.js} +1 -1
- package/dist/{AppSettingsInterface-BUlIKKuu.js → AppSettingsInterface-C3x4HE3P.js} +1 -1
- package/dist/{AppSettingsInterface-DpQn2IRp.js → AppSettingsInterface-zuIQEgHU.js} +1 -1
- package/dist/{DateRangePicker-BDxGDrbG.js → DateRangePicker-CjGsARO7.js} +1 -1
- package/dist/{EventTypeAppCardInterface-CziSeAf7.js → EventTypeAppCardInterface--KighdJE.js} +2 -2
- package/dist/{EventTypeAppCardInterface-CNP5VCZY.js → EventTypeAppCardInterface-0DcOxcwc.js} +3 -3
- package/dist/{EventTypeAppCardInterface-DUds_jVg.js → EventTypeAppCardInterface-6ZltChvo.js} +3 -3
- package/dist/{EventTypeAppCardInterface-BLChX6bt.js → EventTypeAppCardInterface-B0qZmSg_.js} +3 -3
- package/dist/{EventTypeAppCardInterface-IymRdJKt.js → EventTypeAppCardInterface-B3G8hmjZ.js} +4 -4
- package/dist/{EventTypeAppCardInterface-Bt0WedCw.js → EventTypeAppCardInterface-BEI_jmk7.js} +3 -3
- package/dist/{EventTypeAppCardInterface-CNToqKJL.js → EventTypeAppCardInterface-BXYKMwWE.js} +4 -4
- package/dist/{EventTypeAppCardInterface-BGshVZu3.js → EventTypeAppCardInterface-BYsYLpQY.js} +3 -3
- package/dist/{EventTypeAppCardInterface-DRm9qMVP.js → EventTypeAppCardInterface-Bj3Fr6DO.js} +4 -4
- package/dist/{EventTypeAppCardInterface-rkvrkqTT.js → EventTypeAppCardInterface-BjX0MAev.js} +3 -3
- package/dist/{EventTypeAppCardInterface-CFdaTpqY.js → EventTypeAppCardInterface-BsU8Dp0S.js} +3 -3
- package/dist/{EventTypeAppCardInterface-BxdBEqz1.js → EventTypeAppCardInterface-CGU2MKTx.js} +3 -3
- package/dist/{EventTypeAppCardInterface-DhNuvofj.js → EventTypeAppCardInterface-CIUkoUVb.js} +4 -4
- package/dist/{EventTypeAppCardInterface-C_BxynfZ.js → EventTypeAppCardInterface-CPMuopkX.js} +4 -4
- package/dist/{EventTypeAppCardInterface-D9YsC5X2.js → EventTypeAppCardInterface-CRrJj5YP.js} +3 -3
- package/dist/{EventTypeAppCardInterface-CLUbC0Xo.js → EventTypeAppCardInterface-Ca1P2TEa.js} +42 -42
- package/dist/{EventTypeAppCardInterface-P-c8BhwW.js → EventTypeAppCardInterface-ChPW7WMv.js} +4 -4
- package/dist/{EventTypeAppCardInterface-GJCVJ4x8.js → EventTypeAppCardInterface-Cym8APZA.js} +3 -3
- package/dist/{EventTypeAppCardInterface-CHpUxWvv.js → EventTypeAppCardInterface-DJSpV-fW.js} +4 -4
- package/dist/{EventTypeAppCardInterface-BhThbnJt.js → EventTypeAppCardInterface-DKm3rXxa.js} +4 -4
- package/dist/{EventTypeAppCardInterface-DeYVp2hL.js → EventTypeAppCardInterface-DYH59uMb.js} +2 -2
- package/dist/{EventTypeAppCardInterface-B0uJ9UVy.js → EventTypeAppCardInterface-DkGYW6yh.js} +3 -3
- package/dist/{EventTypeAppCardInterface-BTmgK5FQ.js → EventTypeAppCardInterface-DoZZzXY7.js} +4 -4
- package/dist/{EventTypeAppCardInterface-C4f3mwJs.js → EventTypeAppCardInterface-IdPRCxfw.js} +4 -4
- package/dist/{EventTypeAppCardInterface-Znqn0jag.js → EventTypeAppCardInterface-N2ZnveK1.js} +3 -3
- package/dist/{EventTypeAppCardInterface-CahCzmpA.js → EventTypeAppCardInterface-NRhFYQ0y.js} +3 -3
- package/dist/{EventTypeAppCardInterface-DdBJBxRN.js → EventTypeAppCardInterface-P1AlcZ8Q.js} +3 -3
- package/dist/{EventTypeAppCardInterface-DIgoR8MB.js → EventTypeAppCardInterface-kVii_GAp.js} +4 -4
- package/dist/{EventTypeAppSettingsInterface-_1ne5IjX.js → EventTypeAppSettingsInterface-BJWVBtLV.js} +1 -1
- package/dist/EventTypeAppSettingsInterface-BfWPdrpt.js +48 -0
- package/dist/{EventTypeAppSettingsInterface-DbOBvg8L.js → EventTypeAppSettingsInterface-C2pxDQa5.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BiqKCPyH.js → EventTypeAppSettingsInterface-CVbNZoHI.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BkBEQ-DE.js → EventTypeAppSettingsInterface-CVutCxUA.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-yN5zioAm.js → EventTypeAppSettingsInterface-Cm7y_AZE.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-CJts_5lO.js → EventTypeAppSettingsInterface-CzJE195x.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-CyXMHuwE.js → EventTypeAppSettingsInterface-D2Icz0_x.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-DxdgAyKL.js → EventTypeAppSettingsInterface-DSBHmDAI.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-DrevXJNI.js → EventTypeAppSettingsInterface-Dg2u3po3.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BLFrLk44.js → EventTypeAppSettingsInterface-GJG0JGXK.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-2hel1BrL.js → EventTypeAppSettingsInterface-OT-FWu-0.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BaWOePLF.js → EventTypeAppSettingsInterface-tsTkVILw.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-Dtm5cA7x.js → EventTypeAppSettingsInterface-v5HacQ1k.js} +8 -8
- package/dist/{EventTypeDescription-8eQS1QXu.js → EventTypeDescription-nUB7aIk-.js} +1 -1
- package/dist/{InstallAppButton-CWkJ1jzI.js → InstallAppButton-CYp4kyAi.js} +1 -1
- package/dist/{InstallAppButton-B74iplUC.js → InstallAppButton-D_NsxV-Y.js} +1 -1
- package/dist/{InstallAppButton-DZPAJhBu.js → InstallAppButton-VIxyldks.js} +1 -1
- package/dist/{PhoneInput-BKG5vVWx.js → PhoneInput-Bj7618D_.js} +64 -64
- package/dist/StripePaymentForm-CVfkojMX.js +550 -0
- package/dist/Tips-0BBxUncr.js +789 -0
- package/dist/cal-atoms.js +8 -8
- package/dist/cal-atoms.umd.cjs +1474 -0
- package/dist/{index-C62tPk5p.js → index-Begix3mt.js} +108962 -129529
- package/dist/{index-S7FKDcGU.js → index-CXKcHb8R.js} +1 -1
- package/dist/packages/features/bookings/Booker/hooks/useAvailableTimeSlots.d.ts +15 -1
- package/dist/packages/features/bookings/Booker/hooks/useAvailableTimeSlots.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/hooks/useBookerLayout.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/hooks/useStableTimezone.d.ts +5 -0
- package/dist/packages/features/bookings/Booker/hooks/useStableTimezone.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/hooks/useStableTimezone.test.d.ts +2 -0
- package/dist/packages/features/bookings/Booker/hooks/useStableTimezone.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/dates.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +2 -1
- package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/EventManager.createRescheduleDelete.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/EventManager.createRescheduleDelete.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/EventManager.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts +26 -26
- package/dist/packages/features/bookings/lib/cancellationReason.d.ts +3 -0
- package/dist/packages/features/bookings/lib/cancellationReason.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts +7 -6
- package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +8 -8
- package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +20 -20
- package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts +3 -3
- package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +11 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getHostsAndGuests.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getLuckyUser.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getWebhookPayloadForBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts +5 -2
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleConfirmation.d.ts +2 -2
- package/dist/packages/features/bookings/lib/handleConfirmation.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/checkIfBookerEmailIsBlocked.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +38 -25
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getAuditActionSource.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getAuditActionSource.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +16 -16
- package/dist/packages/features/bookings/lib/handleNewBooking/getCustomInputsResponses.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +62 -46
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +38 -25
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getRequiresConfirmationFlags.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +8 -8
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/TestUserRepository.d.ts +9 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/TestUserRepository.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/checkIfBookerEmailIsBlocked.integration-test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/checkIfBookerEmailIsBlocked.integration-test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/webhook-producer-booking-requested.test.d.ts +5 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/webhook-producer-booking-requested.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handlePayment.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/handleSeats.d.ts +2 -1
- package/dist/packages/features/bookings/lib/handleSeats/handleSeats.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/lib/lastAttendeeDeleteBooking.d.ts.map +1 -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.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/host-filtering/findQualifiedHostsWithDelegationCredentials.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/interfaces/IBookingCancelService.d.ts +2 -0
- package/dist/packages/features/bookings/lib/interfaces/IBookingCancelService.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/isUpcomingBooking.d.ts +7 -0
- package/dist/packages/features/bookings/lib/isUpcomingBooking.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts +8 -8
- package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/payment/getBooking.d.ts +26 -5
- package/dist/packages/features/bookings/lib/payment/getBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts +13 -0
- package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/payment/handlePaymentRefund.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/payment/handlePaymentRefund.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/reschedule/validateRescheduleRestrictions.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/reschedule/validateRescheduleRestrictions.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/service/InstantBookingCreateService.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/service/RecurringBookingService.d.ts +2 -0
- package/dist/packages/features/bookings/lib/service/RecurringBookingService.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts +14 -3
- package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts.map +1 -1
- package/dist/packages/features/bookings/types.d.ts +5 -9
- package/dist/packages/features/bookings/types.d.ts.map +1 -1
- package/dist/packages/features/data-table/index.d.ts +0 -3
- package/dist/packages/features/data-table/index.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/active-user/repositories/ActiveUserBillingRepository.d.ts +27 -0
- package/dist/packages/features/ee/billing/active-user/repositories/ActiveUserBillingRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/active-user/seed-active-user-test.d.ts +1 -0
- package/dist/packages/features/ee/billing/active-user/seed-active-user-test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/active-user/services/ActiveUserBillingService.d.ts +24 -0
- package/dist/packages/features/ee/billing/active-user/services/ActiveUserBillingService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/active-user/services/ActiveUserBillingService.integration-test.d.ts +2 -0
- package/dist/packages/features/ee/billing/active-user/services/ActiveUserBillingService.integration-test.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_invoice.upcoming.d.ts +3 -3
- package/dist/packages/features/ee/billing/api/webhook/_invoice.upcoming.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts +2 -2
- package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/di/containers/Billing.d.ts +6 -0
- package/dist/packages/features/ee/billing/di/containers/Billing.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/di/modules/BillingPeriodRepository.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/BillingPeriodRepository.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/BillingPeriodService.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/BillingPeriodService.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/DunningServiceFactory.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/DunningServiceFactory.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/DunningStatusResolver.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/DunningStatusResolver.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/OrgBillingRepository.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/OrgBillingRepository.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/OrgDunningRepository.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/OrgDunningRepository.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/OrgDunningService.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/OrgDunningService.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/SeatBillingStrategyFactory.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/SeatBillingStrategyFactory.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/TeamBillingRepository.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/TeamBillingRepository.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/TeamBillingServiceFactory.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/di/modules/TeamDunningRepository.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/TeamDunningRepository.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/modules/TeamDunningService.module.d.ts +5 -0
- package/dist/packages/features/ee/billing/di/modules/TeamDunningService.module.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/di/tokens.d.ts +22 -0
- package/dist/packages/features/ee/billing/di/tokens.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/billing/IBillingRepository.d.ts +5 -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 +1 -0
- 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 +1 -0
- 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 +1 -0
- package/dist/packages/features/ee/billing/repository/billing/StubBillingRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/billingPeriod/BillingPeriodRepository.d.ts +2 -0
- package/dist/packages/features/ee/billing/repository/billingPeriod/BillingPeriodRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/dunning/IDunningRepository.d.ts +44 -0
- package/dist/packages/features/ee/billing/repository/dunning/IDunningRepository.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/repository/dunning/OrgDunningRepository.d.ts +13 -0
- package/dist/packages/features/ee/billing/repository/dunning/OrgDunningRepository.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/repository/dunning/OrgDunningRepository.integration-test.d.ts +2 -0
- package/dist/packages/features/ee/billing/repository/dunning/OrgDunningRepository.integration-test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/repository/dunning/TeamDunningRepository.d.ts +13 -0
- package/dist/packages/features/ee/billing/repository/dunning/TeamDunningRepository.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/repository/dunning/TeamDunningRepository.integration-test.d.ts +2 -0
- package/dist/packages/features/ee/billing/repository/dunning/TeamDunningRepository.integration-test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationTeamRepository.d.ts +4 -0
- package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationTeamRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/seed.d.ts +21 -0
- package/dist/packages/features/ee/billing/seed.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/billingPeriod/BillingPeriodService.d.ts +3 -1
- package/dist/packages/features/ee/billing/service/billingPeriod/BillingPeriodService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/dunning/BaseDunningService.d.ts +27 -0
- package/dist/packages/features/ee/billing/service/dunning/BaseDunningService.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/DunningMapper.d.ts +33 -0
- package/dist/packages/features/ee/billing/service/dunning/DunningMapper.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/DunningServiceFactory.d.ts +19 -0
- package/dist/packages/features/ee/billing/service/dunning/DunningServiceFactory.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/DunningStatusResolver.d.ts +17 -0
- package/dist/packages/features/ee/billing/service/dunning/DunningStatusResolver.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/IDunningService.d.ts +22 -0
- package/dist/packages/features/ee/billing/service/dunning/IDunningService.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/OrgDunningService.d.ts +5 -0
- package/dist/packages/features/ee/billing/service/dunning/OrgDunningService.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/TeamDunningService.d.ts +5 -0
- package/dist/packages/features/ee/billing/service/dunning/TeamDunningService.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/__tests__/BaseDunningService.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/__tests__/BaseDunningService.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/__tests__/DunningMapper.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/__tests__/DunningMapper.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/__tests__/DunningServiceFactory.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/__tests__/DunningServiceFactory.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/__tests__/DunningStatusResolver.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/__tests__/DunningStatusResolver.test.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailSyncTasker.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailSchemas.d.ts +2 -2
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/scheduleMonthlyProration.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationInvoiceEmail.d.ts +2 -2
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/ActiveUserBillingStrategy.d.ts +21 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/ActiveUserBillingStrategy.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/HighWaterMarkStrategy.d.ts +20 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/HighWaterMarkStrategy.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/ISeatBillingStrategy.d.ts +48 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/ISeatBillingStrategy.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/ImmediateUpdateStrategy.d.ts +9 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/ImmediateUpdateStrategy.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/MonthlyProrationStrategy.d.ts +18 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/MonthlyProrationStrategy.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/SeatBillingStrategyFactory.d.ts +30 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/SeatBillingStrategyFactory.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/__tests__/SeatBillingStrategyFactory.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/__tests__/SeatBillingStrategyFactory.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/__tests__/strategies.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/seatBillingStrategy/__tests__/strategies.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/teams/ITeamBillingService.d.ts +3 -2
- package/dist/packages/features/ee/billing/service/teams/ITeamBillingService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/teams/StubTeamBillingService.d.ts +2 -1
- package/dist/packages/features/ee/billing/service/teams/StubTeamBillingService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/teams/TeamBillingService.d.ts +6 -2
- package/dist/packages/features/ee/billing/service/teams/TeamBillingService.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/teams/TeamBillingServiceFactory.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/teams/TeamBillingServiceFactory.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/api/webhook.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/api/webhook.test.d.ts +2 -0
- package/dist/packages/features/ee/payments/api/webhook.test.d.ts.map +1 -0
- package/dist/packages/features/ee/payments/pages/payment.d.ts +6 -5
- package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +1 -0
- package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/utils/getTeamMembers.d.ts +1 -1
- package/dist/packages/features/ee/round-robin/utils/validateRoundRobinSlotAvailability.test.d.ts +2 -0
- package/dist/packages/features/ee/round-robin/utils/validateRoundRobinSlotAvailability.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts +2 -1
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/di/WorkflowStepTranslationRepository.container.d.ts +3 -0
- package/dist/packages/features/ee/workflows/di/WorkflowStepTranslationRepository.container.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/di/WorkflowStepTranslationRepository.module.d.ts +5 -0
- package/dist/packages/features/ee/workflows/di/WorkflowStepTranslationRepository.module.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/hooks/useVoicePreview.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/getAllWorkflows.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/getAllWorkflows.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/getOptions.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts +7 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/ContentSidMapping.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +1 -1
- package/dist/packages/features/ee/workflows/lib/scheduleBookingReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/schema.d.ts +10 -0
- package/dist/packages/features/ee/workflows/lib/schema.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts +12 -4
- package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/service/WorkflowService.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/service/workflowOptOutService.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/types.d.ts +5 -0
- package/dist/packages/features/ee/workflows/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/urlScanner.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts +2 -0
- package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts +30 -3
- package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/repositories/WorkflowStepRepository.d.ts +11 -0
- package/dist/packages/features/ee/workflows/repositories/WorkflowStepRepository.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/repositories/WorkflowStepTranslationRepository.d.ts +30 -0
- package/dist/packages/features/ee/workflows/repositories/WorkflowStepTranslationRepository.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/repositories/WorkflowStepTranslationRepository.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/repositories/WorkflowStepTranslationRepository.test.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/BulkEditDefaultForEventsModal.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/LearnMoreLink.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/di/EventTypeService.container.d.ts +4 -0
- package/dist/packages/features/eventtypes/di/EventTypeService.container.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/di/EventTypeService.module.d.ts +8 -0
- package/dist/packages/features/eventtypes/di/EventTypeService.module.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/di/tokens.d.ts +5 -0
- package/dist/packages/features/eventtypes/di/tokens.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts +72 -63
- package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts +53 -47
- package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts +7 -5
- package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts +6 -5
- package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +122 -47
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +7 -3
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +212 -18
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts +104 -33
- package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts +103 -68
- package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/service/EventTypeService.d.ts +34 -0
- package/dist/packages/features/eventtypes/service/EventTypeService.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/service/EventTypeService.test.d.ts +2 -0
- package/dist/packages/features/eventtypes/service/EventTypeService.test.d.ts.map +1 -0
- package/dist/packages/features/form-builder/schema.d.ts +24 -25
- package/dist/packages/features/form-builder/schema.d.ts.map +1 -1
- package/dist/packages/features/form-builder/utils/variantsConfig.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/ScheduleComponent.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/ScheduleListItem.d.ts.map +1 -1
- package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts +27 -0
- package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts.map +1 -1
- package/dist/packages/features/schedules/services/ScheduleService.d.ts +54 -1
- package/dist/packages/features/schedules/services/ScheduleService.d.ts.map +1 -1
- package/dist/packages/kysely/types.d.ts +124 -0
- package/dist/packages/kysely/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/add-members-switch/AddMembersWithSwitchPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/cal-provider/languages.d.ts +7 -7
- package/dist/packages/platform/atoms/cal-provider/languages.d.ts.map +1 -1
- package/dist/packages/platform/atoms/calendar-view/EventTypeCalendarViewComponent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/calendar-view/components/LargeCalendar.d.ts +11 -0
- package/dist/packages/platform/atoms/calendar-view/components/LargeCalendar.d.ts.map +1 -0
- 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 +1 -0
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/DestinationCalendar.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/DestinationReminderSelector.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +369 -365
- 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 +6 -5
- 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 +3 -173
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventAvailabilityTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventPaymentsTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventSetupTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTeamAssignmentTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useCancelBooking.d.ts +4 -4
- package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +4 -4
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +1 -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/useCreateTeamEventType.d.ts +1 -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 +1 -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 +96 -31
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useVerifyEmail.d.ts +2 -1
- package/dist/packages/platform/atoms/hooks/useVerifyEmail.d.ts.map +1 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/shell.d.ts.map +1 -1
- package/dist/packages/platform/atoms/vite.config.d.ts +1 -1
- package/dist/packages/platform/atoms/vite.config.d.ts.map +1 -1
- package/dist/packages/platform/libraries/bookings.d.ts +17 -14
- package/dist/packages/platform/libraries/bookings.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +5 -3
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/repositories.d.ts +1 -1
- package/dist/packages/platform/libraries/repositories.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 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/add-attendee.input.d.ts +5 -0
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/add-attendee.input.d.ts.map +1 -0
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +4 -2
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/index.d.ts +8 -7
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/index.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/App_RoutingForms_QueuedFormResponseScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/App_RoutingForms_QueuedFormResponseScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/BillingModeSchema.d.ts +5 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/BillingModeSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/CancellationReasonRequirementSchema.d.ts +5 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/CancellationReasonRequirementSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/DunningStatusSchema.d.ts +5 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/DunningStatusSchema.d.ts.map +1 -0
- 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/ExternalAvatarScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/ExternalAvatarScalarFieldEnumSchema.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/OrganizationDunningStatusScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationDunningStatusScalarFieldEnumSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationOnboardingScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationOnboardingScalarFieldEnumSchema.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/TeamDunningStatusScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/TeamDunningStatusScalarFieldEnumSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/UserAbuseScoreScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/UserAbuseScoreScalarFieldEnumSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/WatchlistSourceSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/WatchlistSourceSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/WatchlistTypeSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/WatchlistTypeSchema.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/WorkflowStepAutoTranslatedFieldSchema.d.ts +5 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/WorkflowStepAutoTranslatedFieldSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/WorkflowStepScalarFieldEnumSchema.d.ts +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/WorkflowStepScalarFieldEnumSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/inputTypeSchemas/WorkflowStepTranslationScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/WorkflowStepTranslationScalarFieldEnumSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/WrongAssignmentReportScalarFieldEnumSchema.d.ts +4 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/WrongAssignmentReportScalarFieldEnumSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/WrongAssignmentReportStatusSchema.d.ts +5 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/WrongAssignmentReportStatusSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts +11 -0
- package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/App_RoutingForms_QueuedFormResponseSchema.d.ts +3 -0
- package/dist/packages/prisma/zod/modelSchema/App_RoutingForms_QueuedFormResponseSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/BookingSchema.d.ts +5 -0
- package/dist/packages/prisma/zod/modelSchema/BookingSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts +51 -40
- package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/EventTypeTranslationSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/ExternalAvatarSchema.d.ts +17 -0
- package/dist/packages/prisma/zod/modelSchema/ExternalAvatarSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/InstantMeetingTokenSchema.d.ts +2 -2
- 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/OrganizationDunningStatusSchema.d.ts +47 -0
- package/dist/packages/prisma/zod/modelSchema/OrganizationDunningStatusSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/OrganizationOnboardingSchema.d.ts +6 -0
- package/dist/packages/prisma/zod/modelSchema/OrganizationOnboardingSchema.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/TeamDunningStatusSchema.d.ts +47 -0
- package/dist/packages/prisma/zod/modelSchema/TeamDunningStatusSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/UserAbuseScoreSchema.d.ts +35 -0
- package/dist/packages/prisma/zod/modelSchema/UserAbuseScoreSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/VerificationTokenSchema.d.ts +2 -2
- package/dist/packages/prisma/zod/modelSchema/WatchlistAuditSchema.d.ts +3 -3
- package/dist/packages/prisma/zod/modelSchema/WatchlistSchema.d.ts +6 -6
- package/dist/packages/prisma/zod/modelSchema/WebhookSchema.d.ts +3 -3
- package/dist/packages/prisma/zod/modelSchema/WorkflowStepSchema.d.ts +6 -0
- package/dist/packages/prisma/zod/modelSchema/WorkflowStepSchema.d.ts.map +1 -1
- package/dist/packages/prisma/zod/modelSchema/WorkflowStepTranslationSchema.d.ts +32 -0
- package/dist/packages/prisma/zod/modelSchema/WorkflowStepTranslationSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/WrongAssignmentReportSchema.d.ts +44 -0
- package/dist/packages/prisma/zod/modelSchema/WrongAssignmentReportSchema.d.ts.map +1 -0
- package/dist/packages/prisma/zod/modelSchema/index.d.ts +6 -0
- package/dist/packages/prisma/zod/modelSchema/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +281 -259
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/{server.browser-XIuu8Y5-.js → server.browser-CHvTRWBg.js} +1 -1
- package/dist/{useIsAppEnabled-DnQeiNdg.js → useIsAppEnabled-DY-MII5W.js} +1 -1
- package/package.json +4 -2
- package/dist/AppCard-CQEg94Y3.js +0 -243
- package/dist/EventTypeAppSettingsInterface-DvXj4J8D.js +0 -23
- package/dist/StripePaymentForm-BSJL8ysY.js +0 -491
- package/dist/Tips-CVzgnKDF.js +0 -582
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +0 -1852
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +0 -1
- package/dist/packages/features/components/phone-input/PhoneInput.d.ts +0 -17
- package/dist/packages/features/components/phone-input/PhoneInput.d.ts.map +0 -1
- package/dist/packages/features/components/phone-input/index.d.ts +0 -4
- package/dist/packages/features/components/phone-input/index.d.ts.map +0 -1
- package/dist/packages/features/data-table/DataTableProvider.d.ts +0 -48
- package/dist/packages/features/data-table/DataTableProvider.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/index.d.ts +0 -9
- package/dist/packages/features/data-table/hooks/index.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useChangeTimeZoneWithPreservedLocalTime.d.ts +0 -6
- package/dist/packages/features/data-table/hooks/useChangeTimeZoneWithPreservedLocalTime.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useColumnFilters.d.ts +0 -5
- package/dist/packages/features/data-table/hooks/useColumnFilters.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts +0 -9
- package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useColumnSizingVars.d.ts +0 -7
- package/dist/packages/features/data-table/hooks/useColumnSizingVars.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useDataTable.d.ts +0 -2
- package/dist/packages/features/data-table/hooks/useDataTable.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useDebouncedWidth.d.ts +0 -2
- package/dist/packages/features/data-table/hooks/useDebouncedWidth.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useDisplayedFilterCount.d.ts +0 -6
- package/dist/packages/features/data-table/hooks/useDisplayedFilterCount.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useFetchMoreOnBottomReached.d.ts +0 -8
- package/dist/packages/features/data-table/hooks/useFetchMoreOnBottomReached.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useFilterValue.d.ts +0 -5
- package/dist/packages/features/data-table/hooks/useFilterValue.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useFilterableColumns.d.ts +0 -4
- package/dist/packages/features/data-table/hooks/useFilterableColumns.d.ts.map +0 -1
- package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts +0 -3
- package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts.map +0 -1
- package/dist/packages/features/eventtypes/components/locations/LocationInput.d.ts +0 -12
- package/dist/packages/features/eventtypes/components/locations/LocationInput.d.ts.map +0 -1
- package/dist/packages/features/form-builder/Components.d.ts +0 -47
- package/dist/packages/features/form-builder/Components.d.ts.map +0 -1
- package/dist/packages/features/form-builder/FormBuilderField.d.ts +0 -46
- package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +0 -1
- package/dist/packages/features/form-builder/FormBuilderField.test.d.ts +0 -2
- package/dist/packages/features/form-builder/FormBuilderField.test.d.ts.map +0 -1
- package/dist/packages/features/form-builder/index.d.ts +0 -2
- package/dist/packages/features/form-builder/index.d.ts.map +0 -1
- package/dist/packages/platform/libraries/i18n.d.ts +0 -15
- package/dist/packages/platform/libraries/i18n.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrgDunningRepository.integration-test.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/dunning/OrgDunningRepository.integration-test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PrismaClient } from '../../../../../prisma';
|
|
2
|
+
import { DunningStatus } from '../../../../../kysely/types.ts';
|
|
3
|
+
import { IDunningRepository, RawDunningRecord, RawDunningRecordForBilling, UpsertData } from './IDunningRepository';
|
|
4
|
+
export declare class TeamDunningRepository implements IDunningRepository {
|
|
5
|
+
private prisma;
|
|
6
|
+
constructor(prisma?: PrismaClient);
|
|
7
|
+
findByBillingId(billingId: string): Promise<RawDunningRecord | null>;
|
|
8
|
+
upsert(billingId: string, data: UpsertData): Promise<RawDunningRecord>;
|
|
9
|
+
findEntitiesToAdvance(): Promise<RawDunningRecord[]>;
|
|
10
|
+
findByBillingIds(billingIds: string[]): Promise<RawDunningRecordForBilling[]>;
|
|
11
|
+
advanceStatus(billingId: string, newStatus: DunningStatus): Promise<RawDunningRecord>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=TeamDunningRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamDunningRepository.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/dunning/TeamDunningRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAkBzH,qBAAa,qBAAsB,YAAW,kBAAkB;IAClD,OAAO,CAAC,MAAM;gBAAN,MAAM,GAAE,YAA4B;IAElD,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAQpE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAUtE,qBAAqB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAQpD,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;IA0B7E,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAQ5F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamDunningRepository.integration-test.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/repository/dunning/TeamDunningRepository.integration-test.ts"],"names":[],"mappings":""}
|
package/dist/packages/features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.d.ts.map
CHANGED
|
@@ -1 +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;
|
|
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;IA+C9D,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,+BAA+B,GAAG,IAAI,CAAC;IAkD5F,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;IAmEjE,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"}
|
package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationTeamRepository.d.ts
CHANGED
|
@@ -52,7 +52,9 @@ export declare class MonthlyProrationTeamRepository {
|
|
|
52
52
|
subscriptionId: string;
|
|
53
53
|
customerId: string;
|
|
54
54
|
billingPeriod: import('../../../../../kysely/types.ts').BillingPeriod | null;
|
|
55
|
+
billingMode: import('../../../../../kysely/types.ts').BillingMode;
|
|
55
56
|
pricePerSeat: number | null;
|
|
57
|
+
minSeats: number | null;
|
|
56
58
|
subscriptionItemId: string;
|
|
57
59
|
planName: string;
|
|
58
60
|
subscriptionStart: Date | null;
|
|
@@ -84,7 +86,9 @@ export declare class MonthlyProrationTeamRepository {
|
|
|
84
86
|
subscriptionId: string;
|
|
85
87
|
customerId: string;
|
|
86
88
|
billingPeriod: import('../../../../../kysely/types.ts').BillingPeriod | null;
|
|
89
|
+
billingMode: import('../../../../../kysely/types.ts').BillingMode;
|
|
87
90
|
pricePerSeat: number | null;
|
|
91
|
+
minSeats: number | null;
|
|
88
92
|
subscriptionItemId: string;
|
|
89
93
|
planName: string;
|
|
90
94
|
subscriptionStart: Date | null;
|
|
@@ -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;IAwDnE,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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env npx tsx
|
|
2
|
+
/**
|
|
3
|
+
* Interactive seed script launcher for billing test data.
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* npx tsx packages/features/ee/billing/seed.ts
|
|
7
|
+
*
|
|
8
|
+
* Non-interactive (CI-friendly):
|
|
9
|
+
* npx tsx packages/features/ee/billing/seed.ts --hwm
|
|
10
|
+
* npx tsx packages/features/ee/billing/seed.ts --proration
|
|
11
|
+
* npx tsx packages/features/ee/billing/seed.ts --active-user
|
|
12
|
+
* npx tsx packages/features/ee/billing/seed.ts --all
|
|
13
|
+
* npx tsx packages/features/ee/billing/seed.ts --cleanup
|
|
14
|
+
*
|
|
15
|
+
* Flags (combinable with above):
|
|
16
|
+
* --skip-stripe Skip Stripe API calls (use fake IDs)
|
|
17
|
+
* --cleanup Clean up before seeding
|
|
18
|
+
* --min-seats <N> Set minSeats floor for active-user billing
|
|
19
|
+
*/
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=seed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed.d.ts","sourceRoot":"","sources":["../../../../../../../features/ee/billing/seed.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { BillingPeriodRepository } from '../../repository/billingPeriod/BillingPeriodRepository';
|
|
2
2
|
import { IFeaturesRepository } from '../../../../flags/features.repository.interface';
|
|
3
|
-
import { BillingPeriod } from '../../../../../prisma/enums';
|
|
3
|
+
import { BillingMode, BillingPeriod } from '../../../../../prisma/enums';
|
|
4
4
|
import { Logger } from 'tslog';
|
|
5
5
|
export interface BillingPeriodInfo {
|
|
6
6
|
billingPeriod: BillingPeriod | null;
|
|
7
|
+
billingMode: BillingMode | null;
|
|
7
8
|
subscriptionStart: Date | null;
|
|
8
9
|
subscriptionEnd: Date | null;
|
|
9
10
|
trialEnd: Date | null;
|
|
10
11
|
isInTrial: boolean;
|
|
11
12
|
pricePerSeat: number | null;
|
|
13
|
+
minSeats: number | null;
|
|
12
14
|
isOrganization: boolean;
|
|
13
15
|
}
|
|
14
16
|
export interface BillingPeriodServiceDeps {
|
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":"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;
|
|
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,WAAW,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAIpC,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,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,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,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;IA8IxE,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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DunningStatus } from '../../../../../kysely/types.ts';
|
|
2
|
+
import { IDunningRepository } from '../../repository/dunning/IDunningRepository';
|
|
3
|
+
import { DunningEntityType } from './DunningMapper';
|
|
4
|
+
import { IDunningService, PaymentFailedParams } from './IDunningService';
|
|
5
|
+
export declare const SOFT_BLOCK_DAYS = 7;
|
|
6
|
+
export declare const HARD_BLOCK_DAYS = 14;
|
|
7
|
+
export declare const CANCEL_DAYS = 30;
|
|
8
|
+
export interface IBaseDunningServiceDeps {
|
|
9
|
+
dunningRepository: IDunningRepository;
|
|
10
|
+
}
|
|
11
|
+
export declare class BaseDunningService implements IDunningService {
|
|
12
|
+
protected deps: IBaseDunningServiceDeps;
|
|
13
|
+
protected entityType: DunningEntityType;
|
|
14
|
+
constructor(deps: IBaseDunningServiceDeps, entityType: DunningEntityType);
|
|
15
|
+
onPaymentFailed(params: PaymentFailedParams): Promise<{
|
|
16
|
+
isNewDunningRecord: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
onPaymentSucceeded(billingId: string): Promise<void>;
|
|
19
|
+
getBillingIdsToAdvance(): Promise<string[]>;
|
|
20
|
+
advanceDunning(billingId: string): Promise<{
|
|
21
|
+
advanced: boolean;
|
|
22
|
+
from?: DunningStatus;
|
|
23
|
+
to?: DunningStatus;
|
|
24
|
+
}>;
|
|
25
|
+
getStatus(billingId: string): Promise<DunningStatus>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=BaseDunningService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseDunningService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/dunning/BaseDunningService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,KAAK,iBAAiB,EAAmB,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI9E,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,WAAW,KAAK,CAAC;AAW9B,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,EAAE,kBAAkB,CAAC;CACvC;AAED,qBAAa,kBAAmB,YAAW,eAAe;IAEtD,SAAS,CAAC,IAAI,EAAE,uBAAuB;IACvC,SAAS,CAAC,UAAU,EAAE,iBAAiB;gBAD7B,IAAI,EAAE,uBAAuB,EAC7B,UAAU,EAAE,iBAAiB;IAGnC,eAAe,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC;IA2BtF,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBpD,sBAAsB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAK3C,cAAc,CAClB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,EAAE,CAAC,EAAE,aAAa,CAAA;KAAE,CAAC;IA4BrE,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAI3D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DunningStatus } from '../../../../../kysely/types.ts';
|
|
2
|
+
import { RawDunningRecord, RawDunningRecordForBilling } from '../../repository/dunning/IDunningRepository';
|
|
3
|
+
export type DunningEntityType = "team" | "organization";
|
|
4
|
+
export interface DunningRecord {
|
|
5
|
+
id: string;
|
|
6
|
+
billingId: string;
|
|
7
|
+
entityType: DunningEntityType;
|
|
8
|
+
status: DunningStatus;
|
|
9
|
+
firstFailedAt: Date | null;
|
|
10
|
+
lastFailedAt: Date | null;
|
|
11
|
+
resolvedAt: Date | null;
|
|
12
|
+
subscriptionId: string | null;
|
|
13
|
+
failedInvoiceId: string | null;
|
|
14
|
+
invoiceUrl: string | null;
|
|
15
|
+
failureReason: string | null;
|
|
16
|
+
notificationsSent: number;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
}
|
|
20
|
+
export interface DunningRecordForBilling {
|
|
21
|
+
billingId: string;
|
|
22
|
+
teamId: number;
|
|
23
|
+
entityType: DunningEntityType;
|
|
24
|
+
status: DunningStatus;
|
|
25
|
+
firstFailedAt: Date | null;
|
|
26
|
+
invoiceUrl: string | null;
|
|
27
|
+
failureReason: string | null;
|
|
28
|
+
entityName: string | null;
|
|
29
|
+
isOrganization: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function toDunningRecord(raw: RawDunningRecord, entityType: DunningEntityType): DunningRecord;
|
|
32
|
+
export declare function toDunningRecordForBilling(raw: RawDunningRecordForBilling, entityType: DunningEntityType): DunningRecordForBilling;
|
|
33
|
+
//# sourceMappingURL=DunningMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DunningMapper.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/dunning/DunningMapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEhH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,cAAc,CAAC;AAExD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,iBAAiB,CAAC;IAC9B,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,GAAG,aAAa,CAiBnG;AAED,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,0BAA0B,EAC/B,UAAU,EAAE,iBAAiB,GAC5B,uBAAuB,CAYzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IBillingRepository } from '../../repository/billing/IBillingRepository';
|
|
2
|
+
import { IDunningService } from './IDunningService';
|
|
3
|
+
export interface ResolvedDunning {
|
|
4
|
+
service: IDunningService;
|
|
5
|
+
billingId: string;
|
|
6
|
+
entityType: "team" | "organization";
|
|
7
|
+
}
|
|
8
|
+
export interface IDunningServiceFactoryDeps {
|
|
9
|
+
teamDunningService: IDunningService;
|
|
10
|
+
orgDunningService: IDunningService;
|
|
11
|
+
teamBillingRepository: IBillingRepository;
|
|
12
|
+
orgBillingRepository: IBillingRepository;
|
|
13
|
+
}
|
|
14
|
+
export declare class DunningServiceFactory {
|
|
15
|
+
private deps;
|
|
16
|
+
constructor(deps: IDunningServiceFactoryDeps);
|
|
17
|
+
forTeam(teamId: number): Promise<ResolvedDunning | null>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=DunningServiceFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DunningServiceFactory.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/dunning/DunningServiceFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,cAAc,CAAC;CACrC;AAED,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,EAAE,eAAe,CAAC;IACpC,iBAAiB,EAAE,eAAe,CAAC;IACnC,qBAAqB,EAAE,kBAAkB,CAAC;IAC1C,oBAAoB,EAAE,kBAAkB,CAAC;CAC1C;AAED,qBAAa,qBAAqB;IACpB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,0BAA0B;IAE9C,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;CAqB/D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TeamRepository } from '../../../teams/repositories/TeamRepository';
|
|
2
|
+
import { DunningStatus } from '../../../../../kysely/types.ts';
|
|
3
|
+
import { IBillingRepository } from '../../repository/billing/IBillingRepository';
|
|
4
|
+
import { IDunningService } from './IDunningService';
|
|
5
|
+
export interface IDunningStatusResolverDeps {
|
|
6
|
+
teamDunningService: IDunningService;
|
|
7
|
+
orgDunningService: IDunningService;
|
|
8
|
+
teamRepository: TeamRepository;
|
|
9
|
+
teamBillingRepository: IBillingRepository;
|
|
10
|
+
orgBillingRepository: IBillingRepository;
|
|
11
|
+
}
|
|
12
|
+
export declare class DunningStatusResolver {
|
|
13
|
+
private deps;
|
|
14
|
+
constructor(deps: IDunningStatusResolverDeps);
|
|
15
|
+
getEffectiveStatus(teamId: number): Promise<DunningStatus>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=DunningStatusResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DunningStatusResolver.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/dunning/DunningStatusResolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUzD,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,EAAE,eAAe,CAAC;IACpC,iBAAiB,EAAE,eAAe,CAAC;IACnC,cAAc,EAAE,cAAc,CAAC;IAC/B,qBAAqB,EAAE,kBAAkB,CAAC;IAC1C,oBAAoB,EAAE,kBAAkB,CAAC;CAC1C;AAED,qBAAa,qBAAqB;IACpB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,0BAA0B;IAE9C,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAgBjE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DunningStatus } from '../../../../../kysely/types.ts';
|
|
2
|
+
export interface PaymentFailedParams {
|
|
3
|
+
billingId: string;
|
|
4
|
+
subscriptionId: string;
|
|
5
|
+
failedInvoiceId: string;
|
|
6
|
+
invoiceUrl: string | null;
|
|
7
|
+
failureReason: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IDunningService {
|
|
10
|
+
onPaymentFailed(params: PaymentFailedParams): Promise<{
|
|
11
|
+
isNewDunningRecord: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
onPaymentSucceeded(billingId: string): Promise<void>;
|
|
14
|
+
getBillingIdsToAdvance(): Promise<string[]>;
|
|
15
|
+
advanceDunning(billingId: string): Promise<{
|
|
16
|
+
advanced: boolean;
|
|
17
|
+
from?: DunningStatus;
|
|
18
|
+
to?: DunningStatus;
|
|
19
|
+
}>;
|
|
20
|
+
getStatus(billingId: string): Promise<DunningStatus>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=IDunningService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDunningService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/dunning/IDunningService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACvF,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,sBAAsB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5C,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,EAAE,CAAC,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;IAC5G,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrgDunningService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/dunning/OrgDunningService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAExF,qBAAa,iBAAkB,SAAQ,kBAAkB;gBAC3C,IAAI,EAAE,uBAAuB;CAG1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamDunningService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/dunning/TeamDunningService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAExF,qBAAa,kBAAmB,SAAQ,kBAAkB;gBAC5C,IAAI,EAAE,uBAAuB;CAG1C"}
|
package/dist/packages/features/ee/billing/service/dunning/__tests__/BaseDunningService.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseDunningService.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../features/ee/billing/service/dunning/__tests__/BaseDunningService.test.ts"],"names":[],"mappings":""}
|
package/dist/packages/features/ee/billing/service/dunning/__tests__/DunningMapper.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DunningMapper.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../features/ee/billing/service/dunning/__tests__/DunningMapper.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DunningServiceFactory.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../features/ee/billing/service/dunning/__tests__/DunningServiceFactory.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DunningStatusResolver.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../features/ee/billing/service/dunning/__tests__/DunningStatusResolver.test.ts"],"names":[],"mappings":""}
|
package/dist/packages/features/ee/billing/service/proration/MonthlyProrationService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthlyProrationService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/proration/MonthlyProrationService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAExF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAEhG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAOpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAW1F,UAAU,qBAAqB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,8BAA8B;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,aAAa,CAAC;IACtB,kBAAkB,EAAE,mBAAmB,CAAC;IACxC,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C;AAED,qBAAa,uBAAuB;IAClC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,cAAc,CAAiC;IACvD,OAAO,CAAC,mBAAmB,CAA6B;IACxD,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,kBAAkB,CAAsB;gBAEpC,IAAI,EAAE,2BAA2B;gBACjC,YAAY,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,EAAE,uBAAuB;IAkB9E,wBAAwB,CAAC,MAAM,EAAE,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MonthlyProrationService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/proration/MonthlyProrationService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAExF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAEhG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAOpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAW1F,UAAU,qBAAqB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,8BAA8B;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,aAAa,CAAC;IACtB,kBAAkB,EAAE,mBAAmB,CAAC;IACxC,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C;AAED,qBAAa,uBAAuB;IAClC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,cAAc,CAAiC;IACvD,OAAO,CAAC,mBAAmB,CAA6B;IACxD,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,kBAAkB,CAAsB;gBAEpC,IAAI,EAAE,2BAA2B;gBACjC,YAAY,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,EAAE,uBAAuB;IAkB9E,wBAAwB,CAAC,MAAM,EAAE,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0C/D,sBAAsB,CAAC,MAAM,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4J1D,OAAO,CAAC,kBAAkB;YA4BZ,uBAAuB;YAyEvB,4BAA4B;IAgDpC,6BAA6B,CAAC,WAAW,EAAE,MAAM;IA8BjD,6BAA6B,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAa7E,oBAAoB,CAAC,WAAW,EAAE,MAAM;YAchC,0BAA0B;YA0F1B,uBAAuB;CAItC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProrationEmailService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/proration/ProrationEmailService.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,qBAAqB;IAChC,OAAO,CAAC,mBAAmB,CAA6B;;IAMlD,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ProrationEmailService.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/proration/ProrationEmailService.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,qBAAqB;IAChC,OAAO,CAAC,mBAAmB,CAA6B;;IAMlD,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IA4C/D,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;YA+DzD,aAAa;CAY5B"}
|
package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailSyncTasker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProrationEmailSyncTasker.d.ts","sourceRoot":"","sources":["../../../../../../../../../../features/ee/billing/service/proration/tasker/ProrationEmailSyncTasker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,wBAAyB,YAAW,qBAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC;IAE9C,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;;;IASlF,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;;;IASpF,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;;;
|
|
1
|
+
{"version":3,"file":"ProrationEmailSyncTasker.d.ts","sourceRoot":"","sources":["../../../../../../../../../../features/ee/billing/service/proration/tasker/ProrationEmailSyncTasker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,wBAAyB,YAAW,qBAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC;IAE9C,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;;;IASlF,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;;;IASpF,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;;;CASrF"}
|
package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailSchemas.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ export declare const sendInvoiceEmailSchema: z.ZodObject<{
|
|
|
5
5
|
isAutoCharge: z.ZodBoolean;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
teamId: number;
|
|
8
|
-
isAutoCharge: boolean;
|
|
9
8
|
prorationId: string;
|
|
9
|
+
isAutoCharge: boolean;
|
|
10
10
|
}, {
|
|
11
11
|
teamId: number;
|
|
12
|
-
isAutoCharge: boolean;
|
|
13
12
|
prorationId: string;
|
|
13
|
+
isAutoCharge: boolean;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const sendReminderEmailSchema: z.ZodObject<{
|
|
16
16
|
prorationId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduleMonthlyProration.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../features/ee/billing/service/proration/tasker/trigger/scheduleMonthlyProration.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"scheduleMonthlyProration.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../features/ee/billing/service/proration/tasker/trigger/scheduleMonthlyProration.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwFnC,CAAC"}
|
|
@@ -4,12 +4,12 @@ export declare const sendProrationInvoiceEmail: import('@trigger.dev/sdk').TaskW
|
|
|
4
4
|
isAutoCharge: import('zod').ZodBoolean;
|
|
5
5
|
}, "strip", import('zod').ZodTypeAny, {
|
|
6
6
|
teamId: number;
|
|
7
|
-
isAutoCharge: boolean;
|
|
8
7
|
prorationId: string;
|
|
8
|
+
isAutoCharge: boolean;
|
|
9
9
|
}, {
|
|
10
10
|
teamId: number;
|
|
11
|
-
isAutoCharge: boolean;
|
|
12
11
|
prorationId: string;
|
|
12
|
+
isAutoCharge: boolean;
|
|
13
13
|
}>, {
|
|
14
14
|
success: boolean;
|
|
15
15
|
}>;
|
package/dist/packages/features/ee/billing/service/seatBillingStrategy/ActiveUserBillingStrategy.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ActiveUserBillingService } from '../../active-user/services/ActiveUserBillingService';
|
|
2
|
+
import { ITeamBillingDataRepository } from '../../repository/teamBillingData/ITeamBillingDataRepository';
|
|
3
|
+
import { BillingPeriodService } from '../billingPeriod/BillingPeriodService';
|
|
4
|
+
import { IBillingProviderService } from '../billingProvider/IBillingProviderService';
|
|
5
|
+
import { SeatChangeContext, BaseSeatBillingStrategy } from './ISeatBillingStrategy';
|
|
6
|
+
export interface IActiveUserBillingStrategyDeps {
|
|
7
|
+
activeUserBillingService: ActiveUserBillingService;
|
|
8
|
+
billingProviderService: IBillingProviderService;
|
|
9
|
+
teamBillingDataRepository: ITeamBillingDataRepository;
|
|
10
|
+
billingPeriodService: BillingPeriodService;
|
|
11
|
+
}
|
|
12
|
+
export declare class ActiveUserBillingStrategy extends BaseSeatBillingStrategy {
|
|
13
|
+
private readonly deps;
|
|
14
|
+
readonly strategyName = "ActiveUserBilling";
|
|
15
|
+
constructor(deps: IActiveUserBillingStrategyDeps);
|
|
16
|
+
onSeatChange(_context: SeatChangeContext): Promise<void>;
|
|
17
|
+
onInvoiceUpcoming(subscriptionId: string): Promise<{
|
|
18
|
+
applied: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ActiveUserBillingStrategy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActiveUserBillingStrategy.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/seatBillingStrategy/ActiveUserBillingStrategy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAC9G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAIjE,MAAM,WAAW,8BAA8B;IAC7C,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,sBAAsB,EAAE,uBAAuB,CAAC;IAChD,yBAAyB,EAAE,0BAA0B,CAAC;IACtD,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C;AAED,qBAAa,yBAA0B,SAAQ,uBAAuB;IAGxD,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,QAAQ,CAAC,YAAY,uBAAuB;gBAEf,IAAI,EAAE,8BAA8B;IAI3D,YAAY,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CA2CxF"}
|
package/dist/packages/features/ee/billing/service/seatBillingStrategy/HighWaterMarkStrategy.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HighWaterMarkRepository } from '../../repository/highWaterMark/HighWaterMarkRepository';
|
|
2
|
+
import { HighWaterMarkService } from '../highWaterMark/HighWaterMarkService';
|
|
3
|
+
import { SeatChangeContext, BaseSeatBillingStrategy } from './ISeatBillingStrategy';
|
|
4
|
+
export interface IHighWaterMarkStrategyDeps {
|
|
5
|
+
highWaterMarkRepository: HighWaterMarkRepository;
|
|
6
|
+
highWaterMarkService: HighWaterMarkService;
|
|
7
|
+
}
|
|
8
|
+
export declare class HighWaterMarkStrategy extends BaseSeatBillingStrategy {
|
|
9
|
+
private readonly deps;
|
|
10
|
+
readonly strategyName = "HighWaterMark";
|
|
11
|
+
constructor(deps: IHighWaterMarkStrategyDeps);
|
|
12
|
+
onSeatChange(context: SeatChangeContext): Promise<void>;
|
|
13
|
+
onInvoiceUpcoming(subscriptionId: string): Promise<{
|
|
14
|
+
applied: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
onRenewalPaid(subscriptionId: string, periodStart: Date): Promise<{
|
|
17
|
+
reset: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=HighWaterMarkStrategy.d.ts.map
|
package/dist/packages/features/ee/billing/service/seatBillingStrategy/HighWaterMarkStrategy.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighWaterMarkStrategy.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/seatBillingStrategy/HighWaterMarkStrategy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAIjE,MAAM,WAAW,0BAA0B;IACzC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C;AAED,qBAAa,qBAAsB,SAAQ,uBAAuB;IAGpD,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,QAAQ,CAAC,YAAY,mBAAmB;gBAEX,IAAI,EAAE,0BAA0B;IAIvD,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB9C,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAKxE,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;CAOrG"}
|
package/dist/packages/features/ee/billing/service/seatBillingStrategy/ISeatBillingStrategy.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type SeatChangeType = "addition" | "removal" | "sync";
|
|
2
|
+
export interface SeatChangeContext {
|
|
3
|
+
teamId: number;
|
|
4
|
+
subscriptionId: string;
|
|
5
|
+
subscriptionItemId: string;
|
|
6
|
+
membershipCount: number;
|
|
7
|
+
changeType: SeatChangeType;
|
|
8
|
+
}
|
|
9
|
+
export interface StripeInvoiceData {
|
|
10
|
+
lines: {
|
|
11
|
+
data: Array<{
|
|
12
|
+
metadata?: Record<string, string | null | undefined> | null;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface ISeatBillingStrategy {
|
|
17
|
+
readonly strategyName: string;
|
|
18
|
+
onSeatChange(context: SeatChangeContext): Promise<void>;
|
|
19
|
+
onInvoiceUpcoming(subscriptionId: string): Promise<{
|
|
20
|
+
applied: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
onRenewalPaid(subscriptionId: string, periodStart: Date): Promise<{
|
|
23
|
+
reset: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
onPaymentSucceeded(invoice: StripeInvoiceData): Promise<{
|
|
26
|
+
handled: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
onPaymentFailed(invoice: StripeInvoiceData, reason: string): Promise<{
|
|
29
|
+
handled: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export declare abstract class BaseSeatBillingStrategy implements ISeatBillingStrategy {
|
|
33
|
+
abstract readonly strategyName: string;
|
|
34
|
+
abstract onSeatChange(context: SeatChangeContext): Promise<void>;
|
|
35
|
+
onInvoiceUpcoming(_subscriptionId: string): Promise<{
|
|
36
|
+
applied: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
onRenewalPaid(_subscriptionId: string, _periodStart: Date): Promise<{
|
|
39
|
+
reset: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
onPaymentSucceeded(_invoice: StripeInvoiceData): Promise<{
|
|
42
|
+
handled: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
onPaymentFailed(_invoice: StripeInvoiceData, _reason: string): Promise<{
|
|
45
|
+
handled: boolean;
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=ISeatBillingStrategy.d.ts.map
|
package/dist/packages/features/ee/billing/service/seatBillingStrategy/ISeatBillingStrategy.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISeatBillingStrategy.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/seatBillingStrategy/ISeatBillingStrategy.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7D,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE;QACL,IAAI,EAAE,KAAK,CAAC;YACV,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC;SAC7D,CAAC,CAAC;KACJ,CAAC;CACH;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACzE,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACtF,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC9E,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC5F;AAED,8BAAsB,uBAAwB,YAAW,oBAAoB;IAC3E,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAE1D,iBAAiB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAIzE,aAAa,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;IAIvF,kBAAkB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAI9E,eAAe,CAAC,QAAQ,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CAGnG"}
|
package/dist/packages/features/ee/billing/service/seatBillingStrategy/ImmediateUpdateStrategy.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBillingProviderService } from '../billingProvider/IBillingProviderService';
|
|
2
|
+
import { SeatChangeContext, BaseSeatBillingStrategy } from './ISeatBillingStrategy';
|
|
3
|
+
export declare class ImmediateUpdateStrategy extends BaseSeatBillingStrategy {
|
|
4
|
+
private readonly billingProviderService;
|
|
5
|
+
readonly strategyName = "ImmediateUpdate";
|
|
6
|
+
constructor(billingProviderService: IBillingProviderService);
|
|
7
|
+
onSeatChange(context: SeatChangeContext): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=ImmediateUpdateStrategy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImmediateUpdateStrategy.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/seatBillingStrategy/ImmediateUpdateStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,qBAAa,uBAAwB,SAAQ,uBAAuB;IAGtD,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IAFnD,QAAQ,CAAC,YAAY,qBAAqB;gBAEb,sBAAsB,EAAE,uBAAuB;IAItE,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAO9D"}
|
package/dist/packages/features/ee/billing/service/seatBillingStrategy/MonthlyProrationStrategy.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MonthlyProrationService } from '../proration/MonthlyProrationService';
|
|
2
|
+
import { SeatChangeContext, StripeInvoiceData, BaseSeatBillingStrategy } from './ISeatBillingStrategy';
|
|
3
|
+
export interface IMonthlyProrationStrategyDeps {
|
|
4
|
+
monthlyProrationService: MonthlyProrationService;
|
|
5
|
+
}
|
|
6
|
+
export declare class MonthlyProrationStrategy extends BaseSeatBillingStrategy {
|
|
7
|
+
private readonly deps;
|
|
8
|
+
readonly strategyName = "MonthlyProration";
|
|
9
|
+
constructor(deps: IMonthlyProrationStrategyDeps);
|
|
10
|
+
onSeatChange(_context: SeatChangeContext): Promise<void>;
|
|
11
|
+
onPaymentSucceeded(invoice: StripeInvoiceData): Promise<{
|
|
12
|
+
handled: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
onPaymentFailed(invoice: StripeInvoiceData, reason: string): Promise<{
|
|
15
|
+
handled: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=MonthlyProrationStrategy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonthlyProrationStrategy.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/seatBillingStrategy/MonthlyProrationStrategy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAIjE,MAAM,WAAW,6BAA6B;IAC5C,uBAAuB,EAAE,uBAAuB,CAAC;CAClD;AAED,qBAAa,wBAAyB,SAAQ,uBAAuB;IAGvD,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,QAAQ,CAAC,YAAY,sBAAsB;gBAEd,IAAI,EAAE,6BAA6B;IAI1D,YAAY,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAe7E,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CAiB1G"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IFeaturesRepository } from '../../../../flags/features.repository.interface';
|
|
2
|
+
import { ActiveUserBillingService } from '../../active-user/services/ActiveUserBillingService';
|
|
3
|
+
import { HighWaterMarkRepository } from '../../repository/highWaterMark/HighWaterMarkRepository';
|
|
4
|
+
import { ITeamBillingDataRepository } from '../../repository/teamBillingData/ITeamBillingDataRepository';
|
|
5
|
+
import { BillingPeriodService } from '../billingPeriod/BillingPeriodService';
|
|
6
|
+
import { IBillingProviderService } from '../billingProvider/IBillingProviderService';
|
|
7
|
+
import { HighWaterMarkService } from '../highWaterMark/HighWaterMarkService';
|
|
8
|
+
import { MonthlyProrationService } from '../proration/MonthlyProrationService';
|
|
9
|
+
import { ISeatBillingStrategy } from './ISeatBillingStrategy';
|
|
10
|
+
export interface ISeatBillingStrategyFactoryDeps {
|
|
11
|
+
billingPeriodService: BillingPeriodService;
|
|
12
|
+
featuresRepository: IFeaturesRepository;
|
|
13
|
+
billingProviderService: IBillingProviderService;
|
|
14
|
+
highWaterMarkRepository: HighWaterMarkRepository;
|
|
15
|
+
highWaterMarkService: HighWaterMarkService;
|
|
16
|
+
monthlyProrationService: MonthlyProrationService;
|
|
17
|
+
teamBillingDataRepository: ITeamBillingDataRepository;
|
|
18
|
+
activeUserBillingService: ActiveUserBillingService;
|
|
19
|
+
}
|
|
20
|
+
export declare class SeatBillingStrategyFactory {
|
|
21
|
+
private readonly deps;
|
|
22
|
+
private readonly prorationStrategy;
|
|
23
|
+
private readonly hwmStrategy;
|
|
24
|
+
private readonly activeUserStrategy;
|
|
25
|
+
private readonly fallback;
|
|
26
|
+
constructor(deps: ISeatBillingStrategyFactoryDeps);
|
|
27
|
+
createByTeamId(teamId: number): Promise<ISeatBillingStrategy>;
|
|
28
|
+
createBySubscriptionId(subscriptionId: string): Promise<ISeatBillingStrategy>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=SeatBillingStrategyFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeatBillingStrategyFactory.d.ts","sourceRoot":"","sources":["../../../../../../../../../features/ee/billing/service/seatBillingStrategy/SeatBillingStrategyFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAGhG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAC9G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAIpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAKnE,MAAM,WAAW,+BAA+B;IAC9C,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,kBAAkB,EAAE,mBAAmB,CAAC;IACxC,sBAAsB,EAAE,uBAAuB,CAAC;IAChD,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,yBAAyB,EAAE,0BAA0B,CAAC;IACtD,wBAAwB,EAAE,wBAAwB,CAAC;CACpD;AAED,qBAAa,0BAA0B;IAMzB,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuB;IACzD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAuB;IACnD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAuB;IAC1D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;gBAEnB,IAAI,EAAE,+BAA+B;IAiB5D,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAyB7D,sBAAsB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAQpF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeatBillingStrategyFactory.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../features/ee/billing/service/seatBillingStrategy/__tests__/SeatBillingStrategyFactory.test.ts"],"names":[],"mappings":""}
|