Comparing version 1.1.0 to 1.2.0
@@ -9,4 +9,12 @@ declare type StoreId = number; | ||
constructor(storeId: StoreId, storeAccessToken: StoreAccessToken, timeout?: number, headers?: object); | ||
/** | ||
* Получить профиль магазина. | ||
*/ | ||
getProfile(): Promise<import("node-result").ResultOK<any> | import("node-result").ResultFAIL<any>>; | ||
/** | ||
* Получить заказ. | ||
* @param {OrderId} id - идентификатор заказа. | ||
*/ | ||
getOrder(id: OrderId): Promise<import("node-result").ResultOK<any> | import("node-result").ResultFAIL<any>>; | ||
} | ||
export {}; |
@@ -25,2 +25,20 @@ "use strict"; | ||
} | ||
/** | ||
* Получить профиль магазина. | ||
*/ | ||
getProfile() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
try { | ||
const { data } = yield this.instance.get('/profile'); | ||
return node_result_1.ResultOk(data); | ||
} | ||
catch (error) { | ||
return node_result_1.ResultFail(error); | ||
} | ||
}); | ||
} | ||
/** | ||
* Получить заказ. | ||
* @param {OrderId} id - идентификатор заказа. | ||
*/ | ||
getOrder(id) { | ||
@@ -27,0 +45,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "ecwid", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "ecwid", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
5080
74