@mohasinac/appkit 2.7.26 → 2.7.30
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/classified/ClassifiedDetailView.js +2 -2
- package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +2 -2
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +1 -1
- package/dist/_internal/server/features/checkout/actions.js +42 -35
- package/dist/_internal/server/features/classified/adapters.d.ts +21 -0
- package/dist/_internal/server/features/classified/adapters.js +24 -0
- package/dist/_internal/server/features/classified/index.d.ts +3 -0
- package/dist/_internal/server/features/classified/index.js +3 -0
- package/dist/_internal/server/features/classified/metadata.d.ts +8 -0
- package/dist/_internal/server/features/classified/metadata.js +43 -0
- package/dist/_internal/server/features/classified/og.d.ts +30 -0
- package/dist/_internal/server/features/classified/og.js +76 -0
- package/dist/_internal/server/features/digital-code/adapters.d.ts +21 -0
- package/dist/_internal/server/features/digital-code/adapters.js +29 -0
- package/dist/_internal/server/features/digital-code/index.d.ts +3 -0
- package/dist/_internal/server/features/digital-code/index.js +3 -0
- package/dist/_internal/server/features/digital-code/metadata.d.ts +8 -0
- package/dist/_internal/server/features/digital-code/metadata.js +36 -0
- package/dist/_internal/server/features/digital-code/og.d.ts +27 -0
- package/dist/_internal/server/features/digital-code/og.js +77 -0
- package/dist/_internal/server/features/live/adapters.d.ts +21 -0
- package/dist/_internal/server/features/live/adapters.js +34 -0
- package/dist/_internal/server/features/live/index.d.ts +3 -0
- package/dist/_internal/server/features/live/index.js +3 -0
- package/dist/_internal/server/features/live/metadata.d.ts +8 -0
- package/dist/_internal/server/features/live/metadata.js +39 -0
- package/dist/_internal/server/features/live/og.d.ts +27 -0
- package/dist/_internal/server/features/live/og.js +72 -0
- package/dist/_internal/server/features/promotions/actions.js +4 -3
- package/dist/_internal/server/jobs/core/onOrderCreate.js +19 -16
- package/dist/_internal/server/jobs/core/onOrderStatusChange.js +25 -22
- package/dist/_internal/server/jobs/core/onProductWrite.js +48 -58
- package/dist/_internal/shared/actions/action-registry.js +310 -8
- package/dist/_internal/shared/features/blog/schema.d.ts +4 -4
- package/dist/_internal/shared/features/brands/schema.d.ts +5 -5
- package/dist/_internal/shared/features/cart/schema.d.ts +18 -18
- package/dist/_internal/shared/features/categories/bundle-copy.d.ts +1 -1
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +38 -38
- package/dist/_internal/shared/features/events/schema.d.ts +8 -8
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/features/products/schema.d.ts +42 -42
- package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
- package/dist/_internal/shared/features/reviews/schema.d.ts +1 -1
- package/dist/_internal/shared/media/limits.js +4 -3
- package/dist/client.d.ts +2 -0
- package/dist/client.js +1 -0
- package/dist/configs/next.js +4 -0
- package/dist/constants/table-keys.d.ts +6 -0
- package/dist/constants/table-keys.js +9 -0
- package/dist/core/hooks/useSyncManager.js +9 -8
- package/dist/features/about/components/FeesView.js +10 -7
- package/dist/features/about/components/HelpPageView.js +10 -1
- package/dist/features/about/components/HowAuctionsWorkView.js +10 -1
- package/dist/features/about/components/HowCheckoutWorksView.js +10 -1
- package/dist/features/about/components/HowOffersWorkView.js +10 -1
- package/dist/features/about/components/HowOrdersWorkView.js +10 -1
- package/dist/features/about/components/HowPayoutsWorkView.js +10 -1
- package/dist/features/about/components/HowPreOrdersWorkView.js +10 -1
- package/dist/features/about/components/HowReviewsWorkView.js +10 -1
- package/dist/features/about/components/PublicProfileView.js +44 -14
- package/dist/features/about/components/SecurityPrivacyView.js +7 -1
- package/dist/features/account/components/AddressesIndexListing.js +2 -2
- package/dist/features/account/components/NotificationBell.js +27 -16
- package/dist/features/account/components/NotificationPreferencesPanel.d.ts +9 -0
- package/dist/features/account/components/NotificationPreferencesPanel.js +91 -0
- package/dist/features/account/components/UserSidebar.js +4 -4
- package/dist/features/account/components/UserSupportView.js +16 -6
- package/dist/features/account/components/index.d.ts +2 -0
- package/dist/features/account/components/index.js +1 -0
- package/dist/features/account/schemas/index.d.ts +4 -4
- package/dist/features/account/types/index.d.ts +34 -0
- package/dist/features/admin/actions/admin-actions.js +4 -3
- package/dist/features/admin/actions/notification-actions.d.ts +24 -22
- package/dist/features/admin/actions/notification-actions.js +122 -22
- package/dist/features/admin/components/AdminAdEditorView.js +29 -15
- package/dist/features/admin/components/AdminAdsView.js +22 -28
- package/dist/features/admin/components/AdminAllEventEntriesView.js +6 -1
- package/dist/features/admin/components/AdminBidsView.js +10 -3
- package/dist/features/admin/components/AdminBlogEditorView.js +2 -2
- package/dist/features/admin/components/AdminBlogView.js +8 -3
- package/dist/features/admin/components/AdminBrandsView.js +7 -2
- package/dist/features/admin/components/AdminBundleEditorView.js +5 -2
- package/dist/features/admin/components/AdminCarouselEditorView.js +6 -3
- package/dist/features/admin/components/AdminCarouselView.js +13 -7
- package/dist/features/admin/components/AdminCategoriesView.js +8 -3
- package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
- package/dist/features/admin/components/AdminContactView.js +6 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +8 -2
- package/dist/features/admin/components/AdminCouponsView.js +6 -1
- package/dist/features/admin/components/AdminEmployeeEditorView.js +12 -9
- package/dist/features/admin/components/AdminFaqEditorView.js +2 -2
- package/dist/features/admin/components/AdminFaqsView.js +7 -2
- package/dist/features/admin/components/AdminFeaturesView.js +4 -3
- package/dist/features/admin/components/AdminMediaView.js +9 -8
- package/dist/features/admin/components/AdminNavigationView.js +10 -17
- package/dist/features/admin/components/AdminNewsletterView.js +6 -1
- package/dist/features/admin/components/AdminNotificationsView.js +11 -3
- package/dist/features/admin/components/AdminOrdersView.js +6 -1
- package/dist/features/admin/components/AdminPayoutsView.js +10 -3
- package/dist/features/admin/components/AdminPrizeDrawsView.js +10 -3
- package/dist/features/admin/components/AdminProductsView.js +18 -12
- package/dist/features/admin/components/AdminReviewsView.js +33 -24
- package/dist/features/admin/components/AdminScammerEditorView.js +3 -2
- package/dist/features/admin/components/AdminScammersView.js +28 -26
- package/dist/features/admin/components/AdminSectionsView.js +112 -99
- package/dist/features/admin/components/AdminSessionsView.js +10 -3
- package/dist/features/admin/components/AdminSidebar.js +4 -4
- package/dist/features/admin/components/AdminSiteSettingsView.js +45 -4
- package/dist/features/admin/components/AdminStoresView.js +6 -1
- package/dist/features/admin/components/AdminSublistingCategoriesView.js +0 -1
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +1 -1
- package/dist/features/admin/components/AdminSupportTicketsView.js +32 -34
- package/dist/features/admin/components/AdminTeamView.js +6 -1
- package/dist/features/admin/components/AdminUserEditorView.js +8 -15
- package/dist/features/admin/components/AdminUsersView.js +6 -1
- package/dist/features/admin/components/AdminViewCards.js +4 -3
- package/dist/features/admin/components/DashboardStats.js +2 -2
- package/dist/features/admin/components/DataTable.js +2 -2
- package/dist/features/admin/components/sections/adminSectionsTypes.js +4 -3
- package/dist/features/admin/repository/chat.repository.js +8 -8
- package/dist/features/admin/repository/site-settings.repository.d.ts +1 -0
- package/dist/features/admin/repository/site-settings.repository.js +11 -9
- package/dist/features/admin/schemas/firestore.d.ts +38 -0
- package/dist/features/admin/schemas/firestore.js +15 -0
- package/dist/features/auctions/components/AuctionDetailPageView.js +13 -19
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +18 -9
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +3 -2
- package/dist/features/auctions/components/index.d.ts +0 -1
- package/dist/features/auctions/components/index.js +0 -1
- package/dist/features/auctions/schemas/index.d.ts +14 -14
- package/dist/features/auth/actions/realtime-token-actions.js +19 -4
- package/dist/features/auth/components/RegisterForm.js +8 -4
- package/dist/features/auth/consent-otp.d.ts +2 -0
- package/dist/features/auth/consent-otp.js +8 -0
- package/dist/features/auth/schemas/firestore.d.ts +2 -0
- package/dist/features/auth/schemas/firestore.js +18 -25
- package/dist/features/auth/schemas/index.d.ts +2 -2
- package/dist/features/before-after/api/[id]/route.js +8 -6
- package/dist/features/before-after/schemas/index.d.ts +2 -2
- package/dist/features/blog/actions/blog-actions.d.ts +3 -3
- package/dist/features/blog/components/BlogIndexListing.js +21 -2
- package/dist/features/blog/components/BlogPostForm.js +11 -5
- package/dist/features/blog/components/BlogPostView.js +10 -2
- package/dist/features/blog/schemas/index.d.ts +18 -18
- package/dist/features/cart/components/CartDrawer.js +3 -2
- package/dist/features/cart/repository/cart.repository.js +4 -3
- package/dist/features/cart/utils/pending-ops.d.ts +1 -1
- package/dist/features/categories/api/[id]/route.js +4 -3
- package/dist/features/categories/api/route.js +4 -3
- package/dist/features/categories/components/BrandDetailPageView.js +2 -2
- package/dist/features/categories/components/BrandDetailTabs.js +2 -2
- package/dist/features/categories/components/BundleCollage.d.ts +8 -0
- package/dist/features/categories/components/BundleCollage.js +50 -0
- package/dist/features/categories/components/BundleDetailView.js +2 -10
- package/dist/features/categories/components/BundleItemsPicker.js +20 -13
- package/dist/features/categories/components/CategoriesIndexListing.js +28 -9
- package/dist/features/categories/components/CategoryDetailPageView.js +2 -2
- package/dist/features/categories/components/CategoryDetailTabs.js +2 -2
- package/dist/features/categories/components/CategoryProductsListing.js +52 -13
- package/dist/features/categories/components/index.d.ts +2 -0
- package/dist/features/categories/components/index.js +1 -0
- package/dist/features/categories/schemas/index.d.ts +6 -6
- package/dist/features/checkout/actions/checkout-actions.js +4 -3
- package/dist/features/checkout/hooks/usePaymentCheckout.js +31 -22
- package/dist/features/classified/components/ClassifiedFilters.d.ts +8 -0
- package/dist/features/classified/components/ClassifiedFilters.js +19 -0
- package/dist/features/classified/components/ClassifiedIndexListing.d.ts +4 -0
- package/dist/features/classified/components/ClassifiedIndexListing.js +110 -0
- package/dist/features/classified/components/ClassifiedListView.d.ts +6 -0
- package/dist/features/classified/components/ClassifiedListView.js +43 -0
- package/dist/features/classified/components/index.d.ts +6 -0
- package/dist/features/classified/components/index.js +3 -0
- package/dist/features/collections/api/[slug]/route.js +16 -12
- package/dist/features/collections/schemas/index.d.ts +5 -5
- package/dist/features/consultation/api/[id]/route.js +12 -9
- package/dist/features/consultation/components/ConsultationForm.js +3 -2
- package/dist/features/consultation/schemas/index.d.ts +6 -6
- package/dist/features/contact/email.js +77 -116
- package/dist/features/copilot/components/AdminCopilotView.js +12 -2
- package/dist/features/corporate/api/[id]/route.js +12 -9
- package/dist/features/corporate/components/CorporateInquiryForm.js +2 -1
- package/dist/features/digital-codes/components/DigitalCodeFilters.d.ts +8 -0
- package/dist/features/digital-codes/components/DigitalCodeFilters.js +16 -0
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.d.ts +4 -0
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.js +107 -0
- package/dist/features/digital-codes/components/DigitalCodesListView.d.ts +6 -0
- package/dist/features/digital-codes/components/DigitalCodesListView.js +37 -0
- package/dist/features/digital-codes/components/index.d.ts +6 -0
- package/dist/features/digital-codes/components/index.js +3 -0
- package/dist/features/events/actions/event-actions.js +4 -3
- package/dist/features/events/components/AdminEventEditorView.js +3 -2
- package/dist/features/events/components/AdminEventsView.js +4 -2
- package/dist/features/events/components/EventPollWidget.js +5 -5
- package/dist/features/events/components/EventsIndexListing.js +2 -2
- package/dist/features/events/schemas/index.d.ts +20 -20
- package/dist/features/faq/actions/faq-actions.d.ts +8 -8
- package/dist/features/faq/components/ContactCTA.js +3 -1
- package/dist/features/faq/components/FAQAccordion.js +1 -1
- package/dist/features/faq/schemas/index.d.ts +4 -4
- package/dist/features/filters/AsyncFacetSection.d.ts +18 -0
- package/dist/features/filters/AsyncFacetSection.js +65 -0
- package/dist/features/forms/Checkbox.js +2 -2
- package/dist/features/forms/Input.js +2 -2
- package/dist/features/forms/Radio.js +5 -5
- package/dist/features/forms/Select.js +2 -2
- package/dist/features/forms/Slider.js +2 -2
- package/dist/features/forms/Textarea.js +2 -2
- package/dist/features/homepage/api/[id]/route.js +4 -3
- package/dist/features/homepage/api/sections/[id]/route.js +12 -9
- package/dist/features/homepage/components/AdSlot.js +2 -1
- package/dist/features/homepage/components/AdvertisementBanner.js +5 -3
- package/dist/features/homepage/components/BrandsSection.js +2 -2
- package/dist/features/homepage/components/CTABannerSection.js +2 -2
- package/dist/features/homepage/components/CharacterHotspot.d.ts +2 -2
- package/dist/features/homepage/components/CharacterHotspot.js +119 -157
- package/dist/features/homepage/components/CharacterHotspotForm.js +25 -20
- package/dist/features/homepage/components/CustomCardsSection.js +8 -6
- package/dist/features/homepage/components/FeaturedProductsSection.js +2 -2
- package/dist/features/homepage/components/GoogleReviewsSection.js +3 -3
- package/dist/features/homepage/components/HeroBanner.js +5 -4
- package/dist/features/homepage/components/HeroCarousel.js +13 -26
- package/dist/features/homepage/components/HowItWorksSection.js +4 -2
- package/dist/features/homepage/components/SocialFeedSection.js +2 -2
- package/dist/features/homepage/components/SocialPostCard.js +3 -2
- package/dist/features/homepage/lib/social-feed-fetcher.js +6 -3
- package/dist/features/layout/AppLayoutShell.d.ts +8 -2
- package/dist/features/layout/AppLayoutShell.js +55 -84
- package/dist/features/layout/BottomActions.js +43 -48
- package/dist/features/layout/NavbarWithSettings.d.ts +6 -0
- package/dist/features/layout/NavbarWithSettings.js +11 -0
- package/dist/features/live/components/LiveItemFilters.d.ts +8 -0
- package/dist/features/live/components/LiveItemFilters.js +23 -0
- package/dist/features/live/components/LiveItemsIndexListing.d.ts +4 -0
- package/dist/features/live/components/LiveItemsIndexListing.js +108 -0
- package/dist/features/live/components/LiveItemsListView.d.ts +6 -0
- package/dist/features/live/components/LiveItemsListView.js +43 -0
- package/dist/features/live/components/index.d.ts +6 -0
- package/dist/features/live/components/index.js +3 -0
- package/dist/features/media/MediaLightbox.js +8 -14
- package/dist/features/media/types/index.d.ts +2 -2
- package/dist/features/media/upload/CameraCapture.js +2 -2
- package/dist/features/media/upload/ImageUpload.js +4 -2
- package/dist/features/media/upload/MediaUploadField.js +24 -8
- package/dist/features/media/upload/MediaUploadList.js +1 -1
- package/dist/features/orders/actions/order-actions.js +4 -3
- package/dist/features/orders/components/MarketplaceOrderCard.js +2 -1
- package/dist/features/orders/components/OrderFilters.js +12 -9
- package/dist/features/orders/schemas/index.d.ts +6 -6
- package/dist/features/pre-orders/api/[id]/route.js +12 -9
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +5 -4
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +27 -20
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +17 -52
- package/dist/features/pre-orders/components/PreorderCard.d.ts +0 -9
- package/dist/features/pre-orders/components/PreorderCard.js +2 -13
- package/dist/features/pre-orders/components/index.d.ts +1 -1
- package/dist/features/pre-orders/components/index.js +1 -1
- package/dist/features/pre-orders/schemas/index.d.ts +10 -10
- package/dist/features/products/api/[id]/route.js +9 -7
- package/dist/features/products/api/route.js +1 -1
- package/dist/features/products/columns/productTableColumns.js +2 -2
- package/dist/features/products/components/AuctionsIndexListing.js +15 -51
- package/dist/features/products/components/BidHistory.js +2 -2
- package/dist/features/products/components/CompareOverlay.js +3 -2
- package/dist/features/products/components/MakeOfferButton.js +20 -14
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +2 -1
- package/dist/features/products/components/PrizeDrawCollage.d.ts +1 -15
- package/dist/features/products/components/PrizeDrawCollage.js +54 -14
- package/dist/features/products/components/PrizeDrawDetailPageView.js +2 -1
- package/dist/features/products/components/PrizeDrawEntryActions.js +2 -1
- package/dist/features/products/components/PrizeDrawItemsEditor.js +9 -7
- package/dist/features/products/components/PrizeDrawsIndexListing.js +18 -51
- package/dist/features/products/components/PrizeRevealModal.js +24 -14
- package/dist/features/products/components/ProductDetailPageView.js +2 -1
- package/dist/features/products/components/ProductFilters.js +8 -6
- package/dist/features/products/components/ProductForm.js +12 -10
- package/dist/features/products/components/ProductGalleryClient.js +2 -1
- package/dist/features/products/components/ProductGrid.js +11 -14
- package/dist/features/products/components/ProductsIndexListing.js +16 -52
- package/dist/features/products/components/ProductsIndexPageView.js +2 -2
- package/dist/features/products/schemas/index.d.ts +56 -56
- package/dist/features/products/schemas/product-features.validators.d.ts +14 -14
- package/dist/features/promotions/components/CouponsIndexListing.js +1 -1
- package/dist/features/promotions/schemas/index.d.ts +6 -6
- package/dist/features/reviews/actions/review-actions.js +6 -5
- package/dist/features/reviews/api/[id]/route.js +4 -3
- package/dist/features/reviews/components/ReviewDetailPageView.js +2 -2
- package/dist/features/reviews/components/ReviewDetailShell.js +6 -3
- package/dist/features/reviews/components/ReviewsIndexListing.js +2 -2
- package/dist/features/reviews/schemas/index.d.ts +6 -6
- package/dist/features/scams/components/ScamProfileView.js +19 -10
- package/dist/features/scams/components/ScamRegistryView.js +2 -1
- package/dist/features/search/components/Search.d.ts +1 -1
- package/dist/features/search/components/Search.js +56 -49
- package/dist/features/search/schemas/index.d.ts +5 -5
- package/dist/features/seller/actions/offer-actions.js +11 -9
- package/dist/features/seller/components/SellerAddressesView.js +6 -4
- package/dist/features/seller/components/SellerBidsView.js +2 -2
- package/dist/features/seller/components/SellerCouponsView.js +1 -1
- package/dist/features/seller/components/SellerOffersPanel.js +6 -1
- package/dist/features/seller/components/SellerOrdersView.js +1 -1
- package/dist/features/seller/components/SellerPayoutSettingsView.js +3 -3
- package/dist/features/seller/components/SellerPreOrdersView.js +5 -4
- package/dist/features/seller/components/SellerPrizeDrawsView.js +5 -4
- package/dist/features/seller/components/SellerProductShell.d.ts +19 -1
- package/dist/features/seller/components/SellerProductShell.js +75 -9
- package/dist/features/seller/components/SellerProductsView.js +10 -11
- package/dist/features/seller/components/SellerShippingView.js +3 -3
- package/dist/features/seller/components/SellerSidebar.js +10 -7
- package/dist/features/seller/components/SellerStorefrontView.js +3 -3
- package/dist/features/seller/schemas/index.d.ts +4 -4
- package/dist/features/shell/FormShell.js +2 -1
- package/dist/features/shell/QuickFormDrawer.js +4 -3
- package/dist/features/shell/StepForm.js +4 -3
- package/dist/features/stores/actions/store-query-actions.js +4 -3
- package/dist/features/stores/components/StoreAboutView.js +2 -1
- package/dist/features/stores/components/StoreAuctionsListing.js +43 -64
- package/dist/features/stores/components/StoreDetailLayoutView.js +2 -2
- package/dist/features/stores/components/StorePreOrdersListing.js +33 -57
- package/dist/features/stores/components/StoreProductsListing.js +16 -49
- package/dist/features/stores/components/StoresIndexListing.js +2 -2
- package/dist/features/stores/schemas/index.d.ts +2 -2
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +8 -7
- package/dist/features/wishlist/hooks/useGuestWishlist.d.ts +5 -5
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +6 -6
- package/dist/features/wishlist/utils/guest-wishlist.d.ts +5 -5
- package/dist/index.d.ts +21 -3
- package/dist/index.js +1737 -1725
- package/dist/monitoring/server-logger.js +5 -9
- package/dist/next/api/apiHandler.js +56 -37
- package/dist/next/components/GlobalError.js +2 -1
- package/dist/next/routing/route-map.d.ts +27 -0
- package/dist/next/routing/route-map.js +10 -0
- package/dist/react/ErrorBoundary.js +2 -1
- package/dist/react/contexts/SessionContext.js +38 -28
- package/dist/react/hooks/useCamera.d.ts +1 -1
- package/dist/react/hooks/useCamera.js +8 -7
- package/dist/seed/site-settings-seed-data.js +6 -0
- package/dist/server-entry.d.ts +3 -0
- package/dist/server-entry.js +3 -0
- package/dist/server.d.ts +12 -0
- package/dist/server.js +15 -0
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/DataTable.js +28 -7
- package/dist/ui/components/Button.d.ts +8 -1
- package/dist/ui/components/Button.js +47 -8
- package/dist/ui/components/CollageLightbox.d.ts +18 -0
- package/dist/ui/components/CollageLightbox.js +41 -0
- package/dist/ui/components/Dropdown.js +7 -6
- package/dist/ui/components/ImageLightbox.d.ts +7 -1
- package/dist/ui/components/ImageLightbox.js +15 -5
- package/dist/ui/components/PageLoader.js +4 -3
- package/dist/ui/components/PaginatedMultiSelect.d.ts +28 -0
- package/dist/ui/components/PaginatedMultiSelect.js +141 -0
- package/dist/ui/components/PaginatedMultiSelect.style.css +272 -0
- package/dist/ui/components/Semantic.js +1 -1
- package/dist/ui/components/SideDrawer.js +17 -15
- package/dist/ui/components/index.style.css +1 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +1 -0
- package/dist/utils/number.formatter.js +5 -13
- package/dist/utils/string.formatter.js +21 -18
- package/dist/validation/schemas.d.ts +2 -2
- package/package.json +2 -2
|
@@ -26,34 +26,34 @@ export declare const bundleQueryRuleSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
26
26
|
/** Eligible listing types for a dynamic bundle rule. */
|
|
27
27
|
listingType: z.ZodOptional<z.ZodEnum<["standard", "pre-order", "prize-draw"]>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
tags?: string[] | undefined;
|
|
30
29
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
31
|
-
categorySlug?: string | undefined;
|
|
32
30
|
brandSlug?: string | undefined;
|
|
33
|
-
}, {
|
|
34
31
|
tags?: string[] | undefined;
|
|
35
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
36
32
|
categorySlug?: string | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
37
35
|
brandSlug?: string | undefined;
|
|
36
|
+
tags?: string[] | undefined;
|
|
37
|
+
categorySlug?: string | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
orderBy: z.ZodOptional<z.ZodEnum<["price-asc", "price-desc", "createdAt-desc"]>>;
|
|
40
40
|
limit: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
filter: {
|
|
43
|
-
tags?: string[] | undefined;
|
|
44
43
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
45
|
-
categorySlug?: string | undefined;
|
|
46
44
|
brandSlug?: string | undefined;
|
|
45
|
+
tags?: string[] | undefined;
|
|
46
|
+
categorySlug?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
type: "dynamic";
|
|
49
49
|
limit: number;
|
|
50
50
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
filter: {
|
|
53
|
-
tags?: string[] | undefined;
|
|
54
53
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
55
|
-
categorySlug?: string | undefined;
|
|
56
54
|
brandSlug?: string | undefined;
|
|
55
|
+
tags?: string[] | undefined;
|
|
56
|
+
categorySlug?: string | undefined;
|
|
57
57
|
};
|
|
58
58
|
type: "dynamic";
|
|
59
59
|
limit: number;
|
|
@@ -100,34 +100,34 @@ export declare const bundleCreateSchema: z.ZodObject<{
|
|
|
100
100
|
/** Eligible listing types for a dynamic bundle rule. */
|
|
101
101
|
listingType: z.ZodOptional<z.ZodEnum<["standard", "pre-order", "prize-draw"]>>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
tags?: string[] | undefined;
|
|
104
103
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
105
|
-
categorySlug?: string | undefined;
|
|
106
104
|
brandSlug?: string | undefined;
|
|
107
|
-
}, {
|
|
108
105
|
tags?: string[] | undefined;
|
|
109
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
110
106
|
categorySlug?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
111
109
|
brandSlug?: string | undefined;
|
|
110
|
+
tags?: string[] | undefined;
|
|
111
|
+
categorySlug?: string | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
orderBy: z.ZodOptional<z.ZodEnum<["price-asc", "price-desc", "createdAt-desc"]>>;
|
|
114
114
|
limit: z.ZodNumber;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
filter: {
|
|
117
|
-
tags?: string[] | undefined;
|
|
118
117
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
119
|
-
categorySlug?: string | undefined;
|
|
120
118
|
brandSlug?: string | undefined;
|
|
119
|
+
tags?: string[] | undefined;
|
|
120
|
+
categorySlug?: string | undefined;
|
|
121
121
|
};
|
|
122
122
|
type: "dynamic";
|
|
123
123
|
limit: number;
|
|
124
124
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
filter: {
|
|
127
|
-
tags?: string[] | undefined;
|
|
128
127
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
129
|
-
categorySlug?: string | undefined;
|
|
130
128
|
brandSlug?: string | undefined;
|
|
129
|
+
tags?: string[] | undefined;
|
|
130
|
+
categorySlug?: string | undefined;
|
|
131
131
|
};
|
|
132
132
|
type: "dynamic";
|
|
133
133
|
limit: number;
|
|
@@ -169,23 +169,23 @@ export declare const bundleCreateSchema: z.ZodObject<{
|
|
|
169
169
|
productIds: string[];
|
|
170
170
|
} | {
|
|
171
171
|
filter: {
|
|
172
|
-
tags?: string[] | undefined;
|
|
173
172
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
174
|
-
categorySlug?: string | undefined;
|
|
175
173
|
brandSlug?: string | undefined;
|
|
174
|
+
tags?: string[] | undefined;
|
|
175
|
+
categorySlug?: string | undefined;
|
|
176
176
|
};
|
|
177
177
|
type: "dynamic";
|
|
178
178
|
limit: number;
|
|
179
179
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
180
180
|
};
|
|
181
|
+
description?: string | undefined;
|
|
182
|
+
slug?: string | undefined;
|
|
181
183
|
display?: {
|
|
182
184
|
color?: string | undefined;
|
|
183
185
|
icon?: string | undefined;
|
|
184
186
|
coverImage?: string | undefined;
|
|
185
187
|
} | undefined;
|
|
186
188
|
isActive?: boolean | undefined;
|
|
187
|
-
description?: string | undefined;
|
|
188
|
-
slug?: string | undefined;
|
|
189
189
|
bundleItemDetails?: {
|
|
190
190
|
productId: string;
|
|
191
191
|
drawCount?: number | undefined;
|
|
@@ -200,23 +200,23 @@ export declare const bundleCreateSchema: z.ZodObject<{
|
|
|
200
200
|
productIds: string[];
|
|
201
201
|
} | {
|
|
202
202
|
filter: {
|
|
203
|
-
tags?: string[] | undefined;
|
|
204
203
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
205
|
-
categorySlug?: string | undefined;
|
|
206
204
|
brandSlug?: string | undefined;
|
|
205
|
+
tags?: string[] | undefined;
|
|
206
|
+
categorySlug?: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
type: "dynamic";
|
|
209
209
|
limit: number;
|
|
210
210
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
211
211
|
};
|
|
212
|
+
description?: string | undefined;
|
|
213
|
+
slug?: string | undefined;
|
|
212
214
|
display?: {
|
|
213
215
|
color?: string | undefined;
|
|
214
216
|
icon?: string | undefined;
|
|
215
217
|
coverImage?: string | undefined;
|
|
216
218
|
} | undefined;
|
|
217
219
|
isActive?: boolean | undefined;
|
|
218
|
-
description?: string | undefined;
|
|
219
|
-
slug?: string | undefined;
|
|
220
220
|
bundleItemDetails?: {
|
|
221
221
|
productId: string;
|
|
222
222
|
drawCount?: number | undefined;
|
|
@@ -245,34 +245,34 @@ export declare const bundleUpdateSchema: z.ZodObject<{
|
|
|
245
245
|
/** Eligible listing types for a dynamic bundle rule. */
|
|
246
246
|
listingType: z.ZodOptional<z.ZodEnum<["standard", "pre-order", "prize-draw"]>>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
tags?: string[] | undefined;
|
|
249
248
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
250
|
-
categorySlug?: string | undefined;
|
|
251
249
|
brandSlug?: string | undefined;
|
|
252
|
-
}, {
|
|
253
250
|
tags?: string[] | undefined;
|
|
254
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
255
251
|
categorySlug?: string | undefined;
|
|
252
|
+
}, {
|
|
253
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
256
254
|
brandSlug?: string | undefined;
|
|
255
|
+
tags?: string[] | undefined;
|
|
256
|
+
categorySlug?: string | undefined;
|
|
257
257
|
}>;
|
|
258
258
|
orderBy: z.ZodOptional<z.ZodEnum<["price-asc", "price-desc", "createdAt-desc"]>>;
|
|
259
259
|
limit: z.ZodNumber;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
261
|
filter: {
|
|
262
|
-
tags?: string[] | undefined;
|
|
263
262
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
264
|
-
categorySlug?: string | undefined;
|
|
265
263
|
brandSlug?: string | undefined;
|
|
264
|
+
tags?: string[] | undefined;
|
|
265
|
+
categorySlug?: string | undefined;
|
|
266
266
|
};
|
|
267
267
|
type: "dynamic";
|
|
268
268
|
limit: number;
|
|
269
269
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
270
270
|
}, {
|
|
271
271
|
filter: {
|
|
272
|
-
tags?: string[] | undefined;
|
|
273
272
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
274
|
-
categorySlug?: string | undefined;
|
|
275
273
|
brandSlug?: string | undefined;
|
|
274
|
+
tags?: string[] | undefined;
|
|
275
|
+
categorySlug?: string | undefined;
|
|
276
276
|
};
|
|
277
277
|
type: "dynamic";
|
|
278
278
|
limit: number;
|
|
@@ -304,6 +304,7 @@ export declare const bundleUpdateSchema: z.ZodObject<{
|
|
|
304
304
|
}>>;
|
|
305
305
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
description?: string | undefined;
|
|
307
308
|
name?: string | undefined;
|
|
308
309
|
display?: {
|
|
309
310
|
color?: string | undefined;
|
|
@@ -311,7 +312,6 @@ export declare const bundleUpdateSchema: z.ZodObject<{
|
|
|
311
312
|
coverImage?: string | undefined;
|
|
312
313
|
} | undefined;
|
|
313
314
|
isActive?: boolean | undefined;
|
|
314
|
-
description?: string | undefined;
|
|
315
315
|
bundleProductIds?: string[] | undefined;
|
|
316
316
|
bundleKind?: "brand" | "special" | undefined;
|
|
317
317
|
bundlePriceInPaise?: number | undefined;
|
|
@@ -320,10 +320,10 @@ export declare const bundleUpdateSchema: z.ZodObject<{
|
|
|
320
320
|
productIds: string[];
|
|
321
321
|
} | {
|
|
322
322
|
filter: {
|
|
323
|
-
tags?: string[] | undefined;
|
|
324
323
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
325
|
-
categorySlug?: string | undefined;
|
|
326
324
|
brandSlug?: string | undefined;
|
|
325
|
+
tags?: string[] | undefined;
|
|
326
|
+
categorySlug?: string | undefined;
|
|
327
327
|
};
|
|
328
328
|
type: "dynamic";
|
|
329
329
|
limit: number;
|
|
@@ -334,6 +334,7 @@ export declare const bundleUpdateSchema: z.ZodObject<{
|
|
|
334
334
|
drawCount?: number | undefined;
|
|
335
335
|
}[] | undefined;
|
|
336
336
|
}, {
|
|
337
|
+
description?: string | undefined;
|
|
337
338
|
name?: string | undefined;
|
|
338
339
|
display?: {
|
|
339
340
|
color?: string | undefined;
|
|
@@ -341,7 +342,6 @@ export declare const bundleUpdateSchema: z.ZodObject<{
|
|
|
341
342
|
coverImage?: string | undefined;
|
|
342
343
|
} | undefined;
|
|
343
344
|
isActive?: boolean | undefined;
|
|
344
|
-
description?: string | undefined;
|
|
345
345
|
bundleProductIds?: string[] | undefined;
|
|
346
346
|
bundleKind?: "brand" | "special" | undefined;
|
|
347
347
|
bundlePriceInPaise?: number | undefined;
|
|
@@ -350,10 +350,10 @@ export declare const bundleUpdateSchema: z.ZodObject<{
|
|
|
350
350
|
productIds: string[];
|
|
351
351
|
} | {
|
|
352
352
|
filter: {
|
|
353
|
-
tags?: string[] | undefined;
|
|
354
353
|
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
355
|
-
categorySlug?: string | undefined;
|
|
356
354
|
brandSlug?: string | undefined;
|
|
355
|
+
tags?: string[] | undefined;
|
|
356
|
+
categorySlug?: string | undefined;
|
|
357
357
|
};
|
|
358
358
|
type: "dynamic";
|
|
359
359
|
limit: number;
|
|
@@ -15,27 +15,27 @@ export declare const eventInputSchema: z.ZodObject<{
|
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
type: "TOURNAMENT" | "CONVENTION" | "MEETUP" | "SALE";
|
|
17
17
|
title: string;
|
|
18
|
-
tags: string[];
|
|
19
18
|
slug: string;
|
|
19
|
+
tags: string[];
|
|
20
20
|
startsAt: string;
|
|
21
21
|
endsAt: string;
|
|
22
22
|
entryFee: number;
|
|
23
23
|
isOnline: boolean;
|
|
24
|
+
description?: string | undefined;
|
|
24
25
|
location?: string | undefined;
|
|
25
26
|
maxEntries?: number | undefined;
|
|
26
27
|
imageUrl?: string | undefined;
|
|
27
|
-
description?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
type: "TOURNAMENT" | "CONVENTION" | "MEETUP" | "SALE";
|
|
30
30
|
title: string;
|
|
31
31
|
slug: string;
|
|
32
32
|
startsAt: string;
|
|
33
33
|
endsAt: string;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
tags?: string[] | undefined;
|
|
34
36
|
location?: string | undefined;
|
|
35
37
|
maxEntries?: number | undefined;
|
|
36
|
-
tags?: string[] | undefined;
|
|
37
38
|
imageUrl?: string | undefined;
|
|
38
|
-
description?: string | undefined;
|
|
39
39
|
entryFee?: number | undefined;
|
|
40
40
|
isOnline?: boolean | undefined;
|
|
41
41
|
}>;
|
|
@@ -55,11 +55,11 @@ export declare const eventUpdateSchema: z.ZodObject<Omit<{
|
|
|
55
55
|
}, "slug">, "strip", z.ZodTypeAny, {
|
|
56
56
|
type?: "TOURNAMENT" | "CONVENTION" | "MEETUP" | "SALE" | undefined;
|
|
57
57
|
title?: string | undefined;
|
|
58
|
+
description?: string | undefined;
|
|
59
|
+
tags?: string[] | undefined;
|
|
58
60
|
location?: string | undefined;
|
|
59
61
|
maxEntries?: number | undefined;
|
|
60
|
-
tags?: string[] | undefined;
|
|
61
62
|
imageUrl?: string | undefined;
|
|
62
|
-
description?: string | undefined;
|
|
63
63
|
startsAt?: string | undefined;
|
|
64
64
|
endsAt?: string | undefined;
|
|
65
65
|
entryFee?: number | undefined;
|
|
@@ -67,11 +67,11 @@ export declare const eventUpdateSchema: z.ZodObject<Omit<{
|
|
|
67
67
|
}, {
|
|
68
68
|
type?: "TOURNAMENT" | "CONVENTION" | "MEETUP" | "SALE" | undefined;
|
|
69
69
|
title?: string | undefined;
|
|
70
|
+
description?: string | undefined;
|
|
71
|
+
tags?: string[] | undefined;
|
|
70
72
|
location?: string | undefined;
|
|
71
73
|
maxEntries?: number | undefined;
|
|
72
|
-
tags?: string[] | undefined;
|
|
73
74
|
imageUrl?: string | undefined;
|
|
74
|
-
description?: string | undefined;
|
|
75
75
|
startsAt?: string | undefined;
|
|
76
76
|
endsAt?: string | undefined;
|
|
77
77
|
entryFee?: number | undefined;
|
|
@@ -5,13 +5,13 @@ export declare const createOrderSchema: z.ZodObject<{
|
|
|
5
5
|
quantity: z.ZodNumber;
|
|
6
6
|
price: z.ZodNumber;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
price: number;
|
|
8
9
|
productId: string;
|
|
9
10
|
quantity: number;
|
|
10
|
-
price: number;
|
|
11
11
|
}, {
|
|
12
|
+
price: number;
|
|
12
13
|
productId: string;
|
|
13
14
|
quantity: number;
|
|
14
|
-
price: number;
|
|
15
15
|
}>, "many">;
|
|
16
16
|
shippingAddress: z.ZodObject<{
|
|
17
17
|
fullName: z.ZodString;
|
|
@@ -24,16 +24,16 @@ export declare const createOrderSchema: z.ZodObject<{
|
|
|
24
24
|
country: z.ZodDefault<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
country: string;
|
|
27
|
-
state: string;
|
|
28
27
|
phone: string;
|
|
28
|
+
state: string;
|
|
29
29
|
city: string;
|
|
30
30
|
pincode: string;
|
|
31
31
|
fullName: string;
|
|
32
32
|
addressLine1: string;
|
|
33
33
|
addressLine2?: string | undefined;
|
|
34
34
|
}, {
|
|
35
|
-
state: string;
|
|
36
35
|
phone: string;
|
|
36
|
+
state: string;
|
|
37
37
|
city: string;
|
|
38
38
|
pincode: string;
|
|
39
39
|
fullName: string;
|
|
@@ -46,14 +46,14 @@ export declare const createOrderSchema: z.ZodObject<{
|
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
paymentMethod: "upi" | "razorpay" | "cod";
|
|
48
48
|
items: {
|
|
49
|
+
price: number;
|
|
49
50
|
productId: string;
|
|
50
51
|
quantity: number;
|
|
51
|
-
price: number;
|
|
52
52
|
}[];
|
|
53
53
|
shippingAddress: {
|
|
54
54
|
country: string;
|
|
55
|
-
state: string;
|
|
56
55
|
phone: string;
|
|
56
|
+
state: string;
|
|
57
57
|
city: string;
|
|
58
58
|
pincode: string;
|
|
59
59
|
fullName: string;
|
|
@@ -64,13 +64,13 @@ export declare const createOrderSchema: z.ZodObject<{
|
|
|
64
64
|
}, {
|
|
65
65
|
paymentMethod: "upi" | "razorpay" | "cod";
|
|
66
66
|
items: {
|
|
67
|
+
price: number;
|
|
67
68
|
productId: string;
|
|
68
69
|
quantity: number;
|
|
69
|
-
price: number;
|
|
70
70
|
}[];
|
|
71
71
|
shippingAddress: {
|
|
72
|
-
state: string;
|
|
73
72
|
phone: string;
|
|
73
|
+
state: string;
|
|
74
74
|
city: string;
|
|
75
75
|
pincode: string;
|
|
76
76
|
fullName: string;
|
|
@@ -28,20 +28,20 @@ export declare const productInputSchema: z.ZodObject<{
|
|
|
28
28
|
title: string;
|
|
29
29
|
category: string;
|
|
30
30
|
price: number;
|
|
31
|
-
tags: string[];
|
|
32
|
-
images: string[];
|
|
33
31
|
stockQuantity: number;
|
|
34
32
|
availableQuantity: number;
|
|
35
33
|
mainImage: string;
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
images: string[];
|
|
35
|
+
tags: string[];
|
|
38
36
|
description?: string | undefined;
|
|
39
37
|
seoTitle?: string | undefined;
|
|
40
38
|
seoDescription?: string | undefined;
|
|
41
39
|
seoKeywords?: string[] | undefined;
|
|
42
40
|
brandSlug?: string | undefined;
|
|
41
|
+
features?: string[] | undefined;
|
|
43
42
|
shippingInfo?: string | undefined;
|
|
44
43
|
returnPolicy?: string | undefined;
|
|
44
|
+
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
45
45
|
insurance?: boolean | undefined;
|
|
46
46
|
insuranceCost?: number | undefined;
|
|
47
47
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -53,10 +53,6 @@ export declare const productInputSchema: z.ZodObject<{
|
|
|
53
53
|
price: number;
|
|
54
54
|
mainImage: string;
|
|
55
55
|
currency?: string | undefined;
|
|
56
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
57
|
-
tags?: string[] | undefined;
|
|
58
|
-
features?: string[] | undefined;
|
|
59
|
-
images?: string[] | undefined;
|
|
60
56
|
description?: string | undefined;
|
|
61
57
|
seoTitle?: string | undefined;
|
|
62
58
|
seoDescription?: string | undefined;
|
|
@@ -64,8 +60,12 @@ export declare const productInputSchema: z.ZodObject<{
|
|
|
64
60
|
brandSlug?: string | undefined;
|
|
65
61
|
stockQuantity?: number | undefined;
|
|
66
62
|
availableQuantity?: number | undefined;
|
|
63
|
+
images?: string[] | undefined;
|
|
64
|
+
tags?: string[] | undefined;
|
|
65
|
+
features?: string[] | undefined;
|
|
67
66
|
shippingInfo?: string | undefined;
|
|
68
67
|
returnPolicy?: string | undefined;
|
|
68
|
+
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
69
69
|
insurance?: boolean | undefined;
|
|
70
70
|
insuranceCost?: number | undefined;
|
|
71
71
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -100,21 +100,21 @@ export declare const productUpdateSchema: z.ZodObject<{
|
|
|
100
100
|
currency?: string | undefined;
|
|
101
101
|
title?: string | undefined;
|
|
102
102
|
category?: string | undefined;
|
|
103
|
-
price?: number | undefined;
|
|
104
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
105
|
-
tags?: string[] | undefined;
|
|
106
|
-
features?: string[] | undefined;
|
|
107
|
-
images?: string[] | undefined;
|
|
108
103
|
description?: string | undefined;
|
|
109
104
|
seoTitle?: string | undefined;
|
|
110
105
|
seoDescription?: string | undefined;
|
|
111
106
|
seoKeywords?: string[] | undefined;
|
|
112
107
|
brandSlug?: string | undefined;
|
|
108
|
+
price?: number | undefined;
|
|
113
109
|
stockQuantity?: number | undefined;
|
|
114
110
|
availableQuantity?: number | undefined;
|
|
115
111
|
mainImage?: string | undefined;
|
|
112
|
+
images?: string[] | undefined;
|
|
113
|
+
tags?: string[] | undefined;
|
|
114
|
+
features?: string[] | undefined;
|
|
116
115
|
shippingInfo?: string | undefined;
|
|
117
116
|
returnPolicy?: string | undefined;
|
|
117
|
+
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
118
118
|
insurance?: boolean | undefined;
|
|
119
119
|
insuranceCost?: number | undefined;
|
|
120
120
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -124,21 +124,21 @@ export declare const productUpdateSchema: z.ZodObject<{
|
|
|
124
124
|
currency?: string | undefined;
|
|
125
125
|
title?: string | undefined;
|
|
126
126
|
category?: string | undefined;
|
|
127
|
-
price?: number | undefined;
|
|
128
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
129
|
-
tags?: string[] | undefined;
|
|
130
|
-
features?: string[] | undefined;
|
|
131
|
-
images?: string[] | undefined;
|
|
132
127
|
description?: string | undefined;
|
|
133
128
|
seoTitle?: string | undefined;
|
|
134
129
|
seoDescription?: string | undefined;
|
|
135
130
|
seoKeywords?: string[] | undefined;
|
|
136
131
|
brandSlug?: string | undefined;
|
|
132
|
+
price?: number | undefined;
|
|
137
133
|
stockQuantity?: number | undefined;
|
|
138
134
|
availableQuantity?: number | undefined;
|
|
139
135
|
mainImage?: string | undefined;
|
|
136
|
+
images?: string[] | undefined;
|
|
137
|
+
tags?: string[] | undefined;
|
|
138
|
+
features?: string[] | undefined;
|
|
140
139
|
shippingInfo?: string | undefined;
|
|
141
140
|
returnPolicy?: string | undefined;
|
|
141
|
+
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
142
142
|
insurance?: boolean | undefined;
|
|
143
143
|
insuranceCost?: number | undefined;
|
|
144
144
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -183,25 +183,25 @@ export declare const auctionInputSchema: z.ZodObject<{
|
|
|
183
183
|
currency: string;
|
|
184
184
|
title: string;
|
|
185
185
|
category: string;
|
|
186
|
-
price: number;
|
|
187
|
-
tags: string[];
|
|
188
186
|
listingType: "auction";
|
|
189
|
-
|
|
187
|
+
price: number;
|
|
190
188
|
stockQuantity: number;
|
|
191
189
|
availableQuantity: number;
|
|
192
190
|
mainImage: string;
|
|
191
|
+
images: string[];
|
|
192
|
+
tags: string[];
|
|
193
193
|
auctionEndDate: string;
|
|
194
194
|
startingBid: number;
|
|
195
195
|
autoExtendable: boolean;
|
|
196
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
197
|
-
features?: string[] | undefined;
|
|
198
196
|
description?: string | undefined;
|
|
199
197
|
seoTitle?: string | undefined;
|
|
200
198
|
seoDescription?: string | undefined;
|
|
201
199
|
seoKeywords?: string[] | undefined;
|
|
202
200
|
brandSlug?: string | undefined;
|
|
201
|
+
features?: string[] | undefined;
|
|
203
202
|
shippingInfo?: string | undefined;
|
|
204
203
|
returnPolicy?: string | undefined;
|
|
204
|
+
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
205
205
|
insurance?: boolean | undefined;
|
|
206
206
|
insuranceCost?: number | undefined;
|
|
207
207
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -215,16 +215,12 @@ export declare const auctionInputSchema: z.ZodObject<{
|
|
|
215
215
|
}, {
|
|
216
216
|
title: string;
|
|
217
217
|
category: string;
|
|
218
|
-
price: number;
|
|
219
218
|
listingType: "auction";
|
|
219
|
+
price: number;
|
|
220
220
|
mainImage: string;
|
|
221
221
|
auctionEndDate: string;
|
|
222
222
|
startingBid: number;
|
|
223
223
|
currency?: string | undefined;
|
|
224
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
225
|
-
tags?: string[] | undefined;
|
|
226
|
-
features?: string[] | undefined;
|
|
227
|
-
images?: string[] | undefined;
|
|
228
224
|
description?: string | undefined;
|
|
229
225
|
seoTitle?: string | undefined;
|
|
230
226
|
seoDescription?: string | undefined;
|
|
@@ -232,8 +228,12 @@ export declare const auctionInputSchema: z.ZodObject<{
|
|
|
232
228
|
brandSlug?: string | undefined;
|
|
233
229
|
stockQuantity?: number | undefined;
|
|
234
230
|
availableQuantity?: number | undefined;
|
|
231
|
+
images?: string[] | undefined;
|
|
232
|
+
tags?: string[] | undefined;
|
|
233
|
+
features?: string[] | undefined;
|
|
235
234
|
shippingInfo?: string | undefined;
|
|
236
235
|
returnPolicy?: string | undefined;
|
|
236
|
+
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
237
237
|
insurance?: boolean | undefined;
|
|
238
238
|
insuranceCost?: number | undefined;
|
|
239
239
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -281,25 +281,25 @@ export declare const preOrderInputSchema: z.ZodObject<{
|
|
|
281
281
|
currency: string;
|
|
282
282
|
title: string;
|
|
283
283
|
category: string;
|
|
284
|
-
price: number;
|
|
285
|
-
tags: string[];
|
|
286
284
|
listingType: "pre-order";
|
|
287
|
-
|
|
288
|
-
images: string[];
|
|
285
|
+
price: number;
|
|
289
286
|
stockQuantity: number;
|
|
290
287
|
availableQuantity: number;
|
|
291
288
|
mainImage: string;
|
|
289
|
+
images: string[];
|
|
290
|
+
tags: string[];
|
|
292
291
|
preOrderDeliveryDate: string;
|
|
292
|
+
preOrderProductionStatus: "upcoming" | "in_production" | "ready_to_ship";
|
|
293
293
|
preOrderCancellable: boolean;
|
|
294
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
295
|
-
features?: string[] | undefined;
|
|
296
294
|
description?: string | undefined;
|
|
297
295
|
seoTitle?: string | undefined;
|
|
298
296
|
seoDescription?: string | undefined;
|
|
299
297
|
seoKeywords?: string[] | undefined;
|
|
300
298
|
brandSlug?: string | undefined;
|
|
299
|
+
features?: string[] | undefined;
|
|
301
300
|
shippingInfo?: string | undefined;
|
|
302
301
|
returnPolicy?: string | undefined;
|
|
302
|
+
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
303
303
|
insurance?: boolean | undefined;
|
|
304
304
|
insuranceCost?: number | undefined;
|
|
305
305
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -310,16 +310,11 @@ export declare const preOrderInputSchema: z.ZodObject<{
|
|
|
310
310
|
}, {
|
|
311
311
|
title: string;
|
|
312
312
|
category: string;
|
|
313
|
-
price: number;
|
|
314
313
|
listingType: "pre-order";
|
|
314
|
+
price: number;
|
|
315
315
|
mainImage: string;
|
|
316
316
|
preOrderDeliveryDate: string;
|
|
317
317
|
currency?: string | undefined;
|
|
318
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
319
|
-
tags?: string[] | undefined;
|
|
320
|
-
preOrderProductionStatus?: "upcoming" | "in_production" | "ready_to_ship" | undefined;
|
|
321
|
-
features?: string[] | undefined;
|
|
322
|
-
images?: string[] | undefined;
|
|
323
318
|
description?: string | undefined;
|
|
324
319
|
seoTitle?: string | undefined;
|
|
325
320
|
seoDescription?: string | undefined;
|
|
@@ -327,13 +322,18 @@ export declare const preOrderInputSchema: z.ZodObject<{
|
|
|
327
322
|
brandSlug?: string | undefined;
|
|
328
323
|
stockQuantity?: number | undefined;
|
|
329
324
|
availableQuantity?: number | undefined;
|
|
325
|
+
images?: string[] | undefined;
|
|
326
|
+
tags?: string[] | undefined;
|
|
327
|
+
features?: string[] | undefined;
|
|
330
328
|
shippingInfo?: string | undefined;
|
|
331
329
|
returnPolicy?: string | undefined;
|
|
330
|
+
condition?: "new" | "used" | "refurbished" | "broken" | "like_new" | "good" | "fair" | "poor" | undefined;
|
|
332
331
|
insurance?: boolean | undefined;
|
|
333
332
|
insuranceCost?: number | undefined;
|
|
334
333
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
335
334
|
preOrderDepositPercent?: number | undefined;
|
|
336
335
|
preOrderMaxQuantity?: number | undefined;
|
|
336
|
+
preOrderProductionStatus?: "upcoming" | "in_production" | "ready_to_ship" | undefined;
|
|
337
337
|
preOrderCancellable?: boolean | undefined;
|
|
338
338
|
allowOffers?: boolean | undefined;
|
|
339
339
|
minOfferPercent?: number | undefined;
|
|
@@ -342,11 +342,11 @@ export declare const setFeaturedSchema: z.ZodObject<{
|
|
|
342
342
|
productId: z.ZodString;
|
|
343
343
|
featured: z.ZodBoolean;
|
|
344
344
|
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
productId: string;
|
|
346
345
|
featured: boolean;
|
|
347
|
-
}, {
|
|
348
346
|
productId: string;
|
|
347
|
+
}, {
|
|
349
348
|
featured: boolean;
|
|
349
|
+
productId: string;
|
|
350
350
|
}>;
|
|
351
351
|
export declare const setStatusSchema: z.ZodObject<{
|
|
352
352
|
productId: z.ZodString;
|
|
@@ -79,7 +79,7 @@ export declare const createCouponSchema: z.ZodObject<{
|
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
80
|
code: string;
|
|
81
81
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
82
|
-
scope: "
|
|
82
|
+
scope: "seller" | "admin";
|
|
83
83
|
name: string;
|
|
84
84
|
discount: {
|
|
85
85
|
value: number;
|
|
@@ -105,7 +105,7 @@ export declare const createCouponSchema: z.ZodObject<{
|
|
|
105
105
|
}, {
|
|
106
106
|
code: string;
|
|
107
107
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
108
|
-
scope: "
|
|
108
|
+
scope: "seller" | "admin";
|
|
109
109
|
name: string;
|
|
110
110
|
discount: {
|
|
111
111
|
value: number;
|
|
@@ -189,7 +189,7 @@ export declare const updateCouponSchema: z.ZodObject<Omit<{
|
|
|
189
189
|
}>>>;
|
|
190
190
|
}, "code">, "strip", z.ZodTypeAny, {
|
|
191
191
|
type?: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y" | undefined;
|
|
192
|
-
scope?: "
|
|
192
|
+
scope?: "seller" | "admin" | undefined;
|
|
193
193
|
name?: string | undefined;
|
|
194
194
|
sellerId?: string | undefined;
|
|
195
195
|
discount?: {
|
|
@@ -214,7 +214,7 @@ export declare const updateCouponSchema: z.ZodObject<Omit<{
|
|
|
214
214
|
} | undefined;
|
|
215
215
|
}, {
|
|
216
216
|
type?: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y" | undefined;
|
|
217
|
-
scope?: "
|
|
217
|
+
scope?: "seller" | "admin" | undefined;
|
|
218
218
|
name?: string | undefined;
|
|
219
219
|
sellerId?: string | undefined;
|
|
220
220
|
discount?: {
|
|
@@ -84,6 +84,7 @@ export const PDF_MAGIC = "%PDF-";
|
|
|
84
84
|
// Known-but-rejected video formats. Mapping returns a user-actionable
|
|
85
85
|
// conversion hint so the upload error can say "convert your .avi to .mp4"
|
|
86
86
|
// rather than the generic "invalid type" response.
|
|
87
|
+
const HINT_HEVC = "HEVC (H.265) video is accepted but doesn't preview in most browsers — please convert to MP4 (H.264) or WebM for in-browser playback";
|
|
87
88
|
export const VIDEO_CONVERSION_HINTS = {
|
|
88
89
|
"video/x-msvideo": "AVI is not supported — please convert to MP4 or WebM",
|
|
89
90
|
"video/avi": "AVI is not supported — please convert to MP4 or WebM",
|
|
@@ -94,9 +95,9 @@ export const VIDEO_CONVERSION_HINTS = {
|
|
|
94
95
|
// SB-UNI-Z4 2026-05-13 — HEVC / H.265 + HEIC/HEIF preview hint. The bytes
|
|
95
96
|
// upload fine via the signed-URL flow; the issue is in-browser preview —
|
|
96
97
|
// most browsers can't decode HEVC inline without an OS codec license.
|
|
97
|
-
"video/hevc":
|
|
98
|
-
"video/x-hevc":
|
|
99
|
-
"video/H265":
|
|
98
|
+
"video/hevc": HINT_HEVC,
|
|
99
|
+
"video/x-hevc": HINT_HEVC,
|
|
100
|
+
"video/H265": HINT_HEVC,
|
|
100
101
|
"image/heic": "HEIC image is accepted but doesn't preview in most browsers — please convert to JPEG or WebP for inline preview",
|
|
101
102
|
"image/heif": "HEIF image is accepted but doesn't preview in most browsers — please convert to JPEG or WebP for inline preview",
|
|
102
103
|
};
|