Comparing version 0.2.7 to 0.2.8
@@ -19,3 +19,5 @@ import { Pagination } from '../dto'; | ||
deleteBannerCategory(category_id: string): Promise<AxiosResponse<void>>; | ||
getBanners(params?: TYPE.BannerParams): Promise<AxiosResponse<TYPE.Banner[]>>; | ||
getBanners(params?: TYPE.BannerParams): Promise<AxiosResponse<{ | ||
banners: TYPE.Banner[]; | ||
}>>; | ||
createBanner(body: TYPE.NewBanner): Promise<AxiosResponse<void>>; | ||
@@ -22,0 +24,0 @@ deleteBanner(banner_id: string): Promise<AxiosResponse<void>>; |
@@ -294,3 +294,5 @@ import { GetProductResponse, Image, Pagination } from '../dto'; | ||
}; | ||
export declare type GetBrands = Brand[]; | ||
export declare type GetBrands = { | ||
brands: Brand[]; | ||
}; | ||
export declare type CreateFilterOption = { | ||
@@ -297,0 +299,0 @@ value: string; |
@@ -14,3 +14,3 @@ "use strict"; | ||
const axios_1 = require("axios"); | ||
const configGenerator = (API_ACCESS, options, contentType = 'application/json') => { | ||
const configGenerator = (API_ACCESS, options, contentType = 'multipart/form-data') => { | ||
return Object.assign({ headers: Object.assign(Object.assign({}, (API_ACCESS ? { Authorization: `Bearer ${API_ACCESS}` } : {})), { 'Content-type': contentType }) }, options); | ||
@@ -17,0 +17,0 @@ }; |
@@ -45,4 +45,4 @@ import { AxiosResponse } from 'axios'; | ||
setAvatar(avatar_id: string): Promise<AxiosResponse<void>>; | ||
updateToPremium(params?: TYPE.PayCartOptions): Promise<AxiosResponse<TYPE.CartPayResponse>>; | ||
createInstance(instance: TYPE.NewInstance): Promise<AxiosResponse<void>>; | ||
updateToPremium(params?: TYPE.PayCartOptions): Promise<AxiosResponse<void>>; | ||
createInstance(instance: TYPE.NewInstance): Promise<AxiosResponse<number>>; | ||
getInstances(params?: Pagination): Promise<AxiosResponse<TYPE.UserShops>>; | ||
@@ -49,0 +49,0 @@ like(body: TYPE.LikeParams): Promise<AxiosResponse<void>>; |
@@ -237,2 +237,3 @@ import { UserRegisterRequest } from '../dto/user/UserRegister.request'; | ||
parent: string; | ||
parent_comment: string; | ||
text: string; | ||
@@ -239,0 +240,0 @@ medias: string[]; |
{ | ||
"name": "tayeh.js", | ||
"version": "0.2.07", | ||
"version": "0.2.08", | ||
"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
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
197363
3868