@mohasinac/appkit 3.5.1 → 3.5.3

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.
Files changed (40) hide show
  1. package/dist/_internal/server/features/checkout/actions.d.ts +0 -13
  2. package/dist/_internal/server/features/checkout/actions.js +88 -67
  3. package/dist/_internal/server/jobs/core/jobRunners.d.ts +3 -2
  4. package/dist/_internal/server/jobs/core/onJobCreated.js +2 -2
  5. package/dist/features/admin/components/AdminNotificationsView.js +30 -5
  6. package/dist/features/admin/components/AdminUsersView.js +102 -26
  7. package/dist/features/homepage/components/CustomCardsSection.js +1 -1
  8. package/dist/features/homepage/components/SectionCarousel.js +1 -1
  9. package/dist/features/jobs/actions/enqueue-job.d.ts +2 -1
  10. package/dist/features/jobs/repository/jobs.repository.js +3 -3
  11. package/dist/features/jobs/schemas/firestore.d.ts +20 -2
  12. package/dist/features/jobs/schemas/firestore.js +12 -0
  13. package/dist/seed/addresses-seed-data.js +8 -99
  14. package/dist/seed/categories-seed-data.js +103 -2082
  15. package/dist/seed/homepage-sections-seed-data.js +9 -9
  16. package/dist/seed/products-art-seed-data.d.ts +1 -10
  17. package/dist/seed/products-art-seed-data.js +13 -122
  18. package/dist/seed/products-auctions-seed-data.js +39 -747
  19. package/dist/seed/products-classifieds-seed-data.d.ts +1 -9
  20. package/dist/seed/products-classifieds-seed-data.js +13 -195
  21. package/dist/seed/products-digital-codes-seed-data.d.ts +1 -9
  22. package/dist/seed/products-digital-codes-seed-data.js +13 -202
  23. package/dist/seed/products-live-items-seed-data.d.ts +1 -12
  24. package/dist/seed/products-live-items-seed-data.js +13 -188
  25. package/dist/seed/products-preorders-seed-data.js +18 -149
  26. package/dist/seed/products-prize-draws-seed-data.d.ts +1 -16
  27. package/dist/seed/products-prize-draws-seed-data.js +13 -385
  28. package/dist/seed/products-standard-seed-data.js +152 -1331
  29. package/dist/seed/products-stickers-seed-data.d.ts +1 -10
  30. package/dist/seed/products-stickers-seed-data.js +13 -122
  31. package/dist/seed/site-settings-seed-data.js +106 -108
  32. package/dist/seed/store-addresses-seed-data.js +14 -46
  33. package/dist/seed/stores-seed-data.js +13 -205
  34. package/dist/styles.css +19 -18
  35. package/dist/tailwind-utilities.css +1 -1
  36. package/dist/ui/components/BulkActionBar.style.css +4 -4
  37. package/dist/ui/components/Button.style.css +14 -13
  38. package/dist/ui/components/HorizontalScroller.js +93 -18
  39. package/dist/ui/components/ListingToolbar.js +4 -4
  40. package/package.json +1 -1
@@ -1,9 +1,14 @@
1
1
  /*
2
- * WHY: Seeds delivery addresses for users and pickup locations for stores in the YGO marketplace.
3
- * WHAT: Exports 8 addresses (5 user + 3 store) representing Domino City + Tokyo locations for Yugi/Kaiba/Admin. Top-level collection (SB-UNI-A 2026-05-13) with ownerType discriminator. PII encrypted via HMAC blind indices (emailIndex, phoneIndex). Composite indexes (ownerType, ownerId, createdAt desc) + (ownerType, ownerId, isDefault).
2
+ * WHY: Seeds a minimal set of buyer delivery addresses for the demo catalog. Store pickup
3
+ * addresses live entirely in store-addresses-seed-data.ts (merged in at the API route
4
+ * level) — this file only carries ownerType:"user" entries now, to avoid seeding two
5
+ * overlapping sources of store address data.
6
+ * WHAT: Exports 3 user addresses. Top-level collection (SB-UNI-A) with ownerType discriminator.
7
+ * PII encrypted via HMAC blind indices (emailIndex, phoneIndex). Composite indexes
8
+ * (ownerType, ownerId, createdAt desc) + (ownerType, ownerId, isDefault).
4
9
  *
5
10
  * EXPORTS:
6
- * addressesSeedData — Array of 8 address documents with ownerType/ownerId discrimination
11
+ * addressesSeedData — Array of 3 user address documents
7
12
  *
8
13
  * @tag domain:addresses,shipping
9
14
  * @tag layer:seed
@@ -15,9 +20,6 @@
15
20
  const NOW = new Date();
16
21
  const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
17
22
  const _rawAddressesSeedData = [
18
- // ────────────────────────────────────────────────────────────────────────────
19
- // User Addresses — Buyer delivery addresses
20
- // ────────────────────────────────────────────────────────────────────────────
21
23
  // Yugi Muto — Home
22
24
  {
23
25
  id: "addr-yugi-home",
@@ -36,24 +38,6 @@ const _rawAddressesSeedData = [
36
38
  createdAt: daysAgo(180),
37
39
  updatedAt: daysAgo(1),
38
40
  },
39
- // Yugi Muto — Grandpa's Card Shop
40
- {
41
- id: "addr-yugi-shop",
42
- ownerType: "user",
43
- ownerId: "user-yugi-muto",
44
- label: "Grandpa's Card Shop",
45
- fullName: "Yugi Muto",
46
- phone: "+91-99999-10002",
47
- addressLine1: "45 Trading Card Plaza",
48
- addressLine2: "Domino City Center",
49
- city: "Domino City",
50
- state: "Tokyo",
51
- postalCode: "110-0002",
52
- country: "Japan",
53
- isDefault: false,
54
- createdAt: daysAgo(150),
55
- updatedAt: daysAgo(30),
56
- },
57
41
  // Seto Kaiba — Kaiba Mansion
58
42
  {
59
43
  id: "addr-kaiba-mansion",
@@ -72,24 +56,6 @@ const _rawAddressesSeedData = [
72
56
  createdAt: daysAgo(200),
73
57
  updatedAt: daysAgo(10),
74
58
  },
75
- // Seto Kaiba — Kaiba Land Office
76
- {
77
- id: "addr-kaiba-land",
78
- ownerType: "user",
79
- ownerId: "user-seto-kaiba",
80
- label: "Kaiba Land",
81
- fullName: "Seto Kaiba",
82
- phone: "+91-99999-20002",
83
- addressLine1: "500 Kaiba Land Boulevard",
84
- addressLine2: "Tokyo Tower District",
85
- city: "Tokyo",
86
- state: "Tokyo",
87
- postalCode: "105-0001",
88
- country: "Japan",
89
- isDefault: false,
90
- createdAt: daysAgo(180),
91
- updatedAt: daysAgo(20),
92
- },
93
59
  // Admin (LetItRip) — HQ
94
60
  {
95
61
  id: "addr-letitrip-hq",
@@ -108,62 +74,5 @@ const _rawAddressesSeedData = [
108
74
  createdAt: daysAgo(365),
109
75
  updatedAt: daysAgo(5),
110
76
  },
111
- // ────────────────────────────────────────────────────────────────────────────
112
- // Store Addresses — Pickup / fulfillment locations
113
- // ────────────────────────────────────────────────────────────────────────────
114
- // Kaiba Corp Card Vault — HQ (fulfillment)
115
- {
116
- id: "addr-kaiba-corp-hq",
117
- ownerType: "store",
118
- ownerId: "store-kaiba-corp-cards",
119
- label: "Kaiba Corp HQ",
120
- fullName: "Kaiba Corp Card Vault",
121
- phone: "+91-99999-40001",
122
- addressLine1: "2000 Kaiba Corp Tower",
123
- addressLine2: "Domino Business District",
124
- city: "Domino City",
125
- state: "Tokyo",
126
- postalCode: "110-0030",
127
- country: "Japan",
128
- isDefault: true,
129
- createdAt: daysAgo(360),
130
- updatedAt: daysAgo(2),
131
- },
132
- // Kaiba Corp Card Vault — Warehouse (backup fulfillment)
133
- {
134
- id: "addr-kaiba-corp-warehouse",
135
- ownerType: "store",
136
- ownerId: "store-kaiba-corp-cards",
137
- label: "Kaiba Land Warehouse",
138
- fullName: "Kaiba Land Fulfillment Center",
139
- phone: "+91-99999-40002",
140
- addressLine1: "300 Kaiba Land Logistics",
141
- addressLine2: "Tokyo Harbor Zone",
142
- city: "Tokyo",
143
- state: "Tokyo",
144
- postalCode: "135-0064",
145
- country: "Japan",
146
- isDefault: false,
147
- createdAt: daysAgo(300),
148
- updatedAt: daysAgo(15),
149
- },
150
- // LetItRip Official — Fulfillment
151
- {
152
- id: "addr-letitrip-fulfillment",
153
- ownerType: "store",
154
- ownerId: "store-letitrip-official",
155
- label: "LetItRip Fulfillment",
156
- fullName: "LetItRip Fulfillment Center",
157
- phone: "+91-99999-50001",
158
- addressLine1: "200 Logistics Lane",
159
- addressLine2: "Mumbai Warehouse District",
160
- city: "Mumbai",
161
- state: "Maharashtra",
162
- postalCode: "400086",
163
- country: "India",
164
- isDefault: true,
165
- createdAt: daysAgo(365),
166
- updatedAt: daysAgo(1),
167
- },
168
77
  ];
169
78
  export const addressesSeedData = _rawAddressesSeedData;