autumn-js 0.1.19 → 0.1.21
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 +28 -28
- package/dist/libraries/backend/better-auth.d.ts +28 -28
- package/dist/libraries/react/AutumnContext.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +2 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
- package/dist/libraries/react/{ReactAutumnClient-BxDUcOLV.d.ts → ReactAutumnClient-BqEB-TPz.d.ts} +6 -5
- package/dist/libraries/react/{ReactAutumnClient-C-ybqq9t.d.mts → ReactAutumnClient-_y4Ea48c.d.mts} +6 -5
- 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 +9 -9
- package/dist/libraries/react/{attachTypes-DVF4f7Hw.d.ts → attachTypes-DoCshKK6.d.ts} +1 -1
- package/dist/libraries/react/{attachTypes-DJIr5ldB.d.mts → attachTypes-gI6T0O95.d.mts} +1 -1
- package/dist/libraries/react/{chunk-FD42XGXU.mjs → chunk-74HNY7BP.mjs} +1 -1
- package/dist/libraries/react/{chunk-AKE6UAQS.mjs → chunk-AS4XOUEI.mjs} +1 -1
- package/dist/libraries/react/{chunk-TMTGUQGT.mjs → chunk-JWT4MREG.mjs} +2 -2
- package/dist/libraries/react/{chunk-XT6MF3ZV.mjs → chunk-KHIB6HEY.mjs} +2 -2
- package/dist/libraries/react/{chunk-L4FS7ENO.mjs → chunk-NYQF7NO3.mjs} +1 -1
- package/dist/libraries/react/{chunk-WFMJOMJP.mjs → chunk-OCP7PVSZ.mjs} +3 -3
- package/dist/libraries/react/{chunk-YXLJ7SUW.mjs → chunk-PDPOI2J7.mjs} +21 -21
- package/dist/libraries/react/{chunk-RJSVDPCH.mjs → chunk-PN6WKUSX.mjs} +1 -1
- package/dist/libraries/react/{chunk-BM36COXS.mjs → chunk-S744ECJP.mjs} +2 -1
- package/dist/libraries/react/{chunk-64M53BCF.mjs → chunk-VELC6P5V.mjs} +2 -2
- package/dist/libraries/react/{chunk-5NRXGCQW.mjs → chunk-XUS3TD2B.mjs} +2 -2
- package/dist/libraries/react/{chunk-4IVY6AXO.mjs → chunk-Y5S2HOFE.mjs} +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +1 -0
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +1 -0
- package/dist/libraries/react/client/types/clientAttachTypes.js +1 -0
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +1 -0
- 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 +22 -22
- 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 +22 -22
- 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 +22 -22
- package/dist/libraries/react/components/ui/popover.mjs +2 -2
- package/dist/libraries/react/{cusTypes-CEb_KwPo.d.ts → cusTypes-DckkwpWg.d.ts} +1 -1
- package/dist/libraries/react/{cusTypes-DynqPCZH.d.mts → cusTypes-UwHT30-L.d.mts} +1 -1
- package/dist/libraries/react/{entTypes--Y-4T20Y.d.ts → entTypes-BWsQfaNZ.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-DjasDDYh.d.mts → entTypes-DcRz1vjc.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-DdYlVEah.d.mts → genTypes-C_ilxndU.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-aPPwPimh.d.ts → genTypes-DjcQWIOM.d.ts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.js +2 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomer.js +2 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.js +2 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
- package/dist/libraries/react/hooks/useEntity.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntity.js +2 -1
- package/dist/libraries/react/hooks/useEntity.mjs +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.js +2 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
- package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- package/dist/libraries/react/hooks/usePaywall.mjs +6 -6
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
- 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.d.mts +1 -0
- package/dist/libraries/react/index.d.ts +1 -0
- package/dist/libraries/react/index.js +2 -1
- package/dist/libraries/react/index.mjs +2 -1
- package/dist/libraries/react/{prodTypes-C8xRoBP7.d.ts → prodTypes-B8NdKyKo.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes-C8xRoBP7.d.mts → prodTypes-B8NdKyKo.d.ts} +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +2 -1
- package/dist/next/client/NextAutumnClient.d.ts +2 -1
- package/dist/next/client/{clientAttachTypes-anFjm97z.d.mts → clientAttachTypes-DPbDkX9E.d.mts} +1 -0
- package/dist/next/client/{clientAttachTypes-CQi73rMl.d.ts → clientAttachTypes-DWfLqjO3.d.ts} +1 -0
- 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 -1
- package/dist/next/client/hooks/useCustomer.d.ts +1 -1
- package/dist/next/client/hooks/useEntity.d.mts +1 -1
- package/dist/next/client/hooks/useEntity.d.ts +1 -1
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-2OPGTDRC.mjs → chunk-JNJRQ5DT.mjs} +15 -15
- package/dist/libraries/react/{chunk-7BNGM5OQ.mjs → chunk-X6FMCHSB.mjs} +3 -3
|
@@ -92,15 +92,14 @@ declare const autumn: (options?: {
|
|
|
92
92
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
93
93
|
body: {
|
|
94
94
|
product_id: string;
|
|
95
|
+
entity_id?: string | undefined;
|
|
95
96
|
options?: {
|
|
96
97
|
feature_id: string;
|
|
97
98
|
quantity: number;
|
|
98
99
|
}[] | undefined;
|
|
99
100
|
product_ids?: string[] | undefined;
|
|
100
|
-
entity_id?: string | undefined;
|
|
101
|
-
force_checkout?: boolean | undefined;
|
|
102
|
-
invoice?: boolean | undefined;
|
|
103
101
|
success_url?: string | undefined;
|
|
102
|
+
force_checkout?: boolean | undefined;
|
|
104
103
|
customer_data?: {
|
|
105
104
|
name?: string | null | undefined;
|
|
106
105
|
email?: string | null | undefined;
|
|
@@ -109,6 +108,7 @@ declare const autumn: (options?: {
|
|
|
109
108
|
entity_data?: any;
|
|
110
109
|
checkout_session_params?: Record<string, any> | undefined;
|
|
111
110
|
reward?: string | undefined;
|
|
111
|
+
invoice?: boolean | undefined;
|
|
112
112
|
};
|
|
113
113
|
} & {
|
|
114
114
|
method?: "POST" | undefined;
|
|
@@ -135,16 +135,15 @@ declare const autumn: (options?: {
|
|
|
135
135
|
options: {
|
|
136
136
|
method: "POST";
|
|
137
137
|
body: z.ZodObject<{
|
|
138
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
139
|
+
product_id: z.ZodString;
|
|
138
140
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
141
|
feature_id: z.ZodString;
|
|
140
142
|
quantity: z.ZodNumber;
|
|
141
143
|
}, z.core.$strip>>>;
|
|
142
|
-
product_id: z.ZodString;
|
|
143
144
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
145
|
-
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
147
145
|
success_url: z.ZodOptional<z.ZodString>;
|
|
146
|
+
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
148
147
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
149
148
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
149
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -153,6 +152,7 @@ declare const autumn: (options?: {
|
|
|
153
152
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
154
153
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
155
154
|
reward: z.ZodOptional<z.ZodString>;
|
|
155
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
156
156
|
}, z.core.$strip>;
|
|
157
157
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
158
158
|
session: {
|
|
@@ -185,17 +185,17 @@ declare const autumn: (options?: {
|
|
|
185
185
|
attach: {
|
|
186
186
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
187
187
|
body: {
|
|
188
|
+
entity_id?: string | undefined;
|
|
189
|
+
metadata?: Record<string, string> | undefined;
|
|
190
|
+
product_id?: string | undefined;
|
|
188
191
|
options?: {
|
|
189
192
|
feature_id: string;
|
|
190
193
|
quantity: number;
|
|
191
194
|
}[] | undefined;
|
|
192
|
-
metadata?: Record<string, string> | undefined;
|
|
193
|
-
product_id?: string | undefined;
|
|
194
195
|
product_ids?: string[] | undefined;
|
|
195
|
-
|
|
196
|
-
force_checkout?: boolean | undefined;
|
|
197
|
-
invoice?: boolean | undefined;
|
|
196
|
+
free_trial?: boolean | undefined;
|
|
198
197
|
success_url?: string | undefined;
|
|
198
|
+
force_checkout?: boolean | undefined;
|
|
199
199
|
customer_data?: {
|
|
200
200
|
name?: string | null | undefined;
|
|
201
201
|
email?: string | null | undefined;
|
|
@@ -204,7 +204,7 @@ declare const autumn: (options?: {
|
|
|
204
204
|
entity_data?: any;
|
|
205
205
|
checkout_session_params?: Record<string, any> | undefined;
|
|
206
206
|
reward?: string | undefined;
|
|
207
|
-
|
|
207
|
+
invoice?: boolean | undefined;
|
|
208
208
|
};
|
|
209
209
|
} & {
|
|
210
210
|
method?: "POST" | undefined;
|
|
@@ -231,17 +231,17 @@ declare const autumn: (options?: {
|
|
|
231
231
|
options: {
|
|
232
232
|
method: "POST";
|
|
233
233
|
body: z.ZodObject<{
|
|
234
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
235
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
236
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
234
237
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
235
238
|
feature_id: z.ZodString;
|
|
236
239
|
quantity: z.ZodNumber;
|
|
237
240
|
}, z.core.$strip>>>;
|
|
238
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
239
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
240
241
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
|
-
|
|
242
|
-
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
-
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
244
243
|
success_url: z.ZodOptional<z.ZodString>;
|
|
244
|
+
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
245
245
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
246
246
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
247
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -250,7 +250,7 @@ declare const autumn: (options?: {
|
|
|
250
250
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
251
251
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
252
252
|
reward: z.ZodOptional<z.ZodString>;
|
|
253
|
-
|
|
253
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
254
254
|
}, z.core.$strip>;
|
|
255
255
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
256
256
|
session: {
|
|
@@ -283,15 +283,15 @@ declare const autumn: (options?: {
|
|
|
283
283
|
check: {
|
|
284
284
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
285
285
|
body: {
|
|
286
|
-
product_id?: string | undefined;
|
|
287
|
-
entity_id?: string | undefined;
|
|
288
286
|
feature_id?: string | undefined;
|
|
287
|
+
entity_id?: string | undefined;
|
|
288
|
+
required_balance?: number | undefined;
|
|
289
|
+
product_id?: string | undefined;
|
|
289
290
|
customer_data?: any;
|
|
290
291
|
entity_data?: {
|
|
291
292
|
feature_id: string;
|
|
292
293
|
name?: string | undefined;
|
|
293
294
|
} | undefined;
|
|
294
|
-
required_balance?: number | undefined;
|
|
295
295
|
send_event?: boolean | undefined;
|
|
296
296
|
with_preview?: boolean | undefined;
|
|
297
297
|
};
|
|
@@ -320,15 +320,15 @@ declare const autumn: (options?: {
|
|
|
320
320
|
options: {
|
|
321
321
|
method: "POST";
|
|
322
322
|
body: z.ZodObject<{
|
|
323
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
323
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
324
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
326
327
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
327
328
|
entity_data: z.ZodOptional<z.ZodObject<{
|
|
328
329
|
name: z.ZodOptional<z.ZodString>;
|
|
329
330
|
feature_id: z.ZodString;
|
|
330
331
|
}, z.core.$strip>>;
|
|
331
|
-
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
332
332
|
send_event: z.ZodOptional<z.ZodBoolean>;
|
|
333
333
|
with_preview: z.ZodOptional<z.ZodBoolean>;
|
|
334
334
|
}, z.core.$strip>;
|
|
@@ -363,8 +363,8 @@ declare const autumn: (options?: {
|
|
|
363
363
|
track: {
|
|
364
364
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
365
365
|
body: {
|
|
366
|
-
entity_id?: string | undefined;
|
|
367
366
|
feature_id?: string | undefined;
|
|
367
|
+
entity_id?: string | undefined;
|
|
368
368
|
customer_data?: any;
|
|
369
369
|
entity_data?: any;
|
|
370
370
|
value?: number | undefined;
|
|
@@ -396,8 +396,8 @@ declare const autumn: (options?: {
|
|
|
396
396
|
options: {
|
|
397
397
|
method: "POST";
|
|
398
398
|
body: z.ZodObject<{
|
|
399
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
400
399
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
400
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
401
401
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
402
402
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
403
403
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -464,8 +464,8 @@ declare const autumn: (options?: {
|
|
|
464
464
|
options: {
|
|
465
465
|
method: "POST";
|
|
466
466
|
body: z.ZodObject<{
|
|
467
|
-
product_id: z.ZodString;
|
|
468
467
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
468
|
+
product_id: z.ZodString;
|
|
469
469
|
cancel_immediately: z.ZodOptional<z.ZodBoolean>;
|
|
470
470
|
}, z.core.$strip>;
|
|
471
471
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
@@ -92,15 +92,14 @@ declare const autumn: (options?: {
|
|
|
92
92
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
93
93
|
body: {
|
|
94
94
|
product_id: string;
|
|
95
|
+
entity_id?: string | undefined;
|
|
95
96
|
options?: {
|
|
96
97
|
feature_id: string;
|
|
97
98
|
quantity: number;
|
|
98
99
|
}[] | undefined;
|
|
99
100
|
product_ids?: string[] | undefined;
|
|
100
|
-
entity_id?: string | undefined;
|
|
101
|
-
force_checkout?: boolean | undefined;
|
|
102
|
-
invoice?: boolean | undefined;
|
|
103
101
|
success_url?: string | undefined;
|
|
102
|
+
force_checkout?: boolean | undefined;
|
|
104
103
|
customer_data?: {
|
|
105
104
|
name?: string | null | undefined;
|
|
106
105
|
email?: string | null | undefined;
|
|
@@ -109,6 +108,7 @@ declare const autumn: (options?: {
|
|
|
109
108
|
entity_data?: any;
|
|
110
109
|
checkout_session_params?: Record<string, any> | undefined;
|
|
111
110
|
reward?: string | undefined;
|
|
111
|
+
invoice?: boolean | undefined;
|
|
112
112
|
};
|
|
113
113
|
} & {
|
|
114
114
|
method?: "POST" | undefined;
|
|
@@ -135,16 +135,15 @@ declare const autumn: (options?: {
|
|
|
135
135
|
options: {
|
|
136
136
|
method: "POST";
|
|
137
137
|
body: z.ZodObject<{
|
|
138
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
139
|
+
product_id: z.ZodString;
|
|
138
140
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
141
|
feature_id: z.ZodString;
|
|
140
142
|
quantity: z.ZodNumber;
|
|
141
143
|
}, z.core.$strip>>>;
|
|
142
|
-
product_id: z.ZodString;
|
|
143
144
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
145
|
-
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
147
145
|
success_url: z.ZodOptional<z.ZodString>;
|
|
146
|
+
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
148
147
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
149
148
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
149
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -153,6 +152,7 @@ declare const autumn: (options?: {
|
|
|
153
152
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
154
153
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
155
154
|
reward: z.ZodOptional<z.ZodString>;
|
|
155
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
156
156
|
}, z.core.$strip>;
|
|
157
157
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
158
158
|
session: {
|
|
@@ -185,17 +185,17 @@ declare const autumn: (options?: {
|
|
|
185
185
|
attach: {
|
|
186
186
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
187
187
|
body: {
|
|
188
|
+
entity_id?: string | undefined;
|
|
189
|
+
metadata?: Record<string, string> | undefined;
|
|
190
|
+
product_id?: string | undefined;
|
|
188
191
|
options?: {
|
|
189
192
|
feature_id: string;
|
|
190
193
|
quantity: number;
|
|
191
194
|
}[] | undefined;
|
|
192
|
-
metadata?: Record<string, string> | undefined;
|
|
193
|
-
product_id?: string | undefined;
|
|
194
195
|
product_ids?: string[] | undefined;
|
|
195
|
-
|
|
196
|
-
force_checkout?: boolean | undefined;
|
|
197
|
-
invoice?: boolean | undefined;
|
|
196
|
+
free_trial?: boolean | undefined;
|
|
198
197
|
success_url?: string | undefined;
|
|
198
|
+
force_checkout?: boolean | undefined;
|
|
199
199
|
customer_data?: {
|
|
200
200
|
name?: string | null | undefined;
|
|
201
201
|
email?: string | null | undefined;
|
|
@@ -204,7 +204,7 @@ declare const autumn: (options?: {
|
|
|
204
204
|
entity_data?: any;
|
|
205
205
|
checkout_session_params?: Record<string, any> | undefined;
|
|
206
206
|
reward?: string | undefined;
|
|
207
|
-
|
|
207
|
+
invoice?: boolean | undefined;
|
|
208
208
|
};
|
|
209
209
|
} & {
|
|
210
210
|
method?: "POST" | undefined;
|
|
@@ -231,17 +231,17 @@ declare const autumn: (options?: {
|
|
|
231
231
|
options: {
|
|
232
232
|
method: "POST";
|
|
233
233
|
body: z.ZodObject<{
|
|
234
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
235
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
236
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
234
237
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
235
238
|
feature_id: z.ZodString;
|
|
236
239
|
quantity: z.ZodNumber;
|
|
237
240
|
}, z.core.$strip>>>;
|
|
238
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
239
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
240
241
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
|
-
|
|
242
|
-
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
-
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
244
243
|
success_url: z.ZodOptional<z.ZodString>;
|
|
244
|
+
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
245
245
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
246
246
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
247
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -250,7 +250,7 @@ declare const autumn: (options?: {
|
|
|
250
250
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
251
251
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
252
252
|
reward: z.ZodOptional<z.ZodString>;
|
|
253
|
-
|
|
253
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
254
254
|
}, z.core.$strip>;
|
|
255
255
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
256
256
|
session: {
|
|
@@ -283,15 +283,15 @@ declare const autumn: (options?: {
|
|
|
283
283
|
check: {
|
|
284
284
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
285
285
|
body: {
|
|
286
|
-
product_id?: string | undefined;
|
|
287
|
-
entity_id?: string | undefined;
|
|
288
286
|
feature_id?: string | undefined;
|
|
287
|
+
entity_id?: string | undefined;
|
|
288
|
+
required_balance?: number | undefined;
|
|
289
|
+
product_id?: string | undefined;
|
|
289
290
|
customer_data?: any;
|
|
290
291
|
entity_data?: {
|
|
291
292
|
feature_id: string;
|
|
292
293
|
name?: string | undefined;
|
|
293
294
|
} | undefined;
|
|
294
|
-
required_balance?: number | undefined;
|
|
295
295
|
send_event?: boolean | undefined;
|
|
296
296
|
with_preview?: boolean | undefined;
|
|
297
297
|
};
|
|
@@ -320,15 +320,15 @@ declare const autumn: (options?: {
|
|
|
320
320
|
options: {
|
|
321
321
|
method: "POST";
|
|
322
322
|
body: z.ZodObject<{
|
|
323
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
323
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
324
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
326
327
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
327
328
|
entity_data: z.ZodOptional<z.ZodObject<{
|
|
328
329
|
name: z.ZodOptional<z.ZodString>;
|
|
329
330
|
feature_id: z.ZodString;
|
|
330
331
|
}, z.core.$strip>>;
|
|
331
|
-
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
332
332
|
send_event: z.ZodOptional<z.ZodBoolean>;
|
|
333
333
|
with_preview: z.ZodOptional<z.ZodBoolean>;
|
|
334
334
|
}, z.core.$strip>;
|
|
@@ -363,8 +363,8 @@ declare const autumn: (options?: {
|
|
|
363
363
|
track: {
|
|
364
364
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
365
365
|
body: {
|
|
366
|
-
entity_id?: string | undefined;
|
|
367
366
|
feature_id?: string | undefined;
|
|
367
|
+
entity_id?: string | undefined;
|
|
368
368
|
customer_data?: any;
|
|
369
369
|
entity_data?: any;
|
|
370
370
|
value?: number | undefined;
|
|
@@ -396,8 +396,8 @@ declare const autumn: (options?: {
|
|
|
396
396
|
options: {
|
|
397
397
|
method: "POST";
|
|
398
398
|
body: z.ZodObject<{
|
|
399
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
400
399
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
400
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
401
401
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
402
402
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
403
403
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -464,8 +464,8 @@ declare const autumn: (options?: {
|
|
|
464
464
|
options: {
|
|
465
465
|
method: "POST";
|
|
466
466
|
body: z.ZodObject<{
|
|
467
|
-
product_id: z.ZodString;
|
|
468
467
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
468
|
+
product_id: z.ZodString;
|
|
469
469
|
cancel_immediately: z.ZodOptional<z.ZodBoolean>;
|
|
470
470
|
}, z.core.$strip>;
|
|
471
471
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-_y4Ea48c.mjs';
|
|
3
3
|
import './client/types/clientEntTypes.mjs';
|
|
4
4
|
import './client/types/clientGenTypes.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import './error-DHbclCVh.mjs';
|
|
7
|
-
import './genTypes-
|
|
8
|
-
import './prodTypes-
|
|
9
|
-
import './attachTypes-
|
|
10
|
-
import './entTypes-
|
|
11
|
-
import './cusTypes-
|
|
7
|
+
import './genTypes-C_ilxndU.mjs';
|
|
8
|
+
import './prodTypes-B8NdKyKo.mjs';
|
|
9
|
+
import './attachTypes-gI6T0O95.mjs';
|
|
10
|
+
import './entTypes-DcRz1vjc.mjs';
|
|
11
|
+
import './cusTypes-UwHT30-L.mjs';
|
|
12
12
|
|
|
13
13
|
interface AutumnDialogContext {
|
|
14
14
|
props: any;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-BqEB-TPz.js';
|
|
3
3
|
import './client/types/clientEntTypes.js';
|
|
4
4
|
import './client/types/clientGenTypes.js';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import './error-DHbclCVh.js';
|
|
7
|
-
import './genTypes-
|
|
8
|
-
import './prodTypes-
|
|
9
|
-
import './attachTypes-
|
|
10
|
-
import './entTypes
|
|
11
|
-
import './cusTypes-
|
|
7
|
+
import './genTypes-DjcQWIOM.js';
|
|
8
|
+
import './prodTypes-B8NdKyKo.js';
|
|
9
|
+
import './attachTypes-DoCshKK6.js';
|
|
10
|
+
import './entTypes-BWsQfaNZ.js';
|
|
11
|
+
import './cusTypes-DckkwpWg.js';
|
|
12
12
|
|
|
13
13
|
interface AutumnDialogContext {
|
|
14
14
|
props: any;
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import {
|
|
4
4
|
AutumnContext,
|
|
5
5
|
useAutumnContext
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PN6WKUSX.mjs";
|
|
7
|
+
import "./chunk-JNJRQ5DT.mjs";
|
|
8
8
|
import "./chunk-ABJEE3UK.mjs";
|
|
9
|
+
import "./chunk-ZF2HUCN6.mjs";
|
|
10
|
+
import "./chunk-BCLKTVUX.mjs";
|
|
9
11
|
import "./chunk-V575SGOW.mjs";
|
|
10
12
|
import "./chunk-ZV4RPZTM.mjs";
|
|
13
|
+
import "./chunk-KQT5G3HT.mjs";
|
|
11
14
|
import "./chunk-JVCOY7ZL.mjs";
|
|
12
15
|
import "./chunk-CIBQ4BJU.mjs";
|
|
13
16
|
import "./chunk-VTGR7VVK.mjs";
|
|
14
17
|
import "./chunk-WFFVOEUG.mjs";
|
|
15
|
-
import "./chunk-ZF2HUCN6.mjs";
|
|
16
|
-
import "./chunk-BCLKTVUX.mjs";
|
|
17
|
-
import "./chunk-KQT5G3HT.mjs";
|
|
18
18
|
export {
|
|
19
19
|
AutumnContext,
|
|
20
20
|
useAutumnContext
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
3
|
+
import { A as AutumnClient } from './ReactAutumnClient-_y4Ea48c.mjs';
|
|
4
4
|
import './client/types/clientEntTypes.mjs';
|
|
5
5
|
import './client/types/clientGenTypes.mjs';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import './error-DHbclCVh.mjs';
|
|
8
|
-
import './genTypes-
|
|
9
|
-
import './prodTypes-
|
|
10
|
-
import './attachTypes-
|
|
11
|
-
import './entTypes-
|
|
12
|
-
import './cusTypes-
|
|
8
|
+
import './genTypes-C_ilxndU.mjs';
|
|
9
|
+
import './prodTypes-B8NdKyKo.mjs';
|
|
10
|
+
import './attachTypes-gI6T0O95.mjs';
|
|
11
|
+
import './entTypes-DcRz1vjc.mjs';
|
|
12
|
+
import './cusTypes-UwHT30-L.mjs';
|
|
13
13
|
|
|
14
14
|
declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
|
|
15
15
|
client: AutumnClient;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
3
|
+
import { A as AutumnClient } from './ReactAutumnClient-BqEB-TPz.js';
|
|
4
4
|
import './client/types/clientEntTypes.js';
|
|
5
5
|
import './client/types/clientGenTypes.js';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import './error-DHbclCVh.js';
|
|
8
|
-
import './genTypes-
|
|
9
|
-
import './prodTypes-
|
|
10
|
-
import './attachTypes-
|
|
11
|
-
import './entTypes
|
|
12
|
-
import './cusTypes-
|
|
8
|
+
import './genTypes-DjcQWIOM.js';
|
|
9
|
+
import './prodTypes-B8NdKyKo.js';
|
|
10
|
+
import './attachTypes-DoCshKK6.js';
|
|
11
|
+
import './entTypes-BWsQfaNZ.js';
|
|
12
|
+
import './cusTypes-DckkwpWg.js';
|
|
13
13
|
|
|
14
14
|
declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
|
|
15
15
|
client: AutumnClient;
|
|
@@ -1716,7 +1716,8 @@ var handleFeatureCheck = ({
|
|
|
1716
1716
|
}) => {
|
|
1717
1717
|
let { cusFeature, requiredBalance } = getCusFeature({
|
|
1718
1718
|
customer,
|
|
1719
|
-
featureId: params.featureId
|
|
1719
|
+
featureId: params.featureId,
|
|
1720
|
+
...params.requiredBalance ? { requiredBalance: params.requiredBalance } : {}
|
|
1720
1721
|
});
|
|
1721
1722
|
let allowed = getFeatureAllowed({ cusFeature, requiredBalance });
|
|
1722
1723
|
let result = {
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
BaseAutumnProvider
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y5S2HOFE.mjs";
|
|
7
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VELC6P5V.mjs";
|
|
9
|
+
import "./chunk-S744ECJP.mjs";
|
|
10
10
|
import "./chunk-NFVAFRF6.mjs";
|
|
11
11
|
import "./chunk-HBJDIEEJ.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-PN6WKUSX.mjs";
|
|
13
|
+
import "./chunk-JNJRQ5DT.mjs";
|
|
14
14
|
import "./chunk-ABJEE3UK.mjs";
|
|
15
|
+
import "./chunk-ZF2HUCN6.mjs";
|
|
16
|
+
import "./chunk-BCLKTVUX.mjs";
|
|
15
17
|
import "./chunk-V575SGOW.mjs";
|
|
16
18
|
import "./chunk-ZV4RPZTM.mjs";
|
|
19
|
+
import "./chunk-KQT5G3HT.mjs";
|
|
17
20
|
import "./chunk-JVCOY7ZL.mjs";
|
|
18
21
|
import "./chunk-CIBQ4BJU.mjs";
|
|
19
22
|
import "./chunk-VTGR7VVK.mjs";
|
|
20
23
|
import "./chunk-WFFVOEUG.mjs";
|
|
21
|
-
import "./chunk-ZF2HUCN6.mjs";
|
|
22
|
-
import "./chunk-BCLKTVUX.mjs";
|
|
23
|
-
import "./chunk-KQT5G3HT.mjs";
|
|
24
24
|
export {
|
|
25
25
|
BaseAutumnProvider
|
|
26
26
|
};
|
package/dist/libraries/react/{ReactAutumnClient-BxDUcOLV.d.ts → ReactAutumnClient-BqEB-TPz.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CreateEntityParams, GetEntityParams } from './client/types/clientEntTypes.js';
|
|
2
2
|
import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clientGenTypes.js';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
|
-
import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-
|
|
5
|
-
import { C as CheckoutResult } from './attachTypes-
|
|
6
|
-
import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes
|
|
7
|
-
import {
|
|
8
|
-
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-
|
|
4
|
+
import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-DjcQWIOM.js';
|
|
5
|
+
import { C as CheckoutResult } from './attachTypes-DoCshKK6.js';
|
|
6
|
+
import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-BWsQfaNZ.js';
|
|
7
|
+
import { a as ProductItem, e as ProductScenario, P as Product } from './prodTypes-B8NdKyKo.js';
|
|
8
|
+
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-DckkwpWg.js';
|
|
9
9
|
|
|
10
10
|
interface PricingTableProduct {
|
|
11
11
|
id: string;
|
|
@@ -124,6 +124,7 @@ declare class AutumnClient {
|
|
|
124
124
|
successUrl?: string | undefined;
|
|
125
125
|
openInNewTab?: boolean | undefined;
|
|
126
126
|
dialog?: any;
|
|
127
|
+
forceCheckout?: boolean | undefined;
|
|
127
128
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
128
129
|
reward?: string | undefined;
|
|
129
130
|
}) => AutumnPromise<CheckoutResult>;
|
package/dist/libraries/react/{ReactAutumnClient-C-ybqq9t.d.mts → ReactAutumnClient-_y4Ea48c.d.mts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CreateEntityParams, GetEntityParams } from './client/types/clientEntTypes.mjs';
|
|
2
2
|
import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clientGenTypes.mjs';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
|
-
import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-
|
|
5
|
-
import { C as CheckoutResult } from './attachTypes-
|
|
6
|
-
import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
7
|
-
import {
|
|
8
|
-
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-
|
|
4
|
+
import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-C_ilxndU.mjs';
|
|
5
|
+
import { C as CheckoutResult } from './attachTypes-gI6T0O95.mjs';
|
|
6
|
+
import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-DcRz1vjc.mjs';
|
|
7
|
+
import { a as ProductItem, e as ProductScenario, P as Product } from './prodTypes-B8NdKyKo.mjs';
|
|
8
|
+
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-UwHT30-L.mjs';
|
|
9
9
|
|
|
10
10
|
interface PricingTableProduct {
|
|
11
11
|
id: string;
|
|
@@ -124,6 +124,7 @@ declare class AutumnClient {
|
|
|
124
124
|
successUrl?: string | undefined;
|
|
125
125
|
openInNewTab?: boolean | undefined;
|
|
126
126
|
dialog?: any;
|
|
127
|
+
forceCheckout?: boolean | undefined;
|
|
127
128
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
128
129
|
reward?: string | undefined;
|
|
129
130
|
}) => AutumnPromise<CheckoutResult>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-UwHT30-L.mjs';
|
|
3
|
+
import './prodTypes-B8NdKyKo.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
6
|
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, headers, convexApi, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-DckkwpWg.js';
|
|
3
|
+
import './prodTypes-B8NdKyKo.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
6
|
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, headers, convexApi, }: {
|
|
@@ -1717,7 +1717,8 @@ var handleFeatureCheck = ({
|
|
|
1717
1717
|
}) => {
|
|
1718
1718
|
let { cusFeature, requiredBalance } = getCusFeature({
|
|
1719
1719
|
customer,
|
|
1720
|
-
featureId: params.featureId
|
|
1720
|
+
featureId: params.featureId,
|
|
1721
|
+
...params.requiredBalance ? { requiredBalance: params.requiredBalance } : {}
|
|
1721
1722
|
});
|
|
1722
1723
|
let allowed = getFeatureAllowed({ cusFeature, requiredBalance });
|
|
1723
1724
|
let result = {
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ReactAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-OCP7PVSZ.mjs";
|
|
6
|
+
import "./chunk-Y5S2HOFE.mjs";
|
|
7
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VELC6P5V.mjs";
|
|
9
|
+
import "./chunk-S744ECJP.mjs";
|
|
10
10
|
import "./chunk-NFVAFRF6.mjs";
|
|
11
11
|
import "./chunk-HBJDIEEJ.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-PN6WKUSX.mjs";
|
|
13
|
+
import "./chunk-JNJRQ5DT.mjs";
|
|
14
14
|
import "./chunk-ABJEE3UK.mjs";
|
|
15
|
+
import "./chunk-ZF2HUCN6.mjs";
|
|
16
|
+
import "./chunk-BCLKTVUX.mjs";
|
|
15
17
|
import "./chunk-V575SGOW.mjs";
|
|
16
18
|
import "./chunk-ZV4RPZTM.mjs";
|
|
19
|
+
import "./chunk-KQT5G3HT.mjs";
|
|
17
20
|
import "./chunk-JVCOY7ZL.mjs";
|
|
18
21
|
import "./chunk-CIBQ4BJU.mjs";
|
|
19
22
|
import "./chunk-VTGR7VVK.mjs";
|
|
20
23
|
import "./chunk-WFFVOEUG.mjs";
|
|
21
|
-
import "./chunk-ZF2HUCN6.mjs";
|
|
22
|
-
import "./chunk-BCLKTVUX.mjs";
|
|
23
|
-
import "./chunk-KQT5G3HT.mjs";
|
|
24
24
|
export {
|
|
25
25
|
ReactAutumnProvider
|
|
26
26
|
};
|