@zauru-sdk/utils 2.0.167 → 2.0.169

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.
@@ -6,9 +6,9 @@ import { getCasesByResponsibleId } from "@zauru-sdk/services";
6
6
  * @param session
7
7
  * @returns
8
8
  */
9
- export const getMyCases = async (session, wheres = []) => {
9
+ export const getMyCases = async (session, filters) => {
10
10
  return handlePossibleAxiosErrors(async () => {
11
- const response = await getCasesByResponsibleId(session, session.get("employee_id"), wheres);
11
+ const response = await getCasesByResponsibleId(session, filters);
12
12
  if (response.error) {
13
13
  throw new Error(`Ocurrió un error al consultar los casos asignados a este usuario: ${response.userMsg}`);
14
14
  }
@@ -6,4 +6,8 @@ import { AxiosUtilsResponse, CaseGraphQL } from "@zauru-sdk/types";
6
6
  * @param session
7
7
  * @returns
8
8
  */
9
- export declare const getMyCases: (session: Session, wheres?: string[]) => Promise<AxiosUtilsResponse<CaseGraphQL[]>>;
9
+ export declare const getMyCases: (session: Session, filters?: {
10
+ responsible_id?: number;
11
+ closed?: boolean;
12
+ client_id?: number;
13
+ }) => Promise<AxiosUtilsResponse<CaseGraphQL[]>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/utils",
3
- "version": "2.0.167",
3
+ "version": "2.0.169",
4
4
  "description": "Utilidades, parseo de request y demás para desarrollo de webapps de Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -26,9 +26,9 @@
26
26
  "@remix-run/node": "^2.8.1",
27
27
  "@zauru-sdk/common": "^2.0.164",
28
28
  "@zauru-sdk/config": "^2.0.100",
29
- "@zauru-sdk/graphql": "^2.0.166",
30
- "@zauru-sdk/services": "^2.0.167",
29
+ "@zauru-sdk/graphql": "^2.0.169",
30
+ "@zauru-sdk/services": "^2.0.169",
31
31
  "@zauru-sdk/types": "^2.0.164"
32
32
  },
33
- "gitHead": "b33742e83c55c1846b6f1a3266fbb39125b64360"
33
+ "gitHead": "cb9bc2cccbff6605a48b0771ab6cc422a7a9df4e"
34
34
  }