@maioradv/cms-basic-lib 1.3.3 → 1.3.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.
|
@@ -5,6 +5,7 @@ import { QueryProductAttributeValueGQLDto } from "./graphql";
|
|
|
5
5
|
import { ProductAttributeValue, QueryProductAttributeValueDto, UpdateProductAttributeValueDto } from "./types";
|
|
6
6
|
export default class ProductAttributeValues extends ApiModule implements GraphApiModuleI {
|
|
7
7
|
findAll(args?: QueryProductAttributeValueDto): Promise<PaginatedDto<ProductAttributeValue>>;
|
|
8
|
+
count(id: number): Promise<number>;
|
|
8
9
|
update(id: number, data: UpdateProductAttributeValueDto): Promise<ProductAttributeValue>;
|
|
9
10
|
remove(id: number): Promise<ProductAttributeValue>;
|
|
10
11
|
list(args?: QueryProductAttributeValueGQLDto): Promise<PaginatedGQL<ProductAttributeValue>>;
|
|
@@ -7,6 +7,9 @@ class ProductAttributeValues extends model_1.ApiModule {
|
|
|
7
7
|
findAll(args = {}) {
|
|
8
8
|
return this._call('get', '/product-attribute-values', (0, queryParams_1.queryParams)(args));
|
|
9
9
|
}
|
|
10
|
+
count(id) {
|
|
11
|
+
return this._call('get', `/product-attribute-values/${id}/count`);
|
|
12
|
+
}
|
|
10
13
|
update(id, data) {
|
|
11
14
|
return this._call('patch', `/product-attribute-values/${id}`, data);
|
|
12
15
|
}
|