@infrab4a/connect 4.1.6-beta.1 → 4.1.6-beta.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.
package/index.cjs.js
CHANGED
|
@@ -4815,7 +4815,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4815
4815
|
},
|
|
4816
4816
|
bindPersistData: (descriptionData) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((descriptionData === null || descriptionData === void 0 ? void 0 : descriptionData.description) && { description: descriptionData.description })), (descriptionData.differentials && { differentials: descriptionData.differentials })), (descriptionData.whoMustUse && {
|
|
4817
4817
|
who_must_use: descriptionData.whoMustUse,
|
|
4818
|
-
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients })), (descriptionData.purpose && {
|
|
4818
|
+
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients })), (descriptionData.purpose && { purpose: descriptionData.purpose }))),
|
|
4819
4819
|
},
|
|
4820
4820
|
},
|
|
4821
4821
|
{ differentials: { columnName: 'differentials' } },
|
|
@@ -5234,12 +5234,6 @@ 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
|
-
}
|
|
5243
5237
|
}
|
|
5244
5238
|
|
|
5245
5239
|
class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
package/index.esm.js
CHANGED
|
@@ -4791,7 +4791,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4791
4791
|
},
|
|
4792
4792
|
bindPersistData: (descriptionData) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((descriptionData === null || descriptionData === void 0 ? void 0 : descriptionData.description) && { description: descriptionData.description })), (descriptionData.differentials && { differentials: descriptionData.differentials })), (descriptionData.whoMustUse && {
|
|
4793
4793
|
who_must_use: descriptionData.whoMustUse,
|
|
4794
|
-
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients })), (descriptionData.purpose && {
|
|
4794
|
+
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients })), (descriptionData.purpose && { purpose: descriptionData.purpose }))),
|
|
4795
4795
|
},
|
|
4796
4796
|
},
|
|
4797
4797
|
{ differentials: { columnName: 'differentials' } },
|
|
@@ -5210,12 +5210,6 @@ 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
|
-
}
|
|
5219
5213
|
}
|
|
5220
5214
|
|
|
5221
5215
|
class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
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>;
|
|
6
4
|
}
|
package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts
CHANGED
|
@@ -6,7 +6,5 @@ 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>;
|
|
11
9
|
}
|
|
12
10
|
export {};
|