tayeh.js
Advanced tools
Comparing version 0.2.13 to 0.2.14
@@ -32,3 +32,5 @@ import { Base } from '../base'; | ||
addProductFeature(body: TYPE.AddProductFeature): Promise<AxiosResponse<void>>; | ||
addBatchProductFeature(body: TYPE.AddProductFeature[]): Promise<AxiosResponse<void>>; | ||
updateProductFeature(body: TYPE.AddProductFeature): Promise<AxiosResponse<void>>; | ||
updateBatchProductFeature(body: TYPE.AddProductFeature[]): Promise<AxiosResponse<void>>; | ||
deleteProductFeature(product_id: string, feature_id: string): Promise<AxiosResponse<void>>; | ||
@@ -35,0 +37,0 @@ setProductPrice(product_id: string, params: TYPE.SetProPrices): Promise<AxiosResponse<void>>; |
@@ -99,2 +99,6 @@ "use strict"; | ||
} | ||
addBatchProductFeature(body) { | ||
const path = `instance/${this.instance_id}/product/batch-feature`; | ||
return this.put(path, body); | ||
} | ||
updateProductFeature(body) { | ||
@@ -104,2 +108,6 @@ const path = `instance/${this.instance_id}/product/feature`; | ||
} | ||
updateBatchProductFeature(body) { | ||
const path = `instance/${this.instance_id}/product/batch-feature`; | ||
return this.post(path, body); | ||
} | ||
deleteProductFeature(product_id, feature_id) { | ||
@@ -106,0 +114,0 @@ const path = `instance/${this.instance_id}/product/${product_id}/feature/${feature_id}`; |
{ | ||
"name": "tayeh.js", | ||
"version": "0.2.13", | ||
"version": "0.2.14", | ||
"description": "tayeh shop-api client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
197867
3880