autumn-js 0.0.114-beta.4 → 0.0.114
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/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/{chunk-MFIFOAPI.mjs → chunk-37PNTTHW.mjs} +452 -454
- package/dist/libraries/react/{chunk-XJHQ6LQF.mjs → chunk-7JNU5ABT.mjs} +3 -3
- package/dist/libraries/react/{chunk-5K2M3CQZ.mjs → chunk-FEISQQNM.mjs} +1 -1
- package/dist/libraries/react/{chunk-WT5K3J2K.mjs → chunk-I2A7PK2L.mjs} +17 -17
- package/dist/libraries/react/{chunk-YCDNQZT5.mjs → chunk-JGDTNJTR.mjs} +2 -2
- package/dist/libraries/react/{chunk-M7SUFZ42.mjs → chunk-KUS3X33V.mjs} +1 -1
- package/dist/libraries/react/{chunk-2TQBFCWM.mjs → chunk-LCWL3TIT.mjs} +6 -6
- package/dist/libraries/react/{chunk-NHDZWWMZ.mjs → chunk-YWQTQ72B.mjs} +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +11 -11
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +11 -11
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +11 -11
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/next/client/NextAutumnClient.d.mts +17 -17
- package/dist/next/client/NextAutumnClient.d.ts +17 -17
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{attachTypes-D1J8GKaX.d.ts → attachTypes-BPWwj1YK.d.ts} +7 -7
- package/dist/next/client/{attachTypes-Ds4c3m_f.d.mts → attachTypes-C67U2LbK.d.mts} +7 -7
- package/dist/next/client/{clientAttachTypes-BX0Fu041.d.ts → clientAttachTypes-B4i2ri-1.d.ts} +25 -25
- package/dist/next/client/{clientAttachTypes-_7AHAf_0.d.mts → clientAttachTypes-EGitteWV.d.mts} +25 -25
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-cin7tsQv.d.mts → cusTypes-CRJanGZd.d.mts} +3 -3
- package/dist/next/client/{cusTypes-7rPpQ98G.d.ts → cusTypes-Dn0ETI7G.d.ts} +3 -3
- package/dist/next/client/{entTypes-Nr9DDaGQ.d.ts → entTypes-Caov3CJ9.d.ts} +1 -1
- package/dist/next/client/{entTypes-DhVNxsHB.d.mts → entTypes-Qyo2WYGP.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +4 -4
- package/dist/next/client/hooks/useAutumn.d.ts +4 -4
- package/dist/next/client/hooks/useCustomer.d.mts +5 -5
- package/dist/next/client/hooks/useCustomer.d.ts +5 -5
- package/dist/next/client/hooks/useEntity.d.mts +6 -6
- package/dist/next/client/hooks/useEntity.d.ts +6 -6
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +3 -3
- package/dist/next/client/types.d.ts +3 -3
- 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 +9 -9
- package/dist/next/server/cusActions.d.ts +9 -9
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/package.json +1 -1
- package/dist/libraries/backend/{referralTypes-CHRdXdZi.d.mts → referralTypes-COVVwj-1.d.mts} +35 -35
- package/dist/libraries/backend/{referralTypes-KN1bdpbB.d.ts → referralTypes-qMay-K9l.d.ts} +35 -35
- package/dist/libraries/react/{chunk-KWNH6C27.mjs → chunk-7TYAAD2T.mjs} +11 -11
- package/dist/next/client/{prodTypes-CYd9Q1Rw.d.mts → prodTypes-si707oHg.d.mts} +4 -4
- package/dist/next/client/{prodTypes-CYd9Q1Rw.d.ts → prodTypes-si707oHg.d.ts} +4 -4
- package/dist/next/server/{cusTypes-DNT0aDSN.d.ts → cusTypes-wfx--BDG.d.mts} +2 -2
- package/dist/next/server/{cusTypes-DNT0aDSN.d.mts → cusTypes-wfx--BDG.d.ts} +2 -2
|
@@ -130,13 +130,13 @@ declare const autumn: (options?: {
|
|
|
130
130
|
attach: {
|
|
131
131
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
132
132
|
body: {
|
|
133
|
+
entity_id?: string | undefined;
|
|
133
134
|
options?: {
|
|
134
135
|
feature_id: string;
|
|
135
136
|
quantity: number;
|
|
136
137
|
}[] | undefined;
|
|
137
138
|
metadata?: Record<string, string> | undefined;
|
|
138
139
|
product_id?: string | undefined;
|
|
139
|
-
entity_id?: string | undefined;
|
|
140
140
|
product_ids?: string[] | undefined;
|
|
141
141
|
free_trial?: boolean | undefined;
|
|
142
142
|
success_url?: string | undefined;
|
|
@@ -210,13 +210,13 @@ declare const autumn: (options?: {
|
|
|
210
210
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
211
211
|
reward: z.ZodOptional<z.ZodString>;
|
|
212
212
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
213
|
+
entity_id?: string | undefined;
|
|
213
214
|
options?: {
|
|
214
215
|
feature_id: string;
|
|
215
216
|
quantity: number;
|
|
216
217
|
}[] | undefined;
|
|
217
218
|
metadata?: Record<string, string> | undefined;
|
|
218
219
|
product_id?: string | undefined;
|
|
219
|
-
entity_id?: string | undefined;
|
|
220
220
|
product_ids?: string[] | undefined;
|
|
221
221
|
free_trial?: boolean | undefined;
|
|
222
222
|
success_url?: string | undefined;
|
|
@@ -230,13 +230,13 @@ declare const autumn: (options?: {
|
|
|
230
230
|
checkout_session_params?: Record<string, any> | undefined;
|
|
231
231
|
reward?: string | undefined;
|
|
232
232
|
}, {
|
|
233
|
+
entity_id?: string | undefined;
|
|
233
234
|
options?: {
|
|
234
235
|
feature_id: string;
|
|
235
236
|
quantity: number;
|
|
236
237
|
}[] | undefined;
|
|
237
238
|
metadata?: Record<string, string> | undefined;
|
|
238
239
|
product_id?: string | undefined;
|
|
239
|
-
entity_id?: string | undefined;
|
|
240
240
|
product_ids?: string[] | undefined;
|
|
241
241
|
free_trial?: boolean | undefined;
|
|
242
242
|
success_url?: string | undefined;
|
|
@@ -281,15 +281,15 @@ declare const autumn: (options?: {
|
|
|
281
281
|
check: {
|
|
282
282
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
283
283
|
body: {
|
|
284
|
-
product_id?: string | undefined;
|
|
285
|
-
entity_id?: string | undefined;
|
|
286
284
|
feature_id?: string | undefined;
|
|
285
|
+
entity_id?: string | undefined;
|
|
286
|
+
required_balance?: number | undefined;
|
|
287
|
+
product_id?: string | undefined;
|
|
287
288
|
customer_data?: any;
|
|
288
289
|
entity_data?: {
|
|
289
290
|
feature_id: string;
|
|
290
291
|
name?: string | undefined;
|
|
291
292
|
} | undefined;
|
|
292
|
-
required_balance?: number | undefined;
|
|
293
293
|
send_event?: boolean | undefined;
|
|
294
294
|
with_preview?: boolean | undefined;
|
|
295
295
|
};
|
|
@@ -337,27 +337,27 @@ declare const autumn: (options?: {
|
|
|
337
337
|
name?: string | undefined;
|
|
338
338
|
}>>;
|
|
339
339
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
340
|
-
product_id?: string | undefined;
|
|
341
|
-
entity_id?: string | undefined;
|
|
342
340
|
feature_id?: string | undefined;
|
|
341
|
+
entity_id?: string | undefined;
|
|
342
|
+
required_balance?: number | undefined;
|
|
343
|
+
product_id?: string | undefined;
|
|
343
344
|
customer_data?: any;
|
|
344
345
|
entity_data?: {
|
|
345
346
|
feature_id: string;
|
|
346
347
|
name?: string | undefined;
|
|
347
348
|
} | undefined;
|
|
348
|
-
required_balance?: number | undefined;
|
|
349
349
|
send_event?: boolean | undefined;
|
|
350
350
|
with_preview?: boolean | undefined;
|
|
351
351
|
}, {
|
|
352
|
-
product_id?: string | undefined;
|
|
353
|
-
entity_id?: string | undefined;
|
|
354
352
|
feature_id?: string | undefined;
|
|
353
|
+
entity_id?: string | undefined;
|
|
354
|
+
required_balance?: number | undefined;
|
|
355
|
+
product_id?: string | undefined;
|
|
355
356
|
customer_data?: any;
|
|
356
357
|
entity_data?: {
|
|
357
358
|
feature_id: string;
|
|
358
359
|
name?: string | undefined;
|
|
359
360
|
} | undefined;
|
|
360
|
-
required_balance?: number | undefined;
|
|
361
361
|
send_event?: boolean | undefined;
|
|
362
362
|
with_preview?: boolean | undefined;
|
|
363
363
|
}>;
|
|
@@ -392,9 +392,9 @@ declare const autumn: (options?: {
|
|
|
392
392
|
track: {
|
|
393
393
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
394
394
|
body: {
|
|
395
|
-
value?: number | undefined;
|
|
396
|
-
entity_id?: string | undefined;
|
|
397
395
|
feature_id?: string | undefined;
|
|
396
|
+
entity_id?: string | undefined;
|
|
397
|
+
value?: number | undefined;
|
|
398
398
|
customer_data?: any;
|
|
399
399
|
entity_data?: any;
|
|
400
400
|
event_name?: string | undefined;
|
|
@@ -434,17 +434,17 @@ declare const autumn: (options?: {
|
|
|
434
434
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
435
435
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
436
436
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
437
|
-
value?: number | undefined;
|
|
438
|
-
entity_id?: string | undefined;
|
|
439
437
|
feature_id?: string | undefined;
|
|
438
|
+
entity_id?: string | undefined;
|
|
439
|
+
value?: number | undefined;
|
|
440
440
|
customer_data?: any;
|
|
441
441
|
entity_data?: any;
|
|
442
442
|
event_name?: string | undefined;
|
|
443
443
|
idempotency_key?: string | undefined;
|
|
444
444
|
}, {
|
|
445
|
-
value?: number | undefined;
|
|
446
|
-
entity_id?: string | undefined;
|
|
447
445
|
feature_id?: string | undefined;
|
|
446
|
+
entity_id?: string | undefined;
|
|
447
|
+
value?: number | undefined;
|
|
448
448
|
customer_data?: any;
|
|
449
449
|
entity_data?: any;
|
|
450
450
|
event_name?: string | undefined;
|
|
@@ -130,13 +130,13 @@ declare const autumn: (options?: {
|
|
|
130
130
|
attach: {
|
|
131
131
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
132
132
|
body: {
|
|
133
|
+
entity_id?: string | undefined;
|
|
133
134
|
options?: {
|
|
134
135
|
feature_id: string;
|
|
135
136
|
quantity: number;
|
|
136
137
|
}[] | undefined;
|
|
137
138
|
metadata?: Record<string, string> | undefined;
|
|
138
139
|
product_id?: string | undefined;
|
|
139
|
-
entity_id?: string | undefined;
|
|
140
140
|
product_ids?: string[] | undefined;
|
|
141
141
|
free_trial?: boolean | undefined;
|
|
142
142
|
success_url?: string | undefined;
|
|
@@ -210,13 +210,13 @@ declare const autumn: (options?: {
|
|
|
210
210
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
211
211
|
reward: z.ZodOptional<z.ZodString>;
|
|
212
212
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
213
|
+
entity_id?: string | undefined;
|
|
213
214
|
options?: {
|
|
214
215
|
feature_id: string;
|
|
215
216
|
quantity: number;
|
|
216
217
|
}[] | undefined;
|
|
217
218
|
metadata?: Record<string, string> | undefined;
|
|
218
219
|
product_id?: string | undefined;
|
|
219
|
-
entity_id?: string | undefined;
|
|
220
220
|
product_ids?: string[] | undefined;
|
|
221
221
|
free_trial?: boolean | undefined;
|
|
222
222
|
success_url?: string | undefined;
|
|
@@ -230,13 +230,13 @@ declare const autumn: (options?: {
|
|
|
230
230
|
checkout_session_params?: Record<string, any> | undefined;
|
|
231
231
|
reward?: string | undefined;
|
|
232
232
|
}, {
|
|
233
|
+
entity_id?: string | undefined;
|
|
233
234
|
options?: {
|
|
234
235
|
feature_id: string;
|
|
235
236
|
quantity: number;
|
|
236
237
|
}[] | undefined;
|
|
237
238
|
metadata?: Record<string, string> | undefined;
|
|
238
239
|
product_id?: string | undefined;
|
|
239
|
-
entity_id?: string | undefined;
|
|
240
240
|
product_ids?: string[] | undefined;
|
|
241
241
|
free_trial?: boolean | undefined;
|
|
242
242
|
success_url?: string | undefined;
|
|
@@ -281,15 +281,15 @@ declare const autumn: (options?: {
|
|
|
281
281
|
check: {
|
|
282
282
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
283
283
|
body: {
|
|
284
|
-
product_id?: string | undefined;
|
|
285
|
-
entity_id?: string | undefined;
|
|
286
284
|
feature_id?: string | undefined;
|
|
285
|
+
entity_id?: string | undefined;
|
|
286
|
+
required_balance?: number | undefined;
|
|
287
|
+
product_id?: string | undefined;
|
|
287
288
|
customer_data?: any;
|
|
288
289
|
entity_data?: {
|
|
289
290
|
feature_id: string;
|
|
290
291
|
name?: string | undefined;
|
|
291
292
|
} | undefined;
|
|
292
|
-
required_balance?: number | undefined;
|
|
293
293
|
send_event?: boolean | undefined;
|
|
294
294
|
with_preview?: boolean | undefined;
|
|
295
295
|
};
|
|
@@ -337,27 +337,27 @@ declare const autumn: (options?: {
|
|
|
337
337
|
name?: string | undefined;
|
|
338
338
|
}>>;
|
|
339
339
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
340
|
-
product_id?: string | undefined;
|
|
341
|
-
entity_id?: string | undefined;
|
|
342
340
|
feature_id?: string | undefined;
|
|
341
|
+
entity_id?: string | undefined;
|
|
342
|
+
required_balance?: number | undefined;
|
|
343
|
+
product_id?: string | undefined;
|
|
343
344
|
customer_data?: any;
|
|
344
345
|
entity_data?: {
|
|
345
346
|
feature_id: string;
|
|
346
347
|
name?: string | undefined;
|
|
347
348
|
} | undefined;
|
|
348
|
-
required_balance?: number | undefined;
|
|
349
349
|
send_event?: boolean | undefined;
|
|
350
350
|
with_preview?: boolean | undefined;
|
|
351
351
|
}, {
|
|
352
|
-
product_id?: string | undefined;
|
|
353
|
-
entity_id?: string | undefined;
|
|
354
352
|
feature_id?: string | undefined;
|
|
353
|
+
entity_id?: string | undefined;
|
|
354
|
+
required_balance?: number | undefined;
|
|
355
|
+
product_id?: string | undefined;
|
|
355
356
|
customer_data?: any;
|
|
356
357
|
entity_data?: {
|
|
357
358
|
feature_id: string;
|
|
358
359
|
name?: string | undefined;
|
|
359
360
|
} | undefined;
|
|
360
|
-
required_balance?: number | undefined;
|
|
361
361
|
send_event?: boolean | undefined;
|
|
362
362
|
with_preview?: boolean | undefined;
|
|
363
363
|
}>;
|
|
@@ -392,9 +392,9 @@ declare const autumn: (options?: {
|
|
|
392
392
|
track: {
|
|
393
393
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
394
394
|
body: {
|
|
395
|
-
value?: number | undefined;
|
|
396
|
-
entity_id?: string | undefined;
|
|
397
395
|
feature_id?: string | undefined;
|
|
396
|
+
entity_id?: string | undefined;
|
|
397
|
+
value?: number | undefined;
|
|
398
398
|
customer_data?: any;
|
|
399
399
|
entity_data?: any;
|
|
400
400
|
event_name?: string | undefined;
|
|
@@ -434,17 +434,17 @@ declare const autumn: (options?: {
|
|
|
434
434
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
435
435
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
436
436
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
437
|
-
value?: number | undefined;
|
|
438
|
-
entity_id?: string | undefined;
|
|
439
437
|
feature_id?: string | undefined;
|
|
438
|
+
entity_id?: string | undefined;
|
|
439
|
+
value?: number | undefined;
|
|
440
440
|
customer_data?: any;
|
|
441
441
|
entity_data?: any;
|
|
442
442
|
event_name?: string | undefined;
|
|
443
443
|
idempotency_key?: string | undefined;
|
|
444
444
|
}, {
|
|
445
|
-
value?: number | undefined;
|
|
446
|
-
entity_id?: string | undefined;
|
|
447
445
|
feature_id?: string | undefined;
|
|
446
|
+
entity_id?: string | undefined;
|
|
447
|
+
value?: number | undefined;
|
|
448
448
|
customer_data?: any;
|
|
449
449
|
entity_data?: any;
|
|
450
450
|
event_name?: string | undefined;
|