@mohasinac/appkit 2.7.53 → 2.7.55

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 (197) hide show
  1. package/dist/_internal/client/features/layout/DashboardLayoutClient.js +1 -1
  2. package/dist/_internal/server/jobs/core/auctionSettlement.js +6 -3
  3. package/dist/_internal/server/jobs/core/bundleStockSync.js +9 -7
  4. package/dist/_internal/server/jobs/core/onProductStockChange.d.ts +12 -3
  5. package/dist/_internal/server/jobs/core/onProductStockChange.js +12 -13
  6. package/dist/_internal/server/jobs/core/onProductWrite.js +1 -3
  7. package/dist/_internal/server/jobs/handlers/onProductStockChange.js +11 -2
  8. package/dist/_internal/server/jobs/runtime/adapters/firebase.js +5 -14
  9. package/dist/_internal/shared/actions/action-registry.js +827 -4
  10. package/dist/_internal/shared/features/events/schema.d.ts +4 -4
  11. package/dist/client.d.ts +2 -0
  12. package/dist/client.js +1 -0
  13. package/dist/constants/api-endpoints.d.ts +3 -0
  14. package/dist/constants/api-endpoints.js +1 -0
  15. package/dist/constants/field-names.d.ts +4 -3
  16. package/dist/constants/field-names.js +8 -8
  17. package/dist/errors/error-codes.d.ts +3 -0
  18. package/dist/errors/error-codes.js +3 -0
  19. package/dist/errors/messages.d.ts +3 -0
  20. package/dist/errors/messages.js +3 -0
  21. package/dist/features/account/components/UserOffersPanel.js +2 -1
  22. package/dist/features/admin/components/AdminAllEventEntriesView.js +4 -3
  23. package/dist/features/admin/components/AdminBidsView.js +5 -3
  24. package/dist/features/admin/components/AdminBlogView.js +3 -2
  25. package/dist/features/admin/components/AdminBrandsView.js +2 -1
  26. package/dist/features/admin/components/AdminBundleEditorView.js +4 -5
  27. package/dist/features/admin/components/AdminBundlesView.js +3 -3
  28. package/dist/features/admin/components/AdminCarouselView.d.ts +2 -1
  29. package/dist/features/admin/components/AdminCarouselView.js +14 -5
  30. package/dist/features/admin/components/AdminCategoriesView.js +2 -1
  31. package/dist/features/admin/components/AdminContactView.d.ts +4 -1
  32. package/dist/features/admin/components/AdminContactView.js +27 -7
  33. package/dist/features/admin/components/AdminCouponsView.d.ts +3 -1
  34. package/dist/features/admin/components/AdminCouponsView.js +17 -3
  35. package/dist/features/admin/components/AdminFaqsView.d.ts +3 -1
  36. package/dist/features/admin/components/AdminFaqsView.js +18 -4
  37. package/dist/features/admin/components/AdminFeaturesView.js +2 -1
  38. package/dist/features/admin/components/AdminMediaView.js +3 -2
  39. package/dist/features/admin/components/AdminNavigationView.js +3 -2
  40. package/dist/features/admin/components/AdminNewsletterView.d.ts +2 -1
  41. package/dist/features/admin/components/AdminNewsletterView.js +13 -4
  42. package/dist/features/admin/components/AdminNotificationsView.js +6 -4
  43. package/dist/features/admin/components/AdminOrdersView.js +4 -3
  44. package/dist/features/admin/components/AdminPayoutsView.js +2 -2
  45. package/dist/features/admin/components/AdminPrizeDrawsView.js +2 -1
  46. package/dist/features/admin/components/AdminProductsView.js +3 -3
  47. package/dist/features/admin/components/AdminReviewsView.js +4 -3
  48. package/dist/features/admin/components/AdminScammersView.js +2 -1
  49. package/dist/features/admin/components/AdminSessionsView.js +5 -3
  50. package/dist/features/admin/components/AdminStoresView.js +2 -2
  51. package/dist/features/admin/components/AdminSublistingCategoriesView.d.ts +5 -1
  52. package/dist/features/admin/components/AdminSublistingCategoriesView.js +12 -3
  53. package/dist/features/admin/components/AdminSupportTicketsView.js +2 -1
  54. package/dist/features/admin/components/AdminTeamView.d.ts +2 -1
  55. package/dist/features/admin/components/AdminTeamView.js +13 -4
  56. package/dist/features/admin/components/AdminUsersView.js +2 -2
  57. package/dist/features/admin/types/product.types.d.ts +1 -1
  58. package/dist/features/admin/types/product.types.js +2 -3
  59. package/dist/features/auctions/actions/bid-actions.d.ts +9 -0
  60. package/dist/features/auctions/actions/bid-actions.js +61 -0
  61. package/dist/features/auctions/components/AuctionDetailPageView.d.ts +2 -1
  62. package/dist/features/auctions/components/AuctionDetailPageView.js +5 -4
  63. package/dist/features/auctions/components/PlaceBidFormClient.d.ts +3 -1
  64. package/dist/features/auctions/components/PlaceBidFormClient.js +32 -2
  65. package/dist/features/auctions/types/index.d.ts +1 -1
  66. package/dist/features/layout/AppLayoutShell.js +1 -1
  67. package/dist/features/pre-orders/components/PreOrdersIndexListing.js +2 -11
  68. package/dist/features/products/api/[id]/route.js +4 -8
  69. package/dist/features/products/api/route.js +1 -3
  70. package/dist/features/products/components/AuctionsIndexListing.js +3 -11
  71. package/dist/features/products/components/PrizeDrawsIndexListing.js +2 -10
  72. package/dist/features/products/components/ProductFilters.d.ts +33 -9
  73. package/dist/features/products/components/ProductFilters.js +6 -29
  74. package/dist/features/products/components/ProductForm.js +2 -3
  75. package/dist/features/products/constants/action-defs.d.ts +86 -7
  76. package/dist/features/products/constants/action-defs.js +99 -7
  77. package/dist/features/products/constants/sieve.d.ts +162 -0
  78. package/dist/features/products/constants/sieve.js +95 -0
  79. package/dist/features/products/repository/products.repository.d.ts +5 -0
  80. package/dist/features/products/repository/products.repository.js +23 -3
  81. package/dist/features/products/schemas/firestore.d.ts +4 -4
  82. package/dist/features/products/schemas/firestore.js +2 -3
  83. package/dist/features/products/schemas/index.d.ts +6 -6
  84. package/dist/features/products/schemas/index.js +2 -6
  85. package/dist/features/products/types/index.d.ts +1 -1
  86. package/dist/features/seller/actions/offer-actions.js +2 -2
  87. package/dist/features/seller/components/QuickProductForm.d.ts +13 -0
  88. package/dist/features/seller/components/QuickProductForm.js +50 -0
  89. package/dist/features/seller/components/SellerAuctionsView.d.ts +4 -1
  90. package/dist/features/seller/components/SellerAuctionsView.js +37 -3
  91. package/dist/features/seller/components/SellerBidsView.js +2 -1
  92. package/dist/features/seller/components/SellerBundlesView.d.ts +3 -1
  93. package/dist/features/seller/components/SellerBundlesView.js +38 -5
  94. package/dist/features/seller/components/SellerClassifiedView.d.ts +3 -1
  95. package/dist/features/seller/components/SellerClassifiedView.js +37 -4
  96. package/dist/features/seller/components/SellerDigitalCodesView.d.ts +3 -1
  97. package/dist/features/seller/components/SellerDigitalCodesView.js +37 -4
  98. package/dist/features/seller/components/SellerGoogleReviewsView.js +2 -1
  99. package/dist/features/seller/components/SellerGroupedListingsView.js +3 -2
  100. package/dist/features/seller/components/SellerLiveView.d.ts +3 -1
  101. package/dist/features/seller/components/SellerLiveView.js +37 -4
  102. package/dist/features/seller/components/SellerOffersPanel.js +2 -1
  103. package/dist/features/seller/components/SellerOffersView.d.ts +4 -1
  104. package/dist/features/seller/components/SellerOffersView.js +8 -3
  105. package/dist/features/seller/components/SellerPayoutsView.d.ts +3 -1
  106. package/dist/features/seller/components/SellerPayoutsView.js +7 -3
  107. package/dist/features/seller/components/SellerPreOrdersView.d.ts +2 -1
  108. package/dist/features/seller/components/SellerPreOrdersView.js +30 -7
  109. package/dist/features/seller/components/SellerPrizeDrawsView.d.ts +2 -1
  110. package/dist/features/seller/components/SellerPrizeDrawsView.js +30 -7
  111. package/dist/features/seller/components/SellerProductShell.js +12 -0
  112. package/dist/features/seller/components/SellerReviewsView.js +2 -1
  113. package/dist/features/seller/components/SellerShippingConfigsView.js +3 -2
  114. package/dist/features/seller/components/SellerStoreCategoriesView.js +6 -5
  115. package/dist/features/seller/components/SellerTemplatesView.js +4 -3
  116. package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +30 -16
  117. package/dist/features/wishlist/types/index.d.ts +1 -1
  118. package/dist/index.d.ts +6 -3
  119. package/dist/index.js +6 -4
  120. package/dist/seed/addresses-seed-data.d.ts +2 -18
  121. package/dist/seed/addresses-seed-data.js +137 -203
  122. package/dist/seed/bids-seed-data.d.ts +2 -8
  123. package/dist/seed/bids-seed-data.js +172 -648
  124. package/dist/seed/blog-posts-seed-data.d.ts +0 -5
  125. package/dist/seed/blog-posts-seed-data.js +341 -596
  126. package/dist/seed/carousel-slides-seed-data.d.ts +0 -5
  127. package/dist/seed/carousel-slides-seed-data.js +61 -192
  128. package/dist/seed/carousels-seed-data.js +18 -1
  129. package/dist/seed/cart-seed-data.d.ts +1 -18
  130. package/dist/seed/cart-seed-data.js +116 -293
  131. package/dist/seed/categories-seed-data.d.ts +0 -6
  132. package/dist/seed/categories-seed-data.js +1409 -1537
  133. package/dist/seed/claimed-coupons-seed-data.d.ts +0 -11
  134. package/dist/seed/claimed-coupons-seed-data.js +32 -29
  135. package/dist/seed/conversations-seed-data.d.ts +0 -6
  136. package/dist/seed/conversations-seed-data.js +132 -280
  137. package/dist/seed/coupon-usage-seed-data.d.ts +0 -16
  138. package/dist/seed/coupon-usage-seed-data.js +30 -44
  139. package/dist/seed/coupons-seed-data.d.ts +0 -6
  140. package/dist/seed/coupons-seed-data.js +141 -489
  141. package/dist/seed/events-seed-data.d.ts +0 -6
  142. package/dist/seed/events-seed-data.js +201 -379
  143. package/dist/seed/faq-seed-data.d.ts +0 -14
  144. package/dist/seed/faq-seed-data.js +609 -1184
  145. package/dist/seed/grouped-listings-seed-data.d.ts +119 -8
  146. package/dist/seed/grouped-listings-seed-data.js +148 -233
  147. package/dist/seed/history-seed-data.d.ts +0 -7
  148. package/dist/seed/history-seed-data.js +50 -54
  149. package/dist/seed/homepage-sections-seed-data.d.ts +0 -5
  150. package/dist/seed/homepage-sections-seed-data.js +83 -175
  151. package/dist/seed/index.d.ts +1 -1
  152. package/dist/seed/index.js +1 -1
  153. package/dist/seed/manifest.js +2 -2
  154. package/dist/seed/notifications-seed-data.d.ts +0 -6
  155. package/dist/seed/notifications-seed-data.js +309 -196
  156. package/dist/seed/offers-seed-data.d.ts +0 -8
  157. package/dist/seed/offers-seed-data.js +118 -197
  158. package/dist/seed/orders-seed-data.d.ts +2 -8
  159. package/dist/seed/orders-seed-data.js +248 -1510
  160. package/dist/seed/payouts-seed-data.d.ts +0 -6
  161. package/dist/seed/payouts-seed-data.js +102 -441
  162. package/dist/seed/products-auctions-seed-data.d.ts +1 -14
  163. package/dist/seed/products-auctions-seed-data.js +612 -1084
  164. package/dist/seed/products-preorders-seed-data.d.ts +119 -14
  165. package/dist/seed/products-preorders-seed-data.js +154 -455
  166. package/dist/seed/products-standard-seed-data.d.ts +1 -15
  167. package/dist/seed/products-standard-seed-data.js +1355 -4128
  168. package/dist/seed/reviews-seed-data.d.ts +2 -8
  169. package/dist/seed/reviews-seed-data.js +99 -1182
  170. package/dist/seed/scammers-seed-data.d.ts +0 -15
  171. package/dist/seed/scammers-seed-data.js +36 -37
  172. package/dist/seed/sessions-seed-data.d.ts +0 -13
  173. package/dist/seed/sessions-seed-data.js +58 -335
  174. package/dist/seed/site-settings-seed-data.d.ts +0 -4
  175. package/dist/seed/site-settings-seed-data.js +61 -52
  176. package/dist/seed/store-addresses-seed-data.js +27 -151
  177. package/dist/seed/store-extensions-seed-data.d.ts +0 -7
  178. package/dist/seed/store-extensions-seed-data.js +147 -261
  179. package/dist/seed/stores-seed-data.d.ts +0 -5
  180. package/dist/seed/stores-seed-data.js +222 -184
  181. package/dist/seed/sub-listings-seed-data.d.ts +119 -0
  182. package/dist/seed/sub-listings-seed-data.js +447 -0
  183. package/dist/seed/support-tickets-seed-data.d.ts +0 -7
  184. package/dist/seed/support-tickets-seed-data.js +82 -75
  185. package/dist/seed/users-seed-data.d.ts +0 -5
  186. package/dist/seed/users-seed-data.js +279 -634
  187. package/dist/seed/wishlists-seed-data.d.ts +0 -9
  188. package/dist/seed/wishlists-seed-data.js +36 -52
  189. package/dist/seo/json-ld.js +6 -4
  190. package/dist/styles.css +8052 -3
  191. package/dist/tailwind-utilities.css +1 -1
  192. package/dist/utils/index.d.ts +1 -0
  193. package/dist/utils/index.js +1 -0
  194. package/dist/utils/search-tokens.d.ts +2 -0
  195. package/dist/utils/search-tokens.js +21 -0
  196. package/package.json +2 -2
  197. package/scripts/seed-cli.mjs +2 -2
@@ -1,51 +1,79 @@
1
- /**
2
- * Offers Seed Data12 offers across all statuses.
1
+ /*
2
+ * WHY: Seeds offers for YGO marketplace 8 offers across all statuses.
3
+ * WHAT: pending (2), accepted (1), declined (1), countered (1), expired (1), withdrawn (1), paid (1).
3
4
  *
4
- * Covers: pending (×3), accepted (×1), declined (×2), countered (×2),
5
- * expired (×2), withdrawn (×1), paid (×2).
6
- * Admin as buyer: 1 pending (Hot Wheels Banana Camaro) + 1 paid (ALTER Rem Wedding).
7
- * Paid offers link to order-admin-043-alter-rem-offer and order-arjun-044-bx01-offer.
5
+ * EXPORTS:
6
+ * offersSeedData Array of Partial<OfferDocument> for seed runner
7
+ *
8
+ * @tag domain:offers,seller
9
+ * @tag layer:seed
10
+ * @tag pattern:none
11
+ * @tag access:server-only
12
+ * @tag consumers:seed/index.ts,seed/runner.ts,SeedPanel
13
+ * @tag sideEffects:none
8
14
  */
9
15
  import { OfferStatusValues } from "../features/seller/schemas/firestore";
10
16
  const NOW = new Date();
11
17
  const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
12
18
  const daysFromNow = (n) => new Date(NOW.getTime() + n * 86400000);
13
19
  export const offersSeedData = [
14
- // ── 1. PENDING — admin as buyerHot Wheels Banana Camaro Redline ─────────
20
+ // ── 1. PENDING — Yugi KaibaDark Magician Girl IOC ──────────────────
15
21
  {
16
- id: "offer-admin-hw-banana-pending",
17
- productId: "product-hot-wheels-redline-banana-1968",
18
- productTitle: "Hot Wheels 1968 Redline Banana Camaro (Custom)",
19
- storeId: "store-diecast-depot",
20
- storeName: "Diecast Depot",
21
- buyerUid: "user-admin-letitrip",
22
- buyerName: "LetItRip Admin",
23
- buyerEmail: "admin@letitrip.in",
24
- listedPrice: 1299900,
25
- offerAmount: 999900,
22
+ id: "offer-yugi-dmg-ioc-pending",
23
+ productId: "product-dark-magician-girl-ioc",
24
+ productTitle: "Dark Magician Girl IOC 1st Edition (NM)",
25
+ storeId: "store-kaiba-corp-cards",
26
+ storeName: "Kaiba Corp Card Vault",
27
+ buyerUid: "user-yugi-muto",
28
+ buyerName: "Yugi Muto",
29
+ buyerEmail: "yugi.muto@letitrip.in",
30
+ listedPrice: 899900,
31
+ offerAmount: 750000,
26
32
  currency: "INR",
27
33
  status: OfferStatusValues.PENDING,
28
- buyerNote: "Interested in this piece. Would you accept Rs 9,999?",
34
+ buyerNote: "Would you accept ₹7,500 for the Dark Magician Girl?",
29
35
  expiresAt: daysFromNow(3),
30
- createdAt: daysAgo(1),
36
+ createdAt: daysAgo(0),
37
+ updatedAt: daysAgo(0),
38
+ },
39
+ // ── 2. COUNTERED — Yugi → Kaiba — Pot of Greed LOB ──────────────────────
40
+ {
41
+ id: "offer-yugi-pot-of-greed-countered",
42
+ productId: "product-pot-of-greed-lob",
43
+ productTitle: "Pot of Greed LOB 1st Edition (NM)",
44
+ storeId: "store-kaiba-corp-cards",
45
+ storeName: "Kaiba Corp Card Vault",
46
+ buyerUid: "user-yugi-muto",
47
+ buyerName: "Yugi Muto",
48
+ buyerEmail: "yugi.muto@letitrip.in",
49
+ listedPrice: 1499900,
50
+ offerAmount: 1200000,
51
+ counterAmount: 1350000,
52
+ currency: "INR",
53
+ status: OfferStatusValues.COUNTERED,
54
+ buyerNote: "₹12,000 — will you take it?",
55
+ sellerNote: "Best I can do is ₹13,500.",
56
+ expiresAt: daysFromNow(2),
57
+ respondedAt: daysAgo(1),
58
+ createdAt: daysAgo(3),
31
59
  updatedAt: daysAgo(1),
32
60
  },
33
- // ── 2. PAID — admin as buyerALTER Rem Wedding (order placed) ───────────
61
+ // ── 3. PAID — Admin KaibaChaos Emperor Dragon IOC (order placed) ───
34
62
  {
35
- id: "offer-admin-alter-rem-paid",
36
- productId: "product-alter-rem-wedding-scale",
37
- productTitle: "ALTER: Re:ZERORem (Wedding Ver.) 1/7 Scale Figure",
38
- storeId: "store-tokyo-toys-india",
39
- storeName: "Tokyo Toys India",
63
+ id: "offer-admin-ced-ioc-paid",
64
+ productId: "product-chaos-emperor-dragon-ioc",
65
+ productTitle: "Chaos Emperor Dragon Envoy of the End IOC 1st Ed",
66
+ storeId: "store-kaiba-corp-cards",
67
+ storeName: "Kaiba Corp Card Vault",
40
68
  buyerUid: "user-admin-letitrip",
41
69
  buyerName: "LetItRip Admin",
42
70
  buyerEmail: "admin@letitrip.in",
43
- listedPrice: 1299900,
44
- offerAmount: 1099900,
45
- lockedPrice: 1099900,
71
+ listedPrice: 2499900,
72
+ offerAmount: 2200000,
73
+ lockedPrice: 2200000,
46
74
  currency: "INR",
47
75
  status: OfferStatusValues.PAID,
48
- buyerNote: "Would you accept Rs 10,999 for this?",
76
+ buyerNote: "Would you accept ₹22,000 for the CED?",
49
77
  sellerNote: "Accepted. Thank you!",
50
78
  expiresAt: daysAgo(3),
51
79
  acceptedAt: daysAgo(12),
@@ -53,145 +81,81 @@ export const offersSeedData = [
53
81
  createdAt: daysAgo(14),
54
82
  updatedAt: daysAgo(11),
55
83
  },
56
- // ── 3. PENDINGRahul Charizard ex SIR from pokemon-palace ────────────
84
+ // ── 4. DECLINEDYugi Admin Mirror Force MRD ───────────────────────
57
85
  {
58
- id: "offer-rahul-charizard-sar-pending",
59
- productId: "product-pokemon-charizard-ex-sar-sv",
60
- productTitle: "Pokemon TCG: Charizard ex Special Illustration Rare (SV3)",
61
- storeId: "store-pokemon-palace",
62
- storeName: "Pokemon Palace",
63
- buyerUid: "user-rahul-sharma",
64
- buyerName: "Rahul Sharma",
65
- buyerEmail: "rahul.sharma@gmail.com",
66
- listedPrice: 349900,
67
- offerAmount: 280000,
68
- currency: "INR",
69
- status: OfferStatusValues.PENDING,
70
- buyerNote: "Can you do Rs 2,800 for this card?",
71
- expiresAt: daysFromNow(5),
72
- createdAt: daysAgo(0),
73
- updatedAt: daysAgo(0),
74
- },
75
- // ── 4. DECLINED — Priya — MAFEX Miles Morales from letitrip-official ───────
76
- {
77
- id: "offer-priya-mafex-miles-declined",
78
- productId: "product-mafex-miles-morales-spiderman",
79
- productTitle: "MAFEX No.240: Miles Morales Spider-Man",
86
+ id: "offer-yugi-mirror-force-declined",
87
+ productId: "product-mirror-force-mrd-1st",
88
+ productTitle: "Mirror Force MRD 1st Edition (NM)",
80
89
  storeId: "store-letitrip-official",
81
90
  storeName: "LetItRip Official",
82
- buyerUid: "user-priya-patel",
83
- buyerName: "Priya Patel",
84
- buyerEmail: "priya.patel@gmail.com",
85
- listedPrice: 849900,
86
- offerAmount: 650000,
91
+ buyerUid: "user-yugi-muto",
92
+ buyerName: "Yugi Muto",
93
+ buyerEmail: "yugi.muto@letitrip.in",
94
+ listedPrice: 1500000,
95
+ offerAmount: 1000000,
87
96
  currency: "INR",
88
97
  status: OfferStatusValues.DECLINED,
89
- buyerNote: "Offering Rs 6,500 — slightly above my budget.",
90
- sellerNote: "Sorry, we cannot go below Rs 7,999 for this item.",
98
+ buyerNote: "Offering ₹10,000 — slightly above my budget.",
99
+ sellerNote: "Sorry, we cannot go below ₹13,999 for this card.",
91
100
  expiresAt: daysAgo(5),
92
101
  respondedAt: daysAgo(8),
93
102
  createdAt: daysAgo(10),
94
103
  updatedAt: daysAgo(8),
95
104
  },
96
- // ── 5. COUNTEREDArjun SHF Goku Ultra Instinct from letitrip-official ──
105
+ // ── 5. EXPIREDKaiba Admin Raigeki LOB ────────────────────────────
97
106
  {
98
- id: "offer-arjun-shf-goku-countered",
99
- productId: "product-shf-goku-ultra-instinct",
100
- productTitle: "S.H.Figuarts Goku Ultra Instinct -Sign-",
107
+ id: "offer-kaiba-raigeki-expired",
108
+ productId: "product-raigeki-lob-nm",
109
+ productTitle: "Raigeki LOB 1st Edition (NM)",
101
110
  storeId: "store-letitrip-official",
102
111
  storeName: "LetItRip Official",
103
- buyerUid: "user-arjun-singh",
104
- buyerName: "Arjun Singh",
105
- buyerEmail: "arjun.singh@gmail.com",
106
- listedPrice: 699900,
107
- offerAmount: 549900,
108
- counterAmount: 649900,
109
- currency: "INR",
110
- status: OfferStatusValues.COUNTERED,
111
- buyerNote: "Rs 5,499 — will you take it?",
112
- sellerNote: "We can do Rs 6,499 as our best price.",
113
- expiresAt: daysFromNow(2),
114
- respondedAt: daysAgo(1),
115
- createdAt: daysAgo(3),
116
- updatedAt: daysAgo(1),
117
- },
118
- // ── 6. EXPIRED — Neha — Blue-Eyes LOB from cardgame-hub ──────────────────
119
- {
120
- id: "offer-neha-blue-eyes-expired",
121
- productId: "product-yugioh-blue-eyes-lob-nm",
122
- productTitle: "Yu-Gi-Oh! Blue-Eyes White Dragon LOB 1st Edition (NM)",
123
- storeId: "store-cardgame-hub",
124
- storeName: "CardGame Hub",
125
- buyerUid: "user-neha-gupta",
126
- buyerName: "Neha Gupta",
127
- buyerEmail: "neha.gupta@gmail.com",
128
- listedPrice: 299900,
129
- offerAmount: 220000,
112
+ buyerUid: "user-seto-kaiba",
113
+ buyerName: "Seto Kaiba",
114
+ buyerEmail: "seto.kaiba@letitrip.in",
115
+ listedPrice: 799900,
116
+ offerAmount: 600000,
130
117
  currency: "INR",
131
118
  status: OfferStatusValues.EXPIRED,
132
- buyerNote: "I can offer Rs 2,200. Let me know.",
119
+ buyerNote: "₹6,000 let me know.",
133
120
  expiresAt: daysAgo(2),
134
121
  createdAt: daysAgo(9),
135
122
  updatedAt: daysAgo(2),
136
123
  },
137
- // ── 7. WITHDRAWN — Vikram Twin Mill 1970 Redline from vintage-vault ──────
124
+ // ── 6. WITHDRAWN — Admin Kaiba Exodia Right Arm ─────────────────────
138
125
  {
139
- id: "offer-vikram-twin-mill-withdrawn",
140
- productId: "product-hot-wheels-twin-mill-1970-redline",
141
- productTitle: "Hot Wheels Vintage: Twin Mill I 1970 Redline (Brown, Near Mint)",
142
- storeId: "store-vintage-vault",
143
- storeName: "Vintage Vault",
144
- buyerUid: "user-vikram-rao",
145
- buyerName: "Vikram Rao",
146
- buyerEmail: "vikram.rao@gmail.com",
147
- listedPrice: 699900,
148
- offerAmount: 549900,
126
+ id: "offer-admin-exodia-arm-withdrawn",
127
+ productId: "product-exodia-right-arm-lob",
128
+ productTitle: "Right Arm of the Forbidden One LOB 1st Ed",
129
+ storeId: "store-kaiba-corp-cards",
130
+ storeName: "Kaiba Corp Card Vault",
131
+ buyerUid: "user-admin-letitrip",
132
+ buyerName: "LetItRip Admin",
133
+ buyerEmail: "admin@letitrip.in",
134
+ listedPrice: 499900,
135
+ offerAmount: 400000,
149
136
  currency: "INR",
150
137
  status: OfferStatusValues.WITHDRAWN,
151
- buyerNote: "Offering Rs 5,499 for the Twin Mill.",
138
+ buyerNote: "Offering ₹4,000 for the Right Arm piece.",
152
139
  expiresAt: daysAgo(3),
153
140
  createdAt: daysAgo(7),
154
141
  updatedAt: daysAgo(5),
155
142
  },
156
- // ── 8. PAIDArjun BX-01 Dran Sword from beyblade-arena (offer order) ───
157
- {
158
- id: "offer-arjun-bx01-paid",
159
- productId: "product-beyblade-x-bx01-dran-sword-starter-pack",
160
- productTitle: "Beyblade X: BX-01 Dran Sword 3-60F Starter Pack",
161
- storeId: "store-beyblade-arena",
162
- storeName: "Beyblade Arena",
163
- buyerUid: "user-arjun-singh",
164
- buyerName: "Arjun Singh",
165
- buyerEmail: "arjun.singh@gmail.com",
166
- listedPrice: 159900,
167
- offerAmount: 129900,
168
- lockedPrice: 129900,
169
- currency: "INR",
170
- status: OfferStatusValues.PAID,
171
- buyerNote: "Rs 1,299 for the BX-01 starter — deal?",
172
- sellerNote: "Sure, accepted!",
173
- expiresAt: daysAgo(10),
174
- acceptedAt: daysAgo(20),
175
- respondedAt: daysAgo(20),
176
- createdAt: daysAgo(22),
177
- updatedAt: daysAgo(19),
178
- },
179
- // ── 9. ACCEPTED — Pooja — GSC Aqua 1/7 from tokyo-toys (pending payment) ───
143
+ // ── 7. ACCEPTEDKaiba Admin Starter Deck Yugi (pending payment) ───
180
144
  {
181
- id: "offer-pooja-gsc-aqua-accepted",
182
- productId: "product-gsc-aqua-konosuba-scale",
183
- productTitle: "Good Smile Company: KonoSuba Aqua 1/7 Scale Figure",
184
- storeId: "store-tokyo-toys-india",
185
- storeName: "Tokyo Toys India",
186
- buyerUid: "user-pooja-sharma",
187
- buyerName: "Pooja Sharma",
188
- buyerEmail: "pooja.sharma@gmail.com",
189
- listedPrice: 899900,
190
- offerAmount: 749900,
191
- lockedPrice: 749900,
145
+ id: "offer-kaiba-starter-deck-accepted",
146
+ productId: "product-starter-deck-yugi-sealed",
147
+ productTitle: "Starter Deck YugiSealed (2002)",
148
+ storeId: "store-letitrip-official",
149
+ storeName: "LetItRip Official",
150
+ buyerUid: "user-seto-kaiba",
151
+ buyerName: "Seto Kaiba",
152
+ buyerEmail: "seto.kaiba@letitrip.in",
153
+ listedPrice: 599900,
154
+ offerAmount: 499900,
155
+ lockedPrice: 499900,
192
156
  currency: "INR",
193
157
  status: OfferStatusValues.ACCEPTED,
194
- buyerNote: "Rs 7,499 final offer on the Aqua figure.",
158
+ buyerNote: "₹4,999 final offer on the sealed Starter Deck.",
195
159
  sellerNote: "Accepted! Please complete payment within 24 hours.",
196
160
  expiresAt: daysFromNow(1),
197
161
  acceptedAt: daysAgo(0),
@@ -199,66 +163,23 @@ export const offersSeedData = [
199
163
  createdAt: daysAgo(1),
200
164
  updatedAt: daysAgo(0),
201
165
  },
202
- // ── 10. DECLINEDMeera PG Unleashed RX-78-2 from gundam-galaxy ─────────
203
- {
204
- id: "offer-meera-pg-rx78-declined",
205
- productId: "product-pg-unleashed-rx78-2",
206
- productTitle: "Bandai PG Unleashed 1/60: RX-78-2 Gundam",
207
- storeId: "store-gundam-galaxy",
208
- storeName: "Gundam Galaxy",
209
- buyerUid: "user-meera-nair",
210
- buyerName: "Meera Nair",
211
- buyerEmail: "meera.nair@gmail.com",
212
- listedPrice: 2499900,
213
- offerAmount: 1999900,
214
- currency: "INR",
215
- status: OfferStatusValues.DECLINED,
216
- buyerNote: "Rs 19,999 — this is a big spend, would you consider it?",
217
- sellerNote: "Unfortunately we cannot discount below Rs 22,999 for this kit.",
218
- expiresAt: daysAgo(1),
219
- respondedAt: daysAgo(3),
220
- createdAt: daysAgo(6),
221
- updatedAt: daysAgo(3),
222
- },
223
- // ── 11. COUNTERED — Rohit — OP-05 Booster Box from cardgame-hub ─────────────
166
+ // ── 8. PENDINGAdmin Kaiba Blue-Eyes Ultimate Dragon ──────────────
224
167
  {
225
- id: "offer-rohit-op05-countered",
226
- productId: "product-onepiece-op05-booster-box",
227
- productTitle: "One Piece Card Game: OP-05 Awakening of the New Era Booster Box",
228
- storeId: "store-cardgame-hub",
229
- storeName: "CardGame Hub",
230
- buyerUid: "user-rohit-verma",
231
- buyerName: "Rohit Verma",
232
- buyerEmail: "rohit.verma@gmail.com",
233
- listedPrice: 499900,
234
- offerAmount: 399900,
235
- counterAmount: 449900,
168
+ id: "offer-admin-beud-pending",
169
+ productId: "product-blue-eyes-ultimate-dragon",
170
+ productTitle: "Blue-Eyes Ultimate Dragon LOB 1st Ed",
171
+ storeId: "store-kaiba-corp-cards",
172
+ storeName: "Kaiba Corp Card Vault",
173
+ buyerUid: "user-admin-letitrip",
174
+ buyerName: "LetItRip Admin",
175
+ buyerEmail: "admin@letitrip.in",
176
+ listedPrice: 3999900,
177
+ offerAmount: 3500000,
236
178
  currency: "INR",
237
- status: OfferStatusValues.COUNTERED,
238
- buyerNote: "Can you do Rs 3,999 for the OP-05 box?",
239
- sellerNote: "Best we can do is Rs 4,499 — final price.",
240
- expiresAt: daysFromNow(1),
241
- respondedAt: daysAgo(1),
242
- createdAt: daysAgo(2),
179
+ status: OfferStatusValues.PENDING,
180
+ buyerNote: "Interested in this piece. Would you accept ₹35,000?",
181
+ expiresAt: daysFromNow(3),
182
+ createdAt: daysAgo(1),
243
183
  updatedAt: daysAgo(1),
244
184
  },
245
- // ── 12. EXPIRED — Kavya — Nendoroid Rem from letitrip-official ───────────
246
- {
247
- id: "offer-kavya-nendo-rem-expired",
248
- productId: "product-nendoroid-rem-rezero",
249
- productTitle: "Nendoroid: Re:ZERO — Rem #663",
250
- storeId: "store-letitrip-official",
251
- storeName: "LetItRip Official",
252
- buyerUid: "user-kavya-nair",
253
- buyerName: "Kavya Nair",
254
- buyerEmail: "kavya.nair@gmail.com",
255
- listedPrice: 399900,
256
- offerAmount: 329900,
257
- currency: "INR",
258
- status: OfferStatusValues.EXPIRED,
259
- buyerNote: "Rs 3,299 for the Nendoroid Rem — is this okay?",
260
- expiresAt: daysAgo(3),
261
- createdAt: daysAgo(10),
262
- updatedAt: daysAgo(3),
263
- },
264
185
  ];
@@ -1,8 +1,2 @@
1
- /**
2
- * Orders Seed Data — LetItRip Collectibles Platform
3
- * 10 orders in all status states (pending, processing, shipped, delivered,
4
- * cancelled, refunded, return_requested). Buyer/seller IDs from P15.
5
- * order- prefix (system IDs, not slug-based).
6
- */
7
- import type { OrderDocument } from "../features/orders/schemas";
8
- export declare const ordersSeedData: Partial<OrderDocument>[];
1
+ import type { OrderDocument } from "../features/orders/schemas/firestore";
2
+ export declare const ordersSeedData: OrderDocument[];