ozon-api 0.0.10 → 0.0.12
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
var getApiQueryLanguage = function getApiQueryLanguage(
|
|
2
|
-
var
|
|
1
|
+
var getApiQueryLanguage = function getApiQueryLanguage() {
|
|
2
|
+
var _ref;
|
|
3
|
+
var language = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
3
4
|
// @ts-ignore
|
|
4
|
-
var lang = ((language === null ||
|
|
5
|
+
var lang = (((_ref = language || '') === null || _ref === void 0 || (_ref = _ref.split(/[-_]/)) === null || _ref === void 0 ? void 0 : _ref[0]) || '').toLocaleUpperCase();
|
|
5
6
|
var Dict = {
|
|
6
7
|
ZH: 'ZH_HANS'
|
|
7
8
|
};
|
|
@@ -3,7 +3,7 @@ declare class CategoryClass {
|
|
|
3
3
|
private readonly apiKeyInfo;
|
|
4
4
|
constructor(apiId: string, apiKey: string);
|
|
5
5
|
attribute(description_category_id: number, type_id: number, lang?: Global.ApiLanguage | string): Promise<Category.Attribute[]>;
|
|
6
|
-
attributeValue(
|
|
6
|
+
attributeValue(query: Category.AttributeValueApiQuery): Promise<Category.AttributeValueApi>;
|
|
7
7
|
attributeValueSearch(description_category_id: number, type_id: number, attribute_id: number, value: string): Promise<Category.AttributeValue[]>;
|
|
8
8
|
}
|
|
9
9
|
export default CategoryClass;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
4
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
5
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
6
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -106,38 +108,31 @@ var CategoryClass = /*#__PURE__*/function () {
|
|
|
106
108
|
}, {
|
|
107
109
|
key: "attributeValue",
|
|
108
110
|
value: function () {
|
|
109
|
-
var _attributeValue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(
|
|
111
|
+
var _attributeValue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(query) {
|
|
110
112
|
var _this2 = this;
|
|
111
|
-
var
|
|
112
|
-
limit,
|
|
113
|
-
last_value_id,
|
|
114
|
-
language,
|
|
115
|
-
_args4 = arguments;
|
|
113
|
+
var language;
|
|
116
114
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
117
115
|
while (1) switch (_context4.prev = _context4.next) {
|
|
118
116
|
case 0:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
last_value_id = _args4.length > 5 && _args4[5] !== undefined ? _args4[5] : 0;
|
|
122
|
-
if (description_category_id) {
|
|
123
|
-
_context4.next = 5;
|
|
117
|
+
if (query !== null && query !== void 0 && query.description_category_id) {
|
|
118
|
+
_context4.next = 2;
|
|
124
119
|
break;
|
|
125
120
|
}
|
|
126
|
-
return _context4.abrupt("return", Promise.reject(new Error('请输入
|
|
127
|
-
case
|
|
128
|
-
if (type_id) {
|
|
129
|
-
_context4.next =
|
|
121
|
+
return _context4.abrupt("return", Promise.reject(new Error('请输入 description_category_id')));
|
|
122
|
+
case 2:
|
|
123
|
+
if (query !== null && query !== void 0 && query.type_id) {
|
|
124
|
+
_context4.next = 4;
|
|
130
125
|
break;
|
|
131
126
|
}
|
|
132
|
-
return _context4.abrupt("return", Promise.reject(new Error('请输入
|
|
133
|
-
case
|
|
134
|
-
if (attribute_id) {
|
|
135
|
-
_context4.next =
|
|
127
|
+
return _context4.abrupt("return", Promise.reject(new Error('请输入 type_id')));
|
|
128
|
+
case 4:
|
|
129
|
+
if (query !== null && query !== void 0 && query.attribute_id) {
|
|
130
|
+
_context4.next = 6;
|
|
136
131
|
break;
|
|
137
132
|
}
|
|
138
133
|
return _context4.abrupt("return", Promise.reject(new Error('请输入 attribute_id')));
|
|
139
|
-
case
|
|
140
|
-
language = getApiQueryLanguage(
|
|
134
|
+
case 6:
|
|
135
|
+
language = getApiQueryLanguage(query === null || query === void 0 ? void 0 : query.language);
|
|
141
136
|
return _context4.abrupt("return", new Promise( /*#__PURE__*/function () {
|
|
142
137
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolve, reject) {
|
|
143
138
|
var attributeResult;
|
|
@@ -145,15 +140,9 @@ var CategoryClass = /*#__PURE__*/function () {
|
|
|
145
140
|
while (1) switch (_context3.prev = _context3.next) {
|
|
146
141
|
case 0:
|
|
147
142
|
_context3.next = 2;
|
|
148
|
-
return CategoryController.attributeValue({
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
attribute_id: attribute_id,
|
|
152
|
-
language: language,
|
|
153
|
-
limit: limit,
|
|
154
|
-
// 2000,
|
|
155
|
-
last_value_id: last_value_id
|
|
156
|
-
}, {
|
|
143
|
+
return CategoryController.attributeValue(_objectSpread(_objectSpread({}, query), {}, {
|
|
144
|
+
language: language
|
|
145
|
+
}), {
|
|
157
146
|
apiKey: _this2.apiKeyInfo.apiKey,
|
|
158
147
|
apiId: _this2.apiKeyInfo.apiId
|
|
159
148
|
}).catch(function (err) {
|
|
@@ -180,17 +169,17 @@ var CategoryClass = /*#__PURE__*/function () {
|
|
|
180
169
|
}
|
|
181
170
|
}, _callee3);
|
|
182
171
|
}));
|
|
183
|
-
return function (
|
|
172
|
+
return function (_x6, _x7) {
|
|
184
173
|
return _ref2.apply(this, arguments);
|
|
185
174
|
};
|
|
186
175
|
}()));
|
|
187
|
-
case
|
|
176
|
+
case 8:
|
|
188
177
|
case "end":
|
|
189
178
|
return _context4.stop();
|
|
190
179
|
}
|
|
191
180
|
}, _callee4);
|
|
192
181
|
}));
|
|
193
|
-
function attributeValue(_x5
|
|
182
|
+
function attributeValue(_x5) {
|
|
194
183
|
return _attributeValue.apply(this, arguments);
|
|
195
184
|
}
|
|
196
185
|
return attributeValue;
|
|
@@ -267,7 +256,7 @@ var CategoryClass = /*#__PURE__*/function () {
|
|
|
267
256
|
}
|
|
268
257
|
}, _callee5);
|
|
269
258
|
}));
|
|
270
|
-
return function (
|
|
259
|
+
return function (_x12, _x13) {
|
|
271
260
|
return _ref3.apply(this, arguments);
|
|
272
261
|
};
|
|
273
262
|
}()));
|
|
@@ -277,7 +266,7 @@ var CategoryClass = /*#__PURE__*/function () {
|
|
|
277
266
|
}
|
|
278
267
|
}, _callee6);
|
|
279
268
|
}));
|
|
280
|
-
function attributeValueSearch(
|
|
269
|
+
function attributeValueSearch(_x8, _x9, _x10, _x11) {
|
|
281
270
|
return _attributeValueSearch.apply(this, arguments);
|
|
282
271
|
}
|
|
283
272
|
return attributeValueSearch;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Category } from "../../types/Category";
|
|
2
2
|
export declare function attribute(body: Category.AttributeQuery, options?: Global.RequestOptions): Promise<Category.AttributeApi>;
|
|
3
|
-
export declare function attributeValue(body: Category.
|
|
3
|
+
export declare function attributeValue(body: Category.AttributeValueApiQuery, options?: Global.RequestOptions): Promise<Category.AttributeValueApi>;
|
|
4
4
|
export declare function attributeValueSearch(body: Category.AttributeValueSearchQuery, options?: Global.RequestOptions): Promise<Category.AttributeValueSearchApi>;
|
package/dist/types/Category.d.ts
CHANGED
|
@@ -26,13 +26,13 @@ export declare namespace Category {
|
|
|
26
26
|
success?: boolean;
|
|
27
27
|
message?: string;
|
|
28
28
|
}
|
|
29
|
-
interface
|
|
29
|
+
interface AttributeValueApiQuery {
|
|
30
30
|
description_category_id: number;
|
|
31
31
|
type_id: number;
|
|
32
32
|
attribute_id: number;
|
|
33
33
|
limit: number;
|
|
34
34
|
last_value_id: number;
|
|
35
|
-
language: Global.ApiLanguage;
|
|
35
|
+
language: Global.ApiLanguage | string;
|
|
36
36
|
}
|
|
37
37
|
interface AttributeValueApi {
|
|
38
38
|
has_next: boolean;
|
package/dist/types/Product.d.ts
CHANGED
|
@@ -57,130 +57,131 @@ export declare namespace Product {
|
|
|
57
57
|
sku: number[];
|
|
58
58
|
}
|
|
59
59
|
interface GetPlatformProductDetailList {
|
|
60
|
-
"items":
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
}[];
|
|
69
|
-
"sku": number;
|
|
70
|
-
"source": string;
|
|
71
|
-
}[];
|
|
72
|
-
"barcodes": string[];
|
|
73
|
-
"color_image": string[];
|
|
74
|
-
"commissions": {
|
|
75
|
-
"delivery_amount": number;
|
|
76
|
-
"percent": number;
|
|
77
|
-
"return_amount": number;
|
|
78
|
-
"sale_schema": string;
|
|
79
|
-
"value": number;
|
|
80
|
-
}[];
|
|
81
|
-
"created_at": string;
|
|
82
|
-
"currency_code": string;
|
|
83
|
-
"description_category_id": number;
|
|
84
|
-
"discounted_fbo_stocks": number;
|
|
85
|
-
"errors": {
|
|
86
|
-
"attribute_id": 0;
|
|
87
|
-
"code": string;
|
|
88
|
-
"field": string;
|
|
89
|
-
"level": "ERROR_LEVEL_UNSPECIFIED";
|
|
90
|
-
"state": string;
|
|
91
|
-
"texts": {
|
|
92
|
-
"attribute_name": string;
|
|
93
|
-
"description": string;
|
|
94
|
-
"hint_code": string;
|
|
95
|
-
"message": string;
|
|
96
|
-
"params": [
|
|
97
|
-
{
|
|
98
|
-
"name": string;
|
|
99
|
-
"value": string;
|
|
100
|
-
}
|
|
101
|
-
];
|
|
102
|
-
"short_description": string;
|
|
60
|
+
"items": GetPlatformProductDetailListItems[];
|
|
61
|
+
}
|
|
62
|
+
interface GetPlatformProductDetailListItems {
|
|
63
|
+
"availabilities": {
|
|
64
|
+
"availability": string;
|
|
65
|
+
"reasons": {
|
|
66
|
+
"human_text": {
|
|
67
|
+
"text": string;
|
|
103
68
|
};
|
|
69
|
+
"id": number;
|
|
104
70
|
}[];
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
71
|
+
"sku": number;
|
|
72
|
+
"source": string;
|
|
73
|
+
}[];
|
|
74
|
+
"barcodes": string[];
|
|
75
|
+
"color_image": string[];
|
|
76
|
+
"commissions": {
|
|
77
|
+
"delivery_amount": number;
|
|
78
|
+
"percent": number;
|
|
79
|
+
"return_amount": number;
|
|
80
|
+
"sale_schema": string;
|
|
81
|
+
"value": number;
|
|
82
|
+
}[];
|
|
83
|
+
"created_at": string;
|
|
84
|
+
"currency_code": string;
|
|
85
|
+
"description_category_id": number;
|
|
86
|
+
"discounted_fbo_stocks": number;
|
|
87
|
+
"errors": {
|
|
88
|
+
"attribute_id": 0;
|
|
89
|
+
"code": string;
|
|
90
|
+
"field": string;
|
|
91
|
+
"level": "ERROR_LEVEL_UNSPECIFIED";
|
|
92
|
+
"state": string;
|
|
93
|
+
"texts": {
|
|
94
|
+
"attribute_name": string;
|
|
95
|
+
"description": string;
|
|
96
|
+
"hint_code": string;
|
|
97
|
+
"message": string;
|
|
98
|
+
"params": [
|
|
99
|
+
{
|
|
100
|
+
"name": string;
|
|
101
|
+
"value": string;
|
|
102
|
+
}
|
|
103
|
+
];
|
|
104
|
+
"short_description": string;
|
|
119
105
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
106
|
+
}[];
|
|
107
|
+
"has_discounted_fbo_item": boolean;
|
|
108
|
+
"id": number;
|
|
109
|
+
"images": string[];
|
|
110
|
+
"images360": string[];
|
|
111
|
+
"is_archived": boolean;
|
|
112
|
+
"is_autoarchived": boolean;
|
|
113
|
+
"is_discounted": boolean;
|
|
114
|
+
"is_kgt": boolean;
|
|
115
|
+
"is_prepayment_allowed": boolean;
|
|
116
|
+
"is_super": boolean;
|
|
117
|
+
"min_price": string;
|
|
118
|
+
"model_info": {
|
|
119
|
+
"count": number;
|
|
120
|
+
"model_id": number;
|
|
121
|
+
};
|
|
122
|
+
"name": string;
|
|
123
|
+
"offer_id": string;
|
|
124
|
+
"old_price": string;
|
|
125
|
+
"price": string;
|
|
126
|
+
"price_indexes": {
|
|
127
|
+
"color_index": "COLOR_INDEX_UNSPECIFIED";
|
|
128
|
+
"external_index_data": {
|
|
129
|
+
"minimal_price": string;
|
|
130
|
+
"minimal_price_currency": string;
|
|
131
|
+
"price_index_value": 0;
|
|
141
132
|
};
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
}
|
|
133
|
+
"ozon_index_data": {
|
|
134
|
+
"minimal_price": string;
|
|
135
|
+
"minimal_price_currency": string;
|
|
136
|
+
"price_index_value": number;
|
|
137
|
+
};
|
|
138
|
+
"self_marketplaces_index_data": {
|
|
139
|
+
"minimal_price": string;
|
|
140
|
+
"minimal_price_currency": string;
|
|
141
|
+
"price_index_value": number;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
"primary_image": string[];
|
|
145
|
+
"promotions": {
|
|
146
|
+
"is_enabled": boolean;
|
|
147
|
+
"type": "UNSPECIFIED";
|
|
148
|
+
}[];
|
|
149
|
+
"sku": number;
|
|
150
|
+
"sources": {
|
|
151
|
+
"created_at": string;
|
|
152
|
+
"quant_code": string;
|
|
153
|
+
"shipment_type": "SHIPMENT_TYPE_UNSPECIFIED";
|
|
147
154
|
"sku": number;
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
155
|
+
"source": string;
|
|
156
|
+
}[];
|
|
157
|
+
"statuses": {
|
|
158
|
+
"is_created": boolean;
|
|
159
|
+
"moderate_status": string;
|
|
160
|
+
"status": string;
|
|
161
|
+
"status_description": string;
|
|
162
|
+
"status_failed": string;
|
|
163
|
+
"status_name": string;
|
|
164
|
+
"status_tooltip": string;
|
|
165
|
+
"status_updated_at": string;
|
|
166
|
+
"validation_status": string;
|
|
167
|
+
};
|
|
168
|
+
"stocks": {
|
|
169
|
+
"has_stock": boolean;
|
|
170
|
+
"stocks": {
|
|
171
|
+
"present": number;
|
|
172
|
+
"reserved": number;
|
|
152
173
|
"sku": number;
|
|
153
174
|
"source": string;
|
|
154
175
|
}[];
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"validation_status": string;
|
|
165
|
-
};
|
|
166
|
-
"stocks": {
|
|
167
|
-
"has_stock": boolean;
|
|
168
|
-
"stocks": {
|
|
169
|
-
"present": number;
|
|
170
|
-
"reserved": number;
|
|
171
|
-
"sku": number;
|
|
172
|
-
"source": string;
|
|
173
|
-
}[];
|
|
174
|
-
};
|
|
175
|
-
"type_id": number;
|
|
176
|
-
"updated_at": string;
|
|
177
|
-
"vat": string;
|
|
178
|
-
"visibility_details": {
|
|
179
|
-
"has_price": boolean;
|
|
180
|
-
"has_stock": boolean;
|
|
181
|
-
};
|
|
182
|
-
"volume_weight": number;
|
|
183
|
-
}[];
|
|
176
|
+
};
|
|
177
|
+
"type_id": number;
|
|
178
|
+
"updated_at": string;
|
|
179
|
+
"vat": string;
|
|
180
|
+
"visibility_details": {
|
|
181
|
+
"has_price": boolean;
|
|
182
|
+
"has_stock": boolean;
|
|
183
|
+
};
|
|
184
|
+
"volume_weight": number;
|
|
184
185
|
}
|
|
185
186
|
interface ProductImportQuery {
|
|
186
187
|
items: ProductImportQueryItems[];
|