autumn-js 0.1.6 → 0.1.7
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 +33 -33
- package/dist/libraries/backend/better-auth.d.ts +33 -33
- package/dist/libraries/backend/better-auth.js +28 -0
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-NTPYEOME.mjs → chunk-33ET4N4V.mjs} +1 -1
- package/dist/libraries/backend/{chunk-2LSEWYPD.mjs → chunk-3OVRYTZX.mjs} +6 -6
- package/dist/libraries/backend/{chunk-TTNUEXHB.mjs → chunk-AREWK25J.mjs} +28 -0
- package/dist/libraries/backend/{chunk-WBYCMG34.mjs → chunk-GO7TVFSN.mjs} +1 -1
- package/dist/libraries/backend/{chunk-7Z2OYXN4.mjs → chunk-LL53FE2Z.mjs} +1 -1
- package/dist/libraries/backend/{chunk-Y63QWBQ6.mjs → chunk-TFYLV3GN.mjs} +1 -1
- package/dist/libraries/backend/{chunk-QVLMREDB.mjs → chunk-VBHBF3GP.mjs} +1 -1
- package/dist/libraries/backend/convex.js +28 -0
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +28 -0
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +28 -0
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +28 -0
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +28 -0
- 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 +28 -0
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +28 -0
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +28 -0
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-CYvuZZeF.d.mts → referralTypes-B50JL4PY.d.mts} +110 -43
- package/dist/libraries/backend/{referralTypes-B0_fYSI3.d.ts → referralTypes-dW2HaxKV.d.ts} +110 -43
- package/dist/libraries/backend/remix_dep.js +28 -0
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +28 -0
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +28 -0
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +28 -0
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +28 -0
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +28 -0
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +28 -0
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +28 -0
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +28 -0
- 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 +28 -0
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.js +35 -1
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +35 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-CK8k8OA5.d.ts → ReactAutumnClient-BUq9E84_.d.ts} +20 -18
- package/dist/libraries/react/{ReactAutumnClient-CjaZ_g4X.d.mts → ReactAutumnClient-CpAGyyur.d.mts} +20 -18
- package/dist/libraries/react/ReactAutumnProvider.d.mts +4 -3
- package/dist/libraries/react/ReactAutumnProvider.d.ts +4 -3
- package/dist/libraries/react/ReactAutumnProvider.js +39 -3
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/{attachTypes-BetWkt95.d.ts → attachTypes-CcB6xjSF.d.ts} +5 -5
- package/dist/{next/client/attachTypes-DZFtFEmv.d.mts → libraries/react/attachTypes-DqUN3q8s.d.mts} +3 -3
- package/dist/libraries/react/{chunk-KZVVSY52.mjs → chunk-56PEGK2Z.mjs} +2 -2
- package/dist/libraries/react/{chunk-ZT5TN67S.mjs → chunk-ECOBNPRU.mjs} +7 -5
- package/dist/libraries/react/{chunk-PGU4IXT7.mjs → chunk-FMRBH4CP.mjs} +1 -1
- package/dist/libraries/react/{chunk-KLSRAX2F.mjs → chunk-GWVZB5GK.mjs} +3 -3
- package/dist/libraries/react/{chunk-QV6Q2XXO.mjs → chunk-HIC6P67K.mjs} +14 -8
- package/dist/libraries/react/{chunk-33OTK7MB.mjs → chunk-HMZZIUCF.mjs} +1 -1
- package/dist/libraries/react/{chunk-TJMYXANS.mjs → chunk-JFTZRU2U.mjs} +1 -1
- package/dist/libraries/react/{chunk-7AJBRRXV.mjs → chunk-JNR7QAPG.mjs} +1 -1
- package/dist/libraries/react/{chunk-7PFOXY3Y.mjs → chunk-KYZ3DYMI.mjs} +13 -13
- package/dist/libraries/react/{chunk-W5XUD2S6.mjs → chunk-MW2FSYG3.mjs} +1 -1
- package/dist/libraries/react/{chunk-IM2FNHYV.mjs → chunk-QQKJE2ND.mjs} +2 -2
- package/dist/libraries/react/{chunk-GUDRYJ3O.mjs → chunk-SFGXTDMX.mjs} +2 -2
- package/dist/libraries/react/{chunk-QW2YS3JY.mjs → chunk-SZJOMZTC.mjs} +2 -2
- package/dist/libraries/react/{chunk-F5QUME7S.mjs → chunk-ULIUD6YP.mjs} +3 -3
- package/dist/libraries/react/{chunk-EK2RMWXP.mjs → chunk-WQXUZO6K.mjs} +28 -0
- package/dist/libraries/react/{chunk-SFDHYUHA.mjs → chunk-ZJBEC254.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 +35 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
- package/dist/libraries/react/client/types/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 +28 -0
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +35 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +21 -21
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +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 +35 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +21 -21
- 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 +35 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +21 -21
- package/dist/libraries/react/{cusTypes-DINgmPwV.d.mts → cusTypes-CSmAk5io.d.mts} +5 -5
- package/dist/libraries/react/{cusTypes-D5d_cu-K.d.ts → cusTypes-DHjT-9rV.d.ts} +5 -5
- package/dist/libraries/react/{entTypes-DNW_l3s0.d.ts → entTypes-CoF9enrR.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-biskqmpT.d.mts → entTypes-S4hkh1RG.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-EyxQImzh.d.ts → genTypes-DsiuvyWS.d.ts} +5 -5
- package/dist/libraries/react/{genTypes-DSvR32on.d.mts → genTypes-fEH_nqSm.d.mts} +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 +28 -0
- 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 +28 -0
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.js +35 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +6 -6
- 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 +35 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
- 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 +35 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- 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 +35 -1
- package/dist/libraries/react/hooks/useEntity.mjs +10 -10
- 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 +35 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- package/dist/libraries/react/hooks/usePaywall.js +35 -1
- package/dist/libraries/react/hooks/usePaywall.mjs +6 -6
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.js +35 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- 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 +28 -0
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
- package/dist/libraries/react/index.d.mts +2 -1
- package/dist/libraries/react/index.d.ts +2 -1
- package/dist/libraries/react/index.js +39 -3
- package/dist/libraries/react/index.mjs +39 -3
- package/dist/libraries/react/{prodTypes-Bmoibf-M.d.mts → prodTypes--VvnyGlN.d.mts} +5 -5
- package/dist/libraries/react/{prodTypes-Bmoibf-M.d.ts → prodTypes--VvnyGlN.d.ts} +5 -5
- package/dist/next/client/NextAutumnClient.d.mts +23 -21
- package/dist/next/client/NextAutumnClient.d.ts +23 -21
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{attachTypes-DxJ0LCjT.d.ts → attachTypes-DKlQexnQ.d.ts} +7 -7
- package/dist/{libraries/react/attachTypes-DbI59BLC.d.mts → next/client/attachTypes-EvdK0fPK.d.mts} +9 -9
- package/dist/next/client/{clientAttachTypes-BXtfXB4v.d.ts → clientAttachTypes-CGPjsdPk.d.ts} +29 -29
- package/dist/next/client/{clientAttachTypes-qsdoMt_B.d.mts → clientAttachTypes-CZFjz8Rq.d.mts} +29 -29
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-BHYpk8bK.d.ts → cusTypes-DEURYNg4.d.ts} +7 -7
- package/dist/next/client/{cusTypes-Q54uLNO5.d.mts → cusTypes-y5wEmx07.d.mts} +7 -7
- package/dist/next/client/{entTypes-vjIG3B1G.d.ts → entTypes-CRFgWhOr.d.ts} +1 -1
- package/dist/next/client/{entTypes-CHHBdhBK.d.mts → entTypes-KRxjcMFv.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +5 -5
- package/dist/next/client/hooks/useAutumn.d.ts +5 -5
- package/dist/next/client/hooks/useCustomer.d.mts +5 -5
- package/dist/next/client/hooks/useCustomer.d.ts +5 -5
- package/dist/next/client/hooks/useEntity.d.mts +7 -7
- package/dist/next/client/hooks/useEntity.d.ts +7 -7
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +3 -3
- package/dist/next/client/types.d.ts +3 -3
- package/dist/next/server/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 +90 -23
- package/dist/next/server/cusActions.d.ts +90 -23
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +70 -3
- package/dist/sdk/index.d.ts +70 -3
- package/dist/sdk/index.js +28 -0
- package/dist/sdk/index.mjs +28 -0
- package/dist/utils/encryptUtils.js +28 -0
- package/dist/utils/encryptUtils.mjs +28 -0
- package/package.json +1 -1
- package/dist/next/client/{prodTypes-CxvB1YY3.d.mts → prodTypes-DzTLP57C.d.mts} +8 -8
- package/dist/next/client/{prodTypes-CxvB1YY3.d.ts → prodTypes-DzTLP57C.d.ts} +8 -8
- package/dist/next/server/{cusTypes-D38IpLCT.d.ts → cusTypes-CwopPHB0.d.mts} +10 -10
- package/dist/next/server/{cusTypes-D38IpLCT.d.mts → cusTypes-CwopPHB0.d.ts} +10 -10
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
PaywallDialog
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-KYZ3DYMI.mjs";
|
|
7
|
+
import "../../chunk-BLM4DAAR.mjs";
|
|
8
|
+
import "../../chunk-URQMBRFZ.mjs";
|
|
7
9
|
import "../../chunk-I5ZGIAIX.mjs";
|
|
8
10
|
import "../../chunk-GUM4HIGI.mjs";
|
|
9
11
|
import "../../chunk-OTZ65PCT.mjs";
|
|
10
12
|
import "../../chunk-YWQTQ72B.mjs";
|
|
11
13
|
import "../../chunk-KUS3X33V.mjs";
|
|
12
|
-
import "../../chunk-BLM4DAAR.mjs";
|
|
13
|
-
import "../../chunk-URQMBRFZ.mjs";
|
|
14
14
|
import "../../chunk-JGDTNJTR.mjs";
|
|
15
15
|
import "../../chunk-EV5RNY5U.mjs";
|
|
16
16
|
import "../../chunk-FJWZPMWU.mjs";
|
|
@@ -19,28 +19,28 @@ import "../../chunk-QJPZFEVW.mjs";
|
|
|
19
19
|
import "../../chunk-I2A7PK2L.mjs";
|
|
20
20
|
import "../../chunk-7TYAAD2T.mjs";
|
|
21
21
|
import "../../chunk-RPEGNKJH.mjs";
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-QQKJE2ND.mjs";
|
|
23
|
+
import "../../chunk-SFGXTDMX.mjs";
|
|
24
|
+
import "../../chunk-ULIUD6YP.mjs";
|
|
25
|
+
import "../../chunk-FMRBH4CP.mjs";
|
|
26
|
+
import "../../chunk-SZJOMZTC.mjs";
|
|
25
27
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
28
|
-
import "../../chunk-
|
|
29
|
-
import "../../chunk-
|
|
30
|
-
import "../../chunk-ZT5TN67S.mjs";
|
|
31
|
-
import "../../chunk-33OTK7MB.mjs";
|
|
28
|
+
import "../../chunk-WVKYZYFT.mjs";
|
|
29
|
+
import "../../chunk-56PEGK2Z.mjs";
|
|
30
|
+
import "../../chunk-ECOBNPRU.mjs";
|
|
31
|
+
import "../../chunk-HMZZIUCF.mjs";
|
|
32
32
|
import "../../chunk-RFSQBGLO.mjs";
|
|
33
|
-
import "../../chunk-
|
|
34
|
-
import "../../chunk-
|
|
35
|
-
import "../../chunk-
|
|
36
|
-
import "../../chunk-
|
|
37
|
-
import "../../chunk-
|
|
38
|
-
import "../../chunk-
|
|
39
|
-
import "../../chunk-EK2RMWXP.mjs";
|
|
40
|
-
import "../../chunk-V575SGOW.mjs";
|
|
41
|
-
import "../../chunk-ZV4RPZTM.mjs";
|
|
33
|
+
import "../../chunk-GWVZB5GK.mjs";
|
|
34
|
+
import "../../chunk-MW2FSYG3.mjs";
|
|
35
|
+
import "../../chunk-ZJBEC254.mjs";
|
|
36
|
+
import "../../chunk-JNR7QAPG.mjs";
|
|
37
|
+
import "../../chunk-JFTZRU2U.mjs";
|
|
38
|
+
import "../../chunk-HIC6P67K.mjs";
|
|
42
39
|
import "../../chunk-JVCOY7ZL.mjs";
|
|
43
40
|
import "../../chunk-CIBQ4BJU.mjs";
|
|
41
|
+
import "../../chunk-WQXUZO6K.mjs";
|
|
42
|
+
import "../../chunk-V575SGOW.mjs";
|
|
43
|
+
import "../../chunk-ZV4RPZTM.mjs";
|
|
44
44
|
import "../../chunk-VTGR7VVK.mjs";
|
|
45
45
|
import "../../chunk-WFFVOEUG.mjs";
|
|
46
46
|
import "../../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { P as Product,
|
|
3
|
+
import { P as Product, a as ProductItem } from '../../prodTypes--VvnyGlN.mjs';
|
|
4
4
|
import { ProductDetails } from '../../client/types/clientPricingTableTypes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { P as Product,
|
|
3
|
+
import { P as Product, a as ProductItem } from '../../prodTypes--VvnyGlN.js';
|
|
4
4
|
import { ProductDetails } from '../../client/types/clientPricingTableTypes.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -430,6 +430,32 @@ var logger = {
|
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
+
// src/sdk/features/featureMethods.ts
|
|
434
|
+
var featureMethods = (instance) => {
|
|
435
|
+
return {
|
|
436
|
+
list: () => staticWrapper(listFeatures, instance, {})
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
var listFeatures = async ({
|
|
440
|
+
instance,
|
|
441
|
+
params
|
|
442
|
+
}) => {
|
|
443
|
+
let path = "/features";
|
|
444
|
+
if (params) {
|
|
445
|
+
const queryParams = new URLSearchParams();
|
|
446
|
+
for (const [key, value] of Object.entries(params)) {
|
|
447
|
+
if (value !== void 0) {
|
|
448
|
+
queryParams.append(key, String(value));
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const queryString = queryParams.toString();
|
|
452
|
+
if (queryString) {
|
|
453
|
+
path += `?${queryString}`;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
return instance.get(path);
|
|
457
|
+
};
|
|
458
|
+
|
|
433
459
|
// src/sdk/client.ts
|
|
434
460
|
var LATEST_API_VERSION = "1.2";
|
|
435
461
|
var Autumn = class {
|
|
@@ -487,10 +513,12 @@ var Autumn = class {
|
|
|
487
513
|
static products = productMethods();
|
|
488
514
|
static entities = entityMethods();
|
|
489
515
|
static referrals = referralMethods();
|
|
516
|
+
static features = featureMethods();
|
|
490
517
|
customers = customerMethods(this);
|
|
491
518
|
products = productMethods(this);
|
|
492
519
|
entities = entityMethods(this);
|
|
493
520
|
referrals = referralMethods(this);
|
|
521
|
+
features = featureMethods(this);
|
|
494
522
|
static checkout = (params) => staticWrapper(handleCheckout, void 0, { params });
|
|
495
523
|
async checkout(params) {
|
|
496
524
|
return handleCheckout({
|
|
@@ -897,12 +925,14 @@ var AutumnClient = class {
|
|
|
897
925
|
customerData;
|
|
898
926
|
includeCredentials;
|
|
899
927
|
prefix;
|
|
928
|
+
headers;
|
|
900
929
|
constructor({
|
|
901
930
|
backendUrl,
|
|
902
931
|
getBearerToken,
|
|
903
932
|
customerData,
|
|
904
933
|
includeCredentials,
|
|
905
|
-
betterAuthUrl
|
|
934
|
+
betterAuthUrl,
|
|
935
|
+
headers
|
|
906
936
|
}) {
|
|
907
937
|
this.backendUrl = backendUrl;
|
|
908
938
|
this.getBearerToken = getBearerToken;
|
|
@@ -913,6 +943,7 @@ var AutumnClient = class {
|
|
|
913
943
|
this.prefix = "/api/auth/autumn";
|
|
914
944
|
this.backendUrl = betterAuthUrl;
|
|
915
945
|
}
|
|
946
|
+
this.headers = headers;
|
|
916
947
|
}
|
|
917
948
|
/**
|
|
918
949
|
* Detects if the backend supports CORS credentials by making an OPTIONS request
|
|
@@ -978,6 +1009,9 @@ var AutumnClient = class {
|
|
|
978
1009
|
console.error(`Failed to call getToken() in AutumnProvider`);
|
|
979
1010
|
}
|
|
980
1011
|
}
|
|
1012
|
+
if (this.headers) {
|
|
1013
|
+
headers = { ...headers, ...this.headers };
|
|
1014
|
+
}
|
|
981
1015
|
return headers;
|
|
982
1016
|
}
|
|
983
1017
|
async handleFetch({
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
PricingTableContainer,
|
|
10
10
|
RecommendedBadge,
|
|
11
11
|
usePricingTableContext
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-KYZ3DYMI.mjs";
|
|
13
|
+
import "../../chunk-BLM4DAAR.mjs";
|
|
14
|
+
import "../../chunk-URQMBRFZ.mjs";
|
|
13
15
|
import "../../chunk-I5ZGIAIX.mjs";
|
|
14
16
|
import "../../chunk-GUM4HIGI.mjs";
|
|
15
17
|
import "../../chunk-OTZ65PCT.mjs";
|
|
16
18
|
import "../../chunk-YWQTQ72B.mjs";
|
|
17
19
|
import "../../chunk-KUS3X33V.mjs";
|
|
18
|
-
import "../../chunk-BLM4DAAR.mjs";
|
|
19
|
-
import "../../chunk-URQMBRFZ.mjs";
|
|
20
20
|
import "../../chunk-JGDTNJTR.mjs";
|
|
21
21
|
import "../../chunk-EV5RNY5U.mjs";
|
|
22
22
|
import "../../chunk-FJWZPMWU.mjs";
|
|
@@ -25,28 +25,28 @@ import "../../chunk-QJPZFEVW.mjs";
|
|
|
25
25
|
import "../../chunk-I2A7PK2L.mjs";
|
|
26
26
|
import "../../chunk-7TYAAD2T.mjs";
|
|
27
27
|
import "../../chunk-RPEGNKJH.mjs";
|
|
28
|
-
import "../../chunk-
|
|
29
|
-
import "../../chunk-
|
|
30
|
-
import "../../chunk-
|
|
28
|
+
import "../../chunk-QQKJE2ND.mjs";
|
|
29
|
+
import "../../chunk-SFGXTDMX.mjs";
|
|
30
|
+
import "../../chunk-ULIUD6YP.mjs";
|
|
31
|
+
import "../../chunk-FMRBH4CP.mjs";
|
|
32
|
+
import "../../chunk-SZJOMZTC.mjs";
|
|
31
33
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
32
|
-
import "../../chunk-
|
|
33
|
-
import "../../chunk-
|
|
34
|
-
import "../../chunk-
|
|
35
|
-
import "../../chunk-
|
|
36
|
-
import "../../chunk-ZT5TN67S.mjs";
|
|
37
|
-
import "../../chunk-33OTK7MB.mjs";
|
|
34
|
+
import "../../chunk-WVKYZYFT.mjs";
|
|
35
|
+
import "../../chunk-56PEGK2Z.mjs";
|
|
36
|
+
import "../../chunk-ECOBNPRU.mjs";
|
|
37
|
+
import "../../chunk-HMZZIUCF.mjs";
|
|
38
38
|
import "../../chunk-RFSQBGLO.mjs";
|
|
39
|
-
import "../../chunk-
|
|
40
|
-
import "../../chunk-
|
|
41
|
-
import "../../chunk-
|
|
42
|
-
import "../../chunk-
|
|
43
|
-
import "../../chunk-
|
|
44
|
-
import "../../chunk-
|
|
45
|
-
import "../../chunk-EK2RMWXP.mjs";
|
|
46
|
-
import "../../chunk-V575SGOW.mjs";
|
|
47
|
-
import "../../chunk-ZV4RPZTM.mjs";
|
|
39
|
+
import "../../chunk-GWVZB5GK.mjs";
|
|
40
|
+
import "../../chunk-MW2FSYG3.mjs";
|
|
41
|
+
import "../../chunk-ZJBEC254.mjs";
|
|
42
|
+
import "../../chunk-JNR7QAPG.mjs";
|
|
43
|
+
import "../../chunk-JFTZRU2U.mjs";
|
|
44
|
+
import "../../chunk-HIC6P67K.mjs";
|
|
48
45
|
import "../../chunk-JVCOY7ZL.mjs";
|
|
49
46
|
import "../../chunk-CIBQ4BJU.mjs";
|
|
47
|
+
import "../../chunk-WQXUZO6K.mjs";
|
|
48
|
+
import "../../chunk-V575SGOW.mjs";
|
|
49
|
+
import "../../chunk-ZV4RPZTM.mjs";
|
|
50
50
|
import "../../chunk-VTGR7VVK.mjs";
|
|
51
51
|
import "../../chunk-WFFVOEUG.mjs";
|
|
52
52
|
import "../../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv,
|
|
1
|
+
import { A as AppEnv, a as ProductItem, d as ProductItemInterval } from './prodTypes--VvnyGlN.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -59,6 +59,7 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
59
59
|
credit_amount: number;
|
|
60
60
|
}>, "many">>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
usage_limit?: number | undefined;
|
|
62
63
|
unlimited?: boolean | undefined;
|
|
63
64
|
interval?: ProductItemInterval | undefined;
|
|
64
65
|
balance?: number | null | undefined;
|
|
@@ -66,7 +67,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
66
67
|
included_usage?: number | undefined;
|
|
67
68
|
next_reset_at?: number | null | undefined;
|
|
68
69
|
overage_allowed?: boolean | undefined;
|
|
69
|
-
usage_limit?: number | undefined;
|
|
70
70
|
rollovers?: {
|
|
71
71
|
balance: number;
|
|
72
72
|
expires_at: number;
|
|
@@ -83,6 +83,7 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
83
83
|
credit_amount: number;
|
|
84
84
|
}[] | undefined;
|
|
85
85
|
}, {
|
|
86
|
+
usage_limit?: number | undefined;
|
|
86
87
|
unlimited?: boolean | undefined;
|
|
87
88
|
interval?: ProductItemInterval | undefined;
|
|
88
89
|
balance?: number | null | undefined;
|
|
@@ -90,7 +91,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
90
91
|
included_usage?: number | undefined;
|
|
91
92
|
next_reset_at?: number | null | undefined;
|
|
92
93
|
overage_allowed?: boolean | undefined;
|
|
93
|
-
usage_limit?: number | undefined;
|
|
94
94
|
rollovers?: {
|
|
95
95
|
balance: number;
|
|
96
96
|
expires_at: number;
|
|
@@ -165,15 +165,15 @@ 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;
|
|
169
|
+
id?: string | null | undefined;
|
|
170
170
|
email?: string | null | undefined;
|
|
171
171
|
fingerprint?: 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;
|
|
176
|
+
id?: string | null | undefined;
|
|
177
177
|
email?: string | null | undefined;
|
|
178
178
|
fingerprint?: string | null | undefined;
|
|
179
179
|
metadata?: Record<string, any> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv,
|
|
1
|
+
import { A as AppEnv, a as ProductItem, d as ProductItemInterval } from './prodTypes--VvnyGlN.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -59,6 +59,7 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
59
59
|
credit_amount: number;
|
|
60
60
|
}>, "many">>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
usage_limit?: number | undefined;
|
|
62
63
|
unlimited?: boolean | undefined;
|
|
63
64
|
interval?: ProductItemInterval | undefined;
|
|
64
65
|
balance?: number | null | undefined;
|
|
@@ -66,7 +67,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
66
67
|
included_usage?: number | undefined;
|
|
67
68
|
next_reset_at?: number | null | undefined;
|
|
68
69
|
overage_allowed?: boolean | undefined;
|
|
69
|
-
usage_limit?: number | undefined;
|
|
70
70
|
rollovers?: {
|
|
71
71
|
balance: number;
|
|
72
72
|
expires_at: number;
|
|
@@ -83,6 +83,7 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
83
83
|
credit_amount: number;
|
|
84
84
|
}[] | undefined;
|
|
85
85
|
}, {
|
|
86
|
+
usage_limit?: number | undefined;
|
|
86
87
|
unlimited?: boolean | undefined;
|
|
87
88
|
interval?: ProductItemInterval | undefined;
|
|
88
89
|
balance?: number | null | undefined;
|
|
@@ -90,7 +91,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
90
91
|
included_usage?: number | undefined;
|
|
91
92
|
next_reset_at?: number | null | undefined;
|
|
92
93
|
overage_allowed?: boolean | undefined;
|
|
93
|
-
usage_limit?: number | undefined;
|
|
94
94
|
rollovers?: {
|
|
95
95
|
balance: number;
|
|
96
96
|
expires_at: number;
|
|
@@ -165,15 +165,15 @@ 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;
|
|
169
|
+
id?: string | null | undefined;
|
|
170
170
|
email?: string | null | undefined;
|
|
171
171
|
fingerprint?: 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;
|
|
176
|
+
id?: string | null | undefined;
|
|
177
177
|
email?: string | null | undefined;
|
|
178
178
|
fingerprint?: string | null | undefined;
|
|
179
179
|
metadata?: Record<string, any> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
2
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
2
|
+
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-DHjT-9rV.js';
|
|
3
3
|
|
|
4
4
|
type Success<T> = {
|
|
5
5
|
data: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
2
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
2
|
+
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-CSmAk5io.mjs';
|
|
3
3
|
|
|
4
4
|
type Success<T> = {
|
|
5
5
|
data: T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as CheckFeatureResult, c as CheckProductResult } from './prodTypes--VvnyGlN.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const CancelResultSchema: z.ZodObject<{
|
|
@@ -7,12 +7,12 @@ declare const CancelResultSchema: z.ZodObject<{
|
|
|
7
7
|
product_id: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
customer_id: string;
|
|
10
|
-
success: boolean;
|
|
11
10
|
product_id: string;
|
|
11
|
+
success: boolean;
|
|
12
12
|
}, {
|
|
13
13
|
customer_id: string;
|
|
14
|
-
success: boolean;
|
|
15
14
|
product_id: string;
|
|
15
|
+
success: boolean;
|
|
16
16
|
}>;
|
|
17
17
|
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
18
18
|
declare const TrackResultSchema: z.ZodObject<{
|
|
@@ -22,15 +22,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
22
22
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
23
23
|
event_name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
id: string;
|
|
26
25
|
customer_id: string;
|
|
27
26
|
code: string;
|
|
27
|
+
id: string;
|
|
28
28
|
feature_id?: string | undefined;
|
|
29
29
|
event_name?: string | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
id: string;
|
|
32
31
|
customer_id: string;
|
|
33
32
|
code: string;
|
|
33
|
+
id: string;
|
|
34
34
|
feature_id?: string | undefined;
|
|
35
35
|
event_name?: string | undefined;
|
|
36
36
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as CheckFeatureResult, c as CheckProductResult } from './prodTypes--VvnyGlN.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const CancelResultSchema: z.ZodObject<{
|
|
@@ -7,12 +7,12 @@ declare const CancelResultSchema: z.ZodObject<{
|
|
|
7
7
|
product_id: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
customer_id: string;
|
|
10
|
-
success: boolean;
|
|
11
10
|
product_id: string;
|
|
11
|
+
success: boolean;
|
|
12
12
|
}, {
|
|
13
13
|
customer_id: string;
|
|
14
|
-
success: boolean;
|
|
15
14
|
product_id: string;
|
|
15
|
+
success: boolean;
|
|
16
16
|
}>;
|
|
17
17
|
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
18
18
|
declare const TrackResultSchema: z.ZodObject<{
|
|
@@ -22,15 +22,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
22
22
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
23
23
|
event_name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
id: string;
|
|
26
25
|
customer_id: string;
|
|
27
26
|
code: string;
|
|
27
|
+
id: string;
|
|
28
28
|
feature_id?: string | undefined;
|
|
29
29
|
event_name?: string | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
id: string;
|
|
32
31
|
customer_id: string;
|
|
33
32
|
code: string;
|
|
33
|
+
id: string;
|
|
34
34
|
feature_id?: string | undefined;
|
|
35
35
|
event_name?: string | undefined;
|
|
36
36
|
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AutumnContextParams } from '../../AutumnContext.mjs';
|
|
2
2
|
import { CheckParams } from '../../client/types/clientGenTypes.mjs';
|
|
3
|
-
import { a as CheckResult } from '../../genTypes-
|
|
4
|
-
import { b as Customer } from '../../cusTypes-
|
|
5
|
-
import { E as Entity } from '../../entTypes-
|
|
3
|
+
import { a as CheckResult } from '../../genTypes-fEH_nqSm.mjs';
|
|
4
|
+
import { b as Customer } from '../../cusTypes-CSmAk5io.mjs';
|
|
5
|
+
import { E as Entity } from '../../entTypes-S4hkh1RG.mjs';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../../ReactAutumnClient-
|
|
7
|
+
import '../../ReactAutumnClient-CpAGyyur.mjs';
|
|
8
8
|
import '../../client/types/clientEntTypes.mjs';
|
|
9
9
|
import '../../error-DHbclCVh.mjs';
|
|
10
|
-
import '../../attachTypes-
|
|
11
|
-
import '../../prodTypes
|
|
10
|
+
import '../../attachTypes-DqUN3q8s.mjs';
|
|
11
|
+
import '../../prodTypes--VvnyGlN.mjs';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
interface AllowedParams {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AutumnContextParams } from '../../AutumnContext.js';
|
|
2
2
|
import { CheckParams } from '../../client/types/clientGenTypes.js';
|
|
3
|
-
import { a as CheckResult } from '../../genTypes-
|
|
4
|
-
import { b as Customer } from '../../cusTypes-
|
|
5
|
-
import { E as Entity } from '../../entTypes-
|
|
3
|
+
import { a as CheckResult } from '../../genTypes-DsiuvyWS.js';
|
|
4
|
+
import { b as Customer } from '../../cusTypes-DHjT-9rV.js';
|
|
5
|
+
import { E as Entity } from '../../entTypes-CoF9enrR.js';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../../ReactAutumnClient-
|
|
7
|
+
import '../../ReactAutumnClient-BUq9E84_.js';
|
|
8
8
|
import '../../client/types/clientEntTypes.js';
|
|
9
9
|
import '../../error-DHbclCVh.js';
|
|
10
|
-
import '../../attachTypes-
|
|
11
|
-
import '../../prodTypes
|
|
10
|
+
import '../../attachTypes-CcB6xjSF.js';
|
|
11
|
+
import '../../prodTypes--VvnyGlN.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
interface AllowedParams {
|
|
@@ -386,6 +386,32 @@ var logger = {
|
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
388
|
|
|
389
|
+
// src/sdk/features/featureMethods.ts
|
|
390
|
+
var featureMethods = (instance) => {
|
|
391
|
+
return {
|
|
392
|
+
list: () => staticWrapper(listFeatures, instance, {})
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
var listFeatures = async ({
|
|
396
|
+
instance,
|
|
397
|
+
params
|
|
398
|
+
}) => {
|
|
399
|
+
let path = "/features";
|
|
400
|
+
if (params) {
|
|
401
|
+
const queryParams = new URLSearchParams();
|
|
402
|
+
for (const [key, value] of Object.entries(params)) {
|
|
403
|
+
if (value !== void 0) {
|
|
404
|
+
queryParams.append(key, String(value));
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
const queryString = queryParams.toString();
|
|
408
|
+
if (queryString) {
|
|
409
|
+
path += `?${queryString}`;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return instance.get(path);
|
|
413
|
+
};
|
|
414
|
+
|
|
389
415
|
// src/sdk/client.ts
|
|
390
416
|
var LATEST_API_VERSION = "1.2";
|
|
391
417
|
var Autumn = class {
|
|
@@ -443,10 +469,12 @@ var Autumn = class {
|
|
|
443
469
|
static products = productMethods();
|
|
444
470
|
static entities = entityMethods();
|
|
445
471
|
static referrals = referralMethods();
|
|
472
|
+
static features = featureMethods();
|
|
446
473
|
customers = customerMethods(this);
|
|
447
474
|
products = productMethods(this);
|
|
448
475
|
entities = entityMethods(this);
|
|
449
476
|
referrals = referralMethods(this);
|
|
477
|
+
features = featureMethods(this);
|
|
450
478
|
static checkout = (params) => staticWrapper(handleCheckout, void 0, { params });
|
|
451
479
|
async checkout(params) {
|
|
452
480
|
return handleCheckout({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as Result, A as AutumnPromise } from '../../entTypes-
|
|
1
|
+
import { R as Result, A as AutumnPromise } from '../../entTypes-S4hkh1RG.mjs';
|
|
2
2
|
import { A as AutumnError } from '../../error-DHbclCVh.mjs';
|
|
3
|
-
import { a as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../../genTypes-
|
|
4
|
-
import { C as CheckoutResult } from '../../attachTypes-
|
|
5
|
-
import { B as BillingPortalResult } from '../../cusTypes-
|
|
3
|
+
import { a as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../../genTypes-fEH_nqSm.mjs';
|
|
4
|
+
import { C as CheckoutResult } from '../../attachTypes-DqUN3q8s.mjs';
|
|
5
|
+
import { B as BillingPortalResult } from '../../cusTypes-CSmAk5io.mjs';
|
|
6
6
|
import { AutumnContextParams } from '../../AutumnContext.mjs';
|
|
7
7
|
import { TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../../client/types/clientGenTypes.mjs';
|
|
8
8
|
import { AttachParams, CheckoutParams } from '../../client/types/clientAttachTypes.mjs';
|
|
9
|
-
import { A as AutumnClient } from '../../ReactAutumnClient-
|
|
10
|
-
import '../../prodTypes
|
|
9
|
+
import { A as AutumnClient } from '../../ReactAutumnClient-CpAGyyur.mjs';
|
|
10
|
+
import '../../prodTypes--VvnyGlN.mjs';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'react';
|
|
13
13
|
import '../../client/types/clientEntTypes.mjs';
|
|
@@ -18,9 +18,9 @@ declare const useAutumnBase: ({ context, client, refetchCustomer, }: {
|
|
|
18
18
|
refetchCustomer?: () => Promise<any>;
|
|
19
19
|
}) => {
|
|
20
20
|
attach: (params: AttachParams) => Promise<Result<{
|
|
21
|
-
customer_id: string;
|
|
22
21
|
code: string;
|
|
23
22
|
message: string;
|
|
23
|
+
customer_id: string;
|
|
24
24
|
product_ids: string[];
|
|
25
25
|
customer_data?: any;
|
|
26
26
|
checkout_url?: string | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as Result, A as AutumnPromise } from '../../entTypes-
|
|
1
|
+
import { R as Result, A as AutumnPromise } from '../../entTypes-CoF9enrR.js';
|
|
2
2
|
import { A as AutumnError } from '../../error-DHbclCVh.js';
|
|
3
|
-
import { a as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../../genTypes-
|
|
4
|
-
import { C as CheckoutResult } from '../../attachTypes-
|
|
5
|
-
import { B as BillingPortalResult } from '../../cusTypes-
|
|
3
|
+
import { a as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../../genTypes-DsiuvyWS.js';
|
|
4
|
+
import { C as CheckoutResult } from '../../attachTypes-CcB6xjSF.js';
|
|
5
|
+
import { B as BillingPortalResult } from '../../cusTypes-DHjT-9rV.js';
|
|
6
6
|
import { AutumnContextParams } from '../../AutumnContext.js';
|
|
7
7
|
import { TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../../client/types/clientGenTypes.js';
|
|
8
8
|
import { AttachParams, CheckoutParams } from '../../client/types/clientAttachTypes.js';
|
|
9
|
-
import { A as AutumnClient } from '../../ReactAutumnClient-
|
|
10
|
-
import '../../prodTypes
|
|
9
|
+
import { A as AutumnClient } from '../../ReactAutumnClient-BUq9E84_.js';
|
|
10
|
+
import '../../prodTypes--VvnyGlN.js';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'react';
|
|
13
13
|
import '../../client/types/clientEntTypes.js';
|
|
@@ -18,9 +18,9 @@ declare const useAutumnBase: ({ context, client, refetchCustomer, }: {
|
|
|
18
18
|
refetchCustomer?: () => Promise<any>;
|
|
19
19
|
}) => {
|
|
20
20
|
attach: (params: AttachParams) => Promise<Result<{
|
|
21
|
-
customer_id: string;
|
|
22
21
|
code: string;
|
|
23
22
|
message: string;
|
|
23
|
+
customer_id: string;
|
|
24
24
|
product_ids: string[];
|
|
25
25
|
customer_data?: any;
|
|
26
26
|
checkout_url?: string | undefined;
|
|
@@ -398,6 +398,32 @@ var logger = {
|
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
|
|
401
|
+
// src/sdk/features/featureMethods.ts
|
|
402
|
+
var featureMethods = (instance) => {
|
|
403
|
+
return {
|
|
404
|
+
list: () => staticWrapper(listFeatures, instance, {})
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
var listFeatures = async ({
|
|
408
|
+
instance,
|
|
409
|
+
params
|
|
410
|
+
}) => {
|
|
411
|
+
let path = "/features";
|
|
412
|
+
if (params) {
|
|
413
|
+
const queryParams = new URLSearchParams();
|
|
414
|
+
for (const [key, value] of Object.entries(params)) {
|
|
415
|
+
if (value !== void 0) {
|
|
416
|
+
queryParams.append(key, String(value));
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
const queryString = queryParams.toString();
|
|
420
|
+
if (queryString) {
|
|
421
|
+
path += `?${queryString}`;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
return instance.get(path);
|
|
425
|
+
};
|
|
426
|
+
|
|
401
427
|
// src/sdk/client.ts
|
|
402
428
|
var LATEST_API_VERSION = "1.2";
|
|
403
429
|
var Autumn = class {
|
|
@@ -455,10 +481,12 @@ var Autumn = class {
|
|
|
455
481
|
static products = productMethods();
|
|
456
482
|
static entities = entityMethods();
|
|
457
483
|
static referrals = referralMethods();
|
|
484
|
+
static features = featureMethods();
|
|
458
485
|
customers = customerMethods(this);
|
|
459
486
|
products = productMethods(this);
|
|
460
487
|
entities = entityMethods(this);
|
|
461
488
|
referrals = referralMethods(this);
|
|
489
|
+
features = featureMethods(this);
|
|
462
490
|
static checkout = (params) => staticWrapper(handleCheckout, void 0, { params });
|
|
463
491
|
async checkout(params) {
|
|
464
492
|
return handleCheckout({
|