ingeniuscliq-core 0.4.12 → 0.4.14

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/index.js CHANGED
@@ -2559,7 +2559,7 @@ class py extends Nn {
2559
2559
  constructor() {
2560
2560
  super("product");
2561
2561
  ve(this, "getAllCategories", (n) => this.api.get(`${this.apiPrefix}/shop/categories`, { params: n }));
2562
- ve(this, "bestSellers", (n) => this.api.get(`${this.apiPrefix}/shop/products/best-selling-products`, { params: n }));
2562
+ ve(this, "getBestSellers", (n) => this.api.get(`${this.apiPrefix}/shop/best-selling-products`, { params: n }));
2563
2563
  this.setCrudResourceProperty("getAll", "shop/products"), this.setCrudResourceProperty("get", "shop/products");
2564
2564
  }
2565
2565
  }
@@ -2627,7 +2627,7 @@ class v4 {
2627
2627
  } } = {}) => {
2628
2628
  try {
2629
2629
  t({ loading: !0, error: null });
2630
- const i = await this.productService.bestSellers(r);
2630
+ const i = await this.productService.getBestSellers(r);
2631
2631
  return t({ loading: !1, bestSellers: i.data.data }), o(i), i.data;
2632
2632
  } catch (i) {
2633
2633
  throw t((c) => ({ ...c, error: i, loading: !1, bestSellers: null })), a(i), i;
@@ -2642,7 +2642,8 @@ class v4 {
2642
2642
  partialize: (t) => ({
2643
2643
  productDetails: t.productDetails,
2644
2644
  products: t.products,
2645
- categories: t.categories
2645
+ categories: t.categories,
2646
+ bestSellers: t.bestSellers
2646
2647
  })
2647
2648
  }
2648
2649
  )
@@ -12,6 +12,7 @@ export declare class CoreProductBuilder<T extends CoreProduct, K extends CorePro
12
12
  productDetails: T | null;
13
13
  products: import('../../../types').BasePagination<T> | null;
14
14
  categories: K[] | null;
15
+ bestSellers: T[] | null;
15
16
  }>>) => void;
16
17
  clearStorage: () => void;
17
18
  rehydrate: () => Promise<void> | void;
@@ -22,6 +23,7 @@ export declare class CoreProductBuilder<T extends CoreProduct, K extends CorePro
22
23
  productDetails: T | null;
23
24
  products: import('../../../types').BasePagination<T> | null;
24
25
  categories: K[] | null;
26
+ bestSellers: T[] | null;
25
27
  }>>;
26
28
  };
27
29
  }>;
@@ -7,5 +7,5 @@ import { AxiosResponse } from 'axios';
7
7
  export declare class CoreProductBaseService extends BaseService {
8
8
  constructor();
9
9
  getAllCategories: <T>(params?: Record<string, any>) => Promise<AxiosResponse<T>>;
10
- bestSellers: <T>(params?: Record<string, any>) => Promise<AxiosResponse<BaseApiResponse<T[]>>>;
10
+ getBestSellers: <T>(params?: Record<string, any>) => Promise<AxiosResponse<BaseApiResponse<T[]>>>;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.4.12",
3
+ "version": "0.4.14",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",