artefactby-ozon-seller-api 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/dist/index.d.ts +196 -11
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -22,7 +22,7 @@ const { items } = await client.request('/v5/product/info/prices', {
|
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
- **The whole API, not a curated subset.** Types are generated from the official
|
|
25
|
-
OpenAPI spec (API version 2.1):
|
|
25
|
+
OpenAPI spec (API version 2.1): 459 operations, 2089 schemas. Every path is called
|
|
26
26
|
the same way, with the request body and response inferred from the path literal.
|
|
27
27
|
- **Zero runtime dependencies.** Native `fetch` only. Node.js >= 18, CJS and ESM.
|
|
28
28
|
- **A built-in rate limiter that knows Ozon's limits** — 50 rps per Client-Id plus the
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ const { items } = await client.request('/v5/product/info/prices', {
|
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
- **Покрыт весь API, а не выборка методов.** Типы сгенерированы из официальной
|
|
25
|
-
OpenAPI-спецификации (версия API 2.1):
|
|
25
|
+
OpenAPI-спецификации (версия API 2.1): 459 операций, 2089 схем. Любой путь
|
|
26
26
|
вызывается одинаково, тело запроса и ответ выводятся из литерала пути.
|
|
27
27
|
- **Ноль зависимостей.** В работе пакету нужен только `fetch`, встроенный в
|
|
28
28
|
Node.js >= 18. Собирается в CJS и ESM.
|
package/dist/index.d.ts
CHANGED
|
@@ -6620,7 +6620,9 @@ interface paths {
|
|
|
6620
6620
|
put?: never;
|
|
6621
6621
|
/**
|
|
6622
6622
|
* Получить начисления за день
|
|
6623
|
-
* @description
|
|
6623
|
+
* @description Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`.
|
|
6624
|
+
*
|
|
6625
|
+
* Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev.
|
|
6624
6626
|
*/
|
|
6625
6627
|
post: operations["GetFinanceAccrualByDay"];
|
|
6626
6628
|
delete?: never;
|
|
@@ -6669,6 +6671,28 @@ interface paths {
|
|
|
6669
6671
|
patch?: never;
|
|
6670
6672
|
trace?: never;
|
|
6671
6673
|
};
|
|
6674
|
+
"/v1/report/realization/posting/create": {
|
|
6675
|
+
parameters: {
|
|
6676
|
+
query?: never;
|
|
6677
|
+
header?: never;
|
|
6678
|
+
path?: never;
|
|
6679
|
+
cookie?: never;
|
|
6680
|
+
};
|
|
6681
|
+
get?: never;
|
|
6682
|
+
put?: never;
|
|
6683
|
+
/**
|
|
6684
|
+
* Получить позаказный отчёт о реализации товаров
|
|
6685
|
+
* @description Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно.
|
|
6686
|
+
*
|
|
6687
|
+
* Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev.
|
|
6688
|
+
*/
|
|
6689
|
+
post: operations["CreateCompanyFinanceRealizationPostingReport"];
|
|
6690
|
+
delete?: never;
|
|
6691
|
+
options?: never;
|
|
6692
|
+
head?: never;
|
|
6693
|
+
patch?: never;
|
|
6694
|
+
trace?: never;
|
|
6695
|
+
};
|
|
6672
6696
|
"/v1/warehouse/fbs/create/drop-off/list": {
|
|
6673
6697
|
parameters: {
|
|
6674
6698
|
query?: never;
|
|
@@ -26218,11 +26242,19 @@ interface components {
|
|
|
26218
26242
|
/** @description Уникальный идентификатор отчёта. */
|
|
26219
26243
|
code: string;
|
|
26220
26244
|
};
|
|
26245
|
+
"report.common.Report.AdditionalDataItem": {
|
|
26246
|
+
/** @description Ключ дополнительного параметра. */
|
|
26247
|
+
key?: string;
|
|
26248
|
+
/** @description Значение дополнительного параметра. */
|
|
26249
|
+
value?: string;
|
|
26250
|
+
};
|
|
26221
26251
|
/**
|
|
26222
26252
|
* Common
|
|
26223
26253
|
* @description Информация об отчёте.
|
|
26224
26254
|
*/
|
|
26225
26255
|
reportReportinfo: {
|
|
26256
|
+
/** @description Дополнительные параметры. */
|
|
26257
|
+
additional_data?: components["schemas"]["report.common.Report.AdditionalDataItem"][];
|
|
26226
26258
|
/** @description Уникальный идентификатор отчёта. */
|
|
26227
26259
|
code?: string;
|
|
26228
26260
|
/**
|
|
@@ -26317,6 +26349,8 @@ interface components {
|
|
|
26317
26349
|
* @description Информация об отчёте.
|
|
26318
26350
|
*/
|
|
26319
26351
|
reportReport: {
|
|
26352
|
+
/** @description Дополнительные параметры. */
|
|
26353
|
+
additional_data?: components["schemas"]["report.common.Report.AdditionalDataItem"][];
|
|
26320
26354
|
/** @description Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). */
|
|
26321
26355
|
code?: string;
|
|
26322
26356
|
/**
|
|
@@ -27659,6 +27693,25 @@ interface components {
|
|
|
27659
27693
|
/** @description Таблица отчёта. */
|
|
27660
27694
|
rows?: components["schemas"]["v1GetRealizationReportPostingResponseRow"][];
|
|
27661
27695
|
};
|
|
27696
|
+
/** object */
|
|
27697
|
+
rpcStatus_v1FinanceRealizationPosting: {
|
|
27698
|
+
/**
|
|
27699
|
+
* Format: int32
|
|
27700
|
+
* @description Код ошибки.
|
|
27701
|
+
*/
|
|
27702
|
+
code?: number;
|
|
27703
|
+
/** @description Дополнительная информация об ошибке. */
|
|
27704
|
+
details?: components["schemas"]["protobufAny"][];
|
|
27705
|
+
/**
|
|
27706
|
+
* @description Описание ошибки:
|
|
27707
|
+
*
|
|
27708
|
+
* - `The requested report is too large. Use /v1/report/realization/posting/create.` — отчёт нельзя получить методом [/v1/finance/realization/posting](#operation/FinanceAPI_GetRealizationReportV1). Используйте метод [/v1/report/realization/posting/create](#operation/CreateCompanyFinanceRealizationPostingReport).
|
|
27709
|
+
* - `Request validation error: invalid GetRealizationReportPostingRequest.Month: value must be inside range [1, 12]` — некорректное значение месяца.
|
|
27710
|
+
* - `Year, Month, and Day parameters describe an un-representable DateTime.` — некорректная дата.
|
|
27711
|
+
* - `Request validation error: invalid GetRealizationReportPostingRequest.Year: value must be greater than or equal to 2023` — некорректный год. Отчёт доступен с настоящего времени по август 2023 года включительно.
|
|
27712
|
+
*/
|
|
27713
|
+
message?: string;
|
|
27714
|
+
};
|
|
27662
27715
|
/**
|
|
27663
27716
|
* object
|
|
27664
27717
|
* @description Фильтр по дате.
|
|
@@ -31161,30 +31214,50 @@ interface components {
|
|
|
31161
31214
|
accrual_types?: components["schemas"]["finance.v1.GetFinanceAccrualTypesResponse.AccrualType"][];
|
|
31162
31215
|
};
|
|
31163
31216
|
"finance.v1.GetFinanceAccrualByDayRequest": {
|
|
31164
|
-
/**
|
|
31217
|
+
/**
|
|
31218
|
+
* @description Дата начислений. Самая ранняя — 1 января 2022 года.
|
|
31219
|
+
*
|
|
31220
|
+
* Если укажете `last_id`, передайте значение `date` из предыдущего запроса.
|
|
31221
|
+
*/
|
|
31165
31222
|
date: string;
|
|
31166
31223
|
/**
|
|
31167
31224
|
* @description Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым.
|
|
31168
31225
|
*
|
|
31169
31226
|
* Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса.
|
|
31227
|
+
*
|
|
31228
|
+
* Срок жизни идентификатора — 15 минут.
|
|
31170
31229
|
*/
|
|
31171
31230
|
last_id: string;
|
|
31172
31231
|
};
|
|
31173
31232
|
/**
|
|
31174
31233
|
* @description Тип начисления:
|
|
31175
31234
|
* - `UNSPECIFIED` — не определён;
|
|
31176
|
-
* - `POSTING` —
|
|
31177
|
-
* - `ITEM` —
|
|
31178
|
-
* - `NON_ITEM` — начисление по продавцу без привязки к
|
|
31235
|
+
* - `POSTING` — начисление по отправлению;
|
|
31236
|
+
* - `ITEM` — начисление по товару;
|
|
31237
|
+
* - `NON_ITEM` — начисление по продавцу без привязки к товару;
|
|
31238
|
+
* - `CONTAINER_FEES` — начисление по контейнеру.
|
|
31179
31239
|
* @default UNSPECIFIED
|
|
31180
31240
|
* @enum {string}
|
|
31181
31241
|
*/
|
|
31182
|
-
"finance.v1.GetFinanceAccrualByDayResponse.Accrual.AccruedCategory.Enum": "UNSPECIFIED" | "POSTING" | "ITEM" | "NON_ITEM";
|
|
31242
|
+
"finance.v1.GetFinanceAccrualByDayResponse.Accrual.AccruedCategory.Enum": "UNSPECIFIED" | "POSTING" | "ITEM" | "NON_ITEM" | "CONTAINER_FEES";
|
|
31243
|
+
"finance.v1.GetFinanceAccrualByDayResponse.Accrual.ContainerFees.ContainerFee": {
|
|
31244
|
+
accrued?: components["schemas"]["money.MoneyAccrued"];
|
|
31245
|
+
/**
|
|
31246
|
+
* Format: int32
|
|
31247
|
+
* @description Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes).
|
|
31248
|
+
*/
|
|
31249
|
+
type_id?: number;
|
|
31250
|
+
};
|
|
31251
|
+
/** @description Начисления по контейнеру. */
|
|
31252
|
+
"finance.v1.GetFinanceAccrualByDayResponse.Accrual.ContainerFees": {
|
|
31253
|
+
/** @description Начисления. */
|
|
31254
|
+
fees?: components["schemas"]["finance.v1.GetFinanceAccrualByDayResponse.Accrual.ContainerFees.ContainerFee"][];
|
|
31255
|
+
};
|
|
31183
31256
|
"finance.v1.GetFinanceAccrualByDayResponse.Accrual.ItemFees.ItemFee.Fee": {
|
|
31184
31257
|
accrued?: components["schemas"]["money.MoneyAccrued"];
|
|
31185
31258
|
/**
|
|
31186
31259
|
* Format: int32
|
|
31187
|
-
* @description Идентификатор типа начисления.
|
|
31260
|
+
* @description Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes).
|
|
31188
31261
|
*/
|
|
31189
31262
|
type_id?: number;
|
|
31190
31263
|
};
|
|
@@ -31269,7 +31342,7 @@ interface components {
|
|
|
31269
31342
|
accrued?: components["schemas"]["money.MoneyAccrued"];
|
|
31270
31343
|
/**
|
|
31271
31344
|
* Format: int32
|
|
31272
|
-
* @description Идентификатор типа начисления.
|
|
31345
|
+
* @description Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes).
|
|
31273
31346
|
*/
|
|
31274
31347
|
type_id?: number;
|
|
31275
31348
|
};
|
|
@@ -31316,6 +31389,7 @@ interface components {
|
|
|
31316
31389
|
};
|
|
31317
31390
|
"finance.v1.GetFinanceAccrualByDayResponse.Accrual": {
|
|
31318
31391
|
accrued_category?: components["schemas"]["finance.v1.GetFinanceAccrualByDayResponse.Accrual.AccruedCategory.Enum"];
|
|
31392
|
+
container_fees?: components["schemas"]["finance.v1.GetFinanceAccrualByDayResponse.Accrual.ContainerFees"];
|
|
31319
31393
|
/** @description Дата начислений. */
|
|
31320
31394
|
date?: string;
|
|
31321
31395
|
item_fees?: components["schemas"]["finance.v1.GetFinanceAccrualByDayResponse.Accrual.ItemFees"];
|
|
@@ -31331,9 +31405,13 @@ interface components {
|
|
|
31331
31405
|
unit_number?: string;
|
|
31332
31406
|
};
|
|
31333
31407
|
"finance.v1.GetFinanceAccrualByDayResponse": {
|
|
31334
|
-
/** @description Список
|
|
31408
|
+
/** @description Список начислений по отправлению. */
|
|
31335
31409
|
accruals?: components["schemas"]["finance.v1.GetFinanceAccrualByDayResponse.Accrual"][];
|
|
31336
|
-
/**
|
|
31410
|
+
/**
|
|
31411
|
+
* @description Идентификатор последнего значения на странице.
|
|
31412
|
+
*
|
|
31413
|
+
* Срок жизни идентификатора — 15 минут.
|
|
31414
|
+
*/
|
|
31337
31415
|
last_id?: string;
|
|
31338
31416
|
};
|
|
31339
31417
|
"product.v1.ProductVisibilityInfoRequest": {
|
|
@@ -31614,6 +31692,22 @@ interface components {
|
|
|
31614
31692
|
"posting.v1.GetFbpPostingResponse": {
|
|
31615
31693
|
posting?: components["schemas"]["posting.v1.GetFbpPostingResponse.Posting"];
|
|
31616
31694
|
};
|
|
31695
|
+
"report.v1.CreateCompanyFinanceRealizationPostingReportRequest": {
|
|
31696
|
+
/**
|
|
31697
|
+
* Format: int32
|
|
31698
|
+
* @description Месяц.
|
|
31699
|
+
*/
|
|
31700
|
+
month: number;
|
|
31701
|
+
/**
|
|
31702
|
+
* Format: int32
|
|
31703
|
+
* @description Год.
|
|
31704
|
+
*/
|
|
31705
|
+
year: number;
|
|
31706
|
+
};
|
|
31707
|
+
"report.v1.CreateCompanyFinanceRealizationPostingReportResponse": {
|
|
31708
|
+
/** @description Уникальный идентификатор отчёта. Получите отчёт методом [/v1/report/info](#operation/ReportAPI_ReportInfo). */
|
|
31709
|
+
code?: string;
|
|
31710
|
+
};
|
|
31617
31711
|
/** @description Координаты. */
|
|
31618
31712
|
v1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates: {
|
|
31619
31713
|
/**
|
|
@@ -57714,6 +57808,12 @@ interface operations {
|
|
|
57714
57808
|
/**
|
|
57715
57809
|
* @example {
|
|
57716
57810
|
* "result": {
|
|
57811
|
+
* "additional_data": [
|
|
57812
|
+
* {
|
|
57813
|
+
* "key": "key",
|
|
57814
|
+
* "value": "value"
|
|
57815
|
+
* }
|
|
57816
|
+
* ],
|
|
57717
57817
|
* "code": "REPORT_seller_products_924336_1720170405_a9ea2f27",
|
|
57718
57818
|
* "status": "success",
|
|
57719
57819
|
* "error": "",
|
|
@@ -57811,6 +57911,12 @@ interface operations {
|
|
|
57811
57911
|
* "result": {
|
|
57812
57912
|
* "reports": [
|
|
57813
57913
|
* {
|
|
57914
|
+
* "additional_data": [
|
|
57915
|
+
* {
|
|
57916
|
+
* "key": "key",
|
|
57917
|
+
* "value": "value"
|
|
57918
|
+
* }
|
|
57919
|
+
* ],
|
|
57814
57920
|
* "code": "REPORT_seller_products_924336_1720170405_a9ea2f27-a473-4b13-99f9-d0cfcb5b1a69",
|
|
57815
57921
|
* "status": "success",
|
|
57816
57922
|
* "error": "",
|
|
@@ -58991,7 +59097,12 @@ interface operations {
|
|
|
58991
59097
|
[name: string]: unknown;
|
|
58992
59098
|
};
|
|
58993
59099
|
content: {
|
|
58994
|
-
|
|
59100
|
+
/**
|
|
59101
|
+
* @example {
|
|
59102
|
+
* "message": "The requested report is too large. Use /v1/report/realization/posting/create."
|
|
59103
|
+
* }
|
|
59104
|
+
*/
|
|
59105
|
+
"application/json": components["schemas"]["rpcStatus_v1FinanceRealizationPosting"];
|
|
58995
59106
|
};
|
|
58996
59107
|
};
|
|
58997
59108
|
/** @description Доступ запрещён */
|
|
@@ -61968,6 +62079,80 @@ interface operations {
|
|
|
61968
62079
|
};
|
|
61969
62080
|
};
|
|
61970
62081
|
};
|
|
62082
|
+
CreateCompanyFinanceRealizationPostingReport: {
|
|
62083
|
+
parameters: {
|
|
62084
|
+
query?: never;
|
|
62085
|
+
header: {
|
|
62086
|
+
/** @description Идентификатор клиента. */
|
|
62087
|
+
"Client-Id": components["parameters"]["Client-Id"];
|
|
62088
|
+
/** @description API-ключ. */
|
|
62089
|
+
"Api-Key": components["parameters"]["Api-Key"];
|
|
62090
|
+
};
|
|
62091
|
+
path?: never;
|
|
62092
|
+
cookie?: never;
|
|
62093
|
+
};
|
|
62094
|
+
requestBody: {
|
|
62095
|
+
content: {
|
|
62096
|
+
"application/json": components["schemas"]["report.v1.CreateCompanyFinanceRealizationPostingReportRequest"];
|
|
62097
|
+
};
|
|
62098
|
+
};
|
|
62099
|
+
responses: {
|
|
62100
|
+
/** @description Позаказный отчёт о реализации */
|
|
62101
|
+
200: {
|
|
62102
|
+
headers: {
|
|
62103
|
+
[name: string]: unknown;
|
|
62104
|
+
};
|
|
62105
|
+
content: {
|
|
62106
|
+
"application/json": components["schemas"]["report.v1.CreateCompanyFinanceRealizationPostingReportResponse"];
|
|
62107
|
+
};
|
|
62108
|
+
};
|
|
62109
|
+
/** @description Неверный параметр */
|
|
62110
|
+
400: {
|
|
62111
|
+
headers: {
|
|
62112
|
+
[name: string]: unknown;
|
|
62113
|
+
};
|
|
62114
|
+
content: {
|
|
62115
|
+
"application/json": components["schemas"]["rpcStatus"];
|
|
62116
|
+
};
|
|
62117
|
+
};
|
|
62118
|
+
/** @description Доступ запрещён */
|
|
62119
|
+
403: {
|
|
62120
|
+
headers: {
|
|
62121
|
+
[name: string]: unknown;
|
|
62122
|
+
};
|
|
62123
|
+
content: {
|
|
62124
|
+
"application/json": components["schemas"]["rpcStatus"];
|
|
62125
|
+
};
|
|
62126
|
+
};
|
|
62127
|
+
/** @description Ответ не найден */
|
|
62128
|
+
404: {
|
|
62129
|
+
headers: {
|
|
62130
|
+
[name: string]: unknown;
|
|
62131
|
+
};
|
|
62132
|
+
content: {
|
|
62133
|
+
"application/json": components["schemas"]["rpcStatus"];
|
|
62134
|
+
};
|
|
62135
|
+
};
|
|
62136
|
+
/** @description Конфликт запроса */
|
|
62137
|
+
409: {
|
|
62138
|
+
headers: {
|
|
62139
|
+
[name: string]: unknown;
|
|
62140
|
+
};
|
|
62141
|
+
content: {
|
|
62142
|
+
"application/json": components["schemas"]["rpcStatus"];
|
|
62143
|
+
};
|
|
62144
|
+
};
|
|
62145
|
+
/** @description Внутренняя ошибка сервера */
|
|
62146
|
+
500: {
|
|
62147
|
+
headers: {
|
|
62148
|
+
[name: string]: unknown;
|
|
62149
|
+
};
|
|
62150
|
+
content: {
|
|
62151
|
+
"application/json": components["schemas"]["rpcStatus"];
|
|
62152
|
+
};
|
|
62153
|
+
};
|
|
62154
|
+
};
|
|
62155
|
+
};
|
|
61971
62156
|
WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse: {
|
|
61972
62157
|
parameters: {
|
|
61973
62158
|
query?: never;
|