ingeniuscliq-core 0.2.41 → 0.2.43

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.
@@ -8,19 +8,13 @@ export declare class CoreProductBuilder implements CoreBuilder {
8
8
  constructor(service?: CoreProductBaseService, initialState?: any);
9
9
  build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CoreProductStore<CoreProduct, CoreProductCategory>>, "persist"> & {
10
10
  persist: {
11
- setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreProductStore<CoreProduct, CoreProductCategory>, {
12
- productDetails: CoreProduct | null;
13
- products: import('../../..').BasePagination<CoreProduct> | null;
14
- }>>) => void;
11
+ setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreProductStore<CoreProduct, CoreProductCategory>, CoreProductStore<CoreProduct, CoreProductCategory>>>) => void;
15
12
  clearStorage: () => void;
16
13
  rehydrate: () => Promise<void> | void;
17
14
  hasHydrated: () => boolean;
18
15
  onHydrate: (fn: (state: CoreProductStore<CoreProduct, CoreProductCategory>) => void) => () => void;
19
16
  onFinishHydration: (fn: (state: CoreProductStore<CoreProduct, CoreProductCategory>) => void) => () => void;
20
- getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreProductStore<CoreProduct, CoreProductCategory>, {
21
- productDetails: CoreProduct | null;
22
- products: import('../../..').BasePagination<CoreProduct> | null;
23
- }>>;
17
+ getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreProductStore<CoreProduct, CoreProductCategory>, CoreProductStore<CoreProduct, CoreProductCategory>>>;
24
18
  };
25
19
  }>;
26
20
  }
@@ -30,6 +30,8 @@ export interface CoreProductStore<T extends CoreProduct, K extends CoreProductCa
30
30
  setProductDetails: (product: T | null) => void;
31
31
  fetchProducts: (params?: Record<string, any>) => Promise<BaseApiResponsePagination<T>>;
32
32
  getProducts: () => BasePagination<T> | null;
33
- getProductDetails: () => T | null;
34
33
  fetchProductDetails: (id: string | number) => Promise<BaseApiResponse<T>>;
34
+ getProductDetails: () => T | null;
35
+ fetchCategories: (params?: Record<string, any>) => Promise<BaseApiResponsePagination<K>>;
36
+ getCategories: () => K | null;
35
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.2.41",
3
+ "version": "0.2.43",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",