autumn-js 0.1.7 → 0.1.9
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/backend/better-auth.d.mts +37 -33
- package/dist/libraries/backend/better-auth.d.ts +37 -33
- package/dist/libraries/backend/better-auth.js +10 -2
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-33ET4N4V.mjs → chunk-274BIVOC.mjs} +1 -1
- package/dist/libraries/backend/{chunk-3OVRYTZX.mjs → chunk-7WWKVE4J.mjs} +6 -6
- package/dist/libraries/backend/{chunk-GO7TVFSN.mjs → chunk-EJBD5GH7.mjs} +1 -1
- package/dist/libraries/backend/{chunk-TFYLV3GN.mjs → chunk-I43OU64D.mjs} +1 -1
- package/dist/libraries/backend/{chunk-VBHBF3GP.mjs → chunk-JN4ULI5R.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AREWK25J.mjs → chunk-KY3RLTE7.mjs} +10 -2
- package/dist/libraries/backend/{chunk-LL53FE2Z.mjs → chunk-YN334O74.mjs} +1 -1
- package/dist/libraries/backend/convex.js +10 -2
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +10 -2
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +10 -2
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +10 -2
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +10 -2
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/index.js +10 -2
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +10 -2
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +10 -2
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-B50JL4PY.d.mts → referralTypes-BEcapeWf.d.mts} +60 -43
- package/dist/libraries/backend/{referralTypes-dW2HaxKV.d.ts → referralTypes-DuAlUwev.d.ts} +60 -43
- package/dist/libraries/backend/remix_dep.js +10 -2
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +10 -2
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +10 -2
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +10 -2
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +10 -2
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +10 -2
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +10 -2
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +10 -2
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +10 -2
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/backend/utils/withAuth.js +10 -2
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.js +10 -2
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +15 -3
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-BUq9E84_.d.ts → ReactAutumnClient-DCMQEadM.d.ts} +10 -3
- package/dist/libraries/react/{ReactAutumnClient-CpAGyyur.d.mts → ReactAutumnClient-Dm14G99_.d.mts} +10 -3
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +15 -3
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/{attachTypes-CcB6xjSF.d.ts → attachTypes-QTf_JXj7.d.ts} +33 -0
- package/dist/libraries/react/{attachTypes-DqUN3q8s.d.mts → attachTypes-Sv_paJZ2.d.mts} +33 -0
- package/dist/libraries/react/{chunk-HMZZIUCF.mjs → chunk-3YIV3N5Y.mjs} +1 -1
- package/dist/libraries/react/{chunk-KYZ3DYMI.mjs → chunk-4UPD6W4L.mjs} +16 -15
- package/dist/libraries/react/{chunk-56PEGK2Z.mjs → chunk-7LOW3KZ3.mjs} +2 -2
- package/dist/libraries/react/{chunk-QQKJE2ND.mjs → chunk-CPN2LD2I.mjs} +2 -2
- package/dist/libraries/react/{chunk-ECOBNPRU.mjs → chunk-DRUVAAUW.mjs} +3 -3
- package/dist/libraries/react/{chunk-JFTZRU2U.mjs → chunk-E2BEY4ZP.mjs} +1 -1
- package/dist/libraries/react/{chunk-SFGXTDMX.mjs → chunk-IRTAGYDD.mjs} +2 -2
- package/dist/libraries/react/{chunk-WQXUZO6K.mjs → chunk-JIWMNR2E.mjs} +10 -2
- package/dist/libraries/react/{chunk-FMRBH4CP.mjs → chunk-JJVQIA5V.mjs} +1 -1
- package/dist/libraries/react/{chunk-HIC6P67K.mjs → chunk-KG2NPWAE.mjs} +7 -7
- package/dist/libraries/react/{chunk-JNR7QAPG.mjs → chunk-MKP43WD6.mjs} +1 -1
- package/dist/libraries/react/{chunk-SZJOMZTC.mjs → chunk-QZPMYB2V.mjs} +2 -2
- package/dist/libraries/react/{chunk-GWVZB5GK.mjs → chunk-TBRYCVBL.mjs} +3 -3
- package/dist/libraries/react/{chunk-ULIUD6YP.mjs → chunk-UQ5HI732.mjs} +3 -3
- package/dist/libraries/react/{chunk-ZJBEC254.mjs → chunk-URFTKUL2.mjs} +6 -2
- package/dist/libraries/react/{chunk-MW2FSYG3.mjs → chunk-XTONWQ65.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/ReactAutumnClient.js +10 -2
- package/dist/libraries/react/client/ReactAutumnClient.mjs +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.js +10 -2
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +18 -5
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +21 -21
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +1 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +10 -2
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +21 -21
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +18 -5
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +21 -21
- 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-CoF9enrR.d.ts → entTypes-0CBBecul.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-S4hkh1RG.d.mts → entTypes-kVUQcah5.d.mts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.js +10 -2
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +11 -4
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +11 -4
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +15 -3
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.js +10 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +6 -6
- 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 +15 -3
- package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
- 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 +15 -3
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- package/dist/libraries/react/hooks/useEntity.d.mts +9 -2
- package/dist/libraries/react/hooks/useEntity.d.ts +9 -2
- package/dist/libraries/react/hooks/useEntity.js +15 -3
- package/dist/libraries/react/hooks/useEntity.mjs +10 -10
- package/dist/libraries/react/hooks/useEntityBase.d.mts +11 -4
- package/dist/libraries/react/hooks/useEntityBase.d.ts +11 -4
- package/dist/libraries/react/hooks/useEntityBase.js +15 -3
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- package/dist/libraries/react/hooks/usePaywall.js +10 -2
- package/dist/libraries/react/hooks/usePaywall.mjs +6 -6
- package/dist/libraries/react/hooks/usePricingTable.js +10 -2
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.js +10 -2
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useProductsBase.d.ts +4 -4
- package/dist/libraries/react/index.d.mts +40 -0
- package/dist/libraries/react/index.d.ts +40 -0
- package/dist/libraries/react/index.js +18 -5
- package/dist/libraries/react/index.mjs +18 -5
- package/dist/next/client/NextAutumnClient.d.mts +25 -18
- package/dist/next/client/NextAutumnClient.d.ts +25 -18
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{attachTypes-EvdK0fPK.d.mts → attachTypes-CReq8zJ_.d.ts} +38 -5
- package/dist/next/client/{attachTypes-DKlQexnQ.d.ts → attachTypes-DUUIHTBt.d.mts} +38 -5
- package/dist/next/client/{clientAttachTypes-CZFjz8Rq.d.mts → clientAttachTypes-BzsPgggN.d.mts} +27 -27
- package/dist/next/client/{clientAttachTypes-CGPjsdPk.d.ts → clientAttachTypes-umadXlvp.d.ts} +27 -27
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-y5wEmx07.d.mts → cusTypes-CIGvysWL.d.mts} +5 -5
- package/dist/next/client/{cusTypes-DEURYNg4.d.ts → cusTypes-CYojUJSJ.d.ts} +5 -5
- package/dist/next/client/{entTypes-CRFgWhOr.d.ts → entTypes-BAD1NMvb.d.ts} +1 -1
- package/dist/next/client/{entTypes-KRxjcMFv.d.mts → entTypes-mOI7WnPZ.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +12 -5
- package/dist/next/client/hooks/useAutumn.d.ts +12 -5
- package/dist/next/client/hooks/useCustomer.d.mts +5 -5
- package/dist/next/client/hooks/useCustomer.d.ts +5 -5
- package/dist/next/client/hooks/useEntity.d.mts +14 -7
- package/dist/next/client/hooks/useEntity.d.ts +14 -7
- 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 +3 -3
- package/dist/next/client/types.d.ts +3 -3
- package/dist/next/server/cusActions.d.mts +17 -0
- package/dist/next/server/cusActions.d.ts +17 -0
- package/dist/sdk/index.d.mts +50 -0
- package/dist/sdk/index.d.ts +50 -0
- package/dist/sdk/index.js +10 -2
- package/dist/sdk/index.mjs +10 -2
- package/dist/utils/encryptUtils.js +10 -2
- package/dist/utils/encryptUtils.mjs +10 -2
- package/package.json +1 -1
- package/dist/libraries/react/{cusTypes-DHjT-9rV.d.ts → cusTypes-BeSXIQ6P.d.ts} +2 -2
- package/dist/libraries/react/{cusTypes-CSmAk5io.d.mts → cusTypes-DbCQV8Sj.d.mts} +2 -2
- package/dist/next/client/{prodTypes-DzTLP57C.d.mts → prodTypes-CxvB1YY3.d.mts} +8 -8
- package/dist/next/client/{prodTypes-DzTLP57C.d.ts → prodTypes-CxvB1YY3.d.ts} +8 -8
|
@@ -765,7 +765,8 @@ var AttachParamsSchema = import_zod7.z.object({
|
|
|
765
765
|
customer_data: CustomerDataSchema.optional(),
|
|
766
766
|
entity_data: import_zod7.z.any().optional(),
|
|
767
767
|
checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
|
|
768
|
-
reward: import_zod7.z.string().optional()
|
|
768
|
+
reward: import_zod7.z.string().optional(),
|
|
769
|
+
invoice: import_zod7.z.boolean().optional()
|
|
769
770
|
});
|
|
770
771
|
var AttachResultSchema = import_zod7.z.object({
|
|
771
772
|
checkout_url: import_zod7.z.string().optional(),
|
|
@@ -773,7 +774,14 @@ var AttachResultSchema = import_zod7.z.object({
|
|
|
773
774
|
product_ids: import_zod7.z.array(import_zod7.z.string()),
|
|
774
775
|
code: import_zod7.z.string(),
|
|
775
776
|
message: import_zod7.z.string(),
|
|
776
|
-
customer_data: import_zod7.z.any().optional()
|
|
777
|
+
customer_data: import_zod7.z.any().optional(),
|
|
778
|
+
invoice: import_zod7.z.object({
|
|
779
|
+
status: import_zod7.z.string(),
|
|
780
|
+
stripe_id: import_zod7.z.string(),
|
|
781
|
+
hosted_invoice_url: import_zod7.z.string().nullable(),
|
|
782
|
+
total: import_zod7.z.number(),
|
|
783
|
+
currency: import_zod7.z.string()
|
|
784
|
+
}).optional()
|
|
777
785
|
});
|
|
778
786
|
var CheckoutParamsSchema = import_zod7.z.object({
|
|
779
787
|
customer_id: import_zod7.z.string(),
|
|
@@ -1371,7 +1379,11 @@ var useAutumnBase = ({
|
|
|
1371
1379
|
if (error) {
|
|
1372
1380
|
return { data, error };
|
|
1373
1381
|
}
|
|
1374
|
-
|
|
1382
|
+
const hasPrepaid = data.product.items.some(
|
|
1383
|
+
(item) => item.usage_model === "prepaid"
|
|
1384
|
+
);
|
|
1385
|
+
const showDialog = hasPrepaid && params.dialog;
|
|
1386
|
+
if (data.url && !showDialog) {
|
|
1375
1387
|
if (params.openInNewTab) {
|
|
1376
1388
|
window.open(data.url, "_blank");
|
|
1377
1389
|
} else {
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ReactAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DRUVAAUW.mjs";
|
|
6
|
+
import "./chunk-3YIV3N5Y.mjs";
|
|
7
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-CIBQ4BJU.mjs";
|
|
16
|
-
import "./chunk-WQXUZO6K.mjs";
|
|
8
|
+
import "./chunk-TBRYCVBL.mjs";
|
|
9
|
+
import "./chunk-XTONWQ65.mjs";
|
|
10
|
+
import "./chunk-URFTKUL2.mjs";
|
|
11
|
+
import "./chunk-MKP43WD6.mjs";
|
|
12
|
+
import "./chunk-E2BEY4ZP.mjs";
|
|
13
|
+
import "./chunk-KG2NPWAE.mjs";
|
|
14
|
+
import "./chunk-JIWMNR2E.mjs";
|
|
17
15
|
import "./chunk-V575SGOW.mjs";
|
|
18
16
|
import "./chunk-ZV4RPZTM.mjs";
|
|
17
|
+
import "./chunk-JVCOY7ZL.mjs";
|
|
18
|
+
import "./chunk-CIBQ4BJU.mjs";
|
|
19
19
|
import "./chunk-VTGR7VVK.mjs";
|
|
20
20
|
import "./chunk-WFFVOEUG.mjs";
|
|
21
21
|
import "./chunk-ZF2HUCN6.mjs";
|
|
@@ -19,12 +19,38 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
19
19
|
code: z.ZodString;
|
|
20
20
|
message: z.ZodString;
|
|
21
21
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
22
|
+
invoice: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
status: z.ZodString;
|
|
24
|
+
stripe_id: z.ZodString;
|
|
25
|
+
hosted_invoice_url: z.ZodNullable<z.ZodString>;
|
|
26
|
+
total: z.ZodNumber;
|
|
27
|
+
currency: z.ZodString;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
status: string;
|
|
30
|
+
stripe_id: string;
|
|
31
|
+
hosted_invoice_url: string | null;
|
|
32
|
+
total: number;
|
|
33
|
+
currency: string;
|
|
34
|
+
}, {
|
|
35
|
+
status: string;
|
|
36
|
+
stripe_id: string;
|
|
37
|
+
hosted_invoice_url: string | null;
|
|
38
|
+
total: number;
|
|
39
|
+
currency: string;
|
|
40
|
+
}>>;
|
|
22
41
|
}, "strip", z.ZodTypeAny, {
|
|
23
42
|
customer_id: string;
|
|
24
43
|
code: string;
|
|
25
44
|
message: string;
|
|
26
45
|
product_ids: string[];
|
|
27
46
|
customer_data?: any;
|
|
47
|
+
invoice?: {
|
|
48
|
+
status: string;
|
|
49
|
+
stripe_id: string;
|
|
50
|
+
hosted_invoice_url: string | null;
|
|
51
|
+
total: number;
|
|
52
|
+
currency: string;
|
|
53
|
+
} | undefined;
|
|
28
54
|
checkout_url?: string | undefined;
|
|
29
55
|
}, {
|
|
30
56
|
customer_id: string;
|
|
@@ -32,6 +58,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
32
58
|
message: string;
|
|
33
59
|
product_ids: string[];
|
|
34
60
|
customer_data?: any;
|
|
61
|
+
invoice?: {
|
|
62
|
+
status: string;
|
|
63
|
+
stripe_id: string;
|
|
64
|
+
hosted_invoice_url: string | null;
|
|
65
|
+
total: number;
|
|
66
|
+
currency: string;
|
|
67
|
+
} | undefined;
|
|
35
68
|
checkout_url?: string | undefined;
|
|
36
69
|
}>;
|
|
37
70
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
@@ -19,12 +19,38 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
19
19
|
code: z.ZodString;
|
|
20
20
|
message: z.ZodString;
|
|
21
21
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
22
|
+
invoice: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
status: z.ZodString;
|
|
24
|
+
stripe_id: z.ZodString;
|
|
25
|
+
hosted_invoice_url: z.ZodNullable<z.ZodString>;
|
|
26
|
+
total: z.ZodNumber;
|
|
27
|
+
currency: z.ZodString;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
status: string;
|
|
30
|
+
stripe_id: string;
|
|
31
|
+
hosted_invoice_url: string | null;
|
|
32
|
+
total: number;
|
|
33
|
+
currency: string;
|
|
34
|
+
}, {
|
|
35
|
+
status: string;
|
|
36
|
+
stripe_id: string;
|
|
37
|
+
hosted_invoice_url: string | null;
|
|
38
|
+
total: number;
|
|
39
|
+
currency: string;
|
|
40
|
+
}>>;
|
|
22
41
|
}, "strip", z.ZodTypeAny, {
|
|
23
42
|
customer_id: string;
|
|
24
43
|
code: string;
|
|
25
44
|
message: string;
|
|
26
45
|
product_ids: string[];
|
|
27
46
|
customer_data?: any;
|
|
47
|
+
invoice?: {
|
|
48
|
+
status: string;
|
|
49
|
+
stripe_id: string;
|
|
50
|
+
hosted_invoice_url: string | null;
|
|
51
|
+
total: number;
|
|
52
|
+
currency: string;
|
|
53
|
+
} | undefined;
|
|
28
54
|
checkout_url?: string | undefined;
|
|
29
55
|
}, {
|
|
30
56
|
customer_id: string;
|
|
@@ -32,6 +58,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
32
58
|
message: string;
|
|
33
59
|
product_ids: string[];
|
|
34
60
|
customer_data?: any;
|
|
61
|
+
invoice?: {
|
|
62
|
+
status: string;
|
|
63
|
+
stripe_id: string;
|
|
64
|
+
hosted_invoice_url: string | null;
|
|
65
|
+
total: number;
|
|
66
|
+
currency: string;
|
|
67
|
+
} | undefined;
|
|
35
68
|
checkout_url?: string | undefined;
|
|
36
69
|
}>;
|
|
37
70
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
getPaywallContent
|
|
5
|
+
} from "./chunk-I5ZGIAIX.mjs";
|
|
3
6
|
import {
|
|
4
7
|
getCheckoutContent
|
|
5
8
|
} from "./chunk-BLM4DAAR.mjs";
|
|
6
9
|
import {
|
|
7
10
|
getPricingTableContent
|
|
8
11
|
} from "./chunk-URQMBRFZ.mjs";
|
|
9
|
-
import {
|
|
10
|
-
getPaywallContent
|
|
11
|
-
} from "./chunk-I5ZGIAIX.mjs";
|
|
12
|
-
import {
|
|
13
|
-
Input
|
|
14
|
-
} from "./chunk-GUM4HIGI.mjs";
|
|
15
12
|
import {
|
|
16
13
|
Popover,
|
|
17
14
|
PopoverContent,
|
|
@@ -20,6 +17,10 @@ import {
|
|
|
20
17
|
import {
|
|
21
18
|
Switch
|
|
22
19
|
} from "./chunk-YWQTQ72B.mjs";
|
|
20
|
+
import {
|
|
21
|
+
loadingStyles,
|
|
22
|
+
spinnerStyles
|
|
23
|
+
} from "./chunk-WVKYZYFT.mjs";
|
|
23
24
|
import {
|
|
24
25
|
Accordion,
|
|
25
26
|
AccordionContent,
|
|
@@ -42,21 +43,20 @@ import {
|
|
|
42
43
|
LoaderCircle
|
|
43
44
|
} from "./chunk-QJPZFEVW.mjs";
|
|
44
45
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
Input
|
|
47
|
+
} from "./chunk-GUM4HIGI.mjs";
|
|
47
48
|
import {
|
|
48
49
|
usePaywall
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-JJVQIA5V.mjs";
|
|
50
51
|
import {
|
|
51
52
|
usePricingTable
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-QZPMYB2V.mjs";
|
|
53
54
|
import {
|
|
54
55
|
cn
|
|
55
56
|
} from "./chunk-4J6OC4ZQ.mjs";
|
|
56
57
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} from "./chunk-WVKYZYFT.mjs";
|
|
58
|
+
useCustomer
|
|
59
|
+
} from "./chunk-CPN2LD2I.mjs";
|
|
60
60
|
|
|
61
61
|
// src/libraries/react/components/checkout-dialog/checkout-dialog-synced.tsx
|
|
62
62
|
import { useEffect, useState } from "react";
|
|
@@ -86,7 +86,7 @@ function CheckoutDialog(params) {
|
|
|
86
86
|
const { title, message } = getCheckoutContent(checkoutResult);
|
|
87
87
|
const isFree = checkoutResult?.product.properties?.is_free;
|
|
88
88
|
const isPaid = isFree === false;
|
|
89
|
-
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-
|
|
89
|
+
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-text-sm", children: [
|
|
90
90
|
/* @__PURE__ */ jsx(DialogTitle, { className: "au-px-6 au-mb-1", children: title }),
|
|
91
91
|
/* @__PURE__ */ jsx("div", { className: "au-px-6 au-mt-1 au-mb-4 au-text-muted-foreground", children: message }),
|
|
92
92
|
isPaid && checkoutResult && /* @__PURE__ */ jsx(
|
|
@@ -274,7 +274,8 @@ var PrepaidItem = ({
|
|
|
274
274
|
});
|
|
275
275
|
const { data, error } = await checkout({
|
|
276
276
|
productId: checkoutResult.product.id,
|
|
277
|
-
options: newOptions
|
|
277
|
+
options: newOptions,
|
|
278
|
+
dialog: CheckoutDialog
|
|
278
279
|
});
|
|
279
280
|
if (error) {
|
|
280
281
|
console.error(error);
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import {
|
|
4
4
|
AutumnContext,
|
|
5
5
|
useAutumnContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E2BEY4ZP.mjs";
|
|
7
7
|
import {
|
|
8
8
|
AutumnError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JIWMNR2E.mjs";
|
|
10
10
|
|
|
11
11
|
// src/libraries/react/hooks/useAnalytics.tsx
|
|
12
12
|
import useSWR from "swr";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useCustomerBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TBRYCVBL.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E2BEY4ZP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/hooks/useCustomer.tsx
|
|
11
11
|
var useCustomer = (params) => {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
BaseAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3YIV3N5Y.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E2BEY4ZP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
AutumnClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KG2NPWAE.mjs";
|
|
12
12
|
|
|
13
13
|
// src/libraries/react/ReactAutumnProvider.tsx
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useEntityBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UQ5HI732.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E2BEY4ZP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/hooks/useEntity.tsx
|
|
11
11
|
var useEntity = (entityId, params) => {
|
|
@@ -691,7 +691,8 @@ var AttachParamsSchema = z7.object({
|
|
|
691
691
|
customer_data: CustomerDataSchema.optional(),
|
|
692
692
|
entity_data: z7.any().optional(),
|
|
693
693
|
checkout_session_params: z7.record(z7.any()).optional(),
|
|
694
|
-
reward: z7.string().optional()
|
|
694
|
+
reward: z7.string().optional(),
|
|
695
|
+
invoice: z7.boolean().optional()
|
|
695
696
|
});
|
|
696
697
|
var AttachResultSchema = z7.object({
|
|
697
698
|
checkout_url: z7.string().optional(),
|
|
@@ -699,7 +700,14 @@ var AttachResultSchema = z7.object({
|
|
|
699
700
|
product_ids: z7.array(z7.string()),
|
|
700
701
|
code: z7.string(),
|
|
701
702
|
message: z7.string(),
|
|
702
|
-
customer_data: z7.any().optional()
|
|
703
|
+
customer_data: z7.any().optional(),
|
|
704
|
+
invoice: z7.object({
|
|
705
|
+
status: z7.string(),
|
|
706
|
+
stripe_id: z7.string(),
|
|
707
|
+
hosted_invoice_url: z7.string().nullable(),
|
|
708
|
+
total: z7.number(),
|
|
709
|
+
currency: z7.string()
|
|
710
|
+
}).optional()
|
|
703
711
|
});
|
|
704
712
|
var CheckoutParamsSchema = z7.object({
|
|
705
713
|
customer_id: z7.string(),
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
logAuthError
|
|
5
|
-
} from "./chunk-JVCOY7ZL.mjs";
|
|
6
|
-
import {
|
|
7
|
-
logFetchError
|
|
8
|
-
} from "./chunk-CIBQ4BJU.mjs";
|
|
9
3
|
import {
|
|
10
4
|
AutumnError,
|
|
11
5
|
toContainerResult
|
|
12
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JIWMNR2E.mjs";
|
|
13
7
|
import {
|
|
14
8
|
listProductsMethod
|
|
15
9
|
} from "./chunk-V575SGOW.mjs";
|
|
@@ -17,6 +11,12 @@ import {
|
|
|
17
11
|
createCode,
|
|
18
12
|
redeemCode
|
|
19
13
|
} from "./chunk-ZV4RPZTM.mjs";
|
|
14
|
+
import {
|
|
15
|
+
logAuthError
|
|
16
|
+
} from "./chunk-JVCOY7ZL.mjs";
|
|
17
|
+
import {
|
|
18
|
+
logFetchError
|
|
19
|
+
} from "./chunk-CIBQ4BJU.mjs";
|
|
20
20
|
import {
|
|
21
21
|
getPricingTableMethod
|
|
22
22
|
} from "./chunk-VTGR7VVK.mjs";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePricingTableBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MKP43WD6.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext,
|
|
8
8
|
useAutumnContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E2BEY4ZP.mjs";
|
|
10
10
|
|
|
11
11
|
// src/libraries/react/hooks/usePricingTable.tsx
|
|
12
12
|
var usePricingTable = (params) => {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
handleCheck,
|
|
5
5
|
openDialog
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XTONWQ65.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useAutumnBase
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-URFTKUL2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useAutumnContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E2BEY4ZP.mjs";
|
|
13
13
|
|
|
14
14
|
// src/libraries/react/hooks/useCustomerBase.tsx
|
|
15
15
|
import useSWR from "swr";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
handleCheck,
|
|
5
5
|
openDialog
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XTONWQ65.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useAutumnBase
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-URFTKUL2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useAutumnContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E2BEY4ZP.mjs";
|
|
13
13
|
|
|
14
14
|
// src/libraries/react/hooks/useEntityBase.tsx
|
|
15
15
|
import useSWR from "swr";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePricingTableBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MKP43WD6.mjs";
|
|
6
6
|
|
|
7
7
|
// src/libraries/react/hooks/helpers/useAutumnBase.tsx
|
|
8
8
|
var useAutumnBase = ({
|
|
@@ -39,7 +39,11 @@ var useAutumnBase = ({
|
|
|
39
39
|
if (error) {
|
|
40
40
|
return { data, error };
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
const hasPrepaid = data.product.items.some(
|
|
43
|
+
(item) => item.usage_model === "prepaid"
|
|
44
|
+
);
|
|
45
|
+
const showDialog = hasPrepaid && params.dialog;
|
|
46
|
+
if (data.url && !showDialog) {
|
|
43
47
|
if (params.openInNewTab) {
|
|
44
48
|
window.open(data.url, "_blank");
|
|
45
49
|
} else {
|
|
@@ -2,9 +2,9 @@ import './types/clientEntTypes.mjs';
|
|
|
2
2
|
import './types/clientGenTypes.mjs';
|
|
3
3
|
import '../error-DHbclCVh.mjs';
|
|
4
4
|
import '../genTypes-fEH_nqSm.mjs';
|
|
5
|
-
import '../attachTypes-
|
|
6
|
-
import '../entTypes-
|
|
5
|
+
import '../attachTypes-Sv_paJZ2.mjs';
|
|
6
|
+
import '../entTypes-kVUQcah5.mjs';
|
|
7
7
|
import '../prodTypes--VvnyGlN.mjs';
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-
|
|
8
|
+
import '../cusTypes-DbCQV8Sj.mjs';
|
|
9
|
+
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-Dm14G99_.mjs';
|
|
10
10
|
import 'zod';
|
|
@@ -2,9 +2,9 @@ import './types/clientEntTypes.js';
|
|
|
2
2
|
import './types/clientGenTypes.js';
|
|
3
3
|
import '../error-DHbclCVh.js';
|
|
4
4
|
import '../genTypes-DsiuvyWS.js';
|
|
5
|
-
import '../attachTypes-
|
|
6
|
-
import '../entTypes-
|
|
5
|
+
import '../attachTypes-QTf_JXj7.js';
|
|
6
|
+
import '../entTypes-0CBBecul.js';
|
|
7
7
|
import '../prodTypes--VvnyGlN.js';
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-
|
|
8
|
+
import '../cusTypes-BeSXIQ6P.js';
|
|
9
|
+
export { A as AutumnClient, a as AutumnClientConfig, E as ErrorResponse, O as OmitCustomerType } from '../ReactAutumnClient-DCMQEadM.js';
|
|
10
10
|
import 'zod';
|
|
@@ -732,7 +732,8 @@ var AttachParamsSchema = import_zod7.z.object({
|
|
|
732
732
|
customer_data: CustomerDataSchema.optional(),
|
|
733
733
|
entity_data: import_zod7.z.any().optional(),
|
|
734
734
|
checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
|
|
735
|
-
reward: import_zod7.z.string().optional()
|
|
735
|
+
reward: import_zod7.z.string().optional(),
|
|
736
|
+
invoice: import_zod7.z.boolean().optional()
|
|
736
737
|
});
|
|
737
738
|
var AttachResultSchema = import_zod7.z.object({
|
|
738
739
|
checkout_url: import_zod7.z.string().optional(),
|
|
@@ -740,7 +741,14 @@ var AttachResultSchema = import_zod7.z.object({
|
|
|
740
741
|
product_ids: import_zod7.z.array(import_zod7.z.string()),
|
|
741
742
|
code: import_zod7.z.string(),
|
|
742
743
|
message: import_zod7.z.string(),
|
|
743
|
-
customer_data: import_zod7.z.any().optional()
|
|
744
|
+
customer_data: import_zod7.z.any().optional(),
|
|
745
|
+
invoice: import_zod7.z.object({
|
|
746
|
+
status: import_zod7.z.string(),
|
|
747
|
+
stripe_id: import_zod7.z.string(),
|
|
748
|
+
hosted_invoice_url: import_zod7.z.string().nullable(),
|
|
749
|
+
total: import_zod7.z.number(),
|
|
750
|
+
currency: import_zod7.z.string()
|
|
751
|
+
}).optional()
|
|
744
752
|
});
|
|
745
753
|
var CheckoutParamsSchema = import_zod7.z.object({
|
|
746
754
|
customer_id: import_zod7.z.string(),
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
AutumnClient
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-CIBQ4BJU.mjs";
|
|
8
|
-
import "../chunk-WQXUZO6K.mjs";
|
|
5
|
+
} from "../chunk-KG2NPWAE.mjs";
|
|
6
|
+
import "../chunk-JIWMNR2E.mjs";
|
|
9
7
|
import "../chunk-V575SGOW.mjs";
|
|
10
8
|
import "../chunk-ZV4RPZTM.mjs";
|
|
9
|
+
import "../chunk-JVCOY7ZL.mjs";
|
|
10
|
+
import "../chunk-CIBQ4BJU.mjs";
|
|
11
11
|
import "../chunk-VTGR7VVK.mjs";
|
|
12
12
|
import "../chunk-WFFVOEUG.mjs";
|
|
13
13
|
import "../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AutumnClient, P as PricingTableProduct } from '../ReactAutumnClient-
|
|
2
|
-
import { A as AutumnPromise } from '../entTypes-
|
|
1
|
+
import { A as AutumnClient, P as PricingTableProduct } from '../ReactAutumnClient-Dm14G99_.mjs';
|
|
2
|
+
import { A as AutumnPromise } from '../entTypes-kVUQcah5.mjs';
|
|
3
3
|
import './types/clientEntTypes.mjs';
|
|
4
4
|
import './types/clientGenTypes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../error-DHbclCVh.mjs';
|
|
7
7
|
import '../genTypes-fEH_nqSm.mjs';
|
|
8
8
|
import '../prodTypes--VvnyGlN.mjs';
|
|
9
|
-
import '../attachTypes-
|
|
10
|
-
import '../cusTypes-
|
|
9
|
+
import '../attachTypes-Sv_paJZ2.mjs';
|
|
10
|
+
import '../cusTypes-DbCQV8Sj.mjs';
|
|
11
11
|
|
|
12
12
|
declare function getPricingTableMethod(this: AutumnClient): AutumnPromise<{
|
|
13
13
|
list: PricingTableProduct[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AutumnClient, P as PricingTableProduct } from '../ReactAutumnClient-
|
|
2
|
-
import { A as AutumnPromise } from '../entTypes-
|
|
1
|
+
import { A as AutumnClient, P as PricingTableProduct } from '../ReactAutumnClient-DCMQEadM.js';
|
|
2
|
+
import { A as AutumnPromise } from '../entTypes-0CBBecul.js';
|
|
3
3
|
import './types/clientEntTypes.js';
|
|
4
4
|
import './types/clientGenTypes.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../error-DHbclCVh.js';
|
|
7
7
|
import '../genTypes-DsiuvyWS.js';
|
|
8
8
|
import '../prodTypes--VvnyGlN.js';
|
|
9
|
-
import '../attachTypes-
|
|
10
|
-
import '../cusTypes-
|
|
9
|
+
import '../attachTypes-QTf_JXj7.js';
|
|
10
|
+
import '../cusTypes-BeSXIQ6P.js';
|
|
11
11
|
|
|
12
12
|
declare function getPricingTableMethod(this: AutumnClient): AutumnPromise<{
|
|
13
13
|
list: PricingTableProduct[];
|
|
@@ -1,13 +1,13 @@
|
|
|
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 '../entTypes-
|
|
1
|
+
import { A as AutumnClient, O as OmitCustomerType } from '../ReactAutumnClient-Dm14G99_.mjs';
|
|
2
|
+
import { a as CreateCustomerParams, b as Customer } from '../cusTypes-DbCQV8Sj.mjs';
|
|
3
|
+
import { A as AutumnPromise } from '../entTypes-kVUQcah5.mjs';
|
|
4
4
|
import './types/clientEntTypes.mjs';
|
|
5
5
|
import './types/clientGenTypes.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.mjs';
|
|
8
8
|
import '../genTypes-fEH_nqSm.mjs';
|
|
9
9
|
import '../prodTypes--VvnyGlN.mjs';
|
|
10
|
-
import '../attachTypes-
|
|
10
|
+
import '../attachTypes-Sv_paJZ2.mjs';
|
|
11
11
|
|
|
12
12
|
declare const createCustomerMethod: ({ client, params, }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -1,13 +1,13 @@
|
|
|
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 '../entTypes-
|
|
1
|
+
import { A as AutumnClient, O as OmitCustomerType } from '../ReactAutumnClient-DCMQEadM.js';
|
|
2
|
+
import { a as CreateCustomerParams, b as Customer } from '../cusTypes-BeSXIQ6P.js';
|
|
3
|
+
import { A as AutumnPromise } from '../entTypes-0CBBecul.js';
|
|
4
4
|
import './types/clientEntTypes.js';
|
|
5
5
|
import './types/clientGenTypes.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../error-DHbclCVh.js';
|
|
8
8
|
import '../genTypes-DsiuvyWS.js';
|
|
9
9
|
import '../prodTypes--VvnyGlN.js';
|
|
10
|
-
import '../attachTypes-
|
|
10
|
+
import '../attachTypes-QTf_JXj7.js';
|
|
11
11
|
|
|
12
12
|
declare const createCustomerMethod: ({ client, params, }: {
|
|
13
13
|
client: AutumnClient;
|