autumn-js 1.2.2 → 1.2.3
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.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +333 -29
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +333 -29
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +333 -29
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +333 -29
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +333 -29
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{authTypes-BCoyMOAj.d.mts → authTypes-B5VxPaMo.d.mts} +14 -0
- package/dist/backend/{authTypes-BCoyMOAj.d.ts → authTypes-B5VxPaMo.d.ts} +14 -0
- package/dist/backend/{chunk-C5ZDQJPP.mjs → chunk-2YEMC57K.mjs} +1 -1
- package/dist/backend/{chunk-6BVI5XZX.mjs → chunk-CCEZMERA.mjs} +277 -24
- package/dist/backend/{chunk-GLPHS5KF.mjs → chunk-ETHQSA52.mjs} +7 -7
- package/dist/backend/{chunk-OB47KG2H.mjs → chunk-FRKRWJ5S.mjs} +1 -1
- package/dist/backend/{chunk-GENKYO6B.mjs → chunk-IFFSWLXT.mjs} +1 -1
- package/dist/backend/{chunk-SX3CNUF5.mjs → chunk-IUFWKMTJ.mjs} +1 -1
- package/dist/backend/{chunk-XU4OGYDV.mjs → chunk-N62MDT7U.mjs} +56 -5
- package/dist/backend/{chunk-3QNAZFQH.mjs → chunk-OLHAIHAX.mjs} +5 -5
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +333 -29
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +333 -29
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +333 -29
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +333 -29
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +56 -5
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +56 -5
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +333 -29
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-Che2nkqv.d.ts → routeTypes-BkSHRiCI.d.ts} +227 -2
- package/dist/backend/{routeTypes-RMeyKg5T.d.mts → routeTypes-C1hUtfD8.d.mts} +227 -2
- package/dist/better-auth/{chunk-6TAYCQUD.mjs → chunk-2PRVJULJ.mjs} +56 -5
- package/dist/better-auth/{chunk-5F3J4ZQQ.mjs → chunk-6J74ZVNY.mjs} +278 -25
- package/dist/better-auth/{chunk-IODRHT4E.mjs → chunk-IY7FPOWF.mjs} +1 -1
- package/dist/better-auth/index.js +333 -29
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +14 -0
- package/dist/better-auth/types.d.ts +14 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +56 -5
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +333 -29
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +333 -29
- 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/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +7 -3
- package/dist/react/client/IAutumnClient.d.ts +7 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-CNvpHhpS.d.mts → customer-Bb7J-_p_.d.mts} +15 -1
- package/dist/react/{customer-CMAtwbJl.d.ts → customer-CJSDgQMF.d.ts} +15 -1
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- 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/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/{params-CnOvYjqJ.d.ts → params-CheyAQ0-.d.mts} +87 -2
- package/dist/react/{params-Cdkj83CV.d.mts → params-yCtJ7lOA.d.ts} +87 -2
- package/dist/react/{plan-BoMslu_O.d.mts → plan-CqxFGNk2.d.mts} +4 -0
- package/dist/react/{plan-BoMslu_O.d.ts → plan-CqxFGNk2.d.ts} +4 -0
- package/dist/sdk/index.d.mts +333 -4
- package/dist/sdk/index.d.ts +333 -4
- package/dist/sdk/index.js +382 -24
- package/dist/sdk/index.mjs +357 -25
- package/package.json +1 -1
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IY7FPOWF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-6J74ZVNY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveIdentityFromScope
|
|
10
10
|
} from "../chunk-J2WYVGHS.mjs";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-2PRVJULJ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getActiveOrganization
|
|
14
14
|
} from "../chunk-BT3EAYVW.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.mjs';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './customer-
|
|
3
|
+
import './params-CheyAQ0-.mjs';
|
|
4
|
+
import './plan-CqxFGNk2.mjs';
|
|
5
|
+
import './customer-Bb7J-_p_.mjs';
|
|
6
6
|
|
|
7
7
|
type AutumnContextValue = {
|
|
8
8
|
client: IAutumnClient;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.js';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './customer-
|
|
3
|
+
import './params-yCtJ7lOA.js';
|
|
4
|
+
import './plan-CqxFGNk2.js';
|
|
5
|
+
import './customer-CJSDgQMF.js';
|
|
6
6
|
|
|
7
7
|
type AutumnContextValue = {
|
|
8
8
|
client: IAutumnClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.mjs';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../customer-
|
|
2
|
+
import '../params-CheyAQ0-.mjs';
|
|
3
|
+
import '../plan-CqxFGNk2.mjs';
|
|
4
|
+
import '../customer-Bb7J-_p_.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-yCtJ7lOA.js';
|
|
3
|
+
import '../plan-CqxFGNk2.js';
|
|
4
|
+
import '../customer-CJSDgQMF.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-CheyAQ0-.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-Bb7J-_p_.mjs';
|
|
3
|
+
import { O as OpenEnum } from '../plan-CqxFGNk2.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Billing interval (e.g. 'month', 'year').
|
|
@@ -233,6 +233,10 @@ type ListPlansRollover = {
|
|
|
233
233
|
* Maximum rollover units. Null for unlimited rollover.
|
|
234
234
|
*/
|
|
235
235
|
max: number | null;
|
|
236
|
+
/**
|
|
237
|
+
* Maximum rollover as a percentage (0-100) of included + prepaid grant. Mutually exclusive with max.
|
|
238
|
+
*/
|
|
239
|
+
maxPercentage?: number | null | undefined;
|
|
236
240
|
/**
|
|
237
241
|
* When rolled over units expire.
|
|
238
242
|
*/
|
|
@@ -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-yCtJ7lOA.js';
|
|
2
|
+
import { C as Customer } from '../customer-CJSDgQMF.js';
|
|
3
|
+
import { O as OpenEnum } from '../plan-CqxFGNk2.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Billing interval (e.g. 'month', 'year').
|
|
@@ -233,6 +233,10 @@ type ListPlansRollover = {
|
|
|
233
233
|
* Maximum rollover units. Null for unlimited rollover.
|
|
234
234
|
*/
|
|
235
235
|
max: number | null;
|
|
236
|
+
/**
|
|
237
|
+
* Maximum rollover as a percentage (0-100) of included + prepaid grant. Mutually exclusive with max.
|
|
238
|
+
*/
|
|
239
|
+
maxPercentage?: number | null | undefined;
|
|
236
240
|
/**
|
|
237
241
|
* When rolled over units expire.
|
|
238
242
|
*/
|
|
@@ -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-CheyAQ0-.mjs';
|
|
5
|
+
import '../plan-CqxFGNk2.mjs';
|
|
6
|
+
import '../customer-Bb7J-_p_.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-yCtJ7lOA.js';
|
|
5
|
+
import '../plan-CqxFGNk2.js';
|
|
6
|
+
import '../customer-CJSDgQMF.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenEnum, P as Plan, a as Balance } from './plan-
|
|
1
|
+
import { O as OpenEnum, P as Plan, a as Balance } from './plan-CqxFGNk2.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The environment this customer was created in.
|
|
@@ -110,6 +110,16 @@ type CustomerUsageAlert = {
|
|
|
110
110
|
*/
|
|
111
111
|
name?: string | undefined;
|
|
112
112
|
};
|
|
113
|
+
type CustomerOverageAllowed = {
|
|
114
|
+
/**
|
|
115
|
+
* The feature ID this overage allowed control applies to.
|
|
116
|
+
*/
|
|
117
|
+
featureId: string;
|
|
118
|
+
/**
|
|
119
|
+
* Whether overage is allowed for this feature.
|
|
120
|
+
*/
|
|
121
|
+
enabled: boolean;
|
|
122
|
+
};
|
|
113
123
|
/**
|
|
114
124
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
115
125
|
*/
|
|
@@ -126,6 +136,10 @@ type CustomerBillingControls = {
|
|
|
126
136
|
* List of usage alert configurations per feature.
|
|
127
137
|
*/
|
|
128
138
|
usageAlerts?: Array<CustomerUsageAlert> | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* List of overage allowed controls per feature. When enabled, usage can exceed balance.
|
|
141
|
+
*/
|
|
142
|
+
overageAllowed?: Array<CustomerOverageAllowed> | undefined;
|
|
129
143
|
};
|
|
130
144
|
/**
|
|
131
145
|
* Current status of the subscription.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenEnum, P as Plan, a as Balance } from './plan-
|
|
1
|
+
import { O as OpenEnum, P as Plan, a as Balance } from './plan-CqxFGNk2.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The environment this customer was created in.
|
|
@@ -110,6 +110,16 @@ type CustomerUsageAlert = {
|
|
|
110
110
|
*/
|
|
111
111
|
name?: string | undefined;
|
|
112
112
|
};
|
|
113
|
+
type CustomerOverageAllowed = {
|
|
114
|
+
/**
|
|
115
|
+
* The feature ID this overage allowed control applies to.
|
|
116
|
+
*/
|
|
117
|
+
featureId: string;
|
|
118
|
+
/**
|
|
119
|
+
* Whether overage is allowed for this feature.
|
|
120
|
+
*/
|
|
121
|
+
enabled: boolean;
|
|
122
|
+
};
|
|
113
123
|
/**
|
|
114
124
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
115
125
|
*/
|
|
@@ -126,6 +136,10 @@ type CustomerBillingControls = {
|
|
|
126
136
|
* List of usage alert configurations per feature.
|
|
127
137
|
*/
|
|
128
138
|
usageAlerts?: Array<CustomerUsageAlert> | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* List of overage allowed controls per feature. When enabled, usage can exceed balance.
|
|
141
|
+
*/
|
|
142
|
+
overageAllowed?: Array<CustomerOverageAllowed> | undefined;
|
|
129
143
|
};
|
|
130
144
|
/**
|
|
131
145
|
* Current status of the subscription.
|
|
@@ -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-CheyAQ0-.mjs';
|
|
11
|
+
import '../plan-CqxFGNk2.mjs';
|
|
12
|
+
import '../customer-Bb7J-_p_.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-yCtJ7lOA.js';
|
|
11
|
+
import '../plan-CqxFGNk2.js';
|
|
12
|
+
import '../customer-CJSDgQMF.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-Bb7J-_p_.mjs';
|
|
2
|
+
import '../../../plan-CqxFGNk2.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-CJSDgQMF.js';
|
|
2
|
+
import '../../../plan-CqxFGNk2.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-Bb7J-_p_.mjs';
|
|
2
|
+
import '../../../plan-CqxFGNk2.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-CJSDgQMF.js';
|
|
2
|
+
import '../../../plan-CqxFGNk2.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-CqxFGNk2.mjs';
|
|
2
|
+
import { C as Customer } from '../../../customer-Bb7J-_p_.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-CqxFGNk2.js';
|
|
2
|
+
import { C as Customer } from '../../../customer-CJSDgQMF.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-Bb7J-_p_.mjs';
|
|
2
|
+
import '../../../plan-CqxFGNk2.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-CJSDgQMF.js';
|
|
2
|
+
import '../../../plan-CqxFGNk2.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-CheyAQ0-.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-Bb7J-_p_.mjs';
|
|
3
|
+
import '../../plan-CqxFGNk2.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-yCtJ7lOA.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CJSDgQMF.js';
|
|
3
|
+
import '../../plan-CqxFGNk2.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-CheyAQ0-.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-Bb7J-_p_.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
|
-
import '../../plan-
|
|
4
|
+
import '../../plan-CqxFGNk2.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-yCtJ7lOA.js';
|
|
2
|
+
import { C as Customer } from '../../customer-CJSDgQMF.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
|
-
import '../../plan-
|
|
4
|
+
import '../../plan-CqxFGNk2.js';
|
|
5
5
|
|
|
6
6
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
7
7
|
client: IAutumnClient;
|
|
@@ -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-CheyAQ0-.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-CqxFGNk2.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-yCtJ7lOA.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-CqxFGNk2.js';
|
|
6
6
|
|
|
7
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
8
8
|
declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-CheyAQ0-.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-Bb7J-_p_.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
|
-
import '../plan-
|
|
4
|
+
import '../plan-CqxFGNk2.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '../client/AutumnClientError.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-yCtJ7lOA.js';
|
|
2
|
+
import { C as Customer } from '../customer-CJSDgQMF.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
|
-
import '../plan-
|
|
4
|
+
import '../plan-CqxFGNk2.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '../client/AutumnClientError.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-CheyAQ0-.mjs';
|
|
2
2
|
import { HookParams, HookResult } from './types.mjs';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-CqxFGNk2.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '../client/AutumnClientError.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-yCtJ7lOA.js';
|
|
2
2
|
import { HookParams, HookResult } from './types.js';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-CqxFGNk2.js';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '../client/AutumnClientError.js';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-CheyAQ0-.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-CqxFGNk2.mjs';
|
|
6
6
|
|
|
7
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
8
8
|
declare const useListEvents: (params?: UseListEventsParams) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-yCtJ7lOA.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-CqxFGNk2.js';
|
|
6
6
|
|
|
7
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
8
8
|
declare const useListEvents: (params?: UseListEventsParams) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { P as Plan } from '../plan-
|
|
3
|
-
import { v as ClientListPlansParams } from '../params-
|
|
2
|
+
import { P as Plan } from '../plan-CqxFGNk2.mjs';
|
|
3
|
+
import { v as ClientListPlansParams } from '../params-CheyAQ0-.mjs';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
5
5
|
import { HookParams } from './types.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { P as Plan } from '../plan-
|
|
3
|
-
import { v as ClientListPlansParams } from '../params-
|
|
2
|
+
import { P as Plan } from '../plan-CqxFGNk2.js';
|
|
3
|
+
import { v as ClientListPlansParams } from '../params-yCtJ7lOA.js';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
5
5
|
import { HookParams } from './types.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-
|
|
1
|
+
import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-CheyAQ0-.mjs';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-CqxFGNk2.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '../client/AutumnClientError.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-
|
|
1
|
+
import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-yCtJ7lOA.js';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-CqxFGNk2.js';
|
|
4
4
|
import '@tanstack/react-query';
|
|
5
5
|
import '../client/AutumnClientError.js';
|
|
6
6
|
|
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-CheyAQ0-.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-CqxFGNk2.mjs';
|
|
14
14
|
import 'react';
|
|
15
15
|
import 'react/jsx-runtime';
|
|
16
|
-
import './customer-
|
|
16
|
+
import './customer-Bb7J-_p_.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-yCtJ7lOA.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-CqxFGNk2.js';
|
|
14
14
|
import 'react';
|
|
15
15
|
import 'react/jsx-runtime';
|
|
16
|
-
import './customer-
|
|
16
|
+
import './customer-CJSDgQMF.js';
|
|
17
17
|
import '@tanstack/react-query';
|
|
18
18
|
import './hooks/types.js';
|