@mohasinac/appkit 4.53.1 → 4.54.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/theme/ThemeProvider.js +15 -1
- package/dist/_internal/server/features/auth/capabilities.js +7 -5
- package/dist/_internal/server/features/categories/price-guidance-resolve.d.ts +66 -0
- package/dist/_internal/server/features/categories/price-guidance-resolve.js +138 -0
- package/dist/_internal/server/features/checkout/actions.d.ts +22 -6
- package/dist/_internal/server/features/checkout/actions.js +96 -51
- package/dist/_internal/server/features/checkout/index.d.ts +1 -1
- package/dist/_internal/server/features/checkout/index.js +1 -1
- package/dist/_internal/server/features/checkout/supplier-identity.js +28 -6
- package/dist/_internal/server/features/orders/adapters.js +1 -3
- package/dist/_internal/server/features/price-index/market.d.ts +57 -0
- package/dist/_internal/server/features/price-index/market.js +120 -0
- package/dist/_internal/server/features/products/list-public.d.ts +12 -0
- package/dist/_internal/server/features/products/list-public.js +10 -1
- package/dist/_internal/server/features/products/listing-tab-counts.d.ts +25 -1
- package/dist/_internal/server/features/products/listing-tab-counts.js +184 -10
- package/dist/_internal/server/features/search/index-build/sources.js +43 -2
- package/dist/_internal/server/features/site-settings/adapters.js +1 -1
- package/dist/_internal/server/features/stores/adapters.d.ts +1 -1
- package/dist/_internal/server/features/stores/adapters.js +0 -1
- package/dist/_internal/server/features/stores/tabs.d.ts +7 -2
- package/dist/_internal/server/features/stores/tabs.js +5 -3
- package/dist/_internal/server/jobs/core/analyticsAlertEvaluate.js +2 -5
- package/dist/_internal/server/jobs/core/jobRunners.js +0 -10
- package/dist/_internal/server/jobs/core/onOrderCreate.js +10 -104
- package/dist/_internal/server/jobs/core/onOrderStatusChange.d.ts +0 -2
- package/dist/_internal/server/jobs/core/onOrderStatusChange.js +0 -1
- package/dist/_internal/server/jobs/core/onScamReportCreate.js +0 -1
- package/dist/_internal/server/jobs/core/onScamReportRejected.js +0 -1
- package/dist/_internal/server/jobs/core/onScamReportVerified.js +0 -1
- package/dist/_internal/server/jobs/core/paymentWindowTimeout.js +0 -1
- package/dist/_internal/server/jobs/core/pendingOrderTimeout.js +0 -1
- package/dist/_internal/server/notifications/channel-health.d.ts +7 -3
- package/dist/_internal/server/notifications/channel-health.js +2 -2
- package/dist/_internal/server/notifications/send-guard.d.ts +1 -1
- package/dist/_internal/server/notifications/send-guard.js +2 -4
- package/dist/_internal/shared/actions/action-registry.d.ts +1 -1
- package/dist/_internal/shared/actions/action-registry.js +128 -28
- package/dist/_internal/shared/checkout/order-math.d.ts +1 -1
- package/dist/_internal/shared/checkout/order-math.js +1 -1
- package/dist/_internal/shared/features/categories/bundle-copy.d.ts +1 -1
- package/dist/_internal/shared/features/checkout/config.d.ts +0 -2
- package/dist/_internal/shared/features/checkout/config.js +0 -2
- package/dist/_internal/shared/features/messaging/config.d.ts +7 -5
- package/dist/_internal/shared/features/messaging/config.js +1 -4
- package/dist/_internal/shared/features/site-settings/fees.d.ts +0 -2
- package/dist/_internal/shared/features/site-settings/fees.js +0 -2
- package/dist/_internal/shared/features/site-settings/supplier-of-record.d.ts +56 -0
- package/dist/_internal/shared/features/site-settings/supplier-of-record.js +57 -0
- package/dist/_internal/shared/fees/calculator.d.ts +0 -8
- package/dist/_internal/shared/fees/calculator.js +0 -7
- package/dist/_internal/shared/listing-types/tiers.d.ts +94 -0
- package/dist/_internal/shared/listing-types/tiers.js +150 -0
- package/dist/_internal/shared/search/match.js +28 -2
- package/dist/cli/index.js +0 -2
- package/dist/client.d.ts +25 -4
- package/dist/client.js +36 -5
- package/dist/constants/api-endpoints.d.ts +28 -15
- package/dist/constants/api-endpoints.js +14 -8
- package/dist/constants/field-names.d.ts +1 -0
- package/dist/constants/field-names.js +1 -0
- package/dist/constants/notification-types.d.ts +1 -1
- package/dist/constants/notification-types.js +1 -1
- package/dist/core/integration-keys.d.ts +5 -5
- package/dist/core/integration-keys.js +21 -10
- package/dist/features/about/components/FeesView.js +0 -6
- package/dist/features/about/components/GuidesHubView.js +15 -2
- package/dist/features/account/components/NotificationPreferencesPanel.js +3 -4
- package/dist/features/account/components/UserOrdersView.js +26 -7
- package/dist/features/account/types/index.d.ts +0 -2
- package/dist/features/addresses/utils/postal-autofill.d.ts +39 -0
- package/dist/features/addresses/utils/postal-autofill.js +54 -0
- package/dist/features/admin/actions/notification-actions.d.ts +2 -8
- package/dist/features/admin/actions/notification-actions.js +9 -104
- package/dist/features/admin/components/AdminGuideHubView.js +1 -8
- package/dist/features/admin/components/AdminOrderEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminOrdersView.js +0 -2
- package/dist/features/admin/components/AdminSectionsView.js +3 -2
- package/dist/features/admin/components/AdminSiteSettingsView.js +22 -68
- package/dist/features/admin/components/AdminStoreEditorView.js +72 -34
- package/dist/features/admin/components/OwnerQuickActions.d.ts +29 -0
- package/dist/features/admin/components/OwnerQuickActions.js +142 -0
- package/dist/features/admin/components/sections/adminSectionsTypes.js +13 -4
- package/dist/features/admin/components/sections/icon-options.d.ts +21 -0
- package/dist/features/admin/components/sections/icon-options.js +23 -0
- package/dist/features/admin/components/sections/sectionTemplates.js +4 -1
- package/dist/features/admin/constants/site-settings-tabs.d.ts +7 -12
- package/dist/features/admin/constants/site-settings-tabs.js +6 -12
- package/dist/features/admin/repository/site-settings.repository.js +1 -1
- package/dist/features/admin/schemas/admin-editor-forms.d.ts +1 -1
- package/dist/features/admin/schemas/admin-editor-forms.js +4 -1
- package/dist/features/admin/schemas/admin-user-form.d.ts +0 -61
- package/dist/features/admin/schemas/admin-user-form.js +3 -44
- package/dist/features/admin/schemas/firestore.d.ts +28 -54
- package/dist/features/admin/schemas/firestore.js +40 -18
- package/dist/features/auctions/components/AuctionDetailPageView.js +12 -10
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +11 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +9 -2
- package/dist/features/auth/checkout-value-otp.d.ts +1 -1
- package/dist/features/auth/checkout-value-otp.js +1 -1
- package/dist/features/auth/permissions/constants.d.ts +29 -2
- package/dist/features/auth/permissions/constants.js +67 -1
- package/dist/features/blog/components/BlogFeaturedCard.d.ts +11 -1
- package/dist/features/blog/components/BlogFeaturedCard.js +9 -2
- package/dist/features/cart/components/CartDrawer.js +3 -2
- package/dist/features/cart/components/CartGroupLineRow.js +2 -1
- package/dist/features/cart/components/CartPriceBreakdown.d.ts +0 -2
- package/dist/features/cart/components/CartPriceBreakdown.js +1 -1
- package/dist/features/cart/components/StoreAddonsPicker.d.ts +2 -5
- package/dist/features/cart/components/StoreAddonsPicker.js +4 -5
- package/dist/features/cart/hooks/useAddToCart.js +10 -5
- package/dist/features/cart/repository/cart.repository.js +1 -2
- package/dist/features/cart/schemas/firestore.d.ts +1 -2
- package/dist/features/cart/utils/pending-ops.d.ts +11 -1
- package/dist/features/cart/utils/pending-ops.js +14 -2
- package/dist/features/categories/api/[id]/price-guidance/route.js +1 -24
- package/dist/features/categories/components/BrandDetailPageView.js +15 -6
- package/dist/features/categories/components/BrandDetailTabs.d.ts +7 -1
- package/dist/features/categories/components/BrandDetailTabs.js +18 -3
- package/dist/features/categories/components/BundleCollage.js +3 -2
- package/dist/features/categories/components/BundleDetailView.js +2 -1
- package/dist/features/categories/components/BundleItemsPicker.js +3 -4
- package/dist/features/categories/components/CategoryDetailPageView.js +19 -8
- package/dist/features/categories/components/CategoryDetailTabs.d.ts +7 -1
- package/dist/features/categories/components/CategoryDetailTabs.js +29 -7
- package/dist/features/categories/components/CategoryGrid.d.ts +11 -1
- package/dist/features/categories/components/CategoryGrid.js +9 -2
- package/dist/features/checkout/actions/checkout-value-otp-actions.d.ts +10 -5
- package/dist/features/checkout/actions/checkout-value-otp-actions.js +2 -88
- package/dist/features/classified/components/ClassifiedDetailPageView.js +12 -2
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +12 -2
- package/dist/features/events/components/EventCard.d.ts +11 -1
- package/dist/features/events/components/EventCard.js +9 -2
- package/dist/features/grouped/components/GroupedListingDetailView.js +3 -1
- package/dist/features/homepage/components/CTABannerSection.d.ts +3 -1
- package/dist/features/homepage/components/CTABannerSection.js +6 -3
- package/dist/features/homepage/components/HeroCarousel.js +8 -6
- package/dist/features/homepage/components/MarketplaceHomepageView.js +33 -7
- package/dist/features/homepage/components/SectionCarousel.js +13 -5
- package/dist/features/homepage/components/SecurityHighlightsSection.d.ts +8 -3
- package/dist/features/homepage/components/SecurityHighlightsSection.js +2 -2
- package/dist/features/homepage/components/StatsCounterSection.d.ts +9 -4
- package/dist/features/homepage/components/StatsCounterSection.js +2 -2
- package/dist/features/homepage/components/TestimonialsCarousel.js +1 -1
- package/dist/features/homepage/components/TrustFeaturesSection.d.ts +18 -4
- package/dist/features/homepage/components/TrustFeaturesSection.js +5 -5
- package/dist/features/homepage/components/WelcomeSection.d.ts +13 -2
- package/dist/features/homepage/components/WelcomeSection.js +3 -3
- package/dist/features/homepage/components/WhatsAppCommunitySection.d.ts +28 -0
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +42 -6
- package/dist/features/homepage/components/WhatsAppGlyph.d.ts +20 -0
- package/dist/features/homepage/components/WhatsAppGlyph.js +20 -0
- package/dist/features/homepage/constants/hero-carousel-styles.d.ts +8 -6
- package/dist/features/homepage/constants/hero-carousel-styles.js +8 -6
- package/dist/features/homepage/constants/section-copy.d.ts +12 -10
- package/dist/features/homepage/constants/section-copy.js +28 -6
- package/dist/features/homepage/constants/stat-icons.d.ts +12 -0
- package/dist/features/homepage/constants/stat-icons.js +17 -0
- package/dist/features/homepage/constants/trust-icon-aliases.d.ts +8 -0
- package/dist/features/homepage/constants/trust-icon-aliases.js +75 -0
- package/dist/features/homepage/lib/section-defaults.d.ts +16 -1
- package/dist/features/homepage/lib/section-defaults.js +24 -4
- package/dist/features/homepage/lib/section-renderer.js +48 -8
- package/dist/features/homepage/schemas/firestore.d.ts +18 -1
- package/dist/features/layout/AppLayoutShell.js +2 -1
- package/dist/features/layout/BottomActions.d.ts +1 -0
- package/dist/features/layout/BottomActions.js +330 -0
- package/dist/features/layout/BottomChrome.d.ts +45 -0
- package/dist/features/layout/BottomChrome.js +5 -17
- package/dist/features/layout/SideActionDock.js +36 -13
- package/dist/features/layout/index.d.ts +2 -7
- package/dist/features/layout/index.js +7 -7
- package/dist/features/layout/useIsDesktop.d.ts +36 -0
- package/dist/features/layout/useIsDesktop.js +48 -0
- package/dist/features/live/components/LiveItemDetailPageView.js +12 -2
- package/dist/features/orders/actions/refund-actions.js +0 -1
- package/dist/features/orders/components/OrderAddonBadges.d.ts +1 -3
- package/dist/features/orders/components/OrderAddonBadges.js +3 -4
- package/dist/features/orders/components/OrderPaymentSummary.js +15 -2
- package/dist/features/orders/components/YourPurchaseStrip.d.ts +24 -0
- package/dist/features/orders/components/YourPurchaseStrip.js +77 -0
- package/dist/features/orders/components/index.d.ts +2 -1
- package/dist/features/orders/components/index.js +1 -1
- package/dist/features/orders/repository/orders.repository.d.ts +0 -8
- package/dist/features/orders/repository/orders.repository.js +0 -2
- package/dist/features/orders/schemas/firestore.d.ts +17 -9
- package/dist/features/orders/types/index.d.ts +2 -5
- package/dist/features/orders/utils/order-announcement-message.d.ts +18 -0
- package/dist/features/orders/utils/order-announcement-message.js +16 -0
- package/dist/features/orders/utils/payment-proof-message.d.ts +20 -0
- package/dist/features/orders/utils/payment-proof-message.js +17 -0
- package/dist/features/parts/components/PartDetailPageView.js +96 -1
- package/dist/features/parts/schemas/firestore.d.ts +247 -0
- package/dist/features/parts/schemas/firestore.js +6 -6
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +11 -1
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +10 -3
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +12 -10
- package/dist/features/price-index/components/PriceIndexToolView.d.ts +21 -0
- package/dist/features/price-index/components/PriceIndexToolView.js +230 -27
- package/dist/features/price-index/lookup-target.d.ts +48 -0
- package/dist/features/price-index/lookup-target.js +107 -0
- package/dist/features/products/api/[id]/route.js +8 -1
- package/dist/features/products/api/route.js +16 -4
- package/dist/features/products/components/AvailabilityScopeHint.d.ts +22 -0
- package/dist/features/products/components/AvailabilityScopeHint.js +27 -0
- package/dist/features/products/components/CompareOverlay.d.ts +2 -1
- package/dist/features/products/components/CompareOverlay.js +2 -1
- package/dist/features/products/components/GroupSettingsPanel.js +2 -1
- package/dist/features/products/components/InteractiveProductCard.d.ts +7 -1
- package/dist/features/products/components/InteractiveProductCard.js +16 -4
- package/dist/features/products/components/MarketplaceBundleCard.d.ts +11 -1
- package/dist/features/products/components/MarketplaceBundleCard.js +9 -2
- package/dist/features/products/components/MarketplacePrizeDrawCard.d.ts +11 -1
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +9 -2
- package/dist/features/products/components/PrizeDrawDetailPageView.js +2 -1
- package/dist/features/products/components/ProductDetailPageView.js +34 -4
- package/dist/features/products/components/ProductGrid.d.ts +14 -1
- package/dist/features/products/components/ProductGrid.js +22 -5
- package/dist/features/products/components/ProductsIndexListing.js +2 -2
- package/dist/features/products/components/SublistingCarouselSection.js +2 -1
- package/dist/features/products/repository/products.repository.d.ts +1 -0
- package/dist/features/products/repository/products.repository.js +5 -1
- package/dist/features/products/utils/group-member-image.d.ts +9 -2
- package/dist/features/products/utils/group-member-image.js +2 -1
- package/dist/features/reviews/api/[id]/route.js +83 -23
- package/dist/features/reviews/components/PurchaseReviewAffordance.d.ts +6 -0
- package/dist/features/reviews/components/PurchaseReviewAffordance.js +42 -0
- package/dist/features/reviews/components/ReviewFormDrawer.d.ts +34 -0
- package/dist/features/reviews/components/ReviewFormDrawer.js +127 -0
- package/dist/features/reviews/components/index.d.ts +4 -0
- package/dist/features/reviews/components/index.js +2 -0
- package/dist/features/scams/schemas/index.d.ts +10 -10
- package/dist/features/search/action-index/settings-entries.js +0 -9
- package/dist/features/seller/actions/seller-actions.d.ts +1 -1
- package/dist/features/seller/actions/seller-actions.js +49 -3
- package/dist/features/seller/components/SellerPayoutSettingsView.js +30 -2
- package/dist/features/seller/components/SellerProductShell.d.ts +17 -1
- package/dist/features/seller/components/SellerProductsView.js +3 -2
- package/dist/features/seller/hooks/useStoreListingEntitlements.d.ts +8 -0
- package/dist/features/seller/hooks/useStoreListingEntitlements.js +70 -0
- package/dist/features/store-extensions/repository/store-extensions.repositories.d.ts +1 -6
- package/dist/features/store-extensions/repository/store-extensions.repositories.js +1 -10
- package/dist/features/store-extensions/schemas/firestore.d.ts +1 -17
- package/dist/features/store-extensions/schemas/firestore.js +0 -10
- package/dist/features/stores/components/InteractiveStoreCard.d.ts +11 -1
- package/dist/features/stores/components/InteractiveStoreCard.js +9 -2
- package/dist/features/stores/components/StoreAuctionsListing.js +2 -1
- package/dist/features/stores/components/StoreCapabilitiesGuideView.js +0 -1
- package/dist/features/stores/components/StoreGuideHubView.js +2 -8
- package/dist/features/stores/components/StoreSettingsGuideView.js +2 -6
- package/dist/features/stores/components/index.d.ts +0 -2
- package/dist/features/stores/components/index.js +0 -1
- package/dist/features/stores/repository/store.repository.d.ts +1 -26
- package/dist/features/stores/repository/store.repository.js +5 -60
- package/dist/features/stores/schemas/firestore.d.ts +6 -25
- package/dist/features/stores/schemas/firestore.js +6 -3
- package/dist/features/stores/schemas/index.d.ts +1 -87
- package/dist/features/stores/schemas/index.js +10 -15
- package/dist/features/tester/seed-data/authored/admin__site-system.js +0 -48
- package/dist/features/tester/seed-data/authored/buying__buying-checkout.js +0 -40
- package/dist/features/tester/seed-data/authored/content-discovery__authenticity-checker.js +114 -2
- package/dist/features/tester/seed-data/authored/selling__quick-add-minimum-details.js +0 -16
- package/dist/features/tester/seed-data/authored/selling__seller-guide.js +1 -1
- package/dist/features/tester/seed-data/authored/selling__seller-marketing-extras.js +0 -79
- package/dist/features/tester/seed-data/authored/selling__seller-orders.js +1 -1
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +427 -69
- package/dist/index.d.ts +20 -32
- package/dist/index.js +34 -43
- package/dist/next/routing/route-map.d.ts +2 -8
- package/dist/next/routing/route-map.js +21 -4
- package/dist/providers/db-firebase/base.repository.d.ts +1 -1
- package/dist/providers/db-firebase/base.repository.js +1 -1
- package/dist/providers/payment-razorpay/index.d.ts +125 -0
- package/dist/providers/payment-razorpay/index.js +232 -0
- package/dist/providers/payment-razorpay/signature.d.ts +53 -0
- package/dist/providers/payment-razorpay/signature.js +71 -0
- package/dist/providers/shipping-shiprocket/index.d.ts +98 -0
- package/dist/providers/shipping-shiprocket/index.js +356 -0
- package/dist/providers.d.ts +3 -0
- package/dist/providers.js +3 -0
- package/dist/react/hooks/useCanSeePrices.d.ts +0 -27
- package/dist/react/hooks/useCanSeePrices.js +25 -0
- package/dist/repositories/index.d.ts +1 -1
- package/dist/repositories/index.js +1 -1
- package/dist/schemas/registry.d.ts +10 -115
- package/dist/schemas/registry.js +1 -2
- package/dist/security/pii-encrypt.js +1 -1
- package/dist/seed/_helpers/category-forest.js +27 -0
- package/dist/seed/_helpers/category-parts-glossary-map.js +1816 -86
- package/dist/seed/_helpers/category-parts.d.ts +1 -1
- package/dist/seed/_helpers/category-parts.js +13412 -3020
- package/dist/seed/carousel-slides-seed-data.js +47 -10
- package/dist/seed/categories-seed-data.js +48 -6
- package/dist/seed/faq-seed-data.js +2 -2
- package/dist/seed/homepage-sections-seed-data.js +286 -54
- package/dist/seed/index.d.ts +1 -1
- package/dist/seed/index.js +1 -1
- package/dist/seed/manifest.d.ts +1 -1
- package/dist/seed/manifest.js +1 -2
- package/dist/seed/model-composition-seed-data.js +6 -8
- package/dist/seed/part-glossary/chunk0.d.ts +9 -0
- package/dist/seed/part-glossary/chunk0.js +35448 -0
- package/dist/seed/part-glossary/chunk1.d.ts +9 -0
- package/dist/seed/part-glossary/chunk1.js +40494 -0
- package/dist/seed/part-glossary/chunk2.d.ts +9 -0
- package/dist/seed/part-glossary/chunk2.js +51242 -0
- package/dist/seed/part-glossary/chunk3.d.ts +9 -0
- package/dist/seed/part-glossary/chunk3.js +53337 -0
- package/dist/seed/part-glossary/chunk4.d.ts +9 -0
- package/dist/seed/part-glossary/chunk4.js +51454 -0
- package/dist/seed/part-glossary-seed-data.d.ts +1 -1
- package/dist/seed/part-glossary-seed-data.js +23 -47483
- package/dist/seed/products-beyblade-x-seed-data.js +36 -1
- package/dist/seed/site-settings-seed-data.js +34 -35
- package/dist/seed/store-extensions-seed-data.d.ts +1 -2
- package/dist/seed/store-extensions-seed-data.js +1 -23
- package/dist/seed/stores-seed-data.js +0 -1
- package/dist/server-entry.d.ts +1 -1
- package/dist/server-entry.js +1 -1
- package/dist/server.d.ts +10 -10
- package/dist/server.js +24 -22
- package/dist/styles.css +392 -43
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/themes/default-dark.js +1 -1
- package/dist/tokens/themes/default-light.js +2 -1
- package/dist/tokens/tokens.css +6 -2
- package/dist/ui/components/Button.d.ts +11 -0
- package/dist/ui/components/Button.js +11 -0
- package/dist/ui/components/Button.style.css +29 -0
- package/dist/ui/components/CarouselNav.d.ts +57 -0
- package/dist/ui/components/CarouselNav.js +25 -0
- package/dist/ui/components/CarouselNav.style.css +265 -0
- package/dist/ui/components/GatedPrice.js +30 -3
- package/dist/ui/components/GatedPrice.style.css +43 -40
- package/dist/ui/components/HorizontalScroller.d.ts +12 -1
- package/dist/ui/components/HorizontalScroller.js +43 -3
- package/dist/ui/components/ImageMosaic.d.ts +8 -1
- package/dist/ui/components/ImageMosaic.js +3 -2
- package/dist/ui/components/ImageMosaic.style.css +22 -0
- package/dist/ui/components/Layout.style.css +6 -0
- package/dist/ui/components/Semantic.d.ts +3 -2
- package/dist/ui/components/Semantic.js +1 -0
- package/dist/ui/components/Typography.d.ts +2 -0
- package/dist/ui/components/Typography.js +2 -0
- package/dist/ui/components/Typography.style.css +19 -0
- package/dist/ui/components/index.style.css +1 -0
- package/dist/ui/index.d.ts +3 -1
- package/dist/ui/index.js +4 -0
- package/package.json +3 -2
- package/scripts/seed-cli.mjs +133 -27
- package/dist/_internal/server/jobs/core/whatsappCatalogImport.d.ts +0 -27
- package/dist/_internal/server/jobs/core/whatsappCatalogImport.js +0 -172
- package/dist/_internal/server/jobs/core/whatsappNotify.d.ts +0 -35
- package/dist/_internal/server/jobs/core/whatsappNotify.js +0 -140
- package/dist/features/admin/components/AdminWhatsAppGuideView.d.ts +0 -2
- package/dist/features/admin/components/AdminWhatsAppGuideView.js +0 -35
- package/dist/features/orders/components/MarketplaceOrderCard.d.ts +0 -36
- package/dist/features/orders/components/MarketplaceOrderCard.js +0 -57
- package/dist/features/stores/components/StoreWhatsAppGuideView.d.ts +0 -3
- package/dist/features/stores/components/StoreWhatsAppGuideView.js +0 -12
- package/dist/features/whatsapp-bot/api/send-status/route.d.ts +0 -12
- package/dist/features/whatsapp-bot/api/send-status/route.js +0 -38
- package/dist/features/whatsapp-bot/api/webhook/route.d.ts +0 -12
- package/dist/features/whatsapp-bot/api/webhook/route.js +0 -43
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.d.ts +0 -6
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +0 -270
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.d.ts +0 -9
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.js +0 -7
- package/dist/features/whatsapp-bot/components/index.d.ts +0 -3
- package/dist/features/whatsapp-bot/components/index.js +0 -2
- package/dist/features/whatsapp-bot/helpers/payment-proof-message.d.ts +0 -14
- package/dist/features/whatsapp-bot/helpers/payment-proof-message.js +0 -17
- package/dist/features/whatsapp-bot/helpers/whatsapp.d.ts +0 -52
- package/dist/features/whatsapp-bot/helpers/whatsapp.js +0 -283
- package/dist/features/whatsapp-bot/index.d.ts +0 -3
- package/dist/features/whatsapp-bot/index.js +0 -3
- package/dist/features/whatsapp-bot/manifest.d.ts +0 -2
- package/dist/features/whatsapp-bot/manifest.js +0 -13
- package/dist/features/whatsapp-bot/messages/en.json +0 -7
- package/dist/features/whatsapp-bot/server.d.ts +0 -7
- package/dist/features/whatsapp-bot/server.js +0 -7
- package/dist/features/whatsapp-bot/types/index.d.ts +0 -126
- package/dist/features/whatsapp-bot/types/index.js +0 -1
|
@@ -51,10 +51,44 @@ import { seedGallery } from "./_helpers/media.js";
|
|
|
51
51
|
import { PRODUCT_FIELDS } from "../constants/field-names.js";
|
|
52
52
|
import { withFinalSale } from "./_helpers/final-sale-fixtures.js";
|
|
53
53
|
import { withDerivedCategoryNames } from "./_helpers/category-names.js";
|
|
54
|
+
import { buildSearchTxt } from "../utils/search-txt.js";
|
|
54
55
|
const STORE_ID = "store-letitrip-official";
|
|
55
56
|
const STORE_NAME = "LetItRip Official";
|
|
56
57
|
const BRAND_SLUG = "brand-takara-tomy";
|
|
57
58
|
const BRAND = "Takara-Tomy";
|
|
59
|
+
/**
|
|
60
|
+
* Build the `searchTxt` prefix index for a row.
|
|
61
|
+
*
|
|
62
|
+
* 🛑 THIS FILE SHIPPED WITHOUT IT AND EVERY LISTING WAS UNSEARCHABLE.
|
|
63
|
+
*
|
|
64
|
+
* `searchTxt` is the ONLY field the public product search queries. A row
|
|
65
|
+
* without it is not ranked lower — it is absent. Measured on production
|
|
66
|
+
* before this fix: 12 of the 14 real listings had no `searchTxt` at all, and
|
|
67
|
+
* the only two that did were the auction and the pre-order, whose own files
|
|
68
|
+
* already applied a tokeniser. So `?q=aero` returned 1 of the 3 AeroPegasus
|
|
69
|
+
* products and `?q=beyblade` returned 2 of 14, while a nonsense control
|
|
70
|
+
* correctly returned 0 — the search was working perfectly against an index
|
|
71
|
+
* that was almost empty.
|
|
72
|
+
*
|
|
73
|
+
* CLAUDE.md documents this exact trap on this exact pipeline: a wrapper
|
|
74
|
+
* missed when a seed file is created, with no error anywhere, because an
|
|
75
|
+
* absent field is indistinguishable from "no match" at every layer above.
|
|
76
|
+
*
|
|
77
|
+
* 🛑 Applied LAST, after `withDerivedCategoryNames`. The category names are
|
|
78
|
+
* derived by that wrapper, so tokenising before it indexes `undefined` and
|
|
79
|
+
* silently loses every category term ("Basic Line", "Beyblade X Tops") from
|
|
80
|
+
* the index.
|
|
81
|
+
*/
|
|
82
|
+
function withSearchTokens(p) {
|
|
83
|
+
return {
|
|
84
|
+
...p,
|
|
85
|
+
searchTxt: buildSearchTxt([
|
|
86
|
+
p.title, p.description, p.brand, p.brandSlug,
|
|
87
|
+
p.categoryNames, p.tags, p.condition,
|
|
88
|
+
p.specifications?.map((s) => `${s.name} ${s.value}`),
|
|
89
|
+
]),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
58
92
|
const _raw = [
|
|
59
93
|
// ===== Standalone tops =====
|
|
60
94
|
{
|
|
@@ -438,4 +472,5 @@ export const productsBeybladeXSeedData = _raw
|
|
|
438
472
|
seedPurpose: "permanent",
|
|
439
473
|
}))
|
|
440
474
|
.map(withFinalSale)
|
|
441
|
-
.map(withDerivedCategoryNames)
|
|
475
|
+
.map(withDerivedCategoryNames)
|
|
476
|
+
.map(withSearchTokens);
|
|
@@ -167,6 +167,7 @@ export const siteSettingsSeedData = {
|
|
|
167
167
|
whatsappNumber: "918919665811",
|
|
168
168
|
},
|
|
169
169
|
payment: {
|
|
170
|
+
razorpayEnabled: false,
|
|
170
171
|
phonepeEnabled: false,
|
|
171
172
|
upiManualEnabled: true,
|
|
172
173
|
codEnabled: true,
|
|
@@ -220,12 +221,15 @@ export const siteSettingsSeedData = {
|
|
|
220
221
|
*/
|
|
221
222
|
messaging: {
|
|
222
223
|
emailEnabled: false,
|
|
223
|
-
|
|
224
|
-
dailyCeiling: { email: 80, whatsapp: 200, sms: 50 },
|
|
224
|
+
dailyCeiling: { email: 80, sms: 50 },
|
|
225
225
|
},
|
|
226
226
|
seo: {
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
// Kept in step with the hero h1 in homepage-sections-seed-data.ts: the
|
|
228
|
+
// title is what a search result and a browser tab show, so leaving
|
|
229
|
+
// "Auction" here would have gone on advertising a disabled type from the
|
|
230
|
+
// one place a visitor sees before the page even loads.
|
|
231
|
+
defaultTitle: "LetItRip — Buy & Sell Collectibles | India's Collectibles Marketplace",
|
|
232
|
+
defaultDescription: "Buy and sell collectibles on India's marketplace for enthusiasts — action figures, trading cards, spinning tops, model kits, and more from verified sellers.",
|
|
229
233
|
keywords: [
|
|
230
234
|
"collectibles marketplace india",
|
|
231
235
|
"action figures india",
|
|
@@ -474,8 +478,6 @@ export const siteSettingsSeedData = {
|
|
|
474
478
|
codHandlingFeePercent: 10,
|
|
475
479
|
// Enabled so a seeded install actually shows the add-ons — see the matching
|
|
476
480
|
// comment on DEFAULT_SITE_SETTINGS_DATA.commissions.
|
|
477
|
-
whatsappNotifyFeeEnabled: true,
|
|
478
|
-
whatsappNotifyFee: 10,
|
|
479
481
|
giftWrapFeeEnabled: true,
|
|
480
482
|
giftWrapFee: 49,
|
|
481
483
|
shipmentProtectionFeeEnabled: true,
|
|
@@ -498,22 +500,27 @@ export const siteSettingsSeedData = {
|
|
|
498
500
|
// Was `featureFlags` — 14 toggles of which 11 had no reader. Deleted
|
|
499
501
|
// 2026-08-29; the two that were never flags live here instead.
|
|
500
502
|
listings: {
|
|
503
|
+
// Kept identical to `DEFAULT_SITE_SETTINGS_DATA.listings` in
|
|
504
|
+
// admin/schemas/firestore.ts — a seed that disagrees with the default
|
|
505
|
+
// means a freshly seeded site and a never-configured site offer different
|
|
506
|
+
// catalogues. See that block for why every member is now spelled out.
|
|
501
507
|
listingTypes: {
|
|
502
508
|
standard: true,
|
|
503
|
-
|
|
509
|
+
spares: true,
|
|
504
510
|
"pre-order": true,
|
|
505
|
-
"prize-draw": true,
|
|
506
|
-
classified: true,
|
|
507
|
-
"digital-code": true,
|
|
508
|
-
live: true,
|
|
509
511
|
art: true,
|
|
510
512
|
stickers: true,
|
|
513
|
+
auction: false,
|
|
514
|
+
"prize-draw": false,
|
|
515
|
+
classified: false,
|
|
516
|
+
"digital-code": false,
|
|
517
|
+
live: false,
|
|
511
518
|
},
|
|
512
519
|
categoryTypes: {
|
|
513
520
|
category: true,
|
|
514
521
|
sublisting: true,
|
|
515
522
|
brand: true,
|
|
516
|
-
bundle:
|
|
523
|
+
bundle: false,
|
|
517
524
|
},
|
|
518
525
|
},
|
|
519
526
|
credentials: {
|
|
@@ -523,29 +530,22 @@ export const siteSettingsSeedData = {
|
|
|
523
530
|
phonepeEnvironment: "sandbox",
|
|
524
531
|
phonepeWebhookUsername: "webhook_PLACEHOLDER",
|
|
525
532
|
phonepeWebhookPassword: "webhook_PLACEHOLDER",
|
|
533
|
+
/*
|
|
534
|
+
* 🛑 Deliberately EMPTY, not `*_PLACEHOLDER`, and this is the same
|
|
535
|
+
* reasoning the Meta secrets and `googleMapsApiKey` are seeded empty for:
|
|
536
|
+
* a placeholder is truthy, so a consumer that reads the value directly
|
|
537
|
+
* treats it as a usable credential and makes a real, failing API call —
|
|
538
|
+
* here, mid-checkout, after the buyer has committed. `resolveKeys()` also
|
|
539
|
+
* filters PLACEHOLDER for these three as a second line of defence, but
|
|
540
|
+
* the seed should not be the thing that needs defending against.
|
|
541
|
+
*
|
|
542
|
+
* A real key belongs in Admin › Site Settings › Credentials (encrypted at
|
|
543
|
+
* rest) or in RAZORPAY_KEY_ID / RAZORPAY_KEY_SECRET.
|
|
544
|
+
*/
|
|
545
|
+
razorpayKeyId: "",
|
|
546
|
+
razorpayKeySecret: "",
|
|
547
|
+
razorpayWebhookSecret: "",
|
|
526
548
|
resendApiKey: "",
|
|
527
|
-
whatsappApiKey: "wa_PLACEHOLDER",
|
|
528
|
-
// Real Meta secrets — deliberately left empty. With these unset the order
|
|
529
|
-
// announcement logs "not configured" and skips cleanly; a placeholder
|
|
530
|
-
// string here would instead be treated as a usable token and fail on send.
|
|
531
|
-
// Enter the real values in Admin → Site Settings → WhatsApp.
|
|
532
|
-
whatsappPhoneNumberId: "",
|
|
533
|
-
whatsappCloudApiToken: "",
|
|
534
|
-
// The platform's own WhatsApp number, digits-only with country code
|
|
535
|
-
// (+91 8919665811). Same number as contact.whatsappNumber above.
|
|
536
|
-
whatsappAdminNotifyNumbers: "918919665811",
|
|
537
|
-
// Default Meta message-template names. These MUST be created and approved
|
|
538
|
-
// in Meta Business Manager under exactly these names — business-initiated
|
|
539
|
-
// sends outside the 24h customer-service window are rejected without an
|
|
540
|
-
// approved template. Names match the notification types they serve, see
|
|
541
|
-
// WHATSAPP_TEMPLATE_BY_TYPE in features/admin/actions/notification-actions.ts.
|
|
542
|
-
whatsappTemplateOrderPlaced: "order_placed",
|
|
543
|
-
whatsappTemplateOrderConfirmed: "order_confirmed",
|
|
544
|
-
whatsappTemplateOrderShipped: "order_shipped",
|
|
545
|
-
whatsappTemplateOrderDelivered: "order_delivered",
|
|
546
|
-
whatsappTemplateOrderCancelled: "order_cancelled",
|
|
547
|
-
whatsappTemplateRefundInitiated: "refund_initiated",
|
|
548
|
-
whatsappTemplateLanguage: "en",
|
|
549
549
|
metaAppId: "meta_app_PLACEHOLDER",
|
|
550
550
|
metaAppSecret: "meta_secret_PLACEHOLDER",
|
|
551
551
|
metaPageAccessToken: "meta_page_token_PLACEHOLDER",
|
|
@@ -568,7 +568,6 @@ export const siteSettingsSeedData = {
|
|
|
568
568
|
notificationChannels: {
|
|
569
569
|
inApp: { enabled: true, readOnly: true },
|
|
570
570
|
email: { enabled: true, minPriority: "normal" },
|
|
571
|
-
whatsapp: { enabled: true, minPriority: "high", otpEnabled: true },
|
|
572
571
|
/*
|
|
573
572
|
* FALSE. There is no SMS sender anywhere in this codebase — nothing reads
|
|
574
573
|
* `notificationChannels.sms`, no Twilio SDK is installed, and the only
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnalyticsAlertDocument, AnalyticsCardDocument, ItemRequestDocument, ListingTemplateDocument, ModerationQueueDocument, PayoutMethodDocument, ReportDocument, ShippingConfigDocument, StoreCategoryDocument, StoreGoogleConfigDocument
|
|
1
|
+
import type { AnalyticsAlertDocument, AnalyticsCardDocument, ItemRequestDocument, ListingTemplateDocument, ModerationQueueDocument, PayoutMethodDocument, ReportDocument, ShippingConfigDocument, StoreCategoryDocument, StoreGoogleConfigDocument } from "../features/store-extensions/schemas/firestore";
|
|
2
2
|
export declare const payoutMethodsSeedData: Partial<PayoutMethodDocument>[];
|
|
3
3
|
export declare const shippingConfigsSeedData: Partial<ShippingConfigDocument>[];
|
|
4
4
|
export declare const analyticsCardsSeedData: Partial<AnalyticsCardDocument>[];
|
|
@@ -8,5 +8,4 @@ export declare const listingTemplatesSeedData: Partial<ListingTemplateDocument>[
|
|
|
8
8
|
export declare const moderationQueueSeedData: Partial<ModerationQueueDocument>[];
|
|
9
9
|
export declare const reportsSeedData: Partial<ReportDocument>[];
|
|
10
10
|
export declare const itemRequestsSeedData: Partial<ItemRequestDocument>[];
|
|
11
|
-
export declare const storeWhatsAppConfigSeedData: Partial<StoreWhatsAppConfigDocument>[];
|
|
12
11
|
export declare const storeGoogleConfigSeedData: Partial<StoreGoogleConfigDocument>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* WHY: Seeds the 11 store-extension collections for the Beyblade marketplace (2 stores).
|
|
3
3
|
* WHAT: payoutMethods, shippingConfigs, analyticsCards, analyticsAlerts, storeCategories,
|
|
4
|
-
* listingTemplates, moderationQueue, reports, itemRequests,
|
|
4
|
+
* listingTemplates, moderationQueue, reports, itemRequests, storeGoogleConfig.
|
|
5
5
|
*
|
|
6
6
|
* EXPORTS:
|
|
7
7
|
* payoutMethodsSeedData, shippingConfigsSeedData, analyticsCardsSeedData,
|
|
@@ -272,28 +272,6 @@ export const itemRequestsSeedData = [
|
|
|
272
272
|
replies: [],
|
|
273
273
|
},
|
|
274
274
|
];
|
|
275
|
-
// ───── storeWhatsAppConfig (2 records) ────────────────────────────────────
|
|
276
|
-
export const storeWhatsAppConfigSeedData = [
|
|
277
|
-
{
|
|
278
|
-
id: "whatsapp-beyblade-arena",
|
|
279
|
-
storeId: "store-beyblade-arena",
|
|
280
|
-
isConnected: true,
|
|
281
|
-
isPaid: true,
|
|
282
|
-
phoneNumber: "+919876501001",
|
|
283
|
-
businessProfileName: "Beyblade Arena",
|
|
284
|
-
catalogUrl: "https://wa.me/c/919876501001",
|
|
285
|
-
autoReply: "Hi! Thanks for messaging Beyblade Arena. We respond within 2 hours.",
|
|
286
|
-
welcomeMessage: "Welcome to Beyblade Arena! Browse our full catalog above.",
|
|
287
|
-
onboardingStatus: "approved",
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
id: "whatsapp-letitrip-official",
|
|
291
|
-
storeId: "store-letitrip-official",
|
|
292
|
-
isConnected: false,
|
|
293
|
-
isPaid: false,
|
|
294
|
-
onboardingStatus: "pending",
|
|
295
|
-
},
|
|
296
|
-
];
|
|
297
275
|
// ───── storeGoogleConfig (2 records) ──────────────────────────────────────
|
|
298
276
|
export const storeGoogleConfigSeedData = [
|
|
299
277
|
{
|
package/dist/server-entry.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export { renderFaqOg, renderFaqOgImage, type FaqOgData, } from "./_internal/serv
|
|
|
67
67
|
export { renderScamOg, renderScamOgImage, type ScamOgData, getScammerForDetail, getScammerProfilePageData as getScammerProfilePageDataCached, } from "./_internal/server/features/scams/index";
|
|
68
68
|
export { getCategoryForDetail, listRootCategories, listFeaturedCategories, listMenuCategories, getCategoryTree, listSitemapCategories, CATEGORIES_PAGE_SIZE, CATEGORIES_ROOT_TIER, CATEGORIES_MAX_DEPTH, CATEGORIES_SITEMAP_LIMIT, CATEGORIES_FEATURED_LIMIT, CATEGORIES_MENU_LIMIT, } from "./_internal/server/features/categories/index";
|
|
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
|
-
export { createCheckoutOrderAction, attachPaymentAction,
|
|
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
72
|
export { processRefundAction, type ProcessRefundInput, } from "./_internal/server/features/refunds/actions";
|
|
73
73
|
export { getSublistingCategoryForDetail } from "./_internal/server/features/sublisting-categories/index";
|
package/dist/server-entry.js
CHANGED
|
@@ -96,7 +96,7 @@ export { getGroupedListingForDetail, getGroupedListingWithItems, listGroupedList
|
|
|
96
96
|
// `categoriesRepository.findBySlugAndType(slug, "bundle")` /
|
|
97
97
|
// `.listByType("bundle", opts)` / `.findById(id)` directly.
|
|
98
98
|
// S4: checkout actions
|
|
99
|
-
export { createCheckoutOrderAction, attachPaymentAction,
|
|
99
|
+
export { createCheckoutOrderAction, attachPaymentAction, verifyAndPlaceGatewayOrderAction, previewCheckoutPricing, resolveShippingCost, formatShippingAddress, CHECKOUT_DEFAULT_COMMISSIONS, CHECKOUT_PAYMENT_METHODS, } from "./_internal/server/features/checkout/index.js";
|
|
100
100
|
// The one definition of "what does this cart line cost". Exported because the
|
|
101
101
|
// consumer's Razorpay create-order route needs it: that route used to hand-roll
|
|
102
102
|
// the rule and reproduced only the bundle branch, so it captured the LIST price
|
package/dist/server.d.ts
CHANGED
|
@@ -154,6 +154,8 @@ export { normalizeFirebaseConfigValue } from "./providers/db-firebase/index";
|
|
|
154
154
|
export { prepareForFirestore } from "./providers/db-firebase/index";
|
|
155
155
|
export { createResendProvider } from "./providers/email-resend/index";
|
|
156
156
|
export { PhonePeProvider } from "./providers/payment-phonepe/index";
|
|
157
|
+
export { RazorpayProvider } from "./providers/payment-razorpay/index";
|
|
158
|
+
export { verifyWebhookSignature as verifyRazorpayWebhookSignature } from "./providers/payment-razorpay/signature";
|
|
157
159
|
export { paiseToRupees } from "./core/money";
|
|
158
160
|
export { rupeesToPaise } from "./core/money";
|
|
159
161
|
export { resolveKeys } from "./core/integration-keys";
|
|
@@ -286,12 +288,14 @@ export { updateEvent } from "./features/events/server";
|
|
|
286
288
|
export { triggerEventRaffleAction, assignSpinPrizeAction, resolveEventIdAction, } from "./_internal/server/features/raffle/actions";
|
|
287
289
|
export { reasonToHttp, EVENT_DRAW_REASON, type EventDrawReason, type EventDrawHttpMapping, } from "./_internal/server/jobs/core/event-draw-reasons";
|
|
288
290
|
export { processRefundAction, type ProcessRefundInput, } from "./_internal/server/features/refunds/actions";
|
|
289
|
-
export { computeCheckoutFees, computePayoutDeduction, computeCodHandlingFee,
|
|
291
|
+
export { computeCheckoutFees, computePayoutDeduction, computeCodHandlingFee, computeGiftWrapFee, computeShipmentProtectionFee, computeSaleProtectionFee, } from "./_internal/shared/fees/calculator";
|
|
290
292
|
export { searchPriceIndex, getPriceIndexBandsForIds, PRICE_INDEX_SEARCH_LIMIT, PRICE_INDEX_MIN_QUERY_LENGTH } from "./_internal/server/features/price-index/search";
|
|
291
293
|
export type { PriceIndexSearchResponse, PriceIndexSearchResult, PriceIndexSearchResultBand, } from "./_internal/server/features/price-index/search";
|
|
294
|
+
export { getPriceIndexMarketForIds } from "./_internal/server/features/price-index/market";
|
|
295
|
+
export type { PriceIndexMarketRow } from "./_internal/server/features/price-index/market";
|
|
292
296
|
export { protectionAvailability, computeProtectionFees, adjudicateClaim, badgesFor, showsRiskNotice, showsSafetyBadge, returnDestination, rtoDestination, PROTECTION_KINDS, } from "./_internal/shared/features/shipping/protections";
|
|
293
297
|
export type { ProtectionKind, ProtectionAvailability, ProtectionTierInput, ProtectionUnavailableReason, ClaimFinding, ClaimOutcome, } from "./_internal/shared/features/shipping/protections";
|
|
294
|
-
export type { FeeCommissionRates, CheckoutFees, PayoutDeduction, CodHandlingFeeRates,
|
|
298
|
+
export type { FeeCommissionRates, CheckoutFees, PayoutDeduction, CodHandlingFeeRates, GiftWrapFeeRates, ShipmentProtectionFeeRates, SaleProtectionFeeRates, } from "./_internal/shared/fees/calculator";
|
|
295
299
|
export { applyRefundDeductionAction, type ApplyRefundDeductionInput, type ApplyRefundDeductionResult, } from "./_internal/server/features/payouts/actions";
|
|
296
300
|
export { createFaq } from "./features/faq/server";
|
|
297
301
|
export { deleteFaq } from "./features/faq/server";
|
|
@@ -423,14 +427,6 @@ export { storeProductsGET } from "./features/stores/server";
|
|
|
423
427
|
export { storeReviewsGET } from "./features/stores/server";
|
|
424
428
|
export { storeSlugGET } from "./features/stores/server";
|
|
425
429
|
export { updateStoreAddressForSeller } from "./features/stores/server";
|
|
426
|
-
export { buildCheckoutMessageURL } from "./features/whatsapp-bot/server";
|
|
427
|
-
export { buildStatusMessage } from "./features/whatsapp-bot/server";
|
|
428
|
-
export { buildStatusNotificationURL } from "./features/whatsapp-bot/server";
|
|
429
|
-
export { isAdminNumber } from "./features/whatsapp-bot/server";
|
|
430
|
-
export { parseIncomingWebhookPayload } from "./features/whatsapp-bot/server";
|
|
431
|
-
export { sendWhatsAppMessage } from "./features/whatsapp-bot/server";
|
|
432
|
-
export { sendWhatsAppBusinessMessage, syncProductsToCatalog, buildPurchaseAnnouncementMessage, buildGroupShareLink } from "./features/whatsapp-bot/server";
|
|
433
|
-
export type { WaBusinessSendInput, CatalogSyncProduct, CatalogSyncInput, CatalogSyncResult, PurchaseAnnouncementInput } from "./features/whatsapp-bot/server";
|
|
434
430
|
export { addToWishlist } from "./features/wishlist/server";
|
|
435
431
|
export { getWishlistForUser } from "./features/wishlist/server";
|
|
436
432
|
export { removeFromWishlist } from "./features/wishlist/server";
|
|
@@ -627,3 +623,7 @@ export { promoteStickerTraceRun, isRunPromoted, type PromoteRunInput, type Promo
|
|
|
627
623
|
export { createStickerSheet, attachStickerSheetScan, resolveStickerAssetUrl, measureStickerStorage, STICKER_ASSET_KINDS, STICKER_SHEET_MAX_BYTES, type StickerAssetKind, type SheetUsageRow, type StickerStorageUsage, } from "./_internal/server/features/sticker-trace/sheet-actions";
|
|
628
624
|
export { promoteStickerSheetToListings, type PromoteToListingsInput, type PromoteToListingsResult, } from "./_internal/server/features/sticker-trace/promote-to-listings";
|
|
629
625
|
export { toClientStickerSheet, toClientTraceRun, type ClientStickerSheet, type ClientTraceRun, } from "./_internal/server/features/sticker-trace/adapters";
|
|
626
|
+
export { configurePlatformSupplier, getPlatformSupplier, resetPlatformSupplier, } from "./_internal/shared/features/site-settings/supplier-of-record";
|
|
627
|
+
export type { PlatformSupplierIdentity } from "./_internal/shared/features/site-settings/supplier-of-record";
|
|
628
|
+
export { ShiprocketShippingProvider } from "./providers/shipping-shiprocket/index";
|
|
629
|
+
export type { ShiprocketConfig } from "./providers/shipping-shiprocket/index";
|
package/dist/server.js
CHANGED
|
@@ -425,6 +425,12 @@ export { createResendProvider } from "./providers/email-resend/index.js";
|
|
|
425
425
|
// PhonePeProvider - Component for phonepe provider.
|
|
426
426
|
export { PhonePeProvider } from "./providers/payment-phonepe/index.js";
|
|
427
427
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
428
|
+
// RazorpayProvider - IPaymentProvider over Razorpay's client-side-modal gateway.
|
|
429
|
+
export { RazorpayProvider } from "./providers/payment-razorpay/index.js";
|
|
430
|
+
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
431
|
+
// verifyRazorpayWebhookSignature - HMAC-SHA256 over the RAW webhook body. SDK-free module.
|
|
432
|
+
export { verifyWebhookSignature as verifyRazorpayWebhookSignature } from "./providers/payment-razorpay/signature.js";
|
|
433
|
+
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
428
434
|
// paiseToRupees - Shared export for paise to rupees. // audit-money-units-ok: names the boundary conversion function itself
|
|
429
435
|
export { paiseToRupees } from "./core/money.js";
|
|
430
436
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
@@ -836,8 +842,8 @@ resolveEventIdAction, } from "./_internal/server/features/raffle/actions.js";
|
|
|
836
842
|
export { reasonToHttp, EVENT_DRAW_REASON, } from "./_internal/server/jobs/core/event-draw-reasons.js";
|
|
837
843
|
// [SERVER-ONLY] S-SBUNI-RULES — refund action (Razorpay + manual paths)
|
|
838
844
|
export { processRefundAction, } from "./_internal/server/features/refunds/actions.js";
|
|
839
|
-
// [SERVER-ONLY] Shared fee calculator — platform/gateway/GST/COD handling/
|
|
840
|
-
export { computeCheckoutFees, computePayoutDeduction, computeCodHandlingFee,
|
|
845
|
+
// [SERVER-ONLY] Shared fee calculator — platform/gateway/GST/COD handling/addon fee math.
|
|
846
|
+
export { computeCheckoutFees, computePayoutDeduction, computeCodHandlingFee, computeGiftWrapFee, computeShipmentProtectionFee, computeSaleProtectionFee, } from "./_internal/shared/fees/calculator.js";
|
|
841
847
|
// C5e buyer protections — the pure three-tier gate plus the one fee pair
|
|
842
848
|
// every money path must agree on. Public API because the capture route
|
|
843
849
|
// (/api/payment/create-order) is one of the three sites that must agree.
|
|
@@ -846,6 +852,14 @@ export { computeCheckoutFees, computePayoutDeduction, computeCodHandlingFee, com
|
|
|
846
852
|
// client.ts (verify-entries would catch firebase-admin, but the import chain
|
|
847
853
|
// is the thing to keep clean — Root Cause #6).
|
|
848
854
|
export { searchPriceIndex, getPriceIndexBandsForIds, PRICE_INDEX_SEARCH_LIMIT, PRICE_INDEX_MIN_QUERY_LENGTH } from "./_internal/server/features/price-index/search.js";
|
|
855
|
+
/*
|
|
856
|
+
* The MARKET half of the same tool, and a separate export because it is a
|
|
857
|
+
* separate AUTHENTICATED endpoint — the competitor-derived band must not ride
|
|
858
|
+
* the public, edge-cached sold response. The full argument is in that module's
|
|
859
|
+
* own header; the short version is that merging them would either poison a
|
|
860
|
+
* public cache with viewer-dependent content or cost the sold half its cache.
|
|
861
|
+
*/
|
|
862
|
+
export { getPriceIndexMarketForIds } from "./_internal/server/features/price-index/market.js";
|
|
849
863
|
export { protectionAvailability, computeProtectionFees, adjudicateClaim, badgesFor, showsRiskNotice, showsSafetyBadge, returnDestination, rtoDestination, PROTECTION_KINDS, } from "./_internal/shared/features/shipping/protections.js";
|
|
850
864
|
// [SERVER-ONLY] Payout refund deduction action
|
|
851
865
|
export { applyRefundDeductionAction, } from "./_internal/server/features/payouts/actions.js";
|
|
@@ -1242,26 +1256,6 @@ export { storeSlugGET } from "./features/stores/server.js";
|
|
|
1242
1256
|
// updateStoreAddressForSeller - Helper for update store address for seller.
|
|
1243
1257
|
export { updateStoreAddressForSeller } from "./features/stores/server.js";
|
|
1244
1258
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
1245
|
-
// buildCheckoutMessageURL - Helper for build checkout message url.
|
|
1246
|
-
export { buildCheckoutMessageURL } from "./features/whatsapp-bot/server.js";
|
|
1247
|
-
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
1248
|
-
// buildStatusMessage - Helper for build status message.
|
|
1249
|
-
export { buildStatusMessage } from "./features/whatsapp-bot/server.js";
|
|
1250
|
-
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
1251
|
-
// buildStatusNotificationURL - Helper for build status notification url.
|
|
1252
|
-
export { buildStatusNotificationURL } from "./features/whatsapp-bot/server.js";
|
|
1253
|
-
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
1254
|
-
// isAdminNumber - Shared export for is admin number.
|
|
1255
|
-
export { isAdminNumber } from "./features/whatsapp-bot/server.js";
|
|
1256
|
-
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
1257
|
-
// parseIncomingWebhookPayload - Helper for parse incoming webhook payload.
|
|
1258
|
-
export { parseIncomingWebhookPayload } from "./features/whatsapp-bot/server.js";
|
|
1259
|
-
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
1260
|
-
// sendWhatsAppMessage - Shared export for send whats app message.
|
|
1261
|
-
export { sendWhatsAppMessage } from "./features/whatsapp-bot/server.js";
|
|
1262
|
-
// [SERVER-ONLY]-Server-only — Meta Cloud API helpers (WA3).
|
|
1263
|
-
export { sendWhatsAppBusinessMessage, syncProductsToCatalog, buildPurchaseAnnouncementMessage, buildGroupShareLink } from "./features/whatsapp-bot/server.js";
|
|
1264
|
-
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
1265
1259
|
// addToWishlist - Helper for add to wishlist.
|
|
1266
1260
|
export { addToWishlist } from "./features/wishlist/server.js";
|
|
1267
1261
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
@@ -1586,3 +1580,11 @@ export { createStickerSheet, attachStickerSheetScan, resolveStickerAssetUrl, mea
|
|
|
1586
1580
|
*/
|
|
1587
1581
|
export { promoteStickerSheetToListings, } from "./_internal/server/features/sticker-trace/promote-to-listings.js";
|
|
1588
1582
|
export { toClientStickerSheet, toClientTraceRun, } from "./_internal/server/features/sticker-trace/adapters.js";
|
|
1583
|
+
// The platform's statutory identity, injected at boot from appkit.config.js's
|
|
1584
|
+
// `business` block via the consumer's providers.config.ts. See the module
|
|
1585
|
+
// header for why the invoice path must not read it from siteSettings.
|
|
1586
|
+
export { configurePlatformSupplier, getPlatformSupplier, resetPlatformSupplier, } from "./_internal/shared/features/site-settings/supplier-of-record.js";
|
|
1587
|
+
// Shiprocket carrier adapter. 🛑 NEVER exercised against the live API — the
|
|
1588
|
+
// credentials are empty — so it parses every response through Zod and refuses
|
|
1589
|
+
// at construction when unconfigured. See the module header.
|
|
1590
|
+
export { ShiprocketShippingProvider } from "./providers/shipping-shiprocket/index.js";
|