autumn-js 0.0.93 → 0.0.95
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 +175 -210
- package/dist/libraries/backend/better-auth.d.ts +175 -210
- package/dist/libraries/backend/better-auth.js +150 -162
- package/dist/libraries/backend/better-auth.mjs +64 -134
- package/dist/libraries/backend/{chunk-VFTHGJ5N.mjs → chunk-33NT3WE5.mjs} +1 -1
- package/dist/libraries/backend/{chunk-V6M7KRGN.mjs → chunk-6VS7TU7O.mjs} +109 -35
- package/dist/libraries/backend/{chunk-JPNRDMMC.mjs → chunk-AKV5N4WO.mjs} +1 -1
- package/dist/libraries/backend/{chunk-7QSJB2C5.mjs → chunk-CEZHD5H6.mjs} +1 -1
- package/dist/libraries/backend/{chunk-NTFR7Z2G.mjs → chunk-DUDRVC7W.mjs} +6 -6
- package/dist/libraries/backend/{chunk-FCEB2GBS.mjs → chunk-J3L3OBSS.mjs} +1 -1
- package/dist/libraries/backend/{chunk-U7335VZS.mjs → chunk-RA4AC56B.mjs} +1 -1
- package/dist/libraries/backend/convex.js +101 -35
- package/dist/libraries/backend/convex.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 +101 -35
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +101 -35
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +101 -35
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/next.js +103 -37
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +101 -35
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-ecz_wESO.d.mts → referralTypes-Dg9pRvI7.d.mts} +196 -95
- package/dist/libraries/backend/{referralTypes-BAYl5TR1.d.ts → referralTypes-HAk2vTns.d.ts} +196 -95
- package/dist/libraries/backend/remix_dep.js +101 -35
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +101 -35
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +101 -35
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +101 -35
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +101 -35
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +101 -35
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +101 -35
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +101 -35
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +101 -35
- 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 +101 -35
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.js +129 -52
- package/dist/libraries/react/AutumnContext.mjs +8 -8
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +135 -62
- package/dist/libraries/react/BaseAutumnProvider.mjs +13 -13
- package/dist/libraries/react/{ReactAutumnClient-Z3DcfZ0x.d.mts → ReactAutumnClient-BuSRDMJN.d.mts} +18 -8
- package/dist/libraries/react/{ReactAutumnClient-GEzKNujl.d.ts → ReactAutumnClient-k0qbHX8f.d.ts} +18 -8
- package/dist/libraries/react/ReactAutumnProvider.d.mts +3 -3
- package/dist/libraries/react/ReactAutumnProvider.d.ts +3 -3
- package/dist/libraries/react/ReactAutumnProvider.js +138 -64
- package/dist/libraries/react/ReactAutumnProvider.mjs +14 -14
- package/dist/libraries/react/{chunk-TBKIB6DH.mjs → chunk-5G3DYUNT.mjs} +1 -1
- package/dist/libraries/react/{chunk-QTEFT7SA.mjs → chunk-6CJ3FB74.mjs} +2 -2
- package/dist/libraries/react/{chunk-QAHVMSK4.mjs → chunk-ALFXUHDD.mjs} +123 -49
- package/dist/libraries/react/{chunk-TD6CFKDQ.mjs → chunk-AOJCMXVS.mjs} +6 -5
- package/dist/libraries/react/{chunk-SJAAUTL2.mjs → chunk-APDR7D6A.mjs} +2 -2
- package/dist/libraries/react/{chunk-GK75OJJJ.mjs → chunk-CAMHARUX.mjs} +2 -2
- package/dist/libraries/react/{chunk-CZAXPWHV.mjs → chunk-CHXNYNH3.mjs} +7 -7
- package/dist/libraries/react/{chunk-UHUADKEF.mjs → chunk-DVMVIAZE.mjs} +1 -1
- package/dist/libraries/react/{chunk-ITN754AD.mjs → chunk-G3FBFZLU.mjs} +4 -1
- package/dist/libraries/react/{chunk-3WP2MI55.mjs → chunk-LVDONEVF.mjs} +2 -2
- package/dist/libraries/react/{chunk-6JOSRG5Z.mjs → chunk-MZDRIPNS.mjs} +2 -2
- package/dist/libraries/react/{chunk-CHQRTGXF.mjs → chunk-R4BYOLST.mjs} +2 -2
- package/dist/libraries/react/{chunk-CRIKYVUD.mjs → chunk-T5PIJ4HG.mjs} +8 -12
- package/dist/libraries/react/{chunk-YUV2Y2RW.mjs → chunk-V575SGOW.mjs} +1 -1
- package/dist/libraries/react/{chunk-NZ5PEXT2.mjs → chunk-VTGR7VVK.mjs} +1 -1
- package/dist/libraries/react/{chunk-JNM4BLTM.mjs → chunk-VUBJ6JM3.mjs} +6 -6
- package/dist/libraries/react/{chunk-TGX6UKKS.mjs → chunk-WFFVOEUG.mjs} +1 -1
- package/dist/libraries/react/{chunk-V5PKOA5A.mjs → chunk-ZF2HUCN6.mjs} +3 -3
- package/dist/libraries/react/{chunk-3EYF7OI5.mjs → chunk-ZV4RPZTM.mjs} +2 -2
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.js +126 -52
- package/dist/libraries/react/client/ReactAutumnClient.mjs +7 -7
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCompMethods.js +1 -1
- package/dist/libraries/react/client/clientCompMethods.mjs +1 -1
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.js +1 -1
- package/dist/libraries/react/client/clientCusMethods.mjs +1 -1
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.js +3 -3
- package/dist/libraries/react/client/clientEntityMethods.mjs +1 -1
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.js +6 -6
- package/dist/libraries/react/client/clientGenMethods.mjs +1 -1
- package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientProdMethods.js +1 -1
- package/dist/libraries/react/client/clientProdMethods.mjs +1 -1
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.js +2 -2
- package/dist/libraries/react/client/clientReferralMethods.mjs +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +135 -62
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +21 -21
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-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 +135 -62
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +21 -21
- 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/{cusTypes-DUC0TrK5.d.ts → cusTypes-Vw94kPR9.d.mts} +1 -1
- package/dist/libraries/react/{cusTypes-DUC0TrK5.d.mts → cusTypes-Vw94kPR9.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-Ddl0CGp9.d.ts → entTypes-B7nuhHD7.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-Mq0F4CAa.d.mts → entTypes-Ho-VocKG.d.mts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.js +129 -52
- package/dist/libraries/react/hooks/useAutumn.mjs +11 -11
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.js +129 -52
- package/dist/libraries/react/hooks/useAutumnBase.mjs +10 -10
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.js +135 -62
- package/dist/libraries/react/hooks/useCustomer.mjs +12 -12
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -5
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -5
- package/dist/libraries/react/hooks/useCustomerBase.js +135 -62
- package/dist/libraries/react/hooks/useCustomerBase.mjs +11 -11
- package/dist/libraries/react/hooks/useEntity.d.mts +15 -5
- package/dist/libraries/react/hooks/useEntity.d.ts +15 -5
- package/dist/libraries/react/hooks/useEntity.js +129 -52
- package/dist/libraries/react/hooks/useEntity.mjs +12 -12
- package/dist/libraries/react/hooks/useEntityBase.d.mts +16 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +16 -6
- package/dist/libraries/react/hooks/useEntityBase.js +129 -52
- package/dist/libraries/react/hooks/useEntityBase.mjs +11 -11
- 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 +129 -52
- package/dist/libraries/react/hooks/usePricingTable.mjs +10 -10
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.js +129 -52
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +9 -9
- package/dist/libraries/react/hooks/useProductsBase.js +129 -52
- package/dist/libraries/react/hooks/useProductsBase.mjs +8 -8
- package/dist/libraries/react/index.d.mts +57 -26
- package/dist/libraries/react/index.d.ts +57 -26
- package/dist/libraries/react/index.js +138 -64
- package/dist/libraries/react/index.mjs +138 -64
- package/dist/libraries/react/{response-B8Tq3x66.d.ts → response-CQf3mDB8.d.ts} +32 -10
- package/dist/libraries/react/{response-CMrRLv9c.d.mts → response-CWluLfIs.d.mts} +32 -10
- package/dist/next/{AutumnProvider-DtLqoQp6.d.mts → AutumnProvider-CCYZC_bN.d.mts} +1 -1
- package/dist/next/{AutumnProvider-DtLqoQp6.d.ts → AutumnProvider-CCYZC_bN.d.ts} +1 -1
- package/dist/next/AutumnProvider.d.mts +1 -1
- package/dist/next/AutumnProvider.d.ts +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +16 -6
- package/dist/next/client/NextAutumnClient.d.ts +16 -6
- package/dist/next/client/{clientGenTypes-DWrGEdrD.d.mts → clientGenTypes-9ngy1q97.d.mts} +31 -9
- package/dist/next/client/{clientGenTypes-D_Ea92Du.d.ts → clientGenTypes-CxB4go6q.d.ts} +31 -9
- package/dist/next/client/hooks/useAutumn.d.mts +1 -1
- package/dist/next/client/hooks/useAutumn.d.ts +1 -1
- package/dist/next/client/hooks/useCustomer.d.mts +1 -2
- package/dist/next/client/hooks/useCustomer.d.ts +1 -2
- package/dist/next/client/hooks/useEntity.d.mts +13 -3
- package/dist/next/client/hooks/useEntity.d.ts +13 -3
- package/dist/next/index.d.mts +80 -39
- package/dist/next/index.d.ts +80 -39
- 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 +175 -79
- package/dist/next/server/cusActions.d.ts +175 -79
- package/dist/next/server/{cusTypes-C86FOl99.d.mts → cusTypes-Cy72qmFx.d.mts} +11 -6
- package/dist/next/server/{cusTypes-C86FOl99.d.ts → cusTypes-Cy72qmFx.d.ts} +11 -6
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +234 -81
- package/dist/sdk/index.d.ts +234 -81
- package/dist/sdk/index.js +74 -4
- package/dist/sdk/index.mjs +65 -5
- package/dist/utils/encryptUtils.js +101 -35
- package/dist/utils/encryptUtils.mjs +101 -35
- package/package.json +1 -1
|
@@ -3,11 +3,6 @@ import { z } from 'zod';
|
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
|
|
6
|
-
interface CancelResult {
|
|
7
|
-
success: boolean;
|
|
8
|
-
customer_id: string;
|
|
9
|
-
product_id: string;
|
|
10
|
-
}
|
|
11
6
|
declare const AttachResultSchema: z.ZodObject<{
|
|
12
7
|
checkout_url: z.ZodOptional<z.ZodString>;
|
|
13
8
|
customer_id: z.ZodString;
|
|
@@ -31,13 +26,40 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
31
26
|
customer_data?: any;
|
|
32
27
|
}>;
|
|
33
28
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
34
|
-
|
|
29
|
+
declare const CancelResultSchema: z.ZodObject<{
|
|
30
|
+
success: z.ZodBoolean;
|
|
31
|
+
customer_id: z.ZodString;
|
|
32
|
+
product_id: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
customer_id: string;
|
|
35
|
+
success: boolean;
|
|
36
|
+
product_id: string;
|
|
37
|
+
}, {
|
|
38
|
+
customer_id: string;
|
|
39
|
+
success: boolean;
|
|
40
|
+
product_id: string;
|
|
41
|
+
}>;
|
|
42
|
+
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
43
|
+
declare const TrackResultSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
code: z.ZodString;
|
|
46
|
+
customer_id: z.ZodString;
|
|
47
|
+
feature_id: z.ZodOptional<z.ZodString>;
|
|
48
|
+
event_name: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
50
|
id: string;
|
|
51
|
+
customer_id: string;
|
|
36
52
|
code: string;
|
|
53
|
+
feature_id?: string | undefined;
|
|
54
|
+
event_name?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
id: string;
|
|
37
57
|
customer_id: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
58
|
+
code: string;
|
|
59
|
+
feature_id?: string | undefined;
|
|
60
|
+
event_name?: string | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
type TrackResult = z.infer<typeof TrackResultSchema>;
|
|
41
63
|
type CheckResult = CheckFeatureResult & CheckProductResult;
|
|
42
64
|
interface SetupPaymentResult {
|
|
43
65
|
customer_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-
|
|
1
|
+
import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-9ngy1q97.mjs';
|
|
2
2
|
import { B as BillingPortalResult } from '../cusTypes-D8lhXGaX.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../error-DHbclCVh.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-
|
|
1
|
+
import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-CxB4go6q.js';
|
|
2
2
|
import { B as BillingPortalResult } from '../cusTypes-D8lhXGaX.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../error-DHbclCVh.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-9ngy1q97.mjs';
|
|
3
3
|
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-D8lhXGaX.mjs';
|
|
4
4
|
import { E as Entity } from '../entTypes-B-2_9hzP.mjs';
|
|
5
5
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
|
|
@@ -45,7 +45,6 @@ interface UseCustomerParams {
|
|
|
45
45
|
errorOnNotFound?: boolean;
|
|
46
46
|
expand?: CustomerExpandOption[];
|
|
47
47
|
swrConfig?: SWRConfiguration;
|
|
48
|
-
authClient?: any;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-CxB4go6q.js';
|
|
3
3
|
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-D8lhXGaX.js';
|
|
4
4
|
import { E as Entity } from '../entTypes-Dq2mbehl.js';
|
|
5
5
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
|
|
@@ -45,7 +45,6 @@ interface UseCustomerParams {
|
|
|
45
45
|
errorOnNotFound?: boolean;
|
|
46
46
|
expand?: CustomerExpandOption[];
|
|
47
47
|
swrConfig?: SWRConfiguration;
|
|
48
|
-
authClient?: any;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams,
|
|
1
|
+
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-9ngy1q97.mjs';
|
|
2
2
|
import { G as GetEntityParams, E as Entity } from '../entTypes-B-2_9hzP.mjs';
|
|
3
3
|
import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.mjs';
|
|
4
4
|
import * as swr from 'swr';
|
|
@@ -15,8 +15,18 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
15
15
|
allowed: (params: AllowedParams) => boolean;
|
|
16
16
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
17
17
|
attach: (params: AttachParams) => Promise<any>;
|
|
18
|
-
cancel: (params: CancelParams) => AutumnPromise<
|
|
19
|
-
|
|
18
|
+
cancel: (params: CancelParams) => AutumnPromise<{
|
|
19
|
+
customer_id: string;
|
|
20
|
+
success: boolean;
|
|
21
|
+
product_id: string;
|
|
22
|
+
}>;
|
|
23
|
+
track: (params: TrackParams) => AutumnPromise<{
|
|
24
|
+
code: string;
|
|
25
|
+
id: string;
|
|
26
|
+
customer_id: string;
|
|
27
|
+
feature_id?: string | undefined;
|
|
28
|
+
event_name?: string | undefined;
|
|
29
|
+
}>;
|
|
20
30
|
};
|
|
21
31
|
|
|
22
32
|
export { useEntity };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams,
|
|
1
|
+
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-CxB4go6q.js';
|
|
2
2
|
import { G as GetEntityParams, E as Entity } from '../entTypes-Dq2mbehl.js';
|
|
3
3
|
import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.js';
|
|
4
4
|
import * as swr from 'swr';
|
|
@@ -15,8 +15,18 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
15
15
|
allowed: (params: AllowedParams) => boolean;
|
|
16
16
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
17
17
|
attach: (params: AttachParams) => Promise<any>;
|
|
18
|
-
cancel: (params: CancelParams) => AutumnPromise<
|
|
19
|
-
|
|
18
|
+
cancel: (params: CancelParams) => AutumnPromise<{
|
|
19
|
+
customer_id: string;
|
|
20
|
+
success: boolean;
|
|
21
|
+
product_id: string;
|
|
22
|
+
}>;
|
|
23
|
+
track: (params: TrackParams) => AutumnPromise<{
|
|
24
|
+
code: string;
|
|
25
|
+
id: string;
|
|
26
|
+
customer_id: string;
|
|
27
|
+
feature_id?: string | undefined;
|
|
28
|
+
event_name?: string | undefined;
|
|
29
|
+
}>;
|
|
20
30
|
};
|
|
21
31
|
|
|
22
32
|
export { useEntity };
|
package/dist/next/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as
|
|
3
|
-
export { A as AutumnProvider } from './AutumnProvider-
|
|
2
|
+
import { C as CheckFeatureResult, a as CheckProductResult, P as ProductItem, b as ProductScenario, c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice, f as CustomerData, g as CreateCustomerParams, h as Customer, B as BillingPortalResult, i as Product, j as CustomerExpandOption } from './AutumnProvider-CCYZC_bN.mjs';
|
|
3
|
+
export { A as AutumnProvider } from './AutumnProvider-CCYZC_bN.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import * as swr from 'swr';
|
|
6
6
|
import { SWRConfiguration } from 'swr';
|
|
@@ -23,30 +23,6 @@ declare class AutumnError extends Error {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
type EntityExpandOption = "invoices";
|
|
27
|
-
|
|
28
|
-
interface DeleteEntityResult {
|
|
29
|
-
success: boolean;
|
|
30
|
-
}
|
|
31
|
-
interface GetEntityParams$1 {
|
|
32
|
-
expand?: EntityExpandOption[];
|
|
33
|
-
}
|
|
34
|
-
interface Entity {
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
customer_id: string;
|
|
38
|
-
created_at: number;
|
|
39
|
-
env: string;
|
|
40
|
-
products: CustomerProduct[];
|
|
41
|
-
features: Record<string, CustomerFeature>;
|
|
42
|
-
invoices?: CustomerInvoice[];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface CancelResult {
|
|
46
|
-
success: boolean;
|
|
47
|
-
customer_id: string;
|
|
48
|
-
product_id: string;
|
|
49
|
-
}
|
|
50
26
|
declare const AttachResultSchema: z.ZodObject<{
|
|
51
27
|
checkout_url: z.ZodOptional<z.ZodString>;
|
|
52
28
|
customer_id: z.ZodString;
|
|
@@ -70,13 +46,40 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
70
46
|
checkout_url?: string | undefined;
|
|
71
47
|
}>;
|
|
72
48
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
73
|
-
|
|
74
|
-
|
|
49
|
+
declare const CancelResultSchema: z.ZodObject<{
|
|
50
|
+
success: z.ZodBoolean;
|
|
51
|
+
customer_id: z.ZodString;
|
|
52
|
+
product_id: z.ZodString;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
customer_id: string;
|
|
55
|
+
product_id: string;
|
|
56
|
+
success: boolean;
|
|
57
|
+
}, {
|
|
58
|
+
customer_id: string;
|
|
59
|
+
product_id: string;
|
|
60
|
+
success: boolean;
|
|
61
|
+
}>;
|
|
62
|
+
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
63
|
+
declare const TrackResultSchema: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
code: z.ZodString;
|
|
66
|
+
customer_id: z.ZodString;
|
|
67
|
+
feature_id: z.ZodOptional<z.ZodString>;
|
|
68
|
+
event_name: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
customer_id: string;
|
|
75
71
|
code: string;
|
|
72
|
+
id: string;
|
|
73
|
+
feature_id?: string | undefined;
|
|
74
|
+
event_name?: string | undefined;
|
|
75
|
+
}, {
|
|
76
76
|
customer_id: string;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
code: string;
|
|
78
|
+
id: string;
|
|
79
|
+
feature_id?: string | undefined;
|
|
80
|
+
event_name?: string | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
type TrackResult = z.infer<typeof TrackResultSchema>;
|
|
80
83
|
type CheckResult = CheckFeatureResult & CheckProductResult;
|
|
81
84
|
interface SetupPaymentResult {
|
|
82
85
|
customer_id: string;
|
|
@@ -114,6 +117,25 @@ interface PricingTableProduct {
|
|
|
114
117
|
scenario: ProductScenario;
|
|
115
118
|
}
|
|
116
119
|
|
|
120
|
+
type EntityExpandOption = "invoices";
|
|
121
|
+
|
|
122
|
+
interface DeleteEntityResult {
|
|
123
|
+
success: boolean;
|
|
124
|
+
}
|
|
125
|
+
interface GetEntityParams$1 {
|
|
126
|
+
expand?: EntityExpandOption[];
|
|
127
|
+
}
|
|
128
|
+
interface Entity {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
customer_id: string;
|
|
132
|
+
created_at: number;
|
|
133
|
+
env: string;
|
|
134
|
+
products: CustomerProduct[];
|
|
135
|
+
features: Record<string, CustomerFeature>;
|
|
136
|
+
invoices?: CustomerInvoice[];
|
|
137
|
+
}
|
|
138
|
+
|
|
117
139
|
interface CreateReferralCodeResult {
|
|
118
140
|
code: string;
|
|
119
141
|
customer_id: string;
|
|
@@ -298,15 +320,15 @@ interface AutumnClientConfig {
|
|
|
298
320
|
getBearerToken?: () => Promise<string | null | undefined>;
|
|
299
321
|
customerData?: CustomerData;
|
|
300
322
|
includeCredentials?: boolean;
|
|
323
|
+
betterAuthUrl?: string;
|
|
301
324
|
}
|
|
302
325
|
declare class AutumnClient {
|
|
303
326
|
readonly backendUrl?: string;
|
|
304
327
|
protected readonly getBearerToken?: () => Promise<string | null | undefined>;
|
|
305
328
|
protected readonly customerData?: CustomerData;
|
|
306
329
|
protected includeCredentials?: boolean;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
constructor({ backendUrl, getBearerToken, customerData, includeCredentials, }: AutumnClientConfig);
|
|
330
|
+
readonly prefix: string;
|
|
331
|
+
constructor({ backendUrl, getBearerToken, customerData, includeCredentials, betterAuthUrl, }: AutumnClientConfig);
|
|
310
332
|
/**
|
|
311
333
|
* Detects if the backend supports CORS credentials by making an OPTIONS request
|
|
312
334
|
*/
|
|
@@ -359,7 +381,11 @@ declare class AutumnClient {
|
|
|
359
381
|
productId: string;
|
|
360
382
|
entityId?: string | undefined;
|
|
361
383
|
cancelImmediately?: boolean | undefined;
|
|
362
|
-
}) => AutumnPromise<
|
|
384
|
+
}) => AutumnPromise<{
|
|
385
|
+
customer_id: string;
|
|
386
|
+
product_id: string;
|
|
387
|
+
success: boolean;
|
|
388
|
+
}>;
|
|
363
389
|
check: (params: {
|
|
364
390
|
featureId?: string | undefined;
|
|
365
391
|
productId?: string | undefined;
|
|
@@ -377,7 +403,13 @@ declare class AutumnClient {
|
|
|
377
403
|
entityData?: any;
|
|
378
404
|
eventName?: string | undefined;
|
|
379
405
|
idempotencyKey?: string | undefined;
|
|
380
|
-
}) => AutumnPromise<
|
|
406
|
+
}) => AutumnPromise<{
|
|
407
|
+
customer_id: string;
|
|
408
|
+
code: string;
|
|
409
|
+
id: string;
|
|
410
|
+
feature_id?: string | undefined;
|
|
411
|
+
event_name?: string | undefined;
|
|
412
|
+
}>;
|
|
381
413
|
openBillingPortal: (params?: OpenBillingPortalParams | undefined) => AutumnPromise<BillingPortalResult>;
|
|
382
414
|
setupPayment: (params: SetupPaymentParams) => AutumnPromise<SetupPaymentResult>;
|
|
383
415
|
entities: {
|
|
@@ -426,7 +458,6 @@ interface UseCustomerParams {
|
|
|
426
458
|
errorOnNotFound?: boolean;
|
|
427
459
|
expand?: CustomerExpandOption[];
|
|
428
460
|
swrConfig?: SWRConfiguration;
|
|
429
|
-
authClient?: any;
|
|
430
461
|
}
|
|
431
462
|
|
|
432
463
|
declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
|
|
@@ -467,8 +498,18 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams$1) =
|
|
|
467
498
|
allowed: (params: AllowedParams) => boolean;
|
|
468
499
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
469
500
|
attach: (params: AttachParams) => Promise<any>;
|
|
470
|
-
cancel: (params: CancelParams) => AutumnPromise<
|
|
471
|
-
|
|
501
|
+
cancel: (params: CancelParams) => AutumnPromise<{
|
|
502
|
+
customer_id: string;
|
|
503
|
+
product_id: string;
|
|
504
|
+
success: boolean;
|
|
505
|
+
}>;
|
|
506
|
+
track: (params: TrackParams) => AutumnPromise<{
|
|
507
|
+
customer_id: string;
|
|
508
|
+
code: string;
|
|
509
|
+
id: string;
|
|
510
|
+
feature_id?: string | undefined;
|
|
511
|
+
event_name?: string | undefined;
|
|
512
|
+
}>;
|
|
472
513
|
};
|
|
473
514
|
|
|
474
515
|
declare const useAutumn: () => {
|
package/dist/next/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as
|
|
3
|
-
export { A as AutumnProvider } from './AutumnProvider-
|
|
2
|
+
import { C as CheckFeatureResult, a as CheckProductResult, P as ProductItem, b as ProductScenario, c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice, f as CustomerData, g as CreateCustomerParams, h as Customer, B as BillingPortalResult, i as Product, j as CustomerExpandOption } from './AutumnProvider-CCYZC_bN.js';
|
|
3
|
+
export { A as AutumnProvider } from './AutumnProvider-CCYZC_bN.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import * as swr from 'swr';
|
|
6
6
|
import { SWRConfiguration } from 'swr';
|
|
@@ -23,30 +23,6 @@ declare class AutumnError extends Error {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
type EntityExpandOption = "invoices";
|
|
27
|
-
|
|
28
|
-
interface DeleteEntityResult {
|
|
29
|
-
success: boolean;
|
|
30
|
-
}
|
|
31
|
-
interface GetEntityParams$1 {
|
|
32
|
-
expand?: EntityExpandOption[];
|
|
33
|
-
}
|
|
34
|
-
interface Entity {
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
customer_id: string;
|
|
38
|
-
created_at: number;
|
|
39
|
-
env: string;
|
|
40
|
-
products: CustomerProduct[];
|
|
41
|
-
features: Record<string, CustomerFeature>;
|
|
42
|
-
invoices?: CustomerInvoice[];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface CancelResult {
|
|
46
|
-
success: boolean;
|
|
47
|
-
customer_id: string;
|
|
48
|
-
product_id: string;
|
|
49
|
-
}
|
|
50
26
|
declare const AttachResultSchema: z.ZodObject<{
|
|
51
27
|
checkout_url: z.ZodOptional<z.ZodString>;
|
|
52
28
|
customer_id: z.ZodString;
|
|
@@ -70,13 +46,40 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
70
46
|
checkout_url?: string | undefined;
|
|
71
47
|
}>;
|
|
72
48
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
73
|
-
|
|
74
|
-
|
|
49
|
+
declare const CancelResultSchema: z.ZodObject<{
|
|
50
|
+
success: z.ZodBoolean;
|
|
51
|
+
customer_id: z.ZodString;
|
|
52
|
+
product_id: z.ZodString;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
customer_id: string;
|
|
55
|
+
product_id: string;
|
|
56
|
+
success: boolean;
|
|
57
|
+
}, {
|
|
58
|
+
customer_id: string;
|
|
59
|
+
product_id: string;
|
|
60
|
+
success: boolean;
|
|
61
|
+
}>;
|
|
62
|
+
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
63
|
+
declare const TrackResultSchema: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
code: z.ZodString;
|
|
66
|
+
customer_id: z.ZodString;
|
|
67
|
+
feature_id: z.ZodOptional<z.ZodString>;
|
|
68
|
+
event_name: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
customer_id: string;
|
|
75
71
|
code: string;
|
|
72
|
+
id: string;
|
|
73
|
+
feature_id?: string | undefined;
|
|
74
|
+
event_name?: string | undefined;
|
|
75
|
+
}, {
|
|
76
76
|
customer_id: string;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
code: string;
|
|
78
|
+
id: string;
|
|
79
|
+
feature_id?: string | undefined;
|
|
80
|
+
event_name?: string | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
type TrackResult = z.infer<typeof TrackResultSchema>;
|
|
80
83
|
type CheckResult = CheckFeatureResult & CheckProductResult;
|
|
81
84
|
interface SetupPaymentResult {
|
|
82
85
|
customer_id: string;
|
|
@@ -114,6 +117,25 @@ interface PricingTableProduct {
|
|
|
114
117
|
scenario: ProductScenario;
|
|
115
118
|
}
|
|
116
119
|
|
|
120
|
+
type EntityExpandOption = "invoices";
|
|
121
|
+
|
|
122
|
+
interface DeleteEntityResult {
|
|
123
|
+
success: boolean;
|
|
124
|
+
}
|
|
125
|
+
interface GetEntityParams$1 {
|
|
126
|
+
expand?: EntityExpandOption[];
|
|
127
|
+
}
|
|
128
|
+
interface Entity {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
customer_id: string;
|
|
132
|
+
created_at: number;
|
|
133
|
+
env: string;
|
|
134
|
+
products: CustomerProduct[];
|
|
135
|
+
features: Record<string, CustomerFeature>;
|
|
136
|
+
invoices?: CustomerInvoice[];
|
|
137
|
+
}
|
|
138
|
+
|
|
117
139
|
interface CreateReferralCodeResult {
|
|
118
140
|
code: string;
|
|
119
141
|
customer_id: string;
|
|
@@ -298,15 +320,15 @@ interface AutumnClientConfig {
|
|
|
298
320
|
getBearerToken?: () => Promise<string | null | undefined>;
|
|
299
321
|
customerData?: CustomerData;
|
|
300
322
|
includeCredentials?: boolean;
|
|
323
|
+
betterAuthUrl?: string;
|
|
301
324
|
}
|
|
302
325
|
declare class AutumnClient {
|
|
303
326
|
readonly backendUrl?: string;
|
|
304
327
|
protected readonly getBearerToken?: () => Promise<string | null | undefined>;
|
|
305
328
|
protected readonly customerData?: CustomerData;
|
|
306
329
|
protected includeCredentials?: boolean;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
constructor({ backendUrl, getBearerToken, customerData, includeCredentials, }: AutumnClientConfig);
|
|
330
|
+
readonly prefix: string;
|
|
331
|
+
constructor({ backendUrl, getBearerToken, customerData, includeCredentials, betterAuthUrl, }: AutumnClientConfig);
|
|
310
332
|
/**
|
|
311
333
|
* Detects if the backend supports CORS credentials by making an OPTIONS request
|
|
312
334
|
*/
|
|
@@ -359,7 +381,11 @@ declare class AutumnClient {
|
|
|
359
381
|
productId: string;
|
|
360
382
|
entityId?: string | undefined;
|
|
361
383
|
cancelImmediately?: boolean | undefined;
|
|
362
|
-
}) => AutumnPromise<
|
|
384
|
+
}) => AutumnPromise<{
|
|
385
|
+
customer_id: string;
|
|
386
|
+
product_id: string;
|
|
387
|
+
success: boolean;
|
|
388
|
+
}>;
|
|
363
389
|
check: (params: {
|
|
364
390
|
featureId?: string | undefined;
|
|
365
391
|
productId?: string | undefined;
|
|
@@ -377,7 +403,13 @@ declare class AutumnClient {
|
|
|
377
403
|
entityData?: any;
|
|
378
404
|
eventName?: string | undefined;
|
|
379
405
|
idempotencyKey?: string | undefined;
|
|
380
|
-
}) => AutumnPromise<
|
|
406
|
+
}) => AutumnPromise<{
|
|
407
|
+
customer_id: string;
|
|
408
|
+
code: string;
|
|
409
|
+
id: string;
|
|
410
|
+
feature_id?: string | undefined;
|
|
411
|
+
event_name?: string | undefined;
|
|
412
|
+
}>;
|
|
381
413
|
openBillingPortal: (params?: OpenBillingPortalParams | undefined) => AutumnPromise<BillingPortalResult>;
|
|
382
414
|
setupPayment: (params: SetupPaymentParams) => AutumnPromise<SetupPaymentResult>;
|
|
383
415
|
entities: {
|
|
@@ -426,7 +458,6 @@ interface UseCustomerParams {
|
|
|
426
458
|
errorOnNotFound?: boolean;
|
|
427
459
|
expand?: CustomerExpandOption[];
|
|
428
460
|
swrConfig?: SWRConfiguration;
|
|
429
|
-
authClient?: any;
|
|
430
461
|
}
|
|
431
462
|
|
|
432
463
|
declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
|
|
@@ -467,8 +498,18 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams$1) =
|
|
|
467
498
|
allowed: (params: AllowedParams) => boolean;
|
|
468
499
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
469
500
|
attach: (params: AttachParams) => Promise<any>;
|
|
470
|
-
cancel: (params: CancelParams) => AutumnPromise<
|
|
471
|
-
|
|
501
|
+
cancel: (params: CancelParams) => AutumnPromise<{
|
|
502
|
+
customer_id: string;
|
|
503
|
+
product_id: string;
|
|
504
|
+
success: boolean;
|
|
505
|
+
}>;
|
|
506
|
+
track: (params: TrackParams) => AutumnPromise<{
|
|
507
|
+
customer_id: string;
|
|
508
|
+
code: string;
|
|
509
|
+
id: string;
|
|
510
|
+
feature_id?: string | undefined;
|
|
511
|
+
event_name?: string | undefined;
|
|
512
|
+
}>;
|
|
472
513
|
};
|
|
473
514
|
|
|
474
515
|
declare const useAutumn: () => {
|