release 0.1.0

This commit is contained in:
apilki
2026-08-21 12:19:50 +00:00
parent 7b0a9d8ad1
commit b73e6aa106
8734 changed files with 470872 additions and 2 deletions

460
dist/apis/PricingStrategyAPI.js vendored Normal file
View File

@@ -0,0 +1,460 @@
"use strict";
/* tslint:disable */
/* eslint-disable */
/**
* Документация Ozon Seller API
* По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. <aside class=\"warning\">Обновляем корневой TLS/SSL-сертификат GlobalSign — вместо него будем использовать <a href=\"https://app.harica.gr/\">HARICA</a>.<br><a href=\"https://dev.ozon.ru/news/775-Izmeneniia-v-Ozon-API-migratsiia-kornevogo-sertifikata-UTs-Ozon/\">Подробнее о переходе на HARICA на платформе разработчиков Ozon for dev</a></aside> > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/)
*
* The version of the OpenAPI document: 2.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PricingStrategyAPI = void 0;
const runtime = require("../runtime");
const index_1 = require("../models/index");
/**
*
*/
class PricingStrategyAPI extends runtime.BaseAPI {
/**
* Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах.
* Список конкурентов
*/
pricingCompetitorsRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['v1GetCompetitorsRequest'] == null) {
throw new runtime.RequiredError('v1GetCompetitorsRequest', 'Required parameter "v1GetCompetitorsRequest" was null or undefined when calling pricingCompetitors().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
const response = yield this.request({
path: `/v1/pricing-strategy/competitors/list`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1GetCompetitorsRequestToJSON)(requestParameters['v1GetCompetitorsRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetCompetitorsResponseFromJSON)(jsonValue));
});
}
/**
* Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах.
* Список конкурентов
*/
pricingCompetitors(v1GetCompetitorsRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingCompetitorsRaw({ v1GetCompetitorsRequest: v1GetCompetitorsRequest }, initOverrides);
return yield response.value();
});
}
/**
* Создать стратегию
*/
pricingCreateRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['v1CreatePricingStrategyRequest'] == null) {
throw new runtime.RequiredError('v1CreatePricingStrategyRequest', 'Required parameter "v1CreatePricingStrategyRequest" was null or undefined when calling pricingCreate().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
const response = yield this.request({
path: `/v1/pricing-strategy/create`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1CreatePricingStrategyRequestToJSON)(requestParameters['v1CreatePricingStrategyRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CreatePricingStrategyResponseFromJSON)(jsonValue));
});
}
/**
* Создать стратегию
*/
pricingCreate(v1CreatePricingStrategyRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingCreateRaw({ v1CreatePricingStrategyRequest: v1CreatePricingStrategyRequest }, initOverrides);
return yield response.value();
});
}
/**
* Можно удалить любую стратегию кроме системной.
* Удалить стратегию
*/
pricingDeleteRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['clientId'] == null) {
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingDelete().');
}
if (requestParameters['apiKey'] == null) {
throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingDelete().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (requestParameters['clientId'] != null) {
headerParameters['Client-Id'] = String(requestParameters['clientId']);
}
if (requestParameters['apiKey'] != null) {
headerParameters['Api-Key'] = String(requestParameters['apiKey']);
}
const response = yield this.request({
path: `/v1/pricing-strategy/delete`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1StrategyRequestToJSON)(requestParameters['v1StrategyRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
* Можно удалить любую стратегию кроме системной.
* Удалить стратегию
*/
pricingDelete(clientId, apiKey, v1StrategyRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingDeleteRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides);
return yield response.value();
});
}
/**
* Список идентификаторов стратегий
*/
pricingIdsRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['clientId'] == null) {
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingIds().');
}
if (requestParameters['apiKey'] == null) {
throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingIds().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (requestParameters['clientId'] != null) {
headerParameters['Client-Id'] = String(requestParameters['clientId']);
}
if (requestParameters['apiKey'] != null) {
headerParameters['Api-Key'] = String(requestParameters['apiKey']);
}
const response = yield this.request({
path: `/v1/pricing-strategy/strategy-ids-by-product-ids`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1ItemIDsRequestToJSON)(requestParameters['v1ItemIDsRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyIDsByItemIDsResponseFromJSON)(jsonValue));
});
}
/**
* Список идентификаторов стратегий
*/
pricingIds(clientId, apiKey, v1ItemIDsRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingIdsRaw({ clientId: clientId, apiKey: apiKey, v1ItemIDsRequest: v1ItemIDsRequest }, initOverrides);
return yield response.value();
});
}
/**
* Информация о стратегии
*/
pricingInfoRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['clientId'] == null) {
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingInfo().');
}
if (requestParameters['apiKey'] == null) {
throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingInfo().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (requestParameters['clientId'] != null) {
headerParameters['Client-Id'] = String(requestParameters['clientId']);
}
if (requestParameters['apiKey'] != null) {
headerParameters['Api-Key'] = String(requestParameters['apiKey']);
}
const response = yield this.request({
path: `/v1/pricing-strategy/info`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1StrategyRequestToJSON)(requestParameters['v1StrategyRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyResponseFromJSON)(jsonValue));
});
}
/**
* Информация о стратегии
*/
pricingInfo(clientId, apiKey, v1StrategyRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingInfoRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides);
return yield response.value();
});
}
/**
* Добавить товары в стратегию
*/
pricingItemsAddRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['v1AddStrategyItemsRequest'] == null) {
throw new runtime.RequiredError('v1AddStrategyItemsRequest', 'Required parameter "v1AddStrategyItemsRequest" was null or undefined when calling pricingItemsAdd().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
const response = yield this.request({
path: `/v1/pricing-strategy/products/add`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1AddStrategyItemsRequestToJSON)(requestParameters['v1AddStrategyItemsRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AddStrategyItemsResponseFromJSON)(jsonValue));
});
}
/**
* Добавить товары в стратегию
*/
pricingItemsAdd(v1AddStrategyItemsRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingItemsAddRaw({ v1AddStrategyItemsRequest: v1AddStrategyItemsRequest }, initOverrides);
return yield response.value();
});
}
/**
* Удалить товары из стратегии
*/
pricingItemsDeleteRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['clientId'] == null) {
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsDelete().');
}
if (requestParameters['apiKey'] == null) {
throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsDelete().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (requestParameters['clientId'] != null) {
headerParameters['Client-Id'] = String(requestParameters['clientId']);
}
if (requestParameters['apiKey'] != null) {
headerParameters['Api-Key'] = String(requestParameters['apiKey']);
}
const response = yield this.request({
path: `/v1/pricing-strategy/products/delete`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1ItemIDsRequestToJSON)(requestParameters['v1ItemIDsRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DeleteStrategyItemsResponseFromJSON)(jsonValue));
});
}
/**
* Удалить товары из стратегии
*/
pricingItemsDelete(clientId, apiKey, v1ItemIDsRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingItemsDeleteRaw({ clientId: clientId, apiKey: apiKey, v1ItemIDsRequest: v1ItemIDsRequest }, initOverrides);
return yield response.value();
});
}
/**
* Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента.
* Цена товара у конкурента
*/
pricingItemsInfoRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['clientId'] == null) {
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsInfo().');
}
if (requestParameters['apiKey'] == null) {
throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsInfo().');
}
if (requestParameters['v1GetStrategyItemInfoRequest'] == null) {
throw new runtime.RequiredError('v1GetStrategyItemInfoRequest', 'Required parameter "v1GetStrategyItemInfoRequest" was null or undefined when calling pricingItemsInfo().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (requestParameters['clientId'] != null) {
headerParameters['Client-Id'] = String(requestParameters['clientId']);
}
if (requestParameters['apiKey'] != null) {
headerParameters['Api-Key'] = String(requestParameters['apiKey']);
}
const response = yield this.request({
path: `/v1/pricing-strategy/product/info`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1GetStrategyItemInfoRequestToJSON)(requestParameters['v1GetStrategyItemInfoRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyItemInfoResponseFromJSON)(jsonValue));
});
}
/**
* Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента.
* Цена товара у конкурента
*/
pricingItemsInfo(clientId, apiKey, v1GetStrategyItemInfoRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingItemsInfoRaw({ clientId: clientId, apiKey: apiKey, v1GetStrategyItemInfoRequest: v1GetStrategyItemInfoRequest }, initOverrides);
return yield response.value();
});
}
/**
* Список товаров в стратегии
*/
pricingItemsListRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['clientId'] == null) {
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsList().');
}
if (requestParameters['apiKey'] == null) {
throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsList().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (requestParameters['clientId'] != null) {
headerParameters['Client-Id'] = String(requestParameters['clientId']);
}
if (requestParameters['apiKey'] != null) {
headerParameters['Api-Key'] = String(requestParameters['apiKey']);
}
const response = yield this.request({
path: `/v1/pricing-strategy/products/list`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1StrategyRequestToJSON)(requestParameters['v1StrategyRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyItemsResponseFromJSON)(jsonValue));
});
}
/**
* Список товаров в стратегии
*/
pricingItemsList(clientId, apiKey, v1StrategyRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingItemsListRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides);
return yield response.value();
});
}
/**
* Список стратегий
*/
pricingListRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['v1GetStrategyListRequest'] == null) {
throw new runtime.RequiredError('v1GetStrategyListRequest', 'Required parameter "v1GetStrategyListRequest" was null or undefined when calling pricingList().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
const response = yield this.request({
path: `/v1/pricing-strategy/list`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1GetStrategyListRequestToJSON)(requestParameters['v1GetStrategyListRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyListResponseFromJSON)(jsonValue));
});
}
/**
* Список стратегий
*/
pricingList(v1GetStrategyListRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingListRaw({ v1GetStrategyListRequest: v1GetStrategyListRequest }, initOverrides);
return yield response.value();
});
}
/**
* Можно изменить статус любой стратегии кроме системной.
* Изменить статус стратегии
*/
pricingStatusRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['v1UpdateStatusStrategyRequest'] == null) {
throw new runtime.RequiredError('v1UpdateStatusStrategyRequest', 'Required parameter "v1UpdateStatusStrategyRequest" was null or undefined when calling pricingStatus().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
const response = yield this.request({
path: `/v1/pricing-strategy/status`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1UpdateStatusStrategyRequestToJSON)(requestParameters['v1UpdateStatusStrategyRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
* Можно изменить статус любой стратегии кроме системной.
* Изменить статус стратегии
*/
pricingStatus(v1UpdateStatusStrategyRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingStatusRaw({ v1UpdateStatusStrategyRequest: v1UpdateStatusStrategyRequest }, initOverrides);
return yield response.value();
});
}
/**
* Можно обновить все стратегии кроме системной.
* Обновить стратегию
*/
pricingUpdateRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters['v1UpdatePricingStrategyRequest'] == null) {
throw new runtime.RequiredError('v1UpdatePricingStrategyRequest', 'Required parameter "v1UpdatePricingStrategyRequest" was null or undefined when calling pricingUpdate().');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
const response = yield this.request({
path: `/v1/pricing-strategy/update`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.V1UpdatePricingStrategyRequestToJSON)(requestParameters['v1UpdatePricingStrategyRequest']),
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
* Можно обновить все стратегии кроме системной.
* Обновить стратегию
*/
pricingUpdate(v1UpdatePricingStrategyRequest, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.pricingUpdateRaw({ v1UpdatePricingStrategyRequest: v1UpdatePricingStrategyRequest }, initOverrides);
return yield response.value();
});
}
}
exports.PricingStrategyAPI = PricingStrategyAPI;