Comparing version 0.2.11 to 0.2.12
@@ -10,2 +10,3 @@ import { Base } from '../base'; | ||
getProduct(product_id: string): Promise<AxiosResponse<TYPE.InventoryProductInfo>>; | ||
getProductFeatures(product_id: string): Promise<AxiosResponse<TYPE.GetProductFeaturesResponse>>; | ||
getProductReviews(product_id: string, params?: TYPE.GetReviews): Promise<AxiosResponse<TYPE.GetProductReviewsResponse>>; | ||
@@ -40,3 +41,3 @@ getRatingOptions(product_id: string): Promise<AxiosResponse<TYPE.GetProductRatingOptions>>; | ||
getCategories(params?: TYPE.CategoryParams): Promise<AxiosResponse<TYPE.GetInstanceCategoriesResponse>>; | ||
createCategory(params: TYPE.NewCategory): Promise<AxiosResponse<void>>; | ||
createCategory(params: TYPE.NewCategory): Promise<AxiosResponse<string>>; | ||
updateCategory(params: TYPE.EditCategory): Promise<AxiosResponse<void>>; | ||
@@ -43,0 +44,0 @@ deleteCategory(category_id: string): Promise<AxiosResponse<void>>; |
@@ -21,2 +21,6 @@ "use strict"; | ||
} | ||
getProductFeatures(product_id) { | ||
const path = `product/${product_id}/features`; | ||
return this.get(path); | ||
} | ||
getProductReviews(product_id, params) { | ||
@@ -23,0 +27,0 @@ let query = `${resourceName}/${product_id}/reviews`; |
@@ -162,6 +162,8 @@ import { GetProductResponse, Image, Pagination } from '../dto'; | ||
}; | ||
declare type Feature = { | ||
export declare type Feature = { | ||
name: string; | ||
value: any; | ||
}; | ||
declare type FeatureGroup = { | ||
export declare type FeatureGroup = { | ||
name: string; | ||
features: Feature[]; | ||
@@ -168,0 +170,0 @@ }; |
{ | ||
"name": "tayeh.js", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "tayeh shop-api client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198687
3891