@sokol111/ecommerce-catalog-service-api 1.0.8 → 1.0.9

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/api.d.ts CHANGED
@@ -5,7 +5,6 @@ export declare const getCatalogAPI: () => {
5
5
  updateAttribute: <TData = AxiosResponse<AttributeResponse, any, {}>>(updateAttributeRequest: UpdateAttributeRequest, options?: AxiosRequestConfig) => Promise<TData>;
6
6
  getAttributeById: <TData = AxiosResponse<AttributeResponse, any, {}>>(id: string, options?: AxiosRequestConfig) => Promise<TData>;
7
7
  getAttributeList: <TData = AxiosResponse<AttributeListResponse, any, {}>>(params: GetAttributeListParams, options?: AxiosRequestConfig) => Promise<TData>;
8
- deleteAttribute: <TData = AxiosResponse<void, any, {}>>(id: string, options?: AxiosRequestConfig) => Promise<TData>;
9
8
  createCategory: <TData = AxiosResponse<CategoryResponse, any, {}>>(createCategoryRequest: CreateCategoryRequest, options?: AxiosRequestConfig) => Promise<TData>;
10
9
  updateCategory: <TData = AxiosResponse<CategoryResponse, any, {}>>(updateCategoryRequest: UpdateCategoryRequest, options?: AxiosRequestConfig) => Promise<TData>;
11
10
  getCategoryById: <TData = AxiosResponse<CategoryResponse, any, {}>>(id: string, options?: AxiosRequestConfig) => Promise<TData>;
@@ -19,7 +18,6 @@ export type CreateAttributeResult = AxiosResponse<AttributeResponse>;
19
18
  export type UpdateAttributeResult = AxiosResponse<AttributeResponse>;
20
19
  export type GetAttributeByIdResult = AxiosResponse<AttributeResponse>;
21
20
  export type GetAttributeListResult = AxiosResponse<AttributeListResponse>;
22
- export type DeleteAttributeResult = AxiosResponse<void>;
23
21
  export type CreateCategoryResult = AxiosResponse<CategoryResponse>;
24
22
  export type UpdateCategoryResult = AxiosResponse<CategoryResponse>;
25
23
  export type GetCategoryByIdResult = AxiosResponse<CategoryResponse>;
package/dist/api.js CHANGED
@@ -9,7 +9,7 @@ This service combines:
9
9
  - **Categories** - Product categories with attribute assignments
10
10
  - **Products** - Products with attribute values
11
11
 
12
- * OpenAPI spec version: 1.0.8
12
+ * OpenAPI spec version: 1.0.9
13
13
  */
14
14
  import axios from 'axios';
15
15
  export const getCatalogAPI = () => {
@@ -37,12 +37,6 @@ export const getCatalogAPI = () => {
37
37
  const getAttributeList = (params, options) => {
38
38
  return axios.get(`/v1/attribute/list`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
39
39
  };
40
- /**
41
- * @summary Delete an attribute by ID
42
- */
43
- const deleteAttribute = (id, options) => {
44
- return axios.delete(`/v1/attribute/delete/${id}`, options);
45
- };
46
40
  /**
47
41
  * @summary Create a new category
48
42
  */
@@ -91,5 +85,5 @@ export const getCatalogAPI = () => {
91
85
  const getProductList = (params, options) => {
92
86
  return axios.get(`/v1/product/list`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
93
87
  };
94
- return { createAttribute, updateAttribute, getAttributeById, getAttributeList, deleteAttribute, createCategory, updateCategory, getCategoryById, getCategoryList, createProduct, updateProduct, getProductById, getProductList };
88
+ return { createAttribute, updateAttribute, getAttributeById, getAttributeList, createCategory, updateCategory, getCategoryById, getCategoryList, createProduct, updateProduct, getProductById, getProductList };
95
89
  };
@@ -9,7 +9,7 @@ This service combines:
9
9
  - **Categories** - Product categories with attribute assignments
10
10
  - **Products** - Products with attribute values
11
11
 
12
- * OpenAPI spec version: 1.0.8
12
+ * OpenAPI spec version: 1.0.9
13
13
  */
14
14
  export type GetAttributeListParams = {
15
15
  /**
@@ -9,7 +9,7 @@ This service combines:
9
9
  - **Categories** - Product categories with attribute assignments
10
10
  - **Products** - Products with attribute values
11
11
 
12
- * OpenAPI spec version: 1.0.8
12
+ * OpenAPI spec version: 1.0.9
13
13
  */
14
14
  // eslint-disable-next-line @typescript-eslint/no-redeclare
15
15
  export const GetAttributeListType = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sokol111/ecommerce-catalog-service-api",
3
3
  "description": "Generated TypeScript Axios client from OpenAPI for ecommerce-catalog-service-api",
4
- "version": "1.0.8",
4
+ "version": "1.0.9",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "module": "dist/index.js",