@gat-solutions/ecommerce
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,2 +0,2 @@ | ||
export * from "./linked-shop.interface"; | ||
export * from "./linked-platform.interface"; | ||
export * from "./pagination-response.interface"; | ||
@@ -3,0 +3,0 @@ export * from "./platform-authorize-url.interface"; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./linked-shop.interface"), exports); | ||
__exportStar(require("./linked-platform.interface"), exports); | ||
__exportStar(require("./pagination-response.interface"), exports); | ||
@@ -20,0 +20,0 @@ __exportStar(require("./platform-authorize-url.interface"), exports); |
{ | ||
"name": "@gat-solutions/ecommerce", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import { ConnectPlatformDto, ConnectTikiInhouseDto, GetAllLinkedProductsDto, GetAllLinkedShopDto, GetAllPlatformProductsDto, GetPlatformAuthorizeUrlDto } from "../dto"; | ||
import { ILinkedShop, IPaginationResponse, IPlatformAuthorizeUrl, IPlatformProduct, ITokenResponse } from "../interfaces"; | ||
import { ILinkedPlatform, IPaginationResponse, IPlatformAuthorizeUrl, IPlatformProduct, ITokenResponse } from "../interfaces"; | ||
export declare class EcommerceService { | ||
@@ -17,11 +17,11 @@ private axiosInstance; | ||
*/ | ||
getAllLinkedShop(payload: GetAllLinkedShopDto): Promise<IPaginationResponse<ILinkedShop>>; | ||
getAllLinkedShop(payload: GetAllLinkedShopDto): Promise<IPaginationResponse<ILinkedPlatform>>; | ||
/** | ||
* Liên kết với sàn thương mại điện tử | ||
*/ | ||
connectPlatform(payload: ConnectPlatformDto): Promise<ILinkedShop>; | ||
connectPlatform(payload: ConnectPlatformDto): Promise<ILinkedPlatform>; | ||
/** | ||
* Liên kết với sàn của Tiki (Inhouse app) | ||
*/ | ||
connectTikiInhouse(payload: ConnectTikiInhouseDto): Promise<ILinkedShop>; | ||
connectTikiInhouse(payload: ConnectTikiInhouseDto): Promise<ILinkedPlatform>; | ||
/** | ||
@@ -28,0 +28,0 @@ * Lấy danh sách sản phẩm trên sàn TMDT |
@@ -24,7 +24,7 @@ "use strict"; | ||
const headers = { | ||
Authorization: `Bearer ${accessToken}` | ||
Authorization: `Bearer ${accessToken}`, | ||
}; | ||
this.axiosInstance = axios_1.default.create({ | ||
baseURL, | ||
headers | ||
headers, | ||
}); | ||
@@ -46,7 +46,7 @@ } | ||
"app-code": appCode, | ||
"secret-key": appSecret | ||
"secret-key": appSecret, | ||
}; | ||
const axiosInstance = axios_1.default.create({ | ||
baseURL, | ||
headers | ||
headers, | ||
}); | ||
@@ -89,3 +89,3 @@ const { data } = yield axiosInstance.get("/application/token"); | ||
headers, | ||
params | ||
params, | ||
}); | ||
@@ -110,3 +110,3 @@ return data; | ||
const { data } = yield this.axiosInstance.post(path, requestData, { | ||
headers | ||
headers, | ||
}); | ||
@@ -131,3 +131,3 @@ return data; | ||
const { data } = yield this.axiosInstance.post(path, requestData, { | ||
headers | ||
headers, | ||
}); | ||
@@ -134,0 +134,0 @@ return data; |
23687
34
652