@mohasinac/appkit 3.2.20 → 3.3.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.d.ts +2 -1
- package/dist/_internal/client/features/digital-code/CodeRevealPanel.d.ts +2 -1
- package/dist/_internal/client/features/digital-code/DigitalCodeDetailView.d.ts +2 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +1 -1
- package/dist/_internal/client/features/layout/RoleGuard.d.ts +1 -1
- package/dist/_internal/client/features/live/LiveItemDetailView.d.ts +1 -1
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.d.ts +2 -1
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.d.ts +2 -1
- package/dist/_internal/client/features/lottery/LotteryDetailView.d.ts +2 -1
- package/dist/_internal/client/features/lottery/LotteryEntriesView.d.ts +2 -1
- package/dist/_internal/client/features/lottery/LotteryListView.d.ts +2 -1
- package/dist/_internal/client/features/lottery/LotteryPullForm.d.ts +2 -1
- package/dist/_internal/client/features/lottery/LotterySlotGrid.d.ts +2 -1
- package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.d.ts +2 -1
- package/dist/_internal/client/features/tour/TourProvider.d.ts +1 -1
- package/dist/_internal/client/i18n/LabelsProvider.d.ts +1 -1
- package/dist/_internal/client/scaffolds/AppShell.d.ts +1 -1
- package/dist/_internal/client/scaffolds/DashboardScaffold.d.ts +1 -1
- package/dist/_internal/client/theme/ThemeProvider.d.ts +1 -1
- package/dist/_internal/server/features/checkout/actions.d.ts +2 -0
- package/dist/_internal/server/features/checkout/actions.js +239 -190
- 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/autoPayoutEligibility.js +8 -11
- package/dist/_internal/server/jobs/core/emiInstallmentReminder.d.ts +8 -0
- package/dist/_internal/server/jobs/core/emiInstallmentReminder.js +78 -0
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.d.ts +2 -2
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +15 -10
- package/dist/_internal/server/jobs/handlers/emiInstallmentReminder.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/emiInstallmentReminder.js +2 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +1 -0
- package/dist/_internal/server/jobs/handlers/index.js +2 -0
- package/dist/_internal/server/providers/index.d.ts +4 -4
- package/dist/_internal/server/providers/index.js +4 -4
- package/dist/_internal/server/providers/payment/razorpay-mock.d.ts +3 -2
- package/dist/_internal/server/providers/payment/razorpay-mock.js +3 -1
- package/dist/_internal/server/providers/resolve.d.ts +10 -13
- package/dist/_internal/server/providers/resolve.js +9 -15
- package/dist/_internal/shared/actions/action-registry.js +28 -0
- package/dist/_internal/shared/checkout/rules/_defaults.js +1 -0
- package/dist/_internal/shared/checkout/rules/_registry.js +4 -0
- package/dist/_internal/shared/checkout/rules/art.rule.d.ts +9 -0
- package/dist/_internal/shared/checkout/rules/art.rule.js +5 -0
- package/dist/_internal/shared/checkout/rules/auction.rule.js +1 -0
- package/dist/_internal/shared/checkout/rules/classified.rule.js +1 -0
- package/dist/_internal/shared/checkout/rules/index.d.ts +2 -0
- package/dist/_internal/shared/checkout/rules/index.js +2 -0
- package/dist/_internal/shared/checkout/rules/stickers.rule.d.ts +9 -0
- package/dist/_internal/shared/checkout/rules/stickers.rule.js +5 -0
- package/dist/_internal/shared/checkout/rules/types.d.ts +6 -0
- package/dist/_internal/shared/features/checkout/config.d.ts +16 -1
- package/dist/_internal/shared/features/checkout/config.js +16 -1
- package/dist/_internal/shared/features/emi/schedule.d.ts +63 -0
- package/dist/_internal/shared/features/emi/schedule.js +62 -0
- package/dist/_internal/shared/fees/calculator.d.ts +53 -0
- package/dist/_internal/shared/fees/calculator.js +40 -0
- package/dist/_internal/shared/listing-types/_registry.d.ts +22 -66
- package/dist/_internal/shared/listing-types/_registry.js +19 -2
- package/dist/_internal/shared/listing-types/art/config.d.ts +15 -0
- package/dist/_internal/shared/listing-types/art/config.js +14 -0
- package/dist/_internal/shared/listing-types/art/ctas.d.ts +1 -0
- package/dist/_internal/shared/listing-types/art/ctas.js +3 -0
- package/dist/_internal/shared/listing-types/art/og.d.ts +1 -0
- package/dist/_internal/shared/listing-types/art/og.js +1 -0
- package/dist/_internal/shared/listing-types/art/schema.d.ts +2 -0
- package/dist/_internal/shared/listing-types/art/schema.js +3 -0
- package/dist/_internal/shared/listing-types/art/seed-factory.d.ts +1 -0
- package/dist/_internal/shared/listing-types/art/seed-factory.js +1 -0
- package/dist/_internal/shared/listing-types/auction/config.d.ts +8 -0
- package/dist/_internal/shared/listing-types/auction/config.js +6 -0
- package/dist/_internal/shared/listing-types/capabilities.js +17 -0
- package/dist/_internal/shared/listing-types/classified/config.d.ts +8 -0
- package/dist/_internal/shared/listing-types/classified/config.js +6 -0
- package/dist/_internal/shared/listing-types/digital-code/config.d.ts +8 -0
- package/dist/_internal/shared/listing-types/digital-code/config.js +6 -0
- package/dist/_internal/shared/listing-types/live/config.d.ts +8 -0
- package/dist/_internal/shared/listing-types/live/config.js +6 -0
- package/dist/_internal/shared/listing-types/pre-order/config.d.ts +8 -0
- package/dist/_internal/shared/listing-types/pre-order/config.js +6 -0
- package/dist/_internal/shared/listing-types/prize-draw/config.d.ts +8 -0
- package/dist/_internal/shared/listing-types/prize-draw/config.js +6 -0
- package/dist/_internal/shared/listing-types/standard/config.d.ts +8 -0
- package/dist/_internal/shared/listing-types/standard/config.js +6 -0
- package/dist/_internal/shared/listing-types/stickers/config.d.ts +15 -0
- package/dist/_internal/shared/listing-types/stickers/config.js +14 -0
- package/dist/_internal/shared/listing-types/stickers/ctas.d.ts +1 -0
- package/dist/_internal/shared/listing-types/stickers/ctas.js +3 -0
- package/dist/_internal/shared/listing-types/stickers/og.d.ts +1 -0
- package/dist/_internal/shared/listing-types/stickers/og.js +1 -0
- package/dist/_internal/shared/listing-types/stickers/schema.d.ts +2 -0
- package/dist/_internal/shared/listing-types/stickers/schema.js +3 -0
- package/dist/_internal/shared/listing-types/stickers/seed-factory.d.ts +1 -0
- package/dist/_internal/shared/listing-types/stickers/seed-factory.js +1 -0
- package/dist/client.d.ts +7 -2
- package/dist/client.js +4 -2
- package/dist/constants/field-names.d.ts +2 -6
- package/dist/constants/field-names.js +2 -6
- package/dist/contracts/index.d.ts +4 -2
- package/dist/contracts/index.js +6 -0
- package/dist/contracts/payment.d.ts +14 -9
- package/dist/contracts/payment.js +11 -1
- package/dist/contracts/shipping.d.ts +14 -9
- package/dist/contracts/shipping.js +11 -1
- package/dist/features/about/components/AboutView.d.ts +1 -1
- package/dist/features/about/components/FAQPageView.d.ts +1 -1
- package/dist/features/about/components/FeesView.d.ts +1 -1
- package/dist/features/about/components/HelpPageView.d.ts +1 -1
- package/dist/features/about/components/HowAuctionsWorkView.d.ts +1 -1
- package/dist/features/about/components/HowCheckoutWorksView.d.ts +1 -1
- package/dist/features/about/components/HowOffersWorkView.d.ts +1 -1
- package/dist/features/about/components/HowOrdersWorkView.d.ts +1 -1
- package/dist/features/about/components/HowPayoutsWorkView.d.ts +1 -1
- package/dist/features/about/components/HowPreOrdersWorkView.d.ts +1 -1
- package/dist/features/about/components/HowReviewsWorkView.d.ts +1 -1
- package/dist/features/about/components/PolicyPageView.d.ts +1 -1
- package/dist/features/about/components/PublicProfileView.d.ts +1 -1
- package/dist/features/about/components/PublicProfileView.js +3 -6
- package/dist/features/about/components/SecurityPrivacyView.d.ts +1 -1
- package/dist/features/about/components/ShippingPolicyView.d.ts +1 -1
- package/dist/features/about/components/TrackOrderView.d.ts +1 -1
- package/dist/features/about/components/UnauthorizedView.d.ts +1 -1
- package/dist/features/account/components/AddressBook.d.ts +2 -2
- package/dist/features/account/components/AddressFilters.d.ts +1 -1
- package/dist/features/account/components/AddressForm.d.ts +1 -1
- package/dist/features/account/components/AddressInlineSelect.d.ts +2 -1
- package/dist/features/account/components/AddressSelectorCreate.d.ts +1 -1
- package/dist/features/account/components/AddressesIndexListing.d.ts +2 -1
- package/dist/features/account/components/BecomeSellerView.d.ts +1 -1
- package/dist/features/account/components/BuyerAccountGuideView.d.ts +2 -1
- package/dist/features/account/components/BuyerAuctionsGuideView.d.ts +2 -1
- package/dist/features/account/components/BuyerOrdersGuideView.d.ts +2 -1
- package/dist/features/account/components/BuyerShoppingGuideView.d.ts +2 -1
- package/dist/features/account/components/ChatList.d.ts +1 -1
- package/dist/features/account/components/ChatWindow.d.ts +1 -1
- package/dist/features/account/components/MessagesView.d.ts +1 -1
- package/dist/features/account/components/NotificationBell.d.ts +1 -1
- package/dist/features/account/components/NotificationPreferencesPanel.d.ts +1 -1
- package/dist/features/account/components/OrderDetailView.d.ts +1 -1
- package/dist/features/account/components/ProfileView.d.ts +1 -1
- package/dist/features/account/components/UserAccountHubView.d.ts +1 -1
- package/dist/features/account/components/UserAddressesView.d.ts +1 -1
- package/dist/features/account/components/UserNotificationsView.d.ts +1 -1
- package/dist/features/account/components/UserOffersPanel.d.ts +1 -1
- package/dist/features/account/components/UserOffersView.d.ts +1 -1
- package/dist/features/account/components/UserOrderTrackView.d.ts +1 -1
- package/dist/features/account/components/UserOrdersView.d.ts +1 -1
- package/dist/features/account/components/UserReturnsView.d.ts +1 -1
- package/dist/features/account/components/UserSettingsView.d.ts +1 -1
- package/dist/features/account/components/UserSidebar.d.ts +1 -1
- package/dist/features/account/components/UserSupportView.d.ts +2 -1
- package/dist/features/admin/components/AdminAdEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminAddressBookView.d.ts +11 -0
- package/dist/features/admin/components/AdminAddressBookView.js +30 -0
- package/dist/features/admin/components/AdminAddressClustersView.d.ts +1 -1
- package/dist/features/admin/components/AdminAddressEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminAddressesView.d.ts +1 -1
- package/dist/features/admin/components/AdminAdsView.d.ts +1 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.d.ts +2 -1
- package/dist/features/admin/components/AdminAnalyticsGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminAnalyticsView.d.ts +1 -1
- package/dist/features/admin/components/AdminArtView.d.ts +4 -0
- package/dist/features/admin/components/AdminArtView.js +45 -0
- package/dist/features/admin/components/AdminBidsView.d.ts +2 -1
- package/dist/features/admin/components/AdminBlogEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminBlogView.d.ts +2 -1
- package/dist/features/admin/components/AdminBrandEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminBrandsView.d.ts +2 -1
- package/dist/features/admin/components/AdminBundleEditorView.d.ts +14 -1
- package/dist/features/admin/components/AdminBundlesView.d.ts +2 -1
- package/dist/features/admin/components/AdminCarouselEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminCarouselView.d.ts +2 -1
- package/dist/features/admin/components/AdminCartsView.d.ts +2 -1
- package/dist/features/admin/components/AdminCatalogGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminCategoriesView.d.ts +2 -1
- package/dist/features/admin/components/AdminCategoryEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminClassifiedView.d.ts +2 -1
- package/dist/features/admin/components/AdminContactEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminContactView.d.ts +2 -1
- package/dist/features/admin/components/AdminContentGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminCouponEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminCouponsView.d.ts +2 -1
- package/dist/features/admin/components/AdminDashboardView.d.ts +1 -1
- package/dist/features/admin/components/AdminDigitalCodesView.d.ts +2 -1
- package/dist/features/admin/components/AdminEmployeeEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminFaqEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminFaqsView.d.ts +2 -1
- package/dist/features/admin/components/AdminFeatureEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminFeatureFlagsView.d.ts +1 -1
- package/dist/features/admin/components/AdminFeaturesView.d.ts +2 -1
- package/dist/features/admin/components/AdminFilterBar.d.ts +1 -1
- package/dist/features/admin/components/AdminFulfillmentView.d.ts +2 -1
- package/dist/features/admin/components/AdminGroupedListingsView.d.ts +2 -1
- package/dist/features/admin/components/AdminGuideHubView.d.ts +2 -1
- package/dist/features/admin/components/AdminHistoryView.d.ts +2 -1
- package/dist/features/admin/components/AdminLiveView.d.ts +2 -1
- package/dist/features/admin/components/AdminMediaView.d.ts +1 -1
- package/dist/features/admin/components/AdminNavEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminNavigationView.d.ts +2 -1
- package/dist/features/admin/components/AdminNewsletterView.d.ts +2 -1
- package/dist/features/admin/components/AdminNotificationsView.d.ts +2 -1
- package/dist/features/admin/components/AdminOrderEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminOrdersGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminOrdersView.d.ts +2 -1
- package/dist/features/admin/components/AdminPageHeader.d.ts +1 -1
- package/dist/features/admin/components/AdminPaymentClustersView.d.ts +1 -1
- package/dist/features/admin/components/AdminPaymentMethodsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPayoutsView.d.ts +2 -1
- package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +2 -1
- package/dist/features/admin/components/AdminProductEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminProductsView.d.ts +2 -1
- package/dist/features/admin/components/AdminReturnRequestsView.d.ts +1 -1
- package/dist/features/admin/components/AdminReviewsView.d.ts +2 -1
- package/dist/features/admin/components/AdminScammerEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminScammersView.d.ts +2 -1
- package/dist/features/admin/components/AdminSectionsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSessionsManager.d.ts +1 -1
- package/dist/features/admin/components/AdminSessionsView.d.ts +2 -1
- package/dist/features/admin/components/AdminSidebar.d.ts +1 -1
- package/dist/features/admin/components/AdminSiteConfigGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminSiteConfigGuideView.js +1 -1
- package/dist/features/admin/components/AdminSiteSettingsView.d.ts +2 -1
- package/dist/features/admin/components/AdminSiteSettingsView.js +14 -9
- package/dist/features/admin/components/AdminSiteView.d.ts +1 -1
- package/dist/features/admin/components/AdminStickersView.d.ts +4 -0
- package/dist/features/admin/components/AdminStickersView.js +45 -0
- package/dist/features/admin/components/AdminStoreAddressesView.d.ts +1 -1
- package/dist/features/admin/components/AdminStoreEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminStoresGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminStoresView.d.ts +2 -1
- package/dist/features/admin/components/AdminSublistingCategoriesView.d.ts +2 -1
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminSupportTicketDetailView.d.ts +2 -1
- package/dist/features/admin/components/AdminSupportTicketsView.d.ts +2 -1
- package/dist/features/admin/components/AdminTeamGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminTeamView.d.ts +2 -1
- package/dist/features/admin/components/AdminTopBar.d.ts +1 -1
- package/dist/features/admin/components/AdminTrustGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminUserEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminUsersGuideView.d.ts +2 -1
- package/dist/features/admin/components/AdminUsersView.d.ts +2 -1
- package/dist/features/admin/components/AdminViewCards.d.ts +2 -1
- package/dist/features/admin/components/AdminWishlistsView.d.ts +2 -1
- package/dist/features/admin/components/BrandQuickCreateForm.d.ts +2 -1
- package/dist/features/admin/components/CategoryQuickCreateForm.d.ts +2 -1
- package/dist/features/admin/components/DashboardStats.d.ts +1 -1
- package/dist/features/admin/components/DataListingView.d.ts +1 -1
- package/dist/features/admin/components/DataTable.d.ts +1 -1
- package/dist/features/admin/components/DemoSeedView.d.ts +1 -1
- package/dist/features/admin/components/DrawerFormFooter.d.ts +1 -1
- package/dist/features/admin/components/QuickActionsPanel.d.ts +1 -1
- package/dist/features/admin/components/QuickEditMenu.d.ts +1 -1
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.d.ts +3 -2
- package/dist/features/admin/components/analytics/AdminStatCard.d.ts +1 -1
- package/dist/features/admin/components/analytics/AdminTopProductsTable.d.ts +1 -1
- package/dist/features/admin/components/index.d.ts +6 -0
- package/dist/features/admin/components/index.js +4 -0
- package/dist/features/admin/schemas/firestore.d.ts +19 -11
- package/dist/features/admin/schemas/firestore.js +12 -2
- package/dist/features/auctions/components/AuctionBidsTable.d.ts +1 -1
- package/dist/features/auctions/components/AuctionDetailPageView.d.ts +1 -1
- package/dist/features/auctions/components/AuctionFilters.d.ts +1 -1
- package/dist/features/auctions/components/AuctionsListView.d.ts +1 -1
- package/dist/features/auctions/components/CollapsibleBidHistory.d.ts +2 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +4 -3
- package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +1 -1
- package/dist/features/auctions/components/PlaceBidFormClient.d.ts +3 -2
- package/dist/features/auth/components/AuthStatusPanel.d.ts +1 -1
- package/dist/features/auth/components/ForgotPasswordView.d.ts +1 -1
- package/dist/features/auth/components/Guards.d.ts +2 -2
- package/dist/features/auth/components/LoginForm.d.ts +1 -1
- package/dist/features/auth/components/OAuthLoadingView.d.ts +1 -1
- package/dist/features/auth/components/RegisterForm.d.ts +1 -1
- package/dist/features/auth/components/ResetPasswordView.d.ts +1 -1
- package/dist/features/auth/components/SocialAuthButtons.d.ts +1 -1
- package/dist/features/auth/components/VerifyEmailView.d.ts +1 -1
- package/dist/features/auth/hooks/useAuth.js +35 -9
- package/dist/features/auth/schemas/firestore.d.ts +2 -6
- package/dist/features/before-after/components/BeforeAfterGallery.d.ts +1 -1
- package/dist/features/before-after/components/BeforeAfterSlider.d.ts +2 -1
- package/dist/features/blog/components/BlogFeaturedCard.d.ts +2 -1
- package/dist/features/blog/components/BlogFilters.d.ts +1 -1
- package/dist/features/blog/components/BlogIndexListing.d.ts +2 -1
- package/dist/features/blog/components/BlogIndexPageView.d.ts +2 -1
- package/dist/features/blog/components/BlogListView.d.ts +4 -3
- package/dist/features/blog/components/BlogPostForm.d.ts +1 -1
- package/dist/features/blog/components/BlogPostView.d.ts +1 -1
- package/dist/features/cart/components/CartDrawer.d.ts +2 -2
- package/dist/features/cart/components/CartSummary.d.ts +1 -1
- package/dist/features/cart/components/CartView.d.ts +1 -1
- package/dist/features/cart/components/CheckoutAddressStep.d.ts +1 -1
- package/dist/features/cart/components/CheckoutOtpModal.d.ts +1 -1
- package/dist/features/cart/components/CheckoutSuccessView.d.ts +1 -1
- package/dist/features/cart/components/CheckoutView.d.ts +1 -1
- package/dist/features/cart/components/ShippingPicker.d.ts +9 -1
- package/dist/features/cart/schemas/firestore.d.ts +3 -2
- package/dist/features/categories/components/BrandDetailPageView.d.ts +2 -1
- package/dist/features/categories/components/BrandDetailTabs.d.ts +2 -1
- package/dist/features/categories/components/BreadcrumbTrail.d.ts +2 -1
- package/dist/features/categories/components/BundleBuyNowCta.d.ts +9 -1
- package/dist/features/categories/components/BundleCollage.d.ts +10 -1
- package/dist/features/categories/components/BundleDetailView.d.ts +2 -1
- package/dist/features/categories/components/BundleDynamicRuleEditor.d.ts +15 -1
- package/dist/features/categories/components/BundleItemsPicker.d.ts +15 -1
- package/dist/features/categories/components/BundlesListView.d.ts +2 -1
- package/dist/features/categories/components/CategoriesIndexListing.d.ts +2 -1
- package/dist/features/categories/components/CategoriesIndexPageView.d.ts +2 -1
- package/dist/features/categories/components/CategoryBundlesListing.d.ts +2 -1
- package/dist/features/categories/components/CategoryDetailPageView.d.ts +2 -1
- package/dist/features/categories/components/CategoryDetailTabs.d.ts +2 -1
- package/dist/features/categories/components/CategoryFilters.d.ts +1 -1
- package/dist/features/categories/components/CategoryForm.d.ts +1 -1
- package/dist/features/categories/components/CategoryGrid.d.ts +3 -2
- package/dist/features/categories/components/CategoryProductsListing.d.ts +2 -1
- package/dist/features/categories/components/CategoryProductsView.d.ts +1 -1
- package/dist/features/categories/components/CategorySelectorCreate.d.ts +1 -1
- package/dist/features/categories/components/CategorySortSelect.d.ts +1 -1
- package/dist/features/categories/components/CategoryStoresListing.d.ts +2 -1
- package/dist/features/categories/components/CategoryTableColumns.d.ts +3 -3
- package/dist/features/categories/components/CategoryTree.d.ts +1 -1
- package/dist/features/categories/components/ConcernCard.d.ts +1 -1
- package/dist/features/categories/components/ConcernGrid.d.ts +1 -1
- package/dist/features/checkout/components/CheckoutStepper.d.ts +2 -1
- package/dist/features/classified/components/ClassifiedFilters.d.ts +1 -1
- package/dist/features/classified/components/ClassifiedIndexListing.d.ts +2 -1
- package/dist/features/classified/components/ClassifiedListView.d.ts +1 -1
- package/dist/features/collections/components/CollectionCard.d.ts +3 -2
- package/dist/features/consultation/components/ConsultationForm.d.ts +2 -1
- package/dist/features/consultation/schemas/index.d.ts +2 -2
- package/dist/features/contact/components/ContactForm.d.ts +2 -1
- package/dist/features/contact/components/ContactInfoSidebar.d.ts +1 -1
- package/dist/features/contact/components/ContactPageView.d.ts +2 -1
- package/dist/features/copilot/components/AdminCopilotView.d.ts +1 -1
- package/dist/features/corporate/components/CorporateInquiryForm.d.ts +2 -1
- package/dist/features/digital-codes/components/DigitalCodeFilters.d.ts +1 -1
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.d.ts +2 -1
- package/dist/features/digital-codes/components/DigitalCodesListView.d.ts +1 -1
- package/dist/features/email/primitives.d.ts +11 -11
- package/dist/features/events/components/AdminEventEditorView.d.ts +2 -1
- package/dist/features/events/components/AdminEventEntriesView.d.ts +1 -1
- package/dist/features/events/components/AdminEventsView.d.ts +2 -1
- package/dist/features/events/components/EventBanner.d.ts +2 -1
- package/dist/features/events/components/EventCard.d.ts +1 -1
- package/dist/features/events/components/EventDetailView.d.ts +1 -1
- package/dist/features/events/components/EventFilters.d.ts +1 -1
- package/dist/features/events/components/EventFormDrawer.d.ts +1 -1
- package/dist/features/events/components/EventLeaderboard.d.ts +1 -1
- package/dist/features/events/components/EventOfferCard.d.ts +2 -1
- package/dist/features/events/components/EventParticipateView.d.ts +1 -1
- package/dist/features/events/components/EventPollWidget.d.ts +1 -1
- package/dist/features/events/components/EventRaffleEntryForm.d.ts +2 -1
- package/dist/features/events/components/EventRaffleWinnerView.d.ts +1 -1
- package/dist/features/events/components/EventRafflesSection.d.ts +1 -1
- package/dist/features/events/components/EventSaleBanner.d.ts +2 -1
- package/dist/features/events/components/EventStatusBadge.d.ts +1 -1
- package/dist/features/events/components/EventsIndexListing.d.ts +2 -1
- package/dist/features/events/components/EventsListPageView.d.ts +2 -1
- package/dist/features/events/components/EventsListView.d.ts +2 -1
- package/dist/features/events/components/SpinWheelView.d.ts +1 -1
- package/dist/features/faq/components/ContactCTA.d.ts +1 -1
- package/dist/features/faq/components/FAQAccordion.d.ts +2 -2
- package/dist/features/faq/components/FAQCategorySidebar.d.ts +1 -1
- package/dist/features/faq/components/FAQHelpfulButtons.d.ts +1 -1
- package/dist/features/faq/components/FAQPageContent.d.ts +1 -1
- package/dist/features/faq/components/FAQSortDropdown.d.ts +1 -1
- package/dist/features/faq/components/RelatedFAQs.d.ts +1 -1
- package/dist/features/filters/AsyncFacetSection.d.ts +2 -1
- package/dist/features/filters/FilterFacetSection.d.ts +1 -1
- package/dist/features/filters/FilterPanel.d.ts +1 -1
- package/dist/features/filters/RangeFilter.d.ts +1 -1
- package/dist/features/filters/SwitchFilter.d.ts +1 -1
- package/dist/features/forms/Checkbox.d.ts +1 -1
- package/dist/features/forms/Radio.d.ts +2 -1
- package/dist/features/forms/Select.d.ts +1 -1
- package/dist/features/forms/Slider.d.ts +2 -1
- package/dist/features/forms/Toggle.d.ts +2 -1
- package/dist/features/homepage/components/AdSlot.d.ts +1 -1
- package/dist/features/homepage/components/AdvertisementBanner.d.ts +2 -1
- package/dist/features/homepage/components/AnnouncementBar.d.ts +2 -1
- package/dist/features/homepage/components/BeforeAfterCard.d.ts +1 -1
- package/dist/features/homepage/components/BlogArticlesSection.d.ts +2 -1
- package/dist/features/homepage/components/BrandsSection.d.ts +1 -1
- package/dist/features/homepage/components/CTABannerSection.d.ts +2 -1
- package/dist/features/homepage/components/CharacterHotspot.d.ts +1 -1
- package/dist/features/homepage/components/CharacterHotspotForm.d.ts +2 -1
- package/dist/features/homepage/components/CollectionCardsSection.d.ts +1 -1
- package/dist/features/homepage/components/CustomCardsSection.d.ts +2 -1
- package/dist/features/homepage/components/CustomerReviewsSection.d.ts +1 -1
- package/dist/features/homepage/components/EventsSection.d.ts +2 -1
- package/dist/features/homepage/components/FAQSection.d.ts +2 -1
- package/dist/features/homepage/components/FeaturedAuctionsSection.d.ts +2 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.d.ts +2 -1
- package/dist/features/homepage/components/FeaturedPreOrdersSection.d.ts +2 -1
- package/dist/features/homepage/components/FeaturedProductsSection.d.ts +1 -1
- package/dist/features/homepage/components/FeaturedResultsSection.d.ts +1 -1
- package/dist/features/homepage/components/FeaturedStoresSection.d.ts +2 -1
- package/dist/features/homepage/components/GoogleReviewsSection.d.ts +2 -1
- package/dist/features/homepage/components/HeroBanner.d.ts +1 -1
- package/dist/features/homepage/components/HeroCarousel.d.ts +2 -1
- package/dist/features/homepage/components/HeroSection.d.ts +1 -1
- package/dist/features/homepage/components/HomepageCustomerReviewsSection.d.ts +2 -1
- package/dist/features/homepage/components/HomepageSkeleton.d.ts +1 -1
- package/dist/features/homepage/components/HomepageView.d.ts +1 -1
- package/dist/features/homepage/components/HowItWorksInfoView.d.ts +1 -1
- package/dist/features/homepage/components/HowItWorksSection.d.ts +1 -1
- package/dist/features/homepage/components/MarketplaceHomepageView.d.ts +1 -1
- package/dist/features/homepage/components/NewsletterBanner.d.ts +2 -1
- package/dist/features/homepage/components/NewsletterSection.d.ts +1 -1
- package/dist/features/homepage/components/PromoGrid.d.ts +1 -1
- package/dist/features/homepage/components/SectionCarousel.d.ts +1 -1
- package/dist/features/homepage/components/SecurityHighlightsSection.d.ts +1 -1
- package/dist/features/homepage/components/ShopByCategorySection.d.ts +1 -1
- package/dist/features/homepage/components/SiteFeaturesSection.d.ts +2 -1
- package/dist/features/homepage/components/SocialFeedSection.d.ts +1 -1
- package/dist/features/homepage/components/SocialPostCard.d.ts +1 -1
- package/dist/features/homepage/components/StatsCounterSection.d.ts +1 -1
- package/dist/features/homepage/components/TestimonialsCarousel.d.ts +1 -1
- package/dist/features/homepage/components/TrustBadges.d.ts +2 -1
- package/dist/features/homepage/components/TrustFeaturesSection.d.ts +1 -1
- package/dist/features/homepage/components/TrustIndicatorsSection.d.ts +2 -1
- package/dist/features/homepage/components/WelcomeSection.d.ts +2 -1
- package/dist/features/homepage/components/WhatsAppCommunitySection.d.ts +2 -1
- package/dist/features/layout/AppLayoutShell.d.ts +1 -1
- package/dist/features/layout/AutoBreadcrumbs.d.ts +1 -1
- package/dist/features/layout/BackToTop.d.ts +2 -2
- package/dist/features/layout/BottomActions.d.ts +1 -1
- package/dist/features/layout/BottomActionsContext.d.ts +1 -1
- package/dist/features/layout/BottomNavItem.d.ts +1 -1
- package/dist/features/layout/BottomNavLayout.d.ts +1 -1
- package/dist/features/layout/BottomNavbar.d.ts +1 -1
- package/dist/features/layout/BottomSheet.d.ts +1 -1
- package/dist/features/layout/Breadcrumbs.d.ts +2 -2
- package/dist/features/layout/DashboardNavContext.d.ts +1 -1
- package/dist/features/layout/FooterLayout.d.ts +1 -1
- package/dist/features/layout/LayoutClient.d.ts +1 -1
- package/dist/features/layout/LocaleSwitcher.d.ts +1 -1
- package/dist/features/layout/MainNavbar.d.ts +1 -1
- package/dist/features/layout/NavItem.d.ts +1 -1
- package/dist/features/layout/NavbarLayout.d.ts +1 -1
- package/dist/features/layout/NavbarWithSettings.d.ts +1 -1
- package/dist/features/layout/TitleBar.d.ts +1 -1
- package/dist/features/layout/TitleBarLayout.d.ts +1 -1
- package/dist/features/live/components/LiveItemFilters.d.ts +1 -1
- package/dist/features/live/components/LiveItemsIndexListing.d.ts +2 -1
- package/dist/features/live/components/LiveItemsListView.d.ts +1 -1
- package/dist/features/loyalty/components/CoinsDisplay.d.ts +3 -2
- package/dist/features/loyalty/schemas/index.d.ts +6 -6
- package/dist/features/media/AvatarUpload.d.ts +2 -1
- package/dist/features/media/MediaAudio.d.ts +1 -1
- package/dist/features/media/MediaAvatar.d.ts +1 -1
- package/dist/features/media/MediaImage.d.ts +1 -1
- package/dist/features/media/MediaLightbox.d.ts +2 -1
- package/dist/features/media/MediaPickerModal.d.ts +2 -1
- package/dist/features/media/MediaVideo.d.ts +1 -1
- package/dist/features/media/components/MediaSlider.d.ts +2 -1
- package/dist/features/media/modals/ImageCropModal.d.ts +8 -1
- package/dist/features/media/modals/ImageEditor.d.ts +8 -1
- package/dist/features/media/modals/VideoThumbnailSelector.d.ts +1 -1
- package/dist/features/media/modals/VideoTrimModal.d.ts +1 -1
- package/dist/features/media/upload/CameraCapture.d.ts +1 -1
- package/dist/features/media/upload/ImageUpload.d.ts +1 -1
- package/dist/features/media/upload/MediaUploadField.d.ts +1 -1
- package/dist/features/media/upload/MediaUploadList.d.ts +1 -1
- package/dist/features/orders/components/MarketplaceOrderCard.d.ts +1 -1
- package/dist/features/orders/components/OrderFilters.d.ts +1 -1
- package/dist/features/orders/components/OrderSiblingPayments.d.ts +10 -1
- package/dist/features/orders/components/OrdersList.d.ts +2 -2
- package/dist/features/orders/components/RefundHistoryTable.d.ts +2 -1
- package/dist/features/orders/components/RefundRequestView.d.ts +13 -1
- package/dist/features/orders/repository/orders.repository.d.ts +20 -2
- package/dist/features/orders/repository/orders.repository.js +34 -5
- package/dist/features/orders/schemas/firestore.d.ts +33 -7
- package/dist/features/orders/schemas/firestore.js +1 -1
- package/dist/features/orders/schemas/index.d.ts +176 -31
- package/dist/features/orders/schemas/index.js +20 -6
- package/dist/features/orders/types/index.d.ts +3 -3
- package/dist/features/payments/repository/payout.repository.js +2 -2
- package/dist/features/payments/schemas/firestore.d.ts +3 -3
- package/dist/features/payments/schemas/firestore.js +2 -2
- package/dist/features/payments/schemas/index.d.ts +5 -5
- package/dist/features/payments/schemas/index.js +2 -2
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +1 -1
- package/dist/features/pre-orders/components/PreOrderActionsClient.d.ts +2 -1
- package/dist/features/pre-orders/components/PreOrderBadge.d.ts +2 -2
- package/dist/features/pre-orders/components/PreOrderDetailPageView.d.ts +1 -1
- package/dist/features/pre-orders/components/PreOrderFilters.d.ts +1 -1
- package/dist/features/pre-orders/components/PreOrdersIndexListing.d.ts +2 -1
- package/dist/features/pre-orders/components/PreOrdersListView.d.ts +1 -1
- package/dist/features/pre-orders/components/PreorderCard.d.ts +2 -1
- package/dist/features/products/api/[id]/route.js +4 -1
- package/dist/features/products/api/route.js +4 -1
- package/dist/features/products/columns/productTableColumns.d.ts +2 -1
- package/dist/features/products/components/AuctionDetailView.d.ts +1 -1
- package/dist/features/products/components/AuctionsIndexListing.d.ts +2 -1
- package/dist/features/products/components/BidHistory.d.ts +1 -1
- package/dist/features/products/components/CompareOverlay.d.ts +1 -1
- package/dist/features/products/components/CompareOverlay.js +7 -9
- package/dist/features/products/components/CustomFieldsEditor.d.ts +2 -1
- package/dist/features/products/components/CustomSectionTabContent.d.ts +2 -1
- package/dist/features/products/components/CustomSectionsEditor.d.ts +2 -1
- package/dist/features/products/components/FeatureBadge.d.ts +2 -2
- package/dist/features/products/components/GroupSettingsPanel.d.ts +2 -1
- package/dist/features/products/components/InteractiveProductCard.d.ts +2 -1
- package/dist/features/products/components/MakeOfferButton.d.ts +2 -1
- package/dist/features/products/components/MakeOfferForm.d.ts +1 -1
- package/dist/features/products/components/MarketplaceBundleCard.d.ts +1 -1
- package/dist/features/products/components/MarketplacePrizeDrawCard.d.ts +1 -1
- package/dist/features/products/components/NonRefundableConsentModal.d.ts +14 -1
- package/dist/features/products/components/PlaceBidForm.d.ts +1 -1
- package/dist/features/products/components/PreOrderDetailView.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawCollage.d.ts +2 -1
- package/dist/features/products/components/PrizeDrawDetailPageView.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawEntryActions.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawItemsEditor.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawsIndexListing.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawsListingView.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawsSection.d.ts +1 -1
- package/dist/features/products/components/PrizeRevealModal.d.ts +1 -1
- package/dist/features/products/components/ProductCardMetadataSection.d.ts +2 -1
- package/dist/features/products/components/ProductDetailActions.d.ts +1 -1
- package/dist/features/products/components/ProductDetailPageView.d.ts +3 -1
- package/dist/features/products/components/ProductDetailPageView.js +2 -2
- package/dist/features/products/components/ProductDetailView.d.ts +1 -1
- package/dist/features/products/components/ProductFeatureBadges.d.ts +1 -1
- package/dist/features/products/components/ProductFeaturesContext.d.ts +1 -1
- package/dist/features/products/components/ProductFeaturesSelector.d.ts +2 -1
- package/dist/features/products/components/ProductFilters.d.ts +1 -1
- package/dist/features/products/components/ProductForm.d.ts +1 -1
- package/dist/features/products/components/ProductForm.js +18 -7
- package/dist/features/products/components/ProductGalleryClient.d.ts +2 -1
- package/dist/features/products/components/ProductGradingTab.d.ts +2 -1
- package/dist/features/products/components/ProductGrid.d.ts +2 -2
- package/dist/features/products/components/ProductGrid.js +7 -12
- package/dist/features/products/components/ProductInfo.d.ts +1 -1
- package/dist/features/products/components/ProductTabs.d.ts +1 -1
- package/dist/features/products/components/ProductTabsShell.d.ts +1 -1
- package/dist/features/products/components/ProductsIndexListing.d.ts +2 -1
- package/dist/features/products/components/ProductsIndexPageView.d.ts +2 -1
- package/dist/features/products/components/ProductsView.d.ts +1 -1
- package/dist/features/products/components/RelatedProducts.d.ts +1 -1
- package/dist/features/products/components/RelatedProductsCarousel.d.ts +2 -1
- package/dist/features/products/components/ShareButton.d.ts +1 -1
- package/dist/features/products/components/ShowGroupSection.d.ts +2 -1
- package/dist/features/products/components/ShowGroupSection.js +3 -5
- package/dist/features/products/components/SublistingCarouselSection.d.ts +2 -1
- package/dist/features/products/components/SublistingCarouselSection.js +3 -6
- package/dist/features/products/components/SublistingCategorySelect.d.ts +2 -1
- package/dist/features/products/constants/listing-tabs.d.ts +32 -0
- package/dist/features/products/constants/listing-tabs.js +8 -0
- package/dist/features/products/index.d.ts +1 -1
- package/dist/features/products/index.js +3 -1
- package/dist/features/products/schemas/firestore.d.ts +20 -1
- package/dist/features/products/schemas/firestore.js +2 -0
- package/dist/features/products/schemas/index.d.ts +48 -0
- package/dist/features/products/schemas/index.js +9 -0
- package/dist/features/products/schemas/product-features.d.ts +1 -1
- package/dist/features/products/types/index.d.ts +5 -3
- package/dist/features/products/utils/listing-type.d.ts +6 -0
- package/dist/features/products/utils/listing-type.js +3 -0
- package/dist/features/promotions/components/CouponCard.d.ts +1 -1
- package/dist/features/promotions/components/CouponsIndexListing.d.ts +2 -1
- package/dist/features/promotions/components/PromotionsView.d.ts +3 -3
- package/dist/features/reviews/api/[id]/route.js +5 -4
- package/dist/features/reviews/components/ReviewDetailPageView.d.ts +2 -1
- package/dist/features/reviews/components/ReviewDetailShell.d.ts +2 -1
- package/dist/features/reviews/components/ReviewFilters.d.ts +1 -1
- package/dist/features/reviews/components/ReviewModal.d.ts +1 -1
- package/dist/features/reviews/components/ReviewSummary.d.ts +2 -1
- package/dist/features/reviews/components/ReviewsIndexListing.d.ts +2 -1
- package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +2 -1
- package/dist/features/reviews/components/ReviewsList.d.ts +3 -2
- package/dist/features/scams/components/ScamAwarenessModal.d.ts +2 -1
- package/dist/features/scams/components/ScamProfileView.d.ts +2 -1
- package/dist/features/scams/components/ScamRegistryView.d.ts +2 -1
- package/dist/features/search/components/Search.d.ts +2 -1
- package/dist/features/search/components/SearchFiltersRow.d.ts +1 -1
- package/dist/features/search/components/SearchResultsSection.d.ts +1 -1
- package/dist/features/search/components/SearchView.d.ts +1 -1
- package/dist/features/seller/actions/seller-actions.d.ts +29 -14
- package/dist/features/seller/actions/seller-actions.js +101 -27
- package/dist/features/seller/components/BarcodeField.d.ts +2 -1
- package/dist/features/seller/components/BrandInlineSelect.d.ts +2 -1
- package/dist/features/seller/components/CategoryInlineSelect.d.ts +2 -1
- package/dist/features/seller/components/CouponInlineSelect.d.ts +2 -1
- package/dist/features/seller/components/FulfillmentView.d.ts +2 -1
- package/dist/features/seller/components/GroupInlineSelect.d.ts +2 -1
- package/dist/features/seller/components/PhysicalLocationModal.d.ts +2 -1
- package/dist/features/seller/components/PrintCenterView.d.ts +2 -1
- package/dist/features/seller/components/ProductInlineSelect.d.ts +2 -1
- package/dist/features/seller/components/QuickProductForm.d.ts +2 -1
- package/dist/features/seller/components/SellerAddressesView.d.ts +2 -1
- package/dist/features/seller/components/SellerAnalyticsAlertsView.d.ts +2 -1
- package/dist/features/seller/components/SellerAnalyticsView.d.ts +1 -1
- package/dist/features/seller/components/SellerArtView.d.ts +8 -0
- package/dist/features/seller/components/SellerArtView.js +114 -0
- package/dist/features/seller/components/SellerAuctionsView.d.ts +1 -1
- package/dist/features/seller/components/SellerBidsView.d.ts +2 -1
- package/dist/features/seller/components/SellerBundlesView.d.ts +2 -1
- package/dist/features/seller/components/SellerClassifiedView.d.ts +2 -1
- package/dist/features/seller/components/SellerCouponEditorView.d.ts +1 -1
- package/dist/features/seller/components/SellerCouponsView.d.ts +2 -1
- package/dist/features/seller/components/SellerCreateProductView.d.ts +1 -1
- package/dist/features/seller/components/SellerDashboardView.d.ts +1 -1
- package/dist/features/seller/components/SellerDigitalCodesView.d.ts +2 -1
- package/dist/features/seller/components/SellerEditProductView.d.ts +1 -1
- package/dist/features/seller/components/SellerFeaturesView.d.ts +2 -1
- package/dist/features/seller/components/SellerGoogleReviewsView.d.ts +2 -1
- package/dist/features/seller/components/SellerGroupedListingsView.d.ts +2 -1
- package/dist/features/seller/components/SellerGuideView.d.ts +1 -1
- package/dist/features/seller/components/SellerLiveView.d.ts +2 -1
- package/dist/features/seller/components/SellerOffersPanel.d.ts +2 -1
- package/dist/features/seller/components/SellerOffersView.d.ts +2 -1
- package/dist/features/seller/components/SellerOrdersView.d.ts +2 -1
- package/dist/features/seller/components/SellerOrdersView.js +38 -1
- package/dist/features/seller/components/SellerPayoutHistoryTable.d.ts +1 -1
- package/dist/features/seller/components/SellerPayoutMethodsView.d.ts +2 -1
- package/dist/features/seller/components/SellerPayoutRequestView.d.ts +1 -1
- package/dist/features/seller/components/SellerPayoutSettingsView.d.ts +1 -1
- package/dist/features/seller/components/SellerPayoutSettingsView.js +4 -1
- package/dist/features/seller/components/SellerPayoutStats.d.ts +1 -1
- package/dist/features/seller/components/SellerPayoutsView.d.ts +2 -1
- package/dist/features/seller/components/SellerPreOrdersView.d.ts +2 -1
- package/dist/features/seller/components/SellerPrizeDrawsView.d.ts +2 -1
- package/dist/features/seller/components/SellerProductShell.d.ts +6 -2
- package/dist/features/seller/components/SellerProductShell.js +69 -59
- package/dist/features/seller/components/SellerProductsCards.d.ts +2 -1
- package/dist/features/seller/components/SellerProductsFilterDrawer.d.ts +2 -1
- package/dist/features/seller/components/SellerProductsView.d.ts +2 -1
- package/dist/features/seller/components/SellerReviewsView.d.ts +1 -1
- package/dist/features/seller/components/SellerShippingConfigsView.d.ts +2 -1
- package/dist/features/seller/components/SellerShippingView.d.ts +1 -1
- package/dist/features/seller/components/SellerShippingView.js +6 -25
- package/dist/features/seller/components/SellerSidebar.d.ts +1 -1
- package/dist/features/seller/components/SellerStickersView.d.ts +8 -0
- package/dist/features/seller/components/SellerStickersView.js +114 -0
- package/dist/features/seller/components/SellerStoreCategoriesView.d.ts +2 -1
- package/dist/features/seller/components/SellerStoreSetupView.d.ts +1 -1
- package/dist/features/seller/components/SellerStoreView.d.ts +1 -1
- package/dist/features/seller/components/SellerStorefrontView.d.ts +1 -1
- package/dist/features/seller/components/SellerTemplatesView.d.ts +2 -1
- package/dist/features/seller/components/SellersListView.d.ts +2 -1
- package/dist/features/seller/components/SublistingInlineSelect.d.ts +2 -1
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.d.ts +2 -1
- package/dist/features/seller/components/analytics/SellerRevenueChart.d.ts +2 -1
- package/dist/features/seller/components/analytics/SellerTopProducts.d.ts +1 -1
- package/dist/features/seller/components/index.d.ts +4 -0
- package/dist/features/seller/components/index.js +2 -0
- package/dist/features/seller/messages/en.json +1 -1
- package/dist/features/seller/schemas/index.d.ts +7 -7
- package/dist/features/seller/schemas/index.js +1 -1
- package/dist/features/seller/types/index.d.ts +1 -1
- package/dist/features/shell/FormShell.d.ts +1 -1
- package/dist/features/shell/QuickFormDrawer.d.ts +1 -1
- package/dist/features/shell/StepForm.d.ts +3 -3
- package/dist/features/shell/field-groups/ImageFieldGroup.d.ts +2 -2
- package/dist/features/shell/field-groups/SeoFieldGroup.d.ts +2 -2
- package/dist/features/shell/field-groups/StatusFieldGroup.d.ts +2 -2
- package/dist/features/shell/field-groups/TitleDescriptionGroup.d.ts +2 -2
- package/dist/features/site-settings/components/ActionPermissionsManager.d.ts +2 -1
- package/dist/features/site-settings/components/NavPermissionsManager.d.ts +2 -1
- package/dist/features/site-settings/components/ThemeManagerView.d.ts +15 -1
- package/dist/features/stores/components/InteractiveStoreCard.d.ts +1 -1
- package/dist/features/stores/components/StoreAboutView.d.ts +1 -1
- package/dist/features/stores/components/StoreAddressSelectorCreate.d.ts +1 -1
- package/dist/features/stores/components/StoreAuctionsListing.d.ts +2 -1
- package/dist/features/stores/components/StoreAuctionsPageView.d.ts +2 -1
- package/dist/features/stores/components/StoreAuctionsView.d.ts +1 -1
- package/dist/features/stores/components/StoreBundlesPageView.d.ts +2 -1
- package/dist/features/stores/components/StoreCapabilitiesGuideView.d.ts +2 -1
- package/dist/features/stores/components/StoreClassifiedsListing.d.ts +2 -1
- package/dist/features/stores/components/StoreClassifiedsPageView.d.ts +2 -1
- package/dist/features/stores/components/StoreDetailLayoutView.d.ts +2 -1
- package/dist/features/stores/components/StoreDetailLayoutView.js +18 -2
- package/dist/features/stores/components/StoreDigitalCodesListing.d.ts +2 -1
- package/dist/features/stores/components/StoreDigitalCodesPageView.d.ts +2 -1
- package/dist/features/stores/components/StoreFilters.d.ts +1 -1
- package/dist/features/stores/components/StoreFinanceGuideView.d.ts +2 -1
- package/dist/features/stores/components/StoreGuideHubView.d.ts +2 -1
- package/dist/features/stores/components/StoreHeader.d.ts +1 -1
- package/dist/features/stores/components/StoreListingsGuideView.d.ts +2 -1
- package/dist/features/stores/components/StoreLiveItemsListing.d.ts +2 -1
- package/dist/features/stores/components/StoreLiveItemsPageView.d.ts +2 -1
- package/dist/features/stores/components/StoreNavTabs.d.ts +1 -1
- package/dist/features/stores/components/StoreOrdersGuideView.d.ts +2 -1
- package/dist/features/stores/components/StorePreOrdersListing.d.ts +2 -1
- package/dist/features/stores/components/StorePreOrdersPageView.d.ts +2 -1
- package/dist/features/stores/components/StorePrizeDrawsPageView.d.ts +2 -1
- package/dist/features/stores/components/StoreProductsListing.d.ts +2 -1
- package/dist/features/stores/components/StoreProductsPageView.d.ts +2 -1
- package/dist/features/stores/components/StoreProductsView.d.ts +1 -1
- package/dist/features/stores/components/StoreReviewsListing.d.ts +2 -1
- package/dist/features/stores/components/StoreReviewsPageView.d.ts +2 -1
- package/dist/features/stores/components/StoreReviewsView.d.ts +1 -1
- package/dist/features/stores/components/StoreScopedSearch.d.ts +2 -1
- package/dist/features/stores/components/StoreSettingsGuideView.d.ts +2 -1
- package/dist/features/stores/components/StoresIndexListing.d.ts +2 -1
- package/dist/features/stores/components/StoresIndexPageView.d.ts +2 -1
- package/dist/features/stores/schemas/firestore.d.ts +7 -1
- package/dist/features/stores/schemas/index.d.ts +19 -16
- package/dist/features/stores/schemas/index.js +1 -1
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.d.ts +2 -1
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.d.ts +2 -1
- package/dist/features/wishlist/components/WishlistPage.d.ts +2 -2
- package/dist/features/wishlist/components/WishlistToggleButton.d.ts +1 -1
- package/dist/features/wishlist/components/WishlistView.d.ts +1 -1
- package/dist/index.d.ts +21 -36
- package/dist/index.js +27 -39
- package/dist/next/ErrorBoundary.d.ts +1 -1
- package/dist/next/components/ErrorView.d.ts +1 -1
- package/dist/next/components/GlobalError.d.ts +1 -1
- package/dist/next/components/NotFoundView.d.ts +1 -1
- package/dist/next/components/UnauthorizedView.d.ts +1 -1
- package/dist/next/routing/route-map.d.ts +22 -0
- package/dist/next/routing/route-map.js +10 -0
- package/dist/providers/payment-manual/index.d.ts +40 -0
- package/dist/providers/payment-manual/index.js +91 -0
- package/dist/providers/payment-razorpay/index.d.ts +4 -2
- package/dist/providers/payment-razorpay/index.js +4 -1
- package/dist/providers/shipping-manual/index.d.ts +22 -0
- package/dist/providers/shipping-manual/index.js +47 -0
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +5 -3
- package/dist/react/ErrorBoundary.d.ts +1 -1
- package/dist/react/contexts/SessionContext.d.ts +1 -1
- package/dist/schemas/registry.d.ts +129 -70
- package/dist/schemas/registry.js +0 -4
- package/dist/security/pii-encrypt.js +0 -7
- package/dist/security/pii-redact.js +0 -1
- package/dist/seed/conversations-seed-data.js +2 -2
- package/dist/seed/faq-seed-data.js +7 -7
- package/dist/seed/grouped-listings-seed-data.d.ts +2 -0
- package/dist/seed/index.d.ts +2 -0
- package/dist/seed/index.js +2 -0
- package/dist/seed/manifest.js +20 -16
- package/dist/seed/payouts-seed-data.js +5 -5
- package/dist/seed/products-art-seed-data.d.ts +11 -0
- package/dist/seed/products-art-seed-data.js +125 -0
- package/dist/seed/products-preorders-seed-data.d.ts +2 -0
- package/dist/seed/products-stickers-seed-data.d.ts +11 -0
- package/dist/seed/products-stickers-seed-data.js +125 -0
- package/dist/seed/site-settings-seed-data.js +13 -4
- package/dist/seed/stores-seed-data.js +11 -11
- package/dist/server.d.ts +7 -15
- package/dist/server.js +17 -42
- package/dist/ui/DataTable.d.ts +1 -1
- package/dist/ui/components/Accordion.d.ts +2 -2
- package/dist/ui/components/ActiveFilterChips.d.ts +2 -1
- package/dist/ui/components/Alert.d.ts +1 -1
- package/dist/ui/components/Anchor.d.ts +1 -1
- package/dist/ui/components/Avatar.d.ts +2 -2
- package/dist/ui/components/AvatarDisplay.d.ts +2 -1
- package/dist/ui/components/BackgroundRenderer.d.ts +1 -1
- package/dist/ui/components/Badge.d.ts +1 -1
- package/dist/ui/components/BaseListingCard.d.ts +5 -5
- package/dist/ui/components/Breadcrumb.d.ts +1 -1
- package/dist/ui/components/BulkActionBar.d.ts +1 -1
- package/dist/ui/components/Button.d.ts +1 -1
- package/dist/ui/components/Card.d.ts +4 -4
- package/dist/ui/components/Checkbox.d.ts +1 -1
- package/dist/ui/components/ConfirmDeleteModal.d.ts +1 -1
- package/dist/ui/components/CountdownDisplay.d.ts +1 -1
- package/dist/ui/components/DateInput.d.ts +1 -1
- package/dist/ui/components/DescriptionField.d.ts +1 -1
- package/dist/ui/components/DetailPageGallery.d.ts +2 -2
- package/dist/ui/components/DetailPageHero.d.ts +2 -2
- package/dist/ui/components/DetailPageTabs.d.ts +2 -2
- package/dist/ui/components/DetailViewShell.d.ts +2 -2
- package/dist/ui/components/Details.d.ts +2 -2
- package/dist/ui/components/Dialog.d.ts +1 -1
- package/dist/ui/components/Divider.d.ts +1 -1
- package/dist/ui/components/Dropdown.d.ts +5 -5
- package/dist/ui/components/DynamicBgDiv.d.ts +1 -1
- package/dist/ui/components/EmptyState.d.ts +1 -1
- package/dist/ui/components/FallbackShell.d.ts +1 -1
- package/dist/ui/components/Fieldset.d.ts +2 -2
- package/dist/ui/components/FilterChipGroup.d.ts +2 -1
- package/dist/ui/components/FilterDrawer.d.ts +1 -1
- package/dist/ui/components/FlowDiagram.d.ts +1 -1
- package/dist/ui/components/Form.d.ts +4 -4
- package/dist/ui/components/FormActionBar.d.ts +2 -1
- package/dist/ui/components/FormField.d.ts +2 -1
- package/dist/ui/components/FormGrid.d.ts +3 -2
- package/dist/ui/components/HorizontalRule.d.ts +1 -1
- package/dist/ui/components/HorizontalScroller.d.ts +1 -1
- package/dist/ui/components/HotspotMarker.d.ts +1 -1
- package/dist/ui/components/IconBox.d.ts +1 -1
- package/dist/ui/components/IconButton.d.ts +1 -1
- package/dist/ui/components/Iframe.d.ts +1 -1
- package/dist/ui/components/ImageGallery.d.ts +2 -1
- package/dist/ui/components/ItemRow.d.ts +1 -1
- package/dist/ui/components/Kbd.d.ts +1 -1
- package/dist/ui/components/Layout.d.ts +4 -4
- package/dist/ui/components/ListingFilterDrawer.d.ts +1 -1
- package/dist/ui/components/ListingLayout.d.ts +1 -1
- package/dist/ui/components/ListingToolbar.d.ts +1 -1
- package/dist/ui/components/LoginRequiredModal.d.ts +2 -1
- package/dist/ui/components/Menu.d.ts +5 -5
- package/dist/ui/components/Modal.d.ts +1 -1
- package/dist/ui/components/Motion.d.ts +14 -14
- package/dist/ui/components/NavbarChevron.d.ts +1 -1
- package/dist/ui/components/NavigationLoader.d.ts +1 -1
- package/dist/ui/components/OtpInput.d.ts +1 -1
- package/dist/ui/components/PageLoader.d.ts +1 -1
- package/dist/ui/components/PaginatedSelect.d.ts +2 -2
- package/dist/ui/components/Pagination.d.ts +2 -1
- package/dist/ui/components/PasswordStrengthIndicator.d.ts +2 -1
- package/dist/ui/components/PriceDisplay.d.ts +1 -1
- package/dist/ui/components/Progress.d.ts +3 -2
- package/dist/ui/components/ProgressBarFill.d.ts +1 -1
- package/dist/ui/components/Quote.d.ts +1 -1
- package/dist/ui/components/Radio.d.ts +2 -2
- package/dist/ui/components/RatingDisplay.d.ts +1 -1
- package/dist/ui/components/Responsive.d.ts +2 -2
- package/dist/ui/components/ResponsiveView.d.ts +1 -1
- package/dist/ui/components/RichTextEditor.d.ts +2 -1
- package/dist/ui/components/RoleBadge.d.ts +2 -1
- package/dist/ui/components/RowActionMenu.d.ts +1 -1
- package/dist/ui/components/Scrim.d.ts +1 -1
- package/dist/ui/components/Select.d.ts +1 -1
- package/dist/ui/components/Semantic.d.ts +21 -21
- package/dist/ui/components/SettingsSection.d.ts +3 -2
- package/dist/ui/components/SideDrawer.d.ts +1 -1
- package/dist/ui/components/SideModal.d.ts +1 -1
- package/dist/ui/components/SiteLogo.d.ts +1 -1
- package/dist/ui/components/Skeleton.d.ts +2 -1
- package/dist/ui/components/SkipToMain.d.ts +2 -1
- package/dist/ui/components/Slider.d.ts +1 -1
- package/dist/ui/components/SlottedListingView.d.ts +2 -2
- package/dist/ui/components/SortDropdown.d.ts +1 -1
- package/dist/ui/components/Spinner.d.ts +1 -1
- package/dist/ui/components/StackedViewShell.d.ts +2 -2
- package/dist/ui/components/StarRating.d.ts +1 -1
- package/dist/ui/components/StatsGrid.d.ts +1 -1
- package/dist/ui/components/StatusBadge.d.ts +1 -1
- package/dist/ui/components/StepperNav.d.ts +1 -1
- package/dist/ui/components/StickyToolbar.d.ts +1 -1
- package/dist/ui/components/SummaryCard.d.ts +1 -1
- package/dist/ui/components/TabStrip.d.ts +2 -1
- package/dist/ui/components/TablePagination.d.ts +2 -1
- package/dist/ui/components/Tabs.d.ts +4 -4
- package/dist/ui/components/TagInput.d.ts +2 -1
- package/dist/ui/components/TextLink.d.ts +1 -1
- package/dist/ui/components/Toast.d.ts +1 -1
- package/dist/ui/components/Toggle.d.ts +1 -1
- package/dist/ui/components/Tooltip.d.ts +1 -1
- package/dist/ui/components/Typography.d.ts +4 -4
- package/dist/ui/components/UnsavedChangesModal.d.ts +1 -1
- package/dist/ui/components/VacationBanner.d.ts +2 -1
- package/dist/ui/components/ViewToggle.d.ts +1 -1
- package/dist/ui/forms/ColorPickerField.d.ts +1 -1
- package/dist/ui/forms/FieldCheckbox.d.ts +2 -1
- package/dist/ui/forms/FieldInput.d.ts +1 -1
- package/dist/ui/forms/FieldSelect.d.ts +2 -1
- package/dist/ui/forms/FieldTextarea.d.ts +1 -1
- package/dist/ui/forms/FormShell.d.ts +2 -2
- package/dist/ui/rich-text/RichText.d.ts +1 -1
- package/dist/ui/rich-text/RichTextRenderer.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mohasinac/payment-manual — the default IPaymentProvider implementation.
|
|
3
|
+
*
|
|
4
|
+
* There is no gateway here: the buyer pays via bank transfer / UPI outside
|
|
5
|
+
* the app and uploads a reference (UTR) + proof image, which the seller or
|
|
6
|
+
* admin manually confirms. This mirrors the `paymentProofUrl` /
|
|
7
|
+
* `paymentTransactionId` fields already on `OrderDocument` — this class
|
|
8
|
+
* formalizes that flow behind the `IPaymentProvider` contract so callers
|
|
9
|
+
* that go through `getProviders().payment` get a real implementation
|
|
10
|
+
* instead of `undefined`.
|
|
11
|
+
*
|
|
12
|
+
* In-memory bookkeeping only (like `MockRazorpayProvider`) — there is no
|
|
13
|
+
* external system of record. The order document itself (`paymentStatus`,
|
|
14
|
+
* `paymentTransactionId`, `paymentProofUrl`) is the actual source of truth;
|
|
15
|
+
* this provider is a thin, self-consistent adapter for code that talks to
|
|
16
|
+
* `IPaymentProvider` generically rather than the order repository directly.
|
|
17
|
+
*/
|
|
18
|
+
import { IPaymentProvider } from "../../contracts";
|
|
19
|
+
import type { PaymentOrder, PaymentCapture, Refund } from "../../contracts";
|
|
20
|
+
import type { JsonValue } from "../../schemas/types";
|
|
21
|
+
export declare class ManualPaymentProvider extends IPaymentProvider {
|
|
22
|
+
readonly name = "manual";
|
|
23
|
+
private readonly orders;
|
|
24
|
+
private readonly captures;
|
|
25
|
+
createOrder(amount: number, currency: string, metadata?: Record<string, JsonValue>): Promise<PaymentOrder>;
|
|
26
|
+
/** Manual payments have no webhook source — always false. */
|
|
27
|
+
verifyWebhook(_payload: string, _signature: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Manual payments are considered captured the moment the buyer's
|
|
30
|
+
* reference/proof is recorded — there is no separate auth+capture step.
|
|
31
|
+
*/
|
|
32
|
+
capturePayment(orderId: string): Promise<PaymentCapture>;
|
|
33
|
+
/**
|
|
34
|
+
* Records the refund as pending — the actual money movement happens via
|
|
35
|
+
* bank transfer outside the system and is reconciled manually by an
|
|
36
|
+
* admin, same as the rest of the manual-payment flow.
|
|
37
|
+
*/
|
|
38
|
+
refund(paymentId: string, amount?: number): Promise<Refund>;
|
|
39
|
+
getOrder(orderId: string): Promise<PaymentOrder>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mohasinac/payment-manual — the default IPaymentProvider implementation.
|
|
3
|
+
*
|
|
4
|
+
* There is no gateway here: the buyer pays via bank transfer / UPI outside
|
|
5
|
+
* the app and uploads a reference (UTR) + proof image, which the seller or
|
|
6
|
+
* admin manually confirms. This mirrors the `paymentProofUrl` /
|
|
7
|
+
* `paymentTransactionId` fields already on `OrderDocument` — this class
|
|
8
|
+
* formalizes that flow behind the `IPaymentProvider` contract so callers
|
|
9
|
+
* that go through `getProviders().payment` get a real implementation
|
|
10
|
+
* instead of `undefined`.
|
|
11
|
+
*
|
|
12
|
+
* In-memory bookkeeping only (like `MockRazorpayProvider`) — there is no
|
|
13
|
+
* external system of record. The order document itself (`paymentStatus`,
|
|
14
|
+
* `paymentTransactionId`, `paymentProofUrl`) is the actual source of truth;
|
|
15
|
+
* this provider is a thin, self-consistent adapter for code that talks to
|
|
16
|
+
* `IPaymentProvider` generically rather than the order repository directly.
|
|
17
|
+
*/
|
|
18
|
+
import { randomBytes } from "node:crypto";
|
|
19
|
+
import { IPaymentProvider } from "../../contracts";
|
|
20
|
+
export class ManualPaymentProvider extends IPaymentProvider {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.name = "manual";
|
|
24
|
+
this.orders = new Map();
|
|
25
|
+
this.captures = new Map();
|
|
26
|
+
}
|
|
27
|
+
async createOrder(amount, currency, metadata) {
|
|
28
|
+
const order = {
|
|
29
|
+
id: `manual_order_${randomBytes(8).toString("hex")}`,
|
|
30
|
+
amount,
|
|
31
|
+
currency,
|
|
32
|
+
status: "created",
|
|
33
|
+
metadata,
|
|
34
|
+
createdAt: new Date().toISOString(),
|
|
35
|
+
};
|
|
36
|
+
this.orders.set(order.id, order);
|
|
37
|
+
return order;
|
|
38
|
+
}
|
|
39
|
+
/** Manual payments have no webhook source — always false. */
|
|
40
|
+
verifyWebhook(_payload, _signature) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Manual payments are considered captured the moment the buyer's
|
|
45
|
+
* reference/proof is recorded — there is no separate auth+capture step.
|
|
46
|
+
*/
|
|
47
|
+
async capturePayment(orderId) {
|
|
48
|
+
const order = this.orders.get(orderId);
|
|
49
|
+
if (!order) {
|
|
50
|
+
throw Object.assign(new Error(`Manual order not found: ${orderId}`), {
|
|
51
|
+
httpStatus: 404,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const capture = {
|
|
55
|
+
id: `manual_pay_${randomBytes(8).toString("hex")}`,
|
|
56
|
+
orderId,
|
|
57
|
+
amount: order.amount,
|
|
58
|
+
currency: order.currency,
|
|
59
|
+
status: "captured",
|
|
60
|
+
capturedAt: new Date().toISOString(),
|
|
61
|
+
};
|
|
62
|
+
this.captures.set(capture.id, capture);
|
|
63
|
+
this.orders.set(orderId, { ...order, status: "paid" });
|
|
64
|
+
return capture;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Records the refund as pending — the actual money movement happens via
|
|
68
|
+
* bank transfer outside the system and is reconciled manually by an
|
|
69
|
+
* admin, same as the rest of the manual-payment flow.
|
|
70
|
+
*/
|
|
71
|
+
async refund(paymentId, amount) {
|
|
72
|
+
const capture = this.captures.get(paymentId);
|
|
73
|
+
return {
|
|
74
|
+
id: `manual_rfnd_${randomBytes(8).toString("hex")}`,
|
|
75
|
+
paymentId,
|
|
76
|
+
amount: amount ?? capture?.amount ?? 0,
|
|
77
|
+
currency: capture?.currency ?? "INR",
|
|
78
|
+
status: "pending",
|
|
79
|
+
createdAt: new Date().toISOString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
async getOrder(orderId) {
|
|
83
|
+
const order = this.orders.get(orderId);
|
|
84
|
+
if (!order) {
|
|
85
|
+
throw Object.assign(new Error(`Manual order not found: ${orderId}`), {
|
|
86
|
+
httpStatus: 404,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return order;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -19,13 +19,15 @@
|
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
import type { JsonValue } from "@mohasinac/appkit";
|
|
22
|
-
import
|
|
22
|
+
import { IPaymentProvider } from "../../contracts";
|
|
23
|
+
import type { PaymentOrder, PaymentCapture, Refund } from "../../contracts";
|
|
23
24
|
export interface RazorpayConfig {
|
|
24
25
|
keyId: string;
|
|
25
26
|
keySecret: string;
|
|
26
27
|
webhookSecret?: string;
|
|
27
28
|
}
|
|
28
|
-
export declare class RazorpayProvider
|
|
29
|
+
export declare class RazorpayProvider extends IPaymentProvider {
|
|
30
|
+
readonly name = "razorpay";
|
|
29
31
|
private readonly razorpay;
|
|
30
32
|
private readonly webhookSecret?;
|
|
31
33
|
constructor(config: RazorpayConfig);
|
|
@@ -20,10 +20,13 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import Razorpay from "razorpay";
|
|
22
22
|
import { createHmac, timingSafeEqual } from "crypto";
|
|
23
|
+
import { IPaymentProvider } from "../../contracts";
|
|
23
24
|
import { getDefaultCurrency } from "../../core/baseline-resolver";
|
|
24
25
|
// --- IPaymentProvider implementation ------------------------------------------
|
|
25
|
-
export class RazorpayProvider {
|
|
26
|
+
export class RazorpayProvider extends IPaymentProvider {
|
|
26
27
|
constructor(config) {
|
|
28
|
+
super();
|
|
29
|
+
this.name = "razorpay";
|
|
27
30
|
this.razorpay = new Razorpay({
|
|
28
31
|
key_id: config.keyId,
|
|
29
32
|
key_secret: config.keySecret,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mohasinac/shipping-manual — the default IShippingProvider implementation.
|
|
3
|
+
*
|
|
4
|
+
* There is no carrier API here: the seller enters a carrier name and
|
|
5
|
+
* tracking number/URL directly (see `customShipOrder` in
|
|
6
|
+
* `features/seller/actions/seller-actions.ts`, the actual write path used by
|
|
7
|
+
* the seller ship flow). This class exists so `getProviders().shipping` is
|
|
8
|
+
* always populated with a real implementation of the contract — a future
|
|
9
|
+
* carrier integration (e.g. Shiprocket, Delhivery) is a sibling package that
|
|
10
|
+
* `extends IShippingProvider` the same way this one does, and
|
|
11
|
+
* `providers.config.ts` swaps which one gets registered.
|
|
12
|
+
*/
|
|
13
|
+
import { IShippingProvider } from "../../contracts";
|
|
14
|
+
import type { CreateShipmentInput, Shipment, TrackingInfo, ServiceabilityResult } from "../../contracts";
|
|
15
|
+
export declare class ManualShippingProvider extends IShippingProvider {
|
|
16
|
+
readonly name = "manual";
|
|
17
|
+
createShipment(data: CreateShipmentInput): Promise<Shipment>;
|
|
18
|
+
trackShipment(trackingId: string): Promise<TrackingInfo>;
|
|
19
|
+
cancelShipment(_shipmentId: string): Promise<void>;
|
|
20
|
+
checkServiceability(_pincode: string, _weight: number): Promise<ServiceabilityResult>;
|
|
21
|
+
generateLabel(_shipmentId: string): Promise<ArrayBuffer>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mohasinac/shipping-manual — the default IShippingProvider implementation.
|
|
3
|
+
*
|
|
4
|
+
* There is no carrier API here: the seller enters a carrier name and
|
|
5
|
+
* tracking number/URL directly (see `customShipOrder` in
|
|
6
|
+
* `features/seller/actions/seller-actions.ts`, the actual write path used by
|
|
7
|
+
* the seller ship flow). This class exists so `getProviders().shipping` is
|
|
8
|
+
* always populated with a real implementation of the contract — a future
|
|
9
|
+
* carrier integration (e.g. Shiprocket, Delhivery) is a sibling package that
|
|
10
|
+
* `extends IShippingProvider` the same way this one does, and
|
|
11
|
+
* `providers.config.ts` swaps which one gets registered.
|
|
12
|
+
*/
|
|
13
|
+
import { IShippingProvider } from "../../contracts";
|
|
14
|
+
export class ManualShippingProvider extends IShippingProvider {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.name = "manual";
|
|
18
|
+
}
|
|
19
|
+
async createShipment(data) {
|
|
20
|
+
return {
|
|
21
|
+
id: `manual_${data.orderId}`,
|
|
22
|
+
trackingId: data.orderId,
|
|
23
|
+
orderId: data.orderId,
|
|
24
|
+
status: "created",
|
|
25
|
+
createdAt: new Date().toISOString(),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
async trackShipment(trackingId) {
|
|
29
|
+
// Manual shipments carry their tracking state on the order document
|
|
30
|
+
// itself (status, trackingNumber, trackingUrl) — there is no carrier
|
|
31
|
+
// API to poll. Callers that need current state should read the order,
|
|
32
|
+
// not this method.
|
|
33
|
+
return { trackingId, currentStatus: "unknown", events: [] };
|
|
34
|
+
}
|
|
35
|
+
async cancelShipment(_shipmentId) {
|
|
36
|
+
// No-op — cancelling a manual shipment is an order-status update
|
|
37
|
+
// (orderRepository.cancelOrder), not a carrier API call.
|
|
38
|
+
}
|
|
39
|
+
async checkServiceability(_pincode, _weight) {
|
|
40
|
+
// Manual shipping has no carrier-imposed serviceability restriction —
|
|
41
|
+
// the seller decides whether they can fulfil an address.
|
|
42
|
+
return { isServiceable: true, couriers: [] };
|
|
43
|
+
}
|
|
44
|
+
async generateLabel(_shipmentId) {
|
|
45
|
+
throw new Error("Manual shipping does not support automatic label generation — the seller prints their own carrier's label.");
|
|
46
|
+
}
|
|
47
|
+
}
|
package/dist/providers.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { createResendProvider } from "./providers/email-resend/index";
|
|
|
19
19
|
export type { ResendProviderOptions } from "./providers/email-resend/index";
|
|
20
20
|
export { RazorpayProvider, rupeesToPaise, paiseToRupees, verifyPaymentSignature, createRazorpayOrder, fetchRazorpayOrder, verifyPaymentSignatureWithKeys, verifyWebhookSignature, createRazorpayRefund, } from "./providers/payment-razorpay/index";
|
|
21
21
|
export type { RazorpayConfig, RazorpayPaymentResult, RazorpayOrderOptions, RazorpayOrder, RazorpayRefundResult, } from "./providers/payment-razorpay/index";
|
|
22
|
-
export {
|
|
23
|
-
export
|
|
22
|
+
export { ManualPaymentProvider } from "./providers/payment-manual/index";
|
|
23
|
+
export { ManualShippingProvider } from "./providers/shipping-manual/index";
|
|
24
24
|
export { tailwindAdapter } from "./style/tailwind/index";
|
|
25
25
|
export { serverLogger } from "./monitoring/index";
|
package/dist/providers.js
CHANGED
|
@@ -20,10 +20,12 @@ export { firebaseDbProvider, getAdminApp, getAdminAuth, getAdminDb, getAdminStor
|
|
|
20
20
|
export { firebaseStorageProvider } from "./providers/storage-firebase/index";
|
|
21
21
|
// Email (Resend)
|
|
22
22
|
export { createResendProvider } from "./providers/email-resend/index";
|
|
23
|
-
// Payment (Razorpay)
|
|
23
|
+
// Payment (Razorpay) — disabled by default; siteSettings.payment.razorpayEnabled turns it on
|
|
24
24
|
export { RazorpayProvider, rupeesToPaise, paiseToRupees, verifyPaymentSignature, createRazorpayOrder, fetchRazorpayOrder, verifyPaymentSignatureWithKeys, verifyWebhookSignature, createRazorpayRefund, } from "./providers/payment-razorpay/index";
|
|
25
|
-
//
|
|
26
|
-
export {
|
|
25
|
+
// Payment (manual) — the default provider
|
|
26
|
+
export { ManualPaymentProvider } from "./providers/payment-manual/index";
|
|
27
|
+
// Shipping (manual) — the default (and only) provider
|
|
28
|
+
export { ManualShippingProvider } from "./providers/shipping-manual/index";
|
|
27
29
|
// Style adapter
|
|
28
30
|
export { tailwindAdapter } from "./style/tailwind/index";
|
|
29
31
|
// Monitoring
|
|
@@ -26,6 +26,6 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, State>
|
|
|
26
26
|
static getDerivedStateFromError(error: Error): State;
|
|
27
27
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
28
28
|
handleReset: () => void;
|
|
29
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react
|
|
29
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
30
30
|
}
|
|
31
31
|
export {};
|
|
@@ -76,7 +76,7 @@ export interface SessionProviderProps {
|
|
|
76
76
|
*/
|
|
77
77
|
signOutInvalidationKeys?: string[][];
|
|
78
78
|
}
|
|
79
|
-
export declare function SessionProvider({ children, initialUser, endpoints: endpointOverrides, onSignOutInvalidate, signOutInvalidationKeys, }: SessionProviderProps):
|
|
79
|
+
export declare function SessionProvider({ children, initialUser, endpoints: endpointOverrides, onSignOutInvalidate, signOutInvalidationKeys, }: SessionProviderProps): React.JSX.Element;
|
|
80
80
|
export declare function useSession(): SessionContextValue;
|
|
81
81
|
export declare function useAuth(): {
|
|
82
82
|
user: SessionUser | null;
|
|
@@ -2369,21 +2369,75 @@ export declare const SCHEMAS: {
|
|
|
2369
2369
|
platformFee: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2370
2370
|
depositAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2371
2371
|
codRemainingAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2372
|
+
codHandlingFee: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2373
|
+
emiEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2374
|
+
emiTenureMonths: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2375
|
+
emiTokenAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2376
|
+
emiSurchargeAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2377
|
+
emiInstallments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
2378
|
+
index: import("zod").ZodNumber;
|
|
2379
|
+
dueDate: import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString, import("zod").ZodObject<{
|
|
2380
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2381
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
2382
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2383
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
2384
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2385
|
+
}, import("zod").ZodTypeAny, "passthrough">>]>;
|
|
2386
|
+
amount: import("zod").ZodNumber;
|
|
2387
|
+
status: import("zod").ZodEnum<["pending", "paid", "overdue"]>;
|
|
2388
|
+
paidAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString, import("zod").ZodObject<{
|
|
2389
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2390
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
2391
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2392
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
2393
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2394
|
+
}, import("zod").ZodTypeAny, "passthrough">>]>>;
|
|
2395
|
+
transactionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2396
|
+
proofUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2397
|
+
reminderSentAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString, import("zod").ZodObject<{
|
|
2398
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2399
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
2400
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2401
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
2402
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2403
|
+
}, import("zod").ZodTypeAny, "passthrough">>]>>;
|
|
2404
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2405
|
+
status: "pending" | "paid" | "overdue";
|
|
2406
|
+
amount: number;
|
|
2407
|
+
index: number;
|
|
2408
|
+
dueDate: string | Date | import("zod").objectOutputType<{
|
|
2409
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2410
|
+
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2411
|
+
transactionId?: string | undefined;
|
|
2412
|
+
paidAt?: string | Date | import("zod").objectOutputType<{
|
|
2413
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2414
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2415
|
+
proofUrl?: string | undefined;
|
|
2416
|
+
reminderSentAt?: string | Date | import("zod").objectOutputType<{
|
|
2417
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2418
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2419
|
+
}, {
|
|
2420
|
+
status: "pending" | "paid" | "overdue";
|
|
2421
|
+
amount: number;
|
|
2422
|
+
index: number;
|
|
2423
|
+
dueDate: string | Date | import("zod").objectInputType<{
|
|
2424
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2425
|
+
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2426
|
+
transactionId?: string | undefined;
|
|
2427
|
+
paidAt?: string | Date | import("zod").objectInputType<{
|
|
2428
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2429
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2430
|
+
proofUrl?: string | undefined;
|
|
2431
|
+
reminderSentAt?: string | Date | import("zod").objectInputType<{
|
|
2432
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2433
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2434
|
+
}>, "many">>;
|
|
2435
|
+
emiRemainingBalance: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2436
|
+
emiComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2372
2437
|
shippingFee: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2373
|
-
shippingMethod: import("zod").ZodOptional<import("zod").ZodEnum<["custom"
|
|
2438
|
+
shippingMethod: import("zod").ZodOptional<import("zod").ZodEnum<["custom"]>>;
|
|
2374
2439
|
shippingCarrier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2375
2440
|
trackingUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2376
|
-
shiprocketOrderId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2377
|
-
shiprocketShipmentId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2378
|
-
shiprocketAWB: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2379
|
-
shiprocketStatus: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2380
|
-
shiprocketUpdatedAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString, import("zod").ZodObject<{
|
|
2381
|
-
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2382
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
2383
|
-
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2384
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
2385
|
-
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2386
|
-
}, import("zod").ZodTypeAny, "passthrough">>]>>;
|
|
2387
2441
|
payoutStatus: import("zod").ZodOptional<import("zod").ZodEnum<["eligible", "requested", "paid"]>>;
|
|
2388
2442
|
payoutId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2389
2443
|
offerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2545,7 +2599,7 @@ export declare const SCHEMAS: {
|
|
|
2545
2599
|
}[] | undefined;
|
|
2546
2600
|
payoutStatus?: "paid" | "eligible" | "requested" | undefined;
|
|
2547
2601
|
couponCode?: string | undefined;
|
|
2548
|
-
shippingMethod?: "custom" |
|
|
2602
|
+
shippingMethod?: "custom" | undefined;
|
|
2549
2603
|
orderType?: string | undefined;
|
|
2550
2604
|
imageUrls?: string[] | undefined;
|
|
2551
2605
|
paymentId?: string | undefined;
|
|
@@ -2562,7 +2616,7 @@ export declare const SCHEMAS: {
|
|
|
2562
2616
|
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2563
2617
|
cancellationReason?: string | undefined;
|
|
2564
2618
|
refundAmount?: number | undefined;
|
|
2565
|
-
refundStatus?: "pending" | "processing" | "
|
|
2619
|
+
refundStatus?: "pending" | "processing" | "rejected" | "completed" | undefined;
|
|
2566
2620
|
refundFeeDeducted?: number | undefined;
|
|
2567
2621
|
refundNetAmount?: number | undefined;
|
|
2568
2622
|
refundNote?: string | undefined;
|
|
@@ -2577,16 +2631,32 @@ export declare const SCHEMAS: {
|
|
|
2577
2631
|
}[] | undefined;
|
|
2578
2632
|
depositAmount?: number | undefined;
|
|
2579
2633
|
codRemainingAmount?: number | undefined;
|
|
2634
|
+
codHandlingFee?: number | undefined;
|
|
2635
|
+
emiEnabled?: boolean | undefined;
|
|
2636
|
+
emiTenureMonths?: number | undefined;
|
|
2637
|
+
emiTokenAmount?: number | undefined;
|
|
2638
|
+
emiSurchargeAmount?: number | undefined;
|
|
2639
|
+
emiInstallments?: {
|
|
2640
|
+
status: "pending" | "paid" | "overdue";
|
|
2641
|
+
amount: number;
|
|
2642
|
+
index: number;
|
|
2643
|
+
dueDate: string | Date | import("zod").objectOutputType<{
|
|
2644
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2645
|
+
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2646
|
+
transactionId?: string | undefined;
|
|
2647
|
+
paidAt?: string | Date | import("zod").objectOutputType<{
|
|
2648
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2649
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2650
|
+
proofUrl?: string | undefined;
|
|
2651
|
+
reminderSentAt?: string | Date | import("zod").objectOutputType<{
|
|
2652
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2653
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2654
|
+
}[] | undefined;
|
|
2655
|
+
emiRemainingBalance?: number | undefined;
|
|
2656
|
+
emiComplete?: boolean | undefined;
|
|
2580
2657
|
shippingFee?: number | undefined;
|
|
2581
2658
|
shippingCarrier?: string | undefined;
|
|
2582
2659
|
trackingUrl?: string | undefined;
|
|
2583
|
-
shiprocketOrderId?: number | undefined;
|
|
2584
|
-
shiprocketShipmentId?: number | undefined;
|
|
2585
|
-
shiprocketAWB?: string | undefined;
|
|
2586
|
-
shiprocketStatus?: string | undefined;
|
|
2587
|
-
shiprocketUpdatedAt?: string | Date | import("zod").objectOutputType<{
|
|
2588
|
-
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2589
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2590
2660
|
payoutId?: string | undefined;
|
|
2591
2661
|
offerId?: string | undefined;
|
|
2592
2662
|
prizeWon?: {
|
|
@@ -2674,7 +2744,7 @@ export declare const SCHEMAS: {
|
|
|
2674
2744
|
}[] | undefined;
|
|
2675
2745
|
payoutStatus?: "paid" | "eligible" | "requested" | undefined;
|
|
2676
2746
|
couponCode?: string | undefined;
|
|
2677
|
-
shippingMethod?: "custom" |
|
|
2747
|
+
shippingMethod?: "custom" | undefined;
|
|
2678
2748
|
orderType?: string | undefined;
|
|
2679
2749
|
imageUrls?: string[] | undefined;
|
|
2680
2750
|
paymentId?: string | undefined;
|
|
@@ -2691,7 +2761,7 @@ export declare const SCHEMAS: {
|
|
|
2691
2761
|
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2692
2762
|
cancellationReason?: string | undefined;
|
|
2693
2763
|
refundAmount?: number | undefined;
|
|
2694
|
-
refundStatus?: "pending" | "processing" | "
|
|
2764
|
+
refundStatus?: "pending" | "processing" | "rejected" | "completed" | undefined;
|
|
2695
2765
|
refundFeeDeducted?: number | undefined;
|
|
2696
2766
|
refundNetAmount?: number | undefined;
|
|
2697
2767
|
refundNote?: string | undefined;
|
|
@@ -2706,16 +2776,32 @@ export declare const SCHEMAS: {
|
|
|
2706
2776
|
}[] | undefined;
|
|
2707
2777
|
depositAmount?: number | undefined;
|
|
2708
2778
|
codRemainingAmount?: number | undefined;
|
|
2779
|
+
codHandlingFee?: number | undefined;
|
|
2780
|
+
emiEnabled?: boolean | undefined;
|
|
2781
|
+
emiTenureMonths?: number | undefined;
|
|
2782
|
+
emiTokenAmount?: number | undefined;
|
|
2783
|
+
emiSurchargeAmount?: number | undefined;
|
|
2784
|
+
emiInstallments?: {
|
|
2785
|
+
status: "pending" | "paid" | "overdue";
|
|
2786
|
+
amount: number;
|
|
2787
|
+
index: number;
|
|
2788
|
+
dueDate: string | Date | import("zod").objectInputType<{
|
|
2789
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2790
|
+
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2791
|
+
transactionId?: string | undefined;
|
|
2792
|
+
paidAt?: string | Date | import("zod").objectInputType<{
|
|
2793
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2794
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2795
|
+
proofUrl?: string | undefined;
|
|
2796
|
+
reminderSentAt?: string | Date | import("zod").objectInputType<{
|
|
2797
|
+
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2798
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2799
|
+
}[] | undefined;
|
|
2800
|
+
emiRemainingBalance?: number | undefined;
|
|
2801
|
+
emiComplete?: boolean | undefined;
|
|
2709
2802
|
shippingFee?: number | undefined;
|
|
2710
2803
|
shippingCarrier?: string | undefined;
|
|
2711
2804
|
trackingUrl?: string | undefined;
|
|
2712
|
-
shiprocketOrderId?: number | undefined;
|
|
2713
|
-
shiprocketShipmentId?: number | undefined;
|
|
2714
|
-
shiprocketAWB?: string | undefined;
|
|
2715
|
-
shiprocketStatus?: string | undefined;
|
|
2716
|
-
shiprocketUpdatedAt?: string | Date | import("zod").objectInputType<{
|
|
2717
|
-
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2718
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2719
2805
|
payoutId?: string | undefined;
|
|
2720
2806
|
offerId?: string | undefined;
|
|
2721
2807
|
prizeWon?: {
|
|
@@ -2783,7 +2869,7 @@ export declare const SCHEMAS: {
|
|
|
2783
2869
|
platformFee: import("zod").ZodNumber;
|
|
2784
2870
|
platformFeeRate: import("zod").ZodNumber;
|
|
2785
2871
|
currency: import("zod").ZodString;
|
|
2786
|
-
status: import("zod").ZodEnum<["pending", "processing", "
|
|
2872
|
+
status: import("zod").ZodEnum<["pending", "processing", "paid", "failed"]>;
|
|
2787
2873
|
paymentMethod: import("zod").ZodEnum<["bank_transfer", "upi"]>;
|
|
2788
2874
|
bankAccount: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2789
2875
|
accountHolderName: import("zod").ZodString;
|
|
@@ -2858,7 +2944,7 @@ export declare const SCHEMAS: {
|
|
|
2858
2944
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2859
2945
|
}, import("zod").ZodTypeAny, "passthrough">>]>>;
|
|
2860
2946
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2861
|
-
status: "pending" | "
|
|
2947
|
+
status: "pending" | "paid" | "failed" | "processing";
|
|
2862
2948
|
currency: string;
|
|
2863
2949
|
storeId: string;
|
|
2864
2950
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
@@ -2908,7 +2994,7 @@ export declare const SCHEMAS: {
|
|
|
2908
2994
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2909
2995
|
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
2910
2996
|
}, {
|
|
2911
|
-
status: "pending" | "
|
|
2997
|
+
status: "pending" | "paid" | "failed" | "processing";
|
|
2912
2998
|
currency: string;
|
|
2913
2999
|
storeId: string;
|
|
2914
3000
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
@@ -3623,7 +3709,7 @@ export declare const SCHEMAS: {
|
|
|
3623
3709
|
providers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3624
3710
|
providerId: import("zod").ZodString;
|
|
3625
3711
|
label: import("zod").ZodString;
|
|
3626
|
-
type: import("zod").ZodEnum<["
|
|
3712
|
+
type: import("zod").ZodEnum<["self-courier", "store-pickup", "custom"]>;
|
|
3627
3713
|
fee: import("zod").ZodObject<{
|
|
3628
3714
|
flatInPaise: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3629
3715
|
perKgInPaise: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -3648,7 +3734,7 @@ export declare const SCHEMAS: {
|
|
|
3648
3734
|
regions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
3649
3735
|
requiresAwbUpload: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
3650
3736
|
}, "strip", import("zod").ZodTypeAny, {
|
|
3651
|
-
type: "custom" | "
|
|
3737
|
+
type: "custom" | "self-courier" | "store-pickup";
|
|
3652
3738
|
label: string;
|
|
3653
3739
|
providerId: string;
|
|
3654
3740
|
fee: {
|
|
@@ -3663,7 +3749,7 @@ export declare const SCHEMAS: {
|
|
|
3663
3749
|
regions?: string[] | undefined;
|
|
3664
3750
|
requiresAwbUpload?: boolean | undefined;
|
|
3665
3751
|
}, {
|
|
3666
|
-
type: "custom" | "
|
|
3752
|
+
type: "custom" | "self-courier" | "store-pickup";
|
|
3667
3753
|
label: string;
|
|
3668
3754
|
providerId: string;
|
|
3669
3755
|
fee: {
|
|
@@ -3681,7 +3767,7 @@ export declare const SCHEMAS: {
|
|
|
3681
3767
|
defaultProviderId: import("zod").ZodString;
|
|
3682
3768
|
}, "strip", import("zod").ZodTypeAny, {
|
|
3683
3769
|
providers: {
|
|
3684
|
-
type: "custom" | "
|
|
3770
|
+
type: "custom" | "self-courier" | "store-pickup";
|
|
3685
3771
|
label: string;
|
|
3686
3772
|
providerId: string;
|
|
3687
3773
|
fee: {
|
|
@@ -3699,7 +3785,7 @@ export declare const SCHEMAS: {
|
|
|
3699
3785
|
defaultProviderId: string;
|
|
3700
3786
|
}, {
|
|
3701
3787
|
providers: {
|
|
3702
|
-
type: "custom" | "
|
|
3788
|
+
type: "custom" | "self-courier" | "store-pickup";
|
|
3703
3789
|
label: string;
|
|
3704
3790
|
providerId: string;
|
|
3705
3791
|
fee: {
|
|
@@ -3716,6 +3802,7 @@ export declare const SCHEMAS: {
|
|
|
3716
3802
|
}[];
|
|
3717
3803
|
defaultProviderId: string;
|
|
3718
3804
|
}>>;
|
|
3805
|
+
emiEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
3719
3806
|
whatsappConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3720
3807
|
phoneNumber: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3721
3808
|
wabaId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -3792,10 +3879,11 @@ export declare const SCHEMAS: {
|
|
|
3792
3879
|
averageRating?: number | undefined;
|
|
3793
3880
|
} | undefined;
|
|
3794
3881
|
isFeatured?: boolean | undefined;
|
|
3882
|
+
emiEnabled?: boolean | undefined;
|
|
3795
3883
|
website?: string | undefined;
|
|
3796
3884
|
shippingConfig?: {
|
|
3797
3885
|
providers: {
|
|
3798
|
-
type: "custom" | "
|
|
3886
|
+
type: "custom" | "self-courier" | "store-pickup";
|
|
3799
3887
|
label: string;
|
|
3800
3888
|
providerId: string;
|
|
3801
3889
|
fee: {
|
|
@@ -3876,10 +3964,11 @@ export declare const SCHEMAS: {
|
|
|
3876
3964
|
averageRating?: number | undefined;
|
|
3877
3965
|
} | undefined;
|
|
3878
3966
|
isFeatured?: boolean | undefined;
|
|
3967
|
+
emiEnabled?: boolean | undefined;
|
|
3879
3968
|
website?: string | undefined;
|
|
3880
3969
|
shippingConfig?: {
|
|
3881
3970
|
providers: {
|
|
3882
|
-
type: "custom" | "
|
|
3971
|
+
type: "custom" | "self-courier" | "store-pickup";
|
|
3883
3972
|
label: string;
|
|
3884
3973
|
providerId: string;
|
|
3885
3974
|
fee: {
|
|
@@ -6591,36 +6680,6 @@ export declare const SCHEMAS: {
|
|
|
6591
6680
|
contains?: string[] | undefined;
|
|
6592
6681
|
}>]>;
|
|
6593
6682
|
};
|
|
6594
|
-
readonly shiprocket: {
|
|
6595
|
-
readonly trackingUpdate: import("zod").ZodObject<{
|
|
6596
|
-
awb: import("zod").ZodString;
|
|
6597
|
-
order_id: import("zod").ZodString;
|
|
6598
|
-
shipment_id: import("zod").ZodString;
|
|
6599
|
-
current_status: import("zod").ZodString;
|
|
6600
|
-
current_status_id: import("zod").ZodNumber;
|
|
6601
|
-
courier_agent_assigned: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6602
|
-
etd: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6603
|
-
pickup_generated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6604
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
6605
|
-
order_id: string;
|
|
6606
|
-
awb: string;
|
|
6607
|
-
shipment_id: string;
|
|
6608
|
-
current_status: string;
|
|
6609
|
-
current_status_id: number;
|
|
6610
|
-
courier_agent_assigned?: boolean | undefined;
|
|
6611
|
-
etd?: string | undefined;
|
|
6612
|
-
pickup_generated?: boolean | undefined;
|
|
6613
|
-
}, {
|
|
6614
|
-
order_id: string;
|
|
6615
|
-
awb: string;
|
|
6616
|
-
shipment_id: string;
|
|
6617
|
-
current_status: string;
|
|
6618
|
-
current_status_id: number;
|
|
6619
|
-
courier_agent_assigned?: boolean | undefined;
|
|
6620
|
-
etd?: string | undefined;
|
|
6621
|
-
pickup_generated?: boolean | undefined;
|
|
6622
|
-
}>;
|
|
6623
|
-
};
|
|
6624
6683
|
readonly googleOauth: {
|
|
6625
6684
|
readonly signInWithIdp: import("zod").ZodObject<{
|
|
6626
6685
|
federatedId: import("zod").ZodOptional<import("zod").ZodString>;
|