autumn-js 1.0.0 → 1.0.1
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/better-auth/index.js +8 -2
- package/dist/better-auth/index.mjs +8 -2
- package/dist/better-auth/types.d.mts +2 -0
- package/dist/better-auth/types.d.ts +2 -0
- package/dist/react/AutumnContext.d.mts +3 -4
- package/dist/react/AutumnContext.d.ts +3 -4
- package/dist/react/AutumnProvider.js +4 -1
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-ZYSAWX4V.mjs → chunk-DYPKNAC5.mjs} +3 -3
- package/dist/react/{chunk-MNADGPNP.mjs → chunk-ORGKXMVO.mjs} +1 -1
- package/dist/react/{chunk-S6BSJAGF.mjs → chunk-XZ7EPAS7.mjs} +4 -1
- package/dist/react/client/AutumnClient.d.mts +3 -4
- package/dist/react/client/AutumnClient.d.ts +3 -4
- package/dist/react/client/AutumnClient.js +4 -1
- package/dist/react/client/AutumnClient.mjs +1 -1
- package/dist/react/client/IAutumnClient.d.mts +4 -5
- package/dist/react/client/IAutumnClient.d.ts +4 -5
- package/dist/react/client/index.d.mts +3 -4
- package/dist/react/client/index.d.ts +3 -4
- package/dist/react/client/index.js +4 -1
- package/dist/react/client/index.mjs +1 -1
- package/dist/react/{customer-7tGu8YvT.d.ts → customer-BpEx-tx8.d.ts} +1 -2
- package/dist/react/{customer-C2C41E6K.d.mts → customer-DXZE0r0i.d.mts} +1 -2
- package/dist/react/hooks/index.d.mts +3 -4
- package/dist/react/hooks/index.d.ts +3 -4
- package/dist/react/hooks/index.js +3 -3
- package/dist/react/hooks/index.mjs +9 -9
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -3
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -3
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -3
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -3
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -3
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -3
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -3
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -4
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -4
- package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -3
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -3
- package/dist/react/hooks/useCustomer.d.mts +3 -4
- package/dist/react/hooks/useCustomer.d.ts +3 -4
- package/dist/react/hooks/useListEvents.d.mts +2 -3
- package/dist/react/hooks/useListEvents.d.ts +2 -3
- package/dist/react/hooks/useListPlans.d.mts +3 -2
- package/dist/react/hooks/useListPlans.d.ts +3 -2
- package/dist/react/hooks/useListPlans.js +3 -3
- package/dist/react/hooks/useListPlans.mjs +1 -1
- package/dist/react/hooks/useReferrals.d.mts +2 -3
- package/dist/react/hooks/useReferrals.d.ts +2 -3
- package/dist/react/index.d.mts +3 -4
- package/dist/react/index.d.ts +3 -4
- package/dist/react/index.js +7 -4
- package/dist/react/index.mjs +12 -12
- package/dist/react/{params-Dxhifsg1.d.ts → params-Cv46pxLK.d.mts} +8 -3
- package/dist/react/{params-ftQUMetN.d.mts → params-Cym7qxyS.d.ts} +8 -3
- package/dist/react/{plan-BN0cAIXA.d.mts → plan-ZteyN-zA.d.mts} +246 -1
- package/dist/react/{plan-BN0cAIXA.d.ts → plan-ZteyN-zA.d.ts} +246 -1
- package/package.json +1 -1
- package/dist/react/balance-D0bX08hF.d.mts +0 -248
- package/dist/react/balance-JAKReVd-.d.ts +0 -248
|
@@ -14459,10 +14459,16 @@ var createHandleBetterAuthRoute = ({
|
|
|
14459
14459
|
|
|
14460
14460
|
// src/better-auth/index.ts
|
|
14461
14461
|
function autumn(options = {}) {
|
|
14462
|
-
const {
|
|
14463
|
-
const handleRoute = createHandleBetterAuthRoute({
|
|
14462
|
+
const {
|
|
14464
14463
|
secretKey,
|
|
14465
14464
|
baseURL,
|
|
14465
|
+
autumnURL,
|
|
14466
|
+
customerScope = "user",
|
|
14467
|
+
identify
|
|
14468
|
+
} = options;
|
|
14469
|
+
const handleRoute = createHandleBetterAuthRoute({
|
|
14470
|
+
secretKey,
|
|
14471
|
+
baseURL: autumnURL ?? baseURL,
|
|
14466
14472
|
customerScope,
|
|
14467
14473
|
identify
|
|
14468
14474
|
});
|
|
@@ -11,10 +11,16 @@ import "./chunk-J2WYVGHS.mjs";
|
|
|
11
11
|
|
|
12
12
|
// src/better-auth/index.ts
|
|
13
13
|
function autumn(options = {}) {
|
|
14
|
-
const {
|
|
15
|
-
const handleRoute = createHandleBetterAuthRoute({
|
|
14
|
+
const {
|
|
16
15
|
secretKey,
|
|
17
16
|
baseURL,
|
|
17
|
+
autumnURL,
|
|
18
|
+
customerScope = "user",
|
|
19
|
+
identify
|
|
20
|
+
} = options;
|
|
21
|
+
const handleRoute = createHandleBetterAuthRoute({
|
|
22
|
+
secretKey,
|
|
23
|
+
baseURL: autumnURL ?? baseURL,
|
|
18
24
|
customerScope,
|
|
19
25
|
identify
|
|
20
26
|
});
|
|
@@ -145,6 +145,8 @@ type AutumnOptions = {
|
|
|
145
145
|
secretKey?: string;
|
|
146
146
|
/** Base URL for Autumn API */
|
|
147
147
|
baseURL?: string;
|
|
148
|
+
/** Autumn API URL (alias for baseURL) */
|
|
149
|
+
autumnURL?: string;
|
|
148
150
|
/** How to resolve customer identity from session */
|
|
149
151
|
customerScope?: CustomerScope;
|
|
150
152
|
/** Custom identity resolver (overrides customerScope) */
|
|
@@ -145,6 +145,8 @@ type AutumnOptions = {
|
|
|
145
145
|
secretKey?: string;
|
|
146
146
|
/** Base URL for Autumn API */
|
|
147
147
|
baseURL?: string;
|
|
148
|
+
/** Autumn API URL (alias for baseURL) */
|
|
149
|
+
autumnURL?: string;
|
|
148
150
|
/** How to resolve customer identity from session */
|
|
149
151
|
customerScope?: CustomerScope;
|
|
150
152
|
/** Custom identity resolver (overrides customerScope) */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.mjs';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './
|
|
6
|
-
import './customer-C2C41E6K.mjs';
|
|
3
|
+
import './params-Cv46pxLK.mjs';
|
|
4
|
+
import './plan-ZteyN-zA.mjs';
|
|
5
|
+
import './customer-DXZE0r0i.mjs';
|
|
7
6
|
|
|
8
7
|
type AutumnContextValue = {
|
|
9
8
|
client: IAutumnClient;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.js';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './
|
|
6
|
-
import './customer-7tGu8YvT.js';
|
|
3
|
+
import './params-Cym7qxyS.js';
|
|
4
|
+
import './plan-ZteyN-zA.js';
|
|
5
|
+
import './customer-BpEx-tx8.js';
|
|
7
6
|
|
|
8
7
|
type AutumnContextValue = {
|
|
9
8
|
client: IAutumnClient;
|
|
@@ -2027,7 +2027,10 @@ var createAutumnClient = (config) => {
|
|
|
2027
2027
|
route: "redeemReferralCode",
|
|
2028
2028
|
body: params
|
|
2029
2029
|
}),
|
|
2030
|
-
listPlans: () => http.request({
|
|
2030
|
+
listPlans: (params) => http.request({
|
|
2031
|
+
route: "listPlans",
|
|
2032
|
+
body: params ?? {}
|
|
2033
|
+
}),
|
|
2031
2034
|
listEvents: (params) => http.request({
|
|
2032
2035
|
route: "listEvents",
|
|
2033
2036
|
body: params
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
AutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-ORGKXMVO.mjs";
|
|
6
|
+
import "./chunk-XZ7EPAS7.mjs";
|
|
7
7
|
import "./chunk-M34U5F2H.mjs";
|
|
8
8
|
import "./chunk-IC3QHWR6.mjs";
|
|
9
9
|
import "./chunk-NZXAPOUB.mjs";
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
// src/react/hooks/useListPlans.ts
|
|
10
10
|
var useListPlans = (params = {}) => {
|
|
11
11
|
const client = useAutumnClient({ caller: "useListPlans" });
|
|
12
|
-
const { queryOptions } = params;
|
|
12
|
+
const { queryOptions, ...listPlansParams } = params;
|
|
13
13
|
return useQuery({
|
|
14
|
-
queryKey: ["autumn", "plans"],
|
|
14
|
+
queryKey: ["autumn", "plans", listPlansParams],
|
|
15
15
|
queryFn: async () => {
|
|
16
|
-
const response = await client.listPlans();
|
|
16
|
+
const response = await client.listPlans(listPlansParams);
|
|
17
17
|
return response.list;
|
|
18
18
|
},
|
|
19
19
|
...queryOptions
|
|
@@ -55,7 +55,10 @@ var createAutumnClient = (config) => {
|
|
|
55
55
|
route: "redeemReferralCode",
|
|
56
56
|
body: params
|
|
57
57
|
}),
|
|
58
|
-
listPlans: () => http.request({
|
|
58
|
+
listPlans: (params) => http.request({
|
|
59
|
+
route: "listPlans",
|
|
60
|
+
body: params ?? {}
|
|
61
|
+
}),
|
|
59
62
|
listEvents: (params) => http.request({
|
|
60
63
|
route: "listEvents",
|
|
61
64
|
body: params
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.mjs';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../
|
|
5
|
-
import '../customer-C2C41E6K.mjs';
|
|
2
|
+
import '../params-Cv46pxLK.mjs';
|
|
3
|
+
import '../plan-ZteyN-zA.mjs';
|
|
4
|
+
import '../customer-DXZE0r0i.mjs';
|
|
6
5
|
|
|
7
6
|
/** Configuration for Autumn client */
|
|
8
7
|
type AutumnClientConfig = {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IAutumnClient } from './IAutumnClient.js';
|
|
2
|
-
import '../params-
|
|
3
|
-
import '../plan-
|
|
4
|
-
import '../
|
|
5
|
-
import '../customer-7tGu8YvT.js';
|
|
2
|
+
import '../params-Cym7qxyS.js';
|
|
3
|
+
import '../plan-ZteyN-zA.js';
|
|
4
|
+
import '../customer-BpEx-tx8.js';
|
|
6
5
|
|
|
7
6
|
/** Configuration for Autumn client */
|
|
8
7
|
type AutumnClientConfig = {
|
|
@@ -150,7 +150,10 @@ var createAutumnClient = (config) => {
|
|
|
150
150
|
route: "redeemReferralCode",
|
|
151
151
|
body: params
|
|
152
152
|
}),
|
|
153
|
-
listPlans: () => http.request({
|
|
153
|
+
listPlans: (params) => http.request({
|
|
154
|
+
route: "listPlans",
|
|
155
|
+
body: params ?? {}
|
|
156
|
+
}),
|
|
154
157
|
listEvents: (params) => http.request({
|
|
155
158
|
route: "listEvents",
|
|
156
159
|
body: params
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { c as ClientGetOrCreateCustomerParams, a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams,
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
3
|
-
import { O as OpenEnum } from '../plan-
|
|
4
|
-
import '../balance-D0bX08hF.mjs';
|
|
1
|
+
import { c as ClientGetOrCreateCustomerParams, a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, v as CreateReferralCodeResponse, j as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, u as ClientListPlansParams, d as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse } from '../params-Cv46pxLK.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-DXZE0r0i.mjs';
|
|
3
|
+
import { O as OpenEnum } from '../plan-ZteyN-zA.mjs';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Billing interval (e.g. 'month', 'year').
|
|
@@ -427,7 +426,7 @@ interface IAutumnClient {
|
|
|
427
426
|
openCustomerPortal: (params: ClientOpenCustomerPortalParams) => Promise<OpenCustomerPortalResponse>;
|
|
428
427
|
createReferralCode: (params: ClientCreateReferralCodeParams) => Promise<CreateReferralCodeResponse>;
|
|
429
428
|
redeemReferralCode: (params: ClientRedeemReferralCodeParams) => Promise<RedeemReferralCodeResponse>;
|
|
430
|
-
listPlans: () => Promise<ListPlansResponse>;
|
|
429
|
+
listPlans: (params?: ClientListPlansParams) => Promise<ListPlansResponse>;
|
|
431
430
|
listEvents: (params: ClientListEventsParams) => Promise<ListEventsResponse>;
|
|
432
431
|
aggregateEvents: (params: ClientAggregateEventsParams) => Promise<AggregateEventsResponse>;
|
|
433
432
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { c as ClientGetOrCreateCustomerParams, a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams,
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
3
|
-
import { O as OpenEnum } from '../plan-
|
|
4
|
-
import '../balance-JAKReVd-.js';
|
|
1
|
+
import { c as ClientGetOrCreateCustomerParams, a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, v as CreateReferralCodeResponse, j as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, u as ClientListPlansParams, d as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse } from '../params-Cym7qxyS.js';
|
|
2
|
+
import { C as Customer } from '../customer-BpEx-tx8.js';
|
|
3
|
+
import { O as OpenEnum } from '../plan-ZteyN-zA.js';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Billing interval (e.g. 'month', 'year').
|
|
@@ -427,7 +426,7 @@ interface IAutumnClient {
|
|
|
427
426
|
openCustomerPortal: (params: ClientOpenCustomerPortalParams) => Promise<OpenCustomerPortalResponse>;
|
|
428
427
|
createReferralCode: (params: ClientCreateReferralCodeParams) => Promise<CreateReferralCodeResponse>;
|
|
429
428
|
redeemReferralCode: (params: ClientRedeemReferralCodeParams) => Promise<RedeemReferralCodeResponse>;
|
|
430
|
-
listPlans: () => Promise<ListPlansResponse>;
|
|
429
|
+
listPlans: (params?: ClientListPlansParams) => Promise<ListPlansResponse>;
|
|
431
430
|
listEvents: (params: ClientListEventsParams) => Promise<ListEventsResponse>;
|
|
432
431
|
aggregateEvents: (params: ClientAggregateEventsParams) => Promise<AggregateEventsResponse>;
|
|
433
432
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.mjs';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.mjs';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.mjs';
|
|
4
|
-
import '../params-
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../
|
|
7
|
-
import '../customer-C2C41E6K.mjs';
|
|
4
|
+
import '../params-Cv46pxLK.mjs';
|
|
5
|
+
import '../plan-ZteyN-zA.mjs';
|
|
6
|
+
import '../customer-DXZE0r0i.mjs';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.js';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.js';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.js';
|
|
4
|
-
import '../params-
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../
|
|
7
|
-
import '../customer-7tGu8YvT.js';
|
|
4
|
+
import '../params-Cym7qxyS.js';
|
|
5
|
+
import '../plan-ZteyN-zA.js';
|
|
6
|
+
import '../customer-BpEx-tx8.js';
|
|
@@ -151,7 +151,10 @@ var createAutumnClient = (config) => {
|
|
|
151
151
|
route: "redeemReferralCode",
|
|
152
152
|
body: params
|
|
153
153
|
}),
|
|
154
|
-
listPlans: () => http.request({
|
|
154
|
+
listPlans: (params) => http.request({
|
|
155
|
+
route: "listPlans",
|
|
156
|
+
body: params ?? {}
|
|
157
|
+
}),
|
|
155
158
|
listEvents: (params) => http.request({
|
|
156
159
|
route: "listEvents",
|
|
157
160
|
body: params
|
|
@@ -6,7 +6,6 @@ export { UseListPlansParams, useListPlans } from './useListPlans.mjs';
|
|
|
6
6
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.mjs';
|
|
7
7
|
import '@tanstack/react-query';
|
|
8
8
|
import '../client/AutumnClientError.mjs';
|
|
9
|
-
import '../params-
|
|
10
|
-
import '../plan-
|
|
11
|
-
import '../
|
|
12
|
-
import '../customer-C2C41E6K.mjs';
|
|
9
|
+
import '../params-Cv46pxLK.mjs';
|
|
10
|
+
import '../plan-ZteyN-zA.mjs';
|
|
11
|
+
import '../customer-DXZE0r0i.mjs';
|
|
@@ -6,7 +6,6 @@ export { UseListPlansParams, useListPlans } from './useListPlans.js';
|
|
|
6
6
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.js';
|
|
7
7
|
import '@tanstack/react-query';
|
|
8
8
|
import '../client/AutumnClientError.js';
|
|
9
|
-
import '../params-
|
|
10
|
-
import '../plan-
|
|
11
|
-
import '../
|
|
12
|
-
import '../customer-7tGu8YvT.js';
|
|
9
|
+
import '../params-Cym7qxyS.js';
|
|
10
|
+
import '../plan-ZteyN-zA.js';
|
|
11
|
+
import '../customer-BpEx-tx8.js';
|
|
@@ -1539,11 +1539,11 @@ var useListEvents = (params = {}) => {
|
|
|
1539
1539
|
// src/react/hooks/useListPlans.ts
|
|
1540
1540
|
var useListPlans = (params = {}) => {
|
|
1541
1541
|
const client = useAutumnClient({ caller: "useListPlans" });
|
|
1542
|
-
const { queryOptions } = params;
|
|
1542
|
+
const { queryOptions, ...listPlansParams } = params;
|
|
1543
1543
|
return useQuery({
|
|
1544
|
-
queryKey: ["autumn", "plans"],
|
|
1544
|
+
queryKey: ["autumn", "plans", listPlansParams],
|
|
1545
1545
|
queryFn: async () => {
|
|
1546
|
-
const response = await client.listPlans();
|
|
1546
|
+
const response = await client.listPlans(listPlansParams);
|
|
1547
1547
|
return response.list;
|
|
1548
1548
|
},
|
|
1549
1549
|
...queryOptions
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useListPlans
|
|
4
|
-
} from "../chunk-ZYSAWX4V.mjs";
|
|
5
|
-
import {
|
|
6
|
-
useReferrals
|
|
7
|
-
} from "../chunk-APCGDPUC.mjs";
|
|
8
2
|
import {
|
|
9
3
|
useAggregateEvents
|
|
10
4
|
} from "../chunk-HVS7GPJW.mjs";
|
|
@@ -12,14 +6,20 @@ import {
|
|
|
12
6
|
useCustomer
|
|
13
7
|
} from "../chunk-TMQYTNSU.mjs";
|
|
14
8
|
import "../chunk-4UHL5FPQ.mjs";
|
|
9
|
+
import {
|
|
10
|
+
useListEvents
|
|
11
|
+
} from "../chunk-Y4AH2Q7G.mjs";
|
|
12
|
+
import {
|
|
13
|
+
useListPlans
|
|
14
|
+
} from "../chunk-DYPKNAC5.mjs";
|
|
15
|
+
import {
|
|
16
|
+
useReferrals
|
|
17
|
+
} from "../chunk-APCGDPUC.mjs";
|
|
15
18
|
import "../chunk-BWKG32GC.mjs";
|
|
16
19
|
import "../chunk-GSJF6P3Q.mjs";
|
|
17
20
|
import "../chunk-SEQHNPTF.mjs";
|
|
18
21
|
import "../chunk-4TON573W.mjs";
|
|
19
22
|
import "../chunk-D6DFRS3U.mjs";
|
|
20
|
-
import {
|
|
21
|
-
useListEvents
|
|
22
|
-
} from "../chunk-Y4AH2Q7G.mjs";
|
|
23
23
|
import "../chunk-NZXAPOUB.mjs";
|
|
24
24
|
import "../chunk-SOA7GEAN.mjs";
|
|
25
25
|
export {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
3
|
-
import '../../../balance-D0bX08hF.mjs';
|
|
1
|
+
import { C as Customer } from '../../../customer-DXZE0r0i.mjs';
|
|
2
|
+
import '../../../plan-ZteyN-zA.mjs';
|
|
4
3
|
|
|
5
4
|
type CustomerBalance = Customer["balances"][string];
|
|
6
5
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
3
|
-
import '../../../balance-JAKReVd-.js';
|
|
1
|
+
import { C as Customer } from '../../../customer-BpEx-tx8.js';
|
|
2
|
+
import '../../../plan-ZteyN-zA.js';
|
|
4
3
|
|
|
5
4
|
type CustomerBalance = Customer["balances"][string];
|
|
6
5
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
3
|
-
import '../../../balance-D0bX08hF.mjs';
|
|
1
|
+
import { C as Customer } from '../../../customer-DXZE0r0i.mjs';
|
|
2
|
+
import '../../../plan-ZteyN-zA.mjs';
|
|
4
3
|
|
|
5
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
6
5
|
declare const customerToFeatures: ({ customer, }: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
3
|
-
import '../../../balance-JAKReVd-.js';
|
|
1
|
+
import { C as Customer } from '../../../customer-BpEx-tx8.js';
|
|
2
|
+
import '../../../plan-ZteyN-zA.js';
|
|
4
3
|
|
|
5
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
6
5
|
declare const customerToFeatures: ({ customer, }: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { B as BalanceFeature } from '../../../
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
3
|
-
import '../../../plan-BN0cAIXA.mjs';
|
|
1
|
+
import { B as BalanceFeature } from '../../../plan-ZteyN-zA.mjs';
|
|
2
|
+
import { C as Customer } from '../../../customer-DXZE0r0i.mjs';
|
|
4
3
|
|
|
5
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
6
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { B as BalanceFeature } from '../../../
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
3
|
-
import '../../../plan-BN0cAIXA.js';
|
|
1
|
+
import { B as BalanceFeature } from '../../../plan-ZteyN-zA.js';
|
|
2
|
+
import { C as Customer } from '../../../customer-BpEx-tx8.js';
|
|
4
3
|
|
|
5
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
6
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
3
|
-
import '../../../balance-D0bX08hF.mjs';
|
|
1
|
+
import { C as Customer } from '../../../customer-DXZE0r0i.mjs';
|
|
2
|
+
import '../../../plan-ZteyN-zA.mjs';
|
|
4
3
|
|
|
5
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
6
5
|
declare const getCreditCost: ({ featureId, creditSystem, amount, }: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
-
import '../../../plan-
|
|
3
|
-
import '../../../balance-JAKReVd-.js';
|
|
1
|
+
import { C as Customer } from '../../../customer-BpEx-tx8.js';
|
|
2
|
+
import '../../../plan-ZteyN-zA.js';
|
|
4
3
|
|
|
5
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
6
5
|
declare const getCreditCost: ({ featureId, creditSystem, amount, }: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as ClientCheckParams, r as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
3
|
-
import '../../plan-
|
|
4
|
-
import '../../balance-D0bX08hF.mjs';
|
|
1
|
+
import { n as ClientCheckParams, r as CheckResponse } from '../../params-Cv46pxLK.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DXZE0r0i.mjs';
|
|
3
|
+
import '../../plan-ZteyN-zA.mjs';
|
|
5
4
|
|
|
6
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
7
6
|
customer: Customer | null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as ClientCheckParams, r as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
3
|
-
import '../../plan-
|
|
4
|
-
import '../../balance-JAKReVd-.js';
|
|
1
|
+
import { n as ClientCheckParams, r as CheckResponse } from '../../params-Cym7qxyS.js';
|
|
2
|
+
import { C as Customer } from '../../customer-BpEx-tx8.js';
|
|
3
|
+
import '../../plan-ZteyN-zA.js';
|
|
5
4
|
|
|
6
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
7
6
|
customer: Customer | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, n as ClientCheckParams, r as CheckResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, n as ClientCheckParams, r as CheckResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-Cv46pxLK.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DXZE0r0i.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../balance-D0bX08hF.mjs';
|
|
4
|
+
import '../../plan-ZteyN-zA.mjs';
|
|
6
5
|
|
|
7
6
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
8
7
|
client: IAutumnClient;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, n as ClientCheckParams, r as CheckResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, n as ClientCheckParams, r as CheckResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-Cym7qxyS.js';
|
|
2
|
+
import { C as Customer } from '../../customer-BpEx-tx8.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
|
-
import '../../plan-
|
|
5
|
-
import '../../balance-JAKReVd-.js';
|
|
4
|
+
import '../../plan-ZteyN-zA.js';
|
|
6
5
|
|
|
7
6
|
declare const useCustomerActions: ({ client, customer, }: {
|
|
8
7
|
client: IAutumnClient;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, m as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, m as AggregateEventsList, T as Total } from '../params-Cv46pxLK.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../balance-D0bX08hF.mjs';
|
|
5
|
+
import '../plan-ZteyN-zA.mjs';
|
|
7
6
|
|
|
8
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
9
8
|
declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, m as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, m as AggregateEventsList, T as Total } from '../params-Cym7qxyS.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../balance-JAKReVd-.js';
|
|
5
|
+
import '../plan-ZteyN-zA.js';
|
|
7
6
|
|
|
8
7
|
type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
|
|
9
8
|
declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n as ClientCheckParams, c as ClientGetOrCreateCustomerParams, a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, r as CheckResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { n as ClientCheckParams, c as ClientGetOrCreateCustomerParams, a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, r as CheckResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-Cv46pxLK.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-DXZE0r0i.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
|
-
import '../plan-
|
|
5
|
-
import '../balance-D0bX08hF.mjs';
|
|
4
|
+
import '../plan-ZteyN-zA.mjs';
|
|
6
5
|
import '@tanstack/react-query';
|
|
7
6
|
import '../client/AutumnClientError.mjs';
|
|
8
7
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n as ClientCheckParams, c as ClientGetOrCreateCustomerParams, a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, r as CheckResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { n as ClientCheckParams, c as ClientGetOrCreateCustomerParams, a as ClientAttachParams, o as AttachResponse, g as ClientPreviewAttachParams, p as PreviewAttachResponse, l as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, i as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, r as CheckResponse, e as ClientMultiAttachParams, M as MultiAttachResponse, h as ClientPreviewMultiAttachParams, s as PreviewMultiAttachResponse, k as ClientSetupPaymentParams, S as SetupPaymentResponse, f as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-Cym7qxyS.js';
|
|
2
|
+
import { C as Customer } from '../customer-BpEx-tx8.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
|
-
import '../plan-
|
|
5
|
-
import '../balance-JAKReVd-.js';
|
|
4
|
+
import '../plan-ZteyN-zA.js';
|
|
6
5
|
import '@tanstack/react-query';
|
|
7
6
|
import '../client/AutumnClientError.js';
|
|
8
7
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { d as ClientListEventsParams, L as ListEventsResponse, t as ListEventsList } from '../params-
|
|
2
|
+
import { d as ClientListEventsParams, L as ListEventsResponse, t as ListEventsList } from '../params-Cv46pxLK.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../balance-D0bX08hF.mjs';
|
|
5
|
+
import '../plan-ZteyN-zA.mjs';
|
|
7
6
|
|
|
8
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
9
8
|
declare const useListEvents: (params?: UseListEventsParams) => {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { d as ClientListEventsParams, L as ListEventsResponse, t as ListEventsList } from '../params-
|
|
2
|
+
import { d as ClientListEventsParams, L as ListEventsResponse, t as ListEventsList } from '../params-Cym7qxyS.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
|
-
import '../plan-
|
|
6
|
-
import '../balance-JAKReVd-.js';
|
|
5
|
+
import '../plan-ZteyN-zA.js';
|
|
7
6
|
|
|
8
7
|
type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
|
|
9
8
|
declare const useListEvents: (params?: UseListEventsParams) => {
|