@mohasinac/appkit 2.6.1 → 2.6.3

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 (302) hide show
  1. package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +38 -0
  2. package/dist/_internal/client/features/layout/DashboardLayoutClient.js +75 -0
  3. package/dist/_internal/client/features/layout/RoleGuard.d.ts +15 -0
  4. package/dist/_internal/client/features/layout/RoleGuard.js +25 -0
  5. package/dist/_internal/client/features/layout/index.d.ts +5 -0
  6. package/dist/_internal/client/features/layout/index.js +4 -0
  7. package/dist/_internal/server/features/brands/actions.d.ts +3 -3
  8. package/dist/_internal/server/features/brands/actions.js +72 -5
  9. package/dist/_internal/server/features/brands/data.d.ts +8 -8
  10. package/dist/_internal/server/features/brands/data.js +10 -11
  11. package/dist/_internal/server/features/brands/service.d.ts +2 -2
  12. package/dist/_internal/server/features/brands/service.js +5 -5
  13. package/dist/_internal/server/features/categories/og.d.ts +33 -0
  14. package/dist/_internal/server/features/categories/og.js +75 -0
  15. package/dist/_internal/server/features/checkout/actions.d.ts +24 -0
  16. package/dist/_internal/server/features/checkout/actions.js +442 -13
  17. package/dist/_internal/server/features/checkout/index.d.ts +1 -1
  18. package/dist/_internal/server/features/checkout/index.js +1 -1
  19. package/dist/_internal/server/features/checkout/prize-bundle-gates.d.ts +59 -0
  20. package/dist/_internal/server/features/checkout/prize-bundle-gates.js +99 -0
  21. package/dist/_internal/server/features/grouped/data.js +12 -5
  22. package/dist/_internal/server/features/homepage/data.d.ts +1 -1
  23. package/dist/_internal/server/features/homepage/data.js +2 -2
  24. package/dist/_internal/server/features/media/contextGuards.d.ts +52 -0
  25. package/dist/_internal/server/features/media/contextGuards.js +198 -0
  26. package/dist/_internal/server/features/orders/adapters.js +12 -0
  27. package/dist/_internal/server/features/products/data.d.ts +1 -1
  28. package/dist/_internal/server/features/sublisting-categories/data.d.ts +1 -1
  29. package/dist/_internal/server/features/sublisting-categories/data.js +2 -2
  30. package/dist/_internal/server/jobs/handlers/assignSpinPrize.d.ts +24 -0
  31. package/dist/_internal/server/jobs/handlers/assignSpinPrize.js +86 -0
  32. package/dist/_internal/server/jobs/handlers/bundleStockSync.d.ts +18 -0
  33. package/dist/_internal/server/jobs/handlers/bundleStockSync.js +80 -0
  34. package/dist/_internal/server/jobs/handlers/index.d.ts +8 -0
  35. package/dist/_internal/server/jobs/handlers/index.js +13 -0
  36. package/dist/_internal/server/jobs/handlers/listingProcessor.js +13 -3
  37. package/dist/_internal/server/jobs/handlers/onProductStockChange.d.ts +17 -0
  38. package/dist/_internal/server/jobs/handlers/onProductStockChange.js +136 -0
  39. package/dist/_internal/server/jobs/handlers/onProductWrite.js +17 -1
  40. package/dist/_internal/server/jobs/handlers/prizeRevealClose.d.ts +9 -0
  41. package/dist/_internal/server/jobs/handlers/prizeRevealClose.js +29 -0
  42. package/dist/_internal/server/jobs/handlers/prizeRevealExpiry.d.ts +10 -0
  43. package/dist/_internal/server/jobs/handlers/prizeRevealExpiry.js +58 -0
  44. package/dist/_internal/server/jobs/handlers/prizeRevealOpen.d.ts +10 -0
  45. package/dist/_internal/server/jobs/handlers/prizeRevealOpen.js +65 -0
  46. package/dist/_internal/server/jobs/handlers/prizeRevealReminder.d.ts +9 -0
  47. package/dist/_internal/server/jobs/handlers/prizeRevealReminder.js +45 -0
  48. package/dist/_internal/server/jobs/handlers/triggerEventRaffle.d.ts +30 -0
  49. package/dist/_internal/server/jobs/handlers/triggerEventRaffle.js +94 -0
  50. package/dist/_internal/shared/features/brands/schema.d.ts +3 -3
  51. package/dist/_internal/shared/features/cart/schema.d.ts +8 -8
  52. package/dist/_internal/shared/features/cart/schema.js +1 -1
  53. package/dist/_internal/shared/features/categories/bundle-config.d.ts +17 -0
  54. package/dist/_internal/shared/features/categories/bundle-config.js +17 -0
  55. package/dist/_internal/shared/features/layout/config.d.ts +35 -0
  56. package/dist/_internal/shared/features/layout/config.js +58 -0
  57. package/dist/_internal/shared/features/layout/index.d.ts +3 -0
  58. package/dist/_internal/shared/features/layout/index.js +2 -0
  59. package/dist/_internal/shared/features/layout/types.d.ts +137 -0
  60. package/dist/_internal/shared/features/layout/types.js +13 -0
  61. package/dist/_internal/shared/features/products/types.d.ts +1 -1
  62. package/dist/_internal/shared/listing-types/_registry.d.ts +57 -0
  63. package/dist/_internal/shared/listing-types/_registry.js +28 -0
  64. package/dist/_internal/shared/listing-types/auction/config.d.ts +7 -0
  65. package/dist/_internal/shared/listing-types/auction/config.js +8 -0
  66. package/dist/_internal/shared/listing-types/auction/ctas.d.ts +1 -0
  67. package/dist/_internal/shared/listing-types/auction/ctas.js +2 -0
  68. package/dist/_internal/shared/listing-types/auction/og.d.ts +1 -0
  69. package/dist/_internal/shared/listing-types/auction/og.js +1 -0
  70. package/dist/_internal/shared/listing-types/auction/schema.d.ts +1 -0
  71. package/dist/_internal/shared/listing-types/auction/schema.js +1 -0
  72. package/dist/_internal/shared/listing-types/auction/seed-factory.d.ts +1 -0
  73. package/dist/_internal/shared/listing-types/auction/seed-factory.js +1 -0
  74. package/dist/_internal/shared/listing-types/capabilities.d.ts +41 -0
  75. package/dist/_internal/shared/listing-types/capabilities.js +75 -0
  76. package/dist/_internal/shared/listing-types/pre-order/config.d.ts +7 -0
  77. package/dist/_internal/shared/listing-types/pre-order/config.js +8 -0
  78. package/dist/_internal/shared/listing-types/pre-order/ctas.d.ts +1 -0
  79. package/dist/_internal/shared/listing-types/pre-order/ctas.js +2 -0
  80. package/dist/_internal/shared/listing-types/pre-order/og.d.ts +1 -0
  81. package/dist/_internal/shared/listing-types/pre-order/og.js +1 -0
  82. package/dist/_internal/shared/listing-types/pre-order/schema.d.ts +1 -0
  83. package/dist/_internal/shared/listing-types/pre-order/schema.js +1 -0
  84. package/dist/_internal/shared/listing-types/pre-order/seed-factory.d.ts +1 -0
  85. package/dist/_internal/shared/listing-types/pre-order/seed-factory.js +1 -0
  86. package/dist/_internal/shared/listing-types/prize-draw/config.d.ts +7 -0
  87. package/dist/_internal/shared/listing-types/prize-draw/config.js +8 -0
  88. package/dist/_internal/shared/listing-types/prize-draw/ctas.d.ts +1 -0
  89. package/dist/_internal/shared/listing-types/prize-draw/ctas.js +2 -0
  90. package/dist/_internal/shared/listing-types/prize-draw/og.d.ts +1 -0
  91. package/dist/_internal/shared/listing-types/prize-draw/og.js +1 -0
  92. package/dist/_internal/shared/listing-types/prize-draw/schema.d.ts +1 -0
  93. package/dist/_internal/shared/listing-types/prize-draw/schema.js +1 -0
  94. package/dist/_internal/shared/listing-types/prize-draw/seed-factory.d.ts +1 -0
  95. package/dist/_internal/shared/listing-types/prize-draw/seed-factory.js +1 -0
  96. package/dist/_internal/shared/listing-types/standard/config.d.ts +7 -0
  97. package/dist/_internal/shared/listing-types/standard/config.js +8 -0
  98. package/dist/_internal/shared/listing-types/standard/ctas.d.ts +1 -0
  99. package/dist/_internal/shared/listing-types/standard/ctas.js +3 -0
  100. package/dist/_internal/shared/listing-types/standard/og.d.ts +1 -0
  101. package/dist/_internal/shared/listing-types/standard/og.js +1 -0
  102. package/dist/_internal/shared/listing-types/standard/schema.d.ts +1 -0
  103. package/dist/_internal/shared/listing-types/standard/schema.js +1 -0
  104. package/dist/_internal/shared/listing-types/standard/seed-factory.d.ts +1 -0
  105. package/dist/_internal/shared/listing-types/standard/seed-factory.js +1 -0
  106. package/dist/_internal/shared/media/limits.d.ts +33 -0
  107. package/dist/_internal/shared/media/limits.js +97 -0
  108. package/dist/_internal/shared/schema-versions.d.ts +76 -0
  109. package/dist/_internal/shared/schema-versions.js +82 -0
  110. package/dist/client.d.ts +9 -0
  111. package/dist/client.js +7 -0
  112. package/dist/constants/api-endpoints.d.ts +6 -3
  113. package/dist/constants/api-endpoints.js +2 -1
  114. package/dist/errors/messages.d.ts +1 -1
  115. package/dist/errors/messages.js +1 -1
  116. package/dist/features/account/migrations.d.ts +2 -0
  117. package/dist/features/account/migrations.js +10 -0
  118. package/dist/features/admin/components/AdminMediaView.js +1 -1
  119. package/dist/features/admin/components/AdminProductsView.js +7 -3
  120. package/dist/features/admin/migrations.d.ts +2 -0
  121. package/dist/features/admin/migrations.js +10 -0
  122. package/dist/features/admin/types/product.types.d.ts +1 -1
  123. package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +1 -1
  124. package/dist/features/auctions/migrations.d.ts +2 -0
  125. package/dist/features/auctions/migrations.js +10 -0
  126. package/dist/features/auctions/schemas/index.d.ts +3 -3
  127. package/dist/features/auctions/schemas/index.js +1 -1
  128. package/dist/features/auth/migrations.d.ts +2 -0
  129. package/dist/features/auth/migrations.js +10 -0
  130. package/dist/features/blog/migrations.d.ts +2 -0
  131. package/dist/features/blog/migrations.js +10 -0
  132. package/dist/features/brands/migrations.d.ts +2 -0
  133. package/dist/features/brands/migrations.js +10 -0
  134. package/dist/features/bundles/components/BundlesByCategoryListing.d.ts +6 -0
  135. package/dist/features/bundles/components/BundlesByCategoryListing.js +50 -0
  136. package/dist/features/bundles/components/index.d.ts +2 -0
  137. package/dist/features/bundles/components/index.js +1 -0
  138. package/dist/features/bundles/migrations.d.ts +2 -0
  139. package/dist/features/bundles/migrations.js +10 -0
  140. package/dist/features/bundles/schemas/index.d.ts +1 -0
  141. package/dist/features/bundles/schemas/index.js +1 -0
  142. package/dist/features/bundles/schemas/zod.d.ts +377 -0
  143. package/dist/features/bundles/schemas/zod.js +71 -0
  144. package/dist/features/cart/migrations.d.ts +2 -0
  145. package/dist/features/cart/migrations.js +10 -0
  146. package/dist/features/cart/schemas/firestore.d.ts +2 -2
  147. package/dist/features/categories/components/BrandDetailPageView.js +35 -4
  148. package/dist/features/categories/components/BrandDetailTabs.d.ts +5 -1
  149. package/dist/features/categories/components/BrandDetailTabs.js +22 -8
  150. package/dist/features/categories/components/CategoryBundlesListing.d.ts +6 -0
  151. package/dist/features/categories/components/CategoryBundlesListing.js +74 -0
  152. package/dist/features/categories/components/CategoryDetailPageView.js +29 -4
  153. package/dist/features/categories/components/CategoryDetailTabs.d.ts +5 -1
  154. package/dist/features/categories/components/CategoryDetailTabs.js +22 -8
  155. package/dist/features/categories/migrations.d.ts +2 -0
  156. package/dist/features/categories/migrations.js +10 -0
  157. package/dist/features/categories/repository/categories.repository.d.ts +29 -0
  158. package/dist/features/categories/repository/categories.repository.js +83 -0
  159. package/dist/features/categories/schemas/firestore.d.ts +59 -2
  160. package/dist/features/categories/schemas/firestore.js +6 -0
  161. package/dist/features/categories/types/index.d.ts +11 -3
  162. package/dist/features/events/migrations.d.ts +2 -0
  163. package/dist/features/events/migrations.js +10 -0
  164. package/dist/features/faq/migrations.d.ts +2 -0
  165. package/dist/features/faq/migrations.js +10 -0
  166. package/dist/features/grouped/migrations.d.ts +2 -0
  167. package/dist/features/grouped/migrations.js +10 -0
  168. package/dist/features/grouped/schemas/firestore.d.ts +29 -10
  169. package/dist/features/grouped/schemas/firestore.js +10 -5
  170. package/dist/features/history/migrations.d.ts +2 -0
  171. package/dist/features/history/migrations.js +10 -0
  172. package/dist/features/homepage/hooks/useFeaturedAuctions.js +2 -2
  173. package/dist/features/homepage/hooks/useFeaturedPreOrders.js +2 -2
  174. package/dist/features/homepage/lib/section-renderer.js +5 -3
  175. package/dist/features/media/AvatarUpload.js +6 -28
  176. package/dist/features/media/hooks/useMedia.d.ts +31 -15
  177. package/dist/features/media/hooks/useMedia.js +48 -13
  178. package/dist/features/media/upload/ImageUpload.js +1 -1
  179. package/dist/features/media/upload/MediaUploadField.js +1 -1
  180. package/dist/features/messages/migrations.d.ts +2 -0
  181. package/dist/features/messages/migrations.js +10 -0
  182. package/dist/features/orders/components/OrdersList.js +10 -1
  183. package/dist/features/orders/migrations.d.ts +2 -0
  184. package/dist/features/orders/migrations.js +10 -0
  185. package/dist/features/orders/repository/orders.repository.d.ts +16 -0
  186. package/dist/features/orders/repository/orders.repository.js +49 -0
  187. package/dist/features/orders/schemas/firestore.d.ts +8 -0
  188. package/dist/features/orders/types/index.d.ts +12 -0
  189. package/dist/features/orders/utils/order-splitter.d.ts +2 -2
  190. package/dist/features/orders/utils/order-splitter.js +5 -0
  191. package/dist/features/payments/migrations.d.ts +2 -0
  192. package/dist/features/payments/migrations.js +10 -0
  193. package/dist/features/pre-orders/components/PreOrderDetailPageView.js +4 -1
  194. package/dist/features/products/actions/product-actions.d.ts +1 -1
  195. package/dist/features/products/api/[id]/route.js +34 -0
  196. package/dist/features/products/api/route.js +1 -19
  197. package/dist/features/products/components/CompareOverlay.d.ts +1 -1
  198. package/dist/features/products/components/MarketplacePrizeDrawCard.d.ts +24 -0
  199. package/dist/features/products/components/MarketplacePrizeDrawCard.js +102 -0
  200. package/dist/features/products/components/PrizeDrawCollage.d.ts +32 -0
  201. package/dist/features/products/components/PrizeDrawCollage.js +22 -0
  202. package/dist/features/products/components/PrizeDrawDetailPageView.d.ts +27 -0
  203. package/dist/features/products/components/PrizeDrawDetailPageView.js +118 -0
  204. package/dist/features/products/components/PrizeDrawEntryActions.d.ts +19 -0
  205. package/dist/features/products/components/PrizeDrawEntryActions.js +48 -0
  206. package/dist/features/products/components/PrizeDrawItemsEditor.d.ts +13 -0
  207. package/dist/features/products/components/PrizeDrawItemsEditor.js +97 -0
  208. package/dist/features/products/components/PrizeDrawsIndexListing.d.ts +8 -0
  209. package/dist/features/products/components/PrizeDrawsIndexListing.js +128 -0
  210. package/dist/features/products/components/PrizeDrawsListingView.d.ts +15 -0
  211. package/dist/features/products/components/PrizeDrawsListingView.js +49 -0
  212. package/dist/features/products/components/PrizeRevealModal.d.ts +34 -0
  213. package/dist/features/products/components/PrizeRevealModal.js +124 -0
  214. package/dist/features/products/components/ProductDetailPageView.js +13 -1
  215. package/dist/features/products/components/ProductForm.js +35 -2
  216. package/dist/features/products/components/ProductGrid.js +3 -1
  217. package/dist/features/products/components/index.d.ts +16 -0
  218. package/dist/features/products/components/index.js +8 -0
  219. package/dist/features/products/constants/listing-tabs.d.ts +113 -0
  220. package/dist/features/products/constants/listing-tabs.js +43 -0
  221. package/dist/features/products/index.d.ts +1 -0
  222. package/dist/features/products/index.js +1 -0
  223. package/dist/features/products/migrations.d.ts +2 -0
  224. package/dist/features/products/migrations.js +10 -0
  225. package/dist/features/products/repository/products.repository.d.ts +11 -7
  226. package/dist/features/products/repository/products.repository.js +49 -24
  227. package/dist/features/products/schemas/firestore.d.ts +3 -3
  228. package/dist/features/products/schemas/firestore.js +2 -2
  229. package/dist/features/products/schemas/index.d.ts +5 -5
  230. package/dist/features/products/schemas/index.js +3 -1
  231. package/dist/features/products/schemas/product-features.validators.d.ts +6 -6
  232. package/dist/features/products/types/index.d.ts +17 -1
  233. package/dist/features/products/utils/listing-type.d.ts +7 -4
  234. package/dist/features/products/utils/listing-type.js +8 -4
  235. package/dist/features/promotions/actions/coupon-actions.d.ts +1 -1
  236. package/dist/features/promotions/hooks/useCouponValidate.d.ts +1 -1
  237. package/dist/features/promotions/migrations.d.ts +2 -0
  238. package/dist/features/promotions/migrations.js +10 -0
  239. package/dist/features/promotions/repository/coupons.repository.d.ts +1 -1
  240. package/dist/features/promotions/schemas/index.d.ts +2 -2
  241. package/dist/features/reviews/migrations.d.ts +2 -0
  242. package/dist/features/reviews/migrations.js +10 -0
  243. package/dist/features/scams/migrations.d.ts +2 -0
  244. package/dist/features/scams/migrations.js +10 -0
  245. package/dist/features/search/api/route.d.ts +1 -1
  246. package/dist/features/search/api/route.js +3 -3
  247. package/dist/features/search/components/Search.d.ts +1 -1
  248. package/dist/features/search/schemas/index.d.ts +3 -3
  249. package/dist/features/search/schemas/index.js +3 -1
  250. package/dist/features/search/types/index.d.ts +2 -2
  251. package/dist/features/seller/components/SellerProductShell.d.ts +1 -1
  252. package/dist/features/seller/components/SellerProductsView.js +20 -6
  253. package/dist/features/seller/migrations.d.ts +2 -0
  254. package/dist/features/seller/migrations.js +10 -0
  255. package/dist/features/seller/schemas/index.d.ts +2 -2
  256. package/dist/features/stores/components/StoreBundlesPageView.d.ts +12 -0
  257. package/dist/features/stores/components/StoreBundlesPageView.js +24 -0
  258. package/dist/features/stores/components/StoreDetailLayoutView.js +15 -3
  259. package/dist/features/stores/components/StorePrizeDrawsPageView.d.ts +11 -0
  260. package/dist/features/stores/components/StorePrizeDrawsPageView.js +27 -0
  261. package/dist/features/stores/components/index.d.ts +2 -0
  262. package/dist/features/stores/migrations.d.ts +2 -0
  263. package/dist/features/stores/migrations.js +10 -0
  264. package/dist/features/stores/schemas/index.d.ts +2 -2
  265. package/dist/features/stores/types/index.d.ts +1 -1
  266. package/dist/features/sublisting/migrations.d.ts +2 -0
  267. package/dist/features/sublisting/migrations.js +10 -0
  268. package/dist/features/sublisting/schemas/firestore.d.ts +2 -0
  269. package/dist/features/support/migrations.d.ts +2 -0
  270. package/dist/features/support/migrations.js +10 -0
  271. package/dist/features/wishlist/migrations.d.ts +2 -0
  272. package/dist/features/wishlist/migrations.js +10 -0
  273. package/dist/features/wishlist/types/index.d.ts +1 -1
  274. package/dist/index.d.ts +26 -18
  275. package/dist/index.js +41 -24
  276. package/dist/jobs.d.ts +1 -1
  277. package/dist/jobs.js +4 -0
  278. package/dist/next/routing/route-map.d.ts +4 -0
  279. package/dist/next/routing/route-map.js +2 -0
  280. package/dist/providers/db-firebase/admin-app-lite.js +21 -0
  281. package/dist/providers/db-firebase/filter-aliases.d.ts +2 -2
  282. package/dist/repositories/index.d.ts +0 -5
  283. package/dist/repositories/index.js +5 -4
  284. package/dist/seed/actions/demo-seed-actions.d.ts +1 -1
  285. package/dist/seed/categories-seed-data.js +1105 -6
  286. package/dist/seed/faq-seed-data.js +160 -0
  287. package/dist/seed/grouped-listings-seed-data.js +32 -32
  288. package/dist/seed/homepage-sections-seed-data.js +52 -6
  289. package/dist/seed/index.d.ts +1 -3
  290. package/dist/seed/index.js +4 -3
  291. package/dist/seed/manifest.js +8 -13
  292. package/dist/seed/products-prize-draws-seed-data.d.ts +17 -0
  293. package/dist/seed/products-prize-draws-seed-data.js +313 -0
  294. package/dist/seo/json-ld.d.ts +1 -1
  295. package/dist/server-entry.d.ts +2 -2
  296. package/dist/server-entry.js +5 -3
  297. package/dist/server.d.ts +9 -2
  298. package/dist/server.js +11 -5
  299. package/dist/tailwind-utilities.css +1 -1
  300. package/dist/validation/schemas.d.ts +8 -8
  301. package/package.json +1 -1
  302. package/scripts/seed-cli.mjs +2 -4
package/dist/index.js CHANGED
@@ -1015,11 +1015,11 @@ export { carouselsRepository, CarouselsRepository } from "./repositories/index";
1015
1015
  // [DB]-Database layer — uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
1016
1016
  // cartRepository - Shared export for cart repository.
1017
1017
  export { cartRepository } from "./repositories/index";
1018
- // [DB]-Database layer uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
1019
- // brandsRepository - Shared export for brands repository.
1020
- export { brandsRepository } from "./repositories/index";
1021
- // BRANDS_COLLECTION - Firestore collection name constant for brands.
1022
- export { BRANDS_COLLECTION } from "./features/brands/schemas";
1018
+ // SB-UNI-CbrandsRepository + BrandDocument + BRANDS_COLLECTION deleted.
1019
+ // Brands now live in the categories collection with categoryType:"brand".
1020
+ // Use categoriesRepository.findBySlugAndType(slug, "brand") and
1021
+ // categoriesRepository.findActiveBrands(). CategoryDocument carries
1022
+ // brandWebsite / brandCountry / brandFounded / brandBannerImage.
1023
1023
  // [DB]-Database layer — uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
1024
1024
  // categoriesRepository - Shared export for categories repository.
1025
1025
  export { categoriesRepository } from "./repositories/index";
@@ -1083,9 +1083,8 @@ export { storeRepository } from "./repositories/index";
1083
1083
  // [DB]-Database layer — uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
1084
1084
  // scammerRepository - Shared export for scammer profiles repository.
1085
1085
  export { scammerRepository } from "./repositories/index";
1086
- // [DB]-Database layer uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
1087
- // sublistingCategoriesRepository - Server-only repository for sublisting categories.
1088
- export { sublistingCategoriesRepository } from "./repositories/index";
1086
+ // SB-UNI-BsublistingCategoriesRepository + SublistingCategoryDocument deleted.
1087
+ // Use categoriesRepository.findBySlugAndType(slug, "sublisting") and CategoryDocument with categoryType:"sublisting".
1089
1088
  // [DB]-Database layer — uses firebase-admin; server-only.
1090
1089
  // productFeaturesRepository - Server-only repository for productFeatures (FI1).
1091
1090
  export { productFeaturesRepository } from "./repositories/index";
@@ -1167,8 +1166,7 @@ export { carouselsSeedData } from "./seed/index";
1167
1166
  // cartsSeedData - Model for carts seed data.
1168
1167
  export { cartsSeedData } from "./seed/index";
1169
1168
  // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
1170
- // brandsSeedData - Seed data for brands collection (15 franchise brands).
1171
- export { brandsSeedData } from "./seed/index";
1169
+ // SB-UNI-C brandsSeedData merged into categoriesSeedData with categoryType:"brand".
1172
1170
  // categoriesSeedData - Model for categories seed data.
1173
1171
  export { categoriesSeedData } from "./seed/index";
1174
1172
  // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
@@ -1308,6 +1306,9 @@ export { productsAuctionsSeedData } from "./seed/index";
1308
1306
  // productsPreOrdersSeedData - Seed data for pre-order product listings.
1309
1307
  export { productsPreOrdersSeedData } from "./seed/index";
1310
1308
  // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
1309
+ // productsPrizeDrawsSeedData - Seed data for prize-draw product listings (SB5-E).
1310
+ export { productsPrizeDrawsSeedData } from "./seed/index";
1311
+ // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
1311
1312
  // registerSeedLocale - Helper for register seed locale.
1312
1313
  export { registerSeedLocale } from "./seed/index";
1313
1314
  // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
@@ -1339,12 +1340,9 @@ export { wishlistsSeedData } from "./seed/index";
1339
1340
  export { historySeedData } from "./seed/index";
1340
1341
  // conversationsSeedData - Model for conversations seed data.
1341
1342
  export { conversationsSeedData } from "./seed/index";
1342
- // sublistingCategoriesSeedData - Model for sublisting categories seed data.
1343
- export { sublistingCategoriesSeedData } from "./seed/index";
1343
+ // SB-UNI-B sublistingCategoriesSeedData merged into categoriesSeedData with categoryType:"sublisting".
1344
1344
  // groupedListingsSeedData - Model for grouped listings seed data.
1345
1345
  export { groupedListingsSeedData } from "./seed/index";
1346
- // bundlesSeedData - Tier SB sample bundles (homogeneous standard / pre-order).
1347
- export { bundlesSeedData } from "./seed/index";
1348
1346
  // ./monitoring/index
1349
1347
  // [UTIL]-Pure utility — no framework or runtime dependency; safe to import from any environment.
1350
1348
  // ANALYTICS_EVENTS - Constant used across modules.
@@ -2840,9 +2838,8 @@ export { createBlogPostSchema } from "./features/blog/server";
2840
2838
  // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
2841
2839
  // deleteBlogPost - Helper for delete blog post.
2842
2840
  export { deleteBlogPost } from "./features/blog/server";
2843
- // [SERVER-ONLY]-Server-onlyuses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
2844
- // getBrandBySlug - Helper for get brand by slug.
2845
- export { getBrandBySlug } from "./features/brands/server";
2841
+ // SB-UNI-CgetBrandBySlug deleted with features/brands/. Use
2842
+ // categoriesRepository.findBySlugAndType(slug, "brand") instead.
2846
2843
  // getBlogPostById - Helper for get blog post by id.
2847
2844
  export { getBlogPostById } from "./features/blog/server";
2848
2845
  // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
@@ -4311,6 +4308,16 @@ export { PreOrderDetailView } from "./features/products/index";
4311
4308
  // [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
4312
4309
  // PreOrdersView - Component for pre orders view.
4313
4310
  export { PreOrdersView } from "./features/products/index";
4311
+ // [SERVER-RSC]-Public listing for prize-draw products (SB4-F).
4312
+ export { PrizeDrawsListingView } from "./features/products/index";
4313
+ // [CLIENT]-Client toolbar+grid for prize draws (SB4-F).
4314
+ export { PrizeDrawsIndexListing } from "./features/products/index";
4315
+ // [CLIENT]-Marketplace card for prize draws (SB4-F).
4316
+ export { MarketplacePrizeDrawCard } from "./features/products/index";
4317
+ // [SERVER-RSC]-Public detail page for a prize-draw product (SB4-G).
4318
+ export { PrizeDrawDetailPageView } from "./features/products/index";
4319
+ // [CLIENT]-Buy panel client for prize-draw detail (consent + add-to-cart) (SB4-G).
4320
+ export { PrizeDrawEntryActions } from "./features/products/index";
4314
4321
  // [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
4315
4322
  // ProductCard - Component for product card.
4316
4323
  export { ProductCard } from "./features/products/index";
@@ -5120,6 +5127,10 @@ export { StoreProductsPageView } from "./features/stores/components/StoreProduct
5120
5127
  export { StoreAuctionsPageView } from "./features/stores/components/StoreAuctionsPageView";
5121
5128
  export { StoreReviewsPageView } from "./features/stores/components/StoreReviewsPageView";
5122
5129
  export { StorePreOrdersPageView } from "./features/stores/components/StorePreOrdersPageView";
5130
+ // [SERVER-RSC]-Public store → Prize Draws tab (SB7-D).
5131
+ export { StorePrizeDrawsPageView } from "./features/stores/components/StorePrizeDrawsPageView";
5132
+ // [SERVER-RSC]-Public store → Bundles tab (SB7-D / S7-PrizeDraws-3).
5133
+ export { StoreBundlesPageView } from "./features/stores/components/StoreBundlesPageView";
5123
5134
  export { StorePreOrdersListing } from "./features/stores/components/StorePreOrdersListing";
5124
5135
  // [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
5125
5136
  // buildStoreColumns - Helper for build store columns.
@@ -5387,8 +5398,7 @@ export { CONVERSATIONS_COLLECTION } from "./features/messages/schemas/firestore"
5387
5398
  export { conversationsRepository, ConversationsRepository, ConversationFullError, listConversationsForBuyer, listConversationsForStore, getConversation, sendMessage, markConversationRead, MESSAGE_MAX_LENGTH, pingConversationRtdb, } from "./features/messages/server";
5388
5399
  // Messages realtime channel — shared between client + server (D5 + VC7)
5389
5400
  export { conversationPingPath, userConversationsPingPath, buildConversationPingPaths, } from "./features/messages/realtime";
5390
- // Sublisting categories feature schemas
5391
- export { SUBLISTING_CATEGORIES_COLLECTION } from "./features/products/schemas/sublisting-categories";
5401
+ // SB-UNI-B SublistingCategoryDocument deleted; sublistings are CategoryDocument with categoryType:"sublisting".
5392
5402
  // Product features feature schemas (FI1)
5393
5403
  export { PRODUCT_FEATURES_COLLECTION, PRODUCT_FEATURE_PREFIX, MAX_STORE_CUSTOM_FEATURES, MAX_FEATURES_PER_PRODUCT, PRODUCT_FEATURE_SIEVE_FIELDS, isFeatureIconPath, } from "./features/products/schemas/product-features";
5394
5404
  // Product features zod validators (S8 refactor — shared by admin + store API routes)
@@ -5399,11 +5409,13 @@ export { LISTING_PARAM_NAMES, parseListingParams, parseListingSearchParams, seri
5399
5409
  export { PRODUCT_FEATURE_CATEGORY_OPTIONS, PRODUCT_FEATURE_PRODUCT_TYPE_OPTIONS, PRODUCT_FEATURE_SCOPE_OPTIONS, PRODUCT_FEATURE_ICON_COLOR_OPTIONS, PRODUCT_FEATURE_SCOPE_TABS, PRODUCT_FEATURE_DEFAULT_DISPLAY_ORDER, PRODUCT_FEATURE_CARD_MAX_VISIBLE, PRODUCT_FEATURE_QUERY_STALE_MS, } from "./features/products/constants/product-features.constants";
5400
5410
  // Grouped listings feature schemas
5401
5411
  export { GROUPED_LISTINGS_COLLECTION } from "./features/grouped/schemas/firestore";
5402
- // Tier SB bundles feature schemas (BundleDocument lives in features/bundles)
5403
- export { BUNDLES_COLLECTION, BUNDLE_INDEXED_FIELDS, } from "./features/bundles/schemas";
5404
- // SB3 bundle UI views + constants + form value type (client-safe components)
5405
- export { BundleItemsPicker, BundleForm, SellerBundleCreateView, SellerBundleEditView, AdminBundleEditorView, BundlesListingView, BundleDetailPageView, FeaturedBundlesSection, } from "./features/bundles/components";
5406
- export { BUNDLE_VALIDATION, BUNDLES_CURRENCY, BUNDLE_STATUS_OPTIONS, BUNDLE_ITEM_TYPE_LABEL, BUNDLE_ITEM_TYPE_OPTIONS, BUNDLE_SORT_OPTIONS, } from "./features/bundles/constants";
5412
+ // SB-UNI-D + V BundleDocument + bundlesRepository + features/bundles/
5413
+ // folder all deleted. Bundles are now `categoryType:"bundle"` rows on the
5414
+ // categories collection with `bundlePriceInPaise` / `bundleQueryRule` /
5415
+ // `bundleStockStatus` / `bundleQueryResolvedAt` / `bundleProductIds[]`.
5416
+ // Replacement component: CategoryBundlesListing in features/categories/components.
5417
+ export { CategoryBundlesListing } from "./features/categories/components/CategoryBundlesListing";
5418
+ export { BUNDLE_MIN_ITEMS, BUNDLE_MAX_ITEMS, BUNDLE_MAX_PER_USER_DEFAULT, BUNDLES_PAGE_SIZE, BUNDLES_FEATURED_LIMIT, } from "./_internal/shared/features/categories/bundle-config";
5407
5419
  // Scam registry — seed data
5408
5420
  export { scammersSeedData } from "./seed/index";
5409
5421
  // Product features — seed data (FI2)
@@ -5441,3 +5453,8 @@ export { renderBlogOgImage } from "./_internal/server/features/blog/og";
5441
5453
  export { renderEventOgImage } from "./_internal/server/features/events/og";
5442
5454
  export { renderSublistingCategoryOgImage } from "./_internal/server/features/sublisting-categories/og";
5443
5455
  export { renderPrivateProfileOgImage, renderUserProfileOgImage } from "./_internal/server/features/profile/og";
5456
+ // Listing-type capability registry — SB-UNI X1.
5457
+ export { LISTING_TYPE_CAPABILITIES, capabilityFor, canAddToCart, canBid, supportsShipping, requiresVendorVerified, requiresJurisdictionCheck, hasInstantFulfillment, assertNever, } from "./_internal/shared/listing-types/capabilities";
5458
+ export { LISTING_TYPE_REGISTRY, pluginFor } from "./_internal/shared/listing-types/_registry";
5459
+ // Media upload limits — pure constants, safe in both client and server bundles.
5460
+ export { MEGABYTE, MAX_IMAGE_BYTES, MAX_PDF_BYTES, MAX_VIDEO_BYTES, MAX_LABEL, MAX_BYTES, ALLOWED_IMAGE_MIMES, ALLOWED_VIDEO_MIMES, ALLOWED_DOC_MIMES, ALLOWED_MIMES, ALLOWED_TYPES_LABEL, MIME_TO_EXT, PDF_MAGIC, VIDEO_CONVERSION_HINTS, classifyMime, isAllowedMime, maxBytesFor, getConversionHint, } from "./_internal/shared/media/limits";
package/dist/jobs.d.ts CHANGED
@@ -20,5 +20,5 @@
20
20
  * listingProcessorHandler,
21
21
  * } from "@mohasinac/appkit/jobs";
22
22
  */
23
- export { couponExpiryHandler, offerExpiryHandler, cartPruneHandler, notificationPruneHandler, dailyDataCleanupHandler, cleanupRtdbEventsHandler, auctionSettlementHandler, autoPayoutEligibilityHandler, countersReconcileHandler, onOrderCreateHandler, onOrderStatusChangeHandler, onBidPlacedHandler, onReviewWriteHandler, promotionsHandler, mediaTmpCleanupHandler, pendingOrderTimeoutHandler, productStatsSyncHandler, positionsReconcileHandler, payoutBatchHandler, weeklyPayoutEligibilityHandler, onCategoryWriteHandler, onProductWriteHandler, onStoreWriteHandler, adminAnalyticsHandler, storeAnalyticsHandler, listingProcessorHandler, supportedListingCollections, bindSchedule, bindDocumentWritten, bindDocumentCreated, bindDocumentUpdated, bindCallable, bindHttps, bindToFirebase, } from "./_internal/server/jobs/index.js";
23
+ export { couponExpiryHandler, offerExpiryHandler, cartPruneHandler, notificationPruneHandler, dailyDataCleanupHandler, cleanupRtdbEventsHandler, auctionSettlementHandler, autoPayoutEligibilityHandler, countersReconcileHandler, onOrderCreateHandler, onOrderStatusChangeHandler, onBidPlacedHandler, onReviewWriteHandler, promotionsHandler, mediaTmpCleanupHandler, pendingOrderTimeoutHandler, productStatsSyncHandler, positionsReconcileHandler, payoutBatchHandler, weeklyPayoutEligibilityHandler, onCategoryWriteHandler, onProductWriteHandler, onStoreWriteHandler, adminAnalyticsHandler, storeAnalyticsHandler, listingProcessorHandler, supportedListingCollections, prizeRevealOpenHandler, prizeRevealCloseHandler, prizeRevealExpiryHandler, prizeRevealReminderHandler, bundleStockSyncHandler, onProductStockChangeHandler, triggerEventRaffleHandler, assignSpinPrizeHandler, bindSchedule, bindDocumentWritten, bindDocumentCreated, bindDocumentUpdated, bindCallable, bindHttps, bindToFirebase, } from "./_internal/server/jobs/index.js";
24
24
  export type { PromotionsCallableResult, AdminAnalyticsResult, StoreAnalyticsInput, StoreAnalyticsResult, ListingRequestBody, ListingResponseBody, JobContext, JobLogger, JobHandlers, ScheduleHandler, FirestoreTriggerHandler, FirestoreTriggerEvent, CallableHandler, BindHttpsOptions, } from "./_internal/server/jobs/index.js";
package/dist/jobs.js CHANGED
@@ -23,5 +23,9 @@
23
23
  export {
24
24
  // S4–S5: Job handlers (pure, framework-agnostic)
25
25
  couponExpiryHandler, offerExpiryHandler, cartPruneHandler, notificationPruneHandler, dailyDataCleanupHandler, cleanupRtdbEventsHandler, auctionSettlementHandler, autoPayoutEligibilityHandler, countersReconcileHandler, onOrderCreateHandler, onOrderStatusChangeHandler, onBidPlacedHandler, onReviewWriteHandler, promotionsHandler, mediaTmpCleanupHandler, pendingOrderTimeoutHandler, productStatsSyncHandler, positionsReconcileHandler, payoutBatchHandler, weeklyPayoutEligibilityHandler, onCategoryWriteHandler, onProductWriteHandler, onStoreWriteHandler, adminAnalyticsHandler, storeAnalyticsHandler, listingProcessorHandler, supportedListingCollections,
26
+ // SB1-L (S7-PrizeDraws)
27
+ prizeRevealOpenHandler, prizeRevealCloseHandler, prizeRevealExpiryHandler, prizeRevealReminderHandler, bundleStockSyncHandler,
28
+ // SB-UNI-V — Firestore onWrite trigger for product stock changes.
29
+ onProductStockChangeHandler, triggerEventRaffleHandler, assignSpinPrizeHandler,
26
30
  // Firebase binder adapter
27
31
  bindSchedule, bindDocumentWritten, bindDocumentCreated, bindDocumentUpdated, bindCallable, bindHttps, bindToFirebase, } from "./_internal/server/jobs/index.js";
@@ -36,6 +36,8 @@ export declare const DEFAULT_ROUTE_MAP: {
36
36
  readonly STORE_PRODUCTS: (storeSlug: string) => string;
37
37
  readonly STORE_AUCTIONS: (storeSlug: string) => string;
38
38
  readonly STORE_PRE_ORDERS: (storeSlug: string) => string;
39
+ readonly STORE_PRIZE_DRAWS: (storeSlug: string) => string;
40
+ readonly STORE_BUNDLES: (storeSlug: string) => string;
39
41
  readonly STORE_REVIEWS: (storeSlug: string) => string;
40
42
  readonly STORE_ABOUT: (storeSlug: string) => string;
41
43
  readonly STORE_COUPONS: (storeSlug: string) => string;
@@ -260,6 +262,8 @@ export declare const ROUTES: {
260
262
  readonly STORE_PRODUCTS: (storeSlug: string) => string;
261
263
  readonly STORE_AUCTIONS: (storeSlug: string) => string;
262
264
  readonly STORE_PRE_ORDERS: (storeSlug: string) => string;
265
+ readonly STORE_PRIZE_DRAWS: (storeSlug: string) => string;
266
+ readonly STORE_BUNDLES: (storeSlug: string) => string;
263
267
  readonly STORE_REVIEWS: (storeSlug: string) => string;
264
268
  readonly STORE_ABOUT: (storeSlug: string) => string;
265
269
  readonly STORE_COUPONS: (storeSlug: string) => string;
@@ -24,6 +24,8 @@ export const DEFAULT_ROUTE_MAP = {
24
24
  STORE_PRODUCTS: (storeSlug) => `/stores/${storeSlug}/products`,
25
25
  STORE_AUCTIONS: (storeSlug) => `/stores/${storeSlug}/auctions`,
26
26
  STORE_PRE_ORDERS: (storeSlug) => `/stores/${storeSlug}/pre-orders`,
27
+ STORE_PRIZE_DRAWS: (storeSlug) => `/stores/${storeSlug}/prize-draws`,
28
+ STORE_BUNDLES: (storeSlug) => `/stores/${storeSlug}/bundles`,
27
29
  STORE_REVIEWS: (storeSlug) => `/stores/${storeSlug}/reviews`,
28
30
  STORE_ABOUT: (storeSlug) => `/stores/${storeSlug}/about`,
29
31
  STORE_COUPONS: (storeSlug) => `/stores/${storeSlug}/coupons`,
@@ -47,6 +47,27 @@ export function getAdminAppLite() {
47
47
  databaseURL: dbUrl,
48
48
  });
49
49
  }
50
+ else if (
51
+ // Application Default Credentials path — used by Firebase Functions /
52
+ // Cloud Run / GCE / GKE. The runtime sets `FUNCTION_TARGET` (gen 2
53
+ // Functions) or `K_SERVICE` (Cloud Run); FIREBASE_CONFIG carries the
54
+ // project info Firebase auto-injects. When any of those is present, defer
55
+ // to ADC by calling `initializeApp()` with no credential — the SDK pulls
56
+ // creds from the GCE metadata server.
57
+ process.env.FUNCTION_TARGET ||
58
+ process.env.K_SERVICE ||
59
+ process.env.FIREBASE_CONFIG ||
60
+ process.env.GOOGLE_APPLICATION_CREDENTIALS) {
61
+ const firebaseConfig = process.env.FIREBASE_CONFIG
62
+ ? JSON.parse(process.env.FIREBASE_CONFIG)
63
+ : {};
64
+ const projectId = firebaseConfig.projectId ?? process.env.GCLOUD_PROJECT ?? "";
65
+ const dbUrl = firebaseConfig.databaseURL ??
66
+ process.env.FIREBASE_ADMIN_DATABASE_URL ??
67
+ process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL ??
68
+ (projectId ? `https://${projectId}-default-rtdb.firebaseio.com` : undefined);
69
+ app = initializeApp(dbUrl ? { databaseURL: dbUrl } : undefined);
70
+ }
50
71
  else {
51
72
  throw new Error("@mohasinac/db-firebase: Firebase Admin credentials not found.");
52
73
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Virtual filter aliases — a clause like `listingType==auction` is expanded
3
- * into one or more real Sieve clauses (`isAuction==true,isPreOrder==false`)
2
+ * Virtual filter aliases — a clause like `scope==publicAuctions` is expanded
3
+ * into one or more real Sieve clauses (`status==published,listingType==auction`)
4
4
  * before the model reaches the underlying Sieve processor.
5
5
  *
6
6
  * Pure (no firebase-admin or runtime deps) so this module is safe to import
@@ -36,15 +36,10 @@ export { EventEntryRepository, EventEntriesRepository, eventEntryRepository, } f
36
36
  export { NewsletterRepository, newsletterRepository, } from "../core/newsletter.repository";
37
37
  export type { NewsletterSubscriberDocument, NewsletterSubscriberCreateInput, NewsletterSubscriberUpdateInput, NewsletterListModel, } from "../core/newsletter.repository";
38
38
  export { CopilotLogRepository, copilotLogRepository } from "../core";
39
- export { BrandsRepository, brandsRepository, } from "../features/brands/repository/brands.repository";
40
- export type { BrandDocument, BrandCreateInput, BrandUpdateInput, } from "../features/brands/schemas";
41
39
  export type { CopilotFeedback, CopilotLogDocument, CopilotLogCreateInput, } from "../core";
42
40
  export { ScammerRepository, scammerRepository, } from "../features/scams/repository/scammer.repository";
43
- export { SublistingCategoriesRepository, sublistingCategoriesRepository, } from "../features/products/repository/sublisting-categories.repository";
44
- export type { SublistingCategoryDocument, SublistingCategoryCreateInput, SublistingCategoryUpdateInput, } from "../features/products/schemas/sublisting-categories";
45
41
  export { ProductTemplateRepository, productTemplateRepository, } from "../features/products/repository/product-templates.repository";
46
42
  export type { ProductTemplateDocument, ProductTemplateCreateInput, ProductTemplateUpdateInput, } from "../features/products/schemas/product-templates";
47
43
  export { ProductFeaturesRepository, productFeaturesRepository, } from "../features/products/repository/product-features.repository";
48
44
  export type { ProductFeatureListFilter } from "../features/products/repository/product-features.repository";
49
45
  export { loadProductFeaturesForStore } from "../features/products/repository/loadProductFeatures";
50
- export { BundlesRepository, bundlesRepository, } from "../features/bundles/repository";
@@ -39,11 +39,12 @@ export { EventRepository, EventsRepository, eventRepository, } from "../features
39
39
  export { EventEntryRepository, EventEntriesRepository, eventEntryRepository, } from "../features/events/repository/event-entry.repository";
40
40
  export { NewsletterRepository, newsletterRepository, } from "../core/newsletter.repository";
41
41
  export { CopilotLogRepository, copilotLogRepository } from "../core";
42
- export { BrandsRepository, brandsRepository, } from "../features/brands/repository/brands.repository";
43
42
  export { ScammerRepository, scammerRepository, } from "../features/scams/repository/scammer.repository";
44
- export { SublistingCategoriesRepository, sublistingCategoriesRepository, } from "../features/products/repository/sublisting-categories.repository";
43
+ // SB-UNI-B SublistingCategoriesRepository deleted; sublistings now live on
44
+ // categoriesRepository with categoryType:"sublisting".
45
45
  export { ProductTemplateRepository, productTemplateRepository, } from "../features/products/repository/product-templates.repository";
46
46
  export { ProductFeaturesRepository, productFeaturesRepository, } from "../features/products/repository/product-features.repository";
47
47
  export { loadProductFeaturesForStore } from "../features/products/repository/loadProductFeatures";
48
- // SB1-H — bundles
49
- export { BundlesRepository, bundlesRepository, } from "../features/bundles/repository";
48
+ // SB-UNI-VBundlesRepository deleted; bundles live on categoriesRepository
49
+ // with categoryType:"bundle". See features/categories/repository for the
50
+ // listByType / findBySlugAndType helpers.
@@ -6,7 +6,7 @@
6
6
  * the actual collection-specific seeding logic (800+ lines with PII encryption,
7
7
  * Auth user creation, subcollection handling, etc.).
8
8
  */
9
- export type SeedCollectionName = "users" | "addresses" | "brands" | "categories" | "stores" | "products" | "orders" | "reviews" | "bids" | "coupons" | "carousels" | "carouselSlides" | "homepageSections" | "siteSettings" | "faqs" | "notifications" | "payouts" | "blogPosts" | "events" | "eventEntries" | "sessions" | "storeAddresses" | "carts" | "wishlists" | "history" | "conversations" | "sublistingCategories" | "groupedListings" | "bundles" | "scammerProfiles" | "productFeatures";
9
+ export type SeedCollectionName = "users" | "addresses" | "categories" | "stores" | "products" | "orders" | "reviews" | "bids" | "coupons" | "carousels" | "carouselSlides" | "homepageSections" | "siteSettings" | "faqs" | "notifications" | "payouts" | "blogPosts" | "events" | "eventEntries" | "sessions" | "storeAddresses" | "carts" | "wishlists" | "history" | "conversations" | "groupedListings" | "scammerProfiles" | "productFeatures";
10
10
  export interface SeedOperationResult {
11
11
  success?: boolean;
12
12
  message: string;