@infrab4a/connect 4.25.2-beta.2 → 4.26.0

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/index.cjs.js CHANGED
@@ -1254,8 +1254,6 @@ const parseDateTime = (value) => {
1254
1254
  return date;
1255
1255
  };
1256
1256
 
1257
- if (!global && globalThis)
1258
- global = globalThis;
1259
1257
  const deserialize = (data) => {
1260
1258
  return eval('(' + data + ')');
1261
1259
  };
@@ -5546,6 +5544,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
5546
5544
  'shop',
5547
5545
  { shops: { columnName: 'shops', type: HasuraGraphQLColumnType.Jsonb } },
5548
5546
  'slug',
5547
+ { brandEquity: { columnName: 'brand_equity' } },
5549
5548
  { brandCategory: { columnName: 'brand_category' } },
5550
5549
  { brandCategoryBanner: { columnName: 'brand_banner' } },
5551
5550
  { brandCategoryBannerMobile: { columnName: 'brand_banner_mobile' } },
@@ -5778,6 +5777,8 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
5778
5777
  'shoppingCount',
5779
5778
  'gender',
5780
5779
  'createdAt',
5780
+ 'label',
5781
+ 'outlet',
5781
5782
  ];
5782
5783
  const products = [];
5783
5784
  const mostRelevantsIds = category.getMostRelevantByShop(shop);
@@ -6489,7 +6490,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
6489
6490
  const bindFields = fields ||
6490
6491
  this.fields
6491
6492
  .map((field) => (typeof field === 'string' ? field : Object.keys(field).shift()))
6492
- .filter((field) => field !== 'reviews');
6493
+ .filter((field) => field !== 'reviews' && field !== 'categories');
6493
6494
  if ((_b = (_a = options.options) === null || _a === void 0 ? void 0 : _a.minimal) === null || _b === void 0 ? void 0 : _b.includes('price'))
6494
6495
  (_c = options.options) === null || _c === void 0 ? void 0 : _c.minimal.push('price.price', 'price.fullPrice', 'price.subscriberPrice');
6495
6496
  if ((_e = (_d = options.options) === null || _d === void 0 ? void 0 : _d.maximum) === null || _e === void 0 ? void 0 : _e.includes('price'))
package/index.esm.js CHANGED
@@ -1229,8 +1229,6 @@ const parseDateTime = (value) => {
1229
1229
  return date;
1230
1230
  };
1231
1231
 
1232
- if (!global && globalThis)
1233
- global = globalThis;
1234
1232
  const deserialize = (data) => {
1235
1233
  return eval('(' + data + ')');
1236
1234
  };
@@ -5521,6 +5519,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
5521
5519
  'shop',
5522
5520
  { shops: { columnName: 'shops', type: HasuraGraphQLColumnType.Jsonb } },
5523
5521
  'slug',
5522
+ { brandEquity: { columnName: 'brand_equity' } },
5524
5523
  { brandCategory: { columnName: 'brand_category' } },
5525
5524
  { brandCategoryBanner: { columnName: 'brand_banner' } },
5526
5525
  { brandCategoryBannerMobile: { columnName: 'brand_banner_mobile' } },
@@ -5753,6 +5752,8 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
5753
5752
  'shoppingCount',
5754
5753
  'gender',
5755
5754
  'createdAt',
5755
+ 'label',
5756
+ 'outlet',
5756
5757
  ];
5757
5758
  const products = [];
5758
5759
  const mostRelevantsIds = category.getMostRelevantByShop(shop);
@@ -6464,7 +6465,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
6464
6465
  const bindFields = fields ||
6465
6466
  this.fields
6466
6467
  .map((field) => (typeof field === 'string' ? field : Object.keys(field).shift()))
6467
- .filter((field) => field !== 'reviews');
6468
+ .filter((field) => field !== 'reviews' && field !== 'categories');
6468
6469
  if ((_b = (_a = options.options) === null || _a === void 0 ? void 0 : _a.minimal) === null || _b === void 0 ? void 0 : _b.includes('price'))
6469
6470
  (_c = options.options) === null || _c === void 0 ? void 0 : _c.minimal.push('price.price', 'price.fullPrice', 'price.subscriberPrice');
6470
6471
  if ((_e = (_d = options.options) === null || _d === void 0 ? void 0 : _d.maximum) === null || _e === void 0 ? void 0 : _e.includes('price'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.25.2-beta.2",
3
+ "version": "4.26.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -7,6 +7,7 @@ export declare class Category extends BaseModel<Category> {
7
7
  id: string;
8
8
  brandCategory: boolean;
9
9
  brandLogo?: string;
10
+ brandEquity?: 'unknown' | 'low' | 'mid' | 'strong';
10
11
  name: string;
11
12
  slug: string;
12
13
  image?: string;