@zauru-sdk/utils 2.0.174 → 2.0.175
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.
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
|
|
2
|
-
import { getCasesByResponsibleId } from "@zauru-sdk/services";
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @param headers
|
|
6
|
-
* @param session
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export const getMyCases = async (session, filters) => {
|
|
10
|
-
return handlePossibleAxiosErrors(async () => {
|
|
11
|
-
const response = await getCasesByResponsibleId(session, filters);
|
|
12
|
-
if (response.error) {
|
|
13
|
-
throw new Error(`Ocurrió un error al consultar los casos asignados a este usuario: ${response.userMsg}`);
|
|
14
|
-
}
|
|
15
|
-
return response?.data ?? [];
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* makeCaseSuppliesWithPrice
|
|
20
3
|
* @param case_supplies
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AxiosUtilsResponse, CaseGraphQL, CaseSupplyGraphQL } from "@zauru-sdk/types";
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @param headers
|
|
6
|
-
* @param session
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const getMyCases: (session: Session, filters?: {
|
|
10
|
-
responsible_id?: number;
|
|
11
|
-
closed?: boolean;
|
|
12
|
-
client_id?: number;
|
|
13
|
-
}) => Promise<AxiosUtilsResponse<CaseGraphQL[]>>;
|
|
1
|
+
import { CaseSupplyGraphQL } from "@zauru-sdk/types";
|
|
14
2
|
/**
|
|
15
3
|
* makeCaseSuppliesWithPrice
|
|
16
4
|
* @param case_supplies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.175",
|
|
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.173",
|
|
28
28
|
"@zauru-sdk/config": "^2.0.100",
|
|
29
|
-
"@zauru-sdk/graphql": "^2.0.
|
|
30
|
-
"@zauru-sdk/services": "^2.0.
|
|
29
|
+
"@zauru-sdk/graphql": "^2.0.175",
|
|
30
|
+
"@zauru-sdk/services": "^2.0.175",
|
|
31
31
|
"@zauru-sdk/types": "^2.0.173"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "72bcb9bd9c6436691e8c1d3ec1af54c98b146963"
|
|
34
34
|
}
|