autumn-js 0.1.8 → 0.1.10
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-BRZHNRU5.mjs → chunk-7WWKVE4J.mjs} +10 -10
- 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-DyuV6oJo.d.mts → referralTypes-DpLmOy8-.d.mts} +61 -43
- package/dist/libraries/backend/{referralTypes-zcdPSX-p.d.ts → referralTypes-nXl36Opw.d.ts} +61 -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 +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.js +10 -2
- package/dist/libraries/react/AutumnContext.mjs +3 -3
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +10 -2
- package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
- package/dist/libraries/react/{ReactAutumnClient-BUq9E84_.d.ts → ReactAutumnClient-BozBPLWS.d.ts} +24 -17
- package/dist/libraries/react/{ReactAutumnClient-CpAGyyur.d.mts → ReactAutumnClient-CDp4DLo0.d.mts} +24 -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 +10 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{attachTypes-CcB6xjSF.d.ts → attachTypes-BqXH38Ft.d.mts} +38 -5
- package/dist/libraries/react/{attachTypes-DqUN3q8s.d.mts → attachTypes-DxfaWOQB.d.ts} +38 -5
- package/dist/libraries/react/{chunk-WEKDMT3Y.mjs → chunk-3YIV3N5Y.mjs} +1 -1
- package/dist/libraries/react/{chunk-OUWRRLOI.mjs → chunk-4EPRIJNB.mjs} +25 -25
- package/dist/libraries/react/{chunk-BXMZYHE7.mjs → chunk-7JNU5ABT.mjs} +6 -6
- package/dist/libraries/react/{chunk-WH5MYLSM.mjs → chunk-7LOW3KZ3.mjs} +2 -2
- package/dist/libraries/react/{chunk-HUKIJ7DB.mjs → chunk-CPN2LD2I.mjs} +2 -2
- package/dist/libraries/react/{chunk-TM6QWQLU.mjs → chunk-DRUVAAUW.mjs} +3 -3
- package/dist/libraries/react/{chunk-T3B4TVD4.mjs → chunk-E2BEY4ZP.mjs} +1 -1
- package/dist/libraries/react/{chunk-5K2M3CQZ.mjs → chunk-FEISQQNM.mjs} +1 -1
- package/dist/libraries/react/{chunk-WT5K3J2K.mjs → chunk-I2A7PK2L.mjs} +17 -17
- package/dist/libraries/react/{chunk-JK2TFCOG.mjs → chunk-IRTAGYDD.mjs} +2 -2
- package/dist/libraries/react/{chunk-YCDNQZT5.mjs → chunk-JGDTNJTR.mjs} +2 -2
- package/dist/libraries/react/{chunk-WQXUZO6K.mjs → chunk-JIWMNR2E.mjs} +10 -2
- package/dist/libraries/react/{chunk-6I7KWRND.mjs → chunk-JJVQIA5V.mjs} +1 -1
- package/dist/libraries/react/{chunk-IDSAD3KF.mjs → chunk-KG2NPWAE.mjs} +1 -1
- package/dist/libraries/react/{chunk-M7SUFZ42.mjs → chunk-KUS3X33V.mjs} +1 -1
- package/dist/libraries/react/{chunk-2TQBFCWM.mjs → chunk-LCWL3TIT.mjs} +6 -6
- package/dist/libraries/react/{chunk-JNR7QAPG.mjs → chunk-MKP43WD6.mjs} +1 -1
- package/dist/libraries/react/{chunk-I6BTXKGK.mjs → chunk-QZPMYB2V.mjs} +2 -2
- package/dist/libraries/react/{chunk-UOJ6NIVD.mjs → chunk-TBRYCVBL.mjs} +3 -3
- package/dist/libraries/react/{chunk-A5YPS4K4.mjs → chunk-UQ5HI732.mjs} +3 -3
- package/dist/libraries/react/{chunk-5OJIHAX7.mjs → chunk-URFTKUL2.mjs} +1 -1
- package/dist/libraries/react/{chunk-MW2FSYG3.mjs → chunk-XTONWQ65.mjs} +1 -1
- package/dist/libraries/react/{chunk-NHDZWWMZ.mjs → chunk-YWQTQ72B.mjs} +2 -2
- 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 +10 -2
- package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
- 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 +20 -20
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +20 -20
- 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 +10 -2
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +10 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +28 -28
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +2 -2
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +1 -1
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-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 +28 -28
- 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 +10 -2
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +28 -28
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-CSmAk5io.d.mts → cusTypes-B2w8Kg9H.d.mts} +6 -5
- package/dist/libraries/react/{cusTypes-DHjT-9rV.d.ts → cusTypes-C8UH2xVw.d.ts} +6 -5
- package/dist/libraries/react/{entTypes-CoF9enrR.d.ts → entTypes-Byz3wYbQ.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-S4hkh1RG.d.mts → entTypes-ItJ8BoHV.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-fEH_nqSm.d.mts → genTypes-DSvR32on.d.mts} +5 -5
- package/dist/libraries/react/{genTypes-DsiuvyWS.d.ts → genTypes-EyxQImzh.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 +10 -2
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +14 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +14 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +10 -2
- 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 +10 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
- 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 +10 -2
- package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
- 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 +10 -2
- package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
- package/dist/libraries/react/hooks/useEntity.d.mts +13 -6
- package/dist/libraries/react/hooks/useEntity.d.ts +13 -6
- package/dist/libraries/react/hooks/useEntity.js +10 -2
- package/dist/libraries/react/hooks/useEntity.mjs +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.mts +15 -8
- package/dist/libraries/react/hooks/useEntityBase.d.ts +15 -8
- package/dist/libraries/react/hooks/useEntityBase.js +10 -2
- package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
- 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 +10 -2
- package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.js +10 -2
- package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
- 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 +10 -2
- 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.d.mts +41 -0
- package/dist/libraries/react/index.d.ts +41 -0
- package/dist/libraries/react/index.js +10 -2
- package/dist/libraries/react/index.mjs +10 -2
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.mts → prodTypes-Bmoibf-M.d.mts} +5 -5
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.ts → prodTypes-Bmoibf-M.d.ts} +5 -5
- package/dist/next/client/NextAutumnClient.d.mts +10 -3
- package/dist/next/client/NextAutumnClient.d.ts +10 -3
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/{attachTypes-DZFtFEmv.d.mts → attachTypes--97TsCMB.d.mts} +33 -0
- package/dist/next/client/{attachTypes-DxJ0LCjT.d.ts → attachTypes-B1sM-0vf.d.ts} +33 -0
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-BHYpk8bK.d.ts → cusTypes-DRJ574aU.d.ts} +1 -0
- package/dist/next/client/{cusTypes-Q54uLNO5.d.mts → cusTypes-c6-g1-Yy.d.mts} +1 -0
- package/dist/next/client/{entTypes-CHHBdhBK.d.mts → entTypes-Bf0302Om.d.mts} +1 -1
- package/dist/next/client/{entTypes-vjIG3B1G.d.ts → entTypes-KSBxuyW-.d.ts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +9 -2
- package/dist/next/client/hooks/useAutumn.d.ts +9 -2
- package/dist/next/client/hooks/useCustomer.d.mts +3 -3
- package/dist/next/client/hooks/useCustomer.d.ts +3 -3
- package/dist/next/client/hooks/useEntity.d.mts +11 -4
- package/dist/next/client/hooks/useEntity.d.ts +11 -4
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +34 -17
- package/dist/next/server/cusActions.d.ts +34 -17
- package/dist/next/server/{cusTypes-DgoOZMIt.d.ts → cusTypes-Cu6SOTmn.d.mts} +9 -8
- package/dist/next/server/{cusTypes-DgoOZMIt.d.mts → cusTypes-Cu6SOTmn.d.ts} +9 -8
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +51 -0
- package/dist/sdk/index.d.ts +51 -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/{chunk-KWNH6C27.mjs → chunk-7TYAAD2T.mjs} +11 -11
|
@@ -727,7 +727,8 @@ var AttachParamsSchema = import_zod7.z.object({
|
|
|
727
727
|
customer_data: CustomerDataSchema.optional(),
|
|
728
728
|
entity_data: import_zod7.z.any().optional(),
|
|
729
729
|
checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
|
|
730
|
-
reward: import_zod7.z.string().optional()
|
|
730
|
+
reward: import_zod7.z.string().optional(),
|
|
731
|
+
invoice: import_zod7.z.boolean().optional()
|
|
731
732
|
});
|
|
732
733
|
var AttachResultSchema = import_zod7.z.object({
|
|
733
734
|
checkout_url: import_zod7.z.string().optional(),
|
|
@@ -735,7 +736,14 @@ var AttachResultSchema = import_zod7.z.object({
|
|
|
735
736
|
product_ids: import_zod7.z.array(import_zod7.z.string()),
|
|
736
737
|
code: import_zod7.z.string(),
|
|
737
738
|
message: import_zod7.z.string(),
|
|
738
|
-
customer_data: import_zod7.z.any().optional()
|
|
739
|
+
customer_data: import_zod7.z.any().optional(),
|
|
740
|
+
invoice: import_zod7.z.object({
|
|
741
|
+
status: import_zod7.z.string(),
|
|
742
|
+
stripe_id: import_zod7.z.string(),
|
|
743
|
+
hosted_invoice_url: import_zod7.z.string().nullable(),
|
|
744
|
+
total: import_zod7.z.number(),
|
|
745
|
+
currency: import_zod7.z.string()
|
|
746
|
+
}).optional()
|
|
739
747
|
});
|
|
740
748
|
var CheckoutParamsSchema = import_zod7.z.object({
|
|
741
749
|
customer_id: import_zod7.z.string(),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { P as Product } from '../prodTypes
|
|
2
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { P as Product } from '../prodTypes-Bmoibf-M.mjs';
|
|
2
|
+
import { A as AutumnClient } from '../ReactAutumnClient-CDp4DLo0.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../client/types/clientEntTypes.mjs';
|
|
5
5
|
import '../client/types/clientGenTypes.mjs';
|
|
6
6
|
import '../error-DHbclCVh.mjs';
|
|
7
|
-
import '../genTypes-
|
|
8
|
-
import '../attachTypes-
|
|
9
|
-
import '../entTypes-
|
|
10
|
-
import '../cusTypes-
|
|
7
|
+
import '../genTypes-DSvR32on.mjs';
|
|
8
|
+
import '../attachTypes-BqXH38Ft.mjs';
|
|
9
|
+
import '../entTypes-ItJ8BoHV.mjs';
|
|
10
|
+
import '../cusTypes-B2w8Kg9H.mjs';
|
|
11
11
|
|
|
12
12
|
declare const useProductsBase: ({ client }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { P as Product } from '../prodTypes
|
|
2
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
1
|
+
import { P as Product } from '../prodTypes-Bmoibf-M.js';
|
|
2
|
+
import { A as AutumnClient } from '../ReactAutumnClient-BozBPLWS.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../client/types/clientEntTypes.js';
|
|
5
5
|
import '../client/types/clientGenTypes.js';
|
|
6
6
|
import '../error-DHbclCVh.js';
|
|
7
|
-
import '../genTypes-
|
|
8
|
-
import '../attachTypes-
|
|
9
|
-
import '../entTypes-
|
|
10
|
-
import '../cusTypes-
|
|
7
|
+
import '../genTypes-EyxQImzh.js';
|
|
8
|
+
import '../attachTypes-DxfaWOQB.js';
|
|
9
|
+
import '../entTypes-Byz3wYbQ.js';
|
|
10
|
+
import '../cusTypes-C8UH2xVw.js';
|
|
11
11
|
|
|
12
12
|
declare const useProductsBase: ({ client }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -411,6 +411,7 @@ interface Customer {
|
|
|
411
411
|
products: CustomerProduct[];
|
|
412
412
|
features: Record<string, CustomerFeature>;
|
|
413
413
|
invoices?: CustomerInvoice[];
|
|
414
|
+
payment_method?: any;
|
|
414
415
|
}
|
|
415
416
|
declare const CustomerDataSchema: z.ZodObject<{
|
|
416
417
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -505,12 +506,38 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
505
506
|
code: z.ZodString;
|
|
506
507
|
message: z.ZodString;
|
|
507
508
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
509
|
+
invoice: z.ZodOptional<z.ZodObject<{
|
|
510
|
+
status: z.ZodString;
|
|
511
|
+
stripe_id: z.ZodString;
|
|
512
|
+
hosted_invoice_url: z.ZodNullable<z.ZodString>;
|
|
513
|
+
total: z.ZodNumber;
|
|
514
|
+
currency: z.ZodString;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
status: string;
|
|
517
|
+
stripe_id: string;
|
|
518
|
+
hosted_invoice_url: string | null;
|
|
519
|
+
total: number;
|
|
520
|
+
currency: string;
|
|
521
|
+
}, {
|
|
522
|
+
status: string;
|
|
523
|
+
stripe_id: string;
|
|
524
|
+
hosted_invoice_url: string | null;
|
|
525
|
+
total: number;
|
|
526
|
+
currency: string;
|
|
527
|
+
}>>;
|
|
508
528
|
}, "strip", z.ZodTypeAny, {
|
|
509
529
|
customer_id: string;
|
|
510
530
|
code: string;
|
|
511
531
|
message: string;
|
|
512
532
|
product_ids: string[];
|
|
513
533
|
customer_data?: any;
|
|
534
|
+
invoice?: {
|
|
535
|
+
status: string;
|
|
536
|
+
stripe_id: string;
|
|
537
|
+
hosted_invoice_url: string | null;
|
|
538
|
+
total: number;
|
|
539
|
+
currency: string;
|
|
540
|
+
} | undefined;
|
|
514
541
|
checkout_url?: string | undefined;
|
|
515
542
|
}, {
|
|
516
543
|
customer_id: string;
|
|
@@ -518,6 +545,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
518
545
|
message: string;
|
|
519
546
|
product_ids: string[];
|
|
520
547
|
customer_data?: any;
|
|
548
|
+
invoice?: {
|
|
549
|
+
status: string;
|
|
550
|
+
stripe_id: string;
|
|
551
|
+
hosted_invoice_url: string | null;
|
|
552
|
+
total: number;
|
|
553
|
+
currency: string;
|
|
554
|
+
} | undefined;
|
|
521
555
|
checkout_url?: string | undefined;
|
|
522
556
|
}>;
|
|
523
557
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
@@ -902,6 +936,13 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
902
936
|
message: string;
|
|
903
937
|
product_ids: string[];
|
|
904
938
|
customer_data?: any;
|
|
939
|
+
invoice?: {
|
|
940
|
+
status: string;
|
|
941
|
+
stripe_id: string;
|
|
942
|
+
hosted_invoice_url: string | null;
|
|
943
|
+
total: number;
|
|
944
|
+
currency: string;
|
|
945
|
+
} | undefined;
|
|
905
946
|
checkout_url?: string | undefined;
|
|
906
947
|
} | CheckResult, AutumnError>>;
|
|
907
948
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
@@ -411,6 +411,7 @@ interface Customer {
|
|
|
411
411
|
products: CustomerProduct[];
|
|
412
412
|
features: Record<string, CustomerFeature>;
|
|
413
413
|
invoices?: CustomerInvoice[];
|
|
414
|
+
payment_method?: any;
|
|
414
415
|
}
|
|
415
416
|
declare const CustomerDataSchema: z.ZodObject<{
|
|
416
417
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -505,12 +506,38 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
505
506
|
code: z.ZodString;
|
|
506
507
|
message: z.ZodString;
|
|
507
508
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
509
|
+
invoice: z.ZodOptional<z.ZodObject<{
|
|
510
|
+
status: z.ZodString;
|
|
511
|
+
stripe_id: z.ZodString;
|
|
512
|
+
hosted_invoice_url: z.ZodNullable<z.ZodString>;
|
|
513
|
+
total: z.ZodNumber;
|
|
514
|
+
currency: z.ZodString;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
status: string;
|
|
517
|
+
stripe_id: string;
|
|
518
|
+
hosted_invoice_url: string | null;
|
|
519
|
+
total: number;
|
|
520
|
+
currency: string;
|
|
521
|
+
}, {
|
|
522
|
+
status: string;
|
|
523
|
+
stripe_id: string;
|
|
524
|
+
hosted_invoice_url: string | null;
|
|
525
|
+
total: number;
|
|
526
|
+
currency: string;
|
|
527
|
+
}>>;
|
|
508
528
|
}, "strip", z.ZodTypeAny, {
|
|
509
529
|
customer_id: string;
|
|
510
530
|
code: string;
|
|
511
531
|
message: string;
|
|
512
532
|
product_ids: string[];
|
|
513
533
|
customer_data?: any;
|
|
534
|
+
invoice?: {
|
|
535
|
+
status: string;
|
|
536
|
+
stripe_id: string;
|
|
537
|
+
hosted_invoice_url: string | null;
|
|
538
|
+
total: number;
|
|
539
|
+
currency: string;
|
|
540
|
+
} | undefined;
|
|
514
541
|
checkout_url?: string | undefined;
|
|
515
542
|
}, {
|
|
516
543
|
customer_id: string;
|
|
@@ -518,6 +545,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
518
545
|
message: string;
|
|
519
546
|
product_ids: string[];
|
|
520
547
|
customer_data?: any;
|
|
548
|
+
invoice?: {
|
|
549
|
+
status: string;
|
|
550
|
+
stripe_id: string;
|
|
551
|
+
hosted_invoice_url: string | null;
|
|
552
|
+
total: number;
|
|
553
|
+
currency: string;
|
|
554
|
+
} | undefined;
|
|
521
555
|
checkout_url?: string | undefined;
|
|
522
556
|
}>;
|
|
523
557
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
@@ -902,6 +936,13 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
902
936
|
message: string;
|
|
903
937
|
product_ids: string[];
|
|
904
938
|
customer_data?: any;
|
|
939
|
+
invoice?: {
|
|
940
|
+
status: string;
|
|
941
|
+
stripe_id: string;
|
|
942
|
+
hosted_invoice_url: string | null;
|
|
943
|
+
total: number;
|
|
944
|
+
currency: string;
|
|
945
|
+
} | undefined;
|
|
905
946
|
checkout_url?: string | undefined;
|
|
906
947
|
} | CheckResult, AutumnError>>;
|
|
907
948
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
@@ -798,7 +798,8 @@ var AttachParamsSchema = import_zod7.z.object({
|
|
|
798
798
|
customer_data: CustomerDataSchema.optional(),
|
|
799
799
|
entity_data: import_zod7.z.any().optional(),
|
|
800
800
|
checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
|
|
801
|
-
reward: import_zod7.z.string().optional()
|
|
801
|
+
reward: import_zod7.z.string().optional(),
|
|
802
|
+
invoice: import_zod7.z.boolean().optional()
|
|
802
803
|
});
|
|
803
804
|
var AttachResultSchema = import_zod7.z.object({
|
|
804
805
|
checkout_url: import_zod7.z.string().optional(),
|
|
@@ -806,7 +807,14 @@ var AttachResultSchema = import_zod7.z.object({
|
|
|
806
807
|
product_ids: import_zod7.z.array(import_zod7.z.string()),
|
|
807
808
|
code: import_zod7.z.string(),
|
|
808
809
|
message: import_zod7.z.string(),
|
|
809
|
-
customer_data: import_zod7.z.any().optional()
|
|
810
|
+
customer_data: import_zod7.z.any().optional(),
|
|
811
|
+
invoice: import_zod7.z.object({
|
|
812
|
+
status: import_zod7.z.string(),
|
|
813
|
+
stripe_id: import_zod7.z.string(),
|
|
814
|
+
hosted_invoice_url: import_zod7.z.string().nullable(),
|
|
815
|
+
total: import_zod7.z.number(),
|
|
816
|
+
currency: import_zod7.z.string()
|
|
817
|
+
}).optional()
|
|
810
818
|
});
|
|
811
819
|
var CheckoutParamsSchema = import_zod7.z.object({
|
|
812
820
|
customer_id: import_zod7.z.string(),
|
|
@@ -754,7 +754,8 @@ var AttachParamsSchema = z7.object({
|
|
|
754
754
|
customer_data: CustomerDataSchema.optional(),
|
|
755
755
|
entity_data: z7.any().optional(),
|
|
756
756
|
checkout_session_params: z7.record(z7.any()).optional(),
|
|
757
|
-
reward: z7.string().optional()
|
|
757
|
+
reward: z7.string().optional(),
|
|
758
|
+
invoice: z7.boolean().optional()
|
|
758
759
|
});
|
|
759
760
|
var AttachResultSchema = z7.object({
|
|
760
761
|
checkout_url: z7.string().optional(),
|
|
@@ -762,7 +763,14 @@ var AttachResultSchema = z7.object({
|
|
|
762
763
|
product_ids: z7.array(z7.string()),
|
|
763
764
|
code: z7.string(),
|
|
764
765
|
message: z7.string(),
|
|
765
|
-
customer_data: z7.any().optional()
|
|
766
|
+
customer_data: z7.any().optional(),
|
|
767
|
+
invoice: z7.object({
|
|
768
|
+
status: z7.string(),
|
|
769
|
+
stripe_id: z7.string(),
|
|
770
|
+
hosted_invoice_url: z7.string().nullable(),
|
|
771
|
+
total: z7.number(),
|
|
772
|
+
currency: z7.string()
|
|
773
|
+
}).optional()
|
|
766
774
|
});
|
|
767
775
|
var CheckoutParamsSchema = z7.object({
|
|
768
776
|
customer_id: z7.string(),
|
|
@@ -78,11 +78,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
78
78
|
credit_amount: number;
|
|
79
79
|
}>, "many">>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
customer_id: string;
|
|
81
82
|
allowed: boolean;
|
|
82
83
|
feature_id: string;
|
|
83
|
-
customer_id: string;
|
|
84
84
|
required_balance: number;
|
|
85
|
-
usage_limit?: number | undefined;
|
|
86
85
|
entity_id?: string | undefined;
|
|
87
86
|
unlimited?: boolean | undefined;
|
|
88
87
|
interval?: ProductItemInterval | undefined;
|
|
@@ -91,6 +90,7 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
91
90
|
included_usage?: number | undefined;
|
|
92
91
|
next_reset_at?: number | null | undefined;
|
|
93
92
|
overage_allowed?: boolean | undefined;
|
|
93
|
+
usage_limit?: number | undefined;
|
|
94
94
|
rollovers?: {
|
|
95
95
|
balance: number;
|
|
96
96
|
expires_at: number;
|
|
@@ -107,11 +107,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
107
107
|
credit_amount: number;
|
|
108
108
|
}[] | undefined;
|
|
109
109
|
}, {
|
|
110
|
+
customer_id: string;
|
|
110
111
|
allowed: boolean;
|
|
111
112
|
feature_id: string;
|
|
112
|
-
customer_id: string;
|
|
113
113
|
required_balance: number;
|
|
114
|
-
usage_limit?: number | undefined;
|
|
115
114
|
entity_id?: string | undefined;
|
|
116
115
|
unlimited?: boolean | undefined;
|
|
117
116
|
interval?: ProductItemInterval | undefined;
|
|
@@ -120,6 +119,7 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
120
119
|
included_usage?: number | undefined;
|
|
121
120
|
next_reset_at?: number | null | undefined;
|
|
122
121
|
overage_allowed?: boolean | undefined;
|
|
122
|
+
usage_limit?: number | undefined;
|
|
123
123
|
rollovers?: {
|
|
124
124
|
balance: number;
|
|
125
125
|
expires_at: number;
|
|
@@ -251,4 +251,4 @@ interface Product {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type
|
|
254
|
+
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type CheckFeatureResult as a, type CheckProductResult as b, type ProductItem as c, ProductItemInterval as d, type ProductScenario as e };
|
|
@@ -78,11 +78,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
78
78
|
credit_amount: number;
|
|
79
79
|
}>, "many">>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
customer_id: string;
|
|
81
82
|
allowed: boolean;
|
|
82
83
|
feature_id: string;
|
|
83
|
-
customer_id: string;
|
|
84
84
|
required_balance: number;
|
|
85
|
-
usage_limit?: number | undefined;
|
|
86
85
|
entity_id?: string | undefined;
|
|
87
86
|
unlimited?: boolean | undefined;
|
|
88
87
|
interval?: ProductItemInterval | undefined;
|
|
@@ -91,6 +90,7 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
91
90
|
included_usage?: number | undefined;
|
|
92
91
|
next_reset_at?: number | null | undefined;
|
|
93
92
|
overage_allowed?: boolean | undefined;
|
|
93
|
+
usage_limit?: number | undefined;
|
|
94
94
|
rollovers?: {
|
|
95
95
|
balance: number;
|
|
96
96
|
expires_at: number;
|
|
@@ -107,11 +107,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
107
107
|
credit_amount: number;
|
|
108
108
|
}[] | undefined;
|
|
109
109
|
}, {
|
|
110
|
+
customer_id: string;
|
|
110
111
|
allowed: boolean;
|
|
111
112
|
feature_id: string;
|
|
112
|
-
customer_id: string;
|
|
113
113
|
required_balance: number;
|
|
114
|
-
usage_limit?: number | undefined;
|
|
115
114
|
entity_id?: string | undefined;
|
|
116
115
|
unlimited?: boolean | undefined;
|
|
117
116
|
interval?: ProductItemInterval | undefined;
|
|
@@ -120,6 +119,7 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
120
119
|
included_usage?: number | undefined;
|
|
121
120
|
next_reset_at?: number | null | undefined;
|
|
122
121
|
overage_allowed?: boolean | undefined;
|
|
122
|
+
usage_limit?: number | undefined;
|
|
123
123
|
rollovers?: {
|
|
124
124
|
balance: number;
|
|
125
125
|
expires_at: number;
|
|
@@ -251,4 +251,4 @@ interface Product {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type
|
|
254
|
+
export { AppEnv as A, type CheckFeaturePreview as C, type Product as P, type CheckFeatureResult as a, type CheckProductResult as b, type ProductItem as c, ProductItemInterval as d, type ProductScenario as e };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as Result, a as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, Q as QueryResult, A as AttachParams, c as CancelParams, d as CancelResult, g as CheckParams, T as TrackParams, b as TrackResult } from './clientAttachTypes-qsdoMt_B.mjs';
|
|
2
|
-
import { C as CheckoutResult, A as AttachResult } from './attachTypes
|
|
3
|
-
import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-
|
|
4
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
2
|
+
import { C as CheckoutResult, A as AttachResult } from './attachTypes--97TsCMB.mjs';
|
|
3
|
+
import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-c6-g1-Yy.mjs';
|
|
4
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-Bf0302Om.mjs';
|
|
5
5
|
import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.mjs';
|
|
6
6
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
7
7
|
import { P as ProductItem, c as ProductScenario, a as Product } from './prodTypes-CxvB1YY3.mjs';
|
|
@@ -88,6 +88,13 @@ declare class AutumnClient {
|
|
|
88
88
|
product_ids: string[];
|
|
89
89
|
checkout_url?: string | undefined;
|
|
90
90
|
customer_data?: any;
|
|
91
|
+
invoice?: {
|
|
92
|
+
status: string;
|
|
93
|
+
stripe_id: string;
|
|
94
|
+
hosted_invoice_url: string | null;
|
|
95
|
+
total: number;
|
|
96
|
+
currency: string;
|
|
97
|
+
} | undefined;
|
|
91
98
|
}>;
|
|
92
99
|
checkout: (params: {
|
|
93
100
|
productId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as Result, a as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, Q as QueryResult, A as AttachParams, c as CancelParams, d as CancelResult, g as CheckParams, T as TrackParams, b as TrackResult } from './clientAttachTypes-BXtfXB4v.js';
|
|
2
|
-
import { C as CheckoutResult, A as AttachResult } from './attachTypes-
|
|
3
|
-
import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-
|
|
4
|
-
import { E as Entity, D as DeleteEntityResult } from './entTypes-
|
|
2
|
+
import { C as CheckoutResult, A as AttachResult } from './attachTypes-B1sM-0vf.js';
|
|
3
|
+
import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-DRJ574aU.js';
|
|
4
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-KSBxuyW-.js';
|
|
5
5
|
import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.js';
|
|
6
6
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
7
7
|
import { P as ProductItem, c as ProductScenario, a as Product } from './prodTypes-CxvB1YY3.js';
|
|
@@ -88,6 +88,13 @@ declare class AutumnClient {
|
|
|
88
88
|
product_ids: string[];
|
|
89
89
|
checkout_url?: string | undefined;
|
|
90
90
|
customer_data?: any;
|
|
91
|
+
invoice?: {
|
|
92
|
+
status: string;
|
|
93
|
+
stripe_id: string;
|
|
94
|
+
hosted_invoice_url: string | null;
|
|
95
|
+
total: number;
|
|
96
|
+
currency: string;
|
|
97
|
+
} | undefined;
|
|
91
98
|
}>;
|
|
92
99
|
checkout: (params: {
|
|
93
100
|
productId: string;
|
|
@@ -19,6 +19,25 @@ 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;
|
|
@@ -26,6 +45,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
26
45
|
product_ids: string[];
|
|
27
46
|
checkout_url?: string | undefined;
|
|
28
47
|
customer_data?: any;
|
|
48
|
+
invoice?: {
|
|
49
|
+
status: string;
|
|
50
|
+
stripe_id: string;
|
|
51
|
+
hosted_invoice_url: string | null;
|
|
52
|
+
total: number;
|
|
53
|
+
currency: string;
|
|
54
|
+
} | undefined;
|
|
29
55
|
}, {
|
|
30
56
|
customer_id: string;
|
|
31
57
|
code: string;
|
|
@@ -33,6 +59,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
33
59
|
product_ids: string[];
|
|
34
60
|
checkout_url?: string | undefined;
|
|
35
61
|
customer_data?: any;
|
|
62
|
+
invoice?: {
|
|
63
|
+
status: string;
|
|
64
|
+
stripe_id: string;
|
|
65
|
+
hosted_invoice_url: string | null;
|
|
66
|
+
total: number;
|
|
67
|
+
currency: string;
|
|
68
|
+
} | undefined;
|
|
36
69
|
}>;
|
|
37
70
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
38
71
|
type CheckoutResult = {
|
|
@@ -19,6 +19,25 @@ 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;
|
|
@@ -26,6 +45,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
26
45
|
product_ids: string[];
|
|
27
46
|
checkout_url?: string | undefined;
|
|
28
47
|
customer_data?: any;
|
|
48
|
+
invoice?: {
|
|
49
|
+
status: string;
|
|
50
|
+
stripe_id: string;
|
|
51
|
+
hosted_invoice_url: string | null;
|
|
52
|
+
total: number;
|
|
53
|
+
currency: string;
|
|
54
|
+
} | undefined;
|
|
29
55
|
}, {
|
|
30
56
|
customer_id: string;
|
|
31
57
|
code: string;
|
|
@@ -33,6 +59,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
33
59
|
product_ids: string[];
|
|
34
60
|
checkout_url?: string | undefined;
|
|
35
61
|
customer_data?: any;
|
|
62
|
+
invoice?: {
|
|
63
|
+
status: string;
|
|
64
|
+
stripe_id: string;
|
|
65
|
+
hosted_invoice_url: string | null;
|
|
66
|
+
total: number;
|
|
67
|
+
currency: string;
|
|
68
|
+
} | undefined;
|
|
36
69
|
}>;
|
|
37
70
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
38
71
|
type CheckoutResult = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.mjs';
|
|
2
|
-
import './cusTypes-
|
|
2
|
+
import './cusTypes-c6-g1-Yy.mjs';
|
|
3
3
|
import './prodTypes-CxvB1YY3.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-Bf0302Om.mjs';
|
|
6
6
|
|
|
7
7
|
declare const toClientErrorResponse: (error: any) => {
|
|
8
8
|
data: null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.js';
|
|
2
|
-
import './cusTypes-
|
|
2
|
+
import './cusTypes-DRJ574aU.js';
|
|
3
3
|
import './prodTypes-CxvB1YY3.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-KSBxuyW-.js';
|
|
6
6
|
|
|
7
7
|
declare const toClientErrorResponse: (error: any) => {
|
|
8
8
|
data: null;
|
|
@@ -142,6 +142,7 @@ interface Customer {
|
|
|
142
142
|
products: CustomerProduct[];
|
|
143
143
|
features: Record<string, CustomerFeature>;
|
|
144
144
|
invoices?: CustomerInvoice[];
|
|
145
|
+
payment_method?: any;
|
|
145
146
|
}
|
|
146
147
|
declare const CustomerDataSchema: z.ZodObject<{
|
|
147
148
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -142,6 +142,7 @@ interface Customer {
|
|
|
142
142
|
products: CustomerProduct[];
|
|
143
143
|
features: Record<string, CustomerFeature>;
|
|
144
144
|
invoices?: CustomerInvoice[];
|
|
145
|
+
payment_method?: any;
|
|
145
146
|
}
|
|
146
147
|
declare const CustomerDataSchema: z.ZodObject<{
|
|
147
148
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-qsdoMt_B.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { C as CheckoutResult } from '../attachTypes
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../attachTypes--97TsCMB.mjs';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-c6-g1-Yy.mjs';
|
|
5
5
|
import '../prodTypes-CxvB1YY3.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
@@ -12,6 +12,13 @@ declare const useAutumn: () => {
|
|
|
12
12
|
customer_id: string;
|
|
13
13
|
product_ids: string[];
|
|
14
14
|
customer_data?: any;
|
|
15
|
+
invoice?: {
|
|
16
|
+
status: string;
|
|
17
|
+
stripe_id: string;
|
|
18
|
+
hosted_invoice_url: string | null;
|
|
19
|
+
total: number;
|
|
20
|
+
currency: string;
|
|
21
|
+
} | undefined;
|
|
15
22
|
checkout_url?: string | undefined;
|
|
16
23
|
} | CheckResult, AutumnError>>;
|
|
17
24
|
track: (params: TrackParams) => AutumnPromise<TrackResult>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-BXtfXB4v.js';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../attachTypes-B1sM-0vf.js';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-DRJ574aU.js';
|
|
5
5
|
import '../prodTypes-CxvB1YY3.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
@@ -12,6 +12,13 @@ declare const useAutumn: () => {
|
|
|
12
12
|
customer_id: string;
|
|
13
13
|
product_ids: string[];
|
|
14
14
|
customer_data?: any;
|
|
15
|
+
invoice?: {
|
|
16
|
+
status: string;
|
|
17
|
+
stripe_id: string;
|
|
18
|
+
hosted_invoice_url: string | null;
|
|
19
|
+
total: number;
|
|
20
|
+
currency: string;
|
|
21
|
+
} | undefined;
|
|
15
22
|
checkout_url?: string | undefined;
|
|
16
23
|
} | CheckResult, AutumnError>>;
|
|
17
24
|
track: (params: TrackParams) => AutumnPromise<TrackResult>;
|