autumn-js 0.0.103 → 0.0.104
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 -4
- package/dist/libraries/backend/better-auth.d.ts +28 -4
- package/dist/libraries/backend/better-auth.js +76 -83
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-YFWJ6E4U.mjs → chunk-2RZ2FZX2.mjs} +10 -10
- package/dist/libraries/backend/{chunk-33NT3WE5.mjs → chunk-3OLXYDCU.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AKV5N4WO.mjs → chunk-5EKNB4IJ.mjs} +1 -1
- package/dist/libraries/backend/{chunk-CEZHD5H6.mjs → chunk-5H6HVCOP.mjs} +1 -1
- package/dist/libraries/backend/{chunk-J3L3OBSS.mjs → chunk-HHMIVOXX.mjs} +18 -1
- package/dist/libraries/backend/{chunk-6VS7TU7O.mjs → chunk-IOSEAUDJ.mjs} +57 -81
- package/dist/libraries/backend/{chunk-RA4AC56B.mjs → chunk-K7JGEYUX.mjs} +1 -1
- package/dist/libraries/backend/convex.js +73 -80
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +73 -80
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +73 -80
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +73 -80
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +73 -80
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/next.js +169 -176
- package/dist/libraries/backend/next.mjs +101 -101
- package/dist/libraries/backend/react-router.js +73 -80
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-DV8s1h8w.d.ts → referralTypes-CnYanpMd.d.ts} +199 -102
- package/dist/libraries/backend/{referralTypes-DcDxMGTp.d.mts → referralTypes-jA7MQ1y5.d.mts} +199 -102
- package/dist/libraries/backend/remix_dep.js +73 -80
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +73 -80
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +56 -80
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +73 -80
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +56 -80
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +56 -80
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +73 -80
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +73 -80
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +56 -80
- package/dist/libraries/backend/utils/backendRes.mjs +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/backend/utils/withAuth.js +56 -80
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +5 -4
- package/dist/libraries/react/AutumnContext.d.ts +5 -4
- package/dist/libraries/react/AutumnContext.js +63 -82
- package/dist/libraries/react/AutumnContext.mjs +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -4
- package/dist/libraries/react/BaseAutumnProvider.js +96 -111
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-C8Nt-pqu.d.mts → ReactAutumnClient-BGI56QI_.d.mts} +21 -10
- package/dist/libraries/react/{ReactAutumnClient-BlxQQOXE.d.ts → ReactAutumnClient-CEv9YGLM.d.ts} +21 -10
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +96 -111
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/attachTypes-Cexub7bN.d.ts +58 -0
- package/dist/libraries/react/attachTypes-DqI7qtXD.d.mts +58 -0
- package/dist/libraries/react/{chunk-VUBJ6JM3.mjs → chunk-253MTZP3.mjs} +7 -2
- package/dist/libraries/react/{chunk-RQN4VDAE.mjs → chunk-3N6WLQH3.mjs} +3 -3
- package/dist/libraries/react/{chunk-DHJ36QEV.mjs → chunk-473LVTGN.mjs} +2 -2
- package/dist/libraries/react/{chunk-LXSKONN2.mjs → chunk-4A53GN44.mjs} +5 -5
- package/dist/libraries/react/{chunk-EHOBTSZ7.mjs → chunk-4BQDSIWM.mjs} +5 -8
- package/dist/libraries/react/{chunk-S6JUZ43Q.mjs → chunk-4VXBAIPC.mjs} +2 -2
- package/dist/libraries/react/{chunk-OAWFFAKA.mjs → chunk-6EZVNJHQ.mjs} +6 -6
- package/dist/libraries/react/{chunk-DBGTWERW.mjs → chunk-ASL5VH2W.mjs} +4 -3
- package/dist/libraries/react/{chunk-QBBE72EF.mjs → chunk-CBPZVSMZ.mjs} +12 -7
- package/dist/libraries/react/chunk-CUWUAQML.mjs +179 -0
- package/dist/libraries/react/chunk-DJIRJJNG.mjs +34 -0
- package/dist/libraries/react/{chunk-CYW4LNFZ.mjs → chunk-E5EYSQYJ.mjs} +68 -90
- package/dist/libraries/react/{chunk-GQIE3MFB.mjs → chunk-EBQBPZCM.mjs} +3 -3
- package/dist/libraries/react/{chunk-AL3VJLFU.mjs → chunk-EV5RNY5U.mjs} +1 -1
- package/dist/libraries/react/chunk-G6NOGGDA.mjs +695 -0
- package/dist/libraries/react/{chunk-OAPUYXBO.mjs → chunk-KWNH6C27.mjs} +6 -6
- package/dist/libraries/react/{chunk-X4R3V6O6.mjs → chunk-MNOH7Q3B.mjs} +2 -2
- package/dist/libraries/react/{chunk-3SGSKYJ7.mjs → chunk-P5MIFIIO.mjs} +2 -2
- package/dist/libraries/react/{chunk-PZJQBCVG.mjs → chunk-PIENO233.mjs} +1 -1
- package/dist/libraries/react/chunk-QUO2CYKM.mjs +30 -0
- package/dist/libraries/react/{chunk-BCMBFJ7E.mjs → chunk-RCTILKK3.mjs} +70 -37
- package/dist/libraries/react/{chunk-ZVQKDPUP.mjs → chunk-RPEGNKJH.mjs} +3 -3
- package/dist/libraries/react/{chunk-SDMBKRAI.mjs → chunk-WAFSQH6N.mjs} +37 -37
- package/dist/libraries/react/{chunk-CGWNDUYV.mjs → chunk-ZFIJI37N.mjs} +1 -1
- package/dist/libraries/react/{chunk-KYSWTOMQ.mjs → chunk-ZITEHPEQ.mjs} +30 -24
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.js +63 -82
- package/dist/libraries/react/client/ReactAutumnClient.mjs +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.mts +9 -7
- package/dist/libraries/react/client/clientGenMethods.d.ts +9 -7
- package/dist/libraries/react/client/clientGenMethods.js +8 -2
- package/dist/libraries/react/client/clientGenMethods.mjs +3 -1
- package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +115 -0
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +115 -0
- package/dist/libraries/react/client/types/clientAttachTypes.js +68 -0
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +42 -0
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +10 -81
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +10 -81
- package/dist/libraries/react/client/types/clientGenTypes.js +1 -24
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -22
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +213 -4
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +5 -32
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +5 -32
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +720 -371
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +30 -33
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +3 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +3 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.js +70 -37
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +43 -43
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +3 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +3 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.js +12 -7
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.mjs +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +213 -4
- 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 +794 -456
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +29 -26
- package/dist/libraries/react/components/ui/accordion.d.mts +9 -0
- package/dist/libraries/react/components/ui/accordion.d.ts +9 -0
- package/dist/libraries/react/components/ui/accordion.js +2721 -0
- package/dist/libraries/react/components/ui/accordion.mjs +15 -0
- 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/button.js +3 -3
- package/dist/libraries/react/components/ui/button.mjs +2 -2
- package/dist/libraries/react/components/ui/dialog.js +43 -43
- package/dist/libraries/react/components/ui/dialog.mjs +3 -3
- package/dist/libraries/react/components/ui/input.d.mts +5 -0
- package/dist/libraries/react/components/ui/input.d.ts +5 -0
- package/dist/libraries/react/components/ui/input.js +2587 -0
- package/dist/libraries/react/components/ui/input.mjs +9 -0
- package/dist/libraries/react/components/ui/popover.d.mts +9 -0
- package/dist/libraries/react/components/ui/popover.d.ts +9 -0
- package/dist/libraries/react/components/ui/popover.js +2594 -0
- package/dist/libraries/react/components/ui/popover.mjs +15 -0
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-CHcG59KG.d.mts → cusTypes-DCeNEQLu.d.mts} +28 -10
- package/dist/libraries/react/{cusTypes-CHcG59KG.d.ts → cusTypes-DCeNEQLu.d.ts} +28 -10
- package/dist/libraries/react/{entTypes-8-4TWxee.d.ts → entTypes-BJD_Hxbp.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-3t7AbNhm.d.mts → entTypes-CJhJFCKD.d.mts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +21 -6
- package/dist/libraries/react/hooks/useAutumn.d.ts +21 -6
- package/dist/libraries/react/hooks/useAutumn.js +94 -110
- package/dist/libraries/react/hooks/useAutumn.mjs +9 -9
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +24 -9
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +24 -9
- package/dist/libraries/react/hooks/useAutumnBase.js +94 -110
- package/dist/libraries/react/hooks/useAutumnBase.mjs +8 -8
- package/dist/libraries/react/hooks/useCustomer.d.mts +7 -5
- package/dist/libraries/react/hooks/useCustomer.d.ts +7 -5
- package/dist/libraries/react/hooks/useCustomer.js +96 -111
- package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +8 -5
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +8 -5
- package/dist/libraries/react/hooks/useCustomerBase.js +96 -111
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- package/dist/libraries/react/hooks/useEntity.d.mts +14 -7
- package/dist/libraries/react/hooks/useEntity.d.ts +14 -7
- package/dist/libraries/react/hooks/useEntity.js +94 -110
- package/dist/libraries/react/hooks/useEntity.mjs +10 -10
- package/dist/libraries/react/hooks/useEntityBase.d.mts +16 -7
- package/dist/libraries/react/hooks/useEntityBase.d.ts +16 -7
- package/dist/libraries/react/hooks/useEntityBase.js +94 -110
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- 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.js +66 -88
- package/dist/libraries/react/hooks/usePricingTable.mjs +8 -8
- 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/usePricingTableBase.js +66 -88
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +7 -7
- package/dist/libraries/react/hooks/useProductsBase.js +63 -82
- package/dist/libraries/react/hooks/useProductsBase.mjs +6 -6
- package/dist/libraries/react/index.d.mts +217 -106
- package/dist/libraries/react/index.d.ts +217 -106
- package/dist/libraries/react/index.js +801 -463
- package/dist/libraries/react/index.mjs +792 -454
- package/dist/libraries/react/{response-DnJCkvfc.d.ts → response-Dek2TEnE.d.ts} +2 -25
- package/dist/libraries/react/{response-B8MYd86O.d.mts → response-HZAWTgGp.d.mts} +2 -25
- package/dist/next/{AutumnProvider-Xl1mqxls.d.mts → AutumnProvider-CHFySjFm.d.mts} +30 -12
- package/dist/next/{AutumnProvider-Xl1mqxls.d.ts → AutumnProvider-CHFySjFm.d.ts} +30 -12
- package/dist/next/AutumnProvider.d.mts +1 -1
- package/dist/next/AutumnProvider.d.ts +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +18 -7
- package/dist/next/client/NextAutumnClient.d.ts +18 -7
- package/dist/next/client/NextAutumnClient.js +13 -2
- package/dist/next/client/NextAutumnClient.mjs +13 -2
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/attachTypes-BL6x9Zbx.d.ts +58 -0
- package/dist/next/client/attachTypes-BPYeJ6E4.d.mts +58 -0
- package/dist/next/client/{clientGenTypes-Dx1TULjb.d.ts → clientAttachTypes-Dj6U8D7o.d.ts} +108 -90
- package/dist/next/client/{clientGenTypes-tE8HbEdV.d.mts → clientAttachTypes-fN66J754.d.mts} +108 -90
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-nWQygxXu.d.mts → cusTypes-BoVZ2omf.d.mts} +32 -14
- package/dist/next/client/{cusTypes-nWQygxXu.d.ts → cusTypes-BoVZ2omf.d.ts} +32 -14
- package/dist/next/client/{entTypes-DDZyYuom.d.ts → entTypes-BrHkjvC9.d.ts} +1 -1
- package/dist/next/client/{entTypes-DusU3WqD.d.mts → entTypes-Li6ZrG0C.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +19 -5
- package/dist/next/client/hooks/useAutumn.d.ts +19 -5
- package/dist/next/client/hooks/useCustomer.d.mts +5 -4
- package/dist/next/client/hooks/useCustomer.d.ts +5 -4
- package/dist/next/client/hooks/useEntity.d.mts +14 -8
- package/dist/next/client/hooks/useEntity.d.ts +14 -8
- 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 +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/index.d.mts +213 -107
- package/dist/next/index.d.ts +213 -107
- 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 +173 -94
- package/dist/next/server/cusActions.d.ts +173 -94
- package/dist/next/server/{cusTypes-Tc189V9T.d.mts → cusTypes-Bh_pVAJp.d.mts} +32 -14
- package/dist/next/server/{cusTypes-Tc189V9T.d.ts → cusTypes-Bh_pVAJp.d.ts} +32 -14
- package/dist/next/server/genActions.d.mts +3 -4
- package/dist/next/server/genActions.d.ts +3 -4
- package/dist/sdk/index.d.mts +221 -135
- package/dist/sdk/index.d.ts +221 -135
- package/dist/sdk/index.js +55 -80
- package/dist/sdk/index.mjs +54 -81
- package/dist/styles/global.css +213 -4
- package/dist/utils/encryptUtils.js +56 -80
- package/dist/utils/encryptUtils.mjs +56 -80
- package/package.json +7 -4
- package/dist/libraries/react/chunk-ZEVKOP7Z.mjs +0 -548
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-BoVZ2omf.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
|
-
import * as react from 'react';
|
|
5
4
|
|
|
6
|
-
declare const AttachResultSchema: z.ZodObject<{
|
|
7
|
-
checkout_url: z.ZodOptional<z.ZodString>;
|
|
8
|
-
customer_id: z.ZodString;
|
|
9
|
-
product_ids: z.ZodArray<z.ZodString, "many">;
|
|
10
|
-
code: z.ZodString;
|
|
11
|
-
message: z.ZodString;
|
|
12
|
-
customer_data: z.ZodOptional<z.ZodAny>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
code: string;
|
|
15
|
-
message: string;
|
|
16
|
-
customer_id: string;
|
|
17
|
-
product_ids: string[];
|
|
18
|
-
checkout_url?: string | undefined;
|
|
19
|
-
customer_data?: any;
|
|
20
|
-
}, {
|
|
21
|
-
code: string;
|
|
22
|
-
message: string;
|
|
23
|
-
customer_id: string;
|
|
24
|
-
product_ids: string[];
|
|
25
|
-
checkout_url?: string | undefined;
|
|
26
|
-
customer_data?: any;
|
|
27
|
-
}>;
|
|
28
|
-
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
29
5
|
declare const CancelResultSchema: z.ZodObject<{
|
|
30
6
|
success: z.ZodBoolean;
|
|
31
7
|
customer_id: z.ZodString;
|
|
@@ -47,14 +23,14 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
47
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
48
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
49
25
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
id: string;
|
|
51
26
|
code: string;
|
|
27
|
+
id: string;
|
|
52
28
|
customer_id: string;
|
|
53
29
|
feature_id?: string | undefined;
|
|
54
30
|
event_name?: string | undefined;
|
|
55
31
|
}, {
|
|
56
|
-
id: string;
|
|
57
32
|
code: string;
|
|
33
|
+
id: string;
|
|
58
34
|
customer_id: string;
|
|
59
35
|
feature_id?: string | undefined;
|
|
60
36
|
event_name?: string | undefined;
|
|
@@ -79,65 +55,6 @@ type Failure<E> = {
|
|
|
79
55
|
type Result<T, E> = Success<T> | Failure<E>;
|
|
80
56
|
type AutumnPromise<T> = Promise<Result<T, AutumnError>>;
|
|
81
57
|
|
|
82
|
-
declare const AttachParamsSchema: z.ZodObject<{
|
|
83
|
-
productId: z.ZodOptional<z.ZodString>;
|
|
84
|
-
entityId: z.ZodOptional<z.ZodString>;
|
|
85
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
|
-
featureId: z.ZodString;
|
|
87
|
-
quantity: z.ZodNumber;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
featureId: string;
|
|
90
|
-
quantity: number;
|
|
91
|
-
}, {
|
|
92
|
-
featureId: string;
|
|
93
|
-
quantity: number;
|
|
94
|
-
}>, "many">>;
|
|
95
|
-
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
96
|
-
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
successUrl: z.ZodOptional<z.ZodString>;
|
|
98
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
|
-
forceCheckout: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
-
dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
|
|
101
|
-
entityData: z.ZodOptional<z.ZodAny>;
|
|
102
|
-
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
-
reward: z.ZodOptional<z.ZodString>;
|
|
104
|
-
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
105
|
-
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
options?: {
|
|
107
|
-
featureId: string;
|
|
108
|
-
quantity: number;
|
|
109
|
-
}[] | undefined;
|
|
110
|
-
metadata?: Record<string, string> | undefined;
|
|
111
|
-
productId?: string | undefined;
|
|
112
|
-
entityId?: string | undefined;
|
|
113
|
-
productIds?: string[] | undefined;
|
|
114
|
-
freeTrial?: boolean | undefined;
|
|
115
|
-
successUrl?: string | undefined;
|
|
116
|
-
forceCheckout?: boolean | undefined;
|
|
117
|
-
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
118
|
-
entityData?: any;
|
|
119
|
-
openInNewTab?: boolean | undefined;
|
|
120
|
-
reward?: string | undefined;
|
|
121
|
-
checkoutSessionParams?: Record<string, any> | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
options?: {
|
|
124
|
-
featureId: string;
|
|
125
|
-
quantity: number;
|
|
126
|
-
}[] | undefined;
|
|
127
|
-
metadata?: Record<string, string> | undefined;
|
|
128
|
-
productId?: string | undefined;
|
|
129
|
-
entityId?: string | undefined;
|
|
130
|
-
productIds?: string[] | undefined;
|
|
131
|
-
freeTrial?: boolean | undefined;
|
|
132
|
-
successUrl?: string | undefined;
|
|
133
|
-
forceCheckout?: boolean | undefined;
|
|
134
|
-
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
135
|
-
entityData?: any;
|
|
136
|
-
openInNewTab?: boolean | undefined;
|
|
137
|
-
reward?: string | undefined;
|
|
138
|
-
checkoutSessionParams?: Record<string, any> | undefined;
|
|
139
|
-
}>;
|
|
140
|
-
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
141
58
|
declare const CancelParamsSchema: z.ZodObject<{
|
|
142
59
|
productId: z.ZodString;
|
|
143
60
|
entityId: z.ZodOptional<z.ZodString>;
|
|
@@ -159,13 +76,13 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
159
76
|
requiredBalance: z.ZodOptional<z.ZodNumber>;
|
|
160
77
|
sendEvent: z.ZodOptional<z.ZodBoolean>;
|
|
161
78
|
withPreview: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
-
dialog: z.ZodOptional<z.
|
|
79
|
+
dialog: z.ZodOptional<z.ZodAny>;
|
|
163
80
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
164
81
|
}, "strip", z.ZodTypeAny, {
|
|
165
82
|
productId?: string | undefined;
|
|
166
83
|
entityId?: string | undefined;
|
|
167
84
|
featureId?: string | undefined;
|
|
168
|
-
dialog?:
|
|
85
|
+
dialog?: any;
|
|
169
86
|
entityData?: any;
|
|
170
87
|
requiredBalance?: number | undefined;
|
|
171
88
|
sendEvent?: boolean | undefined;
|
|
@@ -174,7 +91,7 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
174
91
|
productId?: string | undefined;
|
|
175
92
|
entityId?: string | undefined;
|
|
176
93
|
featureId?: string | undefined;
|
|
177
|
-
dialog?:
|
|
94
|
+
dialog?: any;
|
|
178
95
|
entityData?: any;
|
|
179
96
|
requiredBalance?: number | undefined;
|
|
180
97
|
sendEvent?: boolean | undefined;
|
|
@@ -214,4 +131,105 @@ interface SetupPaymentParams {
|
|
|
214
131
|
openInNewTab?: boolean;
|
|
215
132
|
}
|
|
216
133
|
|
|
217
|
-
|
|
134
|
+
declare const AttachParamsSchema: z.ZodObject<{
|
|
135
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
137
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
138
|
+
featureId: z.ZodString;
|
|
139
|
+
quantity: z.ZodNumber;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
featureId: string;
|
|
142
|
+
quantity: number;
|
|
143
|
+
}, {
|
|
144
|
+
featureId: string;
|
|
145
|
+
quantity: number;
|
|
146
|
+
}>, "many">>;
|
|
147
|
+
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
148
|
+
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
successUrl: z.ZodOptional<z.ZodString>;
|
|
150
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
151
|
+
forceCheckout: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated This field is deprecated and will be removed in a future version.
|
|
154
|
+
*/
|
|
155
|
+
dialog: z.ZodOptional<z.ZodAny>;
|
|
156
|
+
entityData: z.ZodOptional<z.ZodAny>;
|
|
157
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
reward: z.ZodOptional<z.ZodString>;
|
|
159
|
+
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
options?: {
|
|
162
|
+
featureId: string;
|
|
163
|
+
quantity: number;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
metadata?: Record<string, string> | undefined;
|
|
166
|
+
productId?: string | undefined;
|
|
167
|
+
entityId?: string | undefined;
|
|
168
|
+
productIds?: string[] | undefined;
|
|
169
|
+
freeTrial?: boolean | undefined;
|
|
170
|
+
successUrl?: string | undefined;
|
|
171
|
+
forceCheckout?: boolean | undefined;
|
|
172
|
+
dialog?: any;
|
|
173
|
+
entityData?: any;
|
|
174
|
+
openInNewTab?: boolean | undefined;
|
|
175
|
+
reward?: string | undefined;
|
|
176
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
options?: {
|
|
179
|
+
featureId: string;
|
|
180
|
+
quantity: number;
|
|
181
|
+
}[] | undefined;
|
|
182
|
+
metadata?: Record<string, string> | undefined;
|
|
183
|
+
productId?: string | undefined;
|
|
184
|
+
entityId?: string | undefined;
|
|
185
|
+
productIds?: string[] | undefined;
|
|
186
|
+
freeTrial?: boolean | undefined;
|
|
187
|
+
successUrl?: string | undefined;
|
|
188
|
+
forceCheckout?: boolean | undefined;
|
|
189
|
+
dialog?: any;
|
|
190
|
+
entityData?: any;
|
|
191
|
+
openInNewTab?: boolean | undefined;
|
|
192
|
+
reward?: string | undefined;
|
|
193
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
196
|
+
declare const CheckoutParamsSchema: z.ZodObject<{
|
|
197
|
+
productId: z.ZodString;
|
|
198
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
199
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
200
|
+
featureId: z.ZodString;
|
|
201
|
+
quantity: z.ZodNumber;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
featureId: string;
|
|
204
|
+
quantity: number;
|
|
205
|
+
}, {
|
|
206
|
+
featureId: string;
|
|
207
|
+
quantity: number;
|
|
208
|
+
}>, "many">>;
|
|
209
|
+
successUrl: z.ZodOptional<z.ZodString>;
|
|
210
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
dialog: z.ZodOptional<z.ZodAny>;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
productId: string;
|
|
214
|
+
options?: {
|
|
215
|
+
featureId: string;
|
|
216
|
+
quantity: number;
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
entityId?: string | undefined;
|
|
219
|
+
successUrl?: string | undefined;
|
|
220
|
+
dialog?: any;
|
|
221
|
+
openInNewTab?: boolean | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
productId: string;
|
|
224
|
+
options?: {
|
|
225
|
+
featureId: string;
|
|
226
|
+
quantity: number;
|
|
227
|
+
}[] | undefined;
|
|
228
|
+
entityId?: string | undefined;
|
|
229
|
+
successUrl?: string | undefined;
|
|
230
|
+
dialog?: any;
|
|
231
|
+
openInNewTab?: boolean | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
|
|
234
|
+
|
|
235
|
+
export type { AttachParams as A, CheckResult as C, OpenBillingPortalParams as O, Result as R, SetupPaymentParams as S, TrackParams as T, CheckParams as a, AutumnPromise as b, TrackResult as c, CancelParams as d, CancelResult as e, SetupPaymentResult as f, CheckoutParams as g };
|
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-BoVZ2omf.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
|
-
import * as react from 'react';
|
|
5
4
|
|
|
6
|
-
declare const AttachResultSchema: z.ZodObject<{
|
|
7
|
-
checkout_url: z.ZodOptional<z.ZodString>;
|
|
8
|
-
customer_id: z.ZodString;
|
|
9
|
-
product_ids: z.ZodArray<z.ZodString, "many">;
|
|
10
|
-
code: z.ZodString;
|
|
11
|
-
message: z.ZodString;
|
|
12
|
-
customer_data: z.ZodOptional<z.ZodAny>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
code: string;
|
|
15
|
-
message: string;
|
|
16
|
-
customer_id: string;
|
|
17
|
-
product_ids: string[];
|
|
18
|
-
checkout_url?: string | undefined;
|
|
19
|
-
customer_data?: any;
|
|
20
|
-
}, {
|
|
21
|
-
code: string;
|
|
22
|
-
message: string;
|
|
23
|
-
customer_id: string;
|
|
24
|
-
product_ids: string[];
|
|
25
|
-
checkout_url?: string | undefined;
|
|
26
|
-
customer_data?: any;
|
|
27
|
-
}>;
|
|
28
|
-
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
29
5
|
declare const CancelResultSchema: z.ZodObject<{
|
|
30
6
|
success: z.ZodBoolean;
|
|
31
7
|
customer_id: z.ZodString;
|
|
@@ -47,14 +23,14 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
47
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
48
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
49
25
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
id: string;
|
|
51
26
|
code: string;
|
|
27
|
+
id: string;
|
|
52
28
|
customer_id: string;
|
|
53
29
|
feature_id?: string | undefined;
|
|
54
30
|
event_name?: string | undefined;
|
|
55
31
|
}, {
|
|
56
|
-
id: string;
|
|
57
32
|
code: string;
|
|
33
|
+
id: string;
|
|
58
34
|
customer_id: string;
|
|
59
35
|
feature_id?: string | undefined;
|
|
60
36
|
event_name?: string | undefined;
|
|
@@ -79,65 +55,6 @@ type Failure<E> = {
|
|
|
79
55
|
type Result<T, E> = Success<T> | Failure<E>;
|
|
80
56
|
type AutumnPromise<T> = Promise<Result<T, AutumnError>>;
|
|
81
57
|
|
|
82
|
-
declare const AttachParamsSchema: z.ZodObject<{
|
|
83
|
-
productId: z.ZodOptional<z.ZodString>;
|
|
84
|
-
entityId: z.ZodOptional<z.ZodString>;
|
|
85
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
|
-
featureId: z.ZodString;
|
|
87
|
-
quantity: z.ZodNumber;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
featureId: string;
|
|
90
|
-
quantity: number;
|
|
91
|
-
}, {
|
|
92
|
-
featureId: string;
|
|
93
|
-
quantity: number;
|
|
94
|
-
}>, "many">>;
|
|
95
|
-
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
96
|
-
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
successUrl: z.ZodOptional<z.ZodString>;
|
|
98
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
|
-
forceCheckout: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
-
dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
|
|
101
|
-
entityData: z.ZodOptional<z.ZodAny>;
|
|
102
|
-
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
-
reward: z.ZodOptional<z.ZodString>;
|
|
104
|
-
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
105
|
-
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
options?: {
|
|
107
|
-
featureId: string;
|
|
108
|
-
quantity: number;
|
|
109
|
-
}[] | undefined;
|
|
110
|
-
metadata?: Record<string, string> | undefined;
|
|
111
|
-
productId?: string | undefined;
|
|
112
|
-
entityId?: string | undefined;
|
|
113
|
-
productIds?: string[] | undefined;
|
|
114
|
-
freeTrial?: boolean | undefined;
|
|
115
|
-
successUrl?: string | undefined;
|
|
116
|
-
forceCheckout?: boolean | undefined;
|
|
117
|
-
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
118
|
-
entityData?: any;
|
|
119
|
-
openInNewTab?: boolean | undefined;
|
|
120
|
-
reward?: string | undefined;
|
|
121
|
-
checkoutSessionParams?: Record<string, any> | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
options?: {
|
|
124
|
-
featureId: string;
|
|
125
|
-
quantity: number;
|
|
126
|
-
}[] | undefined;
|
|
127
|
-
metadata?: Record<string, string> | undefined;
|
|
128
|
-
productId?: string | undefined;
|
|
129
|
-
entityId?: string | undefined;
|
|
130
|
-
productIds?: string[] | undefined;
|
|
131
|
-
freeTrial?: boolean | undefined;
|
|
132
|
-
successUrl?: string | undefined;
|
|
133
|
-
forceCheckout?: boolean | undefined;
|
|
134
|
-
dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
|
|
135
|
-
entityData?: any;
|
|
136
|
-
openInNewTab?: boolean | undefined;
|
|
137
|
-
reward?: string | undefined;
|
|
138
|
-
checkoutSessionParams?: Record<string, any> | undefined;
|
|
139
|
-
}>;
|
|
140
|
-
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
141
58
|
declare const CancelParamsSchema: z.ZodObject<{
|
|
142
59
|
productId: z.ZodString;
|
|
143
60
|
entityId: z.ZodOptional<z.ZodString>;
|
|
@@ -159,13 +76,13 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
159
76
|
requiredBalance: z.ZodOptional<z.ZodNumber>;
|
|
160
77
|
sendEvent: z.ZodOptional<z.ZodBoolean>;
|
|
161
78
|
withPreview: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
-
dialog: z.ZodOptional<z.
|
|
79
|
+
dialog: z.ZodOptional<z.ZodAny>;
|
|
163
80
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
164
81
|
}, "strip", z.ZodTypeAny, {
|
|
165
82
|
productId?: string | undefined;
|
|
166
83
|
entityId?: string | undefined;
|
|
167
84
|
featureId?: string | undefined;
|
|
168
|
-
dialog?:
|
|
85
|
+
dialog?: any;
|
|
169
86
|
entityData?: any;
|
|
170
87
|
requiredBalance?: number | undefined;
|
|
171
88
|
sendEvent?: boolean | undefined;
|
|
@@ -174,7 +91,7 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
174
91
|
productId?: string | undefined;
|
|
175
92
|
entityId?: string | undefined;
|
|
176
93
|
featureId?: string | undefined;
|
|
177
|
-
dialog?:
|
|
94
|
+
dialog?: any;
|
|
178
95
|
entityData?: any;
|
|
179
96
|
requiredBalance?: number | undefined;
|
|
180
97
|
sendEvent?: boolean | undefined;
|
|
@@ -214,4 +131,105 @@ interface SetupPaymentParams {
|
|
|
214
131
|
openInNewTab?: boolean;
|
|
215
132
|
}
|
|
216
133
|
|
|
217
|
-
|
|
134
|
+
declare const AttachParamsSchema: z.ZodObject<{
|
|
135
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
137
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
138
|
+
featureId: z.ZodString;
|
|
139
|
+
quantity: z.ZodNumber;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
featureId: string;
|
|
142
|
+
quantity: number;
|
|
143
|
+
}, {
|
|
144
|
+
featureId: string;
|
|
145
|
+
quantity: number;
|
|
146
|
+
}>, "many">>;
|
|
147
|
+
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
148
|
+
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
successUrl: z.ZodOptional<z.ZodString>;
|
|
150
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
151
|
+
forceCheckout: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated This field is deprecated and will be removed in a future version.
|
|
154
|
+
*/
|
|
155
|
+
dialog: z.ZodOptional<z.ZodAny>;
|
|
156
|
+
entityData: z.ZodOptional<z.ZodAny>;
|
|
157
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
reward: z.ZodOptional<z.ZodString>;
|
|
159
|
+
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
options?: {
|
|
162
|
+
featureId: string;
|
|
163
|
+
quantity: number;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
metadata?: Record<string, string> | undefined;
|
|
166
|
+
productId?: string | undefined;
|
|
167
|
+
entityId?: string | undefined;
|
|
168
|
+
productIds?: string[] | undefined;
|
|
169
|
+
freeTrial?: boolean | undefined;
|
|
170
|
+
successUrl?: string | undefined;
|
|
171
|
+
forceCheckout?: boolean | undefined;
|
|
172
|
+
dialog?: any;
|
|
173
|
+
entityData?: any;
|
|
174
|
+
openInNewTab?: boolean | undefined;
|
|
175
|
+
reward?: string | undefined;
|
|
176
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
options?: {
|
|
179
|
+
featureId: string;
|
|
180
|
+
quantity: number;
|
|
181
|
+
}[] | undefined;
|
|
182
|
+
metadata?: Record<string, string> | undefined;
|
|
183
|
+
productId?: string | undefined;
|
|
184
|
+
entityId?: string | undefined;
|
|
185
|
+
productIds?: string[] | undefined;
|
|
186
|
+
freeTrial?: boolean | undefined;
|
|
187
|
+
successUrl?: string | undefined;
|
|
188
|
+
forceCheckout?: boolean | undefined;
|
|
189
|
+
dialog?: any;
|
|
190
|
+
entityData?: any;
|
|
191
|
+
openInNewTab?: boolean | undefined;
|
|
192
|
+
reward?: string | undefined;
|
|
193
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
196
|
+
declare const CheckoutParamsSchema: z.ZodObject<{
|
|
197
|
+
productId: z.ZodString;
|
|
198
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
199
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
200
|
+
featureId: z.ZodString;
|
|
201
|
+
quantity: z.ZodNumber;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
featureId: string;
|
|
204
|
+
quantity: number;
|
|
205
|
+
}, {
|
|
206
|
+
featureId: string;
|
|
207
|
+
quantity: number;
|
|
208
|
+
}>, "many">>;
|
|
209
|
+
successUrl: z.ZodOptional<z.ZodString>;
|
|
210
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
dialog: z.ZodOptional<z.ZodAny>;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
productId: string;
|
|
214
|
+
options?: {
|
|
215
|
+
featureId: string;
|
|
216
|
+
quantity: number;
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
entityId?: string | undefined;
|
|
219
|
+
successUrl?: string | undefined;
|
|
220
|
+
dialog?: any;
|
|
221
|
+
openInNewTab?: boolean | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
productId: string;
|
|
224
|
+
options?: {
|
|
225
|
+
featureId: string;
|
|
226
|
+
quantity: number;
|
|
227
|
+
}[] | undefined;
|
|
228
|
+
entityId?: string | undefined;
|
|
229
|
+
successUrl?: string | undefined;
|
|
230
|
+
dialog?: any;
|
|
231
|
+
openInNewTab?: boolean | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
|
|
234
|
+
|
|
235
|
+
export type { AttachParams as A, CheckResult as C, OpenBillingPortalParams as O, Result as R, SetupPaymentParams as S, TrackParams as T, CheckParams as a, AutumnPromise as b, TrackResult as c, CancelParams as d, CancelResult as e, SetupPaymentResult as f, CheckoutParams as g };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.mjs';
|
|
2
|
-
import './cusTypes-
|
|
2
|
+
import './cusTypes-BoVZ2omf.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './entTypes-
|
|
4
|
+
import './entTypes-Li6ZrG0C.mjs';
|
|
5
5
|
|
|
6
6
|
declare const toClientErrorResponse: (error: any) => {
|
|
7
7
|
data: null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.js';
|
|
2
|
-
import './cusTypes-
|
|
2
|
+
import './cusTypes-BoVZ2omf.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './entTypes-
|
|
4
|
+
import './entTypes-BrHkjvC9.js';
|
|
5
5
|
|
|
6
6
|
declare const toClientErrorResponse: (error: any) => {
|
|
7
7
|
data: null;
|
|
@@ -88,10 +88,17 @@ declare enum AppEnv {
|
|
|
88
88
|
Live = "live"
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
interface Feature {
|
|
92
|
+
id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
type: "boolean" | "continuous_use" | "single_use" | "credit_system";
|
|
95
|
+
}
|
|
91
96
|
interface ProductItem {
|
|
97
|
+
type?: "feature" | "priced_feature" | "price";
|
|
92
98
|
feature_id?: string;
|
|
93
99
|
included_usage?: number | typeof Infinite;
|
|
94
100
|
interval?: ProductItemIntervalType;
|
|
101
|
+
feature?: Feature;
|
|
95
102
|
usage_model?: UsageModel;
|
|
96
103
|
price?: number;
|
|
97
104
|
billing_units?: number;
|
|
@@ -123,10 +130,12 @@ interface Product {
|
|
|
123
130
|
free_trial: FreeTrial | null;
|
|
124
131
|
scenario?: ProductScenario;
|
|
125
132
|
base_variant_id: string | null;
|
|
126
|
-
properties
|
|
127
|
-
is_free
|
|
128
|
-
is_one_off
|
|
129
|
-
interval_group
|
|
133
|
+
properties: {
|
|
134
|
+
is_free: boolean;
|
|
135
|
+
is_one_off: boolean;
|
|
136
|
+
interval_group: string;
|
|
137
|
+
has_trial: boolean;
|
|
138
|
+
has_prepaid: boolean;
|
|
130
139
|
};
|
|
131
140
|
display?: {
|
|
132
141
|
name?: string;
|
|
@@ -203,11 +212,20 @@ interface Customer {
|
|
|
203
212
|
features: Record<string, CustomerFeature>;
|
|
204
213
|
invoices?: CustomerInvoice[];
|
|
205
214
|
}
|
|
206
|
-
|
|
207
|
-
name
|
|
208
|
-
email
|
|
209
|
-
fingerprint
|
|
210
|
-
}
|
|
215
|
+
declare const CustomerDataSchema: z.ZodObject<{
|
|
216
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
name?: string | null | undefined;
|
|
221
|
+
email?: string | null | undefined;
|
|
222
|
+
fingerprint?: string | null | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
name?: string | null | undefined;
|
|
225
|
+
email?: string | null | undefined;
|
|
226
|
+
fingerprint?: string | null | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
type CustomerData = z.infer<typeof CustomerDataSchema>;
|
|
211
229
|
declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
212
230
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
231
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -216,17 +234,17 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
216
234
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
217
235
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
218
236
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
id?: string | null | undefined;
|
|
220
|
-
email?: string | null | undefined;
|
|
221
237
|
name?: string | null | undefined;
|
|
238
|
+
email?: string | null | undefined;
|
|
222
239
|
fingerprint?: string | null | undefined;
|
|
240
|
+
id?: string | null | undefined;
|
|
223
241
|
metadata?: Record<string, any> | undefined;
|
|
224
242
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
225
243
|
}, {
|
|
226
|
-
id?: string | null | undefined;
|
|
227
|
-
email?: string | null | undefined;
|
|
228
244
|
name?: string | null | undefined;
|
|
245
|
+
email?: string | null | undefined;
|
|
229
246
|
fingerprint?: string | null | undefined;
|
|
247
|
+
id?: string | null | undefined;
|
|
230
248
|
metadata?: Record<string, any> | undefined;
|
|
231
249
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
232
250
|
}>;
|
|
@@ -245,4 +263,4 @@ interface CustomerInvoice {
|
|
|
245
263
|
hosted_invoice_url: string;
|
|
246
264
|
}
|
|
247
265
|
|
|
248
|
-
export type { BillingPortalResult as B, CustomerData as C,
|
|
266
|
+
export type { BillingPortalResult as B, CustomerData as C, ProductItem as P, Customer as a, Product as b, CustomerProduct as c, CustomerFeature as d, CustomerInvoice as e, ProductScenario as f, CreateCustomerParams as g, CustomerExpandOption as h, CheckFeatureResult as i, CheckProductResult as j };
|