@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,9 +1,16 @@
1
- /**
2
- * Support Tickets Seed Data6 tickets across all statuses and categories.
1
+ /*
2
+ * WHY: Seeds support tickets for YGO marketplace 8 tickets across all statuses.
3
+ * WHAT: open (2), in_progress (2), waiting_on_user (1), resolved (2), closed (1).
3
4
  *
4
- * Covers: open, in_progress, waiting_on_user, resolved, closed (2).
5
- * Users: mix of buyers (rahul-sharma, priya-patel, arjun-singh, meera-nair).
6
- * Employee assignee: user-simran-kaur (employee role).
5
+ * EXPORTS:
6
+ * supportTicketsSeedData Array of Partial<SupportTicketDocument> for seed runner
7
+ *
8
+ * @tag domain:support
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
7
14
  */
8
15
  import { SUPPORT_TICKET_FIELDS } from "../constants/field-names";
9
16
  function msg(id, authorId, authorRole, body, daysAgo) {
@@ -17,80 +24,80 @@ function daysBack(n) {
17
24
  export const supportTicketsSeedData = [
18
25
  // ── 1. Order issue — in progress ─────────────────────────────────────────
19
26
  {
20
- id: "ticket-rahul-order-001",
21
- userId: "user-rahul-sharma",
22
- userEmail: "rahul.sharma@example.com",
23
- userDisplayName: "Rahul Sharma",
27
+ id: "ticket-yugi-order-001",
28
+ userId: "user-yugi-muto",
29
+ userEmail: "yugi.muto@example.com",
30
+ userDisplayName: "Yugi Muto",
24
31
  category: "order_issue",
25
32
  subject: "Order delivered but item is missing from the box",
26
- description: "I received order #order-rahul-001-pokemon-etb but the ETB box arrived empty — only the outer packaging was present. Please help.",
27
- orderId: "order-rahul-001-pokemon-etb",
33
+ description: "I received order #order-1-20260515-abc123 but the Dark Magician LOB card was not inside — only the outer packaging and bubble wrap were present. Please help.",
34
+ orderId: "order-1-20260515-abc123",
28
35
  status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.IN_PROGRESS,
29
36
  priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.HIGH,
30
- assignedTo: "user-simran-kaur",
31
- assignedToName: "Simran Kaur",
37
+ assignedTo: "user-admin-letitrip",
38
+ assignedToName: "LetItRip Admin",
32
39
  messages: [
33
- msg("msg-rahul-001-u1", "user-rahul-sharma", "user", "I received my order but it was empty! The seal was broken on arrival.", 5),
34
- msg("msg-rahul-001-s1", "user-simran-kaur", "support", "Hi Rahul, we're sorry to hear this. I've raised a claim with the courier. Could you please share a photo of the packaging?", 4),
35
- msg("msg-rahul-001-u2", "user-rahul-sharma", "user", "Photos attached. The outer tape was clearly cut and resealed.", 3),
40
+ msg("msg-yugi-001-u1", "user-yugi-muto", "user", "I received my order but the card was missing! The seal was broken on arrival.", 5),
41
+ msg("msg-yugi-001-s1", "user-admin-letitrip", "support", "Hi Yugi, we're sorry to hear this. I've raised a claim with the courier. Could you please share a photo of the packaging?", 4),
42
+ msg("msg-yugi-001-u2", "user-yugi-muto", "user", "Photos attached. The outer tape was clearly cut and resealed.", 3),
36
43
  ],
37
44
  createdAt: daysBack(5),
38
45
  updatedAt: daysBack(3),
39
46
  },
40
47
  // ── 2. Open ticket — refund request ───────────────────────────────────────
41
48
  {
42
- id: "ticket-priya-refund-001",
43
- userId: "user-priya-patel",
44
- userEmail: "priya.patel@example.com",
45
- userDisplayName: "Priya Patel",
49
+ id: "ticket-yugi-refund-001",
50
+ userId: "user-yugi-muto",
51
+ userEmail: "yugi.muto@example.com",
52
+ userDisplayName: "Yugi Muto",
46
53
  category: "refund_request",
47
54
  subject: "Requesting refund for cancelled pre-order",
48
- description: "I placed a pre-order for the Nendoroid Rem figure 3 months ago. The store has now closed. I would like a full refund of ₹2,499.",
55
+ description: "I placed a pre-order for the Konami 25th Anniversary Rarity Collection 3 months ago. The store has now closed. I would like a full refund of ₹3,999.",
49
56
  status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.OPEN,
50
57
  priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.NORMAL,
51
58
  messages: [
52
- msg("msg-priya-001-u1", "user-priya-patel", "user", "The store closed without shipping. I paid via Razorpay. Transaction ID: pay_test_abc123.", 2),
59
+ msg("msg-yugi-002-u1", "user-yugi-muto", "user", "The store closed without shipping. I paid via Razorpay. Transaction ID: pay_test_abc123.", 2),
53
60
  ],
54
61
  createdAt: daysBack(2),
55
62
  updatedAt: daysBack(2),
56
63
  },
57
64
  // ── 3. Waiting on user — account recovery ─────────────────────────────────
58
65
  {
59
- id: "ticket-arjun-account-001",
60
- userId: "user-arjun-singh",
61
- userEmail: "arjun.singh@example.com",
62
- userDisplayName: "Arjun Singh",
66
+ id: "ticket-kaiba-account-001",
67
+ userId: "user-seto-kaiba",
68
+ userEmail: "seto.kaiba@example.com",
69
+ userDisplayName: "Seto Kaiba",
63
70
  category: "account",
64
71
  subject: "Cannot log in — OTP not arriving on new phone number",
65
- description: "I changed my phone number and now OTP for login is going to the old number. I cannot access my account.",
72
+ description: "I changed my phone number and now OTP for login is going to the old number. I cannot access my seller dashboard.",
66
73
  status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.WAITING_ON_USER,
67
74
  priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.NORMAL,
68
- assignedTo: "user-simran-kaur",
69
- assignedToName: "Simran Kaur",
75
+ assignedTo: "user-admin-letitrip",
76
+ assignedToName: "LetItRip Admin",
70
77
  messages: [
71
- msg("msg-arjun-001-u1", "user-arjun-singh", "user", "I'm locked out. My old number is no longer active.", 7),
72
- msg("msg-arjun-001-s1", "user-simran-kaur", "support", "Hi Arjun, to verify ownership we need your registered email and last 4 digits of the payment card used on this account. Please reply here.", 6),
78
+ msg("msg-kaiba-001-u1", "user-seto-kaiba", "user", "I'm locked out. My old number is no longer active.", 7),
79
+ msg("msg-kaiba-001-s1", "user-admin-letitrip", "support", "Hi Kaiba, to verify ownership we need your registered email and last 4 digits of the payment card used on this account. Please reply here.", 6),
73
80
  ],
74
81
  createdAt: daysBack(7),
75
82
  updatedAt: daysBack(6),
76
83
  },
77
84
  // ── 4. Resolved — listing dispute ─────────────────────────────────────────
78
85
  {
79
- id: "ticket-meera-dispute-001",
80
- userId: "user-meera-nair",
81
- userEmail: "meera.nair@example.com",
82
- userDisplayName: "Meera Nair",
86
+ id: "ticket-yugi-dispute-001",
87
+ userId: "user-yugi-muto",
88
+ userEmail: "yugi.muto@example.com",
89
+ userDisplayName: "Yugi Muto",
83
90
  category: "listing_dispute",
84
- subject: "Product description says mint condition but item is heavily played",
85
- description: "The Beyblade BX-01 I received is scratched and worn. The listing said mint/unused. I want to return it.",
91
+ subject: "Product description says near mint but card is heavily played",
92
+ description: "The Mirror Force MRD 1st Edition I received is scratched and has edge wear. The listing said near mint. I want to return it.",
86
93
  status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.RESOLVED,
87
94
  priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.NORMAL,
88
- assignedTo: "user-simran-kaur",
89
- assignedToName: "Simran Kaur",
95
+ assignedTo: "user-admin-letitrip",
96
+ assignedToName: "LetItRip Admin",
90
97
  messages: [
91
- msg("msg-meera-001-u1", "user-meera-nair", "user", "The item is clearly not mint. Here are photos showing the scratches.", 12),
92
- msg("msg-meera-001-s1", "user-simran-kaur", "support", "Thank you for the photos Meera. We've contacted the seller and initiated a return + full refund.", 11),
93
- msg("msg-meera-001-s2", "user-simran-kaur", "support", "Refund of ₹1,200 has been processed back to your original payment method. This ticket is now resolved.", 8),
98
+ msg("msg-yugi-003-u1", "user-yugi-muto", "user", "The card is clearly not near mint. Here are photos showing the scratches and whitening.", 12),
99
+ msg("msg-yugi-003-s1", "user-admin-letitrip", "support", "Thank you for the photos Yugi. We've contacted the seller and initiated a return + full refund.", 11),
100
+ msg("msg-yugi-003-s2", "user-admin-letitrip", "support", "Refund of ₹15,000 has been processed back to your original payment method. This ticket is now resolved.", 8),
94
101
  ],
95
102
  resolvedAt: daysBack(8),
96
103
  createdAt: daysBack(12),
@@ -98,19 +105,19 @@ export const supportTicketsSeedData = [
98
105
  },
99
106
  // ── 5. Closed — auction dispute (terminal) ────────────────────────────────
100
107
  {
101
- id: "ticket-rahul-auction-001",
102
- userId: "user-rahul-sharma",
103
- userEmail: "rahul.sharma@example.com",
104
- userDisplayName: "Rahul Sharma",
108
+ id: "ticket-yugi-auction-001",
109
+ userId: "user-yugi-muto",
110
+ userEmail: "yugi.muto@example.com",
111
+ userDisplayName: "Yugi Muto",
105
112
  category: "auction_dispute",
106
- subject: "Winning bid was removed from auction",
107
- description: "I won the PSA 9 Charizard auction but my winning bid was removed without explanation.",
113
+ subject: "Winning bid was removed from Blue-Eyes auction",
114
+ description: "I won the Blue-Eyes White Dragon LOB 1st Ed PSA 10 auction but my winning bid was removed without explanation.",
108
115
  status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.CLOSED,
109
116
  priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.LOW,
110
117
  messages: [
111
- msg("msg-rahul-002-u1", "user-rahul-sharma", "user", "My winning bid was cancelled. I have a screenshot.", 20),
112
- msg("msg-rahul-002-s1", "user-simran-kaur", "support", "Hi Rahul, after reviewing the auction logs we found a duplicate bid was submitted. The correct winning bid remains active. No action needed.", 18),
113
- msg("msg-rahul-002-u2", "user-rahul-sharma", "user", "Understood, thanks for clarifying.", 17),
118
+ msg("msg-yugi-004-u1", "user-yugi-muto", "user", "My winning bid was cancelled. I have a screenshot.", 20),
119
+ msg("msg-yugi-004-s1", "user-admin-letitrip", "support", "Hi Yugi, after reviewing the auction logs we found a duplicate bid was submitted. The correct winning bid remains active. No action needed.", 18),
120
+ msg("msg-yugi-004-u2", "user-yugi-muto", "user", "Understood, thanks for clarifying.", 17),
114
121
  ],
115
122
  closedAt: daysBack(17),
116
123
  createdAt: daysBack(20),
@@ -118,60 +125,60 @@ export const supportTicketsSeedData = [
118
125
  },
119
126
  // ── 6. Open — general inquiry ─────────────────────────────────────────────
120
127
  {
121
- id: "ticket-kavya-general-001",
122
- userId: "user-kavya-iyer",
123
- userEmail: "kavya.iyer@example.com",
124
- userDisplayName: "Kavya Iyer",
128
+ id: "ticket-kaiba-general-001",
129
+ userId: "user-seto-kaiba",
130
+ userEmail: "seto.kaiba@example.com",
131
+ userDisplayName: "Seto Kaiba",
125
132
  category: "general",
126
- subject: "How do I become a verified seller?",
127
- description: "I would like to start selling Pokémon cards on LetItRip. What are the steps to get verified and open a store?",
133
+ subject: "How do I list graded slabs with PSA verification?",
134
+ description: "I want to list my PSA 10 Blue-Eyes White Dragon with the PSA cert number visible and verified. What are the steps?",
128
135
  status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.OPEN,
129
136
  priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.LOW,
130
137
  messages: [
131
- msg("msg-kavya-001-u1", "user-kavya-iyer", "user", "I've read the FAQ but couldn't find the exact verification requirements.", 1),
138
+ msg("msg-kaiba-002-u1", "user-seto-kaiba", "user", "I've read the FAQ but couldn't find the exact grading verification requirements for PSA slabs.", 1),
132
139
  ],
133
140
  createdAt: daysBack(1),
134
141
  updatedAt: daysBack(1),
135
142
  },
136
143
  // ── 7. Resolved — escalated fraud report (admin handled) ──────────────────
137
144
  {
138
- id: "ticket-meera-fraud-002",
139
- userId: "user-meera-nair",
140
- userEmail: "meera.nair@example.com",
141
- userDisplayName: "Meera Nair",
145
+ id: "ticket-yugi-fraud-001",
146
+ userId: "user-yugi-muto",
147
+ userEmail: "yugi.muto@example.com",
148
+ userDisplayName: "Yugi Muto",
142
149
  category: "scam_report",
143
150
  subject: "Seller sent empty box and is now unreachable",
144
- description: "I paid Rs 8,499 for a S.H.Figuarts Broly via Razorpay. The seller (store-beyblade-arena) has not responded in 7 days and the tracking shows the box was 200g — way too light for the figure.",
151
+ description: "I paid 8,499 for a Dark Magician Girl IOC 1st Edition via Razorpay. The seller from Kaiba Corp has not responded in 7 days and the tracking shows the box was 200g — way too light for a graded slab.",
145
152
  status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.RESOLVED,
146
153
  priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.HIGH,
147
154
  assignedTo: "user-admin-letitrip",
148
155
  assignedToName: "LetItRip Admin",
149
156
  messages: [
150
- msg("msg-meera-002-u1", "user-meera-nair", "user", "I have the weight receipt from Delhivery. 200g is impossible for this figure. The seller is not replying on messages or phone.", 10),
151
- msg("msg-meera-002-s1", "user-simran-kaur", "support", "Hi Meera, I have escalated this to our admin team for review as it qualifies as a potential fraud case. You will hear back within 24 hours.", 9),
152
- msg("msg-meera-002-a1", "user-admin-letitrip", "support", "Hi Meera, this is the LetItRip admin. I have reviewed the shipment weight log and the seller communication history. We are initiating a full refund of Rs 8,499 under our buyer protection policy. The seller account has been suspended pending investigation.", 8),
153
- msg("msg-meera-002-u2", "user-meera-nair", "user", "Thank you so much. I really appreciate the quick escalation.", 7),
157
+ msg("msg-yugi-005-u1", "user-yugi-muto", "user", "I have the weight receipt from Delhivery. 200g is impossible for a graded slab. The seller is not replying on messages or phone.", 10),
158
+ msg("msg-yugi-005-s1", "user-admin-letitrip", "support", "Hi Yugi, I have escalated this to our admin team for review as it qualifies as a potential fraud case. You will hear back within 24 hours.", 9),
159
+ msg("msg-yugi-005-a1", "user-admin-letitrip", "support", "Hi Yugi, this is the LetItRip admin. I have reviewed the shipment weight log and the seller communication history. We are initiating a full refund of 8,499 under our buyer protection policy. The seller account has been suspended pending investigation.", 8),
160
+ msg("msg-yugi-005-u2", "user-yugi-muto", "user", "Thank you so much. I really appreciate the quick escalation.", 7),
154
161
  ],
155
162
  resolvedAt: daysBack(7),
156
163
  createdAt: daysBack(10),
157
164
  updatedAt: daysBack(7),
158
165
  },
159
- // ── 8. In-progress — seller account ban appeal (admin handling) ────────────
166
+ // ── 8. In-progress — seller store suspension appeal (admin handling) ──────
160
167
  {
161
- id: "ticket-rohit-ban-appeal-001",
162
- userId: "user-rohit-joshi",
163
- userEmail: "rohit.joshi@example.com",
164
- userDisplayName: "Rohit Joshi",
168
+ id: "ticket-kaiba-ban-appeal-001",
169
+ userId: "user-seto-kaiba",
170
+ userEmail: "seto.kaiba@example.com",
171
+ userDisplayName: "Seto Kaiba",
165
172
  category: "account",
166
173
  subject: "My store was suspended — I believe it was a mistake",
167
- description: "My store Beyblade Arena was suspended 2 days ago. I received no email explanation. I have 100% positive reviews and have never violated any policy. Please review.",
174
+ description: "My store Kaiba Corp Card Vault was suspended 2 days ago. I received no email explanation. I have 100% positive reviews and have never violated any policy. Please review.",
168
175
  status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.IN_PROGRESS,
169
176
  priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.HIGH,
170
177
  assignedTo: "user-admin-letitrip",
171
178
  assignedToName: "LetItRip Admin",
172
179
  messages: [
173
- msg("msg-rohit-001-u1", "user-rohit-joshi", "user", "I run a legitimate business. I have 47 verified reviews and never had a single complaint. Please explain the suspension.", 2),
174
- msg("msg-rohit-001-a1", "user-admin-letitrip", "support", "Hi Rohit, your store was suspended as part of an automatic fraud flag triggered by a buyer report. I am manually reviewing your transaction history and the specific report. Please share your business GST number and a copy of your most recent bank statement showing the Razorpay settlements for verification.", 1),
180
+ msg("msg-kaiba-003-u1", "user-seto-kaiba", "user", "I run a legitimate business. I have verified reviews and never had a single complaint. Please explain the suspension.", 2),
181
+ msg("msg-kaiba-003-a1", "user-admin-letitrip", "support", "Hi Kaiba, your store was suspended as part of an automatic fraud flag triggered by a buyer report. I am manually reviewing your transaction history and the specific report. Please share your business GST number and a copy of your most recent bank statement showing the Razorpay settlements for verification.", 1),
175
182
  ],
176
183
  createdAt: daysBack(2),
177
184
  updatedAt: daysBack(1),
@@ -1,7 +1,2 @@
1
- /**
2
- * Users Seed Data — Collectibles Marketplace
3
- * 9 users: 1 admin, 4 sellers (one per collectibles vertical), 4 buyers.
4
- * id === uid === slug convention. Indian market locale.
5
- */
6
1
  import type { UserDocument } from "../features/auth/schemas";
7
2
  export declare const usersSeedData: Partial<UserDocument>[];