autumn-js 1.2.12 → 1.2.13
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 +91 -4
- package/dist/backend/adapters/express.mjs +6 -6
- package/dist/backend/adapters/fetch.js +91 -4
- package/dist/backend/adapters/fetch.mjs +6 -6
- package/dist/backend/adapters/hono.js +91 -4
- package/dist/backend/adapters/hono.mjs +6 -6
- package/dist/backend/adapters/index.js +91 -4
- package/dist/backend/adapters/index.mjs +9 -9
- package/dist/backend/adapters/next.js +91 -4
- package/dist/backend/adapters/next.mjs +6 -6
- package/dist/backend/{chunk-JQX5WYYY.mjs → chunk-7BVATYGA.mjs} +1 -1
- package/dist/backend/{chunk-7Q77N2K2.mjs → chunk-DNNJOZAT.mjs} +1 -1
- package/dist/backend/{chunk-N53PKNZ6.mjs → chunk-EJGHP7KT.mjs} +2 -2
- package/dist/backend/{chunk-X4LPDDOP.mjs → chunk-MANTLPDT.mjs} +4 -0
- package/dist/backend/{chunk-4Q54RXI2.mjs → chunk-OUDB34Y7.mjs} +1 -1
- package/dist/backend/{chunk-SE5CK5NY.mjs → chunk-RPH5L44S.mjs} +1 -1
- package/dist/backend/{chunk-UEYDU64U.mjs → chunk-T42RZEUZ.mjs} +87 -4
- package/dist/backend/{chunk-ITXMMCSD.mjs → chunk-YSQQKZBU.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 +91 -4
- package/dist/backend/core/handlers/coreHandler.mjs +4 -4
- 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 +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +91 -4
- package/dist/backend/core/handlers/handleRouteByName.mjs +4 -4
- 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 +91 -4
- package/dist/backend/core/handlers/index.mjs +5 -5
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +91 -4
- 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 +4 -0
- 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 +4 -0
- 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 +91 -4
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-D0ag5-Tb.d.ts → routeTypes-B94_Mq2J.d.ts} +93 -0
- package/dist/backend/{routeTypes-Cu-XQy7A.d.mts → routeTypes-DVwngaBn.d.mts} +93 -0
- package/dist/better-auth/{chunk-TEP6CVHR.mjs → chunk-4OWECHZC.mjs} +1 -1
- package/dist/better-auth/{chunk-GKUK5UGW.mjs → chunk-JIFD4TSN.mjs} +4 -0
- package/dist/better-auth/{chunk-XFATOIZD.mjs → chunk-ZZGFPTHO.mjs} +88 -5
- package/dist/better-auth/client.d.mts +3 -7
- package/dist/better-auth/client.d.ts +3 -7
- package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.mts +43 -0
- package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.ts +43 -0
- package/dist/better-auth/index.d.mts +3 -7
- package/dist/better-auth/index.d.ts +3 -7
- package/dist/better-auth/index.js +91 -4
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.d.mts +3 -7
- package/dist/better-auth/utils/createAutumnEndpoint.d.ts +3 -7
- package/dist/better-auth/utils/createAutumnEndpoint.js +4 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +3 -7
- package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +3 -7
- package/dist/better-auth/utils/handleBetterAuthRoute.js +91 -4
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.d.mts +3 -8
- package/dist/better-auth/utils/index.d.ts +3 -8
- package/dist/better-auth/utils/index.js +91 -4
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/AutumnProvider.js +15 -15
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-26CKSAPZ.mjs → chunk-7IDH4OMG.mjs} +1 -1
- package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-BDG6JHEW.mjs} +1 -1
- package/dist/react/{chunk-KB72KQKN.mjs → chunk-DEZBJQEG.mjs} +1 -1
- package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-E5ZHOMZ4.mjs} +23 -23
- package/dist/react/{chunk-OXQG65ZT.mjs → chunk-FWWIAOPU.mjs} +1 -1
- package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-HVBDZARN.mjs} +2 -2
- package/dist/react/{chunk-MC2YYATT.mjs → chunk-J6SLKTKE.mjs} +1 -1
- package/dist/react/{chunk-CHU7CIWP.mjs → chunk-NSFHAUTD.mjs} +1 -1
- package/dist/react/{chunk-G7FTQLT7.mjs → chunk-YQFYWH7J.mjs} +1 -1
- package/dist/react/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +16 -3
- package/dist/react/client/IAutumnClient.d.ts +16 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-CbcVyRCQ.d.ts → customer-CaGJEN5J.d.ts} +1 -1
- package/dist/react/{customer-BYYt9N1h.d.mts → customer-DB8vL_m7.d.mts} +1 -1
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- 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 +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 +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- 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 +16 -16
- 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 +16 -16
- 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 +16 -16
- 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 +16 -16
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useListPlans.js +16 -16
- 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 +16 -16
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +22 -22
- package/dist/react/index.mjs +9 -9
- package/dist/react/{params-By0MIRsJ.d.ts → params-B5l9vHfZ.d.ts} +1 -1
- package/dist/react/{params-CUb0ZlUG.d.mts → params-BVglT8vT.d.mts} +1 -1
- package/dist/react/{plan-CqxFGNk2.d.mts → plan-DSTBzzTY.d.mts} +13 -0
- package/dist/react/{plan-CqxFGNk2.d.ts → plan-DSTBzzTY.d.ts} +13 -0
- package/dist/sdk/index.d.mts +125 -1
- package/dist/sdk/index.d.ts +125 -1
- package/dist/sdk/index.js +146 -4
- package/dist/sdk/index.mjs +133 -5
- package/package.json +1 -1
- package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.mts +0 -309
- package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.ts +0 -309
package/dist/react/index.js
CHANGED
|
@@ -57,7 +57,7 @@ var useAutumnClient = ({
|
|
|
57
57
|
return context.client;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
// ../../node_modules
|
|
60
|
+
// ../../node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
61
61
|
var Subscribable = class {
|
|
62
62
|
constructor() {
|
|
63
63
|
this.listeners = /* @__PURE__ */ new Set();
|
|
@@ -80,7 +80,7 @@ var Subscribable = class {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
// ../../node_modules
|
|
83
|
+
// ../../node_modules/@tanstack/query-core/build/modern/utils.js
|
|
84
84
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
85
85
|
function noop() {
|
|
86
86
|
}
|
|
@@ -305,7 +305,7 @@ function shouldThrowError(throwOnError, params) {
|
|
|
305
305
|
return !!throwOnError;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
// ../../node_modules
|
|
308
|
+
// ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
309
309
|
var FocusManager = class extends Subscribable {
|
|
310
310
|
#focused;
|
|
311
311
|
#cleanup;
|
|
@@ -367,7 +367,7 @@ var FocusManager = class extends Subscribable {
|
|
|
367
367
|
};
|
|
368
368
|
var focusManager = new FocusManager();
|
|
369
369
|
|
|
370
|
-
// ../../node_modules
|
|
370
|
+
// ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
371
371
|
var OnlineManager = class extends Subscribable {
|
|
372
372
|
#online = true;
|
|
373
373
|
#cleanup;
|
|
@@ -419,7 +419,7 @@ var OnlineManager = class extends Subscribable {
|
|
|
419
419
|
};
|
|
420
420
|
var onlineManager = new OnlineManager();
|
|
421
421
|
|
|
422
|
-
// ../../node_modules
|
|
422
|
+
// ../../node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
423
423
|
function pendingThenable() {
|
|
424
424
|
let resolve;
|
|
425
425
|
let reject;
|
|
@@ -452,7 +452,7 @@ function pendingThenable() {
|
|
|
452
452
|
return thenable;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
// ../../node_modules
|
|
455
|
+
// ../../node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
456
456
|
function defaultRetryDelay(failureCount) {
|
|
457
457
|
return Math.min(1e3 * 2 ** failureCount, 3e4);
|
|
458
458
|
}
|
|
@@ -572,7 +572,7 @@ function createRetryer(config) {
|
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
// ../../node_modules
|
|
575
|
+
// ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
576
576
|
var defaultScheduler = (cb) => setTimeout(cb, 0);
|
|
577
577
|
function createNotifyManager() {
|
|
578
578
|
let queue = [];
|
|
@@ -652,7 +652,7 @@ function createNotifyManager() {
|
|
|
652
652
|
}
|
|
653
653
|
var notifyManager = createNotifyManager();
|
|
654
654
|
|
|
655
|
-
// ../../node_modules
|
|
655
|
+
// ../../node_modules/@tanstack/query-core/build/modern/removable.js
|
|
656
656
|
var Removable = class {
|
|
657
657
|
#gcTimeout;
|
|
658
658
|
destroy() {
|
|
@@ -680,7 +680,7 @@ var Removable = class {
|
|
|
680
680
|
}
|
|
681
681
|
};
|
|
682
682
|
|
|
683
|
-
// ../../node_modules
|
|
683
|
+
// ../../node_modules/@tanstack/query-core/build/modern/query.js
|
|
684
684
|
var Query = class extends Removable {
|
|
685
685
|
#initialState;
|
|
686
686
|
#revertState;
|
|
@@ -1081,7 +1081,7 @@ function getDefaultState(options) {
|
|
|
1081
1081
|
};
|
|
1082
1082
|
}
|
|
1083
1083
|
|
|
1084
|
-
// ../../node_modules
|
|
1084
|
+
// ../../node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1085
1085
|
var QueryCache = class extends Subscribable {
|
|
1086
1086
|
constructor(config = {}) {
|
|
1087
1087
|
super();
|
|
@@ -1171,7 +1171,7 @@ var QueryCache = class extends Subscribable {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
};
|
|
1173
1173
|
|
|
1174
|
-
// ../../node_modules
|
|
1174
|
+
// ../../node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
1175
1175
|
var Mutation = class extends Removable {
|
|
1176
1176
|
#observers;
|
|
1177
1177
|
#mutationCache;
|
|
@@ -1402,7 +1402,7 @@ function getDefaultState2() {
|
|
|
1402
1402
|
};
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
|
-
// ../../node_modules
|
|
1405
|
+
// ../../node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
1406
1406
|
var MutationCache = class extends Subscribable {
|
|
1407
1407
|
constructor(config = {}) {
|
|
1408
1408
|
super();
|
|
@@ -1518,7 +1518,7 @@ function scopeFor(mutation) {
|
|
|
1518
1518
|
return mutation.options.scope?.id;
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
|
-
// ../../node_modules
|
|
1521
|
+
// ../../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
1522
1522
|
function infiniteQueryBehavior(pages) {
|
|
1523
1523
|
return {
|
|
1524
1524
|
onFetch: (context, query) => {
|
|
@@ -1627,7 +1627,7 @@ function getPreviousPageParam(options, { pages, pageParams }) {
|
|
|
1627
1627
|
return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
-
// ../../node_modules
|
|
1630
|
+
// ../../node_modules/@tanstack/query-core/build/modern/queryClient.js
|
|
1631
1631
|
var QueryClient = class {
|
|
1632
1632
|
#queryCache;
|
|
1633
1633
|
#mutationCache;
|
|
@@ -1914,7 +1914,7 @@ var QueryClient = class {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
};
|
|
1916
1916
|
|
|
1917
|
-
// ../../node_modules
|
|
1917
|
+
// ../../node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
1918
1918
|
var QueryObserver = class extends Subscribable {
|
|
1919
1919
|
constructor(client, options) {
|
|
1920
1920
|
super();
|
|
@@ -2362,7 +2362,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
2362
2362
|
return false;
|
|
2363
2363
|
}
|
|
2364
2364
|
|
|
2365
|
-
// ../../node_modules
|
|
2365
|
+
// ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
2366
2366
|
var React = __toESM(require("react"), 1);
|
|
2367
2367
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
2368
2368
|
var QueryClientContext = React.createContext(
|
|
@@ -2391,13 +2391,13 @@ var QueryClientProvider = ({
|
|
|
2391
2391
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientContext.Provider, { value: client, children });
|
|
2392
2392
|
};
|
|
2393
2393
|
|
|
2394
|
-
// ../../node_modules
|
|
2394
|
+
// ../../node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
2395
2395
|
var React2 = __toESM(require("react"), 1);
|
|
2396
2396
|
var IsRestoringContext = React2.createContext(false);
|
|
2397
2397
|
var useIsRestoring = () => React2.useContext(IsRestoringContext);
|
|
2398
2398
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
2399
2399
|
|
|
2400
|
-
// ../../node_modules
|
|
2400
|
+
// ../../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
2401
2401
|
var React3 = __toESM(require("react"), 1);
|
|
2402
2402
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
2403
2403
|
function createValue() {
|
|
@@ -2417,7 +2417,7 @@ function createValue() {
|
|
|
2417
2417
|
var QueryErrorResetBoundaryContext = React3.createContext(createValue());
|
|
2418
2418
|
var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
|
|
2419
2419
|
|
|
2420
|
-
// ../../node_modules
|
|
2420
|
+
// ../../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
2421
2421
|
var React4 = __toESM(require("react"), 1);
|
|
2422
2422
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
2423
2423
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
@@ -2441,7 +2441,7 @@ var getHasError = ({
|
|
|
2441
2441
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
2442
2442
|
};
|
|
2443
2443
|
|
|
2444
|
-
// ../../node_modules
|
|
2444
|
+
// ../../node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
2445
2445
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
2446
2446
|
if (defaultedOptions.suspense) {
|
|
2447
2447
|
const clamp = (value) => value === "static" ? value : Math.max(value ?? 1e3, 1e3);
|
|
@@ -2458,7 +2458,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
2458
2458
|
errorResetBoundary.clearReset();
|
|
2459
2459
|
});
|
|
2460
2460
|
|
|
2461
|
-
// ../../node_modules
|
|
2461
|
+
// ../../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
2462
2462
|
var React5 = __toESM(require("react"), 1);
|
|
2463
2463
|
function useBaseQuery(options, Observer, queryClient) {
|
|
2464
2464
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2542,7 +2542,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
2542
2542
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
2543
2543
|
}
|
|
2544
2544
|
|
|
2545
|
-
// ../../node_modules
|
|
2545
|
+
// ../../node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
2546
2546
|
function useQuery(options, queryClient) {
|
|
2547
2547
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
2548
2548
|
}
|
package/dist/react/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AutumnProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7IDH4OMG.mjs";
|
|
5
5
|
import "./chunk-7KBQVCNO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createAutumnClient
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
} from "./chunk-IC3QHWR6.mjs";
|
|
13
13
|
import {
|
|
14
14
|
useAggregateEvents
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NSFHAUTD.mjs";
|
|
16
16
|
import {
|
|
17
17
|
useCustomer
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-HVBDZARN.mjs";
|
|
19
|
+
import "./chunk-DEZBJQEG.mjs";
|
|
20
20
|
import "./chunk-BWKG32GC.mjs";
|
|
21
21
|
import "./chunk-GSJF6P3Q.mjs";
|
|
22
22
|
import "./chunk-SEQHNPTF.mjs";
|
|
@@ -24,17 +24,17 @@ import "./chunk-4TON573W.mjs";
|
|
|
24
24
|
import "./chunk-D6DFRS3U.mjs";
|
|
25
25
|
import {
|
|
26
26
|
useEntity
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FWWIAOPU.mjs";
|
|
28
28
|
import {
|
|
29
29
|
useListEvents
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-J6SLKTKE.mjs";
|
|
31
31
|
import {
|
|
32
32
|
useListPlans
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BDG6JHEW.mjs";
|
|
34
34
|
import {
|
|
35
35
|
useReferrals
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-YQFYWH7J.mjs";
|
|
37
|
+
import "./chunk-E5ZHOMZ4.mjs";
|
|
38
38
|
import {
|
|
39
39
|
useAutumnClient
|
|
40
40
|
} from "./chunk-SOA7GEAN.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-
|
|
1
|
+
import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-DSTBzzTY.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Time range to aggregate events for. Either range or custom_range must be provided
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-
|
|
1
|
+
import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-DSTBzzTY.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Time range to aggregate events for. Either range or custom_range must be provided
|
|
@@ -569,6 +569,15 @@ declare const PlanEnv: {
|
|
|
569
569
|
* Environment this plan belongs to ('sandbox' or 'live').
|
|
570
570
|
*/
|
|
571
571
|
type PlanEnv = OpenEnum<typeof PlanEnv>;
|
|
572
|
+
/**
|
|
573
|
+
* Miscellaneous plan-level configuration flags.
|
|
574
|
+
*/
|
|
575
|
+
type PlanConfig = {
|
|
576
|
+
/**
|
|
577
|
+
* If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
|
|
578
|
+
*/
|
|
579
|
+
ignorePastDue: boolean;
|
|
580
|
+
};
|
|
572
581
|
/**
|
|
573
582
|
* The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
|
|
574
583
|
*/
|
|
@@ -673,6 +682,10 @@ type Plan = {
|
|
|
673
682
|
* If this is a variant, the ID of the base plan it was created from.
|
|
674
683
|
*/
|
|
675
684
|
baseVariantId: string | null;
|
|
685
|
+
/**
|
|
686
|
+
* Miscellaneous plan-level configuration flags.
|
|
687
|
+
*/
|
|
688
|
+
config: PlanConfig;
|
|
676
689
|
customerEligibility?: CustomerEligibility | undefined;
|
|
677
690
|
};
|
|
678
691
|
|
|
@@ -569,6 +569,15 @@ declare const PlanEnv: {
|
|
|
569
569
|
* Environment this plan belongs to ('sandbox' or 'live').
|
|
570
570
|
*/
|
|
571
571
|
type PlanEnv = OpenEnum<typeof PlanEnv>;
|
|
572
|
+
/**
|
|
573
|
+
* Miscellaneous plan-level configuration flags.
|
|
574
|
+
*/
|
|
575
|
+
type PlanConfig = {
|
|
576
|
+
/**
|
|
577
|
+
* If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
|
|
578
|
+
*/
|
|
579
|
+
ignorePastDue: boolean;
|
|
580
|
+
};
|
|
572
581
|
/**
|
|
573
582
|
* The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
|
|
574
583
|
*/
|
|
@@ -673,6 +682,10 @@ type Plan = {
|
|
|
673
682
|
* If this is a variant, the ID of the base plan it was created from.
|
|
674
683
|
*/
|
|
675
684
|
baseVariantId: string | null;
|
|
685
|
+
/**
|
|
686
|
+
* Miscellaneous plan-level configuration flags.
|
|
687
|
+
*/
|
|
688
|
+
config: PlanConfig;
|
|
676
689
|
customerEligibility?: CustomerEligibility | undefined;
|
|
677
690
|
};
|
|
678
691
|
|