From 5795c2ae686e8e61f1299a62ed2f9f22be632600 Mon Sep 17 00:00:00 2001 From: luc <44377201+LuChen-Microsoft@users.noreply.github.com> Date: Thu, 13 May 2021 18:23:04 -0700 Subject: [PATCH] rename properties to metadat in message model (#15220) --- .../communication-chat/CHANGELOG.md | 2 +- ...cording_successfully_creates_a_thread.json | 12 ++--- ...cording_successfully_deletes_a_thread.json | 2 +- ...ording_successfully_adds_participants.json | 6 +-- ...ording_successfully_deletes_a_message.json | 2 +- ...ccessfully_gets_the_thread_properties.json | 4 +- ...cessfully_intializes_chatthreadclient.json | 12 ++--- ...recording_successfully_lists_messages.json | 4 +- ...rding_successfully_lists_participants.json | 4 +- ...ding_successfully_lists_read_receipts.json | 4 +- ...ing_successfully_remove_a_participant.json | 4 +- ...ding_successfully_retrieves_a_message.json | 6 +-- ...ecording_successfully_sends_a_message.json | 10 ++-- ...rding_successfully_sends_read_receipt.json | 4 +- ...uccessfully_sends_typing_notification.json | 2 +- ...successfully_updates_the_thread_topic.json | 6 +-- ...recording_successfully_creates_a_thread.js | 48 ++++++++---------- ...recording_successfully_deletes_a_thread.js | 12 ++--- ..._successfully_retrieves_a_thread_client.js | 2 +- ...ecording_successfully_adds_participants.js | 30 +++++------ ...ecording_successfully_deletes_a_message.js | 14 +++--- ...successfully_gets_the_thread_properties.js | 16 +++--- ...uccessfully_intializes_chatthreadclient.js | 50 +++++++++---------- .../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 | 6 +-- .../src/generated/src/models/index.ts | 12 ++--- .../src/generated/src/models/mappers.ts | 12 ++--- .../communication-chat/src/models/models.ts | 4 +- .../communication-chat/src/models/options.ts | 8 +-- .../internal/chatThreadClient.mocked.spec.ts | 6 +-- .../test/internal/utils/mockClient.ts | 2 +- .../test/public/chatThreadClient.spec.ts | 4 +- 40 files changed, 240 insertions(+), 222 deletions(-) diff --git a/sdk/communication/communication-chat/CHANGELOG.md b/sdk/communication/communication-chat/CHANGELOG.md index df3322514858..d2b6cfe2e2ca 100644 --- a/sdk/communication/communication-chat/CHANGELOG.md +++ b/sdk/communication/communication-chat/CHANGELOG.md @@ -3,7 +3,7 @@ ## 1.1.0-beta.1 (Unreleased) ### Added -- Added support to add `properties` for `message` +- Added support to add `metadata` for `message` ## 1.0.1 (Unreleased) 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 bb2fc24be1eb..5df3f2facd8e 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:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-aa5f-740a-113a0d009941\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-04-22T23:48:43.9093677+00:00\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-10bb-2e7c-5b3a0d000547\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-05-12T18:24:33.5765816+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -21,7 +21,7 @@ }, "requestBody": "{\"createTokenWithScopes\":[\"chat\"]}", "status": 201, - "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\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-129f-2e7c-5b3a0d000548\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-05-12T18:24:33.0606174+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -32,12 +32,12 @@ "query": { "api-version": "2021-04-05-preview6" }, - "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\"}}}]}", + "requestBody": "{\"topic\":\"test topic\",\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-10bb-2e7c-5b3a0d000547\"}}},{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-129f-2e7c-5b3a0d000548\"}}}]}", "status": 201, - "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\"}}}}", + "response": "{\"chatThread\":{\"id\":\"19:3VBfD6wcJOmvbsDwk6pz-G49K-cppJh3qreDihMUhCY1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-05-11T18:24:35Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-10bb-2e7c-5b3a0d000547\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-10bb-2e7c-5b3a0d000547\"}}}}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "location": "https://endpoint/chat/threads/19%3AR6ZpUqeeKIR1C1E5aqngBuUsQn_6pEOFp7HoKevMhrU1@thread.v2" + "location": "https://endpoint/chat/threads/19%3A3VBfD6wcJOmvbsDwk6pz-G49K-cppJh3qreDihMUhCY1@thread.v2" } } ], @@ -45,5 +45,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "87ed778a30567024edefa1d3826ed352" + "hash": "e855b5b88d976e0d32b1b77a9ce5a3e4" } \ No newline at end of file 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 69cfafa17d23..2d7e9ca45a70 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,7 +2,7 @@ "recordings": [ { "method": "DELETE", - "url": "https://endpoint/chat/threads/19%3AR6ZpUqeeKIR1C1E5aqngBuUsQn_6pEOFp7HoKevMhrU1%40thread.v2", + "url": "https://endpoint/chat/threads/19%3A3VBfD6wcJOmvbsDwk6pz-G49K-cppJh3qreDihMUhCY1%40thread.v2", "query": { "api-version": "2021-04-05-preview6" }, 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 3de248075188..c35aa9c43070 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:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-c724-570c-113a0d001be8\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-04-22T23:48:51.5850866+00:00\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-36a0-2e7c-5b3a0d00054b\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-05-12T18:24:43.2776308+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } }, { "method": "POST", - "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/participants/:add", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/participants/:add", "query": { "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-c724-570c-113a0d001be8\"}}}]}", + "requestBody": "{\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-36a0-2e7c-5b3a0d00054b\"}}}]}", "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 0de37e0b769e..eb154173fb34 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,7 +2,7 @@ "recordings": [ { "method": "DELETE", - "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/messages/1619048929826", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/messages/1620757481104", "query": { "api-version": "2021-04-05-preview6" }, 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 d7178b5f6b05..cf15a94fbb83 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%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2", "query": { "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "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\"}}}", + "response": "{\"id\":\"19:46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-05-11T18:24:38Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}}}", "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 7bac4d20ccc2..d567287852bf 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:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b18c-740a-113a0d00994c\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-04-22T23:48:45.7456611+00:00\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-05-12T18:24:36.4340408+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -21,7 +21,7 @@ }, "requestBody": "{\"createTokenWithScopes\":[\"chat\"]}", "status": 201, - "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\"}}", + "response": "{\"identity\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1dbf-2e7c-5b3a0d00054a\"},\"accessToken\":{\"token\":\"token\",\"expiresOn\":\"2021-05-12T18:24:36.9100628+00:00\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -32,12 +32,12 @@ "query": { "api-version": "2021-04-05-preview6" }, - "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\"}}}]}", + "requestBody": "{\"topic\":\"test topic\",\"participants\":[{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}}},{\"communicationIdentifier\":{\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1dbf-2e7c-5b3a0d00054a\"}}}]}", "status": 201, - "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\"}}}}", + "response": "{\"chatThread\":{\"id\":\"19:46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1@thread.v2\",\"topic\":\"test topic\",\"createdOn\":\"2021-05-11T18:24:38Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}}}}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "location": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1@thread.v2" + "location": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1@thread.v2" } } ], @@ -45,5 +45,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "59bb5b67f5f2ccb7fb0485922f1b80d0" + "hash": "add3d465020bc54dc349b9d94eed0ede" } \ No newline at end of file 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 018376252f15..0b10ae187743 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%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/messages", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/messages", "query": { "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "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\"}]}", + "response": "{\"value\":[{\"id\":\"1620757481104\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1620757481104\",\"content\":{\"message\":\"content\"},\"senderDisplayName\":\"\",\"createdOn\":\"2021-05-11T18:24:41Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}},\"metadata\":{\"tags\":\"sometag\"}},{\"id\":\"1620757480073\",\"type\":\"topicUpdated\",\"sequenceId\":\"3\",\"version\":\"1620757480073\",\"content\":{\"topic\":\"new topic\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}}},\"createdOn\":\"2021-05-11T18:24:40Z\"},{\"id\":\"1620757478791\",\"type\":\"topicUpdated\",\"sequenceId\":\"2\",\"version\":\"1620757478791\",\"content\":{\"topic\":\"test topic\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}}},\"createdOn\":\"2021-05-11T18:24:38Z\"},{\"id\":\"1620757478760\",\"type\":\"participantAdded\",\"sequenceId\":\"1\",\"version\":\"1620757478760\",\"content\":{\"participants\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1dbf-2e7c-5b3a0d00054a\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1dbf-2e7c-5b3a0d00054a\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}}},\"createdOn\":\"2021-05-11T18:24:38Z\"}]}", "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 9792a7bcf01c..30e93ee9ea62 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%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/participants", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/participants", "query": { "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "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\"}]}", + "response": "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1dbf-2e7c-5b3a0d00054a\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1dbf-2e7c-5b3a0d00054a\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-36a0-2e7c-5b3a0d00054b\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-36a0-2e7c-5b3a0d00054b\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } 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 99c49219497f..859aa624299e 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%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/readReceipts", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/readReceipts", "query": { "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "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\"}]}", + "response": "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}},\"chatMessageId\":\"1620757481104\",\"readOn\":\"2021-05-11T18:24:41Z\"}]}", "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 d42248b6d06b..d5857bd21f5f 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%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/participants/:remove", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/participants/:remove", "query": { "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-b286-740a-113a0d00994e\"}}", + "requestBody": "{\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1dbf-2e7c-5b3a0d00054a\"}}", "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 666aaa795430..1a7bd104e181 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%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/messages/1619048929826", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/messages/1620757481104", "query": { "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "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\"}}", + "response": "{\"id\":\"1620757481104\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1620757481104\",\"content\":{\"message\":\"content\"},\"senderDisplayName\":\"\",\"createdOn\":\"2021-05-11T18:24:41Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}},\"metadata\":{\"tags\":\"sometag\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8" } @@ -18,5 +18,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "9afbd0dc11734d63601590de7144b6bd" + "hash": "cea3701657fa63b8ccf67b349fcaa878" } \ 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 d48928bb277a..656ffb1d98c3 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%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/messages", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/messages", "query": { "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"content\":\"content\",\"properties\":{\"tags\":\"sometag\"}}", + "requestBody": "{\"content\":\"content\",\"metadata\":{\"tags\":\"sometag\"}}", "status": 201, - "response": "{\"id\":\"1619048929826\"}", + "response": "{\"id\":\"1620757481104\"}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "location": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1@thread.v2/messages/1619048929826" + "location": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1@thread.v2/messages/1620757481104" } } ], @@ -19,5 +19,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "c96d71509861981db0413ade271e1dbf" + "hash": "31e2ec5a73ffe29ac1cc5548c994fab9" } \ 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 f00eff5a5a1d..d794f5da9d92 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%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/readReceipts", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/readReceipts", "query": { "api-version": "2021-04-05-preview6" }, - "requestBody": "{\"chatMessageId\":\"1619048929826\"}", + "requestBody": "{\"chatMessageId\":\"1620757481104\"}", "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 6b318e2f9934..f8db756a8ea7 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,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2/typing", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2/typing", "query": { "api-version": "2021-04-05-preview6" }, 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 ff384fe926c4..686eaa2ae5c6 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,7 +2,7 @@ "recordings": [ { "method": "PATCH", - "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2", "query": { "api-version": "2021-04-05-preview6" }, @@ -13,13 +13,13 @@ }, { "method": "GET", - "url": "https://endpoint/chat/threads/19%3AaSKCYUhRHJ1PkzKMSihIaoGRA0evhS9UmQ51OaNowYU1%40thread.v2", + "url": "https://endpoint/chat/threads/19%3A46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1%40thread.v2", "query": { "api-version": "2021-04-05-preview6" }, "requestBody": null, "status": 200, - "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\"}}}", + "response": "{\"id\":\"19:46ODrtCpTL2rGAPEaHRQI75e9Jm_AyfKxyEA6HTTryQ1@thread.v2\",\"topic\":\"new topic\",\"createdOn\":\"2021-05-11T18:24:38Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\",\"communicationUser\":{\"id\":\"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8e-1be3-2e7c-5b3a0d000549\"}}}", "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 3ae94f07eea4..cd91a12fe954 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 = "6ae9c65421b27211b69af98ad2e9957b"; +module.exports.hash = "c58a8bd2d6a25564b38d6c2e3574d185"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .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"}}, [ + .reply(201, {"identity":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-c874-2a7a-5b3a0d0005f3"},"accessToken":{"token":"token","expiresOn":"2021-05-12T18:24:14.0747804+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -15,27 +15,25 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'd3dNuuTPI0maYb8l001Jcg.0', - 'Strict-Transport-Security', - 'max-age=2592000', + 'Clh8b1LiokOV7fOiM78GRg.0', 'x-ms-client-request-id', - '80c59c02-26df-4fdd-8403-a9aefd992a4d', + 'ababe5e9-8ad2-4259-a7d0-5bdd1ed1c09e', 'api-supported-versions', - '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', + '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1', 'X-Processing-Time', - '131ms', + '457ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0z7mAYAAAAABrFh+WohziTYomwoo+LdMYV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '0z8uaYAAAAACuXXPWqSrZTLQKflOb+Nn9V1NURURHRTA4MTMANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:31 GMT' + 'Tue, 11 May 2021 18:24:15 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .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"}}, [ + .reply(201, {"identity":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-c9e6-2a7a-5b3a0d0005f4"},"accessToken":{"token":"token","expiresOn":"2021-05-12T18:24:15.4525515+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -43,45 +41,43 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'd1axYWQ3hUuArlSJoyYoFQ.0', - 'Strict-Transport-Security', - 'max-age=2592000', + 'GIik/a/LJEK1WyxNnz6kDQ.0', 'x-ms-client-request-id', - 'a6e2b578-8599-4581-a09f-0f112b8b17f7', + '38a4084e-5c4e-41be-8f42-9a2e1eeaeb70', 'api-supported-versions', - '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', + '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1', 'X-Processing-Time', - '410ms', + '111ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0z7mAYAAAAACCa0efO5CNR7q7Hk4a8/bMV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '00MuaYAAAAADiarmY5bBUTL938buslC9RV1NURURHRTA4MTMANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:31 GMT' + 'Tue, 11 May 2021 18:24:16 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .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"}}}]}) + .post('/chat/threads', {"topic":"test topic","participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-c874-2a7a-5b3a0d0005f3"}}},{"communicationIdentifier":{"communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-c9e6-2a7a-5b3a0d0005f4"}}}]}) .query(true) - .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"}}}}, [ + .reply(201, {"chatThread":{"id":"19:ccmd51185skzyzMBCnT8VLrapOfYFlFnAa0F1kztzbs1@thread.v2","topic":"test topic","createdOn":"2021-05-11T18:24:17Z","createdByCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-c874-2a7a-5b3a0d0005f3","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-c874-2a7a-5b3a0d0005f3"}}}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'Location', - 'https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A1ZY8nA8vitSqO7AF7Y0lUtN1vEmJjCQSZsC8e7k_dpE1@thread.v2', + 'https://chat-sdktester-e2e.dev.communication.azure.net/chat/threads/19%3Accmd51185skzyzMBCnT8VLrapOfYFlFnAa0F1kztzbs1@thread.v2', 'MS-CV', - 'rJJG+nrxCUCRGY7C4ZgU9A.0', + 'grA+ljHdmkO4MqywxMQyRg.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, 2021-04-05-preview6', 'X-Processing-Time', - '943ms', + '929ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00LmAYAAAAACzGujzF0miRKMzYmHpg7IWV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '00cuaYAAAAACi9PG3F/cMSKg2oxKRWqQvV1NURURHRTA4MTQANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:33 GMT' + 'Tue, 11 May 2021 18:24:17 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 1b4e68adf421..ec45ad06a2a9 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,25 +1,25 @@ let nock = require('nock'); -module.exports.hash = "1b0bf75b63d52b98da724abe34796531"; +module.exports.hash = "e51bac69f00a983af97a432032dbf341"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .delete('/chat/threads/19%3A1ZY8nA8vitSqO7AF7Y0lUtN1vEmJjCQSZsC8e7k_dpE1%40thread.v2') + .delete('/chat/threads/19%3Accmd51185skzyzMBCnT8VLrapOfYFlFnAa0F1kztzbs1%40thread.v2') .query(true) .reply(204, "", [ 'MS-CV', - '4JGOy8Pl90enEMHvZMAq7g.0', + 'gjSfUOTO4UG6PypUI3I1Ig.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, 2021-04-05-preview6', 'X-Processing-Time', - '303ms', + '290ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00bmAYAAAAAC7KzgivQPuQIx6Gc8ot7qRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '00suaYAAAAADxjFPE2PVKRKKvJK4CDVxXV1NURURHRTA4MTQANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:33 GMT' + 'Tue, 11 May 2021 18:24:18 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 8281a2edd886..1b79ddd0ae7a 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 = "5942dc55c8ae67ccd02777f65adf6aa6"; +module.exports.hash = "1af1d1af9b61d8d77cb1368e7c7ce051"; 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 24cf5fa1523a..293d2326ba94 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 = "35025585396877166adc3dac22d1957d"; +module.exports.hash = "1a1f067ce4b17032ea2a8259d4e72e62"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .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"}}, [ + .reply(201, {"identity":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-ebee-2e7c-5b3a0d000546"},"accessToken":{"token":"token","expiresOn":"2021-05-12T18:24:24.1572912+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -15,25 +15,23 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - '+x6EV0dpE0+uPr4QnNkFbA.0', - 'Strict-Transport-Security', - 'max-age=2592000', + 'A0nLq+jqvUKtrxfn26np2A.0', 'x-ms-client-request-id', - 'f4f99666-dfcc-4471-bbb7-50ace317b0cd', + '6a5f86b2-0c82-49fd-a5cf-0f02fd491029', 'api-supported-versions', - '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', + '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1', 'X-Processing-Time', - '421ms', + '122ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01rmAYAAAAABjzLfpESOeQrtUlCyU9rNIV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '02cuaYAAAAABxiUrIMriCSKGKMHlIcIjiV1NURURHRTA4MTMANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:38 GMT' + 'Tue, 11 May 2021 18:24:24 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .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"}}}]}) + .post('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/participants/:add', {"participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-ebee-2e7c-5b3a0d000546"}}}]}) .query(true) .reply(201, {}, [ 'Transfer-Encoding', @@ -41,15 +39,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'RyRy7TCw7ES2WH4T6Zn6gw.0', + '3TrQqxOfdUOuc07nheN42A.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, 2021-04-05-preview6', 'X-Processing-Time', - '343ms', + '391ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '017mAYAAAAAA6fWFCg5vUQr0nCx5N2LCmV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '02cuaYAAAAAD0evR5gfUjTI/Og0Jq1DnHV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:38 GMT' + 'Tue, 11 May 2021 18:24:25 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 a19505a58361..83ca08fcd595 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,25 @@ let nock = require('nock'); -module.exports.hash = "6f90ac401c7903dfc7bd077bcdb108f1"; +module.exports.hash = "99dab1eee1f2015b9c781625ce8891cd"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .delete('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/messages/1619048916697') + .delete('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/messages/1620757462303') .query(true) .reply(204, "", [ 'MS-CV', - 'dQZzZJDbd0CvbLmlXskUUg.0', + 'Z1zgqLsMd0227eztOoQ88Q.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, 2021-04-05-preview6', 'X-Processing-Time', - '341ms', + '392ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01rmAYAAAAAAigQQ0EHg3QqCC45mJxxg0V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '02MuaYAAAAABFLRpKRe18Touj+mVa/VyGV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:37 GMT' + 'Tue, 11 May 2021 18:24:24 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 d173f3683c12..43060110246b 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,29 @@ let nock = require('nock'); -module.exports.hash = "201b8d2e392bf67fe445ef5333d93458"; +module.exports.hash = "ece92519958e051517109e9a4846c92f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2') + .get('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2') .query(true) - .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"}}}, [ + .reply(200, {"id":"19:-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1@thread.v2","topic":"test topic","createdOn":"2021-05-11T18:24:20Z","createdByCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'IpgWiABzKkmx8EY5VKsiNA.0', + 'YscyAR4LLEGbc1oaT5vBmg.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, 2021-04-05-preview6', 'X-Processing-Time', - '135ms', + '247ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '007mAYAAAAAAwgbXzPwPSTb1dpTC3QtnSV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01MuaYAAAAACOW2Up1hAOQ5rV+q9nUoHtV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:35 GMT' + 'Tue, 11 May 2021 18:24:20 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 308ec30517ab..f198e2829082 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 = "c738d546d92fce543095dc086c6ade6a"; +module.exports.hash = "0343e67db5392abf4721684204568393"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .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"}}, [ + .reply(201, {"identity":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"},"accessToken":{"token":"token","expiresOn":"2021-05-12T18:24:18.1319123+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -15,27 +15,25 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - '4OaGfgNraEWMrQkrLRM+ww.0', - 'Strict-Transport-Security', - 'max-age=2592000', + '1wX7u/e6F0SMwdBTMAg+Gg.0', 'x-ms-client-request-id', - '1293580b-d963-4127-a917-fd181d3c12db', + 'd2db3cda-15c7-40de-a2f0-609698f4f12e', 'api-supported-versions', - '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', + '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1', 'X-Processing-Time', - '441ms', + '101ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00bmAYAAAAADbuk/iyo66TJ2vPkRvbQtgV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '008uaYAAAAAAA6zChyT/KTpcuU8G/JcYoV1NURURHRTA4MTMANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:34 GMT' + 'Tue, 11 May 2021 18:24:18 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) - .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"}}, [ + .reply(201, {"identity":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d72a-2e7c-5b3a0d000545"},"accessToken":{"token":"token","expiresOn":"2021-05-12T18:24:18.8514265+00:00"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -43,43 +41,43 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'xsinBT6D20yIY+nuC22Zag.0', - 'Strict-Transport-Security', - 'max-age=2592000', + 'iHQC3nJspkuU7Iwkbwoorg.0', 'x-ms-client-request-id', - '7fb47248-1d85-4f69-8441-8fd5402360a4', + '8e2b0035-c7ff-41d8-8f21-08f982b78320', 'api-supported-versions', - '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07', + '2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1', 'X-Processing-Time', - '131ms', + '116ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00rmAYAAAAAACf9iaAwo0T5s6ZS4FAjQyV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '008uaYAAAAAA+ZZfLKV42RY8O5uqQWCXzV1NURURHRTA4MTMANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:34 GMT' + 'Tue, 11 May 2021 18:24:19 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .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"}}}]}) + .post('/chat/threads', {"topic":"test topic","participants":[{"communicationIdentifier":{"communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}}},{"communicationIdentifier":{"communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d72a-2e7c-5b3a0d000545"}}}]}) .query(true) - .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"}}}}, [ + .reply(201, {"chatThread":{"id":"19:-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1@thread.v2","topic":"test topic","createdOn":"2021-05-11T18:24:20Z","createdByCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}}}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'Location', - 'https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1@thread.v2', + 'https://chat-sdktester-e2e.dev.communication.azure.net/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1@thread.v2', 'MS-CV', - 'xny4H88A1Ui0q/wNTNh9Zg.0', + 'ycAE05ZEKUWe1wrjpl9T6g.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, 2021-04-05-preview6', 'X-Processing-Time', - '947ms', + '910ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '00rmAYAAAAAAkO4RQ+1BOTKYqctWIz2WOV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '008uaYAAAAAB3Lf7fxXLeTIOrwyeDZZ5TV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:34 GMT' + 'Tue, 11 May 2021 18:24:20 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 1d8eb285a119..bf7c4eebf64a 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,29 @@ let nock = require('nock'); -module.exports.hash = "49c6686d60ef4074b8144e037007c99a"; +module.exports.hash = "cdaca9cba53e2ea55edb80336ba72818"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/messages') + .get('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/messages') .query(true) - .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"}]}, [ + .reply(200, {"value":[{"id":"1620757462303","type":"text","sequenceId":"4","version":"1620757462303","content":{"message":"content"},"senderDisplayName":"","createdOn":"2021-05-11T18:24:22Z","senderCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}},"metadata":{"tags":"sometag"}},{"id":"1620757461563","type":"topicUpdated","sequenceId":"3","version":"1620757461563","content":{"topic":"new topic","initiatorCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}}},"createdOn":"2021-05-11T18:24:21Z"},{"id":"1620757460470","type":"topicUpdated","sequenceId":"2","version":"1620757460470","content":{"topic":"test topic","initiatorCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}}},"createdOn":"2021-05-11T18:24:20Z"},{"id":"1620757460438","type":"participantAdded","sequenceId":"1","version":"1620757460438","content":{"participants":[{"communicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d72a-2e7c-5b3a0d000545","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d72a-2e7c-5b3a0d000545"}},"shareHistoryTime":"1970-01-01T00:00:00Z"}],"initiatorCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}}},"createdOn":"2021-05-11T18:24:20Z"}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'wEDrbWUmVU6f6T8J3mnIIA.0', + 'CPA0rdbPCUWsxrHYdcS3Og.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, 2021-04-05-preview6', 'X-Processing-Time', - '159ms', + '278ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01bmAYAAAAAARLrX2FxnYT45QrdcSBkuFV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '02MuaYAAAAAACuuWZEs7/RoXFN7twVEYVV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:37 GMT' + 'Tue, 11 May 2021 18:24:24 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 d43eb1453d54..0e65da9ad790 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,29 @@ let nock = require('nock'); -module.exports.hash = "99c3f986f6988aba27f12dd5d2b5c9de"; +module.exports.hash = "8c0d3b6a3726a2fac38003a952a86dd0"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/participants') + .get('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/participants') .query(true) - .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"}]}, [ + .reply(200, {"value":[{"communicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d72a-2e7c-5b3a0d000545","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d72a-2e7c-5b3a0d000545"}},"shareHistoryTime":"1970-01-01T00:00:00Z"},{"communicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-ebee-2e7c-5b3a0d000546","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-ebee-2e7c-5b3a0d000546"}},"shareHistoryTime":"1970-01-01T00:00:00Z"}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'GYDQ6xOW90OFQ2pXgTqC/g.0', + 'gSGPr9hLOUWt81uwyJ1hng.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, 2021-04-05-preview6', 'X-Processing-Time', - '141ms', + '261ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '017mAYAAAAADiPKUUblsZTLSRKcZIp8WAV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '02cuaYAAAAACZRAwvN2kLQZFF7IStNV+rV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:38 GMT' + 'Tue, 11 May 2021 18:24:25 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 ecdc8a2a69d4..c1d235913a1d 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,29 @@ let nock = require('nock'); -module.exports.hash = "27ee9aeb4aa6329662a95eeb250993c1"; +module.exports.hash = "68f698ad1cd68fb5d2031b79d0a1fd0f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/readReceipts') + .get('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/readReceipts') .query(true) - .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"}]}, [ + .reply(200, {"value":[{"senderCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}},"chatMessageId":"1620757462303","readOn":"2021-05-11T18:24:23Z"}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'JuOe6TnM3ESv9y1Lpht01A.0', + 'QHni5MHfLEeT2aC2xzcG1w.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, 2021-04-05-preview6', 'X-Processing-Time', - '165ms', + '246ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '02LmAYAAAAADkMWgbUEvNQ5bjlhv4hATYV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '02suaYAAAAAAbQXwquk3XQqjd9mELMNX+V1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:39 GMT' + 'Tue, 11 May 2021 18:24:26 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 180a32126c4c..1b33ee5c0b3e 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,25 @@ let nock = require('nock'); -module.exports.hash = "14461ac52da624edf8573738ab4dde0a"; +module.exports.hash = "95d8e7f0df4d2e1894f7edb044ad665a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/participants/:remove', {"communicationUser":{"id":"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_00000009-96b7-8150-71bf-a43a0d0044e3"}}) + .post('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/participants/:remove', {"communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d72a-2e7c-5b3a0d000545"}}) .query(true) .reply(204, "", [ 'MS-CV', - 'FX2WsIoyG0SF6UMGGKjKCA.0', + 'FHJ9scyN40qbY7tkMBwBQQ.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, 2021-04-05-preview6', 'X-Processing-Time', - '258ms', + '436ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '017mAYAAAAAD2696nEHRwQ7gjIUUJK3HzV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '02suaYAAAAADz+9xCRMTKQrymORUjTFl/V1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:39 GMT' + 'Tue, 11 May 2021 18:24:26 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 aaa1ef26a904..5ea72f1ad8c0 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,29 @@ let nock = require('nock'); -module.exports.hash = "7c976d3befda9a0d9518a65935a99ebc"; +module.exports.hash = "94aa021d271cac8daa16f4a5666cc01c"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/messages/1619048916697') + .get('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/messages/1620757462303') .query(true) - .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"}}, [ + .reply(200, {"id":"1620757462303","type":"text","sequenceId":"4","version":"1620757462303","content":{"message":"content"},"senderDisplayName":"","createdOn":"2021-05-11T18:24:22Z","senderCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}},"metadata":{"tags":"sometag"}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'dkKiQEdAw0aH8i/rt4Dx7w.0', + 'ceGlDmDW6UevPM1gfFpa7w.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, 2021-04-05-preview6', 'X-Processing-Time', - '142ms', + '257ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01bmAYAAAAAAYF9f3y3BfR73JTBlKfBvvV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '018uaYAAAAABE2yW1ZMivRIxfLvgRKNbuV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:37 GMT' + 'Tue, 11 May 2021 18:24:23 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 705df2399f49..ec69a38da789 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,31 @@ let nock = require('nock'); -module.exports.hash = "c31006d5471975cc3efa279ceee4aeef"; +module.exports.hash = "924d33cf80d4f1f5e371dc108fcad06e"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/messages', {"content":"content","properties":{"tags":"sometag"}}) + .post('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/messages', {"content":"content","metadata":{"tags":"sometag"}}) .query(true) - .reply(201, {"id":"1619048916697"}, [ + .reply(201, {"id":"1620757462303"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'Location', - 'https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1@thread.v2/messages/1619048916697', + 'https://chat-sdktester-e2e.dev.communication.azure.net/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1@thread.v2/messages/1620757462303', 'MS-CV', - 'fxM2aFcNJkCp5p1gjw2w/A.0', + 'lWm0tehVcEywizucD35Ldw.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, 2021-04-05-preview6', 'X-Processing-Time', - '169ms', + '383ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01LmAYAAAAADVJbNkAjwiS4LN3A/cqGQKV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01suaYAAAAAAB2a+oTswWQ7Mh2nvv8Uf4V1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:36 GMT' + 'Tue, 11 May 2021 18:24:22 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 6fcb559720ca..4152aaa32d7c 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,27 @@ let nock = require('nock'); -module.exports.hash = "7bfeb93c91b865922918888b4e2a5ba3"; +module.exports.hash = "d4d886db28d5a84c886e4fb6e8961f29"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/readReceipts', {"chatMessageId":"1619048916697"}) + .post('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/readReceipts', {"chatMessageId":"1620757462303"}) .query(true) .reply(200, "", [ 'MS-CV', - 'Cz8sdoRLRU6xubAUpkhHKQ.0', + 'LybLfplat0C/y/m+9mD9Hw.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, 2021-04-05-preview6', 'X-Processing-Time', - '107ms', + '582ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01bmAYAAAAACYfGG5+eQ0Ro8iu25Cv4zYV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '018uaYAAAAADZ1a65U1XgS7/c0f7waRzwV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:36 GMT', + 'Tue, 11 May 2021 18:24:23 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 d14939f60270..c28e3aec6b1d 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,27 @@ let nock = require('nock'); -module.exports.hash = "dbe5b264c11dbef1d4f15779defd44e9"; +module.exports.hash = "33d8e6bf8697a18bf09f6892ba52451b"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .post('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2/typing') + .post('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2/typing') .query(true) .reply(200, "", [ 'MS-CV', - 'x4eQcWq4G0WDIPsdXlhPuA.0', + '0MJ2NlqypkadkAk1TXuAVw.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, 2021-04-05-preview6', 'X-Processing-Time', - '218ms', + '354ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01LmAYAAAAAAaBss5XA7gQYbV4VcgK/3IV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01suaYAAAAAALNyQgg+/USb9KcVhHgMP9V1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:36 GMT', + 'Tue, 11 May 2021 18:24:22 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 8cd103c25232..e0a370b6ecef 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,49 @@ let nock = require('nock'); -module.exports.hash = "36b8d91d6911e6d7390eeb466bc6c56a"; +module.exports.hash = "b2e3c085aa73b0d20ac7b91f39172d2b"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) - .patch('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2', {"topic":"new topic"}) + .patch('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2', {"topic":"new topic"}) .query(true) .reply(204, "", [ 'MS-CV', - 'aLIgr459l0KTdwEb8DM5KQ.0', + 'Vk1I5fX1CEqlM9FUMqqW9g.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, 2021-04-05-preview6', 'X-Processing-Time', - '300ms', + '385ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '007mAYAAAAAAg1HLGItrcQrfPYgSgW3vnV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01cuaYAAAAAA1xRHl2httSbJCeL315360V1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:35 GMT' + 'Tue, 11 May 2021 18:24:21 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .get('/chat/threads/19%3AScCnaKuTp6GyZdIAuuv9RAobRLrkYvNn6kdQMJUJVaY1%40thread.v2') + .get('/chat/threads/19%3A-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1%40thread.v2') .query(true) - .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"}}}, [ + .reply(200, {"id":"19:-SU2gzDrzE720bWocJYfAkee6As1QmtdJW3bcNJWyEw1@thread.v2","topic":"new topic","createdOn":"2021-05-11T18:24:20Z","createdByCommunicationIdentifier":{"rawId":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5","communicationUser":{"id":"8:acs:1b5cc06b-f352-4571-b1e6-d9b259b7c776_00000009-fc8d-d468-2a7a-5b3a0d0005f5"}}}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'MS-CV', - 'GORzXknTTkmyTLVxYeBICw.0', + 'hzuO+cnz7E+sy5VGiStv+w.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, 2021-04-05-preview6', 'X-Processing-Time', - '139ms', + '251ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '01LmAYAAAAAAFq4QGL7I7SaUCIliobV0TV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', + '01cuaYAAAAACtX21QSQ+YSaPGThQeoH4LV1NURURHRTA4MTkANzA1NDM5NWUtY2UxZC00NTVlLWFlNWQtMjMzY2E4MzkwNTU0', 'Date', - 'Wed, 21 Apr 2021 23:48:35 GMT' + 'Tue, 11 May 2021 18:24:21 GMT' ]); diff --git a/sdk/communication/communication-chat/review/communication-chat.api.md b/sdk/communication/communication-chat/review/communication-chat.api.md index 8c0696321b18..2489f5687c22 100644 --- a/sdk/communication/communication-chat/review/communication-chat.api.md +++ b/sdk/communication/communication-chat/review/communication-chat.api.md @@ -86,7 +86,7 @@ export interface ChatMessage { deletedOn?: Date; editedOn?: Date; id: string; - properties?: Record; + metadata?: Record; sender?: CommunicationIdentifierKind; senderDisplayName?: string; sequenceId: string; @@ -239,7 +239,7 @@ export interface SendChatMessageResult { // @public export interface SendMessageOptions extends OperationOptions { - properties?: Record; + metadata?: Record; senderDisplayName?: string; type?: ChatMessageType; } @@ -263,7 +263,7 @@ export type SendTypingNotificationOptions = OperationOptions; // @public export interface UpdateMessageOptions extends OperationOptions { content?: string; - properties?: Record; + metadata?: Record; } // @public 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 d828c36384da..ea0f03892209 100644 --- a/sdk/communication/communication-chat/src/generated/src/models/index.ts +++ b/sdk/communication/communication-chat/src/generated/src/models/index.ts @@ -106,8 +106,8 @@ export interface SendChatMessageRequest { senderDisplayName?: string; /** The chat message type. */ type?: ChatMessageType; - /** Message properties */ - properties?: { [propertyName: string]: string }; + /** Message metadata. */ + metadata?: { [propertyName: string]: string }; } /** Result of the send message operation. */ @@ -149,8 +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 }; + /** Message metadata. */ + metadata?: { [propertyName: string]: string }; } /** Content of a chat message. */ @@ -179,8 +179,8 @@ export interface ChatParticipant { export interface UpdateChatMessageRequest { /** Chat message content. */ content?: string; - /** Message properties */ - properties?: { [propertyName: string]: string }; + /** Message metadata. */ + metadata?: { [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 d6d357da86d0..42fb0740a2fb 100644 --- a/sdk/communication/communication-chat/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-chat/src/generated/src/models/mappers.ts @@ -269,8 +269,8 @@ export const SendChatMessageRequest: coreHttp.CompositeMapper = { name: "String" } }, - properties: { - serializedName: "properties", + metadata: { + serializedName: "metadata", type: { name: "Dictionary", value: { type: { name: "String" } } @@ -397,8 +397,8 @@ export const ChatMessage: coreHttp.CompositeMapper = { name: "DateTime" } }, - properties: { - serializedName: "properties", + metadata: { + serializedName: "metadata", type: { name: "Dictionary", value: { type: { name: "String" } } @@ -487,8 +487,8 @@ export const UpdateChatMessageRequest: coreHttp.CompositeMapper = { name: "String" } }, - properties: { - serializedName: "properties", + metadata: { + serializedName: "metadata", type: { name: "Dictionary", value: { type: { name: "String" } } diff --git a/sdk/communication/communication-chat/src/models/models.ts b/sdk/communication/communication-chat/src/models/models.ts index 30885bb13fec..74a0be893761 100644 --- a/sdk/communication/communication-chat/src/models/models.ts +++ b/sdk/communication/communication-chat/src/models/models.ts @@ -48,8 +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; + /** metadata */ + metadata?: 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 250e8e105f5a..1d09281426ba 100644 --- a/sdk/communication/communication-chat/src/models/options.ts +++ b/sdk/communication/communication-chat/src/models/options.ts @@ -45,8 +45,8 @@ export interface SendMessageOptions extends OperationOptions { senderDisplayName?: string; /** The chat message type. */ type?: ChatMessageType; - /** Message properties */ - properties?: Record; + /** Message metadata. */ + metadata?: Record; } /** @@ -55,8 +55,8 @@ export interface SendMessageOptions extends OperationOptions { export interface UpdateMessageOptions extends OperationOptions { /** Chat message content. */ content?: string; - /** Message properties */ - properties?: Record; + /** Message metadata. */ + metadata?: Record; } /** 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 a31c229d33a1..f2425573eb3d 100644 --- a/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts +++ b/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts @@ -98,7 +98,7 @@ describe("[Mocked] ChatThreadClient", async () => { const sendOptions: SendMessageOptions = { senderDisplayName: mockMessage.senderDisplayName, - properties: mockMessage.properties + metadata: mockMessage.metadata }; const response = await chatThreadClient.sendMessage(sendRequest, sendOptions); @@ -212,7 +212,7 @@ describe("[Mocked] ChatThreadClient", async () => { const sendOptions: UpdateMessageOptions = { content: mockMessage.content?.message, - properties: mockMessage.properties + metadata: mockMessage.metadata }; await chatThreadClient.updateMessage(mockMessage.id!, sendOptions); @@ -226,7 +226,7 @@ describe("[Mocked] ChatThreadClient", async () => { assert.equal(request.method, "PATCH"); assert.deepEqual(JSON.parse(request.body), { content: mockMessage.content?.message, - properties: mockMessage.properties + metadata: mockMessage.metadata }); }); diff --git a/sdk/communication/communication-chat/test/internal/utils/mockClient.ts b/sdk/communication/communication-chat/test/internal/utils/mockClient.ts index dae2c02fbd5d..7bb25152a443 100644 --- a/sdk/communication/communication-chat/test/internal/utils/mockClient.ts +++ b/sdk/communication/communication-chat/test/internal/utils/mockClient.ts @@ -57,7 +57,7 @@ export const mockMessage: RestModel.ChatMessage = { senderDisplayName: "senderDisplayName", senderCommunicationIdentifier: mockCommunicationIdentifier, deletedOn: new Date("2020-06-26T18:06:06Z"), - properties: { tags: "tag" } + metadata: { 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 4474aeb21d95..a3351a950583 100644 --- a/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts +++ b/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts @@ -69,7 +69,7 @@ describe("ChatThreadClient", function() { it("successfully sends a message", async function() { const request = { content: `content` }; - const options = { properties: { tags: "sometag" } }; + const options = { metadata: { tags: "sometag" } }; const result = await chatThreadClient.sendMessage(request, options); assert.isNotNull(result.id); @@ -91,7 +91,7 @@ describe("ChatThreadClient", function() { assert.isNotNull(message); assert.equal(message.id, messageId); - assert.isDefined(message.properties?.tags); + assert.isDefined(message.metadata?.tags); }); it("successfully lists messages", async function() {