@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,51 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
1
|
+
/*
|
|
2
|
+
* WHY: Seeds offers for YGO marketplace — 8 offers across all statuses.
|
|
3
|
+
* WHAT: pending (2), accepted (1), declined (1), countered (1), expired (1), withdrawn (1), paid (1).
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* EXPORTS:
|
|
6
|
+
* offersSeedData — Array of Partial<OfferDocument> for seed runner
|
|
7
|
+
*
|
|
8
|
+
* @tag domain:offers,seller
|
|
9
|
+
* @tag layer:seed
|
|
10
|
+
* @tag pattern:none
|
|
11
|
+
* @tag access:server-only
|
|
12
|
+
* @tag consumers:seed/index.ts,seed/runner.ts,SeedPanel
|
|
13
|
+
* @tag sideEffects:none
|
|
8
14
|
*/
|
|
9
15
|
import { OfferStatusValues } from "../features/seller/schemas/firestore";
|
|
10
16
|
const NOW = new Date();
|
|
11
17
|
const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
|
|
12
18
|
const daysFromNow = (n) => new Date(NOW.getTime() + n * 86400000);
|
|
13
19
|
export const offersSeedData = [
|
|
14
|
-
// ── 1. PENDING —
|
|
20
|
+
// ── 1. PENDING — Yugi → Kaiba — Dark Magician Girl IOC ──────────────────
|
|
15
21
|
{
|
|
16
|
-
id: "offer-
|
|
17
|
-
productId: "product-
|
|
18
|
-
productTitle: "
|
|
19
|
-
storeId: "store-
|
|
20
|
-
storeName: "
|
|
21
|
-
buyerUid: "user-
|
|
22
|
-
buyerName: "
|
|
23
|
-
buyerEmail: "
|
|
24
|
-
listedPrice:
|
|
25
|
-
offerAmount:
|
|
22
|
+
id: "offer-yugi-dmg-ioc-pending",
|
|
23
|
+
productId: "product-dark-magician-girl-ioc",
|
|
24
|
+
productTitle: "Dark Magician Girl IOC 1st Edition (NM)",
|
|
25
|
+
storeId: "store-kaiba-corp-cards",
|
|
26
|
+
storeName: "Kaiba Corp Card Vault",
|
|
27
|
+
buyerUid: "user-yugi-muto",
|
|
28
|
+
buyerName: "Yugi Muto",
|
|
29
|
+
buyerEmail: "yugi.muto@letitrip.in",
|
|
30
|
+
listedPrice: 899900,
|
|
31
|
+
offerAmount: 750000,
|
|
26
32
|
currency: "INR",
|
|
27
33
|
status: OfferStatusValues.PENDING,
|
|
28
|
-
buyerNote: "
|
|
34
|
+
buyerNote: "Would you accept ₹7,500 for the Dark Magician Girl?",
|
|
29
35
|
expiresAt: daysFromNow(3),
|
|
30
|
-
createdAt: daysAgo(
|
|
36
|
+
createdAt: daysAgo(0),
|
|
37
|
+
updatedAt: daysAgo(0),
|
|
38
|
+
},
|
|
39
|
+
// ── 2. COUNTERED — Yugi → Kaiba — Pot of Greed LOB ──────────────────────
|
|
40
|
+
{
|
|
41
|
+
id: "offer-yugi-pot-of-greed-countered",
|
|
42
|
+
productId: "product-pot-of-greed-lob",
|
|
43
|
+
productTitle: "Pot of Greed LOB 1st Edition (NM)",
|
|
44
|
+
storeId: "store-kaiba-corp-cards",
|
|
45
|
+
storeName: "Kaiba Corp Card Vault",
|
|
46
|
+
buyerUid: "user-yugi-muto",
|
|
47
|
+
buyerName: "Yugi Muto",
|
|
48
|
+
buyerEmail: "yugi.muto@letitrip.in",
|
|
49
|
+
listedPrice: 1499900,
|
|
50
|
+
offerAmount: 1200000,
|
|
51
|
+
counterAmount: 1350000,
|
|
52
|
+
currency: "INR",
|
|
53
|
+
status: OfferStatusValues.COUNTERED,
|
|
54
|
+
buyerNote: "₹12,000 — will you take it?",
|
|
55
|
+
sellerNote: "Best I can do is ₹13,500.",
|
|
56
|
+
expiresAt: daysFromNow(2),
|
|
57
|
+
respondedAt: daysAgo(1),
|
|
58
|
+
createdAt: daysAgo(3),
|
|
31
59
|
updatedAt: daysAgo(1),
|
|
32
60
|
},
|
|
33
|
-
// ──
|
|
61
|
+
// ── 3. PAID — Admin → Kaiba — Chaos Emperor Dragon IOC (order placed) ───
|
|
34
62
|
{
|
|
35
|
-
id: "offer-admin-
|
|
36
|
-
productId: "product-
|
|
37
|
-
productTitle: "
|
|
38
|
-
storeId: "store-
|
|
39
|
-
storeName: "
|
|
63
|
+
id: "offer-admin-ced-ioc-paid",
|
|
64
|
+
productId: "product-chaos-emperor-dragon-ioc",
|
|
65
|
+
productTitle: "Chaos Emperor Dragon — Envoy of the End IOC 1st Ed",
|
|
66
|
+
storeId: "store-kaiba-corp-cards",
|
|
67
|
+
storeName: "Kaiba Corp Card Vault",
|
|
40
68
|
buyerUid: "user-admin-letitrip",
|
|
41
69
|
buyerName: "LetItRip Admin",
|
|
42
70
|
buyerEmail: "admin@letitrip.in",
|
|
43
|
-
listedPrice:
|
|
44
|
-
offerAmount:
|
|
45
|
-
lockedPrice:
|
|
71
|
+
listedPrice: 2499900,
|
|
72
|
+
offerAmount: 2200000,
|
|
73
|
+
lockedPrice: 2200000,
|
|
46
74
|
currency: "INR",
|
|
47
75
|
status: OfferStatusValues.PAID,
|
|
48
|
-
buyerNote: "Would you accept
|
|
76
|
+
buyerNote: "Would you accept ₹22,000 for the CED?",
|
|
49
77
|
sellerNote: "Accepted. Thank you!",
|
|
50
78
|
expiresAt: daysAgo(3),
|
|
51
79
|
acceptedAt: daysAgo(12),
|
|
@@ -53,145 +81,81 @@ export const offersSeedData = [
|
|
|
53
81
|
createdAt: daysAgo(14),
|
|
54
82
|
updatedAt: daysAgo(11),
|
|
55
83
|
},
|
|
56
|
-
// ──
|
|
84
|
+
// ── 4. DECLINED — Yugi → Admin — Mirror Force MRD ───────────────────────
|
|
57
85
|
{
|
|
58
|
-
id: "offer-
|
|
59
|
-
productId: "product-
|
|
60
|
-
productTitle: "
|
|
61
|
-
storeId: "store-pokemon-palace",
|
|
62
|
-
storeName: "Pokemon Palace",
|
|
63
|
-
buyerUid: "user-rahul-sharma",
|
|
64
|
-
buyerName: "Rahul Sharma",
|
|
65
|
-
buyerEmail: "rahul.sharma@gmail.com",
|
|
66
|
-
listedPrice: 349900,
|
|
67
|
-
offerAmount: 280000,
|
|
68
|
-
currency: "INR",
|
|
69
|
-
status: OfferStatusValues.PENDING,
|
|
70
|
-
buyerNote: "Can you do Rs 2,800 for this card?",
|
|
71
|
-
expiresAt: daysFromNow(5),
|
|
72
|
-
createdAt: daysAgo(0),
|
|
73
|
-
updatedAt: daysAgo(0),
|
|
74
|
-
},
|
|
75
|
-
// ── 4. DECLINED — Priya — MAFEX Miles Morales from letitrip-official ───────
|
|
76
|
-
{
|
|
77
|
-
id: "offer-priya-mafex-miles-declined",
|
|
78
|
-
productId: "product-mafex-miles-morales-spiderman",
|
|
79
|
-
productTitle: "MAFEX No.240: Miles Morales Spider-Man",
|
|
86
|
+
id: "offer-yugi-mirror-force-declined",
|
|
87
|
+
productId: "product-mirror-force-mrd-1st",
|
|
88
|
+
productTitle: "Mirror Force MRD 1st Edition (NM)",
|
|
80
89
|
storeId: "store-letitrip-official",
|
|
81
90
|
storeName: "LetItRip Official",
|
|
82
|
-
buyerUid: "user-
|
|
83
|
-
buyerName: "
|
|
84
|
-
buyerEmail: "
|
|
85
|
-
listedPrice:
|
|
86
|
-
offerAmount:
|
|
91
|
+
buyerUid: "user-yugi-muto",
|
|
92
|
+
buyerName: "Yugi Muto",
|
|
93
|
+
buyerEmail: "yugi.muto@letitrip.in",
|
|
94
|
+
listedPrice: 1500000,
|
|
95
|
+
offerAmount: 1000000,
|
|
87
96
|
currency: "INR",
|
|
88
97
|
status: OfferStatusValues.DECLINED,
|
|
89
|
-
buyerNote: "Offering
|
|
90
|
-
sellerNote: "Sorry, we cannot go below
|
|
98
|
+
buyerNote: "Offering ₹10,000 — slightly above my budget.",
|
|
99
|
+
sellerNote: "Sorry, we cannot go below ₹13,999 for this card.",
|
|
91
100
|
expiresAt: daysAgo(5),
|
|
92
101
|
respondedAt: daysAgo(8),
|
|
93
102
|
createdAt: daysAgo(10),
|
|
94
103
|
updatedAt: daysAgo(8),
|
|
95
104
|
},
|
|
96
|
-
// ── 5.
|
|
105
|
+
// ── 5. EXPIRED — Kaiba → Admin — Raigeki LOB ────────────────────────────
|
|
97
106
|
{
|
|
98
|
-
id: "offer-
|
|
99
|
-
productId: "product-
|
|
100
|
-
productTitle: "
|
|
107
|
+
id: "offer-kaiba-raigeki-expired",
|
|
108
|
+
productId: "product-raigeki-lob-nm",
|
|
109
|
+
productTitle: "Raigeki LOB 1st Edition (NM)",
|
|
101
110
|
storeId: "store-letitrip-official",
|
|
102
111
|
storeName: "LetItRip Official",
|
|
103
|
-
buyerUid: "user-
|
|
104
|
-
buyerName: "
|
|
105
|
-
buyerEmail: "
|
|
106
|
-
listedPrice:
|
|
107
|
-
offerAmount:
|
|
108
|
-
counterAmount: 649900,
|
|
109
|
-
currency: "INR",
|
|
110
|
-
status: OfferStatusValues.COUNTERED,
|
|
111
|
-
buyerNote: "Rs 5,499 — will you take it?",
|
|
112
|
-
sellerNote: "We can do Rs 6,499 as our best price.",
|
|
113
|
-
expiresAt: daysFromNow(2),
|
|
114
|
-
respondedAt: daysAgo(1),
|
|
115
|
-
createdAt: daysAgo(3),
|
|
116
|
-
updatedAt: daysAgo(1),
|
|
117
|
-
},
|
|
118
|
-
// ── 6. EXPIRED — Neha — Blue-Eyes LOB from cardgame-hub ──────────────────
|
|
119
|
-
{
|
|
120
|
-
id: "offer-neha-blue-eyes-expired",
|
|
121
|
-
productId: "product-yugioh-blue-eyes-lob-nm",
|
|
122
|
-
productTitle: "Yu-Gi-Oh! Blue-Eyes White Dragon LOB 1st Edition (NM)",
|
|
123
|
-
storeId: "store-cardgame-hub",
|
|
124
|
-
storeName: "CardGame Hub",
|
|
125
|
-
buyerUid: "user-neha-gupta",
|
|
126
|
-
buyerName: "Neha Gupta",
|
|
127
|
-
buyerEmail: "neha.gupta@gmail.com",
|
|
128
|
-
listedPrice: 299900,
|
|
129
|
-
offerAmount: 220000,
|
|
112
|
+
buyerUid: "user-seto-kaiba",
|
|
113
|
+
buyerName: "Seto Kaiba",
|
|
114
|
+
buyerEmail: "seto.kaiba@letitrip.in",
|
|
115
|
+
listedPrice: 799900,
|
|
116
|
+
offerAmount: 600000,
|
|
130
117
|
currency: "INR",
|
|
131
118
|
status: OfferStatusValues.EXPIRED,
|
|
132
|
-
buyerNote: "
|
|
119
|
+
buyerNote: "₹6,000 — let me know.",
|
|
133
120
|
expiresAt: daysAgo(2),
|
|
134
121
|
createdAt: daysAgo(9),
|
|
135
122
|
updatedAt: daysAgo(2),
|
|
136
123
|
},
|
|
137
|
-
// ──
|
|
124
|
+
// ── 6. WITHDRAWN — Admin → Kaiba — Exodia Right Arm ─────────────────────
|
|
138
125
|
{
|
|
139
|
-
id: "offer-
|
|
140
|
-
productId: "product-
|
|
141
|
-
productTitle: "
|
|
142
|
-
storeId: "store-
|
|
143
|
-
storeName: "
|
|
144
|
-
buyerUid: "user-
|
|
145
|
-
buyerName: "
|
|
146
|
-
buyerEmail: "
|
|
147
|
-
listedPrice:
|
|
148
|
-
offerAmount:
|
|
126
|
+
id: "offer-admin-exodia-arm-withdrawn",
|
|
127
|
+
productId: "product-exodia-right-arm-lob",
|
|
128
|
+
productTitle: "Right Arm of the Forbidden One LOB 1st Ed",
|
|
129
|
+
storeId: "store-kaiba-corp-cards",
|
|
130
|
+
storeName: "Kaiba Corp Card Vault",
|
|
131
|
+
buyerUid: "user-admin-letitrip",
|
|
132
|
+
buyerName: "LetItRip Admin",
|
|
133
|
+
buyerEmail: "admin@letitrip.in",
|
|
134
|
+
listedPrice: 499900,
|
|
135
|
+
offerAmount: 400000,
|
|
149
136
|
currency: "INR",
|
|
150
137
|
status: OfferStatusValues.WITHDRAWN,
|
|
151
|
-
buyerNote: "Offering
|
|
138
|
+
buyerNote: "Offering ₹4,000 for the Right Arm piece.",
|
|
152
139
|
expiresAt: daysAgo(3),
|
|
153
140
|
createdAt: daysAgo(7),
|
|
154
141
|
updatedAt: daysAgo(5),
|
|
155
142
|
},
|
|
156
|
-
// ──
|
|
157
|
-
{
|
|
158
|
-
id: "offer-arjun-bx01-paid",
|
|
159
|
-
productId: "product-beyblade-x-bx01-dran-sword-starter-pack",
|
|
160
|
-
productTitle: "Beyblade X: BX-01 Dran Sword 3-60F Starter Pack",
|
|
161
|
-
storeId: "store-beyblade-arena",
|
|
162
|
-
storeName: "Beyblade Arena",
|
|
163
|
-
buyerUid: "user-arjun-singh",
|
|
164
|
-
buyerName: "Arjun Singh",
|
|
165
|
-
buyerEmail: "arjun.singh@gmail.com",
|
|
166
|
-
listedPrice: 159900,
|
|
167
|
-
offerAmount: 129900,
|
|
168
|
-
lockedPrice: 129900,
|
|
169
|
-
currency: "INR",
|
|
170
|
-
status: OfferStatusValues.PAID,
|
|
171
|
-
buyerNote: "Rs 1,299 for the BX-01 starter — deal?",
|
|
172
|
-
sellerNote: "Sure, accepted!",
|
|
173
|
-
expiresAt: daysAgo(10),
|
|
174
|
-
acceptedAt: daysAgo(20),
|
|
175
|
-
respondedAt: daysAgo(20),
|
|
176
|
-
createdAt: daysAgo(22),
|
|
177
|
-
updatedAt: daysAgo(19),
|
|
178
|
-
},
|
|
179
|
-
// ── 9. ACCEPTED — Pooja — GSC Aqua 1/7 from tokyo-toys (pending payment) ───
|
|
143
|
+
// ── 7. ACCEPTED — Kaiba → Admin — Starter Deck Yugi (pending payment) ───
|
|
180
144
|
{
|
|
181
|
-
id: "offer-
|
|
182
|
-
productId: "product-
|
|
183
|
-
productTitle: "
|
|
184
|
-
storeId: "store-
|
|
185
|
-
storeName: "
|
|
186
|
-
buyerUid: "user-
|
|
187
|
-
buyerName: "
|
|
188
|
-
buyerEmail: "
|
|
189
|
-
listedPrice:
|
|
190
|
-
offerAmount:
|
|
191
|
-
lockedPrice:
|
|
145
|
+
id: "offer-kaiba-starter-deck-accepted",
|
|
146
|
+
productId: "product-starter-deck-yugi-sealed",
|
|
147
|
+
productTitle: "Starter Deck Yugi — Sealed (2002)",
|
|
148
|
+
storeId: "store-letitrip-official",
|
|
149
|
+
storeName: "LetItRip Official",
|
|
150
|
+
buyerUid: "user-seto-kaiba",
|
|
151
|
+
buyerName: "Seto Kaiba",
|
|
152
|
+
buyerEmail: "seto.kaiba@letitrip.in",
|
|
153
|
+
listedPrice: 599900,
|
|
154
|
+
offerAmount: 499900,
|
|
155
|
+
lockedPrice: 499900,
|
|
192
156
|
currency: "INR",
|
|
193
157
|
status: OfferStatusValues.ACCEPTED,
|
|
194
|
-
buyerNote: "
|
|
158
|
+
buyerNote: "₹4,999 final offer on the sealed Starter Deck.",
|
|
195
159
|
sellerNote: "Accepted! Please complete payment within 24 hours.",
|
|
196
160
|
expiresAt: daysFromNow(1),
|
|
197
161
|
acceptedAt: daysAgo(0),
|
|
@@ -199,66 +163,23 @@ export const offersSeedData = [
|
|
|
199
163
|
createdAt: daysAgo(1),
|
|
200
164
|
updatedAt: daysAgo(0),
|
|
201
165
|
},
|
|
202
|
-
// ──
|
|
203
|
-
{
|
|
204
|
-
id: "offer-meera-pg-rx78-declined",
|
|
205
|
-
productId: "product-pg-unleashed-rx78-2",
|
|
206
|
-
productTitle: "Bandai PG Unleashed 1/60: RX-78-2 Gundam",
|
|
207
|
-
storeId: "store-gundam-galaxy",
|
|
208
|
-
storeName: "Gundam Galaxy",
|
|
209
|
-
buyerUid: "user-meera-nair",
|
|
210
|
-
buyerName: "Meera Nair",
|
|
211
|
-
buyerEmail: "meera.nair@gmail.com",
|
|
212
|
-
listedPrice: 2499900,
|
|
213
|
-
offerAmount: 1999900,
|
|
214
|
-
currency: "INR",
|
|
215
|
-
status: OfferStatusValues.DECLINED,
|
|
216
|
-
buyerNote: "Rs 19,999 — this is a big spend, would you consider it?",
|
|
217
|
-
sellerNote: "Unfortunately we cannot discount below Rs 22,999 for this kit.",
|
|
218
|
-
expiresAt: daysAgo(1),
|
|
219
|
-
respondedAt: daysAgo(3),
|
|
220
|
-
createdAt: daysAgo(6),
|
|
221
|
-
updatedAt: daysAgo(3),
|
|
222
|
-
},
|
|
223
|
-
// ── 11. COUNTERED — Rohit — OP-05 Booster Box from cardgame-hub ─────────────
|
|
166
|
+
// ── 8. PENDING — Admin → Kaiba — Blue-Eyes Ultimate Dragon ──────────────
|
|
224
167
|
{
|
|
225
|
-
id: "offer-
|
|
226
|
-
productId: "product-
|
|
227
|
-
productTitle: "
|
|
228
|
-
storeId: "store-
|
|
229
|
-
storeName: "
|
|
230
|
-
buyerUid: "user-
|
|
231
|
-
buyerName: "
|
|
232
|
-
buyerEmail: "
|
|
233
|
-
listedPrice:
|
|
234
|
-
offerAmount:
|
|
235
|
-
counterAmount: 449900,
|
|
168
|
+
id: "offer-admin-beud-pending",
|
|
169
|
+
productId: "product-blue-eyes-ultimate-dragon",
|
|
170
|
+
productTitle: "Blue-Eyes Ultimate Dragon LOB 1st Ed",
|
|
171
|
+
storeId: "store-kaiba-corp-cards",
|
|
172
|
+
storeName: "Kaiba Corp Card Vault",
|
|
173
|
+
buyerUid: "user-admin-letitrip",
|
|
174
|
+
buyerName: "LetItRip Admin",
|
|
175
|
+
buyerEmail: "admin@letitrip.in",
|
|
176
|
+
listedPrice: 3999900,
|
|
177
|
+
offerAmount: 3500000,
|
|
236
178
|
currency: "INR",
|
|
237
|
-
status: OfferStatusValues.
|
|
238
|
-
buyerNote: "
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
respondedAt: daysAgo(1),
|
|
242
|
-
createdAt: daysAgo(2),
|
|
179
|
+
status: OfferStatusValues.PENDING,
|
|
180
|
+
buyerNote: "Interested in this piece. Would you accept ₹35,000?",
|
|
181
|
+
expiresAt: daysFromNow(3),
|
|
182
|
+
createdAt: daysAgo(1),
|
|
243
183
|
updatedAt: daysAgo(1),
|
|
244
184
|
},
|
|
245
|
-
// ── 12. EXPIRED — Kavya — Nendoroid Rem from letitrip-official ───────────
|
|
246
|
-
{
|
|
247
|
-
id: "offer-kavya-nendo-rem-expired",
|
|
248
|
-
productId: "product-nendoroid-rem-rezero",
|
|
249
|
-
productTitle: "Nendoroid: Re:ZERO — Rem #663",
|
|
250
|
-
storeId: "store-letitrip-official",
|
|
251
|
-
storeName: "LetItRip Official",
|
|
252
|
-
buyerUid: "user-kavya-nair",
|
|
253
|
-
buyerName: "Kavya Nair",
|
|
254
|
-
buyerEmail: "kavya.nair@gmail.com",
|
|
255
|
-
listedPrice: 399900,
|
|
256
|
-
offerAmount: 329900,
|
|
257
|
-
currency: "INR",
|
|
258
|
-
status: OfferStatusValues.EXPIRED,
|
|
259
|
-
buyerNote: "Rs 3,299 for the Nendoroid Rem — is this okay?",
|
|
260
|
-
expiresAt: daysAgo(3),
|
|
261
|
-
createdAt: daysAgo(10),
|
|
262
|
-
updatedAt: daysAgo(3),
|
|
263
|
-
},
|
|
264
185
|
];
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* 10 orders in all status states (pending, processing, shipped, delivered,
|
|
4
|
-
* cancelled, refunded, return_requested). Buyer/seller IDs from P15.
|
|
5
|
-
* order- prefix (system IDs, not slug-based).
|
|
6
|
-
*/
|
|
7
|
-
import type { OrderDocument } from "../features/orders/schemas";
|
|
8
|
-
export declare const ordersSeedData: Partial<OrderDocument>[];
|
|
1
|
+
import type { OrderDocument } from "../features/orders/schemas/firestore";
|
|
2
|
+
export declare const ordersSeedData: OrderDocument[];
|