autumn-js 0.0.92-beta.1 → 0.0.93
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/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +2 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +2 -2
- package/dist/libraries/react/{ReactAutumnClient-BTNcA_3b.d.ts → ReactAutumnClient-GEzKNujl.d.ts} +10 -10
- package/dist/libraries/react/{ReactAutumnClient-BiipnfQn.d.mts → ReactAutumnClient-Z3DcfZ0x.d.mts} +10 -10
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +2 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +3 -3
- package/dist/libraries/react/{chunk-TINC2IR4.mjs → chunk-CRIKYVUD.mjs} +2 -1
- package/dist/libraries/react/{chunk-LKBUMRHE.mjs → chunk-CZAXPWHV.mjs} +12 -12
- package/dist/libraries/react/{chunk-4AYEAAQU.mjs → chunk-QTEFT7SA.mjs} +1 -1
- package/dist/libraries/react/{chunk-67Y4DFV2.mjs → chunk-TD6CFKDQ.mjs} +1 -1
- package/dist/libraries/react/{chunk-G3XBGOHR.mjs → chunk-UHUADKEF.mjs} +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +16 -16
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +16 -16
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +1271 -0
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +2 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +11 -11
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +1271 -0
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +2 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +11 -11
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/{entTypes-O8YXxhrA.d.ts → entTypes-Ddl0CGp9.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-CscyyE1A.d.mts → entTypes-Mq0F4CAa.d.mts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.js +2 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +2 -2
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.js +2 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +1 -1
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/index.js +27 -1
- package/dist/libraries/react/index.mjs +27 -1
- package/dist/libraries/react/{response-BHqAAnND.d.ts → response-B8Tq3x66.d.ts} +3 -3
- package/dist/libraries/react/{response-CDZ_R5pb.d.mts → response-CMrRLv9c.d.mts} +3 -3
- package/dist/next/client/NextAutumnClient.d.mts +6 -6
- package/dist/next/client/NextAutumnClient.d.ts +6 -6
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/{clientGenTypes-B28imYzT.d.mts → clientGenTypes-DWrGEdrD.d.mts} +7 -7
- package/dist/next/client/{clientGenTypes-D46edNj5.d.ts → clientGenTypes-D_Ea92Du.d.ts} +7 -7
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{entTypes-CJx3GLTt.d.mts → entTypes-B-2_9hzP.d.mts} +1 -1
- package/dist/next/client/{entTypes-qYfQsZ9u.d.ts → entTypes-Dq2mbehl.d.ts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +2 -2
- package/dist/next/client/hooks/useAutumn.d.ts +2 -2
- package/dist/next/client/hooks/useCustomer.d.mts +3 -3
- package/dist/next/client/hooks/useCustomer.d.ts +3 -3
- package/dist/next/client/hooks/useEntity.d.mts +3 -3
- package/dist/next/client/hooks/useEntity.d.ts +3 -3
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +5 -5
- package/dist/next/server/cusActions.d.ts +5 -5
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/package.json +1 -1
- package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.mts → cusTypes-DUC0TrK5.d.mts} +2 -2
- package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.ts → cusTypes-DUC0TrK5.d.ts} +2 -2
- package/dist/next/client/{cusTypes-CGXuXu_Y.d.mts → cusTypes-D8lhXGaX.d.mts} +2 -2
- package/dist/next/client/{cusTypes-CGXuXu_Y.d.ts → cusTypes-D8lhXGaX.d.ts} +2 -2
- package/dist/next/server/{cusTypes-H4mqijcm.d.mts → cusTypes-C86FOl99.d.mts} +2 -2
- package/dist/next/server/{cusTypes-H4mqijcm.d.ts → cusTypes-C86FOl99.d.ts} +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
3
3
|
import './client/types/clientEntTypes.mjs';
|
|
4
4
|
import './client/types/clientGenTypes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './error-DHbclCVh.mjs';
|
|
7
|
-
import './response-
|
|
8
|
-
import './cusTypes-
|
|
9
|
-
import './entTypes-
|
|
7
|
+
import './response-CMrRLv9c.mjs';
|
|
8
|
+
import './cusTypes-DUC0TrK5.mjs';
|
|
9
|
+
import './entTypes-Mq0F4CAa.mjs';
|
|
10
10
|
|
|
11
11
|
interface AutumnDialogContext {
|
|
12
12
|
props: any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-GEzKNujl.js';
|
|
3
3
|
import './client/types/clientEntTypes.js';
|
|
4
4
|
import './client/types/clientGenTypes.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './error-DHbclCVh.js';
|
|
7
|
-
import './response-
|
|
8
|
-
import './cusTypes-
|
|
9
|
-
import './entTypes-
|
|
7
|
+
import './response-B8Tq3x66.js';
|
|
8
|
+
import './cusTypes-DUC0TrK5.js';
|
|
9
|
+
import './entTypes-Ddl0CGp9.js';
|
|
10
10
|
|
|
11
11
|
interface AutumnDialogContext {
|
|
12
12
|
props: any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
3
|
+
import { A as AutumnClient } from './ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
4
4
|
import './client/types/clientEntTypes.mjs';
|
|
5
5
|
import './client/types/clientGenTypes.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './error-DHbclCVh.mjs';
|
|
8
|
-
import './response-
|
|
9
|
-
import './cusTypes-
|
|
10
|
-
import './entTypes-
|
|
8
|
+
import './response-CMrRLv9c.mjs';
|
|
9
|
+
import './cusTypes-DUC0TrK5.mjs';
|
|
10
|
+
import './entTypes-Mq0F4CAa.mjs';
|
|
11
11
|
|
|
12
12
|
declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
3
|
+
import { A as AutumnClient } from './ReactAutumnClient-GEzKNujl.js';
|
|
4
4
|
import './client/types/clientEntTypes.js';
|
|
5
5
|
import './client/types/clientGenTypes.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './error-DHbclCVh.js';
|
|
8
|
-
import './response-
|
|
9
|
-
import './cusTypes-
|
|
10
|
-
import './entTypes-
|
|
8
|
+
import './response-B8Tq3x66.js';
|
|
9
|
+
import './cusTypes-DUC0TrK5.js';
|
|
10
|
+
import './entTypes-Ddl0CGp9.js';
|
|
11
11
|
|
|
12
12
|
declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -1386,7 +1386,6 @@ var useCustomerBase = ({
|
|
|
1386
1386
|
AutumnContext: AutumnContext2,
|
|
1387
1387
|
client
|
|
1388
1388
|
}) => {
|
|
1389
|
-
const queryKey = ["customer", params?.expand];
|
|
1390
1389
|
let context;
|
|
1391
1390
|
let authClientExists = !!params?.authClient;
|
|
1392
1391
|
if (AutumnContext2) {
|
|
@@ -1401,6 +1400,8 @@ var useCustomerBase = ({
|
|
|
1401
1400
|
} else if (!client) {
|
|
1402
1401
|
client = context.client;
|
|
1403
1402
|
}
|
|
1403
|
+
let baseUrl = params?.authClient ? "" : client?.backendUrl || "";
|
|
1404
|
+
const queryKey = ["customer", baseUrl, params?.expand];
|
|
1404
1405
|
const fetchCustomer = async () => {
|
|
1405
1406
|
const { data, error: error2 } = await client.createCustomer({
|
|
1406
1407
|
errorOnNotFound: params?.errorOnNotFound,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
BaseAutumnProvider
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-UHUADKEF.mjs";
|
|
7
|
+
import "./chunk-CRIKYVUD.mjs";
|
|
8
8
|
import "./chunk-4QPHNIQ7.mjs";
|
|
9
9
|
import "./chunk-3JJC2VU5.mjs";
|
|
10
10
|
import "./chunk-3WP2MI55.mjs";
|
package/dist/libraries/react/{ReactAutumnClient-BTNcA_3b.d.ts → ReactAutumnClient-GEzKNujl.d.ts}
RENAMED
|
@@ -2,9 +2,9 @@ import { CreateEntityParams, GetEntityParams } from './client/types/clientEntTyp
|
|
|
2
2
|
import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clientGenTypes.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
5
|
-
import { R as Result, A as AutumnPromise, C as CancelResult, b as CheckResult, T as TrackResult, S as SetupPaymentResult } from './response-
|
|
6
|
-
import { h as ProductItem, l as ProductScenario, C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult, P as Product } from './cusTypes-
|
|
7
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
5
|
+
import { R as Result, A as AutumnPromise, C as CancelResult, b as CheckResult, T as TrackResult, S as SetupPaymentResult } from './response-B8Tq3x66.js';
|
|
6
|
+
import { h as ProductItem, l as ProductScenario, C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult, P as Product } from './cusTypes-DUC0TrK5.js';
|
|
7
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-Ddl0CGp9.js';
|
|
8
8
|
|
|
9
9
|
interface PricingTableProduct {
|
|
10
10
|
id: string;
|
|
@@ -80,28 +80,28 @@ declare class AutumnClient {
|
|
|
80
80
|
}, AutumnError>>;
|
|
81
81
|
attach: (params: {
|
|
82
82
|
options?: {
|
|
83
|
-
quantity: number;
|
|
84
83
|
featureId: string;
|
|
84
|
+
quantity: number;
|
|
85
85
|
}[] | undefined;
|
|
86
86
|
metadata?: Record<string, string> | undefined;
|
|
87
|
-
reward?: string | undefined;
|
|
88
87
|
productId?: string | undefined;
|
|
89
88
|
entityId?: string | undefined;
|
|
90
89
|
productIds?: string[] | undefined;
|
|
91
90
|
freeTrial?: boolean | undefined;
|
|
92
91
|
successUrl?: string | undefined;
|
|
93
92
|
forceCheckout?: boolean | undefined;
|
|
94
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
93
|
+
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | React.ReactNode) | undefined;
|
|
95
94
|
entityData?: any;
|
|
96
95
|
openInNewTab?: boolean | undefined;
|
|
96
|
+
reward?: string | undefined;
|
|
97
97
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
98
98
|
}) => AutumnPromise<{
|
|
99
99
|
customer_id: string;
|
|
100
100
|
code: string;
|
|
101
101
|
message: string;
|
|
102
102
|
product_ids: string[];
|
|
103
|
-
customer_data?: any;
|
|
104
103
|
checkout_url?: string | undefined;
|
|
104
|
+
customer_data?: any;
|
|
105
105
|
}>;
|
|
106
106
|
cancel: (params: {
|
|
107
107
|
productId: string;
|
|
@@ -109,10 +109,10 @@ declare class AutumnClient {
|
|
|
109
109
|
cancelImmediately?: boolean | undefined;
|
|
110
110
|
}) => AutumnPromise<CancelResult>;
|
|
111
111
|
check: (params: {
|
|
112
|
-
featureId?: string | undefined;
|
|
113
112
|
productId?: string | undefined;
|
|
114
113
|
entityId?: string | undefined;
|
|
115
|
-
|
|
114
|
+
featureId?: string | undefined;
|
|
115
|
+
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | React.ReactNode) | undefined;
|
|
116
116
|
entityData?: any;
|
|
117
117
|
requiredBalance?: number | undefined;
|
|
118
118
|
sendEvent?: boolean | undefined;
|
|
@@ -120,8 +120,8 @@ declare class AutumnClient {
|
|
|
120
120
|
}) => AutumnPromise<CheckResult>;
|
|
121
121
|
track: (params: {
|
|
122
122
|
value?: number | undefined;
|
|
123
|
-
featureId?: string | undefined;
|
|
124
123
|
entityId?: string | undefined;
|
|
124
|
+
featureId?: string | undefined;
|
|
125
125
|
entityData?: any;
|
|
126
126
|
eventName?: string | undefined;
|
|
127
127
|
idempotencyKey?: string | undefined;
|
package/dist/libraries/react/{ReactAutumnClient-BiipnfQn.d.mts → ReactAutumnClient-Z3DcfZ0x.d.mts}
RENAMED
|
@@ -2,9 +2,9 @@ import { CreateEntityParams, GetEntityParams } from './client/types/clientEntTyp
|
|
|
2
2
|
import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clientGenTypes.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
5
|
-
import { R as Result, A as AutumnPromise, C as CancelResult, b as CheckResult, T as TrackResult, S as SetupPaymentResult } from './response-
|
|
6
|
-
import { h as ProductItem, l as ProductScenario, C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult, P as Product } from './cusTypes-
|
|
7
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
5
|
+
import { R as Result, A as AutumnPromise, C as CancelResult, b as CheckResult, T as TrackResult, S as SetupPaymentResult } from './response-CMrRLv9c.mjs';
|
|
6
|
+
import { h as ProductItem, l as ProductScenario, C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult, P as Product } from './cusTypes-DUC0TrK5.mjs';
|
|
7
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-Mq0F4CAa.mjs';
|
|
8
8
|
|
|
9
9
|
interface PricingTableProduct {
|
|
10
10
|
id: string;
|
|
@@ -80,28 +80,28 @@ declare class AutumnClient {
|
|
|
80
80
|
}, AutumnError>>;
|
|
81
81
|
attach: (params: {
|
|
82
82
|
options?: {
|
|
83
|
-
quantity: number;
|
|
84
83
|
featureId: string;
|
|
84
|
+
quantity: number;
|
|
85
85
|
}[] | undefined;
|
|
86
86
|
metadata?: Record<string, string> | undefined;
|
|
87
|
-
reward?: string | undefined;
|
|
88
87
|
productId?: string | undefined;
|
|
89
88
|
entityId?: string | undefined;
|
|
90
89
|
productIds?: string[] | undefined;
|
|
91
90
|
freeTrial?: boolean | undefined;
|
|
92
91
|
successUrl?: string | undefined;
|
|
93
92
|
forceCheckout?: boolean | undefined;
|
|
94
|
-
dialog?: ((args_0: any, ...args: unknown[]) =>
|
|
93
|
+
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | React.ReactNode) | undefined;
|
|
95
94
|
entityData?: any;
|
|
96
95
|
openInNewTab?: boolean | undefined;
|
|
96
|
+
reward?: string | undefined;
|
|
97
97
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
98
98
|
}) => AutumnPromise<{
|
|
99
99
|
customer_id: string;
|
|
100
100
|
code: string;
|
|
101
101
|
message: string;
|
|
102
102
|
product_ids: string[];
|
|
103
|
-
customer_data?: any;
|
|
104
103
|
checkout_url?: string | undefined;
|
|
104
|
+
customer_data?: any;
|
|
105
105
|
}>;
|
|
106
106
|
cancel: (params: {
|
|
107
107
|
productId: string;
|
|
@@ -109,10 +109,10 @@ declare class AutumnClient {
|
|
|
109
109
|
cancelImmediately?: boolean | undefined;
|
|
110
110
|
}) => AutumnPromise<CancelResult>;
|
|
111
111
|
check: (params: {
|
|
112
|
-
featureId?: string | undefined;
|
|
113
112
|
productId?: string | undefined;
|
|
114
113
|
entityId?: string | undefined;
|
|
115
|
-
|
|
114
|
+
featureId?: string | undefined;
|
|
115
|
+
dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | React.ReactNode) | undefined;
|
|
116
116
|
entityData?: any;
|
|
117
117
|
requiredBalance?: number | undefined;
|
|
118
118
|
sendEvent?: boolean | undefined;
|
|
@@ -120,8 +120,8 @@ declare class AutumnClient {
|
|
|
120
120
|
}) => AutumnPromise<CheckResult>;
|
|
121
121
|
track: (params: {
|
|
122
122
|
value?: number | undefined;
|
|
123
|
-
featureId?: string | undefined;
|
|
124
123
|
entityId?: string | undefined;
|
|
124
|
+
featureId?: string | undefined;
|
|
125
125
|
entityData?: any;
|
|
126
126
|
eventName?: string | undefined;
|
|
127
127
|
idempotencyKey?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-DUC0TrK5.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, authClient, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-DUC0TrK5.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, authClient, }: {
|
|
@@ -1387,7 +1387,6 @@ var useCustomerBase = ({
|
|
|
1387
1387
|
AutumnContext: AutumnContext2,
|
|
1388
1388
|
client
|
|
1389
1389
|
}) => {
|
|
1390
|
-
const queryKey = ["customer", params?.expand];
|
|
1391
1390
|
let context;
|
|
1392
1391
|
let authClientExists = !!params?.authClient;
|
|
1393
1392
|
if (AutumnContext2) {
|
|
@@ -1402,6 +1401,8 @@ var useCustomerBase = ({
|
|
|
1402
1401
|
} else if (!client) {
|
|
1403
1402
|
client = context.client;
|
|
1404
1403
|
}
|
|
1404
|
+
let baseUrl = params?.authClient ? "" : client?.backendUrl || "";
|
|
1405
|
+
const queryKey = ["customer", baseUrl, params?.expand];
|
|
1405
1406
|
const fetchCustomer = async () => {
|
|
1406
1407
|
const { data, error: error2 } = await client.createCustomer({
|
|
1407
1408
|
errorOnNotFound: params?.errorOnNotFound,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ReactAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-TD6CFKDQ.mjs";
|
|
6
|
+
import "./chunk-UHUADKEF.mjs";
|
|
7
|
+
import "./chunk-CRIKYVUD.mjs";
|
|
8
8
|
import "./chunk-4QPHNIQ7.mjs";
|
|
9
9
|
import "./chunk-3JJC2VU5.mjs";
|
|
10
10
|
import "./chunk-3WP2MI55.mjs";
|
|
@@ -25,7 +25,6 @@ var useCustomerBase = ({
|
|
|
25
25
|
AutumnContext,
|
|
26
26
|
client
|
|
27
27
|
}) => {
|
|
28
|
-
const queryKey = ["customer", params?.expand];
|
|
29
28
|
let context;
|
|
30
29
|
let authClientExists = !!params?.authClient;
|
|
31
30
|
if (AutumnContext) {
|
|
@@ -40,6 +39,8 @@ var useCustomerBase = ({
|
|
|
40
39
|
} else if (!client) {
|
|
41
40
|
client = context.client;
|
|
42
41
|
}
|
|
42
|
+
let baseUrl = params?.authClient ? "" : client?.backendUrl || "";
|
|
43
|
+
const queryKey = ["customer", baseUrl, params?.expand];
|
|
43
44
|
const fetchCustomer = async () => {
|
|
44
45
|
const { data, error: error2 } = await client.createCustomer({
|
|
45
46
|
errorOnNotFound: params?.errorOnNotFound,
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
Switch
|
|
5
|
+
} from "./chunk-CMO5LYYU.mjs";
|
|
6
6
|
import {
|
|
7
7
|
getAttachContent
|
|
8
8
|
} from "./chunk-BCMBFJ7E.mjs";
|
|
9
|
+
import {
|
|
10
|
+
getPricingTableContent
|
|
11
|
+
} from "./chunk-QBBE72EF.mjs";
|
|
9
12
|
import {
|
|
10
13
|
Button
|
|
11
14
|
} from "./chunk-P2O4LZFD.mjs";
|
|
@@ -18,22 +21,19 @@ import {
|
|
|
18
21
|
DialogTitle,
|
|
19
22
|
LoaderCircle
|
|
20
23
|
} from "./chunk-5FZ7IV6P.mjs";
|
|
21
|
-
import {
|
|
22
|
-
Switch
|
|
23
|
-
} from "./chunk-CMO5LYYU.mjs";
|
|
24
|
-
import {
|
|
25
|
-
loadingStyles,
|
|
26
|
-
spinnerStyles
|
|
27
|
-
} from "./chunk-WVKYZYFT.mjs";
|
|
28
|
-
import {
|
|
29
|
-
useCustomer
|
|
30
|
-
} from "./chunk-4AYEAAQU.mjs";
|
|
31
24
|
import {
|
|
32
25
|
usePricingTable
|
|
33
26
|
} from "./chunk-GK75OJJJ.mjs";
|
|
27
|
+
import {
|
|
28
|
+
useCustomer
|
|
29
|
+
} from "./chunk-QTEFT7SA.mjs";
|
|
34
30
|
import {
|
|
35
31
|
cn
|
|
36
32
|
} from "./chunk-4J6OC4ZQ.mjs";
|
|
33
|
+
import {
|
|
34
|
+
loadingStyles,
|
|
35
|
+
spinnerStyles
|
|
36
|
+
} from "./chunk-WVKYZYFT.mjs";
|
|
37
37
|
|
|
38
38
|
// src/libraries/react/components/pricing-table/pricing-table-synced.tsx
|
|
39
39
|
import React2 from "react";
|
|
@@ -2,8 +2,8 @@ import './types/clientEntTypes.mjs';
|
|
|
2
2
|
import './types/clientGenTypes.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../error-DHbclCVh.mjs';
|
|
5
|
-
import '../response-
|
|
6
|
-
import '../cusTypes-
|
|
7
|
-
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-
|
|
8
|
-
import '../entTypes-
|
|
5
|
+
import '../response-CMrRLv9c.mjs';
|
|
6
|
+
import '../cusTypes-DUC0TrK5.mjs';
|
|
7
|
+
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
8
|
+
import '../entTypes-Mq0F4CAa.mjs';
|
|
9
9
|
import 'zod';
|
|
@@ -2,8 +2,8 @@ import './types/clientEntTypes.js';
|
|
|
2
2
|
import './types/clientGenTypes.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../error-DHbclCVh.js';
|
|
5
|
-
import '../response-
|
|
6
|
-
import '../cusTypes-
|
|
7
|
-
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-
|
|
8
|
-
import '../entTypes-
|
|
5
|
+
import '../response-B8Tq3x66.js';
|
|
6
|
+
import '../cusTypes-DUC0TrK5.js';
|
|
7
|
+
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-GEzKNujl.js';
|
|
8
|
+
import '../entTypes-Ddl0CGp9.js';
|
|
9
9
|
import 'zod';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AutumnClient, P as PricingTableProduct } from '../ReactAutumnClient-
|
|
2
|
-
import { A as AutumnPromise } from '../response-
|
|
1
|
+
import { A as AutumnClient, P as PricingTableProduct } from '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
2
|
+
import { A as AutumnPromise } from '../response-CMrRLv9c.mjs';
|
|
3
3
|
import './types/clientEntTypes.mjs';
|
|
4
4
|
import './types/clientGenTypes.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.mjs';
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
import '../entTypes-
|
|
8
|
+
import '../cusTypes-DUC0TrK5.mjs';
|
|
9
|
+
import '../entTypes-Mq0F4CAa.mjs';
|
|
10
10
|
|
|
11
11
|
declare function getPricingTableMethod(this: AutumnClient): AutumnPromise<{
|
|
12
12
|
list: PricingTableProduct[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AutumnClient, P as PricingTableProduct } from '../ReactAutumnClient-
|
|
2
|
-
import { A as AutumnPromise } from '../response-
|
|
1
|
+
import { A as AutumnClient, P as PricingTableProduct } from '../ReactAutumnClient-GEzKNujl.js';
|
|
2
|
+
import { A as AutumnPromise } from '../response-B8Tq3x66.js';
|
|
3
3
|
import './types/clientEntTypes.js';
|
|
4
4
|
import './types/clientGenTypes.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.js';
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
import '../entTypes-
|
|
8
|
+
import '../cusTypes-DUC0TrK5.js';
|
|
9
|
+
import '../entTypes-Ddl0CGp9.js';
|
|
10
10
|
|
|
11
11
|
declare function getPricingTableMethod(this: AutumnClient): AutumnPromise<{
|
|
12
12
|
list: PricingTableProduct[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AutumnClient, O as OmitCustomerType } from '../ReactAutumnClient-
|
|
2
|
-
import { a as CreateCustomerParams, b as Customer } from '../cusTypes-
|
|
3
|
-
import { A as AutumnPromise } from '../response-
|
|
1
|
+
import { A as AutumnClient, O as OmitCustomerType } from '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
2
|
+
import { a as CreateCustomerParams, b as Customer } from '../cusTypes-DUC0TrK5.mjs';
|
|
3
|
+
import { A as AutumnPromise } from '../response-CMrRLv9c.mjs';
|
|
4
4
|
import './types/clientEntTypes.mjs';
|
|
5
5
|
import './types/clientGenTypes.mjs';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../error-DHbclCVh.mjs';
|
|
9
|
-
import '../entTypes-
|
|
9
|
+
import '../entTypes-Mq0F4CAa.mjs';
|
|
10
10
|
|
|
11
11
|
declare const createCustomerMethod: ({ client, params, }: {
|
|
12
12
|
client: AutumnClient;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AutumnClient, O as OmitCustomerType } from '../ReactAutumnClient-
|
|
2
|
-
import { a as CreateCustomerParams, b as Customer } from '../cusTypes-
|
|
3
|
-
import { A as AutumnPromise } from '../response-
|
|
1
|
+
import { A as AutumnClient, O as OmitCustomerType } from '../ReactAutumnClient-GEzKNujl.js';
|
|
2
|
+
import { a as CreateCustomerParams, b as Customer } from '../cusTypes-DUC0TrK5.js';
|
|
3
|
+
import { A as AutumnPromise } from '../response-B8Tq3x66.js';
|
|
4
4
|
import './types/clientEntTypes.js';
|
|
5
5
|
import './types/clientGenTypes.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../error-DHbclCVh.js';
|
|
9
|
-
import '../entTypes-
|
|
9
|
+
import '../entTypes-Ddl0CGp9.js';
|
|
10
10
|
|
|
11
11
|
declare const createCustomerMethod: ({ client, params, }: {
|
|
12
12
|
client: AutumnClient;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as Entity, D as DeleteEntityResult } from '../entTypes-
|
|
2
|
-
import { A as AutumnPromise } from '../response-
|
|
3
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { E as Entity, D as DeleteEntityResult } from '../entTypes-Mq0F4CAa.mjs';
|
|
2
|
+
import { A as AutumnPromise } from '../response-CMrRLv9c.mjs';
|
|
3
|
+
import { A as AutumnClient } from '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
4
4
|
import { CreateEntityParams, GetEntityParams } from './types/clientEntTypes.mjs';
|
|
5
|
-
import '../cusTypes-
|
|
5
|
+
import '../cusTypes-DUC0TrK5.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.mjs';
|
|
8
8
|
import './types/clientGenTypes.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as Entity, D as DeleteEntityResult } from '../entTypes-
|
|
2
|
-
import { A as AutumnPromise } from '../response-
|
|
3
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { E as Entity, D as DeleteEntityResult } from '../entTypes-Ddl0CGp9.js';
|
|
2
|
+
import { A as AutumnPromise } from '../response-B8Tq3x66.js';
|
|
3
|
+
import { A as AutumnClient } from '../ReactAutumnClient-GEzKNujl.js';
|
|
4
4
|
import { CreateEntityParams, GetEntityParams } from './types/clientEntTypes.js';
|
|
5
|
-
import '../cusTypes-
|
|
5
|
+
import '../cusTypes-DUC0TrK5.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.js';
|
|
8
8
|
import './types/clientGenTypes.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { A as AutumnClient } from '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
2
2
|
import { AttachParams, SetupPaymentParams, CancelParams, CheckParams, TrackParams, OpenBillingPortalParams } from './types/clientGenTypes.mjs';
|
|
3
|
-
import { A as AutumnPromise, a as AttachResult, S as SetupPaymentResult, C as CancelResult, b as CheckResult, T as TrackResult } from '../response-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
+
import { A as AutumnPromise, a as AttachResult, S as SetupPaymentResult, C as CancelResult, b as CheckResult, T as TrackResult } from '../response-CMrRLv9c.mjs';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-DUC0TrK5.mjs';
|
|
5
5
|
import './types/clientEntTypes.mjs';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../error-DHbclCVh.mjs';
|
|
8
|
-
import '../entTypes-
|
|
8
|
+
import '../entTypes-Mq0F4CAa.mjs';
|
|
9
9
|
import 'zod';
|
|
10
10
|
|
|
11
11
|
declare function attachMethod(this: AutumnClient, params: AttachParams): AutumnPromise<AttachResult>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { A as AutumnClient } from '../ReactAutumnClient-GEzKNujl.js';
|
|
2
2
|
import { AttachParams, SetupPaymentParams, CancelParams, CheckParams, TrackParams, OpenBillingPortalParams } from './types/clientGenTypes.js';
|
|
3
|
-
import { A as AutumnPromise, a as AttachResult, S as SetupPaymentResult, C as CancelResult, b as CheckResult, T as TrackResult } from '../response-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
+
import { A as AutumnPromise, a as AttachResult, S as SetupPaymentResult, C as CancelResult, b as CheckResult, T as TrackResult } from '../response-B8Tq3x66.js';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-DUC0TrK5.js';
|
|
5
5
|
import './types/clientEntTypes.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../error-DHbclCVh.js';
|
|
8
|
-
import '../entTypes-
|
|
8
|
+
import '../entTypes-Ddl0CGp9.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
|
|
11
11
|
declare function attachMethod(this: AutumnClient, params: AttachParams): AutumnPromise<AttachResult>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
2
|
-
import { P as Product } from '../cusTypes-
|
|
3
|
-
import { A as AutumnPromise } from '../response-
|
|
1
|
+
import { A as AutumnClient } from '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
2
|
+
import { P as Product } from '../cusTypes-DUC0TrK5.mjs';
|
|
3
|
+
import { A as AutumnPromise } from '../response-CMrRLv9c.mjs';
|
|
4
4
|
import './types/clientEntTypes.mjs';
|
|
5
5
|
import './types/clientGenTypes.mjs';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../error-DHbclCVh.mjs';
|
|
9
|
-
import '../entTypes-
|
|
9
|
+
import '../entTypes-Mq0F4CAa.mjs';
|
|
10
10
|
|
|
11
11
|
declare function listProductsMethod(this: AutumnClient): AutumnPromise<{
|
|
12
12
|
list: Product[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
2
|
-
import { P as Product } from '../cusTypes-
|
|
3
|
-
import { A as AutumnPromise } from '../response-
|
|
1
|
+
import { A as AutumnClient } from '../ReactAutumnClient-GEzKNujl.js';
|
|
2
|
+
import { P as Product } from '../cusTypes-DUC0TrK5.js';
|
|
3
|
+
import { A as AutumnPromise } from '../response-B8Tq3x66.js';
|
|
4
4
|
import './types/clientEntTypes.js';
|
|
5
5
|
import './types/clientGenTypes.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../error-DHbclCVh.js';
|
|
9
|
-
import '../entTypes-
|
|
9
|
+
import '../entTypes-Ddl0CGp9.js';
|
|
10
10
|
|
|
11
11
|
declare function listProductsMethod(this: AutumnClient): AutumnPromise<{
|
|
12
12
|
list: Product[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AutumnPromise } from '../response-
|
|
2
|
-
import { A as AutumnClient, C as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../ReactAutumnClient-
|
|
1
|
+
import { A as AutumnPromise } from '../response-CMrRLv9c.mjs';
|
|
2
|
+
import { A as AutumnClient, C as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
3
3
|
import { CreateReferralCodeParams, RedeemReferralCodeParams } from './types/clientReferralTypes.mjs';
|
|
4
|
-
import '../cusTypes-
|
|
4
|
+
import '../cusTypes-DUC0TrK5.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../error-DHbclCVh.mjs';
|
|
7
7
|
import './types/clientEntTypes.mjs';
|
|
8
8
|
import './types/clientGenTypes.mjs';
|
|
9
9
|
import 'react';
|
|
10
|
-
import '../entTypes-
|
|
10
|
+
import '../entTypes-Mq0F4CAa.mjs';
|
|
11
11
|
|
|
12
12
|
declare function createCode(this: AutumnClient, params: CreateReferralCodeParams): AutumnPromise<CreateReferralCodeResult>;
|
|
13
13
|
declare function redeemCode(this: AutumnClient, params: RedeemReferralCodeParams): AutumnPromise<RedeemReferralCodeResult>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AutumnPromise } from '../response-
|
|
2
|
-
import { A as AutumnClient, C as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../ReactAutumnClient-
|
|
1
|
+
import { A as AutumnPromise } from '../response-B8Tq3x66.js';
|
|
2
|
+
import { A as AutumnClient, C as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../ReactAutumnClient-GEzKNujl.js';
|
|
3
3
|
import { CreateReferralCodeParams, RedeemReferralCodeParams } from './types/clientReferralTypes.js';
|
|
4
|
-
import '../cusTypes-
|
|
4
|
+
import '../cusTypes-DUC0TrK5.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../error-DHbclCVh.js';
|
|
7
7
|
import './types/clientEntTypes.js';
|
|
8
8
|
import './types/clientGenTypes.js';
|
|
9
9
|
import 'react';
|
|
10
|
-
import '../entTypes-
|
|
10
|
+
import '../entTypes-Ddl0CGp9.js';
|
|
11
11
|
|
|
12
12
|
declare function createCode(this: AutumnClient, params: CreateReferralCodeParams): AutumnPromise<CreateReferralCodeResult>;
|
|
13
13
|
declare function redeemCode(this: AutumnClient, params: RedeemReferralCodeParams): AutumnPromise<RedeemReferralCodeResult>;
|