autumn-js 0.1.4 → 0.1.5
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 +30 -30
- package/dist/libraries/backend/better-auth.d.ts +30 -30
- package/dist/libraries/backend/better-auth.js +2 -1
- package/dist/libraries/backend/better-auth.mjs +2 -2
- package/dist/libraries/backend/{chunk-P6KFNVAM.mjs → chunk-2LSEWYPD.mjs} +1 -1
- package/dist/libraries/backend/{chunk-3HEVKGSY.mjs → chunk-WBYCMG34.mjs} +2 -1
- package/dist/libraries/backend/convex.js +2 -1
- package/dist/libraries/backend/convex.mjs +2 -2
- package/dist/libraries/backend/elysia.js +2 -1
- package/dist/libraries/backend/elysia.mjs +2 -2
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +2 -1
- package/dist/libraries/backend/express.mjs +2 -2
- package/dist/libraries/backend/fastify.js +2 -1
- package/dist/libraries/backend/fastify.mjs +2 -2
- package/dist/libraries/backend/hono.js +2 -1
- package/dist/libraries/backend/hono.mjs +2 -2
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/index.js +2 -1
- package/dist/libraries/backend/index.mjs +2 -2
- package/dist/libraries/backend/next.js +2 -1
- package/dist/libraries/backend/next.mjs +2 -2
- package/dist/libraries/backend/react-router.js +2 -1
- package/dist/libraries/backend/react-router.mjs +2 -2
- package/dist/libraries/backend/remix_dep.js +2 -1
- package/dist/libraries/backend/remix_dep.mjs +2 -2
- package/dist/libraries/backend/routes/backendRouter.js +2 -1
- package/dist/libraries/backend/routes/backendRouter.mjs +2 -2
- package/dist/libraries/backend/routes/productRoutes.js +2 -1
- package/dist/libraries/backend/routes/productRoutes.mjs +1 -1
- package/dist/libraries/backend/supabase.js +2 -1
- package/dist/libraries/backend/supabase.mjs +2 -2
- package/dist/libraries/backend/tanstack.js +2 -1
- package/dist/libraries/backend/tanstack.mjs +2 -2
- 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/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
- package/dist/libraries/react/{ReactAutumnClient-b59cM6db.d.mts → ReactAutumnClient-BHjd9Tw5.d.mts} +5 -5
- package/dist/libraries/react/{ReactAutumnClient-Dk1xLBOC.d.ts → ReactAutumnClient-DM5ZRTfX.d.ts} +5 -5
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{attachTypes-CcB6xjSF.d.ts → attachTypes-Bz1_JTvk.d.ts} +1 -1
- package/dist/libraries/react/{attachTypes-DqUN3q8s.d.mts → attachTypes-C9FJTCo6.d.mts} +1 -1
- package/dist/libraries/react/{chunk-OTZ65PCT.mjs → chunk-2TQBFCWM.mjs} +4 -4
- package/dist/libraries/react/{chunk-XFNHMA6J.mjs → chunk-33OTK7MB.mjs} +1 -1
- package/dist/libraries/react/{chunk-FEISQQNM.mjs → chunk-5K2M3CQZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-FJWZPMWU.mjs → chunk-BXMZYHE7.mjs} +3 -3
- package/dist/libraries/react/{chunk-ADKXC74U.mjs → chunk-EXK6MS5M.mjs} +442 -440
- package/dist/libraries/react/{chunk-AXQT5O4P.mjs → chunk-F5QUME7S.mjs} +1 -1
- package/dist/libraries/react/{chunk-6TQS3YV6.mjs → chunk-GUDRYJ3O.mjs} +2 -2
- package/dist/libraries/react/{chunk-5X73Q4YJ.mjs → chunk-IM2FNHYV.mjs} +2 -2
- package/dist/libraries/react/{chunk-IUYVVTGM.mjs → chunk-KLSRAX2F.mjs} +1 -1
- package/dist/libraries/react/{chunk-KZQPLQR5.mjs → chunk-KZVVSY52.mjs} +1 -1
- package/dist/libraries/react/{chunk-KUS3X33V.mjs → chunk-M7SUFZ42.mjs} +1 -1
- package/dist/libraries/react/{chunk-YWQTQ72B.mjs → chunk-NHDZWWMZ.mjs} +2 -2
- package/dist/libraries/react/{chunk-K55IHYAQ.mjs → chunk-PGU4IXT7.mjs} +1 -1
- package/dist/libraries/react/{chunk-QNIJJHAD.mjs → chunk-QW2YS3JY.mjs} +1 -1
- package/dist/libraries/react/{chunk-PLEVZHHH.mjs → chunk-TJMYXANS.mjs} +1 -1
- package/dist/libraries/react/{chunk-I2A7PK2L.mjs → chunk-WT5K3J2K.mjs} +17 -17
- package/dist/libraries/react/{chunk-JGDTNJTR.mjs → chunk-YCDNQZT5.mjs} +2 -2
- package/dist/libraries/react/{chunk-NV52XFEQ.mjs → chunk-ZT5TN67S.mjs} +3 -3
- 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 +3 -3
- 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/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 +23 -23
- 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 +23 -23
- 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 -2
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +23 -23
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- 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/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/libraries/react/{cusTypes-CSmAk5io.d.mts → cusTypes-DT-gAUL9.d.mts} +1 -1
- package/dist/libraries/react/{cusTypes-DHjT-9rV.d.ts → cusTypes-yJ0fSxbq.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-CoF9enrR.d.ts → entTypes-BPdjCunj.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-S4hkh1RG.d.mts → entTypes-D79XPrxo.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-fEH_nqSm.d.mts → genTypes-BV-Jc6Q1.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-DsiuvyWS.d.ts → genTypes-DJUAkD36.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 +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/useAnalytics.mjs +5 -5
- 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.mjs +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/useCustomerBase.mjs +5 -5
- 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.mjs +6 -6
- 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.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 -2
- package/dist/libraries/react/index.mjs +2 -2
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.mts → prodTypes-2tlu9Pyz.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.ts → prodTypes-2tlu9Pyz.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/libraries/backend/{referralTypes-CYvuZZeF.d.mts → referralTypes-BfrNJ62q.d.mts} +41 -41
- package/dist/libraries/backend/{referralTypes-B0_fYSI3.d.ts → referralTypes-Djyi4iGt.d.ts} +41 -41
- package/dist/libraries/react/{chunk-7TYAAD2T.mjs → chunk-KWNH6C27.mjs} +11 -11
- package/dist/libraries/react/{chunk-EFRTEIEY.mjs → chunk-QV6Q2XXO.mjs} +6 -6
|
@@ -78,12 +78,12 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
78
78
|
credit_amount: number;
|
|
79
79
|
}>, "many">>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
allowed: boolean;
|
|
82
|
-
feature_id: string;
|
|
83
81
|
customer_id: string;
|
|
82
|
+
feature_id: string;
|
|
84
83
|
required_balance: number;
|
|
85
|
-
|
|
84
|
+
allowed: boolean;
|
|
86
85
|
entity_id?: string | undefined;
|
|
86
|
+
usage_limit?: number | undefined;
|
|
87
87
|
unlimited?: boolean | undefined;
|
|
88
88
|
interval?: ProductItemInterval | undefined;
|
|
89
89
|
balance?: number | null | undefined;
|
|
@@ -107,12 +107,12 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
107
107
|
credit_amount: number;
|
|
108
108
|
}[] | undefined;
|
|
109
109
|
}, {
|
|
110
|
-
allowed: boolean;
|
|
111
|
-
feature_id: string;
|
|
112
110
|
customer_id: string;
|
|
111
|
+
feature_id: string;
|
|
113
112
|
required_balance: number;
|
|
114
|
-
|
|
113
|
+
allowed: boolean;
|
|
115
114
|
entity_id?: string | undefined;
|
|
115
|
+
usage_limit?: number | undefined;
|
|
116
116
|
unlimited?: boolean | undefined;
|
|
117
117
|
interval?: ProductItemInterval | undefined;
|
|
118
118
|
balance?: number | null | undefined;
|
|
@@ -421,19 +421,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
421
421
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
422
422
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
423
423
|
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
|
|
424
|
+
metadata?: Record<string, any> | undefined;
|
|
425
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
425
426
|
name?: string | null | undefined;
|
|
426
427
|
email?: string | null | undefined;
|
|
427
428
|
fingerprint?: string | null | undefined;
|
|
429
|
+
id?: string | null | undefined;
|
|
430
|
+
}, {
|
|
428
431
|
metadata?: Record<string, any> | undefined;
|
|
429
432
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
430
|
-
}, {
|
|
431
|
-
id?: string | null | undefined;
|
|
432
433
|
name?: string | null | undefined;
|
|
433
434
|
email?: string | null | undefined;
|
|
434
435
|
fingerprint?: string | null | undefined;
|
|
435
|
-
|
|
436
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
436
|
+
id?: string | null | undefined;
|
|
437
437
|
}>;
|
|
438
438
|
type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
|
|
439
439
|
interface UpdateCustomerParams {
|
|
@@ -515,18 +515,18 @@ declare const TrackParamsSchema: z.ZodObject<{
|
|
|
515
515
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
516
516
|
}, "strip", z.ZodTypeAny, {
|
|
517
517
|
customer_id: string;
|
|
518
|
-
feature_id?: string | undefined;
|
|
519
|
-
entity_id?: string | undefined;
|
|
520
518
|
value?: number | undefined;
|
|
519
|
+
entity_id?: string | undefined;
|
|
520
|
+
feature_id?: string | undefined;
|
|
521
521
|
customer_data?: any;
|
|
522
522
|
entity_data?: any;
|
|
523
523
|
event_name?: string | undefined;
|
|
524
524
|
idempotency_key?: string | undefined;
|
|
525
525
|
}, {
|
|
526
526
|
customer_id: string;
|
|
527
|
-
feature_id?: string | undefined;
|
|
528
|
-
entity_id?: string | undefined;
|
|
529
527
|
value?: number | undefined;
|
|
528
|
+
entity_id?: string | undefined;
|
|
529
|
+
feature_id?: string | undefined;
|
|
530
530
|
customer_data?: any;
|
|
531
531
|
entity_data?: any;
|
|
532
532
|
event_name?: string | undefined;
|
|
@@ -554,28 +554,28 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
554
554
|
}>>;
|
|
555
555
|
}, "strip", z.ZodTypeAny, {
|
|
556
556
|
customer_id: string;
|
|
557
|
-
feature_id?: string | undefined;
|
|
558
|
-
entity_id?: string | undefined;
|
|
559
|
-
required_balance?: number | undefined;
|
|
560
557
|
product_id?: string | undefined;
|
|
558
|
+
entity_id?: string | undefined;
|
|
559
|
+
feature_id?: string | undefined;
|
|
561
560
|
customer_data?: any;
|
|
562
561
|
entity_data?: {
|
|
563
562
|
feature_id: string;
|
|
564
563
|
name?: string | undefined;
|
|
565
564
|
} | undefined;
|
|
565
|
+
required_balance?: number | undefined;
|
|
566
566
|
send_event?: boolean | undefined;
|
|
567
567
|
with_preview?: boolean | undefined;
|
|
568
568
|
}, {
|
|
569
569
|
customer_id: string;
|
|
570
|
-
feature_id?: string | undefined;
|
|
571
|
-
entity_id?: string | undefined;
|
|
572
|
-
required_balance?: number | undefined;
|
|
573
570
|
product_id?: string | undefined;
|
|
571
|
+
entity_id?: string | undefined;
|
|
572
|
+
feature_id?: string | undefined;
|
|
574
573
|
customer_data?: any;
|
|
575
574
|
entity_data?: {
|
|
576
575
|
feature_id: string;
|
|
577
576
|
name?: string | undefined;
|
|
578
577
|
} | undefined;
|
|
578
|
+
required_balance?: number | undefined;
|
|
579
579
|
send_event?: boolean | undefined;
|
|
580
580
|
with_preview?: boolean | undefined;
|
|
581
581
|
}>;
|
|
@@ -606,12 +606,12 @@ declare const QueryParamsSchema: z.ZodObject<{
|
|
|
606
606
|
feature_id: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
607
607
|
range: z.ZodOptional<z.ZodEnum<["24h", "7d", "30d", "90d", "last_cycle"]>>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
|
-
feature_id: string | string[];
|
|
610
609
|
customer_id: string;
|
|
610
|
+
feature_id: string | string[];
|
|
611
611
|
range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
|
|
612
612
|
}, {
|
|
613
|
-
feature_id: string | string[];
|
|
614
613
|
customer_id: string;
|
|
614
|
+
feature_id: string | string[];
|
|
615
615
|
range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
|
|
616
616
|
}>;
|
|
617
617
|
type QueryParams = z.infer<typeof QueryParamsSchema>;
|
|
@@ -671,17 +671,14 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
671
671
|
reward: z.ZodOptional<z.ZodString>;
|
|
672
672
|
}, "strip", z.ZodTypeAny, {
|
|
673
673
|
customer_id: string;
|
|
674
|
-
entity_id?: string | undefined;
|
|
675
674
|
options?: {
|
|
676
675
|
feature_id: string;
|
|
677
676
|
quantity: number;
|
|
678
677
|
}[] | undefined;
|
|
679
678
|
metadata?: Record<string, string> | undefined;
|
|
680
679
|
product_id?: string | undefined;
|
|
681
|
-
|
|
682
|
-
free_trial?: boolean | undefined;
|
|
680
|
+
entity_id?: string | undefined;
|
|
683
681
|
success_url?: string | undefined;
|
|
684
|
-
force_checkout?: boolean | undefined;
|
|
685
682
|
customer_data?: {
|
|
686
683
|
name?: string | null | undefined;
|
|
687
684
|
email?: string | null | undefined;
|
|
@@ -690,19 +687,19 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
690
687
|
entity_data?: any;
|
|
691
688
|
checkout_session_params?: Record<string, any> | undefined;
|
|
692
689
|
reward?: string | undefined;
|
|
690
|
+
product_ids?: string[] | undefined;
|
|
691
|
+
free_trial?: boolean | undefined;
|
|
692
|
+
force_checkout?: boolean | undefined;
|
|
693
693
|
}, {
|
|
694
694
|
customer_id: string;
|
|
695
|
-
entity_id?: string | undefined;
|
|
696
695
|
options?: {
|
|
697
696
|
feature_id: string;
|
|
698
697
|
quantity: number;
|
|
699
698
|
}[] | undefined;
|
|
700
699
|
metadata?: Record<string, string> | undefined;
|
|
701
700
|
product_id?: string | undefined;
|
|
702
|
-
|
|
703
|
-
free_trial?: boolean | undefined;
|
|
701
|
+
entity_id?: string | undefined;
|
|
704
702
|
success_url?: string | undefined;
|
|
705
|
-
force_checkout?: boolean | undefined;
|
|
706
703
|
customer_data?: {
|
|
707
704
|
name?: string | null | undefined;
|
|
708
705
|
email?: string | null | undefined;
|
|
@@ -711,6 +708,9 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
711
708
|
entity_data?: any;
|
|
712
709
|
checkout_session_params?: Record<string, any> | undefined;
|
|
713
710
|
reward?: string | undefined;
|
|
711
|
+
product_ids?: string[] | undefined;
|
|
712
|
+
free_trial?: boolean | undefined;
|
|
713
|
+
force_checkout?: boolean | undefined;
|
|
714
714
|
}>;
|
|
715
715
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
716
716
|
declare const CheckoutParamsSchema: z.ZodObject<{
|
|
@@ -747,11 +747,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
747
747
|
}, "strip", z.ZodTypeAny, {
|
|
748
748
|
customer_id: string;
|
|
749
749
|
product_id: string;
|
|
750
|
-
entity_id?: string | undefined;
|
|
751
750
|
options?: {
|
|
752
751
|
feature_id: string;
|
|
753
752
|
quantity: number;
|
|
754
753
|
}[] | undefined;
|
|
754
|
+
entity_id?: string | undefined;
|
|
755
755
|
success_url?: string | undefined;
|
|
756
756
|
customer_data?: {
|
|
757
757
|
name?: string | null | undefined;
|
|
@@ -764,11 +764,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
764
764
|
}, {
|
|
765
765
|
customer_id: string;
|
|
766
766
|
product_id: string;
|
|
767
|
-
entity_id?: string | undefined;
|
|
768
767
|
options?: {
|
|
769
768
|
feature_id: string;
|
|
770
769
|
quantity: number;
|
|
771
770
|
}[] | undefined;
|
|
771
|
+
entity_id?: string | undefined;
|
|
772
772
|
success_url?: string | undefined;
|
|
773
773
|
customer_data?: {
|
|
774
774
|
name?: string | null | undefined;
|
|
@@ -870,18 +870,18 @@ declare class Autumn {
|
|
|
870
870
|
static checkout: (params: CheckoutParams) => Promise<Result<CheckoutResult, AutumnError>>;
|
|
871
871
|
checkout(params: CheckoutParams): Promise<Result<CheckoutResult, AutumnError>>;
|
|
872
872
|
static attach: (params: AttachParams) => Promise<Result<{
|
|
873
|
-
customer_id: string;
|
|
874
|
-
code: string;
|
|
875
873
|
message: string;
|
|
874
|
+
code: string;
|
|
875
|
+
customer_id: string;
|
|
876
876
|
product_ids: string[];
|
|
877
877
|
customer_data?: any;
|
|
878
878
|
checkout_url?: string | undefined;
|
|
879
879
|
}, AutumnError>>;
|
|
880
880
|
static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
|
|
881
881
|
attach(params: AttachParams): Promise<Result<{
|
|
882
|
-
customer_id: string;
|
|
883
|
-
code: string;
|
|
884
882
|
message: string;
|
|
883
|
+
code: string;
|
|
884
|
+
customer_id: string;
|
|
885
885
|
product_ids: string[];
|
|
886
886
|
customer_data?: any;
|
|
887
887
|
checkout_url?: string | undefined;
|
|
@@ -901,15 +901,15 @@ declare class Autumn {
|
|
|
901
901
|
static check: (params: CheckParams) => Promise<Result<CheckResult, AutumnError>>;
|
|
902
902
|
check(params: CheckParams): Promise<Result<CheckResult, AutumnError>>;
|
|
903
903
|
static track: (params: TrackParams) => Promise<Result<{
|
|
904
|
-
customer_id: string;
|
|
905
904
|
code: string;
|
|
905
|
+
customer_id: string;
|
|
906
906
|
id: string;
|
|
907
907
|
feature_id?: string | undefined;
|
|
908
908
|
event_name?: string | undefined;
|
|
909
909
|
}, AutumnError>>;
|
|
910
910
|
track(params: TrackParams): Promise<Result<{
|
|
911
|
-
customer_id: string;
|
|
912
911
|
code: string;
|
|
912
|
+
customer_id: string;
|
|
913
913
|
id: string;
|
|
914
914
|
feature_id?: string | undefined;
|
|
915
915
|
event_name?: string | undefined;
|
|
@@ -979,11 +979,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
|
|
|
979
979
|
code: z.ZodString;
|
|
980
980
|
customer_id: z.ZodString;
|
|
981
981
|
}, "strip", z.ZodTypeAny, {
|
|
982
|
-
customer_id: string;
|
|
983
982
|
code: string;
|
|
984
|
-
}, {
|
|
985
983
|
customer_id: string;
|
|
984
|
+
}, {
|
|
986
985
|
code: string;
|
|
986
|
+
customer_id: string;
|
|
987
987
|
}>;
|
|
988
988
|
type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
|
|
989
989
|
|
|
@@ -4,6 +4,16 @@ import {
|
|
|
4
4
|
createSlot
|
|
5
5
|
} from "./chunk-RPEGNKJH.mjs";
|
|
6
6
|
|
|
7
|
+
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
8
|
+
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
9
|
+
return function handleEvent(event) {
|
|
10
|
+
originalEventHandler?.(event);
|
|
11
|
+
if (checkForDefaultPrevented === false || !event.defaultPrevented) {
|
|
12
|
+
return ourEventHandler?.(event);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
7
17
|
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
8
18
|
import * as React from "react";
|
|
9
19
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -81,16 +91,6 @@ function composeContextScopes(...scopes) {
|
|
|
81
91
|
return createScope;
|
|
82
92
|
}
|
|
83
93
|
|
|
84
|
-
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
85
|
-
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
86
|
-
return function handleEvent(event) {
|
|
87
|
-
originalEventHandler?.(event);
|
|
88
|
-
if (checkForDefaultPrevented === false || !event.defaultPrevented) {
|
|
89
|
-
return ourEventHandler?.(event);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
94
|
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
95
95
|
import * as React3 from "react";
|
|
96
96
|
|
|
@@ -208,9 +208,9 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
export {
|
|
211
|
+
composeEventHandlers,
|
|
211
212
|
createContext2,
|
|
212
213
|
createContextScope,
|
|
213
|
-
composeEventHandlers,
|
|
214
214
|
useLayoutEffect2,
|
|
215
215
|
useControllableState,
|
|
216
216
|
Primitive,
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
logAuthError
|
|
5
|
-
} from "./chunk-JVCOY7ZL.mjs";
|
|
6
|
-
import {
|
|
7
|
-
logFetchError
|
|
8
|
-
} from "./chunk-CIBQ4BJU.mjs";
|
|
9
3
|
import {
|
|
10
4
|
AutumnError,
|
|
11
5
|
toContainerResult
|
|
@@ -17,6 +11,12 @@ import {
|
|
|
17
11
|
createCode,
|
|
18
12
|
redeemCode
|
|
19
13
|
} from "./chunk-ZV4RPZTM.mjs";
|
|
14
|
+
import {
|
|
15
|
+
logAuthError
|
|
16
|
+
} from "./chunk-JVCOY7ZL.mjs";
|
|
17
|
+
import {
|
|
18
|
+
logFetchError
|
|
19
|
+
} from "./chunk-CIBQ4BJU.mjs";
|
|
20
20
|
import {
|
|
21
21
|
getPricingTableMethod
|
|
22
22
|
} from "./chunk-VTGR7VVK.mjs";
|