autumn-js 0.0.113 → 0.0.114-beta.2
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 +18 -18
- package/dist/libraries/backend/better-auth.d.ts +18 -18
- package/dist/libraries/backend/better-auth.js +5 -16
- package/dist/libraries/backend/better-auth.mjs +14 -11
- package/dist/libraries/backend/{chunk-EUAZMSHG.mjs → chunk-6Q2ITB2J.mjs} +6 -2
- package/dist/libraries/backend/{chunk-C342MVRJ.mjs → chunk-EJOHQRIY.mjs} +5 -1
- package/dist/libraries/backend/{chunk-BNRLG2NJ.mjs → chunk-ES5GSXMO.mjs} +51 -2
- package/dist/libraries/backend/{chunk-45WVZY23.mjs → chunk-I4AT5QDU.mjs} +10 -6
- package/dist/libraries/backend/{chunk-NBQSYUOH.mjs → chunk-JBMNONDP.mjs} +6 -2
- package/dist/libraries/backend/{chunk-6DZX6EAA.mjs → chunk-MZDBMPP4.mjs} +14 -1
- package/dist/libraries/backend/{chunk-UNZHJTEY.mjs → chunk-O4CGURPC.mjs} +5 -0
- package/dist/libraries/backend/{chunk-KSG3E4Q2.mjs → chunk-V47ADUWV.mjs} +5 -0
- package/dist/libraries/backend/{chunk-74THWZUU.mjs → chunk-W3UTLGLL.mjs} +11 -7
- package/dist/libraries/backend/{chunk-B5EK655Y.mjs → chunk-WVOOJ47K.mjs} +6 -2
- package/dist/libraries/backend/{chunk-ZHA3DHVC.mjs → chunk-YIQFOU5D.mjs} +7 -2
- package/dist/libraries/backend/constants.mjs +2 -2
- package/dist/libraries/backend/convex.js +5 -16
- package/dist/libraries/backend/convex.mjs +14 -11
- package/dist/libraries/backend/elysia.js +5 -16
- package/dist/libraries/backend/elysia.mjs +15 -11
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +5 -16
- package/dist/libraries/backend/express.mjs +14 -11
- package/dist/libraries/backend/fastify.js +5 -16
- package/dist/libraries/backend/fastify.mjs +14 -11
- package/dist/libraries/backend/hono.js +5 -16
- package/dist/libraries/backend/hono.mjs +14 -11
- package/dist/libraries/backend/next.js +217 -101
- package/dist/libraries/backend/next.mjs +156 -107
- package/dist/libraries/backend/react-router.js +5 -16
- package/dist/libraries/backend/react-router.mjs +14 -11
- package/dist/libraries/backend/remix_dep.js +5 -16
- package/dist/libraries/backend/remix_dep.mjs +13 -10
- package/dist/libraries/backend/routes/backendRouter.js +5 -16
- package/dist/libraries/backend/routes/backendRouter.mjs +10 -10
- package/dist/libraries/backend/routes/basePath.mjs +6 -0
- package/dist/libraries/backend/routes/entityRoutes.js +5 -16
- package/dist/libraries/backend/routes/entityRoutes.mjs +6 -6
- package/dist/libraries/backend/routes/genRoutes.js +5 -16
- package/dist/libraries/backend/routes/genRoutes.mjs +6 -6
- package/dist/libraries/backend/routes/productRoutes.js +5 -16
- package/dist/libraries/backend/routes/productRoutes.mjs +6 -6
- package/dist/libraries/backend/routes/referralRoutes.js +5 -16
- package/dist/libraries/backend/routes/referralRoutes.mjs +6 -6
- package/dist/libraries/backend/schemas/zod.mjs +4 -1
- package/dist/libraries/backend/supabase.js +5 -16
- package/dist/libraries/backend/supabase.mjs +14 -11
- package/dist/libraries/backend/tanstack.js +85 -16
- package/dist/libraries/backend/tanstack.mjs +25 -11
- package/dist/libraries/backend/utils/AuthFunction.mjs +6 -0
- package/dist/libraries/backend/utils/backendRes.js +5 -16
- package/dist/libraries/backend/utils/backendRes.mjs +4 -4
- package/dist/libraries/backend/utils/logBackendErrors.js +5 -16
- package/dist/libraries/backend/utils/logBackendErrors.mjs +5 -2
- package/dist/libraries/backend/utils/secretKeyCheck.mjs +2 -2
- 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 +5 -16
- package/dist/libraries/backend/utils/withAuth.mjs +5 -5
- package/dist/libraries/react/AutumnContext.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.js +5 -16
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +5 -6
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-BNcDsxYe.d.ts → ReactAutumnClient-CDfo8hZ4.d.ts} +17 -17
- package/dist/libraries/react/{ReactAutumnClient-Bm0Y_zzP.d.mts → ReactAutumnClient-c3yiqDyr.d.mts} +17 -17
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.js +5 -6
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/{attachTypes-BQzswBtK.d.mts → attachTypes--vy7a8ko.d.mts} +7 -7
- package/dist/libraries/react/{attachTypes-DIsESO5Y.d.ts → attachTypes-BUrxxKCh.d.ts} +7 -7
- package/dist/libraries/react/{chunk-GUZH4TKK.mjs → chunk-3JORYFTY.mjs} +5 -6
- package/dist/libraries/react/{chunk-DDYSMKLY.mjs → chunk-3UNBBJY5.mjs} +1 -1
- package/dist/libraries/react/{chunk-HDMOJP3E.mjs → chunk-4Q7BDIOS.mjs} +1 -1
- package/dist/libraries/react/{chunk-DGBYTZLQ.mjs → chunk-5PA5P2UE.mjs} +2 -2
- package/dist/libraries/react/{chunk-4X4TKILZ.mjs → chunk-62QDB3KQ.mjs} +3 -3
- package/dist/libraries/react/{chunk-3C7OO2N3.mjs → chunk-6R3O2T4H.mjs} +1 -1
- package/dist/libraries/react/{chunk-JP6WLDHX.mjs → chunk-CV4TKYAC.mjs} +2 -2
- package/dist/libraries/react/{chunk-QMOLXJIH.mjs → chunk-CZVP6BZG.mjs} +3 -3
- package/dist/libraries/react/{chunk-QEKHWOGC.mjs → chunk-E2H5MYIO.mjs} +1 -1
- package/dist/libraries/react/{chunk-TX3X2LDE.mjs → chunk-FEISQQNM.mjs} +92 -649
- package/dist/libraries/react/chunk-FJWZPMWU.mjs +448 -0
- package/dist/libraries/react/{chunk-F324RNGU.mjs → chunk-FOXUAY7Y.mjs} +7 -7
- package/dist/libraries/react/{chunk-CYFC6BOH.mjs → chunk-HBVLIBOE.mjs} +3 -3
- package/dist/libraries/react/chunk-I2A7PK2L.mjs +151 -0
- package/dist/libraries/react/chunk-JGDTNJTR.mjs +584 -0
- package/dist/libraries/react/chunk-KUS3X33V.mjs +46 -0
- package/dist/libraries/react/chunk-OTZ65PCT.mjs +2520 -0
- package/dist/libraries/react/{chunk-EGPEAPRK.mjs → chunk-PEYCQWHI.mjs} +2 -2
- package/dist/libraries/react/{chunk-4NIALZY6.mjs → chunk-PNTVQMRO.mjs} +32 -31
- package/dist/libraries/react/{chunk-RL47UQK4.mjs → chunk-RGAEIODW.mjs} +1 -1
- package/dist/libraries/react/{chunk-PLGLCII4.mjs → chunk-YDRULJZE.mjs} +2 -2
- package/dist/libraries/react/{chunk-PRFT4OKG.mjs → chunk-YEG5KJEI.mjs} +1 -1
- package/dist/libraries/react/{chunk-6EZVNJHQ.mjs → chunk-YWQTQ72B.mjs} +15 -50
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.js +5 -16
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +18 -18
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +18 -18
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.js +5 -16
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +6486 -3517
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +30 -27
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +2 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +2 -2
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +3131 -169
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +30 -27
- 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/lib/pricing-table-content.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
- 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 +5895 -2928
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +30 -27
- package/dist/libraries/react/components/ui/accordion.js +984 -26
- package/dist/libraries/react/components/ui/accordion.mjs +4 -1
- package/dist/libraries/react/components/ui/dialog.mjs +4 -2
- package/dist/libraries/react/components/ui/popover.js +4282 -24
- package/dist/libraries/react/components/ui/popover.mjs +6 -1
- package/dist/libraries/react/components/ui/switch.mjs +3 -2
- package/dist/libraries/react/{cusTypes-CwLJs1D1.d.ts → cusTypes-B_vSLMNd.d.ts} +7 -7
- package/dist/libraries/react/{cusTypes-CI8GNjww.d.mts → cusTypes-D1pgp32k.d.mts} +7 -7
- package/dist/libraries/react/{entTypes-Kh8o7OKO.d.mts → entTypes-Bw3nZ-hB.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-ByG7ZqG-.d.ts → entTypes-DQXsozw-.d.ts} +1 -1
- package/dist/libraries/react/{genTypes-BjDGPkYi.d.mts → genTypes-C-CUGCpC.d.mts} +5 -5
- package/dist/libraries/react/{genTypes-CtkYtnSx.d.ts → genTypes-CaRSTLgV.d.ts} +5 -5
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.js +5 -16
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +5 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.js +5 -6
- package/dist/libraries/react/hooks/useAnalytics.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomer.js +5 -6
- package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.js +5 -6
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- package/dist/libraries/react/hooks/useEntity.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntity.js +5 -6
- package/dist/libraries/react/hooks/useEntity.mjs +10 -10
- package/dist/libraries/react/hooks/useEntityBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.js +5 -6
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- package/dist/libraries/react/hooks/usePaywall.js +5 -6
- package/dist/libraries/react/hooks/usePaywall.mjs +6 -6
- 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/usePricingTable.js +5 -6
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.js +5 -6
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
- package/dist/libraries/react/index.js +5906 -2939
- package/dist/libraries/react/index.mjs +5863 -2896
- package/dist/next/client/NextAutumnClient.d.mts +18 -18
- package/dist/next/client/NextAutumnClient.d.ts +18 -18
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{attachTypes-CACw68CG.d.ts → attachTypes-DPYjShM5.d.ts} +7 -7
- package/dist/next/client/{attachTypes-DFz8xggN.d.mts → attachTypes-mELcg_uC.d.mts} +7 -7
- package/dist/next/client/{clientAttachTypes-Chgx4uq1.d.ts → clientAttachTypes-B4i2ri-1.d.ts} +27 -27
- package/dist/next/client/{clientAttachTypes-CsHcLMla.d.mts → clientAttachTypes-EGitteWV.d.mts} +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-CfOlwucH.d.mts → cusTypes-CRJanGZd.d.mts} +5 -5
- package/dist/next/client/{cusTypes-C9G9xqQj.d.ts → cusTypes-Dn0ETI7G.d.ts} +5 -5
- package/dist/next/client/{entTypes-_335WLpv.d.ts → entTypes-Caov3CJ9.d.ts} +1 -1
- package/dist/next/client/{entTypes-BF3ut9It.d.mts → entTypes-Qyo2WYGP.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +5 -5
- package/dist/next/client/hooks/useAutumn.d.ts +5 -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 +7 -7
- package/dist/next/client/hooks/useEntity.d.ts +7 -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/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 +15 -15
- package/dist/next/server/cusActions.d.ts +15 -15
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.js +7 -10
- package/dist/sdk/index.mjs +7 -6
- package/dist/utils/{chunk-V7R5DCYR.mjs → chunk-WNUBT3GZ.mjs} +5 -6
- package/dist/utils/encryptUtils.js +5 -6
- package/dist/utils/encryptUtils.mjs +1 -1
- package/dist/utils/logger.js +5 -16
- package/dist/utils/logger.mjs +1 -1
- package/package.json +7 -13
- package/tsup.config.ts +31 -0
- package/dist/libraries/react/chunk-JGRLRPKG.mjs +0 -56
- package/dist/libraries/react/chunk-UM3ZQPMU.mjs +0 -34
- package/dist/libraries/backend/{referralTypes-COVVwj-1.d.mts → referralTypes-CHRdXdZi.d.mts} +35 -35
- package/dist/libraries/backend/{referralTypes-qMay-K9l.d.ts → referralTypes-KN1bdpbB.d.ts} +35 -35
- package/dist/libraries/react/{chunk-KWNH6C27.mjs → chunk-7TYAAD2T.mjs} +11 -11
- package/dist/libraries/react/{prodTypes-Y1CLtmfa.d.mts → prodTypes-DWMxMrWG.d.mts} +2 -2
- package/dist/libraries/react/{prodTypes-Y1CLtmfa.d.ts → prodTypes-DWMxMrWG.d.ts} +2 -2
- package/dist/next/client/{prodTypes-CYd9Q1Rw.d.mts → prodTypes-si707oHg.d.mts} +4 -4
- package/dist/next/client/{prodTypes-CYd9Q1Rw.d.ts → prodTypes-si707oHg.d.ts} +4 -4
- package/dist/next/server/{cusTypes-PcPWkSme.d.mts → cusTypes-wfx--BDG.d.mts} +4 -4
- package/dist/next/server/{cusTypes-PcPWkSme.d.ts → cusTypes-wfx--BDG.d.ts} +4 -4
|
@@ -5,7 +5,12 @@ import {
|
|
|
5
5
|
PopoverAnchor,
|
|
6
6
|
PopoverContent,
|
|
7
7
|
PopoverTrigger
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-OTZ65PCT.mjs";
|
|
9
|
+
import "../../chunk-KUS3X33V.mjs";
|
|
10
|
+
import "../../chunk-FEISQQNM.mjs";
|
|
11
|
+
import "../../chunk-I2A7PK2L.mjs";
|
|
12
|
+
import "../../chunk-7TYAAD2T.mjs";
|
|
13
|
+
import "../../chunk-RPEGNKJH.mjs";
|
|
9
14
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
10
15
|
export {
|
|
11
16
|
Popover,
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
Switch
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-YWQTQ72B.mjs";
|
|
7
|
+
import "../../chunk-KUS3X33V.mjs";
|
|
8
|
+
import "../../chunk-7TYAAD2T.mjs";
|
|
8
9
|
import "../../chunk-RPEGNKJH.mjs";
|
|
9
10
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
10
11
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv, c as ProductItem, d as ProductItemInterval } from './prodTypes-
|
|
1
|
+
import { A as AppEnv, c as ProductItem, d as ProductItemInterval } from './prodTypes-DWMxMrWG.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -49,7 +49,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
49
49
|
credit_amount: number;
|
|
50
50
|
}>, "many">>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
usage_limit?: number | undefined;
|
|
53
52
|
unlimited?: boolean | undefined;
|
|
54
53
|
interval?: ProductItemInterval | undefined;
|
|
55
54
|
balance?: number | null | undefined;
|
|
@@ -57,6 +56,7 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
57
56
|
included_usage?: number | undefined;
|
|
58
57
|
next_reset_at?: number | null | undefined;
|
|
59
58
|
overage_allowed?: boolean | undefined;
|
|
59
|
+
usage_limit?: number | undefined;
|
|
60
60
|
breakdown?: {
|
|
61
61
|
interval: ProductItemInterval;
|
|
62
62
|
balance?: number | undefined;
|
|
@@ -69,7 +69,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
69
69
|
credit_amount: number;
|
|
70
70
|
}[] | undefined;
|
|
71
71
|
}, {
|
|
72
|
-
usage_limit?: number | undefined;
|
|
73
72
|
unlimited?: boolean | undefined;
|
|
74
73
|
interval?: ProductItemInterval | undefined;
|
|
75
74
|
balance?: number | null | undefined;
|
|
@@ -77,6 +76,7 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
77
76
|
included_usage?: number | undefined;
|
|
78
77
|
next_reset_at?: number | null | undefined;
|
|
79
78
|
overage_allowed?: boolean | undefined;
|
|
79
|
+
usage_limit?: number | undefined;
|
|
80
80
|
breakdown?: {
|
|
81
81
|
interval: ProductItemInterval;
|
|
82
82
|
balance?: number | undefined;
|
|
@@ -130,12 +130,12 @@ declare const CustomerDataSchema: z.ZodObject<{
|
|
|
130
130
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
131
|
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
email?: string | null | undefined;
|
|
134
133
|
name?: string | null | undefined;
|
|
134
|
+
email?: string | null | undefined;
|
|
135
135
|
fingerprint?: string | null | undefined;
|
|
136
136
|
}, {
|
|
137
|
-
email?: string | null | undefined;
|
|
138
137
|
name?: string | null | undefined;
|
|
138
|
+
email?: string | null | undefined;
|
|
139
139
|
fingerprint?: string | null | undefined;
|
|
140
140
|
}>;
|
|
141
141
|
type CustomerData = z.infer<typeof CustomerDataSchema>;
|
|
@@ -148,15 +148,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
148
148
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
150
|
id?: string | null | undefined;
|
|
151
|
-
email?: string | null | undefined;
|
|
152
151
|
name?: string | null | undefined;
|
|
152
|
+
email?: string | null | undefined;
|
|
153
153
|
fingerprint?: string | null | undefined;
|
|
154
154
|
metadata?: Record<string, any> | undefined;
|
|
155
155
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
id?: string | null | undefined;
|
|
158
|
-
email?: string | null | undefined;
|
|
159
158
|
name?: string | null | undefined;
|
|
159
|
+
email?: string | null | undefined;
|
|
160
160
|
fingerprint?: string | null | undefined;
|
|
161
161
|
metadata?: Record<string, any> | undefined;
|
|
162
162
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AppEnv, c as ProductItem, d as ProductItemInterval } from './prodTypes-
|
|
1
|
+
import { A as AppEnv, c as ProductItem, d as ProductItemInterval } from './prodTypes-DWMxMrWG.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare enum ProductStatus {
|
|
@@ -49,7 +49,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
49
49
|
credit_amount: number;
|
|
50
50
|
}>, "many">>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
usage_limit?: number | undefined;
|
|
53
52
|
unlimited?: boolean | undefined;
|
|
54
53
|
interval?: ProductItemInterval | undefined;
|
|
55
54
|
balance?: number | null | undefined;
|
|
@@ -57,6 +56,7 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
57
56
|
included_usage?: number | undefined;
|
|
58
57
|
next_reset_at?: number | null | undefined;
|
|
59
58
|
overage_allowed?: boolean | undefined;
|
|
59
|
+
usage_limit?: number | undefined;
|
|
60
60
|
breakdown?: {
|
|
61
61
|
interval: ProductItemInterval;
|
|
62
62
|
balance?: number | undefined;
|
|
@@ -69,7 +69,6 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
69
69
|
credit_amount: number;
|
|
70
70
|
}[] | undefined;
|
|
71
71
|
}, {
|
|
72
|
-
usage_limit?: number | undefined;
|
|
73
72
|
unlimited?: boolean | undefined;
|
|
74
73
|
interval?: ProductItemInterval | undefined;
|
|
75
74
|
balance?: number | null | undefined;
|
|
@@ -77,6 +76,7 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
77
76
|
included_usage?: number | undefined;
|
|
78
77
|
next_reset_at?: number | null | undefined;
|
|
79
78
|
overage_allowed?: boolean | undefined;
|
|
79
|
+
usage_limit?: number | undefined;
|
|
80
80
|
breakdown?: {
|
|
81
81
|
interval: ProductItemInterval;
|
|
82
82
|
balance?: number | undefined;
|
|
@@ -130,12 +130,12 @@ declare const CustomerDataSchema: z.ZodObject<{
|
|
|
130
130
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
131
|
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
email?: string | null | undefined;
|
|
134
133
|
name?: string | null | undefined;
|
|
134
|
+
email?: string | null | undefined;
|
|
135
135
|
fingerprint?: string | null | undefined;
|
|
136
136
|
}, {
|
|
137
|
-
email?: string | null | undefined;
|
|
138
137
|
name?: string | null | undefined;
|
|
138
|
+
email?: string | null | undefined;
|
|
139
139
|
fingerprint?: string | null | undefined;
|
|
140
140
|
}>;
|
|
141
141
|
type CustomerData = z.infer<typeof CustomerDataSchema>;
|
|
@@ -148,15 +148,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
148
148
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
150
|
id?: string | null | undefined;
|
|
151
|
-
email?: string | null | undefined;
|
|
152
151
|
name?: string | null | undefined;
|
|
152
|
+
email?: string | null | undefined;
|
|
153
153
|
fingerprint?: string | null | undefined;
|
|
154
154
|
metadata?: Record<string, any> | undefined;
|
|
155
155
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
id?: string | null | undefined;
|
|
158
|
-
email?: string | null | undefined;
|
|
159
158
|
name?: string | null | undefined;
|
|
159
|
+
email?: string | null | undefined;
|
|
160
160
|
fingerprint?: string | null | undefined;
|
|
161
161
|
metadata?: Record<string, any> | undefined;
|
|
162
162
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
2
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
2
|
+
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-D1pgp32k.mjs';
|
|
3
3
|
|
|
4
4
|
type Success<T> = {
|
|
5
5
|
data: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
2
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
2
|
+
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-B_vSLMNd.js';
|
|
3
3
|
|
|
4
4
|
type Success<T> = {
|
|
5
5
|
data: T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CheckFeatureResult, b as CheckProductResult } from './prodTypes-
|
|
1
|
+
import { a as CheckFeatureResult, b as CheckProductResult } from './prodTypes-DWMxMrWG.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const CancelResultSchema: z.ZodObject<{
|
|
@@ -7,12 +7,12 @@ declare const CancelResultSchema: z.ZodObject<{
|
|
|
7
7
|
product_id: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
customer_id: string;
|
|
10
|
-
product_id: string;
|
|
11
10
|
success: boolean;
|
|
11
|
+
product_id: string;
|
|
12
12
|
}, {
|
|
13
13
|
customer_id: string;
|
|
14
|
-
product_id: string;
|
|
15
14
|
success: boolean;
|
|
15
|
+
product_id: string;
|
|
16
16
|
}>;
|
|
17
17
|
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
18
18
|
declare const TrackResultSchema: z.ZodObject<{
|
|
@@ -23,14 +23,14 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
event_name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
id: string;
|
|
26
|
-
code: string;
|
|
27
26
|
customer_id: string;
|
|
27
|
+
code: string;
|
|
28
28
|
feature_id?: string | undefined;
|
|
29
29
|
event_name?: string | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
id: string;
|
|
32
|
-
code: string;
|
|
33
32
|
customer_id: string;
|
|
33
|
+
code: string;
|
|
34
34
|
feature_id?: string | undefined;
|
|
35
35
|
event_name?: string | undefined;
|
|
36
36
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CheckFeatureResult, b as CheckProductResult } from './prodTypes-
|
|
1
|
+
import { a as CheckFeatureResult, b as CheckProductResult } from './prodTypes-DWMxMrWG.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const CancelResultSchema: z.ZodObject<{
|
|
@@ -7,12 +7,12 @@ declare const CancelResultSchema: z.ZodObject<{
|
|
|
7
7
|
product_id: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
customer_id: string;
|
|
10
|
-
product_id: string;
|
|
11
10
|
success: boolean;
|
|
11
|
+
product_id: string;
|
|
12
12
|
}, {
|
|
13
13
|
customer_id: string;
|
|
14
|
-
product_id: string;
|
|
15
14
|
success: boolean;
|
|
15
|
+
product_id: string;
|
|
16
16
|
}>;
|
|
17
17
|
type CancelResult = z.infer<typeof CancelResultSchema>;
|
|
18
18
|
declare const TrackResultSchema: z.ZodObject<{
|
|
@@ -23,14 +23,14 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
event_name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
id: string;
|
|
26
|
-
code: string;
|
|
27
26
|
customer_id: string;
|
|
27
|
+
code: string;
|
|
28
28
|
feature_id?: string | undefined;
|
|
29
29
|
event_name?: string | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
id: string;
|
|
32
|
-
code: string;
|
|
33
32
|
customer_id: string;
|
|
33
|
+
code: string;
|
|
34
34
|
feature_id?: string | undefined;
|
|
35
35
|
event_name?: string | undefined;
|
|
36
36
|
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AutumnContextParams } from '../../AutumnContext.mjs';
|
|
2
2
|
import { CheckParams } from '../../client/types/clientGenTypes.mjs';
|
|
3
|
-
import { a as CheckResult } from '../../genTypes-
|
|
4
|
-
import { b as Customer } from '../../cusTypes-
|
|
5
|
-
import { E as Entity } from '../../entTypes-
|
|
3
|
+
import { a as CheckResult } from '../../genTypes-C-CUGCpC.mjs';
|
|
4
|
+
import { b as Customer } from '../../cusTypes-D1pgp32k.mjs';
|
|
5
|
+
import { E as Entity } from '../../entTypes-Bw3nZ-hB.mjs';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../../ReactAutumnClient-
|
|
7
|
+
import '../../ReactAutumnClient-c3yiqDyr.mjs';
|
|
8
8
|
import '../../client/types/clientEntTypes.mjs';
|
|
9
9
|
import '../../error-DHbclCVh.mjs';
|
|
10
|
-
import '../../attachTypes
|
|
11
|
-
import '../../prodTypes-
|
|
10
|
+
import '../../attachTypes--vy7a8ko.mjs';
|
|
11
|
+
import '../../prodTypes-DWMxMrWG.mjs';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
interface AllowedParams {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AutumnContextParams } from '../../AutumnContext.js';
|
|
2
2
|
import { CheckParams } from '../../client/types/clientGenTypes.js';
|
|
3
|
-
import { a as CheckResult } from '../../genTypes-
|
|
4
|
-
import { b as Customer } from '../../cusTypes-
|
|
5
|
-
import { E as Entity } from '../../entTypes-
|
|
3
|
+
import { a as CheckResult } from '../../genTypes-CaRSTLgV.js';
|
|
4
|
+
import { b as Customer } from '../../cusTypes-B_vSLMNd.js';
|
|
5
|
+
import { E as Entity } from '../../entTypes-DQXsozw-.js';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../../ReactAutumnClient-
|
|
7
|
+
import '../../ReactAutumnClient-CDfo8hZ4.js';
|
|
8
8
|
import '../../client/types/clientEntTypes.js';
|
|
9
9
|
import '../../error-DHbclCVh.js';
|
|
10
|
-
import '../../attachTypes-
|
|
11
|
-
import '../../prodTypes-
|
|
10
|
+
import '../../attachTypes-BUrxxKCh.js';
|
|
11
|
+
import '../../prodTypes-DWMxMrWG.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
interface AllowedParams {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
-
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
6
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
8
|
var __export = (target, all) => {
|
|
11
9
|
for (var name in all)
|
|
@@ -19,14 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
17
|
}
|
|
20
18
|
return to;
|
|
21
19
|
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
-
mod
|
|
29
|
-
));
|
|
30
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
21
|
|
|
32
22
|
// src/libraries/react/hooks/helpers/handleCheck.ts
|
|
@@ -342,7 +332,6 @@ var toContainerResult = async ({
|
|
|
342
332
|
};
|
|
343
333
|
|
|
344
334
|
// src/utils/logger.ts
|
|
345
|
-
var import_chalk = __toESM(require("chalk"));
|
|
346
335
|
var getTime = () => {
|
|
347
336
|
let timeString = (/* @__PURE__ */ new Date()).toISOString();
|
|
348
337
|
return `[${timeString.split("T")[1].split(".")[0]}]`;
|
|
@@ -356,25 +345,25 @@ var logger = {
|
|
|
356
345
|
level: "info",
|
|
357
346
|
debug: (...args) => {
|
|
358
347
|
if (greaterThanLevel("debug")) {
|
|
359
|
-
console.log(getTime(),
|
|
348
|
+
console.log(getTime(), "DEBUG", ...args);
|
|
360
349
|
}
|
|
361
350
|
},
|
|
362
351
|
log: (...args) => {
|
|
363
|
-
console.log(getTime(),
|
|
352
|
+
console.log(getTime(), "INFO", ...args);
|
|
364
353
|
},
|
|
365
354
|
info: (...args) => {
|
|
366
355
|
if (greaterThanLevel("info")) {
|
|
367
|
-
console.log(getTime(),
|
|
356
|
+
console.log(getTime(), "INFO", ...args);
|
|
368
357
|
}
|
|
369
358
|
},
|
|
370
359
|
warn: (...args) => {
|
|
371
360
|
if (greaterThanLevel("warn")) {
|
|
372
|
-
console.log(getTime(),
|
|
361
|
+
console.log(getTime(), "WARN", ...args);
|
|
373
362
|
}
|
|
374
363
|
},
|
|
375
364
|
error: (...args) => {
|
|
376
365
|
if (greaterThanLevel("error")) {
|
|
377
|
-
console.log(getTime(),
|
|
366
|
+
console.log(getTime(), "ERROR", ...args);
|
|
378
367
|
}
|
|
379
368
|
}
|
|
380
369
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as Result, A as AutumnPromise } from '../../entTypes-
|
|
1
|
+
import { R as Result, A as AutumnPromise } from '../../entTypes-Bw3nZ-hB.mjs';
|
|
2
2
|
import { A as AutumnError } from '../../error-DHbclCVh.mjs';
|
|
3
|
-
import { a as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../../genTypes-
|
|
4
|
-
import { C as CheckoutResult } from '../../attachTypes
|
|
5
|
-
import { B as BillingPortalResult } from '../../cusTypes-
|
|
3
|
+
import { a as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../../genTypes-C-CUGCpC.mjs';
|
|
4
|
+
import { C as CheckoutResult } from '../../attachTypes--vy7a8ko.mjs';
|
|
5
|
+
import { B as BillingPortalResult } from '../../cusTypes-D1pgp32k.mjs';
|
|
6
6
|
import { AutumnContextParams } from '../../AutumnContext.mjs';
|
|
7
7
|
import { TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../../client/types/clientGenTypes.mjs';
|
|
8
8
|
import { AttachParams, CheckoutParams } from '../../client/types/clientAttachTypes.mjs';
|
|
9
|
-
import { A as AutumnClient } from '../../ReactAutumnClient-
|
|
10
|
-
import '../../prodTypes-
|
|
9
|
+
import { A as AutumnClient } from '../../ReactAutumnClient-c3yiqDyr.mjs';
|
|
10
|
+
import '../../prodTypes-DWMxMrWG.mjs';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'react';
|
|
13
13
|
import '../../client/types/clientEntTypes.mjs';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as Result, A as AutumnPromise } from '../../entTypes-
|
|
1
|
+
import { R as Result, A as AutumnPromise } from '../../entTypes-DQXsozw-.js';
|
|
2
2
|
import { A as AutumnError } from '../../error-DHbclCVh.js';
|
|
3
|
-
import { a as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../../genTypes-
|
|
4
|
-
import { C as CheckoutResult } from '../../attachTypes-
|
|
5
|
-
import { B as BillingPortalResult } from '../../cusTypes-
|
|
3
|
+
import { a as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../../genTypes-CaRSTLgV.js';
|
|
4
|
+
import { C as CheckoutResult } from '../../attachTypes-BUrxxKCh.js';
|
|
5
|
+
import { B as BillingPortalResult } from '../../cusTypes-B_vSLMNd.js';
|
|
6
6
|
import { AutumnContextParams } from '../../AutumnContext.js';
|
|
7
7
|
import { TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../../client/types/clientGenTypes.js';
|
|
8
8
|
import { AttachParams, CheckoutParams } from '../../client/types/clientAttachTypes.js';
|
|
9
|
-
import { A as AutumnClient } from '../../ReactAutumnClient-
|
|
10
|
-
import '../../prodTypes-
|
|
9
|
+
import { A as AutumnClient } from '../../ReactAutumnClient-CDfo8hZ4.js';
|
|
10
|
+
import '../../prodTypes-DWMxMrWG.js';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'react';
|
|
13
13
|
import '../../client/types/clientEntTypes.js';
|
|
@@ -344,7 +344,6 @@ var toContainerResult = async ({
|
|
|
344
344
|
};
|
|
345
345
|
|
|
346
346
|
// src/utils/logger.ts
|
|
347
|
-
var import_chalk = __toESM(require("chalk"));
|
|
348
347
|
var getTime = () => {
|
|
349
348
|
let timeString = (/* @__PURE__ */ new Date()).toISOString();
|
|
350
349
|
return `[${timeString.split("T")[1].split(".")[0]}]`;
|
|
@@ -358,25 +357,25 @@ var logger = {
|
|
|
358
357
|
level: "info",
|
|
359
358
|
debug: (...args) => {
|
|
360
359
|
if (greaterThanLevel("debug")) {
|
|
361
|
-
console.log(getTime(),
|
|
360
|
+
console.log(getTime(), "DEBUG", ...args);
|
|
362
361
|
}
|
|
363
362
|
},
|
|
364
363
|
log: (...args) => {
|
|
365
|
-
console.log(getTime(),
|
|
364
|
+
console.log(getTime(), "INFO", ...args);
|
|
366
365
|
},
|
|
367
366
|
info: (...args) => {
|
|
368
367
|
if (greaterThanLevel("info")) {
|
|
369
|
-
console.log(getTime(),
|
|
368
|
+
console.log(getTime(), "INFO", ...args);
|
|
370
369
|
}
|
|
371
370
|
},
|
|
372
371
|
warn: (...args) => {
|
|
373
372
|
if (greaterThanLevel("warn")) {
|
|
374
|
-
console.log(getTime(),
|
|
373
|
+
console.log(getTime(), "WARN", ...args);
|
|
375
374
|
}
|
|
376
375
|
},
|
|
377
376
|
error: (...args) => {
|
|
378
377
|
if (greaterThanLevel("error")) {
|
|
379
|
-
console.log(getTime(),
|
|
378
|
+
console.log(getTime(), "ERROR", ...args);
|
|
380
379
|
}
|
|
381
380
|
}
|
|
382
381
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useAutumnBase
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-4Q7BDIOS.mjs";
|
|
6
|
+
import "../../chunk-E2H5MYIO.mjs";
|
|
7
|
+
import "../../chunk-3JORYFTY.mjs";
|
|
8
8
|
export {
|
|
9
9
|
useAutumnBase
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import { QueryParams } from '../client/types/clientGenTypes.mjs';
|
|
3
3
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
4
|
-
import { Q as QueryResult } from '../genTypes-
|
|
4
|
+
import { Q as QueryResult } from '../genTypes-C-CUGCpC.mjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../prodTypes-
|
|
6
|
+
import '../prodTypes-DWMxMrWG.mjs';
|
|
7
7
|
|
|
8
8
|
declare const useAnalytics: (params: QueryParams) => {
|
|
9
9
|
data: ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import { QueryParams } from '../client/types/clientGenTypes.js';
|
|
3
3
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
4
|
-
import { Q as QueryResult } from '../genTypes-
|
|
4
|
+
import { Q as QueryResult } from '../genTypes-CaRSTLgV.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../prodTypes-
|
|
6
|
+
import '../prodTypes-DWMxMrWG.js';
|
|
7
7
|
|
|
8
8
|
declare const useAnalytics: (params: QueryParams) => {
|
|
9
9
|
data: ({
|
|
@@ -357,7 +357,6 @@ var toContainerResult = async ({
|
|
|
357
357
|
};
|
|
358
358
|
|
|
359
359
|
// src/utils/logger.ts
|
|
360
|
-
var import_chalk = __toESM(require("chalk"));
|
|
361
360
|
var getTime = () => {
|
|
362
361
|
let timeString = (/* @__PURE__ */ new Date()).toISOString();
|
|
363
362
|
return `[${timeString.split("T")[1].split(".")[0]}]`;
|
|
@@ -371,25 +370,25 @@ var logger = {
|
|
|
371
370
|
level: "info",
|
|
372
371
|
debug: (...args) => {
|
|
373
372
|
if (greaterThanLevel("debug")) {
|
|
374
|
-
console.log(getTime(),
|
|
373
|
+
console.log(getTime(), "DEBUG", ...args);
|
|
375
374
|
}
|
|
376
375
|
},
|
|
377
376
|
log: (...args) => {
|
|
378
|
-
console.log(getTime(),
|
|
377
|
+
console.log(getTime(), "INFO", ...args);
|
|
379
378
|
},
|
|
380
379
|
info: (...args) => {
|
|
381
380
|
if (greaterThanLevel("info")) {
|
|
382
|
-
console.log(getTime(),
|
|
381
|
+
console.log(getTime(), "INFO", ...args);
|
|
383
382
|
}
|
|
384
383
|
},
|
|
385
384
|
warn: (...args) => {
|
|
386
385
|
if (greaterThanLevel("warn")) {
|
|
387
|
-
console.log(getTime(),
|
|
386
|
+
console.log(getTime(), "WARN", ...args);
|
|
388
387
|
}
|
|
389
388
|
},
|
|
390
389
|
error: (...args) => {
|
|
391
390
|
if (greaterThanLevel("error")) {
|
|
392
|
-
console.log(getTime(),
|
|
391
|
+
console.log(getTime(), "ERROR", ...args);
|
|
393
392
|
}
|
|
394
393
|
}
|
|
395
394
|
};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useAnalytics
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-JVCOY7ZL.mjs";
|
|
10
|
-
import "../chunk-CIBQ4BJU.mjs";
|
|
5
|
+
} from "../chunk-YDRULJZE.mjs";
|
|
6
|
+
import "../chunk-YEG5KJEI.mjs";
|
|
7
|
+
import "../chunk-FOXUAY7Y.mjs";
|
|
8
|
+
import "../chunk-3JORYFTY.mjs";
|
|
11
9
|
import "../chunk-V575SGOW.mjs";
|
|
12
10
|
import "../chunk-ZV4RPZTM.mjs";
|
|
11
|
+
import "../chunk-JVCOY7ZL.mjs";
|
|
12
|
+
import "../chunk-CIBQ4BJU.mjs";
|
|
13
13
|
import "../chunk-VTGR7VVK.mjs";
|
|
14
14
|
import "../chunk-WFFVOEUG.mjs";
|
|
15
15
|
import "../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UseCustomerParams, UseCustomerResult } from './useCustomerBase.mjs';
|
|
2
2
|
import '../error-DHbclCVh.mjs';
|
|
3
|
-
import '../genTypes-
|
|
4
|
-
import '../prodTypes-
|
|
3
|
+
import '../genTypes-C-CUGCpC.mjs';
|
|
4
|
+
import '../prodTypes-DWMxMrWG.mjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../attachTypes
|
|
7
|
-
import '../entTypes-
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
import '../ReactAutumnClient-
|
|
6
|
+
import '../attachTypes--vy7a8ko.mjs';
|
|
7
|
+
import '../entTypes-Bw3nZ-hB.mjs';
|
|
8
|
+
import '../cusTypes-D1pgp32k.mjs';
|
|
9
|
+
import '../ReactAutumnClient-c3yiqDyr.mjs';
|
|
10
10
|
import '../client/types/clientEntTypes.mjs';
|
|
11
11
|
import '../client/types/clientGenTypes.mjs';
|
|
12
12
|
import '../client/types/clientReferralTypes.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UseCustomerParams, UseCustomerResult } from './useCustomerBase.js';
|
|
2
2
|
import '../error-DHbclCVh.js';
|
|
3
|
-
import '../genTypes-
|
|
4
|
-
import '../prodTypes-
|
|
3
|
+
import '../genTypes-CaRSTLgV.js';
|
|
4
|
+
import '../prodTypes-DWMxMrWG.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../attachTypes-
|
|
7
|
-
import '../entTypes-
|
|
8
|
-
import '../cusTypes-
|
|
9
|
-
import '../ReactAutumnClient-
|
|
6
|
+
import '../attachTypes-BUrxxKCh.js';
|
|
7
|
+
import '../entTypes-DQXsozw-.js';
|
|
8
|
+
import '../cusTypes-B_vSLMNd.js';
|
|
9
|
+
import '../ReactAutumnClient-CDfo8hZ4.js';
|
|
10
10
|
import '../client/types/clientEntTypes.js';
|
|
11
11
|
import '../client/types/clientGenTypes.js';
|
|
12
12
|
import '../client/types/clientReferralTypes.js';
|
|
@@ -357,7 +357,6 @@ var toContainerResult = async ({
|
|
|
357
357
|
};
|
|
358
358
|
|
|
359
359
|
// src/utils/logger.ts
|
|
360
|
-
var import_chalk = __toESM(require("chalk"));
|
|
361
360
|
var getTime = () => {
|
|
362
361
|
let timeString = (/* @__PURE__ */ new Date()).toISOString();
|
|
363
362
|
return `[${timeString.split("T")[1].split(".")[0]}]`;
|
|
@@ -371,25 +370,25 @@ var logger = {
|
|
|
371
370
|
level: "info",
|
|
372
371
|
debug: (...args) => {
|
|
373
372
|
if (greaterThanLevel("debug")) {
|
|
374
|
-
console.log(getTime(),
|
|
373
|
+
console.log(getTime(), "DEBUG", ...args);
|
|
375
374
|
}
|
|
376
375
|
},
|
|
377
376
|
log: (...args) => {
|
|
378
|
-
console.log(getTime(),
|
|
377
|
+
console.log(getTime(), "INFO", ...args);
|
|
379
378
|
},
|
|
380
379
|
info: (...args) => {
|
|
381
380
|
if (greaterThanLevel("info")) {
|
|
382
|
-
console.log(getTime(),
|
|
381
|
+
console.log(getTime(), "INFO", ...args);
|
|
383
382
|
}
|
|
384
383
|
},
|
|
385
384
|
warn: (...args) => {
|
|
386
385
|
if (greaterThanLevel("warn")) {
|
|
387
|
-
console.log(getTime(),
|
|
386
|
+
console.log(getTime(), "WARN", ...args);
|
|
388
387
|
}
|
|
389
388
|
},
|
|
390
389
|
error: (...args) => {
|
|
391
390
|
if (greaterThanLevel("error")) {
|
|
392
|
-
console.log(getTime(),
|
|
391
|
+
console.log(getTime(), "ERROR", ...args);
|
|
393
392
|
}
|
|
394
393
|
}
|
|
395
394
|
};
|