@mohasinac/appkit 4.1.1 → 4.2.0
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/maintenance/index.d.ts +2 -0
- package/dist/_internal/client/features/maintenance/index.js +1 -0
- package/dist/_internal/client/features/maintenance/views/CloudLogsListView.d.ts +9 -0
- package/dist/_internal/client/features/maintenance/views/CloudLogsListView.js +55 -0
- package/dist/_internal/server/features/auctions/index.d.ts +1 -1
- package/dist/_internal/server/features/auctions/index.js +1 -1
- package/dist/_internal/server/features/auctions/service.js +2 -2
- package/dist/_internal/server/features/checkout/actions.d.ts +15 -0
- package/dist/_internal/server/features/checkout/actions.js +245 -182
- package/dist/_internal/server/features/maintenance/cloud-logs-data.d.ts +50 -0
- package/dist/_internal/server/features/maintenance/cloud-logs-data.js +152 -0
- package/dist/_internal/server/functions/scheduled.d.ts +2 -1
- package/dist/_internal/server/functions/scheduled.js +9 -1
- package/dist/_internal/server/jobs/core/jobRunners.js +10 -0
- package/dist/_internal/server/jobs/core/newsletterExport.d.ts +15 -0
- package/dist/_internal/server/jobs/core/newsletterExport.js +43 -0
- package/dist/_internal/server/jobs/core/onOrderCreate.d.ts +4 -12
- package/dist/_internal/server/jobs/core/onOrderCreate.js +3 -3
- package/dist/_internal/server/jobs/core/onOrderStatusChange.d.ts +2 -0
- package/dist/_internal/server/jobs/core/onOrderStatusChange.js +1 -0
- package/dist/_internal/server/jobs/core/onProductWrite.js +14 -2
- package/dist/_internal/server/jobs/core/paymentWindowTimeout.js +1 -0
- package/dist/_internal/server/jobs/core/pendingOrderTimeout.js +1 -0
- package/dist/_internal/server/jobs/core/revenueRollup.d.ts +13 -0
- package/dist/_internal/server/jobs/core/revenueRollup.js +22 -0
- package/dist/_internal/server/jobs/core/whatsappNotify.d.ts +35 -0
- package/dist/_internal/server/jobs/core/whatsappNotify.js +82 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +1 -0
- package/dist/_internal/server/jobs/handlers/index.js +1 -0
- package/dist/_internal/server/jobs/handlers/revenueRollup.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/revenueRollup.js +2 -0
- package/dist/_internal/shared/features/auctions/config.d.ts +1 -1
- package/dist/_internal/shared/features/auctions/config.js +1 -1
- package/dist/_internal/shared/features/auctions/schema.js +1 -1
- package/dist/_internal/shared/features/cart/schema.js +2 -2
- package/dist/_internal/shared/features/checkout/config.d.ts +7 -0
- package/dist/_internal/shared/features/checkout/config.js +7 -0
- package/dist/_internal/shared/features/events/schema.js +1 -1
- package/dist/_internal/shared/features/orders/schema.js +1 -1
- package/dist/_internal/shared/features/products/schema.js +3 -3
- package/dist/_internal/shared/features/promotions/schema.js +3 -3
- package/dist/_internal/shared/fees/calculator.d.ts +32 -7
- package/dist/_internal/shared/fees/calculator.js +25 -0
- package/dist/client.d.ts +4 -4
- package/dist/client.js +4 -2
- package/dist/constants/api-endpoints.d.ts +9 -6
- package/dist/constants/api-endpoints.js +3 -2
- package/dist/contracts/client-payment-gateway.d.ts +1 -2
- package/dist/features/about/components/AboutView.d.ts +6 -16
- package/dist/features/about/components/AboutView.js +3 -3
- package/dist/features/about/components/FeesView.js +18 -0
- package/dist/features/about/index.d.ts +2 -1
- package/dist/features/about/schemas/firestore.d.ts +47 -0
- package/dist/features/about/schemas/firestore.js +6 -0
- package/dist/features/about/schemas/index.d.ts +210 -0
- package/dist/features/about/schemas/index.js +45 -0
- package/dist/features/account/hooks/useProfile.js +3 -0
- package/dist/features/admin/actions/notification-actions.d.ts +4 -1
- package/dist/features/admin/actions/notification-actions.js +56 -10
- package/dist/features/admin/components/AdminAdsView.js +1 -1
- package/dist/features/admin/components/AdminCarouselGroupEditorView.d.ts +6 -0
- package/dist/features/admin/components/AdminCarouselGroupEditorView.js +50 -0
- package/dist/features/admin/components/AdminCartsView.js +16 -3
- package/dist/features/admin/components/AdminCouponEditorView.js +2 -2
- package/dist/features/admin/components/AdminCouponsView.js +14 -4
- package/dist/features/admin/components/AdminEmployeeEditorView.js +1 -42
- package/dist/features/admin/components/AdminMediaView.js +1 -1
- package/dist/features/admin/components/AdminNewsletterView.js +42 -11
- package/dist/features/admin/components/AdminNotificationsView.js +31 -19
- package/dist/features/admin/components/AdminOrdersView.js +7 -0
- package/dist/features/admin/components/AdminPayoutsView.js +18 -3
- package/dist/features/admin/components/AdminProductsView.js +17 -2
- package/dist/features/admin/components/AdminReviewsView.js +16 -2
- package/dist/features/admin/components/AdminScammersView.js +7 -0
- package/dist/features/admin/components/AdminSectionsView.js +4 -0
- package/dist/features/admin/components/AdminSiteConfigGuideView.js +1 -1
- package/dist/features/admin/components/AdminSiteSettingsView.js +127 -8
- package/dist/features/admin/components/AdminStoreEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminStoreEditorView.js +4 -4
- package/dist/features/admin/components/AdminStoresView.js +1 -1
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +23 -5
- package/dist/features/admin/components/AdminSupportTicketsView.js +20 -2
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.js +4 -1
- package/dist/features/admin/components/AdminTesterChecklistView.js +8 -0
- package/dist/features/admin/components/index.d.ts +2 -0
- package/dist/features/admin/components/index.js +1 -0
- package/dist/features/admin/constants/filter-tabs.d.ts +55 -41
- package/dist/features/admin/constants/filter-tabs.js +55 -27
- package/dist/features/admin/repository/analytics-rollup.repository.d.ts +25 -0
- package/dist/features/admin/repository/analytics-rollup.repository.js +31 -0
- package/dist/features/admin/repository/site-settings.repository.js +8 -1
- package/dist/features/admin/schemas/firestore.d.ts +46 -0
- package/dist/features/admin/schemas/firestore.js +62 -24
- package/dist/features/auctions/actions/bid-actions.js +1 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +2 -2
- package/dist/features/auctions/components/AuctionsListView.js +8 -1
- package/dist/features/auth/components/LoginForm.js +2 -2
- package/dist/features/auth/components/RegisterForm.js +2 -2
- package/dist/features/auth/permissions/constants.d.ts +16 -0
- package/dist/features/auth/permissions/constants.js +53 -0
- package/dist/features/auth/schemas/firestore.js +1 -0
- package/dist/features/blog/components/BlogFilters.js +1 -1
- package/dist/features/cart/schemas/firestore.d.ts +1 -1
- package/dist/features/categories/schemas/firestore.d.ts +1 -1
- package/dist/features/consultation/components/ConsultationForm.js +1 -1
- package/dist/features/events/components/EventFilters.js +2 -0
- package/dist/features/homepage/components/WelcomeSection.js +2 -2
- package/dist/features/layout/BackToTop.d.ts +9 -5
- package/dist/features/layout/BackToTop.js +17 -21
- package/dist/features/layout/TitleBarLayout.d.ts +2 -2
- package/dist/features/layout/TitleBarLayout.js +4 -4
- package/dist/features/media/AvatarUpload.js +7 -3
- package/dist/features/media/MediaVideo.js +1 -1
- package/dist/features/media/finalize.d.ts +9 -13
- package/dist/features/media/finalize.js +23 -74
- package/dist/features/media/server.d.ts +1 -1
- package/dist/features/media/server.js +1 -1
- package/dist/features/orders/actions/refund-actions.js +1 -0
- package/dist/features/orders/hooks/useOrders.js +16 -4
- package/dist/features/orders/schemas/firestore.d.ts +19 -5
- package/dist/features/payments/schemas/firestore.d.ts +2 -2
- package/dist/features/pre-orders/components/PreOrdersListView.js +7 -0
- package/dist/features/products/components/ArtStickersListView.js +5 -0
- package/dist/features/products/components/ProductDetailPageView.d.ts +7 -1
- package/dist/features/products/components/ProductForm.js +14 -1
- package/dist/features/products/components/ProductsIndexPageView.js +7 -0
- package/dist/features/products/constants/action-defs.d.ts +29 -3
- package/dist/features/products/constants/action-defs.js +77 -1
- package/dist/features/products/schemas/firestore.d.ts +1 -1
- package/dist/features/products/schemas/product-templates.d.ts +1 -1
- package/dist/features/products/types/index.d.ts +4 -0
- package/dist/features/scams/schemas/index.js +2 -2
- package/dist/features/search/components/Search.js +3 -3
- package/dist/features/seller/components/SellerAuctionsView.js +27 -2
- package/dist/features/seller/components/SellerOrdersView.js +2 -2
- package/dist/features/seller/components/SellerPayoutsView.js +24 -10
- package/dist/features/seller/components/SellerPreOrdersView.js +12 -4
- package/dist/features/seller/components/SellerPrizeDrawsView.js +23 -5
- package/dist/features/seller/components/SellerProductShell.d.ts +2 -0
- package/dist/features/seller/components/SellerProductShell.js +1 -1
- package/dist/features/seller/components/SellerProductsView.js +8 -6
- package/dist/features/seller/components/SellerReviewsView.js +27 -6
- package/dist/features/seller/components/index.d.ts +0 -2
- package/dist/features/seller/components/index.js +0 -1
- package/dist/features/stores/components/StoreListingsGuideView.js +2 -1
- package/dist/features/stores/components/StoreProductsView.js +1 -1
- package/dist/features/stores/schemas/firestore.d.ts +11 -0
- package/dist/features/stores/schemas/firestore.js +5 -0
- package/dist/features/stores/schemas/index.d.ts +2 -2
- package/dist/features/tester/actions/checklist-item-actions.d.ts +6 -0
- package/dist/features/tester/actions/checklist-item-actions.js +2 -0
- package/dist/features/tester/components/AdminTesterFeedbackIssuesView.js +13 -2
- package/dist/features/tester/components/AdminTesterFeedbackListView.js +2 -1
- package/dist/features/tester/components/AdminTesterFeedbackReportView.js +9 -5
- package/dist/features/tester/components/TesterHubView.js +34 -21
- package/dist/features/tester/repository/tester-checklist-item.repository.js +1 -0
- package/dist/features/tester/repository/tester-checklist-response.repository.d.ts +18 -4
- package/dist/features/tester/repository/tester-checklist-response.repository.js +43 -8
- package/dist/features/tester/schemas/firestore.d.ts +8 -3
- package/dist/features/tester/schemas/firestore.js +6 -0
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +21 -9
- package/dist/features/tester/utils/phases.d.ts +31 -0
- package/dist/features/tester/utils/phases.js +46 -0
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +1 -1
- package/dist/features/whatsapp-bot/helpers/whatsapp.d.ts +10 -1
- package/dist/features/whatsapp-bot/helpers/whatsapp.js +47 -0
- package/dist/features/whatsapp-bot/types/index.d.ts +20 -1
- package/dist/features/wishlist/types/index.d.ts +3 -0
- package/dist/index.d.ts +15 -6
- package/dist/index.js +19 -9
- package/dist/next/components/NotFoundView.js +2 -1
- package/dist/next/routing/route-map.d.ts +6 -12
- package/dist/next/routing/route-map.js +3 -4
- package/dist/providers/db-firebase/admin.d.ts +1 -0
- package/dist/providers/db-firebase/admin.js +1 -1
- package/dist/repositories/index.d.ts +2 -0
- package/dist/repositories/index.js +1 -0
- package/dist/schemas/registry.d.ts +2 -2
- package/dist/seed/addresses-seed-data.js +18 -18
- package/dist/seed/bids-seed-data.js +4 -4
- package/dist/seed/blog-posts-seed-data.js +82 -82
- package/dist/seed/carousel-slides-seed-data.js +14 -10
- package/dist/seed/carousels-seed-data.js +3 -3
- package/dist/seed/cart-seed-data.js +92 -92
- package/dist/seed/claimed-coupons-seed-data.js +10 -10
- package/dist/seed/conversations-seed-data.js +75 -75
- package/dist/seed/coupon-usage-seed-data.js +12 -12
- package/dist/seed/coupons-seed-data.js +41 -41
- package/dist/seed/events-seed-data.js +105 -105
- package/dist/seed/grouped-listings-seed-data.d.ts +2 -137
- package/dist/seed/grouped-listings-seed-data.js +79 -143
- package/dist/seed/history-seed-data.js +38 -38
- package/dist/seed/homepage-sections-seed-data.js +9 -9
- package/dist/seed/notifications-seed-data.js +56 -56
- package/dist/seed/offers-seed-data.js +91 -91
- package/dist/seed/orders-seed-data.js +121 -106
- package/dist/seed/payouts-seed-data.js +42 -42
- package/dist/seed/products-auctions-seed-data.js +10 -2
- package/dist/seed/products-standard-seed-data.js +40 -8
- package/dist/seed/reviews-seed-data.js +42 -23
- package/dist/seed/scammers-seed-data.js +22 -22
- package/dist/seed/sessions-seed-data.js +7 -7
- package/dist/seed/shipments-seed-data.js +10 -10
- package/dist/seed/site-settings-seed-data.js +89 -0
- package/dist/seed/store-addresses-seed-data.js +2 -2
- package/dist/seed/store-extensions-seed-data.js +93 -93
- package/dist/seed/stores-seed-data.js +2 -0
- package/dist/seed/support-tickets-seed-data.js +47 -47
- package/dist/seed/users-seed-data.js +55 -89
- package/dist/seed/wishlists-seed-data.js +22 -22
- package/dist/server.d.ts +4 -3
- package/dist/server.js +7 -7
- package/dist/styles.css +1 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/PageLoader.js +8 -3
- package/dist/ui/components/Select.d.ts +8 -1
- package/dist/ui/components/Select.js +2 -2
- package/dist/ui/components/SiteMark.d.ts +23 -0
- package/dist/ui/components/SiteMark.js +76 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +1 -0
- package/dist/validation/schemas.d.ts +0 -2
- package/dist/validation/schemas.js +0 -2
- package/package.json +1 -1
- package/scripts/seed-cli.mjs +17 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* WHY: Seeds the 11 store-extension collections for
|
|
2
|
+
* WHY: Seeds the 11 store-extension collections for the Beyblade marketplace (2 stores).
|
|
3
3
|
* WHAT: payoutMethods, shippingConfigs, analyticsCards, analyticsAlerts, storeCategories,
|
|
4
4
|
* listingTemplates, moderationQueue, reports, itemRequests, storeWhatsAppConfig, storeGoogleConfig.
|
|
5
5
|
*
|
|
@@ -21,24 +21,24 @@ const NOW = new Date();
|
|
|
21
21
|
// ───── payoutMethods (4 records) ──────────────────────────────────────────
|
|
22
22
|
export const payoutMethodsSeedData = [
|
|
23
23
|
{
|
|
24
|
-
id: "payout-method-
|
|
25
|
-
sellerId: "user-
|
|
26
|
-
storeId: "store-
|
|
24
|
+
id: "payout-method-beyblade-arena-upi-default",
|
|
25
|
+
sellerId: "user-tyson-blader",
|
|
26
|
+
storeId: "store-beyblade-arena",
|
|
27
27
|
type: "upi",
|
|
28
28
|
label: "Primary UPI",
|
|
29
|
-
upiVpa: "
|
|
29
|
+
upiVpa: "beybladearena@upi",
|
|
30
30
|
isDefault: true,
|
|
31
31
|
isActive: true,
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
id: "payout-method-
|
|
35
|
-
sellerId: "user-
|
|
36
|
-
storeId: "store-
|
|
34
|
+
id: "payout-method-beyblade-arena-bank",
|
|
35
|
+
sellerId: "user-tyson-blader",
|
|
36
|
+
storeId: "store-beyblade-arena",
|
|
37
37
|
type: "bank",
|
|
38
38
|
label: "HDFC Current Account",
|
|
39
39
|
accountNumber: "50200012345678",
|
|
40
40
|
ifscCode: "HDFC0001234",
|
|
41
|
-
accountHolderName: "
|
|
41
|
+
accountHolderName: "Beyblade Arena LLP",
|
|
42
42
|
bankName: "HDFC Bank",
|
|
43
43
|
isDefault: false,
|
|
44
44
|
isActive: true,
|
|
@@ -61,7 +61,7 @@ export const payoutMethodsSeedData = [
|
|
|
61
61
|
label: "SBI Current Account",
|
|
62
62
|
accountNumber: "00112233445566",
|
|
63
63
|
ifscCode: "SBIN0001234",
|
|
64
|
-
accountHolderName: "
|
|
64
|
+
accountHolderName: "Mock User 1",
|
|
65
65
|
bankName: "State Bank of India",
|
|
66
66
|
isDefault: false,
|
|
67
67
|
isActive: true,
|
|
@@ -70,22 +70,22 @@ export const payoutMethodsSeedData = [
|
|
|
70
70
|
// ───── shippingConfigs (4 records) ────────────────────────────────────────
|
|
71
71
|
export const shippingConfigsSeedData = [
|
|
72
72
|
{
|
|
73
|
-
id: "ship-config-
|
|
74
|
-
storeId: "store-
|
|
75
|
-
label: "Free over ₹
|
|
73
|
+
id: "ship-config-beyblade-arena-free",
|
|
74
|
+
storeId: "store-beyblade-arena",
|
|
75
|
+
label: "Free over ₹599",
|
|
76
76
|
method: "free",
|
|
77
|
-
freeAbove:
|
|
77
|
+
freeAbove: 599,
|
|
78
78
|
estimatedDays: 5,
|
|
79
79
|
isDefault: true,
|
|
80
80
|
isActive: true,
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
id: "ship-config-
|
|
84
|
-
storeId: "store-
|
|
83
|
+
id: "ship-config-beyblade-arena-express",
|
|
84
|
+
storeId: "store-beyblade-arena",
|
|
85
85
|
label: "Express (2 days)",
|
|
86
86
|
method: "express",
|
|
87
|
-
flatRate:
|
|
88
|
-
expressSurcharge:
|
|
87
|
+
flatRate: 149,
|
|
88
|
+
expressSurcharge: 79,
|
|
89
89
|
estimatedDays: 2,
|
|
90
90
|
isDefault: false,
|
|
91
91
|
isActive: true,
|
|
@@ -113,11 +113,11 @@ export const shippingConfigsSeedData = [
|
|
|
113
113
|
];
|
|
114
114
|
// ───── analyticsCards (9 records) ─────────────────────────────────────────
|
|
115
115
|
export const analyticsCardsSeedData = [
|
|
116
|
-
{ id: "ac-seller-revenue-30d", scope: "seller", ownerId: "user-
|
|
117
|
-
{ id: "ac-seller-orders-30d", scope: "seller", ownerId: "user-
|
|
118
|
-
{ id: "ac-seller-aov", scope: "seller", ownerId: "user-
|
|
119
|
-
{ id: "ac-seller-traffic", scope: "seller", ownerId: "user-
|
|
120
|
-
{ id: "ac-seller-top-products", scope: "seller", ownerId: "user-
|
|
116
|
+
{ id: "ac-seller-revenue-30d", scope: "seller", ownerId: "user-tyson-blader", title: "Revenue · 30d", type: "metric", metric: "revenue:30d", filters: {}, position: 0, isBuiltIn: true, isVisible: true },
|
|
117
|
+
{ id: "ac-seller-orders-30d", scope: "seller", ownerId: "user-tyson-blader", title: "Orders · 30d", type: "metric", metric: "orders:30d", filters: {}, position: 1, isBuiltIn: true, isVisible: true },
|
|
118
|
+
{ id: "ac-seller-aov", scope: "seller", ownerId: "user-tyson-blader", title: "Avg Order Value", type: "metric", metric: "aov:30d", filters: {}, position: 2, isBuiltIn: true, isVisible: true },
|
|
119
|
+
{ id: "ac-seller-traffic", scope: "seller", ownerId: "user-tyson-blader", title: "Storefront Traffic", type: "line", metric: "store-views:30d", filters: {}, position: 3, isBuiltIn: true, isVisible: true },
|
|
120
|
+
{ id: "ac-seller-top-products", scope: "seller", ownerId: "user-tyson-blader", title: "Top Products", type: "table", metric: "top-products:30d", filters: {}, position: 4, isBuiltIn: true, isVisible: true },
|
|
121
121
|
{ id: "ac-admin-platform-gmv", scope: "admin", ownerId: "user-admin-letitrip", title: "Platform GMV", type: "metric", metric: "platform-gmv:30d", filters: {}, position: 0, isBuiltIn: true, isVisible: true },
|
|
122
122
|
{ id: "ac-admin-active-stores", scope: "admin", ownerId: "user-admin-letitrip", title: "Active Stores", type: "metric", metric: "active-stores", filters: {}, position: 1, isBuiltIn: true, isVisible: true },
|
|
123
123
|
{ id: "ac-admin-pending-mod", scope: "admin", ownerId: "user-admin-letitrip", title: "Pending Moderation", type: "metric", metric: "moderation-pending", filters: {}, position: 2, isBuiltIn: true, isVisible: true },
|
|
@@ -125,37 +125,37 @@ export const analyticsCardsSeedData = [
|
|
|
125
125
|
];
|
|
126
126
|
// ───── analyticsAlerts (4 records) ────────────────────────────────────────
|
|
127
127
|
export const analyticsAlertsSeedData = [
|
|
128
|
-
{ id: "alert-low-stock-
|
|
129
|
-
{ id: "alert-no-sales-
|
|
128
|
+
{ id: "alert-low-stock-arena", scope: "seller", ownerId: "user-tyson-blader", label: "Low stock", metric: "min-stock", operator: "<", threshold: 5, windowHours: 24, isActive: true, notifyChannels: ["in-app", "email"] },
|
|
129
|
+
{ id: "alert-no-sales-arena", scope: "seller", ownerId: "user-tyson-blader", label: "Zero sales 48h", metric: "orders-window", operator: "==", threshold: 0, windowHours: 48, isActive: true, notifyChannels: ["in-app"] },
|
|
130
130
|
{ id: "alert-platform-error-rate", scope: "admin", ownerId: "user-admin-letitrip", label: "API error rate > 5%", metric: "api-error-rate", operator: ">", threshold: 0.05, windowHours: 1, isActive: true, notifyChannels: ["in-app", "email", "whatsapp"] },
|
|
131
131
|
{ id: "alert-fraud-surge", scope: "admin", ownerId: "user-admin-letitrip", label: "Fraud reports surge", metric: "reports-1h", operator: ">", threshold: 10, windowHours: 1, isActive: true, notifyChannels: ["in-app", "email"] },
|
|
132
132
|
];
|
|
133
133
|
// ───── storeCategories (4 records) ────────────────────────────────────────
|
|
134
134
|
export const storeCategoriesSeedData = [
|
|
135
|
-
{ id: "scat-
|
|
136
|
-
{ id: "scat-
|
|
137
|
-
{ id: "scat-letitrip-sealed", storeId: "store-letitrip-official", label: "Sealed Products", slug: "sealed-products", displayOrder: 0, productIds: [], isActive: true, description: "Factory-sealed
|
|
138
|
-
{ id: "scat-letitrip-accessories", storeId: "store-letitrip-official", label: "Accessories", slug: "accessories", displayOrder: 1, productIds: [], isActive: true, description: "
|
|
135
|
+
{ id: "scat-arena-original-series", storeId: "store-beyblade-arena", label: "Original Series", slug: "original-series", displayOrder: 0, productIds: [], isActive: true, description: "Original 1999-2003 series beyblades.", coverImageUrl: seedExtMedia("https://picsum.photos/seed/storecat-original-series-20260101/600/400") },
|
|
136
|
+
{ id: "scat-arena-metal-fight", storeId: "store-beyblade-arena", label: "Metal Fight", slug: "metal-fight", displayOrder: 1, productIds: [], isActive: true, description: "Metal Fight / Metal Fusion era beyblades.", coverImageUrl: seedExtMedia("https://picsum.photos/seed/storecat-metal-fight-20260101/600/400") },
|
|
137
|
+
{ id: "scat-letitrip-sealed", storeId: "store-letitrip-official", label: "Sealed Products", slug: "sealed-products", displayOrder: 0, productIds: [], isActive: true, description: "Factory-sealed launcher sets, stadiums, and starter boxes.", coverImageUrl: seedExtMedia("https://picsum.photos/seed/storecat-sealed-products-20260101/600/400") },
|
|
138
|
+
{ id: "scat-letitrip-accessories", storeId: "store-letitrip-official", label: "Accessories", slug: "accessories", displayOrder: 1, productIds: [], isActive: true, description: "Launchers, grip tape, ripcords, and carry cases.", coverImageUrl: seedExtMedia("https://picsum.photos/seed/storecat-accessories-20260101/600/400") },
|
|
139
139
|
];
|
|
140
140
|
// ───── listingTemplates (4 records) ───────────────────────────────────────
|
|
141
141
|
export const listingTemplatesSeedData = [
|
|
142
142
|
{
|
|
143
|
-
id: "tmpl-standard-
|
|
144
|
-
storeId: "store-
|
|
145
|
-
ownerId: "user-
|
|
146
|
-
name: "
|
|
147
|
-
description: "Default fields for a
|
|
143
|
+
id: "tmpl-standard-beyblade",
|
|
144
|
+
storeId: "store-beyblade-arena",
|
|
145
|
+
ownerId: "user-tyson-blader",
|
|
146
|
+
name: "Beyblade · Standard",
|
|
147
|
+
description: "Default fields for a standard beyblade listing.",
|
|
148
148
|
listingType: "standard",
|
|
149
|
-
defaults: { condition: "mint", currency: "INR", tags: ["
|
|
149
|
+
defaults: { condition: "mint", currency: "INR", tags: ["beyblade", "spinning-tops"] },
|
|
150
150
|
isShared: true,
|
|
151
151
|
isActive: true,
|
|
152
152
|
usageCount: 14,
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
|
-
id: "tmpl-auction-vintage-
|
|
156
|
-
storeId: "store-
|
|
157
|
-
ownerId: "user-
|
|
158
|
-
name: "Vintage
|
|
155
|
+
id: "tmpl-auction-vintage-beyblade",
|
|
156
|
+
storeId: "store-beyblade-arena",
|
|
157
|
+
ownerId: "user-tyson-blader",
|
|
158
|
+
name: "Vintage Beyblade Auction",
|
|
159
159
|
listingType: "auction",
|
|
160
160
|
defaults: { reserveMultiplier: 1.2, auctionDays: 7, currency: "INR" },
|
|
161
161
|
isShared: false,
|
|
@@ -163,10 +163,10 @@ export const listingTemplatesSeedData = [
|
|
|
163
163
|
usageCount: 5,
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
id: "tmpl-preorder-
|
|
166
|
+
id: "tmpl-preorder-takara-tomy",
|
|
167
167
|
storeId: "store-letitrip-official",
|
|
168
168
|
ownerId: "user-admin-letitrip",
|
|
169
|
-
name: "
|
|
169
|
+
name: "Takara-Tomy Pre-Order",
|
|
170
170
|
listingType: "pre-order",
|
|
171
171
|
defaults: { releaseLeadDays: 90, depositPercent: 30 },
|
|
172
172
|
isShared: false,
|
|
@@ -174,10 +174,10 @@ export const listingTemplatesSeedData = [
|
|
|
174
174
|
usageCount: 9,
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
|
-
id: "tmpl-bundle-
|
|
178
|
-
storeId: "store-
|
|
179
|
-
ownerId: "user-
|
|
180
|
-
name: "
|
|
177
|
+
id: "tmpl-bundle-beyblade-set",
|
|
178
|
+
storeId: "store-beyblade-arena",
|
|
179
|
+
ownerId: "user-tyson-blader",
|
|
180
|
+
name: "Beyblade Set Bundle",
|
|
181
181
|
listingType: "bundle",
|
|
182
182
|
defaults: { minItems: 3, maxItems: 10, autoDiscountPercent: 12 },
|
|
183
183
|
isShared: true,
|
|
@@ -187,33 +187,33 @@ export const listingTemplatesSeedData = [
|
|
|
187
187
|
];
|
|
188
188
|
// ───── moderationQueue (6 records) ────────────────────────────────────────
|
|
189
189
|
export const moderationQueueSeedData = [
|
|
190
|
-
{ id: "mod-video-
|
|
191
|
-
{ id: "mod-video-
|
|
192
|
-
{ id: "mod-review-
|
|
193
|
-
{ id: "mod-image-
|
|
194
|
-
{ id: "mod-blog-
|
|
195
|
-
{ id: "mod-event-cover-tournament", mediaType: "image", mediaUrl: seedExtMedia("https://picsum.photos/seed/event-cover-
|
|
190
|
+
{ id: "mod-video-dragoon-auction", mediaType: "video", mediaUrl: "/media/product-video-dragoon-storm-20260518.mp4", entityType: "product", entityId: "auction-beyblade-original-dragoon-storm", ownerId: "user-tyson-blader", storeId: "store-beyblade-arena", status: "pending", submittedAt: new Date(NOW.getTime() - 3600000) },
|
|
191
|
+
{ id: "mod-video-dranzer-unbox", mediaType: "video", mediaUrl: "/media/product-video-original-dranzer-s-20260518.mp4", entityType: "product", entityId: "product-beyblade-original-dranzer-s", ownerId: "user-tyson-blader", storeId: "store-beyblade-arena", status: "pending", submittedAt: new Date(NOW.getTime() - 7200000) },
|
|
192
|
+
{ id: "mod-review-driger-v", mediaType: "rich-text", entityType: "review", entityId: "review-8", ownerId: "user-yugi-muto", status: "approved", reviewerId: "user-admin-letitrip", reviewedAt: new Date(NOW.getTime() - 86400000), submittedAt: new Date(NOW.getTime() - 90000000) },
|
|
193
|
+
{ id: "mod-image-arena-banner", mediaType: "image", mediaUrl: seedExtMedia("https://picsum.photos/seed/store-banner-beyblade-arena-20260518/1600/400"), entityType: "storefront", entityId: "store-beyblade-arena", ownerId: "user-tyson-blader", storeId: "store-beyblade-arena", status: "auto-approved", submittedAt: new Date(NOW.getTime() - 172800000) },
|
|
194
|
+
{ id: "mod-blog-authentication-guide", mediaType: "rich-text", entityType: "blog", entityId: "blog-spot-genuine-takara-tomy-beyblade", ownerId: "user-admin-letitrip", status: "approved", reviewerId: "user-admin-letitrip", reviewedAt: new Date(NOW.getTime() - 432000000), submittedAt: new Date(NOW.getTime() - 438000000) },
|
|
195
|
+
{ id: "mod-event-cover-tournament", mediaType: "image", mediaUrl: seedExtMedia("https://picsum.photos/seed/event-cover-beyblade-tournament-20260518/1200/600"), entityType: "event", entityId: "event-favourite-blader-poll", ownerId: "user-admin-letitrip", status: "approved", reviewerId: "user-admin-letitrip", reviewedAt: new Date(NOW.getTime() - 86400000), submittedAt: new Date(NOW.getTime() - 90000000) },
|
|
196
196
|
];
|
|
197
197
|
// ───── reports (5 records) ────────────────────────────────────────────────
|
|
198
198
|
export const reportsSeedData = [
|
|
199
|
-
{ id: "report-counterfeit-
|
|
199
|
+
{ id: "report-counterfeit-l-drago", entityType: "product", entityId: "product-suspect-l-drago", reporterId: "user-yugi-muto", reason: "counterfeit", detail: "Weight feels hollow; laser-etched logo missing on the underside.", evidenceUrls: [], status: "pending" },
|
|
200
200
|
{ id: "report-scam-store-fly-by-night", entityType: "store", entityId: "store-suspect-fly-by-night", reporterId: "user-seto-kaiba", reason: "scam", detail: "Reports of orders not shipped after 4 weeks.", evidenceUrls: [], status: "under-review", assignedTo: "user-admin-letitrip" },
|
|
201
|
-
{ id: "report-spam-review-
|
|
202
|
-
{ id: "report-prohibited-replica-listing", entityType: "product", entityId: "product-suspect-replica-
|
|
203
|
-
{ id: "report-ip-violation-fan-art-print", entityType: "product", entityId: "product-bootleg-
|
|
201
|
+
{ id: "report-spam-review-beyblade", entityType: "review", entityId: "review-spammy", reporterId: "user-yugi-muto", reason: "spam", detail: "Promotional link in review.", evidenceUrls: [], status: "actioned", resolution: "Review hidden.", resolvedAt: new Date(NOW.getTime() - 86400000) },
|
|
202
|
+
{ id: "report-prohibited-replica-listing", entityType: "product", entityId: "product-suspect-replica-driver", reporterId: "user-admin-letitrip", reason: "prohibited", detail: "Fake authenticity certificate with forged serial number.", evidenceUrls: [], status: "pending" },
|
|
203
|
+
{ id: "report-ip-violation-fan-art-print", entityType: "product", entityId: "product-bootleg-beyblade-print", reporterId: "user-seto-kaiba", reason: "ip-violation", detail: "Unauthorised Beyblade art prints — not licensed by Takara-Tomy.", evidenceUrls: [], status: "under-review", assignedTo: "user-admin-letitrip" },
|
|
204
204
|
];
|
|
205
205
|
// ───── itemRequests (4 records) ───────────────────────────────────────────
|
|
206
206
|
export const itemRequestsSeedData = [
|
|
207
207
|
{
|
|
208
|
-
id: "irq-
|
|
208
|
+
id: "irq-l-drago-sealed",
|
|
209
209
|
opUserId: "user-yugi-muto",
|
|
210
|
-
opDisplayName: "
|
|
211
|
-
title: "Looking for
|
|
212
|
-
description: "Hunting a
|
|
213
|
-
category: "
|
|
214
|
-
brand: "
|
|
215
|
-
maxBudget:
|
|
216
|
-
imageUrls: [seedExtMedia("https://
|
|
210
|
+
opDisplayName: "Mock User 3",
|
|
211
|
+
title: "Looking for sealed Metal Lightning L-Drago",
|
|
212
|
+
description: "Hunting a sealed Metal Lightning L-Drago, tournament-grade tip. Budget ₹8,000.",
|
|
213
|
+
category: "spinning-tops",
|
|
214
|
+
brand: "takara-tomy",
|
|
215
|
+
maxBudget: 8000,
|
|
216
|
+
imageUrls: [seedExtMedia("https://picsum.photos/seed/irq-l-drago-sealed-20260101/600/600")],
|
|
217
217
|
status: "open",
|
|
218
218
|
replyCount: 2,
|
|
219
219
|
replies: [],
|
|
@@ -221,15 +221,15 @@ export const itemRequestsSeedData = [
|
|
|
221
221
|
approvedBy: "user-admin-letitrip",
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
|
-
id: "irq-
|
|
224
|
+
id: "irq-original-complete-set",
|
|
225
225
|
opUserId: "user-yugi-muto",
|
|
226
|
-
opDisplayName: "
|
|
227
|
-
title: "Complete
|
|
228
|
-
description: "Need all 5
|
|
229
|
-
category: "
|
|
230
|
-
brand: "
|
|
231
|
-
maxBudget:
|
|
232
|
-
imageUrls: [seedExtMedia("https://
|
|
226
|
+
opDisplayName: "Mock User 3",
|
|
227
|
+
title: "Complete Original Series Set — Sealed",
|
|
228
|
+
description: "Need all 5 original starter beyblades in sealed condition. Willing to pay premium for a matching set.",
|
|
229
|
+
category: "spinning-tops",
|
|
230
|
+
brand: "takara-tomy",
|
|
231
|
+
maxBudget: 15000,
|
|
232
|
+
imageUrls: [seedExtMedia("https://picsum.photos/seed/irq-original-set-20260101/600/600")],
|
|
233
233
|
status: "open",
|
|
234
234
|
replyCount: 0,
|
|
235
235
|
replies: [],
|
|
@@ -237,15 +237,15 @@ export const itemRequestsSeedData = [
|
|
|
237
237
|
approvedBy: "user-admin-letitrip",
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
|
-
id: "irq-
|
|
240
|
+
id: "irq-x-bx08-sealed",
|
|
241
241
|
opUserId: "user-admin-letitrip",
|
|
242
|
-
opDisplayName: "
|
|
243
|
-
title: "
|
|
244
|
-
description: "Sealed only.
|
|
245
|
-
category: "
|
|
246
|
-
brand: "
|
|
247
|
-
maxBudget:
|
|
248
|
-
imageUrls: [seedExtMedia("https://
|
|
242
|
+
opDisplayName: "Mock User 1",
|
|
243
|
+
title: "Beyblade X BX-08 Wave — any launcher combo",
|
|
244
|
+
description: "Sealed only. For platform demo.",
|
|
245
|
+
category: "spinning-tops",
|
|
246
|
+
brand: "takara-tomy",
|
|
247
|
+
maxBudget: 1500,
|
|
248
|
+
imageUrls: [seedExtMedia("https://picsum.photos/seed/irq-x-bx08-20260101/600/600")],
|
|
249
249
|
status: "fulfilled",
|
|
250
250
|
replyCount: 4,
|
|
251
251
|
replies: [],
|
|
@@ -254,12 +254,12 @@ export const itemRequestsSeedData = [
|
|
|
254
254
|
closedAt: new Date(NOW.getTime() - 2 * 86400000),
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
|
-
id: "irq-rejected-replica-
|
|
257
|
+
id: "irq-rejected-replica-driver",
|
|
258
258
|
opUserId: "user-yugi-muto",
|
|
259
|
-
opDisplayName: "
|
|
260
|
-
title: "Looking for cheap
|
|
261
|
-
description: "Cheapest possible
|
|
262
|
-
category: "
|
|
259
|
+
opDisplayName: "Mock User 3",
|
|
260
|
+
title: "Looking for cheap metal drivers",
|
|
261
|
+
description: "Cheapest possible metal drivers, any condition.",
|
|
262
|
+
category: "spinning-tops",
|
|
263
263
|
imageUrls: [],
|
|
264
264
|
status: "rejected",
|
|
265
265
|
replyCount: 0,
|
|
@@ -269,15 +269,15 @@ export const itemRequestsSeedData = [
|
|
|
269
269
|
// ───── storeWhatsAppConfig (2 records) ────────────────────────────────────
|
|
270
270
|
export const storeWhatsAppConfigSeedData = [
|
|
271
271
|
{
|
|
272
|
-
id: "whatsapp-
|
|
273
|
-
storeId: "store-
|
|
272
|
+
id: "whatsapp-beyblade-arena",
|
|
273
|
+
storeId: "store-beyblade-arena",
|
|
274
274
|
isConnected: true,
|
|
275
275
|
isPaid: true,
|
|
276
276
|
phoneNumber: "+919876501001",
|
|
277
|
-
businessProfileName: "
|
|
277
|
+
businessProfileName: "Beyblade Arena",
|
|
278
278
|
catalogUrl: "https://wa.me/c/919876501001",
|
|
279
|
-
autoReply: "Hi! Thanks for messaging
|
|
280
|
-
welcomeMessage: "Welcome to
|
|
279
|
+
autoReply: "Hi! Thanks for messaging Beyblade Arena. We respond within 2 hours.",
|
|
280
|
+
welcomeMessage: "Welcome to Beyblade Arena! Browse our full catalog above.",
|
|
281
281
|
onboardingStatus: "approved",
|
|
282
282
|
},
|
|
283
283
|
{
|
|
@@ -291,11 +291,11 @@ export const storeWhatsAppConfigSeedData = [
|
|
|
291
291
|
// ───── storeGoogleConfig (2 records) ──────────────────────────────────────
|
|
292
292
|
export const storeGoogleConfigSeedData = [
|
|
293
293
|
{
|
|
294
|
-
id: "google-
|
|
295
|
-
storeId: "store-
|
|
294
|
+
id: "google-beyblade-arena",
|
|
295
|
+
storeId: "store-beyblade-arena",
|
|
296
296
|
isConnected: true,
|
|
297
|
-
placeId: "
|
|
298
|
-
businessName: "
|
|
297
|
+
placeId: "ChIJbeybladearena12345",
|
|
298
|
+
businessName: "Beyblade Arena",
|
|
299
299
|
averageRating: 4.8,
|
|
300
300
|
totalReviews: 89,
|
|
301
301
|
lastSyncedAt: new Date(NOW.getTime() - 3600000),
|
|
@@ -74,6 +74,7 @@ export const storesSeedData = [
|
|
|
74
74
|
},
|
|
75
75
|
isPublic: true,
|
|
76
76
|
isVacationMode: false,
|
|
77
|
+
emiEnabled: true,
|
|
77
78
|
stats: {
|
|
78
79
|
totalProducts: 0,
|
|
79
80
|
itemsSold: 0,
|
|
@@ -122,6 +123,7 @@ export const storesSeedData = [
|
|
|
122
123
|
},
|
|
123
124
|
isPublic: true,
|
|
124
125
|
isVacationMode: false,
|
|
126
|
+
emiEnabled: true,
|
|
125
127
|
stats: { totalProducts: 0, itemsSold: 0, totalReviews: 6, averageRating: 4.8 },
|
|
126
128
|
capabilities: ["host_preorders", "verified_seller", "create_coupons", "suggest_brands"],
|
|
127
129
|
createdAt: daysAgo(150),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* WHY: Seeds support tickets for
|
|
2
|
+
* WHY: Seeds support tickets for the Beyblade marketplace — 8 tickets across all statuses.
|
|
3
3
|
* WHAT: open (2), in_progress (2), waiting_on_user (1), resolved (2), closed (1).
|
|
4
4
|
*
|
|
5
5
|
* EXPORTS:
|
|
@@ -26,19 +26,19 @@ export const supportTicketsSeedData = [
|
|
|
26
26
|
{
|
|
27
27
|
id: "ticket-yugi-order-001",
|
|
28
28
|
userId: "user-yugi-muto",
|
|
29
|
-
userEmail: "
|
|
30
|
-
userDisplayName: "
|
|
29
|
+
userEmail: "rehan.sheikh@example.com",
|
|
30
|
+
userDisplayName: "Mock User 3",
|
|
31
31
|
category: "order_issue",
|
|
32
32
|
subject: "Order delivered but item is missing from the box",
|
|
33
|
-
description: "I received order #order-1-20260515-abc123 but the
|
|
33
|
+
description: "I received order #order-1-20260515-abc123 but the Beyblade Original Dranzer S was not inside — only the outer packaging and bubble wrap were present. Please help.",
|
|
34
34
|
orderId: "order-1-20260515-abc123",
|
|
35
35
|
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.IN_PROGRESS,
|
|
36
36
|
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.HIGH,
|
|
37
37
|
assignedTo: "user-admin-letitrip",
|
|
38
|
-
assignedToName: "
|
|
38
|
+
assignedToName: "Mock User 1",
|
|
39
39
|
messages: [
|
|
40
|
-
msg("msg-yugi-001-u1", "user-yugi-muto", "user", "I received my order but the
|
|
41
|
-
msg("msg-yugi-001-s1", "user-admin-letitrip", "support", "Hi
|
|
40
|
+
msg("msg-yugi-001-u1", "user-yugi-muto", "user", "I received my order but the beyblade was missing! The seal was broken on arrival.", 5),
|
|
41
|
+
msg("msg-yugi-001-s1", "user-admin-letitrip", "support", "Hi Rehan, 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
42
|
msg("msg-yugi-001-u2", "user-yugi-muto", "user", "Photos attached. The outer tape was clearly cut and resealed.", 3),
|
|
43
43
|
],
|
|
44
44
|
createdAt: daysBack(5),
|
|
@@ -48,11 +48,11 @@ export const supportTicketsSeedData = [
|
|
|
48
48
|
{
|
|
49
49
|
id: "ticket-yugi-refund-001",
|
|
50
50
|
userId: "user-yugi-muto",
|
|
51
|
-
userEmail: "
|
|
52
|
-
userDisplayName: "
|
|
51
|
+
userEmail: "rehan.sheikh@example.com",
|
|
52
|
+
userDisplayName: "Mock User 3",
|
|
53
53
|
category: "refund_request",
|
|
54
54
|
subject: "Requesting refund for cancelled pre-order",
|
|
55
|
-
description: "I placed a pre-order for the
|
|
55
|
+
description: "I placed a pre-order for the Beyblade X BX-08 wave 3 months ago. The store has now closed. I would like a full refund of ₹899.",
|
|
56
56
|
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.OPEN,
|
|
57
57
|
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.NORMAL,
|
|
58
58
|
messages: [
|
|
@@ -65,18 +65,18 @@ export const supportTicketsSeedData = [
|
|
|
65
65
|
{
|
|
66
66
|
id: "ticket-kaiba-account-001",
|
|
67
67
|
userId: "user-seto-kaiba",
|
|
68
|
-
userEmail: "
|
|
69
|
-
userDisplayName: "
|
|
68
|
+
userEmail: "vivaan.kapoor@example.com",
|
|
69
|
+
userDisplayName: "Mock User 2",
|
|
70
70
|
category: "account",
|
|
71
71
|
subject: "Cannot log in — OTP not arriving on new phone number",
|
|
72
|
-
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 account.",
|
|
73
73
|
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.WAITING_ON_USER,
|
|
74
74
|
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.NORMAL,
|
|
75
75
|
assignedTo: "user-admin-letitrip",
|
|
76
|
-
assignedToName: "
|
|
76
|
+
assignedToName: "Mock User 1",
|
|
77
77
|
messages: [
|
|
78
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
|
|
79
|
+
msg("msg-kaiba-001-s1", "user-admin-letitrip", "support", "Hi Vivaan, to verify ownership we need your registered email and last 4 digits of the payment card used on this account. Please reply here.", 6),
|
|
80
80
|
],
|
|
81
81
|
createdAt: daysBack(7),
|
|
82
82
|
updatedAt: daysBack(6),
|
|
@@ -85,19 +85,19 @@ export const supportTicketsSeedData = [
|
|
|
85
85
|
{
|
|
86
86
|
id: "ticket-yugi-dispute-001",
|
|
87
87
|
userId: "user-yugi-muto",
|
|
88
|
-
userEmail: "
|
|
89
|
-
userDisplayName: "
|
|
88
|
+
userEmail: "rehan.sheikh@example.com",
|
|
89
|
+
userDisplayName: "Mock User 3",
|
|
90
90
|
category: "listing_dispute",
|
|
91
|
-
subject: "Product description says
|
|
92
|
-
description: "The
|
|
91
|
+
subject: "Product description says mint but tip is heavily worn",
|
|
92
|
+
description: "The Beyblade Metal Storm Pegasus I received has a rounded, sanded-down tip and scratches on the layer. The listing said mint condition. I want to return it.",
|
|
93
93
|
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.RESOLVED,
|
|
94
94
|
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.NORMAL,
|
|
95
95
|
assignedTo: "user-admin-letitrip",
|
|
96
|
-
assignedToName: "
|
|
96
|
+
assignedToName: "Mock User 1",
|
|
97
97
|
messages: [
|
|
98
|
-
msg("msg-yugi-003-u1", "user-yugi-muto", "user", "The
|
|
99
|
-
msg("msg-yugi-003-s1", "user-admin-letitrip", "support", "Thank you for the photos
|
|
100
|
-
msg("msg-yugi-003-s2", "user-admin-letitrip", "support", "Refund of ₹
|
|
98
|
+
msg("msg-yugi-003-u1", "user-yugi-muto", "user", "The tip is clearly not mint. Here are photos showing the wear and scratches.", 12),
|
|
99
|
+
msg("msg-yugi-003-s1", "user-admin-letitrip", "support", "Thank you for the photos Rehan. We've contacted the seller and initiated a return + full refund.", 11),
|
|
100
|
+
msg("msg-yugi-003-s2", "user-admin-letitrip", "support", "Refund of ₹2,499 has been processed back to your original payment method. This ticket is now resolved.", 8),
|
|
101
101
|
],
|
|
102
102
|
resolvedAt: daysBack(8),
|
|
103
103
|
createdAt: daysBack(12),
|
|
@@ -107,16 +107,16 @@ export const supportTicketsSeedData = [
|
|
|
107
107
|
{
|
|
108
108
|
id: "ticket-yugi-auction-001",
|
|
109
109
|
userId: "user-yugi-muto",
|
|
110
|
-
userEmail: "
|
|
111
|
-
userDisplayName: "
|
|
110
|
+
userEmail: "rehan.sheikh@example.com",
|
|
111
|
+
userDisplayName: "Mock User 3",
|
|
112
112
|
category: "auction_dispute",
|
|
113
|
-
subject: "Winning bid was removed from
|
|
114
|
-
description: "I won the
|
|
113
|
+
subject: "Winning bid was removed from Dragoon Storm auction",
|
|
114
|
+
description: "I won the Beyblade Original Dragoon Storm auction but my winning bid was removed without explanation.",
|
|
115
115
|
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.CLOSED,
|
|
116
116
|
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.LOW,
|
|
117
117
|
messages: [
|
|
118
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
|
|
119
|
+
msg("msg-yugi-004-s1", "user-admin-letitrip", "support", "Hi Rehan, after reviewing the auction logs we found a duplicate bid was submitted. The correct winning bid remains active. No action needed.", 18),
|
|
120
120
|
msg("msg-yugi-004-u2", "user-yugi-muto", "user", "Understood, thanks for clarifying.", 17),
|
|
121
121
|
],
|
|
122
122
|
closedAt: daysBack(17),
|
|
@@ -127,15 +127,15 @@ export const supportTicketsSeedData = [
|
|
|
127
127
|
{
|
|
128
128
|
id: "ticket-kaiba-general-001",
|
|
129
129
|
userId: "user-seto-kaiba",
|
|
130
|
-
userEmail: "
|
|
131
|
-
userDisplayName: "
|
|
130
|
+
userEmail: "vivaan.kapoor@example.com",
|
|
131
|
+
userDisplayName: "Mock User 2",
|
|
132
132
|
category: "general",
|
|
133
|
-
subject: "How do I list
|
|
134
|
-
description: "I want to list my
|
|
133
|
+
subject: "How do I list a sealed limited-edition beyblade?",
|
|
134
|
+
description: "I want to list my sealed limited-edition Metal Lightning L-Drago with the authenticity certificate visible and verified. What are the steps?",
|
|
135
135
|
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.OPEN,
|
|
136
136
|
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.LOW,
|
|
137
137
|
messages: [
|
|
138
|
-
msg("msg-kaiba-002-u1", "user-seto-kaiba", "user", "I've read the FAQ but couldn't find the exact
|
|
138
|
+
msg("msg-kaiba-002-u1", "user-seto-kaiba", "user", "I've read the FAQ but couldn't find the exact authenticity verification requirements for sealed pieces.", 1),
|
|
139
139
|
],
|
|
140
140
|
createdAt: daysBack(1),
|
|
141
141
|
updatedAt: daysBack(1),
|
|
@@ -144,19 +144,19 @@ export const supportTicketsSeedData = [
|
|
|
144
144
|
{
|
|
145
145
|
id: "ticket-yugi-fraud-001",
|
|
146
146
|
userId: "user-yugi-muto",
|
|
147
|
-
userEmail: "
|
|
148
|
-
userDisplayName: "
|
|
147
|
+
userEmail: "rehan.sheikh@example.com",
|
|
148
|
+
userDisplayName: "Mock User 3",
|
|
149
149
|
category: "scam_report",
|
|
150
150
|
subject: "Seller sent empty box and is now unreachable",
|
|
151
|
-
description: "I paid ₹
|
|
151
|
+
description: "I paid ₹2,999 for a Beyblade Burst Regalia Genesis via Razorpay. The seller has not responded in 7 days and the tracking shows the box was 40g — way too light for a sealed spinner.",
|
|
152
152
|
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.RESOLVED,
|
|
153
153
|
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.HIGH,
|
|
154
154
|
assignedTo: "user-admin-letitrip",
|
|
155
|
-
assignedToName: "
|
|
155
|
+
assignedToName: "Mock User 1",
|
|
156
156
|
messages: [
|
|
157
|
-
msg("msg-yugi-005-u1", "user-yugi-muto", "user", "I have the weight receipt from Delhivery.
|
|
158
|
-
msg("msg-yugi-005-s1", "user-admin-letitrip", "support", "Hi
|
|
159
|
-
msg("msg-yugi-005-a1", "user-admin-letitrip", "support", "Hi
|
|
157
|
+
msg("msg-yugi-005-u1", "user-yugi-muto", "user", "I have the weight receipt from Delhivery. 40g is impossible for a sealed beyblade. The seller is not replying on messages or phone.", 10),
|
|
158
|
+
msg("msg-yugi-005-s1", "user-admin-letitrip", "support", "Hi Rehan, 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 Rehan, this is the LetItRip admin. I have reviewed the shipment weight log and the seller communication history. We are initiating a full refund of ₹2,999 under our buyer protection policy. The seller account has been suspended pending investigation.", 8),
|
|
160
160
|
msg("msg-yugi-005-u2", "user-yugi-muto", "user", "Thank you so much. I really appreciate the quick escalation.", 7),
|
|
161
161
|
],
|
|
162
162
|
resolvedAt: daysBack(7),
|
|
@@ -167,18 +167,18 @@ export const supportTicketsSeedData = [
|
|
|
167
167
|
{
|
|
168
168
|
id: "ticket-kaiba-ban-appeal-001",
|
|
169
169
|
userId: "user-seto-kaiba",
|
|
170
|
-
userEmail: "
|
|
171
|
-
userDisplayName: "
|
|
170
|
+
userEmail: "vivaan.kapoor@example.com",
|
|
171
|
+
userDisplayName: "Mock User 2",
|
|
172
172
|
category: "account",
|
|
173
|
-
subject: "My
|
|
174
|
-
description: "My
|
|
173
|
+
subject: "My account was flagged — I believe it was a mistake",
|
|
174
|
+
description: "My account was flagged 2 days ago. I received no email explanation. I have never violated any policy. Please review.",
|
|
175
175
|
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.IN_PROGRESS,
|
|
176
176
|
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.HIGH,
|
|
177
177
|
assignedTo: "user-admin-letitrip",
|
|
178
|
-
assignedToName: "
|
|
178
|
+
assignedToName: "Mock User 1",
|
|
179
179
|
messages: [
|
|
180
|
-
msg("msg-kaiba-003-u1", "user-seto-kaiba", "user", "I
|
|
181
|
-
msg("msg-kaiba-003-a1", "user-admin-letitrip", "support", "Hi
|
|
180
|
+
msg("msg-kaiba-003-u1", "user-seto-kaiba", "user", "I'm a legitimate buyer. I have a clean order history and never had a single complaint. Please explain the flag.", 2),
|
|
181
|
+
msg("msg-kaiba-003-a1", "user-admin-letitrip", "support", "Hi Vivaan, your account was flagged as part of an automatic fraud check triggered by an unusual login pattern. I am manually reviewing your account history. Please share the last 4 digits of the card used for your most recent Razorpay payment for verification.", 1),
|
|
182
182
|
],
|
|
183
183
|
createdAt: daysBack(2),
|
|
184
184
|
updatedAt: daysBack(1),
|