@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.
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +1 -1
- package/dist/_internal/server/jobs/core/auctionSettlement.js +6 -3
- package/dist/_internal/server/jobs/core/bundleStockSync.js +9 -7
- package/dist/_internal/server/jobs/core/onProductStockChange.d.ts +12 -3
- package/dist/_internal/server/jobs/core/onProductStockChange.js +12 -13
- package/dist/_internal/server/jobs/core/onProductWrite.js +1 -3
- package/dist/_internal/server/jobs/handlers/onProductStockChange.js +11 -2
- package/dist/_internal/server/jobs/runtime/adapters/firebase.js +5 -14
- package/dist/_internal/shared/actions/action-registry.js +827 -4
- package/dist/_internal/shared/features/events/schema.d.ts +4 -4
- package/dist/client.d.ts +2 -0
- package/dist/client.js +1 -0
- package/dist/constants/api-endpoints.d.ts +3 -0
- package/dist/constants/api-endpoints.js +1 -0
- package/dist/constants/field-names.d.ts +4 -3
- package/dist/constants/field-names.js +8 -8
- package/dist/errors/error-codes.d.ts +3 -0
- package/dist/errors/error-codes.js +3 -0
- package/dist/errors/messages.d.ts +3 -0
- package/dist/errors/messages.js +3 -0
- package/dist/features/account/components/UserOffersPanel.js +2 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.js +4 -3
- package/dist/features/admin/components/AdminBidsView.js +5 -3
- package/dist/features/admin/components/AdminBlogView.js +3 -2
- package/dist/features/admin/components/AdminBrandsView.js +2 -1
- package/dist/features/admin/components/AdminBundleEditorView.js +4 -5
- package/dist/features/admin/components/AdminBundlesView.js +3 -3
- package/dist/features/admin/components/AdminCarouselView.d.ts +2 -1
- package/dist/features/admin/components/AdminCarouselView.js +14 -5
- package/dist/features/admin/components/AdminCategoriesView.js +2 -1
- package/dist/features/admin/components/AdminContactView.d.ts +4 -1
- package/dist/features/admin/components/AdminContactView.js +27 -7
- package/dist/features/admin/components/AdminCouponsView.d.ts +3 -1
- package/dist/features/admin/components/AdminCouponsView.js +17 -3
- package/dist/features/admin/components/AdminFaqsView.d.ts +3 -1
- package/dist/features/admin/components/AdminFaqsView.js +18 -4
- package/dist/features/admin/components/AdminFeaturesView.js +2 -1
- package/dist/features/admin/components/AdminMediaView.js +3 -2
- package/dist/features/admin/components/AdminNavigationView.js +3 -2
- package/dist/features/admin/components/AdminNewsletterView.d.ts +2 -1
- package/dist/features/admin/components/AdminNewsletterView.js +13 -4
- package/dist/features/admin/components/AdminNotificationsView.js +6 -4
- package/dist/features/admin/components/AdminOrdersView.js +4 -3
- package/dist/features/admin/components/AdminPayoutsView.js +2 -2
- package/dist/features/admin/components/AdminPrizeDrawsView.js +2 -1
- package/dist/features/admin/components/AdminProductsView.js +3 -3
- package/dist/features/admin/components/AdminReviewsView.js +4 -3
- package/dist/features/admin/components/AdminScammersView.js +2 -1
- package/dist/features/admin/components/AdminSessionsView.js +5 -3
- package/dist/features/admin/components/AdminStoresView.js +2 -2
- package/dist/features/admin/components/AdminSublistingCategoriesView.d.ts +5 -1
- package/dist/features/admin/components/AdminSublistingCategoriesView.js +12 -3
- package/dist/features/admin/components/AdminSupportTicketsView.js +2 -1
- package/dist/features/admin/components/AdminTeamView.d.ts +2 -1
- package/dist/features/admin/components/AdminTeamView.js +13 -4
- package/dist/features/admin/components/AdminUsersView.js +2 -2
- package/dist/features/admin/types/product.types.d.ts +1 -1
- package/dist/features/admin/types/product.types.js +2 -3
- package/dist/features/auctions/actions/bid-actions.d.ts +9 -0
- package/dist/features/auctions/actions/bid-actions.js +61 -0
- package/dist/features/auctions/components/AuctionDetailPageView.d.ts +2 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +5 -4
- package/dist/features/auctions/components/PlaceBidFormClient.d.ts +3 -1
- package/dist/features/auctions/components/PlaceBidFormClient.js +32 -2
- package/dist/features/auctions/types/index.d.ts +1 -1
- package/dist/features/layout/AppLayoutShell.js +1 -1
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +2 -11
- package/dist/features/products/api/[id]/route.js +4 -8
- package/dist/features/products/api/route.js +1 -3
- package/dist/features/products/components/AuctionsIndexListing.js +3 -11
- package/dist/features/products/components/PrizeDrawsIndexListing.js +2 -10
- package/dist/features/products/components/ProductFilters.d.ts +33 -9
- package/dist/features/products/components/ProductFilters.js +6 -29
- package/dist/features/products/components/ProductForm.js +2 -3
- package/dist/features/products/constants/action-defs.d.ts +86 -7
- package/dist/features/products/constants/action-defs.js +99 -7
- package/dist/features/products/constants/sieve.d.ts +162 -0
- package/dist/features/products/constants/sieve.js +95 -0
- package/dist/features/products/repository/products.repository.d.ts +5 -0
- package/dist/features/products/repository/products.repository.js +23 -3
- package/dist/features/products/schemas/firestore.d.ts +4 -4
- package/dist/features/products/schemas/firestore.js +2 -3
- package/dist/features/products/schemas/index.d.ts +6 -6
- package/dist/features/products/schemas/index.js +2 -6
- package/dist/features/products/types/index.d.ts +1 -1
- package/dist/features/seller/actions/offer-actions.js +2 -2
- package/dist/features/seller/components/QuickProductForm.d.ts +13 -0
- package/dist/features/seller/components/QuickProductForm.js +50 -0
- package/dist/features/seller/components/SellerAuctionsView.d.ts +4 -1
- package/dist/features/seller/components/SellerAuctionsView.js +37 -3
- package/dist/features/seller/components/SellerBidsView.js +2 -1
- package/dist/features/seller/components/SellerBundlesView.d.ts +3 -1
- package/dist/features/seller/components/SellerBundlesView.js +38 -5
- package/dist/features/seller/components/SellerClassifiedView.d.ts +3 -1
- package/dist/features/seller/components/SellerClassifiedView.js +37 -4
- package/dist/features/seller/components/SellerDigitalCodesView.d.ts +3 -1
- package/dist/features/seller/components/SellerDigitalCodesView.js +37 -4
- package/dist/features/seller/components/SellerGoogleReviewsView.js +2 -1
- package/dist/features/seller/components/SellerGroupedListingsView.js +3 -2
- package/dist/features/seller/components/SellerLiveView.d.ts +3 -1
- package/dist/features/seller/components/SellerLiveView.js +37 -4
- package/dist/features/seller/components/SellerOffersPanel.js +2 -1
- package/dist/features/seller/components/SellerOffersView.d.ts +4 -1
- package/dist/features/seller/components/SellerOffersView.js +8 -3
- package/dist/features/seller/components/SellerPayoutsView.d.ts +3 -1
- package/dist/features/seller/components/SellerPayoutsView.js +7 -3
- package/dist/features/seller/components/SellerPreOrdersView.d.ts +2 -1
- package/dist/features/seller/components/SellerPreOrdersView.js +30 -7
- package/dist/features/seller/components/SellerPrizeDrawsView.d.ts +2 -1
- package/dist/features/seller/components/SellerPrizeDrawsView.js +30 -7
- package/dist/features/seller/components/SellerProductShell.js +12 -0
- package/dist/features/seller/components/SellerReviewsView.js +2 -1
- package/dist/features/seller/components/SellerShippingConfigsView.js +3 -2
- package/dist/features/seller/components/SellerStoreCategoriesView.js +6 -5
- package/dist/features/seller/components/SellerTemplatesView.js +4 -3
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +30 -16
- package/dist/features/wishlist/types/index.d.ts +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +6 -4
- package/dist/seed/addresses-seed-data.d.ts +2 -18
- package/dist/seed/addresses-seed-data.js +137 -203
- package/dist/seed/bids-seed-data.d.ts +2 -8
- package/dist/seed/bids-seed-data.js +172 -648
- package/dist/seed/blog-posts-seed-data.d.ts +0 -5
- package/dist/seed/blog-posts-seed-data.js +341 -596
- package/dist/seed/carousel-slides-seed-data.d.ts +0 -5
- package/dist/seed/carousel-slides-seed-data.js +61 -192
- package/dist/seed/carousels-seed-data.js +18 -1
- package/dist/seed/cart-seed-data.d.ts +1 -18
- package/dist/seed/cart-seed-data.js +116 -293
- package/dist/seed/categories-seed-data.d.ts +0 -6
- package/dist/seed/categories-seed-data.js +1409 -1537
- package/dist/seed/claimed-coupons-seed-data.d.ts +0 -11
- package/dist/seed/claimed-coupons-seed-data.js +32 -29
- package/dist/seed/conversations-seed-data.d.ts +0 -6
- package/dist/seed/conversations-seed-data.js +132 -280
- package/dist/seed/coupon-usage-seed-data.d.ts +0 -16
- package/dist/seed/coupon-usage-seed-data.js +30 -44
- package/dist/seed/coupons-seed-data.d.ts +0 -6
- package/dist/seed/coupons-seed-data.js +141 -489
- package/dist/seed/events-seed-data.d.ts +0 -6
- package/dist/seed/events-seed-data.js +201 -379
- package/dist/seed/faq-seed-data.d.ts +0 -14
- package/dist/seed/faq-seed-data.js +609 -1184
- package/dist/seed/grouped-listings-seed-data.d.ts +119 -8
- package/dist/seed/grouped-listings-seed-data.js +148 -233
- package/dist/seed/history-seed-data.d.ts +0 -7
- package/dist/seed/history-seed-data.js +50 -54
- package/dist/seed/homepage-sections-seed-data.d.ts +0 -5
- package/dist/seed/homepage-sections-seed-data.js +83 -175
- package/dist/seed/index.d.ts +1 -1
- package/dist/seed/index.js +1 -1
- package/dist/seed/manifest.js +2 -2
- package/dist/seed/notifications-seed-data.d.ts +0 -6
- package/dist/seed/notifications-seed-data.js +309 -196
- package/dist/seed/offers-seed-data.d.ts +0 -8
- package/dist/seed/offers-seed-data.js +118 -197
- package/dist/seed/orders-seed-data.d.ts +2 -8
- package/dist/seed/orders-seed-data.js +248 -1510
- package/dist/seed/payouts-seed-data.d.ts +0 -6
- package/dist/seed/payouts-seed-data.js +102 -441
- package/dist/seed/products-auctions-seed-data.d.ts +1 -14
- package/dist/seed/products-auctions-seed-data.js +612 -1084
- package/dist/seed/products-preorders-seed-data.d.ts +119 -14
- package/dist/seed/products-preorders-seed-data.js +154 -455
- package/dist/seed/products-standard-seed-data.d.ts +1 -15
- package/dist/seed/products-standard-seed-data.js +1355 -4128
- package/dist/seed/reviews-seed-data.d.ts +2 -8
- package/dist/seed/reviews-seed-data.js +99 -1182
- package/dist/seed/scammers-seed-data.d.ts +0 -15
- package/dist/seed/scammers-seed-data.js +36 -37
- package/dist/seed/sessions-seed-data.d.ts +0 -13
- package/dist/seed/sessions-seed-data.js +58 -335
- package/dist/seed/site-settings-seed-data.d.ts +0 -4
- package/dist/seed/site-settings-seed-data.js +61 -52
- package/dist/seed/store-addresses-seed-data.js +27 -151
- package/dist/seed/store-extensions-seed-data.d.ts +0 -7
- package/dist/seed/store-extensions-seed-data.js +147 -261
- package/dist/seed/stores-seed-data.d.ts +0 -5
- package/dist/seed/stores-seed-data.js +222 -184
- package/dist/seed/sub-listings-seed-data.d.ts +119 -0
- package/dist/seed/sub-listings-seed-data.js +447 -0
- package/dist/seed/support-tickets-seed-data.d.ts +0 -7
- package/dist/seed/support-tickets-seed-data.js +82 -75
- package/dist/seed/users-seed-data.d.ts +0 -5
- package/dist/seed/users-seed-data.js +279 -634
- package/dist/seed/wishlists-seed-data.d.ts +0 -9
- package/dist/seed/wishlists-seed-data.js +36 -52
- package/dist/seo/json-ld.js +6 -4
- package/dist/styles.css +8052 -3
- package/dist/tailwind-utilities.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/search-tokens.d.ts +2 -0
- package/dist/utils/search-tokens.js +21 -0
- package/package.json +2 -2
- package/scripts/seed-cli.mjs +2 -2
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
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
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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-
|
|
21
|
-
userId: "user-
|
|
22
|
-
userEmail: "
|
|
23
|
-
userDisplayName: "
|
|
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-
|
|
27
|
-
orderId: "order-
|
|
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-
|
|
31
|
-
assignedToName: "
|
|
37
|
+
assignedTo: "user-admin-letitrip",
|
|
38
|
+
assignedToName: "LetItRip Admin",
|
|
32
39
|
messages: [
|
|
33
|
-
msg("msg-
|
|
34
|
-
msg("msg-
|
|
35
|
-
msg("msg-
|
|
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-
|
|
43
|
-
userId: "user-
|
|
44
|
-
userEmail: "
|
|
45
|
-
userDisplayName: "
|
|
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
|
|
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-
|
|
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-
|
|
60
|
-
userId: "user-
|
|
61
|
-
userEmail: "
|
|
62
|
-
userDisplayName: "
|
|
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
|
|
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-
|
|
69
|
-
assignedToName: "
|
|
75
|
+
assignedTo: "user-admin-letitrip",
|
|
76
|
+
assignedToName: "LetItRip Admin",
|
|
70
77
|
messages: [
|
|
71
|
-
msg("msg-
|
|
72
|
-
msg("msg-
|
|
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-
|
|
80
|
-
userId: "user-
|
|
81
|
-
userEmail: "
|
|
82
|
-
userDisplayName: "
|
|
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
|
|
85
|
-
description: "The
|
|
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-
|
|
89
|
-
assignedToName: "
|
|
95
|
+
assignedTo: "user-admin-letitrip",
|
|
96
|
+
assignedToName: "LetItRip Admin",
|
|
90
97
|
messages: [
|
|
91
|
-
msg("msg-
|
|
92
|
-
msg("msg-
|
|
93
|
-
msg("msg-
|
|
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-
|
|
102
|
-
userId: "user-
|
|
103
|
-
userEmail: "
|
|
104
|
-
userDisplayName: "
|
|
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
|
|
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-
|
|
112
|
-
msg("msg-
|
|
113
|
-
msg("msg-
|
|
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-
|
|
122
|
-
userId: "user-
|
|
123
|
-
userEmail: "
|
|
124
|
-
userDisplayName: "
|
|
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
|
|
127
|
-
description: "I
|
|
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-
|
|
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-
|
|
139
|
-
userId: "user-
|
|
140
|
-
userEmail: "
|
|
141
|
-
userDisplayName: "
|
|
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
|
|
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-
|
|
151
|
-
msg("msg-
|
|
152
|
-
msg("msg-
|
|
153
|
-
msg("msg-
|
|
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
|
|
166
|
+
// ── 8. In-progress — seller store suspension appeal (admin handling) ──────
|
|
160
167
|
{
|
|
161
|
-
id: "ticket-
|
|
162
|
-
userId: "user-
|
|
163
|
-
userEmail: "
|
|
164
|
-
userDisplayName: "
|
|
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
|
|
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-
|
|
174
|
-
msg("msg-
|
|
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>[];
|