autumn-js 0.1.7 → 0.1.9
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 +37 -33
- package/dist/libraries/backend/better-auth.d.ts +37 -33
- package/dist/libraries/backend/better-auth.js +10 -2
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-33ET4N4V.mjs → chunk-274BIVOC.mjs} +1 -1
- package/dist/libraries/backend/{chunk-3OVRYTZX.mjs → chunk-7WWKVE4J.mjs} +6 -6
- package/dist/libraries/backend/{chunk-GO7TVFSN.mjs → chunk-EJBD5GH7.mjs} +1 -1
- package/dist/libraries/backend/{chunk-TFYLV3GN.mjs → chunk-I43OU64D.mjs} +1 -1
- package/dist/libraries/backend/{chunk-VBHBF3GP.mjs → chunk-JN4ULI5R.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AREWK25J.mjs → chunk-KY3RLTE7.mjs} +10 -2
- package/dist/libraries/backend/{chunk-LL53FE2Z.mjs → chunk-YN334O74.mjs} +1 -1
- package/dist/libraries/backend/convex.js +10 -2
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +10 -2
- 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 +10 -2
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +10 -2
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +10 -2
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/index.js +10 -2
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +10 -2
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +10 -2
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-B50JL4PY.d.mts → referralTypes-BEcapeWf.d.mts} +60 -43
- package/dist/libraries/backend/{referralTypes-dW2HaxKV.d.ts → referralTypes-DuAlUwev.d.ts} +60 -43
- package/dist/libraries/backend/remix_dep.js +10 -2
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +10 -2
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +10 -2
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +10 -2
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +10 -2
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +10 -2
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +10 -2
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +10 -2
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +10 -2
- 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 +10 -2
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.js +10 -2
- 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.js +15 -3
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-BUq9E84_.d.ts → ReactAutumnClient-DCMQEadM.d.ts} +10 -3
- package/dist/libraries/react/{ReactAutumnClient-CpAGyyur.d.mts → ReactAutumnClient-Dm14G99_.d.mts} +10 -3
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +15 -3
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/{attachTypes-CcB6xjSF.d.ts → attachTypes-QTf_JXj7.d.ts} +33 -0
- package/dist/libraries/react/{attachTypes-DqUN3q8s.d.mts → attachTypes-Sv_paJZ2.d.mts} +33 -0
- package/dist/libraries/react/{chunk-HMZZIUCF.mjs → chunk-3YIV3N5Y.mjs} +1 -1
- package/dist/libraries/react/{chunk-KYZ3DYMI.mjs → chunk-4UPD6W4L.mjs} +16 -15
- package/dist/libraries/react/{chunk-56PEGK2Z.mjs → chunk-7LOW3KZ3.mjs} +2 -2
- package/dist/libraries/react/{chunk-QQKJE2ND.mjs → chunk-CPN2LD2I.mjs} +2 -2
- package/dist/libraries/react/{chunk-ECOBNPRU.mjs → chunk-DRUVAAUW.mjs} +3 -3
- package/dist/libraries/react/{chunk-JFTZRU2U.mjs → chunk-E2BEY4ZP.mjs} +1 -1
- package/dist/libraries/react/{chunk-SFGXTDMX.mjs → chunk-IRTAGYDD.mjs} +2 -2
- package/dist/libraries/react/{chunk-WQXUZO6K.mjs → chunk-JIWMNR2E.mjs} +10 -2
- package/dist/libraries/react/{chunk-FMRBH4CP.mjs → chunk-JJVQIA5V.mjs} +1 -1
- package/dist/libraries/react/{chunk-HIC6P67K.mjs → chunk-KG2NPWAE.mjs} +7 -7
- package/dist/libraries/react/{chunk-JNR7QAPG.mjs → chunk-MKP43WD6.mjs} +1 -1
- package/dist/libraries/react/{chunk-SZJOMZTC.mjs → chunk-QZPMYB2V.mjs} +2 -2
- package/dist/libraries/react/{chunk-GWVZB5GK.mjs → chunk-TBRYCVBL.mjs} +3 -3
- package/dist/libraries/react/{chunk-ULIUD6YP.mjs → chunk-UQ5HI732.mjs} +3 -3
- package/dist/libraries/react/{chunk-ZJBEC254.mjs → chunk-URFTKUL2.mjs} +6 -2
- package/dist/libraries/react/{chunk-MW2FSYG3.mjs → chunk-XTONWQ65.mjs} +1 -1
- 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.js +10 -2
- 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.js +10 -2
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +18 -5
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +21 -21
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +1 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +10 -2
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +21 -21
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +18 -5
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +21 -21
- 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/{entTypes-CoF9enrR.d.ts → entTypes-0CBBecul.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-S4hkh1RG.d.mts → entTypes-kVUQcah5.d.mts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.js +10 -2
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +11 -4
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +11 -4
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +15 -3
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.js +10 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +6 -6
- 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.js +15 -3
- package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
- 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.js +15 -3
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- package/dist/libraries/react/hooks/useEntity.d.mts +9 -2
- package/dist/libraries/react/hooks/useEntity.d.ts +9 -2
- package/dist/libraries/react/hooks/useEntity.js +15 -3
- package/dist/libraries/react/hooks/useEntity.mjs +10 -10
- package/dist/libraries/react/hooks/useEntityBase.d.mts +11 -4
- package/dist/libraries/react/hooks/useEntityBase.d.ts +11 -4
- package/dist/libraries/react/hooks/useEntityBase.js +15 -3
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- package/dist/libraries/react/hooks/usePaywall.js +10 -2
- package/dist/libraries/react/hooks/usePaywall.mjs +6 -6
- package/dist/libraries/react/hooks/usePricingTable.js +10 -2
- 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.js +10 -2
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useProductsBase.d.ts +4 -4
- package/dist/libraries/react/index.d.mts +40 -0
- package/dist/libraries/react/index.d.ts +40 -0
- package/dist/libraries/react/index.js +18 -5
- package/dist/libraries/react/index.mjs +18 -5
- package/dist/next/client/NextAutumnClient.d.mts +25 -18
- package/dist/next/client/NextAutumnClient.d.ts +25 -18
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{attachTypes-EvdK0fPK.d.mts → attachTypes-CReq8zJ_.d.ts} +38 -5
- package/dist/next/client/{attachTypes-DKlQexnQ.d.ts → attachTypes-DUUIHTBt.d.mts} +38 -5
- package/dist/next/client/{clientAttachTypes-CZFjz8Rq.d.mts → clientAttachTypes-BzsPgggN.d.mts} +27 -27
- package/dist/next/client/{clientAttachTypes-CGPjsdPk.d.ts → clientAttachTypes-umadXlvp.d.ts} +27 -27
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-y5wEmx07.d.mts → cusTypes-CIGvysWL.d.mts} +5 -5
- package/dist/next/client/{cusTypes-DEURYNg4.d.ts → cusTypes-CYojUJSJ.d.ts} +5 -5
- package/dist/next/client/{entTypes-CRFgWhOr.d.ts → entTypes-BAD1NMvb.d.ts} +1 -1
- package/dist/next/client/{entTypes-KRxjcMFv.d.mts → entTypes-mOI7WnPZ.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +12 -5
- package/dist/next/client/hooks/useAutumn.d.ts +12 -5
- package/dist/next/client/hooks/useCustomer.d.mts +5 -5
- package/dist/next/client/hooks/useCustomer.d.ts +5 -5
- package/dist/next/client/hooks/useEntity.d.mts +14 -7
- package/dist/next/client/hooks/useEntity.d.ts +14 -7
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +3 -3
- package/dist/next/client/types.d.ts +3 -3
- package/dist/next/server/cusActions.d.mts +17 -0
- package/dist/next/server/cusActions.d.ts +17 -0
- package/dist/sdk/index.d.mts +50 -0
- package/dist/sdk/index.d.ts +50 -0
- package/dist/sdk/index.js +10 -2
- package/dist/sdk/index.mjs +10 -2
- package/dist/utils/encryptUtils.js +10 -2
- package/dist/utils/encryptUtils.mjs +10 -2
- package/package.json +1 -1
- package/dist/libraries/react/{cusTypes-DHjT-9rV.d.ts → cusTypes-BeSXIQ6P.d.ts} +2 -2
- package/dist/libraries/react/{cusTypes-CSmAk5io.d.mts → cusTypes-DbCQV8Sj.d.mts} +2 -2
- package/dist/next/client/{prodTypes-DzTLP57C.d.mts → prodTypes-CxvB1YY3.d.mts} +8 -8
- package/dist/next/client/{prodTypes-DzTLP57C.d.ts → prodTypes-CxvB1YY3.d.ts} +8 -8
|
@@ -10,8 +10,8 @@ declare const autumn: (options?: {
|
|
|
10
10
|
createCustomer: {
|
|
11
11
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
12
12
|
body: {
|
|
13
|
-
errorOnNotFound?: boolean | undefined;
|
|
14
13
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
14
|
+
errorOnNotFound?: boolean | undefined;
|
|
15
15
|
};
|
|
16
16
|
} & {
|
|
17
17
|
method?: "POST" | undefined;
|
|
@@ -42,11 +42,11 @@ declare const autumn: (options?: {
|
|
|
42
42
|
errorOnNotFound: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
errorOnNotFound?: boolean | undefined;
|
|
46
45
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
47
|
-
}, {
|
|
48
46
|
errorOnNotFound?: boolean | undefined;
|
|
47
|
+
}, {
|
|
49
48
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
49
|
+
errorOnNotFound?: boolean | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
metadata: {
|
|
52
52
|
isAction: boolean;
|
|
@@ -91,11 +91,11 @@ declare const autumn: (options?: {
|
|
|
91
91
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
92
92
|
body: {
|
|
93
93
|
product_id: string;
|
|
94
|
+
entity_id?: string | undefined;
|
|
94
95
|
options?: {
|
|
95
96
|
feature_id: string;
|
|
96
97
|
quantity: number;
|
|
97
98
|
}[] | undefined;
|
|
98
|
-
entity_id?: string | undefined;
|
|
99
99
|
success_url?: string | undefined;
|
|
100
100
|
customer_data?: {
|
|
101
101
|
name?: string | null | undefined;
|
|
@@ -163,11 +163,11 @@ declare const autumn: (options?: {
|
|
|
163
163
|
reward: z.ZodOptional<z.ZodString>;
|
|
164
164
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
165
165
|
product_id: string;
|
|
166
|
+
entity_id?: string | undefined;
|
|
166
167
|
options?: {
|
|
167
168
|
feature_id: string;
|
|
168
169
|
quantity: number;
|
|
169
170
|
}[] | undefined;
|
|
170
|
-
entity_id?: string | undefined;
|
|
171
171
|
success_url?: string | undefined;
|
|
172
172
|
customer_data?: {
|
|
173
173
|
name?: string | null | undefined;
|
|
@@ -179,11 +179,11 @@ declare const autumn: (options?: {
|
|
|
179
179
|
reward?: string | undefined;
|
|
180
180
|
}, {
|
|
181
181
|
product_id: string;
|
|
182
|
+
entity_id?: string | undefined;
|
|
182
183
|
options?: {
|
|
183
184
|
feature_id: string;
|
|
184
185
|
quantity: number;
|
|
185
186
|
}[] | undefined;
|
|
186
|
-
entity_id?: string | undefined;
|
|
187
187
|
success_url?: string | undefined;
|
|
188
188
|
customer_data?: {
|
|
189
189
|
name?: string | null | undefined;
|
|
@@ -225,14 +225,17 @@ declare const autumn: (options?: {
|
|
|
225
225
|
attach: {
|
|
226
226
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
227
227
|
body: {
|
|
228
|
+
entity_id?: string | undefined;
|
|
228
229
|
options?: {
|
|
229
230
|
feature_id: string;
|
|
230
231
|
quantity: number;
|
|
231
232
|
}[] | undefined;
|
|
232
233
|
metadata?: Record<string, string> | undefined;
|
|
233
234
|
product_id?: string | undefined;
|
|
234
|
-
|
|
235
|
+
product_ids?: string[] | undefined;
|
|
236
|
+
free_trial?: boolean | undefined;
|
|
235
237
|
success_url?: string | undefined;
|
|
238
|
+
force_checkout?: boolean | undefined;
|
|
236
239
|
customer_data?: {
|
|
237
240
|
name?: string | null | undefined;
|
|
238
241
|
email?: string | null | undefined;
|
|
@@ -241,9 +244,7 @@ declare const autumn: (options?: {
|
|
|
241
244
|
entity_data?: any;
|
|
242
245
|
checkout_session_params?: Record<string, any> | undefined;
|
|
243
246
|
reward?: string | undefined;
|
|
244
|
-
|
|
245
|
-
free_trial?: boolean | undefined;
|
|
246
|
-
force_checkout?: boolean | undefined;
|
|
247
|
+
invoice?: boolean | undefined;
|
|
247
248
|
};
|
|
248
249
|
} & {
|
|
249
250
|
method?: "POST" | undefined;
|
|
@@ -304,15 +305,19 @@ declare const autumn: (options?: {
|
|
|
304
305
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
305
306
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
306
307
|
reward: z.ZodOptional<z.ZodString>;
|
|
308
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
307
309
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
310
|
+
entity_id?: string | undefined;
|
|
308
311
|
options?: {
|
|
309
312
|
feature_id: string;
|
|
310
313
|
quantity: number;
|
|
311
314
|
}[] | undefined;
|
|
312
315
|
metadata?: Record<string, string> | undefined;
|
|
313
316
|
product_id?: string | undefined;
|
|
314
|
-
|
|
317
|
+
product_ids?: string[] | undefined;
|
|
318
|
+
free_trial?: boolean | undefined;
|
|
315
319
|
success_url?: string | undefined;
|
|
320
|
+
force_checkout?: boolean | undefined;
|
|
316
321
|
customer_data?: {
|
|
317
322
|
name?: string | null | undefined;
|
|
318
323
|
email?: string | null | undefined;
|
|
@@ -321,18 +326,19 @@ declare const autumn: (options?: {
|
|
|
321
326
|
entity_data?: any;
|
|
322
327
|
checkout_session_params?: Record<string, any> | undefined;
|
|
323
328
|
reward?: string | undefined;
|
|
324
|
-
|
|
325
|
-
free_trial?: boolean | undefined;
|
|
326
|
-
force_checkout?: boolean | undefined;
|
|
329
|
+
invoice?: boolean | undefined;
|
|
327
330
|
}, {
|
|
331
|
+
entity_id?: string | undefined;
|
|
328
332
|
options?: {
|
|
329
333
|
feature_id: string;
|
|
330
334
|
quantity: number;
|
|
331
335
|
}[] | undefined;
|
|
332
336
|
metadata?: Record<string, string> | undefined;
|
|
333
337
|
product_id?: string | undefined;
|
|
334
|
-
|
|
338
|
+
product_ids?: string[] | undefined;
|
|
339
|
+
free_trial?: boolean | undefined;
|
|
335
340
|
success_url?: string | undefined;
|
|
341
|
+
force_checkout?: boolean | undefined;
|
|
336
342
|
customer_data?: {
|
|
337
343
|
name?: string | null | undefined;
|
|
338
344
|
email?: string | null | undefined;
|
|
@@ -341,9 +347,7 @@ declare const autumn: (options?: {
|
|
|
341
347
|
entity_data?: any;
|
|
342
348
|
checkout_session_params?: Record<string, any> | undefined;
|
|
343
349
|
reward?: string | undefined;
|
|
344
|
-
|
|
345
|
-
free_trial?: boolean | undefined;
|
|
346
|
-
force_checkout?: boolean | undefined;
|
|
350
|
+
invoice?: boolean | undefined;
|
|
347
351
|
}>;
|
|
348
352
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
349
353
|
session: {
|
|
@@ -376,15 +380,15 @@ declare const autumn: (options?: {
|
|
|
376
380
|
check: {
|
|
377
381
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
378
382
|
body: {
|
|
379
|
-
product_id?: string | undefined;
|
|
380
|
-
entity_id?: string | undefined;
|
|
381
383
|
feature_id?: string | undefined;
|
|
384
|
+
entity_id?: string | undefined;
|
|
385
|
+
required_balance?: number | undefined;
|
|
386
|
+
product_id?: string | undefined;
|
|
382
387
|
customer_data?: any;
|
|
383
388
|
entity_data?: {
|
|
384
389
|
feature_id: string;
|
|
385
390
|
name?: string | undefined;
|
|
386
391
|
} | undefined;
|
|
387
|
-
required_balance?: number | undefined;
|
|
388
392
|
send_event?: boolean | undefined;
|
|
389
393
|
with_preview?: boolean | undefined;
|
|
390
394
|
};
|
|
@@ -432,27 +436,27 @@ declare const autumn: (options?: {
|
|
|
432
436
|
name?: string | undefined;
|
|
433
437
|
}>>;
|
|
434
438
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
435
|
-
product_id?: string | undefined;
|
|
436
|
-
entity_id?: string | undefined;
|
|
437
439
|
feature_id?: string | undefined;
|
|
440
|
+
entity_id?: string | undefined;
|
|
441
|
+
required_balance?: number | undefined;
|
|
442
|
+
product_id?: string | undefined;
|
|
438
443
|
customer_data?: any;
|
|
439
444
|
entity_data?: {
|
|
440
445
|
feature_id: string;
|
|
441
446
|
name?: string | undefined;
|
|
442
447
|
} | undefined;
|
|
443
|
-
required_balance?: number | undefined;
|
|
444
448
|
send_event?: boolean | undefined;
|
|
445
449
|
with_preview?: boolean | undefined;
|
|
446
450
|
}, {
|
|
447
|
-
product_id?: string | undefined;
|
|
448
|
-
entity_id?: string | undefined;
|
|
449
451
|
feature_id?: string | undefined;
|
|
452
|
+
entity_id?: string | undefined;
|
|
453
|
+
required_balance?: number | undefined;
|
|
454
|
+
product_id?: string | undefined;
|
|
450
455
|
customer_data?: any;
|
|
451
456
|
entity_data?: {
|
|
452
457
|
feature_id: string;
|
|
453
458
|
name?: string | undefined;
|
|
454
459
|
} | undefined;
|
|
455
|
-
required_balance?: number | undefined;
|
|
456
460
|
send_event?: boolean | undefined;
|
|
457
461
|
with_preview?: boolean | undefined;
|
|
458
462
|
}>;
|
|
@@ -487,9 +491,9 @@ declare const autumn: (options?: {
|
|
|
487
491
|
track: {
|
|
488
492
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
489
493
|
body: {
|
|
490
|
-
value?: number | undefined;
|
|
491
|
-
entity_id?: string | undefined;
|
|
492
494
|
feature_id?: string | undefined;
|
|
495
|
+
entity_id?: string | undefined;
|
|
496
|
+
value?: number | undefined;
|
|
493
497
|
customer_data?: any;
|
|
494
498
|
entity_data?: any;
|
|
495
499
|
event_name?: string | undefined;
|
|
@@ -529,17 +533,17 @@ declare const autumn: (options?: {
|
|
|
529
533
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
530
534
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
531
535
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
532
|
-
value?: number | undefined;
|
|
533
|
-
entity_id?: string | undefined;
|
|
534
536
|
feature_id?: string | undefined;
|
|
537
|
+
entity_id?: string | undefined;
|
|
538
|
+
value?: number | undefined;
|
|
535
539
|
customer_data?: any;
|
|
536
540
|
entity_data?: any;
|
|
537
541
|
event_name?: string | undefined;
|
|
538
542
|
idempotency_key?: string | undefined;
|
|
539
543
|
}, {
|
|
540
|
-
value?: number | undefined;
|
|
541
|
-
entity_id?: string | undefined;
|
|
542
544
|
feature_id?: string | undefined;
|
|
545
|
+
entity_id?: string | undefined;
|
|
546
|
+
value?: number | undefined;
|
|
543
547
|
customer_data?: any;
|
|
544
548
|
entity_data?: any;
|
|
545
549
|
event_name?: string | undefined;
|
|
@@ -10,8 +10,8 @@ declare const autumn: (options?: {
|
|
|
10
10
|
createCustomer: {
|
|
11
11
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
12
12
|
body: {
|
|
13
|
-
errorOnNotFound?: boolean | undefined;
|
|
14
13
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
14
|
+
errorOnNotFound?: boolean | undefined;
|
|
15
15
|
};
|
|
16
16
|
} & {
|
|
17
17
|
method?: "POST" | undefined;
|
|
@@ -42,11 +42,11 @@ declare const autumn: (options?: {
|
|
|
42
42
|
errorOnNotFound: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
errorOnNotFound?: boolean | undefined;
|
|
46
45
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
47
|
-
}, {
|
|
48
46
|
errorOnNotFound?: boolean | undefined;
|
|
47
|
+
}, {
|
|
49
48
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
49
|
+
errorOnNotFound?: boolean | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
metadata: {
|
|
52
52
|
isAction: boolean;
|
|
@@ -91,11 +91,11 @@ declare const autumn: (options?: {
|
|
|
91
91
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
92
92
|
body: {
|
|
93
93
|
product_id: string;
|
|
94
|
+
entity_id?: string | undefined;
|
|
94
95
|
options?: {
|
|
95
96
|
feature_id: string;
|
|
96
97
|
quantity: number;
|
|
97
98
|
}[] | undefined;
|
|
98
|
-
entity_id?: string | undefined;
|
|
99
99
|
success_url?: string | undefined;
|
|
100
100
|
customer_data?: {
|
|
101
101
|
name?: string | null | undefined;
|
|
@@ -163,11 +163,11 @@ declare const autumn: (options?: {
|
|
|
163
163
|
reward: z.ZodOptional<z.ZodString>;
|
|
164
164
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
165
165
|
product_id: string;
|
|
166
|
+
entity_id?: string | undefined;
|
|
166
167
|
options?: {
|
|
167
168
|
feature_id: string;
|
|
168
169
|
quantity: number;
|
|
169
170
|
}[] | undefined;
|
|
170
|
-
entity_id?: string | undefined;
|
|
171
171
|
success_url?: string | undefined;
|
|
172
172
|
customer_data?: {
|
|
173
173
|
name?: string | null | undefined;
|
|
@@ -179,11 +179,11 @@ declare const autumn: (options?: {
|
|
|
179
179
|
reward?: string | undefined;
|
|
180
180
|
}, {
|
|
181
181
|
product_id: string;
|
|
182
|
+
entity_id?: string | undefined;
|
|
182
183
|
options?: {
|
|
183
184
|
feature_id: string;
|
|
184
185
|
quantity: number;
|
|
185
186
|
}[] | undefined;
|
|
186
|
-
entity_id?: string | undefined;
|
|
187
187
|
success_url?: string | undefined;
|
|
188
188
|
customer_data?: {
|
|
189
189
|
name?: string | null | undefined;
|
|
@@ -225,14 +225,17 @@ declare const autumn: (options?: {
|
|
|
225
225
|
attach: {
|
|
226
226
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
227
227
|
body: {
|
|
228
|
+
entity_id?: string | undefined;
|
|
228
229
|
options?: {
|
|
229
230
|
feature_id: string;
|
|
230
231
|
quantity: number;
|
|
231
232
|
}[] | undefined;
|
|
232
233
|
metadata?: Record<string, string> | undefined;
|
|
233
234
|
product_id?: string | undefined;
|
|
234
|
-
|
|
235
|
+
product_ids?: string[] | undefined;
|
|
236
|
+
free_trial?: boolean | undefined;
|
|
235
237
|
success_url?: string | undefined;
|
|
238
|
+
force_checkout?: boolean | undefined;
|
|
236
239
|
customer_data?: {
|
|
237
240
|
name?: string | null | undefined;
|
|
238
241
|
email?: string | null | undefined;
|
|
@@ -241,9 +244,7 @@ declare const autumn: (options?: {
|
|
|
241
244
|
entity_data?: any;
|
|
242
245
|
checkout_session_params?: Record<string, any> | undefined;
|
|
243
246
|
reward?: string | undefined;
|
|
244
|
-
|
|
245
|
-
free_trial?: boolean | undefined;
|
|
246
|
-
force_checkout?: boolean | undefined;
|
|
247
|
+
invoice?: boolean | undefined;
|
|
247
248
|
};
|
|
248
249
|
} & {
|
|
249
250
|
method?: "POST" | undefined;
|
|
@@ -304,15 +305,19 @@ declare const autumn: (options?: {
|
|
|
304
305
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
305
306
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
306
307
|
reward: z.ZodOptional<z.ZodString>;
|
|
308
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
307
309
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
310
|
+
entity_id?: string | undefined;
|
|
308
311
|
options?: {
|
|
309
312
|
feature_id: string;
|
|
310
313
|
quantity: number;
|
|
311
314
|
}[] | undefined;
|
|
312
315
|
metadata?: Record<string, string> | undefined;
|
|
313
316
|
product_id?: string | undefined;
|
|
314
|
-
|
|
317
|
+
product_ids?: string[] | undefined;
|
|
318
|
+
free_trial?: boolean | undefined;
|
|
315
319
|
success_url?: string | undefined;
|
|
320
|
+
force_checkout?: boolean | undefined;
|
|
316
321
|
customer_data?: {
|
|
317
322
|
name?: string | null | undefined;
|
|
318
323
|
email?: string | null | undefined;
|
|
@@ -321,18 +326,19 @@ declare const autumn: (options?: {
|
|
|
321
326
|
entity_data?: any;
|
|
322
327
|
checkout_session_params?: Record<string, any> | undefined;
|
|
323
328
|
reward?: string | undefined;
|
|
324
|
-
|
|
325
|
-
free_trial?: boolean | undefined;
|
|
326
|
-
force_checkout?: boolean | undefined;
|
|
329
|
+
invoice?: boolean | undefined;
|
|
327
330
|
}, {
|
|
331
|
+
entity_id?: string | undefined;
|
|
328
332
|
options?: {
|
|
329
333
|
feature_id: string;
|
|
330
334
|
quantity: number;
|
|
331
335
|
}[] | undefined;
|
|
332
336
|
metadata?: Record<string, string> | undefined;
|
|
333
337
|
product_id?: string | undefined;
|
|
334
|
-
|
|
338
|
+
product_ids?: string[] | undefined;
|
|
339
|
+
free_trial?: boolean | undefined;
|
|
335
340
|
success_url?: string | undefined;
|
|
341
|
+
force_checkout?: boolean | undefined;
|
|
336
342
|
customer_data?: {
|
|
337
343
|
name?: string | null | undefined;
|
|
338
344
|
email?: string | null | undefined;
|
|
@@ -341,9 +347,7 @@ declare const autumn: (options?: {
|
|
|
341
347
|
entity_data?: any;
|
|
342
348
|
checkout_session_params?: Record<string, any> | undefined;
|
|
343
349
|
reward?: string | undefined;
|
|
344
|
-
|
|
345
|
-
free_trial?: boolean | undefined;
|
|
346
|
-
force_checkout?: boolean | undefined;
|
|
350
|
+
invoice?: boolean | undefined;
|
|
347
351
|
}>;
|
|
348
352
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
349
353
|
session: {
|
|
@@ -376,15 +380,15 @@ declare const autumn: (options?: {
|
|
|
376
380
|
check: {
|
|
377
381
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
378
382
|
body: {
|
|
379
|
-
product_id?: string | undefined;
|
|
380
|
-
entity_id?: string | undefined;
|
|
381
383
|
feature_id?: string | undefined;
|
|
384
|
+
entity_id?: string | undefined;
|
|
385
|
+
required_balance?: number | undefined;
|
|
386
|
+
product_id?: string | undefined;
|
|
382
387
|
customer_data?: any;
|
|
383
388
|
entity_data?: {
|
|
384
389
|
feature_id: string;
|
|
385
390
|
name?: string | undefined;
|
|
386
391
|
} | undefined;
|
|
387
|
-
required_balance?: number | undefined;
|
|
388
392
|
send_event?: boolean | undefined;
|
|
389
393
|
with_preview?: boolean | undefined;
|
|
390
394
|
};
|
|
@@ -432,27 +436,27 @@ declare const autumn: (options?: {
|
|
|
432
436
|
name?: string | undefined;
|
|
433
437
|
}>>;
|
|
434
438
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
435
|
-
product_id?: string | undefined;
|
|
436
|
-
entity_id?: string | undefined;
|
|
437
439
|
feature_id?: string | undefined;
|
|
440
|
+
entity_id?: string | undefined;
|
|
441
|
+
required_balance?: number | undefined;
|
|
442
|
+
product_id?: string | undefined;
|
|
438
443
|
customer_data?: any;
|
|
439
444
|
entity_data?: {
|
|
440
445
|
feature_id: string;
|
|
441
446
|
name?: string | undefined;
|
|
442
447
|
} | undefined;
|
|
443
|
-
required_balance?: number | undefined;
|
|
444
448
|
send_event?: boolean | undefined;
|
|
445
449
|
with_preview?: boolean | undefined;
|
|
446
450
|
}, {
|
|
447
|
-
product_id?: string | undefined;
|
|
448
|
-
entity_id?: string | undefined;
|
|
449
451
|
feature_id?: string | undefined;
|
|
452
|
+
entity_id?: string | undefined;
|
|
453
|
+
required_balance?: number | undefined;
|
|
454
|
+
product_id?: string | undefined;
|
|
450
455
|
customer_data?: any;
|
|
451
456
|
entity_data?: {
|
|
452
457
|
feature_id: string;
|
|
453
458
|
name?: string | undefined;
|
|
454
459
|
} | undefined;
|
|
455
|
-
required_balance?: number | undefined;
|
|
456
460
|
send_event?: boolean | undefined;
|
|
457
461
|
with_preview?: boolean | undefined;
|
|
458
462
|
}>;
|
|
@@ -487,9 +491,9 @@ declare const autumn: (options?: {
|
|
|
487
491
|
track: {
|
|
488
492
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
489
493
|
body: {
|
|
490
|
-
value?: number | undefined;
|
|
491
|
-
entity_id?: string | undefined;
|
|
492
494
|
feature_id?: string | undefined;
|
|
495
|
+
entity_id?: string | undefined;
|
|
496
|
+
value?: number | undefined;
|
|
493
497
|
customer_data?: any;
|
|
494
498
|
entity_data?: any;
|
|
495
499
|
event_name?: string | undefined;
|
|
@@ -529,17 +533,17 @@ declare const autumn: (options?: {
|
|
|
529
533
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
530
534
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
531
535
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
532
|
-
value?: number | undefined;
|
|
533
|
-
entity_id?: string | undefined;
|
|
534
536
|
feature_id?: string | undefined;
|
|
537
|
+
entity_id?: string | undefined;
|
|
538
|
+
value?: number | undefined;
|
|
535
539
|
customer_data?: any;
|
|
536
540
|
entity_data?: any;
|
|
537
541
|
event_name?: string | undefined;
|
|
538
542
|
idempotency_key?: string | undefined;
|
|
539
543
|
}, {
|
|
540
|
-
value?: number | undefined;
|
|
541
|
-
entity_id?: string | undefined;
|
|
542
544
|
feature_id?: string | undefined;
|
|
545
|
+
entity_id?: string | undefined;
|
|
546
|
+
value?: number | undefined;
|
|
543
547
|
customer_data?: any;
|
|
544
548
|
entity_data?: any;
|
|
545
549
|
event_name?: string | undefined;
|
|
@@ -742,7 +742,8 @@ var AttachParamsSchema = import_zod7.z.object({
|
|
|
742
742
|
customer_data: CustomerDataSchema.optional(),
|
|
743
743
|
entity_data: import_zod7.z.any().optional(),
|
|
744
744
|
checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
|
|
745
|
-
reward: import_zod7.z.string().optional()
|
|
745
|
+
reward: import_zod7.z.string().optional(),
|
|
746
|
+
invoice: import_zod7.z.boolean().optional()
|
|
746
747
|
});
|
|
747
748
|
var AttachResultSchema = import_zod7.z.object({
|
|
748
749
|
checkout_url: import_zod7.z.string().optional(),
|
|
@@ -750,7 +751,14 @@ var AttachResultSchema = import_zod7.z.object({
|
|
|
750
751
|
product_ids: import_zod7.z.array(import_zod7.z.string()),
|
|
751
752
|
code: import_zod7.z.string(),
|
|
752
753
|
message: import_zod7.z.string(),
|
|
753
|
-
customer_data: import_zod7.z.any().optional()
|
|
754
|
+
customer_data: import_zod7.z.any().optional(),
|
|
755
|
+
invoice: import_zod7.z.object({
|
|
756
|
+
status: import_zod7.z.string(),
|
|
757
|
+
stripe_id: import_zod7.z.string(),
|
|
758
|
+
hosted_invoice_url: import_zod7.z.string().nullable(),
|
|
759
|
+
total: import_zod7.z.number(),
|
|
760
|
+
currency: import_zod7.z.string()
|
|
761
|
+
}).optional()
|
|
754
762
|
});
|
|
755
763
|
var CheckoutParamsSchema = import_zod7.z.object({
|
|
756
764
|
customer_id: import_zod7.z.string(),
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7WWKVE4J.mjs";
|
|
7
|
+
import "./chunk-JN4ULI5R.mjs";
|
|
8
|
+
import "./chunk-EJBD5GH7.mjs";
|
|
9
|
+
import "./chunk-I43OU64D.mjs";
|
|
10
|
+
import "./chunk-YN334O74.mjs";
|
|
11
|
+
import "./chunk-274BIVOC.mjs";
|
|
12
12
|
import {
|
|
13
13
|
AttachParamsSchema,
|
|
14
14
|
Autumn,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
CustomerExpandEnum,
|
|
21
21
|
RedeemReferralCodeParamsSchema,
|
|
22
22
|
TrackParamsSchema
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KY3RLTE7.mjs";
|
|
24
24
|
import "./chunk-2TEL6LR5.mjs";
|
|
25
25
|
import "./chunk-KSG3E4Q2.mjs";
|
|
26
26
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGenRoutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JN4ULI5R.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addProductRoutes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EJBD5GH7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
addReferralRoutes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I43OU64D.mjs";
|
|
10
10
|
import {
|
|
11
11
|
addEntityRoutes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YN334O74.mjs";
|
|
13
13
|
import {
|
|
14
14
|
withAuth
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-274BIVOC.mjs";
|
|
16
16
|
import {
|
|
17
17
|
fetchPricingTable
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KY3RLTE7.mjs";
|
|
19
19
|
import {
|
|
20
20
|
BASE_PATH
|
|
21
21
|
} from "./chunk-KSG3E4Q2.mjs";
|
|
@@ -679,7 +679,8 @@ var AttachParamsSchema = z7.object({
|
|
|
679
679
|
customer_data: CustomerDataSchema.optional(),
|
|
680
680
|
entity_data: z7.any().optional(),
|
|
681
681
|
checkout_session_params: z7.record(z7.any()).optional(),
|
|
682
|
-
reward: z7.string().optional()
|
|
682
|
+
reward: z7.string().optional(),
|
|
683
|
+
invoice: z7.boolean().optional()
|
|
683
684
|
});
|
|
684
685
|
var AttachResultSchema = z7.object({
|
|
685
686
|
checkout_url: z7.string().optional(),
|
|
@@ -687,7 +688,14 @@ var AttachResultSchema = z7.object({
|
|
|
687
688
|
product_ids: z7.array(z7.string()),
|
|
688
689
|
code: z7.string(),
|
|
689
690
|
message: z7.string(),
|
|
690
|
-
customer_data: z7.any().optional()
|
|
691
|
+
customer_data: z7.any().optional(),
|
|
692
|
+
invoice: z7.object({
|
|
693
|
+
status: z7.string(),
|
|
694
|
+
stripe_id: z7.string(),
|
|
695
|
+
hosted_invoice_url: z7.string().nullable(),
|
|
696
|
+
total: z7.number(),
|
|
697
|
+
currency: z7.string()
|
|
698
|
+
}).optional()
|
|
691
699
|
});
|
|
692
700
|
var CheckoutParamsSchema = z7.object({
|
|
693
701
|
customer_id: z7.string(),
|
|
@@ -739,7 +739,8 @@ var AttachParamsSchema = import_zod7.z.object({
|
|
|
739
739
|
customer_data: CustomerDataSchema.optional(),
|
|
740
740
|
entity_data: import_zod7.z.any().optional(),
|
|
741
741
|
checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
|
|
742
|
-
reward: import_zod7.z.string().optional()
|
|
742
|
+
reward: import_zod7.z.string().optional(),
|
|
743
|
+
invoice: import_zod7.z.boolean().optional()
|
|
743
744
|
});
|
|
744
745
|
var AttachResultSchema = import_zod7.z.object({
|
|
745
746
|
checkout_url: import_zod7.z.string().optional(),
|
|
@@ -747,7 +748,14 @@ var AttachResultSchema = import_zod7.z.object({
|
|
|
747
748
|
product_ids: import_zod7.z.array(import_zod7.z.string()),
|
|
748
749
|
code: import_zod7.z.string(),
|
|
749
750
|
message: import_zod7.z.string(),
|
|
750
|
-
customer_data: import_zod7.z.any().optional()
|
|
751
|
+
customer_data: import_zod7.z.any().optional(),
|
|
752
|
+
invoice: import_zod7.z.object({
|
|
753
|
+
status: import_zod7.z.string(),
|
|
754
|
+
stripe_id: import_zod7.z.string(),
|
|
755
|
+
hosted_invoice_url: import_zod7.z.string().nullable(),
|
|
756
|
+
total: import_zod7.z.number(),
|
|
757
|
+
currency: import_zod7.z.string()
|
|
758
|
+
}).optional()
|
|
751
759
|
});
|
|
752
760
|
var CheckoutParamsSchema = import_zod7.z.object({
|
|
753
761
|
customer_id: import_zod7.z.string(),
|