autumn-js 1.2.49 → 1.2.50
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 +15398 -13521
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +15398 -13521
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +15398 -13521
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +15398 -13521
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +15398 -13521
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{authTypes-COW88tnI.d.mts → authTypes-BPv82hMB.d.mts} +1 -0
- package/dist/backend/{authTypes-COW88tnI.d.ts → authTypes-BPv82hMB.d.ts} +1 -0
- package/dist/backend/{chunk-FZQWS6KN.mjs → chunk-2BBLS5X4.mjs} +1 -1
- package/dist/backend/{chunk-QEJJM4BY.mjs → chunk-2HDELBYZ.mjs} +15410 -13533
- package/dist/backend/{chunk-WIIJIELJ.mjs → chunk-6YV7ABDO.mjs} +2 -2
- package/dist/backend/{chunk-EIR56X56.mjs → chunk-EBZHI4LY.mjs} +1 -1
- package/dist/backend/{chunk-2OM5IYSI.mjs → chunk-OATOSP4P.mjs} +14 -14
- package/dist/backend/{chunk-TW3CT5JS.mjs → chunk-OFUPB7IT.mjs} +1 -1
- package/dist/backend/{chunk-25GD3WCE.mjs → chunk-QCFJDF27.mjs} +1 -1
- package/dist/backend/{chunk-K7BBOM2C.mjs → chunk-R2NONOPL.mjs} +2 -2
- 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 +15398 -13521
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- 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/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +15398 -13521
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- 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 +15398 -13521
- package/dist/backend/core/handlers/index.mjs +4 -4
- 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 +15398 -13521
- package/dist/backend/core/index.mjs +4 -4
- 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 +14 -14
- package/dist/backend/core/routes/index.mjs +1 -1
- 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 +14 -14
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- 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/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +15398 -13521
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-NNlpTwza.d.ts → routeTypes-D6uyYiLg.d.ts} +1858 -163
- package/dist/backend/{routeTypes-6-0oSlbI.d.mts → routeTypes-tzhg5fV4.d.mts} +1858 -163
- package/dist/better-auth/{chunk-JB7C63BT.mjs → chunk-2PACH7LX.mjs} +15385 -13508
- package/dist/better-auth/{chunk-KTJ7KXKK.mjs → chunk-65UT5FYZ.mjs} +1 -1
- package/dist/better-auth/{chunk-4E2XIHMW.mjs → chunk-O4JXKGQB.mjs} +14 -14
- package/dist/better-auth/index.js +6763 -4886
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +1 -0
- package/dist/better-auth/types.d.ts +1 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +14 -14
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +15398 -13521
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +6763 -4886
- package/dist/better-auth/utils/index.mjs +3 -3
- 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-VD6pkmpz.d.mts → customer-BhpyYSzY.d.mts} +90 -3
- package/dist/react/{customer-CNfSCDv_.d.ts → customer-BpVkO2CZ.d.ts} +90 -3
- 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-op-B87IUSZR.d.ts → list-plans-op-B3P-dYO1.d.ts} +1 -1
- package/dist/react/{list-plans-op-CvGXtKAO.d.mts → list-plans-op-BIxAnwyH.d.mts} +1 -1
- package/dist/react/{params-BrFcJdeO.d.mts → params-BqaugLY8.d.ts} +1 -1
- package/dist/react/{params-BwHZca3H.d.ts → params-BvnZAjAY.d.mts} +1 -1
- package/dist/react/{plan-DBswUtWr.d.mts → plan-B7Qu0i03.d.mts} +2 -2
- package/dist/react/{plan-DBswUtWr.d.ts → plan-B7Qu0i03.d.ts} +2 -2
- package/dist/sdk/index.d.mts +2660 -344
- package/dist/sdk/index.d.ts +2660 -344
- package/dist/sdk/index.js +10246 -7724
- package/dist/sdk/index.mjs +19176 -16880
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-65UT5FYZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-2PACH7LX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveIdentityFromScope
|
|
10
10
|
} from "../chunk-J2WYVGHS.mjs";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-O4JXKGQB.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getActiveOrganization
|
|
14
14
|
} from "../chunk-BT3EAYVW.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.mjs';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './customer-
|
|
6
|
-
import './list-plans-op-
|
|
3
|
+
import './params-BvnZAjAY.mjs';
|
|
4
|
+
import './plan-B7Qu0i03.mjs';
|
|
5
|
+
import './customer-BhpyYSzY.mjs';
|
|
6
|
+
import './list-plans-op-BIxAnwyH.mjs';
|
|
7
7
|
|
|
8
8
|
type AutumnContextValue = {
|
|
9
9
|
client: IAutumnClient;
|
|
@@ -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-op-
|
|
3
|
+
import './params-BqaugLY8.js';
|
|
4
|
+
import './plan-B7Qu0i03.js';
|
|
5
|
+
import './customer-BpVkO2CZ.js';
|
|
6
|
+
import './list-plans-op-B3P-dYO1.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-op-
|
|
2
|
+
import '../params-BvnZAjAY.mjs';
|
|
3
|
+
import '../plan-B7Qu0i03.mjs';
|
|
4
|
+
import '../customer-BhpyYSzY.mjs';
|
|
5
|
+
import '../list-plans-op-BIxAnwyH.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-op-
|
|
2
|
+
import '../params-BqaugLY8.js';
|
|
3
|
+
import '../plan-B7Qu0i03.js';
|
|
4
|
+
import '../customer-BpVkO2CZ.js';
|
|
5
|
+
import '../list-plans-op-B3P-dYO1.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-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-BvnZAjAY.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-BhpyYSzY.mjs';
|
|
3
|
+
import { L as ListPlansResponse } from '../list-plans-op-BIxAnwyH.mjs';
|
|
4
|
+
import '../plan-B7Qu0i03.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-BqaugLY8.js';
|
|
2
|
+
import { C as Customer } from '../customer-BpVkO2CZ.js';
|
|
3
|
+
import { L as ListPlansResponse } from '../list-plans-op-B3P-dYO1.js';
|
|
4
|
+
import '../plan-B7Qu0i03.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-BvnZAjAY.mjs';
|
|
5
|
+
import '../plan-B7Qu0i03.mjs';
|
|
6
|
+
import '../customer-BhpyYSzY.mjs';
|
|
7
|
+
import '../list-plans-op-BIxAnwyH.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-BqaugLY8.js';
|
|
5
|
+
import '../plan-B7Qu0i03.js';
|
|
6
|
+
import '../customer-BpVkO2CZ.js';
|
|
7
|
+
import '../list-plans-op-B3P-dYO1.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-B7Qu0i03.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The environment this customer was created in.
|
|
@@ -688,6 +688,89 @@ type Invoice = {
|
|
|
688
688
|
*/
|
|
689
689
|
hostedInvoiceUrl?: string | null | undefined;
|
|
690
690
|
};
|
|
691
|
+
type InvoicePreviewDiscount = {
|
|
692
|
+
amountOff: number;
|
|
693
|
+
percentOff?: number | undefined;
|
|
694
|
+
rewardId?: string | undefined;
|
|
695
|
+
rewardName?: string | undefined;
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* The period of time that this line item is being charged for.
|
|
699
|
+
*/
|
|
700
|
+
type Period = {
|
|
701
|
+
/**
|
|
702
|
+
* The start of the period in milliseconds since the Unix epoch.
|
|
703
|
+
*/
|
|
704
|
+
start: number;
|
|
705
|
+
/**
|
|
706
|
+
* The end of the period in milliseconds since the Unix epoch.
|
|
707
|
+
*/
|
|
708
|
+
end: number;
|
|
709
|
+
};
|
|
710
|
+
type LineItem = {
|
|
711
|
+
/**
|
|
712
|
+
* The name of the line item to display to the customer if you're building a UI. It will either be the plan name or the feature name.
|
|
713
|
+
*/
|
|
714
|
+
displayName: string;
|
|
715
|
+
/**
|
|
716
|
+
* A detailed description of the line item.
|
|
717
|
+
*/
|
|
718
|
+
description: string;
|
|
719
|
+
/**
|
|
720
|
+
* The amount in cents before discounts and tax for this line item.
|
|
721
|
+
*/
|
|
722
|
+
subtotal: number;
|
|
723
|
+
/**
|
|
724
|
+
* The final amount in cents after discounts and tax for this line item.
|
|
725
|
+
*/
|
|
726
|
+
total: number;
|
|
727
|
+
/**
|
|
728
|
+
* List of discounts applied to this line item.
|
|
729
|
+
*/
|
|
730
|
+
discounts?: Array<InvoicePreviewDiscount> | undefined;
|
|
731
|
+
/**
|
|
732
|
+
* The ID of the plan that this line item belongs to.
|
|
733
|
+
*/
|
|
734
|
+
planId: string;
|
|
735
|
+
/**
|
|
736
|
+
* The ID of the feature that this line item belongs to.
|
|
737
|
+
*/
|
|
738
|
+
featureId: string | null;
|
|
739
|
+
/**
|
|
740
|
+
* The period of time that this line item is being charged for.
|
|
741
|
+
*/
|
|
742
|
+
period?: Period | undefined;
|
|
743
|
+
/**
|
|
744
|
+
* The quantity of the line item.
|
|
745
|
+
*/
|
|
746
|
+
quantity: number;
|
|
747
|
+
};
|
|
748
|
+
type InvoicePreview = {
|
|
749
|
+
/**
|
|
750
|
+
* Plan IDs contributing line items to this invoice.
|
|
751
|
+
*/
|
|
752
|
+
planIds: Array<string>;
|
|
753
|
+
/**
|
|
754
|
+
* Unix timestamp (milliseconds) when this invoice will be created.
|
|
755
|
+
*/
|
|
756
|
+
invoiceAt: number;
|
|
757
|
+
/**
|
|
758
|
+
* The three-letter ISO currency code (e.g., 'usd').
|
|
759
|
+
*/
|
|
760
|
+
currency: string;
|
|
761
|
+
/**
|
|
762
|
+
* The total before discounts, in major currency units.
|
|
763
|
+
*/
|
|
764
|
+
subtotal: number;
|
|
765
|
+
/**
|
|
766
|
+
* The total after discounts, in major currency units.
|
|
767
|
+
*/
|
|
768
|
+
total: number;
|
|
769
|
+
/**
|
|
770
|
+
* The line items this invoice will contain: usage accrued in the closing cycle, plus recurring charges for the opening cycle.
|
|
771
|
+
*/
|
|
772
|
+
lineItems: Array<LineItem>;
|
|
773
|
+
};
|
|
691
774
|
/**
|
|
692
775
|
* The environment (sandbox/live)
|
|
693
776
|
*/
|
|
@@ -756,7 +839,7 @@ declare const CustomerDurationType: {
|
|
|
756
839
|
* How long the discount lasts
|
|
757
840
|
*/
|
|
758
841
|
type CustomerDurationType = OpenEnum<typeof CustomerDurationType>;
|
|
759
|
-
type
|
|
842
|
+
type RewardsDiscount = {
|
|
760
843
|
/**
|
|
761
844
|
* The unique identifier for this discount
|
|
762
845
|
*/
|
|
@@ -806,7 +889,7 @@ type Rewards = {
|
|
|
806
889
|
/**
|
|
807
890
|
* Array of active discounts applied to the customer
|
|
808
891
|
*/
|
|
809
|
-
discounts: Array<
|
|
892
|
+
discounts: Array<RewardsDiscount>;
|
|
810
893
|
};
|
|
811
894
|
type ReferralCustomer = {
|
|
812
895
|
id: string;
|
|
@@ -898,6 +981,10 @@ type Customer = {
|
|
|
898
981
|
* Invoices for this customer.
|
|
899
982
|
*/
|
|
900
983
|
invoices?: Array<Invoice> | undefined;
|
|
984
|
+
/**
|
|
985
|
+
* Upcoming invoice for each of this customer's Stripe subscriptions.
|
|
986
|
+
*/
|
|
987
|
+
invoicePreviews?: Array<InvoicePreview> | undefined;
|
|
901
988
|
/**
|
|
902
989
|
* Entities associated with this customer.
|
|
903
990
|
*/
|
|
@@ -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-B7Qu0i03.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The environment this customer was created in.
|
|
@@ -688,6 +688,89 @@ type Invoice = {
|
|
|
688
688
|
*/
|
|
689
689
|
hostedInvoiceUrl?: string | null | undefined;
|
|
690
690
|
};
|
|
691
|
+
type InvoicePreviewDiscount = {
|
|
692
|
+
amountOff: number;
|
|
693
|
+
percentOff?: number | undefined;
|
|
694
|
+
rewardId?: string | undefined;
|
|
695
|
+
rewardName?: string | undefined;
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* The period of time that this line item is being charged for.
|
|
699
|
+
*/
|
|
700
|
+
type Period = {
|
|
701
|
+
/**
|
|
702
|
+
* The start of the period in milliseconds since the Unix epoch.
|
|
703
|
+
*/
|
|
704
|
+
start: number;
|
|
705
|
+
/**
|
|
706
|
+
* The end of the period in milliseconds since the Unix epoch.
|
|
707
|
+
*/
|
|
708
|
+
end: number;
|
|
709
|
+
};
|
|
710
|
+
type LineItem = {
|
|
711
|
+
/**
|
|
712
|
+
* The name of the line item to display to the customer if you're building a UI. It will either be the plan name or the feature name.
|
|
713
|
+
*/
|
|
714
|
+
displayName: string;
|
|
715
|
+
/**
|
|
716
|
+
* A detailed description of the line item.
|
|
717
|
+
*/
|
|
718
|
+
description: string;
|
|
719
|
+
/**
|
|
720
|
+
* The amount in cents before discounts and tax for this line item.
|
|
721
|
+
*/
|
|
722
|
+
subtotal: number;
|
|
723
|
+
/**
|
|
724
|
+
* The final amount in cents after discounts and tax for this line item.
|
|
725
|
+
*/
|
|
726
|
+
total: number;
|
|
727
|
+
/**
|
|
728
|
+
* List of discounts applied to this line item.
|
|
729
|
+
*/
|
|
730
|
+
discounts?: Array<InvoicePreviewDiscount> | undefined;
|
|
731
|
+
/**
|
|
732
|
+
* The ID of the plan that this line item belongs to.
|
|
733
|
+
*/
|
|
734
|
+
planId: string;
|
|
735
|
+
/**
|
|
736
|
+
* The ID of the feature that this line item belongs to.
|
|
737
|
+
*/
|
|
738
|
+
featureId: string | null;
|
|
739
|
+
/**
|
|
740
|
+
* The period of time that this line item is being charged for.
|
|
741
|
+
*/
|
|
742
|
+
period?: Period | undefined;
|
|
743
|
+
/**
|
|
744
|
+
* The quantity of the line item.
|
|
745
|
+
*/
|
|
746
|
+
quantity: number;
|
|
747
|
+
};
|
|
748
|
+
type InvoicePreview = {
|
|
749
|
+
/**
|
|
750
|
+
* Plan IDs contributing line items to this invoice.
|
|
751
|
+
*/
|
|
752
|
+
planIds: Array<string>;
|
|
753
|
+
/**
|
|
754
|
+
* Unix timestamp (milliseconds) when this invoice will be created.
|
|
755
|
+
*/
|
|
756
|
+
invoiceAt: number;
|
|
757
|
+
/**
|
|
758
|
+
* The three-letter ISO currency code (e.g., 'usd').
|
|
759
|
+
*/
|
|
760
|
+
currency: string;
|
|
761
|
+
/**
|
|
762
|
+
* The total before discounts, in major currency units.
|
|
763
|
+
*/
|
|
764
|
+
subtotal: number;
|
|
765
|
+
/**
|
|
766
|
+
* The total after discounts, in major currency units.
|
|
767
|
+
*/
|
|
768
|
+
total: number;
|
|
769
|
+
/**
|
|
770
|
+
* The line items this invoice will contain: usage accrued in the closing cycle, plus recurring charges for the opening cycle.
|
|
771
|
+
*/
|
|
772
|
+
lineItems: Array<LineItem>;
|
|
773
|
+
};
|
|
691
774
|
/**
|
|
692
775
|
* The environment (sandbox/live)
|
|
693
776
|
*/
|
|
@@ -756,7 +839,7 @@ declare const CustomerDurationType: {
|
|
|
756
839
|
* How long the discount lasts
|
|
757
840
|
*/
|
|
758
841
|
type CustomerDurationType = OpenEnum<typeof CustomerDurationType>;
|
|
759
|
-
type
|
|
842
|
+
type RewardsDiscount = {
|
|
760
843
|
/**
|
|
761
844
|
* The unique identifier for this discount
|
|
762
845
|
*/
|
|
@@ -806,7 +889,7 @@ type Rewards = {
|
|
|
806
889
|
/**
|
|
807
890
|
* Array of active discounts applied to the customer
|
|
808
891
|
*/
|
|
809
|
-
discounts: Array<
|
|
892
|
+
discounts: Array<RewardsDiscount>;
|
|
810
893
|
};
|
|
811
894
|
type ReferralCustomer = {
|
|
812
895
|
id: string;
|
|
@@ -898,6 +981,10 @@ type Customer = {
|
|
|
898
981
|
* Invoices for this customer.
|
|
899
982
|
*/
|
|
900
983
|
invoices?: Array<Invoice> | undefined;
|
|
984
|
+
/**
|
|
985
|
+
* Upcoming invoice for each of this customer's Stripe subscriptions.
|
|
986
|
+
*/
|
|
987
|
+
invoicePreviews?: Array<InvoicePreview> | undefined;
|
|
901
988
|
/**
|
|
902
989
|
* Entities associated with this customer.
|
|
903
990
|
*/
|
|
@@ -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-BvnZAjAY.mjs';
|
|
11
|
+
import '../plan-B7Qu0i03.mjs';
|
|
12
|
+
import '../customer-BhpyYSzY.mjs';
|
|
13
|
+
import '../list-plans-op-BIxAnwyH.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-BqaugLY8.js';
|
|
11
|
+
import '../plan-B7Qu0i03.js';
|
|
12
|
+
import '../customer-BpVkO2CZ.js';
|
|
13
|
+
import '../list-plans-op-B3P-dYO1.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
1
|
+
import { C as Customer } from '../../../customer-BhpyYSzY.mjs';
|
|
2
|
+
import '../../../plan-B7Qu0i03.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-BpVkO2CZ.js';
|
|
2
|
+
import '../../../plan-B7Qu0i03.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-BhpyYSzY.mjs';
|
|
2
|
+
import '../../../plan-B7Qu0i03.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-BpVkO2CZ.js';
|
|
2
|
+
import '../../../plan-B7Qu0i03.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-B7Qu0i03.mjs';
|
|
2
|
+
import { C as Customer } from '../../../customer-BhpyYSzY.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-B7Qu0i03.js';
|
|
2
|
+
import { C as Customer } from '../../../customer-BpVkO2CZ.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-BhpyYSzY.mjs';
|
|
2
|
+
import '../../../plan-B7Qu0i03.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-BpVkO2CZ.js';
|
|
2
|
+
import '../../../plan-B7Qu0i03.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-BvnZAjAY.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-BhpyYSzY.mjs';
|
|
3
|
+
import '../../plan-B7Qu0i03.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-BqaugLY8.js';
|
|
2
|
+
import { C as Customer } from '../../customer-BpVkO2CZ.js';
|
|
3
|
+
import '../../plan-B7Qu0i03.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-BvnZAjAY.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-BhpyYSzY.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../list-plans-op-
|
|
4
|
+
import '../../plan-B7Qu0i03.mjs';
|
|
5
|
+
import '../../list-plans-op-BIxAnwyH.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-BqaugLY8.js';
|
|
2
|
+
import { C as Customer } from '../../customer-BpVkO2CZ.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../list-plans-op-
|
|
4
|
+
import '../../plan-B7Qu0i03.js';
|
|
5
|
+
import '../../list-plans-op-B3P-dYO1.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-BvnZAjAY.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-B7Qu0i03.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-BqaugLY8.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-B7Qu0i03.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-BvnZAjAY.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-BhpyYSzY.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
|
-
import '../plan-
|
|
4
|
+
import '../plan-B7Qu0i03.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-BqaugLY8.js';
|
|
2
|
+
import { C as Customer } from '../customer-BpVkO2CZ.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
|
-
import '../plan-
|
|
4
|
+
import '../plan-B7Qu0i03.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-BvnZAjAY.mjs';
|
|
2
2
|
import { HookParams, HookResult } from './types.mjs';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-B7Qu0i03.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-BqaugLY8.js';
|
|
2
2
|
import { HookParams, HookResult } from './types.js';
|
|
3
|
-
import '../plan-
|
|
3
|
+
import '../plan-B7Qu0i03.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-BvnZAjAY.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-B7Qu0i03.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-BqaugLY8.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
5
|
+
import '../plan-B7Qu0i03.js';
|
|
6
6
|
|
|
7
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
8
8
|
/**
|