@mohasinac/appkit 4.58.0 → 4.60.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 +62 -5
- package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.js +2 -2
- package/dist/_internal/server/features/brands/actions.js +78 -4
- package/dist/_internal/server/features/checkout/actions.d.ts +36 -13
- package/dist/_internal/server/features/checkout/actions.js +668 -183
- package/dist/_internal/server/features/checkout/supplier-identity.js +18 -1
- package/dist/_internal/server/features/gateway-events/index.d.ts +10 -0
- package/dist/_internal/server/features/gateway-events/index.js +10 -0
- package/dist/_internal/server/features/gateway-events/ingest.d.ts +127 -0
- package/dist/_internal/server/features/gateway-events/ingest.js +188 -0
- package/dist/_internal/server/features/gateway-events/redact.d.ts +66 -0
- package/dist/_internal/server/features/gateway-events/redact.js +151 -0
- package/dist/_internal/server/features/grievance/actions.d.ts +63 -0
- package/dist/_internal/server/features/grievance/actions.js +173 -0
- package/dist/_internal/server/features/grievance/index.d.ts +8 -0
- package/dist/_internal/server/features/grievance/index.js +8 -0
- package/dist/_internal/server/features/grouped/data.js +28 -3
- package/dist/_internal/server/features/lottery/actions.js +99 -4
- package/dist/_internal/server/features/order-completion/actions.d.ts +92 -0
- package/dist/_internal/server/features/order-completion/actions.js +336 -0
- package/dist/_internal/server/features/order-completion/index.d.ts +7 -0
- package/dist/_internal/server/features/order-completion/index.js +7 -0
- package/dist/_internal/server/features/orders/actions.d.ts +13 -0
- package/dist/_internal/server/features/orders/actions.js +56 -2
- package/dist/_internal/server/features/orders/adapters.js +26 -0
- package/dist/_internal/server/features/orders/cancellation-refund.d.ts +116 -0
- package/dist/_internal/server/features/orders/cancellation-refund.js +466 -0
- package/dist/_internal/server/features/orders/index.d.ts +2 -1
- package/dist/_internal/server/features/orders/index.js +1 -1
- package/dist/_internal/server/features/orders/service.d.ts +60 -0
- package/dist/_internal/server/features/orders/service.js +74 -0
- package/dist/_internal/server/features/payment-cases/disputes.d.ts +76 -0
- package/dist/_internal/server/features/payment-cases/disputes.js +241 -0
- package/dist/_internal/server/features/payment-cases/index.d.ts +9 -0
- package/dist/_internal/server/features/payment-cases/index.js +9 -0
- package/dist/_internal/server/features/payouts/actions.d.ts +28 -3
- package/dist/_internal/server/features/payouts/actions.js +84 -10
- package/dist/_internal/server/features/points/adjust.d.ts +61 -0
- package/dist/_internal/server/features/points/adjust.js +121 -0
- package/dist/_internal/server/features/points/award.d.ts +65 -0
- package/dist/_internal/server/features/points/award.js +145 -0
- package/dist/_internal/server/features/price-index/market.d.ts +33 -0
- package/dist/_internal/server/features/price-index/market.js +54 -1
- package/dist/_internal/server/features/products/data.js +40 -22
- package/dist/_internal/server/features/protection-claims/actions.d.ts +72 -0
- package/dist/_internal/server/features/protection-claims/actions.js +228 -0
- package/dist/_internal/server/features/protection-claims/index.d.ts +8 -0
- package/dist/_internal/server/features/protection-claims/index.js +8 -0
- package/dist/_internal/server/features/refunds/actions.d.ts +20 -0
- package/dist/_internal/server/features/refunds/actions.js +259 -17
- package/dist/_internal/server/features/refunds/capacity.d.ts +29 -0
- package/dist/_internal/server/features/refunds/capacity.js +37 -0
- package/dist/_internal/server/features/reviews/actions.js +3 -2
- package/dist/_internal/server/features/search/index-build/sources.js +20 -1
- package/dist/_internal/server/features/shipping/reconcile.d.ts +10 -1
- package/dist/_internal/server/features/shipping/reconcile.js +34 -3
- package/dist/_internal/server/features/shipping/reimbursement.d.ts +117 -0
- package/dist/_internal/server/features/shipping/reimbursement.js +223 -0
- package/dist/_internal/server/features/stores/tabs.d.ts +19 -4
- package/dist/_internal/server/features/stores/tabs.js +24 -4
- package/dist/_internal/server/functions/https.d.ts +31 -1
- package/dist/_internal/server/functions/https.js +52 -1
- package/dist/_internal/server/functions/scheduled.d.ts +72 -1
- package/dist/_internal/server/functions/scheduled.js +124 -1
- package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +62 -16
- package/dist/_internal/server/jobs/core/boxRollupReconcile.d.ts +46 -0
- package/dist/_internal/server/jobs/core/boxRollupReconcile.js +142 -0
- package/dist/_internal/server/jobs/core/dailyDataCleanup.js +149 -1
- package/dist/_internal/server/jobs/core/dailyStatusDigest.d.ts +14 -0
- package/dist/_internal/server/jobs/core/dailyStatusDigest.js +79 -1
- package/dist/_internal/server/jobs/core/index.d.ts +2 -0
- package/dist/_internal/server/jobs/core/index.js +2 -0
- package/dist/_internal/server/jobs/core/marketPriceRollup.d.ts +64 -0
- package/dist/_internal/server/jobs/core/marketPriceRollup.js +153 -0
- package/dist/_internal/server/jobs/core/obligationSweep.d.ts +36 -0
- package/dist/_internal/server/jobs/core/obligationSweep.js +503 -0
- package/dist/_internal/server/jobs/core/paymentReconcile.d.ts +79 -0
- package/dist/_internal/server/jobs/core/paymentReconcile.js +614 -0
- package/dist/_internal/server/jobs/core/paymentWindowTimeout.js +34 -0
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +35 -4
- package/dist/_internal/server/jobs/handlers/boxRollupReconcile.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/boxRollupReconcile.js +15 -0
- package/dist/_internal/server/jobs/handlers/countersReconcileNow.d.ts +65 -0
- package/dist/_internal/server/jobs/handlers/countersReconcileNow.js +89 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +5 -0
- package/dist/_internal/server/jobs/handlers/index.js +5 -0
- package/dist/_internal/server/jobs/handlers/marketPriceRollup.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/marketPriceRollup.js +2 -0
- package/dist/_internal/server/jobs/handlers/messages.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/messages.js +1 -1
- package/dist/_internal/server/jobs/handlers/obligationSweep.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/obligationSweep.js +15 -0
- package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.js +30 -1
- package/dist/_internal/server/jobs/handlers/paymentReconcile.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/paymentReconcile.js +6 -0
- package/dist/_internal/shared/actions/action-registry.d.ts +1 -1
- package/dist/_internal/shared/actions/action-registry.js +71 -0
- package/dist/_internal/shared/checkout/coupon-discount.d.ts +73 -0
- package/dist/_internal/shared/checkout/coupon-discount.js +103 -0
- package/dist/_internal/shared/checkout/lanes.d.ts +42 -0
- package/dist/_internal/shared/checkout/lanes.js +46 -0
- package/dist/_internal/shared/checkout/order-math.d.ts +149 -1
- package/dist/_internal/shared/checkout/order-math.js +251 -3
- package/dist/_internal/shared/checkout/refundable-base.d.ts +116 -0
- package/dist/_internal/shared/checkout/refundable-base.js +122 -0
- package/dist/_internal/shared/features/auctions/config.d.ts +14 -1
- package/dist/_internal/shared/features/auctions/config.js +30 -1
- package/dist/_internal/shared/features/brands/schema.d.ts +42 -0
- package/dist/_internal/shared/features/brands/schema.js +18 -0
- package/dist/_internal/shared/features/orders/refund-copy.d.ts +22 -0
- package/dist/_internal/shared/features/orders/refund-copy.js +34 -0
- package/dist/_internal/shared/features/print/label-profiles.d.ts +198 -0
- package/dist/_internal/shared/features/print/label-profiles.js +350 -0
- package/dist/_internal/shared/features/products/to-product-item.js +33 -5
- package/dist/_internal/shared/fees/calculator.d.ts +31 -2
- package/dist/_internal/shared/fees/calculator.js +103 -5
- package/dist/_internal/shared/fees/india-states.d.ts +195 -0
- package/dist/_internal/shared/fees/india-states.js +190 -0
- package/dist/_internal/shared/fees/payout-hold.d.ts +80 -0
- package/dist/_internal/shared/fees/payout-hold.js +74 -0
- package/dist/_internal/shared/obligations/deadlines.d.ts +94 -0
- package/dist/_internal/shared/obligations/deadlines.js +155 -0
- package/dist/_internal/shared/shipping/quote.d.ts +96 -0
- package/dist/_internal/shared/shipping/quote.js +67 -0
- package/dist/_internal/shared/time/business-days.d.ts +91 -0
- package/dist/_internal/shared/time/business-days.js +185 -0
- package/dist/_internal/shared/types/base-document.d.ts +1 -1
- package/dist/cli/index.js +0 -2
- package/dist/client.d.ts +9 -4
- package/dist/client.js +26 -3
- package/dist/configs/tailwind.d.ts +0 -12
- package/dist/configs/tailwind.js +28 -15
- package/dist/constants/api-endpoints.d.ts +51 -9
- package/dist/constants/api-endpoints.js +23 -7
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/seed-meta.d.ts +113 -0
- package/dist/constants/seed-meta.js +91 -0
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/payment.d.ts +131 -0
- package/dist/features/about/components/AboutView.js +1 -1
- package/dist/features/about/components/DeveloperView.js +5 -2
- package/dist/features/about/components/FAQPageView.js +2 -1
- package/dist/features/about/components/FeesView.js +2 -1
- package/dist/features/about/components/HelpPageView.js +2 -1
- package/dist/features/about/components/HowAuctionsWorkView.js +2 -1
- package/dist/features/about/components/HowCheckoutWorksView.js +2 -1
- package/dist/features/about/components/HowEmiWorksView.js +2 -1
- package/dist/features/about/components/HowOffersWorkView.js +2 -1
- package/dist/features/about/components/HowOrdersWorkView.js +2 -1
- package/dist/features/about/components/HowPayoutsWorkView.js +2 -1
- package/dist/features/about/components/HowPreOrdersWorkView.js +2 -1
- package/dist/features/about/components/HowReviewsWorkView.js +2 -1
- package/dist/features/about/components/PolicyPageView.js +2 -1
- package/dist/features/about/components/ProseHero.d.ts +73 -0
- package/dist/features/about/components/ProseHero.js +18 -0
- package/dist/features/about/components/SecurityPrivacyView.js +2 -1
- package/dist/features/about/components/ShippingPolicyView.js +2 -1
- package/dist/features/about/components/TrackOrderView.js +2 -1
- package/dist/features/about/components/UnauthorizedView.js +1 -1
- package/dist/features/about/index.d.ts +2 -0
- package/dist/features/about/index.js +5 -0
- package/dist/features/account/actions/address-actions.d.ts +26 -2
- package/dist/features/account/actions/address-actions.js +25 -1
- package/dist/features/account/components/BuyerShoppingGuideView.js +1 -1
- package/dist/features/account/components/NotificationPreferencesPanel.js +1 -1
- package/dist/features/account/components/UserOrdersView.js +17 -0
- package/dist/features/account/components/UserSidebar.js +1 -1
- package/dist/features/account/hooks/useNotifications.js +29 -0
- package/dist/features/admin/actions/admin-coupon-actions.js +36 -0
- package/dist/features/admin/components/AdminBeysView.js +2 -2
- package/dist/features/admin/components/AdminBlogEditorView.js +2 -2
- package/dist/features/admin/components/AdminBrandEditorView.js +32 -2
- package/dist/features/admin/components/AdminBundleEditorView.js +1 -1
- package/dist/features/admin/components/AdminCarouselEditorView.js +1 -1
- package/dist/features/admin/components/AdminCategoriesView.js +1 -1
- package/dist/features/admin/components/AdminCategoryEditorView.js +73 -17
- package/dist/features/admin/components/AdminContactEditorView.js +1 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +26 -1
- package/dist/features/admin/components/AdminFaqEditorView.js +1 -1
- package/dist/features/admin/components/AdminFaqsView.js +2 -2
- package/dist/features/admin/components/AdminGatewayEventsView.d.ts +54 -0
- package/dist/features/admin/components/AdminGatewayEventsView.js +209 -0
- package/dist/features/admin/components/AdminGuideHubView.js +1 -1
- package/dist/features/admin/components/AdminMoneyCasesView.d.ts +60 -0
- package/dist/features/admin/components/AdminMoneyCasesView.js +287 -0
- package/dist/features/admin/components/AdminPartsView.js +2 -2
- package/dist/features/admin/components/AdminProductsView.js +75 -4
- package/dist/features/admin/components/AdminSidebar.js +2 -2
- package/dist/features/admin/components/AdminSiteSettingsView.js +65 -7
- package/dist/features/admin/components/AdminSublistingCategoriesView.js +2 -0
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +1 -1
- package/dist/features/admin/components/AdminSupportTicketsView.js +2 -2
- package/dist/features/admin/components/AdminTesterChecklistView.js +2 -2
- package/dist/features/admin/components/AdminUsersView.js +72 -1
- package/dist/features/admin/components/AdminViewCards.d.ts +3 -1
- package/dist/features/admin/components/AdminViewCards.js +4 -4
- package/dist/features/admin/components/DataListingView.d.ts +28 -0
- package/dist/features/admin/components/DataListingView.js +175 -14
- package/dist/features/admin/components/DataTable.d.ts +12 -1
- package/dist/features/admin/components/DataTable.js +3 -3
- package/dist/features/admin/components/OwnerQuickActions.d.ts +1 -1
- package/dist/features/admin/components/OwnerQuickActions.js +60 -2
- package/dist/features/admin/components/RecordOwnerQuickActions.d.ts +1 -1
- package/dist/features/admin/components/RecordOwnerQuickActions.js +61 -14
- package/dist/features/admin/components/analytics/AdminStatCard.d.ts +35 -1
- package/dist/features/admin/components/analytics/AdminStatCard.js +77 -2
- package/dist/features/admin/components/index.d.ts +4 -0
- package/dist/features/admin/components/index.js +6 -0
- package/dist/features/admin/constants/filter-tabs.d.ts +156 -0
- package/dist/features/admin/constants/filter-tabs.js +106 -0
- package/dist/features/admin/repository/site-settings.repository.d.ts +22 -0
- package/dist/features/admin/repository/site-settings.repository.js +82 -1
- package/dist/features/admin/schemas/admin-editor-forms.d.ts +21 -0
- package/dist/features/admin/schemas/admin-editor-forms.js +44 -0
- package/dist/features/admin/schemas/firestore.js +5 -1
- package/dist/features/admin/schemas/site-settings-form.js +30 -1
- package/dist/features/auctions/actions/bid-actions.js +13 -1
- package/dist/features/auctions/components/AuctionBottomActions.js +2 -2
- package/dist/features/auctions/components/AuctionDetailPageView.js +3 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +11 -0
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +5 -3
- package/dist/features/auctions/components/PlaceBidFormClient.d.ts +8 -1
- package/dist/features/auctions/components/PlaceBidFormClient.js +2 -2
- package/dist/features/audit-log/schemas/firestore.d.ts +28 -0
- package/dist/features/audit-log/schemas/firestore.js +14 -0
- package/dist/features/auth/permissions/constants.d.ts +17 -1
- package/dist/features/auth/permissions/constants.js +18 -0
- package/dist/features/blog/components/BlogPostView.js +1 -1
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +1 -1
- package/dist/features/categories/api/[id]/description-template/route.js +107 -1
- package/dist/features/categories/components/BrandDetailPageView.js +2 -2
- package/dist/features/categories/components/BreadcrumbTrail.js +7 -1
- package/dist/features/categories/components/BundleDetailView.js +1 -1
- package/dist/features/categories/components/CategoryDetailPageView.js +2 -2
- package/dist/features/categories/components/CategoryForm.js +12 -1
- package/dist/features/categories/components/CategoryTemplatePicker.js +38 -5
- package/dist/features/categories/repository/market-price-index.repository.d.ts +123 -0
- package/dist/features/categories/repository/market-price-index.repository.js +105 -0
- package/dist/features/categories/repository/price-observation.repository.d.ts +166 -0
- package/dist/features/categories/repository/price-observation.repository.js +132 -0
- package/dist/features/events/components/EventSaleBanner.js +1 -1
- package/dist/features/events/components/EventStatusBadge.js +1 -1
- package/dist/features/faq/components/FAQAccordion.js +2 -1
- package/dist/features/faq/components/FAQCategorySidebar.js +2 -2
- package/dist/features/faq/components/FAQHelpfulButtons.js +4 -4
- package/dist/features/faq/components/RelatedFAQs.js +1 -1
- package/dist/features/filters/FilterFacetSection.js +1 -1
- package/dist/features/filters/SwitchFilter.js +1 -1
- package/dist/features/gateway-events/repository/gateway-events.repository.d.ts +117 -0
- package/dist/features/gateway-events/repository/gateway-events.repository.js +274 -0
- package/dist/features/gateway-events/schemas/firestore.d.ts +217 -0
- package/dist/features/gateway-events/schemas/firestore.js +125 -0
- package/dist/features/gateway-events/schemas/index.d.ts +81 -0
- package/dist/features/gateway-events/schemas/index.js +79 -0
- package/dist/features/grouped/components/GroupedListingDetailView.js +1 -1
- package/dist/features/homepage/components/AnnouncementBar.js +37 -1
- package/dist/features/homepage/components/AnnouncementBar.style.css +30 -0
- package/dist/features/homepage/components/BrandsSection.js +1 -1
- package/dist/features/homepage/components/CTABannerSection.js +1 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.js +14 -24
- package/dist/features/homepage/components/HeroCarousel.js +2 -2
- package/dist/features/homepage/components/SocialPostCard.js +1 -1
- package/dist/features/inventory/components/AdminMoveLedgerView.d.ts +7 -0
- package/dist/features/inventory/components/AdminMoveLedgerView.js +157 -0
- package/dist/features/inventory/components/AdminStorageBoxesView.d.ts +11 -0
- package/dist/features/inventory/components/AdminStorageBoxesView.js +168 -0
- package/dist/features/inventory/components/ReceiveStationView.d.ts +39 -0
- package/dist/features/inventory/components/ReceiveStationView.js +413 -0
- package/dist/features/inventory/components/operator-message.d.ts +29 -0
- package/dist/features/inventory/components/operator-message.js +41 -0
- package/dist/features/inventory/index.d.ts +13 -0
- package/dist/features/inventory/index.js +28 -0
- package/dist/features/inventory/repository/inventory-movements.repository.d.ts +97 -0
- package/dist/features/inventory/repository/inventory-movements.repository.js +186 -0
- package/dist/features/inventory/repository/inventory-placements.repository.d.ts +179 -0
- package/dist/features/inventory/repository/inventory-placements.repository.js +345 -0
- package/dist/features/inventory/repository/storage-boxes.repository.d.ts +83 -0
- package/dist/features/inventory/repository/storage-boxes.repository.js +127 -0
- package/dist/features/inventory/schemas/firestore.d.ts +197 -0
- package/dist/features/inventory/schemas/firestore.js +159 -0
- package/dist/features/layout/AppLayoutShell.d.ts +12 -1
- package/dist/features/layout/AppLayoutShell.js +25 -12
- package/dist/features/layout/AutoBreadcrumbs.js +162 -3
- package/dist/features/layout/AutoBreadcrumbs.style.css +45 -0
- package/dist/features/layout/BottomNavbar.d.ts +1 -1
- package/dist/features/layout/BottomNavbar.js +2 -2
- package/dist/features/media/MediaAvatar.js +1 -1
- package/dist/features/media/MediaImage.d.ts +24 -4
- package/dist/features/media/MediaImage.js +44 -4
- package/dist/features/media/MediaLightbox.js +1 -1
- package/dist/features/media/modals/ImageCropModal.js +1 -1
- package/dist/features/media/modals/ImageEditor.js +1 -1
- package/dist/features/media/upload/MediaUploadField.js +91 -3
- package/dist/features/obligations/constants/policies.d.ts +92 -0
- package/dist/features/obligations/constants/policies.js +378 -0
- package/dist/features/obligations/repository/obligations.repository.d.ts +68 -0
- package/dist/features/obligations/repository/obligations.repository.js +158 -0
- package/dist/features/obligations/schemas/firestore.d.ts +160 -0
- package/dist/features/obligations/schemas/firestore.js +87 -0
- package/dist/features/orders/actions/order-actions.d.ts +43 -4
- package/dist/features/orders/actions/order-actions.js +60 -3
- package/dist/features/orders/actions/refund-actions.js +70 -10
- package/dist/features/orders/components/OrderCompletionPanel.d.ts +27 -0
- package/dist/features/orders/components/OrderCompletionPanel.js +192 -0
- package/dist/features/orders/components/OrdersList.js +2 -2
- package/dist/features/orders/components/RefundHistoryTable.js +3 -1
- package/dist/features/orders/components/index.d.ts +2 -0
- package/dist/features/orders/components/index.js +6 -0
- package/dist/features/orders/constants/transitions.d.ts +59 -0
- package/dist/features/orders/constants/transitions.js +104 -0
- package/dist/features/orders/repository/orders.repository.d.ts +109 -6
- package/dist/features/orders/repository/orders.repository.js +464 -21
- package/dist/features/orders/schemas/firestore.d.ts +270 -0
- package/dist/features/orders/schemas/firestore.js +24 -0
- package/dist/features/orders/schemas/index.d.ts +61 -0
- package/dist/features/orders/schemas/index.js +22 -0
- package/dist/features/orders/types/index.d.ts +79 -0
- package/dist/features/parts/components/PartsIndexPageView.js +8 -1
- package/dist/features/payment-cases/repository/payment-cases.repository.d.ts +170 -0
- package/dist/features/payment-cases/repository/payment-cases.repository.js +342 -0
- package/dist/features/payment-cases/schemas/firestore.d.ts +229 -0
- package/dist/features/payment-cases/schemas/firestore.js +105 -0
- package/dist/features/payment-cases/schemas/resolve-form.d.ts +97 -0
- package/dist/features/payment-cases/schemas/resolve-form.js +114 -0
- package/dist/features/payments/repository/payout.repository.d.ts +0 -1
- package/dist/features/payments/repository/payout.repository.js +0 -1
- package/dist/features/points/repository/points.repository.d.ts +122 -0
- package/dist/features/points/repository/points.repository.js +304 -1
- package/dist/features/points/schemas/adjust-form.d.ts +58 -0
- package/dist/features/points/schemas/adjust-form.js +63 -0
- package/dist/features/points/schemas/firestore.d.ts +108 -1
- package/dist/features/points/schemas/firestore.js +84 -0
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +3 -3
- package/dist/features/pre-orders/components/PreOrderBadge.js +1 -1
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +1 -1
- package/dist/features/price-index/components/PriceIndexToolView.d.ts +23 -4
- package/dist/features/price-index/components/PriceIndexToolView.js +71 -6
- package/dist/features/price-index/market-stats.d.ts +82 -0
- package/dist/features/price-index/market-stats.js +230 -0
- package/dist/features/print/components/BoxLabelPrintView.d.ts +25 -0
- package/dist/features/print/components/BoxLabelPrintView.js +66 -0
- package/dist/features/print/components/LabelProfilePicker.d.ts +13 -0
- package/dist/features/print/components/LabelProfilePicker.js +38 -0
- package/dist/features/print/components/labels.d.ts +117 -0
- package/dist/features/print/components/labels.js +258 -0
- package/dist/features/print/components/labels.style.css +46 -0
- package/dist/features/print/index.d.ts +6 -0
- package/dist/features/print/index.js +16 -0
- package/dist/features/products/columns/productTableColumns.js +5 -4
- package/dist/features/products/components/MarketplaceBundleCard.js +2 -2
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +6 -6
- package/dist/features/products/components/PrizeDrawCollage.js +1 -1
- package/dist/features/products/components/PrizeDrawItemsEditor.js +1 -1
- package/dist/features/products/components/PrizeRevealModal.js +2 -2
- package/dist/features/products/components/ProductDetailPageView.js +18 -4
- package/dist/features/products/components/ProductForm.js +34 -23
- package/dist/features/products/components/ProductGrid.js +86 -62
- package/dist/features/products/constants/card-badges.d.ts +97 -0
- package/dist/features/products/constants/card-badges.js +100 -0
- package/dist/features/products/repository/products.repository.js +34 -1
- package/dist/features/products/schemas/firestore.d.ts +46 -3
- package/dist/features/products/schemas/firestore.js +21 -0
- package/dist/features/promotions/components/PromotionsView.js +1 -1
- package/dist/features/promotions/repository/claimed-coupons.repository.d.ts +32 -0
- package/dist/features/promotions/repository/claimed-coupons.repository.js +58 -0
- package/dist/features/promotions/schemas/firestore.js +30 -3
- package/dist/features/promotions/schemas/index.d.ts +6 -6
- package/dist/features/protection-claims/repository/protection-claims.repository.d.ts +54 -0
- package/dist/features/protection-claims/repository/protection-claims.repository.js +174 -0
- package/dist/features/protection-claims/schemas/firestore.d.ts +168 -0
- package/dist/features/protection-claims/schemas/firestore.js +130 -0
- package/dist/features/reviews/actions/review-actions.js +3 -2
- package/dist/features/reviews/components/ReviewModal.js +1 -1
- package/dist/features/reviews/components/ReviewsList.js +1 -1
- package/dist/features/reviews/schemas/firestore.d.ts +20 -1
- package/dist/features/scams/constants/scam-types.d.ts +2 -0
- package/dist/features/scams/constants/scam-types.js +18 -0
- package/dist/features/scams/schemas/report-form.d.ts +3 -3
- package/dist/features/scams/schemas/report-form.js +26 -1
- package/dist/features/search/components/Search.js +9 -9
- package/dist/features/search/components/SearchResultsClient.js +18 -3
- package/dist/features/search/components/SearchResultsPageView.d.ts +1 -6
- package/dist/features/search/components/SearchResultsPageView.js +2 -2
- package/dist/features/seller/actions/offer-actions.js +16 -1
- package/dist/features/seller/actions/seller-actions.js +14 -3
- package/dist/features/seller/components/CategoryInlineSelect.js +75 -11
- package/dist/features/seller/components/PrintCenterView.d.ts +5 -0
- package/dist/features/seller/components/PrintCenterView.js +41 -30
- package/dist/features/seller/components/SellerOrdersView.js +1 -1
- package/dist/features/seller/components/SellerPayoutRequestView.js +16 -5
- package/dist/features/seller/components/SellerPayoutSettingsView.js +1 -1
- package/dist/features/seller/components/SellerProductShell.d.ts +16 -0
- package/dist/features/seller/components/SellerProductShell.js +123 -13
- package/dist/features/seller/components/SellerReviewsView.js +4 -2
- package/dist/features/seller/components/SellerSidebar.js +1 -1
- package/dist/features/seller/schemas/coupon-form.d.ts +26 -0
- package/dist/features/seller/schemas/coupon-form.js +27 -0
- package/dist/features/seller/schemas/product-form.d.ts +3 -0
- package/dist/features/seller/schemas/product-form.js +5 -0
- package/dist/features/shell/FormShell.js +2 -2
- package/dist/features/shell/QuickFormDrawer.js +14 -0
- package/dist/features/shell/SectionForm.d.ts +19 -0
- package/dist/features/shell/SectionForm.js +133 -9
- package/dist/features/shell/SectionForm.style.css +54 -0
- package/dist/features/shipments/components/AdminShipmentsView.js +16 -1
- package/dist/features/shipments/repository/shipment-items.repository.d.ts +9 -0
- package/dist/features/shipments/repository/shipment-items.repository.js +14 -0
- package/dist/features/site-settings/components/ActionPermissionsManager.js +1 -1
- package/dist/features/sticker-trace/components/StickerCommitPanel.js +1 -1
- package/dist/features/store-extensions/schemas/report-review-form.d.ts +8 -8
- package/dist/features/stores/components/StoreGuideHubView.js +1 -1
- package/dist/features/stores/components/StoreHeader.js +1 -1
- package/dist/features/support/schemas/firestore.d.ts +73 -2
- package/dist/features/support/schemas/firestore.js +59 -0
- package/dist/index.d.ts +16 -155
- package/dist/index.js +88 -341
- package/dist/next/ErrorBoundary.js +1 -1
- package/dist/next/routing/route-map.d.ts +24 -0
- package/dist/next/routing/route-map.js +40 -0
- package/dist/providers/payment-manual/index.d.ts +15 -1
- package/dist/providers/payment-manual/index.js +37 -0
- package/dist/providers/payment-phonepe/index.d.ts +14 -1
- package/dist/providers/payment-phonepe/index.js +36 -0
- package/dist/providers/payment-razorpay/index.d.ts +44 -1
- package/dist/providers/payment-razorpay/index.js +99 -0
- package/dist/providers/shipping-shiprocket/index.d.ts +18 -0
- package/dist/providers/shipping-shiprocket/index.js +18 -0
- package/dist/schemas/registry.d.ts +44 -11
- package/dist/server-entry.d.ts +2 -0
- package/dist/server-entry.js +27 -0
- package/dist/server.d.ts +42 -69
- package/dist/server.js +93 -69
- package/dist/styles.css +418 -149
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/themes/default-dark.js +15 -12
- package/dist/tokens/themes/default-light.js +14 -11
- package/dist/tokens/tokens.css +106 -23
- package/dist/ui/DataTable.style.css +4 -4
- package/dist/ui/columns/cell-renderers.d.ts +20 -0
- package/dist/ui/columns/cell-renderers.js +26 -1
- package/dist/ui/columns/index.d.ts +1 -1
- package/dist/ui/columns/index.js +4 -1
- package/dist/ui/components/Badge.style.css +1 -1
- package/dist/ui/components/Breadcrumb.js +19 -1
- package/dist/ui/components/BulkActionBar.style.css +4 -4
- package/dist/ui/components/Button.style.css +1 -1
- package/dist/ui/components/Checkbox.style.css +1 -1
- package/dist/ui/components/FallbackShell.js +1 -1
- package/dist/ui/components/Form.d.ts +14 -1
- package/dist/ui/components/Form.js +2 -2
- package/dist/ui/components/FormField.js +18 -4
- package/dist/ui/components/FormField.style.css +43 -3
- package/dist/ui/components/GatedPrice.style.css +1 -1
- package/dist/ui/components/IconButton.style.css +1 -1
- package/dist/ui/components/Input.js +22 -1
- package/dist/ui/components/Input.style.css +38 -22
- package/dist/ui/components/ListingFilterDrawer.js +1 -1
- package/dist/ui/components/ListingToolbar.js +1 -1
- package/dist/ui/components/PaginatedSelect.js +0 -0
- package/dist/ui/components/Radio.style.css +1 -1
- package/dist/ui/components/Repeater.d.ts +53 -0
- package/dist/ui/components/Repeater.js +7 -0
- package/dist/ui/components/RichTextEditor.d.ts +20 -1
- package/dist/ui/components/RichTextEditor.js +23 -2
- package/dist/ui/components/Select.style.css +7 -21
- package/dist/ui/components/Semantic.js +27 -3
- package/dist/ui/components/TagInput.style.css +4 -9
- package/dist/ui/components/Textarea.style.css +4 -18
- package/dist/ui/components/Toggle.style.css +1 -1
- package/dist/ui/components/Typography.d.ts +3 -3
- package/dist/ui/components/Typography.js +15 -15
- package/dist/ui/components/ViewToggle.style.css +4 -4
- package/dist/ui/forms/AddAnotherToggle.d.ts +16 -0
- package/dist/ui/forms/AddAnotherToggle.js +56 -0
- package/dist/ui/forms/ColorPickerField.js +15 -2
- package/dist/ui/forms/FieldCheckbox.js +15 -2
- package/dist/ui/forms/FieldInput.d.ts +22 -1
- package/dist/ui/forms/FieldInput.js +19 -5
- package/dist/ui/forms/FieldLabel.d.ts +35 -0
- package/dist/ui/forms/FieldLabel.js +70 -0
- package/dist/ui/forms/FieldSelect.d.ts +4 -1
- package/dist/ui/forms/FieldSelect.js +27 -5
- package/dist/ui/forms/FieldTextarea.d.ts +4 -1
- package/dist/ui/forms/FieldTextarea.js +22 -5
- package/dist/ui/forms/FormShell.d.ts +17 -1
- package/dist/ui/forms/FormShell.js +36 -2
- package/dist/ui/forms/FormShell.style.css +41 -33
- package/dist/ui/forms/index.d.ts +5 -1
- package/dist/ui/forms/index.js +2 -0
- package/dist/ui/icons/icon-registry.d.ts +1 -0
- package/dist/ui/icons/icon-registry.js +17 -1
- package/dist/utils/id-generators.d.ts +80 -0
- package/dist/utils/id-generators.js +93 -0
- package/dist/utils/search-txt-builders.d.ts +12 -0
- package/dist/utils/search-txt-builders.js +17 -0
- package/package.json +4 -2
- package/scripts/seed-cli.mjs +175 -6
- package/dist/features/loyalty/api/admin/loyalty/grant/route.d.ts +0 -12
- package/dist/features/loyalty/api/admin/loyalty/grant/route.js +0 -38
- package/dist/features/loyalty/api/balance/route.d.ts +0 -12
- package/dist/features/loyalty/api/balance/route.js +0 -41
- package/dist/features/loyalty/api/earn/route.d.ts +0 -12
- package/dist/features/loyalty/api/earn/route.js +0 -38
- package/dist/features/loyalty/api/history/route.d.ts +0 -12
- package/dist/features/loyalty/api/history/route.js +0 -58
- package/dist/features/loyalty/api/redeem/route.d.ts +0 -12
- package/dist/features/loyalty/api/redeem/route.js +0 -38
- package/dist/features/loyalty/columns/index.d.ts +0 -17
- package/dist/features/loyalty/columns/index.js +0 -40
- package/dist/features/loyalty/components/CoinsDisplay.d.ts +0 -12
- package/dist/features/loyalty/components/CoinsDisplay.js +0 -10
- package/dist/features/loyalty/components/index.d.ts +0 -1
- package/dist/features/loyalty/components/index.js +0 -1
- package/dist/features/loyalty/hooks/useLoyaltyBalance.d.ts +0 -4
- package/dist/features/loyalty/hooks/useLoyaltyBalance.js +0 -25
- package/dist/features/loyalty/index.d.ts +0 -6
- package/dist/features/loyalty/index.js +0 -6
- package/dist/features/loyalty/manifest.d.ts +0 -2
- package/dist/features/loyalty/manifest.js +0 -16
- package/dist/features/loyalty/messages/en.json +0 -19
- package/dist/features/loyalty/repository/loyalty.repository.d.ts +0 -8
- package/dist/features/loyalty/repository/loyalty.repository.js +0 -22
- package/dist/features/loyalty/schemas/index.d.ts +0 -85
- package/dist/features/loyalty/schemas/index.js +0 -40
- package/dist/features/loyalty/server.d.ts +0 -6
- package/dist/features/loyalty/server.js +0 -6
- package/dist/features/loyalty/types/index.d.ts +0 -31
- package/dist/features/loyalty/types/index.js +0 -1
- package/dist/features/loyalty/types/loyalty-config.d.ts +0 -7
- package/dist/features/loyalty/types/loyalty-config.js +0 -1
- package/dist/features/loyalty/types/loyalty-math.d.ts +0 -9
- package/dist/features/loyalty/types/loyalty-math.js +0 -27
- package/dist/features/products/components/ProductOwnerQuickActions.d.ts +0 -11
- package/dist/features/products/components/ProductOwnerQuickActions.js +0 -120
- package/dist/features/tester/seed-data/_happy-path.d.ts +0 -23
- package/dist/features/tester/seed-data/_happy-path.js +0 -710
- package/dist/features/tester/seed-data/_money-flows.d.ts +0 -23
- package/dist/features/tester/seed-data/_money-flows.js +0 -610
- package/dist/features/tester/seed-data/authored/_types.d.ts +0 -57
- package/dist/features/tester/seed-data/authored/_types.js +0 -35
- package/dist/features/tester/seed-data/authored/account-auth__profile-settings.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/account-auth__profile-settings.js +0 -226
- package/dist/features/tester/seed-data/authored/account-auth__signup-login.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/account-auth__signup-login.js +0 -329
- package/dist/features/tester/seed-data/authored/addresses__address-filters.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/addresses__address-filters.js +0 -41
- package/dist/features/tester/seed-data/authored/addresses__postal-lookup.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/addresses__postal-lookup.js +0 -76
- package/dist/features/tester/seed-data/authored/addresses__postal-validation.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/addresses__postal-validation.js +0 -78
- package/dist/features/tester/seed-data/authored/addresses__state-picker.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/addresses__state-picker.js +0 -59
- package/dist/features/tester/seed-data/authored/addresses__unban-request.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/addresses__unban-request.js +0 -77
- package/dist/features/tester/seed-data/authored/admin__admin-detail-round-trips.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__admin-detail-round-trips.js +0 -151
- package/dist/features/tester/seed-data/authored/admin__bans-and-trust.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__bans-and-trust.js +0 -265
- package/dist/features/tester/seed-data/authored/admin__blog-faqs.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__blog-faqs.js +0 -131
- package/dist/features/tester/seed-data/authored/admin__bug-hunter-rewards.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__bug-hunter-rewards.js +0 -143
- package/dist/features/tester/seed-data/authored/admin__bulk-actions.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__bulk-actions.js +0 -207
- package/dist/features/tester/seed-data/authored/admin__bundles.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__bundles.js +0 -144
- package/dist/features/tester/seed-data/authored/admin__buyer-data-admin.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__buyer-data-admin.js +0 -265
- package/dist/features/tester/seed-data/authored/admin__catalog-listings.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__catalog-listings.js +0 -318
- package/dist/features/tester/seed-data/authored/admin__category-brand-authoring.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__category-brand-authoring.js +0 -177
- package/dist/features/tester/seed-data/authored/admin__classifieds-digitalcodes-live.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__classifieds-digitalcodes-live.js +0 -165
- package/dist/features/tester/seed-data/authored/admin__content-deletes.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__content-deletes.js +0 -267
- package/dist/features/tester/seed-data/authored/admin__content-marketing.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__content-marketing.js +0 -188
- package/dist/features/tester/seed-data/authored/admin__coupons.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__coupons.js +0 -215
- package/dist/features/tester/seed-data/authored/admin__events-raffles-spin.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__events-raffles-spin.js +0 -202
- package/dist/features/tester/seed-data/authored/admin__firebase-function-effects.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__firebase-function-effects.js +0 -249
- package/dist/features/tester/seed-data/authored/admin__media-watermark.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__media-watermark.js +0 -148
- package/dist/features/tester/seed-data/authored/admin__orders-fulfillment.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__orders-fulfillment.js +0 -350
- package/dist/features/tester/seed-data/authored/admin__prize-draws-lotteries.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__prize-draws-lotteries.js +0 -129
- package/dist/features/tester/seed-data/authored/admin__site-system.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__site-system.js +0 -586
- package/dist/features/tester/seed-data/authored/admin__uncovered-admin-pages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__uncovered-admin-pages.js +0 -260
- package/dist/features/tester/seed-data/authored/admin__users-trust.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/admin__users-trust.js +0 -569
- package/dist/features/tester/seed-data/authored/buying__bidding.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__bidding.js +0 -449
- package/dist/features/tester/seed-data/authored/buying__browsing-search.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__browsing-search.js +0 -684
- package/dist/features/tester/seed-data/authored/buying__buying-checkout.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__buying-checkout.js +0 -546
- package/dist/features/tester/seed-data/authored/buying__buying-coupons.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__buying-coupons.js +0 -379
- package/dist/features/tester/seed-data/authored/buying__cart.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__cart.js +0 -1264
- package/dist/features/tester/seed-data/authored/buying__image-tile-layout.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__image-tile-layout.js +0 -122
- package/dist/features/tester/seed-data/authored/buying__my-orders.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__my-orders.js +0 -279
- package/dist/features/tester/seed-data/authored/buying__offers.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__offers.js +0 -1127
- package/dist/features/tester/seed-data/authored/buying__order-detail-actions.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__order-detail-actions.js +0 -153
- package/dist/features/tester/seed-data/authored/buying__order-status-lifecycle.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__order-status-lifecycle.js +0 -252
- package/dist/features/tester/seed-data/authored/buying__product-detail.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__product-detail.js +0 -474
- package/dist/features/tester/seed-data/authored/buying__return-request.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__return-request.js +0 -165
- package/dist/features/tester/seed-data/authored/buying__reviews-pagination.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__reviews-pagination.js +0 -260
- package/dist/features/tester/seed-data/authored/buying__reviews.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__reviews.js +0 -128
- package/dist/features/tester/seed-data/authored/buying__spares-and-groups.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__spares-and-groups.js +0 -96
- package/dist/features/tester/seed-data/authored/buying__user-dashboard-extras.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__user-dashboard-extras.js +0 -283
- package/dist/features/tester/seed-data/authored/buying__user-dashboard-navigation.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__user-dashboard-navigation.js +0 -169
- package/dist/features/tester/seed-data/authored/buying__user-uncovered-pages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__user-uncovered-pages.js +0 -105
- package/dist/features/tester/seed-data/authored/buying__wishlist-history.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/buying__wishlist-history.js +0 -374
- package/dist/features/tester/seed-data/authored/community-support__messages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/community-support__messages.js +0 -200
- package/dist/features/tester/seed-data/authored/community-support__public-profile.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/community-support__public-profile.js +0 -54
- package/dist/features/tester/seed-data/authored/community-support__support-tickets.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/community-support__support-tickets.js +0 -76
- package/dist/features/tester/seed-data/authored/content-discovery__authenticity-checker.d.ts +0 -4
- package/dist/features/tester/seed-data/authored/content-discovery__authenticity-checker.js +0 -590
- package/dist/features/tester/seed-data/authored/content-discovery__blog.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__blog.js +0 -110
- package/dist/features/tester/seed-data/authored/content-discovery__category-brand-relations.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__category-brand-relations.js +0 -149
- package/dist/features/tester/seed-data/authored/content-discovery__category-counts-and-rollup.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__category-counts-and-rollup.js +0 -145
- package/dist/features/tester/seed-data/authored/content-discovery__category-tabs-franchise-bundles.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__category-tabs-franchise-bundles.js +0 -174
- package/dist/features/tester/seed-data/authored/content-discovery__coupons.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__coupons.js +0 -169
- package/dist/features/tester/seed-data/authored/content-discovery__event-detail-subroutes.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__event-detail-subroutes.js +0 -209
- package/dist/features/tester/seed-data/authored/content-discovery__event-participation.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__event-participation.js +0 -207
- package/dist/features/tester/seed-data/authored/content-discovery__events.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__events.js +0 -377
- package/dist/features/tester/seed-data/authored/content-discovery__faq-help.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__faq-help.js +0 -87
- package/dist/features/tester/seed-data/authored/content-discovery__notifications.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__notifications.js +0 -147
- package/dist/features/tester/seed-data/authored/content-discovery__overflowing-pill-rows.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__overflowing-pill-rows.js +0 -209
- package/dist/features/tester/seed-data/authored/content-discovery__parts-database.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__parts-database.js +0 -167
- package/dist/features/tester/seed-data/authored/content-discovery__price-index-and-compare.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__price-index-and-compare.js +0 -73
- package/dist/features/tester/seed-data/authored/content-discovery__search.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__search.js +0 -363
- package/dist/features/tester/seed-data/authored/content-discovery__site-wide-index.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__site-wide-index.js +0 -340
- package/dist/features/tester/seed-data/authored/content-discovery__store-reviews-aggregate.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/content-discovery__store-reviews-aggregate.js +0 -88
- package/dist/features/tester/seed-data/authored/cta-layout__checkout-bottom-bar.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/cta-layout__checkout-bottom-bar.js +0 -78
- package/dist/features/tester/seed-data/authored/cta-layout__dialog-footers.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/cta-layout__dialog-footers.js +0 -76
- package/dist/features/tester/seed-data/authored/cta-layout__editor-action-bar.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/cta-layout__editor-action-bar.js +0 -62
- package/dist/features/tester/seed-data/authored/cta-layout__navbar-ctas.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/cta-layout__navbar-ctas.js +0 -163
- package/dist/features/tester/seed-data/authored/cta-layout__product-bottom-bar.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/cta-layout__product-bottom-bar.js +0 -61
- package/dist/features/tester/seed-data/authored/design-ux__action-bar-placement.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__action-bar-placement.js +0 -89
- package/dist/features/tester/seed-data/authored/design-ux__back-to-top-button.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__back-to-top-button.js +0 -95
- package/dist/features/tester/seed-data/authored/design-ux__carousel-arrow-bounds.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__carousel-arrow-bounds.js +0 -191
- package/dist/features/tester/seed-data/authored/design-ux__dashboard-layout.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__dashboard-layout.js +0 -158
- package/dist/features/tester/seed-data/authored/design-ux__feature-badge-picker.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__feature-badge-picker.js +0 -82
- package/dist/features/tester/seed-data/authored/design-ux__footer-theme.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__footer-theme.js +0 -106
- package/dist/features/tester/seed-data/authored/design-ux__form-validation-errors.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__form-validation-errors.js +0 -88
- package/dist/features/tester/seed-data/authored/design-ux__general-design.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__general-design.js +0 -204
- package/dist/features/tester/seed-data/authored/design-ux__hand-mode-layout.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__hand-mode-layout.js +0 -301
- package/dist/features/tester/seed-data/authored/design-ux__header-brand-mark-centring.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__header-brand-mark-centring.js +0 -90
- package/dist/features/tester/seed-data/authored/design-ux__header-controls-and-messages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__header-controls-and-messages.js +0 -85
- package/dist/features/tester/seed-data/authored/design-ux__homepage-carousels.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__homepage-carousels.js +0 -407
- package/dist/features/tester/seed-data/authored/design-ux__nav-reachability.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__nav-reachability.js +0 -88
- package/dist/features/tester/seed-data/authored/design-ux__rich-text-readability.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__rich-text-readability.js +0 -84
- package/dist/features/tester/seed-data/authored/design-ux__status-badge-legibility.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__status-badge-legibility.js +0 -214
- package/dist/features/tester/seed-data/authored/design-ux__sticky-cta-bar.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/design-ux__sticky-cta-bar.js +0 -275
- package/dist/features/tester/seed-data/authored/index.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/index.js +0 -301
- package/dist/features/tester/seed-data/authored/page-wiring__data-loss.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/page-wiring__data-loss.js +0 -125
- package/dist/features/tester/seed-data/authored/page-wiring__detail-pages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/page-wiring__detail-pages.js +0 -85
- package/dist/features/tester/seed-data/authored/page-wiring__drawer-pages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/page-wiring__drawer-pages.js +0 -92
- package/dist/features/tester/seed-data/authored/page-wiring__reachability.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/page-wiring__reachability.js +0 -115
- package/dist/features/tester/seed-data/authored/public-pages__auth-error-pages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/public-pages__auth-error-pages.js +0 -137
- package/dist/features/tester/seed-data/authored/public-pages__core-listing-pages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/public-pages__core-listing-pages.js +0 -263
- package/dist/features/tester/seed-data/authored/public-pages__help-how-it-works.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/public-pages__help-how-it-works.js +0 -229
- package/dist/features/tester/seed-data/authored/public-pages__help-scams-guides-subpages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/public-pages__help-scams-guides-subpages.js +0 -325
- package/dist/features/tester/seed-data/authored/public-pages__legal-policy-pages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/public-pages__legal-policy-pages.js +0 -126
- package/dist/features/tester/seed-data/authored/public-pages__newly-wired-browse-indexes.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/public-pages__newly-wired-browse-indexes.js +0 -141
- package/dist/features/tester/seed-data/authored/public-pages__store-tabs.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/public-pages__store-tabs.js +0 -115
- package/dist/features/tester/seed-data/authored/public-pages__stores-sellers-directories.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/public-pages__stores-sellers-directories.js +0 -253
- package/dist/features/tester/seed-data/authored/search-and-nav__employee-permissions.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/search-and-nav__employee-permissions.js +0 -93
- package/dist/features/tester/seed-data/authored/search-and-nav__header-search.d.ts +0 -3
- package/dist/features/tester/seed-data/authored/search-and-nav__header-search.js +0 -185
- package/dist/features/tester/seed-data/authored/search-and-nav__settings-deep-links.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/search-and-nav__settings-deep-links.js +0 -82
- package/dist/features/tester/seed-data/authored/search-and-nav__sidebar-search.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/search-and-nav__sidebar-search.js +0 -60
- package/dist/features/tester/seed-data/authored/selling__become-seller.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__become-seller.js +0 -117
- package/dist/features/tester/seed-data/authored/selling__digital-content-delivery.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__digital-content-delivery.js +0 -148
- package/dist/features/tester/seed-data/authored/selling__final-sale-authoring.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__final-sale-authoring.js +0 -108
- package/dist/features/tester/seed-data/authored/selling__listing-a-product.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__listing-a-product.js +0 -274
- package/dist/features/tester/seed-data/authored/selling__listing-edit-roundtrip.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__listing-edit-roundtrip.js +0 -145
- package/dist/features/tester/seed-data/authored/selling__listing-lifecycle.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__listing-lifecycle.js +0 -336
- package/dist/features/tester/seed-data/authored/selling__listing-type-fields-roundtrip.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__listing-type-fields-roundtrip.js +0 -136
- package/dist/features/tester/seed-data/authored/selling__media-limits.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__media-limits.js +0 -135
- package/dist/features/tester/seed-data/authored/selling__product-upload-details.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__product-upload-details.js +0 -155
- package/dist/features/tester/seed-data/authored/selling__quick-add-minimum-details.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__quick-add-minimum-details.js +0 -138
- package/dist/features/tester/seed-data/authored/selling__sectionised-forms.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__sectionised-forms.js +0 -191
- package/dist/features/tester/seed-data/authored/selling__seller-analytics-payouts.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-analytics-payouts.js +0 -138
- package/dist/features/tester/seed-data/authored/selling__seller-bids-bundles-filters.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-bids-bundles-filters.js +0 -106
- package/dist/features/tester/seed-data/authored/selling__seller-catalog-org.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-catalog-org.js +0 -192
- package/dist/features/tester/seed-data/authored/selling__seller-custom-brands.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-custom-brands.js +0 -109
- package/dist/features/tester/seed-data/authored/selling__seller-guide.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-guide.js +0 -34
- package/dist/features/tester/seed-data/authored/selling__seller-listing-types.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-listing-types.js +0 -348
- package/dist/features/tester/seed-data/authored/selling__seller-marketing-extras.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-marketing-extras.js +0 -87
- package/dist/features/tester/seed-data/authored/selling__seller-ops-comms.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-ops-comms.js +0 -90
- package/dist/features/tester/seed-data/authored/selling__seller-orders-at-scale.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-orders-at-scale.js +0 -85
- package/dist/features/tester/seed-data/authored/selling__seller-orders.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-orders.js +0 -213
- package/dist/features/tester/seed-data/authored/selling__seller-shipping-payouts-setup.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__seller-shipping-payouts-setup.js +0 -192
- package/dist/features/tester/seed-data/authored/selling__spares-and-group-editing.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__spares-and-group-editing.js +0 -77
- package/dist/features/tester/seed-data/authored/selling__store-dashboard-navigation.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__store-dashboard-navigation.js +0 -165
- package/dist/features/tester/seed-data/authored/selling__store-uncovered-pages.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/selling__store-uncovered-pages.js +0 -116
- package/dist/features/tester/seed-data/authored/seo__canonical-and-host.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/seo__canonical-and-host.js +0 -127
- package/dist/features/tester/seed-data/authored/seo__og-images.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/seo__og-images.js +0 -107
- package/dist/features/tester/seed-data/authored/seo__page-metadata.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/seo__page-metadata.js +0 -120
- package/dist/features/tester/seed-data/authored/seo__sitemap-and-robots.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/seo__sitemap-and-robots.js +0 -105
- package/dist/features/tester/seed-data/authored/tools__sticker-promote-to-listings.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/tools__sticker-promote-to-listings.js +0 -58
- package/dist/features/tester/seed-data/authored/tools__sticker-tracer.d.ts +0 -2
- package/dist/features/tester/seed-data/authored/tools__sticker-tracer.js +0 -284
- package/dist/features/tester/seed-data/index.d.ts +0 -2
- package/dist/features/tester/seed-data/index.js +0 -2
- package/dist/features/tester/seed-data/tester-checklist-seed-data.d.ts +0 -2
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +0 -7601
- package/dist/features/tester/seed-data/tester-responses-seed-data.d.ts +0 -2
- package/dist/features/tester/seed-data/tester-responses-seed-data.js +0 -95
- package/dist/features/tester/seed-data/tester-window.d.ts +0 -25
- package/dist/features/tester/seed-data/tester-window.js +0 -66
- package/dist/seed/_helpers/brand-rows.d.ts +0 -35
- package/dist/seed/_helpers/brand-rows.js +0 -600
- package/dist/seed/_helpers/category-content-generated.d.ts +0 -24
- package/dist/seed/_helpers/category-content-generated.js +0 -1853
- package/dist/seed/_helpers/category-content.d.ts +0 -68
- package/dist/seed/_helpers/category-content.js +0 -731
- package/dist/seed/_helpers/category-forest.d.ts +0 -4
- package/dist/seed/_helpers/category-forest.js +0 -824
- package/dist/seed/_helpers/category-images-generated.d.ts +0 -57
- package/dist/seed/_helpers/category-images-generated.js +0 -618
- package/dist/seed/_helpers/category-models/chunk0.d.ts +0 -2
- package/dist/seed/_helpers/category-models/chunk0.js +0 -2648
- package/dist/seed/_helpers/category-models/chunk1.d.ts +0 -2
- package/dist/seed/_helpers/category-models/chunk1.js +0 -2318
- package/dist/seed/_helpers/category-models/chunk2.d.ts +0 -2
- package/dist/seed/_helpers/category-models/chunk2.js +0 -2560
- package/dist/seed/_helpers/category-models/chunk3.d.ts +0 -2
- package/dist/seed/_helpers/category-models/chunk3.js +0 -2196
- package/dist/seed/_helpers/category-models/chunk4.d.ts +0 -2
- package/dist/seed/_helpers/category-models/chunk4.js +0 -1732
- package/dist/seed/_helpers/category-models.d.ts +0 -12
- package/dist/seed/_helpers/category-models.js +0 -45
- package/dist/seed/_helpers/category-names.d.ts +0 -54
- package/dist/seed/_helpers/category-names.js +0 -118
- package/dist/seed/_helpers/category-parts-glossary-map.d.ts +0 -1
- package/dist/seed/_helpers/category-parts-glossary-map.js +0 -2499
- package/dist/seed/_helpers/category-parts.d.ts +0 -9
- package/dist/seed/_helpers/category-parts.js +0 -15022
- package/dist/seed/_helpers/category-tree.d.ts +0 -27
- package/dist/seed/_helpers/category-tree.js +0 -119
- package/dist/seed/_helpers/character-features.d.ts +0 -10
- package/dist/seed/_helpers/character-features.js +0 -120
- package/dist/seed/_helpers/final-sale-fixtures.d.ts +0 -35
- package/dist/seed/_helpers/final-sale-fixtures.js +0 -61
- package/dist/seed/_helpers/franchise-rows.d.ts +0 -43
- package/dist/seed/_helpers/franchise-rows.js +0 -189
- package/dist/seed/_helpers/media.d.ts +0 -67
- package/dist/seed/_helpers/media.js +0 -172
- package/dist/seed/_helpers/part-colours-generated.d.ts +0 -18
- package/dist/seed/_helpers/part-colours-generated.js +0 -273
- package/dist/seed/_helpers/product-search-txt.d.ts +0 -18
- package/dist/seed/_helpers/product-search-txt.js +0 -23
- package/dist/seed/_helpers/search-txt-wrappers.d.ts +0 -26
- package/dist/seed/_helpers/search-txt-wrappers.js +0 -58
- package/dist/seed/addresses-seed-data.d.ts +0 -2
- package/dist/seed/addresses-seed-data.js +0 -78
- package/dist/seed/authenticity-knowledge-seed-data.d.ts +0 -78
- package/dist/seed/authenticity-knowledge-seed-data.js +0 -10729
- package/dist/seed/bey-products-seed-data.d.ts +0 -18
- package/dist/seed/bey-products-seed-data.js +0 -18011
- package/dist/seed/beys/chunk0.d.ts +0 -17
- package/dist/seed/beys/chunk0.js +0 -36733
- package/dist/seed/beys/chunk1.d.ts +0 -17
- package/dist/seed/beys/chunk1.js +0 -35728
- package/dist/seed/beys/chunk2.d.ts +0 -17
- package/dist/seed/beys/chunk2.js +0 -35857
- package/dist/seed/beys/chunk3.d.ts +0 -17
- package/dist/seed/beys/chunk3.js +0 -34476
- package/dist/seed/beys-seed-data.d.ts +0 -18
- package/dist/seed/beys-seed-data.js +0 -11
- package/dist/seed/bids-seed-data.d.ts +0 -2
- package/dist/seed/bids-seed-data.js +0 -206
- package/dist/seed/blog-posts-seed-data.d.ts +0 -6
- package/dist/seed/blog-posts-seed-data.js +0 -442
- package/dist/seed/carousel-slides-seed-data.d.ts +0 -2
- package/dist/seed/carousel-slides-seed-data.js +0 -411
- package/dist/seed/carousels-seed-data.d.ts +0 -2
- package/dist/seed/carousels-seed-data.js +0 -36
- package/dist/seed/cart-seed-data.d.ts +0 -2
- package/dist/seed/cart-seed-data.js +0 -241
- package/dist/seed/catalogue-seed-data.d.ts +0 -2
- package/dist/seed/catalogue-seed-data.js +0 -112
- package/dist/seed/categories-seed-data.d.ts +0 -3
- package/dist/seed/categories-seed-data.js +0 -816
- package/dist/seed/claimed-coupons-seed-data.d.ts +0 -2
- package/dist/seed/claimed-coupons-seed-data.js +0 -85
- package/dist/seed/coupon-usage-seed-data.d.ts +0 -9
- package/dist/seed/coupon-usage-seed-data.js +0 -55
- package/dist/seed/coupons-seed-data.d.ts +0 -2
- package/dist/seed/coupons-seed-data.js +0 -226
- package/dist/seed/defaults/categories.d.ts +0 -2
- package/dist/seed/defaults/categories.js +0 -12
- package/dist/seed/defaults/faqs.d.ts +0 -2
- package/dist/seed/defaults/faqs.js +0 -40
- package/dist/seed/events-seed-data.d.ts +0 -7
- package/dist/seed/events-seed-data.js +0 -482
- package/dist/seed/factories/address.factory.d.ts +0 -21
- package/dist/seed/factories/address.factory.js +0 -44
- package/dist/seed/factories/bid.factory.d.ts +0 -15
- package/dist/seed/factories/bid.factory.js +0 -33
- package/dist/seed/factories/blog-post.factory.d.ts +0 -15
- package/dist/seed/factories/blog-post.factory.js +0 -22
- package/dist/seed/factories/carousel.factory.d.ts +0 -11
- package/dist/seed/factories/carousel.factory.js +0 -17
- package/dist/seed/factories/cart.factory.d.ts +0 -25
- package/dist/seed/factories/cart.factory.js +0 -35
- package/dist/seed/factories/category.factory.d.ts +0 -11
- package/dist/seed/factories/category.factory.js +0 -16
- package/dist/seed/factories/coupon.factory.d.ts +0 -21
- package/dist/seed/factories/coupon.factory.js +0 -43
- package/dist/seed/factories/faq.factory.d.ts +0 -10
- package/dist/seed/factories/faq.factory.js +0 -15
- package/dist/seed/factories/notification.factory.d.ts +0 -18
- package/dist/seed/factories/notification.factory.js +0 -39
- package/dist/seed/factories/order.factory.d.ts +0 -20
- package/dist/seed/factories/order.factory.js +0 -20
- package/dist/seed/factories/payout.factory.d.ts +0 -21
- package/dist/seed/factories/payout.factory.js +0 -38
- package/dist/seed/factories/product.factory.d.ts +0 -27
- package/dist/seed/factories/product.factory.js +0 -80
- package/dist/seed/factories/review.factory.d.ts +0 -14
- package/dist/seed/factories/review.factory.js +0 -52
- package/dist/seed/factories/session.factory.d.ts +0 -15
- package/dist/seed/factories/session.factory.js +0 -31
- package/dist/seed/factories/store.factory.d.ts +0 -23
- package/dist/seed/factories/store.factory.js +0 -47
- package/dist/seed/factories/user.factory.d.ts +0 -19
- package/dist/seed/factories/user.factory.js +0 -56
- package/dist/seed/faq-seed-data.d.ts +0 -18
- package/dist/seed/faq-seed-data.js +0 -1956
- package/dist/seed/firestore-indexes.d.ts +0 -12
- package/dist/seed/firestore-indexes.js +0 -31
- package/dist/seed/grouped-listings-seed-data.d.ts +0 -2
- package/dist/seed/grouped-listings-seed-data.js +0 -283
- package/dist/seed/history-seed-data.d.ts +0 -12
- package/dist/seed/history-seed-data.js +0 -70
- package/dist/seed/homepage-sections-seed-data.d.ts +0 -2
- package/dist/seed/homepage-sections-seed-data.js +0 -1034
- package/dist/seed/index.d.ts +0 -100
- package/dist/seed/index.js +0 -115
- package/dist/seed/lottery-entries-seed-data.d.ts +0 -2
- package/dist/seed/lottery-entries-seed-data.js +0 -108
- package/dist/seed/manifest.d.ts +0 -16
- package/dist/seed/manifest.js +0 -235
- package/dist/seed/media-assets-seed-data.d.ts +0 -22
- package/dist/seed/media-assets-seed-data.js +0 -5593
- package/dist/seed/model-composition-seed-data.d.ts +0 -15
- package/dist/seed/model-composition-seed-data.js +0 -9032
- package/dist/seed/notifications-seed-data.d.ts +0 -2
- package/dist/seed/notifications-seed-data.js +0 -606
- package/dist/seed/offers-seed-data.d.ts +0 -2
- package/dist/seed/offers-seed-data.js +0 -398
- package/dist/seed/orders-seed-data.d.ts +0 -2
- package/dist/seed/orders-seed-data.js +0 -845
- package/dist/seed/part-glossary/chunk0.d.ts +0 -9
- package/dist/seed/part-glossary/chunk0.js +0 -35448
- package/dist/seed/part-glossary/chunk1.d.ts +0 -9
- package/dist/seed/part-glossary/chunk1.js +0 -40494
- package/dist/seed/part-glossary/chunk2.d.ts +0 -9
- package/dist/seed/part-glossary/chunk2.js +0 -51242
- package/dist/seed/part-glossary/chunk3.d.ts +0 -9
- package/dist/seed/part-glossary/chunk3.js +0 -53337
- package/dist/seed/part-glossary/chunk4.d.ts +0 -9
- package/dist/seed/part-glossary/chunk4.js +0 -51454
- package/dist/seed/part-glossary-seed-data.d.ts +0 -15
- package/dist/seed/part-glossary-seed-data.js +0 -25
- package/dist/seed/payouts-seed-data.d.ts +0 -2
- package/dist/seed/payouts-seed-data.js +0 -302
- package/dist/seed/product-features-seed-data.d.ts +0 -3
- package/dist/seed/product-features-seed-data.js +0 -366
- package/dist/seed/products-art-seed-data.d.ts +0 -2
- package/dist/seed/products-art-seed-data.js +0 -289
- package/dist/seed/products-auctions-seed-data.d.ts +0 -2
- package/dist/seed/products-auctions-seed-data.js +0 -475
- package/dist/seed/products-beyblade-x-seed-data.d.ts +0 -2
- package/dist/seed/products-beyblade-x-seed-data.js +0 -476
- package/dist/seed/products-catalogue/chunk0.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk0.js +0 -7262
- package/dist/seed/products-catalogue/chunk1.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk1.js +0 -7290
- package/dist/seed/products-catalogue/chunk10.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk10.js +0 -7290
- package/dist/seed/products-catalogue/chunk11.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk11.js +0 -7005
- package/dist/seed/products-catalogue/chunk12.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk12.js +0 -7002
- package/dist/seed/products-catalogue/chunk13.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk13.js +0 -7002
- package/dist/seed/products-catalogue/chunk14.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk14.js +0 -7002
- package/dist/seed/products-catalogue/chunk15.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk15.js +0 -7002
- package/dist/seed/products-catalogue/chunk16.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk16.js +0 -7002
- package/dist/seed/products-catalogue/chunk17.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk17.js +0 -7002
- package/dist/seed/products-catalogue/chunk18.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk18.js +0 -4398
- package/dist/seed/products-catalogue/chunk2.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk2.js +0 -7268
- package/dist/seed/products-catalogue/chunk3.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk3.js +0 -7264
- package/dist/seed/products-catalogue/chunk4.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk4.js +0 -7268
- package/dist/seed/products-catalogue/chunk5.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk5.js +0 -7258
- package/dist/seed/products-catalogue/chunk6.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk6.js +0 -7268
- package/dist/seed/products-catalogue/chunk7.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk7.js +0 -7311
- package/dist/seed/products-catalogue/chunk8.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk8.js +0 -7304
- package/dist/seed/products-catalogue/chunk9.d.ts +0 -12
- package/dist/seed/products-catalogue/chunk9.js +0 -7309
- package/dist/seed/products-catalogue-seed-data.d.ts +0 -2
- package/dist/seed/products-catalogue-seed-data.js +0 -60
- package/dist/seed/products-classifieds-seed-data.d.ts +0 -7
- package/dist/seed/products-classifieds-seed-data.js +0 -435
- package/dist/seed/products-digital-codes-seed-data.d.ts +0 -7
- package/dist/seed/products-digital-codes-seed-data.js +0 -395
- package/dist/seed/products-live-items-seed-data.d.ts +0 -7
- package/dist/seed/products-live-items-seed-data.js +0 -269
- package/dist/seed/products-preorders-seed-data.d.ts +0 -2
- package/dist/seed/products-preorders-seed-data.js +0 -360
- package/dist/seed/products-prize-draws-seed-data.d.ts +0 -7
- package/dist/seed/products-prize-draws-seed-data.js +0 -427
- package/dist/seed/products-spares-seed-data.d.ts +0 -2
- package/dist/seed/products-spares-seed-data.js +0 -368
- package/dist/seed/products-standard-seed-data.d.ts +0 -2
- package/dist/seed/products-standard-seed-data.js +0 -632
- package/dist/seed/products-stickers-seed-data.d.ts +0 -2
- package/dist/seed/products-stickers-seed-data.js +0 -319
- package/dist/seed/reviews-seed-data.d.ts +0 -1
- package/dist/seed/reviews-seed-data.js +0 -185
- package/dist/seed/runner.d.ts +0 -2
- package/dist/seed/runner.js +0 -125
- package/dist/seed/scammers-seed-data.d.ts +0 -2
- package/dist/seed/scammers-seed-data.js +0 -235
- package/dist/seed/seed-market-config.d.ts +0 -48
- package/dist/seed/seed-market-config.js +0 -199
- package/dist/seed/seed-purpose.d.ts +0 -299
- package/dist/seed/seed-purpose.js +0 -440
- package/dist/seed/sessions-seed-data.d.ts +0 -3
- package/dist/seed/sessions-seed-data.js +0 -116
- package/dist/seed/shipments-seed-data.d.ts +0 -5
- package/dist/seed/shipments-seed-data.js +0 -185
- package/dist/seed/site-settings-seed-data.d.ts +0 -2
- package/dist/seed/site-settings-seed-data.js +0 -1069
- package/dist/seed/store-addresses-seed-data.d.ts +0 -18
- package/dist/seed/store-addresses-seed-data.js +0 -71
- package/dist/seed/store-extensions-seed-data.d.ts +0 -11
- package/dist/seed/store-extensions-seed-data.js +0 -292
- package/dist/seed/stores-seed-data.d.ts +0 -6
- package/dist/seed/stores-seed-data.js +0 -242
- package/dist/seed/support-tickets-seed-data.d.ts +0 -16
- package/dist/seed/support-tickets-seed-data.js +0 -239
- package/dist/seed/tax-codes-seed-data.d.ts +0 -34
- package/dist/seed/tax-codes-seed-data.js +0 -100
- package/dist/seed/test-data-ttl.d.ts +0 -29
- package/dist/seed/test-data-ttl.js +0 -31
- package/dist/seed/test-utils.d.ts +0 -49
- package/dist/seed/test-utils.js +0 -110
- package/dist/seed/types.d.ts +0 -89
- package/dist/seed/types.js +0 -15
- package/dist/seed/users-seed-data.d.ts +0 -2
- package/dist/seed/users-seed-data.js +0 -597
- package/dist/seed/wishlists-seed-data.d.ts +0 -12
- package/dist/seed/wishlists-seed-data.js +0 -54
|
@@ -289,6 +289,12 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
289
289
|
ORDER_CANCEL: (id) => `/user/orders/${id}/cancel`,
|
|
290
290
|
ORDER_TRACK: (id) => `/user/orders/${id}/track`,
|
|
291
291
|
ORDER_RETURN: (id) => `/user/orders/${id}/return`,
|
|
292
|
+
/*
|
|
293
|
+
* The buyer's protection claim. Its own route rather than a tab on the
|
|
294
|
+
* order page: the form is a decision with a required account of what
|
|
295
|
+
* happened, and the order page is already the densest surface in the app.
|
|
296
|
+
*/
|
|
297
|
+
ORDER_CLAIM: (id) => `/user/orders/${id}/claim`,
|
|
292
298
|
ORDER_INVOICE: (id) => `/user/orders/${id}/invoice`,
|
|
293
299
|
ORDER_PAYMENT: (id) => `/user/orders/${id}/payment`,
|
|
294
300
|
NOTIFICATIONS: "/user/notifications",
|
|
@@ -427,6 +433,22 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
427
433
|
ADMIN: {
|
|
428
434
|
DASHBOARD: "/admin/dashboard",
|
|
429
435
|
SHIPMENTS: "/admin/shipments",
|
|
436
|
+
INVENTORY: "/admin/inventory",
|
|
437
|
+
INVENTORY_BOXES: "/admin/inventory/boxes",
|
|
438
|
+
INVENTORY_BOX_DETAIL: (id) => `/admin/inventory/boxes/${id}`,
|
|
439
|
+
/*
|
|
440
|
+
* 🛑 Must sit BEFORE nothing and resolve independently of
|
|
441
|
+
* `INVENTORY_BOX_DETAIL` — `/admin/inventory/boxes/labels` and
|
|
442
|
+
* `/admin/inventory/boxes/{id}` share a segment, so Next's static-beats-
|
|
443
|
+
* dynamic precedence is what keeps `labels` from being read as a box id.
|
|
444
|
+
* That precedence is the framework's, not ours, but it means a box may
|
|
445
|
+
* never be registered with the code `labels`: its id would be
|
|
446
|
+
* `storagebox-labels`, so there is no collision in practice, and this note
|
|
447
|
+
* exists so nobody "fixes" the route by renaming it.
|
|
448
|
+
*/
|
|
449
|
+
INVENTORY_BOX_LABELS: "/admin/inventory/boxes/labels",
|
|
450
|
+
INVENTORY_MOVEMENTS: "/admin/inventory/movements",
|
|
451
|
+
SHIPMENT_RECEIVE: (id) => `/admin/shipments/${id}/receive`,
|
|
430
452
|
SHIPMENTS_NEW: "/admin/shipments/new",
|
|
431
453
|
SHIPMENTS_EDIT: (id) => `/admin/shipments/${id}/edit`,
|
|
432
454
|
SHIPMENT_LOT_ITEMS: (id, lotId) => `/admin/shipments/${id}/lots/${lotId}/items`,
|
|
@@ -524,6 +546,24 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
524
546
|
PAYOUTS: "/admin/payouts",
|
|
525
547
|
PAYOUT_DETAIL: (id) => `/admin/payouts/${id}/view`,
|
|
526
548
|
AUDIT_LOG: "/admin/audit-log",
|
|
549
|
+
/*
|
|
550
|
+
* 🛑 MONEY_CASES is deliberately NOT under `/admin/maintenance/`.
|
|
551
|
+
*
|
|
552
|
+
* Maintenance means "something broke, look when you can" and is granted to
|
|
553
|
+
* `maintenance_employee`. A payment case can carry a gateway's own
|
|
554
|
+
* `respond_by`: miss it and the chargeback is lost by default whoever was
|
|
555
|
+
* right. Burying that beside Cloud Logs is how a deadline is missed, so it
|
|
556
|
+
* gets its own section and an admin-only permission.
|
|
557
|
+
*
|
|
558
|
+
* Gateway events and obligations DO belong under maintenance — they are
|
|
559
|
+
* diagnostics with no external clock, and the cases they produce are what
|
|
560
|
+
* carries urgency.
|
|
561
|
+
*/
|
|
562
|
+
MONEY_CASES: "/admin/money-cases",
|
|
563
|
+
MONEY_CASE_DETAIL: (id) => `/admin/money-cases/${id}`,
|
|
564
|
+
PROTECTION_CLAIMS: "/admin/protection-claims",
|
|
565
|
+
MAINTENANCE_GATEWAY_EVENTS: "/admin/maintenance/gateway-events",
|
|
566
|
+
MAINTENANCE_OBLIGATIONS: "/admin/maintenance/obligations",
|
|
527
567
|
EVENTS: "/admin/events",
|
|
528
568
|
EVENTS_NEW: "/admin/events/new",
|
|
529
569
|
EVENTS_EDIT: (id) => `/admin/events/${id}/edit`,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* `IPaymentProvider` generically rather than the order repository directly.
|
|
17
17
|
*/
|
|
18
18
|
import { IPaymentProvider } from "../../contracts";
|
|
19
|
-
import type { PaymentOrder, PaymentCapture, Refund } from "../../contracts";
|
|
19
|
+
import type { PaymentOrder, PaymentCapture, Refund, Dispute, GatewayPaymentRecord } from "../../contracts";
|
|
20
20
|
import type { JsonValue } from "../../schemas/types";
|
|
21
21
|
export declare class ManualPaymentProvider extends IPaymentProvider {
|
|
22
22
|
readonly name = "manual";
|
|
@@ -37,4 +37,18 @@ export declare class ManualPaymentProvider extends IPaymentProvider {
|
|
|
37
37
|
*/
|
|
38
38
|
refund(paymentId: string, amount?: number): Promise<Refund>;
|
|
39
39
|
getOrder(orderId: string): Promise<PaymentOrder>;
|
|
40
|
+
/**
|
|
41
|
+
* 🛑 `[]` here means "THIS PROVIDER CANNOT ANSWER", not "there are no
|
|
42
|
+
* payments" — and the difference decides whether a reconciler may conclude
|
|
43
|
+
* anything. A manual payment exists only as a row we wrote plus a proof the
|
|
44
|
+
* buyer uploaded; there is no external ledger to compare against, so the
|
|
45
|
+
* gateway-vs-us check is structurally inapplicable rather than clean.
|
|
46
|
+
*
|
|
47
|
+
* The caller is required to treat an empty list as no information (see the
|
|
48
|
+
* contract), which is why this is honest rather than a silent degrade.
|
|
49
|
+
*/
|
|
50
|
+
listPayments(): Promise<GatewayPaymentRecord[]>;
|
|
51
|
+
getDispute(disputeId: string): Promise<Dispute>;
|
|
52
|
+
listDisputes(): Promise<Dispute[]>;
|
|
53
|
+
acceptDispute(disputeId: string, _confirmIrrevocable: true): Promise<Dispute>;
|
|
40
54
|
}
|
|
@@ -88,4 +88,41 @@ export class ManualPaymentProvider extends IPaymentProvider {
|
|
|
88
88
|
}
|
|
89
89
|
return order;
|
|
90
90
|
}
|
|
91
|
+
/*
|
|
92
|
+
* ── DISPUTES: THERE IS NO SUCH THING HERE ─────────────────────────────────
|
|
93
|
+
*
|
|
94
|
+
* A manual payment is a bank transfer or cash the buyer made outside the
|
|
95
|
+
* system, reconciled by an admin against an uploaded proof. There is no
|
|
96
|
+
* card network and no acquirer, so there is no chargeback mechanism to
|
|
97
|
+
* query — a buyer's complaint arrives as a support ticket or a grievance,
|
|
98
|
+
* which is a different (and human) path.
|
|
99
|
+
*
|
|
100
|
+
* 🛑 `listDisputes()` returning `[]` is therefore a FACT, not a silent
|
|
101
|
+
* degrade: "this provider cannot have chargebacks" is true. The single-
|
|
102
|
+
* dispute getters throw, because being ASKED for a specific dispute id on a
|
|
103
|
+
* provider that has none means the caller is confused, and answering a
|
|
104
|
+
* confident wrong thing is how a reconciler reports clean.
|
|
105
|
+
*/
|
|
106
|
+
/**
|
|
107
|
+
* 🛑 `[]` here means "THIS PROVIDER CANNOT ANSWER", not "there are no
|
|
108
|
+
* payments" — and the difference decides whether a reconciler may conclude
|
|
109
|
+
* anything. A manual payment exists only as a row we wrote plus a proof the
|
|
110
|
+
* buyer uploaded; there is no external ledger to compare against, so the
|
|
111
|
+
* gateway-vs-us check is structurally inapplicable rather than clean.
|
|
112
|
+
*
|
|
113
|
+
* The caller is required to treat an empty list as no information (see the
|
|
114
|
+
* contract), which is why this is honest rather than a silent degrade.
|
|
115
|
+
*/
|
|
116
|
+
async listPayments() {
|
|
117
|
+
return [];
|
|
118
|
+
}
|
|
119
|
+
async getDispute(disputeId) {
|
|
120
|
+
throw Object.assign(new Error(`Manual payments have no dispute mechanism — nothing can be fetched for ${disputeId}`), { httpStatus: 400 });
|
|
121
|
+
}
|
|
122
|
+
async listDisputes() {
|
|
123
|
+
return [];
|
|
124
|
+
}
|
|
125
|
+
async acceptDispute(disputeId, _confirmIrrevocable) {
|
|
126
|
+
throw Object.assign(new Error(`Manual payments have no dispute to accept (${disputeId})`), { httpStatus: 400 });
|
|
127
|
+
}
|
|
91
128
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
*/
|
|
39
39
|
import type { JsonValue } from "@mohasinac/appkit";
|
|
40
40
|
import { IPaymentProvider } from "../../contracts";
|
|
41
|
-
import type { PaymentOrder, PaymentCapture, Refund } from "../../contracts";
|
|
41
|
+
import type { PaymentOrder, PaymentCapture, Refund, Dispute, GatewayPaymentRecord } from "../../contracts";
|
|
42
42
|
/**
|
|
43
43
|
* PhonePe's `metaInfo` (udf1-udf5, ≤256 chars each) is the only channel that
|
|
44
44
|
* survives from `createOrder()` through to BOTH the Order Status API AND the
|
|
@@ -114,4 +114,17 @@ export declare class PhonePeProvider extends IPaymentProvider {
|
|
|
114
114
|
* than `capturePayment()` when confirming a payment.
|
|
115
115
|
*/
|
|
116
116
|
getOrder(orderId: string): Promise<PaymentOrder>;
|
|
117
|
+
/**
|
|
118
|
+
* 🛑 `[]` because PhonePe's PG Checkout API is ORDER-keyed and exposes no
|
|
119
|
+
* "list my payments in a window" endpoint — not because there are none.
|
|
120
|
+
* Distinct from the manual provider's reason: there IS an external ledger
|
|
121
|
+
* here, we simply cannot read it in bulk. A reconciler must therefore not
|
|
122
|
+
* treat PhonePe as reconciled; it is unreconcilable with this API, which is
|
|
123
|
+
* a documented limitation rather than a gap being worked (PhonePe is dormant
|
|
124
|
+
* — Razorpay wins the provider tie-break).
|
|
125
|
+
*/
|
|
126
|
+
listPayments(): Promise<GatewayPaymentRecord[]>;
|
|
127
|
+
getDispute(disputeId: string): Promise<Dispute>;
|
|
128
|
+
listDisputes(): Promise<Dispute[]>;
|
|
129
|
+
acceptDispute(disputeId: string, _confirmIrrevocable: true): Promise<Dispute>;
|
|
117
130
|
}
|
|
@@ -218,4 +218,40 @@ export class PhonePeProvider extends IPaymentProvider {
|
|
|
218
218
|
metadata: intent,
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
+
/*
|
|
222
|
+
* ── DISPUTES: NOT EXPOSED BY THIS GATEWAY'S API ───────────────────────────
|
|
223
|
+
*
|
|
224
|
+
* Distinct from the manual provider's reason, and the distinction matters.
|
|
225
|
+
* PhonePe transactions CAN be disputed — UPI has a chargeback process — but
|
|
226
|
+
* the PG Checkout API this adapter wraps exposes no dispute resource, so we
|
|
227
|
+
* have no way to read one. A PhonePe chargeback reaches us as an email or a
|
|
228
|
+
* dashboard notification, not as data.
|
|
229
|
+
*
|
|
230
|
+
* So `[]` here means "we cannot see them", not "they cannot exist", and that
|
|
231
|
+
* is worth saying out loud: a reconciler that treats an empty list as "no
|
|
232
|
+
* disputes outstanding" would be drawing a false conclusion on this gateway.
|
|
233
|
+
* PhonePe is currently dormant (Razorpay wins the provider tie-break), which
|
|
234
|
+
* is why this is a documented limitation rather than a gap being worked.
|
|
235
|
+
*/
|
|
236
|
+
/**
|
|
237
|
+
* 🛑 `[]` because PhonePe's PG Checkout API is ORDER-keyed and exposes no
|
|
238
|
+
* "list my payments in a window" endpoint — not because there are none.
|
|
239
|
+
* Distinct from the manual provider's reason: there IS an external ledger
|
|
240
|
+
* here, we simply cannot read it in bulk. A reconciler must therefore not
|
|
241
|
+
* treat PhonePe as reconciled; it is unreconcilable with this API, which is
|
|
242
|
+
* a documented limitation rather than a gap being worked (PhonePe is dormant
|
|
243
|
+
* — Razorpay wins the provider tie-break).
|
|
244
|
+
*/
|
|
245
|
+
async listPayments() {
|
|
246
|
+
return [];
|
|
247
|
+
}
|
|
248
|
+
async getDispute(disputeId) {
|
|
249
|
+
throw Object.assign(new Error(`PhonePe exposes no dispute API — cannot fetch ${disputeId}`), { httpStatus: 501 });
|
|
250
|
+
}
|
|
251
|
+
async listDisputes() {
|
|
252
|
+
return [];
|
|
253
|
+
}
|
|
254
|
+
async acceptDispute(disputeId, _confirmIrrevocable) {
|
|
255
|
+
throw Object.assign(new Error(`PhonePe exposes no dispute API — ${disputeId} must be handled in PhonePe's own dashboard`), { httpStatus: 501 });
|
|
256
|
+
}
|
|
221
257
|
}
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
*/
|
|
53
53
|
import type { JsonValue } from "@mohasinac/appkit";
|
|
54
54
|
import { IPaymentProvider } from "../../contracts";
|
|
55
|
-
import type { PaymentOrder, PaymentCapture, Refund } from "../../contracts";
|
|
55
|
+
import type { PaymentOrder, PaymentCapture, Refund, Dispute, GatewayPaymentRecord } from "../../contracts";
|
|
56
56
|
export { verifyPaymentSignature, verifyWebhookSignature, type RazorpayPaymentResult, } from "./signature";
|
|
57
57
|
export interface RazorpayConfig {
|
|
58
58
|
/** Publishable key (`rzp_test_…` / `rzp_live_…`). Safe to expose to the browser. */
|
|
@@ -122,4 +122,47 @@ export declare class RazorpayProvider extends IPaymentProvider {
|
|
|
122
122
|
* (see point 1 of the class comment).
|
|
123
123
|
*/
|
|
124
124
|
getOrder(orderId: string): Promise<PaymentOrder>;
|
|
125
|
+
/**
|
|
126
|
+
* Typed STRUCTURALLY rather than against the SDK's `Disputes.RazorpayDispute`
|
|
127
|
+
* namespace type.
|
|
128
|
+
*
|
|
129
|
+
* Two reasons: the namespace is declared inside `types/disputes.d.ts` and is
|
|
130
|
+
* not part of the package's documented export surface, so importing it couples
|
|
131
|
+
* us to an internal; and naming only the fields we read makes the mapping
|
|
132
|
+
* auditable against the SDK by eye. Every field below was checked against the
|
|
133
|
+
* installed 2.9.8 declaration — `id`, `payment_id`, `amount`, `currency`,
|
|
134
|
+
* `amount_deducted`, `reason_code`, `respond_by`, `status`, `phase`,
|
|
135
|
+
* `created_at` — rather than recalled.
|
|
136
|
+
*
|
|
137
|
+
* `status` and `phase` are `string` in the SDK too, so nothing is lost by not
|
|
138
|
+
* importing it.
|
|
139
|
+
*/
|
|
140
|
+
private toDispute;
|
|
141
|
+
/**
|
|
142
|
+
* Payments in a window, for reconciliation.
|
|
143
|
+
*
|
|
144
|
+
* 🛑 `from`/`to` are Unix timestamps in **SECONDS** and `count` is capped at
|
|
145
|
+
* **100 by the API** (verified in `RazorpayPaginationOptions`). The cap is
|
|
146
|
+
* NOT raised by asking: a caller wanting more must page with `skip`, and this
|
|
147
|
+
* method deliberately does not, because an unbounded page loop inside a 540 s
|
|
148
|
+
* function is how a reconciler turns into a timeout. At this project's volume
|
|
149
|
+
* one page is several days of payments; the count is logged so the day that
|
|
150
|
+
* stops being true is visible rather than silently truncating.
|
|
151
|
+
*/
|
|
152
|
+
listPayments(opts: {
|
|
153
|
+
from: Date;
|
|
154
|
+
to: Date;
|
|
155
|
+
limit?: number;
|
|
156
|
+
}): Promise<GatewayPaymentRecord[]>;
|
|
157
|
+
getDispute(disputeId: string): Promise<Dispute>;
|
|
158
|
+
listDisputes(): Promise<Dispute[]>;
|
|
159
|
+
/**
|
|
160
|
+
* Accept liability — irreversible.
|
|
161
|
+
*
|
|
162
|
+
* `confirmIrrevocable` is required by the contract and is not read here, and
|
|
163
|
+
* that is the point: its job is to make the CALLER state intent at the call
|
|
164
|
+
* site. A runtime check would be theatre, since the type already makes
|
|
165
|
+
* `false` uncompilable.
|
|
166
|
+
*/
|
|
167
|
+
acceptDispute(disputeId: string, _confirmIrrevocable: true): Promise<Dispute>;
|
|
125
168
|
}
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
import Razorpay from "razorpay";
|
|
54
54
|
import { IPaymentProvider } from "../../contracts/index.js";
|
|
55
55
|
import { getDefaultCurrency } from "../../core/baseline-resolver.js";
|
|
56
|
+
import { paiseToRupees } from "../../core/money.js";
|
|
56
57
|
import { verifyWebhookSignature } from "./signature.js";
|
|
57
58
|
export { verifyPaymentSignature, verifyWebhookSignature, } from "./signature.js";
|
|
58
59
|
/** Razorpay's own order status vocabulary → the contract's. */
|
|
@@ -229,4 +230,102 @@ export class RazorpayProvider extends IPaymentProvider {
|
|
|
229
230
|
metadata: order.notes,
|
|
230
231
|
};
|
|
231
232
|
}
|
|
233
|
+
/*
|
|
234
|
+
* ── DISPUTES ──────────────────────────────────────────────────────────────
|
|
235
|
+
*
|
|
236
|
+
* Razorpay is the only registered provider that HAS disputes, so this is the
|
|
237
|
+
* only real implementation of the three.
|
|
238
|
+
*
|
|
239
|
+
* 🛑 Two unit conversions, both easy to get wrong and both silent when wrong:
|
|
240
|
+
*
|
|
241
|
+
* amount / amount_deducted — currency SUBUNITS → decimal rupees.
|
|
242
|
+
* respond_by / created_at — Unix timestamp in SECONDS → Date.
|
|
243
|
+
*
|
|
244
|
+
* The second is the nastier one. `new Date(1761000000)` is 21 January 1970,
|
|
245
|
+
* so a missed `* 1000` does not throw and does not look like a unit bug — it
|
|
246
|
+
* looks like corrupt data, and on a dispute it would make a live `respondBy`
|
|
247
|
+
* deadline sort as 55 years overdue, which an escalation query would then
|
|
248
|
+
* either flood on or ignore. The existing `refund`/`getOrder` methods above
|
|
249
|
+
* already multiply, which is the precedent to copy.
|
|
250
|
+
*/
|
|
251
|
+
/**
|
|
252
|
+
* Typed STRUCTURALLY rather than against the SDK's `Disputes.RazorpayDispute`
|
|
253
|
+
* namespace type.
|
|
254
|
+
*
|
|
255
|
+
* Two reasons: the namespace is declared inside `types/disputes.d.ts` and is
|
|
256
|
+
* not part of the package's documented export surface, so importing it couples
|
|
257
|
+
* us to an internal; and naming only the fields we read makes the mapping
|
|
258
|
+
* auditable against the SDK by eye. Every field below was checked against the
|
|
259
|
+
* installed 2.9.8 declaration — `id`, `payment_id`, `amount`, `currency`,
|
|
260
|
+
* `amount_deducted`, `reason_code`, `respond_by`, `status`, `phase`,
|
|
261
|
+
* `created_at` — rather than recalled.
|
|
262
|
+
*
|
|
263
|
+
* `status` and `phase` are `string` in the SDK too, so nothing is lost by not
|
|
264
|
+
* importing it.
|
|
265
|
+
*/
|
|
266
|
+
toDispute(d) {
|
|
267
|
+
return {
|
|
268
|
+
id: String(d.id),
|
|
269
|
+
paymentId: String(d.payment_id),
|
|
270
|
+
amount: paiseToRupees(Number(d.amount)),
|
|
271
|
+
currency: String(d.currency),
|
|
272
|
+
amountDeducted: paiseToRupees(Number(d.amount_deducted ?? 0)),
|
|
273
|
+
reasonCode: String(d.reason_code ?? ""),
|
|
274
|
+
respondBy: new Date(Number(d.respond_by) * 1000),
|
|
275
|
+
status: String(d.status ?? ""),
|
|
276
|
+
phase: String(d.phase ?? ""),
|
|
277
|
+
createdAt: new Date(Number(d.created_at) * 1000),
|
|
278
|
+
gateway: this.name,
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Payments in a window, for reconciliation.
|
|
283
|
+
*
|
|
284
|
+
* 🛑 `from`/`to` are Unix timestamps in **SECONDS** and `count` is capped at
|
|
285
|
+
* **100 by the API** (verified in `RazorpayPaginationOptions`). The cap is
|
|
286
|
+
* NOT raised by asking: a caller wanting more must page with `skip`, and this
|
|
287
|
+
* method deliberately does not, because an unbounded page loop inside a 540 s
|
|
288
|
+
* function is how a reconciler turns into a timeout. At this project's volume
|
|
289
|
+
* one page is several days of payments; the count is logged so the day that
|
|
290
|
+
* stops being true is visible rather than silently truncating.
|
|
291
|
+
*/
|
|
292
|
+
async listPayments(opts) {
|
|
293
|
+
const result = await this.razorpay.payments.all({
|
|
294
|
+
from: Math.floor(opts.from.getTime() / 1000),
|
|
295
|
+
to: Math.ceil(opts.to.getTime() / 1000),
|
|
296
|
+
count: Math.min(opts.limit ?? 100, 100),
|
|
297
|
+
});
|
|
298
|
+
return (result.items ?? []).map((p) => {
|
|
299
|
+
const captured = Number(p.created_at);
|
|
300
|
+
return {
|
|
301
|
+
id: String(p.id),
|
|
302
|
+
...(p.order_id ? { orderId: String(p.order_id) } : {}),
|
|
303
|
+
amount: paiseToRupees(Number(p.amount)),
|
|
304
|
+
currency: String(p.currency),
|
|
305
|
+
status: String(p.status),
|
|
306
|
+
amountRefunded: paiseToRupees(Number(p.amount_refunded ?? 0)),
|
|
307
|
+
...(p.refund_status ? { refundStatus: String(p.refund_status) } : {}),
|
|
308
|
+
...(Number.isFinite(captured) ? { capturedAt: new Date(captured * 1000) } : {}),
|
|
309
|
+
gateway: this.name,
|
|
310
|
+
};
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
async getDispute(disputeId) {
|
|
314
|
+
return this.toDispute(await this.razorpay.disputes.fetch(disputeId));
|
|
315
|
+
}
|
|
316
|
+
async listDisputes() {
|
|
317
|
+
const result = await this.razorpay.disputes.all();
|
|
318
|
+
return (result.items ?? []).map((d) => this.toDispute(d));
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Accept liability — irreversible.
|
|
322
|
+
*
|
|
323
|
+
* `confirmIrrevocable` is required by the contract and is not read here, and
|
|
324
|
+
* that is the point: its job is to make the CALLER state intent at the call
|
|
325
|
+
* site. A runtime check would be theatre, since the type already makes
|
|
326
|
+
* `false` uncompilable.
|
|
327
|
+
*/
|
|
328
|
+
async acceptDispute(disputeId, _confirmIrrevocable) {
|
|
329
|
+
return this.toDispute(await this.razorpay.disputes.accept(disputeId));
|
|
330
|
+
}
|
|
232
331
|
}
|
|
@@ -99,6 +99,24 @@ export declare class ShiprocketShippingProvider extends IShippingProvider {
|
|
|
99
99
|
private call;
|
|
100
100
|
/** Their order payload wants the address flattened across many keys. */
|
|
101
101
|
private addressFields;
|
|
102
|
+
/**
|
|
103
|
+
* 🛑 WIRING A CALLER FOR THIS OWES ONE EXTRA WRITE: set
|
|
104
|
+
* `order.platformBookedShipment = true` in the same commit.
|
|
105
|
+
*
|
|
106
|
+
* That flag is the gate `isReimbursableShipment()`
|
|
107
|
+
* (`_internal/shared/shipping/quote.ts`) uses to decide whether a seller may
|
|
108
|
+
* be reimbursed for postage. It FAILS OPEN — absent means "the seller shipped
|
|
109
|
+
* it themselves", which is correct and deliberate, because a self-shipped
|
|
110
|
+
* parcel has no flag to set and a fail-closed gate would refuse every
|
|
111
|
+
* legitimate claim.
|
|
112
|
+
*
|
|
113
|
+
* Measured 2026-10-21: this method has **no callers**, and the flag has
|
|
114
|
+
* **no writers**. Those two facts cancel out — there are no platform-booked
|
|
115
|
+
* parcels, so nothing is wrongly reimbursed. Wire this without the flag and
|
|
116
|
+
* they stop cancelling out: the platform pays the courier here, then
|
|
117
|
+
* reimburses the seller for that same spend on approval. Postage paid twice,
|
|
118
|
+
* silently, because the gate has no way to know we booked it.
|
|
119
|
+
*/
|
|
102
120
|
createShipment(data: CreateShipmentInput): Promise<Shipment>;
|
|
103
121
|
trackShipment(trackingId: string): Promise<TrackingInfo>;
|
|
104
122
|
cancelShipment(shipmentId: string): Promise<void>;
|
|
@@ -249,6 +249,24 @@ export class ShiprocketShippingProvider extends IShippingProvider {
|
|
|
249
249
|
[`${p}_phone`]: a.phone,
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* 🛑 WIRING A CALLER FOR THIS OWES ONE EXTRA WRITE: set
|
|
254
|
+
* `order.platformBookedShipment = true` in the same commit.
|
|
255
|
+
*
|
|
256
|
+
* That flag is the gate `isReimbursableShipment()`
|
|
257
|
+
* (`_internal/shared/shipping/quote.ts`) uses to decide whether a seller may
|
|
258
|
+
* be reimbursed for postage. It FAILS OPEN — absent means "the seller shipped
|
|
259
|
+
* it themselves", which is correct and deliberate, because a self-shipped
|
|
260
|
+
* parcel has no flag to set and a fail-closed gate would refuse every
|
|
261
|
+
* legitimate claim.
|
|
262
|
+
*
|
|
263
|
+
* Measured 2026-10-21: this method has **no callers**, and the flag has
|
|
264
|
+
* **no writers**. Those two facts cancel out — there are no platform-booked
|
|
265
|
+
* parcels, so nothing is wrongly reimbursed. Wire this without the flag and
|
|
266
|
+
* they stop cancelling out: the platform pays the courier here, then
|
|
267
|
+
* reimburses the seller for that same spend on approval. Postage paid twice,
|
|
268
|
+
* silently, because the gate has no way to know we booked it.
|
|
269
|
+
*/
|
|
252
270
|
async createShipment(data) {
|
|
253
271
|
const body = {
|
|
254
272
|
order_id: data.orderId,
|
|
@@ -2122,11 +2122,11 @@ export declare const SCHEMAS: {
|
|
|
2122
2122
|
minAmount: import("zod").ZodEffects<import("zod").ZodNumber, number, number>;
|
|
2123
2123
|
discountValue: import("zod").ZodNumber;
|
|
2124
2124
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2125
|
-
discountValue: number;
|
|
2126
2125
|
minAmount: number;
|
|
2127
|
-
}, {
|
|
2128
2126
|
discountValue: number;
|
|
2127
|
+
}, {
|
|
2129
2128
|
minAmount: number;
|
|
2129
|
+
discountValue: number;
|
|
2130
2130
|
}>, "many">>;
|
|
2131
2131
|
usage: import("zod").ZodObject<{
|
|
2132
2132
|
totalLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -2265,8 +2265,8 @@ export declare const SCHEMAS: {
|
|
|
2265
2265
|
applicableCategories?: string[] | undefined;
|
|
2266
2266
|
} | undefined;
|
|
2267
2267
|
tiers?: {
|
|
2268
|
-
discountValue: number;
|
|
2269
2268
|
minAmount: number;
|
|
2269
|
+
discountValue: number;
|
|
2270
2270
|
}[] | undefined;
|
|
2271
2271
|
}, {
|
|
2272
2272
|
code: string;
|
|
@@ -2323,8 +2323,8 @@ export declare const SCHEMAS: {
|
|
|
2323
2323
|
applicableCategories?: string[] | undefined;
|
|
2324
2324
|
} | undefined;
|
|
2325
2325
|
tiers?: {
|
|
2326
|
-
discountValue: number;
|
|
2327
2326
|
minAmount: number;
|
|
2327
|
+
discountValue: number;
|
|
2328
2328
|
}[] | undefined;
|
|
2329
2329
|
}>;
|
|
2330
2330
|
readonly couponUsage: import("zod").ZodObject<{
|
|
@@ -2871,6 +2871,7 @@ export declare const SCHEMAS: {
|
|
|
2871
2871
|
amount: import("zod").ZodEffects<import("zod").ZodNumber, number, number>;
|
|
2872
2872
|
itemIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
2873
2873
|
reason: import("zod").ZodString;
|
|
2874
|
+
reasonCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2874
2875
|
refundedAt: import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString, import("zod").ZodObject<{
|
|
2875
2876
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2876
2877
|
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
@@ -2879,7 +2880,12 @@ export declare const SCHEMAS: {
|
|
|
2879
2880
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2880
2881
|
}, import("zod").ZodTypeAny, "passthrough">>]>;
|
|
2881
2882
|
refundedBy: import("zod").ZodString;
|
|
2883
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["reserved", "processed", "failed"]>>;
|
|
2884
|
+
failureReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2885
|
+
gatewayRefundId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2886
|
+
gateway: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2882
2887
|
phonepeRefundId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2888
|
+
razorpayRefundId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2883
2889
|
manualTransactionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2884
2890
|
proofDocumentUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2885
2891
|
proofDocumentMimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2893,8 +2899,14 @@ export declare const SCHEMAS: {
|
|
|
2893
2899
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2894
2900
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2895
2901
|
refundedBy: string;
|
|
2902
|
+
status?: "failed" | "processed" | "reserved" | undefined;
|
|
2903
|
+
failureReason?: string | undefined;
|
|
2904
|
+
gateway?: string | undefined;
|
|
2896
2905
|
itemIds?: string[] | undefined;
|
|
2906
|
+
reasonCode?: string | undefined;
|
|
2907
|
+
gatewayRefundId?: string | undefined;
|
|
2897
2908
|
phonepeRefundId?: string | undefined;
|
|
2909
|
+
razorpayRefundId?: string | undefined;
|
|
2898
2910
|
manualTransactionId?: string | undefined;
|
|
2899
2911
|
proofDocumentUrl?: string | undefined;
|
|
2900
2912
|
proofDocumentMimeType?: string | undefined;
|
|
@@ -2908,8 +2920,14 @@ export declare const SCHEMAS: {
|
|
|
2908
2920
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2909
2921
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2910
2922
|
refundedBy: string;
|
|
2923
|
+
status?: "failed" | "processed" | "reserved" | undefined;
|
|
2924
|
+
failureReason?: string | undefined;
|
|
2925
|
+
gateway?: string | undefined;
|
|
2911
2926
|
itemIds?: string[] | undefined;
|
|
2927
|
+
reasonCode?: string | undefined;
|
|
2928
|
+
gatewayRefundId?: string | undefined;
|
|
2912
2929
|
phonepeRefundId?: string | undefined;
|
|
2930
|
+
razorpayRefundId?: string | undefined;
|
|
2913
2931
|
manualTransactionId?: string | undefined;
|
|
2914
2932
|
proofDocumentUrl?: string | undefined;
|
|
2915
2933
|
proofDocumentMimeType?: string | undefined;
|
|
@@ -3083,8 +3101,14 @@ export declare const SCHEMAS: {
|
|
|
3083
3101
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3084
3102
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3085
3103
|
refundedBy: string;
|
|
3104
|
+
status?: "failed" | "processed" | "reserved" | undefined;
|
|
3105
|
+
failureReason?: string | undefined;
|
|
3106
|
+
gateway?: string | undefined;
|
|
3086
3107
|
itemIds?: string[] | undefined;
|
|
3108
|
+
reasonCode?: string | undefined;
|
|
3109
|
+
gatewayRefundId?: string | undefined;
|
|
3087
3110
|
phonepeRefundId?: string | undefined;
|
|
3111
|
+
razorpayRefundId?: string | undefined;
|
|
3088
3112
|
manualTransactionId?: string | undefined;
|
|
3089
3113
|
proofDocumentUrl?: string | undefined;
|
|
3090
3114
|
proofDocumentMimeType?: string | undefined;
|
|
@@ -3231,8 +3255,14 @@ export declare const SCHEMAS: {
|
|
|
3231
3255
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3232
3256
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3233
3257
|
refundedBy: string;
|
|
3258
|
+
status?: "failed" | "processed" | "reserved" | undefined;
|
|
3259
|
+
failureReason?: string | undefined;
|
|
3260
|
+
gateway?: string | undefined;
|
|
3234
3261
|
itemIds?: string[] | undefined;
|
|
3262
|
+
reasonCode?: string | undefined;
|
|
3263
|
+
gatewayRefundId?: string | undefined;
|
|
3235
3264
|
phonepeRefundId?: string | undefined;
|
|
3265
|
+
razorpayRefundId?: string | undefined;
|
|
3236
3266
|
manualTransactionId?: string | undefined;
|
|
3237
3267
|
proofDocumentUrl?: string | undefined;
|
|
3238
3268
|
proofDocumentMimeType?: string | undefined;
|
|
@@ -4593,6 +4623,7 @@ export declare const SCHEMAS: {
|
|
|
4593
4623
|
seoTitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4594
4624
|
seoDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4595
4625
|
barcodeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4626
|
+
sku: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4596
4627
|
startingBid: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4597
4628
|
reservePrice: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4598
4629
|
buyNowPrice: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -4683,6 +4714,7 @@ export declare const SCHEMAS: {
|
|
|
4683
4714
|
seoTitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4684
4715
|
seoDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4685
4716
|
barcodeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4717
|
+
sku: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4686
4718
|
startingBid: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4687
4719
|
reservePrice: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4688
4720
|
buyNowPrice: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -4773,6 +4805,7 @@ export declare const SCHEMAS: {
|
|
|
4773
4805
|
seoTitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4774
4806
|
seoDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4775
4807
|
barcodeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4808
|
+
sku: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4776
4809
|
startingBid: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4777
4810
|
reservePrice: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4778
4811
|
buyNowPrice: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -5282,16 +5315,16 @@ export declare const SCHEMAS: {
|
|
|
5282
5315
|
status: import("zod").ZodEnum<["under-review", "actioned", "dismissed"]>;
|
|
5283
5316
|
resolution: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5284
5317
|
}, "strict", import("zod").ZodTypeAny, {
|
|
5285
|
-
status: "
|
|
5318
|
+
status: "under-review" | "actioned" | "dismissed";
|
|
5286
5319
|
resolution?: string | undefined;
|
|
5287
5320
|
}, {
|
|
5288
|
-
status: "
|
|
5321
|
+
status: "under-review" | "actioned" | "dismissed";
|
|
5289
5322
|
resolution?: string | undefined;
|
|
5290
5323
|
}>, {
|
|
5291
|
-
status: "
|
|
5324
|
+
status: "under-review" | "actioned" | "dismissed";
|
|
5292
5325
|
resolution?: string | undefined;
|
|
5293
5326
|
}, {
|
|
5294
|
-
status: "
|
|
5327
|
+
status: "under-review" | "actioned" | "dismissed";
|
|
5295
5328
|
resolution?: string | undefined;
|
|
5296
5329
|
}>;
|
|
5297
5330
|
readonly reportCreate: import("zod").ZodObject<{
|
|
@@ -6044,7 +6077,7 @@ export declare const SCHEMAS: {
|
|
|
6044
6077
|
phones: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
6045
6078
|
upiIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
6046
6079
|
emails: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
6047
|
-
scamType: import("zod").ZodString
|
|
6080
|
+
scamType: import("zod").ZodEffects<import("zod").ZodString, import("..").ScamType, string>;
|
|
6048
6081
|
scamPlatform: import("zod").ZodString;
|
|
6049
6082
|
amountLost: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6050
6083
|
itemInvolved: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -6054,7 +6087,7 @@ export declare const SCHEMAS: {
|
|
|
6054
6087
|
}, "strip", import("zod").ZodTypeAny, {
|
|
6055
6088
|
displayName: string;
|
|
6056
6089
|
description: string;
|
|
6057
|
-
scamType:
|
|
6090
|
+
scamType: import("..").ScamType;
|
|
6058
6091
|
scamPlatform: string;
|
|
6059
6092
|
agreed: true;
|
|
6060
6093
|
reportedByAnon?: boolean | undefined;
|
|
@@ -6078,7 +6111,7 @@ export declare const SCHEMAS: {
|
|
|
6078
6111
|
}>, {
|
|
6079
6112
|
displayName: string;
|
|
6080
6113
|
description: string;
|
|
6081
|
-
scamType:
|
|
6114
|
+
scamType: import("..").ScamType;
|
|
6082
6115
|
scamPlatform: string;
|
|
6083
6116
|
agreed: true;
|
|
6084
6117
|
reportedByAnon?: boolean | undefined;
|
package/dist/server-entry.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export { getCategoryForDetail, listRootCategories, listFeaturedCategories, listM
|
|
|
69
69
|
export { getGroupedListingForDetail, getGroupedListingWithItems, listGroupedListings, listFeaturedGroupedListings, listSitemapGroupedListings, getGroupsForProduct, getGroupsWithItemsForProduct, GROUPED_LISTINGS_PAGE_SIZE, GROUPED_LISTINGS_FEATURED_LIMIT, GROUPED_LISTINGS_SITEMAP_LIMIT, buildGroupedListingMetadata, renderGroupedListingOg, type GroupedListingWithItems, type ListGroupedListingsParams, type SitemapGroupedListing, type GroupedListingMetadataOptions, } from "./_internal/server/features/grouped/index";
|
|
70
70
|
export { createCheckoutOrderAction, attachPaymentAction, verifyAndPlaceGatewayOrderAction, previewCheckoutPricing, resolveShippingCost, formatShippingAddress, CHECKOUT_DEFAULT_COMMISSIONS, CHECKOUT_PAYMENT_METHODS, type CreateCheckoutOrderInput, type VerifyAndPlaceGatewayOrderInput, type CheckoutOrderResult, type CheckoutPaymentMethod, type CheckoutPricingPreviewInput, type CheckoutPricingPreview, } from "./_internal/server/features/checkout/index";
|
|
71
71
|
export { unitPriceFor, lineTotalFor, sumGroupGst, computePreOrderDepositAmount, type GroupGstSummary, type GstRateSlice, } from "./_internal/shared/checkout/order-math";
|
|
72
|
+
export { computeGroupCouponDiscount, computeCartCouponDiscount, type GroupCouponDiscountResult, } from "./_internal/shared/checkout/coupon-discount";
|
|
73
|
+
export { refundCapacity, refundableBase, committedRefundTotal, platformFeeWithheld, wouldBeFullRefund, MONEY_EPSILON, type RefundCapacity, type RefundableOrderLike, } from "./_internal/shared/checkout/refundable-base";
|
|
72
74
|
export { processRefundAction, type ProcessRefundInput, } from "./_internal/server/features/refunds/actions";
|
|
73
75
|
export { getSublistingCategoryForDetail } from "./_internal/server/features/sublisting-categories/index";
|
|
74
76
|
export { getStoreForDetail, listStoreProductsInitial, listStoreAuctionsInitial, listStorePreOrdersInitial, listSitemapStores, STORES_PAGE_SIZE, STORES_PRODUCTS_PAGE_SIZE, STORES_SITEMAP_LIMIT, STORES_FEATURED_LIMIT, } from "./_internal/server/features/stores/index";
|
package/dist/server-entry.js
CHANGED
|
@@ -107,6 +107,33 @@ export { createCheckoutOrderAction, attachPaymentAction, verifyAndPlaceGatewayOr
|
|
|
107
107
|
// order recorded none — with the verify-side mismatch guard omitting it too, so
|
|
108
108
|
// the three were consistently wrong and the undercharge was undetectable.
|
|
109
109
|
export { unitPriceFor, lineTotalFor, sumGroupGst, computePreOrderDepositAmount, } from "./_internal/shared/checkout/order-math.js";
|
|
110
|
+
/*
|
|
111
|
+
* The coupon discount, exported for the SAME reason `sumGroupGst` above was —
|
|
112
|
+
* and it is the third defect of that exact shape in this one route.
|
|
113
|
+
*
|
|
114
|
+
* `/api/payment/create-order` decides what the gateway CAPTURES, and it had no
|
|
115
|
+
* coupon term anywhere in the file (measured: zero occurrences). So a buyer
|
|
116
|
+
* with a coupon was shown ₹X−discount, charged ₹X, and had ₹X−discount
|
|
117
|
+
* recorded against their order. The post-capture guard is one-sided
|
|
118
|
+
* (`paid < expected − 1`), so an OVER-capture never trips it — which is why
|
|
119
|
+
* this survived: every number inside our own system agreed, and only the
|
|
120
|
+
* buyer's card statement disagreed.
|
|
121
|
+
*
|
|
122
|
+
* Pure math, no Firestore, no server-only imports — same contract as the
|
|
123
|
+
* order-math block above.
|
|
124
|
+
*/
|
|
125
|
+
export { computeGroupCouponDiscount, computeCartCouponDiscount, } from "./_internal/shared/checkout/coupon-discount.js";
|
|
126
|
+
/*
|
|
127
|
+
* Refund capacity. Exported because the admin refund ROUTE carried its own
|
|
128
|
+
* copy of the `amount >= totalPrice` test (D3) — a second answer to "is this
|
|
129
|
+
* refund full", already wrong, in a file that cannot deep-import
|
|
130
|
+
* `_internal/shared`. One implementation, or they drift again.
|
|
131
|
+
*
|
|
132
|
+
* `platformFeeWithheld` is the single worst money defect's fix (D32): it
|
|
133
|
+
* returns the fee ACTUALLY CHARGED, never a recomputed percentage, which is
|
|
134
|
+
* how a ₹5,000 order came to withhold ₹118 from a buyer who paid ₹11.80.
|
|
135
|
+
*/
|
|
136
|
+
export { refundCapacity, refundableBase, committedRefundTotal, platformFeeWithheld, wouldBeFullRefund, MONEY_EPSILON, } from "./_internal/shared/checkout/refundable-base.js";
|
|
110
137
|
// S-SBUNI-RULES: refund action
|
|
111
138
|
export { processRefundAction, } from "./_internal/server/features/refunds/actions.js";
|
|
112
139
|
// S3: sublisting categories data layer
|