@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.
Files changed (857) hide show
  1. package/dist/_internal/client/features/classified/ClassifiedDetailView.d.ts +2 -1
  2. package/dist/_internal/client/features/digital-code/CodeRevealPanel.d.ts +2 -1
  3. package/dist/_internal/client/features/digital-code/DigitalCodeDetailView.d.ts +2 -1
  4. package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +1 -1
  5. package/dist/_internal/client/features/layout/RoleGuard.d.ts +1 -1
  6. package/dist/_internal/client/features/live/LiveItemDetailView.d.ts +1 -1
  7. package/dist/_internal/client/features/lottery/LotteryAdminEditView.d.ts +2 -1
  8. package/dist/_internal/client/features/lottery/LotteryAdminSlotView.d.ts +2 -1
  9. package/dist/_internal/client/features/lottery/LotteryDetailView.d.ts +2 -1
  10. package/dist/_internal/client/features/lottery/LotteryEntriesView.d.ts +2 -1
  11. package/dist/_internal/client/features/lottery/LotteryListView.d.ts +2 -1
  12. package/dist/_internal/client/features/lottery/LotteryPullForm.d.ts +2 -1
  13. package/dist/_internal/client/features/lottery/LotterySlotGrid.d.ts +2 -1
  14. package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.d.ts +2 -1
  15. package/dist/_internal/client/features/tour/TourProvider.d.ts +1 -1
  16. package/dist/_internal/client/i18n/LabelsProvider.d.ts +1 -1
  17. package/dist/_internal/client/scaffolds/AppShell.d.ts +1 -1
  18. package/dist/_internal/client/scaffolds/DashboardScaffold.d.ts +1 -1
  19. package/dist/_internal/client/theme/ThemeProvider.d.ts +1 -1
  20. package/dist/_internal/server/features/checkout/actions.d.ts +2 -0
  21. package/dist/_internal/server/features/checkout/actions.js +239 -190
  22. package/dist/_internal/server/functions/scheduled.d.ts +2 -1
  23. package/dist/_internal/server/functions/scheduled.js +9 -1
  24. package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +8 -11
  25. package/dist/_internal/server/jobs/core/emiInstallmentReminder.d.ts +8 -0
  26. package/dist/_internal/server/jobs/core/emiInstallmentReminder.js +78 -0
  27. package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.d.ts +2 -2
  28. package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +15 -10
  29. package/dist/_internal/server/jobs/handlers/emiInstallmentReminder.d.ts +2 -0
  30. package/dist/_internal/server/jobs/handlers/emiInstallmentReminder.js +2 -0
  31. package/dist/_internal/server/jobs/handlers/index.d.ts +1 -0
  32. package/dist/_internal/server/jobs/handlers/index.js +2 -0
  33. package/dist/_internal/server/providers/index.d.ts +4 -4
  34. package/dist/_internal/server/providers/index.js +4 -4
  35. package/dist/_internal/server/providers/payment/razorpay-mock.d.ts +3 -2
  36. package/dist/_internal/server/providers/payment/razorpay-mock.js +3 -1
  37. package/dist/_internal/server/providers/resolve.d.ts +10 -13
  38. package/dist/_internal/server/providers/resolve.js +9 -15
  39. package/dist/_internal/shared/actions/action-registry.js +28 -0
  40. package/dist/_internal/shared/checkout/rules/_defaults.js +1 -0
  41. package/dist/_internal/shared/checkout/rules/_registry.js +4 -0
  42. package/dist/_internal/shared/checkout/rules/art.rule.d.ts +9 -0
  43. package/dist/_internal/shared/checkout/rules/art.rule.js +5 -0
  44. package/dist/_internal/shared/checkout/rules/auction.rule.js +1 -0
  45. package/dist/_internal/shared/checkout/rules/classified.rule.js +1 -0
  46. package/dist/_internal/shared/checkout/rules/index.d.ts +2 -0
  47. package/dist/_internal/shared/checkout/rules/index.js +2 -0
  48. package/dist/_internal/shared/checkout/rules/stickers.rule.d.ts +9 -0
  49. package/dist/_internal/shared/checkout/rules/stickers.rule.js +5 -0
  50. package/dist/_internal/shared/checkout/rules/types.d.ts +6 -0
  51. package/dist/_internal/shared/features/checkout/config.d.ts +16 -1
  52. package/dist/_internal/shared/features/checkout/config.js +16 -1
  53. package/dist/_internal/shared/features/emi/schedule.d.ts +63 -0
  54. package/dist/_internal/shared/features/emi/schedule.js +62 -0
  55. package/dist/_internal/shared/fees/calculator.d.ts +53 -0
  56. package/dist/_internal/shared/fees/calculator.js +40 -0
  57. package/dist/_internal/shared/listing-types/_registry.d.ts +22 -66
  58. package/dist/_internal/shared/listing-types/_registry.js +19 -2
  59. package/dist/_internal/shared/listing-types/art/config.d.ts +15 -0
  60. package/dist/_internal/shared/listing-types/art/config.js +14 -0
  61. package/dist/_internal/shared/listing-types/art/ctas.d.ts +1 -0
  62. package/dist/_internal/shared/listing-types/art/ctas.js +3 -0
  63. package/dist/_internal/shared/listing-types/art/og.d.ts +1 -0
  64. package/dist/_internal/shared/listing-types/art/og.js +1 -0
  65. package/dist/_internal/shared/listing-types/art/schema.d.ts +2 -0
  66. package/dist/_internal/shared/listing-types/art/schema.js +3 -0
  67. package/dist/_internal/shared/listing-types/art/seed-factory.d.ts +1 -0
  68. package/dist/_internal/shared/listing-types/art/seed-factory.js +1 -0
  69. package/dist/_internal/shared/listing-types/auction/config.d.ts +8 -0
  70. package/dist/_internal/shared/listing-types/auction/config.js +6 -0
  71. package/dist/_internal/shared/listing-types/capabilities.js +17 -0
  72. package/dist/_internal/shared/listing-types/classified/config.d.ts +8 -0
  73. package/dist/_internal/shared/listing-types/classified/config.js +6 -0
  74. package/dist/_internal/shared/listing-types/digital-code/config.d.ts +8 -0
  75. package/dist/_internal/shared/listing-types/digital-code/config.js +6 -0
  76. package/dist/_internal/shared/listing-types/live/config.d.ts +8 -0
  77. package/dist/_internal/shared/listing-types/live/config.js +6 -0
  78. package/dist/_internal/shared/listing-types/pre-order/config.d.ts +8 -0
  79. package/dist/_internal/shared/listing-types/pre-order/config.js +6 -0
  80. package/dist/_internal/shared/listing-types/prize-draw/config.d.ts +8 -0
  81. package/dist/_internal/shared/listing-types/prize-draw/config.js +6 -0
  82. package/dist/_internal/shared/listing-types/standard/config.d.ts +8 -0
  83. package/dist/_internal/shared/listing-types/standard/config.js +6 -0
  84. package/dist/_internal/shared/listing-types/stickers/config.d.ts +15 -0
  85. package/dist/_internal/shared/listing-types/stickers/config.js +14 -0
  86. package/dist/_internal/shared/listing-types/stickers/ctas.d.ts +1 -0
  87. package/dist/_internal/shared/listing-types/stickers/ctas.js +3 -0
  88. package/dist/_internal/shared/listing-types/stickers/og.d.ts +1 -0
  89. package/dist/_internal/shared/listing-types/stickers/og.js +1 -0
  90. package/dist/_internal/shared/listing-types/stickers/schema.d.ts +2 -0
  91. package/dist/_internal/shared/listing-types/stickers/schema.js +3 -0
  92. package/dist/_internal/shared/listing-types/stickers/seed-factory.d.ts +1 -0
  93. package/dist/_internal/shared/listing-types/stickers/seed-factory.js +1 -0
  94. package/dist/client.d.ts +7 -2
  95. package/dist/client.js +4 -2
  96. package/dist/constants/field-names.d.ts +2 -6
  97. package/dist/constants/field-names.js +2 -6
  98. package/dist/contracts/index.d.ts +4 -2
  99. package/dist/contracts/index.js +6 -0
  100. package/dist/contracts/payment.d.ts +14 -9
  101. package/dist/contracts/payment.js +11 -1
  102. package/dist/contracts/shipping.d.ts +14 -9
  103. package/dist/contracts/shipping.js +11 -1
  104. package/dist/features/about/components/AboutView.d.ts +1 -1
  105. package/dist/features/about/components/FAQPageView.d.ts +1 -1
  106. package/dist/features/about/components/FeesView.d.ts +1 -1
  107. package/dist/features/about/components/HelpPageView.d.ts +1 -1
  108. package/dist/features/about/components/HowAuctionsWorkView.d.ts +1 -1
  109. package/dist/features/about/components/HowCheckoutWorksView.d.ts +1 -1
  110. package/dist/features/about/components/HowOffersWorkView.d.ts +1 -1
  111. package/dist/features/about/components/HowOrdersWorkView.d.ts +1 -1
  112. package/dist/features/about/components/HowPayoutsWorkView.d.ts +1 -1
  113. package/dist/features/about/components/HowPreOrdersWorkView.d.ts +1 -1
  114. package/dist/features/about/components/HowReviewsWorkView.d.ts +1 -1
  115. package/dist/features/about/components/PolicyPageView.d.ts +1 -1
  116. package/dist/features/about/components/PublicProfileView.d.ts +1 -1
  117. package/dist/features/about/components/PublicProfileView.js +3 -6
  118. package/dist/features/about/components/SecurityPrivacyView.d.ts +1 -1
  119. package/dist/features/about/components/ShippingPolicyView.d.ts +1 -1
  120. package/dist/features/about/components/TrackOrderView.d.ts +1 -1
  121. package/dist/features/about/components/UnauthorizedView.d.ts +1 -1
  122. package/dist/features/account/components/AddressBook.d.ts +2 -2
  123. package/dist/features/account/components/AddressFilters.d.ts +1 -1
  124. package/dist/features/account/components/AddressForm.d.ts +1 -1
  125. package/dist/features/account/components/AddressInlineSelect.d.ts +2 -1
  126. package/dist/features/account/components/AddressSelectorCreate.d.ts +1 -1
  127. package/dist/features/account/components/AddressesIndexListing.d.ts +2 -1
  128. package/dist/features/account/components/BecomeSellerView.d.ts +1 -1
  129. package/dist/features/account/components/BuyerAccountGuideView.d.ts +2 -1
  130. package/dist/features/account/components/BuyerAuctionsGuideView.d.ts +2 -1
  131. package/dist/features/account/components/BuyerOrdersGuideView.d.ts +2 -1
  132. package/dist/features/account/components/BuyerShoppingGuideView.d.ts +2 -1
  133. package/dist/features/account/components/ChatList.d.ts +1 -1
  134. package/dist/features/account/components/ChatWindow.d.ts +1 -1
  135. package/dist/features/account/components/MessagesView.d.ts +1 -1
  136. package/dist/features/account/components/NotificationBell.d.ts +1 -1
  137. package/dist/features/account/components/NotificationPreferencesPanel.d.ts +1 -1
  138. package/dist/features/account/components/OrderDetailView.d.ts +1 -1
  139. package/dist/features/account/components/ProfileView.d.ts +1 -1
  140. package/dist/features/account/components/UserAccountHubView.d.ts +1 -1
  141. package/dist/features/account/components/UserAddressesView.d.ts +1 -1
  142. package/dist/features/account/components/UserNotificationsView.d.ts +1 -1
  143. package/dist/features/account/components/UserOffersPanel.d.ts +1 -1
  144. package/dist/features/account/components/UserOffersView.d.ts +1 -1
  145. package/dist/features/account/components/UserOrderTrackView.d.ts +1 -1
  146. package/dist/features/account/components/UserOrdersView.d.ts +1 -1
  147. package/dist/features/account/components/UserReturnsView.d.ts +1 -1
  148. package/dist/features/account/components/UserSettingsView.d.ts +1 -1
  149. package/dist/features/account/components/UserSidebar.d.ts +1 -1
  150. package/dist/features/account/components/UserSupportView.d.ts +2 -1
  151. package/dist/features/admin/components/AdminAdEditorView.d.ts +2 -1
  152. package/dist/features/admin/components/AdminAddressBookView.d.ts +11 -0
  153. package/dist/features/admin/components/AdminAddressBookView.js +30 -0
  154. package/dist/features/admin/components/AdminAddressClustersView.d.ts +1 -1
  155. package/dist/features/admin/components/AdminAddressEditorView.d.ts +2 -1
  156. package/dist/features/admin/components/AdminAddressesView.d.ts +1 -1
  157. package/dist/features/admin/components/AdminAdsView.d.ts +1 -1
  158. package/dist/features/admin/components/AdminAllEventEntriesView.d.ts +2 -1
  159. package/dist/features/admin/components/AdminAnalyticsGuideView.d.ts +2 -1
  160. package/dist/features/admin/components/AdminAnalyticsView.d.ts +1 -1
  161. package/dist/features/admin/components/AdminArtView.d.ts +4 -0
  162. package/dist/features/admin/components/AdminArtView.js +45 -0
  163. package/dist/features/admin/components/AdminBidsView.d.ts +2 -1
  164. package/dist/features/admin/components/AdminBlogEditorView.d.ts +2 -1
  165. package/dist/features/admin/components/AdminBlogView.d.ts +2 -1
  166. package/dist/features/admin/components/AdminBrandEditorView.d.ts +2 -1
  167. package/dist/features/admin/components/AdminBrandsView.d.ts +2 -1
  168. package/dist/features/admin/components/AdminBundleEditorView.d.ts +14 -1
  169. package/dist/features/admin/components/AdminBundlesView.d.ts +2 -1
  170. package/dist/features/admin/components/AdminCarouselEditorView.d.ts +2 -1
  171. package/dist/features/admin/components/AdminCarouselView.d.ts +2 -1
  172. package/dist/features/admin/components/AdminCartsView.d.ts +2 -1
  173. package/dist/features/admin/components/AdminCatalogGuideView.d.ts +2 -1
  174. package/dist/features/admin/components/AdminCategoriesView.d.ts +2 -1
  175. package/dist/features/admin/components/AdminCategoryEditorView.d.ts +2 -1
  176. package/dist/features/admin/components/AdminClassifiedView.d.ts +2 -1
  177. package/dist/features/admin/components/AdminContactEditorView.d.ts +2 -1
  178. package/dist/features/admin/components/AdminContactView.d.ts +2 -1
  179. package/dist/features/admin/components/AdminContentGuideView.d.ts +2 -1
  180. package/dist/features/admin/components/AdminCouponEditorView.d.ts +2 -1
  181. package/dist/features/admin/components/AdminCouponsView.d.ts +2 -1
  182. package/dist/features/admin/components/AdminDashboardView.d.ts +1 -1
  183. package/dist/features/admin/components/AdminDigitalCodesView.d.ts +2 -1
  184. package/dist/features/admin/components/AdminEmployeeEditorView.d.ts +2 -1
  185. package/dist/features/admin/components/AdminFaqEditorView.d.ts +2 -1
  186. package/dist/features/admin/components/AdminFaqsView.d.ts +2 -1
  187. package/dist/features/admin/components/AdminFeatureEditorView.d.ts +2 -1
  188. package/dist/features/admin/components/AdminFeatureFlagsView.d.ts +1 -1
  189. package/dist/features/admin/components/AdminFeaturesView.d.ts +2 -1
  190. package/dist/features/admin/components/AdminFilterBar.d.ts +1 -1
  191. package/dist/features/admin/components/AdminFulfillmentView.d.ts +2 -1
  192. package/dist/features/admin/components/AdminGroupedListingsView.d.ts +2 -1
  193. package/dist/features/admin/components/AdminGuideHubView.d.ts +2 -1
  194. package/dist/features/admin/components/AdminHistoryView.d.ts +2 -1
  195. package/dist/features/admin/components/AdminLiveView.d.ts +2 -1
  196. package/dist/features/admin/components/AdminMediaView.d.ts +1 -1
  197. package/dist/features/admin/components/AdminNavEditorView.d.ts +2 -1
  198. package/dist/features/admin/components/AdminNavigationView.d.ts +2 -1
  199. package/dist/features/admin/components/AdminNewsletterView.d.ts +2 -1
  200. package/dist/features/admin/components/AdminNotificationsView.d.ts +2 -1
  201. package/dist/features/admin/components/AdminOrderEditorView.d.ts +2 -1
  202. package/dist/features/admin/components/AdminOrdersGuideView.d.ts +2 -1
  203. package/dist/features/admin/components/AdminOrdersView.d.ts +2 -1
  204. package/dist/features/admin/components/AdminPageHeader.d.ts +1 -1
  205. package/dist/features/admin/components/AdminPaymentClustersView.d.ts +1 -1
  206. package/dist/features/admin/components/AdminPaymentMethodsView.d.ts +1 -1
  207. package/dist/features/admin/components/AdminPayoutsView.d.ts +2 -1
  208. package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +2 -1
  209. package/dist/features/admin/components/AdminProductEditorView.d.ts +2 -1
  210. package/dist/features/admin/components/AdminProductsView.d.ts +2 -1
  211. package/dist/features/admin/components/AdminReturnRequestsView.d.ts +1 -1
  212. package/dist/features/admin/components/AdminReviewsView.d.ts +2 -1
  213. package/dist/features/admin/components/AdminScammerEditorView.d.ts +2 -1
  214. package/dist/features/admin/components/AdminScammersView.d.ts +2 -1
  215. package/dist/features/admin/components/AdminSectionsView.d.ts +1 -1
  216. package/dist/features/admin/components/AdminSessionsManager.d.ts +1 -1
  217. package/dist/features/admin/components/AdminSessionsView.d.ts +2 -1
  218. package/dist/features/admin/components/AdminSidebar.d.ts +1 -1
  219. package/dist/features/admin/components/AdminSiteConfigGuideView.d.ts +2 -1
  220. package/dist/features/admin/components/AdminSiteConfigGuideView.js +1 -1
  221. package/dist/features/admin/components/AdminSiteSettingsView.d.ts +2 -1
  222. package/dist/features/admin/components/AdminSiteSettingsView.js +14 -9
  223. package/dist/features/admin/components/AdminSiteView.d.ts +1 -1
  224. package/dist/features/admin/components/AdminStickersView.d.ts +4 -0
  225. package/dist/features/admin/components/AdminStickersView.js +45 -0
  226. package/dist/features/admin/components/AdminStoreAddressesView.d.ts +1 -1
  227. package/dist/features/admin/components/AdminStoreEditorView.d.ts +2 -1
  228. package/dist/features/admin/components/AdminStoresGuideView.d.ts +2 -1
  229. package/dist/features/admin/components/AdminStoresView.d.ts +2 -1
  230. package/dist/features/admin/components/AdminSublistingCategoriesView.d.ts +2 -1
  231. package/dist/features/admin/components/AdminSublistingCategoryEditorView.d.ts +2 -1
  232. package/dist/features/admin/components/AdminSupportTicketDetailView.d.ts +2 -1
  233. package/dist/features/admin/components/AdminSupportTicketsView.d.ts +2 -1
  234. package/dist/features/admin/components/AdminTeamGuideView.d.ts +2 -1
  235. package/dist/features/admin/components/AdminTeamView.d.ts +2 -1
  236. package/dist/features/admin/components/AdminTopBar.d.ts +1 -1
  237. package/dist/features/admin/components/AdminTrustGuideView.d.ts +2 -1
  238. package/dist/features/admin/components/AdminUserEditorView.d.ts +2 -1
  239. package/dist/features/admin/components/AdminUsersGuideView.d.ts +2 -1
  240. package/dist/features/admin/components/AdminUsersView.d.ts +2 -1
  241. package/dist/features/admin/components/AdminViewCards.d.ts +2 -1
  242. package/dist/features/admin/components/AdminWishlistsView.d.ts +2 -1
  243. package/dist/features/admin/components/BrandQuickCreateForm.d.ts +2 -1
  244. package/dist/features/admin/components/CategoryQuickCreateForm.d.ts +2 -1
  245. package/dist/features/admin/components/DashboardStats.d.ts +1 -1
  246. package/dist/features/admin/components/DataListingView.d.ts +1 -1
  247. package/dist/features/admin/components/DataTable.d.ts +1 -1
  248. package/dist/features/admin/components/DemoSeedView.d.ts +1 -1
  249. package/dist/features/admin/components/DrawerFormFooter.d.ts +1 -1
  250. package/dist/features/admin/components/QuickActionsPanel.d.ts +1 -1
  251. package/dist/features/admin/components/QuickEditMenu.d.ts +1 -1
  252. package/dist/features/admin/components/analytics/AdminAnalyticsCharts.d.ts +3 -2
  253. package/dist/features/admin/components/analytics/AdminStatCard.d.ts +1 -1
  254. package/dist/features/admin/components/analytics/AdminTopProductsTable.d.ts +1 -1
  255. package/dist/features/admin/components/index.d.ts +6 -0
  256. package/dist/features/admin/components/index.js +4 -0
  257. package/dist/features/admin/schemas/firestore.d.ts +19 -11
  258. package/dist/features/admin/schemas/firestore.js +12 -2
  259. package/dist/features/auctions/components/AuctionBidsTable.d.ts +1 -1
  260. package/dist/features/auctions/components/AuctionDetailPageView.d.ts +1 -1
  261. package/dist/features/auctions/components/AuctionFilters.d.ts +1 -1
  262. package/dist/features/auctions/components/AuctionsListView.d.ts +1 -1
  263. package/dist/features/auctions/components/CollapsibleBidHistory.d.ts +2 -1
  264. package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +4 -3
  265. package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +1 -1
  266. package/dist/features/auctions/components/PlaceBidFormClient.d.ts +3 -2
  267. package/dist/features/auth/components/AuthStatusPanel.d.ts +1 -1
  268. package/dist/features/auth/components/ForgotPasswordView.d.ts +1 -1
  269. package/dist/features/auth/components/Guards.d.ts +2 -2
  270. package/dist/features/auth/components/LoginForm.d.ts +1 -1
  271. package/dist/features/auth/components/OAuthLoadingView.d.ts +1 -1
  272. package/dist/features/auth/components/RegisterForm.d.ts +1 -1
  273. package/dist/features/auth/components/ResetPasswordView.d.ts +1 -1
  274. package/dist/features/auth/components/SocialAuthButtons.d.ts +1 -1
  275. package/dist/features/auth/components/VerifyEmailView.d.ts +1 -1
  276. package/dist/features/auth/hooks/useAuth.js +35 -9
  277. package/dist/features/auth/schemas/firestore.d.ts +2 -6
  278. package/dist/features/before-after/components/BeforeAfterGallery.d.ts +1 -1
  279. package/dist/features/before-after/components/BeforeAfterSlider.d.ts +2 -1
  280. package/dist/features/blog/components/BlogFeaturedCard.d.ts +2 -1
  281. package/dist/features/blog/components/BlogFilters.d.ts +1 -1
  282. package/dist/features/blog/components/BlogIndexListing.d.ts +2 -1
  283. package/dist/features/blog/components/BlogIndexPageView.d.ts +2 -1
  284. package/dist/features/blog/components/BlogListView.d.ts +4 -3
  285. package/dist/features/blog/components/BlogPostForm.d.ts +1 -1
  286. package/dist/features/blog/components/BlogPostView.d.ts +1 -1
  287. package/dist/features/cart/components/CartDrawer.d.ts +2 -2
  288. package/dist/features/cart/components/CartSummary.d.ts +1 -1
  289. package/dist/features/cart/components/CartView.d.ts +1 -1
  290. package/dist/features/cart/components/CheckoutAddressStep.d.ts +1 -1
  291. package/dist/features/cart/components/CheckoutOtpModal.d.ts +1 -1
  292. package/dist/features/cart/components/CheckoutSuccessView.d.ts +1 -1
  293. package/dist/features/cart/components/CheckoutView.d.ts +1 -1
  294. package/dist/features/cart/components/ShippingPicker.d.ts +9 -1
  295. package/dist/features/cart/schemas/firestore.d.ts +3 -2
  296. package/dist/features/categories/components/BrandDetailPageView.d.ts +2 -1
  297. package/dist/features/categories/components/BrandDetailTabs.d.ts +2 -1
  298. package/dist/features/categories/components/BreadcrumbTrail.d.ts +2 -1
  299. package/dist/features/categories/components/BundleBuyNowCta.d.ts +9 -1
  300. package/dist/features/categories/components/BundleCollage.d.ts +10 -1
  301. package/dist/features/categories/components/BundleDetailView.d.ts +2 -1
  302. package/dist/features/categories/components/BundleDynamicRuleEditor.d.ts +15 -1
  303. package/dist/features/categories/components/BundleItemsPicker.d.ts +15 -1
  304. package/dist/features/categories/components/BundlesListView.d.ts +2 -1
  305. package/dist/features/categories/components/CategoriesIndexListing.d.ts +2 -1
  306. package/dist/features/categories/components/CategoriesIndexPageView.d.ts +2 -1
  307. package/dist/features/categories/components/CategoryBundlesListing.d.ts +2 -1
  308. package/dist/features/categories/components/CategoryDetailPageView.d.ts +2 -1
  309. package/dist/features/categories/components/CategoryDetailTabs.d.ts +2 -1
  310. package/dist/features/categories/components/CategoryFilters.d.ts +1 -1
  311. package/dist/features/categories/components/CategoryForm.d.ts +1 -1
  312. package/dist/features/categories/components/CategoryGrid.d.ts +3 -2
  313. package/dist/features/categories/components/CategoryProductsListing.d.ts +2 -1
  314. package/dist/features/categories/components/CategoryProductsView.d.ts +1 -1
  315. package/dist/features/categories/components/CategorySelectorCreate.d.ts +1 -1
  316. package/dist/features/categories/components/CategorySortSelect.d.ts +1 -1
  317. package/dist/features/categories/components/CategoryStoresListing.d.ts +2 -1
  318. package/dist/features/categories/components/CategoryTableColumns.d.ts +3 -3
  319. package/dist/features/categories/components/CategoryTree.d.ts +1 -1
  320. package/dist/features/categories/components/ConcernCard.d.ts +1 -1
  321. package/dist/features/categories/components/ConcernGrid.d.ts +1 -1
  322. package/dist/features/checkout/components/CheckoutStepper.d.ts +2 -1
  323. package/dist/features/classified/components/ClassifiedFilters.d.ts +1 -1
  324. package/dist/features/classified/components/ClassifiedIndexListing.d.ts +2 -1
  325. package/dist/features/classified/components/ClassifiedListView.d.ts +1 -1
  326. package/dist/features/collections/components/CollectionCard.d.ts +3 -2
  327. package/dist/features/consultation/components/ConsultationForm.d.ts +2 -1
  328. package/dist/features/consultation/schemas/index.d.ts +2 -2
  329. package/dist/features/contact/components/ContactForm.d.ts +2 -1
  330. package/dist/features/contact/components/ContactInfoSidebar.d.ts +1 -1
  331. package/dist/features/contact/components/ContactPageView.d.ts +2 -1
  332. package/dist/features/copilot/components/AdminCopilotView.d.ts +1 -1
  333. package/dist/features/corporate/components/CorporateInquiryForm.d.ts +2 -1
  334. package/dist/features/digital-codes/components/DigitalCodeFilters.d.ts +1 -1
  335. package/dist/features/digital-codes/components/DigitalCodesIndexListing.d.ts +2 -1
  336. package/dist/features/digital-codes/components/DigitalCodesListView.d.ts +1 -1
  337. package/dist/features/email/primitives.d.ts +11 -11
  338. package/dist/features/events/components/AdminEventEditorView.d.ts +2 -1
  339. package/dist/features/events/components/AdminEventEntriesView.d.ts +1 -1
  340. package/dist/features/events/components/AdminEventsView.d.ts +2 -1
  341. package/dist/features/events/components/EventBanner.d.ts +2 -1
  342. package/dist/features/events/components/EventCard.d.ts +1 -1
  343. package/dist/features/events/components/EventDetailView.d.ts +1 -1
  344. package/dist/features/events/components/EventFilters.d.ts +1 -1
  345. package/dist/features/events/components/EventFormDrawer.d.ts +1 -1
  346. package/dist/features/events/components/EventLeaderboard.d.ts +1 -1
  347. package/dist/features/events/components/EventOfferCard.d.ts +2 -1
  348. package/dist/features/events/components/EventParticipateView.d.ts +1 -1
  349. package/dist/features/events/components/EventPollWidget.d.ts +1 -1
  350. package/dist/features/events/components/EventRaffleEntryForm.d.ts +2 -1
  351. package/dist/features/events/components/EventRaffleWinnerView.d.ts +1 -1
  352. package/dist/features/events/components/EventRafflesSection.d.ts +1 -1
  353. package/dist/features/events/components/EventSaleBanner.d.ts +2 -1
  354. package/dist/features/events/components/EventStatusBadge.d.ts +1 -1
  355. package/dist/features/events/components/EventsIndexListing.d.ts +2 -1
  356. package/dist/features/events/components/EventsListPageView.d.ts +2 -1
  357. package/dist/features/events/components/EventsListView.d.ts +2 -1
  358. package/dist/features/events/components/SpinWheelView.d.ts +1 -1
  359. package/dist/features/faq/components/ContactCTA.d.ts +1 -1
  360. package/dist/features/faq/components/FAQAccordion.d.ts +2 -2
  361. package/dist/features/faq/components/FAQCategorySidebar.d.ts +1 -1
  362. package/dist/features/faq/components/FAQHelpfulButtons.d.ts +1 -1
  363. package/dist/features/faq/components/FAQPageContent.d.ts +1 -1
  364. package/dist/features/faq/components/FAQSortDropdown.d.ts +1 -1
  365. package/dist/features/faq/components/RelatedFAQs.d.ts +1 -1
  366. package/dist/features/filters/AsyncFacetSection.d.ts +2 -1
  367. package/dist/features/filters/FilterFacetSection.d.ts +1 -1
  368. package/dist/features/filters/FilterPanel.d.ts +1 -1
  369. package/dist/features/filters/RangeFilter.d.ts +1 -1
  370. package/dist/features/filters/SwitchFilter.d.ts +1 -1
  371. package/dist/features/forms/Checkbox.d.ts +1 -1
  372. package/dist/features/forms/Radio.d.ts +2 -1
  373. package/dist/features/forms/Select.d.ts +1 -1
  374. package/dist/features/forms/Slider.d.ts +2 -1
  375. package/dist/features/forms/Toggle.d.ts +2 -1
  376. package/dist/features/homepage/components/AdSlot.d.ts +1 -1
  377. package/dist/features/homepage/components/AdvertisementBanner.d.ts +2 -1
  378. package/dist/features/homepage/components/AnnouncementBar.d.ts +2 -1
  379. package/dist/features/homepage/components/BeforeAfterCard.d.ts +1 -1
  380. package/dist/features/homepage/components/BlogArticlesSection.d.ts +2 -1
  381. package/dist/features/homepage/components/BrandsSection.d.ts +1 -1
  382. package/dist/features/homepage/components/CTABannerSection.d.ts +2 -1
  383. package/dist/features/homepage/components/CharacterHotspot.d.ts +1 -1
  384. package/dist/features/homepage/components/CharacterHotspotForm.d.ts +2 -1
  385. package/dist/features/homepage/components/CollectionCardsSection.d.ts +1 -1
  386. package/dist/features/homepage/components/CustomCardsSection.d.ts +2 -1
  387. package/dist/features/homepage/components/CustomerReviewsSection.d.ts +1 -1
  388. package/dist/features/homepage/components/EventsSection.d.ts +2 -1
  389. package/dist/features/homepage/components/FAQSection.d.ts +2 -1
  390. package/dist/features/homepage/components/FeaturedAuctionsSection.d.ts +2 -1
  391. package/dist/features/homepage/components/FeaturedBundlesSection.d.ts +2 -1
  392. package/dist/features/homepage/components/FeaturedPreOrdersSection.d.ts +2 -1
  393. package/dist/features/homepage/components/FeaturedProductsSection.d.ts +1 -1
  394. package/dist/features/homepage/components/FeaturedResultsSection.d.ts +1 -1
  395. package/dist/features/homepage/components/FeaturedStoresSection.d.ts +2 -1
  396. package/dist/features/homepage/components/GoogleReviewsSection.d.ts +2 -1
  397. package/dist/features/homepage/components/HeroBanner.d.ts +1 -1
  398. package/dist/features/homepage/components/HeroCarousel.d.ts +2 -1
  399. package/dist/features/homepage/components/HeroSection.d.ts +1 -1
  400. package/dist/features/homepage/components/HomepageCustomerReviewsSection.d.ts +2 -1
  401. package/dist/features/homepage/components/HomepageSkeleton.d.ts +1 -1
  402. package/dist/features/homepage/components/HomepageView.d.ts +1 -1
  403. package/dist/features/homepage/components/HowItWorksInfoView.d.ts +1 -1
  404. package/dist/features/homepage/components/HowItWorksSection.d.ts +1 -1
  405. package/dist/features/homepage/components/MarketplaceHomepageView.d.ts +1 -1
  406. package/dist/features/homepage/components/NewsletterBanner.d.ts +2 -1
  407. package/dist/features/homepage/components/NewsletterSection.d.ts +1 -1
  408. package/dist/features/homepage/components/PromoGrid.d.ts +1 -1
  409. package/dist/features/homepage/components/SectionCarousel.d.ts +1 -1
  410. package/dist/features/homepage/components/SecurityHighlightsSection.d.ts +1 -1
  411. package/dist/features/homepage/components/ShopByCategorySection.d.ts +1 -1
  412. package/dist/features/homepage/components/SiteFeaturesSection.d.ts +2 -1
  413. package/dist/features/homepage/components/SocialFeedSection.d.ts +1 -1
  414. package/dist/features/homepage/components/SocialPostCard.d.ts +1 -1
  415. package/dist/features/homepage/components/StatsCounterSection.d.ts +1 -1
  416. package/dist/features/homepage/components/TestimonialsCarousel.d.ts +1 -1
  417. package/dist/features/homepage/components/TrustBadges.d.ts +2 -1
  418. package/dist/features/homepage/components/TrustFeaturesSection.d.ts +1 -1
  419. package/dist/features/homepage/components/TrustIndicatorsSection.d.ts +2 -1
  420. package/dist/features/homepage/components/WelcomeSection.d.ts +2 -1
  421. package/dist/features/homepage/components/WhatsAppCommunitySection.d.ts +2 -1
  422. package/dist/features/layout/AppLayoutShell.d.ts +1 -1
  423. package/dist/features/layout/AutoBreadcrumbs.d.ts +1 -1
  424. package/dist/features/layout/BackToTop.d.ts +2 -2
  425. package/dist/features/layout/BottomActions.d.ts +1 -1
  426. package/dist/features/layout/BottomActionsContext.d.ts +1 -1
  427. package/dist/features/layout/BottomNavItem.d.ts +1 -1
  428. package/dist/features/layout/BottomNavLayout.d.ts +1 -1
  429. package/dist/features/layout/BottomNavbar.d.ts +1 -1
  430. package/dist/features/layout/BottomSheet.d.ts +1 -1
  431. package/dist/features/layout/Breadcrumbs.d.ts +2 -2
  432. package/dist/features/layout/DashboardNavContext.d.ts +1 -1
  433. package/dist/features/layout/FooterLayout.d.ts +1 -1
  434. package/dist/features/layout/LayoutClient.d.ts +1 -1
  435. package/dist/features/layout/LocaleSwitcher.d.ts +1 -1
  436. package/dist/features/layout/MainNavbar.d.ts +1 -1
  437. package/dist/features/layout/NavItem.d.ts +1 -1
  438. package/dist/features/layout/NavbarLayout.d.ts +1 -1
  439. package/dist/features/layout/NavbarWithSettings.d.ts +1 -1
  440. package/dist/features/layout/TitleBar.d.ts +1 -1
  441. package/dist/features/layout/TitleBarLayout.d.ts +1 -1
  442. package/dist/features/live/components/LiveItemFilters.d.ts +1 -1
  443. package/dist/features/live/components/LiveItemsIndexListing.d.ts +2 -1
  444. package/dist/features/live/components/LiveItemsListView.d.ts +1 -1
  445. package/dist/features/loyalty/components/CoinsDisplay.d.ts +3 -2
  446. package/dist/features/loyalty/schemas/index.d.ts +6 -6
  447. package/dist/features/media/AvatarUpload.d.ts +2 -1
  448. package/dist/features/media/MediaAudio.d.ts +1 -1
  449. package/dist/features/media/MediaAvatar.d.ts +1 -1
  450. package/dist/features/media/MediaImage.d.ts +1 -1
  451. package/dist/features/media/MediaLightbox.d.ts +2 -1
  452. package/dist/features/media/MediaPickerModal.d.ts +2 -1
  453. package/dist/features/media/MediaVideo.d.ts +1 -1
  454. package/dist/features/media/components/MediaSlider.d.ts +2 -1
  455. package/dist/features/media/modals/ImageCropModal.d.ts +8 -1
  456. package/dist/features/media/modals/ImageEditor.d.ts +8 -1
  457. package/dist/features/media/modals/VideoThumbnailSelector.d.ts +1 -1
  458. package/dist/features/media/modals/VideoTrimModal.d.ts +1 -1
  459. package/dist/features/media/upload/CameraCapture.d.ts +1 -1
  460. package/dist/features/media/upload/ImageUpload.d.ts +1 -1
  461. package/dist/features/media/upload/MediaUploadField.d.ts +1 -1
  462. package/dist/features/media/upload/MediaUploadList.d.ts +1 -1
  463. package/dist/features/orders/components/MarketplaceOrderCard.d.ts +1 -1
  464. package/dist/features/orders/components/OrderFilters.d.ts +1 -1
  465. package/dist/features/orders/components/OrderSiblingPayments.d.ts +10 -1
  466. package/dist/features/orders/components/OrdersList.d.ts +2 -2
  467. package/dist/features/orders/components/RefundHistoryTable.d.ts +2 -1
  468. package/dist/features/orders/components/RefundRequestView.d.ts +13 -1
  469. package/dist/features/orders/repository/orders.repository.d.ts +20 -2
  470. package/dist/features/orders/repository/orders.repository.js +34 -5
  471. package/dist/features/orders/schemas/firestore.d.ts +33 -7
  472. package/dist/features/orders/schemas/firestore.js +1 -1
  473. package/dist/features/orders/schemas/index.d.ts +176 -31
  474. package/dist/features/orders/schemas/index.js +20 -6
  475. package/dist/features/orders/types/index.d.ts +3 -3
  476. package/dist/features/payments/repository/payout.repository.js +2 -2
  477. package/dist/features/payments/schemas/firestore.d.ts +3 -3
  478. package/dist/features/payments/schemas/firestore.js +2 -2
  479. package/dist/features/payments/schemas/index.d.ts +5 -5
  480. package/dist/features/payments/schemas/index.js +2 -2
  481. package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +1 -1
  482. package/dist/features/pre-orders/components/PreOrderActionsClient.d.ts +2 -1
  483. package/dist/features/pre-orders/components/PreOrderBadge.d.ts +2 -2
  484. package/dist/features/pre-orders/components/PreOrderDetailPageView.d.ts +1 -1
  485. package/dist/features/pre-orders/components/PreOrderFilters.d.ts +1 -1
  486. package/dist/features/pre-orders/components/PreOrdersIndexListing.d.ts +2 -1
  487. package/dist/features/pre-orders/components/PreOrdersListView.d.ts +1 -1
  488. package/dist/features/pre-orders/components/PreorderCard.d.ts +2 -1
  489. package/dist/features/products/api/[id]/route.js +4 -1
  490. package/dist/features/products/api/route.js +4 -1
  491. package/dist/features/products/columns/productTableColumns.d.ts +2 -1
  492. package/dist/features/products/components/AuctionDetailView.d.ts +1 -1
  493. package/dist/features/products/components/AuctionsIndexListing.d.ts +2 -1
  494. package/dist/features/products/components/BidHistory.d.ts +1 -1
  495. package/dist/features/products/components/CompareOverlay.d.ts +1 -1
  496. package/dist/features/products/components/CompareOverlay.js +7 -9
  497. package/dist/features/products/components/CustomFieldsEditor.d.ts +2 -1
  498. package/dist/features/products/components/CustomSectionTabContent.d.ts +2 -1
  499. package/dist/features/products/components/CustomSectionsEditor.d.ts +2 -1
  500. package/dist/features/products/components/FeatureBadge.d.ts +2 -2
  501. package/dist/features/products/components/GroupSettingsPanel.d.ts +2 -1
  502. package/dist/features/products/components/InteractiveProductCard.d.ts +2 -1
  503. package/dist/features/products/components/MakeOfferButton.d.ts +2 -1
  504. package/dist/features/products/components/MakeOfferForm.d.ts +1 -1
  505. package/dist/features/products/components/MarketplaceBundleCard.d.ts +1 -1
  506. package/dist/features/products/components/MarketplacePrizeDrawCard.d.ts +1 -1
  507. package/dist/features/products/components/NonRefundableConsentModal.d.ts +14 -1
  508. package/dist/features/products/components/PlaceBidForm.d.ts +1 -1
  509. package/dist/features/products/components/PreOrderDetailView.d.ts +1 -1
  510. package/dist/features/products/components/PrizeDrawCollage.d.ts +2 -1
  511. package/dist/features/products/components/PrizeDrawDetailPageView.d.ts +1 -1
  512. package/dist/features/products/components/PrizeDrawEntryActions.d.ts +1 -1
  513. package/dist/features/products/components/PrizeDrawItemsEditor.d.ts +1 -1
  514. package/dist/features/products/components/PrizeDrawsIndexListing.d.ts +1 -1
  515. package/dist/features/products/components/PrizeDrawsListingView.d.ts +1 -1
  516. package/dist/features/products/components/PrizeDrawsSection.d.ts +1 -1
  517. package/dist/features/products/components/PrizeRevealModal.d.ts +1 -1
  518. package/dist/features/products/components/ProductCardMetadataSection.d.ts +2 -1
  519. package/dist/features/products/components/ProductDetailActions.d.ts +1 -1
  520. package/dist/features/products/components/ProductDetailPageView.d.ts +3 -1
  521. package/dist/features/products/components/ProductDetailPageView.js +2 -2
  522. package/dist/features/products/components/ProductDetailView.d.ts +1 -1
  523. package/dist/features/products/components/ProductFeatureBadges.d.ts +1 -1
  524. package/dist/features/products/components/ProductFeaturesContext.d.ts +1 -1
  525. package/dist/features/products/components/ProductFeaturesSelector.d.ts +2 -1
  526. package/dist/features/products/components/ProductFilters.d.ts +1 -1
  527. package/dist/features/products/components/ProductForm.d.ts +1 -1
  528. package/dist/features/products/components/ProductForm.js +18 -7
  529. package/dist/features/products/components/ProductGalleryClient.d.ts +2 -1
  530. package/dist/features/products/components/ProductGradingTab.d.ts +2 -1
  531. package/dist/features/products/components/ProductGrid.d.ts +2 -2
  532. package/dist/features/products/components/ProductGrid.js +7 -12
  533. package/dist/features/products/components/ProductInfo.d.ts +1 -1
  534. package/dist/features/products/components/ProductTabs.d.ts +1 -1
  535. package/dist/features/products/components/ProductTabsShell.d.ts +1 -1
  536. package/dist/features/products/components/ProductsIndexListing.d.ts +2 -1
  537. package/dist/features/products/components/ProductsIndexPageView.d.ts +2 -1
  538. package/dist/features/products/components/ProductsView.d.ts +1 -1
  539. package/dist/features/products/components/RelatedProducts.d.ts +1 -1
  540. package/dist/features/products/components/RelatedProductsCarousel.d.ts +2 -1
  541. package/dist/features/products/components/ShareButton.d.ts +1 -1
  542. package/dist/features/products/components/ShowGroupSection.d.ts +2 -1
  543. package/dist/features/products/components/ShowGroupSection.js +3 -5
  544. package/dist/features/products/components/SublistingCarouselSection.d.ts +2 -1
  545. package/dist/features/products/components/SublistingCarouselSection.js +3 -6
  546. package/dist/features/products/components/SublistingCategorySelect.d.ts +2 -1
  547. package/dist/features/products/constants/listing-tabs.d.ts +32 -0
  548. package/dist/features/products/constants/listing-tabs.js +8 -0
  549. package/dist/features/products/index.d.ts +1 -1
  550. package/dist/features/products/index.js +3 -1
  551. package/dist/features/products/schemas/firestore.d.ts +20 -1
  552. package/dist/features/products/schemas/firestore.js +2 -0
  553. package/dist/features/products/schemas/index.d.ts +48 -0
  554. package/dist/features/products/schemas/index.js +9 -0
  555. package/dist/features/products/schemas/product-features.d.ts +1 -1
  556. package/dist/features/products/types/index.d.ts +5 -3
  557. package/dist/features/products/utils/listing-type.d.ts +6 -0
  558. package/dist/features/products/utils/listing-type.js +3 -0
  559. package/dist/features/promotions/components/CouponCard.d.ts +1 -1
  560. package/dist/features/promotions/components/CouponsIndexListing.d.ts +2 -1
  561. package/dist/features/promotions/components/PromotionsView.d.ts +3 -3
  562. package/dist/features/reviews/api/[id]/route.js +5 -4
  563. package/dist/features/reviews/components/ReviewDetailPageView.d.ts +2 -1
  564. package/dist/features/reviews/components/ReviewDetailShell.d.ts +2 -1
  565. package/dist/features/reviews/components/ReviewFilters.d.ts +1 -1
  566. package/dist/features/reviews/components/ReviewModal.d.ts +1 -1
  567. package/dist/features/reviews/components/ReviewSummary.d.ts +2 -1
  568. package/dist/features/reviews/components/ReviewsIndexListing.d.ts +2 -1
  569. package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +2 -1
  570. package/dist/features/reviews/components/ReviewsList.d.ts +3 -2
  571. package/dist/features/scams/components/ScamAwarenessModal.d.ts +2 -1
  572. package/dist/features/scams/components/ScamProfileView.d.ts +2 -1
  573. package/dist/features/scams/components/ScamRegistryView.d.ts +2 -1
  574. package/dist/features/search/components/Search.d.ts +2 -1
  575. package/dist/features/search/components/SearchFiltersRow.d.ts +1 -1
  576. package/dist/features/search/components/SearchResultsSection.d.ts +1 -1
  577. package/dist/features/search/components/SearchView.d.ts +1 -1
  578. package/dist/features/seller/actions/seller-actions.d.ts +29 -14
  579. package/dist/features/seller/actions/seller-actions.js +101 -27
  580. package/dist/features/seller/components/BarcodeField.d.ts +2 -1
  581. package/dist/features/seller/components/BrandInlineSelect.d.ts +2 -1
  582. package/dist/features/seller/components/CategoryInlineSelect.d.ts +2 -1
  583. package/dist/features/seller/components/CouponInlineSelect.d.ts +2 -1
  584. package/dist/features/seller/components/FulfillmentView.d.ts +2 -1
  585. package/dist/features/seller/components/GroupInlineSelect.d.ts +2 -1
  586. package/dist/features/seller/components/PhysicalLocationModal.d.ts +2 -1
  587. package/dist/features/seller/components/PrintCenterView.d.ts +2 -1
  588. package/dist/features/seller/components/ProductInlineSelect.d.ts +2 -1
  589. package/dist/features/seller/components/QuickProductForm.d.ts +2 -1
  590. package/dist/features/seller/components/SellerAddressesView.d.ts +2 -1
  591. package/dist/features/seller/components/SellerAnalyticsAlertsView.d.ts +2 -1
  592. package/dist/features/seller/components/SellerAnalyticsView.d.ts +1 -1
  593. package/dist/features/seller/components/SellerArtView.d.ts +8 -0
  594. package/dist/features/seller/components/SellerArtView.js +114 -0
  595. package/dist/features/seller/components/SellerAuctionsView.d.ts +1 -1
  596. package/dist/features/seller/components/SellerBidsView.d.ts +2 -1
  597. package/dist/features/seller/components/SellerBundlesView.d.ts +2 -1
  598. package/dist/features/seller/components/SellerClassifiedView.d.ts +2 -1
  599. package/dist/features/seller/components/SellerCouponEditorView.d.ts +1 -1
  600. package/dist/features/seller/components/SellerCouponsView.d.ts +2 -1
  601. package/dist/features/seller/components/SellerCreateProductView.d.ts +1 -1
  602. package/dist/features/seller/components/SellerDashboardView.d.ts +1 -1
  603. package/dist/features/seller/components/SellerDigitalCodesView.d.ts +2 -1
  604. package/dist/features/seller/components/SellerEditProductView.d.ts +1 -1
  605. package/dist/features/seller/components/SellerFeaturesView.d.ts +2 -1
  606. package/dist/features/seller/components/SellerGoogleReviewsView.d.ts +2 -1
  607. package/dist/features/seller/components/SellerGroupedListingsView.d.ts +2 -1
  608. package/dist/features/seller/components/SellerGuideView.d.ts +1 -1
  609. package/dist/features/seller/components/SellerLiveView.d.ts +2 -1
  610. package/dist/features/seller/components/SellerOffersPanel.d.ts +2 -1
  611. package/dist/features/seller/components/SellerOffersView.d.ts +2 -1
  612. package/dist/features/seller/components/SellerOrdersView.d.ts +2 -1
  613. package/dist/features/seller/components/SellerOrdersView.js +38 -1
  614. package/dist/features/seller/components/SellerPayoutHistoryTable.d.ts +1 -1
  615. package/dist/features/seller/components/SellerPayoutMethodsView.d.ts +2 -1
  616. package/dist/features/seller/components/SellerPayoutRequestView.d.ts +1 -1
  617. package/dist/features/seller/components/SellerPayoutSettingsView.d.ts +1 -1
  618. package/dist/features/seller/components/SellerPayoutSettingsView.js +4 -1
  619. package/dist/features/seller/components/SellerPayoutStats.d.ts +1 -1
  620. package/dist/features/seller/components/SellerPayoutsView.d.ts +2 -1
  621. package/dist/features/seller/components/SellerPreOrdersView.d.ts +2 -1
  622. package/dist/features/seller/components/SellerPrizeDrawsView.d.ts +2 -1
  623. package/dist/features/seller/components/SellerProductShell.d.ts +6 -2
  624. package/dist/features/seller/components/SellerProductShell.js +69 -59
  625. package/dist/features/seller/components/SellerProductsCards.d.ts +2 -1
  626. package/dist/features/seller/components/SellerProductsFilterDrawer.d.ts +2 -1
  627. package/dist/features/seller/components/SellerProductsView.d.ts +2 -1
  628. package/dist/features/seller/components/SellerReviewsView.d.ts +1 -1
  629. package/dist/features/seller/components/SellerShippingConfigsView.d.ts +2 -1
  630. package/dist/features/seller/components/SellerShippingView.d.ts +1 -1
  631. package/dist/features/seller/components/SellerShippingView.js +6 -25
  632. package/dist/features/seller/components/SellerSidebar.d.ts +1 -1
  633. package/dist/features/seller/components/SellerStickersView.d.ts +8 -0
  634. package/dist/features/seller/components/SellerStickersView.js +114 -0
  635. package/dist/features/seller/components/SellerStoreCategoriesView.d.ts +2 -1
  636. package/dist/features/seller/components/SellerStoreSetupView.d.ts +1 -1
  637. package/dist/features/seller/components/SellerStoreView.d.ts +1 -1
  638. package/dist/features/seller/components/SellerStorefrontView.d.ts +1 -1
  639. package/dist/features/seller/components/SellerTemplatesView.d.ts +2 -1
  640. package/dist/features/seller/components/SellersListView.d.ts +2 -1
  641. package/dist/features/seller/components/SublistingInlineSelect.d.ts +2 -1
  642. package/dist/features/seller/components/analytics/SellerAnalyticsStats.d.ts +2 -1
  643. package/dist/features/seller/components/analytics/SellerRevenueChart.d.ts +2 -1
  644. package/dist/features/seller/components/analytics/SellerTopProducts.d.ts +1 -1
  645. package/dist/features/seller/components/index.d.ts +4 -0
  646. package/dist/features/seller/components/index.js +2 -0
  647. package/dist/features/seller/messages/en.json +1 -1
  648. package/dist/features/seller/schemas/index.d.ts +7 -7
  649. package/dist/features/seller/schemas/index.js +1 -1
  650. package/dist/features/seller/types/index.d.ts +1 -1
  651. package/dist/features/shell/FormShell.d.ts +1 -1
  652. package/dist/features/shell/QuickFormDrawer.d.ts +1 -1
  653. package/dist/features/shell/StepForm.d.ts +3 -3
  654. package/dist/features/shell/field-groups/ImageFieldGroup.d.ts +2 -2
  655. package/dist/features/shell/field-groups/SeoFieldGroup.d.ts +2 -2
  656. package/dist/features/shell/field-groups/StatusFieldGroup.d.ts +2 -2
  657. package/dist/features/shell/field-groups/TitleDescriptionGroup.d.ts +2 -2
  658. package/dist/features/site-settings/components/ActionPermissionsManager.d.ts +2 -1
  659. package/dist/features/site-settings/components/NavPermissionsManager.d.ts +2 -1
  660. package/dist/features/site-settings/components/ThemeManagerView.d.ts +15 -1
  661. package/dist/features/stores/components/InteractiveStoreCard.d.ts +1 -1
  662. package/dist/features/stores/components/StoreAboutView.d.ts +1 -1
  663. package/dist/features/stores/components/StoreAddressSelectorCreate.d.ts +1 -1
  664. package/dist/features/stores/components/StoreAuctionsListing.d.ts +2 -1
  665. package/dist/features/stores/components/StoreAuctionsPageView.d.ts +2 -1
  666. package/dist/features/stores/components/StoreAuctionsView.d.ts +1 -1
  667. package/dist/features/stores/components/StoreBundlesPageView.d.ts +2 -1
  668. package/dist/features/stores/components/StoreCapabilitiesGuideView.d.ts +2 -1
  669. package/dist/features/stores/components/StoreClassifiedsListing.d.ts +2 -1
  670. package/dist/features/stores/components/StoreClassifiedsPageView.d.ts +2 -1
  671. package/dist/features/stores/components/StoreDetailLayoutView.d.ts +2 -1
  672. package/dist/features/stores/components/StoreDetailLayoutView.js +18 -2
  673. package/dist/features/stores/components/StoreDigitalCodesListing.d.ts +2 -1
  674. package/dist/features/stores/components/StoreDigitalCodesPageView.d.ts +2 -1
  675. package/dist/features/stores/components/StoreFilters.d.ts +1 -1
  676. package/dist/features/stores/components/StoreFinanceGuideView.d.ts +2 -1
  677. package/dist/features/stores/components/StoreGuideHubView.d.ts +2 -1
  678. package/dist/features/stores/components/StoreHeader.d.ts +1 -1
  679. package/dist/features/stores/components/StoreListingsGuideView.d.ts +2 -1
  680. package/dist/features/stores/components/StoreLiveItemsListing.d.ts +2 -1
  681. package/dist/features/stores/components/StoreLiveItemsPageView.d.ts +2 -1
  682. package/dist/features/stores/components/StoreNavTabs.d.ts +1 -1
  683. package/dist/features/stores/components/StoreOrdersGuideView.d.ts +2 -1
  684. package/dist/features/stores/components/StorePreOrdersListing.d.ts +2 -1
  685. package/dist/features/stores/components/StorePreOrdersPageView.d.ts +2 -1
  686. package/dist/features/stores/components/StorePrizeDrawsPageView.d.ts +2 -1
  687. package/dist/features/stores/components/StoreProductsListing.d.ts +2 -1
  688. package/dist/features/stores/components/StoreProductsPageView.d.ts +2 -1
  689. package/dist/features/stores/components/StoreProductsView.d.ts +1 -1
  690. package/dist/features/stores/components/StoreReviewsListing.d.ts +2 -1
  691. package/dist/features/stores/components/StoreReviewsPageView.d.ts +2 -1
  692. package/dist/features/stores/components/StoreReviewsView.d.ts +1 -1
  693. package/dist/features/stores/components/StoreScopedSearch.d.ts +2 -1
  694. package/dist/features/stores/components/StoreSettingsGuideView.d.ts +2 -1
  695. package/dist/features/stores/components/StoresIndexListing.d.ts +2 -1
  696. package/dist/features/stores/components/StoresIndexPageView.d.ts +2 -1
  697. package/dist/features/stores/schemas/firestore.d.ts +7 -1
  698. package/dist/features/stores/schemas/index.d.ts +19 -16
  699. package/dist/features/stores/schemas/index.js +1 -1
  700. package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.d.ts +2 -1
  701. package/dist/features/whatsapp-bot/components/WhatsAppChatButton.d.ts +2 -1
  702. package/dist/features/wishlist/components/WishlistPage.d.ts +2 -2
  703. package/dist/features/wishlist/components/WishlistToggleButton.d.ts +1 -1
  704. package/dist/features/wishlist/components/WishlistView.d.ts +1 -1
  705. package/dist/index.d.ts +21 -36
  706. package/dist/index.js +27 -39
  707. package/dist/next/ErrorBoundary.d.ts +1 -1
  708. package/dist/next/components/ErrorView.d.ts +1 -1
  709. package/dist/next/components/GlobalError.d.ts +1 -1
  710. package/dist/next/components/NotFoundView.d.ts +1 -1
  711. package/dist/next/components/UnauthorizedView.d.ts +1 -1
  712. package/dist/next/routing/route-map.d.ts +22 -0
  713. package/dist/next/routing/route-map.js +10 -0
  714. package/dist/providers/payment-manual/index.d.ts +40 -0
  715. package/dist/providers/payment-manual/index.js +91 -0
  716. package/dist/providers/payment-razorpay/index.d.ts +4 -2
  717. package/dist/providers/payment-razorpay/index.js +4 -1
  718. package/dist/providers/shipping-manual/index.d.ts +22 -0
  719. package/dist/providers/shipping-manual/index.js +47 -0
  720. package/dist/providers.d.ts +2 -2
  721. package/dist/providers.js +5 -3
  722. package/dist/react/ErrorBoundary.d.ts +1 -1
  723. package/dist/react/contexts/SessionContext.d.ts +1 -1
  724. package/dist/schemas/registry.d.ts +129 -70
  725. package/dist/schemas/registry.js +0 -4
  726. package/dist/security/pii-encrypt.js +0 -7
  727. package/dist/security/pii-redact.js +0 -1
  728. package/dist/seed/conversations-seed-data.js +2 -2
  729. package/dist/seed/faq-seed-data.js +7 -7
  730. package/dist/seed/grouped-listings-seed-data.d.ts +2 -0
  731. package/dist/seed/index.d.ts +2 -0
  732. package/dist/seed/index.js +2 -0
  733. package/dist/seed/manifest.js +20 -16
  734. package/dist/seed/payouts-seed-data.js +5 -5
  735. package/dist/seed/products-art-seed-data.d.ts +11 -0
  736. package/dist/seed/products-art-seed-data.js +125 -0
  737. package/dist/seed/products-preorders-seed-data.d.ts +2 -0
  738. package/dist/seed/products-stickers-seed-data.d.ts +11 -0
  739. package/dist/seed/products-stickers-seed-data.js +125 -0
  740. package/dist/seed/site-settings-seed-data.js +13 -4
  741. package/dist/seed/stores-seed-data.js +11 -11
  742. package/dist/server.d.ts +7 -15
  743. package/dist/server.js +17 -42
  744. package/dist/ui/DataTable.d.ts +1 -1
  745. package/dist/ui/components/Accordion.d.ts +2 -2
  746. package/dist/ui/components/ActiveFilterChips.d.ts +2 -1
  747. package/dist/ui/components/Alert.d.ts +1 -1
  748. package/dist/ui/components/Anchor.d.ts +1 -1
  749. package/dist/ui/components/Avatar.d.ts +2 -2
  750. package/dist/ui/components/AvatarDisplay.d.ts +2 -1
  751. package/dist/ui/components/BackgroundRenderer.d.ts +1 -1
  752. package/dist/ui/components/Badge.d.ts +1 -1
  753. package/dist/ui/components/BaseListingCard.d.ts +5 -5
  754. package/dist/ui/components/Breadcrumb.d.ts +1 -1
  755. package/dist/ui/components/BulkActionBar.d.ts +1 -1
  756. package/dist/ui/components/Button.d.ts +1 -1
  757. package/dist/ui/components/Card.d.ts +4 -4
  758. package/dist/ui/components/Checkbox.d.ts +1 -1
  759. package/dist/ui/components/ConfirmDeleteModal.d.ts +1 -1
  760. package/dist/ui/components/CountdownDisplay.d.ts +1 -1
  761. package/dist/ui/components/DateInput.d.ts +1 -1
  762. package/dist/ui/components/DescriptionField.d.ts +1 -1
  763. package/dist/ui/components/DetailPageGallery.d.ts +2 -2
  764. package/dist/ui/components/DetailPageHero.d.ts +2 -2
  765. package/dist/ui/components/DetailPageTabs.d.ts +2 -2
  766. package/dist/ui/components/DetailViewShell.d.ts +2 -2
  767. package/dist/ui/components/Details.d.ts +2 -2
  768. package/dist/ui/components/Dialog.d.ts +1 -1
  769. package/dist/ui/components/Divider.d.ts +1 -1
  770. package/dist/ui/components/Dropdown.d.ts +5 -5
  771. package/dist/ui/components/DynamicBgDiv.d.ts +1 -1
  772. package/dist/ui/components/EmptyState.d.ts +1 -1
  773. package/dist/ui/components/FallbackShell.d.ts +1 -1
  774. package/dist/ui/components/Fieldset.d.ts +2 -2
  775. package/dist/ui/components/FilterChipGroup.d.ts +2 -1
  776. package/dist/ui/components/FilterDrawer.d.ts +1 -1
  777. package/dist/ui/components/FlowDiagram.d.ts +1 -1
  778. package/dist/ui/components/Form.d.ts +4 -4
  779. package/dist/ui/components/FormActionBar.d.ts +2 -1
  780. package/dist/ui/components/FormField.d.ts +2 -1
  781. package/dist/ui/components/FormGrid.d.ts +3 -2
  782. package/dist/ui/components/HorizontalRule.d.ts +1 -1
  783. package/dist/ui/components/HorizontalScroller.d.ts +1 -1
  784. package/dist/ui/components/HotspotMarker.d.ts +1 -1
  785. package/dist/ui/components/IconBox.d.ts +1 -1
  786. package/dist/ui/components/IconButton.d.ts +1 -1
  787. package/dist/ui/components/Iframe.d.ts +1 -1
  788. package/dist/ui/components/ImageGallery.d.ts +2 -1
  789. package/dist/ui/components/ItemRow.d.ts +1 -1
  790. package/dist/ui/components/Kbd.d.ts +1 -1
  791. package/dist/ui/components/Layout.d.ts +4 -4
  792. package/dist/ui/components/ListingFilterDrawer.d.ts +1 -1
  793. package/dist/ui/components/ListingLayout.d.ts +1 -1
  794. package/dist/ui/components/ListingToolbar.d.ts +1 -1
  795. package/dist/ui/components/LoginRequiredModal.d.ts +2 -1
  796. package/dist/ui/components/Menu.d.ts +5 -5
  797. package/dist/ui/components/Modal.d.ts +1 -1
  798. package/dist/ui/components/Motion.d.ts +14 -14
  799. package/dist/ui/components/NavbarChevron.d.ts +1 -1
  800. package/dist/ui/components/NavigationLoader.d.ts +1 -1
  801. package/dist/ui/components/OtpInput.d.ts +1 -1
  802. package/dist/ui/components/PageLoader.d.ts +1 -1
  803. package/dist/ui/components/PaginatedSelect.d.ts +2 -2
  804. package/dist/ui/components/Pagination.d.ts +2 -1
  805. package/dist/ui/components/PasswordStrengthIndicator.d.ts +2 -1
  806. package/dist/ui/components/PriceDisplay.d.ts +1 -1
  807. package/dist/ui/components/Progress.d.ts +3 -2
  808. package/dist/ui/components/ProgressBarFill.d.ts +1 -1
  809. package/dist/ui/components/Quote.d.ts +1 -1
  810. package/dist/ui/components/Radio.d.ts +2 -2
  811. package/dist/ui/components/RatingDisplay.d.ts +1 -1
  812. package/dist/ui/components/Responsive.d.ts +2 -2
  813. package/dist/ui/components/ResponsiveView.d.ts +1 -1
  814. package/dist/ui/components/RichTextEditor.d.ts +2 -1
  815. package/dist/ui/components/RoleBadge.d.ts +2 -1
  816. package/dist/ui/components/RowActionMenu.d.ts +1 -1
  817. package/dist/ui/components/Scrim.d.ts +1 -1
  818. package/dist/ui/components/Select.d.ts +1 -1
  819. package/dist/ui/components/Semantic.d.ts +21 -21
  820. package/dist/ui/components/SettingsSection.d.ts +3 -2
  821. package/dist/ui/components/SideDrawer.d.ts +1 -1
  822. package/dist/ui/components/SideModal.d.ts +1 -1
  823. package/dist/ui/components/SiteLogo.d.ts +1 -1
  824. package/dist/ui/components/Skeleton.d.ts +2 -1
  825. package/dist/ui/components/SkipToMain.d.ts +2 -1
  826. package/dist/ui/components/Slider.d.ts +1 -1
  827. package/dist/ui/components/SlottedListingView.d.ts +2 -2
  828. package/dist/ui/components/SortDropdown.d.ts +1 -1
  829. package/dist/ui/components/Spinner.d.ts +1 -1
  830. package/dist/ui/components/StackedViewShell.d.ts +2 -2
  831. package/dist/ui/components/StarRating.d.ts +1 -1
  832. package/dist/ui/components/StatsGrid.d.ts +1 -1
  833. package/dist/ui/components/StatusBadge.d.ts +1 -1
  834. package/dist/ui/components/StepperNav.d.ts +1 -1
  835. package/dist/ui/components/StickyToolbar.d.ts +1 -1
  836. package/dist/ui/components/SummaryCard.d.ts +1 -1
  837. package/dist/ui/components/TabStrip.d.ts +2 -1
  838. package/dist/ui/components/TablePagination.d.ts +2 -1
  839. package/dist/ui/components/Tabs.d.ts +4 -4
  840. package/dist/ui/components/TagInput.d.ts +2 -1
  841. package/dist/ui/components/TextLink.d.ts +1 -1
  842. package/dist/ui/components/Toast.d.ts +1 -1
  843. package/dist/ui/components/Toggle.d.ts +1 -1
  844. package/dist/ui/components/Tooltip.d.ts +1 -1
  845. package/dist/ui/components/Typography.d.ts +4 -4
  846. package/dist/ui/components/UnsavedChangesModal.d.ts +1 -1
  847. package/dist/ui/components/VacationBanner.d.ts +2 -1
  848. package/dist/ui/components/ViewToggle.d.ts +1 -1
  849. package/dist/ui/forms/ColorPickerField.d.ts +1 -1
  850. package/dist/ui/forms/FieldCheckbox.d.ts +2 -1
  851. package/dist/ui/forms/FieldInput.d.ts +1 -1
  852. package/dist/ui/forms/FieldSelect.d.ts +2 -1
  853. package/dist/ui/forms/FieldTextarea.d.ts +1 -1
  854. package/dist/ui/forms/FormShell.d.ts +2 -2
  855. package/dist/ui/rich-text/RichText.d.ts +1 -1
  856. package/dist/ui/rich-text/RichTextRenderer.d.ts +2 -1
  857. package/package.json +1 -1
@@ -1,3 +1,12 @@
1
+ /**
2
+ * OrderSiblingPayments — renders links to other orders that were created
3
+ * in the same checkout transaction (same paymentBatchId). Displayed on the
4
+ * order-detail page below the main order summary.
5
+ *
6
+ * Purely presentational. Parent fetches the sibling orders server-side and
7
+ * passes them as props.
8
+ */
9
+ import React from "react";
1
10
  import type { OrderDocument } from "../schemas";
2
11
  export interface OrderSiblingPaymentsProps {
3
12
  siblings: OrderDocument[];
@@ -5,4 +14,4 @@ export interface OrderSiblingPaymentsProps {
5
14
  currentOrderId: string;
6
15
  className?: string;
7
16
  }
8
- export declare function OrderSiblingPayments({ siblings, currentOrderId, className, }: OrderSiblingPaymentsProps): import("react/jsx-runtime").JSX.Element | null;
17
+ export declare function OrderSiblingPayments({ siblings, currentOrderId, className, }: OrderSiblingPaymentsProps): React.JSX.Element | null;
@@ -4,7 +4,7 @@ interface OrderCardProps {
4
4
  onClick?: (order: Order) => void;
5
5
  labels?: Record<string, string>;
6
6
  }
7
- export declare function OrderCard({ order, onClick, labels }: OrderCardProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function OrderCard({ order, onClick, labels }: OrderCardProps): import("react").JSX.Element;
8
8
  interface OrdersListProps {
9
9
  orders: Order[];
10
10
  isLoading?: boolean;
@@ -14,5 +14,5 @@ interface OrdersListProps {
14
14
  onPageChange?: (page: number) => void;
15
15
  emptyLabel?: string;
16
16
  }
17
- export declare function OrdersList({ orders, isLoading, onOrderClick, totalPages, currentPage, onPageChange, emptyLabel, }: OrdersListProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function OrdersList({ orders, isLoading, onOrderClick, totalPages, currentPage, onPageChange, emptyLabel, }: OrdersListProps): import("react").JSX.Element;
18
18
  export {};
@@ -4,9 +4,10 @@
4
4
  * Used on both buyer order-detail and seller/admin order-detail pages.
5
5
  * Non-contestable banner is shown when order.contestable === false.
6
6
  */
7
+ import React from "react";
7
8
  import type { OrderDocument } from "../schemas";
8
9
  export interface RefundHistoryTableProps {
9
10
  order: Pick<OrderDocument, "refunds" | "contestable" | "totalPrice" | "currency">;
10
11
  className?: string;
11
12
  }
12
- export declare function RefundHistoryTable({ order, className }: RefundHistoryTableProps): import("react/jsx-runtime").JSX.Element | null;
13
+ export declare function RefundHistoryTable({ order, className }: RefundHistoryTableProps): React.JSX.Element | null;
@@ -1,3 +1,15 @@
1
+ /**
2
+ * RefundRequestView — buyer-facing refund submission form.
3
+ *
4
+ * Shows 3 acknowledgment checkboxes (via the appkit Checkbox primitive) that
5
+ * the buyer must tick before the submit button becomes active. On submit the
6
+ * parent's `onSubmitRequest` is called with the reason string; the parent
7
+ * (page or modal) is responsible for calling the API.
8
+ *
9
+ * This component is presentational: it has no server-action imports and
10
+ * does not talk to the API directly.
11
+ */
12
+ import React from "react";
1
13
  import type { OrderDocument } from "../schemas";
2
14
  export interface RefundRequestViewProps {
3
15
  order: Pick<OrderDocument, "id" | "totalPrice" | "currency" | "isNonRefundable" | "refunds" | "contestable">;
@@ -5,4 +17,4 @@ export interface RefundRequestViewProps {
5
17
  isLoading?: boolean;
6
18
  className?: string;
7
19
  }
8
- export declare function RefundRequestView({ order, onSubmitRequest, isLoading, className, }: RefundRequestViewProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function RefundRequestView({ order, onSubmitRequest, isLoading, className, }: RefundRequestViewProps): React.JSX.Element;
@@ -181,9 +181,14 @@ declare class OrderRepository extends BaseRepository<OrderDocument> {
181
181
  data: OrderDocument;
182
182
  }>>;
183
183
  /**
184
- * Cloud Functions: find shiprocket-shipped delivered orders eligible for payout.
184
+ * Cloud Functions: find delivered orders eligible for the weekly payout sweep.
185
+ *
186
+ * EMI orders that still have unpaid installments are excluded — the seller
187
+ * is only eligible once the buyer has fully paid off the order, not merely
188
+ * once it's delivered (a seller-enabled `allowShipBeforeEmiComplete` item
189
+ * can be delivered long before EMI collection finishes).
185
190
  */
186
- getEligibleShiprocket(): Promise<Array<{
191
+ getEligibleForPayoutSweep(): Promise<Array<{
187
192
  id: string;
188
193
  ref: DocumentReference;
189
194
  data: OrderDocument;
@@ -192,12 +197,25 @@ declare class OrderRepository extends BaseRepository<OrderDocument> {
192
197
  * Cloud Functions: find auto-payout eligible delivered orders older than windowDays business days.
193
198
  * @param windowDays - number of business days since delivery
194
199
  * @param cutoff - pre-computed business-day cutoff date (computed by caller)
200
+ *
201
+ * See {@link getEligibleForPayoutSweep} for the EMI-incomplete exclusion rationale.
195
202
  */
196
203
  getEligibleAutomatic(cutoff: Date): Promise<Array<{
197
204
  id: string;
198
205
  ref: DocumentReference;
199
206
  data: OrderDocument;
200
207
  }>>;
208
+ /**
209
+ * Cloud Functions: EMI reminder sweep — orders on an active (not yet fully
210
+ * paid) EMI plan. Per-installment due-date filtering happens in the job
211
+ * itself since `emiInstallments` is an array field Firestore can't range-
212
+ * query on.
213
+ */
214
+ getActiveEmiOrders(): Promise<Array<{
215
+ id: string;
216
+ ref: DocumentReference;
217
+ data: OrderDocument;
218
+ }>>;
201
219
  /**
202
220
  * Cloud Functions: stage a payout-requested update into a caller-owned WriteBatch.
203
221
  */
@@ -268,26 +268,34 @@ class OrderRepository extends BaseRepository {
268
268
  }));
269
269
  }
270
270
  /**
271
- * Cloud Functions: find shiprocket-shipped delivered orders eligible for payout.
271
+ * Cloud Functions: find delivered orders eligible for the weekly payout sweep.
272
+ *
273
+ * EMI orders that still have unpaid installments are excluded — the seller
274
+ * is only eligible once the buyer has fully paid off the order, not merely
275
+ * once it's delivered (a seller-enabled `allowShipBeforeEmiComplete` item
276
+ * can be delivered long before EMI collection finishes).
272
277
  */
273
- async getEligibleShiprocket() {
278
+ async getEligibleForPayoutSweep() {
274
279
  const snap = await this.db
275
280
  .collection(this.collection)
276
281
  .where(ORDER_FIELDS.PAYOUT_STATUS, "==", "eligible")
277
- .where(ORDER_FIELDS.SHIPPING_METHOD, "==", "shiprocket")
278
282
  .where(ORDER_FIELDS.STATUS, "==", OrderStatusValues.DELIVERED)
279
283
  .limit(500)
280
284
  .get();
281
- return snap.docs.map((d) => ({
285
+ return snap.docs
286
+ .map((d) => ({
282
287
  id: d.id,
283
288
  ref: d.ref,
284
289
  data: this.decryptOrder({ id: d.id, ...d.data() }),
285
- }));
290
+ }))
291
+ .filter((o) => !o.data.emiEnabled || o.data.emiComplete);
286
292
  }
287
293
  /**
288
294
  * Cloud Functions: find auto-payout eligible delivered orders older than windowDays business days.
289
295
  * @param windowDays - number of business days since delivery
290
296
  * @param cutoff - pre-computed business-day cutoff date (computed by caller)
297
+ *
298
+ * See {@link getEligibleForPayoutSweep} for the EMI-incomplete exclusion rationale.
291
299
  */
292
300
  async getEligibleAutomatic(cutoff) {
293
301
  const snap = await this.db
@@ -297,6 +305,27 @@ class OrderRepository extends BaseRepository {
297
305
  .where(ORDER_FIELDS.UPDATED_AT, "<=", cutoff)
298
306
  .limit(500)
299
307
  .get();
308
+ return snap.docs
309
+ .map((d) => ({
310
+ id: d.id,
311
+ ref: d.ref,
312
+ data: this.decryptOrder({ id: d.id, ...d.data() }),
313
+ }))
314
+ .filter((o) => !o.data.emiEnabled || o.data.emiComplete);
315
+ }
316
+ /**
317
+ * Cloud Functions: EMI reminder sweep — orders on an active (not yet fully
318
+ * paid) EMI plan. Per-installment due-date filtering happens in the job
319
+ * itself since `emiInstallments` is an array field Firestore can't range-
320
+ * query on.
321
+ */
322
+ async getActiveEmiOrders() {
323
+ const snap = await this.db
324
+ .collection(this.collection)
325
+ .where("emiEnabled", "==", true)
326
+ .where("emiComplete", "==", false)
327
+ .limit(500)
328
+ .get();
300
329
  return snap.docs.map((d) => ({
301
330
  id: d.id,
302
331
  ref: d.ref,
@@ -5,14 +5,14 @@ import type { OrderStatus, PaymentStatus } from "../types";
5
5
  import type { OrderType } from "../utils/order-splitter";
6
6
  import type { BaseDocument } from "../../../_internal/shared/types/base-document";
7
7
  import type { ListingType } from "../../products/types";
8
- export type ShippingMethod = "custom" | "shiprocket";
8
+ /** Manual shipping is the only supported method — sellers enter carrier + tracking directly, no carrier API integration. */
9
+ export type ShippingMethod = "custom";
9
10
  export type RefundType = "full" | "partial";
10
11
  export type OrderPayoutStatus = "eligible" | "requested" | "paid";
11
12
  export type RefundStatus = "pending" | "processing" | "completed" | "rejected";
12
13
  /** Runtime-accessible shipping method values â€" use instead of bare string literals. */
13
14
  export declare const ShippingMethodValues: {
14
15
  readonly CUSTOM: "custom";
15
- readonly SHIPROCKET: "shiprocket";
16
16
  };
17
17
  /** Runtime-accessible order status values â€" use instead of bare string literals. */
18
18
  export declare const OrderStatusValues: {
@@ -43,7 +43,24 @@ export declare const PaymentMethodValues: {
43
43
  readonly UPI_MANUAL: "upi_manual";
44
44
  readonly RAZORPAY: "razorpay";
45
45
  readonly ADMIN_BYPASS: "admin_bypass";
46
+ readonly EMI: "emi";
46
47
  };
48
+ export type EmiInstallmentStatus = "pending" | "paid" | "overdue";
49
+ export interface EmiInstallment {
50
+ /** 1-based installment number. */
51
+ index: number;
52
+ dueDate: Date;
53
+ /** Installment amount in paise (principal share + surcharge share for this installment). */
54
+ amount: number;
55
+ status: EmiInstallmentStatus;
56
+ paidAt?: Date;
57
+ /** Buyer-uploaded UTR/reference number for this installment's manual payment. */
58
+ transactionId?: string;
59
+ /** Signed-URL media slug for the buyer's payment proof for this installment. */
60
+ proofUrl?: string;
61
+ /** Set once the reminder sweep has notified the buyer for this installment, so it isn't re-sent on every sweep run. */
62
+ reminderSentAt?: Date;
63
+ }
47
64
  /** Runtime-accessible refund status values â€" use instead of bare string literals. */
48
65
  export declare const RefundStatusValues: {
49
66
  readonly PENDING: "pending";
@@ -141,15 +158,24 @@ export interface OrderDocument extends BaseDocument {
141
158
  platformFee?: number;
142
159
  depositAmount?: number;
143
160
  codRemainingAmount?: number;
161
+ /** COD handling fee charged to the buyer: max(codHandlingFeeMinInPaise, subtotal × codHandlingFeePercent / 100). Only set when paymentMethod === "cod". */
162
+ codHandlingFee?: number;
163
+ emiEnabled?: boolean;
164
+ /** Number of monthly installments the buyer chose (2–6). */
165
+ emiTenureMonths?: number;
166
+ /** Down payment collected at checkout, in paise (emiTokenPercent × seller subtotal). */
167
+ emiTokenAmount?: number;
168
+ /** Extra cost of choosing EMI over full payment, in paise — split between platform and seller. */
169
+ emiSurchargeAmount?: number;
170
+ emiInstallments?: EmiInstallment[];
171
+ /** Sum of unpaid installment amounts, in paise. 0 once all installments are paid. */
172
+ emiRemainingBalance?: number;
173
+ /** True once every installment's status is "paid". Gates shipment unless the product's `allowShipBeforeEmiComplete` flag is set. */
174
+ emiComplete?: boolean;
144
175
  shippingFee?: number;
145
176
  shippingMethod?: ShippingMethod;
146
177
  shippingCarrier?: string;
147
178
  trackingUrl?: string;
148
- shiprocketOrderId?: number;
149
- shiprocketShipmentId?: number;
150
- shiprocketAWB?: string;
151
- shiprocketStatus?: string;
152
- shiprocketUpdatedAt?: Date;
153
179
  payoutStatus?: OrderPayoutStatus;
154
180
  payoutId?: string;
155
181
  offerId?: string;
@@ -5,7 +5,6 @@ import { generateOrderId } from "../../../utils/id-generators";
5
5
  /** Runtime-accessible shipping method values â€" use instead of bare string literals. */
6
6
  export const ShippingMethodValues = {
7
7
  CUSTOM: "custom",
8
- SHIPROCKET: "shiprocket",
9
8
  };
10
9
  /** Runtime-accessible order status values â€" use instead of bare string literals. */
11
10
  export const OrderStatusValues = {
@@ -36,6 +35,7 @@ export const PaymentMethodValues = {
36
35
  UPI_MANUAL: "upi_manual",
37
36
  RAZORPAY: "razorpay",
38
37
  ADMIN_BYPASS: "admin_bypass",
38
+ EMI: "emi",
39
39
  };
40
40
  /** Runtime-accessible refund status values â€" use instead of bare string literals. */
41
41
  export const RefundStatusValues = {
@@ -2,10 +2,69 @@ export * from "./firestore";
2
2
  import { z } from "zod";
3
3
  export declare const orderListingTypeSchema: z.ZodEnum<["standard", "auction", "pre-order", "prize-draw", "classified", "digital-code", "live"]>;
4
4
  export declare const orderPaymentStatusSchema: z.ZodEnum<["pending", "processing", "paid", "failed", "refunded", "partial_refund"]>;
5
- export declare const orderShippingMethodSchema: z.ZodEnum<["custom", "shiprocket"]>;
5
+ export declare const orderShippingMethodSchema: z.ZodEnum<["custom"]>;
6
6
  export declare const orderRefundStatusSchema: z.ZodEnum<["pending", "processing", "completed", "rejected"]>;
7
7
  export declare const orderPayoutStatusSchema: z.ZodEnum<["eligible", "requested", "paid"]>;
8
8
  export declare const orderRefundTypeSchema: z.ZodEnum<["full", "partial"]>;
9
+ export declare const emiInstallmentStatusSchema: z.ZodEnum<["pending", "paid", "overdue"]>;
10
+ export declare const emiInstallmentSchema: z.ZodObject<{
11
+ index: z.ZodNumber;
12
+ dueDate: z.ZodUnion<[z.ZodDate, z.ZodString, z.ZodObject<{
13
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
14
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
16
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
17
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
18
+ }, z.ZodTypeAny, "passthrough">>]>;
19
+ amount: z.ZodNumber;
20
+ status: z.ZodEnum<["pending", "paid", "overdue"]>;
21
+ paidAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString, z.ZodObject<{
22
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
23
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
24
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
25
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
26
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
27
+ }, z.ZodTypeAny, "passthrough">>]>>;
28
+ transactionId: z.ZodOptional<z.ZodString>;
29
+ proofUrl: z.ZodOptional<z.ZodString>;
30
+ reminderSentAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString, z.ZodObject<{
31
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
32
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
33
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
34
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
35
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
36
+ }, z.ZodTypeAny, "passthrough">>]>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ status: "pending" | "paid" | "overdue";
39
+ amount: number;
40
+ index: number;
41
+ dueDate: string | Date | z.objectOutputType<{
42
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
43
+ }, z.ZodTypeAny, "passthrough">;
44
+ transactionId?: string | undefined;
45
+ paidAt?: string | Date | z.objectOutputType<{
46
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
47
+ }, z.ZodTypeAny, "passthrough"> | undefined;
48
+ proofUrl?: string | undefined;
49
+ reminderSentAt?: string | Date | z.objectOutputType<{
50
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
51
+ }, z.ZodTypeAny, "passthrough"> | undefined;
52
+ }, {
53
+ status: "pending" | "paid" | "overdue";
54
+ amount: number;
55
+ index: number;
56
+ dueDate: string | Date | z.objectInputType<{
57
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
58
+ }, z.ZodTypeAny, "passthrough">;
59
+ transactionId?: string | undefined;
60
+ paidAt?: string | Date | z.objectInputType<{
61
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
62
+ }, z.ZodTypeAny, "passthrough"> | undefined;
63
+ proofUrl?: string | undefined;
64
+ reminderSentAt?: string | Date | z.objectInputType<{
65
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
66
+ }, z.ZodTypeAny, "passthrough"> | undefined;
67
+ }>;
9
68
  export declare const orderDocumentItemSchema: z.ZodObject<{
10
69
  productId: z.ZodString;
11
70
  productTitle: z.ZodString;
@@ -276,21 +335,75 @@ export declare const orderFirestoreSchema: z.ZodObject<{
276
335
  platformFee: z.ZodOptional<z.ZodNumber>;
277
336
  depositAmount: z.ZodOptional<z.ZodNumber>;
278
337
  codRemainingAmount: z.ZodOptional<z.ZodNumber>;
338
+ codHandlingFee: z.ZodOptional<z.ZodNumber>;
339
+ emiEnabled: z.ZodOptional<z.ZodBoolean>;
340
+ emiTenureMonths: z.ZodOptional<z.ZodNumber>;
341
+ emiTokenAmount: z.ZodOptional<z.ZodNumber>;
342
+ emiSurchargeAmount: z.ZodOptional<z.ZodNumber>;
343
+ emiInstallments: z.ZodOptional<z.ZodArray<z.ZodObject<{
344
+ index: z.ZodNumber;
345
+ dueDate: z.ZodUnion<[z.ZodDate, z.ZodString, z.ZodObject<{
346
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
347
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
348
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
349
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
350
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
351
+ }, z.ZodTypeAny, "passthrough">>]>;
352
+ amount: z.ZodNumber;
353
+ status: z.ZodEnum<["pending", "paid", "overdue"]>;
354
+ paidAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString, z.ZodObject<{
355
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
356
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
357
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
358
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
359
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
360
+ }, z.ZodTypeAny, "passthrough">>]>>;
361
+ transactionId: z.ZodOptional<z.ZodString>;
362
+ proofUrl: z.ZodOptional<z.ZodString>;
363
+ reminderSentAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString, z.ZodObject<{
364
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
365
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
366
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
367
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
368
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
369
+ }, z.ZodTypeAny, "passthrough">>]>>;
370
+ }, "strip", z.ZodTypeAny, {
371
+ status: "pending" | "paid" | "overdue";
372
+ amount: number;
373
+ index: number;
374
+ dueDate: string | Date | z.objectOutputType<{
375
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
376
+ }, z.ZodTypeAny, "passthrough">;
377
+ transactionId?: string | undefined;
378
+ paidAt?: string | Date | z.objectOutputType<{
379
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
380
+ }, z.ZodTypeAny, "passthrough"> | undefined;
381
+ proofUrl?: string | undefined;
382
+ reminderSentAt?: string | Date | z.objectOutputType<{
383
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
384
+ }, z.ZodTypeAny, "passthrough"> | undefined;
385
+ }, {
386
+ status: "pending" | "paid" | "overdue";
387
+ amount: number;
388
+ index: number;
389
+ dueDate: string | Date | z.objectInputType<{
390
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
391
+ }, z.ZodTypeAny, "passthrough">;
392
+ transactionId?: string | undefined;
393
+ paidAt?: string | Date | z.objectInputType<{
394
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
395
+ }, z.ZodTypeAny, "passthrough"> | undefined;
396
+ proofUrl?: string | undefined;
397
+ reminderSentAt?: string | Date | z.objectInputType<{
398
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
399
+ }, z.ZodTypeAny, "passthrough"> | undefined;
400
+ }>, "many">>;
401
+ emiRemainingBalance: z.ZodOptional<z.ZodNumber>;
402
+ emiComplete: z.ZodOptional<z.ZodBoolean>;
279
403
  shippingFee: z.ZodOptional<z.ZodNumber>;
280
- shippingMethod: z.ZodOptional<z.ZodEnum<["custom", "shiprocket"]>>;
404
+ shippingMethod: z.ZodOptional<z.ZodEnum<["custom"]>>;
281
405
  shippingCarrier: z.ZodOptional<z.ZodString>;
282
406
  trackingUrl: z.ZodOptional<z.ZodString>;
283
- shiprocketOrderId: z.ZodOptional<z.ZodNumber>;
284
- shiprocketShipmentId: z.ZodOptional<z.ZodNumber>;
285
- shiprocketAWB: z.ZodOptional<z.ZodString>;
286
- shiprocketStatus: z.ZodOptional<z.ZodString>;
287
- shiprocketUpdatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString, z.ZodObject<{
288
- toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
289
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
290
- toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
291
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
292
- toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
293
- }, z.ZodTypeAny, "passthrough">>]>>;
294
407
  payoutStatus: z.ZodOptional<z.ZodEnum<["eligible", "requested", "paid"]>>;
295
408
  payoutId: z.ZodOptional<z.ZodString>;
296
409
  offerId: z.ZodOptional<z.ZodString>;
@@ -452,7 +565,7 @@ export declare const orderFirestoreSchema: z.ZodObject<{
452
565
  }[] | undefined;
453
566
  payoutStatus?: "paid" | "eligible" | "requested" | undefined;
454
567
  couponCode?: string | undefined;
455
- shippingMethod?: "custom" | "shiprocket" | undefined;
568
+ shippingMethod?: "custom" | undefined;
456
569
  orderType?: string | undefined;
457
570
  imageUrls?: string[] | undefined;
458
571
  paymentId?: string | undefined;
@@ -469,7 +582,7 @@ export declare const orderFirestoreSchema: z.ZodObject<{
469
582
  }, z.ZodTypeAny, "passthrough"> | undefined;
470
583
  cancellationReason?: string | undefined;
471
584
  refundAmount?: number | undefined;
472
- refundStatus?: "pending" | "processing" | "completed" | "rejected" | undefined;
585
+ refundStatus?: "pending" | "processing" | "rejected" | "completed" | undefined;
473
586
  refundFeeDeducted?: number | undefined;
474
587
  refundNetAmount?: number | undefined;
475
588
  refundNote?: string | undefined;
@@ -484,16 +597,32 @@ export declare const orderFirestoreSchema: z.ZodObject<{
484
597
  }[] | undefined;
485
598
  depositAmount?: number | undefined;
486
599
  codRemainingAmount?: number | undefined;
600
+ codHandlingFee?: number | undefined;
601
+ emiEnabled?: boolean | undefined;
602
+ emiTenureMonths?: number | undefined;
603
+ emiTokenAmount?: number | undefined;
604
+ emiSurchargeAmount?: number | undefined;
605
+ emiInstallments?: {
606
+ status: "pending" | "paid" | "overdue";
607
+ amount: number;
608
+ index: number;
609
+ dueDate: string | Date | z.objectOutputType<{
610
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
611
+ }, z.ZodTypeAny, "passthrough">;
612
+ transactionId?: string | undefined;
613
+ paidAt?: string | Date | z.objectOutputType<{
614
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
615
+ }, z.ZodTypeAny, "passthrough"> | undefined;
616
+ proofUrl?: string | undefined;
617
+ reminderSentAt?: string | Date | z.objectOutputType<{
618
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
619
+ }, z.ZodTypeAny, "passthrough"> | undefined;
620
+ }[] | undefined;
621
+ emiRemainingBalance?: number | undefined;
622
+ emiComplete?: boolean | undefined;
487
623
  shippingFee?: number | undefined;
488
624
  shippingCarrier?: string | undefined;
489
625
  trackingUrl?: string | undefined;
490
- shiprocketOrderId?: number | undefined;
491
- shiprocketShipmentId?: number | undefined;
492
- shiprocketAWB?: string | undefined;
493
- shiprocketStatus?: string | undefined;
494
- shiprocketUpdatedAt?: string | Date | z.objectOutputType<{
495
- toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
496
- }, z.ZodTypeAny, "passthrough"> | undefined;
497
626
  payoutId?: string | undefined;
498
627
  offerId?: string | undefined;
499
628
  prizeWon?: {
@@ -581,7 +710,7 @@ export declare const orderFirestoreSchema: z.ZodObject<{
581
710
  }[] | undefined;
582
711
  payoutStatus?: "paid" | "eligible" | "requested" | undefined;
583
712
  couponCode?: string | undefined;
584
- shippingMethod?: "custom" | "shiprocket" | undefined;
713
+ shippingMethod?: "custom" | undefined;
585
714
  orderType?: string | undefined;
586
715
  imageUrls?: string[] | undefined;
587
716
  paymentId?: string | undefined;
@@ -598,7 +727,7 @@ export declare const orderFirestoreSchema: z.ZodObject<{
598
727
  }, z.ZodTypeAny, "passthrough"> | undefined;
599
728
  cancellationReason?: string | undefined;
600
729
  refundAmount?: number | undefined;
601
- refundStatus?: "pending" | "processing" | "completed" | "rejected" | undefined;
730
+ refundStatus?: "pending" | "processing" | "rejected" | "completed" | undefined;
602
731
  refundFeeDeducted?: number | undefined;
603
732
  refundNetAmount?: number | undefined;
604
733
  refundNote?: string | undefined;
@@ -613,16 +742,32 @@ export declare const orderFirestoreSchema: z.ZodObject<{
613
742
  }[] | undefined;
614
743
  depositAmount?: number | undefined;
615
744
  codRemainingAmount?: number | undefined;
745
+ codHandlingFee?: number | undefined;
746
+ emiEnabled?: boolean | undefined;
747
+ emiTenureMonths?: number | undefined;
748
+ emiTokenAmount?: number | undefined;
749
+ emiSurchargeAmount?: number | undefined;
750
+ emiInstallments?: {
751
+ status: "pending" | "paid" | "overdue";
752
+ amount: number;
753
+ index: number;
754
+ dueDate: string | Date | z.objectInputType<{
755
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
756
+ }, z.ZodTypeAny, "passthrough">;
757
+ transactionId?: string | undefined;
758
+ paidAt?: string | Date | z.objectInputType<{
759
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
760
+ }, z.ZodTypeAny, "passthrough"> | undefined;
761
+ proofUrl?: string | undefined;
762
+ reminderSentAt?: string | Date | z.objectInputType<{
763
+ toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
764
+ }, z.ZodTypeAny, "passthrough"> | undefined;
765
+ }[] | undefined;
766
+ emiRemainingBalance?: number | undefined;
767
+ emiComplete?: boolean | undefined;
616
768
  shippingFee?: number | undefined;
617
769
  shippingCarrier?: string | undefined;
618
770
  trackingUrl?: string | undefined;
619
- shiprocketOrderId?: number | undefined;
620
- shiprocketShipmentId?: number | undefined;
621
- shiprocketAWB?: string | undefined;
622
- shiprocketStatus?: string | undefined;
623
- shiprocketUpdatedAt?: string | Date | z.objectInputType<{
624
- toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
625
- }, z.ZodTypeAny, "passthrough"> | undefined;
626
771
  payoutId?: string | undefined;
627
772
  offerId?: string | undefined;
628
773
  prizeWon?: {
@@ -21,10 +21,21 @@ export const orderPaymentStatusSchema = z.enum([
21
21
  "refunded",
22
22
  "partial_refund",
23
23
  ]);
24
- export const orderShippingMethodSchema = z.enum(["custom", "shiprocket"]);
24
+ export const orderShippingMethodSchema = z.enum(["custom"]);
25
25
  export const orderRefundStatusSchema = z.enum(["pending", "processing", "completed", "rejected"]);
26
26
  export const orderPayoutStatusSchema = z.enum(["eligible", "requested", "paid"]);
27
27
  export const orderRefundTypeSchema = z.enum(["full", "partial"]);
28
+ export const emiInstallmentStatusSchema = z.enum(["pending", "paid", "overdue"]);
29
+ export const emiInstallmentSchema = z.object({
30
+ index: z.number().int().positive(),
31
+ dueDate: firestoreDateSchema,
32
+ amount: paiseSchema,
33
+ status: emiInstallmentStatusSchema,
34
+ paidAt: firestoreDateSchema.optional(),
35
+ transactionId: z.string().optional(),
36
+ proofUrl: z.string().optional(),
37
+ reminderSentAt: firestoreDateSchema.optional(),
38
+ });
28
39
  export const orderDocumentItemSchema = z.object({
29
40
  productId: z.string(),
30
41
  productTitle: z.string(),
@@ -118,15 +129,18 @@ export const orderFirestoreSchema = z.object({
118
129
  platformFee: paiseSchema.optional(),
119
130
  depositAmount: paiseSchema.optional(),
120
131
  codRemainingAmount: paiseSchema.optional(),
132
+ codHandlingFee: paiseSchema.optional(),
133
+ emiEnabled: z.boolean().optional(),
134
+ emiTenureMonths: z.number().int().min(2).max(6).optional(),
135
+ emiTokenAmount: paiseSchema.optional(),
136
+ emiSurchargeAmount: paiseSchema.optional(),
137
+ emiInstallments: z.array(emiInstallmentSchema).optional(),
138
+ emiRemainingBalance: paiseSchema.optional(),
139
+ emiComplete: z.boolean().optional(),
121
140
  shippingFee: paiseSchema.optional(),
122
141
  shippingMethod: orderShippingMethodSchema.optional(),
123
142
  shippingCarrier: z.string().optional(),
124
143
  trackingUrl: z.string().optional(),
125
- shiprocketOrderId: z.number().int().optional(),
126
- shiprocketShipmentId: z.number().int().optional(),
127
- shiprocketAWB: z.string().optional(),
128
- shiprocketStatus: z.string().optional(),
129
- shiprocketUpdatedAt: firestoreDateSchema.optional(),
130
144
  payoutStatus: orderPayoutStatusSchema.optional(),
131
145
  payoutId: z.string().optional(),
132
146
  offerId: z.string().optional(),
@@ -1,5 +1,6 @@
1
1
  import { type PaymentGateway, PaymentGatewayValues } from "../../payments/schemas";
2
2
  export { type PaymentGateway, PaymentGatewayValues };
3
+ import type { ListingType } from "../../products/types/index";
3
4
  export type PaymentStatus = "pending" | "processing" | "paid" | "failed" | "refunded" | "partial_refund";
4
5
  export interface UserAddress {
5
6
  id: string;
@@ -23,9 +24,8 @@ export interface OrderItem {
23
24
  currency?: string;
24
25
  storeId?: string;
25
26
  attributes?: Record<string, string>;
26
- /** Listing kind at the time of order — needed for prize-draw UI hints (SB8-F).
27
- * SB-UNI-F 2026-05-13 — Phase 2 union extension. */
28
- listingType?: "standard" | "auction" | "pre-order" | "prize-draw" | "classified" | "digital-code" | "live";
27
+ /** Listing kind at the time of order — needed for prize-draw UI hints (SB8-F). */
28
+ listingType?: ListingType;
29
29
  /**
30
30
  * Per-item prize-draw reveal status (SB8-F). Populated by the checkout
31
31
  * actions when listingType === "prize-draw". Used to render the
@@ -126,7 +126,7 @@ export class PayoutRepository extends BaseRepository {
126
126
  return this.update(payoutId, {
127
127
  status,
128
128
  ...extra,
129
- ...(status === PAYOUT_FIELDS.STATUS_VALUES.COMPLETED ||
129
+ ...(status === PAYOUT_FIELDS.STATUS_VALUES.PAID ||
130
130
  status === PAYOUT_FIELDS.STATUS_VALUES.FAILED
131
131
  ? { processedAt: new Date() }
132
132
  : {}),
@@ -163,7 +163,7 @@ export class PayoutRepository extends BaseRepository {
163
163
  const snapshot = await this.db
164
164
  .collection(this.collection)
165
165
  .where(PAYOUT_FIELDS.STORE_ID, "==", storeId)
166
- .where(PAYOUT_FIELDS.STATUS, "in", ["pending", "processing", "completed"])
166
+ .where(PAYOUT_FIELDS.STATUS, "in", ["pending", "processing", "paid"])
167
167
  .get();
168
168
  const ids = new Set();
169
169
  snapshot.docs.forEach((doc) => {
@@ -9,7 +9,7 @@ export interface PayoutBankAccount {
9
9
  ifscCode: string;
10
10
  bankName: string;
11
11
  }
12
- export type PayoutStatus = "pending" | "processing" | "completed" | "failed";
12
+ export type PayoutStatus = "pending" | "processing" | "paid" | "failed";
13
13
  /**
14
14
  * A single refund deduction applied against a payout before dispatch.
15
15
  *
@@ -29,7 +29,7 @@ export interface PayoutRefundDeduction {
29
29
  export declare const PayoutStatusValues: {
30
30
  readonly PENDING: "pending";
31
31
  readonly PROCESSING: "processing";
32
- readonly COMPLETED: "completed";
32
+ readonly PAID: "paid";
33
33
  readonly FAILED: "failed";
34
34
  };
35
35
  export type PayoutPaymentMethod = "bank_transfer" | "upi";
@@ -82,7 +82,7 @@ export declare const PAYOUT_FIELDS: {
82
82
  readonly STATUS_VALUES: {
83
83
  readonly PENDING: PayoutStatus;
84
84
  readonly PROCESSING: PayoutStatus;
85
- readonly COMPLETED: PayoutStatus;
85
+ readonly PAID: PayoutStatus;
86
86
  readonly FAILED: PayoutStatus;
87
87
  };
88
88
  };