ozon-api 0.0.2 → 0.0.3
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,6 +1,6 @@
|
|
|
1
1
|
declare class CategoryClass {
|
|
2
2
|
private apiKeyInfo;
|
|
3
|
-
constructor(
|
|
3
|
+
constructor(apiId: string, apiKey: string);
|
|
4
4
|
attribute(description_category_id: number, type_id: number, language?: Global.ApiLanguage): Promise<Category.Attribute[]>;
|
|
5
5
|
attributeValue(description_category_id: number, type_id: number, attribute_id: number, language?: Global.ApiLanguage): Promise<Category.AttributeValue[]>;
|
|
6
6
|
}
|
|
@@ -10,14 +10,17 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
10
10
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
11
|
import * as CategoryController from "../../service/api/CategoryController";
|
|
12
12
|
var CategoryClass = /*#__PURE__*/function () {
|
|
13
|
-
function CategoryClass(
|
|
13
|
+
function CategoryClass(apiId, apiKey) {
|
|
14
14
|
_classCallCheck(this, CategoryClass);
|
|
15
15
|
_defineProperty(this, "apiKeyInfo", {
|
|
16
16
|
apiId: '',
|
|
17
17
|
apiKey: ''
|
|
18
18
|
});
|
|
19
|
-
this.apiKeyInfo =
|
|
20
|
-
|
|
19
|
+
this.apiKeyInfo = {
|
|
20
|
+
apiId: apiId,
|
|
21
|
+
apiKey: apiKey
|
|
22
|
+
};
|
|
23
|
+
console.log('categoryClass constructor:', this.apiKeyInfo);
|
|
21
24
|
}
|
|
22
25
|
// 类别特征列表
|
|
23
26
|
// https://api-seller.ozon.ru/v1/description-category/attribute
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare class ProductClass {
|
|
2
2
|
private apiKeyInfo;
|
|
3
|
-
constructor(
|
|
3
|
+
constructor(apiId: string, apiKey: string);
|
|
4
4
|
importBySku(query: Product.ImportBySkuQuery): Promise<Product.ImportBySkuResult>;
|
|
5
5
|
checkImportInfo(taskId: number): Promise<Product.CheckImportInfoResult>;
|
|
6
6
|
getListOfProducts(filter: Product.GetListOfProductsQueryFilter): Promise<Product.CheckImportInfoResult>;
|
|
@@ -10,14 +10,17 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
10
10
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
11
|
import * as ProductController from "../../service/api/ProductController";
|
|
12
12
|
var ProductClass = /*#__PURE__*/function () {
|
|
13
|
-
function ProductClass(
|
|
13
|
+
function ProductClass(apiId, apiKey) {
|
|
14
14
|
_classCallCheck(this, ProductClass);
|
|
15
15
|
_defineProperty(this, "apiKeyInfo", {
|
|
16
16
|
apiId: '',
|
|
17
17
|
apiKey: ''
|
|
18
18
|
});
|
|
19
|
-
this.apiKeyInfo =
|
|
20
|
-
|
|
19
|
+
this.apiKeyInfo = {
|
|
20
|
+
apiId: apiId,
|
|
21
|
+
apiKey: apiKey
|
|
22
|
+
};
|
|
23
|
+
console.log('Product constructor:', this.apiKeyInfo);
|
|
21
24
|
}
|
|
22
25
|
// https://api-seller.ozon.ru/v1/product/import-by-sku
|
|
23
26
|
_createClass(ProductClass, [{
|