@infrab4a/connect 4.1.6-beta.3 → 4.1.6-beta.4

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
@@ -5234,6 +5234,12 @@ class ProductReviewsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5234
5234
  ],
5235
5235
  });
5236
5236
  }
5237
+ aproveReview(id) {
5238
+ return this.update({ id, status: true });
5239
+ }
5240
+ disaproveReview(id) {
5241
+ return this.update({ id, status: false });
5242
+ }
5237
5243
  }
5238
5244
 
5239
5245
  class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
package/index.esm.js CHANGED
@@ -5210,6 +5210,12 @@ class ProductReviewsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
5210
5210
  ],
5211
5211
  });
5212
5212
  }
5213
+ aproveReview(id) {
5214
+ return this.update({ id, status: true });
5215
+ }
5216
+ disaproveReview(id) {
5217
+ return this.update({ id, status: false });
5218
+ }
5213
5219
  }
5214
5220
 
5215
5221
  class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.1.6-beta.3",
3
+ "version": "4.1.6-beta.4",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -1,4 +1,6 @@
1
1
  import { CrudRepository } from '../../generic/repository/crud.repository';
2
2
  import { ProductReviews } from '../models';
3
3
  export interface ProductReviewsRepository extends CrudRepository<ProductReviews> {
4
+ aproveReview(id: number): Promise<ProductReviews>;
5
+ disaproveReview(id: number): Promise<ProductReviews>;
4
6
  }
@@ -6,5 +6,7 @@ declare const ProductReviewsHasuraGraphQLRepository_base: import("../../../../ut
6
6
  }, [HasuraConstructorParams<ProductReviews> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
7
7
  export declare class ProductReviewsHasuraGraphQLRepository extends ProductReviewsHasuraGraphQLRepository_base implements ProductReviewsRepository {
8
8
  constructor({ endpoint, authOptions, interceptors, }: Pick<HasuraConstructorParams<ProductReviews>, 'endpoint' | 'authOptions' | 'interceptors'>);
9
+ aproveReview(id: number): Promise<ProductReviews>;
10
+ disaproveReview(id: number): Promise<ProductReviews>;
9
11
  }
10
12
  export {};