wildberries-sdk 0.1.162 → 0.1.163
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.md +4 -1
- package/dist/items/apis/DefaultApi.d.ts +112 -5
- package/dist/items/apis/DefaultApi.js +256 -5
- package/dist/items/models/GetV2DirectoryOkpd200Response.d.ts +43 -0
- package/dist/items/models/GetV2DirectoryOkpd200Response.js +64 -0
- package/dist/items/models/GetV2DirectoryOkpd200ResponseDataInner.d.ts +34 -0
- package/dist/items/models/GetV2DirectoryOkpd200ResponseDataInner.js +55 -0
- package/dist/items/models/GetV2DirectoryTnved200ResponseDataInner.d.ts +1 -1
- package/dist/items/models/GetV2DirectoryTnvedAll200Response.d.ts +43 -0
- package/dist/items/models/GetV2DirectoryTnvedAll200Response.js +64 -0
- package/dist/items/models/GetV2DirectoryTnvedAll200ResponseDataInner.d.ts +34 -0
- package/dist/items/models/GetV2DirectoryTnvedAll200ResponseDataInner.js +55 -0
- package/dist/items/models/index.d.ts +4 -0
- package/dist/items/models/index.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,8 +80,11 @@ main().catch(console.error);
|
|
|
80
80
|
- `items.DefaultApi.getV2DirectoryColors` — Цвет
|
|
81
81
|
- `items.DefaultApi.getV2DirectoryCountries` — Страна производства
|
|
82
82
|
- `items.DefaultApi.getV2DirectoryKinds` — Пол
|
|
83
|
+
- `items.DefaultApi.getV2DirectoryOkpd` — Код ОКПД2 предмета
|
|
84
|
+
- `items.DefaultApi.getV2DirectoryOkpdAll` — Список кодов ОКПД2
|
|
83
85
|
- `items.DefaultApi.getV2DirectorySeasons` — Сезон
|
|
84
|
-
- `items.DefaultApi.getV2DirectoryTnved` —
|
|
86
|
+
- `items.DefaultApi.getV2DirectoryTnved` — Код ТН ВЭД предмета
|
|
87
|
+
- `items.DefaultApi.getV2DirectoryTnvedAll` — Список кодов ТН ВЭД
|
|
85
88
|
- `items.DefaultApi.getV2DirectoryVat` — Ставка НДС
|
|
86
89
|
- `items.DefaultApi.getV2HistoryGoodsTask` — Детализация обработанной загрузки
|
|
87
90
|
- `items.DefaultApi.getV2HistoryTasks` — Состояние обработанной загрузки
|
|
@@ -20,8 +20,10 @@ import { type GetV2CardsLimits200Response } from '../models/GetV2CardsLimits200R
|
|
|
20
20
|
import { type GetV2DirectoryColors200Response } from '../models/GetV2DirectoryColors200Response';
|
|
21
21
|
import { type GetV2DirectoryCountries200Response } from '../models/GetV2DirectoryCountries200Response';
|
|
22
22
|
import { type GetV2DirectoryKinds200Response } from '../models/GetV2DirectoryKinds200Response';
|
|
23
|
+
import { type GetV2DirectoryOkpd200Response } from '../models/GetV2DirectoryOkpd200Response';
|
|
23
24
|
import { type GetV2DirectorySeasons200Response } from '../models/GetV2DirectorySeasons200Response';
|
|
24
25
|
import { type GetV2DirectoryTnved200Response } from '../models/GetV2DirectoryTnved200Response';
|
|
26
|
+
import { type GetV2DirectoryTnvedAll200Response } from '../models/GetV2DirectoryTnvedAll200Response';
|
|
25
27
|
import { type GetV2DirectoryVat200Response } from '../models/GetV2DirectoryVat200Response';
|
|
26
28
|
import { type GetV2HistoryGoodsTask200Response } from '../models/GetV2HistoryGoodsTask200Response';
|
|
27
29
|
import { type GetV2HistoryTasks200Response } from '../models/GetV2HistoryTasks200Response';
|
|
@@ -160,6 +162,34 @@ export interface GetV2DirectoryKindsRequest {
|
|
|
160
162
|
*/
|
|
161
163
|
locale?: string;
|
|
162
164
|
}
|
|
165
|
+
export interface GetV2DirectoryOkpdRequest {
|
|
166
|
+
/**
|
|
167
|
+
* ID предмета
|
|
168
|
+
*/
|
|
169
|
+
subjectId: number;
|
|
170
|
+
/**
|
|
171
|
+
* Поиск по фрагменту кода ОКПД2. Работает только в паре с `subjectId`. Укажите первые цифры кода через точку, чтобы найти код по этому фрагменту
|
|
172
|
+
*/
|
|
173
|
+
search?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Язык полей ответа:
|
|
176
|
+
* - `ru` — русский
|
|
177
|
+
*
|
|
178
|
+
*/
|
|
179
|
+
locale?: GetV2DirectoryOkpdLocaleEnum;
|
|
180
|
+
}
|
|
181
|
+
export interface GetV2DirectoryOkpdAllRequest {
|
|
182
|
+
/**
|
|
183
|
+
* Поиск по фрагменту кода ОКПД2. Укажите первые цифры кода через точку, чтобы найти код по этому фрагменту
|
|
184
|
+
*/
|
|
185
|
+
search?: number;
|
|
186
|
+
/**
|
|
187
|
+
* Язык полей ответа:
|
|
188
|
+
* - `ru` — русский
|
|
189
|
+
*
|
|
190
|
+
*/
|
|
191
|
+
locale?: GetV2DirectoryOkpdAllLocaleEnum;
|
|
192
|
+
}
|
|
163
193
|
export interface GetV2DirectorySeasonsRequest {
|
|
164
194
|
/**
|
|
165
195
|
* Язык полей ответа `subjectName` и `name`:
|
|
@@ -178,7 +208,7 @@ export interface GetV2DirectoryTnvedRequest {
|
|
|
178
208
|
*/
|
|
179
209
|
subjectID: number;
|
|
180
210
|
/**
|
|
181
|
-
* Поиск по
|
|
211
|
+
* Поиск по коду ТН ВЭД. Работает только в паре с `subjectID`
|
|
182
212
|
*/
|
|
183
213
|
search?: number;
|
|
184
214
|
/**
|
|
@@ -192,6 +222,19 @@ export interface GetV2DirectoryTnvedRequest {
|
|
|
192
222
|
*/
|
|
193
223
|
locale?: string;
|
|
194
224
|
}
|
|
225
|
+
export interface GetV2DirectoryTnvedAllRequest {
|
|
226
|
+
/**
|
|
227
|
+
* Поиск по первым цифрам кода ТН ВЭД. Укажите не более 10 символов
|
|
228
|
+
*/
|
|
229
|
+
search?: number;
|
|
230
|
+
/**
|
|
231
|
+
* Язык полей ответа:
|
|
232
|
+
* - `ru` — русский
|
|
233
|
+
* - `en` — английский
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
236
|
+
locale?: GetV2DirectoryTnvedAllLocaleEnum;
|
|
237
|
+
}
|
|
195
238
|
export interface GetV2DirectoryVatRequest {
|
|
196
239
|
/**
|
|
197
240
|
* Язык полей ответа `subjectName` и `name`:
|
|
@@ -691,6 +734,34 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
691
734
|
* Пол
|
|
692
735
|
*/
|
|
693
736
|
getV2DirectoryKinds(requestParameters?: GetV2DirectoryKindsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetV2DirectoryKinds200Response>;
|
|
737
|
+
/**
|
|
738
|
+
* Creates request options for getV2DirectoryOkpd without sending the request
|
|
739
|
+
*/
|
|
740
|
+
getV2DirectoryOkpdRequestOpts(requestParameters: GetV2DirectoryOkpdRequest): Promise<runtime.RequestOpts>;
|
|
741
|
+
/**
|
|
742
|
+
* Метод возвращает список кодов ОКПД2 по ID [предмета](/openapi/work-with-products#tag/categoriesSubcategoriesAndCharacteristics/paths/~1content~1v2~1object~1all/get) и фрагменту кода ОКПД2. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> </div>
|
|
743
|
+
* Код ОКПД2 предмета
|
|
744
|
+
*/
|
|
745
|
+
getV2DirectoryOkpdRaw(requestParameters: GetV2DirectoryOkpdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetV2DirectoryOkpd200Response>>;
|
|
746
|
+
/**
|
|
747
|
+
* Метод возвращает список кодов ОКПД2 по ID [предмета](/openapi/work-with-products#tag/categoriesSubcategoriesAndCharacteristics/paths/~1content~1v2~1object~1all/get) и фрагменту кода ОКПД2. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> </div>
|
|
748
|
+
* Код ОКПД2 предмета
|
|
749
|
+
*/
|
|
750
|
+
getV2DirectoryOkpd(requestParameters: GetV2DirectoryOkpdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetV2DirectoryOkpd200Response>;
|
|
751
|
+
/**
|
|
752
|
+
* Creates request options for getV2DirectoryOkpdAll without sending the request
|
|
753
|
+
*/
|
|
754
|
+
getV2DirectoryOkpdAllRequestOpts(requestParameters: GetV2DirectoryOkpdAllRequest): Promise<runtime.RequestOpts>;
|
|
755
|
+
/**
|
|
756
|
+
* Метод возвращает справочный список всех кодов ОКПД2. Чтобы найти код по его фрагменту, укажите первые цифры кода через точку в параметре `search`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> </div>
|
|
757
|
+
* Список кодов ОКПД2
|
|
758
|
+
*/
|
|
759
|
+
getV2DirectoryOkpdAllRaw(requestParameters: GetV2DirectoryOkpdAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetV2DirectoryOkpd200Response>>;
|
|
760
|
+
/**
|
|
761
|
+
* Метод возвращает справочный список всех кодов ОКПД2. Чтобы найти код по его фрагменту, укажите первые цифры кода через точку в параметре `search`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> </div>
|
|
762
|
+
* Список кодов ОКПД2
|
|
763
|
+
*/
|
|
764
|
+
getV2DirectoryOkpdAll(requestParameters?: GetV2DirectoryOkpdAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetV2DirectoryOkpd200Response>;
|
|
694
765
|
/**
|
|
695
766
|
* Creates request options for getV2DirectorySeasons without sending the request
|
|
696
767
|
*/
|
|
@@ -710,15 +781,29 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
710
781
|
*/
|
|
711
782
|
getV2DirectoryTnvedRequestOpts(requestParameters: GetV2DirectoryTnvedRequest): Promise<runtime.RequestOpts>;
|
|
712
783
|
/**
|
|
713
|
-
* Метод возвращает список
|
|
714
|
-
*
|
|
784
|
+
* Метод возвращает список кодов ТН ВЭД по ID [предмета](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics/operation/getV2ObjectAll) и фрагменту кода ТН ВЭД. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> <hr> В <a href=\'/sandbox\'>песочнице</a> — максимум 1 запрос в секунду суммарно для всех методов <strong>Контента</strong>. </div>
|
|
785
|
+
* Код ТН ВЭД предмета
|
|
715
786
|
*/
|
|
716
787
|
getV2DirectoryTnvedRaw(requestParameters: GetV2DirectoryTnvedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetV2DirectoryTnved200Response>>;
|
|
717
788
|
/**
|
|
718
|
-
* Метод возвращает список
|
|
719
|
-
*
|
|
789
|
+
* Метод возвращает список кодов ТН ВЭД по ID [предмета](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics/operation/getV2ObjectAll) и фрагменту кода ТН ВЭД. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> <hr> В <a href=\'/sandbox\'>песочнице</a> — максимум 1 запрос в секунду суммарно для всех методов <strong>Контента</strong>. </div>
|
|
790
|
+
* Код ТН ВЭД предмета
|
|
720
791
|
*/
|
|
721
792
|
getV2DirectoryTnved(requestParameters: GetV2DirectoryTnvedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetV2DirectoryTnved200Response>;
|
|
793
|
+
/**
|
|
794
|
+
* Creates request options for getV2DirectoryTnvedAll without sending the request
|
|
795
|
+
*/
|
|
796
|
+
getV2DirectoryTnvedAllRequestOpts(requestParameters: GetV2DirectoryTnvedAllRequest): Promise<runtime.RequestOpts>;
|
|
797
|
+
/**
|
|
798
|
+
* Метод возвращает справочный список всех кодов ТН ВЭД. Чтобы найти код по его фрагменту, укажите первые цифры кода в параметре `search`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> <hr> В <a href=\'/sandbox\'>песочнице</a> — максимум 1 запрос в секунду суммарно для всех методов <strong>Контента</strong>. </div>
|
|
799
|
+
* Список кодов ТН ВЭД
|
|
800
|
+
*/
|
|
801
|
+
getV2DirectoryTnvedAllRaw(requestParameters: GetV2DirectoryTnvedAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetV2DirectoryTnvedAll200Response>>;
|
|
802
|
+
/**
|
|
803
|
+
* Метод возвращает справочный список всех кодов ТН ВЭД. Чтобы найти код по его фрагменту, укажите первые цифры кода в параметре `search`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> <hr> В <a href=\'/sandbox\'>песочнице</a> — максимум 1 запрос в секунду суммарно для всех методов <strong>Контента</strong>. </div>
|
|
804
|
+
* Список кодов ТН ВЭД
|
|
805
|
+
*/
|
|
806
|
+
getV2DirectoryTnvedAll(requestParameters?: GetV2DirectoryTnvedAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetV2DirectoryTnvedAll200Response>;
|
|
722
807
|
/**
|
|
723
808
|
* Creates request options for getV2DirectoryVat without sending the request
|
|
724
809
|
*/
|
|
@@ -1280,6 +1365,28 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
1280
1365
|
*/
|
|
1281
1366
|
putV3WarehousesWarehouseId(requestParameters: PutV3WarehousesWarehouseIdOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1282
1367
|
}
|
|
1368
|
+
/**
|
|
1369
|
+
* @export
|
|
1370
|
+
*/
|
|
1371
|
+
export declare const GetV2DirectoryOkpdLocaleEnum: {
|
|
1372
|
+
readonly Ru: "ru";
|
|
1373
|
+
};
|
|
1374
|
+
export type GetV2DirectoryOkpdLocaleEnum = typeof GetV2DirectoryOkpdLocaleEnum[keyof typeof GetV2DirectoryOkpdLocaleEnum];
|
|
1375
|
+
/**
|
|
1376
|
+
* @export
|
|
1377
|
+
*/
|
|
1378
|
+
export declare const GetV2DirectoryOkpdAllLocaleEnum: {
|
|
1379
|
+
readonly Ru: "ru";
|
|
1380
|
+
};
|
|
1381
|
+
export type GetV2DirectoryOkpdAllLocaleEnum = typeof GetV2DirectoryOkpdAllLocaleEnum[keyof typeof GetV2DirectoryOkpdAllLocaleEnum];
|
|
1382
|
+
/**
|
|
1383
|
+
* @export
|
|
1384
|
+
*/
|
|
1385
|
+
export declare const GetV2DirectoryTnvedAllLocaleEnum: {
|
|
1386
|
+
readonly Ru: "ru";
|
|
1387
|
+
readonly En: "en";
|
|
1388
|
+
};
|
|
1389
|
+
export type GetV2DirectoryTnvedAllLocaleEnum = typeof GetV2DirectoryTnvedAllLocaleEnum[keyof typeof GetV2DirectoryTnvedAllLocaleEnum];
|
|
1283
1390
|
/**
|
|
1284
1391
|
* @export
|
|
1285
1392
|
*/
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.PostV2GetCardsTrashOperationLocaleEnum = exports.DefaultApi = void 0;
|
|
67
|
+
exports.PostV2GetCardsTrashOperationLocaleEnum = exports.GetV2DirectoryTnvedAllLocaleEnum = exports.GetV2DirectoryOkpdAllLocaleEnum = exports.GetV2DirectoryOkpdLocaleEnum = exports.DefaultApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var BrandsResponse_1 = require("../models/BrandsResponse");
|
|
70
70
|
var DeleteV3StocksWarehouseIdRequest_1 = require("../models/DeleteV3StocksWarehouseIdRequest");
|
|
@@ -76,8 +76,10 @@ var GetV2CardsLimits200Response_1 = require("../models/GetV2CardsLimits200Respon
|
|
|
76
76
|
var GetV2DirectoryColors200Response_1 = require("../models/GetV2DirectoryColors200Response");
|
|
77
77
|
var GetV2DirectoryCountries200Response_1 = require("../models/GetV2DirectoryCountries200Response");
|
|
78
78
|
var GetV2DirectoryKinds200Response_1 = require("../models/GetV2DirectoryKinds200Response");
|
|
79
|
+
var GetV2DirectoryOkpd200Response_1 = require("../models/GetV2DirectoryOkpd200Response");
|
|
79
80
|
var GetV2DirectorySeasons200Response_1 = require("../models/GetV2DirectorySeasons200Response");
|
|
80
81
|
var GetV2DirectoryTnved200Response_1 = require("../models/GetV2DirectoryTnved200Response");
|
|
82
|
+
var GetV2DirectoryTnvedAll200Response_1 = require("../models/GetV2DirectoryTnvedAll200Response");
|
|
81
83
|
var GetV2DirectoryVat200Response_1 = require("../models/GetV2DirectoryVat200Response");
|
|
82
84
|
var GetV2HistoryGoodsTask200Response_1 = require("../models/GetV2HistoryGoodsTask200Response");
|
|
83
85
|
var GetV2HistoryTasks200Response_1 = require("../models/GetV2HistoryTasks200Response");
|
|
@@ -871,6 +873,161 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
871
873
|
});
|
|
872
874
|
});
|
|
873
875
|
};
|
|
876
|
+
/**
|
|
877
|
+
* Creates request options for getV2DirectoryOkpd without sending the request
|
|
878
|
+
*/
|
|
879
|
+
DefaultApi.prototype.getV2DirectoryOkpdRequestOpts = function (requestParameters) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
881
|
+
var queryParameters, headerParameters, _a, _b, urlPath;
|
|
882
|
+
return __generator(this, function (_c) {
|
|
883
|
+
switch (_c.label) {
|
|
884
|
+
case 0:
|
|
885
|
+
if (requestParameters['subjectId'] == null) {
|
|
886
|
+
throw new runtime.RequiredError('subjectId', 'Required parameter "subjectId" was null or undefined when calling getV2DirectoryOkpd().');
|
|
887
|
+
}
|
|
888
|
+
queryParameters = {};
|
|
889
|
+
if (requestParameters['subjectId'] != null) {
|
|
890
|
+
queryParameters['subjectId'] = requestParameters['subjectId'];
|
|
891
|
+
}
|
|
892
|
+
if (requestParameters['search'] != null) {
|
|
893
|
+
queryParameters['search'] = requestParameters['search'];
|
|
894
|
+
}
|
|
895
|
+
if (requestParameters['locale'] != null) {
|
|
896
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
897
|
+
}
|
|
898
|
+
headerParameters = {};
|
|
899
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
900
|
+
_a = headerParameters;
|
|
901
|
+
_b = "Authorization";
|
|
902
|
+
return [4 /*yield*/, this.configuration.apiKey("Authorization")];
|
|
903
|
+
case 1:
|
|
904
|
+
_a[_b] = _c.sent(); // HeaderApiKey authentication
|
|
905
|
+
_c.label = 2;
|
|
906
|
+
case 2:
|
|
907
|
+
urlPath = "/api/content/v2/directory/okpd";
|
|
908
|
+
return [2 /*return*/, {
|
|
909
|
+
path: urlPath,
|
|
910
|
+
method: 'GET',
|
|
911
|
+
headers: headerParameters,
|
|
912
|
+
query: queryParameters,
|
|
913
|
+
}];
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
});
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Метод возвращает список кодов ОКПД2 по ID [предмета](/openapi/work-with-products#tag/categoriesSubcategoriesAndCharacteristics/paths/~1content~1v2~1object~1all/get) и фрагменту кода ОКПД2. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> </div>
|
|
920
|
+
* Код ОКПД2 предмета
|
|
921
|
+
*/
|
|
922
|
+
DefaultApi.prototype.getV2DirectoryOkpdRaw = function (requestParameters, initOverrides) {
|
|
923
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
924
|
+
var requestOptions, response;
|
|
925
|
+
return __generator(this, function (_a) {
|
|
926
|
+
switch (_a.label) {
|
|
927
|
+
case 0: return [4 /*yield*/, this.getV2DirectoryOkpdRequestOpts(requestParameters)];
|
|
928
|
+
case 1:
|
|
929
|
+
requestOptions = _a.sent();
|
|
930
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
931
|
+
case 2:
|
|
932
|
+
response = _a.sent();
|
|
933
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetV2DirectoryOkpd200Response_1.GetV2DirectoryOkpd200ResponseFromJSON)(jsonValue); })];
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
});
|
|
937
|
+
};
|
|
938
|
+
/**
|
|
939
|
+
* Метод возвращает список кодов ОКПД2 по ID [предмета](/openapi/work-with-products#tag/categoriesSubcategoriesAndCharacteristics/paths/~1content~1v2~1object~1all/get) и фрагменту кода ОКПД2. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> </div>
|
|
940
|
+
* Код ОКПД2 предмета
|
|
941
|
+
*/
|
|
942
|
+
DefaultApi.prototype.getV2DirectoryOkpd = function (requestParameters, initOverrides) {
|
|
943
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
944
|
+
var response;
|
|
945
|
+
return __generator(this, function (_a) {
|
|
946
|
+
switch (_a.label) {
|
|
947
|
+
case 0: return [4 /*yield*/, this.getV2DirectoryOkpdRaw(requestParameters, initOverrides)];
|
|
948
|
+
case 1:
|
|
949
|
+
response = _a.sent();
|
|
950
|
+
return [4 /*yield*/, response.value()];
|
|
951
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
});
|
|
955
|
+
};
|
|
956
|
+
/**
|
|
957
|
+
* Creates request options for getV2DirectoryOkpdAll without sending the request
|
|
958
|
+
*/
|
|
959
|
+
DefaultApi.prototype.getV2DirectoryOkpdAllRequestOpts = function (requestParameters) {
|
|
960
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
961
|
+
var queryParameters, headerParameters, _a, _b, urlPath;
|
|
962
|
+
return __generator(this, function (_c) {
|
|
963
|
+
switch (_c.label) {
|
|
964
|
+
case 0:
|
|
965
|
+
queryParameters = {};
|
|
966
|
+
if (requestParameters['search'] != null) {
|
|
967
|
+
queryParameters['search'] = requestParameters['search'];
|
|
968
|
+
}
|
|
969
|
+
if (requestParameters['locale'] != null) {
|
|
970
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
971
|
+
}
|
|
972
|
+
headerParameters = {};
|
|
973
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
974
|
+
_a = headerParameters;
|
|
975
|
+
_b = "Authorization";
|
|
976
|
+
return [4 /*yield*/, this.configuration.apiKey("Authorization")];
|
|
977
|
+
case 1:
|
|
978
|
+
_a[_b] = _c.sent(); // HeaderApiKey authentication
|
|
979
|
+
_c.label = 2;
|
|
980
|
+
case 2:
|
|
981
|
+
urlPath = "/api/content/v2/directory/okpd/all";
|
|
982
|
+
return [2 /*return*/, {
|
|
983
|
+
path: urlPath,
|
|
984
|
+
method: 'GET',
|
|
985
|
+
headers: headerParameters,
|
|
986
|
+
query: queryParameters,
|
|
987
|
+
}];
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
});
|
|
991
|
+
};
|
|
992
|
+
/**
|
|
993
|
+
* Метод возвращает справочный список всех кодов ОКПД2. Чтобы найти код по его фрагменту, укажите первые цифры кода через точку в параметре `search`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> </div>
|
|
994
|
+
* Список кодов ОКПД2
|
|
995
|
+
*/
|
|
996
|
+
DefaultApi.prototype.getV2DirectoryOkpdAllRaw = function (requestParameters, initOverrides) {
|
|
997
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
998
|
+
var requestOptions, response;
|
|
999
|
+
return __generator(this, function (_a) {
|
|
1000
|
+
switch (_a.label) {
|
|
1001
|
+
case 0: return [4 /*yield*/, this.getV2DirectoryOkpdAllRequestOpts(requestParameters)];
|
|
1002
|
+
case 1:
|
|
1003
|
+
requestOptions = _a.sent();
|
|
1004
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1005
|
+
case 2:
|
|
1006
|
+
response = _a.sent();
|
|
1007
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetV2DirectoryOkpd200Response_1.GetV2DirectoryOkpd200ResponseFromJSON)(jsonValue); })];
|
|
1008
|
+
}
|
|
1009
|
+
});
|
|
1010
|
+
});
|
|
1011
|
+
};
|
|
1012
|
+
/**
|
|
1013
|
+
* Метод возвращает справочный список всех кодов ОКПД2. Чтобы найти код по его фрагменту, укажите первые цифры кода через точку в параметре `search`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> </div>
|
|
1014
|
+
* Список кодов ОКПД2
|
|
1015
|
+
*/
|
|
1016
|
+
DefaultApi.prototype.getV2DirectoryOkpdAll = function () {
|
|
1017
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
1018
|
+
var response;
|
|
1019
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1020
|
+
return __generator(this, function (_a) {
|
|
1021
|
+
switch (_a.label) {
|
|
1022
|
+
case 0: return [4 /*yield*/, this.getV2DirectoryOkpdAllRaw(requestParameters, initOverrides)];
|
|
1023
|
+
case 1:
|
|
1024
|
+
response = _a.sent();
|
|
1025
|
+
return [4 /*yield*/, response.value()];
|
|
1026
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1029
|
+
});
|
|
1030
|
+
};
|
|
874
1031
|
/**
|
|
875
1032
|
* Creates request options for getV2DirectorySeasons without sending the request
|
|
876
1033
|
*/
|
|
@@ -986,8 +1143,8 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
986
1143
|
});
|
|
987
1144
|
};
|
|
988
1145
|
/**
|
|
989
|
-
* Метод возвращает список
|
|
990
|
-
*
|
|
1146
|
+
* Метод возвращает список кодов ТН ВЭД по ID [предмета](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics/operation/getV2ObjectAll) и фрагменту кода ТН ВЭД. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> <hr> В <a href=\'/sandbox\'>песочнице</a> — максимум 1 запрос в секунду суммарно для всех методов <strong>Контента</strong>. </div>
|
|
1147
|
+
* Код ТН ВЭД предмета
|
|
991
1148
|
*/
|
|
992
1149
|
DefaultApi.prototype.getV2DirectoryTnvedRaw = function (requestParameters, initOverrides) {
|
|
993
1150
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1006,8 +1163,8 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
1006
1163
|
});
|
|
1007
1164
|
};
|
|
1008
1165
|
/**
|
|
1009
|
-
* Метод возвращает список
|
|
1010
|
-
*
|
|
1166
|
+
* Метод возвращает список кодов ТН ВЭД по ID [предмета](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics/operation/getV2ObjectAll) и фрагменту кода ТН ВЭД. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> <hr> В <a href=\'/sandbox\'>песочнице</a> — максимум 1 запрос в секунду суммарно для всех методов <strong>Контента</strong>. </div>
|
|
1167
|
+
* Код ТН ВЭД предмета
|
|
1011
1168
|
*/
|
|
1012
1169
|
DefaultApi.prototype.getV2DirectoryTnved = function (requestParameters, initOverrides) {
|
|
1013
1170
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1023,6 +1180,81 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
1023
1180
|
});
|
|
1024
1181
|
});
|
|
1025
1182
|
};
|
|
1183
|
+
/**
|
|
1184
|
+
* Creates request options for getV2DirectoryTnvedAll without sending the request
|
|
1185
|
+
*/
|
|
1186
|
+
DefaultApi.prototype.getV2DirectoryTnvedAllRequestOpts = function (requestParameters) {
|
|
1187
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1188
|
+
var queryParameters, headerParameters, _a, _b, urlPath;
|
|
1189
|
+
return __generator(this, function (_c) {
|
|
1190
|
+
switch (_c.label) {
|
|
1191
|
+
case 0:
|
|
1192
|
+
queryParameters = {};
|
|
1193
|
+
if (requestParameters['search'] != null) {
|
|
1194
|
+
queryParameters['search'] = requestParameters['search'];
|
|
1195
|
+
}
|
|
1196
|
+
if (requestParameters['locale'] != null) {
|
|
1197
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
1198
|
+
}
|
|
1199
|
+
headerParameters = {};
|
|
1200
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1201
|
+
_a = headerParameters;
|
|
1202
|
+
_b = "Authorization";
|
|
1203
|
+
return [4 /*yield*/, this.configuration.apiKey("Authorization")];
|
|
1204
|
+
case 1:
|
|
1205
|
+
_a[_b] = _c.sent(); // HeaderApiKey authentication
|
|
1206
|
+
_c.label = 2;
|
|
1207
|
+
case 2:
|
|
1208
|
+
urlPath = "/api/content/v2/directory/tnved/all";
|
|
1209
|
+
return [2 /*return*/, {
|
|
1210
|
+
path: urlPath,
|
|
1211
|
+
method: 'GET',
|
|
1212
|
+
headers: headerParameters,
|
|
1213
|
+
query: queryParameters,
|
|
1214
|
+
}];
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
});
|
|
1218
|
+
};
|
|
1219
|
+
/**
|
|
1220
|
+
* Метод возвращает справочный список всех кодов ТН ВЭД. Чтобы найти код по его фрагменту, укажите первые цифры кода в параметре `search`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> <hr> В <a href=\'/sandbox\'>песочнице</a> — максимум 1 запрос в секунду суммарно для всех методов <strong>Контента</strong>. </div>
|
|
1221
|
+
* Список кодов ТН ВЭД
|
|
1222
|
+
*/
|
|
1223
|
+
DefaultApi.prototype.getV2DirectoryTnvedAllRaw = function (requestParameters, initOverrides) {
|
|
1224
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1225
|
+
var requestOptions, response;
|
|
1226
|
+
return __generator(this, function (_a) {
|
|
1227
|
+
switch (_a.label) {
|
|
1228
|
+
case 0: return [4 /*yield*/, this.getV2DirectoryTnvedAllRequestOpts(requestParameters)];
|
|
1229
|
+
case 1:
|
|
1230
|
+
requestOptions = _a.sent();
|
|
1231
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1232
|
+
case 2:
|
|
1233
|
+
response = _a.sent();
|
|
1234
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetV2DirectoryTnvedAll200Response_1.GetV2DirectoryTnvedAll200ResponseFromJSON)(jsonValue); })];
|
|
1235
|
+
}
|
|
1236
|
+
});
|
|
1237
|
+
});
|
|
1238
|
+
};
|
|
1239
|
+
/**
|
|
1240
|
+
* Метод возвращает справочный список всех кодов ТН ВЭД. Чтобы найти код по его фрагменту, укажите первые цифры кода в параметре `search`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/introduction/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 100 запросов | 600 мс | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUpload\">создания карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listingItems/operation/postV2CardsUploadAdd\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsUpdate\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/item-management#tag/listings/operation/postV2CardsRecover\">восстановления карточек товаров из корзины</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsList\">получения списка рекомендаций в карточках товаров</a></li> <li><a href=\"/openapi/item-management#tag/recommendations/operation/postV1RecommendationsSet\">установки рекомендаций для товаров</a></li> </ul> <hr> В <a href=\'/sandbox\'>песочнице</a> — максимум 1 запрос в секунду суммарно для всех методов <strong>Контента</strong>. </div>
|
|
1241
|
+
* Список кодов ТН ВЭД
|
|
1242
|
+
*/
|
|
1243
|
+
DefaultApi.prototype.getV2DirectoryTnvedAll = function () {
|
|
1244
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
1245
|
+
var response;
|
|
1246
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1247
|
+
return __generator(this, function (_a) {
|
|
1248
|
+
switch (_a.label) {
|
|
1249
|
+
case 0: return [4 /*yield*/, this.getV2DirectoryTnvedAllRaw(requestParameters, initOverrides)];
|
|
1250
|
+
case 1:
|
|
1251
|
+
response = _a.sent();
|
|
1252
|
+
return [4 /*yield*/, response.value()];
|
|
1253
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
});
|
|
1257
|
+
};
|
|
1026
1258
|
/**
|
|
1027
1259
|
* Creates request options for getV2DirectoryVat without sending the request
|
|
1028
1260
|
*/
|
|
@@ -4007,6 +4239,25 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
4007
4239
|
return DefaultApi;
|
|
4008
4240
|
}(runtime.BaseAPI));
|
|
4009
4241
|
exports.DefaultApi = DefaultApi;
|
|
4242
|
+
/**
|
|
4243
|
+
* @export
|
|
4244
|
+
*/
|
|
4245
|
+
exports.GetV2DirectoryOkpdLocaleEnum = {
|
|
4246
|
+
Ru: 'ru',
|
|
4247
|
+
};
|
|
4248
|
+
/**
|
|
4249
|
+
* @export
|
|
4250
|
+
*/
|
|
4251
|
+
exports.GetV2DirectoryOkpdAllLocaleEnum = {
|
|
4252
|
+
Ru: 'ru',
|
|
4253
|
+
};
|
|
4254
|
+
/**
|
|
4255
|
+
* @export
|
|
4256
|
+
*/
|
|
4257
|
+
exports.GetV2DirectoryTnvedAllLocaleEnum = {
|
|
4258
|
+
Ru: 'ru',
|
|
4259
|
+
En: 'en',
|
|
4260
|
+
};
|
|
4010
4261
|
/**
|
|
4011
4262
|
* @export
|
|
4012
4263
|
*/
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Работа с товарами
|
|
3
|
+
* <div class=\"api-block\"> С помощью методов этого раздела вы можете: - [создавать](/openapi/item-management#tag/listingItems) и [редактировать](/openapi/item-management#tag/listings) карточки товаров - получать [категории, предметы, характеристики и бренды товаров](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics) - загружать [медиафайлы](/openapi/item-management#tag/mediaFiles) в карточки товаров - настраивать [ярлыки](/openapi/item-management#tag/labels) для поиска товаров - работать с [рекомендациями](/openapi/item-management#tag/recommendations) для товаров - устанавливать [цены и скидки](/openapi/item-management#tag/pricesAndDiscounts) - управлять [остатками товаров](/openapi/item-management#tag/sellerWarehousesInventory) и [складами](/openapi/item-management#tag/sellerWarehouses), если вы работаете по модели продаж со склада продавца Вы можете протестировать методы работы с товарами в [песочнице](/sandbox). Также в песочнице доступны [специальные методы](/docs/openapi-other/sandbox-environment#tag/itemManagement) для управления карточками товаров </div> <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"/knowledge-base/articles/019d49a4-1320-71bb-9dac-8ba07e7177ce/rabota-s-tovarami\">инструкции</a> по <strong>работе с товарами</strong> </div>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: items
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetV2DirectoryOkpd200ResponseDataInner } from './GetV2DirectoryOkpd200ResponseDataInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetV2DirectoryOkpd200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface GetV2DirectoryOkpd200Response {
|
|
19
|
+
/**
|
|
20
|
+
* Данные
|
|
21
|
+
*/
|
|
22
|
+
data: Array<GetV2DirectoryOkpd200ResponseDataInner>;
|
|
23
|
+
/**
|
|
24
|
+
* Флаг наличия ошибки
|
|
25
|
+
*/
|
|
26
|
+
error: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Текст ошибки
|
|
29
|
+
*/
|
|
30
|
+
errorText: string;
|
|
31
|
+
/**
|
|
32
|
+
* Дополнительные ошибки
|
|
33
|
+
*/
|
|
34
|
+
additionalErrors: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetV2DirectoryOkpd200Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfGetV2DirectoryOkpd200Response(value: object): value is GetV2DirectoryOkpd200Response;
|
|
40
|
+
export declare function GetV2DirectoryOkpd200ResponseFromJSON(json: any): GetV2DirectoryOkpd200Response;
|
|
41
|
+
export declare function GetV2DirectoryOkpd200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetV2DirectoryOkpd200Response;
|
|
42
|
+
export declare function GetV2DirectoryOkpd200ResponseToJSON(json: any): GetV2DirectoryOkpd200Response;
|
|
43
|
+
export declare function GetV2DirectoryOkpd200ResponseToJSONTyped(value?: GetV2DirectoryOkpd200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Работа с товарами
|
|
6
|
+
* <div class=\"api-block\"> С помощью методов этого раздела вы можете: - [создавать](/openapi/item-management#tag/listingItems) и [редактировать](/openapi/item-management#tag/listings) карточки товаров - получать [категории, предметы, характеристики и бренды товаров](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics) - загружать [медиафайлы](/openapi/item-management#tag/mediaFiles) в карточки товаров - настраивать [ярлыки](/openapi/item-management#tag/labels) для поиска товаров - работать с [рекомендациями](/openapi/item-management#tag/recommendations) для товаров - устанавливать [цены и скидки](/openapi/item-management#tag/pricesAndDiscounts) - управлять [остатками товаров](/openapi/item-management#tag/sellerWarehousesInventory) и [складами](/openapi/item-management#tag/sellerWarehouses), если вы работаете по модели продаж со склада продавца Вы можете протестировать методы работы с товарами в [песочнице](/sandbox). Также в песочнице доступны [специальные методы](/docs/openapi-other/sandbox-environment#tag/itemManagement) для управления карточками товаров </div> <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"/knowledge-base/articles/019d49a4-1320-71bb-9dac-8ba07e7177ce/rabota-s-tovarami\">инструкции</a> по <strong>работе с товарами</strong> </div>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: items
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetV2DirectoryOkpd200Response = instanceOfGetV2DirectoryOkpd200Response;
|
|
17
|
+
exports.GetV2DirectoryOkpd200ResponseFromJSON = GetV2DirectoryOkpd200ResponseFromJSON;
|
|
18
|
+
exports.GetV2DirectoryOkpd200ResponseFromJSONTyped = GetV2DirectoryOkpd200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetV2DirectoryOkpd200ResponseToJSON = GetV2DirectoryOkpd200ResponseToJSON;
|
|
20
|
+
exports.GetV2DirectoryOkpd200ResponseToJSONTyped = GetV2DirectoryOkpd200ResponseToJSONTyped;
|
|
21
|
+
var GetV2DirectoryOkpd200ResponseDataInner_1 = require("./GetV2DirectoryOkpd200ResponseDataInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetV2DirectoryOkpd200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetV2DirectoryOkpd200Response(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('errorText' in value) || value['errorText'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('additionalErrors' in value) || value['additionalErrors'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetV2DirectoryOkpd200ResponseFromJSON(json) {
|
|
37
|
+
return GetV2DirectoryOkpd200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetV2DirectoryOkpd200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(GetV2DirectoryOkpd200ResponseDataInner_1.GetV2DirectoryOkpd200ResponseDataInnerFromJSON)),
|
|
45
|
+
'error': json['error'],
|
|
46
|
+
'errorText': json['errorText'],
|
|
47
|
+
'additionalErrors': json['additionalErrors'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function GetV2DirectoryOkpd200ResponseToJSON(json) {
|
|
51
|
+
return GetV2DirectoryOkpd200ResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function GetV2DirectoryOkpd200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'data': (value['data'].map(GetV2DirectoryOkpd200ResponseDataInner_1.GetV2DirectoryOkpd200ResponseDataInnerToJSON)),
|
|
60
|
+
'error': value['error'],
|
|
61
|
+
'errorText': value['errorText'],
|
|
62
|
+
'additionalErrors': value['additionalErrors'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Работа с товарами
|
|
3
|
+
* <div class=\"api-block\"> С помощью методов этого раздела вы можете: - [создавать](/openapi/item-management#tag/listingItems) и [редактировать](/openapi/item-management#tag/listings) карточки товаров - получать [категории, предметы, характеристики и бренды товаров](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics) - загружать [медиафайлы](/openapi/item-management#tag/mediaFiles) в карточки товаров - настраивать [ярлыки](/openapi/item-management#tag/labels) для поиска товаров - работать с [рекомендациями](/openapi/item-management#tag/recommendations) для товаров - устанавливать [цены и скидки](/openapi/item-management#tag/pricesAndDiscounts) - управлять [остатками товаров](/openapi/item-management#tag/sellerWarehousesInventory) и [складами](/openapi/item-management#tag/sellerWarehouses), если вы работаете по модели продаж со склада продавца Вы можете протестировать методы работы с товарами в [песочнице](/sandbox). Также в песочнице доступны [специальные методы](/docs/openapi-other/sandbox-environment#tag/itemManagement) для управления карточками товаров </div> <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"/knowledge-base/articles/019d49a4-1320-71bb-9dac-8ba07e7177ce/rabota-s-tovarami\">инструкции</a> по <strong>работе с товарами</strong> </div>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: items
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetV2DirectoryOkpd200ResponseDataInner
|
|
16
|
+
*/
|
|
17
|
+
export interface GetV2DirectoryOkpd200ResponseDataInner {
|
|
18
|
+
/**
|
|
19
|
+
* Код ОКПД2
|
|
20
|
+
*/
|
|
21
|
+
okpd2: string;
|
|
22
|
+
/**
|
|
23
|
+
* Текстовое описание товаров, которые входят в группу
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the GetV2DirectoryOkpd200ResponseDataInner interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfGetV2DirectoryOkpd200ResponseDataInner(value: object): value is GetV2DirectoryOkpd200ResponseDataInner;
|
|
31
|
+
export declare function GetV2DirectoryOkpd200ResponseDataInnerFromJSON(json: any): GetV2DirectoryOkpd200ResponseDataInner;
|
|
32
|
+
export declare function GetV2DirectoryOkpd200ResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetV2DirectoryOkpd200ResponseDataInner;
|
|
33
|
+
export declare function GetV2DirectoryOkpd200ResponseDataInnerToJSON(json: any): GetV2DirectoryOkpd200ResponseDataInner;
|
|
34
|
+
export declare function GetV2DirectoryOkpd200ResponseDataInnerToJSONTyped(value?: GetV2DirectoryOkpd200ResponseDataInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Работа с товарами
|
|
6
|
+
* <div class=\"api-block\"> С помощью методов этого раздела вы можете: - [создавать](/openapi/item-management#tag/listingItems) и [редактировать](/openapi/item-management#tag/listings) карточки товаров - получать [категории, предметы, характеристики и бренды товаров](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics) - загружать [медиафайлы](/openapi/item-management#tag/mediaFiles) в карточки товаров - настраивать [ярлыки](/openapi/item-management#tag/labels) для поиска товаров - работать с [рекомендациями](/openapi/item-management#tag/recommendations) для товаров - устанавливать [цены и скидки](/openapi/item-management#tag/pricesAndDiscounts) - управлять [остатками товаров](/openapi/item-management#tag/sellerWarehousesInventory) и [складами](/openapi/item-management#tag/sellerWarehouses), если вы работаете по модели продаж со склада продавца Вы можете протестировать методы работы с товарами в [песочнице](/sandbox). Также в песочнице доступны [специальные методы](/docs/openapi-other/sandbox-environment#tag/itemManagement) для управления карточками товаров </div> <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"/knowledge-base/articles/019d49a4-1320-71bb-9dac-8ba07e7177ce/rabota-s-tovarami\">инструкции</a> по <strong>работе с товарами</strong> </div>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: items
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetV2DirectoryOkpd200ResponseDataInner = instanceOfGetV2DirectoryOkpd200ResponseDataInner;
|
|
17
|
+
exports.GetV2DirectoryOkpd200ResponseDataInnerFromJSON = GetV2DirectoryOkpd200ResponseDataInnerFromJSON;
|
|
18
|
+
exports.GetV2DirectoryOkpd200ResponseDataInnerFromJSONTyped = GetV2DirectoryOkpd200ResponseDataInnerFromJSONTyped;
|
|
19
|
+
exports.GetV2DirectoryOkpd200ResponseDataInnerToJSON = GetV2DirectoryOkpd200ResponseDataInnerToJSON;
|
|
20
|
+
exports.GetV2DirectoryOkpd200ResponseDataInnerToJSONTyped = GetV2DirectoryOkpd200ResponseDataInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetV2DirectoryOkpd200ResponseDataInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetV2DirectoryOkpd200ResponseDataInner(value) {
|
|
25
|
+
if (!('okpd2' in value) || value['okpd2'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GetV2DirectoryOkpd200ResponseDataInnerFromJSON(json) {
|
|
32
|
+
return GetV2DirectoryOkpd200ResponseDataInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GetV2DirectoryOkpd200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'okpd2': json['okpd2'],
|
|
40
|
+
'description': json['description'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GetV2DirectoryOkpd200ResponseDataInnerToJSON(json) {
|
|
44
|
+
return GetV2DirectoryOkpd200ResponseDataInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetV2DirectoryOkpd200ResponseDataInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'okpd2': value['okpd2'],
|
|
53
|
+
'description': value['description'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Работа с товарами
|
|
3
|
+
* <div class=\"api-block\"> С помощью методов этого раздела вы можете: - [создавать](/openapi/item-management#tag/listingItems) и [редактировать](/openapi/item-management#tag/listings) карточки товаров - получать [категории, предметы, характеристики и бренды товаров](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics) - загружать [медиафайлы](/openapi/item-management#tag/mediaFiles) в карточки товаров - настраивать [ярлыки](/openapi/item-management#tag/labels) для поиска товаров - работать с [рекомендациями](/openapi/item-management#tag/recommendations) для товаров - устанавливать [цены и скидки](/openapi/item-management#tag/pricesAndDiscounts) - управлять [остатками товаров](/openapi/item-management#tag/sellerWarehousesInventory) и [складами](/openapi/item-management#tag/sellerWarehouses), если вы работаете по модели продаж со склада продавца Вы можете протестировать методы работы с товарами в [песочнице](/sandbox). Также в песочнице доступны [специальные методы](/docs/openapi-other/sandbox-environment#tag/itemManagement) для управления карточками товаров </div> <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"/knowledge-base/articles/019d49a4-1320-71bb-9dac-8ba07e7177ce/rabota-s-tovarami\">инструкции</a> по <strong>работе с товарами</strong> </div>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: items
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetV2DirectoryTnvedAll200ResponseDataInner } from './GetV2DirectoryTnvedAll200ResponseDataInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetV2DirectoryTnvedAll200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface GetV2DirectoryTnvedAll200Response {
|
|
19
|
+
/**
|
|
20
|
+
* Данные
|
|
21
|
+
*/
|
|
22
|
+
data: Array<GetV2DirectoryTnvedAll200ResponseDataInner>;
|
|
23
|
+
/**
|
|
24
|
+
* Флаг наличия ошибки
|
|
25
|
+
*/
|
|
26
|
+
error: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Текст ошибки
|
|
29
|
+
*/
|
|
30
|
+
errorText: string;
|
|
31
|
+
/**
|
|
32
|
+
* Дополнительные ошибки
|
|
33
|
+
*/
|
|
34
|
+
additionalErrors: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetV2DirectoryTnvedAll200Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfGetV2DirectoryTnvedAll200Response(value: object): value is GetV2DirectoryTnvedAll200Response;
|
|
40
|
+
export declare function GetV2DirectoryTnvedAll200ResponseFromJSON(json: any): GetV2DirectoryTnvedAll200Response;
|
|
41
|
+
export declare function GetV2DirectoryTnvedAll200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetV2DirectoryTnvedAll200Response;
|
|
42
|
+
export declare function GetV2DirectoryTnvedAll200ResponseToJSON(json: any): GetV2DirectoryTnvedAll200Response;
|
|
43
|
+
export declare function GetV2DirectoryTnvedAll200ResponseToJSONTyped(value?: GetV2DirectoryTnvedAll200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Работа с товарами
|
|
6
|
+
* <div class=\"api-block\"> С помощью методов этого раздела вы можете: - [создавать](/openapi/item-management#tag/listingItems) и [редактировать](/openapi/item-management#tag/listings) карточки товаров - получать [категории, предметы, характеристики и бренды товаров](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics) - загружать [медиафайлы](/openapi/item-management#tag/mediaFiles) в карточки товаров - настраивать [ярлыки](/openapi/item-management#tag/labels) для поиска товаров - работать с [рекомендациями](/openapi/item-management#tag/recommendations) для товаров - устанавливать [цены и скидки](/openapi/item-management#tag/pricesAndDiscounts) - управлять [остатками товаров](/openapi/item-management#tag/sellerWarehousesInventory) и [складами](/openapi/item-management#tag/sellerWarehouses), если вы работаете по модели продаж со склада продавца Вы можете протестировать методы работы с товарами в [песочнице](/sandbox). Также в песочнице доступны [специальные методы](/docs/openapi-other/sandbox-environment#tag/itemManagement) для управления карточками товаров </div> <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"/knowledge-base/articles/019d49a4-1320-71bb-9dac-8ba07e7177ce/rabota-s-tovarami\">инструкции</a> по <strong>работе с товарами</strong> </div>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: items
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetV2DirectoryTnvedAll200Response = instanceOfGetV2DirectoryTnvedAll200Response;
|
|
17
|
+
exports.GetV2DirectoryTnvedAll200ResponseFromJSON = GetV2DirectoryTnvedAll200ResponseFromJSON;
|
|
18
|
+
exports.GetV2DirectoryTnvedAll200ResponseFromJSONTyped = GetV2DirectoryTnvedAll200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetV2DirectoryTnvedAll200ResponseToJSON = GetV2DirectoryTnvedAll200ResponseToJSON;
|
|
20
|
+
exports.GetV2DirectoryTnvedAll200ResponseToJSONTyped = GetV2DirectoryTnvedAll200ResponseToJSONTyped;
|
|
21
|
+
var GetV2DirectoryTnvedAll200ResponseDataInner_1 = require("./GetV2DirectoryTnvedAll200ResponseDataInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetV2DirectoryTnvedAll200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetV2DirectoryTnvedAll200Response(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('errorText' in value) || value['errorText'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('additionalErrors' in value) || value['additionalErrors'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetV2DirectoryTnvedAll200ResponseFromJSON(json) {
|
|
37
|
+
return GetV2DirectoryTnvedAll200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetV2DirectoryTnvedAll200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(GetV2DirectoryTnvedAll200ResponseDataInner_1.GetV2DirectoryTnvedAll200ResponseDataInnerFromJSON)),
|
|
45
|
+
'error': json['error'],
|
|
46
|
+
'errorText': json['errorText'],
|
|
47
|
+
'additionalErrors': json['additionalErrors'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function GetV2DirectoryTnvedAll200ResponseToJSON(json) {
|
|
51
|
+
return GetV2DirectoryTnvedAll200ResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function GetV2DirectoryTnvedAll200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'data': (value['data'].map(GetV2DirectoryTnvedAll200ResponseDataInner_1.GetV2DirectoryTnvedAll200ResponseDataInnerToJSON)),
|
|
60
|
+
'error': value['error'],
|
|
61
|
+
'errorText': value['errorText'],
|
|
62
|
+
'additionalErrors': value['additionalErrors'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Работа с товарами
|
|
3
|
+
* <div class=\"api-block\"> С помощью методов этого раздела вы можете: - [создавать](/openapi/item-management#tag/listingItems) и [редактировать](/openapi/item-management#tag/listings) карточки товаров - получать [категории, предметы, характеристики и бренды товаров](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics) - загружать [медиафайлы](/openapi/item-management#tag/mediaFiles) в карточки товаров - настраивать [ярлыки](/openapi/item-management#tag/labels) для поиска товаров - работать с [рекомендациями](/openapi/item-management#tag/recommendations) для товаров - устанавливать [цены и скидки](/openapi/item-management#tag/pricesAndDiscounts) - управлять [остатками товаров](/openapi/item-management#tag/sellerWarehousesInventory) и [складами](/openapi/item-management#tag/sellerWarehouses), если вы работаете по модели продаж со склада продавца Вы можете протестировать методы работы с товарами в [песочнице](/sandbox). Также в песочнице доступны [специальные методы](/docs/openapi-other/sandbox-environment#tag/itemManagement) для управления карточками товаров </div> <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"/knowledge-base/articles/019d49a4-1320-71bb-9dac-8ba07e7177ce/rabota-s-tovarami\">инструкции</a> по <strong>работе с товарами</strong> </div>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: items
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetV2DirectoryTnvedAll200ResponseDataInner
|
|
16
|
+
*/
|
|
17
|
+
export interface GetV2DirectoryTnvedAll200ResponseDataInner {
|
|
18
|
+
/**
|
|
19
|
+
* Код ТН ВЭД
|
|
20
|
+
*/
|
|
21
|
+
tnved: string;
|
|
22
|
+
/**
|
|
23
|
+
* Текстовое описание товаров, которые входят в группу
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the GetV2DirectoryTnvedAll200ResponseDataInner interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfGetV2DirectoryTnvedAll200ResponseDataInner(value: object): value is GetV2DirectoryTnvedAll200ResponseDataInner;
|
|
31
|
+
export declare function GetV2DirectoryTnvedAll200ResponseDataInnerFromJSON(json: any): GetV2DirectoryTnvedAll200ResponseDataInner;
|
|
32
|
+
export declare function GetV2DirectoryTnvedAll200ResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetV2DirectoryTnvedAll200ResponseDataInner;
|
|
33
|
+
export declare function GetV2DirectoryTnvedAll200ResponseDataInnerToJSON(json: any): GetV2DirectoryTnvedAll200ResponseDataInner;
|
|
34
|
+
export declare function GetV2DirectoryTnvedAll200ResponseDataInnerToJSONTyped(value?: GetV2DirectoryTnvedAll200ResponseDataInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Работа с товарами
|
|
6
|
+
* <div class=\"api-block\"> С помощью методов этого раздела вы можете: - [создавать](/openapi/item-management#tag/listingItems) и [редактировать](/openapi/item-management#tag/listings) карточки товаров - получать [категории, предметы, характеристики и бренды товаров](/openapi/item-management#tag/categoriesSubcategoriesAndCharacteristics) - загружать [медиафайлы](/openapi/item-management#tag/mediaFiles) в карточки товаров - настраивать [ярлыки](/openapi/item-management#tag/labels) для поиска товаров - работать с [рекомендациями](/openapi/item-management#tag/recommendations) для товаров - устанавливать [цены и скидки](/openapi/item-management#tag/pricesAndDiscounts) - управлять [остатками товаров](/openapi/item-management#tag/sellerWarehousesInventory) и [складами](/openapi/item-management#tag/sellerWarehouses), если вы работаете по модели продаж со склада продавца Вы можете протестировать методы работы с товарами в [песочнице](/sandbox). Также в песочнице доступны [специальные методы](/docs/openapi-other/sandbox-environment#tag/itemManagement) для управления карточками товаров </div> <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"/knowledge-base/articles/019d49a4-1320-71bb-9dac-8ba07e7177ce/rabota-s-tovarami\">инструкции</a> по <strong>работе с товарами</strong> </div>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: items
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetV2DirectoryTnvedAll200ResponseDataInner = instanceOfGetV2DirectoryTnvedAll200ResponseDataInner;
|
|
17
|
+
exports.GetV2DirectoryTnvedAll200ResponseDataInnerFromJSON = GetV2DirectoryTnvedAll200ResponseDataInnerFromJSON;
|
|
18
|
+
exports.GetV2DirectoryTnvedAll200ResponseDataInnerFromJSONTyped = GetV2DirectoryTnvedAll200ResponseDataInnerFromJSONTyped;
|
|
19
|
+
exports.GetV2DirectoryTnvedAll200ResponseDataInnerToJSON = GetV2DirectoryTnvedAll200ResponseDataInnerToJSON;
|
|
20
|
+
exports.GetV2DirectoryTnvedAll200ResponseDataInnerToJSONTyped = GetV2DirectoryTnvedAll200ResponseDataInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetV2DirectoryTnvedAll200ResponseDataInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetV2DirectoryTnvedAll200ResponseDataInner(value) {
|
|
25
|
+
if (!('tnved' in value) || value['tnved'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GetV2DirectoryTnvedAll200ResponseDataInnerFromJSON(json) {
|
|
32
|
+
return GetV2DirectoryTnvedAll200ResponseDataInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GetV2DirectoryTnvedAll200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'tnved': json['tnved'],
|
|
40
|
+
'description': json['description'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GetV2DirectoryTnvedAll200ResponseDataInnerToJSON(json) {
|
|
44
|
+
return GetV2DirectoryTnvedAll200ResponseDataInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetV2DirectoryTnvedAll200ResponseDataInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'tnved': value['tnved'],
|
|
53
|
+
'description': value['description'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -19,9 +19,13 @@ export * from './GetV2DirectoryColors200ResponseDataInner';
|
|
|
19
19
|
export * from './GetV2DirectoryCountries200Response';
|
|
20
20
|
export * from './GetV2DirectoryCountries200ResponseDataInner';
|
|
21
21
|
export * from './GetV2DirectoryKinds200Response';
|
|
22
|
+
export * from './GetV2DirectoryOkpd200Response';
|
|
23
|
+
export * from './GetV2DirectoryOkpd200ResponseDataInner';
|
|
22
24
|
export * from './GetV2DirectorySeasons200Response';
|
|
23
25
|
export * from './GetV2DirectoryTnved200Response';
|
|
24
26
|
export * from './GetV2DirectoryTnved200ResponseDataInner';
|
|
27
|
+
export * from './GetV2DirectoryTnvedAll200Response';
|
|
28
|
+
export * from './GetV2DirectoryTnvedAll200ResponseDataInner';
|
|
25
29
|
export * from './GetV2DirectoryVat200Response';
|
|
26
30
|
export * from './GetV2HistoryGoodsTask200Response';
|
|
27
31
|
export * from './GetV2HistoryGoodsTask200ResponseData';
|
|
@@ -37,9 +37,13 @@ __exportStar(require("./GetV2DirectoryColors200ResponseDataInner"), exports);
|
|
|
37
37
|
__exportStar(require("./GetV2DirectoryCountries200Response"), exports);
|
|
38
38
|
__exportStar(require("./GetV2DirectoryCountries200ResponseDataInner"), exports);
|
|
39
39
|
__exportStar(require("./GetV2DirectoryKinds200Response"), exports);
|
|
40
|
+
__exportStar(require("./GetV2DirectoryOkpd200Response"), exports);
|
|
41
|
+
__exportStar(require("./GetV2DirectoryOkpd200ResponseDataInner"), exports);
|
|
40
42
|
__exportStar(require("./GetV2DirectorySeasons200Response"), exports);
|
|
41
43
|
__exportStar(require("./GetV2DirectoryTnved200Response"), exports);
|
|
42
44
|
__exportStar(require("./GetV2DirectoryTnved200ResponseDataInner"), exports);
|
|
45
|
+
__exportStar(require("./GetV2DirectoryTnvedAll200Response"), exports);
|
|
46
|
+
__exportStar(require("./GetV2DirectoryTnvedAll200ResponseDataInner"), exports);
|
|
43
47
|
__exportStar(require("./GetV2DirectoryVat200Response"), exports);
|
|
44
48
|
__exportStar(require("./GetV2HistoryGoodsTask200Response"), exports);
|
|
45
49
|
__exportStar(require("./GetV2HistoryGoodsTask200ResponseData"), exports);
|