@azure/communication-react 1.19.0-alpha-202408270015 → 1.19.0-alpha-202408280014
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/communication-react.d.ts +121 -75
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-qEJmtx93.js → ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-qEJmtx93.js.map → ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BgnerjU-.js → RichTextSendBoxWrapper-ujBB-J3D.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BgnerjU-.js.map → RichTextSendBoxWrapper-ujBB-J3D.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-DejG4i9h.js → index-D_pIA4Nc.js} +673 -531
- package/dist/dist-cjs/communication-react/{index-DejG4i9h.js.map → index-D_pIA4Nc.js.map} +1 -1
- package/dist/dist-cjs/communication-react/index.js +3 -1
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +14 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +36 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/incomingCallStackSelector.d.ts +3 -3
- package/dist/dist-esm/calling-component-bindings/src/incomingCallStackSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +1 -3
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +0 -9
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +1 -2
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +2 -1
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +4 -4
- package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/IncomingCallStack.d.ts +4 -12
- package/dist/dist-esm/react-components/src/components/IncomingCallStack.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +17 -17
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +16 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +35 -20
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +18 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +6 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +16 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +14 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +5 -5
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +3 -2
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +4 -4
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.js +26 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.js +25 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/index.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/index.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -24,6 +24,7 @@ import { OnFetchProfileCallback } from './OnFetchProfileCallback';
|
|
|
24
24
|
import { VideoBackgroundEffectsDependency } from "../../../../../calling-component-bindings/src";
|
|
25
25
|
import { CallSurvey, CallSurveyResponse } from '@azure/communication-calling';
|
|
26
26
|
import { CallingSounds } from './CallAdapter';
|
|
27
|
+
import { DeepNoiseSuppressionEffectDependency } from "../../../../../calling-component-bindings/src";
|
|
27
28
|
type CallTypeOf<AgentType extends CallAgent | TeamsCallAgent> = AgentType extends CallAgent ? Call : TeamsCall;
|
|
28
29
|
/**
|
|
29
30
|
* @private
|
|
@@ -48,6 +49,7 @@ export declare class AzureCommunicationCallAdapter<AgentType extends CallAgent |
|
|
|
48
49
|
private onClientStateChange;
|
|
49
50
|
private originCall;
|
|
50
51
|
private onResolveVideoBackgroundEffectsDependency?;
|
|
52
|
+
private onResolveDeepNoiseSuppressionDependency?;
|
|
51
53
|
private get call();
|
|
52
54
|
private set call(value);
|
|
53
55
|
constructor(callClient: StatefulCallClient, locator: CallAdapterLocator, callAgent: AgentType, deviceManager: StatefulDeviceManager, options?: AzureCommunicationCallAdapterOptions | TeamsAdapterOptions);
|
|
@@ -84,6 +86,8 @@ export declare class AzureCommunicationCallAdapter<AgentType extends CallAgent |
|
|
|
84
86
|
stopVideoBackgroundEffects(): Promise<void>;
|
|
85
87
|
updateBackgroundPickerImages(backgroundImages: VideoBackgroundImage[]): void;
|
|
86
88
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground: VideoBackgroundEffect): void;
|
|
89
|
+
startNoiseSuppressionEffect(): Promise<void>;
|
|
90
|
+
stopNoiseSuppressionEffect(): Promise<void>;
|
|
87
91
|
startCall(participants: string[] | (MicrosoftTeamsAppIdentifier | /* @conditional-compile-remove(PSTN-calls) */ PhoneNumberIdentifier | /* @conditional-compile-remove(one-to-n-calling) */ CommunicationUserIdentifier | /* @conditional-compile-remove(teams-adhoc-call) */ MicrosoftTeamsUserIdentifier | UnknownIdentifier)[], options?: StartCallOptions): CallTypeOf<AgentType> | undefined;
|
|
88
92
|
private processNewCall;
|
|
89
93
|
private isBlurEffect;
|
|
@@ -213,6 +217,12 @@ export type CommonCallAdapterOptions = {
|
|
|
213
217
|
videoBackgroundImages?: VideoBackgroundImage[];
|
|
214
218
|
onResolveDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
|
215
219
|
};
|
|
220
|
+
/**
|
|
221
|
+
* `DeepNoiseSuppressionEffect` options to be used for noise suppression.
|
|
222
|
+
*/
|
|
223
|
+
deepNoiseSuppressionOptions?: {
|
|
224
|
+
onResolveDependency?: () => Promise<DeepNoiseSuppressionEffectDependency>;
|
|
225
|
+
};
|
|
216
226
|
/**
|
|
217
227
|
* Use this to fetch profile information which will override data in {@link CallAdapterState} like display name
|
|
218
228
|
* The onFetchProfile is fetch-and-forget one time action for each user, once a user profile is updated, the value will be cached
|
|
@@ -228,6 +238,11 @@ export type CommonCallAdapterOptions = {
|
|
|
228
238
|
* @beta
|
|
229
239
|
*/
|
|
230
240
|
reactionResources?: ReactionResources;
|
|
241
|
+
/**
|
|
242
|
+
* A phone number in E.164 format procured using Azure Communication Services that will be used to represent callers identity.
|
|
243
|
+
* E.164 numbers are formatted as [+] [country code] [phone number including area code]. For example, +14255550123 for a US phone number.
|
|
244
|
+
*/
|
|
245
|
+
alternateCallerId?: string;
|
|
231
246
|
};
|
|
232
247
|
/**
|
|
233
248
|
* Optional parameters to create {@link AzureCommunicationCallAdapter}
|
|
@@ -247,11 +262,6 @@ export type AzureCommunicationCallAdapterArgs = {
|
|
|
247
262
|
displayName: string;
|
|
248
263
|
credential: CommunicationTokenCredential;
|
|
249
264
|
locator: CallAdapterLocator;
|
|
250
|
-
/**
|
|
251
|
-
* A phone number in E.164 format procured using Azure Communication Services that will be used to represent callers identity.
|
|
252
|
-
* E.164 numbers are formatted as [+] [country code] [phone number including area code]. For example, +14255550123 for a US phone number.
|
|
253
|
-
*/
|
|
254
|
-
alternateCallerId?: string;
|
|
255
265
|
/**
|
|
256
266
|
* Optional parameters for the {@link AzureCommunicationCallAdapter} created
|
|
257
267
|
*/
|
|
@@ -346,7 +356,7 @@ export declare function createAzureCommunicationCallAdapter(args: AzureCommunica
|
|
|
346
356
|
*
|
|
347
357
|
* @internal
|
|
348
358
|
*/
|
|
349
|
-
export declare const _createAzureCommunicationCallAdapterInner: ({ userId, displayName, credential, locator, targetCallees,
|
|
359
|
+
export declare const _createAzureCommunicationCallAdapterInner: ({ userId, displayName, credential, locator, targetCallees, options, telemetryImplementationHint }: {
|
|
350
360
|
userId: CommunicationUserIdentifier;
|
|
351
361
|
displayName: string;
|
|
352
362
|
credential: CommunicationTokenCredential;
|
|
@@ -35,7 +35,7 @@ import { CallingSoundSubscriber } from './CallingSoundSubscriber';
|
|
|
35
35
|
/** Context of call, which is a centralized context for all state updates */
|
|
36
36
|
class CallContext {
|
|
37
37
|
constructor(clientState, isTeamsCall, isTeamsMeeting, isRoomsCall, options, targetCallees) {
|
|
38
|
-
var _a, _b, _c, _d;
|
|
38
|
+
var _a, _b, _c, _d, _e;
|
|
39
39
|
this.emitter = new EventEmitter();
|
|
40
40
|
this.state = {
|
|
41
41
|
isLocalPreviewMicrophoneEnabled: false,
|
|
@@ -50,17 +50,19 @@ class CallContext {
|
|
|
50
50
|
isTeamsCall,
|
|
51
51
|
isTeamsMeeting,
|
|
52
52
|
isRoomsCall,
|
|
53
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId:
|
|
53
|
+
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: options === null || options === void 0 ? void 0 : options.alternateCallerId,
|
|
54
54
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: clientState.environmentInfo,
|
|
55
55
|
/* @conditional-compile-remove(unsupported-browser) */ unsupportedBrowserVersionsAllowed: false,
|
|
56
56
|
videoBackgroundImages: (_b = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _b === void 0 ? void 0 : _b.videoBackgroundImages,
|
|
57
57
|
onResolveVideoEffectDependency: (_c = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _c === void 0 ? void 0 : _c.onResolveDependency,
|
|
58
|
+
/* @conditional-compile-remove(DNS) */
|
|
59
|
+
onResolveDeepNoiseSuppressionDependency: (_d = options === null || options === void 0 ? void 0 : options.deepNoiseSuppressionOptions) === null || _d === void 0 ? void 0 : _d.onResolveDependency,
|
|
58
60
|
selectedVideoBackgroundEffect: undefined,
|
|
59
61
|
cameraStatus: undefined,
|
|
60
62
|
sounds: options === null || options === void 0 ? void 0 : options.callingSounds,
|
|
61
63
|
reactions: options === null || options === void 0 ? void 0 : options.reactionResources
|
|
62
64
|
};
|
|
63
|
-
this.emitter.setMaxListeners((
|
|
65
|
+
this.emitter.setMaxListeners((_e = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _e !== void 0 ? _e : 50);
|
|
64
66
|
this.bindPublicMethods();
|
|
65
67
|
this.displayNameModifier = (options === null || options === void 0 ? void 0 : options.onFetchProfile)
|
|
66
68
|
? createProfileStateModifier(options.onFetchProfile, () => {
|
|
@@ -194,7 +196,7 @@ export class AzureCommunicationCallAdapter {
|
|
|
194
196
|
this._call = newCall;
|
|
195
197
|
}
|
|
196
198
|
constructor(callClient, locatorOrTargetCalless, callAgent, deviceManager, options) {
|
|
197
|
-
var _a, _b;
|
|
199
|
+
var _a, _b, _c;
|
|
198
200
|
this.participantSubscribers = new Map();
|
|
199
201
|
this.emitter = new EventEmitter();
|
|
200
202
|
this.isMyMutedChanged = () => {
|
|
@@ -225,6 +227,8 @@ export class AzureCommunicationCallAdapter {
|
|
|
225
227
|
});
|
|
226
228
|
const isRoomsCall = this.locator ? 'roomId' in this.locator : false;
|
|
227
229
|
this.onResolveVideoBackgroundEffectsDependency = (_b = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _b === void 0 ? void 0 : _b.onResolveDependency;
|
|
230
|
+
/* @conditional-compile-remove(DNS) */
|
|
231
|
+
this.onResolveDeepNoiseSuppressionDependency = (_c = options === null || options === void 0 ? void 0 : options.deepNoiseSuppressionOptions) === null || _c === void 0 ? void 0 : _c.onResolveDependency;
|
|
228
232
|
this.context = new CallContext(callClient.getState(), !!isTeamsCall, isTeamsMeeting, isRoomsCall, options, this.targetCallees);
|
|
229
233
|
this.context.onCallEnded((endCallData) => this.emitter.emit('callEnded', endCallData));
|
|
230
234
|
const onStateChange = (clientState) => {
|
|
@@ -256,7 +260,9 @@ export class AzureCommunicationCallAdapter {
|
|
|
256
260
|
this.context.updateClientState(clientState);
|
|
257
261
|
};
|
|
258
262
|
this.handlers = createHandlers(callClient, callAgent, deviceManager, undefined, {
|
|
259
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
263
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
264
|
+
/* @conditional-compile-remove(DNS) */
|
|
265
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
260
266
|
});
|
|
261
267
|
this.onClientStateChange = onStateChange;
|
|
262
268
|
this.subscribeDeviceManagerEvents();
|
|
@@ -357,6 +363,10 @@ export class AzureCommunicationCallAdapter {
|
|
|
357
363
|
this.startVideoBackgroundEffect.bind(this);
|
|
358
364
|
this.stopVideoBackgroundEffects.bind(this);
|
|
359
365
|
this.updateBackgroundPickerImages.bind(this);
|
|
366
|
+
/* @conditional-compile-remove(DNS) */
|
|
367
|
+
this.startNoiseSuppressionEffect.bind(this);
|
|
368
|
+
/* @conditional-compile-remove(DNS) */
|
|
369
|
+
this.stopNoiseSuppressionEffect.bind(this);
|
|
360
370
|
this.submitSurvey.bind(this);
|
|
361
371
|
this.startSpotlight.bind(this);
|
|
362
372
|
this.stopSpotlight.bind(this);
|
|
@@ -544,7 +554,9 @@ export class AzureCommunicationCallAdapter {
|
|
|
544
554
|
yield this.handlers.onHangUp(forEveryone);
|
|
545
555
|
this.unsubscribeCallEvents();
|
|
546
556
|
this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, this.call, {
|
|
547
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
557
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
558
|
+
/* @conditional-compile-remove(DNS) */
|
|
559
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
548
560
|
});
|
|
549
561
|
// We set the adapter.call object to undefined immediately when a call is ended.
|
|
550
562
|
// We do not set the context.callId to undefined because it is a part of the immutable data flow loop.
|
|
@@ -699,6 +711,18 @@ export class AzureCommunicationCallAdapter {
|
|
|
699
711
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
|
700
712
|
this.context.setSelectedVideoBackgroundEffect(selectedVideoBackground);
|
|
701
713
|
}
|
|
714
|
+
/* @conditional-compile-remove(DNS) */
|
|
715
|
+
startNoiseSuppressionEffect() {
|
|
716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
+
yield this.handlers.onStartNoiseSuppressionEffect();
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
/* @conditional-compile-remove(DNS) */
|
|
721
|
+
stopNoiseSuppressionEffect() {
|
|
722
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
723
|
+
yield this.handlers.onStopNoiseSuppressionEffect();
|
|
724
|
+
});
|
|
725
|
+
}
|
|
702
726
|
startCall(participants, options) {
|
|
703
727
|
var _a, _b;
|
|
704
728
|
if (_isInCall((_b = (_a = this.getState().call) === null || _a === void 0 ? void 0 : _a.state) !== null && _b !== void 0 ? _b : 'None')) {
|
|
@@ -736,7 +760,9 @@ export class AzureCommunicationCallAdapter {
|
|
|
736
760
|
// Resync state after callId is set
|
|
737
761
|
this.context.updateClientState(this.callClient.getState());
|
|
738
762
|
this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, this.call, {
|
|
739
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
763
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
764
|
+
/* @conditional-compile-remove(DNS) */
|
|
765
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
740
766
|
});
|
|
741
767
|
this.subscribeCallEvents();
|
|
742
768
|
}
|
|
@@ -1176,8 +1202,6 @@ export function createAzureCommunicationCallAdapter(args) {
|
|
|
1176
1202
|
credential: args.credential,
|
|
1177
1203
|
locator: args.locator,
|
|
1178
1204
|
targetCallees: args.targetCallees,
|
|
1179
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
1180
|
-
alternateCallerId: args.alternateCallerId,
|
|
1181
1205
|
options: args.options
|
|
1182
1206
|
});
|
|
1183
1207
|
});
|
|
@@ -1187,15 +1211,12 @@ export function createAzureCommunicationCallAdapter(args) {
|
|
|
1187
1211
|
*
|
|
1188
1212
|
* @internal
|
|
1189
1213
|
*/
|
|
1190
|
-
export const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter(void 0, [_a], void 0, function* ({ userId, displayName, credential, locator, targetCallees,
|
|
1191
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId, options, telemetryImplementationHint = 'Call' }) {
|
|
1214
|
+
export const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter(void 0, [_a], void 0, function* ({ userId, displayName, credential, locator, targetCallees, options, telemetryImplementationHint = 'Call' }) {
|
|
1192
1215
|
if (!_isValidIdentifier(userId)) {
|
|
1193
1216
|
throw new Error('Invalid identifier. Please provide valid identifier object.');
|
|
1194
1217
|
}
|
|
1195
1218
|
const callClient = _createStatefulCallClientInner({
|
|
1196
|
-
userId
|
|
1197
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
1198
|
-
alternateCallerId
|
|
1219
|
+
userId
|
|
1199
1220
|
}, undefined, telemetryImplementationHint);
|
|
1200
1221
|
const callAgent = yield callClient.createCallAgent(credential, {
|
|
1201
1222
|
displayName
|
|
@@ -1239,8 +1260,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
1239
1260
|
const locator = 'locator' in args ? args.locator : undefined;
|
|
1240
1261
|
const targetCallees = 'targetCallees' in args ? args.targetCallees : undefined;
|
|
1241
1262
|
const displayName = 'displayName' in args ? args.displayName : undefined;
|
|
1242
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
1243
|
-
const alternateCallerId = 'alternateCallerId' in args ? args.alternateCallerId : undefined;
|
|
1244
1263
|
const options = 'options' in args ? args.options : undefined;
|
|
1245
1264
|
// State update needed to rerender the parent component when a new adapter is created.
|
|
1246
1265
|
const [adapter, setAdapter] = useState(undefined);
|
|
@@ -1292,7 +1311,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
1292
1311
|
displayName: displayName,
|
|
1293
1312
|
locator,
|
|
1294
1313
|
userId: userId,
|
|
1295
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
|
|
1296
1314
|
options
|
|
1297
1315
|
}));
|
|
1298
1316
|
}
|
|
@@ -1302,7 +1320,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
1302
1320
|
displayName: displayName,
|
|
1303
1321
|
targetCallees,
|
|
1304
1322
|
userId: userId,
|
|
1305
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
|
|
1306
1323
|
options
|
|
1307
1324
|
}));
|
|
1308
1325
|
}
|
|
@@ -1356,8 +1373,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
1356
1373
|
locator,
|
|
1357
1374
|
userId,
|
|
1358
1375
|
displayName,
|
|
1359
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
1360
|
-
alternateCallerId,
|
|
1361
1376
|
options,
|
|
1362
1377
|
targetCallees
|
|
1363
1378
|
]);
|