autumn-js 0.0.101 → 0.0.103
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/compose/index.d.mts +67 -93
- package/dist/compose/index.d.ts +67 -93
- package/dist/compose/index.js +14 -83
- package/dist/compose/index.mjs +14 -80
- 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.mjs +3 -3
- package/dist/libraries/backend/convex.mjs +3 -3
- package/dist/libraries/backend/elysia.d.mts +1 -1
- package/dist/libraries/backend/elysia.d.ts +1 -1
- package/dist/libraries/backend/elysia.mjs +3 -3
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.mjs +3 -3
- package/dist/libraries/backend/fastify.mjs +3 -3
- package/dist/libraries/backend/hono.mjs +3 -3
- package/dist/libraries/backend/next.js +209 -186
- package/dist/libraries/backend/next.mjs +212 -189
- package/dist/libraries/backend/react-router.mjs +3 -3
- package/dist/libraries/backend/{referralTypes-HAk2vTns.d.ts → referralTypes-DV8s1h8w.d.ts} +34 -29
- package/dist/libraries/backend/{referralTypes-Dg9pRvI7.d.mts → referralTypes-DcDxMGTp.d.mts} +34 -29
- package/dist/libraries/backend/remix_dep.mjs +3 -3
- package/dist/libraries/backend/routes/backendRouter.mjs +3 -3
- package/dist/libraries/backend/supabase.mjs +3 -3
- package/dist/libraries/backend/tanstack.js +2 -2
- package/dist/libraries/backend/tanstack.mjs +5 -5
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +7 -2
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-B4P_QjY1.d.ts → ReactAutumnClient-BlxQQOXE.d.ts} +5 -5
- package/dist/libraries/react/{ReactAutumnClient-DCdPx-ps.d.mts → ReactAutumnClient-C8Nt-pqu.d.mts} +5 -5
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +7 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/{chunk-APDR7D6A.mjs → chunk-3SGSKYJ7.mjs} +2 -2
- package/dist/libraries/react/{chunk-YLZ5NFYO.mjs → chunk-AL3VJLFU.mjs} +1 -1
- package/dist/libraries/react/{chunk-G3FBFZLU.mjs → chunk-CGWNDUYV.mjs} +1 -1
- package/dist/libraries/react/{chunk-T5PIJ4HG.mjs → chunk-DBGTWERW.mjs} +4 -3
- package/dist/libraries/react/{chunk-CAMHARUX.mjs → chunk-DHJ36QEV.mjs} +2 -2
- package/dist/libraries/react/{chunk-R4BYOLST.mjs → chunk-EHOBTSZ7.mjs} +2 -2
- package/dist/libraries/react/{chunk-AOJCMXVS.mjs → chunk-GQIE3MFB.mjs} +3 -3
- package/dist/libraries/react/{chunk-LVDONEVF.mjs → chunk-KYSWTOMQ.mjs} +7 -3
- package/dist/libraries/react/{chunk-RQG36YPD.mjs → chunk-LXSKONN2.mjs} +5 -9
- package/dist/libraries/react/{chunk-R46CJXF7.mjs → chunk-OAPUYXBO.mjs} +6 -6
- package/dist/libraries/react/{chunk-3CJSWXNT.mjs → chunk-OAWFFAKA.mjs} +6 -6
- package/dist/libraries/react/{chunk-5G3DYUNT.mjs → chunk-PZJQBCVG.mjs} +1 -1
- package/dist/libraries/react/{chunk-DVMVIAZE.mjs → chunk-RQN4VDAE.mjs} +1 -1
- package/dist/libraries/react/{chunk-MZDRIPNS.mjs → chunk-S6JUZ43Q.mjs} +2 -2
- package/dist/libraries/react/{chunk-CPITDC7S.mjs → chunk-SDMBKRAI.mjs} +37 -172
- package/dist/libraries/react/{chunk-6CJ3FB74.mjs → chunk-X4R3V6O6.mjs} +2 -2
- package/dist/libraries/react/{chunk-24EVX3BR.mjs → chunk-ZEVKOP7Z.mjs} +24 -45
- package/dist/libraries/react/{chunk-RQEL7G2O.mjs → chunk-ZVQKDPUP.mjs} +3 -3
- 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.mjs +4 -4
- 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/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- 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/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- 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/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +4 -4
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +111 -116
- 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 +76 -212
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +25 -25
- 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/check-dialog-synced.js +47 -169
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
- 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.css +111 -116
- 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 +76 -215
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -25
- package/dist/libraries/react/components/ui/button.js +3 -3
- package/dist/libraries/react/components/ui/button.mjs +2 -2
- package/dist/libraries/react/components/ui/dialog.js +43 -157
- package/dist/libraries/react/components/ui/dialog.mjs +3 -3
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.ts → cusTypes-CHcG59KG.d.mts} +4 -3
- package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.mts → cusTypes-CHcG59KG.d.ts} +4 -3
- package/dist/libraries/react/{entTypes-CscyyE1A.d.mts → entTypes-3t7AbNhm.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-O8YXxhrA.d.ts → entTypes-8-4TWxee.d.ts} +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 +5 -1
- package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +6 -5
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +6 -5
- package/dist/libraries/react/hooks/useAutumnBase.js +5 -1
- package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
- 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 +7 -2
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.js +7 -2
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntity.js +5 -1
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.js +5 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- 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.mjs +7 -7
- 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.mjs +6 -6
- package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
- package/dist/libraries/react/index.d.mts +1 -0
- package/dist/libraries/react/index.d.ts +1 -0
- package/dist/libraries/react/index.js +80 -222
- package/dist/libraries/react/index.mjs +65 -207
- package/dist/libraries/react/{response-B4VzjWEU.d.mts → response-B8MYd86O.d.mts} +1 -1
- package/dist/libraries/react/{response-C3S90max.d.ts → response-DnJCkvfc.d.ts} +1 -1
- package/dist/next/{AutumnProvider-CCYZC_bN.d.mts → AutumnProvider-Xl1mqxls.d.mts} +1 -0
- package/dist/next/{AutumnProvider-CCYZC_bN.d.ts → AutumnProvider-Xl1mqxls.d.ts} +1 -0
- package/dist/next/AutumnProvider.d.mts +1 -1
- package/dist/next/AutumnProvider.d.ts +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +7 -7
- package/dist/next/client/NextAutumnClient.d.ts +7 -7
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/{clientGenTypes-CxB4go6q.d.ts → clientGenTypes-Dx1TULjb.d.ts} +9 -9
- package/dist/next/client/{clientGenTypes-9ngy1q97.d.mts → clientGenTypes-tE8HbEdV.d.mts} +9 -9
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-D8lhXGaX.d.mts → cusTypes-nWQygxXu.d.mts} +3 -2
- package/dist/next/client/{cusTypes-D8lhXGaX.d.ts → cusTypes-nWQygxXu.d.ts} +3 -2
- package/dist/next/client/{entTypes-Dq2mbehl.d.ts → entTypes-DDZyYuom.d.ts} +1 -1
- package/dist/next/client/{entTypes-B-2_9hzP.d.mts → entTypes-DusU3WqD.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +2 -2
- package/dist/next/client/hooks/useAutumn.d.ts +2 -2
- package/dist/next/client/hooks/useCustomer.d.mts +3 -3
- package/dist/next/client/hooks/useCustomer.d.ts +3 -3
- package/dist/next/client/hooks/useEntity.d.mts +3 -3
- package/dist/next/client/hooks/useEntity.d.ts +3 -3
- 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 +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/index.d.mts +2 -2
- package/dist/next/index.d.ts +2 -2
- 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 +3 -3
- package/dist/next/server/cusActions.d.ts +3 -3
- package/dist/next/server/{cusTypes-DhOYtM7H.d.mts → cusTypes-Tc189V9T.d.mts} +6 -1
- package/dist/next/server/{cusTypes-DhOYtM7H.d.ts → cusTypes-Tc189V9T.d.ts} +6 -1
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +3 -2
- package/dist/sdk/index.d.ts +3 -2
- package/dist/styles/global.css +111 -116
- package/package.json +3 -24
- package/tsup.config.ts +0 -1
- package/dist/libraries/backend/{chunk-NW6B7QXB.mjs → chunk-YFWJ6E4U.mjs} +6 -6
- package/dist/libraries/react/{chunk-ALFXUHDD.mjs → chunk-CYW4LNFZ.mjs} +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-CHcG59KG.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-
|
|
2
|
-
import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-
|
|
3
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
1
|
+
import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-tE8HbEdV.mjs';
|
|
2
|
+
import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-nWQygxXu.mjs';
|
|
3
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-DusU3WqD.mjs';
|
|
4
4
|
import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.mjs';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
@@ -73,15 +73,15 @@ declare class AutumnClient {
|
|
|
73
73
|
freeTrial?: boolean | undefined;
|
|
74
74
|
successUrl?: string | undefined;
|
|
75
75
|
forceCheckout?: boolean | undefined;
|
|
76
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
76
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
77
77
|
entityData?: any;
|
|
78
78
|
openInNewTab?: boolean | undefined;
|
|
79
79
|
reward?: string | undefined;
|
|
80
80
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
81
81
|
}) => AutumnPromise<{
|
|
82
|
-
customer_id: string;
|
|
83
82
|
code: string;
|
|
84
83
|
message: string;
|
|
84
|
+
customer_id: string;
|
|
85
85
|
product_ids: string[];
|
|
86
86
|
checkout_url?: string | undefined;
|
|
87
87
|
customer_data?: any;
|
|
@@ -99,7 +99,7 @@ declare class AutumnClient {
|
|
|
99
99
|
productId?: string | undefined;
|
|
100
100
|
entityId?: string | undefined;
|
|
101
101
|
featureId?: string | undefined;
|
|
102
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
102
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
103
103
|
entityData?: any;
|
|
104
104
|
requiredBalance?: number | undefined;
|
|
105
105
|
sendEvent?: boolean | undefined;
|
|
@@ -114,8 +114,8 @@ declare class AutumnClient {
|
|
|
114
114
|
idempotencyKey?: string | undefined;
|
|
115
115
|
}) => AutumnPromise<{
|
|
116
116
|
id: string;
|
|
117
|
-
customer_id: string;
|
|
118
117
|
code: string;
|
|
118
|
+
customer_id: string;
|
|
119
119
|
feature_id?: string | undefined;
|
|
120
120
|
event_name?: string | undefined;
|
|
121
121
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-
|
|
2
|
-
import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-
|
|
3
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
1
|
+
import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-Dx1TULjb.js';
|
|
2
|
+
import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-nWQygxXu.js';
|
|
3
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-DDZyYuom.js';
|
|
4
4
|
import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.js';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
@@ -73,15 +73,15 @@ declare class AutumnClient {
|
|
|
73
73
|
freeTrial?: boolean | undefined;
|
|
74
74
|
successUrl?: string | undefined;
|
|
75
75
|
forceCheckout?: boolean | undefined;
|
|
76
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
76
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
77
77
|
entityData?: any;
|
|
78
78
|
openInNewTab?: boolean | undefined;
|
|
79
79
|
reward?: string | undefined;
|
|
80
80
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
81
81
|
}) => AutumnPromise<{
|
|
82
|
-
customer_id: string;
|
|
83
82
|
code: string;
|
|
84
83
|
message: string;
|
|
84
|
+
customer_id: string;
|
|
85
85
|
product_ids: string[];
|
|
86
86
|
checkout_url?: string | undefined;
|
|
87
87
|
customer_data?: any;
|
|
@@ -99,7 +99,7 @@ declare class AutumnClient {
|
|
|
99
99
|
productId?: string | undefined;
|
|
100
100
|
entityId?: string | undefined;
|
|
101
101
|
featureId?: string | undefined;
|
|
102
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
102
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
103
103
|
entityData?: any;
|
|
104
104
|
requiredBalance?: number | undefined;
|
|
105
105
|
sendEvent?: boolean | undefined;
|
|
@@ -114,8 +114,8 @@ declare class AutumnClient {
|
|
|
114
114
|
idempotencyKey?: string | undefined;
|
|
115
115
|
}) => AutumnPromise<{
|
|
116
116
|
id: string;
|
|
117
|
-
customer_id: string;
|
|
118
117
|
code: string;
|
|
118
|
+
customer_id: string;
|
|
119
119
|
feature_id?: string | undefined;
|
|
120
120
|
event_name?: string | undefined;
|
|
121
121
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-nWQygxXu.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-nWQygxXu.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-nWQygxXu.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
4
|
import * as react from 'react';
|
|
@@ -11,16 +11,16 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
11
11
|
message: z.ZodString;
|
|
12
12
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
customer_id: string;
|
|
15
14
|
code: string;
|
|
16
15
|
message: string;
|
|
16
|
+
customer_id: string;
|
|
17
17
|
product_ids: string[];
|
|
18
18
|
checkout_url?: string | undefined;
|
|
19
19
|
customer_data?: any;
|
|
20
20
|
}, {
|
|
21
|
-
customer_id: string;
|
|
22
21
|
code: string;
|
|
23
22
|
message: string;
|
|
23
|
+
customer_id: string;
|
|
24
24
|
product_ids: string[];
|
|
25
25
|
checkout_url?: string | undefined;
|
|
26
26
|
customer_data?: any;
|
|
@@ -48,14 +48,14 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
48
48
|
event_name: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
id: string;
|
|
51
|
-
customer_id: string;
|
|
52
51
|
code: string;
|
|
52
|
+
customer_id: string;
|
|
53
53
|
feature_id?: string | undefined;
|
|
54
54
|
event_name?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
id: string;
|
|
57
|
-
customer_id: string;
|
|
58
57
|
code: string;
|
|
58
|
+
customer_id: string;
|
|
59
59
|
feature_id?: string | undefined;
|
|
60
60
|
event_name?: string | undefined;
|
|
61
61
|
}>;
|
|
@@ -114,7 +114,7 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
114
114
|
freeTrial?: boolean | undefined;
|
|
115
115
|
successUrl?: string | undefined;
|
|
116
116
|
forceCheckout?: boolean | undefined;
|
|
117
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
117
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
118
118
|
entityData?: any;
|
|
119
119
|
openInNewTab?: boolean | undefined;
|
|
120
120
|
reward?: string | undefined;
|
|
@@ -131,7 +131,7 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
131
131
|
freeTrial?: boolean | undefined;
|
|
132
132
|
successUrl?: string | undefined;
|
|
133
133
|
forceCheckout?: boolean | undefined;
|
|
134
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
134
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
135
135
|
entityData?: any;
|
|
136
136
|
openInNewTab?: boolean | undefined;
|
|
137
137
|
reward?: string | undefined;
|
|
@@ -165,7 +165,7 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
165
165
|
productId?: string | undefined;
|
|
166
166
|
entityId?: string | undefined;
|
|
167
167
|
featureId?: string | undefined;
|
|
168
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
168
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
169
169
|
entityData?: any;
|
|
170
170
|
requiredBalance?: number | undefined;
|
|
171
171
|
sendEvent?: boolean | undefined;
|
|
@@ -174,7 +174,7 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
174
174
|
productId?: string | undefined;
|
|
175
175
|
entityId?: string | undefined;
|
|
176
176
|
featureId?: string | undefined;
|
|
177
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
177
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
178
178
|
entityData?: any;
|
|
179
179
|
requiredBalance?: number | undefined;
|
|
180
180
|
sendEvent?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-nWQygxXu.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
4
|
import * as react from 'react';
|
|
@@ -11,16 +11,16 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
11
11
|
message: z.ZodString;
|
|
12
12
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
customer_id: string;
|
|
15
14
|
code: string;
|
|
16
15
|
message: string;
|
|
16
|
+
customer_id: string;
|
|
17
17
|
product_ids: string[];
|
|
18
18
|
checkout_url?: string | undefined;
|
|
19
19
|
customer_data?: any;
|
|
20
20
|
}, {
|
|
21
|
-
customer_id: string;
|
|
22
21
|
code: string;
|
|
23
22
|
message: string;
|
|
23
|
+
customer_id: string;
|
|
24
24
|
product_ids: string[];
|
|
25
25
|
checkout_url?: string | undefined;
|
|
26
26
|
customer_data?: any;
|
|
@@ -48,14 +48,14 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
48
48
|
event_name: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
id: string;
|
|
51
|
-
customer_id: string;
|
|
52
51
|
code: string;
|
|
52
|
+
customer_id: string;
|
|
53
53
|
feature_id?: string | undefined;
|
|
54
54
|
event_name?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
id: string;
|
|
57
|
-
customer_id: string;
|
|
58
57
|
code: string;
|
|
58
|
+
customer_id: string;
|
|
59
59
|
feature_id?: string | undefined;
|
|
60
60
|
event_name?: string | undefined;
|
|
61
61
|
}>;
|
|
@@ -114,7 +114,7 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
114
114
|
freeTrial?: boolean | undefined;
|
|
115
115
|
successUrl?: string | undefined;
|
|
116
116
|
forceCheckout?: boolean | undefined;
|
|
117
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
117
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
118
118
|
entityData?: any;
|
|
119
119
|
openInNewTab?: boolean | undefined;
|
|
120
120
|
reward?: string | undefined;
|
|
@@ -131,7 +131,7 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
131
131
|
freeTrial?: boolean | undefined;
|
|
132
132
|
successUrl?: string | undefined;
|
|
133
133
|
forceCheckout?: boolean | undefined;
|
|
134
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
134
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
135
135
|
entityData?: any;
|
|
136
136
|
openInNewTab?: boolean | undefined;
|
|
137
137
|
reward?: string | undefined;
|
|
@@ -165,7 +165,7 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
165
165
|
productId?: string | undefined;
|
|
166
166
|
entityId?: string | undefined;
|
|
167
167
|
featureId?: string | undefined;
|
|
168
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
168
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
169
169
|
entityData?: any;
|
|
170
170
|
requiredBalance?: number | undefined;
|
|
171
171
|
sendEvent?: boolean | undefined;
|
|
@@ -174,7 +174,7 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
174
174
|
productId?: string | undefined;
|
|
175
175
|
entityId?: string | undefined;
|
|
176
176
|
featureId?: string | undefined;
|
|
177
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
177
|
+
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
178
178
|
entityData?: any;
|
|
179
179
|
requiredBalance?: number | undefined;
|
|
180
180
|
sendEvent?: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.mjs';
|
|
2
|
-
import './cusTypes-
|
|
2
|
+
import './cusTypes-nWQygxXu.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './entTypes-
|
|
4
|
+
import './entTypes-DusU3WqD.mjs';
|
|
5
5
|
|
|
6
6
|
declare const toClientErrorResponse: (error: any) => {
|
|
7
7
|
data: null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.js';
|
|
2
|
-
import './cusTypes-
|
|
2
|
+
import './cusTypes-nWQygxXu.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './entTypes-
|
|
4
|
+
import './entTypes-DDZyYuom.js';
|
|
5
5
|
|
|
6
6
|
declare const toClientErrorResponse: (error: any) => {
|
|
7
7
|
data: null;
|
|
@@ -180,6 +180,7 @@ interface CustomerProduct {
|
|
|
180
180
|
status: ProductStatus;
|
|
181
181
|
started_at: number;
|
|
182
182
|
canceled_at: number | null;
|
|
183
|
+
version: number;
|
|
183
184
|
subscription_ids?: string[] | null;
|
|
184
185
|
current_period_start?: number | null;
|
|
185
186
|
current_period_end?: number | null;
|
|
@@ -216,15 +217,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
216
217
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
217
218
|
}, "strip", z.ZodTypeAny, {
|
|
218
219
|
id?: string | null | undefined;
|
|
219
|
-
name?: string | null | undefined;
|
|
220
220
|
email?: string | null | undefined;
|
|
221
|
+
name?: string | null | undefined;
|
|
221
222
|
fingerprint?: string | null | undefined;
|
|
222
223
|
metadata?: Record<string, any> | undefined;
|
|
223
224
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
224
225
|
}, {
|
|
225
226
|
id?: string | null | undefined;
|
|
226
|
-
name?: string | null | undefined;
|
|
227
227
|
email?: string | null | undefined;
|
|
228
|
+
name?: string | null | undefined;
|
|
228
229
|
fingerprint?: string | null | undefined;
|
|
229
230
|
metadata?: Record<string, any> | undefined;
|
|
230
231
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -180,6 +180,7 @@ interface CustomerProduct {
|
|
|
180
180
|
status: ProductStatus;
|
|
181
181
|
started_at: number;
|
|
182
182
|
canceled_at: number | null;
|
|
183
|
+
version: number;
|
|
183
184
|
subscription_ids?: string[] | null;
|
|
184
185
|
current_period_start?: number | null;
|
|
185
186
|
current_period_end?: number | null;
|
|
@@ -216,15 +217,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
216
217
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
217
218
|
}, "strip", z.ZodTypeAny, {
|
|
218
219
|
id?: string | null | undefined;
|
|
219
|
-
name?: string | null | undefined;
|
|
220
220
|
email?: string | null | undefined;
|
|
221
|
+
name?: string | null | undefined;
|
|
221
222
|
fingerprint?: string | null | undefined;
|
|
222
223
|
metadata?: Record<string, any> | undefined;
|
|
223
224
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
224
225
|
}, {
|
|
225
226
|
id?: string | null | undefined;
|
|
226
|
-
name?: string | null | undefined;
|
|
227
227
|
email?: string | null | undefined;
|
|
228
|
+
name?: string | null | undefined;
|
|
228
229
|
fingerprint?: string | null | undefined;
|
|
229
230
|
metadata?: Record<string, any> | undefined;
|
|
230
231
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
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-tE8HbEdV.mjs';
|
|
2
|
+
import { B as BillingPortalResult } from '../cusTypes-nWQygxXu.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../error-DHbclCVh.mjs';
|
|
5
5
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
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-Dx1TULjb.js';
|
|
2
|
+
import { B as BillingPortalResult } from '../cusTypes-nWQygxXu.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../error-DHbclCVh.js';
|
|
5
5
|
import 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
3
|
-
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
4
|
-
import { E as Entity } from '../entTypes-
|
|
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-tE8HbEdV.mjs';
|
|
3
|
+
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-nWQygxXu.mjs';
|
|
4
|
+
import { E as Entity } from '../entTypes-DusU3WqD.mjs';
|
|
5
5
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { SWRConfiguration } from 'swr';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
3
|
-
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
4
|
-
import { E as Entity } from '../entTypes-
|
|
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-Dx1TULjb.js';
|
|
3
|
+
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-nWQygxXu.js';
|
|
4
|
+
import { E as Entity } from '../entTypes-DDZyYuom.js';
|
|
5
5
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { SWRConfiguration } from 'swr';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-
|
|
2
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
1
|
+
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-tE8HbEdV.mjs';
|
|
2
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-DusU3WqD.mjs';
|
|
3
3
|
import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.mjs';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import '../cusTypes-
|
|
5
|
+
import '../cusTypes-nWQygxXu.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.mjs';
|
|
8
8
|
import 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-
|
|
2
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
1
|
+
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-Dx1TULjb.js';
|
|
2
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-DDZyYuom.js';
|
|
3
3
|
import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.js';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import '../cusTypes-
|
|
5
|
+
import '../cusTypes-nWQygxXu.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.js';
|
|
8
8
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CustomerData, a as Customer } from './cusTypes-
|
|
2
|
-
import { E as Entity } from './entTypes-
|
|
1
|
+
import { C as CustomerData, a as Customer } from './cusTypes-nWQygxXu.mjs';
|
|
2
|
+
import { E as Entity } from './entTypes-DusU3WqD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
interface ProductDetails {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CustomerData, a as Customer } from './cusTypes-
|
|
2
|
-
import { E as Entity } from './entTypes-
|
|
1
|
+
import { C as CustomerData, a as Customer } from './cusTypes-nWQygxXu.js';
|
|
2
|
+
import { E as Entity } from './entTypes-DDZyYuom.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
interface ProductDetails {
|
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 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-
|
|
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-Xl1mqxls.mjs';
|
|
3
|
+
export { A as AutumnProvider } from './AutumnProvider-Xl1mqxls.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import * as swr from 'swr';
|
|
6
6
|
import { SWRConfiguration } from 'swr';
|
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 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-
|
|
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-Xl1mqxls.js';
|
|
3
|
+
export { A as AutumnProvider } from './AutumnProvider-Xl1mqxls.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import * as swr from 'swr';
|
|
6
6
|
import { SWRConfiguration } from 'swr';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, P as Product,
|
|
1
|
+
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, e as BillingPortalResult, P as Product, f as CreateProductParams, L as ListProductsParams, g as CustomerProduct, h as CustomerFeature, i as CustomerInvoice } from './cusTypes-Tc189V9T.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { R as Result, A as AutumnError } from './response-eH4S4sg0.mjs';
|
|
4
4
|
|
|
@@ -198,7 +198,7 @@ declare class Autumn {
|
|
|
198
198
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
199
199
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
200
200
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
201
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
201
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
202
202
|
};
|
|
203
203
|
static products: {
|
|
204
204
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -221,7 +221,7 @@ declare class Autumn {
|
|
|
221
221
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
222
222
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
223
223
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
224
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
224
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
225
225
|
};
|
|
226
226
|
products: {
|
|
227
227
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, P as Product,
|
|
1
|
+
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, e as BillingPortalResult, P as Product, f as CreateProductParams, L as ListProductsParams, g as CustomerProduct, h as CustomerFeature, i as CustomerInvoice } from './cusTypes-Tc189V9T.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { R as Result, A as AutumnError } from './response-eH4S4sg0.js';
|
|
4
4
|
|
|
@@ -198,7 +198,7 @@ declare class Autumn {
|
|
|
198
198
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
199
199
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
200
200
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
201
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
201
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
202
202
|
};
|
|
203
203
|
static products: {
|
|
204
204
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -221,7 +221,7 @@ declare class Autumn {
|
|
|
221
221
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
222
222
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
223
223
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
224
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
224
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
225
225
|
};
|
|
226
226
|
products: {
|
|
227
227
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|