@zeniai/client-epic-state 4.19.13-beta0AD → 4.19.13-beta2AD
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.
|
@@ -10,15 +10,17 @@ const deleteChatSessionEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0,
|
|
|
10
10
|
const { chatSessionId } = action.payload;
|
|
11
11
|
// No request body; chat_session_id is in the path. API returns 204 No Content on success.
|
|
12
12
|
return zeniAPI
|
|
13
|
-
.deleteAndGetJSON(
|
|
13
|
+
.deleteAndGetJSON(`https://chat-dot-zeni-apis-dev.appspot.com/1.0/sessions/${chatSessionId}`)
|
|
14
14
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
15
15
|
if ((0, responsePayload_1.isSuccessStatus)(response)) {
|
|
16
|
+
console.log('response', response);
|
|
16
17
|
return (0, rxjs_1.from)([
|
|
17
18
|
(0, aiCfoViewReducer_1.deleteChatSessionSuccess)({ chatSessionId }),
|
|
18
19
|
(0, aiCfoReducer_1.clearSession)(chatSessionId)
|
|
19
20
|
]);
|
|
20
21
|
}
|
|
21
22
|
else {
|
|
23
|
+
console.log('response', response.status, response.status.message);
|
|
22
24
|
return (0, rxjs_1.of)((0, aiCfoViewReducer_1.deleteChatSessionFailure)({
|
|
23
25
|
chatSessionId,
|
|
24
26
|
error: response.status,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.19.13-
|
|
3
|
+
"version": "4.19.13-beta2AD",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|