From dc9862c368cf05e9cfae617d68786225448130b9 Mon Sep 17 00:00:00 2001 From: apilki Date: Fri, 21 Aug 2026 21:08:25 +0000 Subject: [PATCH] release 0.2.0 --- README.md | 2 +- dist/apis/ShipmentsApi.d.ts | 10 ++++++- dist/apis/ShipmentsApi.js | 32 ++++++++++++++++++++ dist/esm/apis/ShipmentsApi.d.ts | 10 ++++++- dist/esm/apis/ShipmentsApi.js | 34 ++++++++++++++++++++- dist/esm/models/Echo200Response.d.ts | 31 ++++++++++++++++++++ dist/esm/models/Echo200Response.js | 38 ++++++++++++++++++++++++ dist/esm/models/index.d.ts | 1 + dist/esm/models/index.js | 1 + dist/models/Echo200Response.d.ts | 31 ++++++++++++++++++++ dist/models/Echo200Response.js | 44 ++++++++++++++++++++++++++++ dist/models/index.d.ts | 1 + dist/models/index.js | 1 + package.json | 2 +- 14 files changed, 233 insertions(+), 5 deletions(-) create mode 100644 dist/esm/models/Echo200Response.d.ts create mode 100644 dist/esm/models/Echo200Response.js create mode 100644 dist/models/Echo200Response.d.ts create mode 100644 dist/models/Echo200Response.js diff --git a/README.md b/README.md index 5abbf99..48aa1f3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # @apilki/yandex-market — JavaScript/TypeScript клиент -**Версия: 0.1.0 · API от 2026-08-20** +**Версия: 0.2.0 · API от 2026-08-21** JavaScript/TypeScript клиент для **Yandex Market Partner API** (продавец-сторона: заказы, каталог, цены, отчёты). Построен на базе `fetch` API. Работает и в Node.js, и в браузере. Публикуется в npm-скоупе `@apilki` (GitHub-орг `apilki`). diff --git a/dist/apis/ShipmentsApi.d.ts b/dist/apis/ShipmentsApi.d.ts index 274ec8b..8c268cc 100644 --- a/dist/apis/ShipmentsApi.d.ts +++ b/dist/apis/ShipmentsApi.d.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { ConfirmShipmentRequest, EmptyApiResponse, GetShipmentOrdersInfoResponse, GetShipmentResponse, SearchShipmentsRequest, SearchShipmentsResponse, SetShipmentPalletsCountRequest, ShipmentPalletLabelPageFormatType, TransferOrdersFromShipmentRequest } from '../models/index'; +import type { ConfirmShipmentRequest, Echo200Response, EmptyApiResponse, GetShipmentOrdersInfoResponse, GetShipmentResponse, SearchShipmentsRequest, SearchShipmentsResponse, SetShipmentPalletsCountRequest, ShipmentPalletLabelPageFormatType, TransferOrdersFromShipmentRequest } from '../models/index'; export interface ShipmentsApiConfirmShipmentOperationRequest { campaignId: number; shipmentId: number; @@ -141,6 +141,14 @@ export declare class ShipmentsApi extends runtime.BaseAPI { * Получение транспортной накладной */ downloadShipmentTransportationWaybill(campaignId: number, shipmentId: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Echo (mock upstream update test) + */ + echoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Echo (mock upstream update test) + */ + echo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * {% include notitle [access](../../_auto/method_scopes/getShipment.md) %} Возвращает информацию об отгрузке по ее идентификатору. {% include notitle [limit](../../_auto/method_limits/getShipment.md) %} * Получение информации об одной отгрузке diff --git a/dist/apis/ShipmentsApi.js b/dist/apis/ShipmentsApi.js index 62adc00..2370398 100644 --- a/dist/apis/ShipmentsApi.js +++ b/dist/apis/ShipmentsApi.js @@ -317,6 +317,38 @@ class ShipmentsApi extends runtime.BaseAPI { return yield response.value(); }); } + /** + * Echo (mock upstream update test) + */ + echoRaw(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Api-Key"] = yield this.configuration.apiKey("Api-Key"); // ApiKey authentication + } + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth", ["market:partner-api"]); + } + const response = yield this.request({ + path: `/v1/echo`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Echo200ResponseFromJSON)(jsonValue)); + }); + } + /** + * Echo (mock upstream update test) + */ + echo(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.echoRaw(initOverrides); + return yield response.value(); + }); + } /** * {% include notitle [access](../../_auto/method_scopes/getShipment.md) %} Возвращает информацию об отгрузке по ее идентификатору. {% include notitle [limit](../../_auto/method_limits/getShipment.md) %} * Получение информации об одной отгрузке diff --git a/dist/esm/apis/ShipmentsApi.d.ts b/dist/esm/apis/ShipmentsApi.d.ts index 274ec8b..8c268cc 100644 --- a/dist/esm/apis/ShipmentsApi.d.ts +++ b/dist/esm/apis/ShipmentsApi.d.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { ConfirmShipmentRequest, EmptyApiResponse, GetShipmentOrdersInfoResponse, GetShipmentResponse, SearchShipmentsRequest, SearchShipmentsResponse, SetShipmentPalletsCountRequest, ShipmentPalletLabelPageFormatType, TransferOrdersFromShipmentRequest } from '../models/index'; +import type { ConfirmShipmentRequest, Echo200Response, EmptyApiResponse, GetShipmentOrdersInfoResponse, GetShipmentResponse, SearchShipmentsRequest, SearchShipmentsResponse, SetShipmentPalletsCountRequest, ShipmentPalletLabelPageFormatType, TransferOrdersFromShipmentRequest } from '../models/index'; export interface ShipmentsApiConfirmShipmentOperationRequest { campaignId: number; shipmentId: number; @@ -141,6 +141,14 @@ export declare class ShipmentsApi extends runtime.BaseAPI { * Получение транспортной накладной */ downloadShipmentTransportationWaybill(campaignId: number, shipmentId: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Echo (mock upstream update test) + */ + echoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Echo (mock upstream update test) + */ + echo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * {% include notitle [access](../../_auto/method_scopes/getShipment.md) %} Возвращает информацию об отгрузке по ее идентификатору. {% include notitle [limit](../../_auto/method_limits/getShipment.md) %} * Получение информации об одной отгрузке diff --git a/dist/esm/apis/ShipmentsApi.js b/dist/esm/apis/ShipmentsApi.js index 36c4fa1..dfddc6e 100644 --- a/dist/esm/apis/ShipmentsApi.js +++ b/dist/esm/apis/ShipmentsApi.js @@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; import * as runtime from '../runtime'; -import { ConfirmShipmentRequestToJSON, EmptyApiResponseFromJSON, GetShipmentOrdersInfoResponseFromJSON, GetShipmentResponseFromJSON, SearchShipmentsRequestToJSON, SearchShipmentsResponseFromJSON, SetShipmentPalletsCountRequestToJSON, TransferOrdersFromShipmentRequestToJSON, } from '../models/index'; +import { ConfirmShipmentRequestToJSON, Echo200ResponseFromJSON, EmptyApiResponseFromJSON, GetShipmentOrdersInfoResponseFromJSON, GetShipmentResponseFromJSON, SearchShipmentsRequestToJSON, SearchShipmentsResponseFromJSON, SetShipmentPalletsCountRequestToJSON, TransferOrdersFromShipmentRequestToJSON, } from '../models/index'; /** * */ @@ -314,6 +314,38 @@ export class ShipmentsApi extends runtime.BaseAPI { return yield response.value(); }); } + /** + * Echo (mock upstream update test) + */ + echoRaw(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.apiKey) { + headerParameters["Api-Key"] = yield this.configuration.apiKey("Api-Key"); // ApiKey authentication + } + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth", ["market:partner-api"]); + } + const response = yield this.request({ + path: `/v1/echo`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Echo200ResponseFromJSON(jsonValue)); + }); + } + /** + * Echo (mock upstream update test) + */ + echo(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.echoRaw(initOverrides); + return yield response.value(); + }); + } /** * {% include notitle [access](../../_auto/method_scopes/getShipment.md) %} Возвращает информацию об отгрузке по ее идентификатору. {% include notitle [limit](../../_auto/method_limits/getShipment.md) %} * Получение информации об одной отгрузке diff --git a/dist/esm/models/Echo200Response.d.ts b/dist/esm/models/Echo200Response.d.ts new file mode 100644 index 0000000..4b70afd --- /dev/null +++ b/dist/esm/models/Echo200Response.d.ts @@ -0,0 +1,31 @@ +/** + * API Яндекс Маркета для продавцов + * API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов. + * + * The version of the OpenAPI document: LATEST + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Echo200Response + */ +export interface Echo200Response { + /** + * + * @type {string} + * @memberof Echo200Response + */ + message?: string; +} +/** + * Check if a given object implements the Echo200Response interface. + */ +export declare function instanceOfEcho200Response(value: object): value is Echo200Response; +export declare function Echo200ResponseFromJSON(json: any): Echo200Response; +export declare function Echo200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Echo200Response; +export declare function Echo200ResponseToJSON(value?: Echo200Response | null): any; diff --git a/dist/esm/models/Echo200Response.js b/dist/esm/models/Echo200Response.js new file mode 100644 index 0000000..f6f6ee8 --- /dev/null +++ b/dist/esm/models/Echo200Response.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * API Яндекс Маркета для продавцов + * API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов. + * + * The version of the OpenAPI document: LATEST + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Echo200Response interface. + */ +export function instanceOfEcho200Response(value) { + return true; +} +export function Echo200ResponseFromJSON(json) { + return Echo200ResponseFromJSONTyped(json, false); +} +export function Echo200ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function Echo200ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + }; +} diff --git a/dist/esm/models/index.d.ts b/dist/esm/models/index.d.ts index f78795a..7fb31cf 100644 --- a/dist/esm/models/index.d.ts +++ b/dist/esm/models/index.d.ts @@ -171,6 +171,7 @@ export * from './DigitalGoodsDeliveryType'; export * from './DocumentDTO'; export * from './EacVerificationResultDTO'; export * from './EacVerificationStatusType'; +export * from './Echo200Response'; export * from './EmptyApiResponse'; export * from './EnrichedOrderBoxLayoutDTO'; export * from './ExtensionShipmentDTO'; diff --git a/dist/esm/models/index.js b/dist/esm/models/index.js index 66701d2..6c02f2a 100644 --- a/dist/esm/models/index.js +++ b/dist/esm/models/index.js @@ -173,6 +173,7 @@ export * from './DigitalGoodsDeliveryType'; export * from './DocumentDTO'; export * from './EacVerificationResultDTO'; export * from './EacVerificationStatusType'; +export * from './Echo200Response'; export * from './EmptyApiResponse'; export * from './EnrichedOrderBoxLayoutDTO'; export * from './ExtensionShipmentDTO'; diff --git a/dist/models/Echo200Response.d.ts b/dist/models/Echo200Response.d.ts new file mode 100644 index 0000000..4b70afd --- /dev/null +++ b/dist/models/Echo200Response.d.ts @@ -0,0 +1,31 @@ +/** + * API Яндекс Маркета для продавцов + * API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов. + * + * The version of the OpenAPI document: LATEST + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Echo200Response + */ +export interface Echo200Response { + /** + * + * @type {string} + * @memberof Echo200Response + */ + message?: string; +} +/** + * Check if a given object implements the Echo200Response interface. + */ +export declare function instanceOfEcho200Response(value: object): value is Echo200Response; +export declare function Echo200ResponseFromJSON(json: any): Echo200Response; +export declare function Echo200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Echo200Response; +export declare function Echo200ResponseToJSON(value?: Echo200Response | null): any; diff --git a/dist/models/Echo200Response.js b/dist/models/Echo200Response.js new file mode 100644 index 0000000..df52db3 --- /dev/null +++ b/dist/models/Echo200Response.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * API Яндекс Маркета для продавцов + * API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов. + * + * The version of the OpenAPI document: LATEST + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfEcho200Response = instanceOfEcho200Response; +exports.Echo200ResponseFromJSON = Echo200ResponseFromJSON; +exports.Echo200ResponseFromJSONTyped = Echo200ResponseFromJSONTyped; +exports.Echo200ResponseToJSON = Echo200ResponseToJSON; +/** + * Check if a given object implements the Echo200Response interface. + */ +function instanceOfEcho200Response(value) { + return true; +} +function Echo200ResponseFromJSON(json) { + return Echo200ResponseFromJSONTyped(json, false); +} +function Echo200ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function Echo200ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + }; +} diff --git a/dist/models/index.d.ts b/dist/models/index.d.ts index f78795a..7fb31cf 100644 --- a/dist/models/index.d.ts +++ b/dist/models/index.d.ts @@ -171,6 +171,7 @@ export * from './DigitalGoodsDeliveryType'; export * from './DocumentDTO'; export * from './EacVerificationResultDTO'; export * from './EacVerificationStatusType'; +export * from './Echo200Response'; export * from './EmptyApiResponse'; export * from './EnrichedOrderBoxLayoutDTO'; export * from './ExtensionShipmentDTO'; diff --git a/dist/models/index.js b/dist/models/index.js index 0367d46..7614d50 100644 --- a/dist/models/index.js +++ b/dist/models/index.js @@ -189,6 +189,7 @@ __exportStar(require("./DigitalGoodsDeliveryType"), exports); __exportStar(require("./DocumentDTO"), exports); __exportStar(require("./EacVerificationResultDTO"), exports); __exportStar(require("./EacVerificationStatusType"), exports); +__exportStar(require("./Echo200Response"), exports); __exportStar(require("./EmptyApiResponse"), exports); __exportStar(require("./EnrichedOrderBoxLayoutDTO"), exports); __exportStar(require("./ExtensionShipmentDTO"), exports); diff --git a/package.json b/package.json index cd3fe7d..76aa5ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apilki/yandex-market", - "version": "0.1.0", + "version": "0.2.0", "description": "JavaScript/TypeScript client for Yandex Market Partner API", "author": "vitya.kuznetsov@gmail.com", "repository": {