autumn-js 0.0.13 → 0.0.16
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/next/client/AutumnContext.d.mts +2 -4
- package/dist/next/client/AutumnContext.d.ts +2 -4
- package/dist/next/client/AutumnContext.js +3 -0
- package/dist/next/client/AutumnContext.mjs +3 -0
- package/dist/next/client/AutumnProvider.js +89 -5
- package/dist/next/client/AutumnProvider.mjs +89 -5
- package/dist/next/client/hooks/types.d.mts +14 -0
- package/dist/next/client/hooks/types.d.ts +14 -0
- package/dist/next/client/hooks/types.js +2 -0
- package/dist/next/client/hooks/types.mjs +2 -0
- package/dist/next/client/hooks/useAutumn.d.mts +37 -32
- package/dist/next/client/hooks/useAutumn.d.ts +37 -32
- package/dist/next/client/hooks/useAutumn.js +162 -41
- package/dist/next/client/hooks/useAutumn.mjs +162 -41
- package/dist/next/client/hooks/useCustomer.d.mts +3 -5
- package/dist/next/client/hooks/useCustomer.d.ts +3 -5
- package/dist/next/client/hooks/useCustomer.js +10 -2
- package/dist/next/client/hooks/useCustomer.mjs +10 -2
- package/dist/next/client/hooks/usePricingTable.d.mts +23 -0
- package/dist/next/client/hooks/usePricingTable.d.ts +23 -0
- package/dist/next/client/hooks/usePricingTable.js +62 -0
- package/dist/next/client/hooks/usePricingTable.mjs +62 -0
- package/dist/next/client/types.d.mts +1 -0
- package/dist/next/client/types.d.ts +1 -0
- package/dist/next/index.d.mts +79 -100
- package/dist/next/index.d.ts +79 -100
- package/dist/next/index.js +2 -0
- package/dist/next/index.mjs +1 -0
- package/dist/next/server/auth/clerk-wrapper.d.mts +3 -0
- package/dist/next/server/auth/clerk-wrapper.d.ts +3 -0
- package/dist/next/server/auth/clerk-wrapper.js +18 -0
- package/dist/next/server/auth/clerk-wrapper.mjs +18 -0
- package/dist/next/server/auth/handleAuthProvider.d.mts +5 -23
- package/dist/next/server/auth/handleAuthProvider.d.ts +5 -23
- package/dist/next/server/auth/handleAuthProvider.js +3 -2
- package/dist/next/server/auth/handleAuthProvider.mjs +3 -2
- package/dist/next/server/auth/supabase-wrapper.js +41 -0
- package/dist/next/server/auth/supabase-wrapper.mjs +41 -0
- package/dist/next/server/auth/withAuth.d.mts +6 -2
- package/dist/next/server/auth/withAuth.d.ts +6 -2
- package/dist/next/server/auth/withAuth.js +5 -1
- package/dist/next/server/auth/withAuth.mjs +5 -1
- package/dist/next/server/componentActions.d.mts +11 -0
- package/dist/next/server/componentActions.d.ts +11 -0
- package/dist/next/server/componentActions.js +21 -0
- package/dist/next/server/componentActions.mjs +21 -0
- package/dist/next/server/cusActions.d.mts +7 -27
- package/dist/next/server/cusActions.d.ts +7 -27
- package/dist/next/server/cusActions.js +13 -10
- package/dist/next/server/cusActions.mjs +13 -10
- package/dist/next/server/{cusTypes-G4c15fDy.d.mts → cusTypes-B9N9G7Vr.d.mts} +1 -1
- package/dist/next/server/{cusTypes-G4c15fDy.d.ts → cusTypes-B9N9G7Vr.d.ts} +1 -1
- package/dist/next/server/genActions.d.mts +3 -2
- package/dist/next/server/genActions.d.ts +3 -2
- package/dist/next/server/genActions.js +37 -26
- package/dist/next/server/genActions.mjs +37 -26
- package/dist/next/server/{genTypes-B-HSg3vG.d.mts → genTypes-BDibiu0E.d.ts} +2 -1
- package/dist/next/server/{genTypes-OgZRrjL_.d.ts → genTypes-DDkwFU_V.d.mts} +2 -1
- package/dist/next/server/response-CtOCrwQ7.d.mts +26 -0
- package/dist/next/server/response-CtOCrwQ7.d.ts +26 -0
- package/dist/next/server/utils.d.mts +5 -0
- package/dist/next/server/utils.d.ts +5 -0
- package/dist/next/server/utils.js +16 -0
- package/dist/next/server/utils.mjs +16 -0
- package/dist/sdk/general.d.mts +1 -0
- package/dist/sdk/general.d.ts +1 -0
- package/dist/sdk/index.d.mts +28 -2
- package/dist/sdk/index.d.ts +28 -2
- package/dist/sdk/index.js +46 -1
- package/dist/sdk/index.mjs +46 -2
- package/dist/sdk/products.d.mts +3 -1
- package/dist/sdk/products.d.ts +3 -1
- package/package.json +10 -3
- package/tsup.config.ts +8 -0
- package/dist/next/AutumnServer.js +0 -36
- package/dist/next/AutumnServer.mjs +0 -12
- package/dist/next/server/auth/utils.js +0 -25
- package/dist/next/server/auth/utils.mjs +0 -25
- package/dist/sdk/cusTypes-BxbYGvfU.d.mts +0 -68
- package/dist/sdk/cusTypes-CcZ5ZhSo.d.ts +0 -68
- /package/dist/next/server/auth/{utils.d.mts → supabase-wrapper.d.mts} +0 -0
- /package/dist/next/server/auth/{utils.d.ts → supabase-wrapper.d.ts} +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { AutumnContextParams } from './types.mjs';
|
|
3
|
-
import './cusTypes-BUiIMwvu.mjs';
|
|
4
2
|
|
|
5
|
-
declare const AutumnContext: react.Context<
|
|
6
|
-
declare const useAutumnContext: () =>
|
|
3
|
+
declare const AutumnContext: react.Context<any>;
|
|
4
|
+
declare const useAutumnContext: () => any;
|
|
7
5
|
|
|
8
6
|
export { AutumnContext, useAutumnContext };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { AutumnContextParams } from './types.js';
|
|
3
|
-
import './cusTypes-BUiIMwvu.js';
|
|
4
2
|
|
|
5
|
-
declare const AutumnContext: react.Context<
|
|
6
|
-
declare const useAutumnContext: () =>
|
|
3
|
+
declare const AutumnContext: react.Context<any>;
|
|
4
|
+
declare const useAutumnContext: () => any;
|
|
7
5
|
|
|
8
6
|
export { AutumnContext, useAutumnContext };
|
|
@@ -1,24 +1,108 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { AutumnContext } from "./AutumnContext";
|
|
5
|
-
import { useState } from "react";
|
|
5
|
+
import { useEffect, useState } from "react";
|
|
6
|
+
const useDialog = (type) => {
|
|
7
|
+
const [dialogFound, setDialogFound] = useState(false);
|
|
8
|
+
const [dialogProps, setDialogProps] = useState(null);
|
|
9
|
+
const [dialogOpen, setDialogOpen] = useState(false);
|
|
10
|
+
const [DialogComponent, setDialogComponent] = useState(null);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (dialogProps) {
|
|
13
|
+
setDialogOpen(true);
|
|
14
|
+
}
|
|
15
|
+
}, [dialogProps]);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (!dialogOpen) {
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
setDialogProps(null);
|
|
20
|
+
}, 200);
|
|
21
|
+
}
|
|
22
|
+
}, [dialogOpen]);
|
|
23
|
+
const loadDialog = async () => {
|
|
24
|
+
try {
|
|
25
|
+
let module = await import(`@/components/pricing/${type}-dialog.tsx`);
|
|
26
|
+
if (module.default && typeof module.default === "function") {
|
|
27
|
+
setDialogComponent(() => module.default);
|
|
28
|
+
setDialogFound(true);
|
|
29
|
+
}
|
|
30
|
+
} catch (error) {
|
|
31
|
+
setDialogFound(false);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
loadDialog();
|
|
36
|
+
}, []);
|
|
37
|
+
return [
|
|
38
|
+
dialogFound,
|
|
39
|
+
dialogProps,
|
|
40
|
+
setDialogProps,
|
|
41
|
+
dialogOpen,
|
|
42
|
+
setDialogOpen,
|
|
43
|
+
DialogComponent
|
|
44
|
+
];
|
|
45
|
+
};
|
|
6
46
|
const AutumnClientProvider = ({
|
|
7
47
|
children,
|
|
8
48
|
encryptedCustomerId,
|
|
9
49
|
customerData
|
|
10
50
|
}) => {
|
|
11
51
|
let [customer, setCustomer] = useState(null);
|
|
12
|
-
|
|
52
|
+
const [
|
|
53
|
+
prodChangeDialogFound,
|
|
54
|
+
prodChangeDialogProps,
|
|
55
|
+
setProdChangeDialogProps,
|
|
56
|
+
prodChangeDialogOpen,
|
|
57
|
+
setProdChangeDialogOpen,
|
|
58
|
+
ProdChangeDialogComponent
|
|
59
|
+
] = useDialog("product-change");
|
|
60
|
+
const [
|
|
61
|
+
paywallFound,
|
|
62
|
+
paywallProps,
|
|
63
|
+
setPaywallProps,
|
|
64
|
+
paywallOpen,
|
|
65
|
+
setPaywallOpen,
|
|
66
|
+
PaywallDialogComponent
|
|
67
|
+
] = useDialog("paywall");
|
|
68
|
+
return /* @__PURE__ */ jsxs(
|
|
13
69
|
AutumnContext.Provider,
|
|
14
70
|
{
|
|
15
71
|
value: {
|
|
16
72
|
encryptedCustomerId,
|
|
17
73
|
customerData,
|
|
18
74
|
customer,
|
|
19
|
-
setCustomer
|
|
75
|
+
setCustomer,
|
|
76
|
+
prodChangeDialog: {
|
|
77
|
+
found: prodChangeDialogFound,
|
|
78
|
+
setProps: setProdChangeDialogProps,
|
|
79
|
+
setOpen: setProdChangeDialogOpen
|
|
80
|
+
},
|
|
81
|
+
paywallDialog: {
|
|
82
|
+
found: paywallFound,
|
|
83
|
+
setProps: setPaywallProps,
|
|
84
|
+
setOpen: setPaywallOpen
|
|
85
|
+
}
|
|
20
86
|
},
|
|
21
|
-
children
|
|
87
|
+
children: [
|
|
88
|
+
ProdChangeDialogComponent && /* @__PURE__ */ jsx(
|
|
89
|
+
ProdChangeDialogComponent,
|
|
90
|
+
{
|
|
91
|
+
open: prodChangeDialogOpen,
|
|
92
|
+
setOpen: setProdChangeDialogOpen,
|
|
93
|
+
...prodChangeDialogProps
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
PaywallDialogComponent && /* @__PURE__ */ jsx(
|
|
97
|
+
PaywallDialogComponent,
|
|
98
|
+
{
|
|
99
|
+
open: paywallOpen,
|
|
100
|
+
setOpen: setPaywallOpen,
|
|
101
|
+
...paywallProps
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
children
|
|
105
|
+
]
|
|
22
106
|
}
|
|
23
107
|
);
|
|
24
108
|
};
|
|
@@ -1,24 +1,108 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { AutumnContext } from "./AutumnContext";
|
|
5
|
-
import { useState } from "react";
|
|
5
|
+
import { useEffect, useState } from "react";
|
|
6
|
+
const useDialog = (type) => {
|
|
7
|
+
const [dialogFound, setDialogFound] = useState(false);
|
|
8
|
+
const [dialogProps, setDialogProps] = useState(null);
|
|
9
|
+
const [dialogOpen, setDialogOpen] = useState(false);
|
|
10
|
+
const [DialogComponent, setDialogComponent] = useState(null);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (dialogProps) {
|
|
13
|
+
setDialogOpen(true);
|
|
14
|
+
}
|
|
15
|
+
}, [dialogProps]);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (!dialogOpen) {
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
setDialogProps(null);
|
|
20
|
+
}, 200);
|
|
21
|
+
}
|
|
22
|
+
}, [dialogOpen]);
|
|
23
|
+
const loadDialog = async () => {
|
|
24
|
+
try {
|
|
25
|
+
let module = await import(`@/components/pricing/${type}-dialog.tsx`);
|
|
26
|
+
if (module.default && typeof module.default === "function") {
|
|
27
|
+
setDialogComponent(() => module.default);
|
|
28
|
+
setDialogFound(true);
|
|
29
|
+
}
|
|
30
|
+
} catch (error) {
|
|
31
|
+
setDialogFound(false);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
loadDialog();
|
|
36
|
+
}, []);
|
|
37
|
+
return [
|
|
38
|
+
dialogFound,
|
|
39
|
+
dialogProps,
|
|
40
|
+
setDialogProps,
|
|
41
|
+
dialogOpen,
|
|
42
|
+
setDialogOpen,
|
|
43
|
+
DialogComponent
|
|
44
|
+
];
|
|
45
|
+
};
|
|
6
46
|
const AutumnClientProvider = ({
|
|
7
47
|
children,
|
|
8
48
|
encryptedCustomerId,
|
|
9
49
|
customerData
|
|
10
50
|
}) => {
|
|
11
51
|
let [customer, setCustomer] = useState(null);
|
|
12
|
-
|
|
52
|
+
const [
|
|
53
|
+
prodChangeDialogFound,
|
|
54
|
+
prodChangeDialogProps,
|
|
55
|
+
setProdChangeDialogProps,
|
|
56
|
+
prodChangeDialogOpen,
|
|
57
|
+
setProdChangeDialogOpen,
|
|
58
|
+
ProdChangeDialogComponent
|
|
59
|
+
] = useDialog("product-change");
|
|
60
|
+
const [
|
|
61
|
+
paywallFound,
|
|
62
|
+
paywallProps,
|
|
63
|
+
setPaywallProps,
|
|
64
|
+
paywallOpen,
|
|
65
|
+
setPaywallOpen,
|
|
66
|
+
PaywallDialogComponent
|
|
67
|
+
] = useDialog("paywall");
|
|
68
|
+
return /* @__PURE__ */ jsxs(
|
|
13
69
|
AutumnContext.Provider,
|
|
14
70
|
{
|
|
15
71
|
value: {
|
|
16
72
|
encryptedCustomerId,
|
|
17
73
|
customerData,
|
|
18
74
|
customer,
|
|
19
|
-
setCustomer
|
|
75
|
+
setCustomer,
|
|
76
|
+
prodChangeDialog: {
|
|
77
|
+
found: prodChangeDialogFound,
|
|
78
|
+
setProps: setProdChangeDialogProps,
|
|
79
|
+
setOpen: setProdChangeDialogOpen
|
|
80
|
+
},
|
|
81
|
+
paywallDialog: {
|
|
82
|
+
found: paywallFound,
|
|
83
|
+
setProps: setPaywallProps,
|
|
84
|
+
setOpen: setPaywallOpen
|
|
85
|
+
}
|
|
20
86
|
},
|
|
21
|
-
children
|
|
87
|
+
children: [
|
|
88
|
+
ProdChangeDialogComponent && /* @__PURE__ */ jsx(
|
|
89
|
+
ProdChangeDialogComponent,
|
|
90
|
+
{
|
|
91
|
+
open: prodChangeDialogOpen,
|
|
92
|
+
setOpen: setProdChangeDialogOpen,
|
|
93
|
+
...prodChangeDialogProps
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
PaywallDialogComponent && /* @__PURE__ */ jsx(
|
|
97
|
+
PaywallDialogComponent,
|
|
98
|
+
{
|
|
99
|
+
open: paywallOpen,
|
|
100
|
+
setOpen: setPaywallOpen,
|
|
101
|
+
...paywallProps
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
children
|
|
105
|
+
]
|
|
22
106
|
}
|
|
23
107
|
);
|
|
24
108
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface AttachParams {
|
|
2
|
+
dialog?: boolean;
|
|
3
|
+
productId: string;
|
|
4
|
+
options?: {
|
|
5
|
+
featureId: string;
|
|
6
|
+
quantity: number;
|
|
7
|
+
}[];
|
|
8
|
+
successUrl?: string;
|
|
9
|
+
forceCheckout?: boolean;
|
|
10
|
+
metadata?: Record<string, string>;
|
|
11
|
+
callback?: () => Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type { AttachParams };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface AttachParams {
|
|
2
|
+
dialog?: boolean;
|
|
3
|
+
productId: string;
|
|
4
|
+
options?: {
|
|
5
|
+
featureId: string;
|
|
6
|
+
quantity: number;
|
|
7
|
+
}[];
|
|
8
|
+
successUrl?: string;
|
|
9
|
+
forceCheckout?: boolean;
|
|
10
|
+
metadata?: Record<string, string>;
|
|
11
|
+
callback?: () => Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type { AttachParams };
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-BUtm1Pks.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { AttachParams } from './types.mjs';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
forceCheckout?: boolean;
|
|
20
|
-
metadata?: Record<string, string>;
|
|
4
|
+
declare const useAutumn: () => {
|
|
5
|
+
attach: ({ dialog, productId, options, successUrl, forceCheckout, metadata, callback, }: AttachParams) => Promise<any>;
|
|
6
|
+
check: ({ dialog, featureId, productId, requiredQuantity, sendEvent, }: {
|
|
7
|
+
dialog?: boolean;
|
|
8
|
+
featureId?: string;
|
|
9
|
+
productId?: string;
|
|
10
|
+
requiredQuantity?: number;
|
|
11
|
+
sendEvent?: boolean;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
track: ({ featureId, value, }: {
|
|
14
|
+
featureId: string;
|
|
15
|
+
value?: number;
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
openBillingPortal: (options?: {
|
|
18
|
+
returnUrl?: string;
|
|
21
19
|
}) => Promise<any>;
|
|
22
20
|
/**
|
|
23
21
|
* @deprecated Use track({featureId, value}) instead.
|
|
@@ -34,19 +32,26 @@ declare const useAutumn: (options?: UseAutumnOptions) => {
|
|
|
34
32
|
entitled: ({ featureId }: {
|
|
35
33
|
featureId: string;
|
|
36
34
|
}) => Promise<any>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use the useCustomer() hook instead.
|
|
37
|
+
* This property is deprecated and will be removed in a future version.
|
|
38
|
+
*/
|
|
39
|
+
customer: any;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Use the useCustomer() hook instead.
|
|
42
|
+
* This property is deprecated and will be removed in a future version.
|
|
43
|
+
*/
|
|
44
|
+
loading: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Use the useCustomer() hook instead.
|
|
47
|
+
* This property is deprecated and will be removed in a future version.
|
|
48
|
+
*/
|
|
49
|
+
error: AutumnError | null;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use the useCustomer() hook instead.
|
|
52
|
+
* This property is deprecated and will be removed in a future version.
|
|
53
|
+
*/
|
|
54
|
+
refetch: () => Promise<void>;
|
|
50
55
|
};
|
|
51
56
|
|
|
52
|
-
export {
|
|
57
|
+
export { useAutumn };
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-BUtm1Pks.js';
|
|
2
|
-
import {
|
|
2
|
+
import { AttachParams } from './types.js';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
forceCheckout?: boolean;
|
|
20
|
-
metadata?: Record<string, string>;
|
|
4
|
+
declare const useAutumn: () => {
|
|
5
|
+
attach: ({ dialog, productId, options, successUrl, forceCheckout, metadata, callback, }: AttachParams) => Promise<any>;
|
|
6
|
+
check: ({ dialog, featureId, productId, requiredQuantity, sendEvent, }: {
|
|
7
|
+
dialog?: boolean;
|
|
8
|
+
featureId?: string;
|
|
9
|
+
productId?: string;
|
|
10
|
+
requiredQuantity?: number;
|
|
11
|
+
sendEvent?: boolean;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
track: ({ featureId, value, }: {
|
|
14
|
+
featureId: string;
|
|
15
|
+
value?: number;
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
openBillingPortal: (options?: {
|
|
18
|
+
returnUrl?: string;
|
|
21
19
|
}) => Promise<any>;
|
|
22
20
|
/**
|
|
23
21
|
* @deprecated Use track({featureId, value}) instead.
|
|
@@ -34,19 +32,26 @@ declare const useAutumn: (options?: UseAutumnOptions) => {
|
|
|
34
32
|
entitled: ({ featureId }: {
|
|
35
33
|
featureId: string;
|
|
36
34
|
}) => Promise<any>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use the useCustomer() hook instead.
|
|
37
|
+
* This property is deprecated and will be removed in a future version.
|
|
38
|
+
*/
|
|
39
|
+
customer: any;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Use the useCustomer() hook instead.
|
|
42
|
+
* This property is deprecated and will be removed in a future version.
|
|
43
|
+
*/
|
|
44
|
+
loading: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Use the useCustomer() hook instead.
|
|
47
|
+
* This property is deprecated and will be removed in a future version.
|
|
48
|
+
*/
|
|
49
|
+
error: AutumnError | null;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use the useCustomer() hook instead.
|
|
52
|
+
* This property is deprecated and will be removed in a future version.
|
|
53
|
+
*/
|
|
54
|
+
refetch: () => Promise<void>;
|
|
50
55
|
};
|
|
51
56
|
|
|
52
|
-
export {
|
|
57
|
+
export { useAutumn };
|