autumn-js 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libraries/backend/better-auth.d.mts +4 -0
- package/dist/libraries/backend/better-auth.d.ts +4 -0
- 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-BEcapeWf.d.mts} +17 -0
- package/dist/libraries/backend/{referralTypes-zcdPSX-p.d.ts → referralTypes-DuAlUwev.d.ts} +17 -0
- package/dist/libraries/backend/remix_dep.js +10 -2
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +10 -2
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +10 -2
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +10 -2
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +10 -2
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +10 -2
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +10 -2
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +10 -2
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +10 -2
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/backend/utils/withAuth.js +10 -2
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.js +10 -2
- package/dist/libraries/react/AutumnContext.mjs +3 -3
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- 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-DCMQEadM.d.ts} +10 -3
- package/dist/libraries/react/{ReactAutumnClient-CpAGyyur.d.mts → ReactAutumnClient-Dm14G99_.d.mts} +10 -3
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +10 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{attachTypes-CcB6xjSF.d.ts → attachTypes-QTf_JXj7.d.ts} +33 -0
- package/dist/libraries/react/{attachTypes-DqUN3q8s.d.mts → attachTypes-Sv_paJZ2.d.mts} +33 -0
- package/dist/libraries/react/{chunk-WEKDMT3Y.mjs → chunk-3YIV3N5Y.mjs} +1 -1
- package/dist/libraries/react/{chunk-OUWRRLOI.mjs → chunk-4UPD6W4L.mjs} +463 -465
- 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-BXMZYHE7.mjs → chunk-FJWZPMWU.mjs} +3 -3
- 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-JNR7QAPG.mjs → chunk-MKP43WD6.mjs} +1 -1
- package/dist/libraries/react/{chunk-2TQBFCWM.mjs → chunk-OTZ65PCT.mjs} +4 -4
- 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 +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.js +10 -2
- package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.js +10 -2
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +10 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +25 -25
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +1 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +10 -2
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +25 -25
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +10 -2
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -25
- 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/{entTypes-CoF9enrR.d.ts → entTypes-0CBBecul.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-S4hkh1RG.d.mts → entTypes-kVUQcah5.d.mts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.js +10 -2
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +11 -4
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +11 -4
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +10 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.js +10 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.js +10 -2
- package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.js +10 -2
- package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
- package/dist/libraries/react/hooks/useEntity.d.mts +11 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +11 -4
- 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 +13 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +13 -6
- package/dist/libraries/react/hooks/useEntityBase.js +10 -2
- package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
- package/dist/libraries/react/hooks/usePaywall.js +10 -2
- package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
- 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 +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.js +10 -2
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useProductsBase.d.ts +4 -4
- package/dist/libraries/react/index.d.mts +40 -0
- package/dist/libraries/react/index.d.ts +40 -0
- package/dist/libraries/react/index.js +10 -2
- package/dist/libraries/react/index.mjs +10 -2
- package/dist/next/client/NextAutumnClient.d.mts +13 -6
- package/dist/next/client/NextAutumnClient.d.ts +13 -6
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/{attachTypes-DxJ0LCjT.d.ts → attachTypes-CReq8zJ_.d.ts} +35 -2
- package/dist/next/client/{attachTypes-DZFtFEmv.d.mts → attachTypes-DUUIHTBt.d.mts} +35 -2
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{entTypes-vjIG3B1G.d.ts → entTypes-BAD1NMvb.d.ts} +1 -1
- package/dist/next/client/{entTypes-CHHBdhBK.d.mts → entTypes-mOI7WnPZ.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +10 -3
- package/dist/next/client/hooks/useAutumn.d.ts +10 -3
- package/dist/next/client/hooks/useCustomer.d.mts +4 -4
- package/dist/next/client/hooks/useCustomer.d.ts +4 -4
- package/dist/next/client/hooks/useEntity.d.mts +12 -5
- package/dist/next/client/hooks/useEntity.d.ts +12 -5
- 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/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +50 -0
- package/dist/sdk/index.d.ts +50 -0
- package/dist/sdk/index.js +10 -2
- package/dist/sdk/index.mjs +10 -2
- package/dist/utils/encryptUtils.js +10 -2
- package/dist/utils/encryptUtils.mjs +10 -2
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-KWNH6C27.mjs → chunk-7TYAAD2T.mjs} +11 -11
- package/dist/libraries/react/{cusTypes-DHjT-9rV.d.ts → cusTypes-BeSXIQ6P.d.ts} +2 -2
- package/dist/libraries/react/{cusTypes-CSmAk5io.d.mts → cusTypes-DbCQV8Sj.d.mts} +2 -2
- package/dist/next/client/{clientAttachTypes-qsdoMt_B.d.mts → clientAttachTypes-BzsPgggN.d.mts} +2 -2
- package/dist/next/client/{clientAttachTypes-BXtfXB4v.d.ts → clientAttachTypes-umadXlvp.d.ts} +2 -2
- package/dist/next/client/{cusTypes-Q54uLNO5.d.mts → cusTypes-CIGvysWL.d.mts} +2 -2
- package/dist/next/client/{cusTypes-BHYpk8bK.d.ts → cusTypes-CYojUJSJ.d.ts} +2 -2
- package/dist/next/server/{cusTypes-DgoOZMIt.d.ts → cusTypes-CwopPHB0.d.mts} +8 -8
- package/dist/next/server/{cusTypes-DgoOZMIt.d.mts → cusTypes-CwopPHB0.d.ts} +8 -8
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { P as Product } from '../prodTypes--VvnyGlN.mjs';
|
|
2
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from '../ReactAutumnClient-Dm14G99_.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
7
|
import '../genTypes-fEH_nqSm.mjs';
|
|
8
|
-
import '../attachTypes-
|
|
9
|
-
import '../entTypes-
|
|
10
|
-
import '../cusTypes-
|
|
8
|
+
import '../attachTypes-Sv_paJZ2.mjs';
|
|
9
|
+
import '../entTypes-kVUQcah5.mjs';
|
|
10
|
+
import '../cusTypes-DbCQV8Sj.mjs';
|
|
11
11
|
|
|
12
12
|
declare const useProductsBase: ({ client }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { P as Product } from '../prodTypes--VvnyGlN.js';
|
|
2
|
-
import { A as AutumnClient } from '../ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from '../ReactAutumnClient-DCMQEadM.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
7
|
import '../genTypes-DsiuvyWS.js';
|
|
8
|
-
import '../attachTypes-
|
|
9
|
-
import '../entTypes-
|
|
10
|
-
import '../cusTypes-
|
|
8
|
+
import '../attachTypes-QTf_JXj7.js';
|
|
9
|
+
import '../entTypes-0CBBecul.js';
|
|
10
|
+
import '../cusTypes-BeSXIQ6P.js';
|
|
11
11
|
|
|
12
12
|
declare const useProductsBase: ({ client }: {
|
|
13
13
|
client: AutumnClient;
|
|
@@ -505,12 +505,38 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
505
505
|
code: z.ZodString;
|
|
506
506
|
message: z.ZodString;
|
|
507
507
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
508
|
+
invoice: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
status: z.ZodString;
|
|
510
|
+
stripe_id: z.ZodString;
|
|
511
|
+
hosted_invoice_url: z.ZodNullable<z.ZodString>;
|
|
512
|
+
total: z.ZodNumber;
|
|
513
|
+
currency: z.ZodString;
|
|
514
|
+
}, "strip", z.ZodTypeAny, {
|
|
515
|
+
status: string;
|
|
516
|
+
stripe_id: string;
|
|
517
|
+
hosted_invoice_url: string | null;
|
|
518
|
+
total: number;
|
|
519
|
+
currency: string;
|
|
520
|
+
}, {
|
|
521
|
+
status: string;
|
|
522
|
+
stripe_id: string;
|
|
523
|
+
hosted_invoice_url: string | null;
|
|
524
|
+
total: number;
|
|
525
|
+
currency: string;
|
|
526
|
+
}>>;
|
|
508
527
|
}, "strip", z.ZodTypeAny, {
|
|
509
528
|
customer_id: string;
|
|
510
529
|
code: string;
|
|
511
530
|
message: string;
|
|
512
531
|
product_ids: string[];
|
|
513
532
|
customer_data?: any;
|
|
533
|
+
invoice?: {
|
|
534
|
+
status: string;
|
|
535
|
+
stripe_id: string;
|
|
536
|
+
hosted_invoice_url: string | null;
|
|
537
|
+
total: number;
|
|
538
|
+
currency: string;
|
|
539
|
+
} | undefined;
|
|
514
540
|
checkout_url?: string | undefined;
|
|
515
541
|
}, {
|
|
516
542
|
customer_id: string;
|
|
@@ -518,6 +544,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
518
544
|
message: string;
|
|
519
545
|
product_ids: string[];
|
|
520
546
|
customer_data?: any;
|
|
547
|
+
invoice?: {
|
|
548
|
+
status: string;
|
|
549
|
+
stripe_id: string;
|
|
550
|
+
hosted_invoice_url: string | null;
|
|
551
|
+
total: number;
|
|
552
|
+
currency: string;
|
|
553
|
+
} | undefined;
|
|
521
554
|
checkout_url?: string | undefined;
|
|
522
555
|
}>;
|
|
523
556
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
@@ -902,6 +935,13 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
902
935
|
message: string;
|
|
903
936
|
product_ids: string[];
|
|
904
937
|
customer_data?: any;
|
|
938
|
+
invoice?: {
|
|
939
|
+
status: string;
|
|
940
|
+
stripe_id: string;
|
|
941
|
+
hosted_invoice_url: string | null;
|
|
942
|
+
total: number;
|
|
943
|
+
currency: string;
|
|
944
|
+
} | undefined;
|
|
905
945
|
checkout_url?: string | undefined;
|
|
906
946
|
} | CheckResult, AutumnError>>;
|
|
907
947
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
@@ -505,12 +505,38 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
505
505
|
code: z.ZodString;
|
|
506
506
|
message: z.ZodString;
|
|
507
507
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
508
|
+
invoice: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
status: z.ZodString;
|
|
510
|
+
stripe_id: z.ZodString;
|
|
511
|
+
hosted_invoice_url: z.ZodNullable<z.ZodString>;
|
|
512
|
+
total: z.ZodNumber;
|
|
513
|
+
currency: z.ZodString;
|
|
514
|
+
}, "strip", z.ZodTypeAny, {
|
|
515
|
+
status: string;
|
|
516
|
+
stripe_id: string;
|
|
517
|
+
hosted_invoice_url: string | null;
|
|
518
|
+
total: number;
|
|
519
|
+
currency: string;
|
|
520
|
+
}, {
|
|
521
|
+
status: string;
|
|
522
|
+
stripe_id: string;
|
|
523
|
+
hosted_invoice_url: string | null;
|
|
524
|
+
total: number;
|
|
525
|
+
currency: string;
|
|
526
|
+
}>>;
|
|
508
527
|
}, "strip", z.ZodTypeAny, {
|
|
509
528
|
customer_id: string;
|
|
510
529
|
code: string;
|
|
511
530
|
message: string;
|
|
512
531
|
product_ids: string[];
|
|
513
532
|
customer_data?: any;
|
|
533
|
+
invoice?: {
|
|
534
|
+
status: string;
|
|
535
|
+
stripe_id: string;
|
|
536
|
+
hosted_invoice_url: string | null;
|
|
537
|
+
total: number;
|
|
538
|
+
currency: string;
|
|
539
|
+
} | undefined;
|
|
514
540
|
checkout_url?: string | undefined;
|
|
515
541
|
}, {
|
|
516
542
|
customer_id: string;
|
|
@@ -518,6 +544,13 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
518
544
|
message: string;
|
|
519
545
|
product_ids: string[];
|
|
520
546
|
customer_data?: any;
|
|
547
|
+
invoice?: {
|
|
548
|
+
status: string;
|
|
549
|
+
stripe_id: string;
|
|
550
|
+
hosted_invoice_url: string | null;
|
|
551
|
+
total: number;
|
|
552
|
+
currency: string;
|
|
553
|
+
} | undefined;
|
|
521
554
|
checkout_url?: string | undefined;
|
|
522
555
|
}>;
|
|
523
556
|
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
@@ -902,6 +935,13 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
902
935
|
message: string;
|
|
903
936
|
product_ids: string[];
|
|
904
937
|
customer_data?: any;
|
|
938
|
+
invoice?: {
|
|
939
|
+
status: string;
|
|
940
|
+
stripe_id: string;
|
|
941
|
+
hosted_invoice_url: string | null;
|
|
942
|
+
total: number;
|
|
943
|
+
currency: string;
|
|
944
|
+
} | undefined;
|
|
905
945
|
checkout_url?: string | undefined;
|
|
906
946
|
} | CheckResult, AutumnError>>;
|
|
907
947
|
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(),
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-
|
|
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-BzsPgggN.mjs';
|
|
2
|
+
import { C as CheckoutResult, A as AttachResult } from './attachTypes-DUUIHTBt.mjs';
|
|
3
|
+
import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-CIGvysWL.mjs';
|
|
4
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-mOI7WnPZ.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';
|
|
@@ -82,12 +82,19 @@ declare class AutumnClient {
|
|
|
82
82
|
reward?: string | undefined;
|
|
83
83
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
84
84
|
}) => AutumnPromise<{
|
|
85
|
-
customer_id: string;
|
|
86
85
|
code: string;
|
|
87
86
|
message: string;
|
|
87
|
+
customer_id: string;
|
|
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;
|
|
@@ -130,9 +137,9 @@ declare class AutumnClient {
|
|
|
130
137
|
eventName?: string | undefined;
|
|
131
138
|
idempotencyKey?: string | undefined;
|
|
132
139
|
}) => AutumnPromise<{
|
|
140
|
+
code: string;
|
|
133
141
|
id: string;
|
|
134
142
|
customer_id: string;
|
|
135
|
-
code: string;
|
|
136
143
|
feature_id?: string | undefined;
|
|
137
144
|
event_name?: string | undefined;
|
|
138
145
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-
|
|
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-umadXlvp.js';
|
|
2
|
+
import { C as CheckoutResult, A as AttachResult } from './attachTypes-CReq8zJ_.js';
|
|
3
|
+
import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-CYojUJSJ.js';
|
|
4
|
+
import { E as Entity, D as DeleteEntityResult } from './entTypes-BAD1NMvb.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';
|
|
@@ -82,12 +82,19 @@ declare class AutumnClient {
|
|
|
82
82
|
reward?: string | undefined;
|
|
83
83
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
84
84
|
}) => AutumnPromise<{
|
|
85
|
-
customer_id: string;
|
|
86
85
|
code: string;
|
|
87
86
|
message: string;
|
|
87
|
+
customer_id: string;
|
|
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;
|
|
@@ -130,9 +137,9 @@ declare class AutumnClient {
|
|
|
130
137
|
eventName?: string | undefined;
|
|
131
138
|
idempotencyKey?: string | undefined;
|
|
132
139
|
}) => AutumnPromise<{
|
|
140
|
+
code: string;
|
|
133
141
|
id: string;
|
|
134
142
|
customer_id: string;
|
|
135
|
-
code: string;
|
|
136
143
|
feature_id?: string | undefined;
|
|
137
144
|
event_name?: string | undefined;
|
|
138
145
|
}>;
|
|
@@ -19,20 +19,53 @@ 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
|
-
customer_id: string;
|
|
24
42
|
code: string;
|
|
25
43
|
message: string;
|
|
44
|
+
customer_id: string;
|
|
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
|
-
customer_id: string;
|
|
31
56
|
code: string;
|
|
32
57
|
message: string;
|
|
58
|
+
customer_id: string;
|
|
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,20 +19,53 @@ 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
|
-
customer_id: string;
|
|
24
42
|
code: string;
|
|
25
43
|
message: string;
|
|
44
|
+
customer_id: string;
|
|
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
|
-
customer_id: string;
|
|
31
56
|
code: string;
|
|
32
57
|
message: string;
|
|
58
|
+
customer_id: string;
|
|
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-CIGvysWL.mjs';
|
|
3
3
|
import './prodTypes-CxvB1YY3.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-mOI7WnPZ.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-CYojUJSJ.js';
|
|
3
3
|
import './prodTypes-CxvB1YY3.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './entTypes-
|
|
5
|
+
import './entTypes-BAD1NMvb.js';
|
|
6
6
|
|
|
7
7
|
declare const toClientErrorResponse: (error: any) => {
|
|
8
8
|
data: null;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-BzsPgggN.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-DUUIHTBt.mjs';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-CIGvysWL.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
|
-
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-
|
|
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-umadXlvp.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-CReq8zJ_.js';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-CYojUJSJ.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>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-BzsPgggN.mjs';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-DUUIHTBt.mjs';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-CIGvysWL.mjs';
|
|
5
|
+
import { E as Entity } from '../entTypes-mOI7WnPZ.mjs';
|
|
6
6
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { SWRConfiguration } from 'swr';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
2
|
-
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-umadXlvp.js';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-CReq8zJ_.js';
|
|
4
|
+
import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-CYojUJSJ.js';
|
|
5
|
+
import { E as Entity } from '../entTypes-BAD1NMvb.js';
|
|
6
6
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { SWRConfiguration } from 'swr';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-
|
|
1
|
+
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-BzsPgggN.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
3
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-mOI7WnPZ.mjs';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
5
|
import '../prodTypes-CxvB1YY3.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-CIGvysWL.mjs';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -21,17 +21,24 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
21
21
|
customer_id: string;
|
|
22
22
|
product_ids: string[];
|
|
23
23
|
customer_data?: any;
|
|
24
|
+
invoice?: {
|
|
25
|
+
status: string;
|
|
26
|
+
stripe_id: string;
|
|
27
|
+
hosted_invoice_url: string | null;
|
|
28
|
+
total: number;
|
|
29
|
+
currency: string;
|
|
30
|
+
} | undefined;
|
|
24
31
|
checkout_url?: string | undefined;
|
|
25
32
|
} | CheckResult, AutumnError>>;
|
|
26
33
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
27
34
|
customer_id: string;
|
|
28
|
-
product_id: string;
|
|
29
35
|
success: boolean;
|
|
36
|
+
product_id: string;
|
|
30
37
|
}>;
|
|
31
38
|
track: (params: TrackParams) => AutumnPromise<{
|
|
32
39
|
code: string;
|
|
33
|
-
customer_id: string;
|
|
34
40
|
id: string;
|
|
41
|
+
customer_id: string;
|
|
35
42
|
feature_id?: string | undefined;
|
|
36
43
|
event_name?: string | undefined;
|
|
37
44
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-
|
|
1
|
+
import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-umadXlvp.js';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
3
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-BAD1NMvb.js';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
5
|
import '../prodTypes-CxvB1YY3.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../cusTypes-
|
|
7
|
+
import '../cusTypes-CYojUJSJ.js';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
10
10
|
entity: Entity | null;
|
|
@@ -21,17 +21,24 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
21
21
|
customer_id: string;
|
|
22
22
|
product_ids: string[];
|
|
23
23
|
customer_data?: any;
|
|
24
|
+
invoice?: {
|
|
25
|
+
status: string;
|
|
26
|
+
stripe_id: string;
|
|
27
|
+
hosted_invoice_url: string | null;
|
|
28
|
+
total: number;
|
|
29
|
+
currency: string;
|
|
30
|
+
} | undefined;
|
|
24
31
|
checkout_url?: string | undefined;
|
|
25
32
|
} | CheckResult, AutumnError>>;
|
|
26
33
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
27
34
|
customer_id: string;
|
|
28
|
-
product_id: string;
|
|
29
35
|
success: boolean;
|
|
36
|
+
product_id: string;
|
|
30
37
|
}>;
|
|
31
38
|
track: (params: TrackParams) => AutumnPromise<{
|
|
32
39
|
code: string;
|
|
33
|
-
customer_id: string;
|
|
34
40
|
id: string;
|
|
41
|
+
customer_id: string;
|
|
35
42
|
feature_id?: string | undefined;
|
|
36
43
|
event_name?: string | undefined;
|
|
37
44
|
}>;
|