autumn-js 1.2.44 → 1.2.46
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/backend/adapters/express.js +179 -23
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +179 -23
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +179 -23
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +179 -23
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +179 -23
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-GRPW7PMD.mjs → chunk-564D2O3W.mjs} +1 -1
- package/dist/backend/{chunk-PKU2QG3V.mjs → chunk-KW47VZ73.mjs} +5 -5
- package/dist/backend/{chunk-UBDJHK2I.mjs → chunk-RPUV2OZA.mjs} +125 -19
- package/dist/backend/{chunk-HMEVH6GK.mjs → chunk-SBZEXVB4.mjs} +7 -7
- package/dist/backend/{chunk-43PV6A4J.mjs → chunk-TEDQUFQV.mjs} +1 -1
- package/dist/backend/{chunk-NX26QVC6.mjs → chunk-UJS4Q7J4.mjs} +54 -4
- package/dist/backend/{chunk-YOZEZHQY.mjs → chunk-WR6ZPCQG.mjs} +1 -1
- package/dist/backend/{chunk-W2L6YF67.mjs → chunk-XOAX5KAL.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +179 -23
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +179 -23
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +179 -23
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +179 -23
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +54 -4
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +54 -4
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +179 -23
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-CJ1KepjZ.d.mts → routeTypes-DnUY8ksp.d.mts} +257 -8
- package/dist/backend/{routeTypes-CODz5Cb_.d.ts → routeTypes-TbN5QHEp.d.ts} +257 -8
- package/dist/better-auth/{chunk-XME6A73W.mjs → chunk-SABPXZTZ.mjs} +126 -20
- package/dist/better-auth/{chunk-W2AEIA6U.mjs → chunk-TOQRV6D7.mjs} +1 -1
- package/dist/better-auth/{chunk-7LUOWWZI.mjs → chunk-YRHQ4VL7.mjs} +54 -4
- package/dist/better-auth/index.js +179 -23
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +54 -4
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +179 -23
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +179 -23
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +7 -4
- package/dist/react/AutumnContext.d.ts +7 -4
- package/dist/react/AutumnProvider.js +1 -1
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-EE3XPYSL.mjs → chunk-2C6RX3EW.mjs} +1 -1
- package/dist/react/{chunk-SBCI4L22.mjs → chunk-2X7HXG2W.mjs} +1 -1
- package/dist/react/{chunk-7SRCZYRC.mjs → chunk-3WU4ZFXU.mjs} +1 -1
- package/dist/react/{chunk-LUBYNTYC.mjs → chunk-4HU5BGSM.mjs} +1 -1
- package/dist/react/{chunk-RTZAB46K.mjs → chunk-7RF3IGDO.mjs} +1 -1
- package/dist/react/{chunk-KCOHZSS3.mjs → chunk-C6I2RW56.mjs} +8 -8
- package/dist/react/{chunk-CQF3ER2L.mjs → chunk-NWF7OFFQ.mjs} +2 -2
- package/dist/react/{chunk-CSJHU3F2.mjs → chunk-SRSYG5ZV.mjs} +1 -1
- package/dist/react/{chunk-QUGX6XRQ.mjs → chunk-UNQZV3K5.mjs} +1 -1
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-2LdIXsvH.d.ts → customer-CNfSCDv_.d.ts} +1 -1
- package/dist/react/{customer-VoTRBlpB.d.mts → customer-VD6pkmpz.d.mts} +1 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/index.js +7 -7
- package/dist/react/hooks/index.mjs +8 -8
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +7 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +7 -4
- package/dist/react/hooks/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +5 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +5 -2
- package/dist/react/hooks/useAggregateEvents.js +7 -7
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +4 -3
- package/dist/react/hooks/useCustomer.d.ts +4 -3
- package/dist/react/hooks/useCustomer.js +7 -7
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +3 -2
- package/dist/react/hooks/useEntity.d.ts +3 -2
- package/dist/react/hooks/useEntity.js +7 -7
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +5 -2
- package/dist/react/hooks/useListEvents.d.ts +5 -2
- package/dist/react/hooks/useListEvents.js +7 -7
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +6 -3
- package/dist/react/hooks/useListPlans.d.ts +6 -3
- package/dist/react/hooks/useListPlans.js +7 -7
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +3 -2
- package/dist/react/hooks/useReferrals.d.ts +3 -2
- package/dist/react/hooks/useReferrals.js +7 -7
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +7 -7
- package/dist/react/index.mjs +9 -9
- package/dist/react/{list-plans-op-Cj9hlzsX.d.mts → list-plans-op-B87IUSZR.d.ts} +9 -1
- package/dist/react/{list-plans-op-Bv7x0N22.d.ts → list-plans-op-CvGXtKAO.d.mts} +9 -1
- package/dist/react/{params-5C7THGzd.d.mts → params-BrFcJdeO.d.mts} +119 -5
- package/dist/react/{params-B1og9_ES.d.ts → params-BwHZca3H.d.ts} +119 -5
- package/dist/react/{plan-Kbxmz27V.d.mts → plan-DBswUtWr.d.mts} +8 -0
- package/dist/react/{plan-Kbxmz27V.d.ts → plan-DBswUtWr.d.ts} +8 -0
- package/dist/sdk/index.d.mts +311 -10
- package/dist/sdk/index.d.ts +311 -10
- package/dist/sdk/index.js +144 -21
- package/dist/sdk/index.mjs +133 -20
- package/package.json +1 -1
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TOQRV6D7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-SABPXZTZ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveIdentityFromScope
|
|
10
10
|
} from "../chunk-J2WYVGHS.mjs";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-YRHQ4VL7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getActiveOrganization
|
|
14
14
|
} from "../chunk-BT3EAYVW.mjs";
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.mjs';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './customer-
|
|
6
|
-
import './list-plans-op-
|
|
3
|
+
import './params-BrFcJdeO.mjs';
|
|
4
|
+
import './plan-DBswUtWr.mjs';
|
|
5
|
+
import './customer-VD6pkmpz.mjs';
|
|
6
|
+
import './list-plans-op-CvGXtKAO.mjs';
|
|
7
7
|
|
|
8
8
|
type AutumnContextValue = {
|
|
9
9
|
client: IAutumnClient;
|
|
10
10
|
};
|
|
11
11
|
declare const AutumnContext: react.Context<AutumnContextValue | null>;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
14
|
+
*/
|
|
12
15
|
declare const useAutumnClient: ({ caller, }: {
|
|
13
16
|
caller: string;
|
|
14
17
|
}) => IAutumnClient;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.js';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './customer-
|
|
6
|
-
import './list-plans-op-
|
|
3
|
+
import './params-BwHZca3H.js';
|
|
4
|
+
import './plan-DBswUtWr.js';
|
|
5
|
+
import './customer-CNfSCDv_.js';
|
|
6
|
+
import './list-plans-op-B87IUSZR.js';
|
|
7
7
|
|
|
8
8
|
type AutumnContextValue = {
|
|
9
9
|
client: IAutumnClient;
|
|
10
10
|
};
|
|
11
11
|
declare const AutumnContext: react.Context<AutumnContextValue | null>;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
14
|
+
*/
|
|
12
15
|
declare const useAutumnClient: ({ caller, }: {
|
|
13
16
|
caller: string;
|
|
14
17
|
}) => IAutumnClient;
|
|
@@ -2057,7 +2057,7 @@ var QueryClient = class {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
};
|
|
2059
2059
|
|
|
2060
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2060
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
2061
2061
|
var React = __toESM(require("react"), 1);
|
|
2062
2062
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
2063
2063
|
var QueryClientContext = React.createContext(
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
AutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2C6RX3EW.mjs";
|
|
6
6
|
import "./chunk-QOFGTXEX.mjs";
|
|
7
7
|
import "./chunk-SCDO26YC.mjs";
|
|
8
8
|
import "./chunk-IC3QHWR6.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-C6I2RW56.mjs";
|
|
10
10
|
import "./chunk-SOA7GEAN.mjs";
|
|
11
11
|
export {
|
|
12
12
|
AutumnProvider
|
|
@@ -2491,7 +2491,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
2491
2491
|
return false;
|
|
2492
2492
|
}
|
|
2493
2493
|
|
|
2494
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2494
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
2495
2495
|
import * as React from "react";
|
|
2496
2496
|
import { jsx } from "react/jsx-runtime";
|
|
2497
2497
|
var QueryClientContext = React.createContext(
|
|
@@ -2520,10 +2520,10 @@ var QueryClientProvider = ({
|
|
|
2520
2520
|
return /* @__PURE__ */ jsx(QueryClientContext.Provider, { value: client, children });
|
|
2521
2521
|
};
|
|
2522
2522
|
|
|
2523
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2523
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
2524
2524
|
import * as React5 from "react";
|
|
2525
2525
|
|
|
2526
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2526
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
2527
2527
|
import * as React2 from "react";
|
|
2528
2528
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
2529
2529
|
function createValue() {
|
|
@@ -2543,7 +2543,7 @@ function createValue() {
|
|
|
2543
2543
|
var QueryErrorResetBoundaryContext = React2.createContext(createValue());
|
|
2544
2544
|
var useQueryErrorResetBoundary = () => React2.useContext(QueryErrorResetBoundaryContext);
|
|
2545
2545
|
|
|
2546
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2546
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
2547
2547
|
import * as React3 from "react";
|
|
2548
2548
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
|
|
2549
2549
|
const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
|
|
@@ -2568,13 +2568,13 @@ var getHasError = ({
|
|
|
2568
2568
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
2569
2569
|
};
|
|
2570
2570
|
|
|
2571
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2571
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
2572
2572
|
import * as React4 from "react";
|
|
2573
2573
|
var IsRestoringContext = React4.createContext(false);
|
|
2574
2574
|
var useIsRestoring = () => React4.useContext(IsRestoringContext);
|
|
2575
2575
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
2576
2576
|
|
|
2577
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2577
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
2578
2578
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
2579
2579
|
if (defaultedOptions.suspense) {
|
|
2580
2580
|
const MIN_SUSPENSE_TIME_MS = 1e3;
|
|
@@ -2595,7 +2595,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
2595
2595
|
errorResetBoundary.clearReset();
|
|
2596
2596
|
});
|
|
2597
2597
|
|
|
2598
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2598
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
2599
2599
|
function useBaseQuery(options, Observer, queryClient) {
|
|
2600
2600
|
if (process.env.NODE_ENV !== "production") {
|
|
2601
2601
|
if (typeof options !== "object" || Array.isArray(options)) {
|
|
@@ -2680,7 +2680,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
2680
2680
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
2681
2681
|
}
|
|
2682
2682
|
|
|
2683
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2683
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
2684
2684
|
function useQuery(options, queryClient) {
|
|
2685
2685
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
2686
2686
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useCustomerActions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4HU5BGSM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C6I2RW56.mjs";
|
|
8
8
|
import {
|
|
9
9
|
useAutumnClient
|
|
10
10
|
} from "./chunk-SOA7GEAN.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.mjs';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../customer-
|
|
5
|
-
import '../list-plans-op-
|
|
2
|
+
import '../params-BrFcJdeO.mjs';
|
|
3
|
+
import '../plan-DBswUtWr.mjs';
|
|
4
|
+
import '../customer-VD6pkmpz.mjs';
|
|
5
|
+
import '../list-plans-op-CvGXtKAO.mjs';
|
|
6
6
|
|
|
7
7
|
/** Configuration for Autumn client */
|
|
8
8
|
type AutumnClientConfig = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.js';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../customer-
|
|
5
|
-
import '../list-plans-op-
|
|
2
|
+
import '../params-BwHZca3H.js';
|
|
3
|
+
import '../plan-DBswUtWr.js';
|
|
4
|
+
import '../customer-CNfSCDv_.js';
|
|
5
|
+
import '../list-plans-op-B87IUSZR.js';
|
|
6
6
|
|
|
7
7
|
/** Configuration for Autumn client */
|
|
8
8
|
type AutumnClientConfig = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
3
|
-
import { L as ListPlansResponse } from '../list-plans-op-
|
|
4
|
-
import '../plan-
|
|
1
|
+
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BrFcJdeO.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-VD6pkmpz.mjs';
|
|
3
|
+
import { L as ListPlansResponse } from '../list-plans-op-CvGXtKAO.mjs';
|
|
4
|
+
import '../plan-DBswUtWr.mjs';
|
|
5
5
|
|
|
6
6
|
/** Client interface matching backend RPC routes */
|
|
7
7
|
interface IAutumnClient {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
3
|
-
import { L as ListPlansResponse } from '../list-plans-op-
|
|
4
|
-
import '../plan-
|
|
1
|
+
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BwHZca3H.js';
|
|
2
|
+
import { C as Customer } from '../customer-CNfSCDv_.js';
|
|
3
|
+
import { L as ListPlansResponse } from '../list-plans-op-B87IUSZR.js';
|
|
4
|
+
import '../plan-DBswUtWr.js';
|
|
5
5
|
|
|
6
6
|
/** Client interface matching backend RPC routes */
|
|
7
7
|
interface IAutumnClient {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.mjs';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.mjs';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.mjs';
|
|
4
|
-
import '../params-
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../customer-
|
|
7
|
-
import '../list-plans-op-
|
|
4
|
+
import '../params-BrFcJdeO.mjs';
|
|
5
|
+
import '../plan-DBswUtWr.mjs';
|
|
6
|
+
import '../customer-VD6pkmpz.mjs';
|
|
7
|
+
import '../list-plans-op-CvGXtKAO.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.js';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.js';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.js';
|
|
4
|
-
import '../params-
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../customer-
|
|
7
|
-
import '../list-plans-op-
|
|
4
|
+
import '../params-BwHZca3H.js';
|
|
5
|
+
import '../plan-DBswUtWr.js';
|
|
6
|
+
import '../customer-CNfSCDv_.js';
|
|
7
|
+
import '../list-plans-op-B87IUSZR.js';
|
|
@@ -7,7 +7,7 @@ export { UseListPlansParams, useListPlans } from './useListPlans.mjs';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.mjs';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.mjs';
|
|
10
|
-
import '../params-
|
|
11
|
-
import '../plan-
|
|
12
|
-
import '../customer-
|
|
13
|
-
import '../list-plans-op-
|
|
10
|
+
import '../params-BrFcJdeO.mjs';
|
|
11
|
+
import '../plan-DBswUtWr.mjs';
|
|
12
|
+
import '../customer-VD6pkmpz.mjs';
|
|
13
|
+
import '../list-plans-op-CvGXtKAO.mjs';
|
|
@@ -7,7 +7,7 @@ export { UseListPlansParams, useListPlans } from './useListPlans.js';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.js';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.js';
|
|
10
|
-
import '../params-
|
|
11
|
-
import '../plan-
|
|
12
|
-
import '../customer-
|
|
13
|
-
import '../list-plans-op-
|
|
10
|
+
import '../params-BwHZca3H.js';
|
|
11
|
+
import '../plan-DBswUtWr.js';
|
|
12
|
+
import '../customer-CNfSCDv_.js';
|
|
13
|
+
import '../list-plans-op-B87IUSZR.js';
|
|
@@ -956,7 +956,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
956
956
|
return false;
|
|
957
957
|
}
|
|
958
958
|
|
|
959
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
959
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
960
960
|
var React = __toESM(require("react"), 1);
|
|
961
961
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
962
962
|
var QueryClientContext = React.createContext(
|
|
@@ -973,13 +973,13 @@ var useQueryClient = (queryClient) => {
|
|
|
973
973
|
return client;
|
|
974
974
|
};
|
|
975
975
|
|
|
976
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
976
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
977
977
|
var React2 = __toESM(require("react"), 1);
|
|
978
978
|
var IsRestoringContext = React2.createContext(false);
|
|
979
979
|
var useIsRestoring = () => React2.useContext(IsRestoringContext);
|
|
980
980
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
981
981
|
|
|
982
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
982
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
983
983
|
var React3 = __toESM(require("react"), 1);
|
|
984
984
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
985
985
|
function createValue() {
|
|
@@ -999,7 +999,7 @@ function createValue() {
|
|
|
999
999
|
var QueryErrorResetBoundaryContext = React3.createContext(createValue());
|
|
1000
1000
|
var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
|
|
1001
1001
|
|
|
1002
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
1002
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
1003
1003
|
var React4 = __toESM(require("react"), 1);
|
|
1004
1004
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
|
|
1005
1005
|
const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
|
|
@@ -1024,7 +1024,7 @@ var getHasError = ({
|
|
|
1024
1024
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
1025
1025
|
};
|
|
1026
1026
|
|
|
1027
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
1027
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
1028
1028
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
1029
1029
|
if (defaultedOptions.suspense) {
|
|
1030
1030
|
const MIN_SUSPENSE_TIME_MS = 1e3;
|
|
@@ -1045,7 +1045,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
1045
1045
|
errorResetBoundary.clearReset();
|
|
1046
1046
|
});
|
|
1047
1047
|
|
|
1048
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
1048
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
1049
1049
|
var React5 = __toESM(require("react"), 1);
|
|
1050
1050
|
function useBaseQuery(options, Observer, queryClient) {
|
|
1051
1051
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1131,7 +1131,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
1131
1131
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
1132
1132
|
}
|
|
1133
1133
|
|
|
1134
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
1134
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1135
1135
|
function useQuery(options, queryClient) {
|
|
1136
1136
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
1137
1137
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useAggregateEvents
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7RF3IGDO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useCustomer
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-NWF7OFFQ.mjs";
|
|
8
|
+
import "../chunk-4HU5BGSM.mjs";
|
|
9
9
|
import "../chunk-BWKG32GC.mjs";
|
|
10
10
|
import "../chunk-GSJF6P3Q.mjs";
|
|
11
11
|
import "../chunk-SEQHNPTF.mjs";
|
|
@@ -13,17 +13,17 @@ import "../chunk-4TON573W.mjs";
|
|
|
13
13
|
import "../chunk-D6DFRS3U.mjs";
|
|
14
14
|
import {
|
|
15
15
|
useEntity
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-3WU4ZFXU.mjs";
|
|
17
17
|
import {
|
|
18
18
|
useListEvents
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-SRSYG5ZV.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useListPlans
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-2X7HXG2W.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useReferrals
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-UNQZV3K5.mjs";
|
|
26
|
+
import "../chunk-C6I2RW56.mjs";
|
|
27
27
|
import "../chunk-SOA7GEAN.mjs";
|
|
28
28
|
export {
|
|
29
29
|
useAggregateEvents,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-VD6pkmpz.mjs';
|
|
2
|
+
import '../../../plan-DBswUtWr.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerBalance = Customer["balances"][string];
|
|
5
5
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-CNfSCDv_.js';
|
|
2
|
+
import '../../../plan-DBswUtWr.js';
|
|
3
3
|
|
|
4
4
|
type CustomerBalance = Customer["balances"][string];
|
|
5
5
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-VD6pkmpz.mjs';
|
|
2
|
+
import '../../../plan-DBswUtWr.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const customerToFeatures: ({ customer, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-CNfSCDv_.js';
|
|
2
|
+
import '../../../plan-DBswUtWr.js';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const customerToFeatures: ({ customer, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BalanceFeature } from '../../../plan-
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
1
|
+
import { B as BalanceFeature } from '../../../plan-DBswUtWr.mjs';
|
|
2
|
+
import { C as Customer } from '../../../customer-VD6pkmpz.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BalanceFeature } from '../../../plan-
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
1
|
+
import { B as BalanceFeature } from '../../../plan-DBswUtWr.js';
|
|
2
|
+
import { C as Customer } from '../../../customer-CNfSCDv_.js';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-VD6pkmpz.mjs';
|
|
2
|
+
import '../../../plan-DBswUtWr.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const getCreditCost: ({ featureId, creditSystem, amount, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-CNfSCDv_.js';
|
|
2
|
+
import '../../../plan-DBswUtWr.js';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const getCreditCost: ({ featureId, creditSystem, amount, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ClientCheckParams, o as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
3
|
-
import '../../plan-
|
|
1
|
+
import { n as ClientCheckParams, o as CheckResponse } from '../../params-BrFcJdeO.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-VD6pkmpz.mjs';
|
|
3
|
+
import '../../plan-DBswUtWr.mjs';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
6
6
|
customer: Customer | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ClientCheckParams, o as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
3
|
-
import '../../plan-
|
|
1
|
+
import { n as ClientCheckParams, o as CheckResponse } from '../../params-BwHZca3H.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CNfSCDv_.js';
|
|
3
|
+
import '../../plan-DBswUtWr.js';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
6
6
|
customer: Customer | null;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-BrFcJdeO.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-VD6pkmpz.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../list-plans-op-
|
|
4
|
+
import '../../plan-DBswUtWr.mjs';
|
|
5
|
+
import '../../list-plans-op-CvGXtKAO.mjs';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
9
|
+
*/
|
|
7
10
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
8
11
|
client: IAutumnClient;
|
|
9
12
|
customer: Customer | null;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-BwHZca3H.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CNfSCDv_.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../list-plans-op-
|
|
4
|
+
import '../../plan-DBswUtWr.js';
|
|
5
|
+
import '../../list-plans-op-B87IUSZR.js';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
9
|
+
*/
|
|
7
10
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
8
11
|
client: IAutumnClient;
|
|
9
12
|
customer: Customer | null;
|
|
@@ -36,7 +36,7 @@ __export(useCustomerActions_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(useCustomerActions_exports);
|
|
38
38
|
|
|
39
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
39
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
40
40
|
var React = __toESM(require("react"), 1);
|
|
41
41
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
42
|
var QueryClientContext = React.createContext(
|