@mohasinac/appkit 3.8.1 → 3.9.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/_internal/client/features/live/LiveItemDetailView.js +2 -2
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.d.ts +4 -4
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +8 -8
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.d.ts +1 -1
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.js +2 -2
- package/dist/_internal/server/features/bundles/actions.js +2 -2
- package/dist/_internal/server/features/bundles/og.d.ts +1 -1
- package/dist/_internal/server/features/bundles/og.js +4 -5
- package/dist/_internal/server/features/checkout/actions.js +57 -21
- package/dist/_internal/server/features/checkout/stock-restore.d.ts +19 -0
- package/dist/_internal/server/features/checkout/stock-restore.js +80 -0
- package/dist/_internal/server/features/checkout/upi-resolution.d.ts +11 -0
- package/dist/_internal/server/features/checkout/upi-resolution.js +28 -0
- package/dist/_internal/server/features/classified/og.js +1 -1
- package/dist/_internal/server/features/digital-code/og.js +1 -1
- package/dist/_internal/server/features/item-requests/og.d.ts +2 -2
- package/dist/_internal/server/features/item-requests/og.js +4 -5
- package/dist/_internal/server/features/live/og.js +1 -1
- package/dist/_internal/server/features/lottery/adapters.d.ts +2 -2
- package/dist/_internal/server/features/lottery/adapters.js +1 -1
- package/dist/_internal/server/features/orders/actions.d.ts +28 -0
- package/dist/_internal/server/features/orders/actions.js +239 -4
- package/dist/_internal/server/features/orders/adapters.js +3 -0
- package/dist/_internal/server/features/payments/data.js +3 -2
- package/dist/_internal/server/features/payouts/actions.d.ts +2 -2
- package/dist/_internal/server/features/payouts/actions.js +4 -3
- package/dist/_internal/server/features/pre-orders/service.d.ts +1 -1
- package/dist/_internal/server/features/pre-orders/service.js +3 -2
- package/dist/_internal/server/features/prize-draws/og.js +5 -5
- package/dist/_internal/server/features/products/og.js +1 -1
- package/dist/_internal/server/features/promotions/service.js +3 -1
- package/dist/_internal/server/features/refunds/actions.d.ts +2 -2
- package/dist/_internal/server/features/refunds/actions.js +7 -6
- package/dist/_internal/server/functions/firestore.js +1 -1
- package/dist/_internal/server/functions/scheduled.d.ts +4 -1
- package/dist/_internal/server/functions/scheduled.js +26 -2
- package/dist/_internal/server/jobs/core/emiInstallmentReminder.js +1 -1
- package/dist/_internal/server/jobs/core/hardBanCascade.d.ts +4 -0
- package/dist/_internal/server/jobs/core/hardBanCascade.js +15 -4
- package/dist/_internal/server/jobs/core/hardBanReinstatement.d.ts +16 -0
- package/dist/_internal/server/jobs/core/hardBanReinstatement.js +63 -0
- package/dist/_internal/server/jobs/core/jobRunners.js +3 -1
- package/dist/_internal/server/jobs/core/onScamReportCreate.js +1 -1
- package/dist/_internal/server/jobs/core/paymentReviewAutoApprove.d.ts +10 -0
- package/dist/_internal/server/jobs/core/paymentReviewAutoApprove.js +60 -0
- package/dist/_internal/server/jobs/core/paymentWindowTimeout.d.ts +15 -0
- package/dist/_internal/server/jobs/core/paymentWindowTimeout.js +59 -0
- package/dist/_internal/server/jobs/core/pendingOrderTimeout.d.ts +7 -0
- package/dist/_internal/server/jobs/core/pendingOrderTimeout.js +32 -6
- package/dist/_internal/server/jobs/handlers/hardBanReinstatement.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/hardBanReinstatement.js +2 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +3 -0
- package/dist/_internal/server/jobs/handlers/index.js +3 -0
- package/dist/_internal/server/jobs/handlers/messages.d.ts +4 -0
- package/dist/_internal/server/jobs/handlers/messages.js +4 -0
- package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.d.ts +3 -3
- package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.js +12 -12
- package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.js +5 -5
- package/dist/_internal/server/jobs/handlers/paymentReviewAutoApprove.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/paymentReviewAutoApprove.js +2 -0
- package/dist/_internal/server/jobs/handlers/paymentWindowTimeout.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/paymentWindowTimeout.js +2 -0
- package/dist/_internal/shared/actions/action-registry.js +27 -0
- package/dist/_internal/shared/checkout/order-math.js +3 -2
- package/dist/_internal/shared/checkout/rules/_defaults.js +1 -0
- package/dist/_internal/shared/checkout/rules/preorder.rule.js +7 -0
- package/dist/_internal/shared/checkout/rules/prize-draw.rule.js +7 -0
- package/dist/_internal/shared/checkout/rules/types.d.ts +11 -0
- package/dist/_internal/shared/features/auctions/errors.js +1 -1
- package/dist/_internal/shared/features/categories/bundle-copy.d.ts +0 -1
- package/dist/_internal/shared/features/categories/bundle-copy.js +0 -1
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +6 -6
- package/dist/_internal/shared/features/categories/bundle-schemas.js +2 -2
- package/dist/_internal/shared/features/checkout/config.d.ts +3 -3
- package/dist/_internal/shared/features/checkout/config.js +3 -3
- package/dist/_internal/shared/features/emi/schedule.d.ts +6 -6
- package/dist/_internal/shared/features/emi/schedule.js +10 -9
- package/dist/_internal/shared/features/promotions/errors.js +1 -1
- package/dist/_internal/shared/fees/calculator.d.ts +5 -5
- package/dist/_internal/shared/fees/calculator.js +19 -19
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/constants/api-endpoints.d.ts +9 -0
- package/dist/constants/api-endpoints.js +3 -0
- package/dist/constants/field-names.d.ts +4 -0
- package/dist/constants/field-names.js +4 -0
- package/dist/features/admin/components/AdminArtView.js +2 -2
- package/dist/features/admin/components/AdminBidsView.js +2 -2
- package/dist/features/admin/components/AdminBundleEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBundleEditorView.js +8 -8
- package/dist/features/admin/components/AdminBundlesView.js +6 -6
- package/dist/features/admin/components/AdminClassifiedView.js +2 -2
- package/dist/features/admin/components/AdminDigitalCodesView.js +2 -2
- package/dist/features/admin/components/AdminLiveView.js +2 -2
- package/dist/features/admin/components/AdminOrderEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +45 -5
- package/dist/features/admin/components/AdminOrdersView.js +8 -3
- package/dist/features/admin/components/AdminPayoutsView.js +2 -2
- package/dist/features/admin/components/AdminPrizeDrawsView.js +2 -2
- package/dist/features/admin/components/AdminReturnRequestsView.js +2 -2
- package/dist/features/admin/components/AdminSiteSettingsView.js +11 -11
- package/dist/features/admin/components/AdminStickersView.js +2 -2
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +1 -1
- package/dist/features/admin/hooks/useAdminListingData.d.ts +1 -1
- package/dist/features/admin/hooks/useAdminListingData.js +3 -2
- package/dist/features/admin/schemas/firestore.d.ts +9 -7
- package/dist/features/admin/schemas/firestore.js +4 -3
- package/dist/features/auctions/components/AuctionBidsTable.js +3 -3
- package/dist/features/auth/checkout-value-otp.d.ts +46 -0
- package/dist/features/auth/checkout-value-otp.js +73 -0
- package/dist/features/auth/repository/user.repository.d.ts +6 -0
- package/dist/features/auth/repository/user.repository.js +19 -0
- package/dist/features/auth/schemas/firestore.d.ts +10 -0
- package/dist/features/auth/schemas/firestore.js +2 -0
- package/dist/features/cart/actions/cart-actions.d.ts +1 -1
- package/dist/features/cart/actions/cart-actions.js +4 -4
- package/dist/features/cart/components/CartView.d.ts +2 -2
- package/dist/features/cart/components/ShippingPicker.d.ts +4 -4
- package/dist/features/cart/components/ShippingPicker.js +11 -11
- package/dist/features/cart/repository/cart.repository.d.ts +1 -1
- package/dist/features/cart/repository/cart.repository.js +2 -2
- package/dist/features/cart/schemas/firestore.d.ts +2 -2
- package/dist/features/catalogue/components/CatalogueItemEditorView.js +3 -3
- package/dist/features/catalogue/components/PublicCatalogueView.js +2 -2
- package/dist/features/catalogue/schemas/validation.js +1 -1
- package/dist/features/categories/components/BundleCollage.js +2 -2
- package/dist/features/categories/components/BundleDetailView.js +2 -2
- package/dist/features/categories/components/BundleItemsPicker.d.ts +1 -1
- package/dist/features/categories/components/BundleItemsPicker.js +2 -2
- package/dist/features/categories/components/CategoryBundlesListing.js +2 -2
- package/dist/features/categories/schemas/firestore.d.ts +1 -1
- package/dist/features/categories/schemas/index.d.ts +3 -3
- package/dist/features/categories/schemas/index.js +2 -2
- package/dist/features/checkout/actions/checkout-value-otp-actions.d.ts +16 -0
- package/dist/features/checkout/actions/checkout-value-otp-actions.js +83 -0
- package/dist/features/checkout/actions/index.d.ts +1 -0
- package/dist/features/checkout/actions/index.js +1 -0
- package/dist/features/checkout/schemas/firestore.d.ts +1 -1
- package/dist/features/classified/components/index.d.ts +0 -4
- package/dist/features/classified/components/index.js +0 -2
- package/dist/features/digital-codes/components/index.d.ts +0 -4
- package/dist/features/digital-codes/components/index.js +0 -2
- package/dist/features/events/schemas/index.d.ts +1 -1
- package/dist/features/events/schemas/index.js +1 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.js +2 -2
- package/dist/features/live/components/index.d.ts +0 -4
- package/dist/features/live/components/index.js +0 -2
- package/dist/features/lottery/types/index.d.ts +3 -3
- package/dist/features/lottery/types/index.js +5 -5
- package/dist/features/orders/components/OrderPaymentSummary.js +2 -2
- package/dist/features/orders/components/OrderSiblingPayments.js +1 -1
- package/dist/features/orders/components/RefundHistoryTable.js +1 -1
- package/dist/features/orders/components/RefundRequestView.js +1 -1
- package/dist/features/orders/constants/payment-window.d.ts +10 -0
- package/dist/features/orders/constants/payment-window.js +10 -0
- package/dist/features/orders/repository/orders.repository.d.ts +25 -0
- package/dist/features/orders/repository/orders.repository.js +50 -1
- package/dist/features/orders/schemas/firestore.d.ts +50 -2
- package/dist/features/orders/schemas/index.d.ts +24 -24
- package/dist/features/orders/schemas/index.js +20 -20
- package/dist/features/orders/types/index.d.ts +4 -0
- package/dist/features/orders/utils/bundle-grouping.d.ts +1 -1
- package/dist/features/orders/utils/bundle-grouping.js +1 -1
- package/dist/features/payments/schemas/index.d.ts +10 -10
- package/dist/features/payments/schemas/index.js +9 -9
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +2 -2
- package/dist/features/products/components/ArtStickersListView.d.ts +7 -0
- package/dist/features/products/components/ArtStickersListView.js +57 -0
- package/dist/features/products/components/GroupSettingsPanel.js +1 -1
- package/dist/features/products/components/MakeOfferButton.js +3 -3
- package/dist/features/products/components/MarketplaceBundleCard.d.ts +1 -1
- package/dist/features/products/components/MarketplaceBundleCard.js +2 -2
- package/dist/features/products/components/PrizeDrawCollage.js +2 -2
- package/dist/features/products/components/PrizeDrawItemsEditor.js +2 -2
- package/dist/features/products/components/PrizeRevealModal.js +1 -1
- package/dist/features/products/components/ProductDetailPageView.js +2 -9
- package/dist/features/products/components/ProductForm.js +2 -2
- package/dist/features/products/components/ProductGrid.js +2 -2
- package/dist/features/products/components/ProductsIndexListing.d.ts +13 -1
- package/dist/features/products/components/ProductsIndexListing.js +7 -5
- package/dist/features/products/components/ProductsIndexPageView.js +6 -1
- package/dist/features/products/constants/listing-tabs.d.ts +42 -17
- package/dist/features/products/constants/listing-tabs.js +25 -6
- package/dist/features/products/schemas/catalog-product.d.ts +5 -5
- package/dist/features/products/schemas/catalog-product.js +1 -1
- package/dist/features/products/schemas/firestore.d.ts +5 -5
- package/dist/features/products/schemas/firestore.js +2 -2
- package/dist/features/products/types/index.d.ts +5 -2
- package/dist/features/promotions/components/CouponCard.js +2 -2
- package/dist/features/promotions/schemas/firestore.d.ts +2 -0
- package/dist/features/promotions/schemas/firestore.js +1 -0
- package/dist/features/promotions/schemas/index.d.ts +14 -14
- package/dist/features/promotions/schemas/index.js +6 -6
- package/dist/features/scams/components/ScamProfileView.js +3 -7
- package/dist/features/scams/components/ScamRegistryView.js +2 -6
- package/dist/features/scams/schemas/firestore.d.ts +1 -1
- package/dist/features/search/components/Search.d.ts +1 -1
- package/dist/features/seller/actions/offer-actions.js +1 -1
- package/dist/features/seller/components/PrintCenterView.js +2 -2
- package/dist/features/seller/components/QuickProductForm.js +5 -5
- package/dist/features/seller/components/SellerArtView.js +2 -2
- package/dist/features/seller/components/SellerAuctionsView.js +2 -2
- package/dist/features/seller/components/SellerBidsView.js +2 -2
- package/dist/features/seller/components/SellerBundlesView.js +6 -6
- package/dist/features/seller/components/SellerClassifiedView.js +2 -2
- package/dist/features/seller/components/SellerDigitalCodesView.js +2 -2
- package/dist/features/seller/components/SellerLiveView.js +2 -2
- package/dist/features/seller/components/SellerOffersView.js +2 -2
- package/dist/features/seller/components/SellerOrdersView.js +3 -3
- package/dist/features/seller/components/SellerPayoutRequestView.js +2 -2
- package/dist/features/seller/components/SellerPayoutSettingsView.js +2 -2
- package/dist/features/seller/components/SellerPayoutsView.js +2 -2
- package/dist/features/seller/components/SellerPreOrdersView.js +2 -2
- package/dist/features/seller/components/SellerPrizeDrawsView.js +2 -2
- package/dist/features/seller/components/SellerProductShell.js +8 -8
- package/dist/features/seller/components/SellerProductsView.js +1 -1
- package/dist/features/seller/components/SellerShippingView.js +6 -6
- package/dist/features/seller/components/SellerStickersView.js +2 -2
- package/dist/features/seller/hooks/useSellerListingData.d.ts +1 -1
- package/dist/features/seller/hooks/useSellerListingData.js +3 -2
- package/dist/features/shipments/components/AdminShipmentEditorView.js +10 -10
- package/dist/features/shipments/components/AdminShipmentLotItemsView.js +4 -4
- package/dist/features/shipments/components/AdminShipmentProjectionsView.js +5 -5
- package/dist/features/shipments/components/AdminShipmentsView.js +4 -4
- package/dist/features/shipments/repository/shipment-lots.repository.d.ts +2 -2
- package/dist/features/shipments/repository/shipment-lots.repository.js +8 -8
- package/dist/features/shipments/schemas/firestore.d.ts +21 -21
- package/dist/features/shipments/schemas/firestore.js +9 -9
- package/dist/features/shipments/schemas/validation.d.ts +30 -30
- package/dist/features/shipments/schemas/validation.js +6 -6
- package/dist/features/shipments/utils/cost-allocation.d.ts +5 -5
- package/dist/features/shipments/utils/cost-allocation.js +39 -38
- package/dist/features/store-extensions/schemas/firestore.d.ts +5 -5
- package/dist/features/stores/components/StoreDetailLayoutView.js +9 -13
- package/dist/features/stores/schemas/firestore.d.ts +7 -7
- package/dist/features/stores/schemas/index.d.ts +84 -84
- package/dist/features/stores/schemas/index.js +5 -5
- package/dist/features/tester/seed-data/categories-tester-seed-data.js +1 -1
- package/dist/features/tester/seed-data/products-tester-seed-data.js +6 -6
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +9 -2
- package/dist/features/whatsapp-bot/helpers/whatsapp.d.ts +8 -1
- package/dist/features/whatsapp-bot/helpers/whatsapp.js +13 -2
- package/dist/features/whatsapp-bot/types/index.d.ts +9 -1
- package/dist/index.d.ts +4 -7
- package/dist/index.js +9 -5
- package/dist/next/routing/route-map.d.ts +2 -0
- package/dist/next/routing/route-map.js +6 -0
- package/dist/schemas/firestore-helpers.d.ts +2 -2
- package/dist/schemas/firestore-helpers.js +2 -2
- package/dist/schemas/registry.d.ts +73 -73
- package/dist/security/index.d.ts +2 -1
- package/dist/security/index.js +5 -1
- package/dist/security/pii-encrypt.d.ts +2 -53
- package/dist/security/pii-encrypt.js +19 -100
- package/dist/security/pii-mask.d.ts +67 -0
- package/dist/security/pii-mask.js +100 -0
- package/dist/seed/bids-seed-data.js +6 -6
- package/dist/seed/blog-posts-seed-data.js +1 -0
- package/dist/seed/cart-seed-data.js +13 -13
- package/dist/seed/catalogue-seed-data.js +6 -6
- package/dist/seed/categories-seed-data.js +5 -5
- package/dist/seed/claimed-coupons-seed-data.js +3 -3
- package/dist/seed/coupons-seed-data.js +20 -20
- package/dist/seed/events-seed-data.js +27 -27
- package/dist/seed/factories/bid.factory.js +1 -1
- package/dist/seed/faq-seed-data.js +20 -1
- package/dist/seed/grouped-listings-seed-data.d.ts +2 -2
- package/dist/seed/grouped-listings-seed-data.js +3 -3
- package/dist/seed/offers-seed-data.js +19 -19
- package/dist/seed/orders-seed-data.js +29 -29
- package/dist/seed/payouts-seed-data.js +7 -7
- package/dist/seed/products-auctions-seed-data.js +6 -6
- package/dist/seed/products-preorders-seed-data.d.ts +2 -2
- package/dist/seed/products-preorders-seed-data.js +1 -1
- package/dist/seed/products-standard-seed-data.js +8 -8
- package/dist/seed/scammers-seed-data.js +2 -2
- package/dist/seed/shipments-seed-data.js +29 -29
- package/dist/seed/site-settings-seed-data.js +3 -2
- package/dist/seed/store-extensions-seed-data.js +8 -8
- package/dist/seed/stores-seed-data.js +37 -8
- package/dist/seed/users-seed-data.js +38 -1
- package/dist/server-entry.d.ts +1 -3
- package/dist/server-entry.js +1 -3
- package/dist/server.d.ts +2 -1
- package/dist/server.js +3 -1
- package/dist/ui/components/PriceDisplay.js +3 -12
- package/dist/utils/number.formatter.d.ts +2 -7
- package/dist/utils/number.formatter.js +3 -8
- package/package.json +1 -1
- package/scripts/seed-cli.mjs +17 -3
- package/dist/_internal/client/scaffolds/DashboardScaffold.d.ts +0 -34
- package/dist/_internal/client/scaffolds/DashboardScaffold.js +0 -26
- package/dist/_internal/client/theme/__tests__/ThemeProvider.test.d.ts +0 -1
- package/dist/_internal/client/theme/__tests__/ThemeProvider.test.js +0 -109
- package/dist/_internal/server/features/auctions/__tests__/service.test.d.ts +0 -1
- package/dist/_internal/server/features/auctions/__tests__/service.test.js +0 -140
- package/dist/_internal/server/features/checkout/__tests__/actions.test.d.ts +0 -1
- package/dist/_internal/server/features/checkout/__tests__/actions.test.js +0 -600
- package/dist/_internal/server/features/refunds/__tests__/actions.test.d.ts +0 -1
- package/dist/_internal/server/features/refunds/__tests__/actions.test.js +0 -263
- package/dist/_internal/server/jobs/core/__tests__/auctionSettlement.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/auctionSettlement.test.js +0 -249
- package/dist/_internal/server/jobs/core/__tests__/couponExpiry.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/couponExpiry.test.js +0 -65
- package/dist/_internal/server/jobs/core/__tests__/listingProcessor.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/listingProcessor.test.js +0 -163
- package/dist/_internal/server/jobs/core/__tests__/mediaTmpCleanup.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/mediaTmpCleanup.test.js +0 -115
- package/dist/_internal/server/jobs/core/__tests__/onBidPlaced.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/onBidPlaced.test.js +0 -201
- package/dist/_internal/server/jobs/core/__tests__/onOrderCreate.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/onOrderCreate.test.js +0 -169
- package/dist/_internal/server/jobs/core/__tests__/onOrderStatusChange.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/onOrderStatusChange.test.js +0 -148
- package/dist/_internal/server/jobs/core/__tests__/onProductStockChange.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/onProductStockChange.test.js +0 -210
- package/dist/_internal/server/jobs/core/__tests__/onReviewWrite.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/onReviewWrite.test.js +0 -190
- package/dist/_internal/server/jobs/core/__tests__/onUserBanChange.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/onUserBanChange.test.js +0 -161
- package/dist/_internal/server/jobs/core/__tests__/payoutBatch.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/payoutBatch.test.js +0 -302
- package/dist/_internal/server/jobs/core/__tests__/pendingOrderTimeout.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/pendingOrderTimeout.test.js +0 -96
- package/dist/_internal/server/jobs/core/__tests__/triggerEventRaffle.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/triggerEventRaffle.test.js +0 -252
- package/dist/_internal/server/jobs/core/__tests__/wrapJobHandler.test.d.ts +0 -1
- package/dist/_internal/server/jobs/core/__tests__/wrapJobHandler.test.js +0 -129
- package/dist/_internal/server/jobs/core/onCatalogueSubmittedForApproval.d.ts +0 -15
- package/dist/_internal/server/jobs/core/onCatalogueSubmittedForApproval.js +0 -38
- package/dist/_internal/server/providers/index.d.ts +0 -11
- package/dist/_internal/server/providers/index.js +0 -11
- package/dist/_internal/server/providers/payment/razorpay-mock.d.ts +0 -52
- package/dist/_internal/server/providers/payment/razorpay-mock.js +0 -118
- package/dist/_internal/server/providers/resolve.d.ts +0 -36
- package/dist/_internal/server/providers/resolve.js +0 -31
- package/dist/_internal/server/providers/shipping/shiprocket-mock.d.ts +0 -29
- package/dist/_internal/server/providers/shipping/shiprocket-mock.js +0 -152
- package/dist/_internal/shared/types/__tests__/action-result.test.d.ts +0 -1
- package/dist/_internal/shared/types/__tests__/action-result.test.js +0 -65
- package/dist/errors/__tests__/error-mapping.test.d.ts +0 -1
- package/dist/errors/__tests__/error-mapping.test.js +0 -122
- package/dist/errors/__tests__/safe-read.test.d.ts +0 -1
- package/dist/errors/__tests__/safe-read.test.js +0 -39
- package/dist/features/addresses/repository/__tests__/addresses.repository.test.d.ts +0 -1
- package/dist/features/addresses/repository/__tests__/addresses.repository.test.js +0 -386
- package/dist/features/admin/components/AdminListingScaffold.d.ts +0 -41
- package/dist/features/admin/components/AdminListingScaffold.js +0 -68
- package/dist/features/admin/components/QuickActionsPanel.d.ts +0 -15
- package/dist/features/admin/components/QuickActionsPanel.js +0 -5
- package/dist/features/admin/repository/__tests__/notification.repository.test.d.ts +0 -1
- package/dist/features/admin/repository/__tests__/notification.repository.test.js +0 -356
- package/dist/features/admin/repository/__tests__/site-settings.repository.test.d.ts +0 -1
- package/dist/features/admin/repository/__tests__/site-settings.repository.test.js +0 -298
- package/dist/features/auctions/repository/__tests__/bid.repository.test.d.ts +0 -1
- package/dist/features/auctions/repository/__tests__/bid.repository.test.js +0 -290
- package/dist/features/auctions/repository/auctions.repository.d.ts +0 -12
- package/dist/features/auctions/repository/auctions.repository.js +0 -42
- package/dist/features/auth/repository/__tests__/session.repository.test.d.ts +0 -1
- package/dist/features/auth/repository/__tests__/session.repository.test.js +0 -310
- package/dist/features/auth/repository/__tests__/session.test.d.ts +0 -1
- package/dist/features/auth/repository/__tests__/session.test.js +0 -146
- package/dist/features/auth/repository/__tests__/sms-counter.repository.test.d.ts +0 -1
- package/dist/features/auth/repository/__tests__/sms-counter.repository.test.js +0 -171
- package/dist/features/auth/repository/__tests__/sms-counter.test.d.ts +0 -1
- package/dist/features/auth/repository/__tests__/sms-counter.test.js +0 -88
- package/dist/features/auth/repository/__tests__/token.repository.test.d.ts +0 -1
- package/dist/features/auth/repository/__tests__/token.repository.test.js +0 -260
- package/dist/features/auth/repository/__tests__/token.test.d.ts +0 -1
- package/dist/features/auth/repository/__tests__/token.test.js +0 -140
- package/dist/features/auth/repository/__tests__/user.repository.test.d.ts +0 -1
- package/dist/features/auth/repository/__tests__/user.repository.test.js +0 -352
- package/dist/features/auth/repository/__tests__/user.test.d.ts +0 -1
- package/dist/features/auth/repository/__tests__/user.test.js +0 -226
- package/dist/features/before-after/repository/before-after.repository.d.ts +0 -13
- package/dist/features/before-after/repository/before-after.repository.js +0 -36
- package/dist/features/before-after/server.d.ts +0 -6
- package/dist/features/before-after/server.js +0 -6
- package/dist/features/cart/repository/__tests__/cart.repository.test.d.ts +0 -1
- package/dist/features/cart/repository/__tests__/cart.repository.test.js +0 -371
- package/dist/features/categories/repository/__tests__/categories.repository.test.d.ts +0 -1
- package/dist/features/categories/repository/__tests__/categories.repository.test.js +0 -813
- package/dist/features/collections/repository/collections.repository.d.ts +0 -8
- package/dist/features/collections/repository/collections.repository.js +0 -16
- package/dist/features/collections/server.d.ts +0 -6
- package/dist/features/collections/server.js +0 -6
- package/dist/features/events/repository/__tests__/event.repository.test.d.ts +0 -1
- package/dist/features/events/repository/__tests__/event.repository.test.js +0 -299
- package/dist/features/faq/repository/__tests__/faqs.repository.test.d.ts +0 -1
- package/dist/features/faq/repository/__tests__/faqs.repository.test.js +0 -311
- package/dist/features/forms/Form.d.ts +0 -25
- package/dist/features/forms/Form.js +0 -37
- package/dist/features/history/repository/__tests__/user-history.repository.test.d.ts +0 -1
- package/dist/features/history/repository/__tests__/user-history.repository.test.js +0 -180
- package/dist/features/homepage/repository/__tests__/carousel.repository.test.d.ts +0 -1
- package/dist/features/homepage/repository/__tests__/carousel.repository.test.js +0 -182
- package/dist/features/homepage/repository/__tests__/homepage-sections.repository.test.d.ts +0 -1
- package/dist/features/homepage/repository/__tests__/homepage-sections.repository.test.js +0 -185
- package/dist/features/layout/ListingLayout.d.ts +0 -34
- package/dist/features/layout/ListingLayout.js +0 -103
- package/dist/features/messages/repository/__tests__/conversations.repository.test.d.ts +0 -1
- package/dist/features/messages/repository/__tests__/conversations.repository.test.js +0 -257
- package/dist/features/orders/repository/__tests__/orders.repository.test.d.ts +0 -1
- package/dist/features/orders/repository/__tests__/orders.repository.test.js +0 -211
- package/dist/features/payments/repository/__tests__/payout.repository.test.d.ts +0 -1
- package/dist/features/payments/repository/__tests__/payout.repository.test.js +0 -292
- package/dist/features/pre-orders/repository/preorders.repository.d.ts +0 -8
- package/dist/features/pre-orders/repository/preorders.repository.js +0 -25
- package/dist/features/products/repository/__tests__/product-features.repository.test.d.ts +0 -1
- package/dist/features/products/repository/__tests__/product-features.repository.test.js +0 -329
- package/dist/features/products/repository/__tests__/products.repository.test.d.ts +0 -1
- package/dist/features/products/repository/__tests__/products.repository.test.js +0 -607
- package/dist/features/promotions/repository/__tests__/claimed-coupons.repository.test.d.ts +0 -1
- package/dist/features/promotions/repository/__tests__/claimed-coupons.repository.test.js +0 -219
- package/dist/features/promotions/repository/__tests__/coupons.repository.test.d.ts +0 -1
- package/dist/features/promotions/repository/__tests__/coupons.repository.test.js +0 -480
- package/dist/features/promotions/repository/promotions.repository.d.ts +0 -14
- package/dist/features/promotions/repository/promotions.repository.js +0 -43
- package/dist/features/reviews/repository/__tests__/reviews.repository.test.d.ts +0 -1
- package/dist/features/reviews/repository/__tests__/reviews.repository.test.js +0 -327
- package/dist/features/scams/repository/__tests__/scammer.repository.test.d.ts +0 -1
- package/dist/features/scams/repository/__tests__/scammer.repository.test.js +0 -385
- package/dist/features/search/repository/__tests__/search.repository.test.d.ts +0 -1
- package/dist/features/search/repository/__tests__/search.repository.test.js +0 -369
- package/dist/features/seller/components/SellerStatCard.d.ts +0 -14
- package/dist/features/seller/components/SellerStatCard.js +0 -6
- package/dist/features/seller/components/seller-products-styles.d.ts +0 -7
- package/dist/features/seller/components/seller-products-styles.js +0 -14
- package/dist/features/seller/repository/__tests__/offer.repository.test.d.ts +0 -1
- package/dist/features/seller/repository/__tests__/offer.repository.test.js +0 -458
- package/dist/features/seller/repository/seller.repository.d.ts +0 -22
- package/dist/features/seller/repository/seller.repository.js +0 -72
- package/dist/features/site-settings/components/__tests__/ThemeManagerView.test.d.ts +0 -1
- package/dist/features/site-settings/components/__tests__/ThemeManagerView.test.js +0 -37
- package/dist/features/stores/repository/__tests__/store.repository.test.d.ts +0 -1
- package/dist/features/stores/repository/__tests__/store.repository.test.js +0 -261
- package/dist/features/stores/repository/stores.repository.d.ts +0 -11
- package/dist/features/stores/repository/stores.repository.js +0 -37
- package/dist/features/support/repository/__tests__/support.repository.test.d.ts +0 -1
- package/dist/features/support/repository/__tests__/support.repository.test.js +0 -312
- package/dist/features/wishlist/repository/__tests__/user-wishlist.repository.test.d.ts +0 -1
- package/dist/features/wishlist/repository/__tests__/user-wishlist.repository.test.js +0 -139
- package/dist/features/wishlist/repository/wishlist.repository.d.ts +0 -13
- package/dist/features/wishlist/repository/wishlist.repository.js +0 -31
- package/dist/providers/db-firebase/__tests__/filter-aliases.test.d.ts +0 -1
- package/dist/providers/db-firebase/__tests__/filter-aliases.test.js +0 -93
- package/dist/providers/shipping-shiprocket/index.d.ts +0 -297
- package/dist/providers/shipping-shiprocket/index.js +0 -194
- package/dist/providers/shipping-shiprocket/shiprocket-provider.d.ts +0 -45
- package/dist/providers/shipping-shiprocket/shiprocket-provider.js +0 -168
- package/dist/react/contexts/ThemeContext.d.ts +0 -13
- package/dist/react/contexts/ThemeContext.js +0 -64
- package/dist/schemas/webhooks/shiprocket.d.ts +0 -30
- package/dist/schemas/webhooks/shiprocket.js +0 -22
- package/dist/seed/actions/demo-seed-actions.d.ts +0 -42
- package/dist/seed/actions/demo-seed-actions.js +0 -36
- package/dist/seed/actions/index.d.ts +0 -1
- package/dist/seed/actions/index.js +0 -1
- package/dist/seed/sub-listings-seed-data.d.ts +0 -123
- package/dist/seed/sub-listings-seed-data.js +0 -447
- package/dist/seed/tester-checklist-seed-data.d.ts +0 -2
- package/dist/seed/tester-checklist-seed-data.js +0 -248
- package/dist/ui/components/DashboardStatsCard.d.ts +0 -15
- package/dist/ui/components/DashboardStatsCard.js +0 -27
- package/dist/ui/components/DashboardStatsCard.style.css +0 -68
- package/dist/ui/components/DynamicSelect.d.ts +0 -23
- package/dist/ui/components/DynamicSelect.js +0 -77
- package/dist/ui/components/DynamicSelect.style.css +0 -101
- package/dist/ui/components/InlineCreateSelect.d.ts +0 -48
- package/dist/ui/components/InlineCreateSelect.js +0 -75
- package/dist/ui/components/ListingViewShell.d.ts +0 -37
- package/dist/ui/components/ListingViewShell.js +0 -9
- package/dist/ui/components/PaginatedMultiSelect.d.ts +0 -28
- package/dist/ui/components/PaginatedMultiSelect.js +0 -141
- package/dist/ui/components/PaginatedMultiSelect.style.css +0 -272
- package/dist/ui/components/SectionTabs.d.ts +0 -19
- package/dist/ui/components/SectionTabs.js +0 -66
- package/dist/ui/components/SectionTabs.style.css +0 -164
- package/dist/ui/components/__tests__/BulkActionBar.test.d.ts +0 -1
- package/dist/ui/components/__tests__/BulkActionBar.test.js +0 -96
- package/dist/ui/components/__tests__/ListingToolbar.test.d.ts +0 -1
- package/dist/ui/components/__tests__/ListingToolbar.test.js +0 -125
- package/dist/ui/components/__tests__/new-primitives.test.d.ts +0 -1
- package/dist/ui/components/__tests__/new-primitives.test.js +0 -187
|
@@ -43,7 +43,7 @@ export const productsTesterSeedData = [
|
|
|
43
43
|
categoryNames: ["Test Gadgets", "Tester Sandbox"],
|
|
44
44
|
brandSlug: "brand-tester-sandbox",
|
|
45
45
|
brand: "TestBrand",
|
|
46
|
-
price:
|
|
46
|
+
price: 199,
|
|
47
47
|
currency: "INR",
|
|
48
48
|
stockQuantity: 10,
|
|
49
49
|
availableQuantity: 10,
|
|
@@ -69,7 +69,7 @@ export const productsTesterSeedData = [
|
|
|
69
69
|
categoryNames: ["Test Collectibles", "Tester Sandbox"],
|
|
70
70
|
brandSlug: "brand-tester-sandbox",
|
|
71
71
|
brand: "TestBrand",
|
|
72
|
-
price:
|
|
72
|
+
price: 149,
|
|
73
73
|
currency: "INR",
|
|
74
74
|
stockQuantity: 10,
|
|
75
75
|
availableQuantity: 10,
|
|
@@ -95,10 +95,10 @@ export const productsTesterSeedData = [
|
|
|
95
95
|
categoryNames: ["Test Collectibles", "Tester Sandbox"],
|
|
96
96
|
brandSlug: "brand-tester-sandbox",
|
|
97
97
|
brand: "TestBrand",
|
|
98
|
-
startingBid:
|
|
99
|
-
currentBid:
|
|
98
|
+
startingBid: 15000,
|
|
99
|
+
currentBid: 15000,
|
|
100
100
|
currency: "INR",
|
|
101
|
-
price:
|
|
101
|
+
price: 150,
|
|
102
102
|
stockQuantity: 1,
|
|
103
103
|
availableQuantity: 1,
|
|
104
104
|
auctionEndDate: new Date(Date.now() + 5 * 24 * 60 * 60 * 1000),
|
|
@@ -126,7 +126,7 @@ export const productsTesterSeedData = [
|
|
|
126
126
|
categoryNames: ["Test Gadgets", "Tester Sandbox"],
|
|
127
127
|
brandSlug: "brand-tester-sandbox",
|
|
128
128
|
brand: "TestBrand",
|
|
129
|
-
price:
|
|
129
|
+
price: 299,
|
|
130
130
|
currency: "INR",
|
|
131
131
|
condition: PRODUCT_FIELDS.CONDITION_VALUES.NEW,
|
|
132
132
|
status: PRODUCT_FIELDS.STATUS_VALUES.PUBLISHED,
|
|
@@ -88,8 +88,12 @@ export const testerChecklistSeedData = [
|
|
|
88
88
|
{ key: "add-to-cart", label: "Add to cart works from the product page" },
|
|
89
89
|
{ key: "checkout-flow", label: "Checkout flow completes without errors", href: "/cart" },
|
|
90
90
|
{ key: "shipping-address", label: "Selecting/adding a shipping address works" },
|
|
91
|
-
{ key: "
|
|
91
|
+
{ key: "checkout-otp-highvalue", label: "Carts ≥ the OTP threshold prompt for email verification before placing the order (except COD)" },
|
|
92
|
+
{ key: "payment-window-countdown", label: "Manual-payment orders show a 15-minute countdown timer on the payment page" },
|
|
93
|
+
{ key: "payment-proof-upload", label: "Uploading manual payment proof (screenshot, UTR, mark-as-paid + agreement checkboxes) works" },
|
|
94
|
+
{ key: "payment-window-expiry", label: "An order whose 15-minute payment window expires with no proof auto-cancels and the item returns to stock" },
|
|
92
95
|
{ key: "order-confirmation", label: "Order confirmation page/email shows correct order details" },
|
|
96
|
+
{ key: "payment-auto-approve-dispute", label: "An auto-approved order (2h, no admin review) shows the badge, and \"Raise a dispute\" submits successfully" },
|
|
93
97
|
],
|
|
94
98
|
},
|
|
95
99
|
{
|
|
@@ -164,7 +168,10 @@ export const testerChecklistSeedData = [
|
|
|
164
168
|
pageLabel: "Seller Order Management & Shipping/Tracking",
|
|
165
169
|
cases: [
|
|
166
170
|
{ key: "view-orders", label: "Seller order list shows accurate incoming orders", href: "/store/orders" },
|
|
167
|
-
{ key: "confirm-payment", label: "
|
|
171
|
+
{ key: "confirm-payment", label: "Approving a buyer's manual payment proof works" },
|
|
172
|
+
{ key: "request-reupload", label: "Requesting a proof re-upload (honest-mistake tier) clears the proof and extends the buyer's deadline" },
|
|
173
|
+
{ key: "reject-fraud", label: "Rejecting a proof as fraudulent cancels the order, restores stock, and bans the buyer's account for 7 days" },
|
|
174
|
+
{ key: "whatsapp-admin-share", label: "Uploading payment proof pings the admin WhatsApp numbers, and the buyer's \"Share for review\" link opens with a pre-filled message" },
|
|
168
175
|
{ key: "mark-shipped", label: "Marking an order shipped with tracking info works" },
|
|
169
176
|
{ key: "tracking-visible", label: "Buyer sees updated tracking status after seller ships" },
|
|
170
177
|
],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CheckoutMessageInput, StatusNotificationInput, WebhookVerifyInput, IncomingWebhookPayload, SendWhatsAppInput, StatusMessageInput, WaBusinessSendInput, CatalogSyncInput, CatalogSyncResult, PurchaseAnnouncementInput } from "../types";
|
|
1
|
+
import type { CheckoutMessageInput, StatusNotificationInput, WebhookVerifyInput, IncomingWebhookPayload, SendWhatsAppInput, StatusMessageInput, WaBusinessSendInput, CatalogSyncInput, CatalogSyncResult, PurchaseAnnouncementInput, PaymentProofReviewMessageInput } from "../types";
|
|
2
2
|
export declare function buildCheckoutMessageURL(input: CheckoutMessageInput): string;
|
|
3
3
|
export declare function buildStatusNotificationURL(input: StatusNotificationInput): string;
|
|
4
4
|
export declare function verifyWebhookSignature(input: WebhookVerifyInput): boolean;
|
|
@@ -35,6 +35,13 @@ export declare function buildPurchaseAnnouncementMessage(input: PurchaseAnnounce
|
|
|
35
35
|
* This is the only API-compliant way to target a WhatsApp group.
|
|
36
36
|
*/
|
|
37
37
|
export declare function buildGroupShareLink(message: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* Tier PP — message for the payment-proof fast-review WhatsApp push (sent
|
|
40
|
+
* to every `whatsappAdminNotifyNumbers` number when a buyer uploads proof)
|
|
41
|
+
* and for the buyer/seller "share for review" wa.me link (same message,
|
|
42
|
+
* routed through `buildGroupShareLink` instead of the Cloud API push).
|
|
43
|
+
*/
|
|
44
|
+
export declare function buildPaymentProofReviewMessage(input: PaymentProofReviewMessageInput): string;
|
|
38
45
|
/**
|
|
39
46
|
* Send an outbound WhatsApp message via Twilio REST API.
|
|
40
47
|
* Returns true on success, false on failure.
|
|
@@ -153,7 +153,7 @@ export async function syncProductsToCatalog(input) {
|
|
|
153
153
|
name: p.title,
|
|
154
154
|
description: p.description,
|
|
155
155
|
// Meta expects "<amount> <ISO_CURRENCY>" e.g. "450.00 INR"
|
|
156
|
-
price: `${
|
|
156
|
+
price: `${p.price.toFixed(2)} ${p.currency}`,
|
|
157
157
|
image_url: p.imageUrl,
|
|
158
158
|
availability: p.availability,
|
|
159
159
|
condition: p.condition,
|
|
@@ -194,7 +194,7 @@ export async function syncProductsToCatalog(input) {
|
|
|
194
194
|
export function buildPurchaseAnnouncementMessage(input) {
|
|
195
195
|
const { buyerName, firstItemName, additionalItemCount, totalAmount, orderId } = input;
|
|
196
196
|
const extra = additionalItemCount > 0 ? ` + ${additionalItemCount} more item${additionalItemCount > 1 ? "s" : ""}` : "";
|
|
197
|
-
const amount =
|
|
197
|
+
const amount = totalAmount.toLocaleString("en-IN");
|
|
198
198
|
return `🛍️ New order! ${buyerName} purchased ${firstItemName}${extra} for ₹${amount}. Order #${orderId}`;
|
|
199
199
|
}
|
|
200
200
|
/**
|
|
@@ -205,6 +205,17 @@ export function buildPurchaseAnnouncementMessage(input) {
|
|
|
205
205
|
export function buildGroupShareLink(message) {
|
|
206
206
|
return `https://wa.me/?text=${encodeURIComponent(message)}`;
|
|
207
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Tier PP — message for the payment-proof fast-review WhatsApp push (sent
|
|
210
|
+
* to every `whatsappAdminNotifyNumbers` number when a buyer uploads proof)
|
|
211
|
+
* and for the buyer/seller "share for review" wa.me link (same message,
|
|
212
|
+
* routed through `buildGroupShareLink` instead of the Cloud API push).
|
|
213
|
+
*/
|
|
214
|
+
export function buildPaymentProofReviewMessage(input) {
|
|
215
|
+
const { orderId, buyerName, productTitle, totalAmount, reviewUrl } = input;
|
|
216
|
+
const amount = totalAmount.toLocaleString("en-IN");
|
|
217
|
+
return `💳 Payment proof submitted! ${buyerName} uploaded proof for "${productTitle}" (₹${amount}). Order #${orderId}. Please review within 2 hours or it auto-confirms: ${reviewUrl}`;
|
|
218
|
+
}
|
|
208
219
|
/**
|
|
209
220
|
* Send an outbound WhatsApp message via Twilio REST API.
|
|
210
221
|
* Returns true on success, false on failure.
|
|
@@ -56,7 +56,7 @@ export interface CatalogSyncProduct {
|
|
|
56
56
|
id: string;
|
|
57
57
|
title: string;
|
|
58
58
|
description: string;
|
|
59
|
-
/** Price in
|
|
59
|
+
/** Price in decimal rupees */
|
|
60
60
|
price: number;
|
|
61
61
|
currency: string;
|
|
62
62
|
/** URL of the first product image */
|
|
@@ -89,6 +89,14 @@ export interface PurchaseAnnouncementInput {
|
|
|
89
89
|
totalAmount: number;
|
|
90
90
|
orderId: string;
|
|
91
91
|
}
|
|
92
|
+
/** Tier PP — input for building the payment-proof fast-review WhatsApp message (admin push + buyer/seller share link). */
|
|
93
|
+
export interface PaymentProofReviewMessageInput {
|
|
94
|
+
orderId: string;
|
|
95
|
+
buyerName: string;
|
|
96
|
+
productTitle: string;
|
|
97
|
+
totalAmount: number;
|
|
98
|
+
reviewUrl: string;
|
|
99
|
+
}
|
|
92
100
|
/** Known order status values — extend as needed per project. */
|
|
93
101
|
export type OrderStatusKey = "pending_payment" | "payment_confirmed" | "processing" | "shipped" | "out_for_delivery" | "delivered" | "cancelled" | "refund_initiated" | string;
|
|
94
102
|
export interface StatusMessageInput {
|
package/dist/index.d.ts
CHANGED
|
@@ -479,6 +479,7 @@ export { maskSecret } from "./security/index";
|
|
|
479
479
|
export { rateLimit } from "./security/index";
|
|
480
480
|
export { rateLimitByIdentifier } from "./security/index";
|
|
481
481
|
export { redactPii, safeDisplayName, safeDisplayEmail } from "./security/index";
|
|
482
|
+
export { isPiiEncrypted, maskName, maskEmail, maskPublicReview, maskPublicBid, maskPublicEventEntry, maskOfferForSeller, ENC_PREFIX, HMAC_PREFIX, } from "./security/index";
|
|
482
483
|
export { requireActiveAccount } from "./security/index";
|
|
483
484
|
export { requireAuth } from "./security/index";
|
|
484
485
|
export { requireEmailVerified } from "./security/index";
|
|
@@ -1664,6 +1665,7 @@ export { failedCheckoutRepository } from "./features/checkout/server";
|
|
|
1664
1665
|
export { grantCheckoutConsentViaSms } from "./features/checkout/server";
|
|
1665
1666
|
export { sendCheckoutConsentOtp } from "./features/checkout/server";
|
|
1666
1667
|
export { verifyCheckoutConsentOtp } from "./features/checkout/server";
|
|
1668
|
+
export { sendCheckoutValueOtp, verifyCheckoutValueOtp, isCheckoutValueOtpVerified, } from "./features/checkout/server";
|
|
1667
1669
|
export type { FailedCheckoutMeta } from "./features/checkout/server";
|
|
1668
1670
|
export type { FailedPaymentMeta } from "./features/checkout/server";
|
|
1669
1671
|
export { FAILED_CHECKOUTS_COLLECTION } from "./features/checkout/schemas/index";
|
|
@@ -2350,12 +2352,6 @@ export { MarketplacePreorderCard } from "./features/pre-orders/index";
|
|
|
2350
2352
|
export { PreorderBadge } from "./features/pre-orders/index";
|
|
2351
2353
|
export { PreOrdersIndexListing } from "./features/pre-orders/index";
|
|
2352
2354
|
export type { PreOrdersIndexListingProps } from "./features/pre-orders/index";
|
|
2353
|
-
export { ClassifiedIndexListing } from "./features/classified/components/index";
|
|
2354
|
-
export type { ClassifiedIndexListingProps } from "./features/classified/components/index";
|
|
2355
|
-
export { DigitalCodesIndexListing } from "./features/digital-codes/components/index";
|
|
2356
|
-
export type { DigitalCodesIndexListingProps } from "./features/digital-codes/components/index";
|
|
2357
|
-
export { LiveItemsIndexListing } from "./features/live/components/index";
|
|
2358
|
-
export type { LiveItemsIndexListingProps } from "./features/live/components/index";
|
|
2359
2355
|
export { buildPreorderColumns } from "./features/pre-orders/index";
|
|
2360
2356
|
export { getPreorderStatus } from "./features/pre-orders/index";
|
|
2361
2357
|
export { preorderAdminColumns } from "./features/pre-orders/index";
|
|
@@ -2981,6 +2977,7 @@ export type { WebhookVerifyInput } from "./features/whatsapp-bot/index";
|
|
|
2981
2977
|
export { buildCheckoutMessageURL } from "./features/whatsapp-bot/server";
|
|
2982
2978
|
export { buildStatusMessage } from "./features/whatsapp-bot/server";
|
|
2983
2979
|
export { buildStatusNotificationURL } from "./features/whatsapp-bot/server";
|
|
2980
|
+
export { buildPaymentProofReviewMessage } from "./features/whatsapp-bot/server";
|
|
2984
2981
|
export { isAdminNumber } from "./features/whatsapp-bot/server";
|
|
2985
2982
|
export { parseIncomingWebhookPayload } from "./features/whatsapp-bot/server";
|
|
2986
2983
|
export { sendWhatsAppMessage } from "./features/whatsapp-bot/server";
|
|
@@ -3093,7 +3090,7 @@ export { SUCCESS_MESSAGES } from "./values/index";
|
|
|
3093
3090
|
export { splitCartIntoOrderGroups } from "./features/orders/index";
|
|
3094
3091
|
export { groupOrderItemsByBundle, type BundleOrderGroup, type OrderItemForBundleGrouping, } from "./features/orders/index";
|
|
3095
3092
|
export { buildSieveFilters } from "./utils/filter.helper";
|
|
3096
|
-
export { formatFileSize
|
|
3093
|
+
export { formatFileSize } from "./utils/number.formatter";
|
|
3097
3094
|
export { formatMonthYear } from "./utils/date.formatter";
|
|
3098
3095
|
export { generateMediaFilename } from "./utils/id-generators";
|
|
3099
3096
|
export { deriveContextTypeFromFilename } from "./utils/id-generators";
|
package/dist/index.js
CHANGED
|
@@ -885,6 +885,8 @@ export { rateLimitByIdentifier } from "./security/index";
|
|
|
885
885
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
886
886
|
// redactPii - Shared export for redact pii.
|
|
887
887
|
export { redactPii, safeDisplayName, safeDisplayEmail } from "./security/index";
|
|
888
|
+
// [CLIENT-SSR]-Runs in both SSR and browser â€" pure display-masking helpers, no crypto dependency.
|
|
889
|
+
export { isPiiEncrypted, maskName, maskEmail, maskPublicReview, maskPublicBid, maskPublicEventEntry, maskOfferForSeller, ENC_PREFIX, HMAC_PREFIX, } from "./security/index";
|
|
888
890
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
889
891
|
// requireActiveAccount - Shared export for require active account.
|
|
890
892
|
export { requireActiveAccount } from "./security/index";
|
|
@@ -3159,6 +3161,8 @@ export { sendCheckoutConsentOtp } from "./features/checkout/server";
|
|
|
3159
3161
|
// [SERVER-ONLY]-Server-only â€" uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
3160
3162
|
// verifyCheckoutConsentOtp - Shared export for verify checkout consent otp.
|
|
3161
3163
|
export { verifyCheckoutConsentOtp } from "./features/checkout/server";
|
|
3164
|
+
// [SERVER-ONLY] Tier PP — high-value checkout OTP gate (distinct from the shipping-consent OTP above).
|
|
3165
|
+
export { sendCheckoutValueOtp, verifyCheckoutValueOtp, isCheckoutValueOtpVerified, } from "./features/checkout/server";
|
|
3162
3166
|
// ./features/checkout/schemas/index
|
|
3163
3167
|
// [SCHEMA]-Schema / data-shape constant â€" Zod validator, default-value object, or Firestore collection/field name constant.
|
|
3164
3168
|
// FAILED_CHECKOUTS_COLLECTION - Constant used across modules.
|
|
@@ -4302,9 +4306,6 @@ export { PreorderBadge } from "./features/pre-orders/index";
|
|
|
4302
4306
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
4303
4307
|
// [SERVER-RSC]-Self-fetching index/detail page views for pre-orders.
|
|
4304
4308
|
export { PreOrdersIndexListing } from "./features/pre-orders/index";
|
|
4305
|
-
export { ClassifiedIndexListing } from "./features/classified/components/index";
|
|
4306
|
-
export { DigitalCodesIndexListing } from "./features/digital-codes/components/index";
|
|
4307
|
-
export { LiveItemsIndexListing } from "./features/live/components/index";
|
|
4308
4309
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
4309
4310
|
// buildPreorderColumns - Helper for build preorder columns.
|
|
4310
4311
|
export { buildPreorderColumns } from "./features/pre-orders/index";
|
|
@@ -5352,6 +5353,9 @@ export { buildStatusMessage } from "./features/whatsapp-bot/server";
|
|
|
5352
5353
|
// buildStatusNotificationURL - Helper for build status notification url.
|
|
5353
5354
|
export { buildStatusNotificationURL } from "./features/whatsapp-bot/server";
|
|
5354
5355
|
// [SERVER-ONLY]-Server-only â€" uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
5356
|
+
// buildPaymentProofReviewMessage - Helper for build payment proof review message (Tier PP).
|
|
5357
|
+
export { buildPaymentProofReviewMessage } from "./features/whatsapp-bot/server";
|
|
5358
|
+
// [SERVER-ONLY]-Server-only â€" uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
5355
5359
|
// isAdminNumber - Shared export for is admin number.
|
|
5356
5360
|
export { isAdminNumber } from "./features/whatsapp-bot/server";
|
|
5357
5361
|
// [SERVER-ONLY]-Server-only â€" uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
@@ -5513,7 +5517,7 @@ export { splitCartIntoOrderGroups } from "./features/orders/index";
|
|
|
5513
5517
|
export { groupOrderItemsByBundle, } from "./features/orders/index";
|
|
5514
5518
|
// -- Missing utils
|
|
5515
5519
|
export { buildSieveFilters } from "./utils/filter.helper";
|
|
5516
|
-
export { formatFileSize
|
|
5520
|
+
export { formatFileSize } from "./utils/number.formatter";
|
|
5517
5521
|
export { formatMonthYear } from "./utils/date.formatter";
|
|
5518
5522
|
export { generateMediaFilename } from "./utils/id-generators"; // generateProductImageFilename already exported from "./utils/id-generators";
|
|
5519
5523
|
export { deriveContextTypeFromFilename } from "./utils/id-generators";
|
|
@@ -5544,7 +5548,7 @@ export { ALL_TAB, EMPTY_TAB, ADMIN_PRODUCT_STATUS_TABS, ADMIN_PRODUCT_LISTING_TY
|
|
|
5544
5548
|
export { GROUPED_LISTINGS_COLLECTION } from "./features/grouped/schemas/firestore";
|
|
5545
5549
|
// SB-UNI-D + V â€" BundleDocument + bundlesRepository + features/bundles/
|
|
5546
5550
|
// folder all deleted. Bundles are now `categoryType:"bundle"` rows on the
|
|
5547
|
-
// categories collection with `
|
|
5551
|
+
// categories collection with `bundlePrice` / `bundleQueryRule` /
|
|
5548
5552
|
// `bundleStockStatus` / `bundleQueryResolvedAt` / `bundleProductIds[]`.
|
|
5549
5553
|
// Replacement component: CategoryBundlesListing in features/categories/components.
|
|
5550
5554
|
export { CategoryBundlesListing } from "./features/categories/components/CategoryBundlesListing";
|
|
@@ -101,6 +101,7 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
101
101
|
readonly DIGITAL_CODE_DETAIL: (slug: string) => string;
|
|
102
102
|
readonly LIVE: "/live";
|
|
103
103
|
readonly LIVE_DETAIL: (slug: string) => string;
|
|
104
|
+
readonly ART: "/art";
|
|
104
105
|
};
|
|
105
106
|
readonly ERRORS: {
|
|
106
107
|
readonly UNAUTHORIZED: "/unauthorized";
|
|
@@ -461,6 +462,7 @@ export declare const ROUTES: {
|
|
|
461
462
|
readonly DIGITAL_CODE_DETAIL: (slug: string) => string;
|
|
462
463
|
readonly LIVE: "/live";
|
|
463
464
|
readonly LIVE_DETAIL: (slug: string) => string;
|
|
465
|
+
readonly ART: "/art";
|
|
464
466
|
};
|
|
465
467
|
readonly ERRORS: {
|
|
466
468
|
readonly UNAUTHORIZED: "/unauthorized";
|
|
@@ -90,6 +90,12 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
90
90
|
DIGITAL_CODE_DETAIL: (slug) => `/digital-codes/${slug}`,
|
|
91
91
|
LIVE: "/live",
|
|
92
92
|
LIVE_DETAIL: (slug) => `/live/${slug}`,
|
|
93
|
+
// Combined art + stickers browse page (Workstream 1c) — one page for both
|
|
94
|
+
// listing types. No dedicated detail route: art/stickers use the standard
|
|
95
|
+
// checkout flow (not classified's contact-seller/meetup flow), so their
|
|
96
|
+
// detail page stays PRODUCT_DETAIL (`/products/{slug}`), already wired in
|
|
97
|
+
// `_internal/shared/listing-types/{art,stickers}/config.ts`.
|
|
98
|
+
ART: "/art",
|
|
93
99
|
},
|
|
94
100
|
ERRORS: {
|
|
95
101
|
UNAUTHORIZED: "/unauthorized",
|
|
@@ -27,8 +27,8 @@ export declare const auditTimestampsShape: {
|
|
|
27
27
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
28
28
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
29
29
|
};
|
|
30
|
-
/** Money amount in
|
|
31
|
-
export declare const
|
|
30
|
+
/** Money amount in decimal rupees — non-negative, at most 2 decimal places. */
|
|
31
|
+
export declare const rupeesSchema: z.ZodEffects<z.ZodNumber, number, number>;
|
|
32
32
|
/** ISO currency code (we use "INR" everywhere). */
|
|
33
33
|
export declare const currencyCodeSchema: z.ZodString;
|
|
34
34
|
/** Slug — kebab-case identifier with prefix. */
|
|
@@ -21,8 +21,8 @@ export const auditTimestampsShape = {
|
|
|
21
21
|
createdAt: firestoreDateSchema,
|
|
22
22
|
updatedAt: firestoreDateSchema,
|
|
23
23
|
};
|
|
24
|
-
/** Money amount in
|
|
25
|
-
export const
|
|
24
|
+
/** Money amount in decimal rupees — non-negative, at most 2 decimal places. */
|
|
25
|
+
export const rupeesSchema = z.number().nonnegative().refine((n) => Number.isInteger(Math.round(n * 100)), { message: "Amount must have at most 2 decimal places" });
|
|
26
26
|
/** ISO currency code (we use "INR" everywhere). */
|
|
27
27
|
export const currencyCodeSchema = z.string().length(3);
|
|
28
28
|
/** Slug — kebab-case identifier with prefix. */
|