autumn-js 0.1.34 → 0.1.35
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 +221 -310
- package/dist/libraries/backend/better-auth.d.ts +221 -310
- package/dist/libraries/backend/better-auth.js +389 -133
- package/dist/libraries/backend/better-auth.mjs +250 -100
- package/dist/libraries/backend/{chunk-F3S66STP.mjs → chunk-35N7BIAE.mjs} +45 -1
- package/dist/libraries/backend/{chunk-WBHGLFLE.mjs → chunk-4MEEJLXG.mjs} +6 -6
- package/dist/libraries/backend/{chunk-SVTPC45F.mjs → chunk-LOSIWWM2.mjs} +1 -1
- package/dist/libraries/backend/{chunk-7OEFNFGZ.mjs → chunk-MHIUO3ST.mjs} +1 -1
- package/dist/libraries/backend/{chunk-SRHT6RDB.mjs → chunk-PO4EL4BW.mjs} +9 -27
- package/dist/libraries/backend/{chunk-ENRZQDOT.mjs → chunk-QOJMX7ML.mjs} +2 -25
- package/dist/libraries/backend/chunk-SRJD6EXQ.mjs +104 -0
- package/dist/libraries/backend/{chunk-D5C5Q5FZ.mjs → chunk-USQ76FYI.mjs} +1 -1
- package/dist/libraries/backend/convex.js +52 -43
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +53 -62
- package/dist/libraries/backend/elysia.mjs +10 -28
- package/dist/libraries/backend/express.js +52 -43
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +52 -43
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +52 -43
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/index.js +52 -43
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +52 -43
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +52 -43
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/remix_dep.js +52 -43
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +52 -43
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +44 -17
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +57 -48
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +44 -17
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +44 -17
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +52 -43
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +52 -43
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +1 -17
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/betterAuth/middlewares.d.mts +26 -0
- package/dist/libraries/backend/utils/betterAuth/middlewares.d.ts +26 -0
- package/dist/libraries/backend/utils/betterAuth/middlewares.js +130 -0
- package/dist/libraries/backend/utils/betterAuth/middlewares.mjs +10 -0
- package/dist/libraries/backend/utils/betterAuth/types.d.mts +18 -0
- package/dist/libraries/backend/utils/betterAuth/types.d.ts +18 -0
- package/dist/libraries/backend/utils/betterAuth/types.js +18 -0
- package/dist/libraries/backend/utils/betterAuth/types.mjs +0 -0
- package/dist/libraries/backend/utils/withAuth.js +44 -17
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +7 -9
- package/dist/libraries/react/AutumnContext.d.ts +7 -9
- package/dist/libraries/react/AutumnContext.js +32 -81
- package/dist/libraries/react/AutumnContext.mjs +6 -8
- package/dist/libraries/react/BaseAutumnProvider.d.mts +7 -9
- package/dist/libraries/react/BaseAutumnProvider.d.ts +7 -9
- package/dist/libraries/react/BaseAutumnProvider.js +201 -254
- package/dist/libraries/react/BaseAutumnProvider.mjs +11 -13
- package/dist/libraries/react/{ReactAutumnClient-DEHKGBDi.d.ts → ReactAutumnClient-DkAcY1X2.d.ts} +32 -37
- package/dist/libraries/react/{ReactAutumnClient-Zj0UGjxH.d.mts → ReactAutumnClient-DuYr1i4C.d.mts} +32 -37
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.js +201 -263
- package/dist/libraries/react/ReactAutumnProvider.mjs +13 -15
- package/dist/libraries/react/{attachTypes-DVF4f7Hw.d.ts → attachTypes-CKp1KMwX.d.ts} +1 -1
- package/dist/libraries/react/{attachTypes-DJIr5ldB.d.mts → attachTypes-DbuZWzAP.d.mts} +1 -1
- package/dist/libraries/react/{chunk-NPPSXTRQ.mjs → chunk-2LZIBRD4.mjs} +2 -2
- package/dist/libraries/react/{chunk-FAG5HHVM.mjs → chunk-4KLTPVNG.mjs} +2 -2
- package/dist/libraries/react/{chunk-HNWWFCOW.mjs → chunk-4QVAJKUF.mjs} +1 -1
- package/dist/libraries/react/{chunk-GM7LHHFX.mjs → chunk-4YM2QKRI.mjs} +5 -9
- package/dist/libraries/react/{chunk-IMAERZCR.mjs → chunk-5LRBYZUD.mjs} +1 -1
- package/dist/libraries/react/{chunk-OLMAXT44.mjs → chunk-5OBFJVZC.mjs} +19 -19
- package/dist/libraries/react/{chunk-AHIEANFE.mjs → chunk-5TLRC3ED.mjs} +17 -17
- package/dist/libraries/react/{chunk-R6KU3V35.mjs → chunk-7FMBA5I4.mjs} +2 -2
- package/dist/libraries/react/{chunk-MJGGWQ7J.mjs → chunk-7T7IOMAA.mjs} +2 -2
- package/dist/libraries/react/{chunk-QUXQNE4G.mjs → chunk-7YNNQGHZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-QTDNLHRG.mjs → chunk-AUZMXLNB.mjs} +1 -1
- package/dist/libraries/react/{chunk-QFOYSJQW.mjs → chunk-C3G5RW3Q.mjs} +6 -6
- package/dist/libraries/react/{chunk-CM5UZD2G.mjs → chunk-FL4H464X.mjs} +4 -4
- package/dist/libraries/react/{chunk-SIYKVK6T.mjs → chunk-FW7AQFVX.mjs} +1 -1
- package/dist/libraries/react/{chunk-RQFIIPL2.mjs → chunk-HN7ULWIM.mjs} +1 -1
- package/dist/libraries/react/chunk-LS2RW6JG.mjs +51 -0
- package/dist/libraries/react/{chunk-KCO4V65K.mjs → chunk-MHAXHLX4.mjs} +6 -6
- package/dist/libraries/react/{chunk-ZF2HUCN6.mjs → chunk-OYBOLAL5.mjs} +2 -7
- package/dist/libraries/react/{chunk-L2DI44KG.mjs → chunk-P4GHLIEZ.mjs} +450 -452
- package/dist/libraries/react/{chunk-YLBFGNCO.mjs → chunk-Q7LVAQ5K.mjs} +2 -2
- package/dist/libraries/react/{chunk-ATGLJHUN.mjs → chunk-QEWVBDWJ.mjs} +1 -1
- package/dist/libraries/react/{chunk-C4Z4C6RL.mjs → chunk-RNIUZGWU.mjs} +2 -2
- package/dist/libraries/react/{chunk-5LYLN4C2.mjs → chunk-SFOIZTAS.mjs} +1 -17
- package/dist/libraries/react/{chunk-ZV4RPZTM.mjs → chunk-SUENW2KS.mjs} +2 -7
- package/dist/libraries/react/{chunk-RMTUAI3D.mjs → chunk-WSX7HWKQ.mjs} +4 -3
- package/dist/libraries/react/{chunk-SJKUKNBU.mjs → chunk-YKJYGNXR.mjs} +1 -1
- package/dist/libraries/react/{chunk-P4QKFNVY.mjs → chunk-ZVGPT54A.mjs} +1 -10
- package/dist/libraries/react/client/ConvexAutumnClient.d.mts +7 -13
- package/dist/libraries/react/client/ConvexAutumnClient.d.ts +7 -13
- package/dist/libraries/react/client/ConvexAutumnClient.js +1 -26
- package/dist/libraries/react/client/ConvexAutumnClient.mjs +2 -2
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -8
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -8
- package/dist/libraries/react/client/ReactAutumnClient.js +32 -81
- package/dist/libraries/react/client/ReactAutumnClient.mjs +5 -7
- package/dist/libraries/react/client/clientCompMethods.d.mts +25 -9
- package/dist/libraries/react/client/clientCompMethods.d.ts +25 -9
- package/dist/libraries/react/client/clientCompMethods.mjs +6 -3
- package/dist/libraries/react/client/clientCusMethods.d.mts +7 -9
- package/dist/libraries/react/client/clientCusMethods.d.ts +7 -9
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -7
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -7
- package/dist/libraries/react/client/clientEntityMethods.js +2 -25
- package/dist/libraries/react/client/clientEntityMethods.mjs +1 -2
- package/dist/libraries/react/client/clientGenMethods.d.mts +8 -9
- package/dist/libraries/react/client/clientGenMethods.d.ts +8 -9
- package/dist/libraries/react/client/clientGenMethods.js +12 -40
- package/dist/libraries/react/client/clientGenMethods.mjs +1 -2
- package/dist/libraries/react/client/clientProdMethods.d.mts +7 -9
- package/dist/libraries/react/client/clientProdMethods.d.ts +7 -9
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -8
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -8
- package/dist/libraries/react/client/clientReferralMethods.js +2 -27
- package/dist/libraries/react/client/clientReferralMethods.mjs +1 -2
- package/dist/libraries/react/client/types/clientEntTypes.d.mts +18 -13
- package/dist/libraries/react/client/types/clientEntTypes.d.ts +18 -13
- package/dist/libraries/react/client/types/clientEntTypes.js +28 -0
- package/dist/libraries/react/client/types/clientEntTypes.mjs +20 -0
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +12 -10
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +12 -10
- package/dist/libraries/react/client/types/clientGenTypes.js +14 -17
- package/dist/libraries/react/client/types/clientGenTypes.mjs +12 -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 +285 -338
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +32 -34
- 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 +81 -131
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +32 -34
- 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 +484 -537
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +32 -34
- package/dist/libraries/react/components/ui/accordion.d.mts +10 -4
- package/dist/libraries/react/components/ui/accordion.d.ts +10 -4
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/dialog.d.mts +15 -7
- package/dist/libraries/react/components/ui/dialog.d.ts +15 -7
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.d.mts +6 -4
- package/dist/libraries/react/components/ui/popover.d.ts +6 -4
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.d.mts +3 -1
- package/dist/libraries/react/components/ui/switch.d.ts +3 -1
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-CEb_KwPo.d.ts → cusTypes-D3QQXjif.d.ts} +1 -1
- package/dist/libraries/react/{cusTypes-DynqPCZH.d.mts → cusTypes-RU0fmR-t.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-DjasDDYh.d.mts → entTypes-35x0LnYH.d.mts} +1 -1
- package/dist/libraries/react/{entTypes--Y-4T20Y.d.ts → entTypes-n2T2wpRx.d.ts} +1 -1
- package/dist/libraries/react/{genTypes-VKn7hoqQ.d.mts → genTypes-B5_6Pu_4.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-BjHbcZ7E.d.ts → genTypes-CY6GNiAn.d.ts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -7
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -7
- package/dist/libraries/react/hooks/helpers/handleCheck.js +1 -17
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +6 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +6 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +1 -17
- 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 +32 -81
- package/dist/libraries/react/hooks/useAnalytics.mjs +7 -9
- package/dist/libraries/react/hooks/useCustomer.d.mts +10 -10
- package/dist/libraries/react/hooks/useCustomer.d.ts +10 -10
- package/dist/libraries/react/hooks/useCustomer.js +181 -234
- package/dist/libraries/react/hooks/useCustomer.mjs +11 -13
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +10 -10
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +10 -10
- package/dist/libraries/react/hooks/useCustomerBase.js +197 -250
- package/dist/libraries/react/hooks/useCustomerBase.mjs +10 -12
- package/dist/libraries/react/hooks/useEntity.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntity.js +33 -81
- package/dist/libraries/react/hooks/useEntity.mjs +11 -13
- package/dist/libraries/react/hooks/useEntityBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.js +33 -81
- package/dist/libraries/react/hooks/useEntityBase.mjs +10 -12
- 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 +32 -81
- package/dist/libraries/react/hooks/usePaywall.mjs +7 -9
- 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 +32 -81
- package/dist/libraries/react/hooks/usePricingTable.mjs +8 -10
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -8
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -8
- package/dist/libraries/react/hooks/usePricingTableBase.js +1 -17
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -8
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -8
- package/dist/libraries/react/hooks/useProductsBase.js +2 -1
- package/dist/libraries/react/hooks/useProductsBase.mjs +2 -1
- package/dist/libraries/react/index.d.mts +62 -58
- package/dist/libraries/react/index.d.ts +62 -58
- package/dist/libraries/react/index.js +489 -550
- package/dist/libraries/react/index.mjs +461 -522
- package/dist/libraries/react/{prodTypes-C8xRoBP7.d.ts → prodTypes-C4aZSZfO.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes-C8xRoBP7.d.mts → prodTypes-C4aZSZfO.d.ts} +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +31 -34
- package/dist/next/client/NextAutumnClient.d.ts +31 -34
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{clientAttachTypes-BqwjCML1.d.ts → clientAttachTypes-BtZh00uu.d.ts} +12 -10
- package/dist/next/client/{clientAttachTypes-9AXt1E5H.d.mts → clientAttachTypes-yOuJqDWt.d.mts} +12 -10
- package/dist/next/client/{clientEntTypes-CnQkrPEG.d.mts → clientEntTypes-Bsi7ciUF.d.ts} +12 -10
- package/dist/next/client/{clientEntTypes-BhQWlwSW.d.ts → clientEntTypes-aLfa3lyP.d.mts} +12 -10
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-5W4JVk2C.d.ts → cusTypes-B-rJwpui.d.ts} +2 -2
- package/dist/next/client/{cusTypes-Cb9Peq72.d.mts → cusTypes-CXjHwB-c.d.mts} +2 -2
- package/dist/next/client/{entTypes-R0fGEyG8.d.mts → entTypes-BkN-Puru.d.mts} +1 -1
- package/dist/next/client/{entTypes-B2gnYOgY.d.ts → entTypes-DjKFS-Zk.d.ts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +3 -3
- package/dist/next/client/hooks/useAutumn.d.ts +3 -3
- package/dist/next/client/hooks/useCustomer.d.mts +6 -6
- package/dist/next/client/hooks/useCustomer.d.ts +6 -6
- 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/{prodTypes-BC--Np0p.d.mts → prodTypes-B_VMILpU.d.mts} +1 -1
- package/dist/next/client/{prodTypes-BC--Np0p.d.ts → prodTypes-B_VMILpU.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 +10 -8
- package/dist/next/server/cusActions.d.ts +10 -8
- package/dist/next/server/cusActions.js +3 -3
- package/dist/next/server/cusActions.mjs +3 -3
- package/dist/next/server/genActions.js +5 -5
- package/dist/next/server/genActions.mjs +5 -5
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.mjs +1 -1
- package/dist/utils/encryptUtils.js +1 -17
- package/dist/utils/encryptUtils.mjs +1 -17
- package/dist/utils/toSnakeCase.d.mts +5 -1
- package/dist/utils/toSnakeCase.d.ts +5 -1
- package/dist/utils/toSnakeCase.js +25 -6
- package/dist/utils/toSnakeCase.mjs +25 -6
- package/package.json +1 -1
- package/dist/libraries/react/chunk-KQT5G3HT.mjs +0 -27
- package/dist/libraries/react/chunk-VTGR7VVK.mjs +0 -12
- package/dist/libraries/react/chunk-YQHZT73Z.mjs +0 -59
- package/dist/libraries/react/utils/toSnakeCase.d.mts +0 -3
- package/dist/libraries/react/utils/toSnakeCase.d.ts +0 -3
- package/dist/libraries/react/utils/toSnakeCase.js +0 -50
- package/dist/libraries/react/utils/toSnakeCase.mjs +0 -8
- package/dist/libraries/react/{chunk-4XU63W7I.mjs → chunk-2GEDBGON.mjs} +11 -11
|
@@ -168,4 +168,4 @@ interface Product {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type CheckFeatureResult as a, type CheckProductResult as b, type ProductItem as c,
|
|
171
|
+
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type CheckFeatureResult as a, type CheckProductResult as b, type ProductItem as c, type ProductScenario as d, ProductItemInterval as e };
|
|
@@ -168,4 +168,4 @@ interface Product {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type CheckFeatureResult as a, type CheckProductResult as b, type ProductItem as c,
|
|
171
|
+
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type CheckFeatureResult as a, type CheckProductResult as b, type ProductItem as c, type ProductScenario as d, ProductItemInterval as e };
|
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
import { a as AutumnPromise, R as Result, g as CheckResult,
|
|
2
|
-
import { C as CheckoutResult, a as
|
|
3
|
-
import { C as CustomerData,
|
|
4
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
1
|
+
import { a as AutumnPromise, R as Result, g as CheckResult, d as SetupPaymentResult, Q as QueryResult, A as AttachParams, C as CancelParams, c as CancelResult, f as CheckParams, T as TrackParams, b as TrackResult, O as OpenBillingPortalParams } from './clientAttachTypes-yOuJqDWt.mjs';
|
|
2
|
+
import { C as CheckoutResult, a as CreateReferralCodeResult, R as RedeemReferralCodeResult, A as AttachResult, b as CreateEntityParams, G as GetEntityParams } from './clientEntTypes-aLfa3lyP.mjs';
|
|
3
|
+
import { C as CustomerData, b as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-CXjHwB-c.mjs';
|
|
4
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-BkN-Puru.mjs';
|
|
5
5
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
6
|
-
import { P as
|
|
6
|
+
import { P as Product } from './prodTypes-B_VMILpU.mjs';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
|
|
9
|
-
interface PricingTableProduct {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
button_text?: string;
|
|
14
|
-
recommend_text?: string;
|
|
15
|
-
everything_from?: string;
|
|
16
|
-
price: {
|
|
17
|
-
primary_text: string;
|
|
18
|
-
secondary_text?: string;
|
|
19
|
-
} & ProductItem;
|
|
20
|
-
items: ({
|
|
21
|
-
primary_text: string;
|
|
22
|
-
secondary_text?: string;
|
|
23
|
-
} & ProductItem)[];
|
|
24
|
-
scenario: ProductScenario;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
9
|
interface AutumnClientConfig {
|
|
28
10
|
backendUrl?: string;
|
|
29
11
|
getBearerToken?: () => Promise<string | null | undefined>;
|
|
@@ -40,7 +22,6 @@ interface IAutumnClient {
|
|
|
40
22
|
createCustomer(params: Omit<CreateCustomerParams, "id" | "data"> & {
|
|
41
23
|
errorOnNotFound?: boolean;
|
|
42
24
|
}): Promise<any>;
|
|
43
|
-
getPricingTable(): Promise<any>;
|
|
44
25
|
detectCors(): Promise<{
|
|
45
26
|
valid: boolean;
|
|
46
27
|
includeCredentials: boolean | undefined;
|
|
@@ -84,7 +65,9 @@ declare class AutumnClient implements IAutumnClient {
|
|
|
84
65
|
readonly customerData?: CustomerData;
|
|
85
66
|
protected includeCredentials?: boolean;
|
|
86
67
|
readonly prefix: string;
|
|
68
|
+
readonly camelCase: boolean;
|
|
87
69
|
readonly headers?: Record<string, string>;
|
|
70
|
+
readonly framework?: string;
|
|
88
71
|
constructor({ backendUrl, getBearerToken, customerData, includeCredentials, betterAuthUrl, headers, }: AutumnClientConfig);
|
|
89
72
|
/**
|
|
90
73
|
* Detects if the backend supports CORS credentials by making an OPTIONS request
|
|
@@ -100,21 +83,18 @@ declare class AutumnClient implements IAutumnClient {
|
|
|
100
83
|
* Automatically determines whether to include credentials based on CORS detection
|
|
101
84
|
*/
|
|
102
85
|
shouldIncludeCredentials(): Promise<boolean>;
|
|
103
|
-
getHeaders(): Promise<
|
|
86
|
+
getHeaders(): Promise<Record<string, string>>;
|
|
104
87
|
handleFetch({ path, method, body, }: {
|
|
105
88
|
path: string;
|
|
106
89
|
method: string;
|
|
107
|
-
body?:
|
|
90
|
+
body?: Record<string, unknown> | Record<string, unknown>[];
|
|
108
91
|
}): Promise<Result<any, AutumnError>>;
|
|
109
|
-
post(path: string, body:
|
|
92
|
+
post(path: string, body: Record<string, unknown> | Record<string, unknown>[]): Promise<Result<any, AutumnError>>;
|
|
110
93
|
get(path: string): Promise<Result<any, AutumnError>>;
|
|
111
94
|
delete(path: string): Promise<Result<any, AutumnError>>;
|
|
112
95
|
createCustomer(params: Omit<CreateCustomerParams, "id" | "data"> & {
|
|
113
96
|
errorOnNotFound?: boolean;
|
|
114
97
|
}): Promise<Result<Customer, AutumnError>>;
|
|
115
|
-
getPricingTable(): Promise<Result<{
|
|
116
|
-
list: PricingTableProduct[];
|
|
117
|
-
}, AutumnError>>;
|
|
118
98
|
attach: (params: {
|
|
119
99
|
productId?: string | undefined;
|
|
120
100
|
entityId?: string | undefined;
|
|
@@ -197,15 +177,32 @@ declare class AutumnClient implements IAutumnClient {
|
|
|
197
177
|
feature_id?: string | undefined;
|
|
198
178
|
event_name?: string | undefined;
|
|
199
179
|
}>;
|
|
200
|
-
openBillingPortal: (params?:
|
|
201
|
-
|
|
180
|
+
openBillingPortal: (params?: {
|
|
181
|
+
returnUrl?: string | undefined;
|
|
182
|
+
openInNewTab?: boolean | undefined;
|
|
183
|
+
} | undefined) => AutumnPromise<BillingPortalResult>;
|
|
184
|
+
setupPayment: (params: {
|
|
185
|
+
successUrl?: string | undefined;
|
|
186
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
187
|
+
openInNewTab?: boolean | undefined;
|
|
188
|
+
}) => AutumnPromise<SetupPaymentResult>;
|
|
202
189
|
query: (params: {
|
|
203
190
|
featureId: string | string[];
|
|
204
191
|
range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
|
|
205
192
|
}) => AutumnPromise<QueryResult>;
|
|
206
193
|
entities: {
|
|
207
|
-
create: (params:
|
|
208
|
-
|
|
194
|
+
create: (params: {
|
|
195
|
+
id: string;
|
|
196
|
+
featureId: string;
|
|
197
|
+
name?: string | undefined;
|
|
198
|
+
} | {
|
|
199
|
+
id: string;
|
|
200
|
+
featureId: string;
|
|
201
|
+
name?: string | undefined;
|
|
202
|
+
}[]) => AutumnPromise<Entity | Entity[]>;
|
|
203
|
+
get: (entityId: string, params?: {
|
|
204
|
+
expand?: string[] | undefined;
|
|
205
|
+
} | undefined) => AutumnPromise<Entity>;
|
|
209
206
|
delete: (entityId: string) => AutumnPromise<DeleteEntityResult>;
|
|
210
207
|
};
|
|
211
208
|
referrals: {
|
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
import { a as AutumnPromise, R as Result, g as CheckResult,
|
|
2
|
-
import { C as CheckoutResult, a as
|
|
3
|
-
import { C as CustomerData,
|
|
4
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
1
|
+
import { a as AutumnPromise, R as Result, g as CheckResult, d as SetupPaymentResult, Q as QueryResult, A as AttachParams, C as CancelParams, c as CancelResult, f as CheckParams, T as TrackParams, b as TrackResult, O as OpenBillingPortalParams } from './clientAttachTypes-BtZh00uu.js';
|
|
2
|
+
import { C as CheckoutResult, a as CreateReferralCodeResult, R as RedeemReferralCodeResult, A as AttachResult, b as CreateEntityParams, G as GetEntityParams } from './clientEntTypes-Bsi7ciUF.js';
|
|
3
|
+
import { C as CustomerData, b as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-B-rJwpui.js';
|
|
4
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-DjKFS-Zk.js';
|
|
5
5
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
6
|
-
import { P as
|
|
6
|
+
import { P as Product } from './prodTypes-B_VMILpU.js';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
|
|
9
|
-
interface PricingTableProduct {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
button_text?: string;
|
|
14
|
-
recommend_text?: string;
|
|
15
|
-
everything_from?: string;
|
|
16
|
-
price: {
|
|
17
|
-
primary_text: string;
|
|
18
|
-
secondary_text?: string;
|
|
19
|
-
} & ProductItem;
|
|
20
|
-
items: ({
|
|
21
|
-
primary_text: string;
|
|
22
|
-
secondary_text?: string;
|
|
23
|
-
} & ProductItem)[];
|
|
24
|
-
scenario: ProductScenario;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
9
|
interface AutumnClientConfig {
|
|
28
10
|
backendUrl?: string;
|
|
29
11
|
getBearerToken?: () => Promise<string | null | undefined>;
|
|
@@ -40,7 +22,6 @@ interface IAutumnClient {
|
|
|
40
22
|
createCustomer(params: Omit<CreateCustomerParams, "id" | "data"> & {
|
|
41
23
|
errorOnNotFound?: boolean;
|
|
42
24
|
}): Promise<any>;
|
|
43
|
-
getPricingTable(): Promise<any>;
|
|
44
25
|
detectCors(): Promise<{
|
|
45
26
|
valid: boolean;
|
|
46
27
|
includeCredentials: boolean | undefined;
|
|
@@ -84,7 +65,9 @@ declare class AutumnClient implements IAutumnClient {
|
|
|
84
65
|
readonly customerData?: CustomerData;
|
|
85
66
|
protected includeCredentials?: boolean;
|
|
86
67
|
readonly prefix: string;
|
|
68
|
+
readonly camelCase: boolean;
|
|
87
69
|
readonly headers?: Record<string, string>;
|
|
70
|
+
readonly framework?: string;
|
|
88
71
|
constructor({ backendUrl, getBearerToken, customerData, includeCredentials, betterAuthUrl, headers, }: AutumnClientConfig);
|
|
89
72
|
/**
|
|
90
73
|
* Detects if the backend supports CORS credentials by making an OPTIONS request
|
|
@@ -100,21 +83,18 @@ declare class AutumnClient implements IAutumnClient {
|
|
|
100
83
|
* Automatically determines whether to include credentials based on CORS detection
|
|
101
84
|
*/
|
|
102
85
|
shouldIncludeCredentials(): Promise<boolean>;
|
|
103
|
-
getHeaders(): Promise<
|
|
86
|
+
getHeaders(): Promise<Record<string, string>>;
|
|
104
87
|
handleFetch({ path, method, body, }: {
|
|
105
88
|
path: string;
|
|
106
89
|
method: string;
|
|
107
|
-
body?:
|
|
90
|
+
body?: Record<string, unknown> | Record<string, unknown>[];
|
|
108
91
|
}): Promise<Result<any, AutumnError>>;
|
|
109
|
-
post(path: string, body:
|
|
92
|
+
post(path: string, body: Record<string, unknown> | Record<string, unknown>[]): Promise<Result<any, AutumnError>>;
|
|
110
93
|
get(path: string): Promise<Result<any, AutumnError>>;
|
|
111
94
|
delete(path: string): Promise<Result<any, AutumnError>>;
|
|
112
95
|
createCustomer(params: Omit<CreateCustomerParams, "id" | "data"> & {
|
|
113
96
|
errorOnNotFound?: boolean;
|
|
114
97
|
}): Promise<Result<Customer, AutumnError>>;
|
|
115
|
-
getPricingTable(): Promise<Result<{
|
|
116
|
-
list: PricingTableProduct[];
|
|
117
|
-
}, AutumnError>>;
|
|
118
98
|
attach: (params: {
|
|
119
99
|
productId?: string | undefined;
|
|
120
100
|
entityId?: string | undefined;
|
|
@@ -197,15 +177,32 @@ declare class AutumnClient implements IAutumnClient {
|
|
|
197
177
|
feature_id?: string | undefined;
|
|
198
178
|
event_name?: string | undefined;
|
|
199
179
|
}>;
|
|
200
|
-
openBillingPortal: (params?:
|
|
201
|
-
|
|
180
|
+
openBillingPortal: (params?: {
|
|
181
|
+
returnUrl?: string | undefined;
|
|
182
|
+
openInNewTab?: boolean | undefined;
|
|
183
|
+
} | undefined) => AutumnPromise<BillingPortalResult>;
|
|
184
|
+
setupPayment: (params: {
|
|
185
|
+
successUrl?: string | undefined;
|
|
186
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
187
|
+
openInNewTab?: boolean | undefined;
|
|
188
|
+
}) => AutumnPromise<SetupPaymentResult>;
|
|
202
189
|
query: (params: {
|
|
203
190
|
featureId: string | string[];
|
|
204
191
|
range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
|
|
205
192
|
}) => AutumnPromise<QueryResult>;
|
|
206
193
|
entities: {
|
|
207
|
-
create: (params:
|
|
208
|
-
|
|
194
|
+
create: (params: {
|
|
195
|
+
id: string;
|
|
196
|
+
featureId: string;
|
|
197
|
+
name?: string | undefined;
|
|
198
|
+
} | {
|
|
199
|
+
id: string;
|
|
200
|
+
featureId: string;
|
|
201
|
+
name?: string | undefined;
|
|
202
|
+
}[]) => AutumnPromise<Entity | Entity[]>;
|
|
203
|
+
get: (entityId: string, params?: {
|
|
204
|
+
expand?: string[] | undefined;
|
|
205
|
+
} | undefined) => AutumnPromise<Entity>;
|
|
209
206
|
delete: (entityId: string) => AutumnPromise<DeleteEntityResult>;
|
|
210
207
|
};
|
|
211
208
|
referrals: {
|
|
@@ -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-CXjHwB-c.mjs';
|
|
3
|
+
import './prodTypes-B_VMILpU.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
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-B-rJwpui.js';
|
|
3
|
+
import './prodTypes-B_VMILpU.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
6
|
declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
|
package/dist/next/client/{clientAttachTypes-BqwjCML1.d.ts → clientAttachTypes-BtZh00uu.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckFeatureResult,
|
|
1
|
+
import { C as CheckFeatureResult, c as CheckProductResult } from './prodTypes-B_VMILpU.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
4
|
|
|
@@ -69,15 +69,17 @@ declare const TrackParamsSchema: z.ZodObject<{
|
|
|
69
69
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
type TrackParams = z.infer<typeof TrackParamsSchema>;
|
|
72
|
-
|
|
73
|
-
returnUrl
|
|
74
|
-
openInNewTab
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
declare const OpenBillingPortalParamsSchema: z.ZodObject<{
|
|
73
|
+
returnUrl: z.ZodOptional<z.ZodString>;
|
|
74
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
type OpenBillingPortalParams = z.infer<typeof OpenBillingPortalParamsSchema>;
|
|
77
|
+
declare const SetupPaymentParamsSchema: z.ZodObject<{
|
|
78
|
+
successUrl: z.ZodOptional<z.ZodString>;
|
|
79
|
+
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
80
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
type SetupPaymentParams = z.infer<typeof SetupPaymentParamsSchema>;
|
|
81
83
|
|
|
82
84
|
declare const AttachParamsSchema: z.ZodObject<{
|
|
83
85
|
productId: z.ZodOptional<z.ZodString>;
|
package/dist/next/client/{clientAttachTypes-9AXt1E5H.d.mts → clientAttachTypes-yOuJqDWt.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckFeatureResult,
|
|
1
|
+
import { C as CheckFeatureResult, c as CheckProductResult } from './prodTypes-B_VMILpU.mjs';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
4
|
|
|
@@ -69,15 +69,17 @@ declare const TrackParamsSchema: z.ZodObject<{
|
|
|
69
69
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
type TrackParams = z.infer<typeof TrackParamsSchema>;
|
|
72
|
-
|
|
73
|
-
returnUrl
|
|
74
|
-
openInNewTab
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
declare const OpenBillingPortalParamsSchema: z.ZodObject<{
|
|
73
|
+
returnUrl: z.ZodOptional<z.ZodString>;
|
|
74
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
type OpenBillingPortalParams = z.infer<typeof OpenBillingPortalParamsSchema>;
|
|
77
|
+
declare const SetupPaymentParamsSchema: z.ZodObject<{
|
|
78
|
+
successUrl: z.ZodOptional<z.ZodString>;
|
|
79
|
+
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
80
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
type SetupPaymentParams = z.infer<typeof SetupPaymentParamsSchema>;
|
|
81
83
|
|
|
82
84
|
declare const AttachParamsSchema: z.ZodObject<{
|
|
83
85
|
productId: z.ZodOptional<z.ZodString>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ProductItem, P as Product } from './prodTypes-B_VMILpU.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
@@ -59,13 +59,15 @@ interface RedeemReferralCodeResult {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
id:
|
|
64
|
-
name
|
|
65
|
-
featureId:
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
declare const CreateEntityParamsSchema: z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
name: z.ZodOptional<z.ZodString>;
|
|
65
|
+
featureId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
type CreateEntityParams = z.infer<typeof CreateEntityParamsSchema>;
|
|
68
|
+
declare const GetEntityParamsSchema: z.ZodObject<{
|
|
69
|
+
expand: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
type GetEntityParams = z.infer<typeof GetEntityParamsSchema>;
|
|
70
72
|
|
|
71
|
-
export type { AttachResult as A, CheckoutResult as C, GetEntityParams as G, RedeemReferralCodeResult as R,
|
|
73
|
+
export type { AttachResult as A, CheckoutResult as C, GetEntityParams as G, RedeemReferralCodeResult as R, CreateReferralCodeResult as a, CreateEntityParams as b };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ProductItem, P as Product } from './prodTypes-B_VMILpU.mjs';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
@@ -59,13 +59,15 @@ interface RedeemReferralCodeResult {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
id:
|
|
64
|
-
name
|
|
65
|
-
featureId:
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
declare const CreateEntityParamsSchema: z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
name: z.ZodOptional<z.ZodString>;
|
|
65
|
+
featureId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
type CreateEntityParams = z.infer<typeof CreateEntityParamsSchema>;
|
|
68
|
+
declare const GetEntityParamsSchema: z.ZodObject<{
|
|
69
|
+
expand: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
type GetEntityParams = z.infer<typeof GetEntityParamsSchema>;
|
|
70
72
|
|
|
71
|
-
export type { AttachResult as A, CheckoutResult as C, GetEntityParams as G, RedeemReferralCodeResult as R,
|
|
73
|
+
export type { AttachResult as A, CheckoutResult as C, GetEntityParams as G, RedeemReferralCodeResult as R, CreateReferralCodeResult as a, CreateEntityParams as b };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.mjs';
|
|
2
|
-
import './cusTypes-
|
|
3
|
-
import './prodTypes-
|
|
2
|
+
import './cusTypes-CXjHwB-c.mjs';
|
|
3
|
+
import './prodTypes-B_VMILpU.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-BkN-Puru.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-B-rJwpui.js';
|
|
3
|
+
import './prodTypes-B_VMILpU.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-DjKFS-Zk.js';
|
|
6
6
|
|
|
7
7
|
declare const toClientErrorResponse: (error: any) => {
|
|
8
8
|
data: null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv,
|
|
1
|
+
import { A as AppEnv, a as ProductItem, b as ProductItemInterval } from './prodTypes-B_VMILpU.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -120,4 +120,4 @@ interface CustomerInvoice {
|
|
|
120
120
|
hosted_invoice_url: string;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export type { BillingPortalResult as B, CustomerData as C, Customer as a,
|
|
123
|
+
export type { BillingPortalResult as B, CustomerData as C, Customer as a, CreateCustomerParams as b, CustomerProduct as c, CustomerFeature as d, CustomerInvoice as e, CustomerExpandOption as f };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv,
|
|
1
|
+
import { A as AppEnv, a as ProductItem, b as ProductItemInterval } from './prodTypes-B_VMILpU.mjs';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -120,4 +120,4 @@ interface CustomerInvoice {
|
|
|
120
120
|
hosted_invoice_url: string;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export type { BillingPortalResult as B, CustomerData as C, Customer as a,
|
|
123
|
+
export type { BillingPortalResult as B, CustomerData as C, Customer as a, CreateCustomerParams as b, CustomerProduct as c, CustomerFeature as d, CustomerInvoice as e, CustomerExpandOption as f };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AttachParams, T as TrackParams, a as AutumnPromise, b as TrackResult, C as CancelParams, c as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, d as SetupPaymentResult, e as CheckoutParams } from '../clientAttachTypes-
|
|
2
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
-
import '../prodTypes-
|
|
1
|
+
import { A as AttachParams, T as TrackParams, a as AutumnPromise, b as TrackResult, C as CancelParams, c as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, d as SetupPaymentResult, e as CheckoutParams } from '../clientAttachTypes-yOuJqDWt.mjs';
|
|
2
|
+
import { B as BillingPortalResult } from '../cusTypes-CXjHwB-c.mjs';
|
|
3
|
+
import '../prodTypes-B_VMILpU.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../error-DHbclCVh.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AttachParams, T as TrackParams, a as AutumnPromise, b as TrackResult, C as CancelParams, c as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, d as SetupPaymentResult, e as CheckoutParams } from '../clientAttachTypes-
|
|
2
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
-
import '../prodTypes-
|
|
1
|
+
import { A as AttachParams, T as TrackParams, a as AutumnPromise, b as TrackResult, C as CancelParams, c as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, d as SetupPaymentResult, e as CheckoutParams } from '../clientAttachTypes-BtZh00uu.js';
|
|
2
|
+
import { B as BillingPortalResult } from '../cusTypes-B-rJwpui.js';
|
|
3
|
+
import '../prodTypes-B_VMILpU.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../error-DHbclCVh.js';
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, g as CheckResult, T as TrackParams, b as TrackResult, C as CancelParams, c as CancelResult, S as SetupPaymentParams, d as SetupPaymentResult, O as OpenBillingPortalParams, e as CheckoutParams, f as CheckParams, h as Success } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult,
|
|
4
|
-
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
6
|
-
import { z } from 'zod/v4';
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, g as CheckResult, T as TrackParams, b as TrackResult, C as CancelParams, c as CancelResult, S as SetupPaymentParams, d as SetupPaymentResult, O as OpenBillingPortalParams, e as CheckoutParams, f as CheckParams, h as Success } from '../clientAttachTypes-yOuJqDWt.mjs';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult, b as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-aLfa3lyP.mjs';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-CXjHwB-c.mjs';
|
|
5
|
+
import { E as Entity } from '../entTypes-BkN-Puru.mjs';
|
|
7
6
|
import { SWRConfiguration } from 'swr';
|
|
8
|
-
import '
|
|
7
|
+
import { z } from 'zod/v4';
|
|
8
|
+
import '../prodTypes-B_VMILpU.mjs';
|
|
9
9
|
|
|
10
10
|
declare const CreateReferralCodeParamsSchema: z.ZodObject<{
|
|
11
11
|
programId: z.ZodString;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, g as CheckResult, T as TrackParams, b as TrackResult, C as CancelParams, c as CancelResult, S as SetupPaymentParams, d as SetupPaymentResult, O as OpenBillingPortalParams, e as CheckoutParams, f as CheckParams, h as Success } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult,
|
|
4
|
-
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
6
|
-
import { z } from 'zod/v4';
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, g as CheckResult, T as TrackParams, b as TrackResult, C as CancelParams, c as CancelResult, S as SetupPaymentParams, d as SetupPaymentResult, O as OpenBillingPortalParams, e as CheckoutParams, f as CheckParams, h as Success } from '../clientAttachTypes-BtZh00uu.js';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult, b as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-Bsi7ciUF.js';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-B-rJwpui.js';
|
|
5
|
+
import { E as Entity } from '../entTypes-DjKFS-Zk.js';
|
|
7
6
|
import { SWRConfiguration } from 'swr';
|
|
8
|
-
import '
|
|
7
|
+
import { z } from 'zod/v4';
|
|
8
|
+
import '../prodTypes-B_VMILpU.js';
|
|
9
9
|
|
|
10
10
|
declare const CreateReferralCodeParamsSchema: z.ZodObject<{
|
|
11
11
|
programId: z.ZodString;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as CheckParams, g as CheckResult, A as AttachParams, C as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-
|
|
2
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
1
|
+
import { f as CheckParams, g as CheckResult, A as AttachParams, C as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-yOuJqDWt.mjs';
|
|
2
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-BkN-Puru.mjs';
|
|
3
3
|
import * as swr from 'swr';
|
|
4
|
-
import '../prodTypes-
|
|
4
|
+
import '../prodTypes-B_VMILpU.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../error-DHbclCVh.mjs';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-CXjHwB-c.mjs';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as CheckParams, g as CheckResult, A as AttachParams, C as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-
|
|
2
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
1
|
+
import { f as CheckParams, g as CheckResult, A as AttachParams, C as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-BtZh00uu.js';
|
|
2
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-DjKFS-Zk.js';
|
|
3
3
|
import * as swr from 'swr';
|
|
4
|
-
import '../prodTypes-
|
|
4
|
+
import '../prodTypes-B_VMILpU.js';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../error-DHbclCVh.js';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-B-rJwpui.js';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -159,4 +159,4 @@ interface Product {
|
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
export { AppEnv as A, type CheckFeatureResult as C, type
|
|
162
|
+
export { AppEnv as A, type CheckFeatureResult as C, type Product as P, type ProductItem as a, ProductItemInterval as b, type CheckProductResult as c };
|
|
@@ -159,4 +159,4 @@ interface Product {
|
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
export { AppEnv as A, type CheckFeatureResult as C, type
|
|
162
|
+
export { AppEnv as A, type CheckFeatureResult as C, type Product as P, type ProductItem as a, ProductItemInterval as b, type CheckProductResult as c };
|
|
@@ -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-CXjHwB-c.mjs';
|
|
2
|
+
import { E as Entity } from './entTypes-BkN-Puru.mjs';
|
|
3
|
+
import './prodTypes-B_VMILpU.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
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-B-rJwpui.js';
|
|
2
|
+
import { E as Entity } from './entTypes-DjKFS-Zk.js';
|
|
3
|
+
import './prodTypes-B_VMILpU.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
6
|
interface ProductDetails {
|