ozon-api 0.0.9 → 0.0.10

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.
@@ -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(description_category_id: number, type_id: number, attribute_id: number, lang?: Global.ApiLanguage | string, limit?: number, last_value_id?: number): Promise<Category.AttributeValue[]>;
6
+ attributeValue(description_category_id: number, type_id: number, attribute_id: number, lang?: Global.ApiLanguage | string, limit?: number, last_value_id?: number): 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;
@@ -173,7 +173,7 @@ var CategoryClass = /*#__PURE__*/function () {
173
173
  }
174
174
  return _context3.abrupt("return", reject(new Error(attributeResult === null || attributeResult === void 0 ? void 0 : attributeResult.message)));
175
175
  case 7:
176
- return _context3.abrupt("return", resolve(attributeResult.result));
176
+ return _context3.abrupt("return", resolve(attributeResult));
177
177
  case 8:
178
178
  case "end":
179
179
  return _context3.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ozon-api",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "OZON API",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",