autumn-js 1.2.41 → 1.2.43
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 +670 -71
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +670 -71
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +670 -71
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +670 -71
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +670 -71
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-5FKCJ3TB.mjs → chunk-6JWKVTW6.mjs} +668 -69
- package/dist/backend/{chunk-FS2XS32M.mjs → chunk-A4CQFLP2.mjs} +1 -1
- package/dist/backend/{chunk-UD2T3GKC.mjs → chunk-BFEYTUTD.mjs} +5 -5
- package/dist/backend/{chunk-CHL34LQO.mjs → chunk-F7UCOH2H.mjs} +1 -1
- package/dist/backend/{chunk-QKLYHQFJ.mjs → chunk-P2VDVARN.mjs} +1 -1
- package/dist/backend/{chunk-2VGKOWXH.mjs → chunk-PMJU66BZ.mjs} +1 -1
- package/dist/backend/{chunk-6IRM5YOA.mjs → chunk-PUITHPYB.mjs} +7 -7
- package/dist/backend/{chunk-6WHGF4WX.mjs → chunk-VWRIO2AZ.mjs} +2 -2
- 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 +670 -71
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- 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 +3 -3
- package/dist/backend/core/handlers/handleRouteByName.js +670 -71
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- 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 +670 -71
- 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 +670 -71
- package/dist/backend/core/index.mjs +7 -7
- 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 +2 -2
- package/dist/backend/core/routes/index.mjs +1 -1
- 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 +2 -2
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- 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/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +670 -71
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-6y6WfqD1.d.mts → routeTypes-BbDgUCjQ.d.mts} +1125 -410
- package/dist/backend/{routeTypes-Bqeo1-G5.d.ts → routeTypes-Dx6n-_1-.d.ts} +1125 -410
- package/dist/better-auth/{chunk-UGW5CGCL.mjs → chunk-46KXUK2V.mjs} +1 -1
- package/dist/better-auth/{chunk-PQ5Y4SBX.mjs → chunk-5XFPQFRG.mjs} +2 -2
- package/dist/better-auth/{chunk-CICEUVIO.mjs → chunk-GBZQDO7C.mjs} +669 -70
- package/dist/better-auth/index.js +670 -71
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +2 -2
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +670 -71
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +670 -71
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/AutumnProvider.js +17 -17
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-ERN74FDW.mjs → chunk-7SRCZYRC.mjs} +1 -1
- package/dist/react/{chunk-VJDFB54U.mjs → chunk-CQF3ER2L.mjs} +2 -2
- package/dist/react/{chunk-6KIRT7EK.mjs → chunk-CSJHU3F2.mjs} +1 -1
- package/dist/react/{chunk-DDMHYLY3.mjs → chunk-EE3XPYSL.mjs} +1 -1
- package/dist/react/{chunk-FU6VEECB.mjs → chunk-KCOHZSS3.mjs} +25 -25
- package/dist/react/{chunk-JH5BXBEU.mjs → chunk-LUBYNTYC.mjs} +1 -1
- package/dist/react/{chunk-YZ23DM7M.mjs → chunk-QUGX6XRQ.mjs} +1 -1
- package/dist/react/{chunk-AAPQJY55.mjs → chunk-RTZAB46K.mjs} +1 -1
- package/dist/react/{chunk-M3L6EE7I.mjs → chunk-SBCI4L22.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-BD_JdC0O.d.mts → customer-DUVEYKmJ.d.mts} +1 -1
- package/dist/react/{customer-C95I_yQG.d.ts → customer-DWsFqhDO.d.ts} +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 +18 -18
- 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 +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -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 +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.js +18 -18
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useCustomer.js +18 -18
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useEntity.js +18 -18
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListEvents.js +18 -18
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useListPlans.js +18 -18
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/hooks/useReferrals.js +18 -18
- 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 +24 -24
- package/dist/react/index.mjs +9 -9
- package/dist/react/{list-plans-op-BdOxN1FS.d.ts → list-plans-op-BpypCKd4.d.ts} +4 -4
- package/dist/react/{list-plans-op--w_i80gy.d.mts → list-plans-op-qIIJzne_.d.mts} +4 -4
- package/dist/react/{params-Dk9XX3Ql.d.mts → params-C-0Z0NXW.d.mts} +1 -1
- package/dist/react/{params-_Bb3H0_F.d.ts → params-DGCHegZ2.d.ts} +1 -1
- package/dist/react/{plan--HshF-xs.d.mts → plan-Cv3WkiHC.d.mts} +3 -3
- package/dist/react/{plan--HshF-xs.d.ts → plan-Cv3WkiHC.d.ts} +3 -3
- package/dist/sdk/index.d.mts +1136 -100
- package/dist/sdk/index.d.ts +1136 -100
- package/dist/sdk/index.js +1015 -142
- package/dist/sdk/index.mjs +864 -97
- package/package.json +1 -1
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -40,7 +40,7 @@ __export(hooks_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(hooks_exports);
|
|
42
42
|
|
|
43
|
-
// ../../node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
43
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
44
44
|
var Subscribable = class {
|
|
45
45
|
constructor() {
|
|
46
46
|
this.listeners = /* @__PURE__ */ new Set();
|
|
@@ -63,7 +63,7 @@ var Subscribable = class {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
66
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
67
67
|
var FocusManager = class extends Subscribable {
|
|
68
68
|
#focused;
|
|
69
69
|
#cleanup;
|
|
@@ -125,7 +125,7 @@ var FocusManager = class extends Subscribable {
|
|
|
125
125
|
};
|
|
126
126
|
var focusManager = new FocusManager();
|
|
127
127
|
|
|
128
|
-
// ../../node_modules/@tanstack/query-core/build/modern/timeoutManager.js
|
|
128
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/timeoutManager.js
|
|
129
129
|
var defaultTimeoutProvider = {
|
|
130
130
|
// We need the wrapper function syntax below instead of direct references to
|
|
131
131
|
// global setTimeout etc.
|
|
@@ -190,7 +190,7 @@ function systemSetTimeoutZero(callback) {
|
|
|
190
190
|
setTimeout(callback, 0);
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
// ../../node_modules/@tanstack/query-core/build/modern/utils.js
|
|
193
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/utils.js
|
|
194
194
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
195
195
|
function noop() {
|
|
196
196
|
}
|
|
@@ -301,7 +301,7 @@ function shouldThrowError(throwOnError, params) {
|
|
|
301
301
|
return !!throwOnError;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
// ../../node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
304
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
305
305
|
var environmentManager = /* @__PURE__ */ (() => {
|
|
306
306
|
let isServerFn = () => isServer;
|
|
307
307
|
return {
|
|
@@ -320,7 +320,7 @@ var environmentManager = /* @__PURE__ */ (() => {
|
|
|
320
320
|
};
|
|
321
321
|
})();
|
|
322
322
|
|
|
323
|
-
// ../../node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
323
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
324
324
|
function pendingThenable() {
|
|
325
325
|
let resolve;
|
|
326
326
|
let reject;
|
|
@@ -353,7 +353,7 @@ function pendingThenable() {
|
|
|
353
353
|
return thenable;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
// ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
356
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
357
357
|
var defaultScheduler = systemSetTimeoutZero;
|
|
358
358
|
function createNotifyManager() {
|
|
359
359
|
let queue = [];
|
|
@@ -433,7 +433,7 @@ function createNotifyManager() {
|
|
|
433
433
|
}
|
|
434
434
|
var notifyManager = createNotifyManager();
|
|
435
435
|
|
|
436
|
-
// ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
436
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
437
437
|
var OnlineManager = class extends Subscribable {
|
|
438
438
|
#online = true;
|
|
439
439
|
#cleanup;
|
|
@@ -485,12 +485,12 @@ var OnlineManager = class extends Subscribable {
|
|
|
485
485
|
};
|
|
486
486
|
var onlineManager = new OnlineManager();
|
|
487
487
|
|
|
488
|
-
// ../../node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
488
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
489
489
|
function canFetch(networkMode) {
|
|
490
490
|
return (networkMode ?? "online") === "online" ? onlineManager.isOnline() : true;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
// ../../node_modules/@tanstack/query-core/build/modern/query.js
|
|
493
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/query.js
|
|
494
494
|
function fetchState(data, options) {
|
|
495
495
|
return {
|
|
496
496
|
fetchFailureCount: 0,
|
|
@@ -503,7 +503,7 @@ function fetchState(data, options) {
|
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
// ../../node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
506
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
507
507
|
var QueryObserver = class extends Subscribable {
|
|
508
508
|
constructor(client, options) {
|
|
509
509
|
super();
|
|
@@ -956,7 +956,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
956
956
|
return false;
|
|
957
957
|
}
|
|
958
958
|
|
|
959
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
959
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/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/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
976
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/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/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
982
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/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/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
1002
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/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/@tanstack/react-query/build/modern/suspense.js
|
|
1027
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/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/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
1048
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/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/@tanstack/react-query/build/modern/useQuery.js
|
|
1134
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/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-RTZAB46K.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useCustomer
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-CQF3ER2L.mjs";
|
|
8
|
+
import "../chunk-LUBYNTYC.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-7SRCZYRC.mjs";
|
|
17
17
|
import {
|
|
18
18
|
useListEvents
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-CSJHU3F2.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useListPlans
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-SBCI4L22.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useReferrals
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-QUGX6XRQ.mjs";
|
|
26
|
+
import "../chunk-KCOHZSS3.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-DUVEYKmJ.mjs';
|
|
2
|
+
import '../../../plan-Cv3WkiHC.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-DWsFqhDO.js';
|
|
2
|
+
import '../../../plan-Cv3WkiHC.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-DUVEYKmJ.mjs';
|
|
2
|
+
import '../../../plan-Cv3WkiHC.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-DWsFqhDO.js';
|
|
2
|
+
import '../../../plan-Cv3WkiHC.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-Cv3WkiHC.mjs';
|
|
2
|
+
import { C as Customer } from '../../../customer-DUVEYKmJ.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-Cv3WkiHC.js';
|
|
2
|
+
import { C as Customer } from '../../../customer-DWsFqhDO.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-DUVEYKmJ.mjs';
|
|
2
|
+
import '../../../plan-Cv3WkiHC.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-DWsFqhDO.js';
|
|
2
|
+
import '../../../plan-Cv3WkiHC.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-C-0Z0NXW.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DUVEYKmJ.mjs';
|
|
3
|
+
import '../../plan-Cv3WkiHC.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-DGCHegZ2.js';
|
|
2
|
+
import { C as Customer } from '../../customer-DWsFqhDO.js';
|
|
3
|
+
import '../../plan-Cv3WkiHC.js';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
6
6
|
customer: Customer | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
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-C-0Z0NXW.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DUVEYKmJ.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
|
-
import '../../plan
|
|
5
|
-
import '../../list-plans-op
|
|
4
|
+
import '../../plan-Cv3WkiHC.mjs';
|
|
5
|
+
import '../../list-plans-op-qIIJzne_.mjs';
|
|
6
6
|
|
|
7
7
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
8
8
|
client: IAutumnClient;
|
|
@@ -1,8 +1,8 @@
|
|
|
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-DGCHegZ2.js';
|
|
2
|
+
import { C as Customer } from '../../customer-DWsFqhDO.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
|
-
import '../../plan
|
|
5
|
-
import '../../list-plans-op-
|
|
4
|
+
import '../../plan-Cv3WkiHC.js';
|
|
5
|
+
import '../../list-plans-op-BpypCKd4.js';
|
|
6
6
|
|
|
7
7
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
8
8
|
client: IAutumnClient;
|
|
@@ -36,7 +36,7 @@ __export(useCustomerActions_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(useCustomerActions_exports);
|
|
38
38
|
|
|
39
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
39
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/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(
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
useCustomerActions
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-LUBYNTYC.mjs";
|
|
6
6
|
import "../../chunk-BWKG32GC.mjs";
|
|
7
7
|
import "../../chunk-GSJF6P3Q.mjs";
|
|
8
8
|
import "../../chunk-SEQHNPTF.mjs";
|
|
9
9
|
import "../../chunk-4TON573W.mjs";
|
|
10
10
|
import "../../chunk-D6DFRS3U.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-KCOHZSS3.mjs";
|
|
12
12
|
export {
|
|
13
13
|
useCustomerActions
|
|
14
14
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-C-0Z0NXW.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan
|
|
5
|
+
import '../plan-Cv3WkiHC.mjs';
|
|
6
6
|
|
|
7
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
8
8
|
declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-DGCHegZ2.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan
|
|
5
|
+
import '../plan-Cv3WkiHC.js';
|
|
6
6
|
|
|
7
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
8
8
|
declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
|
|
@@ -36,7 +36,7 @@ __export(useAggregateEvents_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(useAggregateEvents_exports);
|
|
38
38
|
|
|
39
|
-
// ../../node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
39
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
40
40
|
var Subscribable = class {
|
|
41
41
|
constructor() {
|
|
42
42
|
this.listeners = /* @__PURE__ */ new Set();
|
|
@@ -59,7 +59,7 @@ var Subscribable = class {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
// ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
62
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
63
63
|
var FocusManager = class extends Subscribable {
|
|
64
64
|
#focused;
|
|
65
65
|
#cleanup;
|
|
@@ -121,7 +121,7 @@ var FocusManager = class extends Subscribable {
|
|
|
121
121
|
};
|
|
122
122
|
var focusManager = new FocusManager();
|
|
123
123
|
|
|
124
|
-
// ../../node_modules/@tanstack/query-core/build/modern/timeoutManager.js
|
|
124
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/timeoutManager.js
|
|
125
125
|
var defaultTimeoutProvider = {
|
|
126
126
|
// We need the wrapper function syntax below instead of direct references to
|
|
127
127
|
// global setTimeout etc.
|
|
@@ -186,7 +186,7 @@ function systemSetTimeoutZero(callback) {
|
|
|
186
186
|
setTimeout(callback, 0);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
// ../../node_modules/@tanstack/query-core/build/modern/utils.js
|
|
189
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/utils.js
|
|
190
190
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
191
191
|
function noop() {
|
|
192
192
|
}
|
|
@@ -297,7 +297,7 @@ function shouldThrowError(throwOnError, params) {
|
|
|
297
297
|
return !!throwOnError;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
// ../../node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
300
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
301
301
|
var environmentManager = /* @__PURE__ */ (() => {
|
|
302
302
|
let isServerFn = () => isServer;
|
|
303
303
|
return {
|
|
@@ -316,7 +316,7 @@ var environmentManager = /* @__PURE__ */ (() => {
|
|
|
316
316
|
};
|
|
317
317
|
})();
|
|
318
318
|
|
|
319
|
-
// ../../node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
319
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
320
320
|
function pendingThenable() {
|
|
321
321
|
let resolve;
|
|
322
322
|
let reject;
|
|
@@ -349,7 +349,7 @@ function pendingThenable() {
|
|
|
349
349
|
return thenable;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
// ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
352
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
353
353
|
var defaultScheduler = systemSetTimeoutZero;
|
|
354
354
|
function createNotifyManager() {
|
|
355
355
|
let queue = [];
|
|
@@ -429,7 +429,7 @@ function createNotifyManager() {
|
|
|
429
429
|
}
|
|
430
430
|
var notifyManager = createNotifyManager();
|
|
431
431
|
|
|
432
|
-
// ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
432
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
433
433
|
var OnlineManager = class extends Subscribable {
|
|
434
434
|
#online = true;
|
|
435
435
|
#cleanup;
|
|
@@ -481,12 +481,12 @@ var OnlineManager = class extends Subscribable {
|
|
|
481
481
|
};
|
|
482
482
|
var onlineManager = new OnlineManager();
|
|
483
483
|
|
|
484
|
-
// ../../node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
484
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
485
485
|
function canFetch(networkMode) {
|
|
486
486
|
return (networkMode ?? "online") === "online" ? onlineManager.isOnline() : true;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
// ../../node_modules/@tanstack/query-core/build/modern/query.js
|
|
489
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/query.js
|
|
490
490
|
function fetchState(data, options) {
|
|
491
491
|
return {
|
|
492
492
|
fetchFailureCount: 0,
|
|
@@ -499,7 +499,7 @@ function fetchState(data, options) {
|
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
// ../../node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
502
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.101.1/node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
503
503
|
var QueryObserver = class extends Subscribable {
|
|
504
504
|
constructor(client, options) {
|
|
505
505
|
super();
|
|
@@ -952,7 +952,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
952
952
|
return false;
|
|
953
953
|
}
|
|
954
954
|
|
|
955
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
955
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
956
956
|
var React = __toESM(require("react"), 1);
|
|
957
957
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
958
958
|
var QueryClientContext = React.createContext(
|
|
@@ -969,13 +969,13 @@ var useQueryClient = (queryClient) => {
|
|
|
969
969
|
return client;
|
|
970
970
|
};
|
|
971
971
|
|
|
972
|
-
// ../../node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
972
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
973
973
|
var React2 = __toESM(require("react"), 1);
|
|
974
974
|
var IsRestoringContext = React2.createContext(false);
|
|
975
975
|
var useIsRestoring = () => React2.useContext(IsRestoringContext);
|
|
976
976
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
977
977
|
|
|
978
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
978
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
979
979
|
var React3 = __toESM(require("react"), 1);
|
|
980
980
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
981
981
|
function createValue() {
|
|
@@ -995,7 +995,7 @@ function createValue() {
|
|
|
995
995
|
var QueryErrorResetBoundaryContext = React3.createContext(createValue());
|
|
996
996
|
var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
|
|
997
997
|
|
|
998
|
-
// ../../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
998
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
999
999
|
var React4 = __toESM(require("react"), 1);
|
|
1000
1000
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
|
|
1001
1001
|
const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
|
|
@@ -1020,7 +1020,7 @@ var getHasError = ({
|
|
|
1020
1020
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
1021
1021
|
};
|
|
1022
1022
|
|
|
1023
|
-
// ../../node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
1023
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
1024
1024
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
1025
1025
|
if (defaultedOptions.suspense) {
|
|
1026
1026
|
const MIN_SUSPENSE_TIME_MS = 1e3;
|
|
@@ -1041,7 +1041,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
1041
1041
|
errorResetBoundary.clearReset();
|
|
1042
1042
|
});
|
|
1043
1043
|
|
|
1044
|
-
// ../../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
1044
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
1045
1045
|
var React5 = __toESM(require("react"), 1);
|
|
1046
1046
|
function useBaseQuery(options, Observer, queryClient) {
|
|
1047
1047
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1127,7 +1127,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
1127
1127
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
1128
1128
|
}
|
|
1129
1129
|
|
|
1130
|
-
// ../../node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1130
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1131
1131
|
function useQuery(options, queryClient) {
|
|
1132
1132
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
1133
1133
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ClientCheckParams, 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, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { n as ClientCheckParams, 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, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-C-0Z0NXW.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-DUVEYKmJ.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
|
-
import '../plan
|
|
4
|
+
import '../plan-Cv3WkiHC.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '../client/AutumnClientError.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ClientCheckParams, 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, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { n as ClientCheckParams, 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, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-DGCHegZ2.js';
|
|
2
|
+
import { C as Customer } from '../customer-DWsFqhDO.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
|
-
import '../plan
|
|
4
|
+
import '../plan-Cv3WkiHC.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '../client/AutumnClientError.js';
|
|
7
7
|
|