release 0.2.0

This commit is contained in:
apilki
2026-08-26 15:10:38 +00:00
parent dc9862c368
commit 3db10ca0b1
9 changed files with 4 additions and 88 deletions

View File

@@ -1,6 +1,6 @@
# @apilki/yandex-market — JavaScript/TypeScript клиент
**Версия: 0.2.0 · API от 2026-08-21** <!-- штампуется пайплайном (github-distro) -->
**Версия: 0.2.0 · API от 2026-08-25** <!-- штампуется пайплайном (github-distro) -->
JavaScript/TypeScript клиент для **Yandex Market Partner API** (продавец-сторона: заказы, каталог, цены, отчёты). Построен на базе `fetch` API. Работает и в Node.js, и в браузере. Публикуется в npm-скоупе `@apilki` (GitHub-орг `apilki`).

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type { ConfirmShipmentRequest, Echo200Response, EmptyApiResponse, GetShipmentOrdersInfoResponse, GetShipmentResponse, SearchShipmentsRequest, SearchShipmentsResponse, SetShipmentPalletsCountRequest, ShipmentPalletLabelPageFormatType, TransferOrdersFromShipmentRequest } from '../models/index';
import type { ConfirmShipmentRequest, EmptyApiResponse, GetShipmentOrdersInfoResponse, GetShipmentResponse, SearchShipmentsRequest, SearchShipmentsResponse, SetShipmentPalletsCountRequest, ShipmentPalletLabelPageFormatType, TransferOrdersFromShipmentRequest } from '../models/index';
export interface ShipmentsApiConfirmShipmentOperationRequest {
campaignId: number;
shipmentId: number;
@@ -141,14 +141,6 @@ export declare class ShipmentsApi extends runtime.BaseAPI {
* Получение транспортной накладной
*/
downloadShipmentTransportationWaybill(campaignId: number, shipmentId: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
/**
* Echo (mock upstream update test)
*/
echoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Echo200Response>>;
/**
* Echo (mock upstream update test)
*/
echo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Echo200Response>;
/**
* {% include notitle [access](../../_auto/method_scopes/getShipment.md) %} Возвращает информацию об отгрузке по ее идентификатору. {% include notitle [limit](../../_auto/method_limits/getShipment.md) %}
* Получение информации об одной отгрузке

View File

@@ -317,38 +317,6 @@ 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) %}
* Получение информации об одной отгрузке

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type { ConfirmShipmentRequest, Echo200Response, EmptyApiResponse, GetShipmentOrdersInfoResponse, GetShipmentResponse, SearchShipmentsRequest, SearchShipmentsResponse, SetShipmentPalletsCountRequest, ShipmentPalletLabelPageFormatType, TransferOrdersFromShipmentRequest } from '../models/index';
import type { ConfirmShipmentRequest, EmptyApiResponse, GetShipmentOrdersInfoResponse, GetShipmentResponse, SearchShipmentsRequest, SearchShipmentsResponse, SetShipmentPalletsCountRequest, ShipmentPalletLabelPageFormatType, TransferOrdersFromShipmentRequest } from '../models/index';
export interface ShipmentsApiConfirmShipmentOperationRequest {
campaignId: number;
shipmentId: number;
@@ -141,14 +141,6 @@ export declare class ShipmentsApi extends runtime.BaseAPI {
* Получение транспортной накладной
*/
downloadShipmentTransportationWaybill(campaignId: number, shipmentId: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
/**
* Echo (mock upstream update test)
*/
echoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Echo200Response>>;
/**
* Echo (mock upstream update test)
*/
echo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Echo200Response>;
/**
* {% include notitle [access](../../_auto/method_scopes/getShipment.md) %} Возвращает информацию об отгрузке по ее идентификатору. {% include notitle [limit](../../_auto/method_limits/getShipment.md) %}
* Получение информации об одной отгрузке

View File

@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
import * as runtime from '../runtime';
import { ConfirmShipmentRequestToJSON, Echo200ResponseFromJSON, EmptyApiResponseFromJSON, GetShipmentOrdersInfoResponseFromJSON, GetShipmentResponseFromJSON, SearchShipmentsRequestToJSON, SearchShipmentsResponseFromJSON, SetShipmentPalletsCountRequestToJSON, TransferOrdersFromShipmentRequestToJSON, } from '../models/index';
import { ConfirmShipmentRequestToJSON, EmptyApiResponseFromJSON, GetShipmentOrdersInfoResponseFromJSON, GetShipmentResponseFromJSON, SearchShipmentsRequestToJSON, SearchShipmentsResponseFromJSON, SetShipmentPalletsCountRequestToJSON, TransferOrdersFromShipmentRequestToJSON, } from '../models/index';
/**
*
*/
@@ -314,38 +314,6 @@ 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) %}
* Получение информации об одной отгрузке

View File

@@ -171,7 +171,6 @@ export * from './DigitalGoodsDeliveryType';
export * from './DocumentDTO';
export * from './EacVerificationResultDTO';
export * from './EacVerificationStatusType';
export * from './Echo200Response';
export * from './EmptyApiResponse';
export * from './EnrichedOrderBoxLayoutDTO';
export * from './ExtensionShipmentDTO';

View File

@@ -173,7 +173,6 @@ export * from './DigitalGoodsDeliveryType';
export * from './DocumentDTO';
export * from './EacVerificationResultDTO';
export * from './EacVerificationStatusType';
export * from './Echo200Response';
export * from './EmptyApiResponse';
export * from './EnrichedOrderBoxLayoutDTO';
export * from './ExtensionShipmentDTO';

View File

@@ -171,7 +171,6 @@ export * from './DigitalGoodsDeliveryType';
export * from './DocumentDTO';
export * from './EacVerificationResultDTO';
export * from './EacVerificationStatusType';
export * from './Echo200Response';
export * from './EmptyApiResponse';
export * from './EnrichedOrderBoxLayoutDTO';
export * from './ExtensionShipmentDTO';

View File

@@ -189,7 +189,6 @@ __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);