@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,7 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Carousel Slides Seed Data — LetItRip Collectibles Platform
|
|
3
|
-
* 6 slides using CF1 schema (background/zone fields).
|
|
4
|
-
* slide- prefix, id === slug. MAX_ACTIVE_SLIDES = 5, so slide 6 is inactive.
|
|
5
|
-
*/
|
|
6
1
|
import type { CarouselSlideDocument } from "../features/homepage/schemas";
|
|
7
2
|
export declare const carouselSlidesSeedData: Partial<CarouselSlideDocument>[];
|
|
@@ -1,247 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
1
|
+
/*
|
|
2
|
+
* WHY: Seeds 6 carousel slides for YGO marketplace homepage hero carousel.
|
|
3
|
+
* WHAT: 5 active + 1 inactive. YGO card art backgrounds with dim overlay, CTAs for shop/auctions/bundles/pre-orders/graded.
|
|
4
|
+
*
|
|
5
|
+
* EXPORTS:
|
|
6
|
+
* carouselSlidesSeedData — Array of Partial<CarouselSlideDocument> for seed runner
|
|
7
|
+
*
|
|
8
|
+
* @tag domain:carousel,homepage
|
|
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
|
|
5
14
|
*/
|
|
6
15
|
const NOW = new Date();
|
|
7
16
|
const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
|
|
8
|
-
|
|
9
|
-
// ── 1. Hero — India's #1 Collectibles Marketplace ─────────────────────────
|
|
17
|
+
const _rawSlides = [
|
|
10
18
|
{
|
|
11
19
|
id: "slide-hero-homepage",
|
|
12
|
-
title: "
|
|
20
|
+
title: "India's #1 YGO Collectibles Marketplace",
|
|
13
21
|
order: 1,
|
|
14
22
|
active: true,
|
|
15
23
|
background: {
|
|
16
24
|
type: "image",
|
|
17
|
-
url: "https://images.
|
|
18
|
-
|
|
19
|
-
dimOverlay: { enabled: true, opacity: 40 },
|
|
25
|
+
url: "https://images.ygoprodeck.com/images/cards/cropped/46986414.jpg",
|
|
26
|
+
dimOverlay: { enabled: true, opacity: 0.5 },
|
|
20
27
|
},
|
|
21
|
-
settings: { height: "tall"
|
|
22
|
-
overlay: {
|
|
23
|
-
title: "India's #1 Collectibles Marketplace",
|
|
24
|
-
subtitle: "Pokémon TCG · Hot Wheels · Beyblade X · Anime Figures",
|
|
25
|
-
description: "Buy, sell and auction rare collectibles with verified sellers across India.",
|
|
26
|
-
button: {
|
|
27
|
-
text: "Shop Now",
|
|
28
|
-
link: "/products",
|
|
29
|
-
variant: "primary",
|
|
30
|
-
openInNewTab: false,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
cards: [
|
|
34
|
-
{
|
|
35
|
-
id: "card-hero-pokemon",
|
|
36
|
-
zone: 1,
|
|
37
|
-
mobileZone: 2,
|
|
38
|
-
background: {
|
|
39
|
-
type: "image",
|
|
40
|
-
url: "https://images.unsplash.com/photo-1613771404784-3a5686aa2be3?w=600&h=400&fit=crop",
|
|
41
|
-
dimOverlay: { enabled: true, opacity: 50 },
|
|
42
|
-
},
|
|
43
|
-
content: {
|
|
44
|
-
title: "Pokémon TCG",
|
|
45
|
-
subtitle: "Cards, ETBs & Sealed Boxes",
|
|
46
|
-
textColor: "#ffffff",
|
|
47
|
-
textAlign: "left",
|
|
48
|
-
},
|
|
49
|
-
buttons: [{ text: "Shop Pokémon", href: "/categories/category-pokemon-cards", variant: "primary", openInNewTab: false }],
|
|
50
|
-
hover: { effect: "scale", scaleValue: 1.03 },
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: "card-hero-hotwheels",
|
|
54
|
-
zone: 5,
|
|
55
|
-
mobileZone: 5,
|
|
56
|
-
background: {
|
|
57
|
-
type: "image",
|
|
58
|
-
url: "https://images.unsplash.com/photo-1581235720704-06d3acfcb36f?w=600&h=400&fit=crop",
|
|
59
|
-
dimOverlay: { enabled: true, opacity: 30 },
|
|
60
|
-
},
|
|
61
|
-
content: {
|
|
62
|
-
title: "Hot Wheels",
|
|
63
|
-
subtitle: "STHs, RLC & Car Culture",
|
|
64
|
-
textColor: "#ffffff",
|
|
65
|
-
textAlign: "left",
|
|
66
|
-
},
|
|
67
|
-
buttons: [{ text: "Shop Diecast", href: "/categories/category-hot-wheels-cars", variant: "primary", openInNewTab: false }],
|
|
68
|
-
hover: { effect: "scale", scaleValue: 1.03 },
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
analytics: { views: 12400 },
|
|
28
|
+
settings: { autoplayDelayMs: 5000, height: "tall" },
|
|
72
29
|
createdBy: "user-admin-letitrip",
|
|
73
|
-
createdAt: daysAgo(
|
|
74
|
-
updatedAt: daysAgo(
|
|
30
|
+
createdAt: daysAgo(60),
|
|
31
|
+
updatedAt: daysAgo(3),
|
|
75
32
|
},
|
|
76
|
-
// ── 2. Pokémon 151 — New Collection ───────────────────────────────────────
|
|
77
33
|
{
|
|
78
|
-
id: "slide-
|
|
79
|
-
title: "
|
|
34
|
+
id: "slide-blue-eyes-auction",
|
|
35
|
+
title: "Blue-Eyes White Dragon Auctions Live",
|
|
80
36
|
order: 2,
|
|
81
37
|
active: true,
|
|
82
38
|
background: {
|
|
83
39
|
type: "image",
|
|
84
|
-
url: "https://images.
|
|
85
|
-
|
|
86
|
-
dimOverlay: { enabled: true, opacity: 30 },
|
|
87
|
-
},
|
|
88
|
-
settings: { height: "tall", autoplayDelayMs: 4000 },
|
|
89
|
-
overlay: {
|
|
90
|
-
title: "Pokémon Scarlet & Violet 151",
|
|
91
|
-
subtitle: "Sealed ETBs · Booster Boxes · Singles",
|
|
92
|
-
description: "Original 151 Pokémon — reimagined in Scarlet & Violet. Mew ex, Charizard ex, and more.",
|
|
93
|
-
button: {
|
|
94
|
-
text: "Shop Pokémon 151",
|
|
95
|
-
link: "/categories/category-pokemon-cards",
|
|
96
|
-
variant: "primary",
|
|
97
|
-
openInNewTab: false,
|
|
98
|
-
},
|
|
40
|
+
url: "https://images.ygoprodeck.com/images/cards/cropped/89631139.jpg",
|
|
41
|
+
dimOverlay: { enabled: true, opacity: 0.4 },
|
|
99
42
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
analytics: { views: 8700 },
|
|
43
|
+
link: { url: "/auctions", openInNewTab: false },
|
|
44
|
+
settings: { autoplayDelayMs: 5000, height: "tall" },
|
|
103
45
|
createdBy: "user-admin-letitrip",
|
|
104
|
-
createdAt: daysAgo(
|
|
105
|
-
updatedAt: daysAgo(
|
|
46
|
+
createdAt: daysAgo(55),
|
|
47
|
+
updatedAt: daysAgo(2),
|
|
106
48
|
},
|
|
107
|
-
// ── 3. Hot Wheels RLC Exclusives ──────────────────────────────────────────
|
|
108
49
|
{
|
|
109
|
-
id: "slide-
|
|
110
|
-
title: "
|
|
50
|
+
id: "slide-exodia-hunt",
|
|
51
|
+
title: "Complete Your Exodia Set",
|
|
111
52
|
order: 3,
|
|
112
53
|
active: true,
|
|
113
54
|
background: {
|
|
114
55
|
type: "image",
|
|
115
|
-
url: "https://images.
|
|
116
|
-
|
|
117
|
-
dimOverlay: { enabled: true, opacity: 25 },
|
|
56
|
+
url: "https://images.ygoprodeck.com/images/cards/cropped/33396948.jpg",
|
|
57
|
+
dimOverlay: { enabled: true, opacity: 0.45 },
|
|
118
58
|
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
title: "Hot Wheels RLC Exclusives",
|
|
122
|
-
subtitle: "Spectraflame · Real Riders · Super Treasure Hunts",
|
|
123
|
-
description: "Rare Hot Wheels sourced from RLC members and Japan collectors. Fresh to India.",
|
|
124
|
-
button: {
|
|
125
|
-
text: "Shop Hot Wheels",
|
|
126
|
-
link: "/categories/category-diecast-vehicles",
|
|
127
|
-
variant: "primary",
|
|
128
|
-
openInNewTab: false,
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
cards: [],
|
|
132
|
-
link: { url: "/categories/category-diecast-vehicles", openInNewTab: false },
|
|
133
|
-
analytics: { views: 6200 },
|
|
59
|
+
link: { url: "/products?q=exodia", openInNewTab: false },
|
|
60
|
+
settings: { autoplayDelayMs: 5000, height: "tall" },
|
|
134
61
|
createdBy: "user-admin-letitrip",
|
|
135
|
-
createdAt: daysAgo(
|
|
136
|
-
updatedAt: daysAgo(
|
|
62
|
+
createdAt: daysAgo(50),
|
|
63
|
+
updatedAt: daysAgo(5),
|
|
137
64
|
},
|
|
138
|
-
// ── 4. Live Auctions ──────────────────────────────────────────────────────
|
|
139
65
|
{
|
|
140
|
-
id: "slide-
|
|
141
|
-
title: "
|
|
66
|
+
id: "slide-gx-era",
|
|
67
|
+
title: "GX Era Pre-Orders Now Open",
|
|
142
68
|
order: 4,
|
|
143
69
|
active: true,
|
|
144
70
|
background: {
|
|
145
71
|
type: "image",
|
|
146
|
-
url: "https://images.
|
|
147
|
-
|
|
148
|
-
dimOverlay: { enabled: true, opacity: 50 },
|
|
149
|
-
},
|
|
150
|
-
settings: { height: "tall", autoplayDelayMs: 6000 },
|
|
151
|
-
overlay: {
|
|
152
|
-
title: "Live Auctions — Bid Now",
|
|
153
|
-
subtitle: "PSA Slabs · Vintage Cards · Rare Diecast · Signed Tops",
|
|
154
|
-
description: "Real-time bidding with auto-extend protection. New auctions added daily.",
|
|
155
|
-
button: {
|
|
156
|
-
text: "View Auctions",
|
|
157
|
-
link: "/auctions",
|
|
158
|
-
variant: "primary",
|
|
159
|
-
openInNewTab: false,
|
|
160
|
-
},
|
|
72
|
+
url: "https://images.ygoprodeck.com/images/cards/cropped/89943723.jpg",
|
|
73
|
+
dimOverlay: { enabled: true, opacity: 0.4 },
|
|
161
74
|
},
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
id: "card-auction-charizard",
|
|
165
|
-
zone: 4,
|
|
166
|
-
mobileZone: 5,
|
|
167
|
-
background: {
|
|
168
|
-
type: "color",
|
|
169
|
-
color: "var(--appkit-color-primary)",
|
|
170
|
-
},
|
|
171
|
-
content: {
|
|
172
|
-
title: "Charizard 1st Edition PSA 9",
|
|
173
|
-
subtitle: "Ending in 12h · Current bid ₹2,99,999",
|
|
174
|
-
textColor: "#ffffff",
|
|
175
|
-
textAlign: "left",
|
|
176
|
-
},
|
|
177
|
-
buttons: [{ text: "Bid Now", href: "/auctions/auction-pokemon-charizard-base1-psa9", variant: "secondary", openInNewTab: false }],
|
|
178
|
-
hover: { effect: "glow" },
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
analytics: { views: 9300 },
|
|
75
|
+
link: { url: "/pre-orders", openInNewTab: false },
|
|
76
|
+
settings: { autoplayDelayMs: 5000, height: "tall" },
|
|
182
77
|
createdBy: "user-admin-letitrip",
|
|
183
|
-
createdAt: daysAgo(
|
|
184
|
-
updatedAt: daysAgo(
|
|
78
|
+
createdAt: daysAgo(45),
|
|
79
|
+
updatedAt: daysAgo(4),
|
|
185
80
|
},
|
|
186
|
-
// ── 5. S.H.Figuarts New Arrivals ──────────────────────────────────────────
|
|
187
81
|
{
|
|
188
|
-
id: "slide-
|
|
189
|
-
title: "
|
|
82
|
+
id: "slide-psa-graded",
|
|
83
|
+
title: "PSA Graded Slabs — Authenticated Cards",
|
|
190
84
|
order: 5,
|
|
191
85
|
active: true,
|
|
192
86
|
background: {
|
|
193
87
|
type: "image",
|
|
194
|
-
url: "https://images.
|
|
195
|
-
|
|
196
|
-
dimOverlay: { enabled: true, opacity: 45 },
|
|
88
|
+
url: "https://images.ygoprodeck.com/images/cards/cropped/38033121.jpg",
|
|
89
|
+
dimOverlay: { enabled: true, opacity: 0.5 },
|
|
197
90
|
},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
title: "S.H.Figuarts & Nendoroid",
|
|
201
|
-
subtitle: "Dragon Ball · Re:Zero · Naruto · Demon Slayer",
|
|
202
|
-
description: "Official Bandai and Good Smile figures, sourced directly from Japanese distributors.",
|
|
203
|
-
button: {
|
|
204
|
-
text: "Shop Figures",
|
|
205
|
-
link: "/categories/category-anime-figures",
|
|
206
|
-
variant: "primary",
|
|
207
|
-
openInNewTab: false,
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
cards: [],
|
|
211
|
-
link: { url: "/categories/category-anime-figures", openInNewTab: false },
|
|
212
|
-
analytics: { views: 5100 },
|
|
91
|
+
link: { url: "/categories/category-graded-cards", openInNewTab: false },
|
|
92
|
+
settings: { autoplayDelayMs: 5000, height: "tall" },
|
|
213
93
|
createdBy: "user-admin-letitrip",
|
|
214
|
-
createdAt: daysAgo(
|
|
215
|
-
updatedAt: daysAgo(
|
|
94
|
+
createdAt: daysAgo(40),
|
|
95
|
+
updatedAt: daysAgo(3),
|
|
216
96
|
},
|
|
217
|
-
// ── 6. Pokémon SV5 Pre-Order (inactive — 6th slide, over MAX_ACTIVE_SLIDES) ─
|
|
218
97
|
{
|
|
219
|
-
id: "slide-
|
|
220
|
-
title: "
|
|
98
|
+
id: "slide-upcoming-promo",
|
|
99
|
+
title: "Upcoming Tournament Season Promo",
|
|
221
100
|
order: 6,
|
|
222
101
|
active: false,
|
|
223
102
|
background: {
|
|
224
103
|
type: "image",
|
|
225
|
-
url: "https://images.
|
|
226
|
-
|
|
227
|
-
dimOverlay: { enabled: true, opacity: 40 },
|
|
228
|
-
},
|
|
229
|
-
settings: { height: "tall", autoplayDelayMs: 4000 },
|
|
230
|
-
overlay: {
|
|
231
|
-
title: "Pre-Order Now: Pokémon SV5",
|
|
232
|
-
subtitle: "Shrouded Fable — Pecharunt ex & Ancient Beasts",
|
|
233
|
-
description: "Secure your Shrouded Fable ETB or booster box with just 30% deposit. Ships in 60 days.",
|
|
234
|
-
button: {
|
|
235
|
-
text: "Pre-Order SV5",
|
|
236
|
-
link: "/pre-orders/preorder-pokemon-sv5-booster-box",
|
|
237
|
-
variant: "primary",
|
|
238
|
-
openInNewTab: false,
|
|
239
|
-
},
|
|
104
|
+
url: "https://images.ygoprodeck.com/images/cards/cropped/83764718.jpg",
|
|
105
|
+
dimOverlay: { enabled: true, opacity: 0.5 },
|
|
240
106
|
},
|
|
241
|
-
|
|
242
|
-
analytics: { views: 0 },
|
|
107
|
+
settings: { autoplayDelayMs: 5000, height: "tall" },
|
|
243
108
|
createdBy: "user-admin-letitrip",
|
|
244
109
|
createdAt: daysAgo(10),
|
|
245
110
|
updatedAt: daysAgo(10),
|
|
246
111
|
},
|
|
247
112
|
];
|
|
113
|
+
export const carouselSlidesSeedData = _rawSlides.map((s) => ({
|
|
114
|
+
cards: [],
|
|
115
|
+
...s,
|
|
116
|
+
}));
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WHY: Seeds the hero carousel container that references slide IDs.
|
|
3
|
+
* WHAT: 1 active carousel (homepage hero). slideIds populated after carousel-slides seed.
|
|
4
|
+
*
|
|
5
|
+
* @tag domain:carousel,homepage
|
|
6
|
+
* @tag layer:seed
|
|
7
|
+
* @tag pattern:none
|
|
8
|
+
* @tag access:server-only
|
|
9
|
+
* @tag consumers:seed/index.ts,seed/runner.ts,SeedPanel
|
|
10
|
+
* @tag sideEffects:none
|
|
11
|
+
*/
|
|
1
12
|
function daysAgo(n) {
|
|
2
13
|
const d = new Date();
|
|
3
14
|
d.setDate(d.getDate() - n);
|
|
@@ -8,7 +19,13 @@ export const carouselsSeedData = [
|
|
|
8
19
|
id: "carousel-hero-default",
|
|
9
20
|
name: "Homepage Hero",
|
|
10
21
|
status: "active",
|
|
11
|
-
slideIds: [
|
|
22
|
+
slideIds: [
|
|
23
|
+
"slide-hero-homepage",
|
|
24
|
+
"slide-blue-eyes-auction",
|
|
25
|
+
"slide-exodia-hunt",
|
|
26
|
+
"slide-gx-era",
|
|
27
|
+
"slide-psa-graded",
|
|
28
|
+
],
|
|
12
29
|
createdBy: "user-admin-letitrip",
|
|
13
30
|
createdAt: daysAgo(90),
|
|
14
31
|
updatedAt: daysAgo(1),
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Carts Seed Data â€" LetItRip Collectibles
|
|
3
|
-
*
|
|
4
|
-
* Covers all cart states for testing Add-to-Cart / Update / Remove / Checkout flows:
|
|
5
|
-
* â€" Multi-item cart (cross-store, mixed categories) â€" Rahul Sharma
|
|
6
|
-
* â€" Single-item cart â€" Priya Patel
|
|
7
|
-
* â€" Cart with auction item â€" Arjun Singh
|
|
8
|
-
* â€" Cart with quantity > 1 â€" Meera Nair
|
|
9
|
-
* â€" Empty cart (items: []) â€" Amit Sharma
|
|
10
|
-
*
|
|
11
|
-
* Cart document ID = userId (O(1) lookup â€" see cart.ts schema).
|
|
12
|
-
*
|
|
13
|
-
* All FK references:
|
|
14
|
-
* userId â†' users/{uid} (see users-seed-data.ts)
|
|
15
|
-
* items[].productId â†' products/{id} (see products-standard/auctions-seed-data.ts)
|
|
16
|
-
* items[].storeId â†' stores/{id} (see stores-seed-data.ts)
|
|
17
|
-
*/
|
|
18
|
-
import type { CartDocument } from "../features/cart/schemas";
|
|
1
|
+
import type { CartDocument } from "../features/cart/schemas/firestore";
|
|
19
2
|
export declare const cartsSeedData: CartDocument[];
|