autumn-js 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libraries/backend/better-auth.d.mts +28 -28
- package/dist/libraries/backend/better-auth.d.ts +28 -28
- package/dist/libraries/backend/better-auth.js +27 -1
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-PN4KP454.mjs → chunk-4LVRQN5R.mjs} +25 -0
- package/dist/libraries/backend/{chunk-QSWG2M5T.mjs → chunk-7PLQK5LL.mjs} +1 -1
- package/dist/libraries/backend/{chunk-6QFLAHJ4.mjs → chunk-DMPRLFPO.mjs} +1 -1
- package/dist/libraries/backend/{chunk-XVPZOXA3.mjs → chunk-FOK63UWJ.mjs} +3 -2
- package/dist/libraries/backend/{chunk-5VJICG7P.mjs → chunk-J5U7ZXZU.mjs} +6 -6
- package/dist/libraries/backend/{chunk-OW4LL3WD.mjs → chunk-J6DXZ2RF.mjs} +1 -1
- package/dist/libraries/backend/{chunk-5KV536NU.mjs → chunk-OEKZ2I55.mjs} +1 -1
- package/dist/libraries/backend/convex.d.mts +1 -9
- package/dist/libraries/backend/convex.d.ts +1 -9
- package/dist/libraries/backend/convex.js +0 -1447
- package/dist/libraries/backend/convex.mjs +0 -81
- package/dist/libraries/backend/elysia.js +27 -1
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.js +27 -1
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +27 -1
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +27 -1
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/index.js +27 -1
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +27 -1
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +27 -1
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/remix_dep.js +27 -1
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +27 -1
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +25 -0
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +27 -1
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +25 -0
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +25 -0
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +27 -1
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +27 -1
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +25 -0
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.js +25 -0
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.js +28 -1
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +7 -7
- package/dist/libraries/react/BaseAutumnProvider.d.ts +7 -7
- package/dist/libraries/react/BaseAutumnProvider.js +43 -4
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-_y4Ea48c.d.mts → ReactAutumnClient--zmCg7U8.d.mts} +62 -10
- package/dist/libraries/react/{ReactAutumnClient-BqEB-TPz.d.ts → ReactAutumnClient-XuVllEBP.d.ts} +62 -10
- package/dist/libraries/react/ReactAutumnProvider.d.mts +5 -4
- package/dist/libraries/react/ReactAutumnProvider.d.ts +5 -4
- package/dist/libraries/react/ReactAutumnProvider.js +366 -5
- package/dist/libraries/react/ReactAutumnProvider.mjs +12 -11
- package/dist/libraries/react/{attachTypes-gI6T0O95.d.mts → attachTypes-DJIr5ldB.d.mts} +1 -1
- package/dist/libraries/react/{attachTypes-DoCshKK6.d.ts → attachTypes-DVF4f7Hw.d.ts} +1 -1
- package/dist/libraries/react/{chunk-NFVAFRF6.mjs → chunk-2SFUXGFK.mjs} +1 -1
- package/dist/libraries/react/{chunk-HBJDIEEJ.mjs → chunk-4WAFPXBN.mjs} +1 -1
- package/dist/libraries/react/{chunk-VELC6P5V.mjs → chunk-54IJL24F.mjs} +3 -3
- package/dist/libraries/react/{chunk-AS4XOUEI.mjs → chunk-65UX5FJ5.mjs} +2 -2
- package/dist/libraries/react/{chunk-XUS3TD2B.mjs → chunk-6KINUP6L.mjs} +2 -2
- package/dist/libraries/react/{chunk-S744ECJP.mjs → chunk-COGRLJH2.mjs} +16 -4
- package/dist/libraries/react/{chunk-ABJEE3UK.mjs → chunk-KUFNEIRV.mjs} +25 -0
- package/dist/libraries/react/{chunk-PN6WKUSX.mjs → chunk-MUZHFEMO.mjs} +1 -1
- package/dist/libraries/react/{chunk-Y5S2HOFE.mjs → chunk-MYRJW7LW.mjs} +1 -1
- package/dist/libraries/react/{chunk-JNJRQ5DT.mjs → chunk-NBVPBAGX.mjs} +12 -10
- package/dist/libraries/react/{chunk-NYQF7NO3.mjs → chunk-O7IKBONA.mjs} +1 -1
- package/dist/libraries/react/{chunk-OCP7PVSZ.mjs → chunk-PZVVV3LN.mjs} +14 -4
- package/dist/libraries/react/{chunk-JWT4MREG.mjs → chunk-QYW6U2NR.mjs} +3 -3
- package/dist/libraries/react/{chunk-74HNY7BP.mjs → chunk-UMG2RCCT.mjs} +2 -2
- package/dist/libraries/react/{chunk-KHIB6HEY.mjs → chunk-WRVDJJBE.mjs} +2 -2
- package/dist/libraries/react/chunk-ZH7N5FIC.mjs +324 -0
- package/dist/libraries/react/{chunk-PDPOI2J7.mjs → chunk-ZYTMSYY3.mjs} +21 -21
- package/dist/libraries/react/client/ConvexAutumnClient.d.mts +76 -0
- package/dist/libraries/react/client/ConvexAutumnClient.d.ts +76 -0
- package/dist/libraries/react/client/ConvexAutumnClient.js +1263 -0
- package/dist/libraries/react/client/ConvexAutumnClient.mjs +9 -0
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.js +28 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
- package/dist/libraries/react/client/types/clientGenTypes.js +25 -0
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +43 -4
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +26 -25
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +2 -2
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +1 -1
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +1 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +28 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +26 -25
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +43 -4
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +26 -25
- package/dist/libraries/react/components/ui/dialog.mjs +2 -2
- package/dist/libraries/react/components/ui/popover.mjs +2 -2
- package/dist/libraries/react/{cusTypes-DckkwpWg.d.ts → cusTypes-CEb_KwPo.d.ts} +1 -1
- package/dist/libraries/react/{cusTypes-UwHT30-L.d.mts → cusTypes-DynqPCZH.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-BWsQfaNZ.d.ts → entTypes--Y-4T20Y.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-DcRz1vjc.d.mts → entTypes-DjasDDYh.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-C_ilxndU.d.mts → genTypes-DdYlVEah.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-DjcQWIOM.d.ts → genTypes-aPPwPimh.d.ts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.js +40 -3
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +12 -28
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +12 -28
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +25 -0
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.js +28 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.mts +7 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +7 -6
- package/dist/libraries/react/hooks/useCustomer.js +43 -4
- package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +8 -7
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +8 -7
- package/dist/libraries/react/hooks/useCustomerBase.js +43 -4
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- package/dist/libraries/react/hooks/useEntity.d.mts +6 -20
- package/dist/libraries/react/hooks/useEntity.d.ts +6 -20
- package/dist/libraries/react/hooks/useEntity.js +43 -4
- package/dist/libraries/react/hooks/useEntity.mjs +10 -10
- package/dist/libraries/react/hooks/useEntityBase.d.mts +8 -22
- package/dist/libraries/react/hooks/useEntityBase.d.ts +8 -22
- package/dist/libraries/react/hooks/useEntityBase.js +43 -4
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- package/dist/libraries/react/hooks/usePaywall.js +28 -1
- package/dist/libraries/react/hooks/usePaywall.mjs +6 -6
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.js +28 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +8 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +8 -7
- package/dist/libraries/react/hooks/usePricingTableBase.js +25 -0
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
- package/dist/libraries/react/index.d.mts +4 -17
- package/dist/libraries/react/index.d.ts +4 -17
- package/dist/libraries/react/index.js +366 -5
- package/dist/libraries/react/index.mjs +366 -5
- package/dist/libraries/react/{prodTypes-B8NdKyKo.d.ts → prodTypes-C8xRoBP7.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes-B8NdKyKo.d.mts → prodTypes-C8xRoBP7.d.ts} +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +61 -10
- package/dist/next/client/NextAutumnClient.d.ts +61 -10
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{clientAttachTypes-DPbDkX9E.d.mts → clientAttachTypes-BgiG9o_O.d.mts} +2 -2
- package/dist/next/client/{clientAttachTypes-DWfLqjO3.d.ts → clientAttachTypes-VNZGVMx6.d.ts} +2 -2
- package/dist/next/client/{attachTypes-x-hgg6BY.d.ts → clientEntTypes-BNVsUSBp.d.mts} +22 -2
- package/dist/next/client/{attachTypes-BOh_Skwx.d.mts → clientEntTypes-DmhBcFyI.d.ts} +22 -2
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-CcUOSzBw.d.ts → cusTypes-5W4JVk2C.d.ts} +1 -1
- package/dist/next/client/{cusTypes-dipsR4ST.d.mts → cusTypes-Cb9Peq72.d.mts} +1 -1
- package/dist/next/client/{entTypes-BwBtFwJP.d.ts → entTypes-B2gnYOgY.d.ts} +1 -1
- package/dist/next/client/{entTypes-BzKJAjff.d.mts → entTypes-R0fGEyG8.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +7 -25
- package/dist/next/client/hooks/useAutumn.d.ts +7 -25
- package/dist/next/client/hooks/useCustomer.d.mts +5 -6
- package/dist/next/client/hooks/useCustomer.d.ts +5 -6
- package/dist/next/client/hooks/useEntity.d.mts +6 -20
- package/dist/next/client/hooks/useEntity.d.ts +6 -20
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/{prodTypes-DwM7QuGf.d.mts → prodTypes-BC--Np0p.d.mts} +1 -1
- package/dist/next/client/{prodTypes-DwM7QuGf.d.ts → prodTypes-BC--Np0p.d.ts} +1 -1
- package/dist/next/client/types.d.mts +3 -3
- package/dist/next/client/types.d.ts +3 -3
- package/dist/sdk/index.d.mts +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +24 -0
- package/dist/sdk/index.mjs +24 -1
- package/dist/utils/encryptUtils.js +25 -0
- package/dist/utils/encryptUtils.mjs +25 -0
- package/package.json +5 -9
- package/dist/next/client/clientEntTypes-DHKeY0pG.d.mts +0 -21
- package/dist/next/client/clientEntTypes-DHKeY0pG.d.ts +0 -21
- package/dist/libraries/react/{chunk-X6FMCHSB.mjs → chunk-5KZSH7JF.mjs} +3 -3
- package/dist/libraries/react/{chunk-YE6KQQS7.mjs → chunk-UYZX3KX2.mjs} +3 -3
|
@@ -92,14 +92,15 @@ declare const autumn: (options?: {
|
|
|
92
92
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
93
93
|
body: {
|
|
94
94
|
product_id: string;
|
|
95
|
-
entity_id?: string | undefined;
|
|
96
95
|
options?: {
|
|
97
96
|
feature_id: string;
|
|
98
97
|
quantity: number;
|
|
99
98
|
}[] | undefined;
|
|
100
99
|
product_ids?: string[] | undefined;
|
|
101
|
-
|
|
100
|
+
entity_id?: string | undefined;
|
|
102
101
|
force_checkout?: boolean | undefined;
|
|
102
|
+
invoice?: boolean | undefined;
|
|
103
|
+
success_url?: string | undefined;
|
|
103
104
|
customer_data?: {
|
|
104
105
|
name?: string | null | undefined;
|
|
105
106
|
email?: string | null | undefined;
|
|
@@ -108,7 +109,6 @@ declare const autumn: (options?: {
|
|
|
108
109
|
entity_data?: any;
|
|
109
110
|
checkout_session_params?: Record<string, any> | undefined;
|
|
110
111
|
reward?: string | undefined;
|
|
111
|
-
invoice?: boolean | undefined;
|
|
112
112
|
};
|
|
113
113
|
} & {
|
|
114
114
|
method?: "POST" | undefined;
|
|
@@ -135,15 +135,16 @@ declare const autumn: (options?: {
|
|
|
135
135
|
options: {
|
|
136
136
|
method: "POST";
|
|
137
137
|
body: z.ZodObject<{
|
|
138
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
139
|
-
product_id: z.ZodString;
|
|
140
138
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
141
139
|
feature_id: z.ZodString;
|
|
142
140
|
quantity: z.ZodNumber;
|
|
143
141
|
}, z.core.$strip>>>;
|
|
142
|
+
product_id: z.ZodString;
|
|
144
143
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
-
|
|
144
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
146
145
|
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
147
148
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
148
149
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
150
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -152,7 +153,6 @@ declare const autumn: (options?: {
|
|
|
152
153
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
153
154
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
154
155
|
reward: z.ZodOptional<z.ZodString>;
|
|
155
|
-
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
156
156
|
}, z.core.$strip>;
|
|
157
157
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
158
158
|
session: {
|
|
@@ -185,17 +185,17 @@ declare const autumn: (options?: {
|
|
|
185
185
|
attach: {
|
|
186
186
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
187
187
|
body: {
|
|
188
|
-
entity_id?: string | undefined;
|
|
189
|
-
metadata?: Record<string, string> | undefined;
|
|
190
|
-
product_id?: string | undefined;
|
|
191
188
|
options?: {
|
|
192
189
|
feature_id: string;
|
|
193
190
|
quantity: number;
|
|
194
191
|
}[] | undefined;
|
|
192
|
+
metadata?: Record<string, string> | undefined;
|
|
193
|
+
product_id?: string | undefined;
|
|
195
194
|
product_ids?: string[] | undefined;
|
|
196
|
-
|
|
197
|
-
success_url?: string | undefined;
|
|
195
|
+
entity_id?: string | undefined;
|
|
198
196
|
force_checkout?: boolean | undefined;
|
|
197
|
+
invoice?: boolean | undefined;
|
|
198
|
+
success_url?: string | undefined;
|
|
199
199
|
customer_data?: {
|
|
200
200
|
name?: string | null | undefined;
|
|
201
201
|
email?: string | null | undefined;
|
|
@@ -204,7 +204,7 @@ declare const autumn: (options?: {
|
|
|
204
204
|
entity_data?: any;
|
|
205
205
|
checkout_session_params?: Record<string, any> | undefined;
|
|
206
206
|
reward?: string | undefined;
|
|
207
|
-
|
|
207
|
+
free_trial?: boolean | undefined;
|
|
208
208
|
};
|
|
209
209
|
} & {
|
|
210
210
|
method?: "POST" | undefined;
|
|
@@ -231,17 +231,17 @@ declare const autumn: (options?: {
|
|
|
231
231
|
options: {
|
|
232
232
|
method: "POST";
|
|
233
233
|
body: z.ZodObject<{
|
|
234
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
235
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
236
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
237
234
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
238
235
|
feature_id: z.ZodString;
|
|
239
236
|
quantity: z.ZodNumber;
|
|
240
237
|
}, z.core.$strip>>>;
|
|
238
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
239
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
241
240
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
|
-
|
|
243
|
-
success_url: z.ZodOptional<z.ZodString>;
|
|
241
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
244
242
|
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
245
245
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
246
246
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
247
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -250,7 +250,7 @@ declare const autumn: (options?: {
|
|
|
250
250
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
251
251
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
252
252
|
reward: z.ZodOptional<z.ZodString>;
|
|
253
|
-
|
|
253
|
+
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
254
254
|
}, z.core.$strip>;
|
|
255
255
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
256
256
|
session: {
|
|
@@ -283,15 +283,15 @@ declare const autumn: (options?: {
|
|
|
283
283
|
check: {
|
|
284
284
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
285
285
|
body: {
|
|
286
|
-
feature_id?: string | undefined;
|
|
287
|
-
entity_id?: string | undefined;
|
|
288
|
-
required_balance?: number | undefined;
|
|
289
286
|
product_id?: string | undefined;
|
|
287
|
+
entity_id?: string | undefined;
|
|
288
|
+
feature_id?: string | undefined;
|
|
290
289
|
customer_data?: any;
|
|
291
290
|
entity_data?: {
|
|
292
291
|
feature_id: string;
|
|
293
292
|
name?: string | undefined;
|
|
294
293
|
} | undefined;
|
|
294
|
+
required_balance?: number | undefined;
|
|
295
295
|
send_event?: boolean | undefined;
|
|
296
296
|
with_preview?: boolean | undefined;
|
|
297
297
|
};
|
|
@@ -320,15 +320,15 @@ declare const autumn: (options?: {
|
|
|
320
320
|
options: {
|
|
321
321
|
method: "POST";
|
|
322
322
|
body: z.ZodObject<{
|
|
323
|
-
feature_id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
|
-
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
326
323
|
product_id: z.ZodOptional<z.ZodString>;
|
|
324
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
feature_id: z.ZodOptional<z.ZodString>;
|
|
327
326
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
328
327
|
entity_data: z.ZodOptional<z.ZodObject<{
|
|
329
328
|
name: z.ZodOptional<z.ZodString>;
|
|
330
329
|
feature_id: z.ZodString;
|
|
331
330
|
}, z.core.$strip>>;
|
|
331
|
+
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
332
332
|
send_event: z.ZodOptional<z.ZodBoolean>;
|
|
333
333
|
with_preview: z.ZodOptional<z.ZodBoolean>;
|
|
334
334
|
}, z.core.$strip>;
|
|
@@ -363,8 +363,8 @@ declare const autumn: (options?: {
|
|
|
363
363
|
track: {
|
|
364
364
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
365
365
|
body: {
|
|
366
|
-
feature_id?: string | undefined;
|
|
367
366
|
entity_id?: string | undefined;
|
|
367
|
+
feature_id?: string | undefined;
|
|
368
368
|
customer_data?: any;
|
|
369
369
|
entity_data?: any;
|
|
370
370
|
value?: number | undefined;
|
|
@@ -396,8 +396,8 @@ declare const autumn: (options?: {
|
|
|
396
396
|
options: {
|
|
397
397
|
method: "POST";
|
|
398
398
|
body: z.ZodObject<{
|
|
399
|
-
feature_id: z.ZodOptional<z.ZodString>;
|
|
400
399
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
400
|
+
feature_id: z.ZodOptional<z.ZodString>;
|
|
401
401
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
402
402
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
403
403
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -464,8 +464,8 @@ declare const autumn: (options?: {
|
|
|
464
464
|
options: {
|
|
465
465
|
method: "POST";
|
|
466
466
|
body: z.ZodObject<{
|
|
467
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
468
467
|
product_id: z.ZodString;
|
|
468
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
469
469
|
cancel_immediately: z.ZodOptional<z.ZodBoolean>;
|
|
470
470
|
}, z.core.$strip>;
|
|
471
471
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
@@ -92,14 +92,15 @@ declare const autumn: (options?: {
|
|
|
92
92
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
93
93
|
body: {
|
|
94
94
|
product_id: string;
|
|
95
|
-
entity_id?: string | undefined;
|
|
96
95
|
options?: {
|
|
97
96
|
feature_id: string;
|
|
98
97
|
quantity: number;
|
|
99
98
|
}[] | undefined;
|
|
100
99
|
product_ids?: string[] | undefined;
|
|
101
|
-
|
|
100
|
+
entity_id?: string | undefined;
|
|
102
101
|
force_checkout?: boolean | undefined;
|
|
102
|
+
invoice?: boolean | undefined;
|
|
103
|
+
success_url?: string | undefined;
|
|
103
104
|
customer_data?: {
|
|
104
105
|
name?: string | null | undefined;
|
|
105
106
|
email?: string | null | undefined;
|
|
@@ -108,7 +109,6 @@ declare const autumn: (options?: {
|
|
|
108
109
|
entity_data?: any;
|
|
109
110
|
checkout_session_params?: Record<string, any> | undefined;
|
|
110
111
|
reward?: string | undefined;
|
|
111
|
-
invoice?: boolean | undefined;
|
|
112
112
|
};
|
|
113
113
|
} & {
|
|
114
114
|
method?: "POST" | undefined;
|
|
@@ -135,15 +135,16 @@ declare const autumn: (options?: {
|
|
|
135
135
|
options: {
|
|
136
136
|
method: "POST";
|
|
137
137
|
body: z.ZodObject<{
|
|
138
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
139
|
-
product_id: z.ZodString;
|
|
140
138
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
141
139
|
feature_id: z.ZodString;
|
|
142
140
|
quantity: z.ZodNumber;
|
|
143
141
|
}, z.core.$strip>>>;
|
|
142
|
+
product_id: z.ZodString;
|
|
144
143
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
-
|
|
144
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
146
145
|
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
147
148
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
148
149
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
150
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -152,7 +153,6 @@ declare const autumn: (options?: {
|
|
|
152
153
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
153
154
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
154
155
|
reward: z.ZodOptional<z.ZodString>;
|
|
155
|
-
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
156
156
|
}, z.core.$strip>;
|
|
157
157
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
158
158
|
session: {
|
|
@@ -185,17 +185,17 @@ declare const autumn: (options?: {
|
|
|
185
185
|
attach: {
|
|
186
186
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
187
187
|
body: {
|
|
188
|
-
entity_id?: string | undefined;
|
|
189
|
-
metadata?: Record<string, string> | undefined;
|
|
190
|
-
product_id?: string | undefined;
|
|
191
188
|
options?: {
|
|
192
189
|
feature_id: string;
|
|
193
190
|
quantity: number;
|
|
194
191
|
}[] | undefined;
|
|
192
|
+
metadata?: Record<string, string> | undefined;
|
|
193
|
+
product_id?: string | undefined;
|
|
195
194
|
product_ids?: string[] | undefined;
|
|
196
|
-
|
|
197
|
-
success_url?: string | undefined;
|
|
195
|
+
entity_id?: string | undefined;
|
|
198
196
|
force_checkout?: boolean | undefined;
|
|
197
|
+
invoice?: boolean | undefined;
|
|
198
|
+
success_url?: string | undefined;
|
|
199
199
|
customer_data?: {
|
|
200
200
|
name?: string | null | undefined;
|
|
201
201
|
email?: string | null | undefined;
|
|
@@ -204,7 +204,7 @@ declare const autumn: (options?: {
|
|
|
204
204
|
entity_data?: any;
|
|
205
205
|
checkout_session_params?: Record<string, any> | undefined;
|
|
206
206
|
reward?: string | undefined;
|
|
207
|
-
|
|
207
|
+
free_trial?: boolean | undefined;
|
|
208
208
|
};
|
|
209
209
|
} & {
|
|
210
210
|
method?: "POST" | undefined;
|
|
@@ -231,17 +231,17 @@ declare const autumn: (options?: {
|
|
|
231
231
|
options: {
|
|
232
232
|
method: "POST";
|
|
233
233
|
body: z.ZodObject<{
|
|
234
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
235
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
236
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
237
234
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
238
235
|
feature_id: z.ZodString;
|
|
239
236
|
quantity: z.ZodNumber;
|
|
240
237
|
}, z.core.$strip>>>;
|
|
238
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
239
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
241
240
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
|
-
|
|
243
|
-
success_url: z.ZodOptional<z.ZodString>;
|
|
241
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
244
242
|
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
245
245
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
246
246
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
247
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -250,7 +250,7 @@ declare const autumn: (options?: {
|
|
|
250
250
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
251
251
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
252
252
|
reward: z.ZodOptional<z.ZodString>;
|
|
253
|
-
|
|
253
|
+
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
254
254
|
}, z.core.$strip>;
|
|
255
255
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
256
256
|
session: {
|
|
@@ -283,15 +283,15 @@ declare const autumn: (options?: {
|
|
|
283
283
|
check: {
|
|
284
284
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
285
285
|
body: {
|
|
286
|
-
feature_id?: string | undefined;
|
|
287
|
-
entity_id?: string | undefined;
|
|
288
|
-
required_balance?: number | undefined;
|
|
289
286
|
product_id?: string | undefined;
|
|
287
|
+
entity_id?: string | undefined;
|
|
288
|
+
feature_id?: string | undefined;
|
|
290
289
|
customer_data?: any;
|
|
291
290
|
entity_data?: {
|
|
292
291
|
feature_id: string;
|
|
293
292
|
name?: string | undefined;
|
|
294
293
|
} | undefined;
|
|
294
|
+
required_balance?: number | undefined;
|
|
295
295
|
send_event?: boolean | undefined;
|
|
296
296
|
with_preview?: boolean | undefined;
|
|
297
297
|
};
|
|
@@ -320,15 +320,15 @@ declare const autumn: (options?: {
|
|
|
320
320
|
options: {
|
|
321
321
|
method: "POST";
|
|
322
322
|
body: z.ZodObject<{
|
|
323
|
-
feature_id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
|
-
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
326
323
|
product_id: z.ZodOptional<z.ZodString>;
|
|
324
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
feature_id: z.ZodOptional<z.ZodString>;
|
|
327
326
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
328
327
|
entity_data: z.ZodOptional<z.ZodObject<{
|
|
329
328
|
name: z.ZodOptional<z.ZodString>;
|
|
330
329
|
feature_id: z.ZodString;
|
|
331
330
|
}, z.core.$strip>>;
|
|
331
|
+
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
332
332
|
send_event: z.ZodOptional<z.ZodBoolean>;
|
|
333
333
|
with_preview: z.ZodOptional<z.ZodBoolean>;
|
|
334
334
|
}, z.core.$strip>;
|
|
@@ -363,8 +363,8 @@ declare const autumn: (options?: {
|
|
|
363
363
|
track: {
|
|
364
364
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
365
365
|
body: {
|
|
366
|
-
feature_id?: string | undefined;
|
|
367
366
|
entity_id?: string | undefined;
|
|
367
|
+
feature_id?: string | undefined;
|
|
368
368
|
customer_data?: any;
|
|
369
369
|
entity_data?: any;
|
|
370
370
|
value?: number | undefined;
|
|
@@ -396,8 +396,8 @@ declare const autumn: (options?: {
|
|
|
396
396
|
options: {
|
|
397
397
|
method: "POST";
|
|
398
398
|
body: z.ZodObject<{
|
|
399
|
-
feature_id: z.ZodOptional<z.ZodString>;
|
|
400
399
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
400
|
+
feature_id: z.ZodOptional<z.ZodString>;
|
|
401
401
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
402
402
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
403
403
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -464,8 +464,8 @@ declare const autumn: (options?: {
|
|
|
464
464
|
options: {
|
|
465
465
|
method: "POST";
|
|
466
466
|
body: z.ZodObject<{
|
|
467
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
468
467
|
product_id: z.ZodString;
|
|
468
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
469
469
|
cancel_immediately: z.ZodOptional<z.ZodBoolean>;
|
|
470
470
|
}, z.core.$strip>;
|
|
471
471
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
@@ -944,6 +944,31 @@ var CheckoutParamsSchema = import_v47.z.object({
|
|
|
944
944
|
reward: import_v47.z.string().optional()
|
|
945
945
|
});
|
|
946
946
|
|
|
947
|
+
// src/sdk/features/featureTypes.ts
|
|
948
|
+
var import_zod = require("zod");
|
|
949
|
+
var FeatureType = /* @__PURE__ */ ((FeatureType2) => {
|
|
950
|
+
FeatureType2["Boolean"] = "boolean";
|
|
951
|
+
FeatureType2["SingleUse"] = "single_use";
|
|
952
|
+
FeatureType2["ContinuousUse"] = "continuous_use";
|
|
953
|
+
FeatureType2["CreditSystem"] = "credit_system";
|
|
954
|
+
return FeatureType2;
|
|
955
|
+
})(FeatureType || {});
|
|
956
|
+
var FeatureSchema = import_zod.z.object({
|
|
957
|
+
id: import_zod.z.string(),
|
|
958
|
+
name: import_zod.z.string().nullish(),
|
|
959
|
+
type: import_zod.z.nativeEnum(FeatureType),
|
|
960
|
+
display: import_zod.z.object({
|
|
961
|
+
singular: import_zod.z.string(),
|
|
962
|
+
plural: import_zod.z.string()
|
|
963
|
+
}).nullish(),
|
|
964
|
+
credit_schema: import_zod.z.array(
|
|
965
|
+
import_zod.z.object({
|
|
966
|
+
metered_feature_id: import_zod.z.string(),
|
|
967
|
+
credit_cost: import_zod.z.number()
|
|
968
|
+
})
|
|
969
|
+
).nullish()
|
|
970
|
+
});
|
|
971
|
+
|
|
947
972
|
// src/libraries/backend/utils/backendRes.ts
|
|
948
973
|
var toBackendRes = ({ res }) => {
|
|
949
974
|
let statusCode = res.statusCode ? res.statusCode : res.error ? 500 : 200;
|
|
@@ -1060,8 +1085,9 @@ var checkoutHandler = withAuth({
|
|
|
1060
1085
|
customer_data,
|
|
1061
1086
|
body
|
|
1062
1087
|
}) => {
|
|
1088
|
+
const params = toSnakeCase(sanitizeBody(body), ["checkoutSessionParams", "checkout_session_params"]);
|
|
1063
1089
|
return await autumn2.checkout({
|
|
1064
|
-
...
|
|
1090
|
+
...params,
|
|
1065
1091
|
customer_id,
|
|
1066
1092
|
customer_data
|
|
1067
1093
|
});
|
|
@@ -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-J5U7ZXZU.mjs";
|
|
7
|
+
import "./chunk-FOK63UWJ.mjs";
|
|
8
|
+
import "./chunk-OEKZ2I55.mjs";
|
|
9
|
+
import "./chunk-7PLQK5LL.mjs";
|
|
10
|
+
import "./chunk-J6DXZ2RF.mjs";
|
|
11
|
+
import "./chunk-DMPRLFPO.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-4LVRQN5R.mjs";
|
|
24
24
|
import "./chunk-2TEL6LR5.mjs";
|
|
25
25
|
import "./chunk-KSG3E4Q2.mjs";
|
|
26
26
|
|
|
@@ -881,6 +881,31 @@ var CheckoutParamsSchema = z7.object({
|
|
|
881
881
|
reward: z7.string().optional()
|
|
882
882
|
});
|
|
883
883
|
|
|
884
|
+
// src/sdk/features/featureTypes.ts
|
|
885
|
+
import { z as z8 } from "zod";
|
|
886
|
+
var FeatureType = /* @__PURE__ */ ((FeatureType2) => {
|
|
887
|
+
FeatureType2["Boolean"] = "boolean";
|
|
888
|
+
FeatureType2["SingleUse"] = "single_use";
|
|
889
|
+
FeatureType2["ContinuousUse"] = "continuous_use";
|
|
890
|
+
FeatureType2["CreditSystem"] = "credit_system";
|
|
891
|
+
return FeatureType2;
|
|
892
|
+
})(FeatureType || {});
|
|
893
|
+
var FeatureSchema = z8.object({
|
|
894
|
+
id: z8.string(),
|
|
895
|
+
name: z8.string().nullish(),
|
|
896
|
+
type: z8.nativeEnum(FeatureType),
|
|
897
|
+
display: z8.object({
|
|
898
|
+
singular: z8.string(),
|
|
899
|
+
plural: z8.string()
|
|
900
|
+
}).nullish(),
|
|
901
|
+
credit_schema: z8.array(
|
|
902
|
+
z8.object({
|
|
903
|
+
metered_feature_id: z8.string(),
|
|
904
|
+
credit_cost: z8.number()
|
|
905
|
+
})
|
|
906
|
+
).nullish()
|
|
907
|
+
});
|
|
908
|
+
|
|
884
909
|
// src/libraries/backend/utils/backendRes.ts
|
|
885
910
|
var toBackendRes = ({ res }) => {
|
|
886
911
|
let statusCode = res.statusCode ? res.statusCode : res.error ? 500 : 200;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withAuth
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DMPRLFPO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
BASE_PATH
|
|
6
6
|
} from "./chunk-KSG3E4Q2.mjs";
|
|
@@ -43,8 +43,9 @@ var checkoutHandler = withAuth({
|
|
|
43
43
|
customer_data,
|
|
44
44
|
body
|
|
45
45
|
}) => {
|
|
46
|
+
const params = toSnakeCase(sanitizeBody(body), ["checkoutSessionParams", "checkout_session_params"]);
|
|
46
47
|
return await autumn.checkout({
|
|
47
|
-
...
|
|
48
|
+
...params,
|
|
48
49
|
customer_id,
|
|
49
50
|
customer_data
|
|
50
51
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGenRoutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FOK63UWJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addProductRoutes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OEKZ2I55.mjs";
|
|
7
7
|
import {
|
|
8
8
|
addReferralRoutes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7PLQK5LL.mjs";
|
|
10
10
|
import {
|
|
11
11
|
addEntityRoutes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J6DXZ2RF.mjs";
|
|
13
13
|
import {
|
|
14
14
|
withAuth
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DMPRLFPO.mjs";
|
|
16
16
|
import {
|
|
17
17
|
fetchPricingTable
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4LVRQN5R.mjs";
|
|
19
19
|
import {
|
|
20
20
|
BASE_PATH
|
|
21
21
|
} from "./chunk-KSG3E4Q2.mjs";
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import { AuthResult } from './utils/AuthFunction.mjs';
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
httpAction: any;
|
|
5
|
-
identify: (ctx: any, request: any) => AuthResult;
|
|
6
|
-
url?: string;
|
|
7
|
-
secretKey?: string;
|
|
8
|
-
}): any;
|
|
9
|
-
|
|
10
|
-
export { autumnHandler };
|
|
2
|
+
export { }
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import { AuthResult } from './utils/AuthFunction.js';
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
httpAction: any;
|
|
5
|
-
identify: (ctx: any, request: any) => AuthResult;
|
|
6
|
-
url?: string;
|
|
7
|
-
secretKey?: string;
|
|
8
|
-
}): any;
|
|
9
|
-
|
|
10
|
-
export { autumnHandler };
|
|
2
|
+
export { }
|