autumn-js 1.2.13 → 1.2.15
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 +623 -108
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +623 -108
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +623 -108
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +623 -108
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +623 -108
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-DNNJOZAT.mjs → chunk-BQVZ6GCE.mjs} +1 -1
- package/dist/backend/{chunk-YSQQKZBU.mjs → chunk-IEOQUAJY.mjs} +7 -7
- package/dist/backend/{chunk-MANTLPDT.mjs → chunk-IQS3LQVP.mjs} +36 -8
- package/dist/backend/{chunk-7BVATYGA.mjs → chunk-NDB3VKT4.mjs} +1 -1
- package/dist/backend/{chunk-RPH5L44S.mjs → chunk-NRTK5YZK.mjs} +1 -1
- package/dist/backend/{chunk-T42RZEUZ.mjs → chunk-OXCQHLZX.mjs} +587 -100
- package/dist/backend/{chunk-EJGHP7KT.mjs → chunk-RSIOYTRW.mjs} +5 -5
- package/dist/backend/{chunk-OUDB34Y7.mjs → chunk-X7LDYBKC.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 +623 -108
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +3 -3
- package/dist/backend/core/handlers/handleRouteByName.js +623 -108
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- 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 +623 -108
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +623 -108
- package/dist/backend/core/index.mjs +7 -7
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +36 -8
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +36 -8
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +623 -108
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-DVwngaBn.d.mts → routeTypes-CIspXIZ4.d.mts} +841 -169
- package/dist/backend/{routeTypes-B94_Mq2J.d.ts → routeTypes-COwIJFNS.d.ts} +841 -169
- package/dist/better-auth/{chunk-4OWECHZC.mjs → chunk-L6XX4ONM.mjs} +1 -1
- package/dist/better-auth/{chunk-ZZGFPTHO.mjs → chunk-QT6R3AXQ.mjs} +588 -101
- package/dist/better-auth/{chunk-JIFD4TSN.mjs → chunk-ZO3KGM5W.mjs} +36 -8
- package/dist/better-auth/client.d.mts +2 -4
- package/dist/better-auth/client.d.ts +2 -4
- package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.ts → createAutumnEndpoint-Clm1sxhQ.d.mts} +4 -8
- package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.mts → createAutumnEndpoint-Clm1sxhQ.d.ts} +4 -8
- package/dist/better-auth/index.d.mts +2 -4
- package/dist/better-auth/index.d.ts +2 -4
- package/dist/better-auth/index.js +623 -108
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.d.mts +2 -4
- package/dist/better-auth/utils/createAutumnEndpoint.d.ts +2 -4
- package/dist/better-auth/utils/createAutumnEndpoint.js +36 -8
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +2 -4
- package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +2 -4
- package/dist/better-auth/utils/handleBetterAuthRoute.js +623 -108
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.d.mts +3 -4
- package/dist/better-auth/utils/index.d.ts +3 -4
- package/dist/better-auth/utils/index.js +623 -108
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/{customer-DB8vL_m7.d.mts → customer-BDxW2bu6.d.mts} +35 -9
- package/dist/react/{customer-CaGJEN5J.d.ts → customer-BPUObmME.d.ts} +35 -9
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/{params-B5l9vHfZ.d.ts → params-D4cEukOJ.d.ts} +615 -64
- package/dist/react/{params-BVglT8vT.d.mts → params-DzbSUS8O.d.mts} +615 -64
- package/dist/sdk/index.d.mts +980 -173
- package/dist/sdk/index.d.ts +980 -173
- package/dist/sdk/index.js +978 -212
- package/dist/sdk/index.mjs +825 -149
- package/package.json +1 -1
- package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.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-L6XX4ONM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-QT6R3AXQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveIdentityFromScope
|
|
10
10
|
} from "../chunk-J2WYVGHS.mjs";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-ZO3KGM5W.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-
|
|
3
|
+
import './params-DzbSUS8O.mjs';
|
|
4
4
|
import './plan-DSTBzzTY.mjs';
|
|
5
|
-
import './customer-
|
|
5
|
+
import './customer-BDxW2bu6.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-
|
|
3
|
+
import './params-D4cEukOJ.js';
|
|
4
4
|
import './plan-DSTBzzTY.js';
|
|
5
|
-
import './customer-
|
|
5
|
+
import './customer-BPUObmME.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-
|
|
2
|
+
import '../params-DzbSUS8O.mjs';
|
|
3
3
|
import '../plan-DSTBzzTY.mjs';
|
|
4
|
-
import '../customer-
|
|
4
|
+
import '../customer-BDxW2bu6.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-
|
|
2
|
+
import '../params-D4cEukOJ.js';
|
|
3
3
|
import '../plan-DSTBzzTY.js';
|
|
4
|
-
import '../customer-
|
|
4
|
+
import '../customer-BPUObmME.js';
|
|
5
5
|
|
|
6
6
|
/** Configuration for Autumn client */
|
|
7
7
|
type AutumnClientConfig = {
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-DzbSUS8O.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-BDxW2bu6.mjs';
|
|
3
3
|
import { O as OpenEnum } from '../plan-DSTBzzTY.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-D4cEukOJ.js';
|
|
2
|
+
import { C as Customer } from '../customer-BPUObmME.js';
|
|
3
3
|
import { O as OpenEnum } from '../plan-DSTBzzTY.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -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-
|
|
4
|
+
import '../params-DzbSUS8O.mjs';
|
|
5
5
|
import '../plan-DSTBzzTY.mjs';
|
|
6
|
-
import '../customer-
|
|
6
|
+
import '../customer-BDxW2bu6.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-
|
|
4
|
+
import '../params-D4cEukOJ.js';
|
|
5
5
|
import '../plan-DSTBzzTY.js';
|
|
6
|
-
import '../customer-
|
|
6
|
+
import '../customer-BPUObmME.js';
|
|
@@ -11,10 +11,39 @@ declare const CustomerEnv: {
|
|
|
11
11
|
* The environment this customer was created in.
|
|
12
12
|
*/
|
|
13
13
|
type CustomerEnv = OpenEnum<typeof CustomerEnv>;
|
|
14
|
+
declare const CustomerInterval2: {
|
|
15
|
+
readonly Hour: "hour";
|
|
16
|
+
readonly Day: "day";
|
|
17
|
+
readonly Week: "week";
|
|
18
|
+
readonly Month: "month";
|
|
19
|
+
};
|
|
20
|
+
type CustomerInterval2 = OpenEnum<typeof CustomerInterval2>;
|
|
21
|
+
type CustomerPurchaseLimit2 = {
|
|
22
|
+
/**
|
|
23
|
+
* The time interval for the purchase limit window. Null when no purchase limit is configured.
|
|
24
|
+
*/
|
|
25
|
+
interval: CustomerInterval2 | null;
|
|
26
|
+
/**
|
|
27
|
+
* Number of intervals in the purchase limit window. Null when no purchase limit is configured.
|
|
28
|
+
*/
|
|
29
|
+
intervalCount: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of auto top-ups allowed within the interval. Null when no purchase limit is configured.
|
|
32
|
+
*/
|
|
33
|
+
limit: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Number of auto top-ups already consumed in the current window.
|
|
36
|
+
*/
|
|
37
|
+
count: number;
|
|
38
|
+
/**
|
|
39
|
+
* Unix ms timestamp when the current purchase window ends and the count resets.
|
|
40
|
+
*/
|
|
41
|
+
nextResetAt: number;
|
|
42
|
+
};
|
|
14
43
|
/**
|
|
15
44
|
* The time interval for the purchase limit window.
|
|
16
45
|
*/
|
|
17
|
-
declare const
|
|
46
|
+
declare const CustomerInterval1: {
|
|
18
47
|
readonly Hour: "hour";
|
|
19
48
|
readonly Day: "day";
|
|
20
49
|
readonly Week: "week";
|
|
@@ -23,15 +52,12 @@ declare const CustomerInterval: {
|
|
|
23
52
|
/**
|
|
24
53
|
* The time interval for the purchase limit window.
|
|
25
54
|
*/
|
|
26
|
-
type
|
|
27
|
-
|
|
28
|
-
* Optional rate limit to cap how often auto top-ups occur.
|
|
29
|
-
*/
|
|
30
|
-
type CustomerPurchaseLimit = {
|
|
55
|
+
type CustomerInterval1 = OpenEnum<typeof CustomerInterval1>;
|
|
56
|
+
type CustomerPurchaseLimit1 = {
|
|
31
57
|
/**
|
|
32
58
|
* The time interval for the purchase limit window.
|
|
33
59
|
*/
|
|
34
|
-
interval:
|
|
60
|
+
interval: CustomerInterval1;
|
|
35
61
|
/**
|
|
36
62
|
* Number of intervals in the purchase limit window.
|
|
37
63
|
*/
|
|
@@ -59,9 +85,9 @@ type CustomerAutoTopup = {
|
|
|
59
85
|
*/
|
|
60
86
|
quantity: number;
|
|
61
87
|
/**
|
|
62
|
-
* Optional rate limit to cap how often auto top-ups occur.
|
|
88
|
+
* Optional rate limit to cap how often auto top-ups occur. Expand billing_controls.auto_topups.purchase_limit for a count of top ups and the next_reset_at.
|
|
63
89
|
*/
|
|
64
|
-
purchaseLimit?:
|
|
90
|
+
purchaseLimit?: CustomerPurchaseLimit2 | CustomerPurchaseLimit1 | undefined;
|
|
65
91
|
/**
|
|
66
92
|
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
67
93
|
*/
|
|
@@ -11,10 +11,39 @@ declare const CustomerEnv: {
|
|
|
11
11
|
* The environment this customer was created in.
|
|
12
12
|
*/
|
|
13
13
|
type CustomerEnv = OpenEnum<typeof CustomerEnv>;
|
|
14
|
+
declare const CustomerInterval2: {
|
|
15
|
+
readonly Hour: "hour";
|
|
16
|
+
readonly Day: "day";
|
|
17
|
+
readonly Week: "week";
|
|
18
|
+
readonly Month: "month";
|
|
19
|
+
};
|
|
20
|
+
type CustomerInterval2 = OpenEnum<typeof CustomerInterval2>;
|
|
21
|
+
type CustomerPurchaseLimit2 = {
|
|
22
|
+
/**
|
|
23
|
+
* The time interval for the purchase limit window. Null when no purchase limit is configured.
|
|
24
|
+
*/
|
|
25
|
+
interval: CustomerInterval2 | null;
|
|
26
|
+
/**
|
|
27
|
+
* Number of intervals in the purchase limit window. Null when no purchase limit is configured.
|
|
28
|
+
*/
|
|
29
|
+
intervalCount: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of auto top-ups allowed within the interval. Null when no purchase limit is configured.
|
|
32
|
+
*/
|
|
33
|
+
limit: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Number of auto top-ups already consumed in the current window.
|
|
36
|
+
*/
|
|
37
|
+
count: number;
|
|
38
|
+
/**
|
|
39
|
+
* Unix ms timestamp when the current purchase window ends and the count resets.
|
|
40
|
+
*/
|
|
41
|
+
nextResetAt: number;
|
|
42
|
+
};
|
|
14
43
|
/**
|
|
15
44
|
* The time interval for the purchase limit window.
|
|
16
45
|
*/
|
|
17
|
-
declare const
|
|
46
|
+
declare const CustomerInterval1: {
|
|
18
47
|
readonly Hour: "hour";
|
|
19
48
|
readonly Day: "day";
|
|
20
49
|
readonly Week: "week";
|
|
@@ -23,15 +52,12 @@ declare const CustomerInterval: {
|
|
|
23
52
|
/**
|
|
24
53
|
* The time interval for the purchase limit window.
|
|
25
54
|
*/
|
|
26
|
-
type
|
|
27
|
-
|
|
28
|
-
* Optional rate limit to cap how often auto top-ups occur.
|
|
29
|
-
*/
|
|
30
|
-
type CustomerPurchaseLimit = {
|
|
55
|
+
type CustomerInterval1 = OpenEnum<typeof CustomerInterval1>;
|
|
56
|
+
type CustomerPurchaseLimit1 = {
|
|
31
57
|
/**
|
|
32
58
|
* The time interval for the purchase limit window.
|
|
33
59
|
*/
|
|
34
|
-
interval:
|
|
60
|
+
interval: CustomerInterval1;
|
|
35
61
|
/**
|
|
36
62
|
* Number of intervals in the purchase limit window.
|
|
37
63
|
*/
|
|
@@ -59,9 +85,9 @@ type CustomerAutoTopup = {
|
|
|
59
85
|
*/
|
|
60
86
|
quantity: number;
|
|
61
87
|
/**
|
|
62
|
-
* Optional rate limit to cap how often auto top-ups occur.
|
|
88
|
+
* Optional rate limit to cap how often auto top-ups occur. Expand billing_controls.auto_topups.purchase_limit for a count of top ups and the next_reset_at.
|
|
63
89
|
*/
|
|
64
|
-
purchaseLimit?:
|
|
90
|
+
purchaseLimit?: CustomerPurchaseLimit2 | CustomerPurchaseLimit1 | undefined;
|
|
65
91
|
/**
|
|
66
92
|
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
67
93
|
*/
|
|
@@ -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-
|
|
10
|
+
import '../params-DzbSUS8O.mjs';
|
|
11
11
|
import '../plan-DSTBzzTY.mjs';
|
|
12
|
-
import '../customer-
|
|
12
|
+
import '../customer-BDxW2bu6.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-
|
|
10
|
+
import '../params-D4cEukOJ.js';
|
|
11
11
|
import '../plan-DSTBzzTY.js';
|
|
12
|
-
import '../customer-
|
|
12
|
+
import '../customer-BPUObmME.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BalanceFeature } from '../../../plan-DSTBzzTY.mjs';
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
+
import { C as Customer } from '../../../customer-BDxW2bu6.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BalanceFeature } from '../../../plan-DSTBzzTY.js';
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
+
import { C as Customer } from '../../../customer-BPUObmME.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 { o as ClientCheckParams, s as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { o as ClientCheckParams, s as CheckResponse } from '../../params-DzbSUS8O.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-BDxW2bu6.mjs';
|
|
3
3
|
import '../../plan-DSTBzzTY.mjs';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ClientCheckParams, s as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { o as ClientCheckParams, s as CheckResponse } from '../../params-D4cEukOJ.js';
|
|
2
|
+
import { C as Customer } from '../../customer-BPUObmME.js';
|
|
3
3
|
import '../../plan-DSTBzzTY.js';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
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-DzbSUS8O.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-BDxW2bu6.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
4
|
import '../../plan-DSTBzzTY.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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-D4cEukOJ.js';
|
|
2
|
+
import { C as Customer } from '../../customer-BPUObmME.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
4
|
import '../../plan-DSTBzzTY.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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-DzbSUS8O.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
5
|
import '../plan-DSTBzzTY.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-D4cEukOJ.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
5
|
import '../plan-DSTBzzTY.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-DzbSUS8O.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-BDxW2bu6.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
4
|
import '../plan-DSTBzzTY.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-D4cEukOJ.js';
|
|
2
|
+
import { C as Customer } from '../customer-BPUObmME.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
4
|
import '../plan-DSTBzzTY.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DzbSUS8O.mjs';
|
|
2
2
|
import { HookParams, HookResult } from './types.mjs';
|
|
3
3
|
import '../plan-DSTBzzTY.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-D4cEukOJ.js';
|
|
2
2
|
import { HookParams, HookResult } from './types.js';
|
|
3
3
|
import '../plan-DSTBzzTY.js';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-DzbSUS8O.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
5
|
import '../plan-DSTBzzTY.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-D4cEukOJ.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
5
|
import '../plan-DSTBzzTY.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { P as Plan } from '../plan-DSTBzzTY.mjs';
|
|
3
|
-
import { v as ClientListPlansParams } from '../params-
|
|
3
|
+
import { v as ClientListPlansParams } from '../params-DzbSUS8O.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
2
|
import { P as Plan } from '../plan-DSTBzzTY.js';
|
|
3
|
-
import { v as ClientListPlansParams } from '../params-
|
|
3
|
+
import { v as ClientListPlansParams } from '../params-D4cEukOJ.js';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
5
5
|
import { HookParams } from './types.js';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
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-DzbSUS8O.mjs';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
3
3
|
import '../plan-DSTBzzTY.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
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-D4cEukOJ.js';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
3
3
|
import '../plan-DSTBzzTY.js';
|
|
4
4
|
import '@tanstack/react-query';
|
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-DzbSUS8O.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';
|
|
@@ -13,6 +13,6 @@ export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/us
|
|
|
13
13
|
import './plan-DSTBzzTY.mjs';
|
|
14
14
|
import 'react';
|
|
15
15
|
import 'react/jsx-runtime';
|
|
16
|
-
import './customer-
|
|
16
|
+
import './customer-BDxW2bu6.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-D4cEukOJ.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';
|
|
@@ -13,6 +13,6 @@ export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/us
|
|
|
13
13
|
import './plan-DSTBzzTY.js';
|
|
14
14
|
import 'react';
|
|
15
15
|
import 'react/jsx-runtime';
|
|
16
|
-
import './customer-
|
|
16
|
+
import './customer-BPUObmME.js';
|
|
17
17
|
import '@tanstack/react-query';
|
|
18
18
|
import './hooks/types.js';
|