autumn-js 0.0.116 → 0.1.0
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 +18 -18
- package/dist/libraries/backend/better-auth.d.ts +18 -18
- package/dist/libraries/backend/convex.d.mts +1 -0
- package/dist/libraries/backend/convex.d.ts +1 -0
- package/dist/libraries/backend/convex.js +7 -5
- package/dist/libraries/backend/convex.mjs +7 -5
- package/dist/libraries/backend/elysia.d.mts +3 -3
- package/dist/libraries/backend/elysia.d.ts +3 -3
- package/dist/libraries/backend/elysia.js +50 -9
- package/dist/libraries/backend/elysia.mjs +51 -8
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +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/react/AutumnContext.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +2 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +2 -2
- package/dist/libraries/react/{ReactAutumnClient-DooIpMm0.d.mts → ReactAutumnClient-BK3wjb-u.d.mts} +18 -18
- package/dist/libraries/react/{ReactAutumnClient-5mFEwitR.d.ts → ReactAutumnClient-Bh0Sgw6f.d.ts} +18 -18
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.js +2 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +3 -3
- package/dist/libraries/react/{attachTypes-CSutLgVn.d.ts → attachTypes-Cy6WgUas.d.ts} +7 -7
- package/dist/libraries/react/{attachTypes-By0coJIV.d.mts → attachTypes-DKmoXHQO.d.mts} +7 -7
- package/dist/libraries/react/{chunk-AXHU3KAH.mjs → chunk-4NCB2TMQ.mjs} +1 -1
- package/dist/libraries/react/{chunk-EXUNRZTP.mjs → chunk-53HYUF2F.mjs} +2 -1
- package/dist/libraries/react/{chunk-77DMPCGK.mjs → chunk-BGLWB5O2.mjs} +4 -4
- package/dist/libraries/react/{chunk-QJJC6MB3.mjs → chunk-JLJPPCQJ.mjs} +1 -1
- package/dist/libraries/react/{chunk-MPA65MFU.mjs → chunk-TM3NBNVM.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/clientCompMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +20 -20
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +20 -20
- 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/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 +2 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +6 -6
- 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.mjs +6 -6
- 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 +2 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +6 -6
- 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-Bbmd8V3j.d.mts → cusTypes-Dlt0fQmq.d.mts} +7 -7
- package/dist/libraries/react/{cusTypes-d_DR9uFs.d.ts → cusTypes-eNmWJ2rC.d.ts} +7 -7
- package/dist/libraries/react/{entTypes-B2DgO6PV.d.mts → entTypes-BDZUfZE_.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-D6eoGCKH.d.ts → entTypes-B_DvaeRL.d.ts} +1 -1
- package/dist/libraries/react/{genTypes-C2VFQqmX.d.mts → genTypes-BIPS92_Q.d.mts} +5 -5
- package/dist/libraries/react/{genTypes-BNXXZTFn.d.ts → genTypes-Rn-oq2sc.d.ts} +5 -5
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +7 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +7 -7
- 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/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomer.js +2 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +2 -2
- 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 +2 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +1 -1
- package/dist/libraries/react/hooks/useEntity.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntity.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.mts +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.ts +8 -8
- 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/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- 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/useProductsBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
- package/dist/libraries/react/index.js +2 -1
- package/dist/libraries/react/index.mjs +2 -1
- 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 +15 -15
- package/dist/next/server/cusActions.d.ts +15 -15
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/package.json +7 -4
- package/dist/libraries/backend/{referralTypes-DXhjwazw.d.ts → referralTypes-DHs1hY4_.d.ts} +35 -35
- package/dist/libraries/backend/{referralTypes-Dxn4bOpT.d.mts → referralTypes-DRsv8not.d.mts} +35 -35
- package/dist/libraries/react/{prodTypes-B3iWy6kz.d.mts → prodTypes-DuLXGCiA.d.mts} +2 -2
- package/dist/libraries/react/{prodTypes-B3iWy6kz.d.ts → prodTypes-DuLXGCiA.d.ts} +2 -2
- package/dist/next/server/{cusTypes-MnneoF1F.d.ts → cusTypes-B0zde-Pl.d.mts} +4 -4
- package/dist/next/server/{cusTypes-MnneoF1F.d.mts → cusTypes-B0zde-Pl.d.ts} +4 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { A as AutumnClient } from '../ReactAutumnClient-Bh0Sgw6f.js';
|
|
2
2
|
import { SetupPaymentParams, CancelParams, CheckParams, TrackParams, OpenBillingPortalParams, QueryParams } from './types/clientGenTypes.js';
|
|
3
|
-
import { S as SetupPaymentResult, C as CancelResult, a as CheckResult, T as TrackResult, Q as QueryResult } from '../genTypes-
|
|
4
|
-
import { C as CheckoutResult, A as AttachResult } from '../attachTypes-
|
|
5
|
-
import { A as AutumnPromise } from '../entTypes-
|
|
6
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
+
import { S as SetupPaymentResult, C as CancelResult, a as CheckResult, T as TrackResult, Q as QueryResult } from '../genTypes-Rn-oq2sc.js';
|
|
4
|
+
import { C as CheckoutResult, A as AttachResult } from '../attachTypes-Cy6WgUas.js';
|
|
5
|
+
import { A as AutumnPromise } from '../entTypes-B_DvaeRL.js';
|
|
6
|
+
import { B as BillingPortalResult } from '../cusTypes-eNmWJ2rC.js';
|
|
7
7
|
import { CheckoutParams, AttachParams } from './types/clientAttachTypes.js';
|
|
8
8
|
import './types/clientEntTypes.js';
|
|
9
9
|
import '../error-DHbclCVh.js';
|
|
10
|
-
import '../prodTypes-
|
|
10
|
+
import '../prodTypes-DuLXGCiA.js';
|
|
11
11
|
import 'zod';
|
|
12
12
|
|
|
13
13
|
declare function checkoutMethod(this: AutumnClient, params: CheckoutParams): AutumnPromise<CheckoutResult>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
2
|
-
import { P as Product } from '../prodTypes-
|
|
3
|
-
import { A as AutumnPromise } from '../entTypes-
|
|
1
|
+
import { A as AutumnClient } from '../ReactAutumnClient-BK3wjb-u.mjs';
|
|
2
|
+
import { P as Product } from '../prodTypes-DuLXGCiA.mjs';
|
|
3
|
+
import { A as AutumnPromise } from '../entTypes-BDZUfZE_.mjs';
|
|
4
4
|
import './types/clientEntTypes.mjs';
|
|
5
5
|
import './types/clientGenTypes.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.mjs';
|
|
8
|
-
import '../genTypes-
|
|
9
|
-
import '../attachTypes-
|
|
10
|
-
import '../cusTypes-
|
|
8
|
+
import '../genTypes-BIPS92_Q.mjs';
|
|
9
|
+
import '../attachTypes-DKmoXHQO.mjs';
|
|
10
|
+
import '../cusTypes-Dlt0fQmq.mjs';
|
|
11
11
|
|
|
12
12
|
declare function listProductsMethod(this: AutumnClient): AutumnPromise<{
|
|
13
13
|
list: Product[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
2
|
-
import { P as Product } from '../prodTypes-
|
|
3
|
-
import { A as AutumnPromise } from '../entTypes-
|
|
1
|
+
import { A as AutumnClient } from '../ReactAutumnClient-Bh0Sgw6f.js';
|
|
2
|
+
import { P as Product } from '../prodTypes-DuLXGCiA.js';
|
|
3
|
+
import { A as AutumnPromise } from '../entTypes-B_DvaeRL.js';
|
|
4
4
|
import './types/clientEntTypes.js';
|
|
5
5
|
import './types/clientGenTypes.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.js';
|
|
8
|
-
import '../genTypes-
|
|
9
|
-
import '../attachTypes-
|
|
10
|
-
import '../cusTypes-
|
|
8
|
+
import '../genTypes-Rn-oq2sc.js';
|
|
9
|
+
import '../attachTypes-Cy6WgUas.js';
|
|
10
|
+
import '../cusTypes-eNmWJ2rC.js';
|
|
11
11
|
|
|
12
12
|
declare function listProductsMethod(this: AutumnClient): AutumnPromise<{
|
|
13
13
|
list: Product[];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as AutumnPromise } from '../entTypes-
|
|
2
|
-
import { A as AutumnClient, C as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../ReactAutumnClient-
|
|
1
|
+
import { A as AutumnPromise } from '../entTypes-BDZUfZE_.mjs';
|
|
2
|
+
import { A as AutumnClient, C as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../ReactAutumnClient-BK3wjb-u.mjs';
|
|
3
3
|
import { CreateReferralCodeParams, RedeemReferralCodeParams } from './types/clientReferralTypes.mjs';
|
|
4
4
|
import '../error-DHbclCVh.mjs';
|
|
5
|
-
import '../cusTypes-
|
|
6
|
-
import '../prodTypes-
|
|
5
|
+
import '../cusTypes-Dlt0fQmq.mjs';
|
|
6
|
+
import '../prodTypes-DuLXGCiA.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import './types/clientEntTypes.mjs';
|
|
9
9
|
import './types/clientGenTypes.mjs';
|
|
10
|
-
import '../genTypes-
|
|
11
|
-
import '../attachTypes-
|
|
10
|
+
import '../genTypes-BIPS92_Q.mjs';
|
|
11
|
+
import '../attachTypes-DKmoXHQO.mjs';
|
|
12
12
|
|
|
13
13
|
declare function createCode(this: AutumnClient, params: CreateReferralCodeParams): AutumnPromise<CreateReferralCodeResult>;
|
|
14
14
|
declare function redeemCode(this: AutumnClient, params: RedeemReferralCodeParams): AutumnPromise<RedeemReferralCodeResult>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as AutumnPromise } from '../entTypes-
|
|
2
|
-
import { A as AutumnClient, C as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../ReactAutumnClient-
|
|
1
|
+
import { A as AutumnPromise } from '../entTypes-B_DvaeRL.js';
|
|
2
|
+
import { A as AutumnClient, C as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../ReactAutumnClient-Bh0Sgw6f.js';
|
|
3
3
|
import { CreateReferralCodeParams, RedeemReferralCodeParams } from './types/clientReferralTypes.js';
|
|
4
4
|
import '../error-DHbclCVh.js';
|
|
5
|
-
import '../cusTypes-
|
|
6
|
-
import '../prodTypes-
|
|
5
|
+
import '../cusTypes-eNmWJ2rC.js';
|
|
6
|
+
import '../prodTypes-DuLXGCiA.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import './types/clientEntTypes.js';
|
|
9
9
|
import './types/clientGenTypes.js';
|
|
10
|
-
import '../genTypes-
|
|
11
|
-
import '../attachTypes-
|
|
10
|
+
import '../genTypes-Rn-oq2sc.js';
|
|
11
|
+
import '../attachTypes-Cy6WgUas.js';
|
|
12
12
|
|
|
13
13
|
declare function createCode(this: AutumnClient, params: CreateReferralCodeParams): AutumnPromise<CreateReferralCodeResult>;
|
|
14
14
|
declare function redeemCode(this: AutumnClient, params: RedeemReferralCodeParams): AutumnPromise<RedeemReferralCodeResult>;
|
|
@@ -4,11 +4,11 @@ declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
|
4
4
|
featureId: z.ZodString;
|
|
5
5
|
quantity: z.ZodNumber;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
quantity: number;
|
|
8
7
|
featureId: string;
|
|
9
|
-
}, {
|
|
10
8
|
quantity: number;
|
|
9
|
+
}, {
|
|
11
10
|
featureId: string;
|
|
11
|
+
quantity: number;
|
|
12
12
|
}>;
|
|
13
13
|
type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
|
|
14
14
|
declare const AttachParamsSchema: z.ZodObject<{
|
|
@@ -18,11 +18,11 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
18
18
|
featureId: z.ZodString;
|
|
19
19
|
quantity: z.ZodNumber;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
quantity: number;
|
|
22
21
|
featureId: string;
|
|
23
|
-
}, {
|
|
24
22
|
quantity: number;
|
|
23
|
+
}, {
|
|
25
24
|
featureId: string;
|
|
25
|
+
quantity: number;
|
|
26
26
|
}>, "many">>;
|
|
27
27
|
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
28
|
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -39,37 +39,37 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
39
39
|
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
options?: {
|
|
42
|
-
quantity: number;
|
|
43
42
|
featureId: string;
|
|
43
|
+
quantity: number;
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
metadata?: Record<string, string> | undefined;
|
|
46
|
-
reward?: string | undefined;
|
|
47
46
|
productId?: string | undefined;
|
|
48
47
|
entityId?: string | undefined;
|
|
49
|
-
dialog?: any;
|
|
50
|
-
entityData?: any;
|
|
51
48
|
productIds?: string[] | undefined;
|
|
52
49
|
freeTrial?: boolean | undefined;
|
|
53
50
|
successUrl?: string | undefined;
|
|
54
51
|
forceCheckout?: boolean | undefined;
|
|
52
|
+
dialog?: any;
|
|
53
|
+
entityData?: any;
|
|
55
54
|
openInNewTab?: boolean | undefined;
|
|
55
|
+
reward?: string | undefined;
|
|
56
56
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
options?: {
|
|
59
|
-
quantity: number;
|
|
60
59
|
featureId: string;
|
|
60
|
+
quantity: number;
|
|
61
61
|
}[] | undefined;
|
|
62
62
|
metadata?: Record<string, string> | undefined;
|
|
63
|
-
reward?: string | undefined;
|
|
64
63
|
productId?: string | undefined;
|
|
65
64
|
entityId?: string | undefined;
|
|
66
|
-
dialog?: any;
|
|
67
|
-
entityData?: any;
|
|
68
65
|
productIds?: string[] | undefined;
|
|
69
66
|
freeTrial?: boolean | undefined;
|
|
70
67
|
successUrl?: string | undefined;
|
|
71
68
|
forceCheckout?: boolean | undefined;
|
|
69
|
+
dialog?: any;
|
|
70
|
+
entityData?: any;
|
|
72
71
|
openInNewTab?: boolean | undefined;
|
|
72
|
+
reward?: string | undefined;
|
|
73
73
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
74
74
|
}>;
|
|
75
75
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
@@ -81,11 +81,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
81
81
|
featureId: z.ZodString;
|
|
82
82
|
quantity: z.ZodNumber;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
quantity: number;
|
|
85
84
|
featureId: string;
|
|
86
|
-
}, {
|
|
87
85
|
quantity: number;
|
|
86
|
+
}, {
|
|
88
87
|
featureId: string;
|
|
88
|
+
quantity: number;
|
|
89
89
|
}>, "many">>;
|
|
90
90
|
successUrl: z.ZodOptional<z.ZodString>;
|
|
91
91
|
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -95,28 +95,28 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
96
|
productId: string;
|
|
97
97
|
options?: {
|
|
98
|
-
quantity: number;
|
|
99
98
|
featureId: string;
|
|
99
|
+
quantity: number;
|
|
100
100
|
}[] | undefined;
|
|
101
|
-
reward?: string | undefined;
|
|
102
101
|
entityId?: string | undefined;
|
|
102
|
+
successUrl?: string | undefined;
|
|
103
103
|
dialog?: any;
|
|
104
104
|
entityData?: any;
|
|
105
|
-
successUrl?: string | undefined;
|
|
106
105
|
openInNewTab?: boolean | undefined;
|
|
106
|
+
reward?: string | undefined;
|
|
107
107
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
productId: string;
|
|
110
110
|
options?: {
|
|
111
|
-
quantity: number;
|
|
112
111
|
featureId: string;
|
|
112
|
+
quantity: number;
|
|
113
113
|
}[] | undefined;
|
|
114
|
-
reward?: string | undefined;
|
|
115
114
|
entityId?: string | undefined;
|
|
115
|
+
successUrl?: string | undefined;
|
|
116
116
|
dialog?: any;
|
|
117
117
|
entityData?: any;
|
|
118
|
-
successUrl?: string | undefined;
|
|
119
118
|
openInNewTab?: boolean | undefined;
|
|
119
|
+
reward?: string | undefined;
|
|
120
120
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
|
|
@@ -4,11 +4,11 @@ declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
|
4
4
|
featureId: z.ZodString;
|
|
5
5
|
quantity: z.ZodNumber;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
quantity: number;
|
|
8
7
|
featureId: string;
|
|
9
|
-
}, {
|
|
10
8
|
quantity: number;
|
|
9
|
+
}, {
|
|
11
10
|
featureId: string;
|
|
11
|
+
quantity: number;
|
|
12
12
|
}>;
|
|
13
13
|
type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
|
|
14
14
|
declare const AttachParamsSchema: z.ZodObject<{
|
|
@@ -18,11 +18,11 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
18
18
|
featureId: z.ZodString;
|
|
19
19
|
quantity: z.ZodNumber;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
quantity: number;
|
|
22
21
|
featureId: string;
|
|
23
|
-
}, {
|
|
24
22
|
quantity: number;
|
|
23
|
+
}, {
|
|
25
24
|
featureId: string;
|
|
25
|
+
quantity: number;
|
|
26
26
|
}>, "many">>;
|
|
27
27
|
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
28
|
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -39,37 +39,37 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
39
39
|
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
options?: {
|
|
42
|
-
quantity: number;
|
|
43
42
|
featureId: string;
|
|
43
|
+
quantity: number;
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
metadata?: Record<string, string> | undefined;
|
|
46
|
-
reward?: string | undefined;
|
|
47
46
|
productId?: string | undefined;
|
|
48
47
|
entityId?: string | undefined;
|
|
49
|
-
dialog?: any;
|
|
50
|
-
entityData?: any;
|
|
51
48
|
productIds?: string[] | undefined;
|
|
52
49
|
freeTrial?: boolean | undefined;
|
|
53
50
|
successUrl?: string | undefined;
|
|
54
51
|
forceCheckout?: boolean | undefined;
|
|
52
|
+
dialog?: any;
|
|
53
|
+
entityData?: any;
|
|
55
54
|
openInNewTab?: boolean | undefined;
|
|
55
|
+
reward?: string | undefined;
|
|
56
56
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
options?: {
|
|
59
|
-
quantity: number;
|
|
60
59
|
featureId: string;
|
|
60
|
+
quantity: number;
|
|
61
61
|
}[] | undefined;
|
|
62
62
|
metadata?: Record<string, string> | undefined;
|
|
63
|
-
reward?: string | undefined;
|
|
64
63
|
productId?: string | undefined;
|
|
65
64
|
entityId?: string | undefined;
|
|
66
|
-
dialog?: any;
|
|
67
|
-
entityData?: any;
|
|
68
65
|
productIds?: string[] | undefined;
|
|
69
66
|
freeTrial?: boolean | undefined;
|
|
70
67
|
successUrl?: string | undefined;
|
|
71
68
|
forceCheckout?: boolean | undefined;
|
|
69
|
+
dialog?: any;
|
|
70
|
+
entityData?: any;
|
|
72
71
|
openInNewTab?: boolean | undefined;
|
|
72
|
+
reward?: string | undefined;
|
|
73
73
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
74
74
|
}>;
|
|
75
75
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
@@ -81,11 +81,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
81
81
|
featureId: z.ZodString;
|
|
82
82
|
quantity: z.ZodNumber;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
quantity: number;
|
|
85
84
|
featureId: string;
|
|
86
|
-
}, {
|
|
87
85
|
quantity: number;
|
|
86
|
+
}, {
|
|
88
87
|
featureId: string;
|
|
88
|
+
quantity: number;
|
|
89
89
|
}>, "many">>;
|
|
90
90
|
successUrl: z.ZodOptional<z.ZodString>;
|
|
91
91
|
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -95,28 +95,28 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
96
|
productId: string;
|
|
97
97
|
options?: {
|
|
98
|
-
quantity: number;
|
|
99
98
|
featureId: string;
|
|
99
|
+
quantity: number;
|
|
100
100
|
}[] | undefined;
|
|
101
|
-
reward?: string | undefined;
|
|
102
101
|
entityId?: string | undefined;
|
|
102
|
+
successUrl?: string | undefined;
|
|
103
103
|
dialog?: any;
|
|
104
104
|
entityData?: any;
|
|
105
|
-
successUrl?: string | undefined;
|
|
106
105
|
openInNewTab?: boolean | undefined;
|
|
106
|
+
reward?: string | undefined;
|
|
107
107
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
productId: string;
|
|
110
110
|
options?: {
|
|
111
|
-
quantity: number;
|
|
112
111
|
featureId: string;
|
|
112
|
+
quantity: number;
|
|
113
113
|
}[] | undefined;
|
|
114
|
-
reward?: string | undefined;
|
|
115
114
|
entityId?: string | undefined;
|
|
115
|
+
successUrl?: string | undefined;
|
|
116
116
|
dialog?: any;
|
|
117
117
|
entityData?: any;
|
|
118
|
-
successUrl?: string | undefined;
|
|
119
118
|
openInNewTab?: boolean | undefined;
|
|
119
|
+
reward?: string | undefined;
|
|
120
120
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
|
|
@@ -27,20 +27,20 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
27
27
|
productId?: string | undefined;
|
|
28
28
|
entityId?: string | undefined;
|
|
29
29
|
featureId?: string | undefined;
|
|
30
|
+
dialog?: any;
|
|
31
|
+
entityData?: any;
|
|
30
32
|
requiredBalance?: number | undefined;
|
|
31
33
|
sendEvent?: boolean | undefined;
|
|
32
34
|
withPreview?: boolean | undefined;
|
|
33
|
-
dialog?: any;
|
|
34
|
-
entityData?: any;
|
|
35
35
|
}, {
|
|
36
36
|
productId?: string | undefined;
|
|
37
37
|
entityId?: string | undefined;
|
|
38
38
|
featureId?: string | undefined;
|
|
39
|
+
dialog?: any;
|
|
40
|
+
entityData?: any;
|
|
39
41
|
requiredBalance?: number | undefined;
|
|
40
42
|
sendEvent?: boolean | undefined;
|
|
41
43
|
withPreview?: boolean | undefined;
|
|
42
|
-
dialog?: any;
|
|
43
|
-
entityData?: any;
|
|
44
44
|
}>;
|
|
45
45
|
type CheckParams = z.infer<typeof CheckParamsSchema>;
|
|
46
46
|
declare const TrackParamsSchema: z.ZodObject<{
|
|
@@ -27,20 +27,20 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
27
27
|
productId?: string | undefined;
|
|
28
28
|
entityId?: string | undefined;
|
|
29
29
|
featureId?: string | undefined;
|
|
30
|
+
dialog?: any;
|
|
31
|
+
entityData?: any;
|
|
30
32
|
requiredBalance?: number | undefined;
|
|
31
33
|
sendEvent?: boolean | undefined;
|
|
32
34
|
withPreview?: boolean | undefined;
|
|
33
|
-
dialog?: any;
|
|
34
|
-
entityData?: any;
|
|
35
35
|
}, {
|
|
36
36
|
productId?: string | undefined;
|
|
37
37
|
entityId?: string | undefined;
|
|
38
38
|
featureId?: string | undefined;
|
|
39
|
+
dialog?: any;
|
|
40
|
+
entityData?: any;
|
|
39
41
|
requiredBalance?: number | undefined;
|
|
40
42
|
sendEvent?: boolean | undefined;
|
|
41
43
|
withPreview?: boolean | undefined;
|
|
42
|
-
dialog?: any;
|
|
43
|
-
entityData?: any;
|
|
44
44
|
}>;
|
|
45
45
|
type CheckParams = z.infer<typeof CheckParamsSchema>;
|
|
46
46
|
declare const TrackParamsSchema: z.ZodObject<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { C as CheckoutResult } from '../../attachTypes-
|
|
4
|
-
import '../../prodTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../../attachTypes-DKmoXHQO.mjs';
|
|
4
|
+
import '../../prodTypes-DuLXGCiA.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface CheckoutDialogProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { C as CheckoutResult } from '../../attachTypes-
|
|
4
|
-
import '../../prodTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../../attachTypes-Cy6WgUas.js';
|
|
4
|
+
import '../../prodTypes-DuLXGCiA.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface CheckoutDialogProps {
|
|
@@ -7168,7 +7168,8 @@ var useCustomerBase = ({
|
|
|
7168
7168
|
mutate
|
|
7169
7169
|
} = (0, import_swr2.default)(queryKey, fetchCustomer, {
|
|
7170
7170
|
fallbackData: null,
|
|
7171
|
-
|
|
7171
|
+
// Default to 5 minutes
|
|
7172
|
+
swrConfig: { refreshInterval: 1e3 * 60 * 5, ...params?.swrConfig }
|
|
7172
7173
|
});
|
|
7173
7174
|
const autumnFunctions = useAutumnBase({
|
|
7174
7175
|
context,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
CheckoutDialog,
|
|
6
6
|
PriceItem,
|
|
7
7
|
PricingDialogButton
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-URQMBRFZ.mjs";
|
|
8
|
+
} from "../../chunk-BGLWB5O2.mjs";
|
|
10
9
|
import "../../chunk-BLM4DAAR.mjs";
|
|
11
10
|
import "../../chunk-I5ZGIAIX.mjs";
|
|
11
|
+
import "../../chunk-URQMBRFZ.mjs";
|
|
12
12
|
import "../../chunk-GUM4HIGI.mjs";
|
|
13
13
|
import "../../chunk-OTZ65PCT.mjs";
|
|
14
14
|
import "../../chunk-YWQTQ72B.mjs";
|
|
@@ -26,13 +26,13 @@ import "../../chunk-MRZA4JWN.mjs";
|
|
|
26
26
|
import "../../chunk-PFN52PHR.mjs";
|
|
27
27
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
28
28
|
import "../../chunk-IFZCH7DR.mjs";
|
|
29
|
-
import "../../chunk-
|
|
29
|
+
import "../../chunk-JLJPPCQJ.mjs";
|
|
30
30
|
import "../../chunk-7RICWVXV.mjs";
|
|
31
31
|
import "../../chunk-WZG3QTZI.mjs";
|
|
32
|
-
import "../../chunk-
|
|
33
|
-
import "../../chunk-
|
|
32
|
+
import "../../chunk-4NCB2TMQ.mjs";
|
|
33
|
+
import "../../chunk-TM3NBNVM.mjs";
|
|
34
34
|
import "../../chunk-RFSQBGLO.mjs";
|
|
35
|
-
import "../../chunk-
|
|
35
|
+
import "../../chunk-53HYUF2F.mjs";
|
|
36
36
|
import "../../chunk-LFLX6NJU.mjs";
|
|
37
37
|
import "../../chunk-UAK4XMNC.mjs";
|
|
38
38
|
import "../../chunk-UCUAGLCJ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CheckoutResult } from '../../../attachTypes-
|
|
3
|
-
import '../../../prodTypes-
|
|
2
|
+
import { C as CheckoutResult } from '../../../attachTypes-DKmoXHQO.mjs';
|
|
3
|
+
import '../../../prodTypes-DuLXGCiA.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
declare const getCheckoutContent: (checkoutResult: CheckoutResult) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CheckoutResult } from '../../../attachTypes-
|
|
3
|
-
import '../../../prodTypes-
|
|
2
|
+
import { C as CheckoutResult } from '../../../attachTypes-Cy6WgUas.js';
|
|
3
|
+
import '../../../prodTypes-DuLXGCiA.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
declare const getCheckoutContent: (checkoutResult: CheckoutResult) => {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
PaywallDialog
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-URQMBRFZ.mjs";
|
|
6
|
+
} from "../../chunk-BGLWB5O2.mjs";
|
|
8
7
|
import "../../chunk-BLM4DAAR.mjs";
|
|
9
8
|
import "../../chunk-I5ZGIAIX.mjs";
|
|
9
|
+
import "../../chunk-URQMBRFZ.mjs";
|
|
10
10
|
import "../../chunk-GUM4HIGI.mjs";
|
|
11
11
|
import "../../chunk-OTZ65PCT.mjs";
|
|
12
12
|
import "../../chunk-YWQTQ72B.mjs";
|
|
@@ -24,13 +24,13 @@ import "../../chunk-MRZA4JWN.mjs";
|
|
|
24
24
|
import "../../chunk-PFN52PHR.mjs";
|
|
25
25
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
26
26
|
import "../../chunk-IFZCH7DR.mjs";
|
|
27
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-JLJPPCQJ.mjs";
|
|
28
28
|
import "../../chunk-7RICWVXV.mjs";
|
|
29
29
|
import "../../chunk-WZG3QTZI.mjs";
|
|
30
|
-
import "../../chunk-
|
|
31
|
-
import "../../chunk-
|
|
30
|
+
import "../../chunk-4NCB2TMQ.mjs";
|
|
31
|
+
import "../../chunk-TM3NBNVM.mjs";
|
|
32
32
|
import "../../chunk-RFSQBGLO.mjs";
|
|
33
|
-
import "../../chunk-
|
|
33
|
+
import "../../chunk-53HYUF2F.mjs";
|
|
34
34
|
import "../../chunk-LFLX6NJU.mjs";
|
|
35
35
|
import "../../chunk-UAK4XMNC.mjs";
|
|
36
36
|
import "../../chunk-UCUAGLCJ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { P as Product, a as ProductItem } from '../../prodTypes-
|
|
3
|
+
import { P as Product, a as ProductItem } from '../../prodTypes-DuLXGCiA.mjs';
|
|
4
4
|
import { ProductDetails } from '../../client/types/clientPricingTableTypes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { P as Product, a as ProductItem } from '../../prodTypes-
|
|
3
|
+
import { P as Product, a as ProductItem } from '../../prodTypes-DuLXGCiA.js';
|
|
4
4
|
import { ProductDetails } from '../../client/types/clientPricingTableTypes.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -1599,7 +1599,8 @@ var useCustomerBase = ({
|
|
|
1599
1599
|
mutate
|
|
1600
1600
|
} = (0, import_swr2.default)(queryKey, fetchCustomer, {
|
|
1601
1601
|
fallbackData: null,
|
|
1602
|
-
|
|
1602
|
+
// Default to 5 minutes
|
|
1603
|
+
swrConfig: { refreshInterval: 1e3 * 60 * 5, ...params?.swrConfig }
|
|
1603
1604
|
});
|
|
1604
1605
|
const autumnFunctions = useAutumnBase({
|
|
1605
1606
|
context,
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
PricingTableContainer,
|
|
10
10
|
RecommendedBadge,
|
|
11
11
|
usePricingTableContext
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-URQMBRFZ.mjs";
|
|
12
|
+
} from "../../chunk-BGLWB5O2.mjs";
|
|
14
13
|
import "../../chunk-BLM4DAAR.mjs";
|
|
15
14
|
import "../../chunk-I5ZGIAIX.mjs";
|
|
15
|
+
import "../../chunk-URQMBRFZ.mjs";
|
|
16
16
|
import "../../chunk-GUM4HIGI.mjs";
|
|
17
17
|
import "../../chunk-OTZ65PCT.mjs";
|
|
18
18
|
import "../../chunk-YWQTQ72B.mjs";
|
|
@@ -30,13 +30,13 @@ import "../../chunk-MRZA4JWN.mjs";
|
|
|
30
30
|
import "../../chunk-PFN52PHR.mjs";
|
|
31
31
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
32
32
|
import "../../chunk-IFZCH7DR.mjs";
|
|
33
|
-
import "../../chunk-
|
|
33
|
+
import "../../chunk-JLJPPCQJ.mjs";
|
|
34
34
|
import "../../chunk-7RICWVXV.mjs";
|
|
35
35
|
import "../../chunk-WZG3QTZI.mjs";
|
|
36
|
-
import "../../chunk-
|
|
37
|
-
import "../../chunk-
|
|
36
|
+
import "../../chunk-4NCB2TMQ.mjs";
|
|
37
|
+
import "../../chunk-TM3NBNVM.mjs";
|
|
38
38
|
import "../../chunk-RFSQBGLO.mjs";
|
|
39
|
-
import "../../chunk-
|
|
39
|
+
import "../../chunk-53HYUF2F.mjs";
|
|
40
40
|
import "../../chunk-LFLX6NJU.mjs";
|
|
41
41
|
import "../../chunk-UAK4XMNC.mjs";
|
|
42
42
|
import "../../chunk-UCUAGLCJ.mjs";
|
|
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
6
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
10
|
asChild?: boolean;
|
|
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
6
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
10
|
asChild?: boolean;
|