@mohasinac/appkit 4.62.0 → 4.63.0
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/.build-stamp.json +3 -3
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +8 -29
- package/dist/_internal/client/features/layout/filterNavItems.d.ts +28 -0
- package/dist/_internal/client/features/layout/filterNavItems.js +35 -0
- package/dist/_internal/server/features/ads/booking.d.ts +118 -0
- package/dist/_internal/server/features/ads/booking.js +326 -0
- package/dist/_internal/server/features/checkout/actions.d.ts +129 -9
- package/dist/_internal/server/features/checkout/actions.js +850 -79
- package/dist/_internal/server/features/checkout/expand-order-items.d.ts +1 -2
- package/dist/_internal/server/features/checkout/expand-order-items.js +32 -0
- package/dist/_internal/server/features/checkout/freeze-parts.d.ts +50 -0
- package/dist/_internal/server/features/checkout/freeze-parts.js +94 -0
- package/dist/_internal/server/features/checkout/value-otp-gate.d.ts +55 -0
- package/dist/_internal/server/features/checkout/value-otp-gate.js +60 -0
- package/dist/_internal/server/features/dashboard/attention.d.ts +128 -0
- package/dist/_internal/server/features/dashboard/attention.js +183 -0
- package/dist/_internal/server/features/dashboard/data.d.ts +47 -0
- package/dist/_internal/server/features/dashboard/data.js +82 -0
- package/dist/_internal/server/features/inventory/reservations.d.ts +99 -0
- package/dist/_internal/server/features/inventory/reservations.js +273 -0
- package/dist/_internal/server/features/invoicing/allocate.d.ts +63 -0
- package/dist/_internal/server/features/invoicing/allocate.js +162 -0
- package/dist/_internal/server/features/invoicing/credit-note.d.ts +57 -0
- package/dist/_internal/server/features/invoicing/credit-note.js +126 -0
- package/dist/_internal/server/features/invoicing/gstr1.d.ts +74 -0
- package/dist/_internal/server/features/invoicing/gstr1.js +251 -0
- package/dist/_internal/server/features/invoicing/issue.d.ts +96 -0
- package/dist/_internal/server/features/invoicing/issue.js +202 -0
- package/dist/_internal/server/features/offers/destinations.d.ts +40 -0
- package/dist/_internal/server/features/offers/destinations.js +65 -0
- package/dist/_internal/server/features/orders/actions.d.ts +8 -1
- package/dist/_internal/server/features/orders/actions.js +81 -8
- package/dist/_internal/server/features/orders/adapters.js +54 -0
- package/dist/_internal/server/features/orders/amend-delivery.d.ts +56 -0
- package/dist/_internal/server/features/orders/amend-delivery.js +124 -0
- package/dist/_internal/server/features/orders/balance.d.ts +89 -0
- package/dist/_internal/server/features/orders/balance.js +256 -0
- package/dist/_internal/server/features/orders/cancellation-refund.d.ts +15 -9
- package/dist/_internal/server/features/orders/cancellation-refund.js +15 -9
- package/dist/_internal/server/features/points/award.js +46 -4
- package/dist/_internal/server/features/pricing/actions.d.ts +58 -0
- package/dist/_internal/server/features/pricing/actions.js +144 -0
- package/dist/_internal/server/features/refunds/actions.js +26 -0
- package/dist/_internal/server/features/shipping/book-split.d.ts +86 -0
- package/dist/_internal/server/features/shipping/book-split.js +130 -0
- package/dist/_internal/server/features/shipping/book.d.ts +61 -0
- package/dist/_internal/server/features/shipping/book.js +176 -0
- package/dist/_internal/server/features/shipping/courier-block.d.ts +69 -0
- package/dist/_internal/server/features/shipping/courier-block.js +264 -0
- package/dist/_internal/server/features/site-settings/adapters.d.ts +2 -2
- package/dist/_internal/server/features/site-settings/adapters.js +29 -0
- package/dist/_internal/server/features/stores/adapters.d.ts +2 -2
- package/dist/_internal/server/features/stores/adapters.js +65 -0
- package/dist/_internal/server/functions/scheduled.d.ts +2 -1
- package/dist/_internal/server/functions/scheduled.js +95 -2
- package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +11 -2
- package/dist/_internal/server/jobs/core/dailyStatusDigest.d.ts +4 -0
- package/dist/_internal/server/jobs/core/dailyStatusDigest.js +19 -2
- package/dist/_internal/server/jobs/core/index.d.ts +2 -1
- package/dist/_internal/server/jobs/core/index.js +2 -1
- package/dist/_internal/server/jobs/core/jobRunners.js +45 -0
- package/dist/_internal/server/jobs/core/onJobCreated.d.ts +30 -7
- package/dist/_internal/server/jobs/core/onJobCreated.js +78 -45
- package/dist/_internal/server/jobs/core/onOrderStatusChange.d.ts +7 -0
- package/dist/_internal/server/jobs/core/onOrderStatusChange.js +65 -0
- package/dist/_internal/server/jobs/core/paymentWindowTimeout.js +33 -0
- package/dist/_internal/server/jobs/core/reservationExpiry.d.ts +17 -0
- package/dist/_internal/server/jobs/core/reservationExpiry.js +40 -0
- package/dist/_internal/server/jobs/core/runJobOnce.d.ts +48 -0
- package/dist/_internal/server/jobs/core/runJobOnce.js +195 -0
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +25 -2
- package/dist/_internal/server/jobs/handlers/index.d.ts +1 -0
- package/dist/_internal/server/jobs/handlers/index.js +1 -0
- package/dist/_internal/server/jobs/handlers/onOrderStatusChange.js +17 -0
- package/dist/_internal/server/jobs/handlers/reservationExpiry.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/reservationExpiry.js +2 -0
- package/dist/_internal/server/notifications/channel-health.d.ts +26 -3
- package/dist/_internal/shared/actions/action-registry.d.ts +1 -1
- package/dist/_internal/shared/actions/action-registry.js +296 -0
- package/dist/_internal/shared/checkout/coupon-discount.d.ts +43 -1
- package/dist/_internal/shared/checkout/coupon-discount.js +26 -1
- package/dist/_internal/shared/checkout/order-math.d.ts +174 -0
- package/dist/_internal/shared/checkout/order-math.js +159 -0
- package/dist/_internal/shared/checkout/refundable-base.d.ts +25 -0
- package/dist/_internal/shared/checkout/refundable-base.js +13 -1
- package/dist/_internal/shared/checkout/rules/index.d.ts +1 -1
- package/dist/_internal/shared/checkout/rules/index.js +1 -1
- package/dist/_internal/shared/checkout/rules/payment-gate.d.ts +18 -0
- package/dist/_internal/shared/checkout/rules/payment-gate.js +25 -0
- package/dist/_internal/shared/checkout/split.d.ts +75 -0
- package/dist/_internal/shared/checkout/split.js +120 -0
- package/dist/_internal/shared/content/disclaimers.d.ts +88 -0
- package/dist/_internal/shared/content/disclaimers.js +217 -0
- package/dist/_internal/shared/content/published-values.d.ts +93 -0
- package/dist/_internal/shared/content/published-values.js +206 -0
- package/dist/_internal/shared/features/admin/integrations.d.ts +139 -0
- package/dist/_internal/shared/features/admin/integrations.js +263 -0
- package/dist/_internal/shared/features/dashboard/hub-sections.d.ts +72 -0
- package/dist/_internal/shared/features/dashboard/hub-sections.js +75 -0
- package/dist/_internal/shared/features/emi/choice.d.ts +98 -0
- package/dist/_internal/shared/features/emi/choice.js +69 -0
- package/dist/_internal/shared/features/emi/group.d.ts +84 -0
- package/dist/_internal/shared/features/emi/group.js +126 -0
- package/dist/_internal/shared/features/ledger/posting.d.ts +107 -0
- package/dist/_internal/shared/features/ledger/posting.js +165 -0
- package/dist/_internal/shared/features/ledger/reports.d.ts +76 -0
- package/dist/_internal/shared/features/ledger/reports.js +127 -0
- package/dist/_internal/shared/features/ledger/rules.d.ts +170 -0
- package/dist/_internal/shared/features/ledger/rules.js +221 -0
- package/dist/_internal/shared/features/offers/coordination.d.ts +122 -0
- package/dist/_internal/shared/features/offers/coordination.js +80 -0
- package/dist/_internal/shared/features/orders/delivery-snapshot.d.ts +114 -0
- package/dist/_internal/shared/features/orders/delivery-snapshot.js +116 -0
- package/dist/_internal/shared/features/orders/dispute-reasons.d.ts +113 -0
- package/dist/_internal/shared/features/orders/dispute-reasons.js +181 -0
- package/dist/_internal/shared/features/orders/refund-copy.d.ts +1 -1
- package/dist/_internal/shared/features/orders/refund-copy.js +18 -1
- package/dist/_internal/shared/features/payouts/pay-period.d.ts +91 -0
- package/dist/_internal/shared/features/payouts/pay-period.js +104 -0
- package/dist/_internal/shared/features/points/accepts.d.ts +29 -0
- package/dist/_internal/shared/features/points/accepts.js +49 -0
- package/dist/_internal/shared/features/pricing/rate-registry.d.ts +150 -0
- package/dist/_internal/shared/features/pricing/rate-registry.js +246 -0
- package/dist/_internal/shared/features/shipping/parcel.d.ts +123 -0
- package/dist/_internal/shared/features/shipping/parcel.js +139 -0
- package/dist/_internal/shared/features/shipping/shared-purchase.d.ts +91 -0
- package/dist/_internal/shared/features/shipping/shared-purchase.js +108 -0
- package/dist/_internal/shared/features/site-settings/fees.d.ts +16 -8
- package/dist/_internal/shared/features/site-settings/fees.js +12 -8
- package/dist/_internal/shared/features/site-settings/types.d.ts +11 -0
- package/dist/_internal/shared/fees/calculator.d.ts +33 -1
- package/dist/_internal/shared/fees/calculator.js +32 -2
- package/dist/_internal/shared/fees/explain.d.ts +81 -0
- package/dist/_internal/shared/fees/explain.js +101 -0
- package/dist/_internal/shared/history/index.d.ts +1 -1
- package/dist/_internal/shared/history/index.js +1 -1
- package/dist/_internal/shared/history/types.d.ts +7 -1
- package/dist/_internal/shared/history/types.js +25 -0
- package/dist/client.d.ts +21 -0
- package/dist/client.js +43 -0
- package/dist/constants/api-endpoints.d.ts +114 -0
- package/dist/constants/api-endpoints.js +55 -0
- package/dist/constants/field-names.d.ts +42 -0
- package/dist/constants/field-names.js +52 -0
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/shipping.d.ts +45 -0
- package/dist/contracts/shipping.js +15 -0
- package/dist/features/about/components/AboutView.js +1 -1
- package/dist/features/account/components/BuyerAuctionsGuideView.js +4 -1
- package/dist/features/account/components/UserOrdersView.js +47 -35
- package/dist/features/admin/components/AdminCouponEditorView.js +17 -0
- package/dist/features/admin/components/AdminIntegrationsView.d.ts +55 -0
- package/dist/features/admin/components/AdminIntegrationsView.js +74 -0
- package/dist/features/admin/components/AdminInvoicingView.d.ts +2 -0
- package/dist/features/admin/components/AdminInvoicingView.js +65 -0
- package/dist/features/admin/components/AdminOrderEditorView.d.ts +33 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +81 -3
- package/dist/features/admin/components/AdminOrdersGuideView.js +23 -2
- package/dist/features/admin/components/AdminOrdersView.js +86 -5
- package/dist/features/admin/components/OwnerQuickActions.js +24 -2
- package/dist/features/admin/constants/filter-tabs.d.ts +6 -0
- package/dist/features/admin/constants/filter-tabs.js +6 -0
- package/dist/features/admin/constants/site-settings-tabs.d.ts +1 -1
- package/dist/features/admin/hooks/useAdminListingData.js +16 -0
- package/dist/features/admin/schemas/admin-user-form.d.ts +2 -2
- package/dist/features/admin/schemas/firestore.d.ts +62 -0
- package/dist/features/admin/schemas/firestore.js +5 -0
- package/dist/features/ads/schemas/booking-write.d.ts +120 -0
- package/dist/features/ads/schemas/booking-write.js +75 -0
- package/dist/features/ads/schemas/creative-form.d.ts +18 -0
- package/dist/features/ads/schemas/creative-form.js +51 -0
- package/dist/features/ads/schemas/firestore.d.ts +140 -0
- package/dist/features/ads/schemas/firestore.js +109 -0
- package/dist/features/auctions/repository/bid.repository.js +3 -1
- package/dist/features/audit-log/schemas/firestore.d.ts +140 -0
- package/dist/features/audit-log/schemas/firestore.js +89 -0
- package/dist/features/auth/actions/profile-actions.d.ts +69 -1
- package/dist/features/auth/actions/profile-actions.js +62 -1
- package/dist/features/auth/permissions/constants.js +13 -0
- package/dist/features/auth/schemas/firestore.d.ts +16 -2
- package/dist/features/auth/schemas/firestore.js +2 -1
- package/dist/features/blog/actions/blog-actions.d.ts +6 -0
- package/dist/features/blog/actions/blog-actions.js +17 -2
- package/dist/features/blog/api/route.js +4 -1
- package/dist/features/blog/columns/index.js +5 -0
- package/dist/features/blog/components/BlogIndexPageView.js +2 -1
- package/dist/features/blog/repository/blog.repository.d.ts +4 -0
- package/dist/features/blog/repository/blog.repository.js +5 -0
- package/dist/features/blog/schemas/blog-form.d.ts +3 -0
- package/dist/features/blog/schemas/blog-form.js +1 -0
- package/dist/features/blog/schemas/firestore.d.ts +38 -1
- package/dist/features/blog/schemas/firestore.js +23 -0
- package/dist/features/blog/schemas/index.d.ts +6 -0
- package/dist/features/blog/schemas/index.js +2 -0
- package/dist/features/blog/types/index.d.ts +2 -0
- package/dist/features/cart/components/CartPriceBreakdown.d.ts +25 -1
- package/dist/features/cart/components/CartPriceBreakdown.js +29 -6
- package/dist/features/cart/components/PointsTenderPicker.d.ts +61 -0
- package/dist/features/cart/components/PointsTenderPicker.js +15 -0
- package/dist/features/cart/components/StoreAddonsPicker.js +2 -1
- package/dist/features/cart/components/index.d.ts +2 -0
- package/dist/features/cart/components/index.js +1 -0
- package/dist/features/cart/repository/cart.repository.d.ts +33 -0
- package/dist/features/cart/repository/cart.repository.js +47 -0
- package/dist/features/cart/schemas/firestore.d.ts +116 -0
- package/dist/features/contact/email.d.ts +27 -10
- package/dist/features/contact/email.js +20 -3
- package/dist/features/dashboard/components/DashboardHubView.d.ts +83 -0
- package/dist/features/dashboard/components/DashboardHubView.js +56 -0
- package/dist/features/dashboard/components/DashboardSectionsClient.d.ts +23 -0
- package/dist/features/dashboard/components/DashboardSectionsClient.js +66 -0
- package/dist/features/dispute-reasons/components/AdminDisputeReasonsView.d.ts +55 -0
- package/dist/features/dispute-reasons/components/AdminDisputeReasonsView.js +175 -0
- package/dist/features/dispute-reasons/repository/dispute-reasons.repository.d.ts +62 -0
- package/dist/features/dispute-reasons/repository/dispute-reasons.repository.js +108 -0
- package/dist/features/dispute-reasons/schemas/firestore.d.ts +62 -0
- package/dist/features/dispute-reasons/schemas/firestore.js +40 -0
- package/dist/features/events/components/EventSaleBanner.js +1 -1
- package/dist/features/faq/components/FAQAccordion.d.ts +13 -1
- package/dist/features/faq/components/FAQAccordion.js +29 -4
- package/dist/features/faq/components/FAQPageContent.js +2 -2
- package/dist/features/gateway-events/schemas/index.d.ts +2 -2
- package/dist/features/homepage/schemas/index.d.ts +8 -8
- package/dist/features/inventory/schemas/stock-reservation.d.ts +114 -0
- package/dist/features/inventory/schemas/stock-reservation.js +103 -0
- package/dist/features/invoicing/schemas/firestore.d.ts +112 -0
- package/dist/features/invoicing/schemas/firestore.js +45 -0
- package/dist/features/invoicing/utils/financial-year.d.ts +43 -0
- package/dist/features/invoicing/utils/financial-year.js +53 -0
- package/dist/features/jobs/actions/enqueue-job.js +18 -1
- package/dist/features/jobs/repository/jobs.repository.d.ts +62 -1
- package/dist/features/jobs/repository/jobs.repository.js +84 -1
- package/dist/features/jobs/schemas/firestore.d.ts +80 -0
- package/dist/features/jobs/schemas/firestore.js +37 -0
- package/dist/features/layout/AppLayoutShell.d.ts +9 -1
- package/dist/features/layout/AppLayoutShell.js +12 -4
- package/dist/features/layout/BottomActions.js +2 -1
- package/dist/features/layout/BottomNavbar.d.ts +10 -2
- package/dist/features/layout/SideActionDock.js +52 -2
- package/dist/features/layout/TitleBarLayout.js +13 -4
- package/dist/features/layout/TitleBarLayout.style.css +59 -0
- package/dist/features/layout/useCtaReveal.d.ts +16 -1
- package/dist/features/layout/useCtaReveal.js +17 -26
- package/dist/features/ledger/repository/journal.repository.d.ts +110 -0
- package/dist/features/ledger/repository/journal.repository.js +312 -0
- package/dist/features/ledger/schemas/expenses.d.ts +87 -0
- package/dist/features/ledger/schemas/expenses.js +27 -0
- package/dist/features/ledger/schemas/firestore.d.ts +183 -0
- package/dist/features/ledger/schemas/firestore.js +69 -0
- package/dist/features/lottery/schemas/zod.d.ts +6 -6
- package/dist/features/media/MediaImage.js +22 -1
- package/dist/features/media/upload/ImageUpload.js +1 -1
- package/dist/features/obligations/constants/policies.js +24 -1
- package/dist/features/orders/components/BalancePaymentPanel.d.ts +12 -0
- package/dist/features/orders/components/BalancePaymentPanel.js +94 -0
- package/dist/features/orders/components/OrderPaymentSummary.js +10 -1
- package/dist/features/orders/components/OrderProvenanceCard.d.ts +8 -0
- package/dist/features/orders/components/OrderProvenanceCard.js +185 -0
- package/dist/features/orders/components/RaiseDisputeForm.d.ts +14 -0
- package/dist/features/orders/components/RaiseDisputeForm.js +119 -0
- package/dist/features/orders/components/RefundRequestView.js +19 -1
- package/dist/features/orders/components/index.d.ts +4 -0
- package/dist/features/orders/components/index.js +2 -0
- package/dist/features/orders/constants/order-lane-tabs.d.ts +69 -0
- package/dist/features/orders/constants/order-lane-tabs.js +88 -0
- package/dist/features/orders/repository/orders.repository.d.ts +85 -1
- package/dist/features/orders/repository/orders.repository.js +205 -6
- package/dist/features/orders/schemas/balance.d.ts +40 -0
- package/dist/features/orders/schemas/balance.js +47 -0
- package/dist/features/orders/schemas/firestore.d.ts +398 -1
- package/dist/features/orders/schemas/firestore.js +43 -0
- package/dist/features/orders/schemas/index.d.ts +56 -8
- package/dist/features/orders/schemas/index.js +12 -0
- package/dist/features/orders/types/index.d.ts +47 -0
- package/dist/features/orders/utils/courier-block.d.ts +25 -0
- package/dist/features/orders/utils/courier-block.js +23 -0
- package/dist/features/payment-cases/schemas/firestore.d.ts +26 -1
- package/dist/features/payment-cases/schemas/firestore.js +1 -0
- package/dist/features/payments/repository/payout.repository.js +3 -2
- package/dist/features/payments/schemas/firestore.d.ts +92 -1
- package/dist/features/payments/schemas/firestore.js +23 -0
- package/dist/features/pricing/components/AdminPricingView.d.ts +13 -0
- package/dist/features/pricing/components/AdminPricingView.js +157 -0
- package/dist/features/products/components/PrizeDrawDetailPageView.js +2 -2
- package/dist/features/products/components/ProductDetailPageView.d.ts +17 -1
- package/dist/features/products/components/ProductDetailPageView.js +2 -2
- package/dist/features/products/schemas/firestore.d.ts +26 -1
- package/dist/features/products/schemas/firestore.js +2 -0
- package/dist/features/products/schemas/index.d.ts +2 -2
- package/dist/features/products/schemas/product-features.validators.d.ts +10 -10
- package/dist/features/promotions/actions/coupon-stacking.d.ts +30 -3
- package/dist/features/promotions/actions/coupon-stacking.js +21 -2
- package/dist/features/promotions/components/CouponCard.js +13 -0
- package/dist/features/promotions/constants/coupon-help.d.ts +2 -2
- package/dist/features/promotions/constants/coupon-help.js +9 -1
- package/dist/features/promotions/schemas/firestore.d.ts +24 -0
- package/dist/features/promotions/schemas/firestore.js +4 -0
- package/dist/features/promotions/types/index.d.ts +19 -1
- package/dist/features/reviews/repository/reviews.repository.d.ts +14 -0
- package/dist/features/reviews/repository/reviews.repository.js +16 -0
- package/dist/features/scams/components/ScamProfileView.js +2 -2
- package/dist/features/scams/components/ScamRegistryView.js +2 -2
- package/dist/features/scams/repository/scammer.repository.js +2 -1
- package/dist/features/scams/schemas/firestore.d.ts +2 -1
- package/dist/features/scams/schemas/firestore.js +2 -1
- package/dist/features/search/action-index/tab-entries.js +1 -1
- package/dist/features/seller/actions/offer-actions.js +56 -0
- package/dist/features/seller/actions/seller-actions.d.ts +1 -1
- package/dist/features/seller/actions/seller-actions.js +37 -3
- package/dist/features/seller/components/DispatchForm.d.ts +11 -0
- package/dist/features/seller/components/DispatchForm.js +190 -0
- package/dist/features/seller/components/SellerOrdersView.js +221 -27
- package/dist/features/seller/components/index.d.ts +1 -0
- package/dist/features/seller/components/index.js +1 -0
- package/dist/features/seller/hooks/useSellerListingData.js +25 -0
- package/dist/features/seller/repository/offer.repository.js +4 -3
- package/dist/features/seller/schemas/firestore.d.ts +23 -2
- package/dist/features/seller/schemas/firestore.js +3 -2
- package/dist/features/seller/schemas/index.d.ts +4 -4
- package/dist/features/seller/schemas/order-forms.d.ts +61 -4
- package/dist/features/seller/schemas/order-forms.js +41 -8
- package/dist/features/shipments/schemas/firestore.d.ts +25 -0
- package/dist/features/shipments/schemas/validation.d.ts +4 -4
- package/dist/features/shipping-boxes/repository/shipping-boxes.repository.d.ts +82 -0
- package/dist/features/shipping-boxes/repository/shipping-boxes.repository.js +145 -0
- package/dist/features/shipping-boxes/schemas/firestore.d.ts +80 -0
- package/dist/features/shipping-boxes/schemas/firestore.js +53 -0
- package/dist/features/store-extensions/schemas/report-create-form.d.ts +2 -2
- package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +2 -2
- package/dist/features/stores/components/StoreOrdersGuideView.js +6 -1
- package/dist/features/stores/repository/store.repository.d.ts +18 -0
- package/dist/features/stores/repository/store.repository.js +27 -1
- package/dist/features/stores/schemas/firestore.d.ts +112 -0
- package/dist/features/stores/schemas/firestore.js +20 -0
- package/dist/features/stores/schemas/index.d.ts +6 -6
- package/dist/features/stores/types/index.d.ts +19 -0
- package/dist/features/support/repository/support.repository.js +72 -6
- package/dist/features/support/schemas/firestore.d.ts +17 -0
- package/dist/features/support/schemas/index.d.ts +8 -8
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +33 -1
- package/dist/next/routing/route-map.d.ts +112 -0
- package/dist/next/routing/route-map.js +63 -0
- package/dist/providers/shipping-shiprocket/index.d.ts +27 -1
- package/dist/providers/shipping-shiprocket/index.js +84 -1
- package/dist/react/contexts/SessionContext.d.ts +17 -1
- package/dist/schemas/registry.d.ts +69 -34
- package/dist/schemas/sieve.d.ts +2 -2
- package/dist/security/pii-schemas.d.ts +1 -1
- package/dist/security/pii-schemas.js +45 -0
- package/dist/server-entry.d.ts +2 -2
- package/dist/server-entry.js +8 -1
- package/dist/server.d.ts +36 -1
- package/dist/server.js +183 -1
- package/dist/styles.css +412 -80
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/themes/default-dark.js +1 -0
- package/dist/tokens/themes/default-light.js +1 -0
- package/dist/tokens/themes/required.d.ts +1 -1
- package/dist/tokens/themes/required.js +1 -0
- package/dist/tokens/tokens.css +15 -0
- package/dist/ui/components/Button.d.ts +10 -1
- package/dist/ui/components/Button.js +25 -3
- package/dist/ui/components/Chart.d.ts +63 -0
- package/dist/ui/components/Chart.js +169 -0
- package/dist/ui/components/Chart.style.css +214 -0
- package/dist/ui/components/Disclaimer.d.ts +19 -0
- package/dist/ui/components/Disclaimer.js +83 -0
- package/dist/ui/components/OverflowRow.js +54 -2
- package/dist/ui/components/OverflowRow.style.css +38 -0
- package/dist/ui/components/RichTextEditor.js +99 -8
- package/dist/ui/components/chart-spec.d.ts +68 -0
- package/dist/ui/components/chart-spec.js +140 -0
- package/dist/ui/components/index.style.css +1 -0
- package/dist/ui/components/surface-tokens.d.ts +1 -1
- package/dist/ui/components/surface-tokens.js +9 -0
- package/dist/ui/components/tabs-overflow.js +64 -11
- package/dist/ui/components/toolbar-collapse.d.ts +13 -0
- package/dist/ui/components/toolbar-collapse.js +10 -1
- package/dist/ui/index.d.ts +8 -0
- package/dist/ui/index.js +9 -0
- package/dist/ui/rich-text/RichText.d.ts +10 -1
- package/dist/ui/rich-text/RichText.js +33 -2
- package/dist/ui/rich-text/RichText.style.css +83 -79
- package/dist/ui/rich-text/RichTextRenderer.d.ts +30 -1
- package/dist/ui/rich-text/RichTextRenderer.js +34 -2
- package/dist/ui/rich-text/chart-blocks.d.ts +62 -0
- package/dist/ui/rich-text/chart-blocks.js +87 -0
- package/package.json +1 -1
- package/scripts/seed-cli.mjs +1834 -1822
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type SelectedShippingQuote } from "../../../shared/shipping/quote";
|
|
2
2
|
import { type StoreShippingPolicy } from "../../../shared/features/shipping/mode";
|
|
3
|
+
import { type SharedPurchaseRates } from "../../../shared/features/shipping/shared-purchase";
|
|
3
4
|
import { type CartLane } from "../../../shared/checkout/lanes";
|
|
4
5
|
import type { OutOfStockPolicy } from "../../../../features/orders/schemas/index";
|
|
5
6
|
import { type CheckoutPaymentMethod } from "../../../shared/features/checkout/config";
|
|
@@ -11,7 +12,20 @@ export interface CreateCheckoutOrderInput {
|
|
|
11
12
|
/** Required for physical carts; omitted for digital-code-only carts (no shipping). */
|
|
12
13
|
addressId?: string;
|
|
13
14
|
paymentMethod: CheckoutPaymentMethod;
|
|
14
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* LEGACY ONLY. The instalment plan lives on `CartDocument.emiPlan`, written
|
|
17
|
+
* by `PUT /api/cart/emi`, because the online path needs the same answer in
|
|
18
|
+
* two separate requests (see that field's own note). This is honoured solely
|
|
19
|
+
* for a tab opened before 2026-10-22, which posts `paymentMethod: "emi"`
|
|
20
|
+
* plus a tenure here and has nothing on the cart — and it is ignored
|
|
21
|
+
* whenever the cart carries a plan, so a client can never re-price a quote
|
|
22
|
+
* the server has already issued.
|
|
23
|
+
*
|
|
24
|
+
* 🛑 "Pay in instalments" is an opt-in ON THE ORDER, orthogonal to the
|
|
25
|
+
* tender: the token is collected by whichever payment method the buyer
|
|
26
|
+
* picked. `resolveEmiChoice` is the one expression both axes resolve
|
|
27
|
+
* through, and `emiTenderFor` maps the legacy `"emi"` tender.
|
|
28
|
+
*/
|
|
15
29
|
emiTenureMonths?: number;
|
|
16
30
|
/**
|
|
17
31
|
* The courier the buyer picked at checkout, with the ₹50-rounded rate they
|
|
@@ -132,6 +146,33 @@ opts?: {
|
|
|
132
146
|
shipping: boolean;
|
|
133
147
|
sale: boolean;
|
|
134
148
|
};
|
|
149
|
+
/**
|
|
150
|
+
* Decision 22 — does this seller accept buyer points as part-payment?
|
|
151
|
+
*
|
|
152
|
+
* Here for the same reason as `storeProtections` directly above: the store
|
|
153
|
+
* document is already in hand, and the accepting store ABSORBS the
|
|
154
|
+
* redemption against its own payout, so this is a liability flag and absence
|
|
155
|
+
* resolves to `false` exactly once, here.
|
|
156
|
+
*
|
|
157
|
+
* 🛑 Resolved through `storeAcceptsPoints()`, never a bare field read — the
|
|
158
|
+
* platform's own storefront always accepts and that is decided in code
|
|
159
|
+
* rather than by a seeded flag somebody can switch off.
|
|
160
|
+
*/
|
|
161
|
+
acceptsPoints: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* S5a — the shared-purchase rates, from the store read this function already
|
|
164
|
+
* performs.
|
|
165
|
+
*
|
|
166
|
+
* Returned RAW rather than as a quote, for the same reason
|
|
167
|
+
* `storeTaxIdentity` is: the decision (how many destinations, and therefore
|
|
168
|
+
* what it costs) belongs to the caller that knows the lines. This function
|
|
169
|
+
* resolves per-store facts.
|
|
170
|
+
*
|
|
171
|
+
* 🛑 `undefined` on a fee is preserved and NOT defaulted to 0 — a seller who
|
|
172
|
+
* opted in without pricing it has not agreed to do it free. `quoteSharedPurchase`
|
|
173
|
+
* reports that as `unpriced` and the caller refuses.
|
|
174
|
+
*/
|
|
175
|
+
sharedPurchaseRates: SharedPurchaseRates;
|
|
135
176
|
}>;
|
|
136
177
|
export interface DroppedCoupon {
|
|
137
178
|
code: string;
|
|
@@ -160,15 +201,21 @@ export interface CheckoutPricingPreviewInput {
|
|
|
160
201
|
*/
|
|
161
202
|
lane?: CartLane;
|
|
162
203
|
/**
|
|
163
|
-
*
|
|
204
|
+
* LEGACY ONLY — see `CreateCheckoutOrderInput.emiTenureMonths`.
|
|
205
|
+
*
|
|
206
|
+
* 🛑 The plan is read off `CartDocument.emiPlan`, so the preview and the
|
|
207
|
+
* order resolve it from the same durable value. This docstring used to argue
|
|
208
|
+
* the opposite — *"the tenure is NOT on the cart document: it is picked on
|
|
209
|
+
* the payment step and belongs to the order, so it has to travel with the
|
|
210
|
+
* request"* — and that reasoning is what left the ONLINE path unable to
|
|
211
|
+
* agree with itself, because `/api/payment/create-order` decides the capture
|
|
212
|
+
* amount in one request and `/api/payment/verify` writes the order in
|
|
213
|
+
* another. A request body cannot be read by both.
|
|
164
214
|
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* amount. Unlike the add-ons below, the tenure is NOT on the cart document:
|
|
170
|
-
* it is picked on the payment step and belongs to the order, so it has to
|
|
171
|
-
* travel with the request.
|
|
215
|
+
* The surcharge is `principalRemaining × surchargePercentPerMonth ×
|
|
216
|
+
* tenureMonths`, so it genuinely cannot be derived from the cart ITEMS
|
|
217
|
+
* alone — which is why the tenure had to become part of the cart DOCUMENT
|
|
218
|
+
* rather than part of the request.
|
|
172
219
|
*/
|
|
173
220
|
emiTenureMonths?: number;
|
|
174
221
|
}
|
|
@@ -182,6 +229,15 @@ export interface CheckoutPricingPreviewStore {
|
|
|
182
229
|
giftWrapFee: number;
|
|
183
230
|
shipmentProtectionFee: number;
|
|
184
231
|
saleProtectionFee: number;
|
|
232
|
+
/**
|
|
233
|
+
* How much of this seller's total is DEFERRED into instalments — the
|
|
234
|
+
* financed principal plus its surcharge. Zero unless instalments are on.
|
|
235
|
+
*
|
|
236
|
+
* 🛑 Not a discount and not a fee. `total` stays the full value of the
|
|
237
|
+
* supply (it is what the invoice declares and what a refund measures
|
|
238
|
+
* against); this is the slice of it that is not collected today.
|
|
239
|
+
*/
|
|
240
|
+
emiDeferred: number;
|
|
185
241
|
/**
|
|
186
242
|
* EMI surcharge for THIS seller, when the buyer is previewing an EMI order.
|
|
187
243
|
*
|
|
@@ -213,6 +269,26 @@ export interface CheckoutPricingPreviewStore {
|
|
|
213
269
|
supportsSaleProtection: boolean;
|
|
214
270
|
/** True when any of this store's priced lines is `finalSale`. */
|
|
215
271
|
hasFinalSaleItem: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* D46/D47 + decision 22 — does this seller accept points?
|
|
274
|
+
*
|
|
275
|
+
* Carried for the same reason as the two protection booleans directly above:
|
|
276
|
+
* the gate and the amount must be provably one decision rather than two that
|
|
277
|
+
* agree by discipline. A seller card can then say "points not accepted here"
|
|
278
|
+
* instead of the buyer wondering why their discount is smaller than their
|
|
279
|
+
* balance.
|
|
280
|
+
*/
|
|
281
|
+
acceptsPoints: boolean;
|
|
282
|
+
/** Points applied to THIS store's order. Zero when it does not accept them. */
|
|
283
|
+
pointsApplied: number;
|
|
284
|
+
/**
|
|
285
|
+
* S5a — the shared-purchase fee for this store's order (handling + extra
|
|
286
|
+
* shipping legs). Zero on an ordinary single-destination order.
|
|
287
|
+
*
|
|
288
|
+
* 🛑 Surfaced because a coordinator commits against the preview, and the
|
|
289
|
+
* plan is explicit that these fees must be shown BEFORE they commit.
|
|
290
|
+
*/
|
|
291
|
+
sharedPurchaseFee: number;
|
|
216
292
|
}
|
|
217
293
|
export interface CheckoutPricingPreview {
|
|
218
294
|
subtotal: number;
|
|
@@ -223,13 +299,57 @@ export interface CheckoutPricingPreview {
|
|
|
223
299
|
saleProtectionFee: number;
|
|
224
300
|
/** Total EMI surcharge across sellers. Zero unless previewing an EMI order. */
|
|
225
301
|
emiSurcharge: number;
|
|
302
|
+
/**
|
|
303
|
+
* Total DEFERRED into instalments across sellers. Zero unless instalments
|
|
304
|
+
* are on. `total − pointsApplied − emiDeferred` is `amountDue` — what the
|
|
305
|
+
* buyer pays today.
|
|
306
|
+
*/
|
|
307
|
+
emiDeferred: number;
|
|
226
308
|
gstAmount: number;
|
|
227
309
|
couponDiscount: number;
|
|
228
310
|
/** Buyer-facing platform commission, capped, charged once for this checkout. */
|
|
229
311
|
platformFee: number;
|
|
230
312
|
/** GST on the (capped) platform commission. */
|
|
231
313
|
gstOnFee: number;
|
|
314
|
+
/**
|
|
315
|
+
* S5a — handling plus extra shipping legs, across every store in the cart.
|
|
316
|
+
*
|
|
317
|
+
* 🛑 A real additive charge, unlike the tax-inclusive `gstAmount`, so it is
|
|
318
|
+
* a term in `total` and belongs in the fee column.
|
|
319
|
+
*/
|
|
320
|
+
sharedPurchaseFee: number;
|
|
232
321
|
total: number;
|
|
322
|
+
/**
|
|
323
|
+
* D46/D47 — points applied across every accepting store in this checkout.
|
|
324
|
+
*
|
|
325
|
+
* 🛑 `total` stays the ORDER VALUE and is not reduced by this. `amountDue`
|
|
326
|
+
* below is what the buyer actually pays, and the two are deliberately both
|
|
327
|
+
* returned: the summary shows the full total, the discount line, and then the
|
|
328
|
+
* amount due, which is how a buyer can see what their points did. Collapsing
|
|
329
|
+
* them into one figure would hide the discount from the person who earned it.
|
|
330
|
+
*/
|
|
331
|
+
pointsApplied: number;
|
|
332
|
+
/**
|
|
333
|
+
* What the gateway will be asked to capture: `total − pointsApplied`.
|
|
334
|
+
*
|
|
335
|
+
* 🛑 THIS is the parity figure. The capture route and the post-capture guard
|
|
336
|
+
* must both use it, or points become a sixth way the captured amount diverges
|
|
337
|
+
* from the recorded order (D37/D38/D40). Equal to `total` whenever neither
|
|
338
|
+
* points nor instalments apply, so every existing reader of `total` stays
|
|
339
|
+
* correct.
|
|
340
|
+
*
|
|
341
|
+
* 🛑 Instalments reduce it too, via `amountDueNow` — the same expression the
|
|
342
|
+
* two order writers use. An EMI buyer pays the TOKEN today; quoting the full
|
|
343
|
+
* total here is what made the manual-payment page ask for the whole amount
|
|
344
|
+
* while scheduling instalments for the same money.
|
|
345
|
+
*/
|
|
346
|
+
amountDue: number;
|
|
347
|
+
/**
|
|
348
|
+
* The buyer's remaining points balance, for the cart's own copy ("you have
|
|
349
|
+
* N points"). Zero when they have not opted in — the preview does not read a
|
|
350
|
+
* balance it is not going to use.
|
|
351
|
+
*/
|
|
352
|
+
pointsBalance: number;
|
|
233
353
|
/**
|
|
234
354
|
* Per-store breakdown, in group order. Every figure here was already being
|
|
235
355
|
* computed inside the per-group loop and then discarded into an aggregate —
|