@infrab4a/connect 4.29.0-beta.0 → 4.29.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
@@ -5521,6 +5521,7 @@ class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5521
5521
  });
5522
5522
  }
5523
5523
  async addFiltersToCategory(categoryId, filterIds) {
5524
+ this.logger = DebugHelper.from(this, 'addFiltersToCategory');
5524
5525
  await this.mutation('insert_category_filter', ['affected_rows'], {
5525
5526
  objects: {
5526
5527
  type: '[category_filter_insert_input!]',
@@ -5535,6 +5536,7 @@ class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5535
5536
  });
5536
5537
  }
5537
5538
  deleteByCategory(categoryId) {
5539
+ this.logger = DebugHelper.from(this, 'deleteByCategory');
5538
5540
  return this.mutation('delete_category_filter', ['affected_rows'], {
5539
5541
  where: {
5540
5542
  type: 'category_filter_bool_exp',
@@ -5544,6 +5546,7 @@ class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5544
5546
  });
5545
5547
  }
5546
5548
  deleteByCategoryAndFilter(categoryId, filterId) {
5549
+ this.logger = DebugHelper.from(this, 'deleteByCategoryAndFilter');
5547
5550
  return this.mutation('delete_category_filter', ['affected_rows'], {
5548
5551
  where: {
5549
5552
  type: 'category_filter_bool_exp',
@@ -5552,19 +5555,7 @@ class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5552
5555
  },
5553
5556
  });
5554
5557
  }
5555
- }
5556
- tslib.__decorate([
5557
- Log(),
5558
- tslib.__metadata("design:type", Function),
5559
- tslib.__metadata("design:paramtypes", [Number]),
5560
- tslib.__metadata("design:returntype", Promise)
5561
- ], CategoryFilterHasuraGraphQLRepository.prototype, "deleteByCategory", null);
5562
- tslib.__decorate([
5563
- Log(),
5564
- tslib.__metadata("design:type", Function),
5565
- tslib.__metadata("design:paramtypes", [Number, Number]),
5566
- tslib.__metadata("design:returntype", Promise)
5567
- ], CategoryFilterHasuraGraphQLRepository.prototype, "deleteByCategoryAndFilter", null);
5558
+ }
5568
5559
 
5569
5560
  class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
5570
5561
  constructor({ endpoint, authOptions, interceptors, cache, }, productRepository, categoryFilterRepository) {
@@ -6058,6 +6049,7 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
6058
6049
  });
6059
6050
  }
6060
6051
  async removeProductsFromCategory(categoryId, productIds) {
6052
+ this.logger = DebugHelper.from(this, 'removeProductsFromCategory');
6061
6053
  await this.mutation('delete_category_product', ['affected_rows'], {
6062
6054
  where: {
6063
6055
  type: 'category_product_bool_exp',
@@ -6070,6 +6062,7 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
6070
6062
  });
6071
6063
  }
6072
6064
  async removeProductFromCategories(productId, categoryIds) {
6065
+ this.logger = DebugHelper.from(this, 'removeProductFromCategories');
6073
6066
  await this.mutation('delete_category_product', ['affected_rows'], {
6074
6067
  where: {
6075
6068
  type: 'category_product_bool_exp',
@@ -6082,6 +6075,7 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
6082
6075
  });
6083
6076
  }
6084
6077
  async addProductsToCategory(categoryId, productIds) {
6078
+ this.logger = DebugHelper.from(this, 'addProductsToCategory');
6085
6079
  await this.mutation('insert_category_product', ['affected_rows'], {
6086
6080
  objects: {
6087
6081
  type: '[category_product_insert_input!]',
@@ -6100,6 +6094,7 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
6100
6094
  });
6101
6095
  }
6102
6096
  async addProductToCategories(productId, categoryIds) {
6097
+ this.logger = DebugHelper.from(this, 'addProductToCategories');
6103
6098
  await this.mutation('insert_category_product', ['affected_rows'], {
6104
6099
  objects: {
6105
6100
  type: '[category_product_insert_input!]',
package/index.esm.js CHANGED
@@ -5496,6 +5496,7 @@ class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5496
5496
  });
5497
5497
  }
5498
5498
  async addFiltersToCategory(categoryId, filterIds) {
5499
+ this.logger = DebugHelper.from(this, 'addFiltersToCategory');
5499
5500
  await this.mutation('insert_category_filter', ['affected_rows'], {
5500
5501
  objects: {
5501
5502
  type: '[category_filter_insert_input!]',
@@ -5510,6 +5511,7 @@ class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5510
5511
  });
5511
5512
  }
5512
5513
  deleteByCategory(categoryId) {
5514
+ this.logger = DebugHelper.from(this, 'deleteByCategory');
5513
5515
  return this.mutation('delete_category_filter', ['affected_rows'], {
5514
5516
  where: {
5515
5517
  type: 'category_filter_bool_exp',
@@ -5519,6 +5521,7 @@ class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5519
5521
  });
5520
5522
  }
5521
5523
  deleteByCategoryAndFilter(categoryId, filterId) {
5524
+ this.logger = DebugHelper.from(this, 'deleteByCategoryAndFilter');
5522
5525
  return this.mutation('delete_category_filter', ['affected_rows'], {
5523
5526
  where: {
5524
5527
  type: 'category_filter_bool_exp',
@@ -5527,19 +5530,7 @@ class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5527
5530
  },
5528
5531
  });
5529
5532
  }
5530
- }
5531
- __decorate([
5532
- Log(),
5533
- __metadata("design:type", Function),
5534
- __metadata("design:paramtypes", [Number]),
5535
- __metadata("design:returntype", Promise)
5536
- ], CategoryFilterHasuraGraphQLRepository.prototype, "deleteByCategory", null);
5537
- __decorate([
5538
- Log(),
5539
- __metadata("design:type", Function),
5540
- __metadata("design:paramtypes", [Number, Number]),
5541
- __metadata("design:returntype", Promise)
5542
- ], CategoryFilterHasuraGraphQLRepository.prototype, "deleteByCategoryAndFilter", null);
5533
+ }
5543
5534
 
5544
5535
  class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
5545
5536
  constructor({ endpoint, authOptions, interceptors, cache, }, productRepository, categoryFilterRepository) {
@@ -6033,6 +6024,7 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
6033
6024
  });
6034
6025
  }
6035
6026
  async removeProductsFromCategory(categoryId, productIds) {
6027
+ this.logger = DebugHelper.from(this, 'removeProductsFromCategory');
6036
6028
  await this.mutation('delete_category_product', ['affected_rows'], {
6037
6029
  where: {
6038
6030
  type: 'category_product_bool_exp',
@@ -6045,6 +6037,7 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
6045
6037
  });
6046
6038
  }
6047
6039
  async removeProductFromCategories(productId, categoryIds) {
6040
+ this.logger = DebugHelper.from(this, 'removeProductFromCategories');
6048
6041
  await this.mutation('delete_category_product', ['affected_rows'], {
6049
6042
  where: {
6050
6043
  type: 'category_product_bool_exp',
@@ -6057,6 +6050,7 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
6057
6050
  });
6058
6051
  }
6059
6052
  async addProductsToCategory(categoryId, productIds) {
6053
+ this.logger = DebugHelper.from(this, 'addProductsToCategory');
6060
6054
  await this.mutation('insert_category_product', ['affected_rows'], {
6061
6055
  objects: {
6062
6056
  type: '[category_product_insert_input!]',
@@ -6075,6 +6069,7 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
6075
6069
  });
6076
6070
  }
6077
6071
  async addProductToCategories(productId, categoryIds) {
6072
+ this.logger = DebugHelper.from(this, 'addProductToCategories');
6078
6073
  await this.mutation('insert_category_product', ['affected_rows'], {
6079
6074
  objects: {
6080
6075
  type: '[category_product_insert_input!]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.29.0-beta.0",
3
+ "version": "4.29.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },