autumn-js 0.1.4 → 0.1.5
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 +30 -30
- package/dist/libraries/backend/better-auth.d.ts +30 -30
- package/dist/libraries/backend/better-auth.js +2 -1
- package/dist/libraries/backend/better-auth.mjs +2 -2
- package/dist/libraries/backend/{chunk-P6KFNVAM.mjs → chunk-2LSEWYPD.mjs} +1 -1
- package/dist/libraries/backend/{chunk-3HEVKGSY.mjs → chunk-WBYCMG34.mjs} +2 -1
- package/dist/libraries/backend/convex.js +2 -1
- package/dist/libraries/backend/convex.mjs +2 -2
- package/dist/libraries/backend/elysia.js +2 -1
- package/dist/libraries/backend/elysia.mjs +2 -2
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +2 -1
- package/dist/libraries/backend/express.mjs +2 -2
- package/dist/libraries/backend/fastify.js +2 -1
- package/dist/libraries/backend/fastify.mjs +2 -2
- package/dist/libraries/backend/hono.js +2 -1
- package/dist/libraries/backend/hono.mjs +2 -2
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/index.js +2 -1
- package/dist/libraries/backend/index.mjs +2 -2
- package/dist/libraries/backend/next.js +2 -1
- package/dist/libraries/backend/next.mjs +2 -2
- package/dist/libraries/backend/react-router.js +2 -1
- package/dist/libraries/backend/react-router.mjs +2 -2
- package/dist/libraries/backend/remix_dep.js +2 -1
- package/dist/libraries/backend/remix_dep.mjs +2 -2
- package/dist/libraries/backend/routes/backendRouter.js +2 -1
- package/dist/libraries/backend/routes/backendRouter.mjs +2 -2
- package/dist/libraries/backend/routes/productRoutes.js +2 -1
- package/dist/libraries/backend/routes/productRoutes.mjs +1 -1
- package/dist/libraries/backend/supabase.js +2 -1
- package/dist/libraries/backend/supabase.mjs +2 -2
- package/dist/libraries/backend/tanstack.js +2 -1
- package/dist/libraries/backend/tanstack.mjs +2 -2
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
- package/dist/libraries/react/{ReactAutumnClient-b59cM6db.d.mts → ReactAutumnClient-BHjd9Tw5.d.mts} +5 -5
- package/dist/libraries/react/{ReactAutumnClient-Dk1xLBOC.d.ts → ReactAutumnClient-DM5ZRTfX.d.ts} +5 -5
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{attachTypes-CcB6xjSF.d.ts → attachTypes-Bz1_JTvk.d.ts} +1 -1
- package/dist/libraries/react/{attachTypes-DqUN3q8s.d.mts → attachTypes-C9FJTCo6.d.mts} +1 -1
- package/dist/libraries/react/{chunk-OTZ65PCT.mjs → chunk-2TQBFCWM.mjs} +4 -4
- package/dist/libraries/react/{chunk-XFNHMA6J.mjs → chunk-33OTK7MB.mjs} +1 -1
- package/dist/libraries/react/{chunk-FEISQQNM.mjs → chunk-5K2M3CQZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-FJWZPMWU.mjs → chunk-BXMZYHE7.mjs} +3 -3
- package/dist/libraries/react/{chunk-ADKXC74U.mjs → chunk-EXK6MS5M.mjs} +442 -440
- package/dist/libraries/react/{chunk-AXQT5O4P.mjs → chunk-F5QUME7S.mjs} +1 -1
- package/dist/libraries/react/{chunk-6TQS3YV6.mjs → chunk-GUDRYJ3O.mjs} +2 -2
- package/dist/libraries/react/{chunk-5X73Q4YJ.mjs → chunk-IM2FNHYV.mjs} +2 -2
- package/dist/libraries/react/{chunk-IUYVVTGM.mjs → chunk-KLSRAX2F.mjs} +1 -1
- package/dist/libraries/react/{chunk-KZQPLQR5.mjs → chunk-KZVVSY52.mjs} +1 -1
- package/dist/libraries/react/{chunk-KUS3X33V.mjs → chunk-M7SUFZ42.mjs} +1 -1
- package/dist/libraries/react/{chunk-YWQTQ72B.mjs → chunk-NHDZWWMZ.mjs} +2 -2
- package/dist/libraries/react/{chunk-K55IHYAQ.mjs → chunk-PGU4IXT7.mjs} +1 -1
- package/dist/libraries/react/{chunk-QNIJJHAD.mjs → chunk-QW2YS3JY.mjs} +1 -1
- package/dist/libraries/react/{chunk-PLEVZHHH.mjs → chunk-TJMYXANS.mjs} +1 -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-NV52XFEQ.mjs → chunk-ZT5TN67S.mjs} +3 -3
- 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.mjs +3 -3
- 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/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.mjs +23 -23
- 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.mjs +23 -23
- 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 +2 -2
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +23 -23
- 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-CSmAk5io.d.mts → cusTypes-DT-gAUL9.d.mts} +1 -1
- package/dist/libraries/react/{cusTypes-DHjT-9rV.d.ts → cusTypes-yJ0fSxbq.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-CoF9enrR.d.ts → entTypes-BPdjCunj.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-S4hkh1RG.d.mts → entTypes-D79XPrxo.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-fEH_nqSm.d.mts → genTypes-BV-Jc6Q1.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-DsiuvyWS.d.ts → genTypes-DJUAkD36.d.ts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +7 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +7 -7
- 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.mjs +5 -5
- 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.mjs +6 -6
- 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.mjs +5 -5
- 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.mjs +6 -6
- 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.mjs +5 -5
- 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.mjs +5 -5
- 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.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/useProductsBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
- package/dist/libraries/react/index.js +2 -2
- package/dist/libraries/react/index.mjs +2 -2
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.mts → prodTypes-2tlu9Pyz.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.ts → prodTypes-2tlu9Pyz.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/libraries/backend/{referralTypes-CYvuZZeF.d.mts → referralTypes-BfrNJ62q.d.mts} +41 -41
- package/dist/libraries/backend/{referralTypes-B0_fYSI3.d.ts → referralTypes-Djyi4iGt.d.ts} +41 -41
- package/dist/libraries/react/{chunk-7TYAAD2T.mjs → chunk-KWNH6C27.mjs} +11 -11
- package/dist/libraries/react/{chunk-EFRTEIEY.mjs → chunk-QV6Q2XXO.mjs} +6 -6
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useCustomerBase
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-KLSRAX2F.mjs";
|
|
6
6
|
import "../chunk-W5XUD2S6.mjs";
|
|
7
7
|
import "../chunk-SFDHYUHA.mjs";
|
|
8
8
|
import "../chunk-7AJBRRXV.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-JVCOY7ZL.mjs";
|
|
12
|
-
import "../chunk-CIBQ4BJU.mjs";
|
|
9
|
+
import "../chunk-TJMYXANS.mjs";
|
|
10
|
+
import "../chunk-QV6Q2XXO.mjs";
|
|
13
11
|
import "../chunk-EK2RMWXP.mjs";
|
|
14
12
|
import "../chunk-V575SGOW.mjs";
|
|
15
13
|
import "../chunk-ZV4RPZTM.mjs";
|
|
14
|
+
import "../chunk-JVCOY7ZL.mjs";
|
|
15
|
+
import "../chunk-CIBQ4BJU.mjs";
|
|
16
16
|
import "../chunk-VTGR7VVK.mjs";
|
|
17
17
|
import "../chunk-WFFVOEUG.mjs";
|
|
18
18
|
import "../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { E as Entity, R as Result, A as AutumnPromise } from '../entTypes-
|
|
1
|
+
import { E as Entity, R as Result, A as AutumnPromise } from '../entTypes-D79XPrxo.mjs';
|
|
2
2
|
import { AttachParams } from '../client/types/clientAttachTypes.mjs';
|
|
3
3
|
import { CheckParams, CancelParams, TrackParams } from '../client/types/clientGenTypes.mjs';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
5
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
6
|
-
import { a as CheckResult } from '../genTypes-
|
|
6
|
+
import { a as CheckResult } from '../genTypes-BV-Jc6Q1.mjs';
|
|
7
7
|
import { GetEntityParams } from '../client/types/clientEntTypes.mjs';
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
import '../prodTypes
|
|
8
|
+
import '../cusTypes-DT-gAUL9.mjs';
|
|
9
|
+
import '../prodTypes-2tlu9Pyz.mjs';
|
|
10
10
|
import 'zod';
|
|
11
11
|
|
|
12
12
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { E as Entity, R as Result, A as AutumnPromise } from '../entTypes-
|
|
1
|
+
import { E as Entity, R as Result, A as AutumnPromise } from '../entTypes-BPdjCunj.js';
|
|
2
2
|
import { AttachParams } from '../client/types/clientAttachTypes.js';
|
|
3
3
|
import { CheckParams, CancelParams, TrackParams } from '../client/types/clientGenTypes.js';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
5
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
6
|
-
import { a as CheckResult } from '../genTypes-
|
|
6
|
+
import { a as CheckResult } from '../genTypes-DJUAkD36.js';
|
|
7
7
|
import { GetEntityParams } from '../client/types/clientEntTypes.js';
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
import '../prodTypes
|
|
8
|
+
import '../cusTypes-yJ0fSxbq.js';
|
|
9
|
+
import '../prodTypes-2tlu9Pyz.js';
|
|
10
10
|
import 'zod';
|
|
11
11
|
|
|
12
12
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useEntity
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-GUDRYJ3O.mjs";
|
|
6
|
+
import "../chunk-F5QUME7S.mjs";
|
|
7
7
|
import "../chunk-W5XUD2S6.mjs";
|
|
8
8
|
import "../chunk-SFDHYUHA.mjs";
|
|
9
9
|
import "../chunk-7AJBRRXV.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-JVCOY7ZL.mjs";
|
|
13
|
-
import "../chunk-CIBQ4BJU.mjs";
|
|
10
|
+
import "../chunk-TJMYXANS.mjs";
|
|
11
|
+
import "../chunk-QV6Q2XXO.mjs";
|
|
14
12
|
import "../chunk-EK2RMWXP.mjs";
|
|
15
13
|
import "../chunk-V575SGOW.mjs";
|
|
16
14
|
import "../chunk-ZV4RPZTM.mjs";
|
|
15
|
+
import "../chunk-JVCOY7ZL.mjs";
|
|
16
|
+
import "../chunk-CIBQ4BJU.mjs";
|
|
17
17
|
import "../chunk-VTGR7VVK.mjs";
|
|
18
18
|
import "../chunk-WFFVOEUG.mjs";
|
|
19
19
|
import "../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { E as Entity, R as Result, A as AutumnPromise } from '../entTypes-
|
|
1
|
+
import { E as Entity, R as Result, A as AutumnPromise } from '../entTypes-D79XPrxo.mjs';
|
|
2
2
|
import * as swr from 'swr';
|
|
3
3
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
4
|
-
import { a as CheckResult } from '../genTypes-
|
|
4
|
+
import { a as CheckResult } from '../genTypes-BV-Jc6Q1.mjs';
|
|
5
5
|
import { GetEntityParams } from '../client/types/clientEntTypes.mjs';
|
|
6
6
|
import { AutumnContextParams } from '../AutumnContext.mjs';
|
|
7
7
|
import { CheckParams, CancelParams, TrackParams } from '../client/types/clientGenTypes.mjs';
|
|
8
8
|
import { AttachParams } from '../client/types/clientAttachTypes.mjs';
|
|
9
|
-
import '../cusTypes-
|
|
10
|
-
import '../prodTypes
|
|
9
|
+
import '../cusTypes-DT-gAUL9.mjs';
|
|
10
|
+
import '../prodTypes-2tlu9Pyz.mjs';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'react';
|
|
13
|
-
import '../ReactAutumnClient-
|
|
14
|
-
import '../attachTypes-
|
|
13
|
+
import '../ReactAutumnClient-BHjd9Tw5.mjs';
|
|
14
|
+
import '../attachTypes-C9FJTCo6.mjs';
|
|
15
15
|
|
|
16
16
|
declare const useEntityBase: ({ entityId, params, AutumnContext, }: {
|
|
17
17
|
entityId: string | null;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { E as Entity, R as Result, A as AutumnPromise } from '../entTypes-
|
|
1
|
+
import { E as Entity, R as Result, A as AutumnPromise } from '../entTypes-BPdjCunj.js';
|
|
2
2
|
import * as swr from 'swr';
|
|
3
3
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
4
|
-
import { a as CheckResult } from '../genTypes-
|
|
4
|
+
import { a as CheckResult } from '../genTypes-DJUAkD36.js';
|
|
5
5
|
import { GetEntityParams } from '../client/types/clientEntTypes.js';
|
|
6
6
|
import { AutumnContextParams } from '../AutumnContext.js';
|
|
7
7
|
import { CheckParams, CancelParams, TrackParams } from '../client/types/clientGenTypes.js';
|
|
8
8
|
import { AttachParams } from '../client/types/clientAttachTypes.js';
|
|
9
|
-
import '../cusTypes-
|
|
10
|
-
import '../prodTypes
|
|
9
|
+
import '../cusTypes-yJ0fSxbq.js';
|
|
10
|
+
import '../prodTypes-2tlu9Pyz.js';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'react';
|
|
13
|
-
import '../ReactAutumnClient-
|
|
14
|
-
import '../attachTypes-
|
|
13
|
+
import '../ReactAutumnClient-DM5ZRTfX.js';
|
|
14
|
+
import '../attachTypes-Bz1_JTvk.js';
|
|
15
15
|
|
|
16
16
|
declare const useEntityBase: ({ entityId, params, AutumnContext, }: {
|
|
17
17
|
entityId: string | null;
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useEntityBase
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-F5QUME7S.mjs";
|
|
6
6
|
import "../chunk-W5XUD2S6.mjs";
|
|
7
7
|
import "../chunk-SFDHYUHA.mjs";
|
|
8
8
|
import "../chunk-7AJBRRXV.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-JVCOY7ZL.mjs";
|
|
12
|
-
import "../chunk-CIBQ4BJU.mjs";
|
|
9
|
+
import "../chunk-TJMYXANS.mjs";
|
|
10
|
+
import "../chunk-QV6Q2XXO.mjs";
|
|
13
11
|
import "../chunk-EK2RMWXP.mjs";
|
|
14
12
|
import "../chunk-V575SGOW.mjs";
|
|
15
13
|
import "../chunk-ZV4RPZTM.mjs";
|
|
14
|
+
import "../chunk-JVCOY7ZL.mjs";
|
|
15
|
+
import "../chunk-CIBQ4BJU.mjs";
|
|
16
16
|
import "../chunk-VTGR7VVK.mjs";
|
|
17
17
|
import "../chunk-WFFVOEUG.mjs";
|
|
18
18
|
import "../chunk-ZF2HUCN6.mjs";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePaywall
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-JVCOY7ZL.mjs";
|
|
9
|
-
import "../chunk-CIBQ4BJU.mjs";
|
|
5
|
+
} from "../chunk-PGU4IXT7.mjs";
|
|
6
|
+
import "../chunk-TJMYXANS.mjs";
|
|
7
|
+
import "../chunk-QV6Q2XXO.mjs";
|
|
10
8
|
import "../chunk-EK2RMWXP.mjs";
|
|
11
9
|
import "../chunk-V575SGOW.mjs";
|
|
12
10
|
import "../chunk-ZV4RPZTM.mjs";
|
|
11
|
+
import "../chunk-JVCOY7ZL.mjs";
|
|
12
|
+
import "../chunk-CIBQ4BJU.mjs";
|
|
13
13
|
import "../chunk-VTGR7VVK.mjs";
|
|
14
14
|
import "../chunk-WFFVOEUG.mjs";
|
|
15
15
|
import "../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { P as Product } from '../prodTypes
|
|
3
|
+
import { P as Product } from '../prodTypes-2tlu9Pyz.mjs';
|
|
4
4
|
import { ProductDetails } from '../client/types/clientPricingTableTypes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { P as Product } from '../prodTypes
|
|
3
|
+
import { P as Product } from '../prodTypes-2tlu9Pyz.js';
|
|
4
4
|
import { ProductDetails } from '../client/types/clientPricingTableTypes.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePricingTable
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-QW2YS3JY.mjs";
|
|
6
6
|
import "../chunk-7AJBRRXV.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-JVCOY7ZL.mjs";
|
|
10
|
-
import "../chunk-CIBQ4BJU.mjs";
|
|
7
|
+
import "../chunk-TJMYXANS.mjs";
|
|
8
|
+
import "../chunk-QV6Q2XXO.mjs";
|
|
11
9
|
import "../chunk-EK2RMWXP.mjs";
|
|
12
10
|
import "../chunk-V575SGOW.mjs";
|
|
13
11
|
import "../chunk-ZV4RPZTM.mjs";
|
|
12
|
+
import "../chunk-JVCOY7ZL.mjs";
|
|
13
|
+
import "../chunk-CIBQ4BJU.mjs";
|
|
14
14
|
import "../chunk-VTGR7VVK.mjs";
|
|
15
15
|
import "../chunk-WFFVOEUG.mjs";
|
|
16
16
|
import "../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { P as Product } from '../prodTypes
|
|
3
|
+
import { P as Product } from '../prodTypes-2tlu9Pyz.mjs';
|
|
4
4
|
import { ProductDetails } from '../client/types/clientPricingTableTypes.mjs';
|
|
5
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
5
|
+
import { A as AutumnClient } from '../ReactAutumnClient-BHjd9Tw5.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../client/types/clientEntTypes.mjs';
|
|
8
8
|
import '../client/types/clientGenTypes.mjs';
|
|
9
|
-
import '../genTypes-
|
|
10
|
-
import '../attachTypes-
|
|
11
|
-
import '../entTypes-
|
|
12
|
-
import '../cusTypes-
|
|
9
|
+
import '../genTypes-BV-Jc6Q1.mjs';
|
|
10
|
+
import '../attachTypes-C9FJTCo6.mjs';
|
|
11
|
+
import '../entTypes-D79XPrxo.mjs';
|
|
12
|
+
import '../cusTypes-DT-gAUL9.mjs';
|
|
13
13
|
|
|
14
14
|
declare const usePricingTableBase: ({ client, params, }: {
|
|
15
15
|
client: AutumnClient;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { P as Product } from '../prodTypes
|
|
3
|
+
import { P as Product } from '../prodTypes-2tlu9Pyz.js';
|
|
4
4
|
import { ProductDetails } from '../client/types/clientPricingTableTypes.js';
|
|
5
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
5
|
+
import { A as AutumnClient } from '../ReactAutumnClient-DM5ZRTfX.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../client/types/clientEntTypes.js';
|
|
8
8
|
import '../client/types/clientGenTypes.js';
|
|
9
|
-
import '../genTypes-
|
|
10
|
-
import '../attachTypes-
|
|
11
|
-
import '../entTypes-
|
|
12
|
-
import '../cusTypes-
|
|
9
|
+
import '../genTypes-DJUAkD36.js';
|
|
10
|
+
import '../attachTypes-Bz1_JTvk.js';
|
|
11
|
+
import '../entTypes-BPdjCunj.js';
|
|
12
|
+
import '../cusTypes-yJ0fSxbq.js';
|
|
13
13
|
|
|
14
14
|
declare const usePricingTableBase: ({ client, params, }: {
|
|
15
15
|
client: AutumnClient;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { P as Product } from '../prodTypes
|
|
2
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { P as Product } from '../prodTypes-2tlu9Pyz.mjs';
|
|
2
|
+
import { A as AutumnClient } from '../ReactAutumnClient-BHjd9Tw5.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../client/types/clientEntTypes.mjs';
|
|
5
5
|
import '../client/types/clientGenTypes.mjs';
|
|
6
6
|
import '../error-DHbclCVh.mjs';
|
|
7
|
-
import '../genTypes-
|
|
8
|
-
import '../attachTypes-
|
|
9
|
-
import '../entTypes-
|
|
10
|
-
import '../cusTypes-
|
|
7
|
+
import '../genTypes-BV-Jc6Q1.mjs';
|
|
8
|
+
import '../attachTypes-C9FJTCo6.mjs';
|
|
9
|
+
import '../entTypes-D79XPrxo.mjs';
|
|
10
|
+
import '../cusTypes-DT-gAUL9.mjs';
|
|
11
11
|
|
|
12
12
|
declare const useProductsBase: ({ client }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { P as Product } from '../prodTypes
|
|
2
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { P as Product } from '../prodTypes-2tlu9Pyz.js';
|
|
2
|
+
import { A as AutumnClient } from '../ReactAutumnClient-DM5ZRTfX.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../client/types/clientEntTypes.js';
|
|
5
5
|
import '../client/types/clientGenTypes.js';
|
|
6
6
|
import '../error-DHbclCVh.js';
|
|
7
|
-
import '../genTypes-
|
|
8
|
-
import '../attachTypes-
|
|
9
|
-
import '../entTypes-
|
|
10
|
-
import '../cusTypes-
|
|
7
|
+
import '../genTypes-DJUAkD36.js';
|
|
8
|
+
import '../attachTypes-Bz1_JTvk.js';
|
|
9
|
+
import '../entTypes-BPdjCunj.js';
|
|
10
|
+
import '../cusTypes-yJ0fSxbq.js';
|
|
11
11
|
|
|
12
12
|
declare const useProductsBase: ({ client }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -10794,7 +10794,7 @@ var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
|
10794
10794
|
function PricingTable({
|
|
10795
10795
|
productDetails
|
|
10796
10796
|
}) {
|
|
10797
|
-
const { checkout } = useCustomer();
|
|
10797
|
+
const { customer, checkout } = useCustomer({ errorOnNotFound: false });
|
|
10798
10798
|
const [isAnnual, setIsAnnual] = (0, import_react16.useState)(false);
|
|
10799
10799
|
const { products, isLoading, error } = usePricingTable({ productDetails });
|
|
10800
10800
|
if (isLoading) {
|
|
@@ -10836,7 +10836,7 @@ function PricingTable({
|
|
|
10836
10836
|
buttonProps: {
|
|
10837
10837
|
disabled: product.scenario === "active" && !product.properties.updateable || product.scenario === "scheduled",
|
|
10838
10838
|
onClick: async () => {
|
|
10839
|
-
if (product.id) {
|
|
10839
|
+
if (product.id && customer) {
|
|
10840
10840
|
await checkout({
|
|
10841
10841
|
productId: product.id,
|
|
10842
10842
|
dialog: CheckoutDialog
|
|
@@ -10750,7 +10750,7 @@ import { Fragment as Fragment8, jsx as jsx29, jsxs as jsxs9 } from "react/jsx-ru
|
|
|
10750
10750
|
function PricingTable({
|
|
10751
10751
|
productDetails
|
|
10752
10752
|
}) {
|
|
10753
|
-
const { checkout } = useCustomer();
|
|
10753
|
+
const { customer, checkout } = useCustomer({ errorOnNotFound: false });
|
|
10754
10754
|
const [isAnnual, setIsAnnual] = useState19(false);
|
|
10755
10755
|
const { products, isLoading, error } = usePricingTable({ productDetails });
|
|
10756
10756
|
if (isLoading) {
|
|
@@ -10792,7 +10792,7 @@ function PricingTable({
|
|
|
10792
10792
|
buttonProps: {
|
|
10793
10793
|
disabled: product.scenario === "active" && !product.properties.updateable || product.scenario === "scheduled",
|
|
10794
10794
|
onClick: async () => {
|
|
10795
|
-
if (product.id) {
|
|
10795
|
+
if (product.id && customer) {
|
|
10796
10796
|
await checkout({
|
|
10797
10797
|
productId: product.id,
|
|
10798
10798
|
dialog: CheckoutDialog
|
|
@@ -251,4 +251,4 @@ interface Product {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type
|
|
254
|
+
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type CheckFeatureResult as a, type CheckProductResult as b, type ProductItem as c, ProductItemInterval as d, type ProductScenario as e };
|
|
@@ -251,4 +251,4 @@ interface Product {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type
|
|
254
|
+
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type CheckFeatureResult as a, type CheckProductResult as b, type ProductItem as c, ProductItemInterval as d, type ProductScenario as e };
|
package/package.json
CHANGED
package/dist/libraries/backend/{referralTypes-CYvuZZeF.d.mts → referralTypes-BfrNJ62q.d.mts}
RENAMED
|
@@ -78,12 +78,12 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
78
78
|
credit_amount: number;
|
|
79
79
|
}>, "many">>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
allowed: boolean;
|
|
82
|
-
feature_id: string;
|
|
83
81
|
customer_id: string;
|
|
82
|
+
feature_id: string;
|
|
84
83
|
required_balance: number;
|
|
85
|
-
|
|
84
|
+
allowed: boolean;
|
|
86
85
|
entity_id?: string | undefined;
|
|
86
|
+
usage_limit?: number | undefined;
|
|
87
87
|
unlimited?: boolean | undefined;
|
|
88
88
|
interval?: ProductItemInterval | undefined;
|
|
89
89
|
balance?: number | null | undefined;
|
|
@@ -107,12 +107,12 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
107
107
|
credit_amount: number;
|
|
108
108
|
}[] | undefined;
|
|
109
109
|
}, {
|
|
110
|
-
allowed: boolean;
|
|
111
|
-
feature_id: string;
|
|
112
110
|
customer_id: string;
|
|
111
|
+
feature_id: string;
|
|
113
112
|
required_balance: number;
|
|
114
|
-
|
|
113
|
+
allowed: boolean;
|
|
115
114
|
entity_id?: string | undefined;
|
|
115
|
+
usage_limit?: number | undefined;
|
|
116
116
|
unlimited?: boolean | undefined;
|
|
117
117
|
interval?: ProductItemInterval | undefined;
|
|
118
118
|
balance?: number | null | undefined;
|
|
@@ -421,19 +421,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
421
421
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
422
422
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
423
423
|
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
|
|
424
|
+
metadata?: Record<string, any> | undefined;
|
|
425
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
425
426
|
name?: string | null | undefined;
|
|
426
427
|
email?: string | null | undefined;
|
|
427
428
|
fingerprint?: string | null | undefined;
|
|
429
|
+
id?: string | null | undefined;
|
|
430
|
+
}, {
|
|
428
431
|
metadata?: Record<string, any> | undefined;
|
|
429
432
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
430
|
-
}, {
|
|
431
|
-
id?: string | null | undefined;
|
|
432
433
|
name?: string | null | undefined;
|
|
433
434
|
email?: string | null | undefined;
|
|
434
435
|
fingerprint?: string | null | undefined;
|
|
435
|
-
|
|
436
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
436
|
+
id?: string | null | undefined;
|
|
437
437
|
}>;
|
|
438
438
|
type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
|
|
439
439
|
interface UpdateCustomerParams {
|
|
@@ -515,18 +515,18 @@ declare const TrackParamsSchema: z.ZodObject<{
|
|
|
515
515
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
516
516
|
}, "strip", z.ZodTypeAny, {
|
|
517
517
|
customer_id: string;
|
|
518
|
-
feature_id?: string | undefined;
|
|
519
|
-
entity_id?: string | undefined;
|
|
520
518
|
value?: number | undefined;
|
|
519
|
+
entity_id?: string | undefined;
|
|
520
|
+
feature_id?: string | undefined;
|
|
521
521
|
customer_data?: any;
|
|
522
522
|
entity_data?: any;
|
|
523
523
|
event_name?: string | undefined;
|
|
524
524
|
idempotency_key?: string | undefined;
|
|
525
525
|
}, {
|
|
526
526
|
customer_id: string;
|
|
527
|
-
feature_id?: string | undefined;
|
|
528
|
-
entity_id?: string | undefined;
|
|
529
527
|
value?: number | undefined;
|
|
528
|
+
entity_id?: string | undefined;
|
|
529
|
+
feature_id?: string | undefined;
|
|
530
530
|
customer_data?: any;
|
|
531
531
|
entity_data?: any;
|
|
532
532
|
event_name?: string | undefined;
|
|
@@ -554,28 +554,28 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
554
554
|
}>>;
|
|
555
555
|
}, "strip", z.ZodTypeAny, {
|
|
556
556
|
customer_id: string;
|
|
557
|
-
feature_id?: string | undefined;
|
|
558
|
-
entity_id?: string | undefined;
|
|
559
|
-
required_balance?: number | undefined;
|
|
560
557
|
product_id?: string | undefined;
|
|
558
|
+
entity_id?: string | undefined;
|
|
559
|
+
feature_id?: string | undefined;
|
|
561
560
|
customer_data?: any;
|
|
562
561
|
entity_data?: {
|
|
563
562
|
feature_id: string;
|
|
564
563
|
name?: string | undefined;
|
|
565
564
|
} | undefined;
|
|
565
|
+
required_balance?: number | undefined;
|
|
566
566
|
send_event?: boolean | undefined;
|
|
567
567
|
with_preview?: boolean | undefined;
|
|
568
568
|
}, {
|
|
569
569
|
customer_id: string;
|
|
570
|
-
feature_id?: string | undefined;
|
|
571
|
-
entity_id?: string | undefined;
|
|
572
|
-
required_balance?: number | undefined;
|
|
573
570
|
product_id?: string | undefined;
|
|
571
|
+
entity_id?: string | undefined;
|
|
572
|
+
feature_id?: string | undefined;
|
|
574
573
|
customer_data?: any;
|
|
575
574
|
entity_data?: {
|
|
576
575
|
feature_id: string;
|
|
577
576
|
name?: string | undefined;
|
|
578
577
|
} | undefined;
|
|
578
|
+
required_balance?: number | undefined;
|
|
579
579
|
send_event?: boolean | undefined;
|
|
580
580
|
with_preview?: boolean | undefined;
|
|
581
581
|
}>;
|
|
@@ -606,12 +606,12 @@ declare const QueryParamsSchema: z.ZodObject<{
|
|
|
606
606
|
feature_id: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
607
607
|
range: z.ZodOptional<z.ZodEnum<["24h", "7d", "30d", "90d", "last_cycle"]>>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
|
-
feature_id: string | string[];
|
|
610
609
|
customer_id: string;
|
|
610
|
+
feature_id: string | string[];
|
|
611
611
|
range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
|
|
612
612
|
}, {
|
|
613
|
-
feature_id: string | string[];
|
|
614
613
|
customer_id: string;
|
|
614
|
+
feature_id: string | string[];
|
|
615
615
|
range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
|
|
616
616
|
}>;
|
|
617
617
|
type QueryParams = z.infer<typeof QueryParamsSchema>;
|
|
@@ -671,17 +671,14 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
671
671
|
reward: z.ZodOptional<z.ZodString>;
|
|
672
672
|
}, "strip", z.ZodTypeAny, {
|
|
673
673
|
customer_id: string;
|
|
674
|
-
entity_id?: string | undefined;
|
|
675
674
|
options?: {
|
|
676
675
|
feature_id: string;
|
|
677
676
|
quantity: number;
|
|
678
677
|
}[] | undefined;
|
|
679
678
|
metadata?: Record<string, string> | undefined;
|
|
680
679
|
product_id?: string | undefined;
|
|
681
|
-
|
|
682
|
-
free_trial?: boolean | undefined;
|
|
680
|
+
entity_id?: string | undefined;
|
|
683
681
|
success_url?: string | undefined;
|
|
684
|
-
force_checkout?: boolean | undefined;
|
|
685
682
|
customer_data?: {
|
|
686
683
|
name?: string | null | undefined;
|
|
687
684
|
email?: string | null | undefined;
|
|
@@ -690,19 +687,19 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
690
687
|
entity_data?: any;
|
|
691
688
|
checkout_session_params?: Record<string, any> | undefined;
|
|
692
689
|
reward?: string | undefined;
|
|
690
|
+
product_ids?: string[] | undefined;
|
|
691
|
+
free_trial?: boolean | undefined;
|
|
692
|
+
force_checkout?: boolean | undefined;
|
|
693
693
|
}, {
|
|
694
694
|
customer_id: string;
|
|
695
|
-
entity_id?: string | undefined;
|
|
696
695
|
options?: {
|
|
697
696
|
feature_id: string;
|
|
698
697
|
quantity: number;
|
|
699
698
|
}[] | undefined;
|
|
700
699
|
metadata?: Record<string, string> | undefined;
|
|
701
700
|
product_id?: string | undefined;
|
|
702
|
-
|
|
703
|
-
free_trial?: boolean | undefined;
|
|
701
|
+
entity_id?: string | undefined;
|
|
704
702
|
success_url?: string | undefined;
|
|
705
|
-
force_checkout?: boolean | undefined;
|
|
706
703
|
customer_data?: {
|
|
707
704
|
name?: string | null | undefined;
|
|
708
705
|
email?: string | null | undefined;
|
|
@@ -711,6 +708,9 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
711
708
|
entity_data?: any;
|
|
712
709
|
checkout_session_params?: Record<string, any> | undefined;
|
|
713
710
|
reward?: string | undefined;
|
|
711
|
+
product_ids?: string[] | undefined;
|
|
712
|
+
free_trial?: boolean | undefined;
|
|
713
|
+
force_checkout?: boolean | undefined;
|
|
714
714
|
}>;
|
|
715
715
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
716
716
|
declare const CheckoutParamsSchema: z.ZodObject<{
|
|
@@ -747,11 +747,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
747
747
|
}, "strip", z.ZodTypeAny, {
|
|
748
748
|
customer_id: string;
|
|
749
749
|
product_id: string;
|
|
750
|
-
entity_id?: string | undefined;
|
|
751
750
|
options?: {
|
|
752
751
|
feature_id: string;
|
|
753
752
|
quantity: number;
|
|
754
753
|
}[] | undefined;
|
|
754
|
+
entity_id?: string | undefined;
|
|
755
755
|
success_url?: string | undefined;
|
|
756
756
|
customer_data?: {
|
|
757
757
|
name?: string | null | undefined;
|
|
@@ -764,11 +764,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
|
|
|
764
764
|
}, {
|
|
765
765
|
customer_id: string;
|
|
766
766
|
product_id: string;
|
|
767
|
-
entity_id?: string | undefined;
|
|
768
767
|
options?: {
|
|
769
768
|
feature_id: string;
|
|
770
769
|
quantity: number;
|
|
771
770
|
}[] | undefined;
|
|
771
|
+
entity_id?: string | undefined;
|
|
772
772
|
success_url?: string | undefined;
|
|
773
773
|
customer_data?: {
|
|
774
774
|
name?: string | null | undefined;
|
|
@@ -870,18 +870,18 @@ declare class Autumn {
|
|
|
870
870
|
static checkout: (params: CheckoutParams) => Promise<Result<CheckoutResult, AutumnError>>;
|
|
871
871
|
checkout(params: CheckoutParams): Promise<Result<CheckoutResult, AutumnError>>;
|
|
872
872
|
static attach: (params: AttachParams) => Promise<Result<{
|
|
873
|
-
customer_id: string;
|
|
874
|
-
code: string;
|
|
875
873
|
message: string;
|
|
874
|
+
code: string;
|
|
875
|
+
customer_id: string;
|
|
876
876
|
product_ids: string[];
|
|
877
877
|
customer_data?: any;
|
|
878
878
|
checkout_url?: string | undefined;
|
|
879
879
|
}, AutumnError>>;
|
|
880
880
|
static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
|
|
881
881
|
attach(params: AttachParams): Promise<Result<{
|
|
882
|
-
customer_id: string;
|
|
883
|
-
code: string;
|
|
884
882
|
message: string;
|
|
883
|
+
code: string;
|
|
884
|
+
customer_id: string;
|
|
885
885
|
product_ids: string[];
|
|
886
886
|
customer_data?: any;
|
|
887
887
|
checkout_url?: string | undefined;
|
|
@@ -901,15 +901,15 @@ declare class Autumn {
|
|
|
901
901
|
static check: (params: CheckParams) => Promise<Result<CheckResult, AutumnError>>;
|
|
902
902
|
check(params: CheckParams): Promise<Result<CheckResult, AutumnError>>;
|
|
903
903
|
static track: (params: TrackParams) => Promise<Result<{
|
|
904
|
-
customer_id: string;
|
|
905
904
|
code: string;
|
|
905
|
+
customer_id: string;
|
|
906
906
|
id: string;
|
|
907
907
|
feature_id?: string | undefined;
|
|
908
908
|
event_name?: string | undefined;
|
|
909
909
|
}, AutumnError>>;
|
|
910
910
|
track(params: TrackParams): Promise<Result<{
|
|
911
|
-
customer_id: string;
|
|
912
911
|
code: string;
|
|
912
|
+
customer_id: string;
|
|
913
913
|
id: string;
|
|
914
914
|
feature_id?: string | undefined;
|
|
915
915
|
event_name?: string | undefined;
|
|
@@ -979,11 +979,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
|
|
|
979
979
|
code: z.ZodString;
|
|
980
980
|
customer_id: z.ZodString;
|
|
981
981
|
}, "strip", z.ZodTypeAny, {
|
|
982
|
-
customer_id: string;
|
|
983
982
|
code: string;
|
|
984
|
-
}, {
|
|
985
983
|
customer_id: string;
|
|
984
|
+
}, {
|
|
986
985
|
code: string;
|
|
986
|
+
customer_id: string;
|
|
987
987
|
}>;
|
|
988
988
|
type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
|
|
989
989
|
|