From 8c788e430081665c342e9b19a4876d91bf9d552c Mon Sep 17 00:00:00 2001 From: Juntu Chen Date: Fri, 8 Nov 2024 14:01:40 -0500 Subject: [PATCH] updated PR based on comments --- .../src/callAutomationClient.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/communication/communication-call-automation/src/callAutomationClient.ts b/sdk/communication/communication-call-automation/src/callAutomationClient.ts index eba911a8e90e..a2ea6255acd5 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationClient.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationClient.ts @@ -53,7 +53,7 @@ export interface CallAutomationClientOptions extends CommonClientOptions { */ sourceIdentity?: CommunicationUserIdentifier; /** - * The identifier of the OPS of the call for call creating operation. + * The identifier of the One Phone System bot for call creating operation. */ opsSourceIdentity?: MicrosoftTeamsAppIdentifier; } @@ -72,7 +72,7 @@ const isCallAutomationClientOptions = (options: any): options is CallAutomationC export class CallAutomationClient { private readonly callAutomationApiClient: CallAutomationApiClient; private readonly sourceIdentity?: CommunicationUserIdentifierModel; - private readonly oPSSourceIdentity?: MicrosoftTeamsAppIdentifierModel; + private readonly opsSourceIdentity?: MicrosoftTeamsAppIdentifierModel; private readonly credential: TokenCredential | KeyCredential; private readonly internalPipelineOptions: InternalPipelineOptions; private readonly callAutomationEventProcessor: CallAutomationEventProcessor; @@ -135,7 +135,7 @@ export class CallAutomationClient { ); this.sourceIdentity = communicationUserIdentifierModelConverter(options.sourceIdentity); - this.oPSSourceIdentity = microsoftTeamsAppIdentifierModelConverter(options.opsSourceIdentity); + this.opsSourceIdentity = microsoftTeamsAppIdentifierModelConverter(options.opsSourceIdentity); } /** @@ -254,7 +254,7 @@ export class CallAutomationClient { ): Promise { const request: CreateCallRequest = { source: this.sourceIdentity, - opsSource: this.oPSSourceIdentity, + opsSource: this.opsSourceIdentity, targets: [communicationIdentifierModelConverter(targetParticipant.targetParticipant)], callbackUri: callbackUrl, operationContext: options.operationContext, @@ -287,7 +287,7 @@ export class CallAutomationClient { ): Promise { const request: CreateCallRequest = { source: this.sourceIdentity, - opsSource: this.oPSSourceIdentity, + opsSource: this.opsSourceIdentity, targets: targetParticipants.map((target) => communicationIdentifierModelConverter(target)), callbackUri: callbackUrl, operationContext: options.operationContext,