autumn-js 0.1.0 → 0.1.2
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 +162 -27
- package/dist/libraries/backend/better-auth.d.ts +162 -27
- package/dist/libraries/backend/better-auth.js +34 -1
- package/dist/libraries/backend/better-auth.mjs +20 -7
- package/dist/libraries/backend/{chunk-O6KXYXQN.mjs → chunk-F4A665AR.mjs} +1 -1
- package/dist/libraries/backend/{chunk-EIP7LDKF.mjs → chunk-GVPYJINB.mjs} +1 -1
- package/dist/libraries/backend/{chunk-N4PGGU3D.mjs → chunk-IG3DW6CW.mjs} +1 -1
- package/dist/libraries/backend/{chunk-BDMGQV75.mjs → chunk-JARFSM7F.mjs} +1 -1
- package/dist/libraries/backend/{chunk-BX2LACTF.mjs → chunk-KYMRM3HV.mjs} +1 -1
- package/dist/libraries/backend/{chunk-QGX7ZACH.mjs → chunk-LYDMLZB7.mjs} +23 -1
- package/dist/libraries/backend/{chunk-WTKY2U3S.mjs → chunk-UZ7WFRWB.mjs} +6 -6
- package/dist/libraries/backend/convex.d.mts +0 -1
- package/dist/libraries/backend/convex.d.ts +0 -1
- package/dist/libraries/backend/convex.js +24 -3
- package/dist/libraries/backend/convex.mjs +9 -9
- package/dist/libraries/backend/elysia.js +22 -1
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +2 -2
- package/dist/libraries/backend/express.d.ts +2 -2
- package/dist/libraries/backend/express.js +23 -2
- package/dist/libraries/backend/express.mjs +8 -8
- package/dist/libraries/backend/fastify.js +22 -1
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +22 -1
- 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 +22 -1
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +22 -1
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.d.mts +3 -12
- package/dist/libraries/backend/react-router.d.ts +3 -12
- package/dist/libraries/backend/react-router.js +34 -19
- package/dist/libraries/backend/react-router.mjs +19 -25
- package/dist/libraries/backend/{referralTypes-DHs1hY4_.d.ts → referralTypes-C4KG2r29.d.ts} +66 -41
- package/dist/libraries/backend/{referralTypes-DRsv8not.d.mts → referralTypes-DA9Hp6Bm.d.mts} +66 -41
- package/dist/libraries/backend/remix_dep.js +22 -1
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +22 -1
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +22 -1
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +22 -1
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +22 -1
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +22 -1
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +22 -1
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +22 -1
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +22 -1
- 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 +22 -1
- 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 +22 -1
- package/dist/libraries/react/AutumnContext.mjs +3 -3
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +28 -2
- package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
- package/dist/libraries/react/{ReactAutumnClient-BK3wjb-u.d.mts → ReactAutumnClient-BHjd9Tw5.d.mts} +17 -17
- package/dist/libraries/react/{ReactAutumnClient-Bh0Sgw6f.d.ts → ReactAutumnClient-DM5ZRTfX.d.ts} +17 -17
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.js +28 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
- package/dist/{next/client/attachTypes-BCt7D8ym.d.ts → libraries/react/attachTypes-Bz1_JTvk.d.ts} +5 -5
- package/dist/{next/client/attachTypes-BThbMcvF.d.mts → libraries/react/attachTypes-C9FJTCo6.d.mts} +5 -5
- package/dist/libraries/react/{chunk-WZG3QTZI.mjs → chunk-4V7CDINI.mjs} +3 -3
- package/dist/libraries/react/{chunk-FEISQQNM.mjs → chunk-5K2M3CQZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-PFN52PHR.mjs → chunk-6D7DZEP5.mjs} +2 -2
- package/dist/libraries/react/{chunk-H4J73SMR.mjs → chunk-B7RO2OAP.mjs} +1 -1
- package/dist/libraries/react/{chunk-FJWZPMWU.mjs → chunk-BXMZYHE7.mjs} +3 -3
- package/dist/libraries/react/{chunk-UCUAGLCJ.mjs → chunk-C5OYITSR.mjs} +1 -1
- package/dist/libraries/react/{chunk-IFZCH7DR.mjs → chunk-F52BIZ4N.mjs} +2 -2
- package/dist/libraries/react/{chunk-4NCB2TMQ.mjs → chunk-G2GXS74H.mjs} +3 -3
- package/dist/libraries/react/{chunk-JLJPPCQJ.mjs → chunk-GKHVCED5.mjs} +2 -2
- package/dist/libraries/react/{chunk-LFLX6NJU.mjs → chunk-JOAOLY2Z.mjs} +1 -1
- package/dist/libraries/react/{chunk-53HYUF2F.mjs → chunk-JZQQJNF6.mjs} +9 -4
- package/dist/libraries/react/{chunk-BGLWB5O2.mjs → chunk-KIKDDSHG.mjs} +428 -425
- package/dist/libraries/react/{chunk-TM3NBNVM.mjs → chunk-KVTXABQL.mjs} +1 -1
- package/dist/libraries/react/{chunk-KUS3X33V.mjs → chunk-M7SUFZ42.mjs} +1 -1
- package/dist/libraries/react/{chunk-OTZ65PCT.mjs → chunk-MN66ZM7X.mjs} +6 -6
- package/dist/libraries/react/{chunk-YWQTQ72B.mjs → chunk-NHDZWWMZ.mjs} +2 -2
- package/dist/libraries/react/{chunk-7RICWVXV.mjs → chunk-NOUNCJRC.mjs} +2 -2
- package/dist/libraries/react/{chunk-UAK4XMNC.mjs → chunk-O2GKDKV5.mjs} +1 -1
- package/dist/libraries/react/{chunk-LMQMA7VL.mjs → chunk-S75NZSTG.mjs} +1 -1
- package/dist/libraries/react/{chunk-CZBWEEWD.mjs → chunk-SRYI4NMF.mjs} +22 -1
- package/dist/libraries/react/{chunk-I2A7PK2L.mjs → chunk-WT5K3J2K.mjs} +17 -17
- package/dist/libraries/react/{chunk-JGDTNJTR.mjs → chunk-YCDNQZT5.mjs} +2 -2
- package/dist/libraries/react/{chunk-MRZA4JWN.mjs → chunk-YI6OTBFN.mjs} +1 -1
- 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 +22 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
- 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/clientAttachTypes.d.mts +20 -20
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +20 -20
- 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/client/types/clientGenTypes.js +22 -1
- 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 +30 -3
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +28 -28
- 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 +22 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +28 -28
- 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 +30 -3
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +28 -28
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-Dlt0fQmq.d.mts → cusTypes-DT-gAUL9.d.mts} +5 -5
- package/dist/libraries/react/{cusTypes-eNmWJ2rC.d.ts → cusTypes-yJ0fSxbq.d.ts} +5 -5
- package/dist/libraries/react/{entTypes-B_DvaeRL.d.ts → entTypes-BPdjCunj.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-BDZUfZE_.d.mts → entTypes-D79XPrxo.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-BIPS92_Q.d.mts → genTypes-BV-Jc6Q1.d.mts} +5 -5
- package/dist/libraries/react/{genTypes-Rn-oq2sc.d.ts → genTypes-DJUAkD36.d.ts} +5 -5
- 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 +22 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +7 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +7 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +22 -1
- 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 +22 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomer.js +28 -2
- package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.js +28 -2
- package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
- package/dist/libraries/react/hooks/useEntity.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntity.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntity.js +22 -1
- package/dist/libraries/react/hooks/useEntity.mjs +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.mts +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.ts +8 -8
- package/dist/libraries/react/hooks/useEntityBase.js +22 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
- 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 +22 -1
- package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
- 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 +22 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.js +22 -1
- 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.js +30 -3
- package/dist/libraries/react/index.mjs +30 -3
- package/dist/libraries/react/{prodTypes-DuLXGCiA.d.mts → prodTypes-2tlu9Pyz.d.mts} +5 -5
- package/dist/libraries/react/{prodTypes-DuLXGCiA.d.ts → prodTypes-2tlu9Pyz.d.ts} +5 -5
- package/dist/next/client/NextAutumnClient.d.mts +7 -7
- package/dist/next/client/NextAutumnClient.d.ts +7 -7
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/{libraries/react/attachTypes-DKmoXHQO.d.mts → next/client/attachTypes-CAvqbMDV.d.mts} +5 -5
- package/dist/{libraries/react/attachTypes-Cy6WgUas.d.ts → next/client/attachTypes-zg5EhNcS.d.ts} +5 -5
- package/dist/next/client/{clientAttachTypes-whHUVrE3.d.mts → clientAttachTypes-B-zWythK.d.mts} +3 -3
- package/dist/next/client/{clientAttachTypes-Df5FVGkw.d.ts → clientAttachTypes-DLh_8bIG.d.ts} +3 -3
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-CqAsUZEp.d.ts → cusTypes-Crh2qzWb.d.ts} +3 -3
- package/dist/next/client/{cusTypes-BuLw67IH.d.mts → cusTypes-XE8bnuf2.d.mts} +3 -3
- package/dist/next/client/{entTypes-DTRFxh07.d.mts → entTypes-BcoGsNYC.d.mts} +1 -1
- package/dist/next/client/{entTypes-BLLymqnn.d.ts → entTypes-sKOZyw0N.d.ts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +4 -4
- package/dist/next/client/hooks/useAutumn.d.ts +4 -4
- 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 +4 -4
- package/dist/next/client/hooks/useEntity.d.ts +4 -4
- 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/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 +17 -15
- package/dist/next/server/cusActions.d.ts +17 -15
- package/dist/next/server/{cusTypes-B0zde-Pl.d.ts → cusTypes-DUjCLJ7f.d.mts} +28 -5
- package/dist/next/server/{cusTypes-B0zde-Pl.d.mts → cusTypes-DUjCLJ7f.d.ts} +28 -5
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +26 -1
- package/dist/sdk/index.d.ts +26 -1
- package/dist/sdk/index.js +23 -1
- package/dist/sdk/index.mjs +23 -2
- package/dist/utils/encryptUtils.js +22 -1
- package/dist/utils/encryptUtils.mjs +22 -1
- package/package.json +2 -1
- package/dist/libraries/react/{chunk-7TYAAD2T.mjs → chunk-KWNH6C27.mjs} +11 -11
- package/dist/next/client/{prodTypes-UFM-PYm-.d.mts → prodTypes-CER0agHK.d.mts} +2 -2
- package/dist/next/client/{prodTypes-UFM-PYm-.d.ts → prodTypes-CER0agHK.d.ts} +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as Result, a as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, Q as QueryResult, A as AttachParams, c as CancelParams, d as CancelResult, g as CheckParams, T as TrackParams, b as TrackResult } from './clientAttachTypes-
|
|
2
|
-
import { C as CheckoutResult, A as AttachResult } from './attachTypes-
|
|
3
|
-
import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-
|
|
4
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
1
|
+
import { R as Result, a as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, Q as QueryResult, A as AttachParams, c as CancelParams, d as CancelResult, g as CheckParams, T as TrackParams, b as TrackResult } from './clientAttachTypes-DLh_8bIG.js';
|
|
2
|
+
import { C as CheckoutResult, A as AttachResult } from './attachTypes-zg5EhNcS.js';
|
|
3
|
+
import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-Crh2qzWb.js';
|
|
4
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-sKOZyw0N.js';
|
|
5
5
|
import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.js';
|
|
6
6
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
7
|
-
import { P as ProductItem, c as ProductScenario, a as Product } from './prodTypes-
|
|
7
|
+
import { P as ProductItem, c as ProductScenario, a as Product } from './prodTypes-CER0agHK.js';
|
|
8
8
|
import 'zod';
|
|
9
9
|
|
|
10
10
|
interface PricingTableProduct {
|
|
@@ -80,9 +80,9 @@ declare class AutumnClient {
|
|
|
80
80
|
reward?: string | undefined;
|
|
81
81
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
82
82
|
}) => AutumnPromise<{
|
|
83
|
-
customer_id: string;
|
|
84
83
|
code: string;
|
|
85
84
|
message: string;
|
|
85
|
+
customer_id: string;
|
|
86
86
|
product_ids: string[];
|
|
87
87
|
checkout_url?: string | undefined;
|
|
88
88
|
customer_data?: any;
|
|
@@ -128,9 +128,9 @@ declare class AutumnClient {
|
|
|
128
128
|
eventName?: string | undefined;
|
|
129
129
|
idempotencyKey?: string | undefined;
|
|
130
130
|
}) => AutumnPromise<{
|
|
131
|
+
code: string;
|
|
131
132
|
id: string;
|
|
132
133
|
customer_id: string;
|
|
133
|
-
code: string;
|
|
134
134
|
feature_id?: string | undefined;
|
|
135
135
|
event_name?: string | undefined;
|
|
136
136
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-XE8bnuf2.mjs';
|
|
3
|
+
import './prodTypes-CER0agHK.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-Crh2qzWb.js';
|
|
3
|
+
import './prodTypes-CER0agHK.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
|
package/dist/{libraries/react/attachTypes-DKmoXHQO.d.mts → next/client/attachTypes-CAvqbMDV.d.mts}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as ProductItem, a as Product } from './prodTypes-CER0agHK.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
5
5
|
feature_id: z.ZodString;
|
|
6
6
|
quantity: z.ZodNumber;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
quantity: number;
|
|
9
8
|
feature_id: string;
|
|
10
|
-
}, {
|
|
11
9
|
quantity: number;
|
|
10
|
+
}, {
|
|
12
11
|
feature_id: string;
|
|
12
|
+
quantity: number;
|
|
13
13
|
}>;
|
|
14
14
|
type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
|
|
15
15
|
declare const AttachResultSchema: z.ZodObject<{
|
|
@@ -20,16 +20,16 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
20
20
|
message: z.ZodString;
|
|
21
21
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
customer_id: string;
|
|
24
23
|
code: string;
|
|
25
24
|
message: string;
|
|
25
|
+
customer_id: string;
|
|
26
26
|
product_ids: string[];
|
|
27
27
|
checkout_url?: string | undefined;
|
|
28
28
|
customer_data?: any;
|
|
29
29
|
}, {
|
|
30
|
-
customer_id: string;
|
|
31
30
|
code: string;
|
|
32
31
|
message: string;
|
|
32
|
+
customer_id: string;
|
|
33
33
|
product_ids: string[];
|
|
34
34
|
checkout_url?: string | undefined;
|
|
35
35
|
customer_data?: any;
|
package/dist/{libraries/react/attachTypes-Cy6WgUas.d.ts → next/client/attachTypes-zg5EhNcS.d.ts}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as ProductItem, a as Product } from './prodTypes-CER0agHK.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
5
5
|
feature_id: z.ZodString;
|
|
6
6
|
quantity: z.ZodNumber;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
quantity: number;
|
|
9
8
|
feature_id: string;
|
|
10
|
-
}, {
|
|
11
9
|
quantity: number;
|
|
10
|
+
}, {
|
|
12
11
|
feature_id: string;
|
|
12
|
+
quantity: number;
|
|
13
13
|
}>;
|
|
14
14
|
type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
|
|
15
15
|
declare const AttachResultSchema: z.ZodObject<{
|
|
@@ -20,16 +20,16 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
20
20
|
message: z.ZodString;
|
|
21
21
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
customer_id: string;
|
|
24
23
|
code: string;
|
|
25
24
|
message: string;
|
|
25
|
+
customer_id: string;
|
|
26
26
|
product_ids: string[];
|
|
27
27
|
checkout_url?: string | undefined;
|
|
28
28
|
customer_data?: any;
|
|
29
29
|
}, {
|
|
30
|
-
customer_id: string;
|
|
31
30
|
code: string;
|
|
32
31
|
message: string;
|
|
32
|
+
customer_id: string;
|
|
33
33
|
product_ids: string[];
|
|
34
34
|
checkout_url?: string | undefined;
|
|
35
35
|
customer_data?: any;
|
package/dist/next/client/{clientAttachTypes-whHUVrE3.d.mts → clientAttachTypes-B-zWythK.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-
|
|
1
|
+
import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-CER0agHK.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
4
|
|
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
code: string;
|
|
26
27
|
id: string;
|
|
27
28
|
customer_id: string;
|
|
28
|
-
code: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
+
code: string;
|
|
32
33
|
id: string;
|
|
33
34
|
customer_id: string;
|
|
34
|
-
code: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
package/dist/next/client/{clientAttachTypes-Df5FVGkw.d.ts → clientAttachTypes-DLh_8bIG.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-
|
|
1
|
+
import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-CER0agHK.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
4
|
|
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
code: string;
|
|
26
27
|
id: string;
|
|
27
28
|
customer_id: string;
|
|
28
|
-
code: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
+
code: string;
|
|
32
33
|
id: string;
|
|
33
34
|
customer_id: string;
|
|
34
|
-
code: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.mjs';
|
|
2
|
-
import './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import './cusTypes-XE8bnuf2.mjs';
|
|
3
|
+
import './prodTypes-CER0agHK.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-BcoGsNYC.mjs';
|
|
6
6
|
|
|
7
7
|
declare const toClientErrorResponse: (error: any) => {
|
|
8
8
|
data: null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.js';
|
|
2
|
-
import './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import './cusTypes-Crh2qzWb.js';
|
|
3
|
+
import './prodTypes-CER0agHK.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-sKOZyw0N.js';
|
|
6
6
|
|
|
7
7
|
declare const toClientErrorResponse: (error: any) => {
|
|
8
8
|
data: null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-
|
|
1
|
+
import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-CER0agHK.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -165,17 +165,17 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
165
165
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
166
166
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
id?: string | null | undefined;
|
|
169
168
|
name?: string | null | undefined;
|
|
170
169
|
email?: string | null | undefined;
|
|
171
170
|
fingerprint?: string | null | undefined;
|
|
171
|
+
id?: string | null | undefined;
|
|
172
172
|
metadata?: Record<string, any> | undefined;
|
|
173
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
id?: string | null | undefined;
|
|
176
175
|
name?: string | null | undefined;
|
|
177
176
|
email?: string | null | undefined;
|
|
178
177
|
fingerprint?: string | null | undefined;
|
|
178
|
+
id?: string | null | undefined;
|
|
179
179
|
metadata?: Record<string, any> | undefined;
|
|
180
180
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
181
181
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-
|
|
1
|
+
import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-CER0agHK.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -165,17 +165,17 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
165
165
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
166
166
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
id?: string | null | undefined;
|
|
169
168
|
name?: string | null | undefined;
|
|
170
169
|
email?: string | null | undefined;
|
|
171
170
|
fingerprint?: string | null | undefined;
|
|
171
|
+
id?: string | null | undefined;
|
|
172
172
|
metadata?: Record<string, any> | undefined;
|
|
173
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
id?: string | null | undefined;
|
|
176
175
|
name?: string | null | undefined;
|
|
177
176
|
email?: string | null | undefined;
|
|
178
177
|
fingerprint?: string | null | undefined;
|
|
178
|
+
id?: string | null | undefined;
|
|
179
179
|
metadata?: Record<string, any> | undefined;
|
|
180
180
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
181
181
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-
|
|
1
|
+
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-B-zWythK.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import '../prodTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../attachTypes-CAvqbMDV.mjs';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-XE8bnuf2.mjs';
|
|
5
|
+
import '../prodTypes-CER0agHK.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
declare const useAutumn: () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-
|
|
1
|
+
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-DLh_8bIG.js';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import '../prodTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../attachTypes-zg5EhNcS.js';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-Crh2qzWb.js';
|
|
5
|
+
import '../prodTypes-CER0agHK.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
declare const useAutumn: () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-B-zWythK.mjs';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-CAvqbMDV.mjs';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-XE8bnuf2.mjs';
|
|
5
|
+
import { E as Entity } from '../entTypes-BcoGsNYC.mjs';
|
|
6
6
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { SWRConfiguration } from 'swr';
|
|
9
|
-
import '../prodTypes-
|
|
9
|
+
import '../prodTypes-CER0agHK.mjs';
|
|
10
10
|
|
|
11
11
|
declare const CreateReferralCodeParamsSchema: z.ZodObject<{
|
|
12
12
|
programId: z.ZodString;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-DLh_8bIG.js';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-zg5EhNcS.js';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-Crh2qzWb.js';
|
|
5
|
+
import { E as Entity } from '../entTypes-sKOZyw0N.js';
|
|
6
6
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { SWRConfiguration } from 'swr';
|
|
9
|
-
import '../prodTypes-
|
|
9
|
+
import '../prodTypes-CER0agHK.js';
|
|
10
10
|
|
|
11
11
|
declare const CreateReferralCodeParamsSchema: z.ZodObject<{
|
|
12
12
|
programId: z.ZodString;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-
|
|
1
|
+
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-B-zWythK.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
3
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-BcoGsNYC.mjs';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import '../prodTypes-
|
|
5
|
+
import '../prodTypes-CER0agHK.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-XE8bnuf2.mjs';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-
|
|
1
|
+
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-DLh_8bIG.js';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
3
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-sKOZyw0N.js';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import '../prodTypes-
|
|
5
|
+
import '../prodTypes-CER0agHK.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-Crh2qzWb.js';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CustomerData, a as Customer } from './cusTypes-
|
|
2
|
-
import { E as Entity } from './entTypes-
|
|
3
|
-
import './prodTypes-
|
|
1
|
+
import { C as CustomerData, a as Customer } from './cusTypes-XE8bnuf2.mjs';
|
|
2
|
+
import { E as Entity } from './entTypes-BcoGsNYC.mjs';
|
|
3
|
+
import './prodTypes-CER0agHK.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
interface ProductDetails {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CustomerData, a as Customer } from './cusTypes-
|
|
2
|
-
import { E as Entity } from './entTypes-
|
|
3
|
-
import './prodTypes-
|
|
1
|
+
import { C as CustomerData, a as Customer } from './cusTypes-Crh2qzWb.js';
|
|
2
|
+
import { E as Entity } from './entTypes-sKOZyw0N.js';
|
|
3
|
+
import './prodTypes-CER0agHK.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
interface ProductDetails {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, P as ProductItem, c as Product, G as GetCustomerParams, d as Customer, e as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, f as BillingPortalResult, g as CreateProductParams, L as ListProductsParams,
|
|
1
|
+
import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, P as ProductItem, c as Product, G as GetCustomerParams, d as Customer, e as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, f as BillingPortalResult, g as UpdateBalancesParams, h as UpdateBalancesResult, i as CreateProductParams, L as ListProductsParams, j as CustomerProduct, k as CustomerFeature, l as CustomerInvoice } from './cusTypes-DUjCLJ7f.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { R as Result, A as AutumnError } from './response-eH4S4sg0.mjs';
|
|
4
4
|
|
|
@@ -30,18 +30,18 @@ declare const TrackParamsSchema: z.ZodObject<{
|
|
|
30
30
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
customer_id: string;
|
|
33
|
+
value?: number | undefined;
|
|
33
34
|
feature_id?: string | undefined;
|
|
34
35
|
entity_id?: string | undefined;
|
|
35
|
-
value?: number | undefined;
|
|
36
36
|
customer_data?: any;
|
|
37
37
|
entity_data?: any;
|
|
38
38
|
event_name?: string | undefined;
|
|
39
39
|
idempotency_key?: string | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
customer_id: string;
|
|
42
|
+
value?: number | undefined;
|
|
42
43
|
feature_id?: string | undefined;
|
|
43
44
|
entity_id?: string | undefined;
|
|
44
|
-
value?: number | undefined;
|
|
45
45
|
customer_data?: any;
|
|
46
46
|
entity_data?: any;
|
|
47
47
|
event_name?: string | undefined;
|
|
@@ -121,12 +121,12 @@ declare const QueryParamsSchema: z.ZodObject<{
|
|
|
121
121
|
feature_id: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
122
122
|
range: z.ZodOptional<z.ZodEnum<["24h", "7d", "30d", "90d", "last_cycle"]>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
feature_id: string | string[];
|
|
125
124
|
customer_id: string;
|
|
125
|
+
feature_id: string | string[];
|
|
126
126
|
range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
|
|
127
127
|
}, {
|
|
128
|
-
feature_id: string | string[];
|
|
129
128
|
customer_id: string;
|
|
129
|
+
feature_id: string | string[];
|
|
130
130
|
range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
|
|
131
131
|
}>;
|
|
132
132
|
type QueryParams = z.infer<typeof QueryParamsSchema>;
|
|
@@ -186,11 +186,11 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
186
186
|
reward: z.ZodOptional<z.ZodString>;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
188
|
customer_id: string;
|
|
189
|
-
entity_id?: string | undefined;
|
|
190
189
|
options?: {
|
|
191
190
|
feature_id: string;
|
|
192
191
|
quantity: number;
|
|
193
192
|
}[] | undefined;
|
|
193
|
+
entity_id?: string | undefined;
|
|
194
194
|
metadata?: Record<string, string> | undefined;
|
|
195
195
|
product_id?: string | undefined;
|
|
196
196
|
product_ids?: string[] | undefined;
|
|
@@ -207,11 +207,11 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
207
207
|
reward?: string | undefined;
|
|
208
208
|
}, {
|
|
209
209
|
customer_id: string;
|
|
210
|
-
entity_id?: string | undefined;
|
|
211
210
|
options?: {
|
|
212
211
|
feature_id: string;
|
|
213
212
|
quantity: number;
|
|
214
213
|
}[] | undefined;
|
|
214
|
+
entity_id?: string | undefined;
|
|
215
215
|
metadata?: Record<string, string> | undefined;
|
|
216
216
|
product_id?: string | undefined;
|
|
217
217
|
product_ids?: string[] | undefined;
|
|
@@ -262,11 +262,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
263
|
customer_id: string;
|
|
264
264
|
product_id: string;
|
|
265
|
-
entity_id?: string | undefined;
|
|
266
265
|
options?: {
|
|
267
266
|
feature_id: string;
|
|
268
267
|
quantity: number;
|
|
269
268
|
}[] | undefined;
|
|
269
|
+
entity_id?: string | undefined;
|
|
270
270
|
success_url?: string | undefined;
|
|
271
271
|
customer_data?: {
|
|
272
272
|
name?: string | null | undefined;
|
|
@@ -279,11 +279,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
279
279
|
}, {
|
|
280
280
|
customer_id: string;
|
|
281
281
|
product_id: string;
|
|
282
|
-
entity_id?: string | undefined;
|
|
283
282
|
options?: {
|
|
284
283
|
feature_id: string;
|
|
285
284
|
quantity: number;
|
|
286
285
|
}[] | undefined;
|
|
286
|
+
entity_id?: string | undefined;
|
|
287
287
|
success_url?: string | undefined;
|
|
288
288
|
customer_data?: {
|
|
289
289
|
name?: string | null | undefined;
|
|
@@ -338,6 +338,7 @@ declare class Autumn {
|
|
|
338
338
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
339
339
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
340
340
|
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
341
|
+
updateBalances: (id: string, params: UpdateBalancesParams) => Promise<Result<UpdateBalancesResult, AutumnError>>;
|
|
341
342
|
};
|
|
342
343
|
static products: {
|
|
343
344
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -362,6 +363,7 @@ declare class Autumn {
|
|
|
362
363
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
363
364
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
364
365
|
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
366
|
+
updateBalances: (id: string, params: UpdateBalancesParams) => Promise<Result<UpdateBalancesResult, AutumnError>>;
|
|
365
367
|
};
|
|
366
368
|
products: {
|
|
367
369
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -383,18 +385,18 @@ declare class Autumn {
|
|
|
383
385
|
static checkout: (params: CheckoutParams) => Promise<Result<CheckoutResult, AutumnError>>;
|
|
384
386
|
checkout(params: CheckoutParams): Promise<Result<CheckoutResult, AutumnError>>;
|
|
385
387
|
static attach: (params: AttachParams) => Promise<Result<{
|
|
386
|
-
customer_id: string;
|
|
387
388
|
code: string;
|
|
388
389
|
message: string;
|
|
390
|
+
customer_id: string;
|
|
389
391
|
product_ids: string[];
|
|
390
392
|
customer_data?: any;
|
|
391
393
|
checkout_url?: string | undefined;
|
|
392
394
|
}, AutumnError>>;
|
|
393
395
|
static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
|
|
394
396
|
attach(params: AttachParams): Promise<Result<{
|
|
395
|
-
customer_id: string;
|
|
396
397
|
code: string;
|
|
397
398
|
message: string;
|
|
399
|
+
customer_id: string;
|
|
398
400
|
product_ids: string[];
|
|
399
401
|
customer_data?: any;
|
|
400
402
|
checkout_url?: string | undefined;
|
|
@@ -414,15 +416,15 @@ declare class Autumn {
|
|
|
414
416
|
static check: (params: CheckParams) => Promise<Result<CheckResult, AutumnError>>;
|
|
415
417
|
check(params: CheckParams): Promise<Result<CheckResult, AutumnError>>;
|
|
416
418
|
static track: (params: TrackParams) => Promise<Result<{
|
|
417
|
-
customer_id: string;
|
|
418
419
|
code: string;
|
|
420
|
+
customer_id: string;
|
|
419
421
|
id: string;
|
|
420
422
|
feature_id?: string | undefined;
|
|
421
423
|
event_name?: string | undefined;
|
|
422
424
|
}, AutumnError>>;
|
|
423
425
|
track(params: TrackParams): Promise<Result<{
|
|
424
|
-
customer_id: string;
|
|
425
426
|
code: string;
|
|
427
|
+
customer_id: string;
|
|
426
428
|
id: string;
|
|
427
429
|
feature_id?: string | undefined;
|
|
428
430
|
event_name?: string | undefined;
|
|
@@ -492,11 +494,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
|
|
|
492
494
|
code: z.ZodString;
|
|
493
495
|
customer_id: z.ZodString;
|
|
494
496
|
}, "strip", z.ZodTypeAny, {
|
|
495
|
-
customer_id: string;
|
|
496
497
|
code: string;
|
|
497
|
-
}, {
|
|
498
498
|
customer_id: string;
|
|
499
|
+
}, {
|
|
499
500
|
code: string;
|
|
501
|
+
customer_id: string;
|
|
500
502
|
}>;
|
|
501
503
|
type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
|
|
502
504
|
|