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,15 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
3
|
+
import { A as AutumnClient } from './ReactAutumnClient-BHjd9Tw5.mjs';
|
|
4
4
|
import './client/types/clientEntTypes.mjs';
|
|
5
5
|
import './client/types/clientGenTypes.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './error-DHbclCVh.mjs';
|
|
8
|
-
import './genTypes-
|
|
9
|
-
import './prodTypes-
|
|
10
|
-
import './attachTypes-
|
|
11
|
-
import './entTypes-
|
|
12
|
-
import './cusTypes-
|
|
8
|
+
import './genTypes-BV-Jc6Q1.mjs';
|
|
9
|
+
import './prodTypes-2tlu9Pyz.mjs';
|
|
10
|
+
import './attachTypes-C9FJTCo6.mjs';
|
|
11
|
+
import './entTypes-D79XPrxo.mjs';
|
|
12
|
+
import './cusTypes-DT-gAUL9.mjs';
|
|
13
13
|
|
|
14
14
|
declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
|
|
15
15
|
client: AutumnClient;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
3
|
+
import { A as AutumnClient } from './ReactAutumnClient-DM5ZRTfX.js';
|
|
4
4
|
import './client/types/clientEntTypes.js';
|
|
5
5
|
import './client/types/clientGenTypes.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './error-DHbclCVh.js';
|
|
8
|
-
import './genTypes-
|
|
9
|
-
import './prodTypes-
|
|
10
|
-
import './attachTypes-
|
|
11
|
-
import './entTypes-
|
|
12
|
-
import './cusTypes-
|
|
8
|
+
import './genTypes-DJUAkD36.js';
|
|
9
|
+
import './prodTypes-2tlu9Pyz.js';
|
|
10
|
+
import './attachTypes-Bz1_JTvk.js';
|
|
11
|
+
import './entTypes-BPdjCunj.js';
|
|
12
|
+
import './cusTypes-yJ0fSxbq.js';
|
|
13
13
|
|
|
14
14
|
declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
|
|
15
15
|
client: AutumnClient;
|
|
@@ -168,7 +168,8 @@ var customerMethods = (instance) => {
|
|
|
168
168
|
create: (params) => staticWrapper(createCustomer, instance, { params }),
|
|
169
169
|
update: (id, params) => staticWrapper(updateCustomer, instance, { id, params }),
|
|
170
170
|
delete: (id) => staticWrapper(deleteCustomer, instance, { id }),
|
|
171
|
-
billingPortal: (id, params) => staticWrapper(billingPortal, instance, { id, params })
|
|
171
|
+
billingPortal: (id, params) => staticWrapper(billingPortal, instance, { id, params }),
|
|
172
|
+
updateBalances: (id, params) => staticWrapper(updateBalances, instance, { id, params })
|
|
172
173
|
};
|
|
173
174
|
};
|
|
174
175
|
var getExpandStr = (expand) => {
|
|
@@ -219,6 +220,15 @@ var billingPortal = async ({
|
|
|
219
220
|
}) => {
|
|
220
221
|
return instance.post(`/customers/${id}/billing_portal`, params);
|
|
221
222
|
};
|
|
223
|
+
var updateBalances = async ({
|
|
224
|
+
instance,
|
|
225
|
+
id,
|
|
226
|
+
params
|
|
227
|
+
}) => {
|
|
228
|
+
return instance.post(`/customers/${id}/balances`, {
|
|
229
|
+
balances: Array.isArray(params) ? params : [params]
|
|
230
|
+
});
|
|
231
|
+
};
|
|
222
232
|
|
|
223
233
|
// src/sdk/customers/entities/entMethods.ts
|
|
224
234
|
var entityMethods = (instance) => {
|
|
@@ -614,6 +624,17 @@ var CreateCustomerParamsSchema = import_zod2.z.object({
|
|
|
614
624
|
var BillingPortalParamsSchema = import_zod2.z.object({
|
|
615
625
|
return_url: import_zod2.z.string().optional()
|
|
616
626
|
});
|
|
627
|
+
var UpdateBalancesParamsSchema = import_zod2.z.object({
|
|
628
|
+
feature_id: import_zod2.z.string(),
|
|
629
|
+
value: import_zod2.z.number()
|
|
630
|
+
}).or(
|
|
631
|
+
import_zod2.z.array(
|
|
632
|
+
import_zod2.z.object({
|
|
633
|
+
feature_id: import_zod2.z.string(),
|
|
634
|
+
value: import_zod2.z.number()
|
|
635
|
+
})
|
|
636
|
+
)
|
|
637
|
+
);
|
|
617
638
|
|
|
618
639
|
// src/sdk/general/checkTypes.ts
|
|
619
640
|
var import_zod3 = require("zod");
|
|
@@ -1603,7 +1624,12 @@ var useCustomerBase = ({
|
|
|
1603
1624
|
} = (0, import_swr2.default)(queryKey, fetchCustomer, {
|
|
1604
1625
|
fallbackData: null,
|
|
1605
1626
|
// Default to 5 minutes
|
|
1606
|
-
swrConfig: {
|
|
1627
|
+
swrConfig: {
|
|
1628
|
+
shouldRetryOnError: false,
|
|
1629
|
+
// refreshInterval: 1000 * 60 * 5,
|
|
1630
|
+
refreshInterval: 0,
|
|
1631
|
+
...params?.swrConfig
|
|
1632
|
+
}
|
|
1607
1633
|
});
|
|
1608
1634
|
const autumnFunctions = useAutumnBase({
|
|
1609
1635
|
context,
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
BaseAutumnProvider
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KVTXABQL.mjs";
|
|
7
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-JZQQJNF6.mjs";
|
|
9
|
+
import "./chunk-JOAOLY2Z.mjs";
|
|
10
|
+
import "./chunk-O2GKDKV5.mjs";
|
|
11
|
+
import "./chunk-C5OYITSR.mjs";
|
|
12
|
+
import "./chunk-B7RO2OAP.mjs";
|
|
13
|
+
import "./chunk-S75NZSTG.mjs";
|
|
14
|
+
import "./chunk-SRYI4NMF.mjs";
|
|
15
15
|
import "./chunk-V575SGOW.mjs";
|
|
16
16
|
import "./chunk-ZV4RPZTM.mjs";
|
|
17
17
|
import "./chunk-JVCOY7ZL.mjs";
|
package/dist/libraries/react/{ReactAutumnClient-BK3wjb-u.d.mts → ReactAutumnClient-BHjd9Tw5.d.mts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CreateEntityParams, GetEntityParams } from './client/types/clientEntTypes.mjs';
|
|
2
2
|
import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clientGenTypes.mjs';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
|
-
import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-
|
|
5
|
-
import { C as CheckoutResult } from './attachTypes-
|
|
6
|
-
import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
7
|
-
import {
|
|
8
|
-
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-
|
|
4
|
+
import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-BV-Jc6Q1.mjs';
|
|
5
|
+
import { C as CheckoutResult } from './attachTypes-C9FJTCo6.mjs';
|
|
6
|
+
import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-D79XPrxo.mjs';
|
|
7
|
+
import { c as ProductItem, e as ProductScenario, P as Product } from './prodTypes-2tlu9Pyz.mjs';
|
|
8
|
+
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-DT-gAUL9.mjs';
|
|
9
9
|
|
|
10
10
|
interface PricingTableProduct {
|
|
11
11
|
id: string;
|
|
@@ -81,41 +81,41 @@ declare class AutumnClient {
|
|
|
81
81
|
}, AutumnError>>;
|
|
82
82
|
attach: (params: {
|
|
83
83
|
options?: {
|
|
84
|
-
featureId: string;
|
|
85
84
|
quantity: number;
|
|
85
|
+
featureId: string;
|
|
86
86
|
}[] | undefined;
|
|
87
87
|
metadata?: Record<string, string> | undefined;
|
|
88
|
+
reward?: string | undefined;
|
|
88
89
|
productId?: string | undefined;
|
|
89
90
|
entityId?: string | undefined;
|
|
91
|
+
dialog?: any;
|
|
92
|
+
entityData?: any;
|
|
90
93
|
productIds?: string[] | undefined;
|
|
91
94
|
freeTrial?: boolean | undefined;
|
|
92
95
|
successUrl?: string | undefined;
|
|
93
96
|
forceCheckout?: boolean | undefined;
|
|
94
|
-
dialog?: any;
|
|
95
|
-
entityData?: any;
|
|
96
97
|
openInNewTab?: boolean | undefined;
|
|
97
|
-
reward?: string | undefined;
|
|
98
98
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
99
99
|
}) => AutumnPromise<{
|
|
100
100
|
customer_id: string;
|
|
101
101
|
code: string;
|
|
102
102
|
message: string;
|
|
103
103
|
product_ids: string[];
|
|
104
|
-
checkout_url?: string | undefined;
|
|
105
104
|
customer_data?: any;
|
|
105
|
+
checkout_url?: string | undefined;
|
|
106
106
|
}>;
|
|
107
107
|
checkout: (params: {
|
|
108
108
|
productId: string;
|
|
109
109
|
options?: {
|
|
110
|
-
featureId: string;
|
|
111
110
|
quantity: number;
|
|
111
|
+
featureId: string;
|
|
112
112
|
}[] | undefined;
|
|
113
|
+
reward?: string | undefined;
|
|
113
114
|
entityId?: string | undefined;
|
|
114
|
-
successUrl?: string | undefined;
|
|
115
115
|
dialog?: any;
|
|
116
116
|
entityData?: any;
|
|
117
|
+
successUrl?: string | undefined;
|
|
117
118
|
openInNewTab?: boolean | undefined;
|
|
118
|
-
reward?: string | undefined;
|
|
119
119
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
120
120
|
}) => AutumnPromise<CheckoutResult>;
|
|
121
121
|
cancel: (params: {
|
|
@@ -124,18 +124,18 @@ declare class AutumnClient {
|
|
|
124
124
|
cancelImmediately?: boolean | undefined;
|
|
125
125
|
}) => AutumnPromise<{
|
|
126
126
|
customer_id: string;
|
|
127
|
-
success: boolean;
|
|
128
127
|
product_id: string;
|
|
128
|
+
success: boolean;
|
|
129
129
|
}>;
|
|
130
130
|
check: (params: {
|
|
131
131
|
productId?: string | undefined;
|
|
132
132
|
entityId?: string | undefined;
|
|
133
133
|
featureId?: string | undefined;
|
|
134
|
-
dialog?: any;
|
|
135
|
-
entityData?: any;
|
|
136
134
|
requiredBalance?: number | undefined;
|
|
137
135
|
sendEvent?: boolean | undefined;
|
|
138
136
|
withPreview?: boolean | undefined;
|
|
137
|
+
dialog?: any;
|
|
138
|
+
entityData?: any;
|
|
139
139
|
}) => AutumnPromise<CheckResult>;
|
|
140
140
|
track: (params: {
|
|
141
141
|
value?: number | undefined;
|
|
@@ -145,9 +145,9 @@ declare class AutumnClient {
|
|
|
145
145
|
eventName?: string | undefined;
|
|
146
146
|
idempotencyKey?: string | undefined;
|
|
147
147
|
}) => AutumnPromise<{
|
|
148
|
-
id: string;
|
|
149
148
|
customer_id: string;
|
|
150
149
|
code: string;
|
|
150
|
+
id: string;
|
|
151
151
|
feature_id?: string | undefined;
|
|
152
152
|
event_name?: string | undefined;
|
|
153
153
|
}>;
|
package/dist/libraries/react/{ReactAutumnClient-Bh0Sgw6f.d.ts → ReactAutumnClient-DM5ZRTfX.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CreateEntityParams, GetEntityParams } from './client/types/clientEntTypes.js';
|
|
2
2
|
import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clientGenTypes.js';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
|
-
import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-
|
|
5
|
-
import { C as CheckoutResult } from './attachTypes-
|
|
6
|
-
import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
7
|
-
import {
|
|
8
|
-
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-
|
|
4
|
+
import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-DJUAkD36.js';
|
|
5
|
+
import { C as CheckoutResult } from './attachTypes-Bz1_JTvk.js';
|
|
6
|
+
import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-BPdjCunj.js';
|
|
7
|
+
import { c as ProductItem, e as ProductScenario, P as Product } from './prodTypes-2tlu9Pyz.js';
|
|
8
|
+
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-yJ0fSxbq.js';
|
|
9
9
|
|
|
10
10
|
interface PricingTableProduct {
|
|
11
11
|
id: string;
|
|
@@ -81,41 +81,41 @@ declare class AutumnClient {
|
|
|
81
81
|
}, AutumnError>>;
|
|
82
82
|
attach: (params: {
|
|
83
83
|
options?: {
|
|
84
|
-
featureId: string;
|
|
85
84
|
quantity: number;
|
|
85
|
+
featureId: string;
|
|
86
86
|
}[] | undefined;
|
|
87
87
|
metadata?: Record<string, string> | undefined;
|
|
88
|
+
reward?: string | undefined;
|
|
88
89
|
productId?: string | undefined;
|
|
89
90
|
entityId?: string | undefined;
|
|
91
|
+
dialog?: any;
|
|
92
|
+
entityData?: any;
|
|
90
93
|
productIds?: string[] | undefined;
|
|
91
94
|
freeTrial?: boolean | undefined;
|
|
92
95
|
successUrl?: string | undefined;
|
|
93
96
|
forceCheckout?: boolean | undefined;
|
|
94
|
-
dialog?: any;
|
|
95
|
-
entityData?: any;
|
|
96
97
|
openInNewTab?: boolean | undefined;
|
|
97
|
-
reward?: string | undefined;
|
|
98
98
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
99
99
|
}) => AutumnPromise<{
|
|
100
100
|
customer_id: string;
|
|
101
101
|
code: string;
|
|
102
102
|
message: string;
|
|
103
103
|
product_ids: string[];
|
|
104
|
-
checkout_url?: string | undefined;
|
|
105
104
|
customer_data?: any;
|
|
105
|
+
checkout_url?: string | undefined;
|
|
106
106
|
}>;
|
|
107
107
|
checkout: (params: {
|
|
108
108
|
productId: string;
|
|
109
109
|
options?: {
|
|
110
|
-
featureId: string;
|
|
111
110
|
quantity: number;
|
|
111
|
+
featureId: string;
|
|
112
112
|
}[] | undefined;
|
|
113
|
+
reward?: string | undefined;
|
|
113
114
|
entityId?: string | undefined;
|
|
114
|
-
successUrl?: string | undefined;
|
|
115
115
|
dialog?: any;
|
|
116
116
|
entityData?: any;
|
|
117
|
+
successUrl?: string | undefined;
|
|
117
118
|
openInNewTab?: boolean | undefined;
|
|
118
|
-
reward?: string | undefined;
|
|
119
119
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
120
120
|
}) => AutumnPromise<CheckoutResult>;
|
|
121
121
|
cancel: (params: {
|
|
@@ -124,18 +124,18 @@ declare class AutumnClient {
|
|
|
124
124
|
cancelImmediately?: boolean | undefined;
|
|
125
125
|
}) => AutumnPromise<{
|
|
126
126
|
customer_id: string;
|
|
127
|
-
success: boolean;
|
|
128
127
|
product_id: string;
|
|
128
|
+
success: boolean;
|
|
129
129
|
}>;
|
|
130
130
|
check: (params: {
|
|
131
131
|
productId?: string | undefined;
|
|
132
132
|
entityId?: string | undefined;
|
|
133
133
|
featureId?: string | undefined;
|
|
134
|
-
dialog?: any;
|
|
135
|
-
entityData?: any;
|
|
136
134
|
requiredBalance?: number | undefined;
|
|
137
135
|
sendEvent?: boolean | undefined;
|
|
138
136
|
withPreview?: boolean | undefined;
|
|
137
|
+
dialog?: any;
|
|
138
|
+
entityData?: any;
|
|
139
139
|
}) => AutumnPromise<CheckResult>;
|
|
140
140
|
track: (params: {
|
|
141
141
|
value?: number | undefined;
|
|
@@ -145,9 +145,9 @@ declare class AutumnClient {
|
|
|
145
145
|
eventName?: string | undefined;
|
|
146
146
|
idempotencyKey?: string | undefined;
|
|
147
147
|
}) => AutumnPromise<{
|
|
148
|
-
id: string;
|
|
149
148
|
customer_id: string;
|
|
150
149
|
code: string;
|
|
150
|
+
id: string;
|
|
151
151
|
feature_id?: string | undefined;
|
|
152
152
|
event_name?: string | undefined;
|
|
153
153
|
}>;
|
|
@@ -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-DT-gAUL9.mjs';
|
|
3
|
+
import './prodTypes-2tlu9Pyz.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, }: {
|
|
@@ -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-yJ0fSxbq.js';
|
|
3
|
+
import './prodTypes-2tlu9Pyz.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, }: {
|
|
@@ -169,7 +169,8 @@ var customerMethods = (instance) => {
|
|
|
169
169
|
create: (params) => staticWrapper(createCustomer, instance, { params }),
|
|
170
170
|
update: (id, params) => staticWrapper(updateCustomer, instance, { id, params }),
|
|
171
171
|
delete: (id) => staticWrapper(deleteCustomer, instance, { id }),
|
|
172
|
-
billingPortal: (id, params) => staticWrapper(billingPortal, instance, { id, params })
|
|
172
|
+
billingPortal: (id, params) => staticWrapper(billingPortal, instance, { id, params }),
|
|
173
|
+
updateBalances: (id, params) => staticWrapper(updateBalances, instance, { id, params })
|
|
173
174
|
};
|
|
174
175
|
};
|
|
175
176
|
var getExpandStr = (expand) => {
|
|
@@ -220,6 +221,15 @@ var billingPortal = async ({
|
|
|
220
221
|
}) => {
|
|
221
222
|
return instance.post(`/customers/${id}/billing_portal`, params);
|
|
222
223
|
};
|
|
224
|
+
var updateBalances = async ({
|
|
225
|
+
instance,
|
|
226
|
+
id,
|
|
227
|
+
params
|
|
228
|
+
}) => {
|
|
229
|
+
return instance.post(`/customers/${id}/balances`, {
|
|
230
|
+
balances: Array.isArray(params) ? params : [params]
|
|
231
|
+
});
|
|
232
|
+
};
|
|
223
233
|
|
|
224
234
|
// src/sdk/customers/entities/entMethods.ts
|
|
225
235
|
var entityMethods = (instance) => {
|
|
@@ -615,6 +625,17 @@ var CreateCustomerParamsSchema = import_zod2.z.object({
|
|
|
615
625
|
var BillingPortalParamsSchema = import_zod2.z.object({
|
|
616
626
|
return_url: import_zod2.z.string().optional()
|
|
617
627
|
});
|
|
628
|
+
var UpdateBalancesParamsSchema = import_zod2.z.object({
|
|
629
|
+
feature_id: import_zod2.z.string(),
|
|
630
|
+
value: import_zod2.z.number()
|
|
631
|
+
}).or(
|
|
632
|
+
import_zod2.z.array(
|
|
633
|
+
import_zod2.z.object({
|
|
634
|
+
feature_id: import_zod2.z.string(),
|
|
635
|
+
value: import_zod2.z.number()
|
|
636
|
+
})
|
|
637
|
+
)
|
|
638
|
+
);
|
|
618
639
|
|
|
619
640
|
// src/sdk/general/checkTypes.ts
|
|
620
641
|
var import_zod3 = require("zod");
|
|
@@ -1604,7 +1625,12 @@ var useCustomerBase = ({
|
|
|
1604
1625
|
} = (0, import_swr2.default)(queryKey, fetchCustomer, {
|
|
1605
1626
|
fallbackData: null,
|
|
1606
1627
|
// Default to 5 minutes
|
|
1607
|
-
swrConfig: {
|
|
1628
|
+
swrConfig: {
|
|
1629
|
+
shouldRetryOnError: false,
|
|
1630
|
+
// refreshInterval: 1000 * 60 * 5,
|
|
1631
|
+
refreshInterval: 0,
|
|
1632
|
+
...params?.swrConfig
|
|
1633
|
+
}
|
|
1608
1634
|
});
|
|
1609
1635
|
const autumnFunctions = useAutumnBase({
|
|
1610
1636
|
context,
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ReactAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-G2GXS74H.mjs";
|
|
6
|
+
import "./chunk-KVTXABQL.mjs";
|
|
7
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-JZQQJNF6.mjs";
|
|
9
|
+
import "./chunk-JOAOLY2Z.mjs";
|
|
10
|
+
import "./chunk-O2GKDKV5.mjs";
|
|
11
|
+
import "./chunk-C5OYITSR.mjs";
|
|
12
|
+
import "./chunk-B7RO2OAP.mjs";
|
|
13
|
+
import "./chunk-S75NZSTG.mjs";
|
|
14
|
+
import "./chunk-SRYI4NMF.mjs";
|
|
15
15
|
import "./chunk-V575SGOW.mjs";
|
|
16
16
|
import "./chunk-ZV4RPZTM.mjs";
|
|
17
17
|
import "./chunk-JVCOY7ZL.mjs";
|
package/dist/{next/client/attachTypes-BCt7D8ym.d.ts → libraries/react/attachTypes-Bz1_JTvk.d.ts}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ProductItem, P as Product } from './prodTypes-2tlu9Pyz.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<{
|
|
@@ -24,15 +24,15 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
24
24
|
code: string;
|
|
25
25
|
message: string;
|
|
26
26
|
product_ids: string[];
|
|
27
|
-
checkout_url?: string | undefined;
|
|
28
27
|
customer_data?: any;
|
|
28
|
+
checkout_url?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
customer_id: string;
|
|
31
31
|
code: string;
|
|
32
32
|
message: string;
|
|
33
33
|
product_ids: string[];
|
|
34
|
-
checkout_url?: string | undefined;
|
|
35
34
|
customer_data?: any;
|
|
35
|
+
checkout_url?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
38
38
|
type CheckoutResult = {
|
package/dist/{next/client/attachTypes-BThbMcvF.d.mts → libraries/react/attachTypes-C9FJTCo6.d.mts}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ProductItem, P as Product } from './prodTypes-2tlu9Pyz.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<{
|
|
@@ -24,15 +24,15 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
24
24
|
code: string;
|
|
25
25
|
message: string;
|
|
26
26
|
product_ids: string[];
|
|
27
|
-
checkout_url?: string | undefined;
|
|
28
27
|
customer_data?: any;
|
|
28
|
+
checkout_url?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
customer_id: string;
|
|
31
31
|
code: string;
|
|
32
32
|
message: string;
|
|
33
33
|
product_ids: string[];
|
|
34
|
-
checkout_url?: string | undefined;
|
|
35
34
|
customer_data?: any;
|
|
35
|
+
checkout_url?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
38
38
|
type CheckoutResult = {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
handleCheck,
|
|
5
5
|
openDialog
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JOAOLY2Z.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useAutumnBase
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O2GKDKV5.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useAutumnContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B7RO2OAP.mjs";
|
|
13
13
|
|
|
14
14
|
// src/libraries/react/hooks/useEntityBase.tsx
|
|
15
15
|
import useSWR from "swr";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePricingTableBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C5OYITSR.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext,
|
|
8
8
|
useAutumnContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B7RO2OAP.mjs";
|
|
10
10
|
|
|
11
11
|
// src/libraries/react/hooks/usePricingTable.tsx
|
|
12
12
|
var usePricingTable = (params) => {
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
Portal,
|
|
8
8
|
hideOthers,
|
|
9
9
|
useFocusGuards
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5K2M3CQZ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
X
|
|
13
13
|
} from "./chunk-QJPZFEVW.mjs";
|
|
14
14
|
import {
|
|
15
15
|
Presence,
|
|
16
16
|
useId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WT5K3J2K.mjs";
|
|
18
18
|
import {
|
|
19
19
|
Primitive,
|
|
20
20
|
composeEventHandlers,
|
|
21
21
|
createContext2,
|
|
22
22
|
createContextScope,
|
|
23
23
|
useControllableState
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KWNH6C27.mjs";
|
|
25
25
|
import {
|
|
26
26
|
createSlot,
|
|
27
27
|
useComposedRefs
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import {
|
|
4
4
|
AutumnContext,
|
|
5
5
|
useAutumnContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B7RO2OAP.mjs";
|
|
7
7
|
import {
|
|
8
8
|
AutumnError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SRYI4NMF.mjs";
|
|
10
10
|
|
|
11
11
|
// src/libraries/react/hooks/useAnalytics.tsx
|
|
12
12
|
import useSWR from "swr";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
BaseAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KVTXABQL.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B7RO2OAP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
AutumnClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S75NZSTG.mjs";
|
|
12
12
|
|
|
13
13
|
// src/libraries/react/ReactAutumnProvider.tsx
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useCustomerBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JZQQJNF6.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B7RO2OAP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/hooks/useCustomer.tsx
|
|
11
11
|
var useCustomer = (params) => {
|