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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.mjs';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../customer-
|
|
2
|
+
import '../params-BVglT8vT.mjs';
|
|
3
|
+
import '../plan-DSTBzzTY.mjs';
|
|
4
|
+
import '../customer-DB8vL_m7.mjs';
|
|
5
5
|
|
|
6
6
|
/** Configuration for Autumn client */
|
|
7
7
|
type AutumnClientConfig = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.js';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../customer-
|
|
2
|
+
import '../params-B5l9vHfZ.js';
|
|
3
|
+
import '../plan-DSTBzzTY.js';
|
|
4
|
+
import '../customer-CaGJEN5J.js';
|
|
5
5
|
|
|
6
6
|
/** Configuration for Autumn client */
|
|
7
7
|
type AutumnClientConfig = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { 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, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, v as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
3
|
-
import { O as OpenEnum } from '../plan-
|
|
1
|
+
import { 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, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, v as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BVglT8vT.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-DB8vL_m7.mjs';
|
|
3
|
+
import { O as OpenEnum } from '../plan-DSTBzzTY.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Billing interval (e.g. 'month', 'year').
|
|
@@ -320,6 +320,15 @@ declare const ListPlansEnv: {
|
|
|
320
320
|
* Environment this plan belongs to ('sandbox' or 'live').
|
|
321
321
|
*/
|
|
322
322
|
type ListPlansEnv = OpenEnum<typeof ListPlansEnv>;
|
|
323
|
+
/**
|
|
324
|
+
* Miscellaneous plan-level configuration flags.
|
|
325
|
+
*/
|
|
326
|
+
type ListPlansConfig = {
|
|
327
|
+
/**
|
|
328
|
+
* If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
|
|
329
|
+
*/
|
|
330
|
+
ignorePastDue: boolean;
|
|
331
|
+
};
|
|
323
332
|
/**
|
|
324
333
|
* The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
|
|
325
334
|
*/
|
|
@@ -427,6 +436,10 @@ type ListPlansList = {
|
|
|
427
436
|
* If this is a variant, the ID of the base plan it was created from.
|
|
428
437
|
*/
|
|
429
438
|
baseVariantId: string | null;
|
|
439
|
+
/**
|
|
440
|
+
* Miscellaneous plan-level configuration flags.
|
|
441
|
+
*/
|
|
442
|
+
config: ListPlansConfig;
|
|
430
443
|
customerEligibility?: ListPlansCustomerEligibility | undefined;
|
|
431
444
|
};
|
|
432
445
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { 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, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, v as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
3
|
-
import { O as OpenEnum } from '../plan-
|
|
1
|
+
import { 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, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, v as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B5l9vHfZ.js';
|
|
2
|
+
import { C as Customer } from '../customer-CaGJEN5J.js';
|
|
3
|
+
import { O as OpenEnum } from '../plan-DSTBzzTY.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Billing interval (e.g. 'month', 'year').
|
|
@@ -320,6 +320,15 @@ declare const ListPlansEnv: {
|
|
|
320
320
|
* Environment this plan belongs to ('sandbox' or 'live').
|
|
321
321
|
*/
|
|
322
322
|
type ListPlansEnv = OpenEnum<typeof ListPlansEnv>;
|
|
323
|
+
/**
|
|
324
|
+
* Miscellaneous plan-level configuration flags.
|
|
325
|
+
*/
|
|
326
|
+
type ListPlansConfig = {
|
|
327
|
+
/**
|
|
328
|
+
* If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
|
|
329
|
+
*/
|
|
330
|
+
ignorePastDue: boolean;
|
|
331
|
+
};
|
|
323
332
|
/**
|
|
324
333
|
* The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
|
|
325
334
|
*/
|
|
@@ -427,6 +436,10 @@ type ListPlansList = {
|
|
|
427
436
|
* If this is a variant, the ID of the base plan it was created from.
|
|
428
437
|
*/
|
|
429
438
|
baseVariantId: string | null;
|
|
439
|
+
/**
|
|
440
|
+
* Miscellaneous plan-level configuration flags.
|
|
441
|
+
*/
|
|
442
|
+
config: ListPlansConfig;
|
|
430
443
|
customerEligibility?: ListPlansCustomerEligibility | undefined;
|
|
431
444
|
};
|
|
432
445
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.mjs';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.mjs';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.mjs';
|
|
4
|
-
import '../params-
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../customer-
|
|
4
|
+
import '../params-BVglT8vT.mjs';
|
|
5
|
+
import '../plan-DSTBzzTY.mjs';
|
|
6
|
+
import '../customer-DB8vL_m7.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.js';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.js';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.js';
|
|
4
|
-
import '../params-
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../customer-
|
|
4
|
+
import '../params-B5l9vHfZ.js';
|
|
5
|
+
import '../plan-DSTBzzTY.js';
|
|
6
|
+
import '../customer-CaGJEN5J.js';
|
|
@@ -7,6 +7,6 @@ export { UseListPlansParams, useListPlans } from './useListPlans.mjs';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.mjs';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.mjs';
|
|
10
|
-
import '../params-
|
|
11
|
-
import '../plan-
|
|
12
|
-
import '../customer-
|
|
10
|
+
import '../params-BVglT8vT.mjs';
|
|
11
|
+
import '../plan-DSTBzzTY.mjs';
|
|
12
|
+
import '../customer-DB8vL_m7.mjs';
|
|
@@ -7,6 +7,6 @@ export { UseListPlansParams, useListPlans } from './useListPlans.js';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.js';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.js';
|
|
10
|
-
import '../params-
|
|
11
|
-
import '../plan-
|
|
12
|
-
import '../customer-
|
|
10
|
+
import '../params-B5l9vHfZ.js';
|
|
11
|
+
import '../plan-DSTBzzTY.js';
|
|
12
|
+
import '../customer-CaGJEN5J.js';
|
|
@@ -40,7 +40,7 @@ __export(hooks_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(hooks_exports);
|
|
42
42
|
|
|
43
|
-
// ../../node_modules
|
|
43
|
+
// ../../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
|
|
66
|
+
// ../../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
|
|
174
|
+
// ../../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
|
|
236
|
+
// ../../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
|
|
288
|
+
// ../../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
|
|
321
|
+
// ../../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
|
|
326
|
+
// ../../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
|
|
406
|
+
// ../../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
|
|
419
|
+
// ../../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
|
|
867
|
+
// ../../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
|
|
884
|
+
// ../../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
|
|
890
|
+
// ../../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
|
|
910
|
+
// ../../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
|
|
934
|
+
// ../../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
|
|
951
|
+
// ../../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
|
|
1035
|
+
// ../../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-NSFHAUTD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useCustomer
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-HVBDZARN.mjs";
|
|
8
|
+
import "../chunk-DEZBJQEG.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-FWWIAOPU.mjs";
|
|
17
17
|
import {
|
|
18
18
|
useListEvents
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-J6SLKTKE.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useListPlans
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-BDG6JHEW.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useReferrals
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-YQFYWH7J.mjs";
|
|
26
|
+
import "../chunk-E5ZHOMZ4.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-DB8vL_m7.mjs';
|
|
2
|
+
import '../../../plan-DSTBzzTY.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-CaGJEN5J.js';
|
|
2
|
+
import '../../../plan-DSTBzzTY.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-DB8vL_m7.mjs';
|
|
2
|
+
import '../../../plan-DSTBzzTY.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-CaGJEN5J.js';
|
|
2
|
+
import '../../../plan-DSTBzzTY.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-DSTBzzTY.mjs';
|
|
2
|
+
import { C as Customer } from '../../../customer-DB8vL_m7.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-DSTBzzTY.js';
|
|
2
|
+
import { C as Customer } from '../../../customer-CaGJEN5J.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-DB8vL_m7.mjs';
|
|
2
|
+
import '../../../plan-DSTBzzTY.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-CaGJEN5J.js';
|
|
2
|
+
import '../../../plan-DSTBzzTY.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 { o as ClientCheckParams, s as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
3
|
-
import '../../plan-
|
|
1
|
+
import { o as ClientCheckParams, s as CheckResponse } from '../../params-BVglT8vT.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DB8vL_m7.mjs';
|
|
3
|
+
import '../../plan-DSTBzzTY.mjs';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
6
6
|
customer: Customer | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as ClientCheckParams, s as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
3
|
-
import '../../plan-
|
|
1
|
+
import { o as ClientCheckParams, s as CheckResponse } from '../../params-B5l9vHfZ.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CaGJEN5J.js';
|
|
3
|
+
import '../../plan-DSTBzzTY.js';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
6
6
|
customer: Customer | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-BVglT8vT.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DB8vL_m7.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
|
-
import '../../plan-
|
|
4
|
+
import '../../plan-DSTBzzTY.mjs';
|
|
5
5
|
|
|
6
6
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
7
7
|
client: IAutumnClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-B5l9vHfZ.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CaGJEN5J.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
|
-
import '../../plan-
|
|
4
|
+
import '../../plan-DSTBzzTY.js';
|
|
5
5
|
|
|
6
6
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
7
7
|
client: IAutumnClient;
|
|
@@ -36,7 +36,7 @@ __export(useCustomerActions_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(useCustomerActions_exports);
|
|
38
38
|
|
|
39
|
-
// ../../node_modules
|
|
39
|
+
// ../../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-DEZBJQEG.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-E5ZHOMZ4.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, 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-BVglT8vT.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-DSTBzzTY.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, 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-B5l9vHfZ.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-DSTBzzTY.js';
|
|
6
6
|
|
|
7
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
8
8
|
declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
|