@zauru-sdk/services 2.0.181 → 2.0.183
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.
|
@@ -83,3 +83,15 @@ export async function deleteCase(headers, id) {
|
|
|
83
83
|
return true;
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* closeCase
|
|
88
|
+
* @param headers
|
|
89
|
+
* @param id
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
export async function closeCase(headers, id) {
|
|
93
|
+
return handlePossibleAxiosErrors(async () => {
|
|
94
|
+
await httpZauru.get(`/support/cases/${id}/close.json`, { headers });
|
|
95
|
+
return true;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
@@ -30,3 +30,10 @@ export declare function updateCase(headers: any, body: Partial<CaseGraphQL>): Pr
|
|
|
30
30
|
* @param body
|
|
31
31
|
*/
|
|
32
32
|
export declare function deleteCase(headers: any, id: string | number): Promise<AxiosUtilsResponse<boolean>>;
|
|
33
|
+
/**
|
|
34
|
+
* closeCase
|
|
35
|
+
* @param headers
|
|
36
|
+
* @param id
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare function closeCase(headers: any, id: string | number): Promise<AxiosUtilsResponse<boolean>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.183",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@remix-run/node": "^2.8.1",
|
|
27
27
|
"@zauru-sdk/common": "^2.0.177",
|
|
28
28
|
"@zauru-sdk/config": "^2.0.100",
|
|
29
|
-
"@zauru-sdk/graphql": "^2.0.
|
|
29
|
+
"@zauru-sdk/graphql": "^2.0.183",
|
|
30
30
|
"@zauru-sdk/types": "^2.0.177",
|
|
31
31
|
"axios": "^1.6.7",
|
|
32
32
|
"chalk": "5.3.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "9e4c61af87e8f56f2a9fd698fef6d5e46b7b9b63"
|
|
35
35
|
}
|