@infrab4a/connect 4.1.6-beta-0 → 4.1.6-beta.1
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 +13 -3
- package/index.esm.js +13 -3
- package/package.json +1 -1
- package/src/domain/catalog/models/types/shop-description.type.d.ts +1 -0
- package/src/domain/catalog/repositories/product-reviews.repository.d.ts +2 -0
- package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts +2 -0
package/index.cjs.js
CHANGED
|
@@ -4798,9 +4798,10 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4798
4798
|
howToUse: data.how_to_use,
|
|
4799
4799
|
brand: data.brand_description,
|
|
4800
4800
|
ingredients: data.ingredients,
|
|
4801
|
+
purpose: data.purpose,
|
|
4801
4802
|
}),
|
|
4802
4803
|
bindFindFilter: (filters) => {
|
|
4803
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((filters === null || filters === void 0 ? void 0 : filters.description) && { description: filters.description })), (filters.differentials && { differentials: filters.differentials })), (filters.whoMustUse && {
|
|
4804
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((filters === null || filters === void 0 ? void 0 : filters.description) && { description: filters.description })), (filters.differentials && { differentials: filters.differentials })), (filters.whoMustUse && {
|
|
4804
4805
|
who_must_use: filters.whoMustUse,
|
|
4805
4806
|
})), (filters.howToUse && {
|
|
4806
4807
|
how_to_use: filters.howToUse,
|
|
@@ -4808,11 +4809,13 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4808
4809
|
brand_description: filters.brand,
|
|
4809
4810
|
})), (filters.ingredients && {
|
|
4810
4811
|
ingredients: filters.ingredients,
|
|
4812
|
+
})), (filters.purpose && {
|
|
4813
|
+
purpose: filters.purpose,
|
|
4811
4814
|
}));
|
|
4812
4815
|
},
|
|
4813
|
-
bindPersistData: (descriptionData) => (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 && {
|
|
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 && {
|
|
4814
4817
|
who_must_use: descriptionData.whoMustUse,
|
|
4815
|
-
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients }))),
|
|
4818
|
+
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients })), (descriptionData.purpose && { ingredients: descriptionData.purpose }))),
|
|
4816
4819
|
},
|
|
4817
4820
|
},
|
|
4818
4821
|
{ differentials: { columnName: 'differentials' } },
|
|
@@ -4820,6 +4823,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4820
4823
|
{ howToUse: { columnName: 'how_to_use' } },
|
|
4821
4824
|
{ brandDescription: { columnName: 'brand_description' } },
|
|
4822
4825
|
{ ingredients: { columnName: 'ingredients' } },
|
|
4826
|
+
{ purpose: { columnName: 'purpose' } },
|
|
4823
4827
|
{ hasVariants: { columnName: 'has_variants' } },
|
|
4824
4828
|
{
|
|
4825
4829
|
images: {
|
|
@@ -5230,6 +5234,12 @@ class ProductReviewsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
|
|
|
5230
5234
|
],
|
|
5231
5235
|
});
|
|
5232
5236
|
}
|
|
5237
|
+
aproveReview(id) {
|
|
5238
|
+
return this.update({ id, status: true });
|
|
5239
|
+
}
|
|
5240
|
+
disaproveReview(id) {
|
|
5241
|
+
return this.update({ id, status: false });
|
|
5242
|
+
}
|
|
5233
5243
|
}
|
|
5234
5244
|
|
|
5235
5245
|
class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
package/index.esm.js
CHANGED
|
@@ -4774,9 +4774,10 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4774
4774
|
howToUse: data.how_to_use,
|
|
4775
4775
|
brand: data.brand_description,
|
|
4776
4776
|
ingredients: data.ingredients,
|
|
4777
|
+
purpose: data.purpose,
|
|
4777
4778
|
}),
|
|
4778
4779
|
bindFindFilter: (filters) => {
|
|
4779
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((filters === null || filters === void 0 ? void 0 : filters.description) && { description: filters.description })), (filters.differentials && { differentials: filters.differentials })), (filters.whoMustUse && {
|
|
4780
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((filters === null || filters === void 0 ? void 0 : filters.description) && { description: filters.description })), (filters.differentials && { differentials: filters.differentials })), (filters.whoMustUse && {
|
|
4780
4781
|
who_must_use: filters.whoMustUse,
|
|
4781
4782
|
})), (filters.howToUse && {
|
|
4782
4783
|
how_to_use: filters.howToUse,
|
|
@@ -4784,11 +4785,13 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4784
4785
|
brand_description: filters.brand,
|
|
4785
4786
|
})), (filters.ingredients && {
|
|
4786
4787
|
ingredients: filters.ingredients,
|
|
4788
|
+
})), (filters.purpose && {
|
|
4789
|
+
purpose: filters.purpose,
|
|
4787
4790
|
}));
|
|
4788
4791
|
},
|
|
4789
|
-
bindPersistData: (descriptionData) => (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 && {
|
|
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 && {
|
|
4790
4793
|
who_must_use: descriptionData.whoMustUse,
|
|
4791
|
-
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients }))),
|
|
4794
|
+
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients })), (descriptionData.purpose && { ingredients: descriptionData.purpose }))),
|
|
4792
4795
|
},
|
|
4793
4796
|
},
|
|
4794
4797
|
{ differentials: { columnName: 'differentials' } },
|
|
@@ -4796,6 +4799,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4796
4799
|
{ howToUse: { columnName: 'how_to_use' } },
|
|
4797
4800
|
{ brandDescription: { columnName: 'brand_description' } },
|
|
4798
4801
|
{ ingredients: { columnName: 'ingredients' } },
|
|
4802
|
+
{ purpose: { columnName: 'purpose' } },
|
|
4799
4803
|
{ hasVariants: { columnName: 'has_variants' } },
|
|
4800
4804
|
{
|
|
4801
4805
|
images: {
|
|
@@ -5206,6 +5210,12 @@ class ProductReviewsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHa
|
|
|
5206
5210
|
],
|
|
5207
5211
|
});
|
|
5208
5212
|
}
|
|
5213
|
+
aproveReview(id) {
|
|
5214
|
+
return this.update({ id, status: true });
|
|
5215
|
+
}
|
|
5216
|
+
disaproveReview(id) {
|
|
5217
|
+
return this.update({ id, status: false });
|
|
5218
|
+
}
|
|
5209
5219
|
}
|
|
5210
5220
|
|
|
5211
5221
|
class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
package/package.json
CHANGED
|
@@ -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
|
}
|
package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts
CHANGED
|
@@ -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 {};
|