Skip to content

Commit 4409fcf

Browse files
authored
47 end user typed text seen by csa while typed (buerokratt#169)
* feat buerokratt#47 add lodash to project * feat buerokratt#47 add message preview SSE mock data * feat buerokratt#47 add preview message css * feat buerokratt#47 add SSE event message-preview enum * feat buerokratt#47 add SSE event message-preview response type * feat buerokratt#47 add check mocked chat message preview * feat buerokratt#47 add message-preview SSE response
1 parent f3e746c commit 4409fcf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/sse-events.md

+22
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,28 @@ Response body for SSE: `cs-get-new-messages`
155155
"updated": "2023-01-24T08:42:01.545+00:00",
156156
}
157157
```
158+
## End user message preview is sent
159+
Response body for SSE: `cs-get-new-messages`
160+
```json
161+
{
162+
"id": "944648e5-9816-4bca-b600-a2db5d977758",
163+
"chatid": "50356c0c-b0ec-45cc-9601-fac90307b792",
164+
"content": "",
165+
"event": "message-preview",
166+
"authorId": "",
167+
"authorTimestamp": '2023-01-23T15:13:42.830+00:00',
168+
"authorFirstName": "",
169+
"authorLastName": "",
170+
"authorRole": "end-user",
171+
"forwardedByUser": "",
172+
"forwardedFromCsa": "",
173+
"forwardedToCsa": "",
174+
"preview": "Mul on vaja abi",
175+
"rating": "",
176+
"created": '2023-01-23T15:13:42.830+00:00',
177+
"updated": '2023-01-23T15:13:42.837+00:00',
178+
}
179+
```
158180

159181
## Chat activities
160182

0 commit comments

Comments
 (0)