autumn-js 0.0.83 → 0.0.92-beta.1
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 +764 -4
- package/dist/libraries/backend/better-auth.d.ts +764 -4
- package/dist/libraries/backend/better-auth.js +341 -19184
- package/dist/libraries/backend/better-auth.mjs +232 -19135
- package/dist/libraries/backend/{chunk-XGB3TDIC.mjs → chunk-6DZX6EAA.mjs} +0 -5
- package/dist/libraries/backend/{chunk-J3QM5KFT.mjs → chunk-7QSJB2C5.mjs} +1 -1
- package/dist/libraries/backend/{chunk-UJQBHXII.mjs → chunk-FCEB2GBS.mjs} +1 -1
- package/dist/libraries/backend/{chunk-A46IKTLH.mjs → chunk-JPNRDMMC.mjs} +1 -1
- package/dist/libraries/backend/{chunk-52OTZ4SQ.mjs → chunk-NTFR7Z2G.mjs} +8 -8
- package/dist/libraries/backend/{chunk-DG3FZZQH.mjs → chunk-U7335VZS.mjs} +1 -1
- package/dist/libraries/backend/{chunk-VCEQ3QBX.mjs → chunk-V6M7KRGN.mjs} +57 -0
- package/dist/libraries/backend/{chunk-WDRHQJKV.mjs → chunk-VFTHGJ5N.mjs} +1 -1
- package/dist/libraries/backend/constants.mjs +1 -1
- package/dist/libraries/backend/convex.d.mts +10 -0
- package/dist/libraries/backend/convex.d.ts +10 -0
- package/dist/libraries/backend/convex.js +1045 -0
- package/dist/libraries/backend/convex.mjs +80 -0
- package/dist/libraries/backend/express.d.mts +2 -1
- package/dist/libraries/backend/express.d.ts +2 -1
- package/dist/libraries/backend/express.js +57 -0
- package/dist/libraries/backend/express.mjs +8 -8
- package/dist/libraries/backend/fastify.js +57 -0
- package/dist/libraries/backend/fastify.mjs +8 -8
- package/dist/libraries/backend/hono.js +57 -0
- package/dist/libraries/backend/hono.mjs +8 -8
- package/dist/libraries/backend/next.js +59 -2
- package/dist/libraries/backend/next.mjs +8 -8
- package/dist/libraries/backend/react-router.js +57 -0
- package/dist/libraries/backend/react-router.mjs +8 -8
- package/dist/libraries/backend/{referralTypes-BZ4WOVK5.d.ts → referralTypes-BAYl5TR1.d.ts} +101 -36
- package/dist/libraries/backend/{referralTypes-C6ao6j-_.d.mts → referralTypes-ecz_wESO.d.mts} +101 -36
- package/dist/libraries/backend/remix_dep.js +57 -0
- package/dist/libraries/backend/remix_dep.mjs +8 -8
- package/dist/libraries/backend/routes/backendRouter.js +57 -0
- package/dist/libraries/backend/routes/backendRouter.mjs +8 -8
- package/dist/libraries/backend/routes/entityRoutes.js +57 -0
- package/dist/libraries/backend/routes/entityRoutes.mjs +4 -4
- package/dist/libraries/backend/routes/genRoutes.js +57 -0
- package/dist/libraries/backend/routes/genRoutes.mjs +4 -4
- package/dist/libraries/backend/routes/productRoutes.js +57 -0
- package/dist/libraries/backend/routes/productRoutes.mjs +4 -4
- package/dist/libraries/backend/routes/referralRoutes.js +57 -0
- package/dist/libraries/backend/routes/referralRoutes.mjs +4 -4
- package/dist/libraries/backend/schemas/zod.d.mts +208 -0
- package/dist/libraries/backend/schemas/zod.d.ts +208 -0
- package/dist/libraries/backend/schemas/zod.js +100 -0
- package/dist/libraries/backend/schemas/zod.mjs +69 -0
- package/dist/libraries/backend/supabase.js +57 -0
- package/dist/libraries/backend/supabase.mjs +8 -8
- package/dist/libraries/backend/tanstack.js +57 -0
- package/dist/libraries/backend/tanstack.mjs +8 -8
- package/dist/libraries/backend/utils/backendRes.js +57 -0
- package/dist/libraries/backend/utils/backendRes.mjs +2 -2
- package/dist/libraries/backend/utils/logBackendErrors.mjs +1 -1
- package/dist/libraries/backend/utils/secretKeyCheck.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +2 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +2 -1
- package/dist/libraries/backend/utils/withAuth.js +57 -0
- package/dist/libraries/backend/utils/withAuth.mjs +3 -3
- package/dist/libraries/react/AutumnContext.d.mts +7 -6
- package/dist/libraries/react/AutumnContext.d.ts +7 -6
- package/dist/libraries/react/AutumnContext.js +59 -4
- package/dist/libraries/react/AutumnContext.mjs +2 -2
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -7
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -7
- package/dist/libraries/react/BaseAutumnProvider.js +149 -32
- package/dist/libraries/react/BaseAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{ReactAutumnClient-DS-MPWXt.d.ts → ReactAutumnClient-BTNcA_3b.d.ts} +59 -11
- package/dist/libraries/react/{ReactAutumnClient-Cj2h9TXJ.d.mts → ReactAutumnClient-BiipnfQn.d.mts} +59 -11
- package/dist/libraries/react/ReactAutumnProvider.d.mts +3 -3
- package/dist/libraries/react/ReactAutumnProvider.d.ts +3 -3
- package/dist/libraries/react/ReactAutumnProvider.js +160 -46
- package/dist/libraries/react/ReactAutumnProvider.mjs +8 -8
- package/dist/libraries/react/{chunk-JFXBUWKA.mjs → chunk-3JJC2VU5.mjs} +22 -5
- package/dist/libraries/react/{chunk-CQMTU2M4.mjs → chunk-3WP2MI55.mjs} +25 -6
- package/dist/libraries/react/{chunk-6ULRUGQO.mjs → chunk-4AYEAAQU.mjs} +2 -2
- package/dist/libraries/react/{chunk-UO2PX7P3.mjs → chunk-67Y4DFV2.mjs} +14 -17
- package/dist/libraries/react/{chunk-EWMKQDQ6.mjs → chunk-6JOSRG5Z.mjs} +2 -2
- package/dist/libraries/react/{chunk-JOY6LN3M.mjs → chunk-CHQRTGXF.mjs} +25 -7
- package/dist/libraries/react/{chunk-KVGD37VB.mjs → chunk-G3XBGOHR.mjs} +4 -6
- package/dist/libraries/react/{chunk-S4VDT54B.mjs → chunk-GK75OJJJ.mjs} +2 -2
- package/dist/libraries/react/{chunk-MH2YTNJL.mjs → chunk-ITN754AD.mjs} +3 -5
- package/dist/libraries/react/{chunk-Z7MRLSU3.mjs → chunk-LKBUMRHE.mjs} +9 -9
- package/dist/libraries/react/{chunk-UDRQNZZS.mjs → chunk-QAHVMSK4.mjs} +57 -0
- package/dist/libraries/react/{chunk-SCT4E6YW.mjs → chunk-SJAAUTL2.mjs} +2 -2
- package/dist/libraries/react/{chunk-L55GLFAX.mjs → chunk-TBKIB6DH.mjs} +2 -2
- package/dist/libraries/react/{chunk-GEIECHWI.mjs → chunk-TINC2IR4.mjs} +24 -14
- package/dist/libraries/react/{chunk-OWFX3JFF.mjs → chunk-WVKYZYFT.mjs} +14 -0
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -5
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -5
- package/dist/libraries/react/client/ReactAutumnClient.js +57 -0
- package/dist/libraries/react/client/ReactAutumnClient.mjs +1 -1
- package/dist/libraries/react/client/clientCompMethods.d.mts +6 -5
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -5
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -5
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -5
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -5
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -5
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -5
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -5
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -5
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -5
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +136 -41
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +136 -41
- package/dist/libraries/react/client/types/clientGenTypes.js +62 -0
- package/dist/libraries/react/client/types/clientGenTypes.mjs +52 -0
- package/dist/libraries/react/client/types/clientReferralTypes.d.mts +17 -5
- package/dist/libraries/react/client/types/clientReferralTypes.d.ts +17 -5
- package/dist/libraries/react/client/types/clientReferralTypes.js +20 -0
- package/dist/libraries/react/client/types/clientReferralTypes.mjs +13 -0
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +2 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +2 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +164 -29
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +17 -17
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +2 -1
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +2 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +2 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +2 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +2 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +2 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +2 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +2 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +163 -30
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +17 -17
- 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/{cusTypes-CO4FwQ_s.d.ts → cusTypes-Bf1qr9iE.d.mts} +29 -9
- package/dist/libraries/react/{cusTypes-CO4FwQ_s.d.mts → cusTypes-Bf1qr9iE.d.ts} +29 -9
- package/dist/libraries/react/{entTypes-DPTZOorv.d.mts → entTypes-CscyyE1A.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-UxZ5bRqE.d.ts → entTypes-O8YXxhrA.d.ts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +4 -3
- package/dist/libraries/react/hooks/handleAllowed.d.ts +4 -3
- package/dist/libraries/react/hooks/handleAllowed.js +22 -5
- package/dist/libraries/react/hooks/handleAllowed.mjs +1 -1
- package/dist/libraries/react/hooks/useAutumn.d.mts +6 -5
- package/dist/libraries/react/hooks/useAutumn.d.ts +6 -5
- package/dist/libraries/react/hooks/useAutumn.js +105 -13
- package/dist/libraries/react/hooks/useAutumn.mjs +5 -5
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +9 -8
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +9 -8
- package/dist/libraries/react/hooks/useAutumnBase.js +105 -13
- package/dist/libraries/react/hooks/useAutumnBase.mjs +4 -4
- 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 +148 -29
- package/dist/libraries/react/hooks/useCustomer.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +8 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +8 -4
- package/dist/libraries/react/hooks/useCustomerBase.js +148 -29
- package/dist/libraries/react/hooks/useCustomerBase.mjs +6 -6
- package/dist/libraries/react/hooks/useEntity.d.mts +7 -5
- package/dist/libraries/react/hooks/useEntity.d.ts +7 -5
- package/dist/libraries/react/hooks/useEntity.js +127 -18
- package/dist/libraries/react/hooks/useEntity.mjs +7 -7
- package/dist/libraries/react/hooks/useEntityBase.d.mts +7 -7
- package/dist/libraries/react/hooks/useEntityBase.d.ts +7 -7
- package/dist/libraries/react/hooks/useEntityBase.js +127 -18
- package/dist/libraries/react/hooks/useEntityBase.mjs +6 -6
- package/dist/libraries/react/hooks/usePricingTable.d.mts +2 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +2 -1
- package/dist/libraries/react/hooks/usePricingTable.js +82 -9
- package/dist/libraries/react/hooks/usePricingTable.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +7 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +7 -6
- package/dist/libraries/react/hooks/usePricingTableBase.js +82 -9
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +3 -3
- package/dist/libraries/react/hooks/useProductsBase.js +59 -4
- package/dist/libraries/react/hooks/useProductsBase.mjs +2 -2
- package/dist/libraries/react/index.d.mts +611 -0
- package/dist/libraries/react/index.d.ts +168 -57
- package/dist/libraries/react/index.js +175 -72
- package/dist/libraries/react/index.mjs +175 -72
- package/dist/libraries/react/{response-Z4Yeokd8.d.ts → response-BHqAAnND.d.ts} +21 -5
- package/dist/libraries/react/{response-CxtkXvb4.d.mts → response-CDZ_R5pb.d.mts} +21 -5
- package/dist/libraries/react/utils/inject-styles.js +14 -0
- package/dist/libraries/react/utils/inject-styles.mjs +1 -1
- package/dist/next/{AutumnProvider-DPcEuE_Q.d.ts → AutumnProvider-DtLqoQp6.d.mts} +28 -9
- package/dist/next/{AutumnProvider-DPcEuE_Q.d.mts → AutumnProvider-DtLqoQp6.d.ts} +28 -9
- package/dist/next/AutumnProvider.d.mts +2 -1
- package/dist/next/AutumnProvider.d.ts +2 -1
- package/dist/next/client/NextAutumnClient.d.mts +60 -10
- package/dist/next/client/NextAutumnClient.d.ts +60 -10
- package/dist/next/client/NextAutumnProvider.d.mts +2 -1
- package/dist/next/client/NextAutumnProvider.d.ts +2 -1
- package/dist/next/client/clientEntTypes-BFkleT6a.d.mts +22 -0
- package/dist/next/client/clientEntTypes-BFkleT6a.d.ts +22 -0
- package/dist/next/client/clientGenTypes-B28imYzT.d.mts +195 -0
- package/dist/next/client/clientGenTypes-D46edNj5.d.ts +195 -0
- package/dist/next/client/clientUtils.d.mts +3 -2
- package/dist/next/client/clientUtils.d.ts +3 -2
- package/dist/next/client/{cusTypes-CJI8rdlY.d.mts → cusTypes-CGXuXu_Y.d.mts} +29 -9
- package/dist/next/client/{cusTypes-CJI8rdlY.d.ts → cusTypes-CGXuXu_Y.d.ts} +29 -9
- package/dist/next/client/{entTypes-okM0aeOM.d.mts → entTypes-CJx3GLTt.d.mts} +1 -1
- package/dist/next/client/{entTypes-CqHWTcCX.d.ts → entTypes-qYfQsZ9u.d.ts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +6 -4
- package/dist/next/client/hooks/useAutumn.d.ts +6 -4
- package/dist/next/client/hooks/useCustomer.d.mts +26 -4
- package/dist/next/client/hooks/useCustomer.d.ts +26 -4
- package/dist/next/client/hooks/useCustomer.js +3 -1
- package/dist/next/client/hooks/useCustomer.mjs +3 -1
- package/dist/next/client/hooks/useEntity.d.mts +7 -5
- package/dist/next/client/hooks/useEntity.d.ts +7 -5
- package/dist/next/client/hooks/usePricingTable.d.mts +2 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +2 -1
- package/dist/next/client/types.d.mts +3 -2
- package/dist/next/client/types.d.ts +3 -2
- package/dist/next/index.d.mts +221 -65
- package/dist/next/index.d.ts +221 -65
- package/dist/next/server/auth/withNextAuth.d.mts +2 -1
- package/dist/next/server/auth/withNextAuth.d.ts +2 -1
- package/dist/next/server/componentActions.d.mts +2 -1
- package/dist/next/server/componentActions.d.ts +2 -1
- package/dist/next/server/cusActions.d.mts +93 -38
- package/dist/next/server/cusActions.d.ts +93 -38
- package/dist/next/server/{cusTypes-DuSwXVmp.d.mts → cusTypes-H4mqijcm.d.mts} +28 -8
- package/dist/next/server/{cusTypes-DuSwXVmp.d.ts → cusTypes-H4mqijcm.d.ts} +28 -8
- package/dist/next/server/genActions.d.mts +44 -49
- package/dist/next/server/genActions.d.ts +44 -49
- package/dist/sdk/index.d.mts +123 -29
- package/dist/sdk/index.d.ts +123 -29
- package/dist/sdk/index.js +60 -9
- package/dist/sdk/index.mjs +57 -10
- package/dist/styles/global.css +42 -4
- package/dist/utils/encryptUtils.js +57 -0
- package/dist/utils/encryptUtils.mjs +57 -0
- package/package.json +33 -4
- package/tsup.config.ts +1 -22
- package/components.json +0 -21
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +0 -1271
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +0 -1271
- package/dist/next/client/clientGenTypes-CAv4hwb4.d.ts +0 -108
- package/dist/next/client/clientGenTypes-Dlpw9wy_.d.mts +0 -108
- package/dist/next/client/clientReferralTypes-C9JiOk2s.d.mts +0 -20
- package/dist/next/client/clientReferralTypes-C9JiOk2s.d.ts +0 -20
- package/dist/next/server/clientEntTypes-BOVTwIKv.d.mts +0 -14
- package/dist/next/server/clientEntTypes-BOVTwIKv.d.ts +0 -14
- package/postcss.config.js +0 -25
- package/publish.sh +0 -18
- package/scripts/css-transform-plugin.js +0 -28
- package/scripts/post-build.js +0 -91
- package/scripts/sync-registry.ts +0 -190
- package/tailwind.config.ts +0 -96
- package/tsup.dev.config.ts +0 -199
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as CustomerProduct, b as CustomerFeature, c as CustomerInvoice, C as CustomerData, d as CheckFeatureResult, e as CheckProductResult, G as GetCustomerParams, f as Customer, g as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, P as Product, h as CreateProductParams, L as ListProductsParams } from './cusTypes-
|
|
1
|
+
import { a as CustomerProduct, b as CustomerFeature, c as CustomerInvoice, C as CustomerData, d as CheckFeatureResult, e as CheckProductResult, G as GetCustomerParams, f as Customer, g as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, P as Product, h as CreateProductParams, L as ListProductsParams } from './cusTypes-H4mqijcm.js';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
import { R as Result, A as AutumnError } from './response-eH4S4sg0.js';
|
|
3
|
-
import { G as GetEntityParams$1, C as CreateEntityParams$1 } from './clientEntTypes-BOVTwIKv.js';
|
|
4
4
|
|
|
5
5
|
type EntityExpandOption = "invoices";
|
|
6
6
|
|
|
7
|
-
interface CreateEntityParams {
|
|
7
|
+
interface CreateEntityParams$1 {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
10
|
feature_id: string;
|
|
@@ -16,7 +16,7 @@ interface CreateEntityResult {
|
|
|
16
16
|
interface DeleteEntityResult {
|
|
17
17
|
success: boolean;
|
|
18
18
|
}
|
|
19
|
-
interface GetEntityParams {
|
|
19
|
+
interface GetEntityParams$1 {
|
|
20
20
|
expand?: EntityExpandOption[];
|
|
21
21
|
}
|
|
22
22
|
interface Entity {
|
|
@@ -34,25 +34,65 @@ interface EntityData {
|
|
|
34
34
|
feature_id: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
declare const AttachParamsSchema: z.ZodObject<{
|
|
38
|
+
customer_id: z.ZodString;
|
|
39
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
40
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
41
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
+
feature_id: z.ZodString;
|
|
43
|
+
quantity: z.ZodNumber;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
feature_id: string;
|
|
46
|
+
quantity: number;
|
|
47
|
+
}, {
|
|
48
|
+
feature_id: string;
|
|
49
|
+
quantity: number;
|
|
50
|
+
}>, "many">>;
|
|
51
|
+
product_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
52
|
+
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
54
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
55
|
+
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
customer_data: z.ZodOptional<z.ZodAny>;
|
|
57
|
+
entity_data: z.ZodOptional<z.ZodAny>;
|
|
58
|
+
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
59
|
+
reward: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
61
|
customer_id: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
entity_id?: string | undefined;
|
|
63
|
+
options?: {
|
|
64
|
+
feature_id: string;
|
|
65
|
+
quantity: number;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
metadata?: Record<string, string> | undefined;
|
|
68
|
+
product_id?: string | undefined;
|
|
69
|
+
product_ids?: string[] | undefined;
|
|
70
|
+
free_trial?: boolean | undefined;
|
|
71
|
+
success_url?: string | undefined;
|
|
72
|
+
force_checkout?: boolean | undefined;
|
|
73
|
+
customer_data?: any;
|
|
74
|
+
entity_data?: any;
|
|
75
|
+
checkout_session_params?: Record<string, any> | undefined;
|
|
76
|
+
reward?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
customer_id: string;
|
|
79
|
+
entity_id?: string | undefined;
|
|
80
|
+
options?: {
|
|
81
|
+
feature_id: string;
|
|
82
|
+
quantity: number;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
metadata?: Record<string, string> | undefined;
|
|
85
|
+
product_id?: string | undefined;
|
|
86
|
+
product_ids?: string[] | undefined;
|
|
87
|
+
free_trial?: boolean | undefined;
|
|
88
|
+
success_url?: string | undefined;
|
|
89
|
+
force_checkout?: boolean | undefined;
|
|
90
|
+
customer_data?: any;
|
|
91
|
+
entity_data?: any;
|
|
92
|
+
checkout_session_params?: Record<string, any> | undefined;
|
|
93
|
+
reward?: string | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
56
96
|
interface CancelParams {
|
|
57
97
|
customer_id: string;
|
|
58
98
|
product_id: string;
|
|
@@ -64,14 +104,6 @@ interface CancelResult {
|
|
|
64
104
|
customer_id: string;
|
|
65
105
|
product_id: string;
|
|
66
106
|
}
|
|
67
|
-
interface AttachResult {
|
|
68
|
-
checkout_url?: string;
|
|
69
|
-
customer_id: string;
|
|
70
|
-
product_ids: string[];
|
|
71
|
-
code: string;
|
|
72
|
-
message: string;
|
|
73
|
-
customer_data?: CustomerData;
|
|
74
|
-
}
|
|
75
107
|
interface TrackParams {
|
|
76
108
|
customer_id: string;
|
|
77
109
|
value?: number;
|
|
@@ -154,8 +186,8 @@ declare class Autumn {
|
|
|
154
186
|
}, AutumnError>>;
|
|
155
187
|
};
|
|
156
188
|
static entities: {
|
|
157
|
-
get: (customer_id: string, entity_id: string, params?: GetEntityParams) => Promise<Result<Entity, AutumnError>>;
|
|
158
|
-
create: (customer_id: string, params?: CreateEntityParams | CreateEntityParams[]) => Promise<Result<CreateEntityResult, AutumnError>>;
|
|
189
|
+
get: (customer_id: string, entity_id: string, params?: GetEntityParams$1) => Promise<Result<Entity, AutumnError>>;
|
|
190
|
+
create: (customer_id: string, params?: CreateEntityParams$1 | CreateEntityParams$1[]) => Promise<Result<CreateEntityResult, AutumnError>>;
|
|
159
191
|
delete: (customer_id: string, entity_id: string) => Promise<Result<DeleteEntityResult, AutumnError>>;
|
|
160
192
|
};
|
|
161
193
|
static referrals: {
|
|
@@ -177,17 +209,31 @@ declare class Autumn {
|
|
|
177
209
|
}, AutumnError>>;
|
|
178
210
|
};
|
|
179
211
|
entities: {
|
|
180
|
-
get: (customer_id: string, entity_id: string, params?: GetEntityParams) => Promise<Result<Entity, AutumnError>>;
|
|
181
|
-
create: (customer_id: string, params?: CreateEntityParams | CreateEntityParams[]) => Promise<Result<CreateEntityResult, AutumnError>>;
|
|
212
|
+
get: (customer_id: string, entity_id: string, params?: GetEntityParams$1) => Promise<Result<Entity, AutumnError>>;
|
|
213
|
+
create: (customer_id: string, params?: CreateEntityParams$1 | CreateEntityParams$1[]) => Promise<Result<CreateEntityResult, AutumnError>>;
|
|
182
214
|
delete: (customer_id: string, entity_id: string) => Promise<Result<DeleteEntityResult, AutumnError>>;
|
|
183
215
|
};
|
|
184
216
|
referrals: {
|
|
185
217
|
createCode: (params: CreateReferralCodeParams) => Promise<Result<any, AutumnError>>;
|
|
186
218
|
redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
|
|
187
219
|
};
|
|
188
|
-
static attach: (params: AttachParams) => Promise<Result<
|
|
220
|
+
static attach: (params: AttachParams) => Promise<Result<{
|
|
221
|
+
customer_id: string;
|
|
222
|
+
code: string;
|
|
223
|
+
message: string;
|
|
224
|
+
product_ids: string[];
|
|
225
|
+
customer_data?: any;
|
|
226
|
+
checkout_url?: string | undefined;
|
|
227
|
+
}, AutumnError>>;
|
|
189
228
|
static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
|
|
190
|
-
attach(params: AttachParams): Promise<Result<
|
|
229
|
+
attach(params: AttachParams): Promise<Result<{
|
|
230
|
+
customer_id: string;
|
|
231
|
+
code: string;
|
|
232
|
+
message: string;
|
|
233
|
+
product_ids: string[];
|
|
234
|
+
customer_data?: any;
|
|
235
|
+
checkout_url?: string | undefined;
|
|
236
|
+
}, AutumnError>>;
|
|
191
237
|
static setupPayment: (params: SetupPaymentParams) => Promise<Result<SetupPaymentResult, AutumnError>>;
|
|
192
238
|
setupPayment(params: SetupPaymentParams): Promise<Result<SetupPaymentResult, AutumnError>>;
|
|
193
239
|
static cancel: (params: CancelParams) => Promise<Result<CancelResult, AutumnError>>;
|
|
@@ -228,6 +274,15 @@ interface RedeemReferralCodeParams {
|
|
|
228
274
|
customer_id: string;
|
|
229
275
|
}
|
|
230
276
|
|
|
277
|
+
interface CreateEntityParams {
|
|
278
|
+
id: string;
|
|
279
|
+
name?: string;
|
|
280
|
+
featureId: string;
|
|
281
|
+
}
|
|
282
|
+
interface GetEntityParams {
|
|
283
|
+
expand?: string[];
|
|
284
|
+
}
|
|
285
|
+
|
|
231
286
|
declare const createAutumnClient: (publishableKey?: string) => Autumn;
|
|
232
287
|
declare const createCusAction: (args: Omit<{
|
|
233
288
|
customerId: string;
|
|
@@ -239,13 +294,13 @@ declare const createCusAction: (args: Omit<{
|
|
|
239
294
|
declare const getEntityAction: (args: Omit<{
|
|
240
295
|
customerId: string;
|
|
241
296
|
entityId: string;
|
|
242
|
-
params?: GetEntityParams
|
|
297
|
+
params?: GetEntityParams;
|
|
243
298
|
}, "customerId"> & {
|
|
244
299
|
encryptedCustomerId?: string;
|
|
245
300
|
}, request?: Request) => Promise<any>;
|
|
246
301
|
declare const createEntityAction: (args: Omit<{
|
|
247
302
|
customerId: string;
|
|
248
|
-
entity: CreateEntityParams
|
|
303
|
+
entity: CreateEntityParams | CreateEntityParams[];
|
|
249
304
|
}, "customerId"> & {
|
|
250
305
|
encryptedCustomerId?: string;
|
|
251
306
|
}, request?: Request) => Promise<any>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
1
3
|
declare const Infinite = "inf";
|
|
2
4
|
declare enum FreeTrialDuration {
|
|
3
5
|
Day = "day"
|
|
@@ -28,6 +30,7 @@ interface CheckFeatureResult extends CoreCustomerFeature {
|
|
|
28
30
|
entity_id?: string;
|
|
29
31
|
required_balance: number;
|
|
30
32
|
code: string;
|
|
33
|
+
usage_limit?: number;
|
|
31
34
|
preview?: CheckFeaturePreview;
|
|
32
35
|
}
|
|
33
36
|
interface CheckFeaturePreview {
|
|
@@ -163,6 +166,7 @@ interface CoreCustomerFeature {
|
|
|
163
166
|
included_usage?: number;
|
|
164
167
|
next_reset_at?: number | null;
|
|
165
168
|
overage_allowed?: boolean;
|
|
169
|
+
usage_limit?: number;
|
|
166
170
|
breakdown?: {
|
|
167
171
|
interval: ProductItemInterval;
|
|
168
172
|
balance?: number;
|
|
@@ -217,14 +221,29 @@ interface CustomerData {
|
|
|
217
221
|
interface GetCustomerParams {
|
|
218
222
|
expand?: CustomerExpandOption[];
|
|
219
223
|
}
|
|
220
|
-
|
|
221
|
-
id
|
|
222
|
-
email
|
|
223
|
-
name
|
|
224
|
-
fingerprint
|
|
225
|
-
metadata
|
|
226
|
-
expand
|
|
227
|
-
}
|
|
224
|
+
declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
225
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
230
|
+
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
id?: string | null | undefined;
|
|
233
|
+
name?: string | null | undefined;
|
|
234
|
+
email?: string | null | undefined;
|
|
235
|
+
fingerprint?: string | null | undefined;
|
|
236
|
+
metadata?: Record<string, any> | undefined;
|
|
237
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
238
|
+
}, {
|
|
239
|
+
id?: string | null | undefined;
|
|
240
|
+
name?: string | null | undefined;
|
|
241
|
+
email?: string | null | undefined;
|
|
242
|
+
fingerprint?: string | null | undefined;
|
|
243
|
+
metadata?: Record<string, any> | undefined;
|
|
244
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
245
|
+
}>;
|
|
246
|
+
type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
|
|
228
247
|
interface UpdateCustomerParams {
|
|
229
248
|
id?: string | null;
|
|
230
249
|
name?: string | null;
|
|
@@ -241,6 +260,7 @@ interface CustomerInvoice {
|
|
|
241
260
|
total: number;
|
|
242
261
|
currency: string;
|
|
243
262
|
created_at: number;
|
|
263
|
+
hosted_invoice_url: string;
|
|
244
264
|
}
|
|
245
265
|
|
|
246
266
|
export type { BillingPortalParams as B, CustomerData as C, GetCustomerParams as G, ListProductsParams as L, Product as P, UpdateCustomerParams as U, CustomerProduct as a, CustomerFeature as b, CustomerInvoice as c, CheckFeatureResult as d, CheckProductResult as e, Customer as f, CreateCustomerParams as g, CreateProductParams as h };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
1
3
|
declare const Infinite = "inf";
|
|
2
4
|
declare enum FreeTrialDuration {
|
|
3
5
|
Day = "day"
|
|
@@ -28,6 +30,7 @@ interface CheckFeatureResult extends CoreCustomerFeature {
|
|
|
28
30
|
entity_id?: string;
|
|
29
31
|
required_balance: number;
|
|
30
32
|
code: string;
|
|
33
|
+
usage_limit?: number;
|
|
31
34
|
preview?: CheckFeaturePreview;
|
|
32
35
|
}
|
|
33
36
|
interface CheckFeaturePreview {
|
|
@@ -163,6 +166,7 @@ interface CoreCustomerFeature {
|
|
|
163
166
|
included_usage?: number;
|
|
164
167
|
next_reset_at?: number | null;
|
|
165
168
|
overage_allowed?: boolean;
|
|
169
|
+
usage_limit?: number;
|
|
166
170
|
breakdown?: {
|
|
167
171
|
interval: ProductItemInterval;
|
|
168
172
|
balance?: number;
|
|
@@ -217,14 +221,29 @@ interface CustomerData {
|
|
|
217
221
|
interface GetCustomerParams {
|
|
218
222
|
expand?: CustomerExpandOption[];
|
|
219
223
|
}
|
|
220
|
-
|
|
221
|
-
id
|
|
222
|
-
email
|
|
223
|
-
name
|
|
224
|
-
fingerprint
|
|
225
|
-
metadata
|
|
226
|
-
expand
|
|
227
|
-
}
|
|
224
|
+
declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
225
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
230
|
+
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
id?: string | null | undefined;
|
|
233
|
+
name?: string | null | undefined;
|
|
234
|
+
email?: string | null | undefined;
|
|
235
|
+
fingerprint?: string | null | undefined;
|
|
236
|
+
metadata?: Record<string, any> | undefined;
|
|
237
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
238
|
+
}, {
|
|
239
|
+
id?: string | null | undefined;
|
|
240
|
+
name?: string | null | undefined;
|
|
241
|
+
email?: string | null | undefined;
|
|
242
|
+
fingerprint?: string | null | undefined;
|
|
243
|
+
metadata?: Record<string, any> | undefined;
|
|
244
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
245
|
+
}>;
|
|
246
|
+
type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
|
|
228
247
|
interface UpdateCustomerParams {
|
|
229
248
|
id?: string | null;
|
|
230
249
|
name?: string | null;
|
|
@@ -241,6 +260,7 @@ interface CustomerInvoice {
|
|
|
241
260
|
total: number;
|
|
242
261
|
currency: string;
|
|
243
262
|
created_at: number;
|
|
263
|
+
hosted_invoice_url: string;
|
|
244
264
|
}
|
|
245
265
|
|
|
246
266
|
export type { BillingPortalParams as B, CustomerData as C, GetCustomerParams as G, ListProductsParams as L, Product as P, UpdateCustomerParams as U, CustomerProduct as a, CustomerFeature as b, CustomerInvoice as c, CheckFeatureResult as d, CheckProductResult as e, Customer as f, CreateCustomerParams as g, CreateProductParams as h };
|
|
@@ -1,67 +1,62 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-H4mqijcm.mjs';
|
|
3
|
+
import 'zod';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
forceCheckout?: boolean;
|
|
17
|
-
dialog?: (
|
|
18
|
-
entityData?:
|
|
19
|
-
openInNewTab?: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
interface CancelParams {
|
|
24
|
-
productId: string;
|
|
25
|
-
entityId?: string;
|
|
26
|
-
cancelImmediately?: boolean;
|
|
27
|
-
}
|
|
28
|
-
interface CheckParams {
|
|
29
|
-
featureId?: string;
|
|
30
|
-
productId?: string;
|
|
31
|
-
entityId?: string;
|
|
32
|
-
requiredBalance?: number;
|
|
33
|
-
sendEvent?: boolean;
|
|
34
|
-
withPreview?: boolean;
|
|
35
|
-
dialog?: (data: any) => JSX.Element | React.ReactNode;
|
|
36
|
-
entityData?: EntityDataParams;
|
|
37
|
-
}
|
|
38
|
-
interface TrackParams {
|
|
39
|
-
featureId?: string;
|
|
40
|
-
eventName?: string;
|
|
41
|
-
entityId?: string;
|
|
42
|
-
value?: number;
|
|
43
|
-
idempotencyKey?: string;
|
|
44
|
-
entityData?: EntityDataParams;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare const attachAction: (args: Omit<AttachParams & {
|
|
5
|
+
declare const attachAction: (args: Omit<{
|
|
6
|
+
options?: {
|
|
7
|
+
quantity: number;
|
|
8
|
+
featureId: string;
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
metadata?: Record<string, string> | undefined;
|
|
11
|
+
reward?: string | undefined;
|
|
12
|
+
productId?: string | undefined;
|
|
13
|
+
entityId?: string | undefined;
|
|
14
|
+
productIds?: string[] | undefined;
|
|
15
|
+
freeTrial?: boolean | undefined;
|
|
16
|
+
successUrl?: string | undefined;
|
|
17
|
+
forceCheckout?: boolean | undefined;
|
|
18
|
+
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
19
|
+
entityData?: any;
|
|
20
|
+
openInNewTab?: boolean | undefined;
|
|
21
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
22
|
+
} & {
|
|
48
23
|
customerId: string;
|
|
49
24
|
customerData?: CustomerData;
|
|
50
25
|
}, "customerId"> & {
|
|
51
26
|
encryptedCustomerId?: string;
|
|
52
27
|
}, request?: Request) => Promise<any>;
|
|
53
|
-
declare const cancelAction: (args: Omit<
|
|
28
|
+
declare const cancelAction: (args: Omit<{
|
|
29
|
+
productId: string;
|
|
30
|
+
entityId?: string | undefined;
|
|
31
|
+
cancelImmediately?: boolean | undefined;
|
|
32
|
+
} & {
|
|
54
33
|
customerId: string;
|
|
55
34
|
}, "customerId"> & {
|
|
56
35
|
encryptedCustomerId?: string;
|
|
57
36
|
}, request?: Request) => Promise<any>;
|
|
58
|
-
declare const checkAction: (args: Omit<
|
|
37
|
+
declare const checkAction: (args: Omit<{
|
|
38
|
+
productId?: string | undefined;
|
|
39
|
+
entityId?: string | undefined;
|
|
40
|
+
featureId?: string | undefined;
|
|
41
|
+
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
42
|
+
entityData?: any;
|
|
43
|
+
requiredBalance?: number | undefined;
|
|
44
|
+
sendEvent?: boolean | undefined;
|
|
45
|
+
withPreview?: boolean | undefined;
|
|
46
|
+
} & {
|
|
59
47
|
customerId: string;
|
|
60
48
|
customerData?: CustomerData;
|
|
61
49
|
}, "customerId"> & {
|
|
62
50
|
encryptedCustomerId?: string;
|
|
63
51
|
}, request?: Request) => Promise<any>;
|
|
64
|
-
declare const trackAction: (args: Omit<
|
|
52
|
+
declare const trackAction: (args: Omit<{
|
|
53
|
+
value?: number | undefined;
|
|
54
|
+
entityId?: string | undefined;
|
|
55
|
+
featureId?: string | undefined;
|
|
56
|
+
entityData?: any;
|
|
57
|
+
eventName?: string | undefined;
|
|
58
|
+
idempotencyKey?: string | undefined;
|
|
59
|
+
} & {
|
|
65
60
|
customerId: string;
|
|
66
61
|
customerData?: CustomerData;
|
|
67
62
|
}, "customerId"> & {
|
|
@@ -1,67 +1,62 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-H4mqijcm.js';
|
|
3
|
+
import 'zod';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
forceCheckout?: boolean;
|
|
17
|
-
dialog?: (
|
|
18
|
-
entityData?:
|
|
19
|
-
openInNewTab?: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
interface CancelParams {
|
|
24
|
-
productId: string;
|
|
25
|
-
entityId?: string;
|
|
26
|
-
cancelImmediately?: boolean;
|
|
27
|
-
}
|
|
28
|
-
interface CheckParams {
|
|
29
|
-
featureId?: string;
|
|
30
|
-
productId?: string;
|
|
31
|
-
entityId?: string;
|
|
32
|
-
requiredBalance?: number;
|
|
33
|
-
sendEvent?: boolean;
|
|
34
|
-
withPreview?: boolean;
|
|
35
|
-
dialog?: (data: any) => JSX.Element | React.ReactNode;
|
|
36
|
-
entityData?: EntityDataParams;
|
|
37
|
-
}
|
|
38
|
-
interface TrackParams {
|
|
39
|
-
featureId?: string;
|
|
40
|
-
eventName?: string;
|
|
41
|
-
entityId?: string;
|
|
42
|
-
value?: number;
|
|
43
|
-
idempotencyKey?: string;
|
|
44
|
-
entityData?: EntityDataParams;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare const attachAction: (args: Omit<AttachParams & {
|
|
5
|
+
declare const attachAction: (args: Omit<{
|
|
6
|
+
options?: {
|
|
7
|
+
quantity: number;
|
|
8
|
+
featureId: string;
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
metadata?: Record<string, string> | undefined;
|
|
11
|
+
reward?: string | undefined;
|
|
12
|
+
productId?: string | undefined;
|
|
13
|
+
entityId?: string | undefined;
|
|
14
|
+
productIds?: string[] | undefined;
|
|
15
|
+
freeTrial?: boolean | undefined;
|
|
16
|
+
successUrl?: string | undefined;
|
|
17
|
+
forceCheckout?: boolean | undefined;
|
|
18
|
+
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
19
|
+
entityData?: any;
|
|
20
|
+
openInNewTab?: boolean | undefined;
|
|
21
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
22
|
+
} & {
|
|
48
23
|
customerId: string;
|
|
49
24
|
customerData?: CustomerData;
|
|
50
25
|
}, "customerId"> & {
|
|
51
26
|
encryptedCustomerId?: string;
|
|
52
27
|
}, request?: Request) => Promise<any>;
|
|
53
|
-
declare const cancelAction: (args: Omit<
|
|
28
|
+
declare const cancelAction: (args: Omit<{
|
|
29
|
+
productId: string;
|
|
30
|
+
entityId?: string | undefined;
|
|
31
|
+
cancelImmediately?: boolean | undefined;
|
|
32
|
+
} & {
|
|
54
33
|
customerId: string;
|
|
55
34
|
}, "customerId"> & {
|
|
56
35
|
encryptedCustomerId?: string;
|
|
57
36
|
}, request?: Request) => Promise<any>;
|
|
58
|
-
declare const checkAction: (args: Omit<
|
|
37
|
+
declare const checkAction: (args: Omit<{
|
|
38
|
+
productId?: string | undefined;
|
|
39
|
+
entityId?: string | undefined;
|
|
40
|
+
featureId?: string | undefined;
|
|
41
|
+
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
42
|
+
entityData?: any;
|
|
43
|
+
requiredBalance?: number | undefined;
|
|
44
|
+
sendEvent?: boolean | undefined;
|
|
45
|
+
withPreview?: boolean | undefined;
|
|
46
|
+
} & {
|
|
59
47
|
customerId: string;
|
|
60
48
|
customerData?: CustomerData;
|
|
61
49
|
}, "customerId"> & {
|
|
62
50
|
encryptedCustomerId?: string;
|
|
63
51
|
}, request?: Request) => Promise<any>;
|
|
64
|
-
declare const trackAction: (args: Omit<
|
|
52
|
+
declare const trackAction: (args: Omit<{
|
|
53
|
+
value?: number | undefined;
|
|
54
|
+
entityId?: string | undefined;
|
|
55
|
+
featureId?: string | undefined;
|
|
56
|
+
entityData?: any;
|
|
57
|
+
eventName?: string | undefined;
|
|
58
|
+
idempotencyKey?: string | undefined;
|
|
59
|
+
} & {
|
|
65
60
|
customerId: string;
|
|
66
61
|
customerData?: CustomerData;
|
|
67
62
|
}, "customerId"> & {
|