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
package/dist/next/client/{clientAttachTypes-EGitteWV.d.mts → clientAttachTypes-whHUVrE3.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-
|
|
1
|
+
import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-UFM-PYm-.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
4
|
|
|
@@ -8,12 +8,12 @@ declare const CancelResultSchema: z.ZodObject<{
|
|
|
8
8
|
product_id: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
customer_id: string;
|
|
11
|
-
product_id: string;
|
|
12
11
|
success: boolean;
|
|
12
|
+
product_id: string;
|
|
13
13
|
}, {
|
|
14
14
|
customer_id: string;
|
|
15
|
-
product_id: string;
|
|
16
15
|
success: boolean;
|
|
16
|
+
product_id: string;
|
|
17
17
|
}>;
|
|
18
18
|
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
19
19
|
declare const TrackResultSchema: z.ZodObject<{
|
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
code: string;
|
|
27
|
-
customer_id: string;
|
|
28
26
|
id: string;
|
|
27
|
+
customer_id: string;
|
|
28
|
+
code: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
-
code: string;
|
|
33
|
-
customer_id: string;
|
|
34
32
|
id: string;
|
|
33
|
+
customer_id: string;
|
|
34
|
+
code: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -89,20 +89,20 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
89
89
|
productId?: string | undefined;
|
|
90
90
|
entityId?: string | undefined;
|
|
91
91
|
featureId?: string | undefined;
|
|
92
|
+
dialog?: any;
|
|
93
|
+
entityData?: any;
|
|
92
94
|
requiredBalance?: number | undefined;
|
|
93
95
|
sendEvent?: boolean | undefined;
|
|
94
96
|
withPreview?: boolean | undefined;
|
|
95
|
-
dialog?: any;
|
|
96
|
-
entityData?: any;
|
|
97
97
|
}, {
|
|
98
98
|
productId?: string | undefined;
|
|
99
99
|
entityId?: string | undefined;
|
|
100
100
|
featureId?: string | undefined;
|
|
101
|
+
dialog?: any;
|
|
102
|
+
entityData?: any;
|
|
101
103
|
requiredBalance?: number | undefined;
|
|
102
104
|
sendEvent?: boolean | undefined;
|
|
103
105
|
withPreview?: boolean | undefined;
|
|
104
|
-
dialog?: any;
|
|
105
|
-
entityData?: any;
|
|
106
106
|
}>;
|
|
107
107
|
type CheckParams = z.infer<typeof CheckParamsSchema>;
|
|
108
108
|
declare const TrackParamsSchema: z.ZodObject<{
|
|
@@ -145,11 +145,11 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
145
145
|
featureId: z.ZodString;
|
|
146
146
|
quantity: z.ZodNumber;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
quantity: number;
|
|
149
148
|
featureId: string;
|
|
150
|
-
}, {
|
|
151
149
|
quantity: number;
|
|
150
|
+
}, {
|
|
152
151
|
featureId: string;
|
|
152
|
+
quantity: number;
|
|
153
153
|
}>, "many">>;
|
|
154
154
|
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
155
155
|
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -166,76 +166,85 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
166
166
|
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
168
|
options?: {
|
|
169
|
-
quantity: number;
|
|
170
169
|
featureId: string;
|
|
170
|
+
quantity: number;
|
|
171
171
|
}[] | undefined;
|
|
172
172
|
metadata?: Record<string, string> | undefined;
|
|
173
|
-
reward?: string | undefined;
|
|
174
173
|
productId?: string | undefined;
|
|
175
174
|
entityId?: string | undefined;
|
|
176
|
-
dialog?: any;
|
|
177
|
-
entityData?: any;
|
|
178
175
|
productIds?: string[] | undefined;
|
|
179
176
|
freeTrial?: boolean | undefined;
|
|
180
177
|
successUrl?: string | undefined;
|
|
181
178
|
forceCheckout?: boolean | undefined;
|
|
179
|
+
dialog?: any;
|
|
180
|
+
entityData?: any;
|
|
182
181
|
openInNewTab?: boolean | undefined;
|
|
182
|
+
reward?: string | undefined;
|
|
183
183
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
184
184
|
}, {
|
|
185
185
|
options?: {
|
|
186
|
-
quantity: number;
|
|
187
186
|
featureId: string;
|
|
187
|
+
quantity: number;
|
|
188
188
|
}[] | undefined;
|
|
189
189
|
metadata?: Record<string, string> | undefined;
|
|
190
|
-
reward?: string | undefined;
|
|
191
190
|
productId?: string | undefined;
|
|
192
191
|
entityId?: string | undefined;
|
|
193
|
-
dialog?: any;
|
|
194
|
-
entityData?: any;
|
|
195
192
|
productIds?: string[] | undefined;
|
|
196
193
|
freeTrial?: boolean | undefined;
|
|
197
194
|
successUrl?: string | undefined;
|
|
198
195
|
forceCheckout?: boolean | undefined;
|
|
196
|
+
dialog?: any;
|
|
197
|
+
entityData?: any;
|
|
199
198
|
openInNewTab?: boolean | undefined;
|
|
199
|
+
reward?: string | undefined;
|
|
200
200
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
201
201
|
}>;
|
|
202
202
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
203
203
|
declare const CheckoutParamsSchema: z.ZodObject<{
|
|
204
204
|
productId: z.ZodString;
|
|
205
205
|
entityId: z.ZodOptional<z.ZodString>;
|
|
206
|
+
entityData: z.ZodOptional<z.ZodAny>;
|
|
206
207
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
207
208
|
featureId: z.ZodString;
|
|
208
209
|
quantity: z.ZodNumber;
|
|
209
210
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
quantity: number;
|
|
211
211
|
featureId: string;
|
|
212
|
-
}, {
|
|
213
212
|
quantity: number;
|
|
213
|
+
}, {
|
|
214
214
|
featureId: string;
|
|
215
|
+
quantity: number;
|
|
215
216
|
}>, "many">>;
|
|
216
217
|
successUrl: z.ZodOptional<z.ZodString>;
|
|
217
218
|
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
218
219
|
dialog: z.ZodOptional<z.ZodAny>;
|
|
220
|
+
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
221
|
+
reward: z.ZodOptional<z.ZodString>;
|
|
219
222
|
}, "strip", z.ZodTypeAny, {
|
|
220
223
|
productId: string;
|
|
221
224
|
options?: {
|
|
222
|
-
quantity: number;
|
|
223
225
|
featureId: string;
|
|
226
|
+
quantity: number;
|
|
224
227
|
}[] | undefined;
|
|
225
228
|
entityId?: string | undefined;
|
|
226
|
-
dialog?: any;
|
|
227
229
|
successUrl?: string | undefined;
|
|
230
|
+
dialog?: any;
|
|
231
|
+
entityData?: any;
|
|
228
232
|
openInNewTab?: boolean | undefined;
|
|
233
|
+
reward?: string | undefined;
|
|
234
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
229
235
|
}, {
|
|
230
236
|
productId: string;
|
|
231
237
|
options?: {
|
|
232
|
-
quantity: number;
|
|
233
238
|
featureId: string;
|
|
239
|
+
quantity: number;
|
|
234
240
|
}[] | undefined;
|
|
235
241
|
entityId?: string | undefined;
|
|
236
|
-
dialog?: any;
|
|
237
242
|
successUrl?: string | undefined;
|
|
243
|
+
dialog?: any;
|
|
244
|
+
entityData?: any;
|
|
238
245
|
openInNewTab?: boolean | undefined;
|
|
246
|
+
reward?: string | undefined;
|
|
247
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
239
248
|
}>;
|
|
240
249
|
type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
|
|
241
250
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.mjs';
|
|
2
|
-
import './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import './cusTypes-BuLw67IH.mjs';
|
|
3
|
+
import './prodTypes-UFM-PYm-.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-DTRFxh07.mjs';
|
|
6
6
|
|
|
7
7
|
declare const toClientErrorResponse: (error: any) => {
|
|
8
8
|
data: null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.js';
|
|
2
|
-
import './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import './cusTypes-CqAsUZEp.js';
|
|
3
|
+
import './prodTypes-UFM-PYm-.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-BLLymqnn.js';
|
|
6
6
|
|
|
7
7
|
declare const toClientErrorResponse: (error: any) => {
|
|
8
8
|
data: null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-
|
|
1
|
+
import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-UFM-PYm-.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>;
|
|
@@ -49,7 +59,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
49
59
|
credit_amount: number;
|
|
50
60
|
}>, "many">>;
|
|
51
61
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
usage_limit?: number | undefined;
|
|
53
62
|
unlimited?: boolean | undefined;
|
|
54
63
|
interval?: ProductItemInterval | undefined;
|
|
55
64
|
balance?: number | null | undefined;
|
|
@@ -57,6 +66,11 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
57
66
|
included_usage?: number | undefined;
|
|
58
67
|
next_reset_at?: number | null | undefined;
|
|
59
68
|
overage_allowed?: boolean | undefined;
|
|
69
|
+
usage_limit?: number | undefined;
|
|
70
|
+
rollovers?: {
|
|
71
|
+
balance: number;
|
|
72
|
+
expires_at: number;
|
|
73
|
+
} | undefined;
|
|
60
74
|
breakdown?: {
|
|
61
75
|
interval: ProductItemInterval;
|
|
62
76
|
balance?: number | undefined;
|
|
@@ -69,7 +83,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
69
83
|
credit_amount: number;
|
|
70
84
|
}[] | undefined;
|
|
71
85
|
}, {
|
|
72
|
-
usage_limit?: number | undefined;
|
|
73
86
|
unlimited?: boolean | undefined;
|
|
74
87
|
interval?: ProductItemInterval | undefined;
|
|
75
88
|
balance?: number | null | undefined;
|
|
@@ -77,6 +90,11 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
77
90
|
included_usage?: number | undefined;
|
|
78
91
|
next_reset_at?: number | null | undefined;
|
|
79
92
|
overage_allowed?: boolean | undefined;
|
|
93
|
+
usage_limit?: number | undefined;
|
|
94
|
+
rollovers?: {
|
|
95
|
+
balance: number;
|
|
96
|
+
expires_at: number;
|
|
97
|
+
} | undefined;
|
|
80
98
|
breakdown?: {
|
|
81
99
|
interval: ProductItemInterval;
|
|
82
100
|
balance?: number | undefined;
|
|
@@ -147,17 +165,17 @@ 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, {
|
|
168
|
+
id?: string | null | undefined;
|
|
150
169
|
name?: string | null | undefined;
|
|
151
170
|
email?: string | null | undefined;
|
|
152
171
|
fingerprint?: string | null | undefined;
|
|
153
|
-
id?: string | null | undefined;
|
|
154
172
|
metadata?: Record<string, any> | undefined;
|
|
155
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
156
174
|
}, {
|
|
175
|
+
id?: string | null | undefined;
|
|
157
176
|
name?: string | null | undefined;
|
|
158
177
|
email?: string | null | undefined;
|
|
159
178
|
fingerprint?: string | null | undefined;
|
|
160
|
-
id?: string | null | undefined;
|
|
161
179
|
metadata?: Record<string, any> | undefined;
|
|
162
180
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
163
181
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-
|
|
1
|
+
import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-UFM-PYm-.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>;
|
|
@@ -49,7 +59,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
49
59
|
credit_amount: number;
|
|
50
60
|
}>, "many">>;
|
|
51
61
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
usage_limit?: number | undefined;
|
|
53
62
|
unlimited?: boolean | undefined;
|
|
54
63
|
interval?: ProductItemInterval | undefined;
|
|
55
64
|
balance?: number | null | undefined;
|
|
@@ -57,6 +66,11 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
57
66
|
included_usage?: number | undefined;
|
|
58
67
|
next_reset_at?: number | null | undefined;
|
|
59
68
|
overage_allowed?: boolean | undefined;
|
|
69
|
+
usage_limit?: number | undefined;
|
|
70
|
+
rollovers?: {
|
|
71
|
+
balance: number;
|
|
72
|
+
expires_at: number;
|
|
73
|
+
} | undefined;
|
|
60
74
|
breakdown?: {
|
|
61
75
|
interval: ProductItemInterval;
|
|
62
76
|
balance?: number | undefined;
|
|
@@ -69,7 +83,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
69
83
|
credit_amount: number;
|
|
70
84
|
}[] | undefined;
|
|
71
85
|
}, {
|
|
72
|
-
usage_limit?: number | undefined;
|
|
73
86
|
unlimited?: boolean | undefined;
|
|
74
87
|
interval?: ProductItemInterval | undefined;
|
|
75
88
|
balance?: number | null | undefined;
|
|
@@ -77,6 +90,11 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
77
90
|
included_usage?: number | undefined;
|
|
78
91
|
next_reset_at?: number | null | undefined;
|
|
79
92
|
overage_allowed?: boolean | undefined;
|
|
93
|
+
usage_limit?: number | undefined;
|
|
94
|
+
rollovers?: {
|
|
95
|
+
balance: number;
|
|
96
|
+
expires_at: number;
|
|
97
|
+
} | undefined;
|
|
80
98
|
breakdown?: {
|
|
81
99
|
interval: ProductItemInterval;
|
|
82
100
|
balance?: number | undefined;
|
|
@@ -147,17 +165,17 @@ 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, {
|
|
168
|
+
id?: string | null | undefined;
|
|
150
169
|
name?: string | null | undefined;
|
|
151
170
|
email?: string | null | undefined;
|
|
152
171
|
fingerprint?: string | null | undefined;
|
|
153
|
-
id?: string | null | undefined;
|
|
154
172
|
metadata?: Record<string, any> | undefined;
|
|
155
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
156
174
|
}, {
|
|
175
|
+
id?: string | null | undefined;
|
|
157
176
|
name?: string | null | undefined;
|
|
158
177
|
email?: string | null | undefined;
|
|
159
178
|
fingerprint?: string | null | undefined;
|
|
160
|
-
id?: string | null | undefined;
|
|
161
179
|
metadata?: Record<string, any> | undefined;
|
|
162
180
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
163
181
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-
|
|
1
|
+
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-whHUVrE3.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import '../prodTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../attachTypes-BThbMcvF.mjs';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-BuLw67IH.mjs';
|
|
5
|
+
import '../prodTypes-UFM-PYm-.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
declare const useAutumn: () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-
|
|
1
|
+
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-Df5FVGkw.js';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import '../prodTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../attachTypes-BCt7D8ym.js';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-CqAsUZEp.js';
|
|
5
|
+
import '../prodTypes-UFM-PYm-.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
declare const useAutumn: () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-whHUVrE3.mjs';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BThbMcvF.mjs';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-BuLw67IH.mjs';
|
|
5
|
+
import { E as Entity } from '../entTypes-DTRFxh07.mjs';
|
|
6
6
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { SWRConfiguration } from 'swr';
|
|
9
|
-
import '../prodTypes-
|
|
9
|
+
import '../prodTypes-UFM-PYm-.mjs';
|
|
10
10
|
|
|
11
11
|
declare const CreateReferralCodeParamsSchema: z.ZodObject<{
|
|
12
12
|
programId: z.ZodString;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-Df5FVGkw.js';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BCt7D8ym.js';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-CqAsUZEp.js';
|
|
5
|
+
import { E as Entity } from '../entTypes-BLLymqnn.js';
|
|
6
6
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { SWRConfiguration } from 'swr';
|
|
9
|
-
import '../prodTypes-
|
|
9
|
+
import '../prodTypes-UFM-PYm-.js';
|
|
10
10
|
|
|
11
11
|
declare const CreateReferralCodeParamsSchema: z.ZodObject<{
|
|
12
12
|
programId: z.ZodString;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-
|
|
1
|
+
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-whHUVrE3.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
3
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-DTRFxh07.mjs';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import '../prodTypes-
|
|
5
|
+
import '../prodTypes-UFM-PYm-.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-BuLw67IH.mjs';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -25,13 +25,13 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
25
25
|
} | CheckResult, AutumnError>>;
|
|
26
26
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
27
27
|
customer_id: string;
|
|
28
|
-
product_id: string;
|
|
29
28
|
success: boolean;
|
|
29
|
+
product_id: string;
|
|
30
30
|
}>;
|
|
31
31
|
track: (params: TrackParams) => AutumnPromise<{
|
|
32
32
|
code: string;
|
|
33
|
-
customer_id: string;
|
|
34
33
|
id: string;
|
|
34
|
+
customer_id: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-
|
|
1
|
+
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-Df5FVGkw.js';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
3
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-BLLymqnn.js';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import '../prodTypes-
|
|
5
|
+
import '../prodTypes-UFM-PYm-.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-CqAsUZEp.js';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -25,13 +25,13 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
25
25
|
} | CheckResult, AutumnError>>;
|
|
26
26
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
27
27
|
customer_id: string;
|
|
28
|
-
product_id: string;
|
|
29
28
|
success: boolean;
|
|
29
|
+
product_id: string;
|
|
30
30
|
}>;
|
|
31
31
|
track: (params: TrackParams) => AutumnPromise<{
|
|
32
32
|
code: string;
|
|
33
|
-
customer_id: string;
|
|
34
33
|
id: string;
|
|
34
|
+
customer_id: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -37,6 +37,16 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
37
37
|
next_reset_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
38
|
overage_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
39
39
|
usage_limit: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
rollovers: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
balance: z.ZodNumber;
|
|
42
|
+
expires_at: z.ZodNumber;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
balance: number;
|
|
45
|
+
expires_at: number;
|
|
46
|
+
}, {
|
|
47
|
+
balance: number;
|
|
48
|
+
expires_at: number;
|
|
49
|
+
}>>;
|
|
40
50
|
breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
51
|
interval: z.ZodNativeEnum<typeof ProductItemInterval>;
|
|
42
52
|
balance: z.ZodOptional<z.ZodNumber>;
|
|
@@ -67,11 +77,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
67
77
|
credit_amount: number;
|
|
68
78
|
}>, "many">>;
|
|
69
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
customer_id: string;
|
|
70
81
|
allowed: boolean;
|
|
71
82
|
feature_id: string;
|
|
72
|
-
customer_id: string;
|
|
73
83
|
required_balance: number;
|
|
74
|
-
usage_limit?: number | undefined;
|
|
75
84
|
entity_id?: string | undefined;
|
|
76
85
|
unlimited?: boolean | undefined;
|
|
77
86
|
interval?: ProductItemInterval | undefined;
|
|
@@ -80,6 +89,11 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
80
89
|
included_usage?: number | undefined;
|
|
81
90
|
next_reset_at?: number | null | undefined;
|
|
82
91
|
overage_allowed?: boolean | undefined;
|
|
92
|
+
usage_limit?: number | undefined;
|
|
93
|
+
rollovers?: {
|
|
94
|
+
balance: number;
|
|
95
|
+
expires_at: number;
|
|
96
|
+
} | undefined;
|
|
83
97
|
breakdown?: {
|
|
84
98
|
interval: ProductItemInterval;
|
|
85
99
|
balance?: number | undefined;
|
|
@@ -92,11 +106,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
92
106
|
credit_amount: number;
|
|
93
107
|
}[] | undefined;
|
|
94
108
|
}, {
|
|
109
|
+
customer_id: string;
|
|
95
110
|
allowed: boolean;
|
|
96
111
|
feature_id: string;
|
|
97
|
-
customer_id: string;
|
|
98
112
|
required_balance: number;
|
|
99
|
-
usage_limit?: number | undefined;
|
|
100
113
|
entity_id?: string | undefined;
|
|
101
114
|
unlimited?: boolean | undefined;
|
|
102
115
|
interval?: ProductItemInterval | undefined;
|
|
@@ -105,6 +118,11 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
105
118
|
included_usage?: number | undefined;
|
|
106
119
|
next_reset_at?: number | null | undefined;
|
|
107
120
|
overage_allowed?: boolean | undefined;
|
|
121
|
+
usage_limit?: number | undefined;
|
|
122
|
+
rollovers?: {
|
|
123
|
+
balance: number;
|
|
124
|
+
expires_at: number;
|
|
125
|
+
} | undefined;
|
|
108
126
|
breakdown?: {
|
|
109
127
|
interval: ProductItemInterval;
|
|
110
128
|
balance?: number | undefined;
|
|
@@ -37,6 +37,16 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
37
37
|
next_reset_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
38
|
overage_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
39
39
|
usage_limit: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
rollovers: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
balance: z.ZodNumber;
|
|
42
|
+
expires_at: z.ZodNumber;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
balance: number;
|
|
45
|
+
expires_at: number;
|
|
46
|
+
}, {
|
|
47
|
+
balance: number;
|
|
48
|
+
expires_at: number;
|
|
49
|
+
}>>;
|
|
40
50
|
breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
51
|
interval: z.ZodNativeEnum<typeof ProductItemInterval>;
|
|
42
52
|
balance: z.ZodOptional<z.ZodNumber>;
|
|
@@ -67,11 +77,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
67
77
|
credit_amount: number;
|
|
68
78
|
}>, "many">>;
|
|
69
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
customer_id: string;
|
|
70
81
|
allowed: boolean;
|
|
71
82
|
feature_id: string;
|
|
72
|
-
customer_id: string;
|
|
73
83
|
required_balance: number;
|
|
74
|
-
usage_limit?: number | undefined;
|
|
75
84
|
entity_id?: string | undefined;
|
|
76
85
|
unlimited?: boolean | undefined;
|
|
77
86
|
interval?: ProductItemInterval | undefined;
|
|
@@ -80,6 +89,11 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
80
89
|
included_usage?: number | undefined;
|
|
81
90
|
next_reset_at?: number | null | undefined;
|
|
82
91
|
overage_allowed?: boolean | undefined;
|
|
92
|
+
usage_limit?: number | undefined;
|
|
93
|
+
rollovers?: {
|
|
94
|
+
balance: number;
|
|
95
|
+
expires_at: number;
|
|
96
|
+
} | undefined;
|
|
83
97
|
breakdown?: {
|
|
84
98
|
interval: ProductItemInterval;
|
|
85
99
|
balance?: number | undefined;
|
|
@@ -92,11 +106,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
92
106
|
credit_amount: number;
|
|
93
107
|
}[] | undefined;
|
|
94
108
|
}, {
|
|
109
|
+
customer_id: string;
|
|
95
110
|
allowed: boolean;
|
|
96
111
|
feature_id: string;
|
|
97
|
-
customer_id: string;
|
|
98
112
|
required_balance: number;
|
|
99
|
-
usage_limit?: number | undefined;
|
|
100
113
|
entity_id?: string | undefined;
|
|
101
114
|
unlimited?: boolean | undefined;
|
|
102
115
|
interval?: ProductItemInterval | undefined;
|
|
@@ -105,6 +118,11 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
105
118
|
included_usage?: number | undefined;
|
|
106
119
|
next_reset_at?: number | null | undefined;
|
|
107
120
|
overage_allowed?: boolean | undefined;
|
|
121
|
+
usage_limit?: number | undefined;
|
|
122
|
+
rollovers?: {
|
|
123
|
+
balance: number;
|
|
124
|
+
expires_at: number;
|
|
125
|
+
} | undefined;
|
|
108
126
|
breakdown?: {
|
|
109
127
|
interval: ProductItemInterval;
|
|
110
128
|
balance?: number | undefined;
|