autumn-js 0.0.114 → 0.0.116
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/README.md +1 -139
- package/dist/libraries/backend/better-auth.d.mts +18 -18
- package/dist/libraries/backend/better-auth.d.ts +18 -18
- package/dist/libraries/backend/better-auth.js +21 -1
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-5W265EHC.mjs → chunk-BDMGQV75.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AE3ATQW3.mjs → chunk-BX2LACTF.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AHC5CF27.mjs → chunk-EIP7LDKF.mjs} +1 -1
- package/dist/libraries/backend/{chunk-QGTZAKB7.mjs → chunk-N4PGGU3D.mjs} +1 -1
- package/dist/libraries/backend/{chunk-JUTZHAHU.mjs → chunk-O6KXYXQN.mjs} +1 -1
- package/dist/libraries/backend/{chunk-SHE3OJIL.mjs → chunk-QGX7ZACH.mjs} +21 -1
- package/dist/libraries/backend/{chunk-YFHV4POF.mjs → chunk-WTKY2U3S.mjs} +6 -6
- package/dist/libraries/backend/convex.js +21 -1
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +21 -1
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +21 -1
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +21 -1
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +21 -1
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/index.js +21 -1
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +21 -1
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +21 -1
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-qMay-K9l.d.ts → referralTypes-DXhjwazw.d.ts} +109 -45
- package/dist/libraries/backend/{referralTypes-COVVwj-1.d.mts → referralTypes-Dxn4bOpT.d.mts} +109 -45
- package/dist/libraries/backend/remix_dep.js +21 -1
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +21 -1
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +21 -1
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +21 -1
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +21 -1
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +21 -1
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +21 -1
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +21 -1
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +21 -1
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/backend/utils/withAuth.js +21 -1
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.js +21 -1
- package/dist/libraries/react/AutumnContext.mjs +3 -3
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +21 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
- package/dist/libraries/react/{ReactAutumnClient-BbbdQEOx.d.ts → ReactAutumnClient-5mFEwitR.d.ts} +11 -8
- package/dist/libraries/react/{ReactAutumnClient-BD8mQ965.d.mts → ReactAutumnClient-DooIpMm0.d.mts} +11 -8
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.js +21 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{attachTypes-BfITg8QI.d.mts → attachTypes-By0coJIV.d.mts} +3 -3
- package/dist/{next/client/attachTypes-BPWwj1YK.d.ts → libraries/react/attachTypes-CSutLgVn.d.ts} +3 -3
- package/dist/libraries/react/{chunk-37PNTTHW.mjs → chunk-77DMPCGK.mjs} +35 -37
- package/dist/libraries/react/{chunk-5PA5P2UE.mjs → chunk-7RICWVXV.mjs} +2 -2
- package/dist/libraries/react/{chunk-62QDB3KQ.mjs → chunk-AXHU3KAH.mjs} +3 -3
- package/dist/libraries/react/{chunk-O6TAJHK3.mjs → chunk-BLM4DAAR.mjs} +3 -3
- package/dist/libraries/react/{chunk-3JORYFTY.mjs → chunk-CZBWEEWD.mjs} +21 -1
- package/dist/libraries/react/{chunk-CZVP6BZG.mjs → chunk-EXUNRZTP.mjs} +3 -3
- package/dist/libraries/react/{chunk-YEG5KJEI.mjs → chunk-H4J73SMR.mjs} +1 -1
- package/dist/libraries/react/{chunk-HBCCTYA6.mjs → chunk-I5ZGIAIX.mjs} +3 -3
- package/dist/libraries/react/{chunk-YDRULJZE.mjs → chunk-IFZCH7DR.mjs} +2 -2
- package/dist/libraries/react/{chunk-RGAEIODW.mjs → chunk-LFLX6NJU.mjs} +1 -1
- package/dist/libraries/react/{chunk-FOXUAY7Y.mjs → chunk-LMQMA7VL.mjs} +1 -1
- package/dist/libraries/react/{chunk-3UNBBJY5.mjs → chunk-MPA65MFU.mjs} +1 -1
- package/dist/libraries/react/{chunk-6R3O2T4H.mjs → chunk-MRZA4JWN.mjs} +1 -1
- package/dist/libraries/react/{chunk-PEYCQWHI.mjs → chunk-PFN52PHR.mjs} +2 -2
- package/dist/libraries/react/{chunk-CV4TKYAC.mjs → chunk-QJJC6MB3.mjs} +2 -2
- package/dist/libraries/react/{chunk-4Q7BDIOS.mjs → chunk-UAK4XMNC.mjs} +1 -1
- package/dist/libraries/react/{chunk-E2H5MYIO.mjs → chunk-UCUAGLCJ.mjs} +1 -1
- package/dist/libraries/react/{chunk-HBVLIBOE.mjs → chunk-WZG3QTZI.mjs} +3 -3
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.js +21 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
- package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +9 -0
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +9 -0
- package/dist/libraries/react/client/types/clientAttachTypes.js +4 -1
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +4 -1
- package/dist/libraries/react/client/types/clientGenTypes.js +21 -1
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.d.mts → checkout-dialog/checkout-dialog-synced.d.mts} +5 -5
- package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.d.ts → checkout-dialog/checkout-dialog-synced.d.ts} +5 -5
- package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.js → checkout-dialog/checkout-dialog-synced.js} +33 -13
- package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.mjs → checkout-dialog/checkout-dialog-synced.mjs} +27 -27
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +11 -0
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +11 -0
- package/dist/libraries/react/components/{attach-dialog/lib/attach-content.js → checkout-dialog/lib/checkout-content.js} +7 -7
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.mjs +8 -0
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +9 -0
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +9 -0
- package/dist/libraries/react/components/{check-dialog/lib/check-content.js → paywall-dialog/lib/paywall-content.js} +7 -7
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.mjs +8 -0
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.d.mts +11 -0
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.d.ts +11 -0
- package/dist/libraries/react/components/{check-dialog/check-dialog-synced.js → paywall-dialog/paywall-dialog-synced.js} +34 -14
- package/dist/libraries/react/components/{check-dialog/check-dialog-synced.mjs → paywall-dialog/paywall-dialog-synced.mjs} +27 -27
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +4 -4
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +4 -4
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +30 -12
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -25
- package/dist/libraries/react/components/ui/dialog.mjs +2 -2
- package/dist/libraries/react/components/ui/popover.mjs +2 -2
- package/dist/libraries/react/{cusTypes-CMj2sP-4.d.ts → cusTypes-Bbmd8V3j.d.mts} +23 -5
- package/dist/libraries/react/{cusTypes-Dj2tcwg7.d.mts → cusTypes-d_DR9uFs.d.ts} +23 -5
- package/dist/libraries/react/{entTypes-Cltx_-C_.d.mts → entTypes-B2DgO6PV.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-fYtiTl7W.d.ts → entTypes-D6eoGCKH.d.ts} +1 -1
- package/dist/libraries/react/{genTypes-A2nf2M_h.d.ts → genTypes-BNXXZTFn.d.ts} +5 -5
- package/dist/libraries/react/{genTypes-CH9EbOfb.d.mts → genTypes-C2VFQqmX.d.mts} +5 -5
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.js +21 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +21 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.js +21 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomer.js +21 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.js +21 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
- package/dist/libraries/react/hooks/useEntity.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntity.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntity.js +21 -1
- package/dist/libraries/react/hooks/useEntity.mjs +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.mts +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.ts +8 -8
- package/dist/libraries/react/hooks/useEntityBase.js +21 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
- package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- package/dist/libraries/react/hooks/usePaywall.js +21 -1
- package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.js +21 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.js +21 -1
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
- package/dist/libraries/react/index.d.mts +51 -6
- package/dist/libraries/react/index.d.ts +51 -6
- package/dist/libraries/react/index.js +38 -20
- package/dist/libraries/react/index.mjs +36 -18
- package/dist/libraries/react/{prodTypes-DZUJPsRN.d.mts → prodTypes-B3iWy6kz.d.mts} +21 -3
- package/dist/libraries/react/{prodTypes-DZUJPsRN.d.ts → prodTypes-B3iWy6kz.d.ts} +21 -3
- package/dist/next/client/NextAutumnClient.d.mts +22 -19
- package/dist/next/client/NextAutumnClient.d.ts +22 -19
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/{libraries/react/attachTypes-ZMWuxpzI.d.ts → next/client/attachTypes-BCt7D8ym.d.ts} +5 -5
- package/dist/next/client/{attachTypes-C67U2LbK.d.mts → attachTypes-BThbMcvF.d.mts} +9 -9
- package/dist/next/client/{clientAttachTypes-B4i2ri-1.d.ts → clientAttachTypes-Df5FVGkw.d.ts} +36 -27
- package/dist/next/client/{clientAttachTypes-EGitteWV.d.mts → clientAttachTypes-whHUVrE3.d.mts} +36 -27
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-Dn0ETI7G.d.ts → cusTypes-BuLw67IH.d.mts} +23 -5
- package/dist/next/client/{cusTypes-CRJanGZd.d.mts → cusTypes-CqAsUZEp.d.ts} +23 -5
- package/dist/next/client/{entTypes-Caov3CJ9.d.ts → entTypes-BLLymqnn.d.ts} +1 -1
- package/dist/next/client/{entTypes-Qyo2WYGP.d.mts → entTypes-DTRFxh07.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +4 -4
- package/dist/next/client/hooks/useAutumn.d.ts +4 -4
- package/dist/next/client/hooks/useCustomer.d.mts +5 -5
- package/dist/next/client/hooks/useCustomer.d.ts +5 -5
- package/dist/next/client/hooks/useEntity.d.mts +6 -6
- package/dist/next/client/hooks/useEntity.d.ts +6 -6
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/{prodTypes-si707oHg.d.mts → prodTypes-UFM-PYm-.d.mts} +22 -4
- package/dist/next/client/{prodTypes-si707oHg.d.ts → prodTypes-UFM-PYm-.d.ts} +22 -4
- package/dist/next/client/types.d.mts +3 -3
- package/dist/next/client/types.d.ts +3 -3
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +39 -11
- package/dist/next/server/cusActions.d.ts +39 -11
- package/dist/next/server/{cusTypes-wfx--BDG.d.ts → cusTypes-MnneoF1F.d.mts} +36 -0
- package/dist/next/server/{cusTypes-wfx--BDG.d.mts → cusTypes-MnneoF1F.d.ts} +36 -0
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +75 -11
- package/dist/sdk/index.d.ts +75 -11
- package/dist/sdk/index.js +22 -1
- package/dist/sdk/index.mjs +22 -2
- package/dist/utils/encryptUtils.js +21 -1
- package/dist/utils/encryptUtils.mjs +21 -1
- package/package.json +1 -1
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +0 -11
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +0 -11
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +0 -8
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +0 -11
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +0 -11
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +0 -9
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +0 -9
- package/dist/libraries/react/components/check-dialog/lib/check-content.mjs +0 -8
- package/dist/libraries/react/{chunk-7JNU5ABT.mjs → chunk-FJWZPMWU.mjs} +3 -3
- package/dist/libraries/react/{chunk-LCWL3TIT.mjs → chunk-OTZ65PCT.mjs} +3 -3
- /package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.css → checkout-dialog/checkout-dialog-synced.css} +0 -0
- /package/dist/libraries/react/components/{check-dialog/check-dialog-synced.css → paywall-dialog/paywall-dialog-synced.css} +0 -0
|
@@ -2,41 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "../../chunk-
|
|
5
|
+
PaywallDialog
|
|
6
|
+
} from "../../chunk-77DMPCGK.mjs";
|
|
7
7
|
import "../../chunk-URQMBRFZ.mjs";
|
|
8
|
+
import "../../chunk-BLM4DAAR.mjs";
|
|
9
|
+
import "../../chunk-I5ZGIAIX.mjs";
|
|
10
|
+
import "../../chunk-GUM4HIGI.mjs";
|
|
11
|
+
import "../../chunk-OTZ65PCT.mjs";
|
|
12
|
+
import "../../chunk-YWQTQ72B.mjs";
|
|
13
|
+
import "../../chunk-KUS3X33V.mjs";
|
|
14
|
+
import "../../chunk-WVKYZYFT.mjs";
|
|
8
15
|
import "../../chunk-JGDTNJTR.mjs";
|
|
9
16
|
import "../../chunk-EV5RNY5U.mjs";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-QJPZFEVW.mjs";
|
|
12
|
-
import "../../chunk-GUM4HIGI.mjs";
|
|
13
|
-
import "../../chunk-LCWL3TIT.mjs";
|
|
17
|
+
import "../../chunk-FJWZPMWU.mjs";
|
|
14
18
|
import "../../chunk-FEISQQNM.mjs";
|
|
19
|
+
import "../../chunk-QJPZFEVW.mjs";
|
|
15
20
|
import "../../chunk-I2A7PK2L.mjs";
|
|
16
|
-
import "../../chunk-YWQTQ72B.mjs";
|
|
17
|
-
import "../../chunk-KUS3X33V.mjs";
|
|
18
21
|
import "../../chunk-7TYAAD2T.mjs";
|
|
19
22
|
import "../../chunk-RPEGNKJH.mjs";
|
|
20
|
-
import "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-WVKYZYFT.mjs";
|
|
23
|
-
import "../../chunk-6R3O2T4H.mjs";
|
|
24
|
-
import "../../chunk-PEYCQWHI.mjs";
|
|
23
|
+
import "../../chunk-MRZA4JWN.mjs";
|
|
24
|
+
import "../../chunk-PFN52PHR.mjs";
|
|
25
25
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
28
|
-
import "../../chunk-
|
|
29
|
-
import "../../chunk-
|
|
30
|
-
import "../../chunk-
|
|
31
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-IFZCH7DR.mjs";
|
|
27
|
+
import "../../chunk-QJJC6MB3.mjs";
|
|
28
|
+
import "../../chunk-7RICWVXV.mjs";
|
|
29
|
+
import "../../chunk-WZG3QTZI.mjs";
|
|
30
|
+
import "../../chunk-AXHU3KAH.mjs";
|
|
31
|
+
import "../../chunk-MPA65MFU.mjs";
|
|
32
32
|
import "../../chunk-RFSQBGLO.mjs";
|
|
33
|
-
import "../../chunk-
|
|
34
|
-
import "../../chunk-
|
|
35
|
-
import "../../chunk-
|
|
36
|
-
import "../../chunk-
|
|
37
|
-
import "../../chunk-
|
|
38
|
-
import "../../chunk-
|
|
39
|
-
import "../../chunk-
|
|
33
|
+
import "../../chunk-EXUNRZTP.mjs";
|
|
34
|
+
import "../../chunk-LFLX6NJU.mjs";
|
|
35
|
+
import "../../chunk-UAK4XMNC.mjs";
|
|
36
|
+
import "../../chunk-UCUAGLCJ.mjs";
|
|
37
|
+
import "../../chunk-H4J73SMR.mjs";
|
|
38
|
+
import "../../chunk-LMQMA7VL.mjs";
|
|
39
|
+
import "../../chunk-CZBWEEWD.mjs";
|
|
40
40
|
import "../../chunk-V575SGOW.mjs";
|
|
41
41
|
import "../../chunk-ZV4RPZTM.mjs";
|
|
42
42
|
import "../../chunk-JVCOY7ZL.mjs";
|
|
@@ -47,5 +47,5 @@ import "../../chunk-ZF2HUCN6.mjs";
|
|
|
47
47
|
import "../../chunk-BCLKTVUX.mjs";
|
|
48
48
|
import "../../chunk-KQT5G3HT.mjs";
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
PaywallDialog as default
|
|
51
51
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { P as Product,
|
|
3
|
+
import { P as Product, a as ProductItem } from '../../prodTypes-B3iWy6kz.mjs';
|
|
4
|
+
import { ProductDetails } from '../../client/types/clientPricingTableTypes.mjs';
|
|
4
5
|
import 'zod';
|
|
5
6
|
|
|
6
7
|
declare function PricingTable({ productDetails, }: {
|
|
7
|
-
productDetails?:
|
|
8
|
+
productDetails?: ProductDetails[];
|
|
8
9
|
}): react_jsx_runtime.JSX.Element;
|
|
9
10
|
declare const usePricingTableContext: (componentName: string) => {
|
|
10
11
|
isAnnualToggle: boolean;
|
|
@@ -29,9 +30,8 @@ interface PricingCardProps {
|
|
|
29
30
|
buttonProps?: React__default.ComponentProps<"button">;
|
|
30
31
|
}
|
|
31
32
|
declare const PricingCard: ({ productId, className, buttonProps, }: PricingCardProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare const PricingFeatureList: ({ items,
|
|
33
|
+
declare const PricingFeatureList: ({ items, everythingFrom, className, }: {
|
|
33
34
|
items: ProductItem[];
|
|
34
|
-
showIcon?: boolean;
|
|
35
35
|
everythingFrom?: string;
|
|
36
36
|
className?: string;
|
|
37
37
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { P as Product,
|
|
3
|
+
import { P as Product, a as ProductItem } from '../../prodTypes-B3iWy6kz.js';
|
|
4
|
+
import { ProductDetails } from '../../client/types/clientPricingTableTypes.js';
|
|
4
5
|
import 'zod';
|
|
5
6
|
|
|
6
7
|
declare function PricingTable({ productDetails, }: {
|
|
7
|
-
productDetails?:
|
|
8
|
+
productDetails?: ProductDetails[];
|
|
8
9
|
}): react_jsx_runtime.JSX.Element;
|
|
9
10
|
declare const usePricingTableContext: (componentName: string) => {
|
|
10
11
|
isAnnualToggle: boolean;
|
|
@@ -29,9 +30,8 @@ interface PricingCardProps {
|
|
|
29
30
|
buttonProps?: React__default.ComponentProps<"button">;
|
|
30
31
|
}
|
|
31
32
|
declare const PricingCard: ({ productId, className, buttonProps, }: PricingCardProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare const PricingFeatureList: ({ items,
|
|
33
|
+
declare const PricingFeatureList: ({ items, everythingFrom, className, }: {
|
|
33
34
|
items: ProductItem[];
|
|
34
|
-
showIcon?: boolean;
|
|
35
35
|
everythingFrom?: string;
|
|
36
36
|
className?: string;
|
|
37
37
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -226,6 +226,7 @@ var entityMethods = (instance) => {
|
|
|
226
226
|
params
|
|
227
227
|
}),
|
|
228
228
|
create: (customer_id, params) => staticWrapper(createEntity, instance, { customer_id, params }),
|
|
229
|
+
transfer: (customer_id, params) => staticWrapper(transferProduct, instance, { customer_id, params }),
|
|
229
230
|
delete: (customer_id, entity_id) => staticWrapper(deleteEntity, instance, { customer_id, entity_id })
|
|
230
231
|
};
|
|
231
232
|
};
|
|
@@ -261,6 +262,13 @@ var deleteEntity = async ({
|
|
|
261
262
|
}) => {
|
|
262
263
|
return instance.delete(`/customers/${customer_id}/entities/${entity_id}`);
|
|
263
264
|
};
|
|
265
|
+
var transferProduct = async ({
|
|
266
|
+
instance,
|
|
267
|
+
customer_id,
|
|
268
|
+
params
|
|
269
|
+
}) => {
|
|
270
|
+
return instance.post(`/customers/${customer_id}/transfer`, params);
|
|
271
|
+
};
|
|
264
272
|
|
|
265
273
|
// src/sdk/products/prodMethods.ts
|
|
266
274
|
var productMethods = (instance) => {
|
|
@@ -567,6 +575,10 @@ var CoreCusFeatureSchema = import_zod2.z.object({
|
|
|
567
575
|
next_reset_at: import_zod2.z.number().nullish(),
|
|
568
576
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
569
577
|
usage_limit: import_zod2.z.number().optional(),
|
|
578
|
+
rollovers: import_zod2.z.object({
|
|
579
|
+
balance: import_zod2.z.number(),
|
|
580
|
+
expires_at: import_zod2.z.number()
|
|
581
|
+
}).optional(),
|
|
570
582
|
breakdown: import_zod2.z.array(
|
|
571
583
|
import_zod2.z.object({
|
|
572
584
|
interval: import_zod2.z.nativeEnum(ProductItemInterval),
|
|
@@ -616,6 +628,11 @@ var EntityDataSchema = import_zod4.z.object({
|
|
|
616
628
|
name: import_zod4.z.string().optional(),
|
|
617
629
|
feature_id: import_zod4.z.string()
|
|
618
630
|
});
|
|
631
|
+
var TransferProductParamsSchema = import_zod4.z.object({
|
|
632
|
+
from_entity_id: import_zod4.z.string(),
|
|
633
|
+
to_entity_id: import_zod4.z.string(),
|
|
634
|
+
product_id: import_zod4.z.string()
|
|
635
|
+
});
|
|
619
636
|
|
|
620
637
|
// src/sdk/general/genTypes.ts
|
|
621
638
|
var import_zod5 = require("zod");
|
|
@@ -709,9 +726,12 @@ var CheckoutParamsSchema = import_zod7.z.object({
|
|
|
709
726
|
customer_id: import_zod7.z.string(),
|
|
710
727
|
product_id: import_zod7.z.string(),
|
|
711
728
|
entity_id: import_zod7.z.string().optional(),
|
|
729
|
+
options: import_zod7.z.array(AttachFeatureOptionsSchema).optional(),
|
|
712
730
|
success_url: import_zod7.z.string().optional(),
|
|
713
731
|
customer_data: CustomerDataSchema.optional(),
|
|
714
|
-
|
|
732
|
+
entity_data: import_zod7.z.any().optional(),
|
|
733
|
+
checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
|
|
734
|
+
reward: import_zod7.z.string().optional()
|
|
715
735
|
});
|
|
716
736
|
|
|
717
737
|
// src/libraries/react/errorUtils/logFetchError.ts
|
|
@@ -2639,7 +2659,7 @@ var Header = AccordionHeader;
|
|
|
2639
2659
|
var Trigger2 = AccordionTrigger;
|
|
2640
2660
|
var Content2 = AccordionContent;
|
|
2641
2661
|
|
|
2642
|
-
// src/libraries/react/components/
|
|
2662
|
+
// src/libraries/react/components/checkout-dialog/checkout-dialog-synced.tsx
|
|
2643
2663
|
var import_react14 = require("react");
|
|
2644
2664
|
|
|
2645
2665
|
// ../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
@@ -7075,9 +7095,9 @@ var DialogDescription2 = React33.forwardRef(({ className, ...props }, ref) => /*
|
|
|
7075
7095
|
));
|
|
7076
7096
|
DialogDescription2.displayName = Description.displayName;
|
|
7077
7097
|
|
|
7078
|
-
// src/libraries/react/components/
|
|
7098
|
+
// src/libraries/react/components/checkout-dialog/lib/checkout-content.tsx
|
|
7079
7099
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
7080
|
-
var
|
|
7100
|
+
var getCheckoutContent = (checkoutResult) => {
|
|
7081
7101
|
const { product, current_product, next_cycle } = checkoutResult;
|
|
7082
7102
|
const { is_one_off, is_free, has_trial, updateable } = product.properties;
|
|
7083
7103
|
const scenario = product.scenario;
|
|
@@ -9804,7 +9824,7 @@ var Input = React41.forwardRef(
|
|
|
9804
9824
|
);
|
|
9805
9825
|
Input.displayName = "Input";
|
|
9806
9826
|
|
|
9807
|
-
// src/libraries/react/components/
|
|
9827
|
+
// src/libraries/react/components/checkout-dialog/checkout-dialog-synced.tsx
|
|
9808
9828
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
9809
9829
|
var formatCurrency = ({
|
|
9810
9830
|
amount,
|
|
@@ -9815,7 +9835,7 @@ var formatCurrency = ({
|
|
|
9815
9835
|
currency
|
|
9816
9836
|
}).format(amount);
|
|
9817
9837
|
};
|
|
9818
|
-
function
|
|
9838
|
+
function CheckoutDialog(params) {
|
|
9819
9839
|
const { attach } = useCustomer();
|
|
9820
9840
|
const [checkoutResult, setCheckoutResult] = (0, import_react14.useState)(params?.checkoutResult);
|
|
9821
9841
|
(0, import_react14.useEffect)(() => {
|
|
@@ -9828,7 +9848,7 @@ function AttachDialog(params) {
|
|
|
9828
9848
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, {});
|
|
9829
9849
|
}
|
|
9830
9850
|
const { open, setOpen } = params;
|
|
9831
|
-
const { title, message } =
|
|
9851
|
+
const { title, message } = getCheckoutContent(checkoutResult);
|
|
9832
9852
|
const isFree = checkoutResult?.product.properties?.is_free;
|
|
9833
9853
|
const isPaid = isFree === false;
|
|
9834
9854
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Dialog2, { open, onOpenChange: setOpen, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DialogContent2, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm", children: [
|
|
@@ -10104,7 +10124,7 @@ var PrepaidItem = ({
|
|
|
10104
10124
|
] });
|
|
10105
10125
|
};
|
|
10106
10126
|
|
|
10107
|
-
// src/libraries/react/components/
|
|
10127
|
+
// src/libraries/react/components/paywall-dialog/paywall-dialog-synced.tsx
|
|
10108
10128
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
10109
10129
|
|
|
10110
10130
|
// src/libraries/react/components/pricing-table/pricing-table-synced.tsx
|
|
@@ -10431,7 +10451,7 @@ function PricingTable({
|
|
|
10431
10451
|
if (product.id) {
|
|
10432
10452
|
await checkout({
|
|
10433
10453
|
productId: product.id,
|
|
10434
|
-
dialog:
|
|
10454
|
+
dialog: CheckoutDialog
|
|
10435
10455
|
});
|
|
10436
10456
|
} else if (product.display?.button_url) {
|
|
10437
10457
|
window.open(product.display?.button_url, "_blank");
|
|
@@ -10527,7 +10547,7 @@ var PricingCard = ({
|
|
|
10527
10547
|
if (!product) {
|
|
10528
10548
|
throw new Error(`Product with id ${productId} not found`);
|
|
10529
10549
|
}
|
|
10530
|
-
const { name, display: productDisplay
|
|
10550
|
+
const { name, display: productDisplay } = product;
|
|
10531
10551
|
const { buttonText } = getPricingTableContent(product);
|
|
10532
10552
|
const isRecommended = productDisplay?.recommend_text ? true : false;
|
|
10533
10553
|
const mainPriceDisplay = product.properties?.is_free ? {
|
|
@@ -10568,7 +10588,6 @@ var PricingCard = ({
|
|
|
10568
10588
|
PricingFeatureList,
|
|
10569
10589
|
{
|
|
10570
10590
|
items: featureItems,
|
|
10571
|
-
showIcon: true,
|
|
10572
10591
|
everythingFrom: product.display?.everything_from
|
|
10573
10592
|
}
|
|
10574
10593
|
) })
|
|
@@ -10596,7 +10615,6 @@ var PricingCard = ({
|
|
|
10596
10615
|
};
|
|
10597
10616
|
var PricingFeatureList = ({
|
|
10598
10617
|
items,
|
|
10599
|
-
showIcon = true,
|
|
10600
10618
|
everythingFrom,
|
|
10601
10619
|
className
|
|
10602
10620
|
}) => {
|
|
@@ -9,40 +9,40 @@ import {
|
|
|
9
9
|
PricingTableContainer,
|
|
10
10
|
RecommendedBadge,
|
|
11
11
|
usePricingTableContext
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-77DMPCGK.mjs";
|
|
13
13
|
import "../../chunk-URQMBRFZ.mjs";
|
|
14
|
+
import "../../chunk-BLM4DAAR.mjs";
|
|
15
|
+
import "../../chunk-I5ZGIAIX.mjs";
|
|
16
|
+
import "../../chunk-GUM4HIGI.mjs";
|
|
17
|
+
import "../../chunk-OTZ65PCT.mjs";
|
|
18
|
+
import "../../chunk-YWQTQ72B.mjs";
|
|
19
|
+
import "../../chunk-KUS3X33V.mjs";
|
|
20
|
+
import "../../chunk-WVKYZYFT.mjs";
|
|
14
21
|
import "../../chunk-JGDTNJTR.mjs";
|
|
15
22
|
import "../../chunk-EV5RNY5U.mjs";
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-QJPZFEVW.mjs";
|
|
18
|
-
import "../../chunk-GUM4HIGI.mjs";
|
|
19
|
-
import "../../chunk-LCWL3TIT.mjs";
|
|
23
|
+
import "../../chunk-FJWZPMWU.mjs";
|
|
20
24
|
import "../../chunk-FEISQQNM.mjs";
|
|
25
|
+
import "../../chunk-QJPZFEVW.mjs";
|
|
21
26
|
import "../../chunk-I2A7PK2L.mjs";
|
|
22
|
-
import "../../chunk-YWQTQ72B.mjs";
|
|
23
|
-
import "../../chunk-KUS3X33V.mjs";
|
|
24
27
|
import "../../chunk-7TYAAD2T.mjs";
|
|
25
28
|
import "../../chunk-RPEGNKJH.mjs";
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
28
|
-
import "../../chunk-WVKYZYFT.mjs";
|
|
29
|
-
import "../../chunk-6R3O2T4H.mjs";
|
|
30
|
-
import "../../chunk-PEYCQWHI.mjs";
|
|
29
|
+
import "../../chunk-MRZA4JWN.mjs";
|
|
30
|
+
import "../../chunk-PFN52PHR.mjs";
|
|
31
31
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
32
|
-
import "../../chunk-
|
|
33
|
-
import "../../chunk-
|
|
34
|
-
import "../../chunk-
|
|
35
|
-
import "../../chunk-
|
|
36
|
-
import "../../chunk-
|
|
37
|
-
import "../../chunk-
|
|
32
|
+
import "../../chunk-IFZCH7DR.mjs";
|
|
33
|
+
import "../../chunk-QJJC6MB3.mjs";
|
|
34
|
+
import "../../chunk-7RICWVXV.mjs";
|
|
35
|
+
import "../../chunk-WZG3QTZI.mjs";
|
|
36
|
+
import "../../chunk-AXHU3KAH.mjs";
|
|
37
|
+
import "../../chunk-MPA65MFU.mjs";
|
|
38
38
|
import "../../chunk-RFSQBGLO.mjs";
|
|
39
|
-
import "../../chunk-
|
|
40
|
-
import "../../chunk-
|
|
41
|
-
import "../../chunk-
|
|
42
|
-
import "../../chunk-
|
|
43
|
-
import "../../chunk-
|
|
44
|
-
import "../../chunk-
|
|
45
|
-
import "../../chunk-
|
|
39
|
+
import "../../chunk-EXUNRZTP.mjs";
|
|
40
|
+
import "../../chunk-LFLX6NJU.mjs";
|
|
41
|
+
import "../../chunk-UAK4XMNC.mjs";
|
|
42
|
+
import "../../chunk-UCUAGLCJ.mjs";
|
|
43
|
+
import "../../chunk-H4J73SMR.mjs";
|
|
44
|
+
import "../../chunk-LMQMA7VL.mjs";
|
|
45
|
+
import "../../chunk-CZBWEEWD.mjs";
|
|
46
46
|
import "../../chunk-V575SGOW.mjs";
|
|
47
47
|
import "../../chunk-ZV4RPZTM.mjs";
|
|
48
48
|
import "../../chunk-JVCOY7ZL.mjs";
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
DialogPortal,
|
|
13
13
|
DialogTitle,
|
|
14
14
|
DialogTrigger
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-QJPZFEVW.mjs";
|
|
15
|
+
} from "../../chunk-FJWZPMWU.mjs";
|
|
17
16
|
import "../../chunk-FEISQQNM.mjs";
|
|
17
|
+
import "../../chunk-QJPZFEVW.mjs";
|
|
18
18
|
import "../../chunk-I2A7PK2L.mjs";
|
|
19
19
|
import "../../chunk-7TYAAD2T.mjs";
|
|
20
20
|
import "../../chunk-RPEGNKJH.mjs";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
PopoverAnchor,
|
|
6
6
|
PopoverContent,
|
|
7
7
|
PopoverTrigger
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-OTZ65PCT.mjs";
|
|
9
|
+
import "../../chunk-KUS3X33V.mjs";
|
|
9
10
|
import "../../chunk-FEISQQNM.mjs";
|
|
10
11
|
import "../../chunk-I2A7PK2L.mjs";
|
|
11
|
-
import "../../chunk-KUS3X33V.mjs";
|
|
12
12
|
import "../../chunk-7TYAAD2T.mjs";
|
|
13
13
|
import "../../chunk-RPEGNKJH.mjs";
|
|
14
14
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv,
|
|
1
|
+
import { A as AppEnv, a as ProductItem, d as ProductItemInterval } from './prodTypes-B3iWy6kz.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -19,6 +19,16 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
19
19
|
next_reset_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
overage_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
usage_limit: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
rollovers: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
balance: z.ZodNumber;
|
|
24
|
+
expires_at: z.ZodNumber;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
balance: number;
|
|
27
|
+
expires_at: number;
|
|
28
|
+
}, {
|
|
29
|
+
balance: number;
|
|
30
|
+
expires_at: number;
|
|
31
|
+
}>>;
|
|
22
32
|
breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
33
|
interval: z.ZodNativeEnum<typeof ProductItemInterval>;
|
|
24
34
|
balance: z.ZodOptional<z.ZodNumber>;
|
|
@@ -57,6 +67,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
57
67
|
included_usage?: number | undefined;
|
|
58
68
|
next_reset_at?: number | null | undefined;
|
|
59
69
|
overage_allowed?: boolean | undefined;
|
|
70
|
+
rollovers?: {
|
|
71
|
+
balance: number;
|
|
72
|
+
expires_at: number;
|
|
73
|
+
} | undefined;
|
|
60
74
|
breakdown?: {
|
|
61
75
|
interval: ProductItemInterval;
|
|
62
76
|
balance?: number | undefined;
|
|
@@ -77,6 +91,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
77
91
|
included_usage?: number | undefined;
|
|
78
92
|
next_reset_at?: number | null | undefined;
|
|
79
93
|
overage_allowed?: boolean | undefined;
|
|
94
|
+
rollovers?: {
|
|
95
|
+
balance: number;
|
|
96
|
+
expires_at: number;
|
|
97
|
+
} | undefined;
|
|
80
98
|
breakdown?: {
|
|
81
99
|
interval: ProductItemInterval;
|
|
82
100
|
balance?: number | undefined;
|
|
@@ -130,12 +148,12 @@ declare const CustomerDataSchema: z.ZodObject<{
|
|
|
130
148
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
149
|
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
150
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
name?: string | null | undefined;
|
|
134
151
|
email?: string | null | undefined;
|
|
152
|
+
name?: string | null | undefined;
|
|
135
153
|
fingerprint?: string | null | undefined;
|
|
136
154
|
}, {
|
|
137
|
-
name?: string | null | undefined;
|
|
138
155
|
email?: string | null | undefined;
|
|
156
|
+
name?: string | null | undefined;
|
|
139
157
|
fingerprint?: string | null | undefined;
|
|
140
158
|
}>;
|
|
141
159
|
type CustomerData = z.infer<typeof CustomerDataSchema>;
|
|
@@ -147,16 +165,16 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
147
165
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
148
166
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
149
167
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
name?: string | null | undefined;
|
|
151
168
|
id?: string | null | undefined;
|
|
152
169
|
email?: string | null | undefined;
|
|
170
|
+
name?: string | null | undefined;
|
|
153
171
|
fingerprint?: string | null | undefined;
|
|
154
172
|
metadata?: Record<string, any> | undefined;
|
|
155
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
156
174
|
}, {
|
|
157
|
-
name?: string | null | undefined;
|
|
158
175
|
id?: string | null | undefined;
|
|
159
176
|
email?: string | null | undefined;
|
|
177
|
+
name?: string | null | undefined;
|
|
160
178
|
fingerprint?: string | null | undefined;
|
|
161
179
|
metadata?: Record<string, any> | undefined;
|
|
162
180
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv,
|
|
1
|
+
import { A as AppEnv, a as ProductItem, d as ProductItemInterval } from './prodTypes-B3iWy6kz.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -19,6 +19,16 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
19
19
|
next_reset_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
overage_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
usage_limit: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
rollovers: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
balance: z.ZodNumber;
|
|
24
|
+
expires_at: z.ZodNumber;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
balance: number;
|
|
27
|
+
expires_at: number;
|
|
28
|
+
}, {
|
|
29
|
+
balance: number;
|
|
30
|
+
expires_at: number;
|
|
31
|
+
}>>;
|
|
22
32
|
breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
33
|
interval: z.ZodNativeEnum<typeof ProductItemInterval>;
|
|
24
34
|
balance: z.ZodOptional<z.ZodNumber>;
|
|
@@ -57,6 +67,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
57
67
|
included_usage?: number | undefined;
|
|
58
68
|
next_reset_at?: number | null | undefined;
|
|
59
69
|
overage_allowed?: boolean | undefined;
|
|
70
|
+
rollovers?: {
|
|
71
|
+
balance: number;
|
|
72
|
+
expires_at: number;
|
|
73
|
+
} | undefined;
|
|
60
74
|
breakdown?: {
|
|
61
75
|
interval: ProductItemInterval;
|
|
62
76
|
balance?: number | undefined;
|
|
@@ -77,6 +91,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
77
91
|
included_usage?: number | undefined;
|
|
78
92
|
next_reset_at?: number | null | undefined;
|
|
79
93
|
overage_allowed?: boolean | undefined;
|
|
94
|
+
rollovers?: {
|
|
95
|
+
balance: number;
|
|
96
|
+
expires_at: number;
|
|
97
|
+
} | undefined;
|
|
80
98
|
breakdown?: {
|
|
81
99
|
interval: ProductItemInterval;
|
|
82
100
|
balance?: number | undefined;
|
|
@@ -130,12 +148,12 @@ declare const CustomerDataSchema: z.ZodObject<{
|
|
|
130
148
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
149
|
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
150
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
name?: string | null | undefined;
|
|
134
151
|
email?: string | null | undefined;
|
|
152
|
+
name?: string | null | undefined;
|
|
135
153
|
fingerprint?: string | null | undefined;
|
|
136
154
|
}, {
|
|
137
|
-
name?: string | null | undefined;
|
|
138
155
|
email?: string | null | undefined;
|
|
156
|
+
name?: string | null | undefined;
|
|
139
157
|
fingerprint?: string | null | undefined;
|
|
140
158
|
}>;
|
|
141
159
|
type CustomerData = z.infer<typeof CustomerDataSchema>;
|
|
@@ -147,16 +165,16 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
147
165
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
148
166
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
149
167
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
name?: string | null | undefined;
|
|
151
168
|
id?: string | null | undefined;
|
|
152
169
|
email?: string | null | undefined;
|
|
170
|
+
name?: string | null | undefined;
|
|
153
171
|
fingerprint?: string | null | undefined;
|
|
154
172
|
metadata?: Record<string, any> | undefined;
|
|
155
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
156
174
|
}, {
|
|
157
|
-
name?: string | null | undefined;
|
|
158
175
|
id?: string | null | undefined;
|
|
159
176
|
email?: string | null | undefined;
|
|
177
|
+
name?: string | null | undefined;
|
|
160
178
|
fingerprint?: string | null | undefined;
|
|
161
179
|
metadata?: Record<string, any> | undefined;
|
|
162
180
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
2
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
2
|
+
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-Bbmd8V3j.mjs';
|
|
3
3
|
|
|
4
4
|
type Success<T> = {
|
|
5
5
|
data: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
2
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
2
|
+
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-d_DR9uFs.js';
|
|
3
3
|
|
|
4
4
|
type Success<T> = {
|
|
5
5
|
data: T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as CheckFeatureResult, c as CheckProductResult } from './prodTypes-B3iWy6kz.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const CancelResultSchema: z.ZodObject<{
|
|
@@ -22,15 +22,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
22
22
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
23
23
|
event_name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
customer_id: string;
|
|
26
|
-
code: string;
|
|
27
25
|
id: string;
|
|
26
|
+
code: string;
|
|
27
|
+
customer_id: string;
|
|
28
28
|
feature_id?: string | undefined;
|
|
29
29
|
event_name?: string | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
customer_id: string;
|
|
32
|
-
code: string;
|
|
33
31
|
id: string;
|
|
32
|
+
code: string;
|
|
33
|
+
customer_id: string;
|
|
34
34
|
feature_id?: string | undefined;
|
|
35
35
|
event_name?: string | undefined;
|
|
36
36
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as CheckFeatureResult, c as CheckProductResult } from './prodTypes-B3iWy6kz.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const CancelResultSchema: z.ZodObject<{
|
|
@@ -22,15 +22,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
22
22
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
23
23
|
event_name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
customer_id: string;
|
|
26
|
-
code: string;
|
|
27
25
|
id: string;
|
|
26
|
+
code: string;
|
|
27
|
+
customer_id: string;
|
|
28
28
|
feature_id?: string | undefined;
|
|
29
29
|
event_name?: string | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
customer_id: string;
|
|
32
|
-
code: string;
|
|
33
31
|
id: string;
|
|
32
|
+
code: string;
|
|
33
|
+
customer_id: string;
|
|
34
34
|
feature_id?: string | undefined;
|
|
35
35
|
event_name?: string | undefined;
|
|
36
36
|
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AutumnContextParams } from '../../AutumnContext.mjs';
|
|
2
2
|
import { CheckParams } from '../../client/types/clientGenTypes.mjs';
|
|
3
|
-
import { a as CheckResult } from '../../genTypes-
|
|
4
|
-
import { b as Customer } from '../../cusTypes-
|
|
5
|
-
import { E as Entity } from '../../entTypes-
|
|
3
|
+
import { a as CheckResult } from '../../genTypes-C2VFQqmX.mjs';
|
|
4
|
+
import { b as Customer } from '../../cusTypes-Bbmd8V3j.mjs';
|
|
5
|
+
import { E as Entity } from '../../entTypes-B2DgO6PV.mjs';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../../ReactAutumnClient-
|
|
7
|
+
import '../../ReactAutumnClient-DooIpMm0.mjs';
|
|
8
8
|
import '../../client/types/clientEntTypes.mjs';
|
|
9
9
|
import '../../error-DHbclCVh.mjs';
|
|
10
|
-
import '../../attachTypes-
|
|
11
|
-
import '../../prodTypes-
|
|
10
|
+
import '../../attachTypes-By0coJIV.mjs';
|
|
11
|
+
import '../../prodTypes-B3iWy6kz.mjs';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
interface AllowedParams {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AutumnContextParams } from '../../AutumnContext.js';
|
|
2
2
|
import { CheckParams } from '../../client/types/clientGenTypes.js';
|
|
3
|
-
import { a as CheckResult } from '../../genTypes-
|
|
4
|
-
import { b as Customer } from '../../cusTypes-
|
|
5
|
-
import { E as Entity } from '../../entTypes-
|
|
3
|
+
import { a as CheckResult } from '../../genTypes-BNXXZTFn.js';
|
|
4
|
+
import { b as Customer } from '../../cusTypes-d_DR9uFs.js';
|
|
5
|
+
import { E as Entity } from '../../entTypes-D6eoGCKH.js';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../../ReactAutumnClient-
|
|
7
|
+
import '../../ReactAutumnClient-5mFEwitR.js';
|
|
8
8
|
import '../../client/types/clientEntTypes.js';
|
|
9
9
|
import '../../error-DHbclCVh.js';
|
|
10
|
-
import '../../attachTypes-
|
|
11
|
-
import '../../prodTypes-
|
|
10
|
+
import '../../attachTypes-CSutLgVn.js';
|
|
11
|
+
import '../../prodTypes-B3iWy6kz.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
interface AllowedParams {
|