autumn-js 1.3.44 → 1.3.46
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 +44 -18
- package/dist/backend/adapters/express.mjs +4 -4
- package/dist/backend/adapters/fetch.js +44 -18
- package/dist/backend/adapters/fetch.mjs +4 -4
- package/dist/backend/adapters/hono.js +44 -18
- package/dist/backend/adapters/hono.mjs +4 -4
- package/dist/backend/adapters/index.js +44 -18
- package/dist/backend/adapters/index.mjs +7 -7
- package/dist/backend/adapters/next.js +44 -18
- package/dist/backend/adapters/next.mjs +4 -4
- package/dist/backend/{chunk-IDGAWOWG.mjs → chunk-6RGLO6FV.mjs} +1 -1
- package/dist/backend/{chunk-JN27ZIEU.mjs → chunk-C4IENXIG.mjs} +1 -1
- package/dist/backend/{chunk-WNSOQEDD.mjs → chunk-DZBBXOKT.mjs} +1 -1
- package/dist/backend/{chunk-FKYHGK3J.mjs → chunk-ESSDMDXJ.mjs} +1 -1
- package/dist/backend/{chunk-POJBSIOX.mjs → chunk-KSYN5FLV.mjs} +44 -18
- package/dist/backend/{chunk-4S63ZJ56.mjs → chunk-NOJP6FIN.mjs} +1 -1
- package/dist/backend/{chunk-UNI5JBUD.mjs → chunk-ZFFEG27F.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +44 -18
- package/dist/backend/core/handlers/coreHandler.mjs +2 -2
- 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 +44 -18
- package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
- 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 +44 -18
- package/dist/backend/core/handlers/index.mjs +3 -3
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +44 -18
- package/dist/backend/core/index.mjs +3 -3
- 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/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/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 +44 -18
- package/dist/backend/index.mjs +3 -3
- package/dist/backend/{routeTypes-Dr-THiSK.d.ts → routeTypes-4TatmvQY.d.ts} +75 -17
- package/dist/backend/{routeTypes-C90LbFI_.d.mts → routeTypes-DAI_E67X.d.mts} +75 -17
- package/dist/better-auth/{chunk-CBB6UDNH.mjs → chunk-R7IEJQOY.mjs} +44 -18
- package/dist/better-auth/index.js +44 -18
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +44 -18
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +44 -18
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -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-B0VDWypn.d.ts → customer-B0KAd7eZ.d.ts} +16 -16
- package/dist/react/{customer-BIYGF3IC.d.mts → customer-DfpvnPRk.d.mts} +16 -16
- 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 +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- 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 +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-response-kGzo3GRQ.d.ts → list-plans-response-6iUDTnPQ.d.ts} +1 -1
- package/dist/react/{list-plans-response-BqtwCPty.d.mts → list-plans-response-BzsqJlxN.d.mts} +1 -1
- package/dist/react/{params-DP6BNkc0.d.ts → params-CMcoADwO.d.ts} +1 -1
- package/dist/react/{params-DZznA-no.d.mts → params-vAoGWtk9.d.mts} +1 -1
- package/dist/react/{plan-CEOgE_On.d.mts → plan-Ct5TGTnS.d.mts} +33 -0
- package/dist/react/{plan-CEOgE_On.d.ts → plan-Ct5TGTnS.d.ts} +33 -0
- package/dist/sdk/index.d.mts +91 -23
- package/dist/sdk/index.d.ts +91 -23
- package/dist/sdk/index.js +76 -28
- package/dist/sdk/index.mjs +59 -19
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.js';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './customer-
|
|
6
|
-
import './list-plans-response-
|
|
3
|
+
import './params-CMcoADwO.js';
|
|
4
|
+
import './plan-Ct5TGTnS.js';
|
|
5
|
+
import './customer-B0KAd7eZ.js';
|
|
6
|
+
import './list-plans-response-6iUDTnPQ.js';
|
|
7
7
|
|
|
8
8
|
type AutumnContextValue = {
|
|
9
9
|
client: IAutumnClient;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.mjs';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../customer-
|
|
5
|
-
import '../list-plans-response-
|
|
2
|
+
import '../params-vAoGWtk9.mjs';
|
|
3
|
+
import '../plan-Ct5TGTnS.mjs';
|
|
4
|
+
import '../customer-DfpvnPRk.mjs';
|
|
5
|
+
import '../list-plans-response-BzsqJlxN.mjs';
|
|
6
6
|
|
|
7
7
|
/** Configuration for Autumn client */
|
|
8
8
|
type AutumnClientConfig = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.js';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../customer-
|
|
5
|
-
import '../list-plans-response-
|
|
2
|
+
import '../params-CMcoADwO.js';
|
|
3
|
+
import '../plan-Ct5TGTnS.js';
|
|
4
|
+
import '../customer-B0KAd7eZ.js';
|
|
5
|
+
import '../list-plans-response-6iUDTnPQ.js';
|
|
6
6
|
|
|
7
7
|
/** Configuration for Autumn client */
|
|
8
8
|
type AutumnClientConfig = {
|
|
@@ -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-response-
|
|
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-vAoGWtk9.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-DfpvnPRk.mjs';
|
|
3
|
+
import { L as ListPlansResponse } from '../list-plans-response-BzsqJlxN.mjs';
|
|
4
|
+
import '../plan-Ct5TGTnS.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-response-
|
|
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-CMcoADwO.js';
|
|
2
|
+
import { C as Customer } from '../customer-B0KAd7eZ.js';
|
|
3
|
+
import { L as ListPlansResponse } from '../list-plans-response-6iUDTnPQ.js';
|
|
4
|
+
import '../plan-Ct5TGTnS.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-response-
|
|
4
|
+
import '../params-vAoGWtk9.mjs';
|
|
5
|
+
import '../plan-Ct5TGTnS.mjs';
|
|
6
|
+
import '../customer-DfpvnPRk.mjs';
|
|
7
|
+
import '../list-plans-response-BzsqJlxN.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-response-
|
|
4
|
+
import '../params-CMcoADwO.js';
|
|
5
|
+
import '../plan-Ct5TGTnS.js';
|
|
6
|
+
import '../customer-B0KAd7eZ.js';
|
|
7
|
+
import '../list-plans-response-6iUDTnPQ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenEnum, P as Plan, a as Balance, C as ClosedEnum } from './plan-
|
|
1
|
+
import { O as OpenEnum, P as Plan, a as Balance, C as ClosedEnum } from './plan-Ct5TGTnS.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The environment this customer was created in.
|
|
@@ -70,14 +70,14 @@ type CustomerPurchaseLimit1 = {
|
|
|
70
70
|
/**
|
|
71
71
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
72
72
|
*/
|
|
73
|
-
declare const
|
|
73
|
+
declare const CustomerAutoTopupSource: {
|
|
74
74
|
readonly Customer: "customer";
|
|
75
75
|
readonly Plan: "plan";
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
78
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
79
79
|
*/
|
|
80
|
-
type
|
|
80
|
+
type CustomerAutoTopupSource = OpenEnum<typeof CustomerAutoTopupSource>;
|
|
81
81
|
type CustomerAutoTopup = {
|
|
82
82
|
/**
|
|
83
83
|
* The ID of the feature (credit balance) to auto top-up.
|
|
@@ -106,7 +106,7 @@ type CustomerAutoTopup = {
|
|
|
106
106
|
/**
|
|
107
107
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
108
108
|
*/
|
|
109
|
-
source?:
|
|
109
|
+
source?: CustomerAutoTopupSource | undefined;
|
|
110
110
|
};
|
|
111
111
|
/**
|
|
112
112
|
* How overage_limit is interpreted: an absolute overage cap (default) or a percentage of the main-plan allowance.
|
|
@@ -122,14 +122,14 @@ type CustomerLimitType = OpenEnum<typeof CustomerLimitType>;
|
|
|
122
122
|
/**
|
|
123
123
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
124
124
|
*/
|
|
125
|
-
declare const
|
|
125
|
+
declare const CustomerSpendLimitSource: {
|
|
126
126
|
readonly Customer: "customer";
|
|
127
127
|
readonly Plan: "plan";
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
131
131
|
*/
|
|
132
|
-
type
|
|
132
|
+
type CustomerSpendLimitSource = OpenEnum<typeof CustomerSpendLimitSource>;
|
|
133
133
|
type CustomerSpendLimit = {
|
|
134
134
|
/**
|
|
135
135
|
* Optional feature ID this spend limit applies to.
|
|
@@ -154,7 +154,7 @@ type CustomerSpendLimit = {
|
|
|
154
154
|
/**
|
|
155
155
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
156
156
|
*/
|
|
157
|
-
source?:
|
|
157
|
+
source?: CustomerSpendLimitSource | undefined;
|
|
158
158
|
};
|
|
159
159
|
/**
|
|
160
160
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
@@ -191,14 +191,14 @@ type CustomerUsageLimitFilter = {
|
|
|
191
191
|
/**
|
|
192
192
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
193
193
|
*/
|
|
194
|
-
declare const
|
|
194
|
+
declare const CustomerUsageLimitSource: {
|
|
195
195
|
readonly Customer: "customer";
|
|
196
196
|
readonly Plan: "plan";
|
|
197
197
|
};
|
|
198
198
|
/**
|
|
199
199
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
200
200
|
*/
|
|
201
|
-
type
|
|
201
|
+
type CustomerUsageLimitSource = OpenEnum<typeof CustomerUsageLimitSource>;
|
|
202
202
|
type CustomerUsageLimit = {
|
|
203
203
|
/**
|
|
204
204
|
* The feature this usage limit applies to.
|
|
@@ -231,7 +231,7 @@ type CustomerUsageLimit = {
|
|
|
231
231
|
/**
|
|
232
232
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
233
233
|
*/
|
|
234
|
-
source?:
|
|
234
|
+
source?: CustomerUsageLimitSource | undefined;
|
|
235
235
|
};
|
|
236
236
|
/**
|
|
237
237
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
@@ -270,14 +270,14 @@ type CustomerUsageAlertFilter = {
|
|
|
270
270
|
/**
|
|
271
271
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
272
272
|
*/
|
|
273
|
-
declare const
|
|
273
|
+
declare const CustomerUsageAlertSource: {
|
|
274
274
|
readonly Customer: "customer";
|
|
275
275
|
readonly Plan: "plan";
|
|
276
276
|
};
|
|
277
277
|
/**
|
|
278
278
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
279
279
|
*/
|
|
280
|
-
type
|
|
280
|
+
type CustomerUsageAlertSource = OpenEnum<typeof CustomerUsageAlertSource>;
|
|
281
281
|
type CustomerUsageAlert = {
|
|
282
282
|
/**
|
|
283
283
|
* The feature ID this alert applies to.
|
|
@@ -310,19 +310,19 @@ type CustomerUsageAlert = {
|
|
|
310
310
|
/**
|
|
311
311
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
312
312
|
*/
|
|
313
|
-
source?:
|
|
313
|
+
source?: CustomerUsageAlertSource | undefined;
|
|
314
314
|
};
|
|
315
315
|
/**
|
|
316
316
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
317
317
|
*/
|
|
318
|
-
declare const
|
|
318
|
+
declare const CustomerOverageAllowedSource: {
|
|
319
319
|
readonly Customer: "customer";
|
|
320
320
|
readonly Plan: "plan";
|
|
321
321
|
};
|
|
322
322
|
/**
|
|
323
323
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
324
324
|
*/
|
|
325
|
-
type
|
|
325
|
+
type CustomerOverageAllowedSource = OpenEnum<typeof CustomerOverageAllowedSource>;
|
|
326
326
|
type CustomerOverageAllowed = {
|
|
327
327
|
/**
|
|
328
328
|
* The feature ID this overage allowed control applies to.
|
|
@@ -335,7 +335,7 @@ type CustomerOverageAllowed = {
|
|
|
335
335
|
/**
|
|
336
336
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
337
337
|
*/
|
|
338
|
-
source?:
|
|
338
|
+
source?: CustomerOverageAllowedSource | undefined;
|
|
339
339
|
};
|
|
340
340
|
/**
|
|
341
341
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenEnum, P as Plan, a as Balance, C as ClosedEnum } from './plan-
|
|
1
|
+
import { O as OpenEnum, P as Plan, a as Balance, C as ClosedEnum } from './plan-Ct5TGTnS.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The environment this customer was created in.
|
|
@@ -70,14 +70,14 @@ type CustomerPurchaseLimit1 = {
|
|
|
70
70
|
/**
|
|
71
71
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
72
72
|
*/
|
|
73
|
-
declare const
|
|
73
|
+
declare const CustomerAutoTopupSource: {
|
|
74
74
|
readonly Customer: "customer";
|
|
75
75
|
readonly Plan: "plan";
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
78
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
79
79
|
*/
|
|
80
|
-
type
|
|
80
|
+
type CustomerAutoTopupSource = OpenEnum<typeof CustomerAutoTopupSource>;
|
|
81
81
|
type CustomerAutoTopup = {
|
|
82
82
|
/**
|
|
83
83
|
* The ID of the feature (credit balance) to auto top-up.
|
|
@@ -106,7 +106,7 @@ type CustomerAutoTopup = {
|
|
|
106
106
|
/**
|
|
107
107
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
108
108
|
*/
|
|
109
|
-
source?:
|
|
109
|
+
source?: CustomerAutoTopupSource | undefined;
|
|
110
110
|
};
|
|
111
111
|
/**
|
|
112
112
|
* How overage_limit is interpreted: an absolute overage cap (default) or a percentage of the main-plan allowance.
|
|
@@ -122,14 +122,14 @@ type CustomerLimitType = OpenEnum<typeof CustomerLimitType>;
|
|
|
122
122
|
/**
|
|
123
123
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
124
124
|
*/
|
|
125
|
-
declare const
|
|
125
|
+
declare const CustomerSpendLimitSource: {
|
|
126
126
|
readonly Customer: "customer";
|
|
127
127
|
readonly Plan: "plan";
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
131
131
|
*/
|
|
132
|
-
type
|
|
132
|
+
type CustomerSpendLimitSource = OpenEnum<typeof CustomerSpendLimitSource>;
|
|
133
133
|
type CustomerSpendLimit = {
|
|
134
134
|
/**
|
|
135
135
|
* Optional feature ID this spend limit applies to.
|
|
@@ -154,7 +154,7 @@ type CustomerSpendLimit = {
|
|
|
154
154
|
/**
|
|
155
155
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
156
156
|
*/
|
|
157
|
-
source?:
|
|
157
|
+
source?: CustomerSpendLimitSource | undefined;
|
|
158
158
|
};
|
|
159
159
|
/**
|
|
160
160
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
@@ -191,14 +191,14 @@ type CustomerUsageLimitFilter = {
|
|
|
191
191
|
/**
|
|
192
192
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
193
193
|
*/
|
|
194
|
-
declare const
|
|
194
|
+
declare const CustomerUsageLimitSource: {
|
|
195
195
|
readonly Customer: "customer";
|
|
196
196
|
readonly Plan: "plan";
|
|
197
197
|
};
|
|
198
198
|
/**
|
|
199
199
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
200
200
|
*/
|
|
201
|
-
type
|
|
201
|
+
type CustomerUsageLimitSource = OpenEnum<typeof CustomerUsageLimitSource>;
|
|
202
202
|
type CustomerUsageLimit = {
|
|
203
203
|
/**
|
|
204
204
|
* The feature this usage limit applies to.
|
|
@@ -231,7 +231,7 @@ type CustomerUsageLimit = {
|
|
|
231
231
|
/**
|
|
232
232
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
233
233
|
*/
|
|
234
|
-
source?:
|
|
234
|
+
source?: CustomerUsageLimitSource | undefined;
|
|
235
235
|
};
|
|
236
236
|
/**
|
|
237
237
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
@@ -270,14 +270,14 @@ type CustomerUsageAlertFilter = {
|
|
|
270
270
|
/**
|
|
271
271
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
272
272
|
*/
|
|
273
|
-
declare const
|
|
273
|
+
declare const CustomerUsageAlertSource: {
|
|
274
274
|
readonly Customer: "customer";
|
|
275
275
|
readonly Plan: "plan";
|
|
276
276
|
};
|
|
277
277
|
/**
|
|
278
278
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
279
279
|
*/
|
|
280
|
-
type
|
|
280
|
+
type CustomerUsageAlertSource = OpenEnum<typeof CustomerUsageAlertSource>;
|
|
281
281
|
type CustomerUsageAlert = {
|
|
282
282
|
/**
|
|
283
283
|
* The feature ID this alert applies to.
|
|
@@ -310,19 +310,19 @@ type CustomerUsageAlert = {
|
|
|
310
310
|
/**
|
|
311
311
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
312
312
|
*/
|
|
313
|
-
source?:
|
|
313
|
+
source?: CustomerUsageAlertSource | undefined;
|
|
314
314
|
};
|
|
315
315
|
/**
|
|
316
316
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
317
317
|
*/
|
|
318
|
-
declare const
|
|
318
|
+
declare const CustomerOverageAllowedSource: {
|
|
319
319
|
readonly Customer: "customer";
|
|
320
320
|
readonly Plan: "plan";
|
|
321
321
|
};
|
|
322
322
|
/**
|
|
323
323
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
324
324
|
*/
|
|
325
|
-
type
|
|
325
|
+
type CustomerOverageAllowedSource = OpenEnum<typeof CustomerOverageAllowedSource>;
|
|
326
326
|
type CustomerOverageAllowed = {
|
|
327
327
|
/**
|
|
328
328
|
* The feature ID this overage allowed control applies to.
|
|
@@ -335,7 +335,7 @@ type CustomerOverageAllowed = {
|
|
|
335
335
|
/**
|
|
336
336
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
337
337
|
*/
|
|
338
|
-
source?:
|
|
338
|
+
source?: CustomerOverageAllowedSource | undefined;
|
|
339
339
|
};
|
|
340
340
|
/**
|
|
341
341
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
@@ -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-response-
|
|
10
|
+
import '../params-vAoGWtk9.mjs';
|
|
11
|
+
import '../plan-Ct5TGTnS.mjs';
|
|
12
|
+
import '../customer-DfpvnPRk.mjs';
|
|
13
|
+
import '../list-plans-response-BzsqJlxN.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-response-
|
|
10
|
+
import '../params-CMcoADwO.js';
|
|
11
|
+
import '../plan-Ct5TGTnS.js';
|
|
12
|
+
import '../customer-B0KAd7eZ.js';
|
|
13
|
+
import '../list-plans-response-6iUDTnPQ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-DfpvnPRk.mjs';
|
|
2
|
+
import '../../../plan-Ct5TGTnS.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-B0KAd7eZ.js';
|
|
2
|
+
import '../../../plan-Ct5TGTnS.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-DfpvnPRk.mjs';
|
|
2
|
+
import '../../../plan-Ct5TGTnS.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-B0KAd7eZ.js';
|
|
2
|
+
import '../../../plan-Ct5TGTnS.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-Ct5TGTnS.mjs';
|
|
2
|
+
import { C as Customer } from '../../../customer-DfpvnPRk.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-Ct5TGTnS.js';
|
|
2
|
+
import { C as Customer } from '../../../customer-B0KAd7eZ.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-DfpvnPRk.mjs';
|
|
2
|
+
import '../../../plan-Ct5TGTnS.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-B0KAd7eZ.js';
|
|
2
|
+
import '../../../plan-Ct5TGTnS.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-vAoGWtk9.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DfpvnPRk.mjs';
|
|
3
|
+
import '../../plan-Ct5TGTnS.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-CMcoADwO.js';
|
|
2
|
+
import { C as Customer } from '../../customer-B0KAd7eZ.js';
|
|
3
|
+
import '../../plan-Ct5TGTnS.js';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
6
6
|
customer: Customer | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
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-vAoGWtk9.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DfpvnPRk.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../list-plans-response-
|
|
4
|
+
import '../../plan-Ct5TGTnS.mjs';
|
|
5
|
+
import '../../list-plans-response-BzsqJlxN.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
@@ -1,8 +1,8 @@
|
|
|
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-CMcoADwO.js';
|
|
2
|
+
import { C as Customer } from '../../customer-B0KAd7eZ.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../list-plans-response-
|
|
4
|
+
import '../../plan-Ct5TGTnS.js';
|
|
5
|
+
import '../../list-plans-response-6iUDTnPQ.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
|
|
@@ -1,8 +1,8 @@
|
|
|
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-vAoGWtk9.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-Ct5TGTnS.mjs';
|
|
6
6
|
|
|
7
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
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-CMcoADwO.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-Ct5TGTnS.js';
|
|
6
6
|
|
|
7
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
8
8
|
/**
|
|
@@ -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-vAoGWtk9.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-DfpvnPRk.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
|
-
import '../plan-
|
|
4
|
+
import '../plan-Ct5TGTnS.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '../client/AutumnClientError.mjs';
|
|
7
7
|
|
|
@@ -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-CMcoADwO.js';
|
|
2
|
+
import { C as Customer } from '../customer-B0KAd7eZ.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
|
-
import '../plan-
|
|
4
|
+
import '../plan-Ct5TGTnS.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-vAoGWtk9.mjs';
|
|
2
2
|
import { HookParams, HookResult } from './types.mjs';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-Ct5TGTnS.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-CMcoADwO.js';
|
|
2
2
|
import { HookParams, HookResult } from './types.js';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-Ct5TGTnS.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, w as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-vAoGWtk9.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-Ct5TGTnS.mjs';
|
|
6
6
|
|
|
7
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
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-CMcoADwO.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-Ct5TGTnS.js';
|
|
6
6
|
|
|
7
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
8
8
|
/**
|