Socket
Socket
Sign inDemoInstall

tayeh.js

Package Overview
Dependencies
3
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.12 to 0.2.13

6

lib/inventory/index.d.ts

@@ -28,5 +28,2 @@ import { Base } from '../base';

decreaseProductCount(product: string, inventory: string, count: number): Promise<AxiosResponse<void>>;
createProductPrice(params: TYPE.CreatePrice): Promise<AxiosResponse<void>>;
updateProductPrice(params: TYPE.UpdatePrice): Promise<AxiosResponse<void>>;
updateProductPrices(params: TYPE.UpdatePrices): Promise<AxiosResponse<void>>;
getProductPrices(product_id: string): Promise<AxiosResponse<TYPE.GetInstanceProductPriceFormResponse>>;

@@ -38,4 +35,3 @@ addProductMedia(product_id: string, params: TYPE.ProductMedia): Promise<AxiosResponse<void>>;

deleteProductFeature(product_id: string, feature_id: string): Promise<AxiosResponse<void>>;
setProductPriceFilter(product_id: string, params: TYPE.SetProPrices): Promise<AxiosResponse<void>>;
deleteOptionPrice(product_id: string, option_id: string): Promise<AxiosResponse<void>>;
setProductPrice(product_id: string, params: TYPE.SetProPrices): Promise<AxiosResponse<void>>;
getCategories(params?: TYPE.CategoryParams): Promise<AxiosResponse<TYPE.GetInstanceCategoriesResponse>>;

@@ -42,0 +38,0 @@ createCategory(params: TYPE.NewCategory): Promise<AxiosResponse<string>>;

@@ -83,14 +83,2 @@ "use strict";

}
createProductPrice(params) {
const path = `instance/${this.instance_id}/product/price`;
return this.put(path, params);
}
updateProductPrice(params) {
const path = `instance/${this.instance_id}/product/price`;
return this.post(path, params);
}
updateProductPrices(params) {
const path = `instance/${this.instance_id}/product/prices`;
return this.post(path, params);
}
getProductPrices(product_id) {

@@ -120,10 +108,6 @@ const path = `instance/${this.instance_id}/product/${product_id}/price-filter`;

}
setProductPriceFilter(product_id, params) {
const path = `instance/${this.instance_id}/product/${product_id}/price-filter`;
setProductPrice(product_id, params) {
const path = `instance/${this.instance_id}/product/${product_id}/prices`;
return this.post(path, params);
}
deleteOptionPrice(product_id, option_id) {
const path = `instance/${this.instance_id}/product/${product_id}/option/${option_id}/price`;
return this.delete(path);
}
getCategories(params) {

@@ -130,0 +114,0 @@ let query = `instance/${this.instance_id}/categories`;

3

lib/inventory/types.d.ts

@@ -146,6 +146,5 @@ import { GetProductResponse, Image, Pagination } from '../dto';

price_with_off: number;
option_id: string;
};
export declare type SetProPrices = {
filter_id: string;
name: string;
prices: Price[];

@@ -152,0 +151,0 @@ };

{
"name": "tayeh.js",
"version": "0.2.12",
"version": "0.2.13",
"description": "tayeh shop-api client",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc