@maioradv/cms-basic-lib 1.2.6 → 1.2.7

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.
@@ -55,7 +55,7 @@ exports.ProductsResolvers = {
55
55
  updateManyProductAttributes: {
56
56
  name: 'updateManyProductAttributes',
57
57
  query: `mutation ProductAttributesUpdate($productId: Int!, $updateList:[UpdateManyProductAttributesListDto!]!) {
58
- updateManyProductAttributes(id:$productId,updateList:$updateList){
58
+ updateManyProductAttributes(productId:$productId,updateList:$updateList){
59
59
  productAttributeValueId
60
60
  productId
61
61
  position
@@ -1,6 +1,7 @@
1
1
  import { ApiModule } from "../model";
2
2
  import { ProductVariant, UpdateProductVariantDto } from "../products/types";
3
3
  export default class ProductVariants extends ApiModule {
4
+ findOne(id: number): Promise<ProductVariant>;
4
5
  update(id: number, data: UpdateProductVariantDto): Promise<ProductVariant>;
5
6
  remove(id: number): Promise<ProductVariant>;
6
7
  }
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const model_1 = require("../model");
4
4
  class ProductVariants extends model_1.ApiModule {
5
+ findOne(id) {
6
+ return this._call('get', `/product-variants/${id}`);
7
+ }
5
8
  update(id, data) {
6
9
  return this._call('patch', `/product-variants/${id}`, data);
7
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "JS lib for Maior CMS Basic Api",
5
5
  "repository": "https://github.com/maioradv/cms-basic-lib.git",
6
6
  "author": "Maior ADV Srl",