@mohasinac/appkit 2.3.1 → 2.3.2
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/client.d.ts +12 -8
- package/dist/client.js +7 -4
- package/dist/constants/api-endpoints.d.ts +4 -0
- package/dist/constants/api-endpoints.js +2 -0
- package/dist/core/contact-submissions.repository.d.ts +32 -0
- package/dist/core/contact-submissions.repository.js +49 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +1 -0
- package/dist/features/about/components/HowPayoutsWorkView.js +1 -1
- package/dist/features/account/components/AddressFilters.d.ts +5 -0
- package/dist/features/account/components/AddressFilters.js +20 -0
- package/dist/features/account/components/AddressesIndexListing.d.ts +6 -0
- package/dist/features/account/components/AddressesIndexListing.js +51 -0
- package/dist/features/account/components/UserSidebar.d.ts +7 -3
- package/dist/features/account/components/UserSidebar.js +55 -7
- package/dist/features/account/hooks/useAddresses.d.ts +7 -0
- package/dist/features/account/hooks/useAddresses.js +12 -1
- package/dist/features/admin/actions/admin-read-actions.d.ts +12 -0
- package/dist/features/admin/actions/admin-read-actions.js +18 -0
- package/dist/features/admin/components/AdminBlogView.js +26 -2
- package/dist/features/admin/components/AdminCarouselView.js +18 -2
- package/dist/features/admin/components/AdminCategoriesView.js +27 -2
- package/dist/features/admin/components/AdminContactView.d.ts +4 -0
- package/dist/features/admin/components/AdminContactView.js +50 -0
- package/dist/features/admin/components/AdminFaqsView.js +19 -2
- package/dist/features/admin/components/AdminListingScaffold.d.ts +11 -2
- package/dist/features/admin/components/AdminListingScaffold.js +14 -3
- package/dist/features/admin/components/AdminNewsletterView.d.ts +4 -0
- package/dist/features/admin/components/AdminNewsletterView.js +50 -0
- package/dist/features/admin/components/AdminProductsView.js +30 -2
- package/dist/features/admin/components/AdminReviewsView.js +26 -2
- package/dist/features/admin/components/AdminStoresView.js +17 -2
- package/dist/features/admin/components/AdminUsersView.js +27 -2
- package/dist/features/admin/components/DataTable.d.ts +2 -1
- package/dist/features/admin/components/DataTable.js +18 -4
- package/dist/features/admin/components/index.d.ts +6 -0
- package/dist/features/admin/components/index.js +3 -0
- package/dist/features/admin/hooks/useAdminListingData.d.ts +3 -1
- package/dist/features/admin/hooks/useAdminListingData.js +12 -7
- package/dist/features/admin/server.d.ts +3 -0
- package/dist/features/admin/server.js +2 -0
- package/dist/features/auctions/components/AuctionDetailPageView.js +93 -47
- package/dist/features/auctions/components/AuctionFilters.d.ts +8 -0
- package/dist/features/auctions/components/AuctionFilters.js +12 -0
- package/dist/features/auctions/components/AuctionsListView.d.ts +6 -1
- package/dist/features/auctions/components/AuctionsListView.js +37 -5
- package/dist/features/auctions/schemas/index.d.ts +4 -4
- package/dist/features/blog/components/BlogFeaturedCard.d.ts +1 -7
- package/dist/features/blog/components/BlogFeaturedCard.js +4 -5
- package/dist/features/blog/components/BlogFilters.js +2 -1
- package/dist/features/blog/components/BlogIndexListing.js +14 -9
- package/dist/features/blog/components/BlogIndexPageView.d.ts +6 -1
- package/dist/features/blog/components/BlogIndexPageView.js +10 -2
- package/dist/features/blog/components/BlogListView.d.ts +2 -1
- package/dist/features/blog/components/BlogListView.js +10 -3
- package/dist/features/categories/components/CategoriesIndexListing.d.ts +1 -1
- package/dist/features/categories/components/CategoriesIndexListing.js +41 -38
- package/dist/features/categories/components/CategoriesIndexPageView.d.ts +6 -1
- package/dist/features/categories/components/CategoriesIndexPageView.js +41 -2
- package/dist/features/categories/components/CategoryDetailPageView.js +13 -6
- package/dist/features/categories/components/CategoryDetailTabs.d.ts +5 -0
- package/dist/features/categories/components/CategoryDetailTabs.js +17 -0
- package/dist/features/categories/components/CategoryFilters.js +2 -1
- package/dist/features/categories/components/CategoryGrid.d.ts +2 -1
- package/dist/features/categories/components/CategoryGrid.js +8 -6
- package/dist/features/categories/components/CategoryProductsListing.js +22 -11
- package/dist/features/categories/components/index.d.ts +2 -0
- package/dist/features/categories/components/index.js +1 -0
- package/dist/features/categories/hooks/useCategories.d.ts +20 -0
- package/dist/features/categories/hooks/useCategories.js +50 -1
- package/dist/features/categories/hooks/useCategoryTree.d.ts +17 -0
- package/dist/features/categories/hooks/useCategoryTree.js +65 -0
- package/dist/features/events/components/AdminEventEditorView.d.ts +6 -0
- package/dist/features/events/components/AdminEventEditorView.js +203 -0
- package/dist/features/events/components/AdminEventsView.js +28 -2
- package/dist/features/events/components/EventCard.js +4 -2
- package/dist/features/events/components/EventFilters.js +2 -1
- package/dist/features/events/components/EventsIndexListing.js +40 -10
- package/dist/features/events/components/EventsListPageView.d.ts +6 -1
- package/dist/features/events/components/EventsListPageView.js +40 -7
- package/dist/features/events/components/index.d.ts +2 -0
- package/dist/features/events/components/index.js +1 -0
- package/dist/features/events/hooks/useEvents.js +2 -0
- package/dist/features/events/types/index.d.ts +1 -0
- package/dist/features/homepage/components/BlogArticlesSection.js +1 -1
- package/dist/features/homepage/components/EventsSection.js +1 -1
- package/dist/features/homepage/components/FeaturedAuctionsSection.js +1 -1
- package/dist/features/homepage/components/FeaturedPreOrdersSection.js +1 -1
- package/dist/features/homepage/components/FeaturedProductsSection.js +1 -1
- package/dist/features/homepage/components/FeaturedStoresSection.js +1 -1
- package/dist/features/homepage/components/HeroCarousel.js +1 -1
- package/dist/features/homepage/components/MarketplaceHomepageView.js +27 -17
- package/dist/features/homepage/components/SectionCarousel.js +4 -4
- package/dist/features/homepage/components/ShopByCategorySection.js +2 -2
- package/dist/features/homepage/schemas/firestore.d.ts +1 -1
- package/dist/features/homepage/schemas/firestore.js +2 -1
- package/dist/features/layout/AppLayoutShell.d.ts +6 -2
- package/dist/features/layout/AppLayoutShell.js +7 -3
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +3 -1
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +6 -2
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +80 -12
- package/dist/features/pre-orders/components/PreOrderFilters.d.ts +8 -0
- package/dist/features/pre-orders/components/PreOrderFilters.js +21 -0
- package/dist/features/pre-orders/components/PreOrdersIndexListing.d.ts +2 -1
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +69 -10
- package/dist/features/pre-orders/components/PreOrdersListView.d.ts +6 -1
- package/dist/features/pre-orders/components/PreOrdersListView.js +26 -7
- package/dist/features/pre-orders/components/index.d.ts +2 -0
- package/dist/features/pre-orders/components/index.js +1 -0
- package/dist/features/products/components/AuctionsIndexListing.d.ts +2 -1
- package/dist/features/products/components/AuctionsIndexListing.js +61 -9
- package/dist/features/products/components/InteractiveProductCard.d.ts +2 -4
- package/dist/features/products/components/InteractiveProductCard.js +2 -2
- package/dist/features/products/components/ProductDetailPageView.d.ts +1 -1
- package/dist/features/products/components/ProductDetailPageView.js +116 -25
- package/dist/features/products/components/ProductFilters.d.ts +6 -11
- package/dist/features/products/components/ProductFilters.js +5 -3
- package/dist/features/products/components/ProductGrid.d.ts +8 -2
- package/dist/features/products/components/ProductGrid.js +20 -5
- package/dist/features/products/components/ProductTabsShell.d.ts +3 -11
- package/dist/features/products/components/ProductTabsShell.js +14 -14
- package/dist/features/products/components/ProductsIndexListing.js +73 -9
- package/dist/features/products/components/ProductsIndexPageView.d.ts +6 -1
- package/dist/features/products/components/ProductsIndexPageView.js +39 -6
- package/dist/features/products/components/RelatedProductsCarousel.d.ts +7 -0
- package/dist/features/products/components/RelatedProductsCarousel.js +11 -0
- package/dist/features/products/components/index.d.ts +1 -0
- package/dist/features/products/components/index.js +1 -0
- package/dist/features/products/hooks/useProducts.js +16 -0
- package/dist/features/products/repository/products.repository.d.ts +8 -0
- package/dist/features/products/repository/products.repository.js +2 -0
- package/dist/features/products/schemas/index.d.ts +8 -8
- package/dist/features/products/types/index.d.ts +12 -0
- package/dist/features/promotions/components/CouponsIndexListing.d.ts +9 -0
- package/dist/features/promotions/components/CouponsIndexListing.js +86 -0
- package/dist/features/promotions/components/PromotionsView.d.ts +11 -5
- package/dist/features/promotions/components/PromotionsView.js +6 -1
- package/dist/features/promotions/components/index.d.ts +4 -2
- package/dist/features/promotions/components/index.js +2 -1
- package/dist/features/reviews/components/ReviewDetailPageView.d.ts +4 -0
- package/dist/features/reviews/components/ReviewDetailPageView.js +20 -0
- package/dist/features/reviews/components/ReviewDetailShell.d.ts +7 -0
- package/dist/features/reviews/components/ReviewDetailShell.js +80 -0
- package/dist/features/reviews/components/ReviewFilters.d.ts +3 -3
- package/dist/features/reviews/components/ReviewFilters.js +5 -4
- package/dist/features/reviews/components/ReviewsIndexListing.d.ts +4 -3
- package/dist/features/reviews/components/ReviewsIndexListing.js +35 -51
- package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +6 -1
- package/dist/features/reviews/components/ReviewsIndexPageView.js +49 -3
- package/dist/features/reviews/components/ReviewsList.js +9 -1
- package/dist/features/reviews/components/index.d.ts +1 -0
- package/dist/features/reviews/hooks/useReviews.js +15 -1
- package/dist/features/reviews/types/index.d.ts +6 -1
- package/dist/features/seller/components/SellerSidebar.d.ts +8 -4
- package/dist/features/seller/components/SellerSidebar.js +6 -4
- package/dist/features/seller/components/index.d.ts +30 -0
- package/dist/features/seller/components/index.js +17 -0
- package/dist/features/seller/hooks/useSellerStore.d.ts +2 -0
- package/dist/features/seller/hooks/useSellerStore.js +2 -0
- package/dist/features/seller/permission-map.d.ts +4 -2
- package/dist/features/seller/permission-map.js +16 -14
- package/dist/features/seller/schemas/index.d.ts +2 -2
- package/dist/features/stores/api/[storeSlug]/reviews/route.d.ts +1 -1
- package/dist/features/stores/api/[storeSlug]/reviews/route.js +24 -19
- package/dist/features/stores/components/InteractiveStoreCard.d.ts +0 -5
- package/dist/features/stores/components/InteractiveStoreCard.js +9 -9
- package/dist/features/stores/components/StoreAuctionsListing.js +27 -9
- package/dist/features/stores/components/StoreDetailLayoutView.js +2 -0
- package/dist/features/stores/components/StoreFilters.d.ts +5 -0
- package/dist/features/stores/components/StoreFilters.js +20 -0
- package/dist/features/stores/components/StoreHeader.js +2 -2
- package/dist/features/stores/components/StorePreOrdersListing.d.ts +5 -0
- package/dist/features/stores/components/StorePreOrdersListing.js +40 -0
- package/dist/features/stores/components/StorePreOrdersPageView.d.ts +4 -0
- package/dist/features/stores/components/StorePreOrdersPageView.js +21 -0
- package/dist/features/stores/components/StoreProductsListing.js +21 -11
- package/dist/features/stores/components/StoreReviewsListing.js +2 -7
- package/dist/features/stores/components/StoresIndexListing.js +42 -8
- package/dist/features/stores/components/StoresIndexPageView.d.ts +6 -1
- package/dist/features/stores/components/StoresIndexPageView.js +9 -2
- package/dist/features/stores/components/index.d.ts +3 -0
- package/dist/features/stores/components/index.js +1 -0
- package/dist/features/stores/hooks/useStores.d.ts +7 -1
- package/dist/features/stores/hooks/useStores.js +16 -3
- package/dist/features/stores/schemas/index.d.ts +2 -2
- package/dist/features/stores/types/index.d.ts +3 -0
- package/dist/features/wishlist/hooks/useGuestWishlist.d.ts +20 -0
- package/dist/features/wishlist/hooks/useGuestWishlist.js +49 -0
- package/dist/features/wishlist/hooks/useWishlistCount.d.ts +7 -0
- package/dist/features/wishlist/hooks/useWishlistCount.js +31 -0
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +56 -0
- package/dist/features/wishlist/hooks/useWishlistWithGuest.js +57 -0
- package/dist/features/wishlist/index.d.ts +3 -0
- package/dist/features/wishlist/index.js +3 -0
- package/dist/features/wishlist/utils/guest-wishlist.d.ts +22 -0
- package/dist/features/wishlist/utils/guest-wishlist.js +70 -0
- package/dist/index.d.ts +50 -1
- package/dist/index.js +63 -1
- package/dist/next/routing/route-map.d.ts +70 -36
- package/dist/next/routing/route-map.js +30 -22
- package/dist/seed/addresses-seed-data.js +62 -261
- package/dist/seed/beyblade-seed-data.d.ts +7 -0
- package/dist/seed/beyblade-seed-data.js +947 -0
- package/dist/seed/bids-seed-data.d.ts +10 -2
- package/dist/seed/bids-seed-data.js +220 -1071
- package/dist/seed/blog-posts-seed-data.d.ts +2 -2
- package/dist/seed/blog-posts-seed-data.js +455 -117
- package/dist/seed/cart-seed-data.d.ts +9 -9
- package/dist/seed/cart-seed-data.js +73 -74
- package/dist/seed/coupons-seed-data.d.ts +3 -4
- package/dist/seed/coupons-seed-data.js +3 -509
- package/dist/seed/events-seed-data.d.ts +2 -2
- package/dist/seed/events-seed-data.js +315 -476
- package/dist/seed/faq-seed-data.d.ts +18 -41
- package/dist/seed/faq-seed-data.js +1059 -1172
- package/dist/seed/hot-wheels-seed-data.d.ts +7 -0
- package/dist/seed/hot-wheels-seed-data.js +1365 -0
- package/dist/seed/index.d.ts +6 -1
- package/dist/seed/index.js +6 -1
- package/dist/seed/pokemon-carousel-slides-seed-data.d.ts +4 -2
- package/dist/seed/pokemon-carousel-slides-seed-data.js +152 -268
- package/dist/seed/pokemon-categories-seed-data.d.ts +18 -21
- package/dist/seed/pokemon-categories-seed-data.js +424 -1004
- package/dist/seed/pokemon-coupons-seed-data.d.ts +6 -0
- package/dist/seed/pokemon-coupons-seed-data.js +465 -0
- package/dist/seed/pokemon-homepage-sections-seed-data.d.ts +3 -2
- package/dist/seed/pokemon-homepage-sections-seed-data.js +67 -289
- package/dist/seed/pokemon-products-seed-data.js +662 -0
- package/dist/seed/pokemon-seed-bundle.d.ts +32 -11
- package/dist/seed/pokemon-seed-bundle.js +41 -11
- package/dist/seed/pokemon-stores-seed-data.d.ts +2 -3
- package/dist/seed/pokemon-stores-seed-data.js +56 -31
- package/dist/seed/pokemon-users-seed-data.d.ts +2 -2
- package/dist/seed/pokemon-users-seed-data.js +245 -261
- package/dist/seed/reviews-seed-data.d.ts +17 -2
- package/dist/seed/reviews-seed-data.js +519 -483
- package/dist/seed/site-settings-seed-data.js +14 -14
- package/dist/seed/store-addresses-seed-data.js +68 -50
- package/dist/seed/transformers-seed-data.d.ts +7 -0
- package/dist/seed/transformers-seed-data.js +510 -0
- package/dist/seed/wishlists-seed-data.d.ts +5 -1
- package/dist/seed/wishlists-seed-data.js +82 -4
- package/dist/server.d.ts +1 -0
- package/dist/server.js +2 -0
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.js +2 -0
- package/dist/ui/components/BaseListingCard.js +24 -26
- package/dist/ui/components/BaseListingCard.style.css +5 -5
- package/dist/ui/components/HorizontalScroller.d.ts +1 -1
- package/dist/ui/components/HorizontalScroller.js +19 -5
- package/dist/ui/components/SideDrawer.style.css +3 -11
- package/dist/ui/rich-text/RichText.js +19 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Carts Seed Data
|
|
2
|
+
* Carts Seed Data — Pokemon TCG Themed
|
|
3
3
|
*
|
|
4
4
|
* Covers all cart states for testing Add-to-Cart / Update / Remove / Checkout flows:
|
|
5
|
-
* — Multi-item cart (cross-seller, mixed categories) —
|
|
6
|
-
* — Single-item cart —
|
|
7
|
-
* — Cart with an auction item —
|
|
8
|
-
* — Cart with quantity > 1 —
|
|
9
|
-
* — Empty cart (items: []) —
|
|
5
|
+
* — Multi-item cart (cross-seller, mixed categories) — Ash Ketchum
|
|
6
|
+
* — Single-item cart — Gary Oak
|
|
7
|
+
* — Cart with an auction item — Brock
|
|
8
|
+
* — Cart with quantity > 1 — Sabrina
|
|
9
|
+
* — Empty cart (items: []) — Erika
|
|
10
10
|
*
|
|
11
11
|
* Cart document ID = userId (O(1) lookup — see cart.ts schema).
|
|
12
12
|
*
|
|
13
13
|
* All FK references:
|
|
14
|
-
* userId → users/{uid} (see users-seed-data.ts)
|
|
15
|
-
* items[].productId → products/{id} (see products-seed-data.ts)
|
|
16
|
-
* items[].sellerId → users/{uid} (see users-seed-data.ts)
|
|
14
|
+
* userId → users/{uid} (see pokemon-users-seed-data.ts)
|
|
15
|
+
* items[].productId → products/{id} (see pokemon-products-seed-data.ts)
|
|
16
|
+
* items[].sellerId → users/{uid} (see pokemon-users-seed-data.ts)
|
|
17
17
|
*/
|
|
18
18
|
import type { CartDocument } from "../features/cart/schemas";
|
|
19
19
|
export declare const cartsSeedData: CartDocument[];
|
|
@@ -4,52 +4,52 @@ const _CURRENCY = getDefaultCurrency();
|
|
|
4
4
|
const NOW = new Date();
|
|
5
5
|
const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
|
|
6
6
|
export const cartsSeedData = [
|
|
7
|
-
// --
|
|
7
|
+
// -- Ash Ketchum: multi-item, cross-seller cart ----------------------------
|
|
8
8
|
// Tests: list cart items, remove single item, update quantity, checkout
|
|
9
9
|
{
|
|
10
|
-
id: "user-
|
|
11
|
-
userId: "user-
|
|
10
|
+
id: "user-ash-ketchum-pallet-ash",
|
|
11
|
+
userId: "user-ash-ketchum-pallet-ash",
|
|
12
12
|
items: [
|
|
13
13
|
{
|
|
14
|
-
itemId: "cartitem-
|
|
15
|
-
productId: "product-
|
|
16
|
-
productTitle: "
|
|
17
|
-
productImage: "https://images.
|
|
18
|
-
price:
|
|
14
|
+
itemId: "cartitem-ash-charizard-001",
|
|
15
|
+
productId: "product-charizard-base1-4-holo-rare-fire-blaine-1",
|
|
16
|
+
productTitle: "Charizard — Base Set #4 Holo Rare (Near Mint)",
|
|
17
|
+
productImage: "https://images.pokemontcg.io/base1/4_hires.png",
|
|
18
|
+
price: 89999,
|
|
19
19
|
currency: _CURRENCY,
|
|
20
20
|
quantity: 1,
|
|
21
|
-
sellerId: "user-
|
|
22
|
-
sellerName: "
|
|
21
|
+
sellerId: "user-blaine-fire-gym-blaine",
|
|
22
|
+
sellerName: "Blaine's Fire Shoppe",
|
|
23
23
|
isAuction: false,
|
|
24
24
|
isPreOrder: false,
|
|
25
25
|
addedAt: daysAgo(9),
|
|
26
26
|
updatedAt: daysAgo(9),
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
itemId: "cartitem-
|
|
30
|
-
productId: "product-
|
|
31
|
-
productTitle: "
|
|
32
|
-
productImage: "https://images.
|
|
33
|
-
price:
|
|
29
|
+
itemId: "cartitem-ash-pikachu-001",
|
|
30
|
+
productId: "product-pikachu-base1-58-common-electric-surge-1",
|
|
31
|
+
productTitle: "Pikachu — Base Set #58 Common (Near Mint)",
|
|
32
|
+
productImage: "https://images.pokemontcg.io/base1/58_hires.png",
|
|
33
|
+
price: 1999,
|
|
34
34
|
currency: _CURRENCY,
|
|
35
35
|
quantity: 1,
|
|
36
|
-
sellerId: "user-
|
|
37
|
-
sellerName: "
|
|
36
|
+
sellerId: "user-lt-surge-electric-surge",
|
|
37
|
+
sellerName: "Surge's Electric Emporium",
|
|
38
38
|
isAuction: false,
|
|
39
39
|
isPreOrder: false,
|
|
40
40
|
addedAt: daysAgo(9),
|
|
41
41
|
updatedAt: daysAgo(9),
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
itemId: "cartitem-
|
|
45
|
-
productId: "product-
|
|
46
|
-
productTitle: "
|
|
47
|
-
productImage: "https://images.
|
|
48
|
-
price:
|
|
44
|
+
itemId: "cartitem-ash-sleeves-001",
|
|
45
|
+
productId: "product-pokemon-card-sleeves-standard-blaine-1",
|
|
46
|
+
productTitle: "Pokemon-Art Card Sleeves (100-pack, Pikachu)",
|
|
47
|
+
productImage: "https://images.pokemontcg.io/base1/58_hires.png",
|
|
48
|
+
price: 699,
|
|
49
49
|
currency: _CURRENCY,
|
|
50
|
-
quantity: 2, //
|
|
51
|
-
sellerId: "user-
|
|
52
|
-
sellerName: "
|
|
50
|
+
quantity: 2, // buying 2 packs
|
|
51
|
+
sellerId: "user-blaine-fire-gym-blaine",
|
|
52
|
+
sellerName: "Blaine's Fire Shoppe",
|
|
53
53
|
isAuction: false,
|
|
54
54
|
isPreOrder: false,
|
|
55
55
|
addedAt: daysAgo(9),
|
|
@@ -59,22 +59,22 @@ export const cartsSeedData = [
|
|
|
59
59
|
createdAt: daysAgo(9),
|
|
60
60
|
updatedAt: daysAgo(9),
|
|
61
61
|
},
|
|
62
|
-
// --
|
|
62
|
+
// -- Gary Oak: single-item cart -------------------------------------------
|
|
63
63
|
// Tests: add item, checkout with single item, clear cart after order
|
|
64
64
|
{
|
|
65
|
-
id: "user-
|
|
66
|
-
userId: "user-
|
|
65
|
+
id: "user-gary-oak-pallet-gary",
|
|
66
|
+
userId: "user-gary-oak-pallet-gary",
|
|
67
67
|
items: [
|
|
68
68
|
{
|
|
69
|
-
itemId: "cartitem-
|
|
70
|
-
productId: "product-
|
|
71
|
-
productTitle: "
|
|
72
|
-
productImage: "https://images.
|
|
73
|
-
price:
|
|
69
|
+
itemId: "cartitem-gary-mewtwo-001",
|
|
70
|
+
productId: "product-mewtwo-base1-10-holo-rare-psychic-surge-1",
|
|
71
|
+
productTitle: "Mewtwo — Base Set #10 Holo Rare (Near Mint)",
|
|
72
|
+
productImage: "https://images.pokemontcg.io/base1/10_hires.png",
|
|
73
|
+
price: 19999,
|
|
74
74
|
currency: _CURRENCY,
|
|
75
75
|
quantity: 1,
|
|
76
|
-
sellerId: "user-
|
|
77
|
-
sellerName: "
|
|
76
|
+
sellerId: "user-lt-surge-electric-surge",
|
|
77
|
+
sellerName: "Surge's Electric Emporium",
|
|
78
78
|
isAuction: false,
|
|
79
79
|
isPreOrder: false,
|
|
80
80
|
addedAt: daysAgo(10),
|
|
@@ -84,38 +84,37 @@ export const cartsSeedData = [
|
|
|
84
84
|
createdAt: daysAgo(10),
|
|
85
85
|
updatedAt: daysAgo(10),
|
|
86
86
|
},
|
|
87
|
-
// --
|
|
87
|
+
// -- Brock: cart with auction item ----------------------------------------
|
|
88
88
|
// Tests: auction item add-to-cart display, checkout CTA blocked (must bid)
|
|
89
|
-
// The Air Jordan auction closes 2026-03-01 20:00 so it's still active now.
|
|
90
89
|
{
|
|
91
|
-
id: "user-
|
|
92
|
-
userId: "user-
|
|
90
|
+
id: "user-brock-pewter-brock",
|
|
91
|
+
userId: "user-brock-pewter-brock",
|
|
93
92
|
items: [
|
|
94
93
|
{
|
|
95
|
-
itemId: "cartitem-
|
|
96
|
-
productId: "
|
|
97
|
-
productTitle: "
|
|
98
|
-
productImage: "https://images.
|
|
99
|
-
price:
|
|
94
|
+
itemId: "cartitem-brock-charizard-auction-001",
|
|
95
|
+
productId: "auction-charizard-1st-ed-base1-4-fire-blaine-auction-1",
|
|
96
|
+
productTitle: "1st Edition Charizard — Base Set #4 Holo (AUCTION, PSA 7)",
|
|
97
|
+
productImage: "https://images.pokemontcg.io/base1/4_hires.png",
|
|
98
|
+
price: 299999, // starting bid price captured at add time
|
|
100
99
|
currency: _CURRENCY,
|
|
101
100
|
quantity: 1,
|
|
102
|
-
sellerId: "user-
|
|
103
|
-
sellerName: "
|
|
101
|
+
sellerId: "user-blaine-fire-gym-blaine",
|
|
102
|
+
sellerName: "Blaine's Fire Shoppe",
|
|
104
103
|
isAuction: true,
|
|
105
104
|
isPreOrder: false,
|
|
106
105
|
addedAt: daysAgo(17),
|
|
107
106
|
updatedAt: daysAgo(17),
|
|
108
107
|
},
|
|
109
108
|
{
|
|
110
|
-
itemId: "cartitem-
|
|
111
|
-
productId: "product-
|
|
112
|
-
productTitle: "
|
|
113
|
-
productImage: "https://images.
|
|
114
|
-
price:
|
|
109
|
+
itemId: "cartitem-brock-water-energy-001",
|
|
110
|
+
productId: "product-water-energy-base1-99-common-energy-misty-lot",
|
|
111
|
+
productTitle: "Water Energy — Base Set #99 x10 Lot (Near Mint)",
|
|
112
|
+
productImage: "https://images.pokemontcg.io/base1/99_hires.png",
|
|
113
|
+
price: 999,
|
|
115
114
|
currency: _CURRENCY,
|
|
116
115
|
quantity: 1,
|
|
117
|
-
sellerId: "user-
|
|
118
|
-
sellerName: "
|
|
116
|
+
sellerId: "user-misty-water-gym-misty",
|
|
117
|
+
sellerName: "Misty's Water Cards",
|
|
119
118
|
isAuction: false,
|
|
120
119
|
isPreOrder: false,
|
|
121
120
|
addedAt: daysAgo(12),
|
|
@@ -125,37 +124,37 @@ export const cartsSeedData = [
|
|
|
125
124
|
createdAt: daysAgo(17),
|
|
126
125
|
updatedAt: daysAgo(12),
|
|
127
126
|
},
|
|
128
|
-
// --
|
|
127
|
+
// -- Sabrina: cart with quantity > 1 items ---------------------------------
|
|
129
128
|
// Tests: increment/decrement quantity controls, cart total calculation
|
|
130
129
|
{
|
|
131
|
-
id: "user-
|
|
132
|
-
userId: "user-
|
|
130
|
+
id: "user-sabrina-saffron-sabrina",
|
|
131
|
+
userId: "user-sabrina-saffron-sabrina",
|
|
133
132
|
items: [
|
|
134
133
|
{
|
|
135
|
-
itemId: "cartitem-
|
|
136
|
-
productId: "product-
|
|
137
|
-
productTitle: "
|
|
138
|
-
productImage: "https://images.
|
|
139
|
-
price:
|
|
134
|
+
itemId: "cartitem-sabrina-haunter-001",
|
|
135
|
+
productId: "product-haunter-base1-24-non-holo-rare-psychic-surge-1",
|
|
136
|
+
productTitle: "Haunter — Base Set #24 Non-Holo Rare (Near Mint)",
|
|
137
|
+
productImage: "https://images.pokemontcg.io/base1/24_hires.png",
|
|
138
|
+
price: 1499,
|
|
140
139
|
currency: _CURRENCY,
|
|
141
|
-
quantity: 3, // buying 3
|
|
142
|
-
sellerId: "user-
|
|
143
|
-
sellerName: "
|
|
140
|
+
quantity: 3, // buying 3 for trade
|
|
141
|
+
sellerId: "user-lt-surge-electric-surge",
|
|
142
|
+
sellerName: "Surge's Electric Emporium",
|
|
144
143
|
isAuction: false,
|
|
145
144
|
isPreOrder: false,
|
|
146
145
|
addedAt: daysAgo(11),
|
|
147
146
|
updatedAt: daysAgo(11),
|
|
148
147
|
},
|
|
149
148
|
{
|
|
150
|
-
itemId: "cartitem-
|
|
151
|
-
productId: "product-
|
|
152
|
-
productTitle: "
|
|
153
|
-
productImage: "https://images.
|
|
154
|
-
price:
|
|
149
|
+
itemId: "cartitem-sabrina-prof-oak-001",
|
|
150
|
+
productId: "product-professor-oak-base1-88-uncommon-trainer-surge-1",
|
|
151
|
+
productTitle: "Professor Oak — Base Set #88 Trainer (Near Mint)",
|
|
152
|
+
productImage: "https://images.pokemontcg.io/base1/88_hires.png",
|
|
153
|
+
price: 2499,
|
|
155
154
|
currency: _CURRENCY,
|
|
156
155
|
quantity: 1,
|
|
157
|
-
sellerId: "user-
|
|
158
|
-
sellerName: "
|
|
156
|
+
sellerId: "user-lt-surge-electric-surge",
|
|
157
|
+
sellerName: "Surge's Electric Emporium",
|
|
159
158
|
isAuction: false,
|
|
160
159
|
isPreOrder: false,
|
|
161
160
|
addedAt: daysAgo(11),
|
|
@@ -165,12 +164,12 @@ export const cartsSeedData = [
|
|
|
165
164
|
createdAt: daysAgo(11),
|
|
166
165
|
updatedAt: daysAgo(11),
|
|
167
166
|
},
|
|
168
|
-
// --
|
|
167
|
+
// -- Erika: empty cart (all items removed) ---------------------------------
|
|
169
168
|
// Tests: empty cart UI state, "Your cart is empty" message,
|
|
170
169
|
// add-to-cart starting from empty state
|
|
171
170
|
{
|
|
172
|
-
id: "user-
|
|
173
|
-
userId: "user-
|
|
171
|
+
id: "user-erika-celadon-erika",
|
|
172
|
+
userId: "user-erika-celadon-erika",
|
|
174
173
|
items: [],
|
|
175
174
|
createdAt: daysAgo(27),
|
|
176
175
|
updatedAt: daysAgo(9),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Coupons Seed Data
|
|
3
|
-
*
|
|
2
|
+
* Coupons Seed Data — Pokemon TCG Edition
|
|
3
|
+
* Re-exports the Pokemon coupon bundle as the canonical coupons seed.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
export declare const couponsSeedData: Partial<CouponDocument>[];
|
|
5
|
+
export { pokemonCouponsSeedData as couponsSeedData } from "./pokemon-coupons-seed-data";
|