@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,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
1
|
+
/*
|
|
2
|
+
* WHY: Seeds browse history for YGO marketplace — one doc per user, FIFO-capped at 50, newest-first.
|
|
3
|
+
* WHAT: 3 history docs (Yugi 15 items, Kaiba 8 items, Admin 10 items). All productIds reference YGO seed products.
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
5
|
+
* EXPORTS:
|
|
6
|
+
* historySeedData — Array of HistorySeedDocument for seed runner
|
|
7
|
+
*
|
|
8
|
+
* @tag domain:history
|
|
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
|
|
6
14
|
*/
|
|
7
15
|
const NOW = new Date();
|
|
8
16
|
const hoursAgo = (n) => new Date(NOW.getTime() - n * 3600000);
|
|
@@ -17,58 +25,46 @@ function makeDoc(userId, items) {
|
|
|
17
25
|
};
|
|
18
26
|
}
|
|
19
27
|
export const historySeedData = [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{ productId: "
|
|
23
|
-
{ productId: "product-
|
|
24
|
-
{ productId: "
|
|
25
|
-
{ productId: "
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{ productId: "product-
|
|
29
|
-
{ productId: "
|
|
30
|
-
{ productId: "product-
|
|
31
|
-
{ productId: "
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{ productId: "product-
|
|
35
|
-
{ productId: "product-
|
|
36
|
-
{ productId: "
|
|
37
|
-
]),
|
|
38
|
-
makeDoc("user-meera-nair", [
|
|
39
|
-
{ productId: "product-shf-goku-ultra-instinct", productType: "product", viewedAt: hoursAgo(4) },
|
|
40
|
-
{ productId: "product-nendoroid-rem-rezero", productType: "product", viewedAt: hoursAgo(18) },
|
|
41
|
-
{ productId: "product-gsc-racing-miku-2023", productType: "product", viewedAt: daysAgo(1) },
|
|
42
|
-
{ productId: "preorder-shf-broly-super-hero", productType: "preorder", viewedAt: daysAgo(3) },
|
|
43
|
-
]),
|
|
44
|
-
makeDoc("user-kavya-iyer", [
|
|
45
|
-
{ productId: "product-gundam-rx78-mg", productType: "product", viewedAt: hoursAgo(2) },
|
|
46
|
-
{ productId: "product-gundam-wing-zero-rg", productType: "product", viewedAt: hoursAgo(10) },
|
|
47
|
-
{ productId: "preorder-gundam-pg-unicorn-ver15", productType: "preorder", viewedAt: daysAgo(2) },
|
|
48
|
-
]),
|
|
49
|
-
makeDoc("user-sneha-kumar", [
|
|
50
|
-
{ productId: "product-yugioh-25th-tin", productType: "product", viewedAt: hoursAgo(5) },
|
|
51
|
-
{ productId: "product-pokemon-151-booster-box", productType: "product", viewedAt: daysAgo(1) },
|
|
52
|
-
]),
|
|
53
|
-
makeDoc("user-kartik-nair", [
|
|
54
|
-
{ productId: "product-vintage-hot-wheels-deora-1968", productType: "product", viewedAt: hoursAgo(7) },
|
|
55
|
-
{ productId: "product-vintage-motu-he-man-1982", productType: "product", viewedAt: daysAgo(1) },
|
|
28
|
+
// Yugi: 15 recently viewed — mix of all listing types from Kaiba's store
|
|
29
|
+
makeDoc("user-yugi-muto", [
|
|
30
|
+
{ productId: "product-dark-magician-lob-1st", productType: "product", viewedAt: hoursAgo(1) },
|
|
31
|
+
{ productId: "product-dark-magician-girl-ioc", productType: "product", viewedAt: hoursAgo(2) },
|
|
32
|
+
{ productId: "auction-blue-eyes-lob-1st-psa10", productType: "auction", viewedAt: hoursAgo(4) },
|
|
33
|
+
{ productId: "product-monster-reborn-lob", productType: "product", viewedAt: hoursAgo(6) },
|
|
34
|
+
{ productId: "product-pot-of-greed-lob", productType: "product", viewedAt: hoursAgo(8) },
|
|
35
|
+
{ productId: "product-kuriboh-mrd", productType: "product", viewedAt: hoursAgo(12) },
|
|
36
|
+
{ productId: "product-mirror-force-mrd", productType: "product", viewedAt: hoursAgo(18) },
|
|
37
|
+
{ productId: "product-lob-booster-pack", productType: "product", viewedAt: daysAgo(1) },
|
|
38
|
+
{ productId: "product-yugi-starter-deck", productType: "product", viewedAt: daysAgo(1) },
|
|
39
|
+
{ productId: "auction-dark-magician-girl-psa9", productType: "auction", viewedAt: daysAgo(2) },
|
|
40
|
+
{ productId: "preorder-25th-anniversary-lob", productType: "preorder", viewedAt: daysAgo(2) },
|
|
41
|
+
{ productId: "product-black-luster-soldier", productType: "product", viewedAt: daysAgo(3) },
|
|
42
|
+
{ productId: "product-chaos-emperor-dragon", productType: "product", viewedAt: daysAgo(4) },
|
|
43
|
+
{ productId: "product-elemental-hero-neos", productType: "product", viewedAt: daysAgo(5) },
|
|
44
|
+
{ productId: "product-cyber-dragon-dp1", productType: "product", viewedAt: daysAgo(6) },
|
|
56
45
|
]),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
{ productId: "
|
|
46
|
+
// Kaiba: 8 recently viewed — browsing LetItRip Official products
|
|
47
|
+
makeDoc("user-seto-kaiba", [
|
|
48
|
+
{ productId: "product-duelist-kingdom-playmat", productType: "product", viewedAt: hoursAgo(2) },
|
|
49
|
+
{ productId: "product-egyptian-gods-playmat", productType: "product", viewedAt: hoursAgo(5) },
|
|
50
|
+
{ productId: "product-duel-disk-replica", productType: "product", viewedAt: hoursAgo(10) },
|
|
51
|
+
{ productId: "product-millennium-puzzle-model", productType: "product", viewedAt: daysAgo(1) },
|
|
52
|
+
{ productId: "product-kaiba-figure-15cm", productType: "product", viewedAt: daysAgo(1) },
|
|
53
|
+
{ productId: "product-dark-magician-figure", productType: "product", viewedAt: daysAgo(2) },
|
|
54
|
+
{ productId: "product-yugi-plush-20cm", productType: "product", viewedAt: daysAgo(3) },
|
|
55
|
+
{ productId: "product-exodia-art-print", productType: "product", viewedAt: daysAgo(4) },
|
|
60
56
|
]),
|
|
61
|
-
// Admin
|
|
57
|
+
// Admin: 10 recently viewed — browsing Kaiba's store to review inventory
|
|
62
58
|
makeDoc("user-admin-letitrip", [
|
|
63
|
-
{ productId: "product-
|
|
64
|
-
{ productId: "auction-
|
|
65
|
-
{ productId: "product-
|
|
66
|
-
{ productId: "product-
|
|
67
|
-
{ productId: "product-
|
|
68
|
-
{ productId: "product-
|
|
69
|
-
{ productId: "product-
|
|
70
|
-
{ productId: "
|
|
71
|
-
{ productId: "
|
|
72
|
-
{ productId: "
|
|
59
|
+
{ productId: "product-blue-eyes-white-dragon-sdk", productType: "product", viewedAt: hoursAgo(1) },
|
|
60
|
+
{ productId: "auction-exodia-complete-set-psa9", productType: "auction", viewedAt: hoursAgo(3) },
|
|
61
|
+
{ productId: "product-raigeki-lob", productType: "product", viewedAt: hoursAgo(6) },
|
|
62
|
+
{ productId: "product-change-of-heart-mrd", productType: "product", viewedAt: hoursAgo(12) },
|
|
63
|
+
{ productId: "product-potd-booster-box", productType: "product", viewedAt: daysAgo(1) },
|
|
64
|
+
{ productId: "product-een-booster-box", productType: "product", viewedAt: daysAgo(1) },
|
|
65
|
+
{ productId: "product-jaden-yuki-starter", productType: "product", viewedAt: daysAgo(2) },
|
|
66
|
+
{ productId: "auction-mirror-force-mrd-1st-psa10", productType: "auction", viewedAt: daysAgo(3) },
|
|
67
|
+
{ productId: "preorder-gx-tournament-pack", productType: "preorder", viewedAt: daysAgo(4) },
|
|
68
|
+
{ productId: "product-rainbow-dragon", productType: "product", viewedAt: daysAgo(5) },
|
|
73
69
|
]),
|
|
74
70
|
];
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Homepage Sections Seed Data — LetItRip Collectibles Platform
|
|
3
|
-
* All 19 section types seeded. section- prefix, id === slug.
|
|
4
|
-
* Order reflects the recommended homepage layout.
|
|
5
|
-
*/
|
|
6
1
|
import type { HomepageSectionDocument } from "../features/homepage/schemas";
|
|
7
2
|
export declare const homepageSectionsSeedData: Partial<HomepageSectionDocument>[];
|