ozon-api 0.0.3 → 0.0.6

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,5 +1,5 @@
1
1
  declare class CategoryClass {
2
- private apiKeyInfo;
2
+ private readonly apiKeyInfo;
3
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[]>;
@@ -123,7 +123,7 @@ var CategoryClass = /*#__PURE__*/function () {
123
123
  }
124
124
  return _context4.abrupt("return", Promise.reject(new Error('请输入 typeId')));
125
125
  case 5:
126
- if (type_id) {
126
+ if (attribute_id) {
127
127
  _context4.next = 7;
128
128
  break;
129
129
  }
@@ -39,7 +39,7 @@ function _attributeValue() {
39
39
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
40
40
  while (1) switch (_context2.prev = _context2.next) {
41
41
  case 0:
42
- return _context2.abrupt("return", request("/v1/description-category/attribute", _objectSpread({
42
+ return _context2.abrupt("return", request("/v1/description-category/attribute/values", _objectSpread({
43
43
  method: 'POST',
44
44
  headers: {
45
45
  'Content-Type': 'application/json'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ozon-api",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "OZON API",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -60,6 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "antd": "^6.1.1",
63
+ "dayjs": "^1.11.19",
63
64
  "umi-request": "^1.4.0"
64
65
  },
65
66
  "scripts": {