@infrab4a/connect-angular 4.19.0-beta.12 → 4.19.0-beta.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.
@@ -1390,30 +1390,6 @@ class CatalogService {
1390
1390
  this.productSearch = productSearch;
1391
1391
  this.productsByTerm = {};
1392
1392
  this.brandsList = {};
1393
- this.fields = [
1394
- 'id',
1395
- 'name',
1396
- 'slug',
1397
- 'images',
1398
- 'miniatures',
1399
- 'price',
1400
- 'stock',
1401
- 'published',
1402
- 'CEST',
1403
- 'EAN',
1404
- 'NCM',
1405
- 'brand',
1406
- 'costPrice',
1407
- 'hasVariants',
1408
- 'isKit',
1409
- 'sku',
1410
- 'rate',
1411
- 'tags',
1412
- 'type',
1413
- 'shoppingCount',
1414
- 'gender',
1415
- 'createdAt',
1416
- ];
1417
1393
  this.buildFilterQuery = ({ clubDiscount, brands, prices, gender, tags, rate, customOptions, }) => {
1418
1394
  const filters = {};
1419
1395
  if (clubDiscount?.length)
@@ -1522,7 +1498,6 @@ class CatalogService {
1522
1498
  return this.findCatalogAndSortByMostRevelant(mostRelevant, productsIds, options, limits, optionsCache);
1523
1499
  }
1524
1500
  const repoParams = {
1525
- fields: this.fields,
1526
1501
  filters: {
1527
1502
  ...(await this.buildMainFilter(options)),
1528
1503
  ...this.buildFilterQuery(options?.filters || {}),
@@ -1555,7 +1530,6 @@ class CatalogService {
1555
1530
  const brandsList = this.brandsList[this.buildIndexBrands(options)];
1556
1531
  const mostRelevantProductsIds = [...new Set(mostRelevants.concat(productIds))];
1557
1532
  const totalResult = await this.productRepository.findCatalog({
1558
- fields: this.fields,
1559
1533
  filters: {
1560
1534
  id: { operator: Where.IN, value: mostRelevantProductsIds },
1561
1535
  ...this.buildFilterQuery(options?.filters || {}),
@@ -1622,7 +1596,6 @@ class CatalogService {
1622
1596
  filters: {
1623
1597
  id: { operator: Where.IN, value: orderedId },
1624
1598
  },
1625
- fields: this.fields,
1626
1599
  });
1627
1600
  await this.setBrandsList(options, totalResult.distinct?.brand);
1628
1601
  return {