wildberries-sdk 0.1.184 → 0.1.185
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/dist/orders_fbs/models/GetV3FbsOrdersArchive403Response.d.ts +45 -5
- package/dist/orders_fbs/models/GetV3FbsOrdersArchive403Response.js +45 -22
- package/dist/orders_fbw/models/GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response.d.ts +58 -0
- package/dist/orders_fbw/models/GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response.js +78 -0
- package/dist/orders_fbw/models/index.d.ts +1 -0
- package/dist/orders_fbw/models/index.js +1 -0
- package/dist/promotion/models/GetAdvertsAdvertsInner.d.ts +2 -2
- package/dist/promotion/models/GetAdvertsAdvertsInner.js +3 -3
- package/dist/promotion/models/GetV0BidsRecommendations200Response.d.ts +44 -5
- package/dist/promotion/models/GetV0BidsRecommendations200Response.js +33 -22
- package/dist/promotion/models/Timestamps.d.ts +4 -0
- package/dist/promotion/models/Timestamps.js +4 -0
- package/dist/promotion/models/TimestampsV2.d.ts +38 -0
- package/dist/promotion/models/TimestampsV2.js +60 -0
- package/dist/promotion/models/index.d.ts +1 -0
- package/dist/promotion/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -9,15 +9,55 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { Response4XX } from './Response4XX';
|
|
12
|
+
import type { ArhiveOrderError400ErrorsInner } from './ArhiveOrderError400ErrorsInner';
|
|
14
13
|
/**
|
|
15
|
-
* @type GetV3FbsOrdersArchive403Response
|
|
16
14
|
*
|
|
17
15
|
* @export
|
|
16
|
+
* @interface GetV3FbsOrdersArchive403Response
|
|
18
17
|
*/
|
|
19
|
-
export
|
|
18
|
+
export interface GetV3FbsOrdersArchive403Response {
|
|
19
|
+
/**
|
|
20
|
+
* Внутренний код ошибки
|
|
21
|
+
*/
|
|
22
|
+
code?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Детали ошибки
|
|
25
|
+
*/
|
|
26
|
+
detail: string;
|
|
27
|
+
/**
|
|
28
|
+
* Информация об ошибке
|
|
29
|
+
*/
|
|
30
|
+
errors?: Array<ArhiveOrderError400ErrorsInner>;
|
|
31
|
+
/**
|
|
32
|
+
* ID внутреннего сервиса WB
|
|
33
|
+
*/
|
|
34
|
+
origin: string;
|
|
35
|
+
/**
|
|
36
|
+
* ID запроса
|
|
37
|
+
*/
|
|
38
|
+
requestId: string;
|
|
39
|
+
/**
|
|
40
|
+
* HTTP статус-код
|
|
41
|
+
*/
|
|
42
|
+
status: number;
|
|
43
|
+
/**
|
|
44
|
+
* Заголовок ошибки
|
|
45
|
+
*/
|
|
46
|
+
title: string;
|
|
47
|
+
/**
|
|
48
|
+
* Расшифровка HTTP статус-кода
|
|
49
|
+
*/
|
|
50
|
+
statusText: string;
|
|
51
|
+
/**
|
|
52
|
+
* Дата и время запроса
|
|
53
|
+
*/
|
|
54
|
+
timestamp: Date;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GetV3FbsOrdersArchive403Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfGetV3FbsOrdersArchive403Response(value: object): value is GetV3FbsOrdersArchive403Response;
|
|
20
60
|
export declare function GetV3FbsOrdersArchive403ResponseFromJSON(json: any): GetV3FbsOrdersArchive403Response;
|
|
21
61
|
export declare function GetV3FbsOrdersArchive403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetV3FbsOrdersArchive403Response;
|
|
22
|
-
export declare function GetV3FbsOrdersArchive403ResponseToJSON(json: any):
|
|
62
|
+
export declare function GetV3FbsOrdersArchive403ResponseToJSON(json: any): GetV3FbsOrdersArchive403Response;
|
|
23
63
|
export declare function GetV3FbsOrdersArchive403ResponseToJSONTyped(value?: GetV3FbsOrdersArchive403Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,12 +13,33 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetV3FbsOrdersArchive403Response = instanceOfGetV3FbsOrdersArchive403Response;
|
|
16
17
|
exports.GetV3FbsOrdersArchive403ResponseFromJSON = GetV3FbsOrdersArchive403ResponseFromJSON;
|
|
17
18
|
exports.GetV3FbsOrdersArchive403ResponseFromJSONTyped = GetV3FbsOrdersArchive403ResponseFromJSONTyped;
|
|
18
19
|
exports.GetV3FbsOrdersArchive403ResponseToJSON = GetV3FbsOrdersArchive403ResponseToJSON;
|
|
19
20
|
exports.GetV3FbsOrdersArchive403ResponseToJSONTyped = GetV3FbsOrdersArchive403ResponseToJSONTyped;
|
|
20
|
-
var
|
|
21
|
-
var
|
|
21
|
+
var runtime_1 = require("../runtime");
|
|
22
|
+
var ArhiveOrderError400ErrorsInner_1 = require("./ArhiveOrderError400ErrorsInner");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetV3FbsOrdersArchive403Response interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetV3FbsOrdersArchive403Response(value) {
|
|
27
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('requestId' in value) || value['requestId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('statusText' in value) || value['statusText'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
22
43
|
function GetV3FbsOrdersArchive403ResponseFromJSON(json) {
|
|
23
44
|
return GetV3FbsOrdersArchive403ResponseFromJSONTyped(json, false);
|
|
24
45
|
}
|
|
@@ -26,16 +47,17 @@ function GetV3FbsOrdersArchive403ResponseFromJSONTyped(json, ignoreDiscriminator
|
|
|
26
47
|
if (json == null) {
|
|
27
48
|
return json;
|
|
28
49
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
50
|
+
return {
|
|
51
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
52
|
+
'detail': json['detail'],
|
|
53
|
+
'errors': json['errors'] == null ? undefined : (json['errors'].map(ArhiveOrderError400ErrorsInner_1.ArhiveOrderError400ErrorsInnerFromJSON)),
|
|
54
|
+
'origin': json['origin'],
|
|
55
|
+
'requestId': json['requestId'],
|
|
56
|
+
'status': json['status'],
|
|
57
|
+
'title': json['title'],
|
|
58
|
+
'statusText': json['statusText'],
|
|
59
|
+
'timestamp': (json['timestamp'] == null ? json['timestamp'] : (0, runtime_1.parseDateTime)(json['timestamp'])),
|
|
60
|
+
};
|
|
39
61
|
}
|
|
40
62
|
function GetV3FbsOrdersArchive403ResponseToJSON(json) {
|
|
41
63
|
return GetV3FbsOrdersArchive403ResponseToJSONTyped(json, false);
|
|
@@ -45,14 +67,15 @@ function GetV3FbsOrdersArchive403ResponseToJSONTyped(value, ignoreDiscriminator)
|
|
|
45
67
|
if (value == null) {
|
|
46
68
|
return value;
|
|
47
69
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
70
|
+
return {
|
|
71
|
+
'code': value['code'],
|
|
72
|
+
'detail': value['detail'],
|
|
73
|
+
'errors': value['errors'] == null ? undefined : (value['errors'].map(ArhiveOrderError400ErrorsInner_1.ArhiveOrderError400ErrorsInnerToJSON)),
|
|
74
|
+
'origin': value['origin'],
|
|
75
|
+
'requestId': value['requestId'],
|
|
76
|
+
'status': value['status'],
|
|
77
|
+
'title': value['title'],
|
|
78
|
+
'statusText': value['statusText'],
|
|
79
|
+
'timestamp': value['timestamp'] == null ? value['timestamp'] : (0, runtime_1.serializeDateTime)(value['timestamp']),
|
|
80
|
+
};
|
|
58
81
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Поставки FBW
|
|
3
|
+
* <div class=\"description_important\"> Узнать больше о поставках FBW можно в <a href=\"https://seller.wildberries.ru/instructions/subcategory/5a8e1202-0865-45b7-acae-5d0afc7add56?goBackOption=prevRoute&categoryId=479385c6-de01-4b4d-ad4e-ed941e65582e\">справочном центре</a> </div> <div class=\"api-block\"> В разделе описаны методы получения: - [информации для формирования поставок](/openapi/orders-fbw#tag/informationForFormingSupplies) - [информации о поставках](/openapi/orders-fbw#tag/suppliesInformation) </div>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: ordersfbw
|
|
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 GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response
|
|
16
|
+
*/
|
|
17
|
+
export interface GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response {
|
|
18
|
+
/**
|
|
19
|
+
* Краткое описание ошибки
|
|
20
|
+
*/
|
|
21
|
+
title: string;
|
|
22
|
+
/**
|
|
23
|
+
* Подробное описание ошибки
|
|
24
|
+
*/
|
|
25
|
+
detail: string;
|
|
26
|
+
/**
|
|
27
|
+
* Внутренний код ошибки
|
|
28
|
+
*/
|
|
29
|
+
code?: string;
|
|
30
|
+
/**
|
|
31
|
+
* ID запроса
|
|
32
|
+
*/
|
|
33
|
+
requestId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Сервис, в котором произошла ошибка
|
|
36
|
+
*/
|
|
37
|
+
origin: string;
|
|
38
|
+
/**
|
|
39
|
+
* HTTP-статус код
|
|
40
|
+
*/
|
|
41
|
+
status: number;
|
|
42
|
+
/**
|
|
43
|
+
* Расшифровка HTTP статус-кода
|
|
44
|
+
*/
|
|
45
|
+
statusText: string;
|
|
46
|
+
/**
|
|
47
|
+
* Дата и время запроса
|
|
48
|
+
*/
|
|
49
|
+
timestamp: Date;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfGetV1SuppliesSupplyIdDiscrepanciesQuantity403Response(value: object): value is GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response;
|
|
55
|
+
export declare function GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSON(json: any): GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response;
|
|
56
|
+
export declare function GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response;
|
|
57
|
+
export declare function GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSON(json: any): GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response;
|
|
58
|
+
export declare function GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSONTyped(value?: GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Поставки FBW
|
|
6
|
+
* <div class=\"description_important\"> Узнать больше о поставках FBW можно в <a href=\"https://seller.wildberries.ru/instructions/subcategory/5a8e1202-0865-45b7-acae-5d0afc7add56?goBackOption=prevRoute&categoryId=479385c6-de01-4b4d-ad4e-ed941e65582e\">справочном центре</a> </div> <div class=\"api-block\"> В разделе описаны методы получения: - [информации для формирования поставок](/openapi/orders-fbw#tag/informationForFormingSupplies) - [информации о поставках](/openapi/orders-fbw#tag/suppliesInformation) </div>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: ordersfbw
|
|
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.instanceOfGetV1SuppliesSupplyIdDiscrepanciesQuantity403Response = instanceOfGetV1SuppliesSupplyIdDiscrepanciesQuantity403Response;
|
|
17
|
+
exports.GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSON = GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSON;
|
|
18
|
+
exports.GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSONTyped = GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSONTyped;
|
|
19
|
+
exports.GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSON = GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSON;
|
|
20
|
+
exports.GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSONTyped = GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSONTyped;
|
|
21
|
+
var runtime_1 = require("../runtime");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetV1SuppliesSupplyIdDiscrepanciesQuantity403Response(value) {
|
|
26
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('requestId' in value) || value['requestId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('statusText' in value) || value['statusText'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSON(json) {
|
|
43
|
+
return GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'title': json['title'],
|
|
51
|
+
'detail': json['detail'],
|
|
52
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
53
|
+
'requestId': json['requestId'],
|
|
54
|
+
'origin': json['origin'],
|
|
55
|
+
'status': json['status'],
|
|
56
|
+
'statusText': json['statusText'],
|
|
57
|
+
'timestamp': (json['timestamp'] == null ? json['timestamp'] : (0, runtime_1.parseDateTime)(json['timestamp'])),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSON(json) {
|
|
61
|
+
return GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function GetV1SuppliesSupplyIdDiscrepanciesQuantity403ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'title': value['title'],
|
|
70
|
+
'detail': value['detail'],
|
|
71
|
+
'code': value['code'],
|
|
72
|
+
'requestId': value['requestId'],
|
|
73
|
+
'origin': value['origin'],
|
|
74
|
+
'status': value['status'],
|
|
75
|
+
'statusText': value['statusText'],
|
|
76
|
+
'timestamp': value['timestamp'] == null ? value['timestamp'] : (0, runtime_1.serializeDateTime)(value['timestamp']),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./ErrorsDraftError"), exports);
|
|
20
|
+
__exportStar(require("./GetV1SuppliesSupplyIdDiscrepanciesQuantity403Response"), exports);
|
|
20
21
|
__exportStar(require("./ModelsBox"), exports);
|
|
21
22
|
__exportStar(require("./ModelsDateFilterRequest"), exports);
|
|
22
23
|
__exportStar(require("./ModelsDiscrepancyResponseItem"), exports);
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Timestamps } from './Timestamps';
|
|
13
12
|
import type { AdvertNMsSettings } from './AdvertNMsSettings';
|
|
14
13
|
import type { GetAdvertsAdvertsInnerRestrictions } from './GetAdvertsAdvertsInnerRestrictions';
|
|
15
14
|
import type { AdvertSettings } from './AdvertSettings';
|
|
15
|
+
import type { TimestampsV2 } from './TimestampsV2';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -60,7 +60,7 @@ export interface GetAdvertsAdvertsInner {
|
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
*/
|
|
63
|
-
timestamps:
|
|
63
|
+
timestamps: TimestampsV2;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* @export
|
|
@@ -19,10 +19,10 @@ exports.GetAdvertsAdvertsInnerFromJSON = GetAdvertsAdvertsInnerFromJSON;
|
|
|
19
19
|
exports.GetAdvertsAdvertsInnerFromJSONTyped = GetAdvertsAdvertsInnerFromJSONTyped;
|
|
20
20
|
exports.GetAdvertsAdvertsInnerToJSON = GetAdvertsAdvertsInnerToJSON;
|
|
21
21
|
exports.GetAdvertsAdvertsInnerToJSONTyped = GetAdvertsAdvertsInnerToJSONTyped;
|
|
22
|
-
var Timestamps_1 = require("./Timestamps");
|
|
23
22
|
var AdvertNMsSettings_1 = require("./AdvertNMsSettings");
|
|
24
23
|
var GetAdvertsAdvertsInnerRestrictions_1 = require("./GetAdvertsAdvertsInnerRestrictions");
|
|
25
24
|
var AdvertSettings_1 = require("./AdvertSettings");
|
|
25
|
+
var TimestampsV2_1 = require("./TimestampsV2");
|
|
26
26
|
/**
|
|
27
27
|
* @export
|
|
28
28
|
*/
|
|
@@ -69,7 +69,7 @@ function GetAdvertsAdvertsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
69
|
'settings': (0, AdvertSettings_1.AdvertSettingsFromJSON)(json['settings']),
|
|
70
70
|
'restrictions': (0, GetAdvertsAdvertsInnerRestrictions_1.GetAdvertsAdvertsInnerRestrictionsFromJSON)(json['restrictions']),
|
|
71
71
|
'status': json['status'],
|
|
72
|
-
'timestamps': (0,
|
|
72
|
+
'timestamps': (0, TimestampsV2_1.TimestampsV2FromJSON)(json['timestamps']),
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
function GetAdvertsAdvertsInnerToJSON(json) {
|
|
@@ -88,6 +88,6 @@ function GetAdvertsAdvertsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
88
|
'settings': (0, AdvertSettings_1.AdvertSettingsToJSON)(value['settings']),
|
|
89
89
|
'restrictions': (0, GetAdvertsAdvertsInnerRestrictions_1.GetAdvertsAdvertsInnerRestrictionsToJSON)(value['restrictions']),
|
|
90
90
|
'status': value['status'],
|
|
91
|
-
'timestamps': (0,
|
|
91
|
+
'timestamps': (0, TimestampsV2_1.TimestampsV2ToJSON)(value['timestamps']),
|
|
92
92
|
};
|
|
93
93
|
}
|
|
@@ -9,15 +9,54 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
12
|
+
import type { V0BidRecommendationNormQuery } from './V0BidRecommendationNormQuery';
|
|
13
|
+
import type { V0BidRecommendationBase } from './V0BidRecommendationBase';
|
|
14
|
+
import type { V0BidRecommendationCPCLevels } from './V0BidRecommendationCPCLevels';
|
|
14
15
|
/**
|
|
15
|
-
* @type GetV0BidsRecommendations200Response
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
|
+
* @interface GetV0BidsRecommendations200Response
|
|
18
19
|
*/
|
|
19
|
-
export
|
|
20
|
+
export interface GetV0BidsRecommendations200Response {
|
|
21
|
+
/**
|
|
22
|
+
* ID кампании
|
|
23
|
+
*/
|
|
24
|
+
advertId?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
base?: V0BidRecommendationBase;
|
|
29
|
+
/**
|
|
30
|
+
* Артикул WB
|
|
31
|
+
*/
|
|
32
|
+
nmId?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Рекомендуемые ставки для поисковых кластеров
|
|
35
|
+
*/
|
|
36
|
+
normQueries?: Array<V0BidRecommendationNormQuery>;
|
|
37
|
+
/**
|
|
38
|
+
* Тип оплаты:
|
|
39
|
+
* - `cpc` — за клики
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
paymentType?: GetV0BidsRecommendations200ResponsePaymentTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Рекомендуемые ставки для карточек товаров
|
|
45
|
+
*/
|
|
46
|
+
levels?: Array<V0BidRecommendationCPCLevels>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export declare const GetV0BidsRecommendations200ResponsePaymentTypeEnum: {
|
|
52
|
+
readonly Cpc: "cpc";
|
|
53
|
+
};
|
|
54
|
+
export type GetV0BidsRecommendations200ResponsePaymentTypeEnum = typeof GetV0BidsRecommendations200ResponsePaymentTypeEnum[keyof typeof GetV0BidsRecommendations200ResponsePaymentTypeEnum];
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GetV0BidsRecommendations200Response interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfGetV0BidsRecommendations200Response(value: object): value is GetV0BidsRecommendations200Response;
|
|
20
59
|
export declare function GetV0BidsRecommendations200ResponseFromJSON(json: any): GetV0BidsRecommendations200Response;
|
|
21
60
|
export declare function GetV0BidsRecommendations200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetV0BidsRecommendations200Response;
|
|
22
|
-
export declare function GetV0BidsRecommendations200ResponseToJSON(json: any):
|
|
61
|
+
export declare function GetV0BidsRecommendations200ResponseToJSON(json: any): GetV0BidsRecommendations200Response;
|
|
23
62
|
export declare function GetV0BidsRecommendations200ResponseToJSONTyped(value?: GetV0BidsRecommendations200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,12 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetV0BidsRecommendations200ResponsePaymentTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfGetV0BidsRecommendations200Response = instanceOfGetV0BidsRecommendations200Response;
|
|
16
18
|
exports.GetV0BidsRecommendations200ResponseFromJSON = GetV0BidsRecommendations200ResponseFromJSON;
|
|
17
19
|
exports.GetV0BidsRecommendations200ResponseFromJSONTyped = GetV0BidsRecommendations200ResponseFromJSONTyped;
|
|
18
20
|
exports.GetV0BidsRecommendations200ResponseToJSON = GetV0BidsRecommendations200ResponseToJSON;
|
|
19
21
|
exports.GetV0BidsRecommendations200ResponseToJSONTyped = GetV0BidsRecommendations200ResponseToJSONTyped;
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
+
var V0BidRecommendationNormQuery_1 = require("./V0BidRecommendationNormQuery");
|
|
23
|
+
var V0BidRecommendationBase_1 = require("./V0BidRecommendationBase");
|
|
24
|
+
var V0BidRecommendationCPCLevels_1 = require("./V0BidRecommendationCPCLevels");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.GetV0BidsRecommendations200ResponsePaymentTypeEnum = {
|
|
29
|
+
Cpc: 'cpc',
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetV0BidsRecommendations200Response interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfGetV0BidsRecommendations200Response(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
22
37
|
function GetV0BidsRecommendations200ResponseFromJSON(json) {
|
|
23
38
|
return GetV0BidsRecommendations200ResponseFromJSONTyped(json, false);
|
|
24
39
|
}
|
|
@@ -26,16 +41,14 @@ function GetV0BidsRecommendations200ResponseFromJSONTyped(json, ignoreDiscrimina
|
|
|
26
41
|
if (json == null) {
|
|
27
42
|
return json;
|
|
28
43
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
return {};
|
|
44
|
+
return {
|
|
45
|
+
'advertId': json['advertId'] == null ? undefined : json['advertId'],
|
|
46
|
+
'base': json['base'] == null ? undefined : (0, V0BidRecommendationBase_1.V0BidRecommendationBaseFromJSON)(json['base']),
|
|
47
|
+
'nmId': json['nmId'] == null ? undefined : json['nmId'],
|
|
48
|
+
'normQueries': json['normQueries'] == null ? undefined : (json['normQueries'].map(V0BidRecommendationNormQuery_1.V0BidRecommendationNormQueryFromJSON)),
|
|
49
|
+
'paymentType': json['paymentType'] == null ? undefined : json['paymentType'],
|
|
50
|
+
'levels': json['levels'] == null ? undefined : (json['levels'].map(V0BidRecommendationCPCLevels_1.V0BidRecommendationCPCLevelsFromJSON)),
|
|
51
|
+
};
|
|
39
52
|
}
|
|
40
53
|
function GetV0BidsRecommendations200ResponseToJSON(json) {
|
|
41
54
|
return GetV0BidsRecommendations200ResponseToJSONTyped(json, false);
|
|
@@ -45,14 +58,12 @@ function GetV0BidsRecommendations200ResponseToJSONTyped(value, ignoreDiscriminat
|
|
|
45
58
|
if (value == null) {
|
|
46
59
|
return value;
|
|
47
60
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
return {};
|
|
61
|
+
return {
|
|
62
|
+
'advertId': value['advertId'],
|
|
63
|
+
'base': (0, V0BidRecommendationBase_1.V0BidRecommendationBaseToJSON)(value['base']),
|
|
64
|
+
'nmId': value['nmId'],
|
|
65
|
+
'normQueries': value['normQueries'] == null ? undefined : (value['normQueries'].map(V0BidRecommendationNormQuery_1.V0BidRecommendationNormQueryToJSON)),
|
|
66
|
+
'paymentType': value['paymentType'],
|
|
67
|
+
'levels': value['levels'] == null ? undefined : (value['levels'].map(V0BidRecommendationCPCLevels_1.V0BidRecommendationCPCLevelsToJSON)),
|
|
68
|
+
};
|
|
58
69
|
}
|
|
@@ -29,6 +29,8 @@ function instanceOfTimestamps(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('started' in value) || value['started'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('ended' in value) || value['ended'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
return true;
|
|
33
35
|
}
|
|
34
36
|
function TimestampsFromJSON(json) {
|
|
@@ -42,6 +44,7 @@ function TimestampsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
'created': (json['created'] == null ? json['created'] : (0, runtime_1.parseDateTime)(json['created'])),
|
|
43
45
|
'updated': (json['updated'] == null ? json['updated'] : (0, runtime_1.parseDateTime)(json['updated'])),
|
|
44
46
|
'started': (json['started'] == null ? null : (0, runtime_1.parseDateTime)(json['started'])),
|
|
47
|
+
'ended': (json['ended'] == null ? null : (0, runtime_1.parseDateTime)(json['ended'])),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
function TimestampsToJSON(json) {
|
|
@@ -56,5 +59,6 @@ function TimestampsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
56
59
|
'created': value['created'] == null ? value['created'] : (0, runtime_1.serializeDateTime)(value['created']),
|
|
57
60
|
'updated': value['updated'] == null ? value['updated'] : (0, runtime_1.serializeDateTime)(value['updated']),
|
|
58
61
|
'started': value['started'] == null ? value['started'] : (0, runtime_1.serializeDateTime)(value['started']),
|
|
62
|
+
'ended': value['ended'] == null ? value['ended'] : (0, runtime_1.serializeDateTime)(value['ended']),
|
|
59
63
|
};
|
|
60
64
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Маркетинг и продвижение
|
|
3
|
+
* <div class=\"description_important\"> Узнать больше о маркетинге и продвижении можно в <a href=\"https://seller.wildberries.ru/instructions/category/59d92bd3-6ea0-40f2-b762-ca8835d7d42e?goBackOption=prevRoute&categoryId=479385c6-de01-4b4d-ad4e-ed941e65582e\">справочном центре</a> </div> <div class=\"api-block\"> Методы маркетинга и продвижения позволяют: 1. Получать информацию о кампаниях [продвижения](/openapi/promotion#tag/campaigns) и [медиакампаниях](/openapi/promotion#tag/media) 2. [Создавать](/openapi/promotion#tag/creatingCampaigns) и [управлять](/openapi/promotion#tag/campaignManagement) кампаниями 3. Управлять [финансами](/openapi/promotion#tag/finances) кампаний 4. Выгружать [статистику](/openapi/promotion#tag/statistics) кампаний продвижения и медиакампаний 5. Работать с [календарём акций](/openapi/promotion#tag/promoCalendar) Данные синхронизируются с базой раз в 3 минуты. Статусы кампаний меняются раз в минуту. Ставки кампаний меняются раз в 30 секунд.<br><br> </div>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: promotion
|
|
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 TimestampsV2
|
|
16
|
+
*/
|
|
17
|
+
export interface TimestampsV2 {
|
|
18
|
+
/**
|
|
19
|
+
* Время создания кампании
|
|
20
|
+
*/
|
|
21
|
+
created: Date;
|
|
22
|
+
/**
|
|
23
|
+
* Время последнего изменения кампании
|
|
24
|
+
*/
|
|
25
|
+
updated: Date;
|
|
26
|
+
/**
|
|
27
|
+
* Время последнего запуска кампании
|
|
28
|
+
*/
|
|
29
|
+
started: Date | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the TimestampsV2 interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfTimestampsV2(value: object): value is TimestampsV2;
|
|
35
|
+
export declare function TimestampsV2FromJSON(json: any): TimestampsV2;
|
|
36
|
+
export declare function TimestampsV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TimestampsV2;
|
|
37
|
+
export declare function TimestampsV2ToJSON(json: any): TimestampsV2;
|
|
38
|
+
export declare function TimestampsV2ToJSONTyped(value?: TimestampsV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Маркетинг и продвижение
|
|
6
|
+
* <div class=\"description_important\"> Узнать больше о маркетинге и продвижении можно в <a href=\"https://seller.wildberries.ru/instructions/category/59d92bd3-6ea0-40f2-b762-ca8835d7d42e?goBackOption=prevRoute&categoryId=479385c6-de01-4b4d-ad4e-ed941e65582e\">справочном центре</a> </div> <div class=\"api-block\"> Методы маркетинга и продвижения позволяют: 1. Получать информацию о кампаниях [продвижения](/openapi/promotion#tag/campaigns) и [медиакампаниях](/openapi/promotion#tag/media) 2. [Создавать](/openapi/promotion#tag/creatingCampaigns) и [управлять](/openapi/promotion#tag/campaignManagement) кампаниями 3. Управлять [финансами](/openapi/promotion#tag/finances) кампаний 4. Выгружать [статистику](/openapi/promotion#tag/statistics) кампаний продвижения и медиакампаний 5. Работать с [календарём акций](/openapi/promotion#tag/promoCalendar) Данные синхронизируются с базой раз в 3 минуты. Статусы кампаний меняются раз в минуту. Ставки кампаний меняются раз в 30 секунд.<br><br> </div>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: promotion
|
|
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.instanceOfTimestampsV2 = instanceOfTimestampsV2;
|
|
17
|
+
exports.TimestampsV2FromJSON = TimestampsV2FromJSON;
|
|
18
|
+
exports.TimestampsV2FromJSONTyped = TimestampsV2FromJSONTyped;
|
|
19
|
+
exports.TimestampsV2ToJSON = TimestampsV2ToJSON;
|
|
20
|
+
exports.TimestampsV2ToJSONTyped = TimestampsV2ToJSONTyped;
|
|
21
|
+
var runtime_1 = require("../runtime");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TimestampsV2 interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTimestampsV2(value) {
|
|
26
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('updated' in value) || value['updated'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('started' in value) || value['started'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function TimestampsV2FromJSON(json) {
|
|
35
|
+
return TimestampsV2FromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function TimestampsV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'created': (json['created'] == null ? json['created'] : (0, runtime_1.parseDateTime)(json['created'])),
|
|
43
|
+
'updated': (json['updated'] == null ? json['updated'] : (0, runtime_1.parseDateTime)(json['updated'])),
|
|
44
|
+
'started': (json['started'] == null ? null : (0, runtime_1.parseDateTime)(json['started'])),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function TimestampsV2ToJSON(json) {
|
|
48
|
+
return TimestampsV2ToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TimestampsV2ToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'created': value['created'] == null ? value['created'] : (0, runtime_1.serializeDateTime)(value['created']),
|
|
57
|
+
'updated': value['updated'] == null ? value['updated'] : (0, runtime_1.serializeDateTime)(value['updated']),
|
|
58
|
+
'started': value['started'] == null ? value['started'] : (0, runtime_1.serializeDateTime)(value['started']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -102,6 +102,7 @@ export * from './Stats2Inner';
|
|
|
102
102
|
export * from './StatsBlok1';
|
|
103
103
|
export * from './StatsBlok2';
|
|
104
104
|
export * from './Timestamps';
|
|
105
|
+
export * from './TimestampsV2';
|
|
105
106
|
export * from './V0BidRecommendationBase';
|
|
106
107
|
export * from './V0BidRecommendationBaseBid';
|
|
107
108
|
export * from './V0BidRecommendationBaseBidCompetitiveBid';
|
|
@@ -120,6 +120,7 @@ __exportStar(require("./Stats2Inner"), exports);
|
|
|
120
120
|
__exportStar(require("./StatsBlok1"), exports);
|
|
121
121
|
__exportStar(require("./StatsBlok2"), exports);
|
|
122
122
|
__exportStar(require("./Timestamps"), exports);
|
|
123
|
+
__exportStar(require("./TimestampsV2"), exports);
|
|
123
124
|
__exportStar(require("./V0BidRecommendationBase"), exports);
|
|
124
125
|
__exportStar(require("./V0BidRecommendationBaseBid"), exports);
|
|
125
126
|
__exportStar(require("./V0BidRecommendationBaseBidCompetitiveBid"), exports);
|