autumn-js 0.0.92 → 0.0.93
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/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/{referralTypes-KJHGHDgD.d.ts → referralTypes-BAYl5TR1.d.ts} +18 -18
- package/dist/libraries/backend/{referralTypes-C_LRkLGP.d.mts → referralTypes-ecz_wESO.d.mts} +18 -18
- 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 +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +2 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-PGnPqPkr.d.ts → ReactAutumnClient-GEzKNujl.d.ts} +8 -8
- package/dist/libraries/react/{ReactAutumnClient-BmHGkNH1.d.mts → ReactAutumnClient-Z3DcfZ0x.d.mts} +8 -8
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +2 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{chunk-RZW3QO6B.mjs → chunk-3WP2MI55.mjs} +2 -2
- package/dist/libraries/react/{chunk-SDZ5NW6G.mjs → chunk-6JOSRG5Z.mjs} +2 -2
- package/dist/libraries/react/{chunk-TCCWWPEC.mjs → chunk-CHQRTGXF.mjs} +2 -2
- package/dist/libraries/react/{chunk-6SDVW33H.mjs → chunk-CRIKYVUD.mjs} +4 -3
- package/dist/libraries/react/{chunk-Y6RO4AM2.mjs → chunk-CZAXPWHV.mjs} +277 -277
- package/dist/libraries/react/{chunk-PJK6OPCU.mjs → chunk-GK75OJJJ.mjs} +2 -2
- package/dist/libraries/react/{chunk-HL4JNKWK.mjs → chunk-ITN754AD.mjs} +1 -1
- package/dist/libraries/react/{chunk-VH4FTCAC.mjs → chunk-QTEFT7SA.mjs} +2 -2
- package/dist/libraries/react/{chunk-OGFFPM5T.mjs → chunk-SJAAUTL2.mjs} +2 -2
- package/dist/libraries/react/{chunk-LPJSRHPQ.mjs → chunk-TBKIB6DH.mjs} +1 -1
- package/dist/libraries/react/{chunk-L3IZ2O3T.mjs → chunk-TD6CFKDQ.mjs} +3 -3
- package/dist/libraries/react/{chunk-DIJJCQ2N.mjs → chunk-UHUADKEF.mjs} +3 -3
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +12 -12
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +12 -12
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +2 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +18 -18
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-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 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +18 -18
- 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/{cusTypes-WaPJKeAb.d.ts → cusTypes-DUC0TrK5.d.mts} +1 -1
- package/dist/libraries/react/{cusTypes-WaPJKeAb.d.mts → cusTypes-DUC0TrK5.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-D01S8gFX.d.ts → entTypes-Ddl0CGp9.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-aIV0QUCW.d.mts → entTypes-Mq0F4CAa.d.mts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.js +2 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.js +2 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- 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 +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
- package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
- package/dist/libraries/react/index.js +2 -1
- package/dist/libraries/react/index.mjs +2 -1
- package/dist/libraries/react/{response-CvPzWrT9.d.ts → response-B8Tq3x66.d.ts} +3 -3
- package/dist/libraries/react/{response-Bt5OMm4y.d.mts → response-CMrRLv9c.d.mts} +3 -3
- package/dist/next/client/NextAutumnClient.d.mts +6 -6
- package/dist/next/client/NextAutumnClient.d.ts +6 -6
- package/dist/next/client/hooks/useAutumn.d.mts +1 -1
- package/dist/next/client/hooks/useAutumn.d.ts +1 -1
- package/dist/next/client/hooks/useCustomer.d.mts +1 -1
- package/dist/next/client/hooks/useCustomer.d.ts +1 -1
- package/dist/next/client/hooks/useEntity.d.mts +1 -1
- package/dist/next/client/hooks/useEntity.d.ts +1 -1
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-NCPXL3J2.mjs → chunk-QAHVMSK4.mjs} +13 -13
- package/dist/next/client/{clientGenTypes-BPjTbeG-.d.mts → clientGenTypes-DWrGEdrD.d.mts} +12 -12
- package/dist/next/client/{clientGenTypes-Bqecpl58.d.ts → clientGenTypes-D_Ea92Du.d.ts} +12 -12
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
|
-
import { A as AutumnPromise, b as CheckResult, C as CancelResult, T as TrackResult } from '../response-
|
|
3
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AutumnPromise, b as CheckResult, C as CancelResult, T as TrackResult } from '../response-CMrRLv9c.mjs';
|
|
3
|
+
import { E as Entity } from '../entTypes-Mq0F4CAa.mjs';
|
|
4
4
|
import { GetEntityParams } from '../client/types/clientEntTypes.mjs';
|
|
5
5
|
import { AutumnContextParams } from '../AutumnContext.mjs';
|
|
6
6
|
import { AllowedParams } from './handleAllowed.mjs';
|
|
7
7
|
import { CheckParams, AttachParams, CancelParams, TrackParams } from '../client/types/clientGenTypes.mjs';
|
|
8
|
-
import '../cusTypes-
|
|
8
|
+
import '../cusTypes-DUC0TrK5.mjs';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../error-DHbclCVh.mjs';
|
|
11
11
|
import 'react';
|
|
12
|
-
import '../ReactAutumnClient-
|
|
12
|
+
import '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
13
13
|
|
|
14
14
|
declare const useEntityBase: ({ entityId, params, AutumnContext, }: {
|
|
15
15
|
entityId: string | null;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
|
-
import { A as AutumnPromise, b as CheckResult, C as CancelResult, T as TrackResult } from '../response-
|
|
3
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AutumnPromise, b as CheckResult, C as CancelResult, T as TrackResult } from '../response-B8Tq3x66.js';
|
|
3
|
+
import { E as Entity } from '../entTypes-Ddl0CGp9.js';
|
|
4
4
|
import { GetEntityParams } from '../client/types/clientEntTypes.js';
|
|
5
5
|
import { AutumnContextParams } from '../AutumnContext.js';
|
|
6
6
|
import { AllowedParams } from './handleAllowed.js';
|
|
7
7
|
import { CheckParams, AttachParams, CancelParams, TrackParams } from '../client/types/clientGenTypes.js';
|
|
8
|
-
import '../cusTypes-
|
|
8
|
+
import '../cusTypes-DUC0TrK5.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../error-DHbclCVh.js';
|
|
11
11
|
import 'react';
|
|
12
|
-
import '../ReactAutumnClient-
|
|
12
|
+
import '../ReactAutumnClient-GEzKNujl.js';
|
|
13
13
|
|
|
14
14
|
declare const useEntityBase: ({ entityId, params, AutumnContext, }: {
|
|
15
15
|
entityId: string | null;
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useEntityBase
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TBKIB6DH.mjs";
|
|
6
6
|
import "../chunk-3JJC2VU5.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-V5PKOA5A.mjs";
|
|
12
|
-
import "../chunk-JNM4BLTM.mjs";
|
|
7
|
+
import "../chunk-3WP2MI55.mjs";
|
|
8
|
+
import "../chunk-CHQRTGXF.mjs";
|
|
9
|
+
import "../chunk-ITN754AD.mjs";
|
|
10
|
+
import "../chunk-QAHVMSK4.mjs";
|
|
13
11
|
import "../chunk-YUV2Y2RW.mjs";
|
|
14
12
|
import "../chunk-3EYF7OI5.mjs";
|
|
15
|
-
import "../chunk-KQT5G3HT.mjs";
|
|
16
13
|
import "../chunk-JVCOY7ZL.mjs";
|
|
17
14
|
import "../chunk-CIBQ4BJU.mjs";
|
|
18
15
|
import "../chunk-NZ5PEXT2.mjs";
|
|
19
16
|
import "../chunk-TGX6UKKS.mjs";
|
|
17
|
+
import "../chunk-V5PKOA5A.mjs";
|
|
18
|
+
import "../chunk-JNM4BLTM.mjs";
|
|
19
|
+
import "../chunk-KQT5G3HT.mjs";
|
|
20
20
|
export {
|
|
21
21
|
useEntityBase
|
|
22
22
|
};
|
|
@@ -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 '../cusTypes-
|
|
3
|
+
import { P as Product } from '../cusTypes-DUC0TrK5.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 '../cusTypes-
|
|
3
|
+
import { P as Product } from '../cusTypes-DUC0TrK5.js';
|
|
4
4
|
import { ProductDetails } from '../client/types/clientPricingTableTypes.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePricingTable
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-V5PKOA5A.mjs";
|
|
10
|
-
import "../chunk-JNM4BLTM.mjs";
|
|
5
|
+
} from "../chunk-GK75OJJJ.mjs";
|
|
6
|
+
import "../chunk-CHQRTGXF.mjs";
|
|
7
|
+
import "../chunk-ITN754AD.mjs";
|
|
8
|
+
import "../chunk-QAHVMSK4.mjs";
|
|
11
9
|
import "../chunk-YUV2Y2RW.mjs";
|
|
12
10
|
import "../chunk-3EYF7OI5.mjs";
|
|
13
|
-
import "../chunk-KQT5G3HT.mjs";
|
|
14
11
|
import "../chunk-JVCOY7ZL.mjs";
|
|
15
12
|
import "../chunk-CIBQ4BJU.mjs";
|
|
16
13
|
import "../chunk-NZ5PEXT2.mjs";
|
|
17
14
|
import "../chunk-TGX6UKKS.mjs";
|
|
15
|
+
import "../chunk-V5PKOA5A.mjs";
|
|
16
|
+
import "../chunk-JNM4BLTM.mjs";
|
|
17
|
+
import "../chunk-KQT5G3HT.mjs";
|
|
18
18
|
export {
|
|
19
19
|
usePricingTable
|
|
20
20
|
};
|
|
@@ -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 '../cusTypes-
|
|
3
|
+
import { P as Product } from '../cusTypes-DUC0TrK5.mjs';
|
|
4
4
|
import { ProductDetails } from '../client/types/clientPricingTableTypes.mjs';
|
|
5
5
|
import { AutumnContextParams } from '../AutumnContext.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import 'react';
|
|
8
|
-
import '../ReactAutumnClient-
|
|
8
|
+
import '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
9
9
|
import '../client/types/clientEntTypes.mjs';
|
|
10
10
|
import '../client/types/clientGenTypes.mjs';
|
|
11
|
-
import '../response-
|
|
12
|
-
import '../entTypes-
|
|
11
|
+
import '../response-CMrRLv9c.mjs';
|
|
12
|
+
import '../entTypes-Mq0F4CAa.mjs';
|
|
13
13
|
|
|
14
14
|
declare const usePricingTableBase: ({ AutumnContext, params, authClient, }: {
|
|
15
15
|
AutumnContext: React.Context<AutumnContextParams>;
|
|
@@ -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 '../cusTypes-
|
|
3
|
+
import { P as Product } from '../cusTypes-DUC0TrK5.js';
|
|
4
4
|
import { ProductDetails } from '../client/types/clientPricingTableTypes.js';
|
|
5
5
|
import { AutumnContextParams } from '../AutumnContext.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import 'react';
|
|
8
|
-
import '../ReactAutumnClient-
|
|
8
|
+
import '../ReactAutumnClient-GEzKNujl.js';
|
|
9
9
|
import '../client/types/clientEntTypes.js';
|
|
10
10
|
import '../client/types/clientGenTypes.js';
|
|
11
|
-
import '../response-
|
|
12
|
-
import '../entTypes-
|
|
11
|
+
import '../response-B8Tq3x66.js';
|
|
12
|
+
import '../entTypes-Ddl0CGp9.js';
|
|
13
13
|
|
|
14
14
|
declare const usePricingTableBase: ({ AutumnContext, params, authClient, }: {
|
|
15
15
|
AutumnContext: React.Context<AutumnContextParams>;
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePricingTableBase
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-V5PKOA5A.mjs";
|
|
9
|
-
import "../chunk-JNM4BLTM.mjs";
|
|
5
|
+
} from "../chunk-CHQRTGXF.mjs";
|
|
6
|
+
import "../chunk-ITN754AD.mjs";
|
|
7
|
+
import "../chunk-QAHVMSK4.mjs";
|
|
10
8
|
import "../chunk-YUV2Y2RW.mjs";
|
|
11
9
|
import "../chunk-3EYF7OI5.mjs";
|
|
12
|
-
import "../chunk-KQT5G3HT.mjs";
|
|
13
10
|
import "../chunk-JVCOY7ZL.mjs";
|
|
14
11
|
import "../chunk-CIBQ4BJU.mjs";
|
|
15
12
|
import "../chunk-NZ5PEXT2.mjs";
|
|
16
13
|
import "../chunk-TGX6UKKS.mjs";
|
|
14
|
+
import "../chunk-V5PKOA5A.mjs";
|
|
15
|
+
import "../chunk-JNM4BLTM.mjs";
|
|
16
|
+
import "../chunk-KQT5G3HT.mjs";
|
|
17
17
|
export {
|
|
18
18
|
usePricingTableBase
|
|
19
19
|
};
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
AutumnContext,
|
|
5
5
|
useAutumnContext
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-V5PKOA5A.mjs";
|
|
9
|
-
import "../chunk-JNM4BLTM.mjs";
|
|
6
|
+
} from "../chunk-ITN754AD.mjs";
|
|
7
|
+
import "../chunk-QAHVMSK4.mjs";
|
|
10
8
|
import "../chunk-YUV2Y2RW.mjs";
|
|
11
9
|
import "../chunk-3EYF7OI5.mjs";
|
|
12
|
-
import "../chunk-KQT5G3HT.mjs";
|
|
13
10
|
import "../chunk-JVCOY7ZL.mjs";
|
|
14
11
|
import "../chunk-CIBQ4BJU.mjs";
|
|
15
12
|
import "../chunk-NZ5PEXT2.mjs";
|
|
16
13
|
import "../chunk-TGX6UKKS.mjs";
|
|
14
|
+
import "../chunk-V5PKOA5A.mjs";
|
|
15
|
+
import "../chunk-JNM4BLTM.mjs";
|
|
16
|
+
import "../chunk-KQT5G3HT.mjs";
|
|
17
17
|
|
|
18
18
|
// src/libraries/react/hooks/useProductsBase.tsx
|
|
19
19
|
var useProductsBase = () => {
|
|
@@ -1418,7 +1418,6 @@ var useCustomerBase = ({
|
|
|
1418
1418
|
AutumnContext: AutumnContext2,
|
|
1419
1419
|
client
|
|
1420
1420
|
}) => {
|
|
1421
|
-
const queryKey = ["customer", params?.expand];
|
|
1422
1421
|
let context;
|
|
1423
1422
|
let authClientExists = !!params?.authClient;
|
|
1424
1423
|
if (AutumnContext2) {
|
|
@@ -1433,6 +1432,8 @@ var useCustomerBase = ({
|
|
|
1433
1432
|
} else if (!client) {
|
|
1434
1433
|
client = context.client;
|
|
1435
1434
|
}
|
|
1435
|
+
let baseUrl = params?.authClient ? "" : client?.backendUrl || "";
|
|
1436
|
+
const queryKey = ["customer", baseUrl, params?.expand];
|
|
1436
1437
|
const fetchCustomer = async () => {
|
|
1437
1438
|
const { data, error: error2 } = await client.createCustomer({
|
|
1438
1439
|
errorOnNotFound: params?.errorOnNotFound,
|
|
@@ -1376,7 +1376,6 @@ var useCustomerBase = ({
|
|
|
1376
1376
|
AutumnContext: AutumnContext2,
|
|
1377
1377
|
client
|
|
1378
1378
|
}) => {
|
|
1379
|
-
const queryKey = ["customer", params?.expand];
|
|
1380
1379
|
let context;
|
|
1381
1380
|
let authClientExists = !!params?.authClient;
|
|
1382
1381
|
if (AutumnContext2) {
|
|
@@ -1391,6 +1390,8 @@ var useCustomerBase = ({
|
|
|
1391
1390
|
} else if (!client) {
|
|
1392
1391
|
client = context.client;
|
|
1393
1392
|
}
|
|
1393
|
+
let baseUrl = params?.authClient ? "" : client?.backendUrl || "";
|
|
1394
|
+
const queryKey = ["customer", baseUrl, params?.expand];
|
|
1394
1395
|
const fetchCustomer = async () => {
|
|
1395
1396
|
const { data, error: error2 } = await client.createCustomer({
|
|
1396
1397
|
errorOnNotFound: params?.errorOnNotFound,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-DUC0TrK5.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
4
|
|
|
@@ -19,15 +19,15 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
19
19
|
code: string;
|
|
20
20
|
message: string;
|
|
21
21
|
product_ids: string[];
|
|
22
|
-
customer_data?: any;
|
|
23
22
|
checkout_url?: string | undefined;
|
|
23
|
+
customer_data?: any;
|
|
24
24
|
}, {
|
|
25
25
|
customer_id: string;
|
|
26
26
|
code: string;
|
|
27
27
|
message: string;
|
|
28
28
|
product_ids: string[];
|
|
29
|
-
customer_data?: any;
|
|
30
29
|
checkout_url?: string | undefined;
|
|
30
|
+
customer_data?: any;
|
|
31
31
|
}>;
|
|
32
32
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
33
33
|
interface TrackResult {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-DUC0TrK5.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
4
|
|
|
@@ -19,15 +19,15 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
19
19
|
code: string;
|
|
20
20
|
message: string;
|
|
21
21
|
product_ids: string[];
|
|
22
|
-
customer_data?: any;
|
|
23
22
|
checkout_url?: string | undefined;
|
|
23
|
+
customer_data?: any;
|
|
24
24
|
}, {
|
|
25
25
|
customer_id: string;
|
|
26
26
|
code: string;
|
|
27
27
|
message: string;
|
|
28
28
|
product_ids: string[];
|
|
29
|
-
customer_data?: any;
|
|
30
29
|
checkout_url?: string | undefined;
|
|
30
|
+
customer_data?: any;
|
|
31
31
|
}>;
|
|
32
32
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
33
33
|
interface TrackResult {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as Result, a as AutumnPromise, e as CancelResult, b as CheckResult, c as TrackResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, C as CheckParams, T as TrackParams } from './clientGenTypes-
|
|
1
|
+
import { R as Result, a as AutumnPromise, e as CancelResult, b as CheckResult, c as TrackResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, C as CheckParams, T as TrackParams } from './clientGenTypes-DWrGEdrD.mjs';
|
|
2
2
|
import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-D8lhXGaX.mjs';
|
|
3
3
|
import { E as Entity, D as DeleteEntityResult } from './entTypes-B-2_9hzP.mjs';
|
|
4
4
|
import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.mjs';
|
|
@@ -63,11 +63,10 @@ declare class AutumnClient {
|
|
|
63
63
|
}, AutumnError>>;
|
|
64
64
|
attach: (params: {
|
|
65
65
|
options?: {
|
|
66
|
-
quantity: number;
|
|
67
66
|
featureId: string;
|
|
67
|
+
quantity: number;
|
|
68
68
|
}[] | undefined;
|
|
69
69
|
metadata?: Record<string, string> | undefined;
|
|
70
|
-
reward?: string | undefined;
|
|
71
70
|
productId?: string | undefined;
|
|
72
71
|
entityId?: string | undefined;
|
|
73
72
|
productIds?: string[] | undefined;
|
|
@@ -77,14 +76,15 @@ declare class AutumnClient {
|
|
|
77
76
|
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
78
77
|
entityData?: any;
|
|
79
78
|
openInNewTab?: boolean | undefined;
|
|
79
|
+
reward?: string | undefined;
|
|
80
80
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
81
81
|
}) => AutumnPromise<{
|
|
82
82
|
customer_id: string;
|
|
83
83
|
code: string;
|
|
84
84
|
message: string;
|
|
85
85
|
product_ids: string[];
|
|
86
|
-
customer_data?: any;
|
|
87
86
|
checkout_url?: string | undefined;
|
|
87
|
+
customer_data?: any;
|
|
88
88
|
}>;
|
|
89
89
|
cancel: (params: {
|
|
90
90
|
productId: string;
|
|
@@ -92,9 +92,9 @@ declare class AutumnClient {
|
|
|
92
92
|
cancelImmediately?: boolean | undefined;
|
|
93
93
|
}) => AutumnPromise<CancelResult>;
|
|
94
94
|
check: (params: {
|
|
95
|
-
featureId?: string | undefined;
|
|
96
95
|
productId?: string | undefined;
|
|
97
96
|
entityId?: string | undefined;
|
|
97
|
+
featureId?: string | undefined;
|
|
98
98
|
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
99
99
|
entityData?: any;
|
|
100
100
|
requiredBalance?: number | undefined;
|
|
@@ -103,8 +103,8 @@ declare class AutumnClient {
|
|
|
103
103
|
}) => AutumnPromise<CheckResult>;
|
|
104
104
|
track: (params: {
|
|
105
105
|
value?: number | undefined;
|
|
106
|
-
featureId?: string | undefined;
|
|
107
106
|
entityId?: string | undefined;
|
|
107
|
+
featureId?: string | undefined;
|
|
108
108
|
entityData?: any;
|
|
109
109
|
eventName?: string | undefined;
|
|
110
110
|
idempotencyKey?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as Result, a as AutumnPromise, e as CancelResult, b as CheckResult, c as TrackResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, C as CheckParams, T as TrackParams } from './clientGenTypes-
|
|
1
|
+
import { R as Result, a as AutumnPromise, e as CancelResult, b as CheckResult, c as TrackResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, C as CheckParams, T as TrackParams } from './clientGenTypes-D_Ea92Du.js';
|
|
2
2
|
import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-D8lhXGaX.js';
|
|
3
3
|
import { E as Entity, D as DeleteEntityResult } from './entTypes-Dq2mbehl.js';
|
|
4
4
|
import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.js';
|
|
@@ -63,11 +63,10 @@ declare class AutumnClient {
|
|
|
63
63
|
}, AutumnError>>;
|
|
64
64
|
attach: (params: {
|
|
65
65
|
options?: {
|
|
66
|
-
quantity: number;
|
|
67
66
|
featureId: string;
|
|
67
|
+
quantity: number;
|
|
68
68
|
}[] | undefined;
|
|
69
69
|
metadata?: Record<string, string> | undefined;
|
|
70
|
-
reward?: string | undefined;
|
|
71
70
|
productId?: string | undefined;
|
|
72
71
|
entityId?: string | undefined;
|
|
73
72
|
productIds?: string[] | undefined;
|
|
@@ -77,14 +76,15 @@ declare class AutumnClient {
|
|
|
77
76
|
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
78
77
|
entityData?: any;
|
|
79
78
|
openInNewTab?: boolean | undefined;
|
|
79
|
+
reward?: string | undefined;
|
|
80
80
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
81
81
|
}) => AutumnPromise<{
|
|
82
82
|
customer_id: string;
|
|
83
83
|
code: string;
|
|
84
84
|
message: string;
|
|
85
85
|
product_ids: string[];
|
|
86
|
-
customer_data?: any;
|
|
87
86
|
checkout_url?: string | undefined;
|
|
87
|
+
customer_data?: any;
|
|
88
88
|
}>;
|
|
89
89
|
cancel: (params: {
|
|
90
90
|
productId: string;
|
|
@@ -92,9 +92,9 @@ declare class AutumnClient {
|
|
|
92
92
|
cancelImmediately?: boolean | undefined;
|
|
93
93
|
}) => AutumnPromise<CancelResult>;
|
|
94
94
|
check: (params: {
|
|
95
|
-
featureId?: string | undefined;
|
|
96
95
|
productId?: string | undefined;
|
|
97
96
|
entityId?: string | undefined;
|
|
97
|
+
featureId?: string | undefined;
|
|
98
98
|
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
99
99
|
entityData?: any;
|
|
100
100
|
requiredBalance?: number | undefined;
|
|
@@ -103,8 +103,8 @@ declare class AutumnClient {
|
|
|
103
103
|
}) => AutumnPromise<CheckResult>;
|
|
104
104
|
track: (params: {
|
|
105
105
|
value?: number | undefined;
|
|
106
|
-
featureId?: string | undefined;
|
|
107
106
|
entityId?: string | undefined;
|
|
107
|
+
featureId?: string | undefined;
|
|
108
108
|
entityData?: any;
|
|
109
109
|
eventName?: string | undefined;
|
|
110
110
|
idempotencyKey?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-
|
|
1
|
+
import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-DWrGEdrD.mjs';
|
|
2
2
|
import { B as BillingPortalResult } from '../cusTypes-D8lhXGaX.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../error-DHbclCVh.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-
|
|
1
|
+
import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-D_Ea92Du.js';
|
|
2
2
|
import { B as BillingPortalResult } from '../cusTypes-D8lhXGaX.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../error-DHbclCVh.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-DWrGEdrD.mjs';
|
|
3
3
|
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-D8lhXGaX.mjs';
|
|
4
4
|
import { E as Entity } from '../entTypes-B-2_9hzP.mjs';
|
|
5
5
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-D_Ea92Du.js';
|
|
3
3
|
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-D8lhXGaX.js';
|
|
4
4
|
import { E as Entity } from '../entTypes-Dq2mbehl.js';
|
|
5
5
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, e as CancelResult, T as TrackParams, c as TrackResult } from '../clientGenTypes-
|
|
1
|
+
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, e as CancelResult, T as TrackParams, c as TrackResult } from '../clientGenTypes-DWrGEdrD.mjs';
|
|
2
2
|
import { G as GetEntityParams, E as Entity } from '../entTypes-B-2_9hzP.mjs';
|
|
3
3
|
import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.mjs';
|
|
4
4
|
import * as swr from 'swr';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, e as CancelResult, T as TrackParams, c as TrackResult } from '../clientGenTypes-
|
|
1
|
+
import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, e as CancelResult, T as TrackParams, c as TrackResult } from '../clientGenTypes-D_Ea92Du.js';
|
|
2
2
|
import { G as GetEntityParams, E as Entity } from '../entTypes-Dq2mbehl.js';
|
|
3
3
|
import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.js';
|
|
4
4
|
import * as swr from 'swr';
|
package/package.json
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
createEntityMethod,
|
|
5
|
-
deleteEntityMethod,
|
|
6
|
-
getEntityMethod
|
|
7
|
-
} from "./chunk-V5PKOA5A.mjs";
|
|
8
|
-
import {
|
|
9
|
-
attachMethod,
|
|
10
|
-
cancelMethod,
|
|
11
|
-
checkMethod,
|
|
12
|
-
openBillingPortalMethod,
|
|
13
|
-
setupPaymentMethod,
|
|
14
|
-
trackMethod
|
|
15
|
-
} from "./chunk-JNM4BLTM.mjs";
|
|
16
3
|
import {
|
|
17
4
|
listProductsMethod
|
|
18
5
|
} from "./chunk-YUV2Y2RW.mjs";
|
|
@@ -32,6 +19,19 @@ import {
|
|
|
32
19
|
import {
|
|
33
20
|
createCustomerMethod
|
|
34
21
|
} from "./chunk-TGX6UKKS.mjs";
|
|
22
|
+
import {
|
|
23
|
+
createEntityMethod,
|
|
24
|
+
deleteEntityMethod,
|
|
25
|
+
getEntityMethod
|
|
26
|
+
} from "./chunk-V5PKOA5A.mjs";
|
|
27
|
+
import {
|
|
28
|
+
attachMethod,
|
|
29
|
+
cancelMethod,
|
|
30
|
+
checkMethod,
|
|
31
|
+
openBillingPortalMethod,
|
|
32
|
+
setupPaymentMethod,
|
|
33
|
+
trackMethod
|
|
34
|
+
} from "./chunk-JNM4BLTM.mjs";
|
|
35
35
|
|
|
36
36
|
// src/sdk/error.ts
|
|
37
37
|
var AutumnError = class _AutumnError extends Error {
|
|
@@ -20,15 +20,15 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
20
20
|
code: string;
|
|
21
21
|
message: string;
|
|
22
22
|
product_ids: string[];
|
|
23
|
-
customer_data?: any;
|
|
24
23
|
checkout_url?: string | undefined;
|
|
24
|
+
customer_data?: any;
|
|
25
25
|
}, {
|
|
26
26
|
customer_id: string;
|
|
27
27
|
code: string;
|
|
28
28
|
message: string;
|
|
29
29
|
product_ids: string[];
|
|
30
|
-
customer_data?: any;
|
|
31
30
|
checkout_url?: string | undefined;
|
|
31
|
+
customer_data?: any;
|
|
32
32
|
}>;
|
|
33
33
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
34
34
|
interface TrackResult {
|
|
@@ -64,11 +64,11 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
64
64
|
featureId: z.ZodString;
|
|
65
65
|
quantity: z.ZodNumber;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
quantity: number;
|
|
68
67
|
featureId: string;
|
|
69
|
-
}, {
|
|
70
68
|
quantity: number;
|
|
69
|
+
}, {
|
|
71
70
|
featureId: string;
|
|
71
|
+
quantity: number;
|
|
72
72
|
}>, "many">>;
|
|
73
73
|
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
74
|
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -82,11 +82,10 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
82
82
|
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
84
|
options?: {
|
|
85
|
-
quantity: number;
|
|
86
85
|
featureId: string;
|
|
86
|
+
quantity: number;
|
|
87
87
|
}[] | undefined;
|
|
88
88
|
metadata?: Record<string, string> | undefined;
|
|
89
|
-
reward?: string | undefined;
|
|
90
89
|
productId?: string | undefined;
|
|
91
90
|
entityId?: string | undefined;
|
|
92
91
|
productIds?: string[] | undefined;
|
|
@@ -96,14 +95,14 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
96
95
|
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
97
96
|
entityData?: any;
|
|
98
97
|
openInNewTab?: boolean | undefined;
|
|
98
|
+
reward?: string | undefined;
|
|
99
99
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
options?: {
|
|
102
|
-
quantity: number;
|
|
103
102
|
featureId: string;
|
|
103
|
+
quantity: number;
|
|
104
104
|
}[] | undefined;
|
|
105
105
|
metadata?: Record<string, string> | undefined;
|
|
106
|
-
reward?: string | undefined;
|
|
107
106
|
productId?: string | undefined;
|
|
108
107
|
entityId?: string | undefined;
|
|
109
108
|
productIds?: string[] | undefined;
|
|
@@ -113,6 +112,7 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
113
112
|
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
114
113
|
entityData?: any;
|
|
115
114
|
openInNewTab?: boolean | undefined;
|
|
115
|
+
reward?: string | undefined;
|
|
116
116
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
@@ -140,18 +140,18 @@ declare const CheckParamsSchema: z.ZodObject<{
|
|
|
140
140
|
dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
|
|
141
141
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
featureId?: string | undefined;
|
|
144
143
|
productId?: string | undefined;
|
|
145
144
|
entityId?: string | undefined;
|
|
145
|
+
featureId?: string | undefined;
|
|
146
146
|
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
147
147
|
entityData?: any;
|
|
148
148
|
requiredBalance?: number | undefined;
|
|
149
149
|
sendEvent?: boolean | undefined;
|
|
150
150
|
withPreview?: boolean | undefined;
|
|
151
151
|
}, {
|
|
152
|
-
featureId?: string | undefined;
|
|
153
152
|
productId?: string | undefined;
|
|
154
153
|
entityId?: string | undefined;
|
|
154
|
+
featureId?: string | undefined;
|
|
155
155
|
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
|
|
156
156
|
entityData?: any;
|
|
157
157
|
requiredBalance?: number | undefined;
|
|
@@ -168,15 +168,15 @@ declare const TrackParamsSchema: z.ZodObject<{
|
|
|
168
168
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
170
|
value?: number | undefined;
|
|
171
|
-
featureId?: string | undefined;
|
|
172
171
|
entityId?: string | undefined;
|
|
172
|
+
featureId?: string | undefined;
|
|
173
173
|
entityData?: any;
|
|
174
174
|
eventName?: string | undefined;
|
|
175
175
|
idempotencyKey?: string | undefined;
|
|
176
176
|
}, {
|
|
177
177
|
value?: number | undefined;
|
|
178
|
-
featureId?: string | undefined;
|
|
179
178
|
entityId?: string | undefined;
|
|
179
|
+
featureId?: string | undefined;
|
|
180
180
|
entityData?: any;
|
|
181
181
|
eventName?: string | undefined;
|
|
182
182
|
idempotencyKey?: string | undefined;
|