@mohasinac/appkit 3.2.2 → 3.2.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.
@@ -2206,14 +2206,14 @@ const bundleRows = [
2206
2206
  },
2207
2207
  ];
2208
2208
  export const categoriesSeedData = [
2209
- ...rawCategories.map((c) => ({ viewCount: 0, ancestors: [], ...c, createdByType: "admin" })),
2210
- ...sublistingRows.map((s) => ({ viewCount: 0, ancestors: [], ...s, createdByType: "admin" })),
2211
- ...brandRows.map((b) => ({ viewCount: 0, ancestors: [], ...b, createdByType: "admin" })),
2212
- ...bundleRows.map((bundle) => ({ viewCount: 0, ancestors: [], ...bundle, createdByType: "admin" })),
2209
+ ...rawCategories.map((c) => ({ ancestors: [], ...c, createdByType: "admin" })),
2210
+ ...sublistingRows.map((s) => ({ ancestors: [], ...s, createdByType: "admin" })),
2211
+ ...brandRows.map((b) => ({ ancestors: [], ...b, createdByType: "admin" })),
2212
+ ...bundleRows.map((bundle) => ({ ancestors: [], ...bundle, createdByType: "admin" })),
2213
2213
  ];
2214
2214
  // P-1 default seed: excludes bundle rows (FEATURE_BUNDLES is off in P-1)
2215
2215
  export const categoriesP1SeedData = [
2216
- ...rawCategories.map((c) => ({ viewCount: 0, ancestors: [], ...c, createdByType: "admin" })),
2217
- ...sublistingRows.map((s) => ({ viewCount: 0, ancestors: [], ...s, createdByType: "admin" })),
2218
- ...brandRows.map((b) => ({ viewCount: 0, ancestors: [], ...b, createdByType: "admin" })),
2216
+ ...rawCategories.map((c) => ({ ancestors: [], ...c, createdByType: "admin" })),
2217
+ ...sublistingRows.map((s) => ({ ancestors: [], ...s, createdByType: "admin" })),
2218
+ ...brandRows.map((b) => ({ ancestors: [], ...b, createdByType: "admin" })),
2219
2219
  ];
@@ -19,7 +19,6 @@ function withTokens(p) {
19
19
  return {
20
20
  tags: [],
21
21
  featured: false,
22
- viewCount: 0,
23
22
  ...p,
24
23
  searchTokens: buildSearchTokens(p.title, p.description, p.brand, p.brandSlug, p.categoryNames, p.tags, p.features, p.condition, p.card?.setName, p.card?.cardNumber, p.grading?.service, p.specifications?.map((s) => `${s.name} ${s.value}`)),
25
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohasinac/appkit",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"