From 001599afa3b75bb51f207bc8f7d62640b05df21d Mon Sep 17 00:00:00 2001 From: luc <44377201+LuChen-Microsoft@users.noreply.github.com> Date: Wed, 28 Apr 2021 11:27:29 -0700 Subject: [PATCH] Chat preview6: Add Chat Message Tags Support (#14973) * update to preview 6 * update swagger file & tests * change properties format * remove RestUpdateMessageOptions from exposed api * update package version to 1.1.0-beta.1 --- .../communication-chat/CHANGELOG.md | 5 ++ .../communication-chat/package.json | 4 +- ...cording_successfully_creates_a_thread.json | 12 ++--- ...cording_successfully_deletes_a_thread.json | 4 +- ...ording_successfully_adds_participants.json | 8 ++-- ...ording_successfully_deletes_a_message.json | 4 +- ...ccessfully_gets_the_thread_properties.json | 6 +-- ...cessfully_intializes_chatthreadclient.json | 12 ++--- ...recording_successfully_lists_messages.json | 6 +-- ...rding_successfully_lists_participants.json | 8 ++-- ...ding_successfully_lists_read_receipts.json | 6 +-- ...ing_successfully_remove_a_participant.json | 6 +-- ...ding_successfully_retrieves_a_message.json | 8 ++-- ...ecording_successfully_sends_a_message.json | 12 ++--- ...rding_successfully_sends_read_receipt.json | 6 +-- ...uccessfully_sends_typing_notification.json | 4 +- ...successfully_updates_the_thread_topic.json | 10 ++-- ...recording_successfully_creates_a_thread.js | 48 +++++++++++-------- ...recording_successfully_deletes_a_thread.js | 16 ++++--- ..._successfully_retrieves_a_thread_client.js | 2 +- ...ecording_successfully_adds_participants.js | 28 ++++++----- ...ecording_successfully_deletes_a_message.js | 14 +++--- ...successfully_gets_the_thread_properties.js | 16 +++---- ...uccessfully_intializes_chatthreadclient.js | 46 ++++++++++-------- .../recording_successfully_lists_messages.js | 16 +++---- ...cording_successfully_lists_participants.js | 16 +++---- ...ording_successfully_lists_read_receipts.js | 16 +++---- ...rding_successfully_remove_a_participant.js | 14 +++--- ...ording_successfully_retrieves_a_message.js | 16 +++---- .../recording_successfully_sends_a_message.js | 18 +++---- ...cording_successfully_sends_read_receipt.js | 14 +++--- ..._successfully_sends_typing_notification.js | 14 +++--- ...g_successfully_updates_the_thread_topic.js | 28 +++++------ .../review/communication-chat.api.md | 11 ++--- .../communication-chat/src/constants.ts | 2 +- .../src/generated/src/chatApiClientContext.ts | 4 +- .../src/generated/src/models/index.ts | 6 +++ .../src/generated/src/models/mappers.ts | 21 ++++++++ .../src/generated/src/models/parameters.ts | 2 +- .../communication-chat/src/models/mappers.ts | 25 +++++----- .../communication-chat/src/models/models.ts | 2 + .../communication-chat/src/models/options.ts | 11 +++-- .../communication-chat/swagger/README.md | 4 +- .../internal/chatThreadClient.mocked.spec.ts | 13 +++-- .../test/internal/utils/mockClient.ts | 3 +- .../test/public/chatThreadClient.spec.ts | 4 +- 46 files changed, 305 insertions(+), 246 deletions(-) diff --git a/sdk/communication/communication-chat/CHANGELOG.md b/sdk/communication/communication-chat/CHANGELOG.md index 88d7f4cb7002..df3322514858 100644 --- a/sdk/communication/communication-chat/CHANGELOG.md +++ b/sdk/communication/communication-chat/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Added +- Added support to add `properties` for `message` + ## 1.0.1 (Unreleased) - Updated to @azure/communication-signaling@1.0.0-beta.5. diff --git a/sdk/communication/communication-chat/package.json b/sdk/communication/communication-chat/package.json index b7718a5aacce..10d7d3c567a4 100644 --- a/sdk/communication/communication-chat/package.json +++ b/sdk/communication/communication-chat/package.json @@ -1,6 +1,6 @@ { "name": "@azure/communication-chat", - "version": "1.0.1", + "version": "1.1.0-beta.1", "description": "Azure client library for Azure Communication Chat services", "sdk-type": "client", "main": "dist/index.js", @@ -8,7 +8,7 @@ "types": "types/communication-chat.d.ts", "scripts": { "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", - "build:autorest": "autorest ./swagger/README.md --typescript --version=3.0.6267 --v3 --disable-async-iterators=true --package-version=1.0.1 && rushx format", + "build:autorest": "autorest ./swagger/README.md --typescript --version=3.0.6267 --v3 --package-version=1.1.0-beta.1 && rushx format", "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1", "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", "build:samples": "dev-tool samples prep && cd dist-samples && tsc -p .", diff --git a/sdk/communication/communication-chat/recordings/browsers/chatclient_chat_operations/recording_successfully_creates_a_thread.json b/sdk/communication/communication-chat/recordings/browsers/chatclient_chat_operations/recording_successfully_creates_a_thread.json index 685fd9593e72..bb2fc24be1eb 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatclient_chat_operations/recording_successfully_creates_a_thread.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatclient_chat_operations/recording_successfully_creates_a_thread.json @@ -8,7 +8,7 @@ }, "requestBody": "{\"createTokenWithScopes\":[\"chat\"]}", "status": 201, - "response": "{\"identity\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-3a8c-f40f-343a0d006a72\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-03-24T19:17:50.1159449+00:00\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-aa5f-740a-113a0d009941\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-04-22T23:48:43.9093677+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -21,7 +21,7 @@ }, "requestBody": "{\"createTokenWithScopes\":[\"chat\"]}", "status": 201, - "response": "{\"identity\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-3bc7-f40f-343a0d006a73\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-03-24T19:17:50.196126+00:00\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-ab5d-740a-113a0d009942\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-04-22T23:48:44.16568+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -30,14 +30,14 @@ "method": "POST", "url": "https://endpoint/chat/threads", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"topic\":\"test topic\",\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-3a8c-f40f-343a0d006a72\"}}},{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-3bc7-f40f-343a0d006a73\"}}}]}", + "requestBody": "{\"topic\":\"test topic\",\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-aa5f-740a-113a0d009941\"}}},{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-ab5d-740a-113a0d009942\"}}}]}", "status": 201, - "response": "{\"chatThread\":{\"id\":\"19:5ePJZsFSluKzrP0kp842ZSu7xobEO16sS08po8m3QCE1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-03-23T19:17:51Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-3a8c-f40f-343a0d006a72\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-3a8c-f40f-343a0d006a72\"}}}}", + "response": "{\"chatThread\":{\"id\":\"19:R6ZpUqeeKIR1C1E5aqngBuUsQn_6pEOFp7HoKevMhrU1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-04-21T23:48:45Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-aa5f-740a-113a0d009941\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-aa5f-740a-113a0d009941\"}}}}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "location": "https://endpoint/chat/threads/19%3A5ePJZsFSluKzrP0kp842ZSu7xobEO16sS08po8m3QCE1@thread.v2" + "location": "https://endpoint/chat/threads/19%3AR6ZpUqeeKIR1C1E5aqngBuUsQn_6pEOFp7HoKevMhrU1@thread.v2" } } ], diff --git a/sdk/communication/communication-chat/recordings/browsers/chatclient_chat_operations/recording_successfully_deletes_a_thread.json b/sdk/communication/communication-chat/recordings/browsers/chatclient_chat_operations/recording_successfully_deletes_a_thread.json index 1c4911124e7e..69cfafa17d23 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatclient_chat_operations/recording_successfully_deletes_a_thread.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatclient_chat_operations/recording_successfully_deletes_a_thread.json @@ -2,9 +2,9 @@ "recordings": [ { "method": "DELETE", - "url": "https://endpoint/chat/threads/19%3A5ePJZsFSluKzrP0kp842ZSu7xobEO16sS08po8m3QCE1%40thread.v2", + "url": "https://endpoint/chat/threads/19%3AR6ZpUqeeKIR1C1E5aqngBuUsQn_6pEOFp7HoKevMhrU1%40thread.v2", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 204, diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_adds_participants.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_adds_participants.json index b66c3d9044d0..3de248075188 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_adds_participants.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_adds_participants.json @@ -8,18 +8,18 @@ }, "requestBody": "{\"createTokenWithScopes\":[\"chat\"]}", "status": 201, - "response": "{\"identity\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-505d-f40f-343a0d006a76\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-03-24T19:17:55.4659479+00:00\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-c724-570c-113a0d001be8\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-04-22T23:48:51.5850866+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } }, { "method": "POST", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/participants/:add", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/participants/:add", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-505d-f40f-343a0d006a76\"}}}]}", + "requestBody": "{\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-c724-570c-113a0d001be8\"}}}]}", "status": 201, "response": "{}", "responseHeaders": { diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_deletes_a_message.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_deletes_a_message.json index 43dad66662a6..0de37e0b769e 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_deletes_a_message.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_deletes_a_message.json @@ -2,9 +2,9 @@ "recordings": [ { "method": "DELETE", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/messages/1616527075038", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/messages/1619048929826", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 204, diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_gets_the_thread_properties.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_gets_the_thread_properties.json index 1eb98ede0234..d7178b5f6b05 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_gets_the_thread_properties.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_gets_the_thread_properties.json @@ -2,13 +2,13 @@ "recordings": [ { "method": "GET", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "response": "{\"id\":\"19:8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-03-23T19:17:53Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}}", + "response": "{\"id\":\"19:aSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-04-21T23:48:47Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_intializes_chatthreadclient.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_intializes_chatthreadclient.json index a36289e3b852..7bac4d20ccc2 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_intializes_chatthreadclient.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_intializes_chatthreadclient.json @@ -8,7 +8,7 @@ }, "requestBody": "{\"createTokenWithScopes\":[\"chat\"]}", "status": 201, - "response": "{\"identity\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-03-24T19:17:51.7727627+00:00\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-04-22T23:48:45.7456611+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -21,7 +21,7 @@ }, "requestBody": "{\"createTokenWithScopes\":[\"chat\"]}", "status": 201, - "response": "{\"identity\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-4240-f40f-343a0d006a75\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-03-24T19:17:52.1004985+00:00\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b286-740a-113a0d00994e\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-04-22T23:48:46.3001122+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -30,14 +30,14 @@ "method": "POST", "url": "https://endpoint/chat/threads", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"topic\":\"test topic\",\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}},{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-4240-f40f-343a0d006a75\"}}}]}", + "requestBody": "{\"topic\":\"test topic\",\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}}},{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b286-740a-113a0d00994e\"}}}]}", "status": 201, - "response": "{\"chatThread\":{\"id\":\"19:8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-03-23T19:17:53Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}}}", + "response": "{\"chatThread\":{\"id\":\"19:aSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-04-21T23:48:47Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}}}}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "location": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1@thread.v2" + "location": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1@thread.v2" } } ], diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_messages.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_messages.json index 592119d11fb0..018376252f15 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_messages.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_messages.json @@ -2,13 +2,13 @@ "recordings": [ { "method": "GET", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/messages", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/messages", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "response": "{\"value\":[{\"id\":\"1616527075038\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1616527075038\",\"content\":{\"message\":\"content\"},\"senderDisplayName\":\"\",\"createdOn\":\"2021-03-23T19:17:55Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}},{\"id\":\"1616527074511\",\"type\":\"topicUpdated\",\"sequenceId\":\"3\",\"version\":\"1616527074511\",\"content\":{\"topic\":\"new topic\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}},\"createdOn\":\"2021-03-23T19:17:54Z\"},{\"id\":\"1616527073791\",\"type\":\"topicUpdated\",\"sequenceId\":\"2\",\"version\":\"1616527073791\",\"content\":{\"topic\":\"test topic\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}},\"createdOn\":\"2021-03-23T19:17:53Z\"},{\"id\":\"1616527073721\",\"type\":\"participantAdded\",\"sequenceId\":\"1\",\"version\":\"1616527073721\",\"content\":{\"participants\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-4240-f40f-343a0d006a75\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-4240-f40f-343a0d006a75\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}},\"createdOn\":\"2021-03-23T19:17:53Z\"}]}", + "response": "{\"value\":[{\"id\":\"1619048929826\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1619048929826\",\"content\":{\"message\":\"content\"},\"senderDisplayName\":\"\",\"createdOn\":\"2021-04-21T23:48:49Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}},\"properties\":{\"tags\":\"sometag\"}},{\"id\":\"1619048929120\",\"type\":\"topicUpdated\",\"sequenceId\":\"3\",\"version\":\"1619048929120\",\"content\":{\"topic\":\"new topic\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}}},\"createdOn\":\"2021-04-21T23:48:49Z\"},{\"id\":\"1619048928173\",\"type\":\"topicUpdated\",\"sequenceId\":\"2\",\"version\":\"1619048928173\",\"content\":{\"topic\":\"test topic\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}}},\"createdOn\":\"2021-04-21T23:48:48Z\"},{\"id\":\"1619048928082\",\"type\":\"participantAdded\",\"sequenceId\":\"1\",\"version\":\"1619048928082\",\"content\":{\"participants\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b286-740a-113a0d00994e\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b286-740a-113a0d00994e\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}}},\"createdOn\":\"2021-04-21T23:48:48Z\"}]}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_participants.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_participants.json index 8d26137da836..9792a7bcf01c 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_participants.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_participants.json @@ -2,13 +2,13 @@ "recordings": [ { "method": "GET", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/participants", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/participants", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "response": "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-4240-f40f-343a0d006a75\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-4240-f40f-343a0d006a75\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-505d-f40f-343a0d006a76\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-505d-f40f-343a0d006a76\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", + "response": "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b286-740a-113a0d00994e\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b286-740a-113a0d00994e\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-c724-570c-113a0d001be8\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-c724-570c-113a0d001be8\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -18,5 +18,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "477197001df2934909394d5b2b5ec9a8" + "hash": "79a38c810c223a8b25e83ef1eef1419f" } \ No newline at end of file diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_read_receipts.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_read_receipts.json index f785c718f1d3..99c49219497f 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_read_receipts.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_lists_read_receipts.json @@ -2,13 +2,13 @@ "recordings": [ { "method": "GET", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/readReceipts", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/readReceipts", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "response": "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}},\"chatMessageId\":\"1616527075038\",\"readOn\":\"2021-03-23T19:17:55Z\"}]}", + "response": "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}},\"chatMessageId\":\"1619048929826\",\"readOn\":\"2021-04-21T23:48:50Z\"}]}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_remove_a_participant.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_remove_a_participant.json index db95d208c23f..d42248b6d06b 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_remove_a_participant.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_remove_a_participant.json @@ -2,11 +2,11 @@ "recordings": [ { "method": "POST", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/participants/:remove", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/participants/:remove", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-4240-f40f-343a0d006a75\"}}", + "requestBody": "{\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b286-740a-113a0d00994e\"}}", "status": 204, "response": "", "responseHeaders": {} diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_retrieves_a_message.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_retrieves_a_message.json index 2552f0ca7bfc..666aaa795430 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_retrieves_a_message.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_retrieves_a_message.json @@ -2,13 +2,13 @@ "recordings": [ { "method": "GET", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/messages/1616527075038", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/messages/1619048929826", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "response": "{\"id\":\"1616527075038\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1616527075038\",\"content\":{\"message\":\"content\"},\"senderDisplayName\":\"\",\"createdOn\":\"2021-03-23T19:17:55Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}}", + "response": "{\"id\":\"1619048929826\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1619048929826\",\"content\":{\"message\":\"content\"},\"senderDisplayName\":\"\",\"createdOn\":\"2021-04-21T23:48:49Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}},\"properties\":{\"tags\":\"sometag\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -18,5 +18,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "25e1ef165b9fed856790b75308485899" + "hash": "9afbd0dc11734d63601590de7144b6bd" } \ No newline at end of file diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_a_message.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_a_message.json index 05a3d078f1c9..d48928bb277a 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_a_message.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_a_message.json @@ -2,16 +2,16 @@ "recordings": [ { "method": "POST", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/messages", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/messages", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"content\":\"content\"}", + "requestBody": "{\"content\":\"content\",\"properties\":{\"tags\":\"sometag\"}}", "status": 201, - "response": "{\"id\":\"1616527075038\"}", + "response": "{\"id\":\"1619048929826\"}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "location": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1@thread.v2/messages/1616527075038" + "location": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1@thread.v2/messages/1619048929826" } } ], @@ -19,5 +19,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "660e3f96557e4bf75d30810408a70f5c" + "hash": "c96d71509861981db0413ade271e1dbf" } \ No newline at end of file diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_read_receipt.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_read_receipt.json index a26137790836..f00eff5a5a1d 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_read_receipt.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_read_receipt.json @@ -2,11 +2,11 @@ "recordings": [ { "method": "POST", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/readReceipts", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/readReceipts", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"chatMessageId\":\"1616527075038\"}", + "requestBody": "{\"chatMessageId\":\"1619048929826\"}", "status": 200, "response": "", "responseHeaders": { diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_typing_notification.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_typing_notification.json index 61e6a726844b..6b318e2f9934 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_typing_notification.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_sends_typing_notification.json @@ -2,9 +2,9 @@ "recordings": [ { "method": "POST", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2/typing", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/typing", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, diff --git a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_updates_the_thread_topic.json b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_updates_the_thread_topic.json index 8a30d2b715e5..ff384fe926c4 100644 --- a/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_updates_the_thread_topic.json +++ b/sdk/communication/communication-chat/recordings/browsers/chatthreadclient/recording_successfully_updates_the_thread_topic.json @@ -2,9 +2,9 @@ "recordings": [ { "method": "PATCH", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": "{\"topic\":\"new topic\"}", "status": 204, @@ -13,13 +13,13 @@ }, { "method": "GET", - "url": "https://endpoint/chat/threads/19%3A8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1%40thread.v2", + "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2", "query": { - "api-version": "2021-03-07" + "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "response": "{\"id\":\"19:8ucvHcBc4tyC0GEsOWiYZ5raXvPf-UMKB_8NWVcYSRg1@thread.v2\",\"topic\":\"new topic\",\"createdOn\":\"2021-03-23T19:17:53Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\",\"communicationUser\":{\"id\":\"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-40f6-f40f-343a0d006a74\"}}}", + "response": "{\"id\":\"19:aSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1@thread.v2\",\"topic\":\"new topic\",\"createdOn\":\"2021-04-21T23:48:47Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"}}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } diff --git a/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_creates_a_thread.js b/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_creates_a_thread.js index be26dcc03b5f..3ae94f07eea4 100644 --- a/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_creates_a_thread.js +++ b/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_creates_a_thread.js @@ -1,13 +1,13 @@ let nock = require('nock'); -module.exports.hash = "c58a8bd2d6a25564b38d6c2e3574d185"; +module.exports.hash = "6ae9c65421b27211b69af98ad2e9957b"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .reply(201, {"identity":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0066-fea3-0e04-343a0d0064dd"},"accessToken":{"token":"token","expiresOn":"2021-03-24T19:17:34.7902353+00:00"}}, [ + .reply(201, {"identity":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-760e-edbe-a43a0d0092d4"},"accessToken":{"token":"token","expiresOn":"2021-04-22T23:48:30.4957621+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -15,25 +15,27 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'S5iPUIZFQUuL3mmf+h2VWw.0', + 'd3dNuuTPI0maYb8l001Jcg.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', - '79680d63-9189-4062-b399-5709b1aa4198', + '80c59c02-26df-4fdd-8403-a9aefd992a4d', 'api-supported-versions', '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', 'X-Processing-Time', - '288ms', + '131ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0zz5aYAAAAAATXRPza+T4RqMhcN3NeayqV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '0z7mAYAAAAABrFh+WohziTYomwoo+LdMYV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:35 GMT' + 'Wed, 21 Apr 2021 23:48:31 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .reply(201, {"identity":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0066-fff0-0e04-343a0d0064de"},"accessToken":{"token":"token","expiresOn":"2021-03-24T19:17:35.1166254+00:00"}}, [ + .reply(201, {"identity":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-76e1-71bf-a43a0d0044dd"},"accessToken":{"token":"token","expiresOn":"2021-04-22T23:48:30.9831537+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -41,41 +43,45 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'krquOumk00OU5b/k7D/TeQ.0', + 'd1axYWQ3hUuArlSJoyYoFQ.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', - '817574f4-a8ca-45a0-92f3-e153d30d21a8', + 'a6e2b578-8599-4581-a09f-0f112b8b17f7', 'api-supported-versions', '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', 'X-Processing-Time', - '271ms', + '410ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0zz5aYAAAAACxoZe2OX4kSabcuRxnF2yTV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '0z7mAYAAAAACCa0efO5CNR7q7Hk4a8/bMV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:35 GMT' + 'Wed, 21 Apr 2021 23:48:31 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads', {"topic":"test topic","participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0066-fea3-0e04-343a0d0064dd"}}},{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0066-fff0-0e04-343a0d0064de"}}}]}) + .post('/chat/threads', {"topic":"test topic","participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-760e-edbe-a43a0d0092d4"}}},{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-76e1-71bf-a43a0d0044dd"}}}]}) .query(true) - .reply(201, {"chatThread":{"id":"19:q3wKFPlzMawkNc6oMnE775ANXd463AmgdzUQmk4RnXA1@thread.v2","topic":"test topic","createdOn":"2021-03-23T19:17:36Z","createdByCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0066-fea3-0e04-343a0d0064dd","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0066-fea3-0e04-343a0d0064dd"}}}}, [ + .reply(201, {"chatThread":{"id":"19:1ZY8nA8vitSqO7AF7Y0lUtN1vEmJjCQSZsC8e7k_dpE1@thread.v2","topic":"test topic","createdOn":"2021-04-21T23:48:32Z","createdByCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-760e-edbe-a43a0d0092d4","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-760e-edbe-a43a0d0092d4"}}}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'Location', - 'https://azurecommunicationservices.communication.azure.com/chat/threads/19%3Aq3wKFPlzMawkNc6oMnE775ANXd463AmgdzUQmk4RnXA1@thread.v2', + 'https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A1ZY8nA8vitSqO7AF7Y0lUtN1vEmJjCQSZsC8e7k_dpE1@thread.v2', 'MS-CV', - 'UpEoZGGjRkKdG3Ok/mXoDA.0', + 'rJJG+nrxCUCRGY7C4ZgU9A.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '1309ms', + '943ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00D5aYAAAAABff6nFAE2lRLIN3uZ756FLV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '00LmAYAAAAACzGujzF0miRKMzYmHpg7IWV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:36 GMT' + 'Wed, 21 Apr 2021 23:48:33 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_deletes_a_thread.js b/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_deletes_a_thread.js index dfccd673e1bb..1b4e68adf421 100644 --- a/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_deletes_a_thread.js +++ b/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_deletes_a_thread.js @@ -1,23 +1,25 @@ let nock = require('nock'); -module.exports.hash = "e51bac69f00a983af97a432032dbf341"; +module.exports.hash = "1b0bf75b63d52b98da724abe34796531"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .delete('/chat/threads/19%3Aq3wKFPlzMawkNc6oMnE775ANXd463AmgdzUQmk4RnXA1%40thread.v2') + .delete('/chat/threads/19%3A1ZY8nA8vitSqO7AF7Y0lUtN1vEmJjCQSZsC8e7k_dpE1%40thread.v2') .query(true) .reply(204, "", [ 'MS-CV', - 'gQxmQtajTk2wGS3d7v6ZSg.0', + '4JGOy8Pl90enEMHvZMAq7g.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '128ms', + '303ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00T5aYAAAAADwYps0yvfjTr79+Elun1ZLV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '00bmAYAAAAAC7KzgivQPuQIx6Gc8ot7qRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:37 GMT' + 'Wed, 21 Apr 2021 23:48:33 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_retrieves_a_thread_client.js b/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_retrieves_a_thread_client.js index 1b79ddd0ae7a..8281a2edd886 100644 --- a/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_retrieves_a_thread_client.js +++ b/sdk/communication/communication-chat/recordings/node/chatclient_chat_operations/recording_successfully_retrieves_a_thread_client.js @@ -1,5 +1,5 @@ let nock = require('nock'); -module.exports.hash = "1af1d1af9b61d8d77cb1368e7c7ce051"; +module.exports.hash = "5942dc55c8ae67ccd02777f65adf6aa6"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_adds_participants.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_adds_participants.js index c03052cf10d3..24cf5fa1523a 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_adds_participants.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_adds_participants.js @@ -1,13 +1,13 @@ let nock = require('nock'); -module.exports.hash = "1a1f067ce4b17032ea2a8259d4e72e62"; +module.exports.hash = "35025585396877166adc3dac22d1957d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .reply(201, {"identity":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-148e-0e04-343a0d0064e4"},"accessToken":{"token":"token","expiresOn":"2021-03-24T19:17:40.3890828+00:00"}}, [ + .reply(201, {"identity":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-9228-edbe-a43a0d0092e2"},"accessToken":{"token":"token","expiresOn":"2021-04-22T23:48:37.9787665+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -15,23 +15,25 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'lzL4fhzPIE2zD5y9Xhbeww.0', + '+x6EV0dpE0+uPr4QnNkFbA.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', - 'e5a9905b-52bd-4acc-97cd-8220b26fbaba', + 'f4f99666-dfcc-4471-bbb7-50ace317b0cd', 'api-supported-versions', '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', 'X-Processing-Time', - '266ms', + '421ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01T5aYAAAAABBNIprDlndTI6gLCBtZdh6V1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01rmAYAAAAABjzLfpESOeQrtUlCyU9rNIV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:41 GMT' + 'Wed, 21 Apr 2021 23:48:38 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/participants/:add', {"participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-148e-0e04-343a0d0064e4"}}}]}) + .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/participants/:add', {"participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-9228-edbe-a43a0d0092e2"}}}]}) .query(true) .reply(201, {}, [ 'Transfer-Encoding', @@ -39,15 +41,15 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'A6pSkHtxF0eSdUkYWc+MOA.0', + 'RyRy7TCw7ES2WH4T6Zn6gw.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '286ms', + '343ms', 'X-Azure-Ref', - '01T5aYAAAAABbaUvW4KBrR4EkElzXSCUtV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '017mAYAAAAAA6fWFCg5vUQr0nCx5N2LCmV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:40 GMT' + 'Wed, 21 Apr 2021 23:48:38 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_deletes_a_message.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_deletes_a_message.js index 5c54429ff218..a19505a58361 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_deletes_a_message.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_deletes_a_message.js @@ -1,23 +1,23 @@ let nock = require('nock'); -module.exports.hash = "99dab1eee1f2015b9c781625ce8891cd"; +module.exports.hash = "6f90ac401c7903dfc7bd077bcdb108f1"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .delete('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/messages/1616527059857') + .delete('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/messages/1619048916697') .query(true) .reply(204, "", [ 'MS-CV', - 'Xv8U+O+Md0eIi4RXiafXIQ.0', + 'dQZzZJDbd0CvbLmlXskUUg.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '294ms', + '341ms', 'X-Azure-Ref', - '01D5aYAAAAAAT6Na6b0c1QpPwYktVseLmV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01rmAYAAAAAAigQQ0EHg3QqCC45mJxxg0V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:40 GMT' + 'Wed, 21 Apr 2021 23:48:37 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_gets_the_thread_properties.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_gets_the_thread_properties.js index 4dd0dfb66958..d173f3683c12 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_gets_the_thread_properties.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_gets_the_thread_properties.js @@ -1,27 +1,27 @@ let nock = require('nock'); -module.exports.hash = "ece92519958e051517109e9a4846c92f"; +module.exports.hash = "201b8d2e392bf67fe445ef5333d93458"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2') + .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2') .query(true) - .reply(200, {"id":"19:9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1@thread.v2","topic":"test topic","createdOn":"2021-03-23T19:17:38Z","createdByCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}}, [ + .reply(200, {"id":"19:ScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1@thread.v2","topic":"test topic","createdOn":"2021-04-21T23:48:34Z","createdByCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'TxvWbODxc0yahlMzFGulRQ.0', + 'IpgWiABzKkmx8EY5VKsiNA.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '94ms', + '135ms', 'X-Azure-Ref', - '00z5aYAAAAABW0J6xQY+rT7/wTl3zNt2wV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '007mAYAAAAAAwgbXzPwPSTb1dpTC3QtnSV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:38 GMT' + 'Wed, 21 Apr 2021 23:48:35 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_intializes_chatthreadclient.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_intializes_chatthreadclient.js index c70a6867b036..308ec30517ab 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_intializes_chatthreadclient.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_intializes_chatthreadclient.js @@ -1,13 +1,13 @@ let nock = require('nock'); -module.exports.hash = "0343e67db5392abf4721684204568393"; +module.exports.hash = "c738d546d92fce543095dc086c6ade6a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .reply(201, {"identity":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"},"accessToken":{"token":"token","expiresOn":"2021-03-24T19:17:37.2445304+00:00"}}, [ + .reply(201, {"identity":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"},"accessToken":{"token":"token","expiresOn":"2021-04-22T23:48:33.1707894+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -15,25 +15,27 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'cNm5ojS3jkGVK0MoxB58Xw.0', + '4OaGfgNraEWMrQkrLRM+ww.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', - '59dd70c3-20da-4d91-89da-bc80ef9343fb', + '1293580b-d963-4127-a917-fd181d3c12db', 'api-supported-versions', '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', 'X-Processing-Time', - '273ms', + '441ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00T5aYAAAAABgEhJVeRrqTbyDW2YDKenkV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '00bmAYAAAAADbuk/iyo66TJ2vPkRvbQtgV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:38 GMT' + 'Wed, 21 Apr 2021 23:48:34 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .reply(201, {"identity":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-0986-0e04-343a0d0064e1"},"accessToken":{"token":"token","expiresOn":"2021-03-24T19:17:37.3296509+00:00"}}, [ + .reply(201, {"identity":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-8150-71bf-a43a0d0044e3"},"accessToken":{"token":"token","expiresOn":"2021-04-22T23:48:33.3754292+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -41,41 +43,43 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'qDeRTZcxdEyfjbq+NslE7A.0', + 'xsinBT6D20yIY+nuC22Zag.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', - '0b60c627-69d3-412e-9e34-3ba0e56417ac', + '7fb47248-1d85-4f69-8441-8fd5402360a4', 'api-supported-versions', '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', 'X-Processing-Time', - '31ms', + '131ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00j5aYAAAAADe+aLz+DuRQ4BoWiXiyk1aV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '00rmAYAAAAAACf9iaAwo0T5s6ZS4FAjQyV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:38 GMT' + 'Wed, 21 Apr 2021 23:48:34 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads', {"topic":"test topic","participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}},{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-0986-0e04-343a0d0064e1"}}}]}) + .post('/chat/threads', {"topic":"test topic","participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}}},{"communicationIdentifier":{"communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-8150-71bf-a43a0d0044e3"}}}]}) .query(true) - .reply(201, {"chatThread":{"id":"19:9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1@thread.v2","topic":"test topic","createdOn":"2021-03-23T19:17:38Z","createdByCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}}}, [ + .reply(201, {"chatThread":{"id":"19:ScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1@thread.v2","topic":"test topic","createdOn":"2021-04-21T23:48:34Z","createdByCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}}}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'Location', - 'https://azurecommunicationservices.communication.azure.com/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1@thread.v2', + 'https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1@thread.v2', 'MS-CV', - '8lvC1B2aW0ilAbUDgLUuVw.0', + 'xny4H88A1Ui0q/wNTNh9Zg.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '732ms', + '947ms', 'X-Azure-Ref', - '00j5aYAAAAABKLg0polpDTotS3KnMUZFEV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '00rmAYAAAAAAkO4RQ+1BOTKYqctWIz2WOV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:38 GMT' + 'Wed, 21 Apr 2021 23:48:34 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_messages.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_messages.js index a1d54ea41c63..1d8eb285a119 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_messages.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_messages.js @@ -1,27 +1,27 @@ let nock = require('nock'); -module.exports.hash = "cdaca9cba53e2ea55edb80336ba72818"; +module.exports.hash = "49c6686d60ef4074b8144e037007c99a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/messages') + .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/messages') .query(true) - .reply(200, {"value":[{"id":"1616527059857","type":"text","sequenceId":"4","version":"1616527059857","content":{"message":"content"},"senderDisplayName":"","createdOn":"2021-03-23T19:17:39Z","senderCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}},{"id":"1616527059441","type":"topicUpdated","sequenceId":"3","version":"1616527059441","content":{"topic":"new topic","initiatorCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}},"createdOn":"2021-03-23T19:17:39Z"},{"id":"1616527058881","type":"topicUpdated","sequenceId":"2","version":"1616527058881","content":{"topic":"test topic","initiatorCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}},"createdOn":"2021-03-23T19:17:38Z"},{"id":"1616527058786","type":"participantAdded","sequenceId":"1","version":"1616527058786","content":{"participants":[{"communicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-0986-0e04-343a0d0064e1","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-0986-0e04-343a0d0064e1"}},"shareHistoryTime":"1970-01-01T00:00:00Z"}],"initiatorCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}},"createdOn":"2021-03-23T19:17:38Z"}]}, [ + .reply(200, {"value":[{"id":"1619048916697","type":"text","sequenceId":"4","version":"1619048916697","content":{"message":"content"},"senderDisplayName":"","createdOn":"2021-04-21T23:48:36Z","senderCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}},"properties":{"tags":"sometag"}},{"id":"1619048916153","type":"topicUpdated","sequenceId":"3","version":"1619048916153","content":{"topic":"new topic","initiatorCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}}},"createdOn":"2021-04-21T23:48:36Z"},{"id":"1619048915303","type":"topicUpdated","sequenceId":"2","version":"1619048915303","content":{"topic":"test topic","initiatorCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}}},"createdOn":"2021-04-21T23:48:35Z"},{"id":"1619048915143","type":"participantAdded","sequenceId":"1","version":"1619048915143","content":{"participants":[{"communicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-8150-71bf-a43a0d0044e3","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-8150-71bf-a43a0d0044e3"}},"shareHistoryTime":"1970-01-01T00:00:00Z"}],"initiatorCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}}},"createdOn":"2021-04-21T23:48:35Z"}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'lb2IBCA9L0azpycdDwz5ng.0', + 'wEDrbWUmVU6f6T8J3mnIIA.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '114ms', + '159ms', 'X-Azure-Ref', - '01D5aYAAAAABplVbQaCAsTIR2mGaKSJBPV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01bmAYAAAAAARLrX2FxnYT45QrdcSBkuFV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:39 GMT' + 'Wed, 21 Apr 2021 23:48:37 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_participants.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_participants.js index ebfe020deece..d43eb1453d54 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_participants.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_participants.js @@ -1,27 +1,27 @@ let nock = require('nock'); -module.exports.hash = "4a2ab59171ab558fb7953081378f2baf"; +module.exports.hash = "99c3f986f6988aba27f12dd5d2b5c9de"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/participants') + .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/participants') .query(true) - .reply(200, {"value":[{"communicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-0986-0e04-343a0d0064e1","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-0986-0e04-343a0d0064e1"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-148e-0e04-343a0d0064e4","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-148e-0e04-343a0d0064e4"}},"shareHistoryTime":"1970-01-01T00:00:00Z"}]}, [ + .reply(200, {"value":[{"communicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-8150-71bf-a43a0d0044e3","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-8150-71bf-a43a0d0044e3"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-9228-edbe-a43a0d0092e2","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-9228-edbe-a43a0d0092e2"}},"shareHistoryTime":"1970-01-01T00:00:00Z"}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - '+tAfFnxaykGw5+kipty79A.0', + 'GYDQ6xOW90OFQ2pXgTqC/g.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '126ms', + '141ms', 'X-Azure-Ref', - '01T5aYAAAAACTyNyEAN+aQKnMt/3SL7ZxV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '017mAYAAAAADiPKUUblsZTLSRKcZIp8WAV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:41 GMT' + 'Wed, 21 Apr 2021 23:48:38 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_read_receipts.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_read_receipts.js index 619977955fe8..ecdc8a2a69d4 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_read_receipts.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_lists_read_receipts.js @@ -1,27 +1,27 @@ let nock = require('nock'); -module.exports.hash = "68f698ad1cd68fb5d2031b79d0a1fd0f"; +module.exports.hash = "27ee9aeb4aa6329662a95eeb250993c1"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/readReceipts') + .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/readReceipts') .query(true) - .reply(200, {"value":[{"senderCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}},"chatMessageId":"1616527059857","readOn":"2021-03-23T19:17:40Z"}]}, [ + .reply(200, {"value":[{"senderCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}},"chatMessageId":"1619048916697","readOn":"2021-04-21T23:48:37Z"}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'fjUdeXaM5USRJomhSZjI5A.0', + 'JuOe6TnM3ESv9y1Lpht01A.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '116ms', + '165ms', 'X-Azure-Ref', - '01j5aYAAAAACXrcpEXAAySra9l1Hat7FfV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '02LmAYAAAAADkMWgbUEvNQ5bjlhv4hATYV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:41 GMT' + 'Wed, 21 Apr 2021 23:48:39 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_remove_a_participant.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_remove_a_participant.js index 343f889814e5..180a32126c4c 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_remove_a_participant.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_remove_a_participant.js @@ -1,23 +1,23 @@ let nock = require('nock'); -module.exports.hash = "95d8e7f0df4d2e1894f7edb044ad665a"; +module.exports.hash = "14461ac52da624edf8573738ab4dde0a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/participants/:remove', {"communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-0986-0e04-343a0d0064e1"}}) + .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/participants/:remove', {"communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-8150-71bf-a43a0d0044e3"}}) .query(true) .reply(204, "", [ 'MS-CV', - 'ofZs5Z8bJE+FXSav0pGGtQ.0', + 'FX2WsIoyG0SF6UMGGKjKCA.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '309ms', + '258ms', 'X-Azure-Ref', - '01T5aYAAAAAC9OuCQvP+oRYPXMEvwE03QV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '017mAYAAAAAD2696nEHRwQ7gjIUUJK3HzV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:41 GMT' + 'Wed, 21 Apr 2021 23:48:39 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_retrieves_a_message.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_retrieves_a_message.js index b5fd34bb3f7d..aaa1ef26a904 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_retrieves_a_message.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_retrieves_a_message.js @@ -1,27 +1,27 @@ let nock = require('nock'); -module.exports.hash = "351e07a6e84a7c1868189a472027db0c"; +module.exports.hash = "7c976d3befda9a0d9518a65935a99ebc"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/messages/1616527059857') + .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/messages/1619048916697') .query(true) - .reply(200, {"id":"1616527059857","type":"text","sequenceId":"4","version":"1616527059857","content":{"message":"content"},"senderDisplayName":"","createdOn":"2021-03-23T19:17:39Z","senderCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}}, [ + .reply(200, {"id":"1619048916697","type":"text","sequenceId":"4","version":"1619048916697","content":{"message":"content"},"senderDisplayName":"","createdOn":"2021-04-21T23:48:36Z","senderCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}},"properties":{"tags":"sometag"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'w4kbG1Vuv0ajtt5uylDubg.0', + 'dkKiQEdAw0aH8i/rt4Dx7w.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '104ms', + '142ms', 'X-Azure-Ref', - '01D5aYAAAAAB/j+Zo8BPSSKeDcaCB1D7lV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01bmAYAAAAAAYF9f3y3BfR73JTBlKfBvvV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:39 GMT' + 'Wed, 21 Apr 2021 23:48:37 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_a_message.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_a_message.js index 9de99dea749f..705df2399f49 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_a_message.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_a_message.js @@ -1,29 +1,29 @@ let nock = require('nock'); -module.exports.hash = "397e36863f23efcd229d410a33dcc37f"; +module.exports.hash = "c31006d5471975cc3efa279ceee4aeef"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/messages', {"content":"content"}) + .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/messages', {"content":"content","properties":{"tags":"sometag"}}) .query(true) - .reply(201, {"id":"1616527059857"}, [ + .reply(201, {"id":"1619048916697"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'Location', - 'https://azurecommunicationservices.communication.azure.com/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1@thread.v2/messages/1616527059857', + 'https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1@thread.v2/messages/1619048916697', 'MS-CV', - 'MfrSlxv1aU6PTNorBVti1A.0', + 'fxM2aFcNJkCp5p1gjw2w/A.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '134ms', + '169ms', 'X-Azure-Ref', - '00z5aYAAAAADt8paOjSGeQpM2zreUaq6gV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01LmAYAAAAADVJbNkAjwiS4LN3A/cqGQKV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:39 GMT' + 'Wed, 21 Apr 2021 23:48:36 GMT' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_read_receipt.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_read_receipt.js index 6eb40e93d86d..6fcb559720ca 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_read_receipt.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_read_receipt.js @@ -1,25 +1,25 @@ let nock = require('nock'); -module.exports.hash = "d4d886db28d5a84c886e4fb6e8961f29"; +module.exports.hash = "7bfeb93c91b865922918888b4e2a5ba3"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/readReceipts', {"chatMessageId":"1616527059857"}) + .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/readReceipts', {"chatMessageId":"1619048916697"}) .query(true) .reply(200, "", [ 'MS-CV', - 'zEmEcRlFy02gb0dQVca/MQ.0', + 'Cz8sdoRLRU6xubAUpkhHKQ.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '291ms', + '107ms', 'X-Azure-Ref', - '01D5aYAAAAADfdKR/DyAKQr7DYGPXWBAOV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01bmAYAAAAACYfGG5+eQ0Ro8iu25Cv4zYV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:39 GMT', + 'Wed, 21 Apr 2021 23:48:36 GMT', 'Content-Length', '0' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_typing_notification.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_typing_notification.js index 4aa77c397b39..d14939f60270 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_typing_notification.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_sends_typing_notification.js @@ -1,25 +1,25 @@ let nock = require('nock'); -module.exports.hash = "33d8e6bf8697a18bf09f6892ba52451b"; +module.exports.hash = "dbe5b264c11dbef1d4f15779defd44e9"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2/typing') + .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/typing') .query(true) .reply(200, "", [ 'MS-CV', - '/5+Hrgxj4Um/frIyANPDmg.0', + 'x4eQcWq4G0WDIPsdXlhPuA.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '108ms', + '218ms', 'X-Azure-Ref', - '00z5aYAAAAABDMLHuNvDCSrTJxkrGM4hEV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01LmAYAAAAAAaBss5XA7gQYbV4VcgK/3IV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:39 GMT', + 'Wed, 21 Apr 2021 23:48:36 GMT', 'Content-Length', '0' ]); diff --git a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_updates_the_thread_topic.js b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_updates_the_thread_topic.js index b2f2af2497b9..8cd103c25232 100644 --- a/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_updates_the_thread_topic.js +++ b/sdk/communication/communication-chat/recordings/node/chatthreadclient/recording_successfully_updates_the_thread_topic.js @@ -1,45 +1,45 @@ let nock = require('nock'); -module.exports.hash = "b2e3c085aa73b0d20ac7b91f39172d2b"; +module.exports.hash = "36b8d91d6911e6d7390eeb466bc6c56a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .patch('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2', {"topic":"new topic"}) + .patch('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2', {"topic":"new topic"}) .query(true) .reply(204, "", [ 'MS-CV', - 'cESGzU7POkS36awR17cFNA.0', + 'aLIgr459l0KTdwEb8DM5KQ.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '256ms', + '300ms', 'X-Azure-Ref', - '00z5aYAAAAADSs3tiWrgESr+TVNcGBjEsV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '007mAYAAAAAAg1HLGItrcQrfPYgSgW3vnV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:38 GMT' + 'Wed, 21 Apr 2021 23:48:35 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3A9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1%40thread.v2') + .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2') .query(true) - .reply(200, {"id":"19:9cXNBEh5NlRdVyRs5tIn9ZnKCVgwfFsmRRbW6Mn-JNM1@thread.v2","topic":"new topic","createdOn":"2021-03-23T19:17:38Z","createdByCommunicationIdentifier":{"rawId":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0","communicationUser":{"id":"8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000009-0067-083f-0e04-343a0d0064e0"}}}, [ + .reply(200, {"id":"19:ScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1@thread.v2","topic":"new topic","createdOn":"2021-04-21T23:48:34Z","createdByCommunicationIdentifier":{"rawId":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8","communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-7f4e-edbe-a43a0d0092d8"}}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - '8ogQ4frXjUaq8VjJosmDfQ.0', + 'GORzXknTTkmyTLVxYeBICw.0', 'Strict-Transport-Security', 'max-age=2592000', 'api-supported-versions', - '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07', + '2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6', 'X-Processing-Time', - '115ms', + '139ms', 'X-Azure-Ref', - '00z5aYAAAAAB8C1uGznU6T4apY8Zi/WQrV1NURURHRTA4MjIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01LmAYAAAAAAFq4QGL7I7SaUCIliobV0TV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Tue, 23 Mar 2021 19:17:38 GMT' + 'Wed, 21 Apr 2021 23:48:35 GMT' ]); diff --git a/sdk/communication/communication-chat/review/communication-chat.api.md b/sdk/communication/communication-chat/review/communication-chat.api.md index 9a5e4b71b25a..8c0696321b18 100644 --- a/sdk/communication/communication-chat/review/communication-chat.api.md +++ b/sdk/communication/communication-chat/review/communication-chat.api.md @@ -86,6 +86,7 @@ export interface ChatMessage { deletedOn?: Date; editedOn?: Date; id: string; + properties?: Record; sender?: CommunicationIdentifierKind; senderDisplayName?: string; sequenceId: string; @@ -231,11 +232,6 @@ export interface RestListReadReceiptsOptions extends coreHttp.OperationOptions { skip?: number; } -// @public -export interface RestUpdateMessageOptions { - content?: string; -} - // @public export interface SendChatMessageResult { id: string; @@ -243,6 +239,7 @@ export interface SendChatMessageResult { // @public export interface SendMessageOptions extends OperationOptions { + properties?: Record; senderDisplayName?: string; type?: ChatMessageType; } @@ -264,7 +261,9 @@ export interface SendReadReceiptRequest { export type SendTypingNotificationOptions = OperationOptions; // @public -export interface UpdateMessageOptions extends RestUpdateMessageOptions, OperationOptions { +export interface UpdateMessageOptions extends OperationOptions { + content?: string; + properties?: Record; } // @public diff --git a/sdk/communication/communication-chat/src/constants.ts b/sdk/communication/communication-chat/src/constants.ts index 8b7a003d6406..188a3cc82149 100644 --- a/sdk/communication/communication-chat/src/constants.ts +++ b/sdk/communication/communication-chat/src/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.0.1"; +export const SDK_VERSION: string = "1.1.0-beta.1"; diff --git a/sdk/communication/communication-chat/src/generated/src/chatApiClientContext.ts b/sdk/communication/communication-chat/src/generated/src/chatApiClientContext.ts index 7eb57eb1fbd6..d8555851910b 100644 --- a/sdk/communication/communication-chat/src/generated/src/chatApiClientContext.ts +++ b/sdk/communication/communication-chat/src/generated/src/chatApiClientContext.ts @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http"; import { ChatApiClientOptionalParams } from "./models"; const packageName = "azure-communication-chat"; -const packageVersion = "1.0.1"; +const packageVersion = "1.1.0-beta.1"; export class ChatApiClientContext extends coreHttp.ServiceClient { endpoint: string; @@ -46,6 +46,6 @@ export class ChatApiClientContext extends coreHttp.ServiceClient { this.endpoint = endpoint; // Assigning values to Constant parameters - this.apiVersion = options.apiVersion || "2021-03-07"; + this.apiVersion = options.apiVersion || "2021-04-05-preview6"; } } diff --git a/sdk/communication/communication-chat/src/generated/src/models/index.ts b/sdk/communication/communication-chat/src/generated/src/models/index.ts index 3f1baabebf91..d828c36384da 100644 --- a/sdk/communication/communication-chat/src/generated/src/models/index.ts +++ b/sdk/communication/communication-chat/src/generated/src/models/index.ts @@ -106,6 +106,8 @@ export interface SendChatMessageRequest { senderDisplayName?: string; /** The chat message type. */ type?: ChatMessageType; + /** Message properties */ + properties?: { [propertyName: string]: string }; } /** Result of the send message operation. */ @@ -147,6 +149,8 @@ export interface ChatMessage { deletedOn?: Date; /** The last timestamp (if applicable) when the message was edited. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */ editedOn?: Date; + /** Properties */ + properties?: { [propertyName: string]: string }; } /** Content of a chat message. */ @@ -175,6 +179,8 @@ export interface ChatParticipant { export interface UpdateChatMessageRequest { /** Chat message content. */ content?: string; + /** Message properties */ + properties?: { [propertyName: string]: string }; } /** Collection of participants belong to a particular thread. */ diff --git a/sdk/communication/communication-chat/src/generated/src/models/mappers.ts b/sdk/communication/communication-chat/src/generated/src/models/mappers.ts index fef16ee60aa2..d6d357da86d0 100644 --- a/sdk/communication/communication-chat/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-chat/src/generated/src/models/mappers.ts @@ -268,6 +268,13 @@ export const SendChatMessageRequest: coreHttp.CompositeMapper = { type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -389,6 +396,13 @@ export const ChatMessage: coreHttp.CompositeMapper = { type: { name: "DateTime" } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -472,6 +486,13 @@ export const UpdateChatMessageRequest: coreHttp.CompositeMapper = { type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } diff --git a/sdk/communication/communication-chat/src/generated/src/models/parameters.ts b/sdk/communication/communication-chat/src/generated/src/models/parameters.ts index 78187dd31ad5..999ae512166b 100644 --- a/sdk/communication/communication-chat/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-chat/src/generated/src/models/parameters.ts @@ -79,7 +79,7 @@ export const skip: OperationQueryParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-03-07", + defaultValue: "2021-04-05-preview6", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/communication/communication-chat/src/models/mappers.ts b/sdk/communication/communication-chat/src/models/mappers.ts index 1ac95185b81d..de2177c42336 100644 --- a/sdk/communication/communication-chat/src/models/mappers.ts +++ b/sdk/communication/communication-chat/src/models/mappers.ts @@ -101,21 +101,20 @@ export const mapToChatContentSdkModel = ( */ export const mapToChatMessageSdkModel = (chatMessage: RestModel.ChatMessage): ChatMessage => { const { content, senderCommunicationIdentifier, ...otherChatMessage } = chatMessage; - const contentSdkModel = content ? mapToChatContentSdkModel(content) : undefined; - if (senderCommunicationIdentifier) { - return { - sender: deserializeCommunicationIdentifier( - senderCommunicationIdentifier as SerializedCommunicationIdentifier - ), - content: contentSdkModel, - ...otherChatMessage - }; - } else { - return { - content: contentSdkModel, - ...otherChatMessage + let result: ChatMessage = { ...otherChatMessage }; + if (content) { + result = { + ...result, + content: mapToChatContentSdkModel(content) }; } + if (senderCommunicationIdentifier) { + const sender = deserializeCommunicationIdentifier( + senderCommunicationIdentifier as SerializedCommunicationIdentifier + ); + result = { ...result, sender }; + } + return result; }; /** diff --git a/sdk/communication/communication-chat/src/models/models.ts b/sdk/communication/communication-chat/src/models/models.ts index d0d18979ad66..30885bb13fec 100644 --- a/sdk/communication/communication-chat/src/models/models.ts +++ b/sdk/communication/communication-chat/src/models/models.ts @@ -48,6 +48,8 @@ export interface ChatMessage { deletedOn?: Date; /** The last timestamp (if applicable) when the message was edited. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */ editedOn?: Date; + /** Properties */ + properties?: Record; } /** Content of a chat message. */ diff --git a/sdk/communication/communication-chat/src/models/options.ts b/sdk/communication/communication-chat/src/models/options.ts index 27a8f3d28592..250e8e105f5a 100644 --- a/sdk/communication/communication-chat/src/models/options.ts +++ b/sdk/communication/communication-chat/src/models/options.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license. import { PipelineOptions, OperationOptions } from "@azure/core-http"; import { - UpdateChatMessageRequest as RestUpdateMessageOptions, ChatThreadListChatMessagesOptionalParams as RestListMessagesOptions, ChatListChatThreadsOptionalParams as RestListChatThreadsOptions, ChatThreadListChatReadReceiptsOptionalParams as RestListReadReceiptsOptions, @@ -12,7 +11,6 @@ import { import { ChatParticipant } from "./models"; export { - RestUpdateMessageOptions, RestListMessagesOptions, RestListChatThreadsOptions, RestListParticipantsOptions, @@ -47,12 +45,19 @@ export interface SendMessageOptions extends OperationOptions { senderDisplayName?: string; /** The chat message type. */ type?: ChatMessageType; + /** Message properties */ + properties?: Record; } /** * Options to update a chat message. */ -export interface UpdateMessageOptions extends RestUpdateMessageOptions, OperationOptions {} +export interface UpdateMessageOptions extends OperationOptions { + /** Chat message content. */ + content?: string; + /** Message properties */ + properties?: Record; +} /** * Options to list chat messages. diff --git a/sdk/communication/communication-chat/swagger/README.md b/sdk/communication/communication-chat/swagger/README.md index 45f5ed14b0c2..1817da0a2bc8 100644 --- a/sdk/communication/communication-chat/swagger/README.md +++ b/sdk/communication/communication-chat/swagger/README.md @@ -11,8 +11,8 @@ description: Chat Client generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated -tag: package-chat-2021-03-07 -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/bf081421869ccd31d9fd87084b07a1e246aee310/specification/communication/data-plane/Microsoft.CommunicationServicesChat/readme.md +tag: package-chat-2021-04-05-preview6 +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/communication/data-plane/Microsoft.CommunicationServicesChat/readme.md model-date-time-as-string: false optional-response-headers: true use-extension: diff --git a/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts b/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts index b34333dbba6e..a31c229d33a1 100644 --- a/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts +++ b/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts @@ -97,7 +97,8 @@ describe("[Mocked] ChatThreadClient", async () => { }; const sendOptions: SendMessageOptions = { - senderDisplayName: mockMessage.senderDisplayName + senderDisplayName: mockMessage.senderDisplayName, + properties: mockMessage.properties }; const response = await chatThreadClient.sendMessage(sendRequest, sendOptions); @@ -114,7 +115,7 @@ describe("[Mocked] ChatThreadClient", async () => { assert.equal(request.method, "POST"); assert.deepEqual(JSON.parse(request.body), { ...sendRequest, - senderDisplayName: mockMessage.senderDisplayName + ...sendOptions }); }); @@ -210,7 +211,8 @@ describe("[Mocked] ChatThreadClient", async () => { const spy = sinon.spy(mockHttpClient, "sendRequest"); const sendOptions: UpdateMessageOptions = { - content: mockMessage.content?.message + content: mockMessage.content?.message, + properties: mockMessage.properties }; await chatThreadClient.updateMessage(mockMessage.id!, sendOptions); @@ -222,7 +224,10 @@ describe("[Mocked] ChatThreadClient", async () => { `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}` ); assert.equal(request.method, "PATCH"); - assert.deepEqual(JSON.parse(request.body), { content: mockMessage.content?.message }); + assert.deepEqual(JSON.parse(request.body), { + content: mockMessage.content?.message, + properties: mockMessage.properties + }); }); it("makes successful delete message request", async () => { diff --git a/sdk/communication/communication-chat/test/internal/utils/mockClient.ts b/sdk/communication/communication-chat/test/internal/utils/mockClient.ts index 8e553e709d7c..dae2c02fbd5d 100644 --- a/sdk/communication/communication-chat/test/internal/utils/mockClient.ts +++ b/sdk/communication/communication-chat/test/internal/utils/mockClient.ts @@ -56,7 +56,8 @@ export const mockMessage: RestModel.ChatMessage = { createdOn: new Date("2020-06-26T18:06:06Z"), senderDisplayName: "senderDisplayName", senderCommunicationIdentifier: mockCommunicationIdentifier, - deletedOn: new Date("2020-06-26T18:06:06Z") + deletedOn: new Date("2020-06-26T18:06:06Z"), + properties: { tags: "tag" } }; export const mockChatMessageReadReceipt: RestModel.ChatMessageReadReceipt = { diff --git a/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts b/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts index ce0bc0f2a86e..4474aeb21d95 100644 --- a/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts +++ b/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts @@ -69,7 +69,8 @@ describe("ChatThreadClient", function() { it("successfully sends a message", async function() { const request = { content: `content` }; - const result = await chatThreadClient.sendMessage(request); + const options = { properties: { tags: "sometag" } }; + const result = await chatThreadClient.sendMessage(request, options); assert.isNotNull(result.id); messageId = result.id!; @@ -90,6 +91,7 @@ describe("ChatThreadClient", function() { assert.isNotNull(message); assert.equal(message.id, messageId); + assert.isDefined(message.properties?.tags); }); it("successfully lists messages", async function() {