@mohasinac/appkit 4.64.1 → 4.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-stamp.json +3 -3
- package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +4 -1
- package/dist/_internal/client/features/digital-code/DigitalContentPoolManager.js +5 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +1 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +3 -1
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +6 -2
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.js +5 -1
- package/dist/_internal/client/features/lottery/LotteryDetailView.js +6 -1
- package/dist/_internal/client/features/lottery/LotteryEntriesView.js +6 -1
- package/dist/_internal/client/features/lottery/LotteryListView.js +7 -1
- package/dist/_internal/client/features/lottery/LotteryPullForm.js +3 -1
- package/dist/_internal/client/features/lottery/LotterySlotGrid.js +3 -1
- package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.js +6 -1
- package/dist/_internal/client/scaffolds/AppShell.js +3 -1
- package/dist/_internal/server/features/account/data.js +2 -1
- package/dist/_internal/server/features/auctions/service.js +1 -1
- package/dist/_internal/server/features/auth/capabilities.js +1 -1
- package/dist/_internal/server/features/auth/permissions.js +1 -1
- package/dist/_internal/server/features/brands/actions.js +1 -1
- package/dist/_internal/server/features/brands/data.js +1 -1
- package/dist/_internal/server/features/brands/service.js +1 -1
- package/dist/_internal/server/features/bundles/actions.js +1 -1
- package/dist/_internal/server/features/bundles/data.js +2 -2
- package/dist/_internal/server/features/cart/actions.js +1 -1
- package/dist/_internal/server/features/cart/data.js +1 -1
- package/dist/_internal/server/features/cart/service.js +1 -1
- package/dist/_internal/server/features/categories/data.js +1 -1
- package/dist/_internal/server/features/checkout/actions.js +20 -3
- package/dist/_internal/server/features/checkout/group-rule-revalidation.js +1 -1
- package/dist/_internal/server/features/checkout/locked-lines.js +1 -1
- package/dist/_internal/server/features/checkout/upi-resolution.js +2 -1
- package/dist/_internal/server/features/grouped/data.js +2 -1
- package/dist/_internal/server/features/history/actions.d.ts +1 -1
- package/dist/_internal/server/features/history/actions.js +1 -1
- package/dist/_internal/server/features/history/data.d.ts +1 -1
- package/dist/_internal/server/features/history/data.js +1 -1
- package/dist/_internal/server/features/item-requests/data.js +1 -1
- package/dist/_internal/server/features/messages/actions.js +1 -1
- package/dist/_internal/server/features/payouts/actions.js +1 -1
- package/dist/_internal/server/features/pre-orders/actions.js +1 -1
- package/dist/_internal/server/features/pre-orders/service.js +1 -1
- package/dist/_internal/server/features/prize-draws/actions.js +1 -1
- package/dist/_internal/server/features/products/actions.js +1 -1
- package/dist/_internal/server/features/products/data.js +1 -1
- package/dist/_internal/server/features/products/list-public.js +1 -1
- package/dist/_internal/server/features/products/service.js +1 -1
- package/dist/_internal/server/features/promotions/actions.js +1 -1
- package/dist/_internal/server/features/promotions/adapters.js +9 -0
- package/dist/_internal/server/features/promotions/data.d.ts +24 -3
- package/dist/_internal/server/features/promotions/data.js +41 -6
- package/dist/_internal/server/features/promotions/index.d.ts +1 -1
- package/dist/_internal/server/features/promotions/index.js +1 -1
- package/dist/_internal/server/features/promotions/service.js +1 -1
- package/dist/_internal/server/features/search/index-build/sources.js +27 -12
- package/dist/_internal/server/features/seo/sitemap.js +79 -13
- package/dist/_internal/server/features/shared/listing-data-factory.js +1 -1
- package/dist/_internal/server/features/shipping/courier-block.js +1 -1
- package/dist/_internal/server/features/site-settings/adapters.d.ts +1 -1
- package/dist/_internal/server/features/site-settings/adapters.js +16 -1
- package/dist/_internal/server/features/sticker-trace/promote-to-listings.js +1 -1
- package/dist/_internal/server/features/stores/adapters.d.ts +1 -1
- package/dist/_internal/server/features/stores/adapters.js +14 -0
- package/dist/_internal/server/features/stores/data.js +1 -1
- package/dist/_internal/server/features/stores/tabs.d.ts +19 -15
- package/dist/_internal/server/features/stores/tabs.js +20 -21
- package/dist/_internal/server/features/sublisting-categories/data.js +1 -1
- package/dist/_internal/server/features/wishlist/actions.d.ts +1 -1
- package/dist/_internal/server/features/wishlist/actions.js +1 -1
- package/dist/_internal/server/features/wishlist/data.d.ts +1 -1
- package/dist/_internal/server/features/wishlist/data.js +1 -1
- package/dist/_internal/server/jobs/core/analyticsAlertEvaluate.js +9 -4
- package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +1 -1
- package/dist/_internal/server/jobs/core/cartPrune.js +1 -1
- package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.js +1 -1
- package/dist/_internal/server/jobs/core/categoryTaxonomyBackfill.js +22 -0
- package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +1 -1
- package/dist/_internal/server/jobs/core/countersReconcile.js +0 -1
- package/dist/_internal/server/jobs/core/couponExpiry.js +1 -1
- package/dist/_internal/server/jobs/core/dailyDataCleanup.js +2 -1
- package/dist/_internal/server/jobs/core/draftPrune.js +1 -1
- package/dist/_internal/server/jobs/core/hardBanReinstatement.js +1 -1
- package/dist/_internal/server/jobs/core/newsletterExport.js +1 -1
- package/dist/_internal/server/jobs/core/notificationPrune.js +1 -1
- package/dist/_internal/server/jobs/core/onJobCreated.js +1 -1
- package/dist/_internal/server/jobs/core/onOrderCreate.js +3 -1
- package/dist/_internal/server/jobs/core/onProductWrite.js +2 -1
- package/dist/_internal/server/jobs/core/onScamReportCreate.js +2 -1
- package/dist/_internal/server/jobs/core/onScamReportRejected.js +1 -1
- package/dist/_internal/server/jobs/core/onScamReportVerified.js +1 -1
- package/dist/_internal/server/jobs/core/revenueRollup.js +1 -1
- package/dist/_internal/server/jobs/core/runJobOnce.js +1 -1
- package/dist/_internal/server/jobs/core/sellerStandingRollup.js +1 -1
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +1 -1
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.js +2 -2
- package/dist/_internal/shared/features/blog/schema.d.ts +12 -12
- package/dist/_internal/shared/features/brands/schema.d.ts +19 -19
- package/dist/_internal/shared/features/cart/schema.d.ts +17 -17
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +60 -60
- package/dist/_internal/shared/features/events/schema.d.ts +4 -4
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/features/products/schema.d.ts +2 -2
- package/dist/_internal/shared/features/promotions/schema.d.ts +12 -12
- package/dist/_internal/shared/features/reviews/schema.d.ts +3 -3
- package/dist/_internal/shared/features/site-settings/types.d.ts +10 -2
- package/dist/_internal/shared/features/sticker-trace/trace/segment.js +13 -2
- package/dist/_internal/shared/listing-types/feature-flags.d.ts +54 -0
- package/dist/_internal/shared/listing-types/feature-flags.js +72 -0
- package/dist/client.d.ts +225 -117
- package/dist/client.js +148 -74
- package/dist/constants/field-names.d.ts +1 -0
- package/dist/constants/field-names.js +14 -0
- package/dist/errors/error-handler.d.ts +1 -1
- package/dist/features/about/components/AboutView.js +9 -1
- package/dist/features/about/components/DeveloperView.js +8 -2
- package/dist/features/about/components/FAQPageView.js +5 -2
- package/dist/features/about/components/FeesView.js +4 -1
- package/dist/features/about/components/GstExplainerView.js +6 -1
- package/dist/features/about/components/GuidesHubView.js +5 -1
- package/dist/features/about/components/HelpPageView.js +6 -2
- package/dist/features/about/components/HowAuctionsWorkView.js +6 -2
- package/dist/features/about/components/HowCheckoutWorksView.js +6 -2
- package/dist/features/about/components/HowEmiWorksView.js +7 -2
- package/dist/features/about/components/HowOffersWorkView.js +6 -2
- package/dist/features/about/components/HowOrdersWorkView.js +6 -2
- package/dist/features/about/components/HowPayoutsWorkView.js +6 -2
- package/dist/features/about/components/HowPreOrdersWorkView.js +6 -2
- package/dist/features/about/components/HowReviewsWorkView.js +6 -2
- package/dist/features/about/components/PolicyPageView.js +6 -3
- package/dist/features/about/components/ProseHero.js +3 -1
- package/dist/features/about/components/PublicProfileView.js +6 -1
- package/dist/features/about/components/SecurityPrivacyView.js +6 -2
- package/dist/features/about/components/ShippingPolicyView.js +7 -3
- package/dist/features/about/components/SpotAFakeView.js +6 -1
- package/dist/features/about/components/TrackOrderView.js +5 -2
- package/dist/features/about/components/UnauthorizedView.js +5 -2
- package/dist/features/about/schemas/index.d.ts +18 -18
- package/dist/features/account/api/[userId]/addresses/route.js +1 -5
- package/dist/features/account/components/AddressBook.js +4 -1
- package/dist/features/account/components/AddressFilters.js +1 -1
- package/dist/features/account/components/AddressForm.js +1 -1
- package/dist/features/account/components/AddressSelectorCreate.js +2 -1
- package/dist/features/account/components/AddressesIndexListing.js +5 -1
- package/dist/features/account/components/BecomeSellerView.js +2 -1
- package/dist/features/account/components/BuyerAccountGuideView.js +6 -1
- package/dist/features/account/components/BuyerAuctionsGuideView.js +5 -1
- package/dist/features/account/components/BuyerOrdersGuideView.js +5 -1
- package/dist/features/account/components/BuyerShoppingGuideView.js +5 -1
- package/dist/features/account/components/LinkedAccountsSection.js +5 -1
- package/dist/features/account/components/NotificationBell.js +8 -1
- package/dist/features/account/components/NotificationPreferencesPanel.js +6 -1
- package/dist/features/account/components/OrderDetailView.d.ts +1 -1
- package/dist/features/account/components/OrderDetailView.js +1 -1
- package/dist/features/account/components/ProfileView.d.ts +1 -1
- package/dist/features/account/components/ProfileView.js +1 -1
- package/dist/features/account/components/UserAccountHubView.d.ts +1 -1
- package/dist/features/account/components/UserAccountHubView.js +1 -1
- package/dist/features/account/components/UserBidsView.js +5 -1
- package/dist/features/account/components/UserOffersPanel.js +9 -1
- package/dist/features/account/components/UserOrderTrackView.d.ts +1 -1
- package/dist/features/account/components/UserOrderTrackView.js +1 -1
- package/dist/features/account/components/UserOrdersView.js +6 -1
- package/dist/features/account/components/UserReturnsView.js +3 -1
- package/dist/features/account/components/UserSidebar.js +8 -1
- package/dist/features/account/schemas/index.d.ts +10 -10
- package/dist/features/addresses/repository/addresses.repository.js +1 -1
- package/dist/features/addresses/schemas/address-form.d.ts +16 -16
- package/dist/features/addresses/schemas/index.d.ts +2 -2
- package/dist/features/admin/actions/admin-actions.d.ts +3 -3
- package/dist/features/admin/actions/admin-coupon-actions.d.ts +1 -1
- package/dist/features/admin/actions/admin-read-actions.d.ts +3 -3
- package/dist/features/admin/api/bids/route.js +1 -5
- package/dist/features/admin/api/coupons/route.js +1 -5
- package/dist/features/admin/api/products/route.js +1 -5
- package/dist/features/admin/api/reviews/route.js +1 -5
- package/dist/features/admin/components/AdminActionIndexView.d.ts +1 -1
- package/dist/features/admin/components/AdminActionIndexView.js +7 -1
- package/dist/features/admin/components/AdminAdEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminAdEditorView.js +8 -1
- package/dist/features/admin/components/AdminAddressBookView.js +8 -1
- package/dist/features/admin/components/AdminAddressClustersView.js +7 -1
- package/dist/features/admin/components/AdminAddressEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminAddressEditorView.js +4 -1
- package/dist/features/admin/components/AdminAddressesView.js +6 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.d.ts +1 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.js +5 -1
- package/dist/features/admin/components/AdminAnalyticsGuideView.js +5 -1
- package/dist/features/admin/components/AdminAnalyticsView.js +4 -2
- package/dist/features/admin/components/AdminArtView.d.ts +1 -1
- package/dist/features/admin/components/AdminArtView.js +1 -1
- package/dist/features/admin/components/AdminAuditLogView.d.ts +1 -1
- package/dist/features/admin/components/AdminAuditLogView.js +5 -1
- package/dist/features/admin/components/AdminBeysView.d.ts +1 -1
- package/dist/features/admin/components/AdminBeysView.js +3 -1
- package/dist/features/admin/components/AdminBidsView.d.ts +1 -1
- package/dist/features/admin/components/AdminBidsView.js +7 -2
- package/dist/features/admin/components/AdminBlogEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBlogEditorView.js +14 -2
- package/dist/features/admin/components/AdminBlogView.d.ts +1 -1
- package/dist/features/admin/components/AdminBlogView.js +2 -1
- package/dist/features/admin/components/AdminBrandEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBrandEditorView.js +7 -2
- package/dist/features/admin/components/AdminBrandsView.d.ts +1 -1
- package/dist/features/admin/components/AdminBrandsView.js +4 -2
- package/dist/features/admin/components/AdminBundleEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBundleEditorView.js +3 -1
- package/dist/features/admin/components/AdminBundlesView.js +7 -1
- package/dist/features/admin/components/AdminCarouselEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselEditorView.js +12 -3
- package/dist/features/admin/components/AdminCarouselGroupEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselView.js +16 -2
- package/dist/features/admin/components/AdminCartsView.d.ts +1 -1
- package/dist/features/admin/components/AdminCartsView.js +3 -1
- package/dist/features/admin/components/AdminCatalogGuideView.js +5 -1
- package/dist/features/admin/components/AdminCategoriesView.d.ts +1 -1
- package/dist/features/admin/components/AdminCategoriesView.js +3 -1
- package/dist/features/admin/components/AdminCategoryEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
- package/dist/features/admin/components/AdminClassifiedView.d.ts +1 -1
- package/dist/features/admin/components/AdminClassifiedView.js +1 -1
- package/dist/features/admin/components/AdminContactView.d.ts +1 -1
- package/dist/features/admin/components/AdminContactView.js +5 -1
- package/dist/features/admin/components/AdminContentGuideView.js +5 -1
- package/dist/features/admin/components/AdminCouponEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +5 -1
- package/dist/features/admin/components/AdminCouponsView.d.ts +1 -1
- package/dist/features/admin/components/AdminCouponsView.js +6 -1
- package/dist/features/admin/components/AdminDashboardView.d.ts +1 -1
- package/dist/features/admin/components/AdminDashboardView.js +2 -2
- package/dist/features/admin/components/AdminDigitalCodesView.d.ts +1 -1
- package/dist/features/admin/components/AdminDigitalCodesView.js +1 -1
- package/dist/features/admin/components/AdminFaqEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminFaqEditorView.js +12 -2
- package/dist/features/admin/components/AdminFaqsView.d.ts +1 -1
- package/dist/features/admin/components/AdminFaqsView.js +3 -1
- package/dist/features/admin/components/AdminFeatureEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminFeatureEditorView.js +6 -2
- package/dist/features/admin/components/AdminFeaturesView.d.ts +1 -1
- package/dist/features/admin/components/AdminFeaturesView.js +2 -1
- package/dist/features/admin/components/AdminFulfillmentView.js +2 -1
- package/dist/features/admin/components/AdminGatewayEventsView.d.ts +1 -1
- package/dist/features/admin/components/AdminGatewayEventsView.js +8 -1
- package/dist/features/admin/components/AdminGroupedListingsView.d.ts +1 -1
- package/dist/features/admin/components/AdminGroupedListingsView.js +7 -2
- package/dist/features/admin/components/AdminGuideHubView.js +7 -2
- package/dist/features/admin/components/AdminHistoryView.d.ts +1 -1
- package/dist/features/admin/components/AdminHistoryView.js +1 -1
- package/dist/features/admin/components/AdminIntegrationsView.js +6 -1
- package/dist/features/admin/components/AdminInvoicingView.js +6 -1
- package/dist/features/admin/components/AdminLiveView.d.ts +1 -1
- package/dist/features/admin/components/AdminLiveView.js +1 -1
- package/dist/features/admin/components/AdminMediaView.d.ts +1 -1
- package/dist/features/admin/components/AdminMediaView.js +11 -1
- package/dist/features/admin/components/AdminMoneyCasesView.d.ts +1 -1
- package/dist/features/admin/components/AdminMoneyCasesView.js +7 -1
- package/dist/features/admin/components/AdminNavEditorView.js +3 -1
- package/dist/features/admin/components/AdminNavigationView.d.ts +1 -1
- package/dist/features/admin/components/AdminNavigationView.js +10 -1
- package/dist/features/admin/components/AdminNewsletterView.d.ts +1 -1
- package/dist/features/admin/components/AdminNewsletterView.js +7 -1
- package/dist/features/admin/components/AdminNotificationsView.d.ts +1 -1
- package/dist/features/admin/components/AdminNotificationsView.js +5 -1
- package/dist/features/admin/components/AdminOffersView.d.ts +1 -1
- package/dist/features/admin/components/AdminOffersView.js +5 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +8 -2
- package/dist/features/admin/components/AdminOrdersGuideView.js +4 -1
- package/dist/features/admin/components/AdminOrdersView.d.ts +1 -1
- package/dist/features/admin/components/AdminOrdersView.js +3 -1
- package/dist/features/admin/components/AdminPartsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPartsView.js +3 -1
- package/dist/features/admin/components/AdminPaymentClustersView.js +7 -1
- package/dist/features/admin/components/AdminPaymentMethodsView.js +7 -1
- package/dist/features/admin/components/AdminPaymentsGuideView.js +4 -1
- package/dist/features/admin/components/AdminPayoutsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPayoutsView.js +5 -1
- package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPrizeDrawsView.js +7 -1
- package/dist/features/admin/components/AdminProductEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminProductEditorView.js +5 -2
- package/dist/features/admin/components/AdminProductsView.d.ts +1 -1
- package/dist/features/admin/components/AdminProductsView.js +5 -2
- package/dist/features/admin/components/AdminReturnRequestsView.js +3 -1
- package/dist/features/admin/components/AdminReviewsView.d.ts +1 -1
- package/dist/features/admin/components/AdminReviewsView.js +8 -1
- package/dist/features/admin/components/AdminScammersView.d.ts +1 -1
- package/dist/features/admin/components/AdminScammersView.js +5 -1
- package/dist/features/admin/components/AdminSectionsView.js +1 -1
- package/dist/features/admin/components/AdminSessionsManager.js +1 -1
- package/dist/features/admin/components/AdminSessionsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSessionsView.js +6 -1
- package/dist/features/admin/components/AdminSidebar.js +7 -1
- package/dist/features/admin/components/AdminSiteConfigGuideView.js +5 -1
- package/dist/features/admin/components/AdminSiteSettingsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSiteSettingsView.js +21 -5
- package/dist/features/admin/components/AdminSparesView.d.ts +1 -1
- package/dist/features/admin/components/AdminSparesView.js +1 -1
- package/dist/features/admin/components/AdminStickersView.d.ts +1 -1
- package/dist/features/admin/components/AdminStickersView.js +1 -1
- package/dist/features/admin/components/AdminStoreAddressesView.js +1 -1
- package/dist/features/admin/components/AdminStoreEditorView.js +7 -1
- package/dist/features/admin/components/AdminStoresGuideView.js +5 -1
- package/dist/features/admin/components/AdminStoresView.d.ts +1 -1
- package/dist/features/admin/components/AdminStoresView.js +4 -1
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.js +8 -3
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +12 -1
- package/dist/features/admin/components/AdminSupportTicketsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSupportTicketsView.js +4 -1
- package/dist/features/admin/components/AdminTaxCodeEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminTaxCodeEditorView.js +4 -1
- package/dist/features/admin/components/AdminTaxCodesView.d.ts +1 -1
- package/dist/features/admin/components/AdminTaxCodesView.js +1 -1
- package/dist/features/admin/components/AdminTeamGuideView.js +5 -1
- package/dist/features/admin/components/AdminTeamView.d.ts +1 -1
- package/dist/features/admin/components/AdminTeamView.js +4 -1
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.js +4 -1
- package/dist/features/admin/components/AdminTesterChecklistView.d.ts +1 -1
- package/dist/features/admin/components/AdminTesterChecklistView.js +4 -1
- package/dist/features/admin/components/AdminTopBar.js +1 -1
- package/dist/features/admin/components/AdminTrustGuideView.js +5 -1
- package/dist/features/admin/components/AdminUserEditorView.js +12 -1
- package/dist/features/admin/components/AdminUsersGuideView.js +5 -1
- package/dist/features/admin/components/AdminUsersView.d.ts +1 -1
- package/dist/features/admin/components/AdminViewCards.js +4 -1
- package/dist/features/admin/components/AdminWishlistsView.d.ts +1 -1
- package/dist/features/admin/components/AdminWishlistsView.js +1 -1
- package/dist/features/admin/components/DashboardStats.js +3 -1
- package/dist/features/admin/components/DataListingView.d.ts +1 -1
- package/dist/features/admin/components/DataListingView.js +14 -2
- package/dist/features/admin/components/DataTable.js +7 -1
- package/dist/features/admin/components/OwnerQuickActions.d.ts +7 -1
- package/dist/features/admin/components/OwnerQuickActions.js +3 -2
- package/dist/features/admin/components/QuickEditMenu.js +2 -1
- package/dist/features/admin/components/ViewAuditLogEntryModal.js +6 -1
- package/dist/features/admin/components/ViewNotificationModal.js +6 -1
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +2 -1
- package/dist/features/admin/components/analytics/AdminStatCard.js +3 -1
- package/dist/features/admin/components/analytics/AdminTopProductsTable.js +3 -1
- package/dist/features/admin/components/sections/adminSectionsTypes.js +1 -0
- package/dist/features/admin/constants/site-settings-tabs.d.ts +1 -1
- package/dist/features/admin/hooks/useAdminListing.d.ts +1 -1
- package/dist/features/admin/hooks/useOptimisticRowFlag.js +1 -1
- package/dist/features/admin/schemas/action-index-form.d.ts +2 -2
- package/dist/features/admin/schemas/admin-editor-forms.d.ts +12 -12
- package/dist/features/admin/schemas/admin-editor-forms.js +0 -1
- package/dist/features/admin/schemas/admin-ops-forms.d.ts +8 -8
- package/dist/features/admin/schemas/admin-user-form.d.ts +8 -8
- package/dist/features/admin/schemas/firestore.d.ts +52 -0
- package/dist/features/admin/schemas/firestore.js +20 -0
- package/dist/features/admin/schemas/nav-item-form.d.ts +8 -8
- package/dist/features/auctions/actions/bid-actions.js +1 -1
- package/dist/features/auctions/api/route.js +1 -8
- package/dist/features/auctions/components/AuctionBidsTable.js +6 -1
- package/dist/features/auctions/components/AuctionBottomActions.js +1 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +12 -9
- package/dist/features/auctions/components/AuctionFilters.js +1 -1
- package/dist/features/auctions/components/AuctionLiveStatusBadge.js +1 -1
- package/dist/features/auctions/components/AuctionsListView.js +3 -1
- package/dist/features/auctions/components/CollapsibleBidHistory.js +4 -1
- package/dist/features/auctions/components/LiveBidPrice.js +3 -1
- package/dist/features/auctions/components/LiveMinIncrement.js +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +9 -3
- package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +3 -1
- package/dist/features/auctions/components/PlaceBidFormClient.js +8 -1
- package/dist/features/auctions/schemas/index.d.ts +34 -34
- package/dist/features/auth/components/ForgotPasswordView.js +6 -1
- package/dist/features/auth/components/Guards.js +4 -1
- package/dist/features/auth/components/LoginForm.js +7 -1
- package/dist/features/auth/components/OAuthLoadingView.js +3 -1
- package/dist/features/auth/components/RegisterForm.js +5 -1
- package/dist/features/auth/components/ResetPasswordView.js +6 -1
- package/dist/features/auth/components/SocialAuthButtons.js +4 -1
- package/dist/features/auth/components/VerifyEmailView.js +4 -1
- package/dist/features/auth/hooks/useAuth.js +1 -1
- package/dist/features/auth/schemas/index.d.ts +2 -2
- package/dist/features/before-after/api/route.js +1 -5
- package/dist/features/before-after/components/BeforeAfterGallery.js +3 -1
- package/dist/features/before-after/components/BeforeAfterSlider.js +3 -1
- package/dist/features/before-after/schemas/index.d.ts +4 -4
- package/dist/features/beys/components/BeyDetailPageView.js +7 -1
- package/dist/features/blog/actions/blog-actions.d.ts +39 -39
- package/dist/features/blog/api/route.js +1 -8
- package/dist/features/blog/components/BlogFeaturedCard.js +6 -1
- package/dist/features/blog/components/BlogFilters.js +1 -1
- package/dist/features/blog/components/BlogIndexListing.js +7 -1
- package/dist/features/blog/components/BlogIndexPageView.d.ts +2 -3
- package/dist/features/blog/components/BlogIndexPageView.js +9 -10
- package/dist/features/blog/components/BlogListView.js +6 -1
- package/dist/features/blog/components/BlogPostForm.js +9 -2
- package/dist/features/blog/components/BlogPostView.js +5 -1
- package/dist/features/blog/schemas/blog-form.d.ts +10 -10
- package/dist/features/blog/schemas/index.d.ts +80 -80
- package/dist/features/cart/actions/cart-actions.js +1 -1
- package/dist/features/cart/api/route.js +1 -5
- package/dist/features/cart/components/CartDrawer.js +6 -1
- package/dist/features/cart/components/CartGroupLineRow.js +5 -1
- package/dist/features/cart/components/CartPriceBreakdown.js +4 -1
- package/dist/features/cart/components/CartSummary.js +2 -1
- package/dist/features/cart/components/CartView.js +3 -1
- package/dist/features/cart/components/CheckoutAddressStep.js +3 -1
- package/dist/features/cart/components/CheckoutSuccessView.d.ts +1 -1
- package/dist/features/cart/components/CheckoutSuccessView.js +1 -1
- package/dist/features/cart/components/CheckoutView.js +3 -1
- package/dist/features/cart/components/PointsTenderPicker.js +3 -1
- package/dist/features/cart/components/ShippingPicker.js +4 -1
- package/dist/features/cart/components/StoreAddonsPicker.js +3 -1
- package/dist/features/cart/schemas/index.d.ts +30 -30
- package/dist/features/cart/utils/guest-cart.js +1 -5
- package/dist/features/catalogue/actions/approve-catalogue-listing.js +1 -1
- package/dist/features/catalogue/actions/list-from-catalogue.js +2 -1
- package/dist/features/catalogue/actions/submit-for-approval.js +1 -1
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +6 -1
- package/dist/features/catalogue/components/CatalogueItemEditorView.js +1 -1
- package/dist/features/catalogue/components/PublicCatalogueItemDetailView.js +6 -1
- package/dist/features/catalogue/components/PublicCatalogueView.js +5 -1
- package/dist/features/catalogue/components/UserCatalogueView.js +7 -1
- package/dist/features/catalogue/repository/catalogue.repository.js +1 -1
- package/dist/features/catalogue/schemas/validation.d.ts +12 -12
- package/dist/features/catalogue/utils/product-from-item.js +1 -1
- package/dist/features/categories/api/route.js +5 -23
- package/dist/features/categories/components/BrandDetailPageView.js +6 -2
- package/dist/features/categories/components/BrandDetailTabs.js +2 -1
- package/dist/features/categories/components/BreadcrumbTrail.js +4 -2
- package/dist/features/categories/components/BundleBuyNowCta.js +5 -2
- package/dist/features/categories/components/BundleCollage.js +5 -1
- package/dist/features/categories/components/BundleDetailView.js +6 -1
- package/dist/features/categories/components/BundleDynamicRuleEditor.js +6 -1
- package/dist/features/categories/components/BundleItemsPicker.js +7 -1
- package/dist/features/categories/components/BundlesListView.d.ts +2 -3
- package/dist/features/categories/components/BundlesListView.js +6 -7
- package/dist/features/categories/components/CategoriesIndexListing.js +55 -6
- package/dist/features/categories/components/CategoriesIndexPageView.d.ts +2 -3
- package/dist/features/categories/components/CategoriesIndexPageView.js +3 -33
- package/dist/features/categories/components/CategoryBundlesListing.js +8 -2
- package/dist/features/categories/components/CategoryDetailPageView.js +7 -2
- package/dist/features/categories/components/CategoryDetailTabs.js +2 -1
- package/dist/features/categories/components/CategoryFilters.js +1 -1
- package/dist/features/categories/components/CategoryForm.js +3 -1
- package/dist/features/categories/components/CategoryGrid.js +3 -1
- package/dist/features/categories/components/CategoryHighlightsAndFaqSection.js +3 -1
- package/dist/features/categories/components/CategoryProductsListing.js +8 -1
- package/dist/features/categories/components/CategorySelectorCreate.js +6 -1
- package/dist/features/categories/components/CategorySortSelect.js +4 -1
- package/dist/features/categories/components/CategoryStoresListing.js +2 -1
- package/dist/features/categories/components/CategoryTableColumns.js +6 -2
- package/dist/features/categories/components/CategoryTemplatePicker.js +4 -1
- package/dist/features/categories/components/CategoryTree.js +2 -1
- package/dist/features/categories/components/ConcernCard.js +3 -1
- package/dist/features/categories/components/ConcernGrid.js +1 -1
- package/dist/features/categories/components/PriceGuidanceHint.js +3 -1
- package/dist/features/categories/components/SubcategoryCardRow.js +4 -1
- package/dist/features/categories/constants/category-tabs.d.ts +1 -1
- package/dist/features/categories/constants/category-tabs.js +7 -0
- package/dist/features/categories/hooks/useCategories.d.ts +6 -0
- package/dist/features/categories/hooks/useCategories.js +73 -2
- package/dist/features/categories/schemas/bundle-form.d.ts +22 -22
- package/dist/features/categories/schemas/index.d.ts +100 -100
- package/dist/features/categories/types/index.d.ts +1 -1
- package/dist/features/checkout/components/CheckoutStepper.js +3 -1
- package/dist/features/classified/components/ClassifiedDetailPageView.js +9 -9
- package/dist/features/classified/components/ClassifiedFilters.js +3 -1
- package/dist/features/collections/api/route.js +1 -5
- package/dist/features/collections/components/CollectionCard.js +4 -1
- package/dist/features/collections/schemas/index.d.ts +9 -9
- package/dist/features/consultation/api/route.js +1 -5
- package/dist/features/consultation/components/ConsultationForm.js +3 -1
- package/dist/features/consultation/schemas/index.d.ts +8 -8
- package/dist/features/contact/components/ContactForm.js +5 -2
- package/dist/features/contact/components/ContactInfoSidebar.js +4 -1
- package/dist/features/contact/components/ContactPageView.js +6 -1
- package/dist/features/contact/email.js +2 -5
- package/dist/features/corporate/api/route.js +1 -5
- package/dist/features/corporate/components/CorporateInquiryForm.js +3 -1
- package/dist/features/dashboard/components/DashboardHubView.js +7 -1
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +8 -8
- package/dist/features/digital-codes/components/DigitalCodeFilters.js +1 -1
- package/dist/features/dispute-reasons/components/AdminDisputeReasonsView.js +4 -1
- package/dist/features/events/components/AdminEventEditorView.d.ts +1 -1
- package/dist/features/events/components/AdminEventEditorView.js +14 -3
- package/dist/features/events/components/AdminEventEntriesView.js +10 -2
- package/dist/features/events/components/AdminEventsView.d.ts +1 -1
- package/dist/features/events/components/AdminEventsView.js +2 -1
- package/dist/features/events/components/EventBanner.js +3 -1
- package/dist/features/events/components/EventCard.js +7 -1
- package/dist/features/events/components/EventDetailView.d.ts +1 -1
- package/dist/features/events/components/EventDetailView.js +1 -1
- package/dist/features/events/components/EventFilters.js +1 -1
- package/dist/features/events/components/EventFormDrawer.js +1 -1
- package/dist/features/events/components/EventInsights.js +3 -1
- package/dist/features/events/components/EventLeaderboard.js +3 -1
- package/dist/features/events/components/EventLikeButton.js +4 -1
- package/dist/features/events/components/EventLikersRail.js +5 -1
- package/dist/features/events/components/EventOfferCard.js +3 -1
- package/dist/features/events/components/EventParticipateView.js +1 -1
- package/dist/features/events/components/EventPollWidget.js +8 -1
- package/dist/features/events/components/EventRaffleEntryForm.js +3 -1
- package/dist/features/events/components/EventRaffleWinnerView.js +6 -1
- package/dist/features/events/components/EventRafflesSection.js +3 -1
- package/dist/features/events/components/EventSaleBanner.js +4 -1
- package/dist/features/events/components/EventStatusBadge.js +1 -1
- package/dist/features/events/components/EventTypeBadge.js +1 -1
- package/dist/features/events/components/EventsIndexListing.js +7 -1
- package/dist/features/events/components/EventsListPageView.d.ts +2 -3
- package/dist/features/events/components/EventsListPageView.js +11 -12
- package/dist/features/events/components/EventsListView.js +4 -1
- package/dist/features/events/components/RelatedEventsCarousel.js +3 -1
- package/dist/features/events/components/SpinWheel.js +1 -1
- package/dist/features/events/components/SpinWheelView.js +7 -1
- package/dist/features/events/schemas/event-form.d.ts +5 -0
- package/dist/features/events/schemas/event-form.js +17 -0
- package/dist/features/events/schemas/firestore.d.ts +49 -1
- package/dist/features/events/schemas/index.d.ts +184 -184
- package/dist/features/events/utils/carousel-slide.d.ts +0 -9
- package/dist/features/events/utils/carousel-slide.js +38 -1
- package/dist/features/faq/actions/faq-actions.d.ts +12 -12
- package/dist/features/faq/components/ContactCTA.js +5 -1
- package/dist/features/faq/components/FAQAccordion.js +6 -1
- package/dist/features/faq/components/FAQCategorySidebar.js +5 -1
- package/dist/features/faq/components/FAQHelpfulButtons.js +3 -1
- package/dist/features/faq/components/FAQPageContent.js +8 -1
- package/dist/features/faq/components/FAQSearchableList.js +2 -1
- package/dist/features/faq/components/FAQSortDropdown.js +4 -1
- package/dist/features/faq/components/RelatedFAQs.js +4 -1
- package/dist/features/faq/constants/help-guides.d.ts +8 -5
- package/dist/features/faq/constants/help-guides.js +9 -5
- package/dist/features/faq/schemas/index.d.ts +14 -14
- package/dist/features/filters/AsyncFacetSection.js +8 -3
- package/dist/features/filters/FilterFacetSection.js +11 -6
- package/dist/features/filters/FilterPanel.js +1 -1
- package/dist/features/filters/RangeFilter.js +8 -3
- package/dist/features/filters/SwitchFilter.js +7 -3
- package/dist/features/filters/filterUtils.d.ts +0 -2
- package/dist/features/filters/filterUtils.js +0 -4
- package/dist/features/filters/index.d.ts +1 -1
- package/dist/features/filters/index.js +1 -1
- package/dist/features/forms/Checkbox.js +7 -4
- package/dist/features/forms/Input.js +7 -5
- package/dist/features/forms/Radio.js +9 -6
- package/dist/features/forms/Select.js +5 -3
- package/dist/features/forms/Slider.js +6 -3
- package/dist/features/forms/Textarea.js +6 -3
- package/dist/features/forms/Toggle.js +6 -4
- package/dist/features/forms/index.d.ts +1 -1
- package/dist/features/forms/index.js +1 -1
- package/dist/features/forms/utils.d.ts +0 -2
- package/dist/features/forms/utils.js +0 -4
- package/dist/features/gateway-events/schemas/index.d.ts +10 -10
- package/dist/features/grouped/components/GroupedListingDetailView.js +4 -1
- package/dist/features/grouped/components/GroupedListingEditorView.js +5 -2
- package/dist/features/grouped/components/GroupedListingsCarousel.js +1 -1
- package/dist/features/grouped/schemas/grouped-listing-form.d.ts +8 -8
- package/dist/features/grouped/schemas/index.d.ts +8 -8
- package/dist/features/history/hooks/useHistory.js +1 -1
- package/dist/features/history/utils/guest-history.js +1 -5
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
- package/dist/features/homepage/components/AdSlot.js +3 -1
- package/dist/features/homepage/components/BrandsSection.js +6 -1
- package/dist/features/homepage/components/CTABannerSection.js +6 -1
- package/dist/features/homepage/components/CharacterHotspot.js +5 -1
- package/dist/features/homepage/components/CharacterHotspotForm.js +8 -1
- package/dist/features/homepage/components/CollectionCardsSection.js +4 -1
- package/dist/features/homepage/components/CustomCardsSection.js +13 -2
- package/dist/features/homepage/components/CustomerReviewsSection.js +5 -1
- package/dist/features/homepage/components/FAQSection.js +8 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.d.ts +6 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.js +4 -2
- package/dist/features/homepage/components/GoogleReviewsSection.js +6 -1
- package/dist/features/homepage/components/HeroCarousel.js +6 -1
- package/dist/features/homepage/components/HomepageCouponsSection.d.ts +25 -0
- package/dist/features/homepage/components/HomepageCouponsSection.js +42 -0
- package/dist/features/homepage/components/HowItWorksSection.d.ts +1 -1
- package/dist/features/homepage/components/HowItWorksSection.js +7 -1
- package/dist/features/homepage/components/MarketplaceHomepageView.js +52 -4
- package/dist/features/homepage/components/NewsletterSection.js +4 -1
- package/dist/features/homepage/components/PromoGrid.js +4 -1
- package/dist/features/homepage/components/SectionCarousel.d.ts +1 -1
- package/dist/features/homepage/components/SectionCarousel.js +6 -1
- package/dist/features/homepage/components/SecurityHighlightsSection.js +6 -1
- package/dist/features/homepage/components/ShopByCategorySection.js +7 -1
- package/dist/features/homepage/components/SocialFeedSection.js +6 -1
- package/dist/features/homepage/components/SocialPostCard.js +4 -1
- package/dist/features/homepage/components/StatsCounterSection.js +5 -1
- package/dist/features/homepage/components/TestimonialsCarousel.js +4 -1
- package/dist/features/homepage/components/TrustFeaturesSection.js +5 -1
- package/dist/features/homepage/components/WelcomeSection.js +10 -1
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +8 -1
- package/dist/features/homepage/lib/section-renderer.d.ts +2 -0
- package/dist/features/homepage/lib/section-renderer.js +8 -0
- package/dist/features/homepage/schemas/firestore.d.ts +23 -2
- package/dist/features/homepage/schemas/firestore.js +2 -0
- package/dist/features/homepage/schemas/index.d.ts +133 -133
- package/dist/features/inventory/components/ReceiveStationView.js +9 -1
- package/dist/features/jobs/actions/enqueue-job.js +1 -1
- package/dist/features/layout/AppLayoutShell.d.ts +23 -1
- package/dist/features/layout/AppLayoutShell.js +13 -12
- package/dist/features/layout/AutoBreadcrumbs.js +3 -1
- package/dist/features/layout/BackToTop.js +2 -1
- package/dist/features/layout/BottomActions.js +5 -1
- package/dist/features/layout/BottomActionsContext.d.ts +1 -1
- package/dist/features/layout/BottomChrome.js +1 -1
- package/dist/features/layout/BottomNavItem.d.ts +9 -1
- package/dist/features/layout/BottomNavItem.js +20 -5
- package/dist/features/layout/BottomNavLayout.js +1 -1
- package/dist/features/layout/BottomSheet.js +4 -1
- package/dist/features/layout/Breadcrumbs.js +2 -1
- package/dist/features/layout/FooterLayout.js +5 -1
- package/dist/features/layout/LocaleSwitcher.js +1 -1
- package/dist/features/layout/NavItem.js +2 -1
- package/dist/features/layout/NavbarLayout.js +5 -1
- package/dist/features/layout/PageTabs.js +1 -1
- package/dist/features/layout/SideActionDock.js +7 -1
- package/dist/features/layout/SidebarLayout.d.ts +1 -1
- package/dist/features/layout/SidebarLayout.js +2 -1
- package/dist/features/layout/TitleBarLayout.js +9 -1
- package/dist/features/layout/index.d.ts +1 -1
- package/dist/features/live/components/LiveItemDetailPageView.js +8 -8
- package/dist/features/live/components/LiveItemFilters.js +3 -1
- package/dist/features/lottery/schemas/config-write.d.ts +10 -10
- package/dist/features/lottery/schemas/zod.d.ts +6 -6
- package/dist/features/media/MediaLightbox.js +3 -5
- package/dist/features/media/modals/ImageCropModal.js +6 -1
- package/dist/features/media/modals/ImageEditor.js +6 -1
- package/dist/features/media/modals/VideoTrimModal.js +6 -1
- package/dist/features/media/types/index.d.ts +4 -4
- package/dist/features/media/upload/MediaUploadList.js +7 -1
- package/dist/features/orders/components/OrderAddonBadges.js +2 -1
- package/dist/features/orders/components/OrderCompletionPanel.d.ts +1 -1
- package/dist/features/orders/components/OrderCompletionPanel.js +1 -1
- package/dist/features/orders/components/OrderFilters.js +1 -1
- package/dist/features/orders/components/OrderPaymentSummary.js +4 -1
- package/dist/features/orders/components/OrderProvenanceCard.js +5 -1
- package/dist/features/orders/components/OrderScopeTabs.js +1 -1
- package/dist/features/orders/components/OrderSiblingPayments.js +3 -1
- package/dist/features/orders/components/OrderStatusTimeline.js +4 -1
- package/dist/features/orders/components/OrdersList.js +4 -1
- package/dist/features/orders/components/RaiseDisputeForm.js +1 -1
- package/dist/features/orders/components/RefundHistoryTable.js +4 -1
- package/dist/features/orders/components/RefundRequestView.js +2 -2
- package/dist/features/orders/components/YourPurchaseStrip.js +5 -1
- package/dist/features/orders/schemas/index.d.ts +86 -86
- package/dist/features/parts/components/AssemblyDrawer.js +8 -1
- package/dist/features/parts/components/ModelCompositionPanel.js +5 -1
- package/dist/features/parts/components/PartDetailPageView.js +7 -1
- package/dist/features/parts/components/PartsIndexPageView.js +6 -1
- package/dist/features/parts/components/PartsSearchBox.js +5 -1
- package/dist/features/parts/schemas/firestore.d.ts +274 -0
- package/dist/features/parts/schemas/firestore.js +19 -0
- package/dist/features/payments/repository/saved-payment-methods.repository.js +1 -1
- package/dist/features/payments/schemas/index.d.ts +10 -10
- package/dist/features/points/schemas/adjust-form.d.ts +2 -2
- package/dist/features/pre-orders/api/admin/route.js +1 -5
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +1 -1
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +10 -3
- package/dist/features/pre-orders/components/PreOrderActionsClient.js +6 -1
- package/dist/features/pre-orders/components/PreOrderBadge.js +2 -1
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +10 -9
- package/dist/features/pre-orders/components/PreOrderFilters.js +1 -1
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +11 -2
- package/dist/features/pre-orders/components/PreOrdersListView.js +3 -1
- package/dist/features/pre-orders/components/PreorderCard.js +1 -1
- package/dist/features/pre-orders/schemas/index.d.ts +15 -15
- package/dist/features/price-index/components/PriceIndexToolView.js +4 -1
- package/dist/features/pricing/components/AdminPricingView.js +4 -1
- package/dist/features/print/components/BoxLabelPrintView.js +5 -1
- package/dist/features/print/components/LabelProfilePicker.js +3 -1
- package/dist/features/print/components/labels.js +3 -1
- package/dist/features/products/api/route.js +1 -3
- package/dist/features/products/columns/productTableColumns.js +5 -1
- package/dist/features/products/components/ArtStickersListView.js +3 -1
- package/dist/features/products/components/AuctionDetailView.d.ts +1 -1
- package/dist/features/products/components/AuctionDetailView.js +2 -1
- package/dist/features/products/components/AuctionsIndexListing.js +10 -2
- package/dist/features/products/components/AvailabilityScopeHint.js +3 -1
- package/dist/features/products/components/AvailabilityTabs.js +1 -1
- package/dist/features/products/components/BidHistory.js +4 -1
- package/dist/features/products/components/CityCollectiblesView.js +6 -1
- package/dist/features/products/components/CompareOverlay.js +6 -1
- package/dist/features/products/components/CustomFieldsEditor.js +6 -1
- package/dist/features/products/components/CustomSectionTabContent.js +4 -6
- package/dist/features/products/components/CustomSectionsEditor.js +6 -1
- package/dist/features/products/components/FeatureBadge.js +2 -1
- package/dist/features/products/components/GroupMemberPicker.js +9 -2
- package/dist/features/products/components/GroupSettingsPanel.js +13 -2
- package/dist/features/products/components/MakeOfferButton.js +6 -1
- package/dist/features/products/components/MarketplaceBundleCard.js +6 -1
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +7 -1
- package/dist/features/products/components/NonRefundableConsentModal.js +6 -1
- package/dist/features/products/components/PreOrderDetailView.d.ts +1 -1
- package/dist/features/products/components/PreOrderDetailView.js +1 -1
- package/dist/features/products/components/PrizeDrawCollage.js +6 -1
- package/dist/features/products/components/PrizeDrawDetailPageView.js +7 -8
- package/dist/features/products/components/PrizeDrawEntryActions.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawEntryActions.js +8 -2
- package/dist/features/products/components/PrizeDrawWinnerMappingView.js +7 -1
- package/dist/features/products/components/PrizeDrawsIndexListing.js +8 -1
- package/dist/features/products/components/PrizeDrawsListingView.js +3 -1
- package/dist/features/products/components/PrizeDrawsSection.js +3 -1
- package/dist/features/products/components/PrizeRevealModal.js +6 -1
- package/dist/features/products/components/ProductCardMetadataSection.js +3 -1
- package/dist/features/products/components/ProductDetailActions.js +4 -1
- package/dist/features/products/components/ProductDetailPageView.js +11 -9
- package/dist/features/products/components/ProductDetailView.d.ts +1 -1
- package/dist/features/products/components/ProductDetailView.js +1 -1
- package/dist/features/products/components/ProductFeatureBadges.js +4 -1
- package/dist/features/products/components/ProductFeaturesSelector.js +3 -1
- package/dist/features/products/components/ProductFilters.js +2 -1
- package/dist/features/products/components/ProductForm.js +1 -1
- package/dist/features/products/components/ProductGalleryClient.js +4 -1
- package/dist/features/products/components/ProductGradingTab.js +4 -1
- package/dist/features/products/components/ProductGrid.d.ts +1 -1
- package/dist/features/products/components/ProductGrid.js +7 -1
- package/dist/features/products/components/ProductsIndexListing.js +11 -3
- package/dist/features/products/components/ProductsIndexPageView.js +6 -2
- package/dist/features/products/components/RelatedItemsSection.js +1 -1
- package/dist/features/products/components/RelatedProducts.js +3 -1
- package/dist/features/products/components/ShowGroupSection.js +7 -1
- package/dist/features/products/components/SparesListView.js +4 -1
- package/dist/features/products/components/SublistingCarouselSection.js +4 -1
- package/dist/features/products/components/SublistingCategorySelect.js +2 -1
- package/dist/features/products/hooks/useProducts.js +1 -1
- package/dist/features/products/repository/products.repository.js +0 -1
- package/dist/features/products/schemas/index.d.ts +70 -70
- package/dist/features/products/schemas/product-features.validators.d.ts +52 -52
- package/dist/features/promotions/actions/promotions-actions.js +22 -6
- package/dist/features/promotions/api/route.js +1 -8
- package/dist/features/promotions/components/AttachedCouponsSection.js +5 -2
- package/dist/features/promotions/components/CouponCard.js +8 -1
- package/dist/features/promotions/components/CouponCodeCopyRow.js +2 -1
- package/dist/features/promotions/components/CouponHelpDetails.js +4 -1
- package/dist/features/promotions/components/CouponsIndexListing.js +12 -1
- package/dist/features/promotions/components/PromotionsView.js +4 -1
- package/dist/features/promotions/constants/attached-coupons.d.ts +14 -0
- package/dist/features/promotions/repository/coupons.repository.js +32 -2
- package/dist/features/promotions/schemas/firestore.d.ts +33 -0
- package/dist/features/promotions/schemas/firestore.js +44 -0
- package/dist/features/promotions/schemas/index.d.ts +108 -108
- package/dist/features/reviews/components/ReviewDetailPageView.js +4 -1
- package/dist/features/reviews/components/ReviewDetailShell.js +8 -1
- package/dist/features/reviews/components/ReviewFilters.js +1 -1
- package/dist/features/reviews/components/ReviewModal.js +7 -2
- package/dist/features/reviews/components/ReviewSummary.js +4 -2
- package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +2 -3
- package/dist/features/reviews/components/ReviewsIndexPageView.js +12 -13
- package/dist/features/reviews/components/ReviewsList.js +7 -2
- package/dist/features/reviews/components/ReviewsListingPanel.js +7 -1
- package/dist/features/reviews/schemas/index.d.ts +40 -40
- package/dist/features/scams/components/ScamAwarenessModal.js +7 -1
- package/dist/features/scams/components/ScamProfileView.js +11 -1
- package/dist/features/scams/constants/scammer-status-display.d.ts +1 -1
- package/dist/features/scams/schemas/index.d.ts +22 -22
- package/dist/features/scams/schemas/report-form.d.ts +4 -4
- package/dist/features/search/components/EntityTypeahead.js +5 -1
- package/dist/features/search/components/Search.js +7 -1
- package/dist/features/search/components/SearchFacetRail.js +4 -1
- package/dist/features/search/components/SearchResultsClient.js +1 -1
- package/dist/features/search/components/SearchResultsPageView.js +5 -1
- package/dist/features/seller/api/coupons/route.js +1 -5
- package/dist/features/seller/api/products/route.js +1 -5
- package/dist/features/seller/components/BulkStockModal.js +2 -1
- package/dist/features/seller/components/CategoryChipPicker.js +3 -1
- package/dist/features/seller/components/FulfillmentView.js +2 -1
- package/dist/features/seller/components/GroupInlineSelect.js +1 -1
- package/dist/features/seller/components/SellerAddressesView.js +11 -2
- package/dist/features/seller/components/SellerAnalyticsAlertsView.js +9 -1
- package/dist/features/seller/components/SellerAnalyticsView.d.ts +1 -1
- package/dist/features/seller/components/SellerAnalyticsView.js +4 -1
- package/dist/features/seller/components/SellerBidsView.js +8 -2
- package/dist/features/seller/components/SellerBundlesView.js +7 -1
- package/dist/features/seller/components/SellerCouponEditorView.js +5 -1
- package/dist/features/seller/components/SellerCouponsView.d.ts +1 -1
- package/dist/features/seller/components/SellerCouponsView.js +5 -1
- package/dist/features/seller/components/SellerDashboardView.d.ts +1 -1
- package/dist/features/seller/components/SellerDashboardView.js +4 -1
- package/dist/features/seller/components/SellerFeaturesView.js +8 -1
- package/dist/features/seller/components/SellerGoogleReviewsView.js +7 -1
- package/dist/features/seller/components/SellerGroupedListingsView.js +4 -1
- package/dist/features/seller/components/SellerGuideView.d.ts +1 -1
- package/dist/features/seller/components/SellerGuideView.js +1 -1
- package/dist/features/seller/components/SellerListingTypeView.js +4 -1
- package/dist/features/seller/components/SellerOffersView.d.ts +1 -1
- package/dist/features/seller/components/SellerOffersView.js +4 -1
- package/dist/features/seller/components/SellerOrdersView.js +8 -1
- package/dist/features/seller/components/SellerPayoutHistoryTable.js +2 -1
- package/dist/features/seller/components/SellerPayoutMethodsView.js +7 -1
- package/dist/features/seller/components/SellerPayoutRequestView.js +8 -1
- package/dist/features/seller/components/SellerPayoutSettingsView.js +3 -2
- package/dist/features/seller/components/SellerPayoutStats.js +1 -1
- package/dist/features/seller/components/SellerPayoutsView.d.ts +1 -1
- package/dist/features/seller/components/SellerPayoutsView.js +10 -1
- package/dist/features/seller/components/SellerProductShell.js +1 -2
- package/dist/features/seller/components/SellerProductsCards.js +7 -1
- package/dist/features/seller/components/SellerProductsFilterDrawer.js +4 -1
- package/dist/features/seller/components/SellerProductsView.js +7 -1
- package/dist/features/seller/components/SellerReviewsView.js +11 -1
- package/dist/features/seller/components/SellerShippingConfigsView.js +6 -1
- package/dist/features/seller/components/SellerShippingView.js +2 -2
- package/dist/features/seller/components/SellerSidebar.js +7 -1
- package/dist/features/seller/components/SellerStoreCategoriesView.js +5 -1
- package/dist/features/seller/components/SellerStoreSetupView.js +2 -1
- package/dist/features/seller/components/SellerStorefrontView.js +1 -1
- package/dist/features/seller/components/SellerSupportView.d.ts +1 -1
- package/dist/features/seller/components/SellerSupportView.js +4 -1
- package/dist/features/seller/components/SellersListView.d.ts +1 -1
- package/dist/features/seller/components/SellersListView.js +1 -1
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +1 -1
- package/dist/features/seller/components/analytics/SellerRevenueChart.js +2 -1
- package/dist/features/seller/components/analytics/SellerTopProducts.js +3 -1
- package/dist/features/seller/hooks/useSellerListingData.js +0 -30
- package/dist/features/seller/schemas/coupon-form.d.ts +50 -50
- package/dist/features/seller/schemas/index.d.ts +22 -22
- package/dist/features/seller/schemas/order-forms.d.ts +12 -12
- package/dist/features/server-errors/schemas/index.d.ts +4 -4
- package/dist/features/shell/CommandPalette.js +7 -1
- package/dist/features/shell/FormShell.js +5 -1
- package/dist/features/shell/SectionForm.js +4 -1
- package/dist/features/shipments/components/AdminShipmentEditorView.js +9 -1
- package/dist/features/shipments/components/AdminShipmentLotItemsView.js +11 -1
- package/dist/features/shipments/components/AdminShipmentProjectionsView.js +10 -1
- package/dist/features/shipments/components/AdminShipmentsView.d.ts +1 -1
- package/dist/features/shipments/components/AdminShipmentsView.js +3 -1
- package/dist/features/shipments/components/ShipmentItemLinkModal.js +7 -1
- package/dist/features/shipments/schemas/validation.d.ts +44 -44
- package/dist/features/site-settings/components/ActionPermissionsManager.js +7 -2
- package/dist/features/site-settings/components/NavPermissionsManager.js +6 -2
- package/dist/features/site-settings/components/ThemeManagerView.js +9 -1
- package/dist/features/status-history/components/StatusTimeline.js +4 -1
- package/dist/features/sticker-trace/components/StickerPrintPanel.js +6 -1
- package/dist/features/sticker-trace/components/StickerRetryPanel.js +4 -1
- package/dist/features/sticker-trace/components/StickerRunHistoryPanel.js +5 -1
- package/dist/features/sticker-trace/components/StickerTraceStudio.js +5 -1
- package/dist/features/store-extensions/schemas/admin-notification-form.d.ts +5 -5
- package/dist/features/store-extensions/schemas/custom-role-form.d.ts +12 -12
- package/dist/features/store-extensions/schemas/item-request-create-form.d.ts +2 -2
- package/dist/features/store-extensions/schemas/listing-template-form.d.ts +13 -13
- package/dist/features/store-extensions/schemas/payout-method-form.d.ts +10 -10
- package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +12 -12
- package/dist/features/store-extensions/schemas/store-category-form.d.ts +10 -10
- package/dist/features/stores/api/[storeSlug]/auctions/route.js +1 -10
- package/dist/features/stores/api/[storeSlug]/products/route.js +1 -10
- package/dist/features/stores/components/InteractiveStoreCard.js +15 -2
- package/dist/features/stores/components/SellerStandingPanel.js +3 -1
- package/dist/features/stores/components/SellerTierBadge.js +2 -1
- package/dist/features/stores/components/StoreAboutView.js +5 -1
- package/dist/features/stores/components/StoreAddressSelectorCreate.js +2 -1
- package/dist/features/stores/components/StoreAuctionsListing.js +8 -1
- package/dist/features/stores/components/StoreAuctionsView.d.ts +1 -1
- package/dist/features/stores/components/StoreAuctionsView.js +1 -1
- package/dist/features/stores/components/StoreBundlesPageView.js +1 -1
- package/dist/features/stores/components/StoreCapabilitiesGuideView.js +6 -1
- package/dist/features/stores/components/StoreClassifiedsListing.js +7 -1
- package/dist/features/stores/components/StoreCreateForm.js +3 -1
- package/dist/features/stores/components/StoreDetailLayoutView.js +5 -2
- package/dist/features/stores/components/StoreDigitalCodesListing.js +7 -1
- package/dist/features/stores/components/StoreFilters.js +1 -1
- package/dist/features/stores/components/StoreFinanceGuideView.js +6 -1
- package/dist/features/stores/components/StoreGuideHubView.js +7 -2
- package/dist/features/stores/components/StoreHeader.js +6 -1
- package/dist/features/stores/components/StoreListingsGuideView.js +6 -1
- package/dist/features/stores/components/StoreLiveItemsListing.js +7 -1
- package/dist/features/stores/components/StoreNavTabs.js +3 -1
- package/dist/features/stores/components/StoreOrdersGuideView.js +7 -1
- package/dist/features/stores/components/StorePreOrdersListing.js +7 -1
- package/dist/features/stores/components/StoreProductsListing.js +8 -1
- package/dist/features/stores/components/StoreProductsView.js +5 -1
- package/dist/features/stores/components/StoreReviewsView.d.ts +1 -1
- package/dist/features/stores/components/StoreReviewsView.js +1 -1
- package/dist/features/stores/components/StoreSettingsGuideView.js +6 -1
- package/dist/features/stores/components/StoresIndexListing.js +9 -2
- package/dist/features/stores/components/StoresIndexPageView.d.ts +2 -3
- package/dist/features/stores/components/StoresIndexPageView.js +10 -11
- package/dist/features/stores/hooks/useStoreAddressSelector.d.ts +1 -1
- package/dist/features/stores/schemas/firestore.d.ts +27 -0
- package/dist/features/stores/schemas/firestore.js +2 -0
- package/dist/features/stores/schemas/index.d.ts +28 -28
- package/dist/features/support/schemas/index.d.ts +14 -14
- package/dist/features/support/schemas/ticket-create-form.d.ts +4 -4
- package/dist/features/tax-codes/schemas/tax-code-form.d.ts +4 -4
- package/dist/features/tax-codes/schemas/tax-codes.validators.d.ts +10 -10
- package/dist/features/tester/actions/checklist-item-actions.d.ts +3 -3
- package/dist/features/tester/components/AdminTesterFeedbackIssuesView.js +7 -1
- package/dist/features/tester/components/AdminTesterFeedbackListView.js +5 -1
- package/dist/features/tester/components/AdminTesterFeedbackReportView.js +2 -1
- package/dist/features/tester/components/AdminTesterFeedbackView.js +5 -1
- package/dist/features/tester/components/TesterChecklistStepRow.js +8 -1
- package/dist/features/tester/components/TesterFeedbackChart.js +3 -1
- package/dist/features/tester/schemas/checklist-item-form.d.ts +2 -2
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +8 -1
- package/dist/features/wishlist/components/WishlistCapWatcher.js +1 -1
- package/dist/features/wishlist/components/WishlistHeartButton.js +2 -1
- package/dist/features/wishlist/components/WishlistPage.js +5 -1
- package/dist/features/wishlist/components/WishlistView.js +3 -1
- package/dist/features/wishlist/hooks/useWishlistToggle.js +1 -1
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +1 -1
- package/dist/features/wishlist/schemas/index.d.ts +2 -2
- package/dist/features/wishlist/utils/guest-wishlist.js +1 -5
- package/dist/index.d.ts +2496 -2452
- package/dist/index.js +1549 -1500
- package/dist/next/api/routeHandler.js +1 -1
- package/dist/providers/db-firebase/admin-app-lite.js +14 -2
- package/dist/providers/db-firebase/admin.js +8 -2
- package/dist/react/hooks/use-action-dispatch.d.ts +1 -1
- package/dist/react/hooks/use-action-dispatch.js +1 -1
- package/dist/react/hooks/useBrowsePageFlags.d.ts +26 -0
- package/dist/react/hooks/useBrowsePageFlags.js +18 -0
- package/dist/schemas/registry.d.ts +492 -487
- package/dist/schemas/sieve.d.ts +5 -5
- package/dist/schemas/webhooks/google-oauth.d.ts +4 -4
- package/dist/security/csp.d.ts +32 -2
- package/dist/security/csp.js +32 -2
- package/dist/server.d.ts +369 -362
- package/dist/server.js +355 -351
- package/dist/styles.css +1 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/Button.js +1 -1
- package/dist/ui/components/Chart.js +0 -1
- package/dist/ui/components/HorizontalScroller.js +27 -2
- package/dist/ui/components/Repeater.js +4 -1
- package/dist/ui/rich-text/RichText.js +1 -3
- package/dist/ui/rich-text/RichTextRenderer.js +1 -3
- package/dist/utils/browser-storage.d.ts +14 -0
- package/dist/utils/browser-storage.js +18 -0
- package/dist/utils/classnames.d.ts +19 -0
- package/dist/utils/classnames.js +21 -0
- package/dist/utils/search-params.d.ts +44 -0
- package/dist/utils/search-params.js +46 -0
- package/dist/utils/sieve-builder.d.ts +13 -0
- package/dist/utils/sieve-builder.js +22 -0
- package/dist/utils/string.formatter.d.ts +12 -0
- package/dist/utils/string.formatter.js +17 -0
- package/dist/validation/schemas.d.ts +26 -26
- package/package.json +90 -2
|
@@ -8,7 +8,17 @@ import { useFormShellState, FormShellContext } from "../../../ui/forms/index.js"
|
|
|
8
8
|
import { applyZodIssues } from "../../../ui/forms/apply-zod-issues.js";
|
|
9
9
|
import { FormErrorSummary } from "../../../ui/forms/FormErrorSummary.js";
|
|
10
10
|
import { useQueryClient } from "@tanstack/react-query";
|
|
11
|
-
import { Alert
|
|
11
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
12
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
13
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
14
|
+
import { Checkbox } from "../../../ui/components/Checkbox.js";
|
|
15
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
16
|
+
import { Modal } from "../../../ui/components/Modal.js";
|
|
17
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
18
|
+
import { Select } from "../../../ui/components/Select.js";
|
|
19
|
+
import { SideDrawer } from "../../../ui/components/SideDrawer.js";
|
|
20
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
21
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
12
22
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
|
|
13
23
|
import { SELLER_BULK_ACTIONS, ROW_ACTION_META } from "../../products/constants/action-defs.js";
|
|
14
24
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
@@ -5,7 +5,12 @@ import { toUserMessage } from "../../../errors/error-display-map.js";
|
|
|
5
5
|
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import { useState, useCallback } from "react";
|
|
7
7
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete.js";
|
|
8
|
-
import { Badge
|
|
8
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
9
|
+
import { ConfirmDeleteModal } from "../../../ui/components/ConfirmDeleteModal.js";
|
|
10
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
11
|
+
import { RowActionMenu } from "../../../ui/components/RowActionMenu.js";
|
|
12
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
13
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
9
14
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
10
15
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
|
|
11
16
|
import { ROUTES } from "../../../constants/index.js";
|
|
@@ -3,10 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { Alert, Badge, Div, FormField, Heading, Row, Stack, Text } from "../../../ui/index.js";
|
|
6
|
-
import { StackedViewShell } from "../../../ui/
|
|
6
|
+
import { StackedViewShell } from "../../../ui/components/StackedViewShell.js";
|
|
7
7
|
import { FormShellContext, useFormShellState, applyZodIssues, FormErrorSummary } from "../../../ui/forms/index.js";
|
|
8
8
|
import { StoreAddressSelectorCreate } from "../../stores/components/StoreAddressSelectorCreate.js";
|
|
9
|
-
import { SectionForm, useSectionFormNav } from "../../shell/
|
|
9
|
+
import { SectionForm, useSectionFormNav } from "../../shell/SectionForm.js";
|
|
10
10
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
11
11
|
import { normalizeError } from "../../../errors/normalize.js";
|
|
12
12
|
import { toUserMessage } from "../../../errors/error-display-map.js";
|
|
@@ -3,7 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import { useEffect, useState, useCallback } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import Link from "next/link.js";
|
|
6
|
-
import { Button
|
|
6
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { IconButton } from "../../../ui/components/IconButton.js";
|
|
9
|
+
import { Input } from "../../../ui/components/Input.js";
|
|
10
|
+
import { Li, Nav, Ul } from "../../../ui/components/Semantic.js";
|
|
11
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
12
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
7
13
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
8
14
|
import { BottomSheet } from "../../layout/BottomSheet.js";
|
|
9
15
|
import { SidebarCollapseToggle } from "../../../_internal/client/features/layout/SidebarCollapseToggle.js";
|
|
@@ -5,7 +5,11 @@ import { toUserMessage } from "../../../errors/error-display-map.js";
|
|
|
5
5
|
import { Badge, sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import { useState, useCallback } from "react";
|
|
7
7
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete.js";
|
|
8
|
-
import { ConfirmDeleteModal
|
|
8
|
+
import { ConfirmDeleteModal } from "../../../ui/components/ConfirmDeleteModal.js";
|
|
9
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
10
|
+
import { RowActionMenu } from "../../../ui/components/RowActionMenu.js";
|
|
11
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
12
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
9
13
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
10
14
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
|
|
11
15
|
import { buildBulkAction } from "../../../_internal/shared/actions/bulk-helpers.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { Div
|
|
4
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
5
|
+
import { Heading } from "../../../ui/components/Typography.js";
|
|
5
6
|
export function SellerStoreSetupView({ labels = {}, renderTabs, renderForm, isLoading = false, className = "", }) {
|
|
6
7
|
const [tab, setTab] = React.useState("basic");
|
|
7
8
|
return (_jsxs(Div, { className: className, children: [labels.title && (_jsx(Heading, { level: 1, className: "mb-6", size: "2xl", weight: "bold", children: labels.title })), renderTabs?.(tab, setTab), renderForm(tab, isLoading)] }));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
import { StackedViewShell } from "../../../ui/
|
|
5
|
+
import { StackedViewShell } from "../../../ui/components/StackedViewShell.js";
|
|
6
6
|
import { Alert, Div, FormField, FormGroup, Heading, Stack, Text, Toggle, } from "../../../ui/index.js";
|
|
7
7
|
import { FormShellContext, useFormShellState, applyZodIssues, FormErrorSummary } from "../../../ui/forms/index.js";
|
|
8
8
|
import { ImageUpload, useMediaUpload } from "../../media/index.js";
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* close a complaint made against them.
|
|
23
23
|
*/
|
|
24
24
|
import React from "react";
|
|
25
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
25
|
+
import type { StackedViewShellProps } from "../../../ui/components/StackedViewShell";
|
|
26
26
|
export interface SellerSupportViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
27
27
|
labels?: {
|
|
28
28
|
title?: string;
|
|
@@ -25,7 +25,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
25
25
|
*/
|
|
26
26
|
import React from "react";
|
|
27
27
|
import { useQuery } from "@tanstack/react-query";
|
|
28
|
-
import { Badge
|
|
28
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
29
|
+
import { RecordDetailModal } from "../../../ui/components/RecordDetailModal.js";
|
|
30
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
31
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
29
32
|
import { apiClient } from "../../../http/index.js";
|
|
30
33
|
import { DataListingView } from "../../admin/components/DataListingView.js";
|
|
31
34
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { SlottedListingViewProps } from "../../../ui";
|
|
2
|
+
import type { SlottedListingViewProps } from "../../../ui/components/SlottedListingView";
|
|
3
3
|
export type SellersListViewProps = SlottedListingViewProps;
|
|
4
4
|
export declare function SellersListView(props: SellersListViewProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { SlottedListingView } from "../../../ui/
|
|
2
|
+
import { SlottedListingView } from "../../../ui/components/SlottedListingView.js";
|
|
3
3
|
export function SellersListView(props) {
|
|
4
4
|
return _jsx(SlottedListingView, { portal: "public", ...props, manageSearch: true, manageSelection: true });
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { TrendingUp, ShoppingBag, Package, CheckCircle } from "lucide-react";
|
|
4
|
-
import { Div } from "../../../../ui/
|
|
4
|
+
import { Div } from "../../../../ui/components/Div.js";
|
|
5
5
|
import { AdminStatCard } from "../../../admin/components/analytics/AdminStatCard.js";
|
|
6
6
|
export function SellerAnalyticsStats({ summary, labels = {}, formatRevenue = (amount) => String(amount), className = "", }) {
|
|
7
7
|
return (_jsxs(Div, { layout: "grid", gap: "4", className: `grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 ${className}`, children: [_jsx(AdminStatCard, { label: labels.totalRevenue ?? "Total Revenue", value: formatRevenue(summary.totalRevenue), gradient: "green", icon: _jsx(TrendingUp, { className: "w-5 h-5 text-white" }) }), _jsx(AdminStatCard, { label: labels.totalOrders ?? "Total Orders", value: String(summary.totalOrders), gradient: "brand", icon: _jsx(ShoppingBag, { className: "w-5 h-5 text-white" }) }), _jsx(AdminStatCard, { label: labels.totalProducts ?? "Total Products", value: String(summary.totalProducts), gradient: "amber", icon: _jsx(Package, { className: "w-5 h-5 text-white" }) }), _jsx(AdminStatCard, { label: labels.publishedProducts ?? "Published", value: String(summary.publishedProducts), gradient: "blue", icon: _jsx(CheckCircle, { className: "w-5 h-5 text-white" }) })] }));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import dynamic from "next/dynamic.js";
|
|
4
|
-
import { Div
|
|
4
|
+
import { Div } from "../../../../ui/components/Div.js";
|
|
5
|
+
import { Heading, Text } from "../../../../ui/components/Typography.js";
|
|
5
6
|
// recharts exports generic components (<DataPointType>) that don't satisfy
|
|
6
7
|
// next/dynamic's ComponentType<P> constraint — cast each to ComponentType<any>.
|
|
7
8
|
const BarChart = dynamic(() => import("recharts").then((m) => m.BarChart), { ssr: false });
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Div
|
|
2
|
+
import { Div } from "../../../../ui/components/Div.js";
|
|
3
|
+
import { Heading, Span, Text } from "../../../../ui/components/Typography.js";
|
|
4
|
+
import { Row } from "../../../../ui/components/Layout.js";
|
|
3
5
|
export function SellerTopProducts({ products, labels = {}, formatRevenue = (amount) => String(amount), renderProductLink, renderEmptyAction, className = "", }) {
|
|
4
6
|
return (_jsxs(Div, { className: `border border-[var(--appkit-color-border-subtle)] sm:p-[1.5rem] ${className}`, rounded: "xl", padding: "md", surface: "default", children: [labels.title && (_jsx(Heading, { level: 3, className: "mb-4", size: "base", weight: "semibold", children: labels.title })), products.length > 0 ? (_jsx(Div, { className: "divide-y divide-neutral-100 divide-[var(--appkit-color-border)]", children: products.map((product, index) => (_jsxs(Row, { align: "center", gap: "md", padding: "y-sm", children: [_jsxs(Span, { size: "sm", weight: "bold", className: "w-6", color: "muted", children: [index + 1, "."] }), _jsxs(Div, { className: "flex-1 min-w-0", children: [_jsx(Text, { className: "truncate", size: "sm", weight: "medium", children: product.title }), _jsxs(Text, { size: "xs", color: "muted", children: [product.orders, " ", labels.ordersLabel ?? "orders"] })] }), _jsxs(Div, { className: "text-right ml-2", children: [_jsx(Span, { size: "sm", weight: "semibold", className: "text-success", children: formatRevenue(product.revenue) }), renderProductLink?.(product)] })] }, product.productId))) })) : (_jsxs(Div, { className: "text-center", padding: "y-xl", children: [_jsx(Text, { size: "sm", weight: "medium", children: labels.noData ?? "No data available" }), labels.noDataDescription && (_jsx(Text, { className: "mt-1", color: "muted", size: "xs", children: labels.noDataDescription })), renderEmptyAction?.()] }))] }));
|
|
5
7
|
}
|
|
@@ -43,33 +43,3 @@ export function toCurrency(value) {
|
|
|
43
43
|
}
|
|
44
44
|
return formatCurrency(value);
|
|
45
45
|
}
|
|
46
|
-
/*
|
|
47
|
-
* 🛑 `toRelativeDate` WAS HERE AND IS GONE. Import it from
|
|
48
|
-
* `features/admin/hooks/useAdminListingData` — the defining module now, and
|
|
49
|
-
* the one 44 files already use (Root Cause #18: import from where a symbol is
|
|
50
|
-
* defined, never from a convenience copy).
|
|
51
|
-
*
|
|
52
|
-
* This copy had drifted from that one and the drift was live: for a FUTURE
|
|
53
|
-
* date, `deltaMs` is negative, so `deltaMs < minute` matched and this version
|
|
54
|
-
* answered **"just now"** while the admin version answered **"1m ago"** — two
|
|
55
|
-
* different wrong answers to "when is this deadline", depending on which file
|
|
56
|
-
* a view happened to import from. The admin one is fixed to say "in 48h"; a
|
|
57
|
-
* second implementation is how that fix would have been half-applied.
|
|
58
|
-
*
|
|
59
|
-
* The three sibling helpers below are also duplicated there. They are left
|
|
60
|
-
* alone deliberately: none of them is wrong, and collapsing them is an import
|
|
61
|
-
* rewrite across both feature trees rather than a bug fix.
|
|
62
|
-
*/
|
|
63
|
-
function parseDate(value) {
|
|
64
|
-
if (value instanceof Date)
|
|
65
|
-
return value;
|
|
66
|
-
if (typeof value === "string") {
|
|
67
|
-
const parsed = new Date(value);
|
|
68
|
-
return Number.isNaN(parsed.getTime()) ? null : parsed;
|
|
69
|
-
}
|
|
70
|
-
if (typeof value === "number") {
|
|
71
|
-
const parsed = new Date(value);
|
|
72
|
-
return Number.isNaN(parsed.getTime()) ? null : parsed;
|
|
73
|
-
}
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
@@ -27,28 +27,28 @@ export declare const couponFormBase: z.ZodObject<{
|
|
|
27
27
|
applicableCategories: z.ZodArray<z.ZodString, "many">;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
code: string;
|
|
30
|
-
type: "
|
|
30
|
+
type: "percentage" | "fixed" | "free_shipping";
|
|
31
31
|
isActive: boolean;
|
|
32
32
|
endDate: string;
|
|
33
|
-
minPurchase: string;
|
|
34
|
-
totalLimit: string;
|
|
35
|
-
perUserLimit: string;
|
|
36
33
|
startDate: string;
|
|
34
|
+
minPurchase: string;
|
|
37
35
|
applicableProducts: string[];
|
|
38
36
|
applicableCategories: string[];
|
|
37
|
+
totalLimit: string;
|
|
38
|
+
perUserLimit: string;
|
|
39
39
|
value?: string | undefined;
|
|
40
40
|
maxDiscount?: string | undefined;
|
|
41
41
|
}, {
|
|
42
42
|
code: string;
|
|
43
|
-
type: "
|
|
43
|
+
type: "percentage" | "fixed" | "free_shipping";
|
|
44
44
|
isActive: boolean;
|
|
45
45
|
endDate: string;
|
|
46
|
-
minPurchase: string;
|
|
47
|
-
totalLimit: string;
|
|
48
|
-
perUserLimit: string;
|
|
49
46
|
startDate: string;
|
|
47
|
+
minPurchase: string;
|
|
50
48
|
applicableProducts: string[];
|
|
51
49
|
applicableCategories: string[];
|
|
50
|
+
totalLimit: string;
|
|
51
|
+
perUserLimit: string;
|
|
52
52
|
value?: string | undefined;
|
|
53
53
|
maxDiscount?: string | undefined;
|
|
54
54
|
}>;
|
|
@@ -80,54 +80,54 @@ export declare const sellerCouponFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
80
80
|
applicableCategories: z.ZodArray<z.ZodString, "many">;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
code: string;
|
|
83
|
-
type: "
|
|
83
|
+
type: "percentage" | "fixed" | "free_shipping";
|
|
84
84
|
isActive: boolean;
|
|
85
85
|
endDate: string;
|
|
86
|
-
minPurchase: string;
|
|
87
|
-
totalLimit: string;
|
|
88
|
-
perUserLimit: string;
|
|
89
86
|
startDate: string;
|
|
87
|
+
minPurchase: string;
|
|
90
88
|
applicableProducts: string[];
|
|
91
89
|
applicableCategories: string[];
|
|
90
|
+
totalLimit: string;
|
|
91
|
+
perUserLimit: string;
|
|
92
92
|
value?: string | undefined;
|
|
93
93
|
maxDiscount?: string | undefined;
|
|
94
94
|
}, {
|
|
95
95
|
code: string;
|
|
96
|
-
type: "
|
|
96
|
+
type: "percentage" | "fixed" | "free_shipping";
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
endDate: string;
|
|
99
|
-
minPurchase: string;
|
|
100
|
-
totalLimit: string;
|
|
101
|
-
perUserLimit: string;
|
|
102
99
|
startDate: string;
|
|
100
|
+
minPurchase: string;
|
|
103
101
|
applicableProducts: string[];
|
|
104
102
|
applicableCategories: string[];
|
|
103
|
+
totalLimit: string;
|
|
104
|
+
perUserLimit: string;
|
|
105
105
|
value?: string | undefined;
|
|
106
106
|
maxDiscount?: string | undefined;
|
|
107
107
|
}>, {
|
|
108
108
|
code: string;
|
|
109
|
-
type: "
|
|
109
|
+
type: "percentage" | "fixed" | "free_shipping";
|
|
110
110
|
isActive: boolean;
|
|
111
111
|
endDate: string;
|
|
112
|
-
minPurchase: string;
|
|
113
|
-
totalLimit: string;
|
|
114
|
-
perUserLimit: string;
|
|
115
112
|
startDate: string;
|
|
113
|
+
minPurchase: string;
|
|
116
114
|
applicableProducts: string[];
|
|
117
115
|
applicableCategories: string[];
|
|
116
|
+
totalLimit: string;
|
|
117
|
+
perUserLimit: string;
|
|
118
118
|
value?: string | undefined;
|
|
119
119
|
maxDiscount?: string | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
code: string;
|
|
122
|
-
type: "
|
|
122
|
+
type: "percentage" | "fixed" | "free_shipping";
|
|
123
123
|
isActive: boolean;
|
|
124
124
|
endDate: string;
|
|
125
|
-
minPurchase: string;
|
|
126
|
-
totalLimit: string;
|
|
127
|
-
perUserLimit: string;
|
|
128
125
|
startDate: string;
|
|
126
|
+
minPurchase: string;
|
|
129
127
|
applicableProducts: string[];
|
|
130
128
|
applicableCategories: string[];
|
|
129
|
+
totalLimit: string;
|
|
130
|
+
perUserLimit: string;
|
|
131
131
|
value?: string | undefined;
|
|
132
132
|
maxDiscount?: string | undefined;
|
|
133
133
|
}>;
|
|
@@ -205,33 +205,33 @@ export declare const adminCouponFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
205
205
|
minAmount: z.ZodNumber;
|
|
206
206
|
discountValue: z.ZodNumber;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
|
-
minAmount: number;
|
|
209
208
|
discountValue: number;
|
|
210
|
-
}, {
|
|
211
209
|
minAmount: number;
|
|
210
|
+
}, {
|
|
212
211
|
discountValue: number;
|
|
212
|
+
minAmount: number;
|
|
213
213
|
}>, "many">>;
|
|
214
214
|
firstTimeUserOnly: z.ZodBoolean;
|
|
215
215
|
appliesToAuctions: z.ZodBoolean;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
217
|
code: string;
|
|
218
|
-
type: "
|
|
219
|
-
name: string;
|
|
218
|
+
type: "percentage" | "fixed" | "free_shipping" | "buy_x_get_y";
|
|
220
219
|
isActive: boolean;
|
|
220
|
+
name: string;
|
|
221
221
|
endDate: string;
|
|
222
222
|
firstTimeUserOnly: boolean;
|
|
223
|
-
minPurchase: string;
|
|
224
|
-
totalLimit: string;
|
|
225
|
-
perUserLimit: string;
|
|
226
223
|
startDate: string;
|
|
224
|
+
minPurchase: string;
|
|
227
225
|
applicableProducts: string[];
|
|
228
226
|
applicableCategories: string[];
|
|
227
|
+
totalLimit: string;
|
|
228
|
+
perUserLimit: string;
|
|
229
229
|
appliesToAuctions: boolean;
|
|
230
230
|
value?: string | undefined;
|
|
231
231
|
description?: string | undefined;
|
|
232
232
|
tiers?: {
|
|
233
|
-
minAmount: number;
|
|
234
233
|
discountValue: number;
|
|
234
|
+
minAmount: number;
|
|
235
235
|
}[] | undefined;
|
|
236
236
|
currentUsage?: number | undefined;
|
|
237
237
|
maxItemPrice?: string | undefined;
|
|
@@ -240,23 +240,23 @@ export declare const adminCouponFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
240
240
|
getQuantity?: string | undefined;
|
|
241
241
|
}, {
|
|
242
242
|
code: string;
|
|
243
|
-
type: "
|
|
244
|
-
name: string;
|
|
243
|
+
type: "percentage" | "fixed" | "free_shipping" | "buy_x_get_y";
|
|
245
244
|
isActive: boolean;
|
|
245
|
+
name: string;
|
|
246
246
|
endDate: string;
|
|
247
247
|
firstTimeUserOnly: boolean;
|
|
248
|
-
minPurchase: string;
|
|
249
|
-
totalLimit: string;
|
|
250
|
-
perUserLimit: string;
|
|
251
248
|
startDate: string;
|
|
249
|
+
minPurchase: string;
|
|
252
250
|
applicableProducts: string[];
|
|
253
251
|
applicableCategories: string[];
|
|
252
|
+
totalLimit: string;
|
|
253
|
+
perUserLimit: string;
|
|
254
254
|
appliesToAuctions: boolean;
|
|
255
255
|
value?: string | undefined;
|
|
256
256
|
description?: string | undefined;
|
|
257
257
|
tiers?: {
|
|
258
|
-
minAmount: number;
|
|
259
258
|
discountValue: number;
|
|
259
|
+
minAmount: number;
|
|
260
260
|
}[] | undefined;
|
|
261
261
|
currentUsage?: number | undefined;
|
|
262
262
|
maxItemPrice?: string | undefined;
|
|
@@ -265,23 +265,23 @@ export declare const adminCouponFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
265
265
|
getQuantity?: string | undefined;
|
|
266
266
|
}>, {
|
|
267
267
|
code: string;
|
|
268
|
-
type: "
|
|
269
|
-
name: string;
|
|
268
|
+
type: "percentage" | "fixed" | "free_shipping" | "buy_x_get_y";
|
|
270
269
|
isActive: boolean;
|
|
270
|
+
name: string;
|
|
271
271
|
endDate: string;
|
|
272
272
|
firstTimeUserOnly: boolean;
|
|
273
|
-
minPurchase: string;
|
|
274
|
-
totalLimit: string;
|
|
275
|
-
perUserLimit: string;
|
|
276
273
|
startDate: string;
|
|
274
|
+
minPurchase: string;
|
|
277
275
|
applicableProducts: string[];
|
|
278
276
|
applicableCategories: string[];
|
|
277
|
+
totalLimit: string;
|
|
278
|
+
perUserLimit: string;
|
|
279
279
|
appliesToAuctions: boolean;
|
|
280
280
|
value?: string | undefined;
|
|
281
281
|
description?: string | undefined;
|
|
282
282
|
tiers?: {
|
|
283
|
-
minAmount: number;
|
|
284
283
|
discountValue: number;
|
|
284
|
+
minAmount: number;
|
|
285
285
|
}[] | undefined;
|
|
286
286
|
currentUsage?: number | undefined;
|
|
287
287
|
maxItemPrice?: string | undefined;
|
|
@@ -290,23 +290,23 @@ export declare const adminCouponFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
290
290
|
getQuantity?: string | undefined;
|
|
291
291
|
}, {
|
|
292
292
|
code: string;
|
|
293
|
-
type: "
|
|
294
|
-
name: string;
|
|
293
|
+
type: "percentage" | "fixed" | "free_shipping" | "buy_x_get_y";
|
|
295
294
|
isActive: boolean;
|
|
295
|
+
name: string;
|
|
296
296
|
endDate: string;
|
|
297
297
|
firstTimeUserOnly: boolean;
|
|
298
|
-
minPurchase: string;
|
|
299
|
-
totalLimit: string;
|
|
300
|
-
perUserLimit: string;
|
|
301
298
|
startDate: string;
|
|
299
|
+
minPurchase: string;
|
|
302
300
|
applicableProducts: string[];
|
|
303
301
|
applicableCategories: string[];
|
|
302
|
+
totalLimit: string;
|
|
303
|
+
perUserLimit: string;
|
|
304
304
|
appliesToAuctions: boolean;
|
|
305
305
|
value?: string | undefined;
|
|
306
306
|
description?: string | undefined;
|
|
307
307
|
tiers?: {
|
|
308
|
-
minAmount: number;
|
|
309
308
|
discountValue: number;
|
|
309
|
+
minAmount: number;
|
|
310
310
|
}[] | undefined;
|
|
311
311
|
currentUsage?: number | undefined;
|
|
312
312
|
maxItemPrice?: string | undefined;
|
|
@@ -85,15 +85,14 @@ export declare const sellerStoreSchema: z.ZodObject<{
|
|
|
85
85
|
createdAt: z.ZodString;
|
|
86
86
|
updatedAt: z.ZodString;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
status: "pending" | "
|
|
88
|
+
status: "pending" | "rejected" | "active" | "suspended";
|
|
89
89
|
id: string;
|
|
90
90
|
createdAt: string;
|
|
91
91
|
updatedAt: string;
|
|
92
|
-
storeName: string;
|
|
93
92
|
ownerId: string;
|
|
93
|
+
storeName: string;
|
|
94
94
|
storeSlug: string;
|
|
95
95
|
isPublic: boolean;
|
|
96
|
-
location?: string | undefined;
|
|
97
96
|
returnPolicy?: string | undefined;
|
|
98
97
|
stats?: {
|
|
99
98
|
totalProducts: number;
|
|
@@ -107,6 +106,7 @@ export declare const sellerStoreSchema: z.ZodObject<{
|
|
|
107
106
|
storeBannerURL?: string | undefined;
|
|
108
107
|
bio?: string | undefined;
|
|
109
108
|
website?: string | undefined;
|
|
109
|
+
location?: string | undefined;
|
|
110
110
|
socialLinks?: {
|
|
111
111
|
instagram?: string | undefined;
|
|
112
112
|
facebook?: string | undefined;
|
|
@@ -117,15 +117,14 @@ export declare const sellerStoreSchema: z.ZodObject<{
|
|
|
117
117
|
isVacationMode?: boolean | undefined;
|
|
118
118
|
vacationMessage?: string | undefined;
|
|
119
119
|
}, {
|
|
120
|
-
status: "pending" | "
|
|
120
|
+
status: "pending" | "rejected" | "active" | "suspended";
|
|
121
121
|
id: string;
|
|
122
122
|
createdAt: string;
|
|
123
123
|
updatedAt: string;
|
|
124
|
-
storeName: string;
|
|
125
124
|
ownerId: string;
|
|
125
|
+
storeName: string;
|
|
126
126
|
storeSlug: string;
|
|
127
127
|
isPublic: boolean;
|
|
128
|
-
location?: string | undefined;
|
|
129
128
|
returnPolicy?: string | undefined;
|
|
130
129
|
stats?: {
|
|
131
130
|
totalProducts: number;
|
|
@@ -139,6 +138,7 @@ export declare const sellerStoreSchema: z.ZodObject<{
|
|
|
139
138
|
storeBannerURL?: string | undefined;
|
|
140
139
|
bio?: string | undefined;
|
|
141
140
|
website?: string | undefined;
|
|
141
|
+
location?: string | undefined;
|
|
142
142
|
socialLinks?: {
|
|
143
143
|
instagram?: string | undefined;
|
|
144
144
|
facebook?: string | undefined;
|
|
@@ -168,16 +168,16 @@ export declare const payoutRecordSchema: z.ZodObject<{
|
|
|
168
168
|
updatedAt: z.ZodString;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
170
|
currency: string;
|
|
171
|
-
status: "
|
|
171
|
+
status: "pending" | "processing" | "paid" | "failed";
|
|
172
172
|
id: string;
|
|
173
|
-
createdAt: string;
|
|
174
|
-
updatedAt: string;
|
|
175
|
-
amount: number;
|
|
176
173
|
sellerId: string;
|
|
177
174
|
sellerName: string;
|
|
178
175
|
sellerEmail: string;
|
|
176
|
+
createdAt: string;
|
|
177
|
+
updatedAt: string;
|
|
179
178
|
paymentMethod: "upi" | "bank_transfer";
|
|
180
179
|
platformFee: number;
|
|
180
|
+
amount: number;
|
|
181
181
|
requestedAt: string;
|
|
182
182
|
orderIds: string[];
|
|
183
183
|
grossAmount: number;
|
|
@@ -185,16 +185,16 @@ export declare const payoutRecordSchema: z.ZodObject<{
|
|
|
185
185
|
processedAt?: string | undefined;
|
|
186
186
|
}, {
|
|
187
187
|
currency: string;
|
|
188
|
-
status: "
|
|
188
|
+
status: "pending" | "processing" | "paid" | "failed";
|
|
189
189
|
id: string;
|
|
190
|
-
createdAt: string;
|
|
191
|
-
updatedAt: string;
|
|
192
|
-
amount: number;
|
|
193
190
|
sellerId: string;
|
|
194
191
|
sellerName: string;
|
|
195
192
|
sellerEmail: string;
|
|
193
|
+
createdAt: string;
|
|
194
|
+
updatedAt: string;
|
|
196
195
|
paymentMethod: "upi" | "bank_transfer";
|
|
197
196
|
platformFee: number;
|
|
197
|
+
amount: number;
|
|
198
198
|
requestedAt: string;
|
|
199
199
|
orderIds: string[];
|
|
200
200
|
grossAmount: number;
|
|
@@ -210,17 +210,17 @@ export declare const sellerListParamsSchema: z.ZodObject<{
|
|
|
210
210
|
sort: z.ZodOptional<z.ZodString>;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
212
|
sort?: string | undefined;
|
|
213
|
-
status?: "pending" | "
|
|
213
|
+
status?: "pending" | "rejected" | "active" | "suspended" | undefined;
|
|
214
|
+
category?: string | undefined;
|
|
214
215
|
page?: number | undefined;
|
|
215
216
|
q?: string | undefined;
|
|
216
|
-
category?: string | undefined;
|
|
217
217
|
perPage?: number | undefined;
|
|
218
218
|
}, {
|
|
219
219
|
sort?: string | undefined;
|
|
220
|
-
status?: "pending" | "
|
|
220
|
+
status?: "pending" | "rejected" | "active" | "suspended" | undefined;
|
|
221
|
+
category?: string | undefined;
|
|
221
222
|
page?: number | undefined;
|
|
222
223
|
q?: string | undefined;
|
|
223
|
-
category?: string | undefined;
|
|
224
224
|
perPage?: number | undefined;
|
|
225
225
|
}>;
|
|
226
226
|
export declare const payoutListParamsSchema: z.ZodObject<{
|
|
@@ -231,14 +231,14 @@ export declare const payoutListParamsSchema: z.ZodObject<{
|
|
|
231
231
|
sort: z.ZodOptional<z.ZodString>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
233
|
sort?: string | undefined;
|
|
234
|
-
status?: "
|
|
235
|
-
page?: number | undefined;
|
|
234
|
+
status?: "pending" | "processing" | "paid" | "failed" | undefined;
|
|
236
235
|
sellerId?: string | undefined;
|
|
236
|
+
page?: number | undefined;
|
|
237
237
|
perPage?: number | undefined;
|
|
238
238
|
}, {
|
|
239
239
|
sort?: string | undefined;
|
|
240
|
-
status?: "
|
|
241
|
-
page?: number | undefined;
|
|
240
|
+
status?: "pending" | "processing" | "paid" | "failed" | undefined;
|
|
242
241
|
sellerId?: string | undefined;
|
|
242
|
+
page?: number | undefined;
|
|
243
243
|
perPage?: number | undefined;
|
|
244
244
|
}>;
|
|
@@ -10,22 +10,22 @@ export declare const sellerOrderUpdateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10
10
|
carrier: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
11
11
|
trackingUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
status: "" | "
|
|
13
|
+
status: "" | "cancelled" | "confirmed" | "processing" | "shipped" | "delivered";
|
|
14
14
|
trackingNumber?: string | undefined;
|
|
15
15
|
trackingUrl?: string | undefined;
|
|
16
16
|
carrier?: string | undefined;
|
|
17
17
|
}, {
|
|
18
|
-
status: "" | "
|
|
18
|
+
status: "" | "cancelled" | "confirmed" | "processing" | "shipped" | "delivered";
|
|
19
19
|
trackingNumber?: string | undefined;
|
|
20
20
|
trackingUrl?: string | undefined;
|
|
21
21
|
carrier?: string | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
status: "" | "
|
|
23
|
+
status: "" | "cancelled" | "confirmed" | "processing" | "shipped" | "delivered";
|
|
24
24
|
trackingNumber?: string | undefined;
|
|
25
25
|
trackingUrl?: string | undefined;
|
|
26
26
|
carrier?: string | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
status: "" | "
|
|
28
|
+
status: "" | "cancelled" | "confirmed" | "processing" | "shipped" | "delivered";
|
|
29
29
|
trackingNumber?: string | undefined;
|
|
30
30
|
trackingUrl?: string | undefined;
|
|
31
31
|
carrier?: string | undefined;
|
|
@@ -80,32 +80,32 @@ export declare const shipOrderSchema: z.ZodDiscriminatedUnion<"method", [z.ZodOb
|
|
|
80
80
|
height: z.ZodNumber;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
length: number;
|
|
83
|
-
weight: number;
|
|
84
|
-
height: number;
|
|
85
83
|
width: number;
|
|
84
|
+
height: number;
|
|
85
|
+
weight: number;
|
|
86
86
|
}, {
|
|
87
87
|
length: number;
|
|
88
|
-
weight: number;
|
|
89
|
-
height: number;
|
|
90
88
|
width: number;
|
|
89
|
+
height: number;
|
|
90
|
+
weight: number;
|
|
91
91
|
}>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
pickupAddressId: string;
|
|
94
94
|
method: "platform";
|
|
95
95
|
dimensions: {
|
|
96
96
|
length: number;
|
|
97
|
-
weight: number;
|
|
98
|
-
height: number;
|
|
99
97
|
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
weight: number;
|
|
100
100
|
};
|
|
101
101
|
}, {
|
|
102
102
|
pickupAddressId: string;
|
|
103
103
|
method: "platform";
|
|
104
104
|
dimensions: {
|
|
105
105
|
length: number;
|
|
106
|
-
weight: number;
|
|
107
|
-
height: number;
|
|
108
106
|
width: number;
|
|
107
|
+
height: number;
|
|
108
|
+
weight: number;
|
|
109
109
|
};
|
|
110
110
|
}>]>;
|
|
111
111
|
export type ShipOrderValues = z.infer<typeof shipOrderSchema>;
|