autumn-js 1.2.44 → 1.2.45
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 +71 -1
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +71 -1
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +71 -1
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +71 -1
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +71 -1
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-HMEVH6GK.mjs → chunk-5DLBV5WP.mjs} +2 -2
- package/dist/backend/{chunk-43PV6A4J.mjs → chunk-67LHAREL.mjs} +1 -1
- package/dist/backend/{chunk-PKU2QG3V.mjs → chunk-DY6WMOCT.mjs} +2 -2
- package/dist/backend/{chunk-W2L6YF67.mjs → chunk-J2VZ3UZS.mjs} +1 -1
- package/dist/backend/{chunk-GRPW7PMD.mjs → chunk-L7N6FVEE.mjs} +1 -1
- package/dist/backend/{chunk-YOZEZHQY.mjs → chunk-P2TFPTAM.mjs} +1 -1
- package/dist/backend/{chunk-UBDJHK2I.mjs → chunk-PVDDMLWT.mjs} +35 -1
- package/dist/backend/{chunk-NX26QVC6.mjs → chunk-YKRFY5TK.mjs} +36 -0
- 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 +71 -1
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- 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/handleRouteByName.js +71 -1
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- 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 +71 -1
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +71 -1
- package/dist/backend/core/index.mjs +4 -4
- 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 +36 -0
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +36 -0
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +71 -1
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-CODz5Cb_.d.ts → routeTypes-COLvwrcx.d.ts} +137 -1
- package/dist/backend/{routeTypes-CJ1KepjZ.d.mts → routeTypes-UN48tvoc.d.mts} +137 -1
- package/dist/better-auth/{chunk-W2AEIA6U.mjs → chunk-3LKXO3EE.mjs} +1 -1
- package/dist/better-auth/{chunk-7LUOWWZI.mjs → chunk-J3W4EO5H.mjs} +36 -0
- package/dist/better-auth/{chunk-XME6A73W.mjs → chunk-MOCG3CBD.mjs} +36 -2
- package/dist/better-auth/index.js +71 -1
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +36 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +71 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +71 -1
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +7 -4
- package/dist/react/AutumnContext.d.ts +7 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-2LdIXsvH.d.ts → customer-CNfSCDv_.d.ts} +1 -1
- package/dist/react/{customer-VoTRBlpB.d.mts → customer-VD6pkmpz.d.mts} +1 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +7 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +7 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +5 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +5 -2
- package/dist/react/hooks/useCustomer.d.mts +4 -3
- package/dist/react/hooks/useCustomer.d.ts +4 -3
- package/dist/react/hooks/useEntity.d.mts +3 -2
- package/dist/react/hooks/useEntity.d.ts +3 -2
- package/dist/react/hooks/useListEvents.d.mts +5 -2
- package/dist/react/hooks/useListEvents.d.ts +5 -2
- package/dist/react/hooks/useListPlans.d.mts +6 -3
- package/dist/react/hooks/useListPlans.d.ts +6 -3
- package/dist/react/hooks/useReferrals.d.mts +3 -2
- package/dist/react/hooks/useReferrals.d.ts +3 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-op-Bv7x0N22.d.ts → list-plans-op-B87IUSZR.d.ts} +9 -1
- package/dist/react/{list-plans-op-Cj9hlzsX.d.mts → list-plans-op-CvGXtKAO.d.mts} +9 -1
- package/dist/react/{params-5C7THGzd.d.mts → params-ChMwkOJA.d.ts} +69 -1
- package/dist/react/{params-B1og9_ES.d.ts → params-DlzWLPN2.d.mts} +69 -1
- package/dist/react/{plan-Kbxmz27V.d.mts → plan-DBswUtWr.d.mts} +8 -0
- package/dist/react/{plan-Kbxmz27V.d.ts → plan-DBswUtWr.d.ts} +8 -0
- package/dist/sdk/index.d.mts +161 -1
- package/dist/sdk/index.d.ts +161 -1
- package/dist/sdk/index.js +35 -1
- package/dist/sdk/index.mjs +35 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
3
|
-
import { L as ListPlansResponse } from '../list-plans-op-
|
|
4
|
-
import '../plan-
|
|
1
|
+
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DlzWLPN2.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-VD6pkmpz.mjs';
|
|
3
|
+
import { L as ListPlansResponse } from '../list-plans-op-CvGXtKAO.mjs';
|
|
4
|
+
import '../plan-DBswUtWr.mjs';
|
|
5
5
|
|
|
6
6
|
/** Client interface matching backend RPC routes */
|
|
7
7
|
interface IAutumnClient {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
3
|
-
import { L as ListPlansResponse } from '../list-plans-op-
|
|
4
|
-
import '../plan-
|
|
1
|
+
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-ChMwkOJA.js';
|
|
2
|
+
import { C as Customer } from '../customer-CNfSCDv_.js';
|
|
3
|
+
import { L as ListPlansResponse } from '../list-plans-op-B87IUSZR.js';
|
|
4
|
+
import '../plan-DBswUtWr.js';
|
|
5
5
|
|
|
6
6
|
/** Client interface matching backend RPC routes */
|
|
7
7
|
interface IAutumnClient {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.mjs';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.mjs';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.mjs';
|
|
4
|
-
import '../params-
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../customer-
|
|
7
|
-
import '../list-plans-op-
|
|
4
|
+
import '../params-DlzWLPN2.mjs';
|
|
5
|
+
import '../plan-DBswUtWr.mjs';
|
|
6
|
+
import '../customer-VD6pkmpz.mjs';
|
|
7
|
+
import '../list-plans-op-CvGXtKAO.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.js';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.js';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.js';
|
|
4
|
-
import '../params-
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../customer-
|
|
7
|
-
import '../list-plans-op-
|
|
4
|
+
import '../params-ChMwkOJA.js';
|
|
5
|
+
import '../plan-DBswUtWr.js';
|
|
6
|
+
import '../customer-CNfSCDv_.js';
|
|
7
|
+
import '../list-plans-op-B87IUSZR.js';
|
|
@@ -7,7 +7,7 @@ export { UseListPlansParams, useListPlans } from './useListPlans.mjs';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.mjs';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.mjs';
|
|
10
|
-
import '../params-
|
|
11
|
-
import '../plan-
|
|
12
|
-
import '../customer-
|
|
13
|
-
import '../list-plans-op-
|
|
10
|
+
import '../params-DlzWLPN2.mjs';
|
|
11
|
+
import '../plan-DBswUtWr.mjs';
|
|
12
|
+
import '../customer-VD6pkmpz.mjs';
|
|
13
|
+
import '../list-plans-op-CvGXtKAO.mjs';
|
|
@@ -7,7 +7,7 @@ export { UseListPlansParams, useListPlans } from './useListPlans.js';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.js';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.js';
|
|
10
|
-
import '../params-
|
|
11
|
-
import '../plan-
|
|
12
|
-
import '../customer-
|
|
13
|
-
import '../list-plans-op-
|
|
10
|
+
import '../params-ChMwkOJA.js';
|
|
11
|
+
import '../plan-DBswUtWr.js';
|
|
12
|
+
import '../customer-CNfSCDv_.js';
|
|
13
|
+
import '../list-plans-op-B87IUSZR.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-VD6pkmpz.mjs';
|
|
2
|
+
import '../../../plan-DBswUtWr.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerBalance = Customer["balances"][string];
|
|
5
5
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-CNfSCDv_.js';
|
|
2
|
+
import '../../../plan-DBswUtWr.js';
|
|
3
3
|
|
|
4
4
|
type CustomerBalance = Customer["balances"][string];
|
|
5
5
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-VD6pkmpz.mjs';
|
|
2
|
+
import '../../../plan-DBswUtWr.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const customerToFeatures: ({ customer, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-CNfSCDv_.js';
|
|
2
|
+
import '../../../plan-DBswUtWr.js';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const customerToFeatures: ({ customer, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BalanceFeature } from '../../../plan-
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
1
|
+
import { B as BalanceFeature } from '../../../plan-DBswUtWr.mjs';
|
|
2
|
+
import { C as Customer } from '../../../customer-VD6pkmpz.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BalanceFeature } from '../../../plan-
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
1
|
+
import { B as BalanceFeature } from '../../../plan-DBswUtWr.js';
|
|
2
|
+
import { C as Customer } from '../../../customer-CNfSCDv_.js';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-VD6pkmpz.mjs';
|
|
2
|
+
import '../../../plan-DBswUtWr.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const getCreditCost: ({ featureId, creditSystem, amount, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-CNfSCDv_.js';
|
|
2
|
+
import '../../../plan-DBswUtWr.js';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const getCreditCost: ({ featureId, creditSystem, amount, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ClientCheckParams, o as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
3
|
-
import '../../plan-
|
|
1
|
+
import { n as ClientCheckParams, o as CheckResponse } from '../../params-DlzWLPN2.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-VD6pkmpz.mjs';
|
|
3
|
+
import '../../plan-DBswUtWr.mjs';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
6
6
|
customer: Customer | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ClientCheckParams, o as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
3
|
-
import '../../plan-
|
|
1
|
+
import { n as ClientCheckParams, o as CheckResponse } from '../../params-ChMwkOJA.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CNfSCDv_.js';
|
|
3
|
+
import '../../plan-DBswUtWr.js';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
6
6
|
customer: Customer | null;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-DlzWLPN2.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-VD6pkmpz.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../list-plans-op-
|
|
4
|
+
import '../../plan-DBswUtWr.mjs';
|
|
5
|
+
import '../../list-plans-op-CvGXtKAO.mjs';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
9
|
+
*/
|
|
7
10
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
8
11
|
client: IAutumnClient;
|
|
9
12
|
customer: Customer | null;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-ChMwkOJA.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CNfSCDv_.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../list-plans-op-
|
|
4
|
+
import '../../plan-DBswUtWr.js';
|
|
5
|
+
import '../../list-plans-op-B87IUSZR.js';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
9
|
+
*/
|
|
7
10
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
8
11
|
client: IAutumnClient;
|
|
9
12
|
customer: Customer | null;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-DlzWLPN2.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-DBswUtWr.mjs';
|
|
6
6
|
|
|
7
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
10
|
+
*/
|
|
8
11
|
declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
|
|
9
12
|
list: AggregateEventsList[] | undefined;
|
|
10
13
|
total: {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-ChMwkOJA.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-DBswUtWr.js';
|
|
6
6
|
|
|
7
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
10
|
+
*/
|
|
8
11
|
declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
|
|
9
12
|
list: AggregateEventsList[] | undefined;
|
|
10
13
|
total: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-DlzWLPN2.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-VD6pkmpz.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
|
-
import '../plan-
|
|
4
|
+
import '../plan-DBswUtWr.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '../client/AutumnClientError.mjs';
|
|
7
7
|
|
|
@@ -75,6 +75,7 @@ type UseCustomerResult = HookResultWithMethods<Customer | null, {
|
|
|
75
75
|
* Fetches or creates an Autumn customer and provides billing actions.
|
|
76
76
|
*
|
|
77
77
|
* @returns Customer data along with billing methods: `attach`, `previewAttach`, `updateSubscription`, `previewUpdateSubscription`, `multiAttach`, `previewMultiAttach`, `check`, `setupPayment`, and `openCustomerPortal`.
|
|
78
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
78
79
|
*/
|
|
79
80
|
declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
|
|
80
81
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-ChMwkOJA.js';
|
|
2
|
+
import { C as Customer } from '../customer-CNfSCDv_.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
|
-
import '../plan-
|
|
4
|
+
import '../plan-DBswUtWr.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '../client/AutumnClientError.js';
|
|
7
7
|
|
|
@@ -75,6 +75,7 @@ type UseCustomerResult = HookResultWithMethods<Customer | null, {
|
|
|
75
75
|
* Fetches or creates an Autumn customer and provides billing actions.
|
|
76
76
|
*
|
|
77
77
|
* @returns Customer data along with billing methods: `attach`, `previewAttach`, `updateSubscription`, `previewUpdateSubscription`, `multiAttach`, `previewMultiAttach`, `check`, `setupPayment`, and `openCustomerPortal`.
|
|
78
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
78
79
|
*/
|
|
79
80
|
declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
|
|
80
81
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DlzWLPN2.mjs';
|
|
2
2
|
import { HookParams, HookResult } from './types.mjs';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-DBswUtWr.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '../client/AutumnClientError.mjs';
|
|
6
6
|
|
|
@@ -10,6 +10,7 @@ type UseEntityResult = HookResult<GetEntityResponse | null>;
|
|
|
10
10
|
* Fetches an Autumn entity (sub-resource of a customer, eg. a seat or project).
|
|
11
11
|
*
|
|
12
12
|
* @returns Entity data including subscriptions, purchases, and balances.
|
|
13
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
13
14
|
*/
|
|
14
15
|
declare const useEntity: (params: UseEntityParams) => UseEntityResult;
|
|
15
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-ChMwkOJA.js';
|
|
2
2
|
import { HookParams, HookResult } from './types.js';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-DBswUtWr.js';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '../client/AutumnClientError.js';
|
|
6
6
|
|
|
@@ -10,6 +10,7 @@ type UseEntityResult = HookResult<GetEntityResponse | null>;
|
|
|
10
10
|
* Fetches an Autumn entity (sub-resource of a customer, eg. a seat or project).
|
|
11
11
|
*
|
|
12
12
|
* @returns Entity data including subscriptions, purchases, and balances.
|
|
13
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
13
14
|
*/
|
|
14
15
|
declare const useEntity: (params: UseEntityParams) => UseEntityResult;
|
|
15
16
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-DlzWLPN2.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-DBswUtWr.mjs';
|
|
6
6
|
|
|
7
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
10
|
+
*/
|
|
8
11
|
declare const useListEvents: (params?: UseListEventsParams) => {
|
|
9
12
|
list: ListEventsList[] | undefined;
|
|
10
13
|
hasMore: boolean;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-ChMwkOJA.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-DBswUtWr.js';
|
|
6
6
|
|
|
7
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
10
|
+
*/
|
|
8
11
|
declare const useListEvents: (params?: UseListEventsParams) => {
|
|
9
12
|
list: ListEventsList[] | undefined;
|
|
10
13
|
hasMore: boolean;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { a as ListPlansList } from '../list-plans-op-
|
|
3
|
-
import { t as ClientListPlansParams } from '../params-
|
|
2
|
+
import { a as ListPlansList } from '../list-plans-op-CvGXtKAO.mjs';
|
|
3
|
+
import { t as ClientListPlansParams } from '../params-DlzWLPN2.mjs';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
5
5
|
import { HookParams } from './types.mjs';
|
|
6
|
-
import '../plan-
|
|
6
|
+
import '../plan-DBswUtWr.mjs';
|
|
7
7
|
|
|
8
8
|
type UseListPlansParams = HookParams<ClientListPlansParams, ListPlansList[]>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
11
|
+
*/
|
|
9
12
|
declare const useListPlans: (params?: UseListPlansParams) => _tanstack_react_query.UseQueryResult<NoInfer<ListPlansList[]>, AutumnClientError>;
|
|
10
13
|
|
|
11
14
|
export { type UseListPlansParams, useListPlans };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { a as ListPlansList } from '../list-plans-op-
|
|
3
|
-
import { t as ClientListPlansParams } from '../params-
|
|
2
|
+
import { a as ListPlansList } from '../list-plans-op-B87IUSZR.js';
|
|
3
|
+
import { t as ClientListPlansParams } from '../params-ChMwkOJA.js';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
5
5
|
import { HookParams } from './types.js';
|
|
6
|
-
import '../plan-
|
|
6
|
+
import '../plan-DBswUtWr.js';
|
|
7
7
|
|
|
8
8
|
type UseListPlansParams = HookParams<ClientListPlansParams, ListPlansList[]>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
11
|
+
*/
|
|
9
12
|
declare const useListPlans: (params?: UseListPlansParams) => _tanstack_react_query.UseQueryResult<NoInfer<ListPlansList[]>, AutumnClientError>;
|
|
10
13
|
|
|
11
14
|
export { type UseListPlansParams, useListPlans };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-
|
|
1
|
+
import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-DlzWLPN2.mjs';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-DBswUtWr.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '../client/AutumnClientError.mjs';
|
|
6
6
|
|
|
@@ -15,6 +15,7 @@ type UseReferralsResult = HookResultWithMethods<CreateReferralCodeResponse, {
|
|
|
15
15
|
* - `data` is the latest create-code response.
|
|
16
16
|
* - Access the code as `data?.code`.
|
|
17
17
|
* - Call `refetch()` to create/fetch the code for `programId`.
|
|
18
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
18
19
|
*/
|
|
19
20
|
declare const useReferrals: (params: UseReferralsParams) => UseReferralsResult;
|
|
20
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-
|
|
1
|
+
import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-ChMwkOJA.js';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-DBswUtWr.js';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '../client/AutumnClientError.js';
|
|
6
6
|
|
|
@@ -15,6 +15,7 @@ type UseReferralsResult = HookResultWithMethods<CreateReferralCodeResponse, {
|
|
|
15
15
|
* - `data` is the latest create-code response.
|
|
16
16
|
* - Access the code as `data?.code`.
|
|
17
17
|
* - Call `refetch()` to create/fetch the code for `programId`.
|
|
18
|
+
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
18
19
|
*/
|
|
19
20
|
declare const useReferrals: (params: UseReferralsParams) => UseReferralsResult;
|
|
20
21
|
|
package/dist/react/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-
|
|
1
|
+
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-DlzWLPN2.mjs';
|
|
2
2
|
export { useAutumnClient } from './AutumnContext.mjs';
|
|
3
3
|
export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.mjs';
|
|
4
4
|
export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.mjs';
|
|
@@ -10,9 +10,9 @@ export { UseEntityParams, UseEntityResult, useEntity } from './hooks/useEntity.m
|
|
|
10
10
|
export { UseListEventsParams, useListEvents } from './hooks/useListEvents.mjs';
|
|
11
11
|
export { UseListPlansParams, useListPlans } from './hooks/useListPlans.mjs';
|
|
12
12
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/useReferrals.mjs';
|
|
13
|
-
import './plan-
|
|
13
|
+
import './plan-DBswUtWr.mjs';
|
|
14
14
|
import 'react';
|
|
15
|
-
import './customer-
|
|
16
|
-
import './list-plans-op-
|
|
15
|
+
import './customer-VD6pkmpz.mjs';
|
|
16
|
+
import './list-plans-op-CvGXtKAO.mjs';
|
|
17
17
|
import '@tanstack/react-query';
|
|
18
18
|
import './hooks/types.mjs';
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-
|
|
1
|
+
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-ChMwkOJA.js';
|
|
2
2
|
export { useAutumnClient } from './AutumnContext.js';
|
|
3
3
|
export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.js';
|
|
4
4
|
export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.js';
|
|
@@ -10,9 +10,9 @@ export { UseEntityParams, UseEntityResult, useEntity } from './hooks/useEntity.j
|
|
|
10
10
|
export { UseListEventsParams, useListEvents } from './hooks/useListEvents.js';
|
|
11
11
|
export { UseListPlansParams, useListPlans } from './hooks/useListPlans.js';
|
|
12
12
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/useReferrals.js';
|
|
13
|
-
import './plan-
|
|
13
|
+
import './plan-DBswUtWr.js';
|
|
14
14
|
import 'react';
|
|
15
|
-
import './customer-
|
|
16
|
-
import './list-plans-op-
|
|
15
|
+
import './customer-CNfSCDv_.js';
|
|
16
|
+
import './list-plans-op-B87IUSZR.js';
|
|
17
17
|
import '@tanstack/react-query';
|
|
18
18
|
import './hooks/types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenEnum } from './plan-
|
|
1
|
+
import { O as OpenEnum } from './plan-DBswUtWr.js';
|
|
2
2
|
|
|
3
3
|
type ListPlansAdditionalCurrency = {
|
|
4
4
|
/**
|
|
@@ -310,6 +310,10 @@ type ListPlansItem = {
|
|
|
310
310
|
* Whether the customer has unlimited access to this feature.
|
|
311
311
|
*/
|
|
312
312
|
unlimited: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
315
|
+
*/
|
|
316
|
+
pooled: boolean;
|
|
313
317
|
/**
|
|
314
318
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
315
319
|
*/
|
|
@@ -626,6 +630,10 @@ type ListPlansPlanItem = {
|
|
|
626
630
|
* If true, customer has unlimited access to this feature.
|
|
627
631
|
*/
|
|
628
632
|
unlimited?: boolean | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
635
|
+
*/
|
|
636
|
+
pooled: boolean;
|
|
629
637
|
/**
|
|
630
638
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
631
639
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenEnum } from './plan-
|
|
1
|
+
import { O as OpenEnum } from './plan-DBswUtWr.mjs';
|
|
2
2
|
|
|
3
3
|
type ListPlansAdditionalCurrency = {
|
|
4
4
|
/**
|
|
@@ -310,6 +310,10 @@ type ListPlansItem = {
|
|
|
310
310
|
* Whether the customer has unlimited access to this feature.
|
|
311
311
|
*/
|
|
312
312
|
unlimited: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
315
|
+
*/
|
|
316
|
+
pooled: boolean;
|
|
313
317
|
/**
|
|
314
318
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
315
319
|
*/
|
|
@@ -626,6 +630,10 @@ type ListPlansPlanItem = {
|
|
|
626
630
|
* If true, customer has unlimited access to this feature.
|
|
627
631
|
*/
|
|
628
632
|
unlimited?: boolean | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
635
|
+
*/
|
|
636
|
+
pooled: boolean;
|
|
629
637
|
/**
|
|
630
638
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
631
639
|
*/
|