autumn-js 0.1.11 → 0.1.12
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 +30 -26
- package/dist/libraries/backend/better-auth.d.ts +30 -26
- package/dist/libraries/backend/better-auth.js +172 -2
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-EW2R7722.mjs → chunk-2DWGCQCF.mjs} +1 -1
- package/dist/libraries/backend/{chunk-VNJ3MFJE.mjs → chunk-56RGUNOT.mjs} +1 -1
- package/dist/libraries/backend/{chunk-P3ARLB2M.mjs → chunk-6JI6MF4S.mjs} +1 -1
- package/dist/libraries/backend/{chunk-5DDCZMDB.mjs → chunk-FA5Z2MOT.mjs} +1 -1
- package/dist/libraries/backend/{chunk-RAHKKJED.mjs → chunk-NWPFUFXX.mjs} +6 -6
- package/dist/libraries/backend/{chunk-NAP2URIW.mjs → chunk-Q7SD535L.mjs} +172 -2
- package/dist/libraries/backend/{chunk-7K3RATTK.mjs → chunk-SDL7BFTH.mjs} +1 -1
- package/dist/libraries/backend/convex.js +172 -2
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +172 -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 +172 -2
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +172 -2
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +172 -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 +172 -2
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +172 -2
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +172 -2
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-C1eZ8cjO.d.mts → referralTypes-BOsjdpOb.d.mts} +176 -6
- package/dist/libraries/backend/{referralTypes-FlI0fYwz.d.ts → referralTypes-DcfU8B6R.d.ts} +176 -6
- package/dist/libraries/backend/remix_dep.js +172 -2
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +172 -2
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +172 -2
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +172 -2
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +172 -2
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +172 -2
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +172 -2
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +172 -2
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +172 -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 +172 -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 +172 -2
- package/dist/libraries/react/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +172 -13
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-CfDtucnL.d.ts → ReactAutumnClient-CIAkiqwV.d.ts} +5 -5
- package/dist/libraries/react/{ReactAutumnClient-IFdMWiu5.d.mts → ReactAutumnClient-zBxnpPLM.d.mts} +5 -5
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.js +172 -13
- package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{attachTypes-CLK4jfuj.d.ts → attachTypes-BQaZHr5e.d.ts} +1 -1
- package/dist/libraries/react/{attachTypes-C5gcbNrS.d.mts → attachTypes-Cuxn1ThG.d.mts} +1 -1
- package/dist/libraries/react/{chunk-4NZ7ML7V.mjs → chunk-26K62U62.mjs} +2 -2
- package/dist/libraries/react/{chunk-WYQMHQUE.mjs → chunk-5O3IHYFF.mjs} +172 -2
- package/dist/libraries/react/{chunk-3MF54MDU.mjs → chunk-5RTUQSYZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-XK3AXQED.mjs → chunk-6X76WFOV.mjs} +3 -13
- package/dist/libraries/react/{chunk-JHFJKAXG.mjs → chunk-7A2PZDUO.mjs} +25 -25
- package/dist/libraries/react/{chunk-YHT2JUXO.mjs → chunk-7HRCOEUW.mjs} +1 -1
- package/dist/libraries/react/{chunk-KP2Q65Y3.mjs → chunk-CMUWZZWV.mjs} +2 -2
- package/dist/libraries/react/{chunk-KMYL54B4.mjs → chunk-DKOF357C.mjs} +1 -1
- package/dist/libraries/react/{chunk-67RWFVWN.mjs → chunk-HNIU2WNT.mjs} +2 -2
- package/dist/libraries/react/{chunk-U3OQJXCW.mjs → chunk-JTYEHM27.mjs} +4 -4
- package/dist/libraries/react/{chunk-6D6TYTTO.mjs → chunk-P6CAHZVT.mjs} +1 -2
- package/dist/libraries/react/{chunk-TTLL63A4.mjs → chunk-QNMB7QR6.mjs} +3 -3
- package/dist/libraries/react/{chunk-2ENHPIYQ.mjs → chunk-RK4NRHHQ.mjs} +3 -3
- package/dist/libraries/react/{chunk-VZY225C6.mjs → chunk-ROKCGZ77.mjs} +2 -2
- package/dist/libraries/react/{chunk-FDNQ6GRK.mjs → chunk-TE2MOBO7.mjs} +1 -1
- package/dist/libraries/react/{chunk-OMJJLT2Q.mjs → chunk-VGNA76RG.mjs} +1 -1
- 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 +172 -2
- package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
- 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/clientGenTypes.js +172 -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 +172 -13
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +26 -26
- 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 +172 -2
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +26 -26
- 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 +172 -13
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +26 -26
- package/dist/libraries/react/components/ui/button.d.mts +2 -2
- package/dist/libraries/react/components/ui/button.d.ts +2 -2
- package/dist/libraries/react/components/ui/dialog.mjs +2 -2
- package/dist/libraries/react/components/ui/popover.mjs +2 -2
- package/dist/libraries/react/{cusTypes-CBapqjzm.d.mts → cusTypes-B2m4-oz4.d.mts} +1 -1
- package/dist/libraries/react/{cusTypes-D13MXEN7.d.ts → cusTypes-lMnznWYJ.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-C1bM1Zpv.d.mts → entTypes-D-gn1jj2.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-DbIrfEpl.d.ts → entTypes-WMQRyYAv.d.ts} +1 -1
- package/dist/libraries/react/{genTypes-C_ilxndU.d.mts → genTypes-DdYlVEah.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-DjcQWIOM.d.ts → genTypes-aPPwPimh.d.ts} +1 -1
- 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 +172 -2
- 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 +172 -3
- 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 +172 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
- package/dist/libraries/react/hooks/useCustomer.d.mts +66 -8
- package/dist/libraries/react/hooks/useCustomer.d.ts +66 -8
- package/dist/libraries/react/hooks/useCustomer.js +172 -13
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +50 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +50 -9
- package/dist/libraries/react/hooks/useCustomerBase.js +172 -13
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- 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 +172 -3
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- 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 +172 -3
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- 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 +172 -2
- package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
- 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 +172 -2
- package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
- 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 +172 -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 +104 -7
- package/dist/libraries/react/index.d.ts +104 -7
- package/dist/libraries/react/index.js +172 -13
- package/dist/libraries/react/index.mjs +172 -13
- package/dist/libraries/react/{prodTypes-B8NdKyKo.d.ts → prodTypes-C8xRoBP7.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes-B8NdKyKo.d.mts → prodTypes-C8xRoBP7.d.ts} +1 -1
- package/dist/next/client/hooks/useCustomer.d.mts +44 -7
- package/dist/next/client/hooks/useCustomer.d.ts +44 -7
- package/dist/next/server/cusActions.d.mts +176 -6
- package/dist/next/server/cusActions.d.ts +176 -6
- package/dist/sdk/index.d.mts +174 -4
- package/dist/sdk/index.d.ts +174 -4
- package/dist/sdk/index.js +171 -1
- package/dist/sdk/index.mjs +171 -1
- package/dist/utils/encryptUtils.js +172 -2
- package/dist/utils/encryptUtils.mjs +172 -2
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-7JNU5ABT.mjs → chunk-FJWZPMWU.mjs} +3 -3
- package/dist/libraries/react/{chunk-LCWL3TIT.mjs → chunk-OTZ65PCT.mjs} +3 -3
|
@@ -477,22 +477,92 @@ var Autumn = class {
|
|
|
477
477
|
entities = entityMethods(this);
|
|
478
478
|
referrals = referralMethods(this);
|
|
479
479
|
features = featureMethods(this);
|
|
480
|
-
|
|
480
|
+
/**
|
|
481
|
+
* Initiates a checkout flow for a product purchase.
|
|
482
|
+
*
|
|
483
|
+
* The checkout function handles the purchase process for products with pricing.
|
|
484
|
+
* It determines whether to show a dialog for user input or redirect directly
|
|
485
|
+
* to Stripe based on the customer's state and product requirements.
|
|
486
|
+
*
|
|
487
|
+
* @param params - Checkout parameters including product ID, customer data, and options
|
|
488
|
+
* @returns Promise resolving to checkout details including pricing, prorations, and URLs
|
|
489
|
+
*
|
|
490
|
+
* @example
|
|
491
|
+
* ```typescript
|
|
492
|
+
* const result = await autumn.checkout({
|
|
493
|
+
* customer_id: "user_123",
|
|
494
|
+
* product_id: "pro",
|
|
495
|
+
* success_url: "https://myapp.com/success"
|
|
496
|
+
* });
|
|
497
|
+
*
|
|
498
|
+
* if (result.url) {
|
|
499
|
+
* // Redirect to Stripe checkout
|
|
500
|
+
* window.location.href = result.url;
|
|
501
|
+
* }
|
|
502
|
+
* ```
|
|
503
|
+
*/
|
|
481
504
|
async checkout(params) {
|
|
482
505
|
return handleCheckout({
|
|
483
506
|
instance: this,
|
|
484
507
|
params
|
|
485
508
|
});
|
|
486
509
|
}
|
|
487
|
-
static
|
|
510
|
+
static checkout = (params) => staticWrapper(handleCheckout, void 0, { params });
|
|
488
511
|
static usage = (params) => staticWrapper(handleUsage, void 0, { params });
|
|
512
|
+
/**
|
|
513
|
+
* Attaches a product to a customer, enabling access and handling billing.
|
|
514
|
+
*
|
|
515
|
+
* The attach function activates a product for a customer and applies all product items.
|
|
516
|
+
* When you attach a product:
|
|
517
|
+
* - The customer gains access to all features in the product
|
|
518
|
+
* - If the product has prices, the customer will be billed accordingly
|
|
519
|
+
* - If there's no existing payment method, a checkout URL will be generated
|
|
520
|
+
*
|
|
521
|
+
* @param params - Attach parameters including customer ID, product ID, and options
|
|
522
|
+
* @returns Promise resolving to attachment result with checkout URL if needed
|
|
523
|
+
*
|
|
524
|
+
* @example
|
|
525
|
+
* ```typescript
|
|
526
|
+
* const result = await autumn.attach({
|
|
527
|
+
* customer_id: "user_123",
|
|
528
|
+
* product_id: "pro",
|
|
529
|
+
* success_url: "https://myapp.com/success"
|
|
530
|
+
* });
|
|
531
|
+
*
|
|
532
|
+
* if (result.checkout_url) {
|
|
533
|
+
* // Payment required - redirect to checkout
|
|
534
|
+
* window.location.href = result.checkout_url;
|
|
535
|
+
* } else {
|
|
536
|
+
* // Product successfully attached
|
|
537
|
+
* console.log("Access granted:", result.message);
|
|
538
|
+
* }
|
|
539
|
+
* ```
|
|
540
|
+
*/
|
|
489
541
|
async attach(params) {
|
|
490
542
|
return handleAttach({
|
|
491
543
|
instance: this,
|
|
492
544
|
params
|
|
493
545
|
});
|
|
494
546
|
}
|
|
547
|
+
static attach = (params) => staticWrapper(handleAttach, void 0, { params });
|
|
495
548
|
static setupPayment = (params) => staticWrapper(handleSetupPayment, void 0, { params });
|
|
549
|
+
/**
|
|
550
|
+
* Sets up a payment method for a customer.
|
|
551
|
+
*
|
|
552
|
+
* This method allows you to set up payment methods for customers without
|
|
553
|
+
* immediately charging them. Useful for collecting payment information
|
|
554
|
+
* before product attachment or for updating existing payment methods.
|
|
555
|
+
*
|
|
556
|
+
* @param params - Setup payment parameters including customer information
|
|
557
|
+
* @returns Promise resolving to setup payment result
|
|
558
|
+
*
|
|
559
|
+
* @example
|
|
560
|
+
* ```typescript
|
|
561
|
+
* const result = await autumn.setupPayment({
|
|
562
|
+
* customer_id: "user_123"
|
|
563
|
+
* });
|
|
564
|
+
* ```
|
|
565
|
+
*/
|
|
496
566
|
async setupPayment(params) {
|
|
497
567
|
return handleSetupPayment({
|
|
498
568
|
instance: this,
|
|
@@ -500,6 +570,24 @@ var Autumn = class {
|
|
|
500
570
|
});
|
|
501
571
|
}
|
|
502
572
|
static cancel = (params) => staticWrapper(handleCancel, void 0, { params });
|
|
573
|
+
/**
|
|
574
|
+
* Cancels a customer's subscription or product attachment.
|
|
575
|
+
*
|
|
576
|
+
* This method allows you to cancel a customer's subscription to a specific product.
|
|
577
|
+
* You can choose to cancel immediately or at the end of the billing cycle.
|
|
578
|
+
*
|
|
579
|
+
* @param params - Cancel parameters including customer ID and product ID
|
|
580
|
+
* @returns Promise resolving to cancellation result
|
|
581
|
+
*
|
|
582
|
+
* @example
|
|
583
|
+
* ```typescript
|
|
584
|
+
* const result = await autumn.cancel({
|
|
585
|
+
* customer_id: "user_123",
|
|
586
|
+
* product_id: "pro",
|
|
587
|
+
* cancel_immediately: false // Cancel at end of billing cycle
|
|
588
|
+
* });
|
|
589
|
+
* ```
|
|
590
|
+
*/
|
|
503
591
|
async cancel(params) {
|
|
504
592
|
return handleCancel({
|
|
505
593
|
instance: this,
|
|
@@ -507,6 +595,29 @@ var Autumn = class {
|
|
|
507
595
|
});
|
|
508
596
|
}
|
|
509
597
|
static check = (params) => staticWrapper(handleCheck, void 0, { params });
|
|
598
|
+
/**
|
|
599
|
+
* Checks if a customer has access to a specific feature.
|
|
600
|
+
*
|
|
601
|
+
* This method verifies whether a customer has permission to use a feature
|
|
602
|
+
* and checks their remaining balance/usage limits. It can be used to gate
|
|
603
|
+
* features and determine when to show upgrade prompts.
|
|
604
|
+
*
|
|
605
|
+
* @param params - Check parameters including customer ID and feature ID
|
|
606
|
+
* @returns Promise resolving to access check result with allowed status and balance info
|
|
607
|
+
*
|
|
608
|
+
* @example
|
|
609
|
+
* ```typescript
|
|
610
|
+
* const result = await autumn.check({
|
|
611
|
+
* customer_id: "user_123",
|
|
612
|
+
* feature_id: "messages",
|
|
613
|
+
* required_balance: 1
|
|
614
|
+
* });
|
|
615
|
+
*
|
|
616
|
+
* if (!result.allowed) {
|
|
617
|
+
* console.log("Feature access denied - upgrade required");
|
|
618
|
+
* }
|
|
619
|
+
* ```
|
|
620
|
+
*/
|
|
510
621
|
async check(params) {
|
|
511
622
|
return handleCheck({
|
|
512
623
|
instance: this,
|
|
@@ -514,12 +625,50 @@ var Autumn = class {
|
|
|
514
625
|
});
|
|
515
626
|
}
|
|
516
627
|
static track = (params) => staticWrapper(handleTrack, void 0, { params });
|
|
628
|
+
/**
|
|
629
|
+
* Tracks usage events for features or analytics.
|
|
630
|
+
*
|
|
631
|
+
* This method records usage events for metered features, updating the customer's
|
|
632
|
+
* balance and usage statistics. It's typically used server-side to ensure
|
|
633
|
+
* accurate tracking that cannot be manipulated by users.
|
|
634
|
+
*
|
|
635
|
+
* @param params - Track parameters including customer ID, feature ID, and usage value
|
|
636
|
+
* @returns Promise resolving to tracking result
|
|
637
|
+
*
|
|
638
|
+
* @example
|
|
639
|
+
* ```typescript
|
|
640
|
+
* const result = await autumn.track({
|
|
641
|
+
* customer_id: "user_123",
|
|
642
|
+
* feature_id: "messages",
|
|
643
|
+
* value: 1 // Track 1 message sent
|
|
644
|
+
* });
|
|
645
|
+
* ```
|
|
646
|
+
*/
|
|
517
647
|
async track(params) {
|
|
518
648
|
return handleTrack({
|
|
519
649
|
instance: this,
|
|
520
650
|
params
|
|
521
651
|
});
|
|
522
652
|
}
|
|
653
|
+
/**
|
|
654
|
+
* Retrieves usage statistics and analytics for a customer.
|
|
655
|
+
*
|
|
656
|
+
* This method fetches detailed usage information for a customer's features,
|
|
657
|
+
* including current balances, usage history, and analytics data. Useful
|
|
658
|
+
* for displaying usage dashboards or generating reports.
|
|
659
|
+
*
|
|
660
|
+
* @param params - Usage parameters including customer ID and optional filters
|
|
661
|
+
* @returns Promise resolving to usage statistics and analytics data
|
|
662
|
+
*
|
|
663
|
+
* @example
|
|
664
|
+
* ```typescript
|
|
665
|
+
* const result = await autumn.usage({
|
|
666
|
+
* customer_id: "user_123",
|
|
667
|
+
* feature_id: "messages"
|
|
668
|
+
* value: 20 // Usage value
|
|
669
|
+
* });
|
|
670
|
+
* ```
|
|
671
|
+
*/
|
|
523
672
|
async usage(params) {
|
|
524
673
|
return handleUsage({
|
|
525
674
|
instance: this,
|
|
@@ -527,6 +676,25 @@ var Autumn = class {
|
|
|
527
676
|
});
|
|
528
677
|
}
|
|
529
678
|
static query = (params) => staticWrapper(handleQuery, void 0, { params });
|
|
679
|
+
/**
|
|
680
|
+
* Performs advanced queries on customer data and analytics.
|
|
681
|
+
*
|
|
682
|
+
* This method allows you to run complex queries against customer data,
|
|
683
|
+
* usage patterns, and billing information. Useful for generating reports,
|
|
684
|
+
* analytics, and custom data insights.
|
|
685
|
+
*
|
|
686
|
+
* @param params - Query parameters including customer ID and query specifications
|
|
687
|
+
* @returns Promise resolving to query results with requested data
|
|
688
|
+
*
|
|
689
|
+
* @example
|
|
690
|
+
* ```typescript
|
|
691
|
+
* const result = await autumn.query({
|
|
692
|
+
* customer_id: "user_123",
|
|
693
|
+
* feature_id: "messages" // feature id to fetch for query, can also be an array
|
|
694
|
+
* });
|
|
695
|
+
*
|
|
696
|
+
* ```
|
|
697
|
+
*/
|
|
530
698
|
async query(params) {
|
|
531
699
|
return handleQuery({
|
|
532
700
|
instance: this,
|
|
@@ -742,6 +910,8 @@ var CheckoutParamsSchema = import_v47.z.object({
|
|
|
742
910
|
product_id: import_v47.z.string(),
|
|
743
911
|
entity_id: import_v47.z.string().optional(),
|
|
744
912
|
options: import_v47.z.array(AttachFeatureOptionsSchema).optional(),
|
|
913
|
+
force_checkout: import_v47.z.boolean().optional(),
|
|
914
|
+
invoice: import_v47.z.boolean().optional(),
|
|
745
915
|
success_url: import_v47.z.string().optional(),
|
|
746
916
|
customer_data: CustomerDataSchema.optional(),
|
|
747
917
|
entity_data: import_v47.z.any().optional(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { C as CheckoutResult } from '../../attachTypes-
|
|
4
|
-
import '../../prodTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../../attachTypes-Cuxn1ThG.mjs';
|
|
4
|
+
import '../../prodTypes-C8xRoBP7.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
|
|
7
7
|
interface CheckoutDialogProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { C as CheckoutResult } from '../../attachTypes-
|
|
4
|
-
import '../../prodTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../../attachTypes-BQaZHr5e.js';
|
|
4
|
+
import '../../prodTypes-C8xRoBP7.js';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
|
|
7
7
|
interface CheckoutDialogProps {
|
|
@@ -6088,22 +6088,92 @@ var Autumn = class {
|
|
|
6088
6088
|
entities = entityMethods(this);
|
|
6089
6089
|
referrals = referralMethods(this);
|
|
6090
6090
|
features = featureMethods(this);
|
|
6091
|
-
|
|
6091
|
+
/**
|
|
6092
|
+
* Initiates a checkout flow for a product purchase.
|
|
6093
|
+
*
|
|
6094
|
+
* The checkout function handles the purchase process for products with pricing.
|
|
6095
|
+
* It determines whether to show a dialog for user input or redirect directly
|
|
6096
|
+
* to Stripe based on the customer's state and product requirements.
|
|
6097
|
+
*
|
|
6098
|
+
* @param params - Checkout parameters including product ID, customer data, and options
|
|
6099
|
+
* @returns Promise resolving to checkout details including pricing, prorations, and URLs
|
|
6100
|
+
*
|
|
6101
|
+
* @example
|
|
6102
|
+
* ```typescript
|
|
6103
|
+
* const result = await autumn.checkout({
|
|
6104
|
+
* customer_id: "user_123",
|
|
6105
|
+
* product_id: "pro",
|
|
6106
|
+
* success_url: "https://myapp.com/success"
|
|
6107
|
+
* });
|
|
6108
|
+
*
|
|
6109
|
+
* if (result.url) {
|
|
6110
|
+
* // Redirect to Stripe checkout
|
|
6111
|
+
* window.location.href = result.url;
|
|
6112
|
+
* }
|
|
6113
|
+
* ```
|
|
6114
|
+
*/
|
|
6092
6115
|
async checkout(params) {
|
|
6093
6116
|
return handleCheckout({
|
|
6094
6117
|
instance: this,
|
|
6095
6118
|
params
|
|
6096
6119
|
});
|
|
6097
6120
|
}
|
|
6098
|
-
static
|
|
6121
|
+
static checkout = (params) => staticWrapper(handleCheckout, void 0, { params });
|
|
6099
6122
|
static usage = (params) => staticWrapper(handleUsage, void 0, { params });
|
|
6123
|
+
/**
|
|
6124
|
+
* Attaches a product to a customer, enabling access and handling billing.
|
|
6125
|
+
*
|
|
6126
|
+
* The attach function activates a product for a customer and applies all product items.
|
|
6127
|
+
* When you attach a product:
|
|
6128
|
+
* - The customer gains access to all features in the product
|
|
6129
|
+
* - If the product has prices, the customer will be billed accordingly
|
|
6130
|
+
* - If there's no existing payment method, a checkout URL will be generated
|
|
6131
|
+
*
|
|
6132
|
+
* @param params - Attach parameters including customer ID, product ID, and options
|
|
6133
|
+
* @returns Promise resolving to attachment result with checkout URL if needed
|
|
6134
|
+
*
|
|
6135
|
+
* @example
|
|
6136
|
+
* ```typescript
|
|
6137
|
+
* const result = await autumn.attach({
|
|
6138
|
+
* customer_id: "user_123",
|
|
6139
|
+
* product_id: "pro",
|
|
6140
|
+
* success_url: "https://myapp.com/success"
|
|
6141
|
+
* });
|
|
6142
|
+
*
|
|
6143
|
+
* if (result.checkout_url) {
|
|
6144
|
+
* // Payment required - redirect to checkout
|
|
6145
|
+
* window.location.href = result.checkout_url;
|
|
6146
|
+
* } else {
|
|
6147
|
+
* // Product successfully attached
|
|
6148
|
+
* console.log("Access granted:", result.message);
|
|
6149
|
+
* }
|
|
6150
|
+
* ```
|
|
6151
|
+
*/
|
|
6100
6152
|
async attach(params) {
|
|
6101
6153
|
return handleAttach({
|
|
6102
6154
|
instance: this,
|
|
6103
6155
|
params
|
|
6104
6156
|
});
|
|
6105
6157
|
}
|
|
6158
|
+
static attach = (params) => staticWrapper(handleAttach, void 0, { params });
|
|
6106
6159
|
static setupPayment = (params) => staticWrapper(handleSetupPayment, void 0, { params });
|
|
6160
|
+
/**
|
|
6161
|
+
* Sets up a payment method for a customer.
|
|
6162
|
+
*
|
|
6163
|
+
* This method allows you to set up payment methods for customers without
|
|
6164
|
+
* immediately charging them. Useful for collecting payment information
|
|
6165
|
+
* before product attachment or for updating existing payment methods.
|
|
6166
|
+
*
|
|
6167
|
+
* @param params - Setup payment parameters including customer information
|
|
6168
|
+
* @returns Promise resolving to setup payment result
|
|
6169
|
+
*
|
|
6170
|
+
* @example
|
|
6171
|
+
* ```typescript
|
|
6172
|
+
* const result = await autumn.setupPayment({
|
|
6173
|
+
* customer_id: "user_123"
|
|
6174
|
+
* });
|
|
6175
|
+
* ```
|
|
6176
|
+
*/
|
|
6107
6177
|
async setupPayment(params) {
|
|
6108
6178
|
return handleSetupPayment({
|
|
6109
6179
|
instance: this,
|
|
@@ -6111,6 +6181,24 @@ var Autumn = class {
|
|
|
6111
6181
|
});
|
|
6112
6182
|
}
|
|
6113
6183
|
static cancel = (params) => staticWrapper(handleCancel, void 0, { params });
|
|
6184
|
+
/**
|
|
6185
|
+
* Cancels a customer's subscription or product attachment.
|
|
6186
|
+
*
|
|
6187
|
+
* This method allows you to cancel a customer's subscription to a specific product.
|
|
6188
|
+
* You can choose to cancel immediately or at the end of the billing cycle.
|
|
6189
|
+
*
|
|
6190
|
+
* @param params - Cancel parameters including customer ID and product ID
|
|
6191
|
+
* @returns Promise resolving to cancellation result
|
|
6192
|
+
*
|
|
6193
|
+
* @example
|
|
6194
|
+
* ```typescript
|
|
6195
|
+
* const result = await autumn.cancel({
|
|
6196
|
+
* customer_id: "user_123",
|
|
6197
|
+
* product_id: "pro",
|
|
6198
|
+
* cancel_immediately: false // Cancel at end of billing cycle
|
|
6199
|
+
* });
|
|
6200
|
+
* ```
|
|
6201
|
+
*/
|
|
6114
6202
|
async cancel(params) {
|
|
6115
6203
|
return handleCancel({
|
|
6116
6204
|
instance: this,
|
|
@@ -6118,6 +6206,29 @@ var Autumn = class {
|
|
|
6118
6206
|
});
|
|
6119
6207
|
}
|
|
6120
6208
|
static check = (params) => staticWrapper(handleCheck, void 0, { params });
|
|
6209
|
+
/**
|
|
6210
|
+
* Checks if a customer has access to a specific feature.
|
|
6211
|
+
*
|
|
6212
|
+
* This method verifies whether a customer has permission to use a feature
|
|
6213
|
+
* and checks their remaining balance/usage limits. It can be used to gate
|
|
6214
|
+
* features and determine when to show upgrade prompts.
|
|
6215
|
+
*
|
|
6216
|
+
* @param params - Check parameters including customer ID and feature ID
|
|
6217
|
+
* @returns Promise resolving to access check result with allowed status and balance info
|
|
6218
|
+
*
|
|
6219
|
+
* @example
|
|
6220
|
+
* ```typescript
|
|
6221
|
+
* const result = await autumn.check({
|
|
6222
|
+
* customer_id: "user_123",
|
|
6223
|
+
* feature_id: "messages",
|
|
6224
|
+
* required_balance: 1
|
|
6225
|
+
* });
|
|
6226
|
+
*
|
|
6227
|
+
* if (!result.allowed) {
|
|
6228
|
+
* console.log("Feature access denied - upgrade required");
|
|
6229
|
+
* }
|
|
6230
|
+
* ```
|
|
6231
|
+
*/
|
|
6121
6232
|
async check(params) {
|
|
6122
6233
|
return handleCheck({
|
|
6123
6234
|
instance: this,
|
|
@@ -6125,12 +6236,50 @@ var Autumn = class {
|
|
|
6125
6236
|
});
|
|
6126
6237
|
}
|
|
6127
6238
|
static track = (params) => staticWrapper(handleTrack, void 0, { params });
|
|
6239
|
+
/**
|
|
6240
|
+
* Tracks usage events for features or analytics.
|
|
6241
|
+
*
|
|
6242
|
+
* This method records usage events for metered features, updating the customer's
|
|
6243
|
+
* balance and usage statistics. It's typically used server-side to ensure
|
|
6244
|
+
* accurate tracking that cannot be manipulated by users.
|
|
6245
|
+
*
|
|
6246
|
+
* @param params - Track parameters including customer ID, feature ID, and usage value
|
|
6247
|
+
* @returns Promise resolving to tracking result
|
|
6248
|
+
*
|
|
6249
|
+
* @example
|
|
6250
|
+
* ```typescript
|
|
6251
|
+
* const result = await autumn.track({
|
|
6252
|
+
* customer_id: "user_123",
|
|
6253
|
+
* feature_id: "messages",
|
|
6254
|
+
* value: 1 // Track 1 message sent
|
|
6255
|
+
* });
|
|
6256
|
+
* ```
|
|
6257
|
+
*/
|
|
6128
6258
|
async track(params) {
|
|
6129
6259
|
return handleTrack({
|
|
6130
6260
|
instance: this,
|
|
6131
6261
|
params
|
|
6132
6262
|
});
|
|
6133
6263
|
}
|
|
6264
|
+
/**
|
|
6265
|
+
* Retrieves usage statistics and analytics for a customer.
|
|
6266
|
+
*
|
|
6267
|
+
* This method fetches detailed usage information for a customer's features,
|
|
6268
|
+
* including current balances, usage history, and analytics data. Useful
|
|
6269
|
+
* for displaying usage dashboards or generating reports.
|
|
6270
|
+
*
|
|
6271
|
+
* @param params - Usage parameters including customer ID and optional filters
|
|
6272
|
+
* @returns Promise resolving to usage statistics and analytics data
|
|
6273
|
+
*
|
|
6274
|
+
* @example
|
|
6275
|
+
* ```typescript
|
|
6276
|
+
* const result = await autumn.usage({
|
|
6277
|
+
* customer_id: "user_123",
|
|
6278
|
+
* feature_id: "messages"
|
|
6279
|
+
* value: 20 // Usage value
|
|
6280
|
+
* });
|
|
6281
|
+
* ```
|
|
6282
|
+
*/
|
|
6134
6283
|
async usage(params) {
|
|
6135
6284
|
return handleUsage({
|
|
6136
6285
|
instance: this,
|
|
@@ -6138,6 +6287,25 @@ var Autumn = class {
|
|
|
6138
6287
|
});
|
|
6139
6288
|
}
|
|
6140
6289
|
static query = (params) => staticWrapper(handleQuery, void 0, { params });
|
|
6290
|
+
/**
|
|
6291
|
+
* Performs advanced queries on customer data and analytics.
|
|
6292
|
+
*
|
|
6293
|
+
* This method allows you to run complex queries against customer data,
|
|
6294
|
+
* usage patterns, and billing information. Useful for generating reports,
|
|
6295
|
+
* analytics, and custom data insights.
|
|
6296
|
+
*
|
|
6297
|
+
* @param params - Query parameters including customer ID and query specifications
|
|
6298
|
+
* @returns Promise resolving to query results with requested data
|
|
6299
|
+
*
|
|
6300
|
+
* @example
|
|
6301
|
+
* ```typescript
|
|
6302
|
+
* const result = await autumn.query({
|
|
6303
|
+
* customer_id: "user_123",
|
|
6304
|
+
* feature_id: "messages" // feature id to fetch for query, can also be an array
|
|
6305
|
+
* });
|
|
6306
|
+
*
|
|
6307
|
+
* ```
|
|
6308
|
+
*/
|
|
6141
6309
|
async query(params) {
|
|
6142
6310
|
return handleQuery({
|
|
6143
6311
|
instance: this,
|
|
@@ -6353,6 +6521,8 @@ var CheckoutParamsSchema = import_v47.z.object({
|
|
|
6353
6521
|
product_id: import_v47.z.string(),
|
|
6354
6522
|
entity_id: import_v47.z.string().optional(),
|
|
6355
6523
|
options: import_v47.z.array(AttachFeatureOptionsSchema).optional(),
|
|
6524
|
+
force_checkout: import_v47.z.boolean().optional(),
|
|
6525
|
+
invoice: import_v47.z.boolean().optional(),
|
|
6356
6526
|
success_url: import_v47.z.string().optional(),
|
|
6357
6527
|
customer_data: CustomerDataSchema.optional(),
|
|
6358
6528
|
entity_data: import_v47.z.any().optional(),
|
|
@@ -7052,7 +7222,6 @@ var useAutumnBase = ({
|
|
|
7052
7222
|
};
|
|
7053
7223
|
return {
|
|
7054
7224
|
attach,
|
|
7055
|
-
// check,
|
|
7056
7225
|
track,
|
|
7057
7226
|
cancel,
|
|
7058
7227
|
openBillingPortal,
|
|
@@ -7272,16 +7441,6 @@ var useCustomerBase = ({
|
|
|
7272
7441
|
context
|
|
7273
7442
|
});
|
|
7274
7443
|
return res;
|
|
7275
|
-
},
|
|
7276
|
-
/** @deprecated Use check() instead */
|
|
7277
|
-
allowed: (params2) => {
|
|
7278
|
-
const result = handleCheck2({
|
|
7279
|
-
customer,
|
|
7280
|
-
params: params2,
|
|
7281
|
-
isEntity: false,
|
|
7282
|
-
context
|
|
7283
|
-
});
|
|
7284
|
-
return result.data.allowed;
|
|
7285
7444
|
}
|
|
7286
7445
|
};
|
|
7287
7446
|
};
|
|
@@ -5,44 +5,44 @@ import {
|
|
|
5
5
|
CheckoutDialog,
|
|
6
6
|
PriceItem,
|
|
7
7
|
PricingDialogButton
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-7A2PZDUO.mjs";
|
|
9
9
|
import "../../chunk-URQMBRFZ.mjs";
|
|
10
|
+
import "../../chunk-GUM4HIGI.mjs";
|
|
11
|
+
import "../../chunk-OTZ65PCT.mjs";
|
|
12
|
+
import "../../chunk-YWQTQ72B.mjs";
|
|
13
|
+
import "../../chunk-KUS3X33V.mjs";
|
|
14
|
+
import "../../chunk-BLM4DAAR.mjs";
|
|
15
|
+
import "../../chunk-I5ZGIAIX.mjs";
|
|
10
16
|
import "../../chunk-JGDTNJTR.mjs";
|
|
11
17
|
import "../../chunk-EV5RNY5U.mjs";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-QJPZFEVW.mjs";
|
|
14
|
-
import "../../chunk-GUM4HIGI.mjs";
|
|
15
|
-
import "../../chunk-LCWL3TIT.mjs";
|
|
18
|
+
import "../../chunk-FJWZPMWU.mjs";
|
|
16
19
|
import "../../chunk-FEISQQNM.mjs";
|
|
20
|
+
import "../../chunk-QJPZFEVW.mjs";
|
|
17
21
|
import "../../chunk-I2A7PK2L.mjs";
|
|
18
|
-
import "../../chunk-YWQTQ72B.mjs";
|
|
19
|
-
import "../../chunk-KUS3X33V.mjs";
|
|
20
22
|
import "../../chunk-7TYAAD2T.mjs";
|
|
21
23
|
import "../../chunk-RPEGNKJH.mjs";
|
|
22
|
-
import "../../chunk-BLM4DAAR.mjs";
|
|
23
|
-
import "../../chunk-I5ZGIAIX.mjs";
|
|
24
|
-
import "../../chunk-VZY225C6.mjs";
|
|
25
|
-
import "../../chunk-4NZ7ML7V.mjs";
|
|
26
|
-
import "../../chunk-KP2Q65Y3.mjs";
|
|
27
|
-
import "../../chunk-2ENHPIYQ.mjs";
|
|
28
|
-
import "../../chunk-3MF54MDU.mjs";
|
|
29
|
-
import "../../chunk-67RWFVWN.mjs";
|
|
30
|
-
import "../../chunk-4J6OC4ZQ.mjs";
|
|
31
24
|
import "../../chunk-WVKYZYFT.mjs";
|
|
32
|
-
import "../../chunk-
|
|
33
|
-
import "../../chunk-
|
|
25
|
+
import "../../chunk-CMUWZZWV.mjs";
|
|
26
|
+
import "../../chunk-RK4NRHHQ.mjs";
|
|
27
|
+
import "../../chunk-5RTUQSYZ.mjs";
|
|
28
|
+
import "../../chunk-HNIU2WNT.mjs";
|
|
29
|
+
import "../../chunk-4J6OC4ZQ.mjs";
|
|
30
|
+
import "../../chunk-ROKCGZ77.mjs";
|
|
31
|
+
import "../../chunk-26K62U62.mjs";
|
|
32
|
+
import "../../chunk-QNMB7QR6.mjs";
|
|
33
|
+
import "../../chunk-VGNA76RG.mjs";
|
|
34
34
|
import "../../chunk-RFSQBGLO.mjs";
|
|
35
|
-
import "../../chunk-
|
|
36
|
-
import "../../chunk-
|
|
37
|
-
import "../../chunk-
|
|
38
|
-
import "../../chunk-
|
|
39
|
-
import "../../chunk-
|
|
40
|
-
import "../../chunk-
|
|
41
|
-
import "../../chunk-
|
|
42
|
-
import "../../chunk-CIBQ4BJU.mjs";
|
|
35
|
+
import "../../chunk-6X76WFOV.mjs";
|
|
36
|
+
import "../../chunk-DKOF357C.mjs";
|
|
37
|
+
import "../../chunk-P6CAHZVT.mjs";
|
|
38
|
+
import "../../chunk-7HRCOEUW.mjs";
|
|
39
|
+
import "../../chunk-TE2MOBO7.mjs";
|
|
40
|
+
import "../../chunk-JTYEHM27.mjs";
|
|
41
|
+
import "../../chunk-5O3IHYFF.mjs";
|
|
43
42
|
import "../../chunk-V575SGOW.mjs";
|
|
44
43
|
import "../../chunk-ZV4RPZTM.mjs";
|
|
45
44
|
import "../../chunk-JVCOY7ZL.mjs";
|
|
45
|
+
import "../../chunk-CIBQ4BJU.mjs";
|
|
46
46
|
import "../../chunk-VTGR7VVK.mjs";
|
|
47
47
|
import "../../chunk-WFFVOEUG.mjs";
|
|
48
48
|
import "../../chunk-ZF2HUCN6.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CheckoutResult } from '../../../attachTypes-
|
|
3
|
-
import '../../../prodTypes-
|
|
2
|
+
import { C as CheckoutResult } from '../../../attachTypes-Cuxn1ThG.mjs';
|
|
3
|
+
import '../../../prodTypes-C8xRoBP7.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
6
|
declare const getCheckoutContent: (checkoutResult: CheckoutResult) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CheckoutResult } from '../../../attachTypes-
|
|
3
|
-
import '../../../prodTypes-
|
|
2
|
+
import { C as CheckoutResult } from '../../../attachTypes-BQaZHr5e.js';
|
|
3
|
+
import '../../../prodTypes-C8xRoBP7.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
6
|
declare const getCheckoutContent: (checkoutResult: CheckoutResult) => {
|