autumn-js 1.2.19 → 1.2.21
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 +2481 -1919
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +2481 -1919
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +2481 -1919
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +2481 -1919
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +2481 -1919
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-VZ5YXSHU.mjs → chunk-5JNYI5HM.mjs} +1 -1
- package/dist/backend/{chunk-USOCI4FE.mjs → chunk-73KXFYFC.mjs} +5 -5
- package/dist/backend/{chunk-T5RLLZJB.mjs → chunk-GKYVE5XN.mjs} +2424 -1881
- package/dist/backend/{chunk-ATDRCSQT.mjs → chunk-H6KJYTJY.mjs} +7 -7
- package/dist/backend/{chunk-3TCAUBKX.mjs → chunk-K2JSUNJX.mjs} +1 -1
- package/dist/backend/{chunk-JAP7IT2U.mjs → chunk-NNIHXZQM.mjs} +1 -1
- package/dist/backend/{chunk-IJ2K62QI.mjs → chunk-NSHGFU5H.mjs} +59 -40
- package/dist/backend/{chunk-XBCWZIUH.mjs → chunk-TGR2RWLO.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 +2481 -1919
- 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 +2481 -1919
- 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 +2481 -1919
- 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 +2481 -1919
- 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 +59 -40
- 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 +59 -40
- 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 +2481 -1919
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-gNxrwRsV.d.ts → routeTypes-B-Bkse9m.d.ts} +628 -7
- package/dist/backend/{routeTypes-BCnBLtb9.d.mts → routeTypes-DZFxBYSb.d.mts} +628 -7
- package/dist/better-auth/{chunk-VAQYB57J.mjs → chunk-4OLXYKUC.mjs} +2425 -1882
- package/dist/better-auth/{chunk-4QQUN4SQ.mjs → chunk-R35KMMJZ.mjs} +1 -1
- package/dist/better-auth/{chunk-XXPUYN7Z.mjs → chunk-X6KOCWP3.mjs} +59 -40
- package/dist/better-auth/index.js +2476 -1914
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +59 -40
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +2481 -1919
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +2476 -1914
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/AutumnProvider.js +15 -15
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-7IDH4OMG.mjs → chunk-26CKSAPZ.mjs} +1 -1
- package/dist/react/{chunk-NSFHAUTD.mjs → chunk-CHU7CIWP.mjs} +1 -1
- package/dist/react/{chunk-YQFYWH7J.mjs → chunk-G7FTQLT7.mjs} +1 -1
- package/dist/react/{chunk-BDG6JHEW.mjs → chunk-HSQUB3BZ.mjs} +1 -1
- package/dist/react/{chunk-DEZBJQEG.mjs → chunk-KB72KQKN.mjs} +1 -1
- package/dist/react/{chunk-J6SLKTKE.mjs → chunk-MC2YYATT.mjs} +1 -1
- package/dist/react/{chunk-FWWIAOPU.mjs → chunk-OXQG65ZT.mjs} +1 -1
- package/dist/react/{chunk-E5ZHOMZ4.mjs → chunk-XJZH5NMZ.mjs} +23 -23
- package/dist/react/{chunk-HVBDZARN.mjs → chunk-ZGPE4R6H.mjs} +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/{customer-SSq4WO45.d.ts → customer-CzMuZp8W.d.ts} +1 -0
- package/dist/react/{customer-BgMiezZt.d.mts → customer-DjlCjlmM.d.mts} +1 -0
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/index.js +16 -16
- package/dist/react/hooks/index.mjs +8 -8
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- 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 +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.js +16 -16
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useCustomer.js +16 -16
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useEntity.js +16 -16
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListEvents.js +16 -16
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useListPlans.js +16 -16
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/hooks/useReferrals.js +16 -16
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +22 -22
- package/dist/react/index.mjs +9 -9
- package/dist/react/{params--mMxYT5w.d.mts → params-BUQLwLrI.d.mts} +52 -0
- package/dist/react/{params-DVrQcAu7.d.ts → params-dYykqsvL.d.ts} +52 -0
- package/dist/sdk/index.d.mts +850 -106
- package/dist/sdk/index.d.ts +850 -106
- package/dist/sdk/index.js +4314 -3545
- package/dist/sdk/index.mjs +4240 -3539
- package/package.json +1 -1
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.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.85.6/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/utils.js
|
|
66
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/utils.js
|
|
67
67
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
68
68
|
function noop() {
|
|
69
69
|
}
|
|
@@ -171,7 +171,7 @@ function shouldThrowError(throwOnError, params) {
|
|
|
171
171
|
return !!throwOnError;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
// ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
174
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
175
175
|
var FocusManager = class extends Subscribable {
|
|
176
176
|
#focused;
|
|
177
177
|
#cleanup;
|
|
@@ -233,7 +233,7 @@ var FocusManager = class extends Subscribable {
|
|
|
233
233
|
};
|
|
234
234
|
var focusManager = new FocusManager();
|
|
235
235
|
|
|
236
|
-
// ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
236
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
237
237
|
var OnlineManager = class extends Subscribable {
|
|
238
238
|
#online = true;
|
|
239
239
|
#cleanup;
|
|
@@ -285,7 +285,7 @@ var OnlineManager = class extends Subscribable {
|
|
|
285
285
|
};
|
|
286
286
|
var onlineManager = new OnlineManager();
|
|
287
287
|
|
|
288
|
-
// ../../node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
288
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
289
289
|
function pendingThenable() {
|
|
290
290
|
let resolve;
|
|
291
291
|
let reject;
|
|
@@ -318,12 +318,12 @@ function pendingThenable() {
|
|
|
318
318
|
return thenable;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
// ../../node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
321
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
322
322
|
function canFetch(networkMode) {
|
|
323
323
|
return (networkMode ?? "online") === "online" ? onlineManager.isOnline() : true;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
// ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
326
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
327
327
|
var defaultScheduler = (cb) => setTimeout(cb, 0);
|
|
328
328
|
function createNotifyManager() {
|
|
329
329
|
let queue = [];
|
|
@@ -403,7 +403,7 @@ function createNotifyManager() {
|
|
|
403
403
|
}
|
|
404
404
|
var notifyManager = createNotifyManager();
|
|
405
405
|
|
|
406
|
-
// ../../node_modules/@tanstack/query-core/build/modern/query.js
|
|
406
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/query.js
|
|
407
407
|
function fetchState(data, options) {
|
|
408
408
|
return {
|
|
409
409
|
fetchFailureCount: 0,
|
|
@@ -416,7 +416,7 @@ function fetchState(data, options) {
|
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
// ../../node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
419
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
420
420
|
var QueryObserver = class extends Subscribable {
|
|
421
421
|
constructor(client, options) {
|
|
422
422
|
super();
|
|
@@ -864,7 +864,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
864
864
|
return false;
|
|
865
865
|
}
|
|
866
866
|
|
|
867
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
867
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
868
868
|
var React = __toESM(require("react"), 1);
|
|
869
869
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
870
870
|
var QueryClientContext = React.createContext(
|
|
@@ -881,13 +881,13 @@ var useQueryClient = (queryClient) => {
|
|
|
881
881
|
return client;
|
|
882
882
|
};
|
|
883
883
|
|
|
884
|
-
// ../../node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
884
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
885
885
|
var React2 = __toESM(require("react"), 1);
|
|
886
886
|
var IsRestoringContext = React2.createContext(false);
|
|
887
887
|
var useIsRestoring = () => React2.useContext(IsRestoringContext);
|
|
888
888
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
889
889
|
|
|
890
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
890
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
891
891
|
var React3 = __toESM(require("react"), 1);
|
|
892
892
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
893
893
|
function createValue() {
|
|
@@ -907,7 +907,7 @@ function createValue() {
|
|
|
907
907
|
var QueryErrorResetBoundaryContext = React3.createContext(createValue());
|
|
908
908
|
var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
|
|
909
909
|
|
|
910
|
-
// ../../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
910
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
911
911
|
var React4 = __toESM(require("react"), 1);
|
|
912
912
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
913
913
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
@@ -931,7 +931,7 @@ var getHasError = ({
|
|
|
931
931
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
932
932
|
};
|
|
933
933
|
|
|
934
|
-
// ../../node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
934
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
935
935
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
936
936
|
if (defaultedOptions.suspense) {
|
|
937
937
|
const clamp = (value) => value === "static" ? value : Math.max(value ?? 1e3, 1e3);
|
|
@@ -948,7 +948,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
948
948
|
errorResetBoundary.clearReset();
|
|
949
949
|
});
|
|
950
950
|
|
|
951
|
-
// ../../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
951
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
952
952
|
var React5 = __toESM(require("react"), 1);
|
|
953
953
|
function useBaseQuery(options, Observer, queryClient) {
|
|
954
954
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1032,7 +1032,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
1032
1032
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
|
-
// ../../node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1035
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1036
1036
|
function useQuery(options, queryClient) {
|
|
1037
1037
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
1038
1038
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useAggregateEvents
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CHU7CIWP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useCustomer
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ZGPE4R6H.mjs";
|
|
8
|
+
import "../chunk-KB72KQKN.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-OXQG65ZT.mjs";
|
|
17
17
|
import {
|
|
18
18
|
useListEvents
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-MC2YYATT.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useListPlans
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-HSQUB3BZ.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useReferrals
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-G7FTQLT7.mjs";
|
|
26
|
+
import "../chunk-XJZH5NMZ.mjs";
|
|
27
27
|
import "../chunk-SOA7GEAN.mjs";
|
|
28
28
|
export {
|
|
29
29
|
useAggregateEvents,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BalanceFeature } from '../../../plan-DSTBzzTY.mjs';
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
+
import { C as Customer } from '../../../customer-DjlCjlmM.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BalanceFeature } from '../../../plan-DSTBzzTY.js';
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
+
import { C as Customer } from '../../../customer-CzMuZp8W.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 { o as ClientCheckParams, s as CheckResponse } from '../../params
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { o as ClientCheckParams, s as CheckResponse } from '../../params-BUQLwLrI.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DjlCjlmM.mjs';
|
|
3
3
|
import '../../plan-DSTBzzTY.mjs';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ClientCheckParams, s as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { o as ClientCheckParams, s as CheckResponse } from '../../params-dYykqsvL.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CzMuZp8W.js';
|
|
3
3
|
import '../../plan-DSTBzzTY.js';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s 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, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-BUQLwLrI.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DjlCjlmM.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
4
|
import '../../plan-DSTBzzTY.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s 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, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-dYykqsvL.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CzMuZp8W.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
4
|
import '../../plan-DSTBzzTY.js';
|
|
5
5
|
|
|
@@ -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.85.6+f4eacebf2041cd4f/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-KB72KQKN.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-XJZH5NMZ.mjs";
|
|
12
12
|
export {
|
|
13
13
|
useCustomerActions
|
|
14
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params
|
|
2
|
+
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-BUQLwLrI.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
5
|
import '../plan-DSTBzzTY.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-dYykqsvL.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
5
|
import '../plan-DSTBzzTY.js';
|
|
@@ -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.85.6/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/utils.js
|
|
62
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/utils.js
|
|
63
63
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
64
64
|
function noop() {
|
|
65
65
|
}
|
|
@@ -167,7 +167,7 @@ function shouldThrowError(throwOnError, params) {
|
|
|
167
167
|
return !!throwOnError;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
// ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
170
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
171
171
|
var FocusManager = class extends Subscribable {
|
|
172
172
|
#focused;
|
|
173
173
|
#cleanup;
|
|
@@ -229,7 +229,7 @@ var FocusManager = class extends Subscribable {
|
|
|
229
229
|
};
|
|
230
230
|
var focusManager = new FocusManager();
|
|
231
231
|
|
|
232
|
-
// ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
232
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
233
233
|
var OnlineManager = class extends Subscribable {
|
|
234
234
|
#online = true;
|
|
235
235
|
#cleanup;
|
|
@@ -281,7 +281,7 @@ var OnlineManager = class extends Subscribable {
|
|
|
281
281
|
};
|
|
282
282
|
var onlineManager = new OnlineManager();
|
|
283
283
|
|
|
284
|
-
// ../../node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
284
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
285
285
|
function pendingThenable() {
|
|
286
286
|
let resolve;
|
|
287
287
|
let reject;
|
|
@@ -314,12 +314,12 @@ function pendingThenable() {
|
|
|
314
314
|
return thenable;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
// ../../node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
317
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
318
318
|
function canFetch(networkMode) {
|
|
319
319
|
return (networkMode ?? "online") === "online" ? onlineManager.isOnline() : true;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
// ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
322
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
323
323
|
var defaultScheduler = (cb) => setTimeout(cb, 0);
|
|
324
324
|
function createNotifyManager() {
|
|
325
325
|
let queue = [];
|
|
@@ -399,7 +399,7 @@ function createNotifyManager() {
|
|
|
399
399
|
}
|
|
400
400
|
var notifyManager = createNotifyManager();
|
|
401
401
|
|
|
402
|
-
// ../../node_modules/@tanstack/query-core/build/modern/query.js
|
|
402
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/query.js
|
|
403
403
|
function fetchState(data, options) {
|
|
404
404
|
return {
|
|
405
405
|
fetchFailureCount: 0,
|
|
@@ -412,7 +412,7 @@ function fetchState(data, options) {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
// ../../node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
415
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
416
416
|
var QueryObserver = class extends Subscribable {
|
|
417
417
|
constructor(client, options) {
|
|
418
418
|
super();
|
|
@@ -860,7 +860,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
860
860
|
return false;
|
|
861
861
|
}
|
|
862
862
|
|
|
863
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
863
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
864
864
|
var React = __toESM(require("react"), 1);
|
|
865
865
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
866
866
|
var QueryClientContext = React.createContext(
|
|
@@ -877,13 +877,13 @@ var useQueryClient = (queryClient) => {
|
|
|
877
877
|
return client;
|
|
878
878
|
};
|
|
879
879
|
|
|
880
|
-
// ../../node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
880
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
881
881
|
var React2 = __toESM(require("react"), 1);
|
|
882
882
|
var IsRestoringContext = React2.createContext(false);
|
|
883
883
|
var useIsRestoring = () => React2.useContext(IsRestoringContext);
|
|
884
884
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
885
885
|
|
|
886
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
886
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
887
887
|
var React3 = __toESM(require("react"), 1);
|
|
888
888
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
889
889
|
function createValue() {
|
|
@@ -903,7 +903,7 @@ function createValue() {
|
|
|
903
903
|
var QueryErrorResetBoundaryContext = React3.createContext(createValue());
|
|
904
904
|
var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
|
|
905
905
|
|
|
906
|
-
// ../../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
906
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
907
907
|
var React4 = __toESM(require("react"), 1);
|
|
908
908
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
909
909
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
@@ -927,7 +927,7 @@ var getHasError = ({
|
|
|
927
927
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
928
928
|
};
|
|
929
929
|
|
|
930
|
-
// ../../node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
930
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
931
931
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
932
932
|
if (defaultedOptions.suspense) {
|
|
933
933
|
const clamp = (value) => value === "static" ? value : Math.max(value ?? 1e3, 1e3);
|
|
@@ -944,7 +944,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
944
944
|
errorResetBoundary.clearReset();
|
|
945
945
|
});
|
|
946
946
|
|
|
947
|
-
// ../../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
947
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
948
948
|
var React5 = __toESM(require("react"), 1);
|
|
949
949
|
function useBaseQuery(options, Observer, queryClient) {
|
|
950
950
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1028,7 +1028,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
1028
1028
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
-
// ../../node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1031
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1032
1032
|
function useQuery(options, queryClient) {
|
|
1033
1033
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
1034
1034
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t 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 { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-BUQLwLrI.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-DjlCjlmM.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
4
|
import '../plan-DSTBzzTY.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t 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 { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-dYykqsvL.js';
|
|
2
|
+
import { C as Customer } from '../customer-CzMuZp8W.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
4
|
import '../plan-DSTBzzTY.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
@@ -36,7 +36,7 @@ __export(useCustomer_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(useCustomer_exports);
|
|
38
38
|
|
|
39
|
-
// ../../node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
39
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/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/utils.js
|
|
62
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/utils.js
|
|
63
63
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
64
64
|
function noop() {
|
|
65
65
|
}
|
|
@@ -167,7 +167,7 @@ function shouldThrowError(throwOnError, params) {
|
|
|
167
167
|
return !!throwOnError;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
// ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
170
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
171
171
|
var FocusManager = class extends Subscribable {
|
|
172
172
|
#focused;
|
|
173
173
|
#cleanup;
|
|
@@ -229,7 +229,7 @@ var FocusManager = class extends Subscribable {
|
|
|
229
229
|
};
|
|
230
230
|
var focusManager = new FocusManager();
|
|
231
231
|
|
|
232
|
-
// ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
232
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
233
233
|
var OnlineManager = class extends Subscribable {
|
|
234
234
|
#online = true;
|
|
235
235
|
#cleanup;
|
|
@@ -281,7 +281,7 @@ var OnlineManager = class extends Subscribable {
|
|
|
281
281
|
};
|
|
282
282
|
var onlineManager = new OnlineManager();
|
|
283
283
|
|
|
284
|
-
// ../../node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
284
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
285
285
|
function pendingThenable() {
|
|
286
286
|
let resolve;
|
|
287
287
|
let reject;
|
|
@@ -314,12 +314,12 @@ function pendingThenable() {
|
|
|
314
314
|
return thenable;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
// ../../node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
317
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
318
318
|
function canFetch(networkMode) {
|
|
319
319
|
return (networkMode ?? "online") === "online" ? onlineManager.isOnline() : true;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
// ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
322
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
323
323
|
var defaultScheduler = (cb) => setTimeout(cb, 0);
|
|
324
324
|
function createNotifyManager() {
|
|
325
325
|
let queue = [];
|
|
@@ -399,7 +399,7 @@ function createNotifyManager() {
|
|
|
399
399
|
}
|
|
400
400
|
var notifyManager = createNotifyManager();
|
|
401
401
|
|
|
402
|
-
// ../../node_modules/@tanstack/query-core/build/modern/query.js
|
|
402
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/query.js
|
|
403
403
|
function fetchState(data, options) {
|
|
404
404
|
return {
|
|
405
405
|
fetchFailureCount: 0,
|
|
@@ -412,7 +412,7 @@ function fetchState(data, options) {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
// ../../node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
415
|
+
// ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
416
416
|
var QueryObserver = class extends Subscribable {
|
|
417
417
|
constructor(client, options) {
|
|
418
418
|
super();
|
|
@@ -860,7 +860,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
860
860
|
return false;
|
|
861
861
|
}
|
|
862
862
|
|
|
863
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
863
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
864
864
|
var React = __toESM(require("react"), 1);
|
|
865
865
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
866
866
|
var QueryClientContext = React.createContext(
|
|
@@ -877,13 +877,13 @@ var useQueryClient = (queryClient) => {
|
|
|
877
877
|
return client;
|
|
878
878
|
};
|
|
879
879
|
|
|
880
|
-
// ../../node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
880
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
881
881
|
var React2 = __toESM(require("react"), 1);
|
|
882
882
|
var IsRestoringContext = React2.createContext(false);
|
|
883
883
|
var useIsRestoring = () => React2.useContext(IsRestoringContext);
|
|
884
884
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
885
885
|
|
|
886
|
-
// ../../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
886
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
887
887
|
var React3 = __toESM(require("react"), 1);
|
|
888
888
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
889
889
|
function createValue() {
|
|
@@ -903,7 +903,7 @@ function createValue() {
|
|
|
903
903
|
var QueryErrorResetBoundaryContext = React3.createContext(createValue());
|
|
904
904
|
var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
|
|
905
905
|
|
|
906
|
-
// ../../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
906
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
907
907
|
var React4 = __toESM(require("react"), 1);
|
|
908
908
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
909
909
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
@@ -927,7 +927,7 @@ var getHasError = ({
|
|
|
927
927
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
928
928
|
};
|
|
929
929
|
|
|
930
|
-
// ../../node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
930
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
931
931
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
932
932
|
if (defaultedOptions.suspense) {
|
|
933
933
|
const clamp = (value) => value === "static" ? value : Math.max(value ?? 1e3, 1e3);
|
|
@@ -944,7 +944,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
944
944
|
errorResetBoundary.clearReset();
|
|
945
945
|
});
|
|
946
946
|
|
|
947
|
-
// ../../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
947
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
948
948
|
var React5 = __toESM(require("react"), 1);
|
|
949
949
|
function useBaseQuery(options, Observer, queryClient) {
|
|
950
950
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1028,7 +1028,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
1028
1028
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
-
// ../../node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1031
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1032
1032
|
function useQuery(options, queryClient) {
|
|
1033
1033
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
1034
1034
|
}
|