autumn-js 0.1.19 → 0.1.20
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/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- 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/{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-YXLJ7SUW.mjs → chunk-LNAQMT6O.mjs} +21 -21
- 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 +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.mjs +9 -9
- 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 +9 -9
- 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.mjs +9 -9
- 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/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/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
- 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/useEntity.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
- 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/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.d.mts +1 -0
- package/dist/libraries/react/index.d.ts +1 -0
- 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-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;
|
|
@@ -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;
|
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, }: {
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
getPaywallContent
|
|
5
|
+
} from "./chunk-I5ZGIAIX.mjs";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
getCheckoutContent
|
|
8
|
+
} from "./chunk-BLM4DAAR.mjs";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
DialogFooter,
|
|
13
|
-
DialogTitle
|
|
14
|
-
} from "./chunk-YE6KQQS7.mjs";
|
|
10
|
+
getPricingTableContent
|
|
11
|
+
} from "./chunk-URQMBRFZ.mjs";
|
|
15
12
|
import {
|
|
16
13
|
Input
|
|
17
14
|
} from "./chunk-GUM4HIGI.mjs";
|
|
@@ -19,16 +16,14 @@ import {
|
|
|
19
16
|
Popover,
|
|
20
17
|
PopoverContent,
|
|
21
18
|
PopoverTrigger
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X6FMCHSB.mjs";
|
|
23
20
|
import {
|
|
24
21
|
Switch
|
|
25
22
|
} from "./chunk-WUEXMQIT.mjs";
|
|
26
23
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
getPaywallContent
|
|
31
|
-
} from "./chunk-I5ZGIAIX.mjs";
|
|
24
|
+
loadingStyles,
|
|
25
|
+
spinnerStyles
|
|
26
|
+
} from "./chunk-WVKYZYFT.mjs";
|
|
32
27
|
import {
|
|
33
28
|
Accordion,
|
|
34
29
|
AccordionContent,
|
|
@@ -36,14 +31,20 @@ import {
|
|
|
36
31
|
Header,
|
|
37
32
|
Trigger2
|
|
38
33
|
} from "./chunk-VYBU4WHO.mjs";
|
|
34
|
+
import {
|
|
35
|
+
Button
|
|
36
|
+
} from "./chunk-SWSFJTEQ.mjs";
|
|
37
|
+
import {
|
|
38
|
+
Dialog,
|
|
39
|
+
DialogContent,
|
|
40
|
+
DialogFooter,
|
|
41
|
+
DialogTitle
|
|
42
|
+
} from "./chunk-YE6KQQS7.mjs";
|
|
39
43
|
import {
|
|
40
44
|
ArrowRight,
|
|
41
45
|
ChevronDown,
|
|
42
46
|
LoaderCircle
|
|
43
47
|
} from "./chunk-2OHJ6PS6.mjs";
|
|
44
|
-
import {
|
|
45
|
-
cn
|
|
46
|
-
} from "./chunk-4J6OC4ZQ.mjs";
|
|
47
48
|
import {
|
|
48
49
|
usePaywall
|
|
49
50
|
} from "./chunk-L4FS7ENO.mjs";
|
|
@@ -51,9 +52,8 @@ import {
|
|
|
51
52
|
usePricingTable
|
|
52
53
|
} from "./chunk-FD42XGXU.mjs";
|
|
53
54
|
import {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} from "./chunk-WVKYZYFT.mjs";
|
|
55
|
+
cn
|
|
56
|
+
} from "./chunk-4J6OC4ZQ.mjs";
|
|
57
57
|
import {
|
|
58
58
|
useCustomer
|
|
59
59
|
} from "./chunk-5NRXGCQW.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './types/clientEntTypes.mjs';
|
|
2
2
|
import './types/clientGenTypes.mjs';
|
|
3
3
|
import '../error-DHbclCVh.mjs';
|
|
4
|
-
import '../genTypes-
|
|
5
|
-
import '../attachTypes-
|
|
6
|
-
import '../entTypes-
|
|
7
|
-
import '../prodTypes-
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-
|
|
4
|
+
import '../genTypes-C_ilxndU.mjs';
|
|
5
|
+
import '../attachTypes-gI6T0O95.mjs';
|
|
6
|
+
import '../entTypes-DcRz1vjc.mjs';
|
|
7
|
+
import '../prodTypes-B8NdKyKo.mjs';
|
|
8
|
+
import '../cusTypes-UwHT30-L.mjs';
|
|
9
|
+
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-_y4Ea48c.mjs';
|
|
10
10
|
import 'zod/v4';
|