autumn-js 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libraries/backend/better-auth.d.mts +6 -46
- package/dist/libraries/backend/better-auth.d.ts +6 -46
- package/dist/libraries/backend/better-auth.js +43 -13
- package/dist/libraries/backend/better-auth.mjs +23 -21
- package/dist/libraries/backend/{chunk-NTPYEOME.mjs → chunk-33ET4N4V.mjs} +1 -1
- package/dist/libraries/backend/{chunk-2LSEWYPD.mjs → chunk-3OVRYTZX.mjs} +6 -6
- package/dist/libraries/backend/{chunk-TTNUEXHB.mjs → chunk-AREWK25J.mjs} +28 -0
- package/dist/libraries/backend/{chunk-WBYCMG34.mjs → chunk-GO7TVFSN.mjs} +1 -1
- package/dist/libraries/backend/{chunk-7Z2OYXN4.mjs → chunk-LL53FE2Z.mjs} +1 -1
- package/dist/libraries/backend/{chunk-Y63QWBQ6.mjs → chunk-TFYLV3GN.mjs} +1 -1
- package/dist/libraries/backend/{chunk-QVLMREDB.mjs → chunk-VBHBF3GP.mjs} +1 -1
- package/dist/libraries/backend/convex.js +28 -0
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +28 -0
- 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 +28 -0
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +28 -0
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +28 -0
- 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 +28 -0
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +28 -0
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +28 -0
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-BfrNJ62q.d.mts → referralTypes-B50JL4PY.d.mts} +69 -2
- package/dist/libraries/backend/{referralTypes-Djyi4iGt.d.ts → referralTypes-dW2HaxKV.d.ts} +69 -2
- package/dist/libraries/backend/remix_dep.js +28 -0
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +28 -0
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +28 -0
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +28 -0
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +28 -0
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +28 -0
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +28 -0
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +28 -0
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +28 -0
- 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 +28 -0
- 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 +35 -1
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +35 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-DM5ZRTfX.d.ts → ReactAutumnClient-BUq9E84_.d.ts} +8 -6
- package/dist/libraries/react/{ReactAutumnClient-BHjd9Tw5.d.mts → ReactAutumnClient-CpAGyyur.d.mts} +8 -6
- package/dist/libraries/react/ReactAutumnProvider.d.mts +4 -3
- package/dist/libraries/react/ReactAutumnProvider.d.ts +4 -3
- package/dist/libraries/react/ReactAutumnProvider.js +39 -3
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/{attachTypes-Bz1_JTvk.d.ts → attachTypes-CcB6xjSF.d.ts} +1 -1
- package/dist/{next/client/attachTypes-9VCTaz0m.d.mts → libraries/react/attachTypes-DqUN3q8s.d.mts} +5 -5
- package/dist/libraries/react/{chunk-KZVVSY52.mjs → chunk-56PEGK2Z.mjs} +2 -2
- package/dist/libraries/react/{chunk-ZT5TN67S.mjs → chunk-ECOBNPRU.mjs} +7 -5
- package/dist/libraries/react/{chunk-5K2M3CQZ.mjs → chunk-FEISQQNM.mjs} +1 -1
- package/dist/libraries/react/{chunk-BXMZYHE7.mjs → chunk-FJWZPMWU.mjs} +3 -3
- package/dist/libraries/react/{chunk-PGU4IXT7.mjs → chunk-FMRBH4CP.mjs} +1 -1
- package/dist/libraries/react/{chunk-KLSRAX2F.mjs → chunk-GWVZB5GK.mjs} +3 -3
- package/dist/libraries/react/{chunk-QV6Q2XXO.mjs → chunk-HIC6P67K.mjs} +14 -8
- package/dist/libraries/react/{chunk-33OTK7MB.mjs → chunk-HMZZIUCF.mjs} +1 -1
- package/dist/libraries/react/{chunk-WT5K3J2K.mjs → chunk-I2A7PK2L.mjs} +17 -17
- package/dist/libraries/react/{chunk-TJMYXANS.mjs → chunk-JFTZRU2U.mjs} +1 -1
- package/dist/libraries/react/{chunk-YCDNQZT5.mjs → chunk-JGDTNJTR.mjs} +2 -2
- package/dist/libraries/react/{chunk-7AJBRRXV.mjs → chunk-JNR7QAPG.mjs} +1 -1
- package/dist/libraries/react/{chunk-M7SUFZ42.mjs → chunk-KUS3X33V.mjs} +1 -1
- package/dist/libraries/react/{chunk-EXK6MS5M.mjs → chunk-KYZ3DYMI.mjs} +454 -456
- package/dist/libraries/react/{chunk-W5XUD2S6.mjs → chunk-MW2FSYG3.mjs} +1 -1
- package/dist/libraries/react/{chunk-2TQBFCWM.mjs → chunk-OTZ65PCT.mjs} +4 -4
- package/dist/libraries/react/{chunk-IM2FNHYV.mjs → chunk-QQKJE2ND.mjs} +2 -2
- package/dist/libraries/react/{chunk-GUDRYJ3O.mjs → chunk-SFGXTDMX.mjs} +2 -2
- package/dist/libraries/react/{chunk-QW2YS3JY.mjs → chunk-SZJOMZTC.mjs} +2 -2
- package/dist/libraries/react/{chunk-F5QUME7S.mjs → chunk-ULIUD6YP.mjs} +3 -3
- package/dist/libraries/react/{chunk-EK2RMWXP.mjs → chunk-WQXUZO6K.mjs} +28 -0
- package/dist/libraries/react/{chunk-NHDZWWMZ.mjs → chunk-YWQTQ72B.mjs} +2 -2
- package/dist/libraries/react/{chunk-SFDHYUHA.mjs → chunk-ZJBEC254.mjs} +1 -1
- 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 +35 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- 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/clientGenTypes.js +28 -0
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +35 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +29 -29
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +2 -2
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +1 -1
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +1 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +35 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +29 -29
- 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 +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +35 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +29 -29
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-DT-gAUL9.d.mts → cusTypes-CSmAk5io.d.mts} +1 -1
- package/dist/libraries/react/{cusTypes-yJ0fSxbq.d.ts → cusTypes-DHjT-9rV.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-BPdjCunj.d.ts → entTypes-CoF9enrR.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-D79XPrxo.d.mts → entTypes-S4hkh1RG.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-DJUAkD36.d.ts → genTypes-DsiuvyWS.d.ts} +1 -1
- package/dist/libraries/react/{genTypes-BV-Jc6Q1.d.mts → genTypes-fEH_nqSm.d.mts} +1 -1
- 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 +28 -0
- 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 +28 -0
- 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 +35 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +6 -6
- 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 +35 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
- 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 +35 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- package/dist/libraries/react/hooks/useEntity.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntity.js +35 -1
- package/dist/libraries/react/hooks/useEntity.mjs +10 -10
- package/dist/libraries/react/hooks/useEntityBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.js +35 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- 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 +35 -1
- package/dist/libraries/react/hooks/usePaywall.mjs +6 -6
- 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 +35 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- 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 +28 -0
- 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 +2 -1
- package/dist/libraries/react/index.d.ts +2 -1
- package/dist/libraries/react/index.js +39 -3
- package/dist/libraries/react/index.mjs +39 -3
- package/dist/libraries/react/{prodTypes-2tlu9Pyz.d.mts → prodTypes--VvnyGlN.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes-2tlu9Pyz.d.ts → prodTypes--VvnyGlN.d.ts} +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +21 -19
- package/dist/next/client/NextAutumnClient.d.ts +21 -19
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{attachTypes-DLxEa_Wj.d.ts → attachTypes-DKlQexnQ.d.ts} +5 -5
- package/dist/{libraries/react/attachTypes-C9FJTCo6.d.mts → next/client/attachTypes-EvdK0fPK.d.mts} +5 -5
- package/dist/next/client/{clientAttachTypes-umadXlvp.d.ts → clientAttachTypes-CGPjsdPk.d.ts} +27 -27
- package/dist/next/client/{clientAttachTypes-BzsPgggN.d.mts → clientAttachTypes-CZFjz8Rq.d.mts} +27 -27
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-CYojUJSJ.d.ts → cusTypes-DEURYNg4.d.ts} +5 -5
- package/dist/next/client/{cusTypes-CIGvysWL.d.mts → cusTypes-y5wEmx07.d.mts} +5 -5
- package/dist/next/client/{entTypes-BAD1NMvb.d.ts → entTypes-CRFgWhOr.d.ts} +1 -1
- package/dist/next/client/{entTypes-mOI7WnPZ.d.mts → entTypes-KRxjcMFv.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +5 -5
- package/dist/next/client/hooks/useAutumn.d.ts +5 -5
- 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 +7 -7
- package/dist/next/client/hooks/useEntity.d.ts +7 -7
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- 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 +84 -17
- package/dist/next/server/cusActions.d.ts +84 -17
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +70 -3
- package/dist/sdk/index.d.ts +70 -3
- package/dist/sdk/index.js +28 -0
- package/dist/sdk/index.mjs +28 -0
- package/dist/utils/encryptUtils.js +28 -0
- package/dist/utils/encryptUtils.mjs +28 -0
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-KWNH6C27.mjs → chunk-7TYAAD2T.mjs} +11 -11
- package/dist/next/client/{prodTypes-CxvB1YY3.d.mts → prodTypes-DzTLP57C.d.mts} +8 -8
- package/dist/next/client/{prodTypes-CxvB1YY3.d.ts → prodTypes-DzTLP57C.d.ts} +8 -8
- package/dist/next/server/{cusTypes-DgoOZMIt.d.ts → cusTypes-CwopPHB0.d.mts} +8 -8
- package/dist/next/server/{cusTypes-DgoOZMIt.d.mts → cusTypes-CwopPHB0.d.ts} +8 -8
package/dist/next/client/{clientAttachTypes-umadXlvp.d.ts → clientAttachTypes-CGPjsdPk.d.ts}
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-DzTLP57C.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
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
|
-
success: boolean;
|
|
12
11
|
product_id: string;
|
|
12
|
+
success: boolean;
|
|
13
13
|
}, {
|
|
14
14
|
customer_id: string;
|
|
15
|
-
success: boolean;
|
|
16
15
|
product_id: string;
|
|
16
|
+
success: boolean;
|
|
17
17
|
}>;
|
|
18
18
|
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
19
19
|
declare const TrackResultSchema: z.ZodObject<{
|
|
@@ -24,14 +24,14 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
code: string;
|
|
27
|
-
id: string;
|
|
28
27
|
customer_id: string;
|
|
28
|
+
id: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
code: string;
|
|
33
|
-
id: string;
|
|
34
33
|
customer_id: string;
|
|
34
|
+
id: 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;
|
|
94
92
|
requiredBalance?: number | undefined;
|
|
95
93
|
sendEvent?: boolean | undefined;
|
|
96
94
|
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;
|
|
103
101
|
requiredBalance?: number | undefined;
|
|
104
102
|
sendEvent?: boolean | undefined;
|
|
105
103
|
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
|
-
featureId: string;
|
|
149
148
|
quantity: number;
|
|
150
|
-
}, {
|
|
151
149
|
featureId: string;
|
|
150
|
+
}, {
|
|
152
151
|
quantity: number;
|
|
152
|
+
featureId: string;
|
|
153
153
|
}>, "many">>;
|
|
154
154
|
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
155
155
|
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -166,37 +166,37 @@ 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
|
-
featureId: string;
|
|
170
169
|
quantity: number;
|
|
170
|
+
featureId: string;
|
|
171
171
|
}[] | undefined;
|
|
172
172
|
metadata?: Record<string, string> | undefined;
|
|
173
|
+
reward?: string | undefined;
|
|
173
174
|
productId?: string | undefined;
|
|
174
175
|
entityId?: string | undefined;
|
|
176
|
+
dialog?: any;
|
|
177
|
+
entityData?: any;
|
|
175
178
|
productIds?: string[] | undefined;
|
|
176
179
|
freeTrial?: boolean | undefined;
|
|
177
180
|
successUrl?: string | undefined;
|
|
178
181
|
forceCheckout?: boolean | undefined;
|
|
179
|
-
dialog?: any;
|
|
180
|
-
entityData?: any;
|
|
181
182
|
openInNewTab?: boolean | undefined;
|
|
182
|
-
reward?: string | undefined;
|
|
183
183
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
184
184
|
}, {
|
|
185
185
|
options?: {
|
|
186
|
-
featureId: string;
|
|
187
186
|
quantity: number;
|
|
187
|
+
featureId: string;
|
|
188
188
|
}[] | undefined;
|
|
189
189
|
metadata?: Record<string, string> | undefined;
|
|
190
|
+
reward?: string | undefined;
|
|
190
191
|
productId?: string | undefined;
|
|
191
192
|
entityId?: string | undefined;
|
|
193
|
+
dialog?: any;
|
|
194
|
+
entityData?: any;
|
|
192
195
|
productIds?: string[] | undefined;
|
|
193
196
|
freeTrial?: boolean | undefined;
|
|
194
197
|
successUrl?: string | undefined;
|
|
195
198
|
forceCheckout?: boolean | undefined;
|
|
196
|
-
dialog?: any;
|
|
197
|
-
entityData?: any;
|
|
198
199
|
openInNewTab?: boolean | undefined;
|
|
199
|
-
reward?: string | undefined;
|
|
200
200
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
201
201
|
}>;
|
|
202
202
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
@@ -208,11 +208,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
208
208
|
featureId: z.ZodString;
|
|
209
209
|
quantity: z.ZodNumber;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
featureId: string;
|
|
212
211
|
quantity: number;
|
|
213
|
-
}, {
|
|
214
212
|
featureId: string;
|
|
213
|
+
}, {
|
|
215
214
|
quantity: number;
|
|
215
|
+
featureId: string;
|
|
216
216
|
}>, "many">>;
|
|
217
217
|
successUrl: z.ZodOptional<z.ZodString>;
|
|
218
218
|
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -222,28 +222,28 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
223
|
productId: string;
|
|
224
224
|
options?: {
|
|
225
|
-
featureId: string;
|
|
226
225
|
quantity: number;
|
|
226
|
+
featureId: string;
|
|
227
227
|
}[] | undefined;
|
|
228
|
+
reward?: string | undefined;
|
|
228
229
|
entityId?: string | undefined;
|
|
229
|
-
successUrl?: string | undefined;
|
|
230
230
|
dialog?: any;
|
|
231
231
|
entityData?: any;
|
|
232
|
+
successUrl?: string | undefined;
|
|
232
233
|
openInNewTab?: boolean | undefined;
|
|
233
|
-
reward?: string | undefined;
|
|
234
234
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
235
235
|
}, {
|
|
236
236
|
productId: string;
|
|
237
237
|
options?: {
|
|
238
|
-
featureId: string;
|
|
239
238
|
quantity: number;
|
|
239
|
+
featureId: string;
|
|
240
240
|
}[] | undefined;
|
|
241
|
+
reward?: string | undefined;
|
|
241
242
|
entityId?: string | undefined;
|
|
242
|
-
successUrl?: string | undefined;
|
|
243
243
|
dialog?: any;
|
|
244
244
|
entityData?: any;
|
|
245
|
+
successUrl?: string | undefined;
|
|
245
246
|
openInNewTab?: boolean | undefined;
|
|
246
|
-
reward?: string | undefined;
|
|
247
247
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
248
248
|
}>;
|
|
249
249
|
type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
|
package/dist/next/client/{clientAttachTypes-BzsPgggN.d.mts → clientAttachTypes-CZFjz8Rq.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-DzTLP57C.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
|
-
success: boolean;
|
|
12
11
|
product_id: string;
|
|
12
|
+
success: boolean;
|
|
13
13
|
}, {
|
|
14
14
|
customer_id: string;
|
|
15
|
-
success: boolean;
|
|
16
15
|
product_id: string;
|
|
16
|
+
success: boolean;
|
|
17
17
|
}>;
|
|
18
18
|
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
19
19
|
declare const TrackResultSchema: z.ZodObject<{
|
|
@@ -24,14 +24,14 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
code: string;
|
|
27
|
-
id: string;
|
|
28
27
|
customer_id: string;
|
|
28
|
+
id: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
code: string;
|
|
33
|
-
id: string;
|
|
34
33
|
customer_id: string;
|
|
34
|
+
id: 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;
|
|
94
92
|
requiredBalance?: number | undefined;
|
|
95
93
|
sendEvent?: boolean | undefined;
|
|
96
94
|
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;
|
|
103
101
|
requiredBalance?: number | undefined;
|
|
104
102
|
sendEvent?: boolean | undefined;
|
|
105
103
|
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
|
-
featureId: string;
|
|
149
148
|
quantity: number;
|
|
150
|
-
}, {
|
|
151
149
|
featureId: string;
|
|
150
|
+
}, {
|
|
152
151
|
quantity: number;
|
|
152
|
+
featureId: string;
|
|
153
153
|
}>, "many">>;
|
|
154
154
|
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
155
155
|
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -166,37 +166,37 @@ 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
|
-
featureId: string;
|
|
170
169
|
quantity: number;
|
|
170
|
+
featureId: string;
|
|
171
171
|
}[] | undefined;
|
|
172
172
|
metadata?: Record<string, string> | undefined;
|
|
173
|
+
reward?: string | undefined;
|
|
173
174
|
productId?: string | undefined;
|
|
174
175
|
entityId?: string | undefined;
|
|
176
|
+
dialog?: any;
|
|
177
|
+
entityData?: any;
|
|
175
178
|
productIds?: string[] | undefined;
|
|
176
179
|
freeTrial?: boolean | undefined;
|
|
177
180
|
successUrl?: string | undefined;
|
|
178
181
|
forceCheckout?: boolean | undefined;
|
|
179
|
-
dialog?: any;
|
|
180
|
-
entityData?: any;
|
|
181
182
|
openInNewTab?: boolean | undefined;
|
|
182
|
-
reward?: string | undefined;
|
|
183
183
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
184
184
|
}, {
|
|
185
185
|
options?: {
|
|
186
|
-
featureId: string;
|
|
187
186
|
quantity: number;
|
|
187
|
+
featureId: string;
|
|
188
188
|
}[] | undefined;
|
|
189
189
|
metadata?: Record<string, string> | undefined;
|
|
190
|
+
reward?: string | undefined;
|
|
190
191
|
productId?: string | undefined;
|
|
191
192
|
entityId?: string | undefined;
|
|
193
|
+
dialog?: any;
|
|
194
|
+
entityData?: any;
|
|
192
195
|
productIds?: string[] | undefined;
|
|
193
196
|
freeTrial?: boolean | undefined;
|
|
194
197
|
successUrl?: string | undefined;
|
|
195
198
|
forceCheckout?: boolean | undefined;
|
|
196
|
-
dialog?: any;
|
|
197
|
-
entityData?: any;
|
|
198
199
|
openInNewTab?: boolean | undefined;
|
|
199
|
-
reward?: string | undefined;
|
|
200
200
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
201
201
|
}>;
|
|
202
202
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
@@ -208,11 +208,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
208
208
|
featureId: z.ZodString;
|
|
209
209
|
quantity: z.ZodNumber;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
featureId: string;
|
|
212
211
|
quantity: number;
|
|
213
|
-
}, {
|
|
214
212
|
featureId: string;
|
|
213
|
+
}, {
|
|
215
214
|
quantity: number;
|
|
215
|
+
featureId: string;
|
|
216
216
|
}>, "many">>;
|
|
217
217
|
successUrl: z.ZodOptional<z.ZodString>;
|
|
218
218
|
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -222,28 +222,28 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
223
|
productId: string;
|
|
224
224
|
options?: {
|
|
225
|
-
featureId: string;
|
|
226
225
|
quantity: number;
|
|
226
|
+
featureId: string;
|
|
227
227
|
}[] | undefined;
|
|
228
|
+
reward?: string | undefined;
|
|
228
229
|
entityId?: string | undefined;
|
|
229
|
-
successUrl?: string | undefined;
|
|
230
230
|
dialog?: any;
|
|
231
231
|
entityData?: any;
|
|
232
|
+
successUrl?: string | undefined;
|
|
232
233
|
openInNewTab?: boolean | undefined;
|
|
233
|
-
reward?: string | undefined;
|
|
234
234
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
235
235
|
}, {
|
|
236
236
|
productId: string;
|
|
237
237
|
options?: {
|
|
238
|
-
featureId: string;
|
|
239
238
|
quantity: number;
|
|
239
|
+
featureId: string;
|
|
240
240
|
}[] | undefined;
|
|
241
|
+
reward?: string | undefined;
|
|
241
242
|
entityId?: string | undefined;
|
|
242
|
-
successUrl?: string | undefined;
|
|
243
243
|
dialog?: any;
|
|
244
244
|
entityData?: any;
|
|
245
|
+
successUrl?: string | undefined;
|
|
245
246
|
openInNewTab?: boolean | undefined;
|
|
246
|
-
reward?: string | undefined;
|
|
247
247
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
248
248
|
}>;
|
|
249
249
|
type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.mjs';
|
|
2
|
-
import './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import './cusTypes-y5wEmx07.mjs';
|
|
3
|
+
import './prodTypes-DzTLP57C.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-KRxjcMFv.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-DEURYNg4.js';
|
|
3
|
+
import './prodTypes-DzTLP57C.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-CRFgWhOr.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-DzTLP57C.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -59,14 +59,14 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
59
59
|
credit_amount: number;
|
|
60
60
|
}>, "many">>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
|
|
62
|
+
usage_limit?: number | undefined;
|
|
63
63
|
unlimited?: boolean | undefined;
|
|
64
64
|
interval?: ProductItemInterval | undefined;
|
|
65
|
+
balance?: number | null | undefined;
|
|
65
66
|
usage?: number | undefined;
|
|
66
67
|
included_usage?: number | undefined;
|
|
67
68
|
next_reset_at?: number | null | undefined;
|
|
68
69
|
overage_allowed?: boolean | undefined;
|
|
69
|
-
usage_limit?: number | undefined;
|
|
70
70
|
rollovers?: {
|
|
71
71
|
balance: number;
|
|
72
72
|
expires_at: number;
|
|
@@ -83,14 +83,14 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
83
83
|
credit_amount: number;
|
|
84
84
|
}[] | undefined;
|
|
85
85
|
}, {
|
|
86
|
-
|
|
86
|
+
usage_limit?: number | undefined;
|
|
87
87
|
unlimited?: boolean | undefined;
|
|
88
88
|
interval?: ProductItemInterval | undefined;
|
|
89
|
+
balance?: number | null | undefined;
|
|
89
90
|
usage?: number | undefined;
|
|
90
91
|
included_usage?: number | undefined;
|
|
91
92
|
next_reset_at?: number | null | undefined;
|
|
92
93
|
overage_allowed?: boolean | undefined;
|
|
93
|
-
usage_limit?: number | undefined;
|
|
94
94
|
rollovers?: {
|
|
95
95
|
balance: number;
|
|
96
96
|
expires_at: number;
|
|
@@ -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-DzTLP57C.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -59,14 +59,14 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
59
59
|
credit_amount: number;
|
|
60
60
|
}>, "many">>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
|
|
62
|
+
usage_limit?: number | undefined;
|
|
63
63
|
unlimited?: boolean | undefined;
|
|
64
64
|
interval?: ProductItemInterval | undefined;
|
|
65
|
+
balance?: number | null | undefined;
|
|
65
66
|
usage?: number | undefined;
|
|
66
67
|
included_usage?: number | undefined;
|
|
67
68
|
next_reset_at?: number | null | undefined;
|
|
68
69
|
overage_allowed?: boolean | undefined;
|
|
69
|
-
usage_limit?: number | undefined;
|
|
70
70
|
rollovers?: {
|
|
71
71
|
balance: number;
|
|
72
72
|
expires_at: number;
|
|
@@ -83,14 +83,14 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
83
83
|
credit_amount: number;
|
|
84
84
|
}[] | undefined;
|
|
85
85
|
}, {
|
|
86
|
-
|
|
86
|
+
usage_limit?: number | undefined;
|
|
87
87
|
unlimited?: boolean | undefined;
|
|
88
88
|
interval?: ProductItemInterval | undefined;
|
|
89
|
+
balance?: number | null | undefined;
|
|
89
90
|
usage?: number | undefined;
|
|
90
91
|
included_usage?: number | undefined;
|
|
91
92
|
next_reset_at?: number | null | undefined;
|
|
92
93
|
overage_allowed?: boolean | undefined;
|
|
93
|
-
usage_limit?: number | undefined;
|
|
94
94
|
rollovers?: {
|
|
95
95
|
balance: number;
|
|
96
96
|
expires_at: number;
|
|
@@ -1,15 +1,15 @@
|
|
|
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-CZFjz8Rq.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-EvdK0fPK.mjs';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-y5wEmx07.mjs';
|
|
5
|
+
import '../prodTypes-DzTLP57C.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
declare const useAutumn: () => {
|
|
9
9
|
attach: (params: AttachParams) => Promise<Result<{
|
|
10
|
+
customer_id: string;
|
|
10
11
|
code: string;
|
|
11
12
|
message: string;
|
|
12
|
-
customer_id: string;
|
|
13
13
|
product_ids: string[];
|
|
14
14
|
customer_data?: any;
|
|
15
15
|
checkout_url?: string | undefined;
|
|
@@ -1,15 +1,15 @@
|
|
|
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-CGPjsdPk.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-DKlQexnQ.js';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-DEURYNg4.js';
|
|
5
|
+
import '../prodTypes-DzTLP57C.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
declare const useAutumn: () => {
|
|
9
9
|
attach: (params: AttachParams) => Promise<Result<{
|
|
10
|
+
customer_id: string;
|
|
10
11
|
code: string;
|
|
11
12
|
message: string;
|
|
12
|
-
customer_id: string;
|
|
13
13
|
product_ids: string[];
|
|
14
14
|
customer_data?: any;
|
|
15
15
|
checkout_url?: string | undefined;
|
|
@@ -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-CZFjz8Rq.mjs';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-EvdK0fPK.mjs';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-y5wEmx07.mjs';
|
|
5
|
+
import { E as Entity } from '../entTypes-KRxjcMFv.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-DzTLP57C.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-CGPjsdPk.js';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-DKlQexnQ.js';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-DEURYNg4.js';
|
|
5
|
+
import { E as Entity } from '../entTypes-CRFgWhOr.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-DzTLP57C.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-CZFjz8Rq.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-KRxjcMFv.mjs';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import '../prodTypes-
|
|
5
|
+
import '../prodTypes-DzTLP57C.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-y5wEmx07.mjs';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -16,22 +16,22 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
16
16
|
error: null;
|
|
17
17
|
};
|
|
18
18
|
attach: (params: AttachParams) => Promise<Result<{
|
|
19
|
+
customer_id: string;
|
|
19
20
|
code: string;
|
|
20
21
|
message: string;
|
|
21
|
-
customer_id: string;
|
|
22
22
|
product_ids: string[];
|
|
23
23
|
customer_data?: any;
|
|
24
24
|
checkout_url?: string | undefined;
|
|
25
25
|
} | CheckResult, AutumnError>>;
|
|
26
26
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
27
27
|
customer_id: string;
|
|
28
|
-
success: boolean;
|
|
29
28
|
product_id: string;
|
|
29
|
+
success: boolean;
|
|
30
30
|
}>;
|
|
31
31
|
track: (params: TrackParams) => AutumnPromise<{
|
|
32
|
+
customer_id: string;
|
|
32
33
|
code: string;
|
|
33
34
|
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-CGPjsdPk.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-CRFgWhOr.js';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import '../prodTypes-
|
|
5
|
+
import '../prodTypes-DzTLP57C.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-DEURYNg4.js';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -16,22 +16,22 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
16
16
|
error: null;
|
|
17
17
|
};
|
|
18
18
|
attach: (params: AttachParams) => Promise<Result<{
|
|
19
|
+
customer_id: string;
|
|
19
20
|
code: string;
|
|
20
21
|
message: string;
|
|
21
|
-
customer_id: string;
|
|
22
22
|
product_ids: string[];
|
|
23
23
|
customer_data?: any;
|
|
24
24
|
checkout_url?: string | undefined;
|
|
25
25
|
} | CheckResult, AutumnError>>;
|
|
26
26
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
27
27
|
customer_id: string;
|
|
28
|
-
success: boolean;
|
|
29
28
|
product_id: string;
|
|
29
|
+
success: boolean;
|
|
30
30
|
}>;
|
|
31
31
|
track: (params: TrackParams) => AutumnPromise<{
|
|
32
|
+
customer_id: string;
|
|
32
33
|
code: string;
|
|
33
34
|
id: string;
|
|
34
|
-
customer_id: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CustomerData, a as Customer } from './cusTypes-
|
|
2
|
-
import { E as Entity } from './entTypes-
|
|
3
|
-
import './prodTypes-
|
|
1
|
+
import { C as CustomerData, a as Customer } from './cusTypes-y5wEmx07.mjs';
|
|
2
|
+
import { E as Entity } from './entTypes-KRxjcMFv.mjs';
|
|
3
|
+
import './prodTypes-DzTLP57C.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
interface ProductDetails {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CustomerData, a as Customer } from './cusTypes-
|
|
2
|
-
import { E as Entity } from './entTypes-
|
|
3
|
-
import './prodTypes-
|
|
1
|
+
import { C as CustomerData, a as Customer } from './cusTypes-DEURYNg4.js';
|
|
2
|
+
import { E as Entity } from './entTypes-CRFgWhOr.js';
|
|
3
|
+
import './prodTypes-DzTLP57C.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
interface ProductDetails {
|