autumn-js 0.0.102 → 0.0.103
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.mjs +3 -3
- package/dist/libraries/backend/convex.mjs +3 -3
- package/dist/libraries/backend/elysia.mjs +3 -3
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.mjs +3 -3
- package/dist/libraries/backend/fastify.mjs +3 -3
- package/dist/libraries/backend/hono.mjs +3 -3
- package/dist/libraries/backend/next.js +209 -186
- package/dist/libraries/backend/next.mjs +212 -189
- package/dist/libraries/backend/react-router.mjs +3 -3
- package/dist/libraries/backend/{referralTypes-D1Q2i3mG.d.ts → referralTypes-DV8s1h8w.d.ts} +6 -2
- package/dist/libraries/backend/{referralTypes-Dfg6if8j.d.mts → referralTypes-DcDxMGTp.d.mts} +6 -2
- package/dist/libraries/backend/remix_dep.mjs +3 -3
- package/dist/libraries/backend/routes/backendRouter.mjs +3 -3
- package/dist/libraries/backend/supabase.mjs +3 -3
- package/dist/libraries/backend/tanstack.mjs +3 -3
- 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 +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-DBbq29Nn.d.ts → ReactAutumnClient-BlxQQOXE.d.ts} +5 -5
- package/dist/libraries/react/{ReactAutumnClient-YzfxjqPK.d.mts → ReactAutumnClient-C8Nt-pqu.d.mts} +5 -5
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{chunk-SY5GNYZ7.mjs → chunk-3SGSKYJ7.mjs} +2 -2
- package/dist/libraries/react/{chunk-GQ3TAHSV.mjs → chunk-CGWNDUYV.mjs} +1 -1
- package/dist/libraries/react/{chunk-3VHO7VUQ.mjs → chunk-DBGTWERW.mjs} +2 -2
- package/dist/libraries/react/{chunk-H2NGSCWI.mjs → chunk-DHJ36QEV.mjs} +2 -2
- package/dist/libraries/react/{chunk-TPKQIL3N.mjs → chunk-EHOBTSZ7.mjs} +2 -2
- package/dist/libraries/react/{chunk-5URK7LI3.mjs → chunk-GQIE3MFB.mjs} +3 -3
- package/dist/libraries/react/{chunk-CE33P32V.mjs → chunk-KYSWTOMQ.mjs} +2 -2
- package/dist/libraries/react/{chunk-T73WQC2X.mjs → chunk-PZJQBCVG.mjs} +1 -1
- package/dist/libraries/react/{chunk-5NDO7C7R.mjs → chunk-RQN4VDAE.mjs} +3 -3
- package/dist/libraries/react/{chunk-X6RY6VG5.mjs → chunk-S6JUZ43Q.mjs} +2 -2
- package/dist/libraries/react/{chunk-JI7WQ6AC.mjs → chunk-X4R3V6O6.mjs} +2 -2
- package/dist/libraries/react/{chunk-LKV32IPT.mjs → chunk-ZEVKOP7Z.mjs} +8 -8
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +4 -4
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +18 -18
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +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/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/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +18 -18
- package/dist/libraries/react/{cusTypes-CFofdxsA.d.ts → cusTypes-CHcG59KG.d.mts} +3 -3
- package/dist/libraries/react/{cusTypes-CFofdxsA.d.mts → cusTypes-CHcG59KG.d.ts} +3 -3
- package/dist/libraries/react/{entTypes-BeWtfIqo.d.mts → entTypes-3t7AbNhm.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-BhUZh8uE.d.ts → entTypes-8-4TWxee.d.ts} +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 +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- 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 +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
- package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
- package/dist/libraries/react/{response-AGK9KlYm.d.mts → response-B8MYd86O.d.mts} +1 -1
- package/dist/libraries/react/{response-CxMWdpyl.d.ts → response-DnJCkvfc.d.ts} +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +14 -14
- package/dist/next/client/NextAutumnClient.d.ts +14 -14
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/{clientGenTypes-D8f8BwMo.d.ts → clientGenTypes-Dx1TULjb.d.ts} +25 -25
- package/dist/next/client/{clientGenTypes-BcRfHmUS.d.mts → clientGenTypes-tE8HbEdV.d.mts} +25 -25
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{entTypes-B_w6I3y-.d.ts → entTypes-DDZyYuom.d.ts} +1 -1
- package/dist/next/client/{entTypes-C_xS1VPE.d.mts → entTypes-DusU3WqD.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +2 -2
- package/dist/next/client/hooks/useAutumn.d.ts +2 -2
- package/dist/next/client/hooks/useCustomer.d.mts +3 -3
- package/dist/next/client/hooks/useCustomer.d.ts +3 -3
- package/dist/next/client/hooks/useEntity.d.mts +5 -5
- package/dist/next/client/hooks/useEntity.d.ts +5 -5
- 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/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 +23 -23
- package/dist/next/server/cusActions.d.ts +23 -23
- package/dist/next/server/{cusTypes-DVA6iu7V.d.mts → cusTypes-Tc189V9T.d.mts} +7 -3
- package/dist/next/server/{cusTypes-DVA6iu7V.d.ts → cusTypes-Tc189V9T.d.ts} +7 -3
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +2 -2
- package/dist/sdk/index.d.ts +2 -2
- package/package.json +4 -12
- package/dist/libraries/backend/{chunk-NW6B7QXB.mjs → chunk-YFWJ6E4U.mjs} +6 -6
- package/dist/libraries/react/{chunk-ALIGIMSK.mjs → chunk-CYW4LNFZ.mjs} +9 -9
- package/dist/next/client/{cusTypes-Gh2wfcmj.d.mts → cusTypes-nWQygxXu.d.mts} +2 -2
- package/dist/next/client/{cusTypes-Gh2wfcmj.d.ts → cusTypes-nWQygxXu.d.ts} +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, P as Product,
|
|
1
|
+
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, e as BillingPortalResult, P as Product, f as CreateProductParams, L as ListProductsParams, g as CustomerProduct, h as CustomerFeature, i as CustomerInvoice } from './cusTypes-Tc189V9T.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { R as Result, A as AutumnError } from './response-eH4S4sg0.mjs';
|
|
4
4
|
|
|
@@ -27,12 +27,12 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
27
27
|
reward: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
customer_id: string;
|
|
30
|
-
entity_id?: string | undefined;
|
|
31
30
|
options?: {
|
|
32
31
|
feature_id: string;
|
|
33
32
|
quantity: number;
|
|
34
33
|
}[] | undefined;
|
|
35
34
|
metadata?: Record<string, string> | undefined;
|
|
35
|
+
entity_id?: string | undefined;
|
|
36
36
|
product_id?: string | undefined;
|
|
37
37
|
product_ids?: string[] | undefined;
|
|
38
38
|
free_trial?: boolean | undefined;
|
|
@@ -44,12 +44,12 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
44
44
|
reward?: string | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
customer_id: string;
|
|
47
|
-
entity_id?: string | undefined;
|
|
48
47
|
options?: {
|
|
49
48
|
feature_id: string;
|
|
50
49
|
quantity: number;
|
|
51
50
|
}[] | undefined;
|
|
52
51
|
metadata?: Record<string, string> | undefined;
|
|
52
|
+
entity_id?: string | undefined;
|
|
53
53
|
product_id?: string | undefined;
|
|
54
54
|
product_ids?: string[] | undefined;
|
|
55
55
|
free_trial?: boolean | undefined;
|
|
@@ -89,18 +89,18 @@ declare const TrackParamsSchema: z.ZodObject<{
|
|
|
89
89
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
91
|
customer_id: string;
|
|
92
|
-
feature_id?: string | undefined;
|
|
93
|
-
entity_id?: string | undefined;
|
|
94
92
|
value?: number | undefined;
|
|
93
|
+
entity_id?: string | undefined;
|
|
94
|
+
feature_id?: string | undefined;
|
|
95
95
|
customer_data?: any;
|
|
96
96
|
entity_data?: any;
|
|
97
97
|
event_name?: string | undefined;
|
|
98
98
|
idempotency_key?: string | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
customer_id: string;
|
|
101
|
-
feature_id?: string | undefined;
|
|
102
|
-
entity_id?: string | undefined;
|
|
103
101
|
value?: number | undefined;
|
|
102
|
+
entity_id?: string | undefined;
|
|
103
|
+
feature_id?: string | undefined;
|
|
104
104
|
customer_data?: any;
|
|
105
105
|
entity_data?: any;
|
|
106
106
|
event_name?: string | undefined;
|
|
@@ -128,8 +128,8 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
128
128
|
}>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
customer_id: string;
|
|
131
|
-
feature_id?: string | undefined;
|
|
132
131
|
entity_id?: string | undefined;
|
|
132
|
+
feature_id?: string | undefined;
|
|
133
133
|
required_balance?: number | undefined;
|
|
134
134
|
product_id?: string | undefined;
|
|
135
135
|
customer_data?: any;
|
|
@@ -141,8 +141,8 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
141
141
|
with_preview?: boolean | undefined;
|
|
142
142
|
}, {
|
|
143
143
|
customer_id: string;
|
|
144
|
-
feature_id?: string | undefined;
|
|
145
144
|
entity_id?: string | undefined;
|
|
145
|
+
feature_id?: string | undefined;
|
|
146
146
|
required_balance?: number | undefined;
|
|
147
147
|
product_id?: string | undefined;
|
|
148
148
|
customer_data?: any;
|
|
@@ -198,7 +198,7 @@ declare class Autumn {
|
|
|
198
198
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
199
199
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
200
200
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
201
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
201
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
202
202
|
};
|
|
203
203
|
static products: {
|
|
204
204
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -221,7 +221,7 @@ declare class Autumn {
|
|
|
221
221
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
222
222
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
223
223
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
224
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
224
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
225
225
|
};
|
|
226
226
|
products: {
|
|
227
227
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -240,18 +240,18 @@ declare class Autumn {
|
|
|
240
240
|
redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
|
|
241
241
|
};
|
|
242
242
|
static attach: (params: AttachParams) => Promise<Result<{
|
|
243
|
-
customer_id: string;
|
|
244
243
|
code: string;
|
|
245
244
|
message: string;
|
|
245
|
+
customer_id: string;
|
|
246
246
|
product_ids: string[];
|
|
247
247
|
customer_data?: any;
|
|
248
248
|
checkout_url?: string | undefined;
|
|
249
249
|
}, AutumnError>>;
|
|
250
250
|
static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
|
|
251
251
|
attach(params: AttachParams): Promise<Result<{
|
|
252
|
-
customer_id: string;
|
|
253
252
|
code: string;
|
|
254
253
|
message: string;
|
|
254
|
+
customer_id: string;
|
|
255
255
|
product_ids: string[];
|
|
256
256
|
customer_data?: any;
|
|
257
257
|
checkout_url?: string | undefined;
|
|
@@ -285,9 +285,9 @@ declare class Autumn {
|
|
|
285
285
|
* Please use the new track() method instead.
|
|
286
286
|
*/
|
|
287
287
|
static event: (params: TrackParams) => Promise<Result<{
|
|
288
|
-
customer_id: string;
|
|
289
|
-
code: string;
|
|
290
288
|
id: string;
|
|
289
|
+
code: string;
|
|
290
|
+
customer_id: string;
|
|
291
291
|
feature_id?: string | undefined;
|
|
292
292
|
event_name?: string | undefined;
|
|
293
293
|
}, AutumnError>>;
|
|
@@ -296,23 +296,23 @@ declare class Autumn {
|
|
|
296
296
|
* Please use the new track() method instead.
|
|
297
297
|
*/
|
|
298
298
|
event(params: TrackParams): Promise<Result<{
|
|
299
|
-
customer_id: string;
|
|
300
|
-
code: string;
|
|
301
299
|
id: string;
|
|
300
|
+
code: string;
|
|
301
|
+
customer_id: string;
|
|
302
302
|
feature_id?: string | undefined;
|
|
303
303
|
event_name?: string | undefined;
|
|
304
304
|
}, AutumnError>>;
|
|
305
305
|
static track: (params: TrackParams) => Promise<Result<{
|
|
306
|
-
customer_id: string;
|
|
307
|
-
code: string;
|
|
308
306
|
id: string;
|
|
307
|
+
code: string;
|
|
308
|
+
customer_id: string;
|
|
309
309
|
feature_id?: string | undefined;
|
|
310
310
|
event_name?: string | undefined;
|
|
311
311
|
}, AutumnError>>;
|
|
312
312
|
track(params: TrackParams): Promise<Result<{
|
|
313
|
-
customer_id: string;
|
|
314
|
-
code: string;
|
|
315
313
|
id: string;
|
|
314
|
+
code: string;
|
|
315
|
+
customer_id: string;
|
|
316
316
|
feature_id?: string | undefined;
|
|
317
317
|
event_name?: string | undefined;
|
|
318
318
|
}, AutumnError>>;
|
|
@@ -362,11 +362,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
|
|
|
362
362
|
code: z.ZodString;
|
|
363
363
|
customer_id: z.ZodString;
|
|
364
364
|
}, "strip", z.ZodTypeAny, {
|
|
365
|
-
customer_id: string;
|
|
366
365
|
code: string;
|
|
367
|
-
}, {
|
|
368
366
|
customer_id: string;
|
|
367
|
+
}, {
|
|
369
368
|
code: string;
|
|
369
|
+
customer_id: string;
|
|
370
370
|
}>;
|
|
371
371
|
type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
|
|
372
372
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, P as Product,
|
|
1
|
+
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, e as BillingPortalResult, P as Product, f as CreateProductParams, L as ListProductsParams, g as CustomerProduct, h as CustomerFeature, i as CustomerInvoice } from './cusTypes-Tc189V9T.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { R as Result, A as AutumnError } from './response-eH4S4sg0.js';
|
|
4
4
|
|
|
@@ -27,12 +27,12 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
27
27
|
reward: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
customer_id: string;
|
|
30
|
-
entity_id?: string | undefined;
|
|
31
30
|
options?: {
|
|
32
31
|
feature_id: string;
|
|
33
32
|
quantity: number;
|
|
34
33
|
}[] | undefined;
|
|
35
34
|
metadata?: Record<string, string> | undefined;
|
|
35
|
+
entity_id?: string | undefined;
|
|
36
36
|
product_id?: string | undefined;
|
|
37
37
|
product_ids?: string[] | undefined;
|
|
38
38
|
free_trial?: boolean | undefined;
|
|
@@ -44,12 +44,12 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
44
44
|
reward?: string | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
customer_id: string;
|
|
47
|
-
entity_id?: string | undefined;
|
|
48
47
|
options?: {
|
|
49
48
|
feature_id: string;
|
|
50
49
|
quantity: number;
|
|
51
50
|
}[] | undefined;
|
|
52
51
|
metadata?: Record<string, string> | undefined;
|
|
52
|
+
entity_id?: string | undefined;
|
|
53
53
|
product_id?: string | undefined;
|
|
54
54
|
product_ids?: string[] | undefined;
|
|
55
55
|
free_trial?: boolean | undefined;
|
|
@@ -89,18 +89,18 @@ declare const TrackParamsSchema: z.ZodObject<{
|
|
|
89
89
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
91
|
customer_id: string;
|
|
92
|
-
feature_id?: string | undefined;
|
|
93
|
-
entity_id?: string | undefined;
|
|
94
92
|
value?: number | undefined;
|
|
93
|
+
entity_id?: string | undefined;
|
|
94
|
+
feature_id?: string | undefined;
|
|
95
95
|
customer_data?: any;
|
|
96
96
|
entity_data?: any;
|
|
97
97
|
event_name?: string | undefined;
|
|
98
98
|
idempotency_key?: string | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
customer_id: string;
|
|
101
|
-
feature_id?: string | undefined;
|
|
102
|
-
entity_id?: string | undefined;
|
|
103
101
|
value?: number | undefined;
|
|
102
|
+
entity_id?: string | undefined;
|
|
103
|
+
feature_id?: string | undefined;
|
|
104
104
|
customer_data?: any;
|
|
105
105
|
entity_data?: any;
|
|
106
106
|
event_name?: string | undefined;
|
|
@@ -128,8 +128,8 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
128
128
|
}>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
customer_id: string;
|
|
131
|
-
feature_id?: string | undefined;
|
|
132
131
|
entity_id?: string | undefined;
|
|
132
|
+
feature_id?: string | undefined;
|
|
133
133
|
required_balance?: number | undefined;
|
|
134
134
|
product_id?: string | undefined;
|
|
135
135
|
customer_data?: any;
|
|
@@ -141,8 +141,8 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
141
141
|
with_preview?: boolean | undefined;
|
|
142
142
|
}, {
|
|
143
143
|
customer_id: string;
|
|
144
|
-
feature_id?: string | undefined;
|
|
145
144
|
entity_id?: string | undefined;
|
|
145
|
+
feature_id?: string | undefined;
|
|
146
146
|
required_balance?: number | undefined;
|
|
147
147
|
product_id?: string | undefined;
|
|
148
148
|
customer_data?: any;
|
|
@@ -198,7 +198,7 @@ declare class Autumn {
|
|
|
198
198
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
199
199
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
200
200
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
201
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
201
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
202
202
|
};
|
|
203
203
|
static products: {
|
|
204
204
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -221,7 +221,7 @@ declare class Autumn {
|
|
|
221
221
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
222
222
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
223
223
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
224
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
224
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
225
225
|
};
|
|
226
226
|
products: {
|
|
227
227
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -240,18 +240,18 @@ declare class Autumn {
|
|
|
240
240
|
redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
|
|
241
241
|
};
|
|
242
242
|
static attach: (params: AttachParams) => Promise<Result<{
|
|
243
|
-
customer_id: string;
|
|
244
243
|
code: string;
|
|
245
244
|
message: string;
|
|
245
|
+
customer_id: string;
|
|
246
246
|
product_ids: string[];
|
|
247
247
|
customer_data?: any;
|
|
248
248
|
checkout_url?: string | undefined;
|
|
249
249
|
}, AutumnError>>;
|
|
250
250
|
static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
|
|
251
251
|
attach(params: AttachParams): Promise<Result<{
|
|
252
|
-
customer_id: string;
|
|
253
252
|
code: string;
|
|
254
253
|
message: string;
|
|
254
|
+
customer_id: string;
|
|
255
255
|
product_ids: string[];
|
|
256
256
|
customer_data?: any;
|
|
257
257
|
checkout_url?: string | undefined;
|
|
@@ -285,9 +285,9 @@ declare class Autumn {
|
|
|
285
285
|
* Please use the new track() method instead.
|
|
286
286
|
*/
|
|
287
287
|
static event: (params: TrackParams) => Promise<Result<{
|
|
288
|
-
customer_id: string;
|
|
289
|
-
code: string;
|
|
290
288
|
id: string;
|
|
289
|
+
code: string;
|
|
290
|
+
customer_id: string;
|
|
291
291
|
feature_id?: string | undefined;
|
|
292
292
|
event_name?: string | undefined;
|
|
293
293
|
}, AutumnError>>;
|
|
@@ -296,23 +296,23 @@ declare class Autumn {
|
|
|
296
296
|
* Please use the new track() method instead.
|
|
297
297
|
*/
|
|
298
298
|
event(params: TrackParams): Promise<Result<{
|
|
299
|
-
customer_id: string;
|
|
300
|
-
code: string;
|
|
301
299
|
id: string;
|
|
300
|
+
code: string;
|
|
301
|
+
customer_id: string;
|
|
302
302
|
feature_id?: string | undefined;
|
|
303
303
|
event_name?: string | undefined;
|
|
304
304
|
}, AutumnError>>;
|
|
305
305
|
static track: (params: TrackParams) => Promise<Result<{
|
|
306
|
-
customer_id: string;
|
|
307
|
-
code: string;
|
|
308
306
|
id: string;
|
|
307
|
+
code: string;
|
|
308
|
+
customer_id: string;
|
|
309
309
|
feature_id?: string | undefined;
|
|
310
310
|
event_name?: string | undefined;
|
|
311
311
|
}, AutumnError>>;
|
|
312
312
|
track(params: TrackParams): Promise<Result<{
|
|
313
|
-
customer_id: string;
|
|
314
|
-
code: string;
|
|
315
313
|
id: string;
|
|
314
|
+
code: string;
|
|
315
|
+
customer_id: string;
|
|
316
316
|
feature_id?: string | undefined;
|
|
317
317
|
event_name?: string | undefined;
|
|
318
318
|
}, AutumnError>>;
|
|
@@ -362,11 +362,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
|
|
|
362
362
|
code: z.ZodString;
|
|
363
363
|
customer_id: z.ZodString;
|
|
364
364
|
}, "strip", z.ZodTypeAny, {
|
|
365
|
-
customer_id: string;
|
|
366
365
|
code: string;
|
|
367
|
-
}, {
|
|
368
366
|
customer_id: string;
|
|
367
|
+
}, {
|
|
369
368
|
code: string;
|
|
369
|
+
customer_id: string;
|
|
370
370
|
}>;
|
|
371
371
|
type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
|
|
372
372
|
|
|
@@ -231,15 +231,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
231
231
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
233
|
id?: string | null | undefined;
|
|
234
|
-
name?: string | null | undefined;
|
|
235
234
|
email?: string | null | undefined;
|
|
235
|
+
name?: string | null | undefined;
|
|
236
236
|
fingerprint?: string | null | undefined;
|
|
237
237
|
metadata?: Record<string, any> | undefined;
|
|
238
238
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
239
239
|
}, {
|
|
240
240
|
id?: string | null | undefined;
|
|
241
|
-
name?: string | null | undefined;
|
|
242
241
|
email?: string | null | undefined;
|
|
242
|
+
name?: string | null | undefined;
|
|
243
243
|
fingerprint?: string | null | undefined;
|
|
244
244
|
metadata?: Record<string, any> | undefined;
|
|
245
245
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -259,6 +259,10 @@ declare const BillingPortalParamsSchema: z.ZodObject<{
|
|
|
259
259
|
return_url?: string | undefined;
|
|
260
260
|
}>;
|
|
261
261
|
type BillingPortalParams = z.infer<typeof BillingPortalParamsSchema>;
|
|
262
|
+
interface BillingPortalResult {
|
|
263
|
+
customer_id: string;
|
|
264
|
+
url: string;
|
|
265
|
+
}
|
|
262
266
|
interface CustomerInvoice {
|
|
263
267
|
product_ids: string[];
|
|
264
268
|
stripe_id: string;
|
|
@@ -269,4 +273,4 @@ interface CustomerInvoice {
|
|
|
269
273
|
hosted_invoice_url: string;
|
|
270
274
|
}
|
|
271
275
|
|
|
272
|
-
export type { BillingPortalParams as B, CustomerData as C, GetCustomerParams as G, ListProductsParams as L, Product as P, UpdateCustomerParams as U, CheckFeatureResult as a, CheckProductResult as b, Customer as c, CreateCustomerParams as d,
|
|
276
|
+
export type { BillingPortalParams as B, CustomerData as C, GetCustomerParams as G, ListProductsParams as L, Product as P, UpdateCustomerParams as U, CheckFeatureResult as a, CheckProductResult as b, Customer as c, CreateCustomerParams as d, BillingPortalResult as e, CreateProductParams as f, CustomerProduct as g, CustomerFeature as h, CustomerInvoice as i };
|
|
@@ -231,15 +231,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
231
231
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
233
|
id?: string | null | undefined;
|
|
234
|
-
name?: string | null | undefined;
|
|
235
234
|
email?: string | null | undefined;
|
|
235
|
+
name?: string | null | undefined;
|
|
236
236
|
fingerprint?: string | null | undefined;
|
|
237
237
|
metadata?: Record<string, any> | undefined;
|
|
238
238
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
239
239
|
}, {
|
|
240
240
|
id?: string | null | undefined;
|
|
241
|
-
name?: string | null | undefined;
|
|
242
241
|
email?: string | null | undefined;
|
|
242
|
+
name?: string | null | undefined;
|
|
243
243
|
fingerprint?: string | null | undefined;
|
|
244
244
|
metadata?: Record<string, any> | undefined;
|
|
245
245
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -259,6 +259,10 @@ declare const BillingPortalParamsSchema: z.ZodObject<{
|
|
|
259
259
|
return_url?: string | undefined;
|
|
260
260
|
}>;
|
|
261
261
|
type BillingPortalParams = z.infer<typeof BillingPortalParamsSchema>;
|
|
262
|
+
interface BillingPortalResult {
|
|
263
|
+
customer_id: string;
|
|
264
|
+
url: string;
|
|
265
|
+
}
|
|
262
266
|
interface CustomerInvoice {
|
|
263
267
|
product_ids: string[];
|
|
264
268
|
stripe_id: string;
|
|
@@ -269,4 +273,4 @@ interface CustomerInvoice {
|
|
|
269
273
|
hosted_invoice_url: string;
|
|
270
274
|
}
|
|
271
275
|
|
|
272
|
-
export type { BillingPortalParams as B, CustomerData as C, GetCustomerParams as G, ListProductsParams as L, Product as P, UpdateCustomerParams as U, CheckFeatureResult as a, CheckProductResult as b, Customer as c, CreateCustomerParams as d,
|
|
276
|
+
export type { BillingPortalParams as B, CustomerData as C, GetCustomerParams as G, ListProductsParams as L, Product as P, UpdateCustomerParams as U, CheckFeatureResult as a, CheckProductResult as b, Customer as c, CreateCustomerParams as d, BillingPortalResult as e, CreateProductParams as f, CustomerProduct as g, CustomerFeature as h, CustomerInvoice as i };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-
|
|
2
|
+
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-Tc189V9T.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare const attachAction: (args: Omit<{
|
package/dist/sdk/index.d.mts
CHANGED
|
@@ -576,7 +576,7 @@ declare class Autumn {
|
|
|
576
576
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
577
577
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
578
578
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
579
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
579
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
580
580
|
};
|
|
581
581
|
static products: {
|
|
582
582
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -599,7 +599,7 @@ declare class Autumn {
|
|
|
599
599
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
600
600
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
601
601
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
602
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
602
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
603
603
|
};
|
|
604
604
|
products: {
|
|
605
605
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -576,7 +576,7 @@ declare class Autumn {
|
|
|
576
576
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
577
577
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
578
578
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
579
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
579
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
580
580
|
};
|
|
581
581
|
static products: {
|
|
582
582
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -599,7 +599,7 @@ declare class Autumn {
|
|
|
599
599
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
600
600
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
601
601
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
602
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
602
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
603
603
|
};
|
|
604
604
|
products: {
|
|
605
605
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autumn-js",
|
|
3
3
|
"description": "Autumn JS Library",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"main": "./dist/index.js",
|
|
4
|
+
"version": "0.0.103",
|
|
5
|
+
"main": "./dist/sdk/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
8
|
"README.md",
|
|
9
9
|
"LICENSE.md",
|
|
10
10
|
"tsup.config.ts"
|
|
11
11
|
],
|
|
12
|
-
"bin": {
|
|
13
|
-
"atmn": "./cli/dist/cli/cli.mjs"
|
|
14
|
-
},
|
|
15
12
|
"scripts": {
|
|
16
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
17
14
|
"build": "rm -rf dist && tsup && node scripts/post-build.js",
|
|
@@ -25,19 +22,14 @@
|
|
|
25
22
|
"sync-registry": "tsx scripts/sync-registry.ts sync",
|
|
26
23
|
"watch-registry": "tsx scripts/sync-registry.ts watch"
|
|
27
24
|
},
|
|
28
|
-
"module": "./dist/index.mjs",
|
|
29
|
-
"types": "./dist/index.d.ts",
|
|
25
|
+
"module": "./dist/sdk/index.mjs",
|
|
26
|
+
"types": "./dist/sdk/index.d.ts",
|
|
30
27
|
"exports": {
|
|
31
28
|
".": {
|
|
32
29
|
"types": "./dist/sdk/index.d.ts",
|
|
33
30
|
"require": "./dist/sdk/index.js",
|
|
34
31
|
"import": "./dist/sdk/index.mjs"
|
|
35
32
|
},
|
|
36
|
-
"./compose": {
|
|
37
|
-
"types": "./dist/compose/index.d.ts",
|
|
38
|
-
"require": "./dist/compose/index.js",
|
|
39
|
-
"import": "./dist/compose/index.mjs"
|
|
40
|
-
},
|
|
41
33
|
"./next": {
|
|
42
34
|
"types": "./dist/next/index.d.ts",
|
|
43
35
|
"require": "./dist/next/index.js",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
addProductRoutes
|
|
3
|
-
} from "./chunk-AKV5N4WO.mjs";
|
|
4
|
-
import {
|
|
5
|
-
addReferralRoutes
|
|
6
|
-
} from "./chunk-33NT3WE5.mjs";
|
|
7
1
|
import {
|
|
8
2
|
addEntityRoutes
|
|
9
3
|
} from "./chunk-RA4AC56B.mjs";
|
|
10
4
|
import {
|
|
11
5
|
addGenRoutes
|
|
12
6
|
} from "./chunk-J3L3OBSS.mjs";
|
|
7
|
+
import {
|
|
8
|
+
addProductRoutes
|
|
9
|
+
} from "./chunk-AKV5N4WO.mjs";
|
|
10
|
+
import {
|
|
11
|
+
addReferralRoutes
|
|
12
|
+
} from "./chunk-33NT3WE5.mjs";
|
|
13
13
|
import {
|
|
14
14
|
withAuth
|
|
15
15
|
} from "./chunk-CEZHD5H6.mjs";
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
listProductsMethod
|
|
5
|
-
} from "./chunk-V575SGOW.mjs";
|
|
6
3
|
import {
|
|
7
4
|
createCode,
|
|
8
5
|
redeemCode
|
|
9
6
|
} from "./chunk-ZV4RPZTM.mjs";
|
|
10
|
-
import {
|
|
11
|
-
logAuthError
|
|
12
|
-
} from "./chunk-JVCOY7ZL.mjs";
|
|
13
|
-
import {
|
|
14
|
-
logFetchError
|
|
15
|
-
} from "./chunk-CIBQ4BJU.mjs";
|
|
16
7
|
import {
|
|
17
8
|
getPricingTableMethod
|
|
18
9
|
} from "./chunk-VTGR7VVK.mjs";
|
|
@@ -32,6 +23,15 @@ import {
|
|
|
32
23
|
setupPaymentMethod,
|
|
33
24
|
trackMethod
|
|
34
25
|
} from "./chunk-VUBJ6JM3.mjs";
|
|
26
|
+
import {
|
|
27
|
+
listProductsMethod
|
|
28
|
+
} from "./chunk-V575SGOW.mjs";
|
|
29
|
+
import {
|
|
30
|
+
logAuthError
|
|
31
|
+
} from "./chunk-JVCOY7ZL.mjs";
|
|
32
|
+
import {
|
|
33
|
+
logFetchError
|
|
34
|
+
} from "./chunk-CIBQ4BJU.mjs";
|
|
35
35
|
|
|
36
36
|
// src/sdk/error.ts
|
|
37
37
|
var AutumnError = class _AutumnError extends Error {
|
|
@@ -217,15 +217,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
217
217
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
219
|
id?: string | null | undefined;
|
|
220
|
-
name?: string | null | undefined;
|
|
221
220
|
email?: string | null | undefined;
|
|
221
|
+
name?: string | null | undefined;
|
|
222
222
|
fingerprint?: string | null | undefined;
|
|
223
223
|
metadata?: Record<string, any> | undefined;
|
|
224
224
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
225
225
|
}, {
|
|
226
226
|
id?: string | null | undefined;
|
|
227
|
-
name?: string | null | undefined;
|
|
228
227
|
email?: string | null | undefined;
|
|
228
|
+
name?: string | null | undefined;
|
|
229
229
|
fingerprint?: string | null | undefined;
|
|
230
230
|
metadata?: Record<string, any> | undefined;
|
|
231
231
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -217,15 +217,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
217
217
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
219
|
id?: string | null | undefined;
|
|
220
|
-
name?: string | null | undefined;
|
|
221
220
|
email?: string | null | undefined;
|
|
221
|
+
name?: string | null | undefined;
|
|
222
222
|
fingerprint?: string | null | undefined;
|
|
223
223
|
metadata?: Record<string, any> | undefined;
|
|
224
224
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
225
225
|
}, {
|
|
226
226
|
id?: string | null | undefined;
|
|
227
|
-
name?: string | null | undefined;
|
|
228
227
|
email?: string | null | undefined;
|
|
228
|
+
name?: string | null | undefined;
|
|
229
229
|
fingerprint?: string | null | undefined;
|
|
230
230
|
metadata?: Record<string, any> | undefined;
|
|
231
231
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|