@mohasinac/appkit 3.4.8 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/client/features/classified/ClassifiedDetailView.js +1 -1
- package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +1 -1
- package/dist/_internal/client/features/digital-code/DigitalCodeDetailView.js +1 -1
- package/dist/_internal/client/features/filters/filter-load-options.js +10 -9
- package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +6 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +11 -4
- package/dist/_internal/client/features/live/LiveItemDetailView.js +2 -2
- package/dist/_internal/client/features/maintenance/views/AnalysisRunnerView.js +10 -3
- package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.js +2 -2
- package/dist/_internal/client/scaffolds/DashboardScaffold.js +3 -1
- package/dist/_internal/server/features/checkout/actions.d.ts +16 -0
- package/dist/_internal/server/features/checkout/actions.js +149 -35
- package/dist/_internal/server/features/checkout/bundle-expansion.d.ts +31 -0
- package/dist/_internal/server/features/checkout/bundle-expansion.js +41 -0
- package/dist/_internal/server/features/lottery/actions.js +14 -4
- package/dist/_internal/server/features/maintenance/analyze.js +4 -2
- package/dist/_internal/server/features/orders/actions.js +9 -0
- package/dist/_internal/server/features/orders/adapters.js +19 -0
- package/dist/_internal/server/features/seo/robots.js +1 -1
- package/dist/_internal/server/functions/firestore.d.ts +47 -1
- package/dist/_internal/server/functions/firestore.js +56 -1
- package/dist/_internal/server/functions/scheduled.d.ts +2 -1
- package/dist/_internal/server/functions/scheduled.js +9 -1
- package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.d.ts +10 -0
- package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.js +49 -0
- package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +32 -0
- package/dist/_internal/server/jobs/core/hardBanCascade.d.ts +26 -0
- package/dist/_internal/server/jobs/core/hardBanCascade.js +181 -0
- package/dist/_internal/server/jobs/core/index.d.ts +4 -1
- package/dist/_internal/server/jobs/core/index.js +4 -1
- package/dist/_internal/server/jobs/core/jobRunners.d.ts +28 -0
- package/dist/_internal/server/jobs/core/jobRunners.js +37 -0
- package/dist/_internal/server/jobs/core/onCatalogueSubmittedForApproval.d.ts +15 -0
- package/dist/_internal/server/jobs/core/onCatalogueSubmittedForApproval.js +38 -0
- package/dist/_internal/server/jobs/core/onJobCreated.d.ts +22 -0
- package/dist/_internal/server/jobs/core/onJobCreated.js +59 -0
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.d.ts +6 -1
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +5 -2
- package/dist/_internal/server/jobs/handlers/catalogueImageStalenessReminder.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/catalogueImageStalenessReminder.js +2 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +6 -0
- package/dist/_internal/server/jobs/handlers/index.js +8 -0
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.d.ts +12 -0
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.js +20 -0
- package/dist/_internal/server/jobs/handlers/onJobCreated.d.ts +3 -0
- package/dist/_internal/server/jobs/handlers/onJobCreated.js +9 -0
- package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.d.ts +25 -0
- package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.js +71 -0
- package/dist/_internal/server/jobs/handlers/onShipmentDeleted.d.ts +14 -0
- package/dist/_internal/server/jobs/handlers/onShipmentDeleted.js +23 -0
- package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.d.ts +17 -0
- package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.js +26 -0
- package/dist/_internal/server/jobs/handlers/weeklyPayoutEligibility.js +3 -1
- package/dist/_internal/shared/actions/action-registry.d.ts +1 -1
- package/dist/_internal/shared/actions/action-registry.js +136 -0
- package/dist/_internal/shared/features/blog/schema.d.ts +8 -8
- package/dist/_internal/shared/features/brands/schema.d.ts +4 -4
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +8 -8
- package/dist/_internal/shared/features/events/schema.d.ts +4 -4
- package/dist/_internal/shared/features/products/schema.d.ts +8 -8
- package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
- package/dist/_internal/shared/features/reviews/schema.d.ts +4 -4
- package/dist/client/api/useFeatureFlags.d.ts +22 -0
- package/dist/client/api/useFeatureFlags.js +27 -0
- package/dist/client/observability/reportClientError.js +3 -2
- package/dist/client.d.ts +4 -2
- package/dist/client.js +2 -1
- package/dist/configs/next.js +1 -0
- package/dist/constants/api-endpoints.d.ts +279 -3
- package/dist/constants/api-endpoints.js +130 -2
- package/dist/core/hooks/useSyncManager.js +5 -4
- package/dist/errors/conflict-error.d.ts +4 -0
- package/dist/errors/conflict-error.js +6 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/features/about/components/FeesView.js +2 -2
- package/dist/features/about/components/HelpPageView.js +2 -2
- package/dist/features/about/components/HowAuctionsWorkView.js +2 -2
- package/dist/features/about/components/HowCheckoutWorksView.js +2 -2
- package/dist/features/about/components/HowEmiWorksView.js +2 -2
- package/dist/features/about/components/HowOffersWorkView.js +3 -3
- package/dist/features/about/components/HowOrdersWorkView.js +3 -3
- package/dist/features/about/components/HowPayoutsWorkView.js +2 -2
- package/dist/features/about/components/HowPreOrdersWorkView.js +2 -2
- package/dist/features/about/components/HowReviewsWorkView.js +2 -2
- package/dist/features/about/components/PublicProfileView.d.ts +8 -1
- package/dist/features/about/components/PublicProfileView.js +11 -9
- package/dist/features/about/components/SecurityPrivacyView.js +2 -2
- package/dist/features/about/components/UnauthorizedView.js +2 -2
- package/dist/features/account/components/AddressBook.js +1 -1
- package/dist/features/account/components/AddressesIndexListing.js +1 -1
- package/dist/features/account/components/NotificationBell.js +5 -5
- package/dist/features/account/components/NotificationPreferencesPanel.js +5 -2
- package/dist/features/account/components/UserOffersPanel.js +5 -4
- package/dist/features/account/components/UserSidebar.js +2 -2
- package/dist/features/account/components/UserSupportView.js +3 -3
- package/dist/features/account/schemas/index.d.ts +12 -12
- package/dist/features/addresses/schemas/index.d.ts +6 -6
- package/dist/features/admin/components/AdminAdEditorView.js +3 -3
- package/dist/features/admin/components/AdminAddressEditorView.js +3 -3
- package/dist/features/admin/components/AdminAdsView.js +3 -3
- package/dist/features/admin/components/AdminBlogEditorView.js +1 -1
- package/dist/features/admin/components/AdminBlogView.js +12 -15
- package/dist/features/admin/components/AdminBrandEditorView.js +1 -1
- package/dist/features/admin/components/AdminBrandsView.js +12 -13
- package/dist/features/admin/components/AdminBundleEditorView.js +5 -4
- package/dist/features/admin/components/AdminBundlesView.js +32 -23
- package/dist/features/admin/components/AdminCarouselEditorView.js +5 -5
- package/dist/features/admin/components/AdminCarouselView.js +2 -2
- package/dist/features/admin/components/AdminCatalogGuideView.js +1 -1
- package/dist/features/admin/components/AdminCategoriesView.js +12 -13
- package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
- package/dist/features/admin/components/AdminContactEditorView.js +2 -2
- package/dist/features/admin/components/AdminCouponEditorView.d.ts +10 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +7 -2
- package/dist/features/admin/components/AdminCouponsView.js +32 -27
- package/dist/features/admin/components/AdminEmployeeEditorView.js +3 -3
- package/dist/features/admin/components/AdminFaqEditorView.js +1 -1
- package/dist/features/admin/components/AdminFaqsView.js +20 -20
- package/dist/features/admin/components/AdminFeatureEditorView.js +5 -5
- package/dist/features/admin/components/AdminFeaturesView.js +9 -10
- package/dist/features/admin/components/AdminFilterBar.js +1 -1
- package/dist/features/admin/components/AdminFulfillmentView.js +4 -4
- package/dist/features/admin/components/AdminGuideHubView.js +2 -2
- package/dist/features/admin/components/AdminMediaView.js +3 -2
- package/dist/features/admin/components/AdminNavigationView.js +1 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +3 -3
- package/dist/features/admin/components/AdminOrdersView.js +21 -30
- package/dist/features/admin/components/AdminPageHeader.js +3 -3
- package/dist/features/admin/components/AdminPayoutsView.js +8 -8
- package/dist/features/admin/components/AdminPrizeDrawsView.js +8 -9
- package/dist/features/admin/components/AdminProductEditorView.d.ts +9 -1
- package/dist/features/admin/components/AdminProductEditorView.js +7 -4
- package/dist/features/admin/components/AdminProductsView.js +30 -41
- package/dist/features/admin/components/AdminReviewsView.js +14 -17
- package/dist/features/admin/components/AdminScammerEditorView.js +5 -5
- package/dist/features/admin/components/AdminSectionsView.js +3 -3
- package/dist/features/admin/components/AdminSessionsView.js +8 -10
- package/dist/features/admin/components/AdminSidebar.js +2 -2
- package/dist/features/admin/components/AdminSiteSettingsView.js +10 -3
- package/dist/features/admin/components/AdminStoreEditorView.js +4 -5
- package/dist/features/admin/components/AdminStoresView.js +18 -13
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +7 -7
- package/dist/features/admin/components/AdminTeamView.js +9 -5
- package/dist/features/admin/components/AdminUsersView.js +19 -15
- package/dist/features/admin/components/AdminViewCards.js +5 -5
- package/dist/features/admin/components/DashboardStats.js +1 -1
- package/dist/features/admin/components/DataListingView.js +2 -2
- package/dist/features/admin/components/DataTable.js +2 -2
- package/dist/features/admin/components/DrawerFormFooter.js +1 -1
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +2 -2
- package/dist/features/admin/components/analytics/AdminStatCard.js +1 -1
- package/dist/features/admin/hooks/useAdminListing.d.ts +3 -2
- package/dist/features/admin/hooks/useAdminListing.js +8 -2
- package/dist/features/admin/permission-map.js +2 -0
- package/dist/features/admin/schemas/firestore.d.ts +7 -0
- package/dist/features/admin/schemas/firestore.js +4 -0
- package/dist/features/auctions/components/AuctionBidsTable.js +1 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +7 -7
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +3 -3
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +4 -4
- package/dist/features/auctions/components/PlaceBidFormClient.js +1 -1
- package/dist/features/auctions/schemas/index.d.ts +16 -16
- package/dist/features/auth/permissions/constants.d.ts +1 -1
- package/dist/features/auth/permissions/constants.js +2 -0
- package/dist/features/auth/schemas/index.d.ts +6 -6
- package/dist/features/before-after/schemas/index.d.ts +3 -3
- package/dist/features/blog/actions/blog-actions.d.ts +32 -32
- package/dist/features/blog/components/BlogFeaturedCard.js +2 -2
- package/dist/features/blog/components/BlogIndexListing.js +2 -2
- package/dist/features/blog/components/BlogListView.js +4 -4
- package/dist/features/blog/components/BlogPostView.js +4 -4
- package/dist/features/blog/schemas/index.d.ts +77 -77
- package/dist/features/cart/components/CartDrawer.js +2 -2
- package/dist/features/catalogue/actions/approve-catalogue-listing.d.ts +12 -0
- package/dist/features/catalogue/actions/approve-catalogue-listing.js +50 -0
- package/dist/features/catalogue/actions/list-from-catalogue.d.ts +17 -0
- package/dist/features/catalogue/actions/list-from-catalogue.js +50 -0
- package/dist/features/catalogue/actions/submit-for-approval.d.ts +8 -0
- package/dist/features/catalogue/actions/submit-for-approval.js +30 -0
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.d.ts +2 -0
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +53 -0
- package/dist/features/catalogue/components/CatalogueItemEditorView.d.ts +7 -0
- package/dist/features/catalogue/components/CatalogueItemEditorView.js +79 -0
- package/dist/features/catalogue/components/PublicCatalogueView.d.ts +5 -0
- package/dist/features/catalogue/components/PublicCatalogueView.js +22 -0
- package/dist/features/catalogue/components/UserCatalogueView.d.ts +12 -0
- package/dist/features/catalogue/components/UserCatalogueView.js +51 -0
- package/dist/features/catalogue/index.d.ts +12 -0
- package/dist/features/catalogue/index.js +9 -0
- package/dist/features/catalogue/repository/catalogue.repository.d.ts +39 -0
- package/dist/features/catalogue/repository/catalogue.repository.js +68 -0
- package/dist/features/catalogue/schemas/firestore.d.ts +47 -0
- package/dist/features/catalogue/schemas/firestore.js +22 -0
- package/dist/features/catalogue/schemas/index.d.ts +2 -0
- package/dist/features/catalogue/schemas/index.js +2 -0
- package/dist/features/catalogue/schemas/validation.d.ts +71 -0
- package/dist/features/catalogue/schemas/validation.js +25 -0
- package/dist/features/catalogue/utils/freshness.d.ts +10 -0
- package/dist/features/catalogue/utils/freshness.js +15 -0
- package/dist/features/catalogue/utils/product-from-item.d.ts +15 -0
- package/dist/features/catalogue/utils/product-from-item.js +34 -0
- package/dist/features/categories/components/BrandDetailPageView.js +1 -1
- package/dist/features/categories/components/BrandDetailTabs.js +2 -2
- package/dist/features/categories/components/BundleCollage.js +2 -2
- package/dist/features/categories/components/BundleItemsPicker.js +3 -2
- package/dist/features/categories/components/CategoriesIndexListing.js +8 -6
- package/dist/features/categories/components/CategoryBundlesListing.js +10 -4
- package/dist/features/categories/components/CategoryDetailPageView.js +1 -1
- package/dist/features/categories/components/CategoryDetailTabs.js +2 -2
- package/dist/features/categories/components/CategoryGrid.js +3 -3
- package/dist/features/categories/components/CategoryProductsListing.js +1 -1
- package/dist/features/categories/components/CategorySortSelect.js +1 -1
- package/dist/features/categories/components/CategoryStoresListing.js +1 -1
- package/dist/features/categories/components/CategoryTableColumns.js +1 -1
- package/dist/features/categories/components/CategoryTree.js +2 -2
- package/dist/features/categories/components/ConcernCard.js +1 -1
- package/dist/features/categories/hooks/useCategories.js +1 -1
- package/dist/features/categories/schemas/index.d.ts +32 -32
- package/dist/features/classified/components/ClassifiedFilters.js +2 -2
- package/dist/features/classified/components/ClassifiedIndexListing.js +9 -3
- package/dist/features/collections/schemas/index.d.ts +2 -2
- package/dist/features/consultation/components/ConsultationForm.js +1 -1
- package/dist/features/consultation/schemas/index.d.ts +10 -10
- package/dist/features/contact/components/ContactForm.js +4 -4
- package/dist/features/contact/components/ContactInfoSidebar.js +1 -1
- package/dist/features/contact/components/ContactPageView.js +2 -1
- package/dist/features/copilot/components/AdminCopilotView.js +5 -4
- package/dist/features/corporate/schemas/index.d.ts +2 -2
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.js +3 -3
- package/dist/features/events/components/AdminEventEditorView.js +4 -4
- package/dist/features/events/components/AdminEventEntriesView.js +2 -2
- package/dist/features/events/components/AdminEventsView.js +8 -8
- package/dist/features/events/components/EventBanner.js +1 -1
- package/dist/features/events/components/EventCard.js +3 -3
- package/dist/features/events/components/EventLeaderboard.js +1 -1
- package/dist/features/events/components/EventOfferCard.js +1 -1
- package/dist/features/events/components/EventPollWidget.js +6 -5
- package/dist/features/events/components/EventRaffleEntryForm.js +1 -1
- package/dist/features/events/components/EventRaffleWinnerView.js +5 -5
- package/dist/features/events/components/EventRafflesSection.js +1 -1
- package/dist/features/events/components/EventSaleBanner.js +1 -1
- package/dist/features/events/components/EventsIndexListing.js +4 -2
- package/dist/features/events/components/EventsListView.js +2 -2
- package/dist/features/events/components/SpinWheelView.js +11 -5
- package/dist/features/events/schemas/index.d.ts +100 -100
- package/dist/features/faq/actions/faq-actions.d.ts +6 -6
- package/dist/features/faq/components/ContactCTA.js +3 -3
- package/dist/features/faq/components/FAQCategorySidebar.js +2 -2
- package/dist/features/faq/components/FAQHelpfulButtons.js +3 -3
- package/dist/features/faq/schemas/index.d.ts +12 -12
- package/dist/features/filters/AsyncFacetSection.js +4 -4
- package/dist/features/filters/FilterFacetSection.js +8 -8
- package/dist/features/filters/RangeFilter.js +2 -2
- package/dist/features/filters/SwitchFilter.js +1 -1
- package/dist/features/forms/Checkbox.js +2 -8
- package/dist/features/forms/Input.js +2 -1
- package/dist/features/forms/Radio.js +3 -3
- package/dist/features/forms/Select.d.ts +1 -1
- package/dist/features/forms/Select.js +3 -2
- package/dist/features/forms/Slider.js +5 -11
- package/dist/features/forms/Textarea.js +2 -1
- package/dist/features/grouped/schemas/index.d.ts +6 -6
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
- package/dist/features/homepage/components/AdvertisementBanner.js +4 -4
- package/dist/features/homepage/components/AnnouncementBar.js +3 -3
- package/dist/features/homepage/components/BeforeAfterCard.js +1 -1
- package/dist/features/homepage/components/BrandsSection.js +9 -9
- package/dist/features/homepage/components/CTABannerSection.js +1 -1
- package/dist/features/homepage/components/CharacterHotspot.js +4 -4
- package/dist/features/homepage/components/CharacterHotspotForm.js +15 -13
- package/dist/features/homepage/components/CollectionCardsSection.js +1 -1
- package/dist/features/homepage/components/CustomCardsSection.js +6 -6
- package/dist/features/homepage/components/CustomerReviewsSection.js +2 -2
- package/dist/features/homepage/components/FAQSection.js +2 -2
- package/dist/features/homepage/components/FeaturedBundlesSection.js +3 -3
- package/dist/features/homepage/components/FeaturedResultsSection.js +2 -2
- package/dist/features/homepage/components/GoogleReviewsSection.js +6 -6
- package/dist/features/homepage/components/HeroBanner.js +1 -1
- package/dist/features/homepage/components/HeroCarousel.js +5 -4
- package/dist/features/homepage/components/HeroSection.js +1 -7
- package/dist/features/homepage/components/HomepageSkeleton.js +1 -1
- package/dist/features/homepage/components/HowItWorksInfoView.js +1 -1
- package/dist/features/homepage/components/HowItWorksSection.js +2 -2
- package/dist/features/homepage/components/NewsletterBanner.js +2 -2
- package/dist/features/homepage/components/NewsletterSection.js +1 -1
- package/dist/features/homepage/components/PromoGrid.js +1 -1
- package/dist/features/homepage/components/SectionCarousel.js +6 -6
- package/dist/features/homepage/components/SecurityHighlightsSection.js +2 -2
- package/dist/features/homepage/components/ShopByCategorySection.js +10 -10
- package/dist/features/homepage/components/SiteFeaturesSection.js +2 -2
- package/dist/features/homepage/components/SocialFeedSection.js +5 -5
- package/dist/features/homepage/components/SocialPostCard.js +1 -1
- package/dist/features/homepage/components/StatsCounterSection.js +1 -1
- package/dist/features/homepage/components/TestimonialsCarousel.js +1 -1
- package/dist/features/homepage/components/TrustBadges.js +1 -1
- package/dist/features/homepage/components/TrustFeaturesSection.js +2 -2
- package/dist/features/homepage/components/TrustIndicatorsSection.js +2 -2
- package/dist/features/homepage/components/WelcomeSection.js +2 -2
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +1 -1
- package/dist/features/homepage/hooks/useActiveAd.js +2 -1
- package/dist/features/homepage/schemas/firestore.d.ts +10 -0
- package/dist/features/homepage/schemas/index.d.ts +116 -116
- package/dist/features/jobs/actions/enqueue-job.d.ts +24 -0
- package/dist/features/jobs/actions/enqueue-job.js +44 -0
- package/dist/features/jobs/repository/jobs.repository.d.ts +21 -0
- package/dist/features/jobs/repository/jobs.repository.js +48 -0
- package/dist/features/jobs/schemas/firestore.d.ts +54 -0
- package/dist/features/jobs/schemas/firestore.js +24 -0
- package/dist/features/layout/AppLayoutShell.js +17 -11
- package/dist/features/layout/AutoBreadcrumbs.js +1 -1
- package/dist/features/layout/BackToTop.js +2 -2
- package/dist/features/layout/BottomActions.js +7 -7
- package/dist/features/layout/BottomNavItem.js +2 -2
- package/dist/features/layout/BottomNavLayout.js +13 -4
- package/dist/features/layout/BottomNavbar.d.ts +9 -1
- package/dist/features/layout/BottomNavbar.js +12 -5
- package/dist/features/layout/BottomSheet.js +1 -1
- package/dist/features/layout/Breadcrumbs.js +1 -1
- package/dist/features/layout/FooterLayout.js +2 -2
- package/dist/features/layout/NavItem.js +3 -3
- package/dist/features/layout/NavbarLayout.js +6 -6
- package/dist/features/layout/SidebarLayout.d.ts +3 -0
- package/dist/features/layout/SidebarLayout.js +3 -3
- package/dist/features/layout/TitleBarLayout.js +4 -4
- package/dist/features/live/components/LiveItemFilters.js +2 -2
- package/dist/features/live/components/LiveItemsIndexListing.js +3 -3
- package/dist/features/lottery/types/index.d.ts +3 -1
- package/dist/features/lottery/types/index.js +16 -3
- package/dist/features/loyalty/components/CoinsDisplay.js +2 -2
- package/dist/features/media/MediaImage.d.ts +6 -1
- package/dist/features/media/MediaImage.js +10 -4
- package/dist/features/media/MediaLightbox.js +1 -1
- package/dist/features/media/MediaPickerModal.js +4 -3
- package/dist/features/media/MediaVideo.js +1 -1
- package/dist/features/media/modals/ImageCropModal.js +1 -1
- package/dist/features/media/modals/ImageEditor.js +1 -1
- package/dist/features/media/repository/media-assets.repository.d.ts +9 -0
- package/dist/features/media/types/index.d.ts +4 -4
- package/dist/features/media/upload/MediaUploadField.js +3 -3
- package/dist/features/media/upload/MediaUploadList.js +1 -1
- package/dist/features/messages/hooks/useConversation.js +4 -3
- package/dist/features/messages/hooks/useConversations.js +2 -1
- package/dist/features/messages/schemas/index.d.ts +6 -6
- package/dist/features/orders/components/MarketplaceOrderCard.js +1 -1
- package/dist/features/orders/components/OrderPaymentSummary.d.ts +16 -0
- package/dist/features/orders/components/OrderPaymentSummary.js +32 -0
- package/dist/features/orders/components/OrderSiblingPayments.js +1 -1
- package/dist/features/orders/components/OrdersList.d.ts +7 -2
- package/dist/features/orders/components/OrdersList.js +5 -5
- package/dist/features/orders/components/RefundHistoryTable.js +1 -1
- package/dist/features/orders/components/RefundRequestView.js +1 -1
- package/dist/features/orders/components/index.d.ts +2 -0
- package/dist/features/orders/components/index.js +1 -0
- package/dist/features/orders/repository/orders.repository.d.ts +8 -0
- package/dist/features/orders/repository/orders.repository.js +24 -0
- package/dist/features/orders/schemas/firestore.d.ts +59 -0
- package/dist/features/orders/schemas/firestore.js +5 -0
- package/dist/features/orders/schemas/index.d.ts +91 -40
- package/dist/features/orders/schemas/index.js +10 -0
- package/dist/features/orders/types/index.d.ts +15 -0
- package/dist/features/payments/schemas/index.d.ts +12 -12
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +5 -5
- package/dist/features/pre-orders/components/PreOrderActionsClient.js +1 -1
- package/dist/features/pre-orders/components/PreOrderBadge.js +1 -1
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +7 -7
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +3 -3
- package/dist/features/pre-orders/schemas/index.d.ts +12 -12
- package/dist/features/products/columns/productTableColumns.js +2 -2
- package/dist/features/products/components/AuctionsIndexListing.js +3 -3
- package/dist/features/products/components/CompareOverlay.js +15 -10
- package/dist/features/products/components/CustomFieldsEditor.js +2 -2
- package/dist/features/products/components/CustomSectionsEditor.js +3 -3
- package/dist/features/products/components/FeatureBadge.js +2 -2
- package/dist/features/products/components/GroupSettingsPanel.js +5 -4
- package/dist/features/products/components/MakeOfferButton.js +4 -4
- package/dist/features/products/components/MarketplaceBundleCard.js +3 -2
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +1 -1
- package/dist/features/products/components/PrizeDrawCollage.js +6 -6
- package/dist/features/products/components/PrizeDrawDetailPageView.js +5 -5
- package/dist/features/products/components/PrizeDrawEntryActions.js +1 -1
- package/dist/features/products/components/PrizeDrawItemsEditor.js +4 -4
- package/dist/features/products/components/PrizeDrawsIndexListing.js +11 -4
- package/dist/features/products/components/PrizeDrawsSection.js +1 -1
- package/dist/features/products/components/PrizeRevealModal.js +9 -4
- package/dist/features/products/components/ProductDetailActions.js +2 -1
- package/dist/features/products/components/ProductDetailPageView.js +16 -16
- package/dist/features/products/components/ProductFeaturesSelector.js +5 -5
- package/dist/features/products/components/ProductForm.js +1 -1
- package/dist/features/products/components/ProductGalleryClient.js +5 -3
- package/dist/features/products/components/ProductGrid.js +11 -11
- package/dist/features/products/components/ProductTabs.js +2 -2
- package/dist/features/products/components/ProductTabsShell.js +2 -1
- package/dist/features/products/components/ProductsIndexListing.js +6 -1
- package/dist/features/products/components/ShareButton.js +2 -1
- package/dist/features/products/components/ShowGroupSection.js +9 -5
- package/dist/features/products/components/SublistingCarouselSection.js +8 -4
- package/dist/features/products/constants/action-defs.d.ts +10 -2
- package/dist/features/products/constants/action-defs.js +20 -2
- package/dist/features/products/schemas/firestore.d.ts +5 -0
- package/dist/features/products/schemas/index.d.ts +40 -40
- package/dist/features/products/schemas/product-features.validators.d.ts +14 -14
- package/dist/features/promotions/components/CouponCard.js +13 -7
- package/dist/features/promotions/components/CouponsIndexListing.js +4 -6
- package/dist/features/promotions/components/PromotionsView.js +2 -2
- package/dist/features/promotions/schemas/index.d.ts +26 -26
- package/dist/features/reviews/components/ReviewDetailPageView.js +1 -1
- package/dist/features/reviews/components/ReviewDetailShell.js +11 -11
- package/dist/features/reviews/components/ReviewModal.js +1 -1
- package/dist/features/reviews/components/ReviewsIndexListing.js +2 -2
- package/dist/features/reviews/components/ReviewsList.js +2 -2
- package/dist/features/reviews/schemas/index.d.ts +22 -22
- package/dist/features/scams/components/ScamAwarenessModal.js +2 -2
- package/dist/features/scams/components/ScamProfileView.js +3 -3
- package/dist/features/scams/components/ScamRegistryView.js +2 -2
- package/dist/features/scams/schemas/index.d.ts +20 -20
- package/dist/features/search/components/Search.js +9 -9
- package/dist/features/search/components/SearchFiltersRow.js +1 -1
- package/dist/features/search/components/SearchResultsSection.js +3 -3
- package/dist/features/search/components/SearchView.js +1 -1
- package/dist/features/search/hooks/useNavSuggestions.js +2 -1
- package/dist/features/search/hooks/useSearch.js +2 -2
- package/dist/features/search/schemas/index.d.ts +3 -3
- package/dist/features/seller/components/BrandInlineSelect.js +2 -2
- package/dist/features/seller/components/CategoryInlineSelect.js +2 -2
- package/dist/features/seller/components/QuickProductForm.js +1 -1
- package/dist/features/seller/components/SellerAddressesView.js +4 -4
- package/dist/features/seller/components/SellerAnalyticsAlertsView.js +3 -3
- package/dist/features/seller/components/SellerAnalyticsView.js +2 -2
- package/dist/features/seller/components/SellerArtView.js +11 -11
- package/dist/features/seller/components/SellerAuctionsView.js +11 -11
- package/dist/features/seller/components/SellerBidsView.js +3 -3
- package/dist/features/seller/components/SellerBundlesView.js +12 -12
- package/dist/features/seller/components/SellerClassifiedView.js +11 -11
- package/dist/features/seller/components/SellerCouponEditorView.js +2 -2
- package/dist/features/seller/components/SellerDigitalCodesView.js +11 -11
- package/dist/features/seller/components/SellerFeaturesView.js +4 -4
- package/dist/features/seller/components/SellerLiveView.js +11 -11
- package/dist/features/seller/components/SellerOffersPanel.js +3 -2
- package/dist/features/seller/components/SellerOrdersView.js +2 -2
- package/dist/features/seller/components/SellerPayoutMethodsView.js +1 -1
- package/dist/features/seller/components/SellerPayoutRequestView.js +6 -5
- package/dist/features/seller/components/SellerPayoutSettingsView.js +5 -4
- package/dist/features/seller/components/SellerPreOrdersView.js +1 -1
- package/dist/features/seller/components/SellerPrizeDrawsView.js +1 -1
- package/dist/features/seller/components/SellerProductShell.js +20 -6
- package/dist/features/seller/components/SellerProductsCards.js +3 -3
- package/dist/features/seller/components/SellerProductsView.js +4 -4
- package/dist/features/seller/components/SellerReviewsView.js +7 -6
- package/dist/features/seller/components/SellerShippingView.js +2 -1
- package/dist/features/seller/components/SellerSidebar.js +5 -5
- package/dist/features/seller/components/SellerStickersView.js +11 -11
- package/dist/features/seller/components/SellerTemplatesView.js +1 -1
- package/dist/features/seller/schemas/index.d.ts +20 -20
- package/dist/features/server-errors/schemas/index.d.ts +6 -6
- package/dist/features/shell/CommandPalette.d.ts +27 -0
- package/dist/features/shell/CommandPalette.js +92 -0
- package/dist/features/shell/FormShell.js +4 -3
- package/dist/features/shell/QuickFormDrawer.js +3 -2
- package/dist/features/shell/StepForm.js +2 -2
- package/dist/features/shell/index.d.ts +2 -0
- package/dist/features/shell/index.js +1 -0
- package/dist/features/shipments/components/AdminShipmentEditorView.d.ts +7 -0
- package/dist/features/shipments/components/AdminShipmentEditorView.js +123 -0
- package/dist/features/shipments/components/AdminShipmentLotItemsView.d.ts +6 -0
- package/dist/features/shipments/components/AdminShipmentLotItemsView.js +96 -0
- package/dist/features/shipments/components/AdminShipmentProjectionsView.d.ts +9 -0
- package/dist/features/shipments/components/AdminShipmentProjectionsView.js +44 -0
- package/dist/features/shipments/components/AdminShipmentsView.d.ts +8 -0
- package/dist/features/shipments/components/AdminShipmentsView.js +82 -0
- package/dist/features/shipments/components/ShipmentItemLinkModal.d.ts +15 -0
- package/dist/features/shipments/components/ShipmentItemLinkModal.js +37 -0
- package/dist/features/shipments/hooks/useShipments.d.ts +69 -0
- package/dist/features/shipments/hooks/useShipments.js +96 -0
- package/dist/features/shipments/index.d.ts +10 -0
- package/dist/features/shipments/index.js +7 -0
- package/dist/features/shipments/manifest.d.ts +2 -0
- package/dist/features/shipments/manifest.js +26 -0
- package/dist/features/shipments/repository/shipment-items.repository.d.ts +56 -0
- package/dist/features/shipments/repository/shipment-items.repository.js +78 -0
- package/dist/features/shipments/repository/shipment-lots.repository.d.ts +48 -0
- package/dist/features/shipments/repository/shipment-lots.repository.js +55 -0
- package/dist/features/shipments/repository/shipments.repository.d.ts +50 -0
- package/dist/features/shipments/repository/shipments.repository.js +77 -0
- package/dist/features/shipments/schemas/firestore.d.ts +150 -0
- package/dist/features/shipments/schemas/firestore.js +76 -0
- package/dist/features/shipments/schemas/index.d.ts +2 -0
- package/dist/features/shipments/schemas/index.js +2 -0
- package/dist/features/shipments/schemas/validation.d.ts +350 -0
- package/dist/features/shipments/schemas/validation.js +96 -0
- package/dist/features/shipments/utils/cost-allocation.d.ts +25 -0
- package/dist/features/shipments/utils/cost-allocation.js +83 -0
- package/dist/features/site-settings/components/ActionPermissionsManager.js +2 -2
- package/dist/features/stores/components/InteractiveStoreCard.js +2 -2
- package/dist/features/stores/components/StoreAboutView.js +1 -1
- package/dist/features/stores/components/StoreAuctionsListing.js +3 -3
- package/dist/features/stores/components/StoreAuctionsView.js +1 -1
- package/dist/features/stores/components/StoreCapabilitiesGuideView.js +1 -1
- package/dist/features/stores/components/StoreClassifiedsListing.js +2 -2
- package/dist/features/stores/components/StoreDetailLayoutView.js +1 -1
- package/dist/features/stores/components/StoreDigitalCodesListing.js +2 -2
- package/dist/features/stores/components/StoreFinanceGuideView.js +2 -2
- package/dist/features/stores/components/StoreGuideHubView.js +2 -2
- package/dist/features/stores/components/StoreHeader.js +4 -4
- package/dist/features/stores/components/StoreLiveItemsListing.js +2 -2
- package/dist/features/stores/components/StoreNavTabs.js +2 -2
- package/dist/features/stores/components/StoreOrdersGuideView.js +1 -1
- package/dist/features/stores/components/StorePreOrdersListing.js +3 -3
- package/dist/features/stores/components/StoreProductsListing.js +1 -1
- package/dist/features/stores/components/StoreReviewsListing.js +2 -2
- package/dist/features/stores/components/StoreReviewsView.js +1 -1
- package/dist/features/stores/components/StoreSettingsGuideView.js +1 -1
- package/dist/features/stores/components/StoresIndexListing.js +9 -3
- package/dist/features/stores/schemas/index.d.ts +10 -10
- package/dist/features/support/schemas/index.d.ts +22 -22
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +3 -3
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.js +1 -1
- package/dist/features/wishlist/hooks/useWishlistCount.js +1 -2
- package/dist/index.d.ts +44 -1
- package/dist/index.js +37 -1
- package/dist/next/routing/route-map.d.ts +18 -0
- package/dist/next/routing/route-map.js +9 -0
- package/dist/react/hooks/useVisualViewportInset.d.ts +1 -0
- package/dist/react/hooks/useVisualViewportInset.js +59 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/repositories/index.d.ts +5 -0
- package/dist/repositories/index.js +5 -0
- package/dist/schemas/registry.d.ts +398 -364
- package/dist/schemas/sieve.d.ts +2 -2
- package/dist/schemas/webhooks/google-oauth.d.ts +2 -2
- package/dist/schemas/webhooks/razorpay.d.ts +100 -100
- package/dist/seed/_helpers/media.js +1 -0
- package/dist/seed/actions/demo-seed-actions.d.ts +1 -1
- package/dist/seed/catalogue-seed-data.d.ts +2 -0
- package/dist/seed/catalogue-seed-data.js +112 -0
- package/dist/seed/grouped-listings-seed-data.d.ts +5 -0
- package/dist/seed/homepage-sections-seed-data.js +0 -1
- package/dist/seed/index.d.ts +2 -0
- package/dist/seed/index.js +2 -0
- package/dist/seed/manifest.js +6 -0
- package/dist/seed/products-preorders-seed-data.d.ts +5 -0
- package/dist/seed/shipments-seed-data.d.ts +5 -0
- package/dist/seed/shipments-seed-data.js +185 -0
- package/dist/server.d.ts +4 -0
- package/dist/server.js +5 -0
- package/dist/styles.css +75 -19
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/index.d.ts +0 -2
- package/dist/tokens/index.js +0 -2
- package/dist/tokens/tokens.css +12 -2
- package/dist/ui/DataTable.js +4 -3
- package/dist/ui/components/Button.d.ts +4 -1
- package/dist/ui/components/Button.js +11 -5
- package/dist/ui/components/Checkbox.d.ts +9 -1
- package/dist/ui/components/Checkbox.js +5 -2
- package/dist/ui/components/ClaimCouponButton.js +2 -1
- package/dist/ui/components/ConfirmDeleteModal.style.css +1 -1
- package/dist/ui/components/Drawer.style.css +13 -1
- package/dist/ui/components/Dropdown.style.css +2 -2
- package/dist/ui/components/FilterDrawer.d.ts +4 -1
- package/dist/ui/components/FilterDrawer.js +8 -2
- package/dist/ui/components/Form.d.ts +1 -1
- package/dist/ui/components/Form.js +2 -2
- package/dist/ui/components/FormActionBar.style.css +6 -1
- package/dist/ui/components/IconButton.d.ts +6 -1
- package/dist/ui/components/IconButton.js +5 -2
- package/dist/ui/components/IconButton.style.css +11 -0
- package/dist/ui/components/ImageGallery.style.css +2 -0
- package/dist/ui/components/ImageLightbox.style.css +1 -0
- package/dist/ui/components/ListingFilterDrawer.d.ts +4 -1
- package/dist/ui/components/ListingFilterDrawer.js +4 -3
- package/dist/ui/components/ListingLayout.style.css +2 -2
- package/dist/ui/components/Modal.style.css +1 -1
- package/dist/ui/components/Pagination.d.ts +5 -1
- package/dist/ui/components/Pagination.js +4 -2
- package/dist/ui/components/RowActionMenu.js +1 -1
- package/dist/ui/components/RowActionMenu.style.css +1 -1
- package/dist/ui/components/Select.d.ts +6 -1
- package/dist/ui/components/Select.js +18 -13
- package/dist/ui/components/Select.style.css +1 -1
- package/dist/ui/components/Semantic.d.ts +13 -0
- package/dist/ui/components/Semantic.js +16 -3
- package/dist/ui/components/SideDrawer.style.css +16 -4
- package/dist/ui/components/SideModal.style.css +1 -1
- package/dist/ui/components/StickyToolbar.d.ts +3 -2
- package/dist/ui/components/StickyToolbar.js +1 -1
- package/dist/ui/components/Textarea.d.ts +5 -0
- package/dist/ui/components/Textarea.js +8 -4
- package/dist/ui/components/Toast.style.css +3 -0
- package/dist/ui/components/UnsavedChangesModal.style.css +1 -1
- package/dist/ui/components/surface-tokens.d.ts +121 -113
- package/dist/ui/components/surface-tokens.js +110 -104
- package/dist/ui/forms/FormShell.d.ts +8 -27
- package/dist/ui/forms/FormShell.js +1 -194
- package/dist/ui/forms/index.d.ts +2 -2
- package/dist/ui/forms/index.js +1 -1
- package/dist/ui/index.d.ts +8 -4
- package/dist/ui/index.js +4 -2
- package/dist/utils/id-generators.d.ts +27 -0
- package/dist/utils/id-generators.js +45 -0
- package/dist/utils/number.formatter.d.ts +7 -0
- package/dist/utils/number.formatter.js +9 -0
- package/dist/validation/schemas.d.ts +5 -5
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { MEDIA_ENDPOINTS } from "../../constants/api-endpoints";
|
|
18
18
|
const PROXY_PREFIX = "/media/";
|
|
19
|
+
// audit-hardcoded-api-routes-ok: idempotency prefix check for MEDIA_ENDPOINTS.EXT_URL's own output shape, not a call site
|
|
19
20
|
const EXT_PREFIX = "/api/media/ext?url=";
|
|
20
21
|
export function seedExtMedia(url) {
|
|
21
22
|
if (url.startsWith(PROXY_PREFIX))
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* the actual collection-specific seeding logic (800+ lines with PII encryption,
|
|
7
7
|
* Auth user creation, subcollection handling, etc.).
|
|
8
8
|
*/
|
|
9
|
-
export type SeedCollectionName = "users" | "addresses" | "categories" | "stores" | "products" | "orders" | "reviews" | "bids" | "coupons" | "carousels" | "carouselSlides" | "homepageSections" | "siteSettings" | "faqs" | "notifications" | "payouts" | "blogPosts" | "events" | "eventEntries" | "sessions" | "carts" | "wishlists" | "history" | "conversations" | "groupedListings" | "scammerProfiles" | "supportTickets" | "productFeatures" | "offers" | "couponUsage" | "claimedCoupons" | "payoutMethods" | "shippingConfigs" | "analyticsCards" | "analyticsAlerts" | "storeCategories" | "listingTemplates" | "moderationQueue" | "reports" | "itemRequests" | "storeWhatsAppConfig" | "storeGoogleConfig" | "roleOverrides" | "customRoles" | "adminNotifications" | "lotteryEntries";
|
|
9
|
+
export type SeedCollectionName = "users" | "addresses" | "categories" | "stores" | "products" | "orders" | "reviews" | "bids" | "coupons" | "carousels" | "carouselSlides" | "homepageSections" | "siteSettings" | "faqs" | "notifications" | "payouts" | "blogPosts" | "events" | "eventEntries" | "sessions" | "carts" | "wishlists" | "history" | "conversations" | "groupedListings" | "scammerProfiles" | "supportTickets" | "productFeatures" | "offers" | "couponUsage" | "claimedCoupons" | "payoutMethods" | "shippingConfigs" | "analyticsCards" | "analyticsAlerts" | "storeCategories" | "listingTemplates" | "moderationQueue" | "reports" | "itemRequests" | "storeWhatsAppConfig" | "storeGoogleConfig" | "roleOverrides" | "customRoles" | "adminNotifications" | "lotteryEntries" | "shipments" | "shipmentLots" | "shipmentItems" | "catalogueItems";
|
|
10
10
|
export interface SeedOperationResult {
|
|
11
11
|
success?: boolean;
|
|
12
12
|
message: string;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WHY: Seeds the personal catalogue (Feature B) — a handful of items owned
|
|
3
|
+
* by seeded buyers/sellers across each listingStatus, so the user
|
|
4
|
+
* dashboard, public profile tab, and admin approvals queue all have
|
|
5
|
+
* something to render.
|
|
6
|
+
* WHAT: 6 items across not_listed/pending_admin_approval/listed/rejected,
|
|
7
|
+
* a mix of public/private visibility, one with a stale
|
|
8
|
+
* lastImageUpdateAt (>30 days) to exercise the freshness gate.
|
|
9
|
+
*
|
|
10
|
+
* EXPORTS: catalogueSeedData — Array of Partial<CatalogueItemDocument>
|
|
11
|
+
*/
|
|
12
|
+
const NOW = new Date();
|
|
13
|
+
const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
|
|
14
|
+
export const catalogueSeedData = [
|
|
15
|
+
{
|
|
16
|
+
id: "mycatalog-user-ravi-kumar-vintage-hotwheels-20260801-a1b2c3",
|
|
17
|
+
ownerId: "user-ravi-kumar",
|
|
18
|
+
ownerRole: "user",
|
|
19
|
+
title: "Vintage Hot Wheels Redline (1969)",
|
|
20
|
+
description: "Original paint, minor wheel wear. Family collection.",
|
|
21
|
+
images: [],
|
|
22
|
+
mainImage: undefined,
|
|
23
|
+
condition: "good",
|
|
24
|
+
price: 450000,
|
|
25
|
+
quantity: 1,
|
|
26
|
+
visibility: "public",
|
|
27
|
+
listingStatus: "not_listed",
|
|
28
|
+
lastImageUpdateAt: daysAgo(5),
|
|
29
|
+
createdAt: daysAgo(10),
|
|
30
|
+
updatedAt: daysAgo(5),
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "mycatalog-user-ravi-kumar-charizard-holo-20260805-b2c3d4",
|
|
34
|
+
ownerId: "user-ravi-kumar",
|
|
35
|
+
ownerRole: "user",
|
|
36
|
+
title: "Charizard Holo 1st Edition (played)",
|
|
37
|
+
images: [],
|
|
38
|
+
condition: "fair",
|
|
39
|
+
price: 1200000,
|
|
40
|
+
quantity: 1,
|
|
41
|
+
visibility: "public",
|
|
42
|
+
listingStatus: "pending_admin_approval",
|
|
43
|
+
submittedForApprovalAt: daysAgo(2),
|
|
44
|
+
lastImageUpdateAt: daysAgo(3),
|
|
45
|
+
createdAt: daysAgo(8),
|
|
46
|
+
updatedAt: daysAgo(2),
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "mycatalog-user-priya-shah-gundam-rx78-20260710-c3d4e5",
|
|
50
|
+
ownerId: "user-priya-shah",
|
|
51
|
+
ownerRole: "user",
|
|
52
|
+
title: "Gundam RX-78-2 Model Kit (built)",
|
|
53
|
+
images: [],
|
|
54
|
+
condition: "like_new",
|
|
55
|
+
price: 250000,
|
|
56
|
+
quantity: 1,
|
|
57
|
+
visibility: "public",
|
|
58
|
+
listingStatus: "listed",
|
|
59
|
+
linkedProductId: "product-gundam-rx78-2-model-kit-built",
|
|
60
|
+
linkedProductSlug: "product-gundam-rx78-2-model-kit-built",
|
|
61
|
+
lastImageUpdateAt: daysAgo(20),
|
|
62
|
+
createdAt: daysAgo(25),
|
|
63
|
+
updatedAt: daysAgo(20),
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "mycatalog-user-priya-shah-broken-beyblade-20260715-d4e5f6",
|
|
67
|
+
ownerId: "user-priya-shah",
|
|
68
|
+
ownerRole: "user",
|
|
69
|
+
title: "Beyblade Burst (missing launcher)",
|
|
70
|
+
images: [],
|
|
71
|
+
condition: "poor",
|
|
72
|
+
price: 30000,
|
|
73
|
+
quantity: 1,
|
|
74
|
+
visibility: "private",
|
|
75
|
+
listingStatus: "rejected",
|
|
76
|
+
rejectionReason: "Missing launcher — please list as parts-only or add photos of the full working set.",
|
|
77
|
+
submittedForApprovalAt: daysAgo(15),
|
|
78
|
+
lastImageUpdateAt: daysAgo(18),
|
|
79
|
+
createdAt: daysAgo(20),
|
|
80
|
+
updatedAt: daysAgo(14),
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "mycatalog-store-mistys-water-cards-pokemon-binder-20260601-e5f6a7",
|
|
84
|
+
ownerId: "user-store-owner-misty",
|
|
85
|
+
ownerRole: "seller",
|
|
86
|
+
title: "Pokémon Binder — 180 cards, mixed sets",
|
|
87
|
+
images: [],
|
|
88
|
+
condition: "good",
|
|
89
|
+
price: 800000,
|
|
90
|
+
quantity: 1,
|
|
91
|
+
visibility: "public",
|
|
92
|
+
listingStatus: "not_listed",
|
|
93
|
+
lastImageUpdateAt: daysAgo(45),
|
|
94
|
+
createdAt: daysAgo(60),
|
|
95
|
+
updatedAt: daysAgo(45),
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: "mycatalog-user-arjun-mehta-funko-batman-20260620-f6a7b8",
|
|
99
|
+
ownerId: "user-arjun-mehta",
|
|
100
|
+
ownerRole: "user",
|
|
101
|
+
title: "Funko Pop Batman (box wear only)",
|
|
102
|
+
images: [],
|
|
103
|
+
condition: "new",
|
|
104
|
+
price: 180000,
|
|
105
|
+
quantity: 2,
|
|
106
|
+
visibility: "private",
|
|
107
|
+
listingStatus: "not_listed",
|
|
108
|
+
lastImageUpdateAt: daysAgo(1),
|
|
109
|
+
createdAt: daysAgo(1),
|
|
110
|
+
updatedAt: daysAgo(1),
|
|
111
|
+
},
|
|
112
|
+
];
|
|
@@ -95,6 +95,11 @@ export declare const groupedListingsSeedData: {
|
|
|
95
95
|
partOfBundleIds?: string[] | undefined;
|
|
96
96
|
partOfBundleTitles?: string[] | undefined;
|
|
97
97
|
isPartOfBundle?: boolean | undefined;
|
|
98
|
+
sourceShipmentId?: string | undefined;
|
|
99
|
+
sourceShipmentLotId?: string | undefined;
|
|
100
|
+
sourceShipmentItemId?: string | undefined;
|
|
101
|
+
sourceCatalogueItemId?: string | undefined;
|
|
102
|
+
sourceCatalogueOwnerId?: string | undefined;
|
|
98
103
|
prizeDrawItems?: import("../features/products").PrizeDrawItem[] | undefined;
|
|
99
104
|
pricePerEntry?: number | undefined;
|
|
100
105
|
prizeMaxEntries?: number | undefined;
|
|
@@ -280,7 +280,6 @@ export const homepageSectionsSeedData = [
|
|
|
280
280
|
"Free giveaways and community events",
|
|
281
281
|
],
|
|
282
282
|
buttonText: "Join WhatsApp Community",
|
|
283
|
-
testimonial: '"The LetItRip group helped me authenticate a PSA slab within 10 minutes." — Ravi K., Mumbai',
|
|
284
283
|
},
|
|
285
284
|
createdAt: daysAgo(90),
|
|
286
285
|
updatedAt: daysAgo(8),
|
package/dist/seed/index.d.ts
CHANGED
|
@@ -65,6 +65,8 @@ export { claimedCouponsSeedData } from "./claimed-coupons-seed-data";
|
|
|
65
65
|
export { eventsSeedData, eventEntriesSeedData } from "./events-seed-data";
|
|
66
66
|
export { lotteryEntriesSeedData } from "./lottery-entries-seed-data";
|
|
67
67
|
export { payoutsSeedData } from "./payouts-seed-data";
|
|
68
|
+
export { shipmentsSeedData, shipmentLotsSeedData, shipmentItemsSeedData } from "./shipments-seed-data";
|
|
69
|
+
export { catalogueSeedData } from "./catalogue-seed-data";
|
|
68
70
|
export { notificationsSeedData } from "./notifications-seed-data";
|
|
69
71
|
export { blogPostsSeedData } from "./blog-posts-seed-data";
|
|
70
72
|
export { faqSeedData } from "./faq-seed-data";
|
package/dist/seed/index.js
CHANGED
|
@@ -52,6 +52,8 @@ export { claimedCouponsSeedData } from "./claimed-coupons-seed-data";
|
|
|
52
52
|
export { eventsSeedData, eventEntriesSeedData } from "./events-seed-data";
|
|
53
53
|
export { lotteryEntriesSeedData } from "./lottery-entries-seed-data";
|
|
54
54
|
export { payoutsSeedData } from "./payouts-seed-data";
|
|
55
|
+
export { shipmentsSeedData, shipmentLotsSeedData, shipmentItemsSeedData } from "./shipments-seed-data";
|
|
56
|
+
export { catalogueSeedData } from "./catalogue-seed-data";
|
|
55
57
|
export { notificationsSeedData } from "./notifications-seed-data";
|
|
56
58
|
export { blogPostsSeedData } from "./blog-posts-seed-data";
|
|
57
59
|
export { faqSeedData } from "./faq-seed-data";
|
package/dist/seed/manifest.js
CHANGED
|
@@ -30,6 +30,8 @@ import { siteSettingsSeedData } from "./site-settings-seed-data";
|
|
|
30
30
|
import { faqSeedData } from "./faq-seed-data";
|
|
31
31
|
import { notificationsSeedData } from "./notifications-seed-data";
|
|
32
32
|
import { payoutsSeedData } from "./payouts-seed-data";
|
|
33
|
+
import { shipmentsSeedData, shipmentLotsSeedData, shipmentItemsSeedData } from "./shipments-seed-data";
|
|
34
|
+
import { catalogueSeedData } from "./catalogue-seed-data";
|
|
33
35
|
import { blogPostsSeedData } from "./blog-posts-seed-data";
|
|
34
36
|
import { eventsSeedData } from "./events-seed-data";
|
|
35
37
|
import { sessionsSeedData } from "./sessions-seed-data";
|
|
@@ -128,6 +130,10 @@ export const SEED_MANIFEST = {
|
|
|
128
130
|
name: n.title ?? n.type ?? n.id,
|
|
129
131
|
}))),
|
|
130
132
|
payouts: pick(asArr(payoutsSeedData)),
|
|
133
|
+
shipments: pick(asArr(shipmentsSeedData), "shipmentNumber"),
|
|
134
|
+
shipmentLots: pick(asArr(shipmentLotsSeedData), "lotName"),
|
|
135
|
+
shipmentItems: pick(asArr(shipmentItemsSeedData), "title"),
|
|
136
|
+
catalogueItems: pick(asArr(catalogueSeedData), "title"),
|
|
131
137
|
blogPosts: pick(asArr(blogPostsSeedData).map((p) => ({
|
|
132
138
|
...p,
|
|
133
139
|
name: p.title ?? p.id,
|
|
@@ -96,6 +96,11 @@ export declare const productsPreordersSeedData: {
|
|
|
96
96
|
partOfBundleIds?: string[] | undefined;
|
|
97
97
|
partOfBundleTitles?: string[] | undefined;
|
|
98
98
|
isPartOfBundle?: boolean | undefined;
|
|
99
|
+
sourceShipmentId?: string | undefined;
|
|
100
|
+
sourceShipmentLotId?: string | undefined;
|
|
101
|
+
sourceShipmentItemId?: string | undefined;
|
|
102
|
+
sourceCatalogueItemId?: string | undefined;
|
|
103
|
+
sourceCatalogueOwnerId?: string | undefined;
|
|
99
104
|
prizeDrawItems?: import("../features/products").PrizeDrawItem[] | undefined;
|
|
100
105
|
pricePerEntry?: number | undefined;
|
|
101
106
|
prizeMaxEntries?: number | undefined;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ShipmentDocument, ShipmentLot, ShipmentItem } from "../features/shipments/schemas/firestore";
|
|
2
|
+
declare const shipmentLotsSeedData: Partial<ShipmentLot>[];
|
|
3
|
+
declare const shipmentsSeedData: Partial<ShipmentDocument>[];
|
|
4
|
+
declare const shipmentItemsSeedData: Partial<ShipmentItem>[];
|
|
5
|
+
export { shipmentsSeedData, shipmentLotsSeedData, shipmentItemsSeedData };
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WHY: Seeds the procurement-shipments profit-tracking system across its
|
|
3
|
+
* three collections (procurementShipments / shipmentLots / shipmentItems).
|
|
4
|
+
* Totals are pre-computed here via allocateShipmentCosts() since the
|
|
5
|
+
* seed loader doesn't run the Firestore-triggered Function cascade that
|
|
6
|
+
* normally computes them (mirrors payouts-seed-data.ts's payoutAmounts()
|
|
7
|
+
* pre-computation pattern).
|
|
8
|
+
* WHAT: 4 shipments across planning/in_transit/received/completed, each with
|
|
9
|
+
* 2 lots; a handful of individually-tracked "main" items per lot (one
|
|
10
|
+
* self-use, one pre-linked to a seeded product); one lot exercises the
|
|
11
|
+
* remainder (untracked bulk) fields.
|
|
12
|
+
*
|
|
13
|
+
* EXPORTS:
|
|
14
|
+
* shipmentsSeedData — Array of Partial<ShipmentDocument>
|
|
15
|
+
* shipmentLotsSeedData — Array of Partial<ShipmentLot>
|
|
16
|
+
* shipmentItemsSeedData — Array of Partial<ShipmentItem>
|
|
17
|
+
*/
|
|
18
|
+
import { allocateShipmentCosts } from "../features/shipments/utils/cost-allocation";
|
|
19
|
+
const NOW = new Date();
|
|
20
|
+
const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
|
|
21
|
+
const daysFromNow = (n) => new Date(NOW.getTime() + n * 86400000);
|
|
22
|
+
const SEED_LABOR_RATE_PAISE_PER_HOUR = 20000; // ₹200/hr
|
|
23
|
+
const SEED_MAX_HOURS_PER_DAY = 4;
|
|
24
|
+
const rawShipments = [
|
|
25
|
+
{
|
|
26
|
+
id: "shipment-tokyo-toys-collectibles-20260615-a1b2c3",
|
|
27
|
+
shipmentNumber: "SH-2026-0001",
|
|
28
|
+
supplierName: "Tokyo Toys Collectibles",
|
|
29
|
+
originCountry: "Japan",
|
|
30
|
+
status: "planning",
|
|
31
|
+
etaDate: daysFromNow(21),
|
|
32
|
+
notes: "Base Set booster boxes + a graded Charizard for the owner's personal collection.",
|
|
33
|
+
customsTotalPaise: 4500000,
|
|
34
|
+
shippingTotalPaise: 1800000,
|
|
35
|
+
laborHoursSpent: 0,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "shipment-vintage-vault-usa-20260701-d4e5f6",
|
|
39
|
+
shipmentNumber: "SH-2026-0002",
|
|
40
|
+
supplierName: "Vintage Vault USA",
|
|
41
|
+
originCountry: "United States",
|
|
42
|
+
status: "in_transit",
|
|
43
|
+
trackingNumber: "1Z999AA10123456784",
|
|
44
|
+
carrier: "UPS",
|
|
45
|
+
etaDate: daysFromNow(9),
|
|
46
|
+
customsTotalPaise: 3000000,
|
|
47
|
+
shippingTotalPaise: 2200000,
|
|
48
|
+
laborHoursSpent: 0,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "shipment-gundam-galaxy-hk-20260610-g7h8i9",
|
|
52
|
+
shipmentNumber: "SH-2026-0003",
|
|
53
|
+
supplierName: "Gundam Galaxy HK",
|
|
54
|
+
originCountry: "Hong Kong",
|
|
55
|
+
status: "received",
|
|
56
|
+
trackingNumber: "SF1029384756",
|
|
57
|
+
carrier: "SF Express",
|
|
58
|
+
etaDate: daysAgo(3),
|
|
59
|
+
receivedDate: daysAgo(3),
|
|
60
|
+
customsTotalPaise: 1500000,
|
|
61
|
+
shippingTotalPaise: 900000,
|
|
62
|
+
laborHoursSpent: 6,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "shipment-beyblade-arena-cn-20260520-j1k2l3",
|
|
66
|
+
shipmentNumber: "SH-2026-0004",
|
|
67
|
+
supplierName: "Beyblade Arena China",
|
|
68
|
+
originCountry: "China",
|
|
69
|
+
status: "completed",
|
|
70
|
+
trackingNumber: "EE123456789CN",
|
|
71
|
+
carrier: "China Post",
|
|
72
|
+
etaDate: daysAgo(30),
|
|
73
|
+
receivedDate: daysAgo(28),
|
|
74
|
+
customsTotalPaise: 800000,
|
|
75
|
+
shippingTotalPaise: 600000,
|
|
76
|
+
laborHoursSpent: 5,
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
const rawLots = [
|
|
80
|
+
{ id: "lot-tokyo-01", shipmentId: rawShipments[0].id, lotName: "Base Set Booster Boxes", supplierOrderRef: "TTC-88213", weightGrams: 6000, purchaseCostPaise: 45000000 },
|
|
81
|
+
{ id: "lot-tokyo-02", shipmentId: rawShipments[0].id, lotName: "Charizard PSA 9 — personal", supplierOrderRef: "TTC-88214", weightGrams: 400, purchaseCostPaise: 22000000 },
|
|
82
|
+
{ id: "lot-vault-01", shipmentId: rawShipments[1].id, lotName: "Redline Hot Wheels lot", supplierOrderRef: "VV-4471", weightGrams: 3200, purchaseCostPaise: 18000000 },
|
|
83
|
+
{ id: "lot-vault-02", shipmentId: rawShipments[1].id, lotName: "Diecast Trucks lot", supplierOrderRef: "VV-4472", weightGrams: 5400, purchaseCostPaise: 9500000, remainderItemCount: 120, remainderEstimatedValuePaise: 36000000 },
|
|
84
|
+
{ id: "lot-gundam-01", shipmentId: rawShipments[2].id, lotName: "MG Gunpla lot", supplierOrderRef: "GG-9021", weightGrams: 8000, purchaseCostPaise: 12000000 },
|
|
85
|
+
{ id: "lot-gundam-02", shipmentId: rawShipments[2].id, lotName: "HG Gunpla assorted", supplierOrderRef: "GG-9022", weightGrams: 3000, purchaseCostPaise: 4000000 },
|
|
86
|
+
{ id: "lot-beyblade-01", shipmentId: rawShipments[3].id, lotName: "Burst Series lot", supplierOrderRef: "BA-3301", weightGrams: 4500, purchaseCostPaise: 6000000 },
|
|
87
|
+
{ id: "lot-beyblade-02", shipmentId: rawShipments[3].id, lotName: "Launchers + stadiums", supplierOrderRef: "BA-3302", weightGrams: 2200, purchaseCostPaise: 2500000 },
|
|
88
|
+
];
|
|
89
|
+
const rawItems = [
|
|
90
|
+
{ id: "item-tokyo-01a", lotId: "lot-tokyo-01", shipmentId: rawShipments[0].id, title: "Base Set Booster Box (Japanese)", quantity: 6, isForSelfUse: false, price: 9500000 },
|
|
91
|
+
{ id: "item-tokyo-02a", lotId: "lot-tokyo-02", shipmentId: rawShipments[0].id, title: "Charizard Base Set PSA 9", quantity: 1, isForSelfUse: true },
|
|
92
|
+
{ id: "item-vault-01a", lotId: "lot-vault-01", shipmentId: rawShipments[1].id, title: "Redline Custom Camaro", quantity: 4, isForSelfUse: false, price: 1800000 },
|
|
93
|
+
{ id: "item-vault-01b", lotId: "lot-vault-01", shipmentId: rawShipments[1].id, title: "Redline Python", quantity: 3, isForSelfUse: false, price: 2200000 },
|
|
94
|
+
{ id: "item-vault-02a", lotId: "lot-vault-02", shipmentId: rawShipments[1].id, title: "Matchbox Superfast Truck (sample)", quantity: 2, isForSelfUse: false, price: 650000 },
|
|
95
|
+
{ id: "item-gundam-01a", lotId: "lot-gundam-01", shipmentId: rawShipments[2].id, title: "MG RX-78-2 Gundam Ver 3.0", quantity: 8, isForSelfUse: false, price: 2100000 },
|
|
96
|
+
{
|
|
97
|
+
id: "item-gundam-01b", lotId: "lot-gundam-01", shipmentId: rawShipments[2].id, title: "MG Sazabi Ver Ka", quantity: 5, isForSelfUse: false, price: 2800000,
|
|
98
|
+
linkedProductId: "product-gundam-mg-sazabi-ver-ka", linkedProductSlug: "product-gundam-mg-sazabi-ver-ka", linkedProductListingType: "standard",
|
|
99
|
+
},
|
|
100
|
+
{ id: "item-gundam-02a", lotId: "lot-gundam-02", shipmentId: rawShipments[2].id, title: "HG Gunpla assorted mecha", quantity: 20, isForSelfUse: false, price: 350000 },
|
|
101
|
+
{ id: "item-beyblade-01a", lotId: "lot-beyblade-01", shipmentId: rawShipments[3].id, title: "Beyblade Burst Turbo Achilles", quantity: 15, isForSelfUse: false, price: 550000 },
|
|
102
|
+
{ id: "item-beyblade-01b", lotId: "lot-beyblade-01", shipmentId: rawShipments[3].id, title: "Beyblade Burst Genesis Valtryek", quantity: 12, isForSelfUse: false, price: 600000 },
|
|
103
|
+
{ id: "item-beyblade-02a", lotId: "lot-beyblade-02", shipmentId: rawShipments[3].id, title: "Beystadium Extreme", quantity: 6, isForSelfUse: false, price: 480000 },
|
|
104
|
+
];
|
|
105
|
+
function mainItemsRevenue(lotId) {
|
|
106
|
+
return rawItems
|
|
107
|
+
.filter((item) => item.lotId === lotId)
|
|
108
|
+
.reduce((sum, item) => (item.isForSelfUse ? sum : sum + (item.price ?? 0) * item.quantity), 0);
|
|
109
|
+
}
|
|
110
|
+
// ── Compute persisted totals per shipment (Function-cascade equivalent, at build time) ──
|
|
111
|
+
const shipmentLotsSeedData = [];
|
|
112
|
+
const shipmentsSeedData = [];
|
|
113
|
+
for (const shipment of rawShipments) {
|
|
114
|
+
const lotsForShipment = rawLots.filter((lot) => lot.shipmentId === shipment.id);
|
|
115
|
+
const allocationInputs = lotsForShipment.map((lot) => ({
|
|
116
|
+
id: lot.id,
|
|
117
|
+
purchaseCostPaise: lot.purchaseCostPaise,
|
|
118
|
+
weightGrams: lot.weightGrams,
|
|
119
|
+
mainItemsProjectedRevenuePaise: mainItemsRevenue(lot.id),
|
|
120
|
+
remainderEstimatedValuePaise: lot.remainderEstimatedValuePaise,
|
|
121
|
+
itemCount: rawItems.filter((item) => item.lotId === lot.id).length,
|
|
122
|
+
}));
|
|
123
|
+
const { perLot, totals } = allocateShipmentCosts({
|
|
124
|
+
lots: allocationInputs,
|
|
125
|
+
customsTotalPaise: shipment.customsTotalPaise,
|
|
126
|
+
shippingTotalPaise: shipment.shippingTotalPaise,
|
|
127
|
+
laborHoursSpent: shipment.laborHoursSpent,
|
|
128
|
+
laborRatePaisePerHour: SEED_LABOR_RATE_PAISE_PER_HOUR,
|
|
129
|
+
maxHoursPerDay: SEED_MAX_HOURS_PER_DAY,
|
|
130
|
+
});
|
|
131
|
+
for (const lot of lotsForShipment) {
|
|
132
|
+
const computed = perLot[lot.id];
|
|
133
|
+
shipmentLotsSeedData.push({
|
|
134
|
+
id: lot.id,
|
|
135
|
+
shipmentId: lot.shipmentId,
|
|
136
|
+
shipmentStatus: shipment.status,
|
|
137
|
+
lotName: lot.lotName,
|
|
138
|
+
supplierOrderRef: lot.supplierOrderRef,
|
|
139
|
+
weightGrams: lot.weightGrams,
|
|
140
|
+
purchaseCostPaise: lot.purchaseCostPaise,
|
|
141
|
+
images: [],
|
|
142
|
+
remainderItemCount: lot.remainderItemCount,
|
|
143
|
+
remainderEstimatedValuePaise: lot.remainderEstimatedValuePaise,
|
|
144
|
+
itemCount: rawItems.filter((item) => item.lotId === lot.id).length,
|
|
145
|
+
mainItemsProjectedRevenuePaise: mainItemsRevenue(lot.id),
|
|
146
|
+
...computed,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
shipmentsSeedData.push({
|
|
150
|
+
id: shipment.id,
|
|
151
|
+
shipmentNumber: shipment.shipmentNumber,
|
|
152
|
+
supplierName: shipment.supplierName,
|
|
153
|
+
originCountry: shipment.originCountry,
|
|
154
|
+
status: shipment.status,
|
|
155
|
+
trackingNumber: shipment.trackingNumber,
|
|
156
|
+
carrier: shipment.carrier,
|
|
157
|
+
etaDate: shipment.etaDate,
|
|
158
|
+
receivedDate: shipment.receivedDate,
|
|
159
|
+
notes: shipment.notes,
|
|
160
|
+
customsTotalPaise: shipment.customsTotalPaise,
|
|
161
|
+
shippingTotalPaise: shipment.shippingTotalPaise,
|
|
162
|
+
laborHoursSpent: shipment.laborHoursSpent,
|
|
163
|
+
laborRatePaisePerHour: SEED_LABOR_RATE_PAISE_PER_HOUR,
|
|
164
|
+
totals,
|
|
165
|
+
totalsComputedAt: daysAgo(1),
|
|
166
|
+
createdBy: "user-admin-mohsin-c",
|
|
167
|
+
createdAt: daysAgo(1),
|
|
168
|
+
updatedAt: daysAgo(1),
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
const shipmentItemsSeedData = rawItems.map((item) => ({
|
|
172
|
+
id: item.id,
|
|
173
|
+
shipmentId: item.shipmentId,
|
|
174
|
+
lotId: item.lotId,
|
|
175
|
+
title: item.title,
|
|
176
|
+
quantity: item.quantity,
|
|
177
|
+
isForSelfUse: item.isForSelfUse,
|
|
178
|
+
price: item.price,
|
|
179
|
+
linkedProductId: item.linkedProductId,
|
|
180
|
+
linkedProductSlug: item.linkedProductSlug,
|
|
181
|
+
linkedProductListingType: item.linkedProductListingType,
|
|
182
|
+
createdAt: daysAgo(1),
|
|
183
|
+
updatedAt: daysAgo(1),
|
|
184
|
+
}));
|
|
185
|
+
export { shipmentsSeedData, shipmentLotsSeedData, shipmentItemsSeedData };
|
package/dist/server.d.ts
CHANGED
|
@@ -62,6 +62,10 @@ export { makeFullUser } from "./seed/index";
|
|
|
62
62
|
export { makeHomepageSection } from "./seed/index";
|
|
63
63
|
export { makeNotification } from "./seed/index";
|
|
64
64
|
export { sendNotification } from "./features/admin/actions/notification-actions";
|
|
65
|
+
export { enqueueJob } from "./features/jobs/actions/enqueue-job";
|
|
66
|
+
export type { EnqueueJobInput, EnqueueJobResult } from "./features/jobs/actions/enqueue-job";
|
|
67
|
+
export { JOBS_COLLECTION, JobStatusValues, } from "./features/jobs/schemas/firestore";
|
|
68
|
+
export type { JobStatus, JobDocument, JobResult } from "./features/jobs/schemas/firestore";
|
|
65
69
|
export { makeOrder } from "./seed/index";
|
|
66
70
|
export { makePayout } from "./seed/index";
|
|
67
71
|
export { makeProduct } from "./seed/index";
|
package/dist/server.js
CHANGED
|
@@ -171,6 +171,11 @@ export { makeHomepageSection } from "./seed/index";
|
|
|
171
171
|
// makeNotification - Shared export for make notification.
|
|
172
172
|
export { makeNotification } from "./seed/index";
|
|
173
173
|
export { sendNotification } from "./features/admin/actions/notification-actions";
|
|
174
|
+
// [SERVER-ONLY] enqueueJob — writes a `jobs/{jobId}` doc + returns a bulk-event
|
|
175
|
+
// custom token. The only way a Vercel route may start heavy work; actual
|
|
176
|
+
// processing runs in the `onJobCreated` Firebase Function (CLAUDE.md Rule #6).
|
|
177
|
+
export { enqueueJob } from "./features/jobs/actions/enqueue-job";
|
|
178
|
+
export { JOBS_COLLECTION, JobStatusValues, } from "./features/jobs/schemas/firestore";
|
|
174
179
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
175
180
|
// makeOrder - Shared export for make order.
|
|
176
181
|
export { makeOrder } from "./seed/index";
|