@microsoft/teams-js 2.0.0-beta.6-dev.13 → 2.0.0-beta.6-dev.14

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.
@@ -27,8 +27,6 @@ export namespace logs {
27
27
  * Hide from docs
28
28
  * --------
29
29
  * Information about all members in a chat
30
- *
31
- * @alpha
32
30
  */
33
31
  export interface ChatMembersInformation {
34
32
  members: ThreadMember[];
@@ -38,8 +36,6 @@ export interface ChatMembersInformation {
38
36
  * Hide from docs
39
37
  * --------
40
38
  * Information about a chat member
41
- *
42
- * @alpha
43
39
  */
44
40
  export interface ThreadMember {
45
41
  /**
@@ -48,16 +44,10 @@ export interface ThreadMember {
48
44
  */
49
45
  upn: string;
50
46
  }
51
- /**
52
- * @alpha
53
- */
54
47
  export enum NotificationTypes {
55
48
  fileDownloadStart = "fileDownloadStart",
56
49
  fileDownloadComplete = "fileDownloadComplete"
57
50
  }
58
- /**
59
- * @alpha
60
- */
61
51
  export interface ShowNotificationParameters {
62
52
  message: string;
63
53
  notificationType: NotificationTypes;
@@ -65,8 +55,6 @@ export interface ShowNotificationParameters {
65
55
  /**
66
56
  * @hidden
67
57
  * Hide from docs.
68
- * ------
69
- * @alpha
70
58
  */
71
59
  export enum ViewerActionTypes {
72
60
  view = "view",
@@ -77,8 +65,7 @@ export enum ViewerActionTypes {
77
65
  * @hidden
78
66
  * Hide from docs.
79
67
  * ------
80
- * User setting changes that can be subscribed to,
81
- * @alpha
68
+ * User setting changes that can be subscribed to
82
69
  */
83
70
  export enum UserSettingTypes {
84
71
  /**
@@ -95,8 +82,6 @@ export enum UserSettingTypes {
95
82
  /**
96
83
  * @hidden
97
84
  * Hide from docs.
98
- * ------
99
- * @alpha
100
85
  */
101
86
  export interface FilePreviewParameters {
102
87
  /**
@@ -176,7 +161,6 @@ export interface FilePreviewParameters {
176
161
  * Hide from docs
177
162
  * --------
178
163
  * Query parameters used when fetching team information
179
- * @alpha
180
164
  */
181
165
  export interface TeamInstanceParameters {
182
166
  /**
@@ -190,7 +174,6 @@ export interface TeamInstanceParameters {
190
174
  * Hide from docs
191
175
  * --------
192
176
  * Information on userJoined Teams
193
- * @alpha
194
177
  */
195
178
  export interface UserJoinedTeamsInformation {
196
179
  /**
@@ -347,8 +330,6 @@ export interface ConversationResponse {
347
330
  /**
348
331
  * @hidden
349
332
  * Namespace to interact with the conversational subEntities inside the tab
350
- *
351
- * @alpha
352
333
  */
353
334
  export namespace conversations {
354
335
  /**
@@ -793,9 +774,6 @@ export namespace legacy {
793
774
  function isSupported(): boolean;
794
775
  }
795
776
 
796
- /**
797
- * @alpha
798
- */
799
777
  export namespace meetingRoom {
800
778
  /**
801
779
  * @hidden
@@ -967,9 +945,6 @@ export namespace notifications {
967
945
  function isSupported(): boolean;
968
946
  }
969
947
 
970
- /**
971
- * @alpha
972
- */
973
948
  export namespace remoteCamera {
974
949
  /**
975
950
  * @hidden
@@ -1197,8 +1172,6 @@ export namespace remoteCamera {
1197
1172
  /**
1198
1173
  * @hidden
1199
1174
  * Namespace to interact with the application entities specific part of the SDK.
1200
- *
1201
- * @alpha
1202
1175
  */
1203
1176
  export namespace appEntity {
1204
1177
  /**
@@ -1206,8 +1179,6 @@ export namespace appEntity {
1206
1179
  * Hide from docs
1207
1180
  * --------
1208
1181
  * Information on an app entity
1209
- *
1210
- * @alpha
1211
1182
  */
1212
1183
  interface AppEntity {
1213
1184
  /**
@@ -1248,8 +1219,6 @@ export namespace appEntity {
1248
1219
  * @param callback Callback that will be triggered once the app entity information is available.
1249
1220
  * The callback takes two arguments: an SdkError in case something happened (i.e.
1250
1221
  * no permissions to execute the API) and the app entity configuration, if available
1251
- *
1252
- * @alpha
1253
1222
  */
1254
1223
  function selectAppEntity(threadId: string, categories: string[], subEntityId: string, callback: (sdkError?: SdkError, appEntity?: AppEntity) => void): void;
1255
1224
  function isSupported(): boolean;
@@ -1654,8 +1623,6 @@ export const errorNotSupportedOnPlatform: SdkError;
1654
1623
 
1655
1624
  /**
1656
1625
  * Represents information about tabs for an app
1657
- *
1658
- * @alpha
1659
1626
  */
1660
1627
  export interface TabInformation {
1661
1628
  teamTabs: TabInstance[];
@@ -2721,9 +2688,6 @@ export namespace app {
2721
2688
  function openLink(deepLink: string): Promise<void>;
2722
2689
  }
2723
2690
 
2724
- /**
2725
- * @alpha
2726
- */
2727
2691
  export namespace appInstallDialog {
2728
2692
  interface OpenAppInstallDialogParams {
2729
2693
  appId: string;
@@ -3232,9 +3196,6 @@ export namespace pages {
3232
3196
  }
3233
3197
  }
3234
3198
 
3235
- /**
3236
- * @alpha
3237
- */
3238
3199
  export interface IAppWindow {
3239
3200
  /**
3240
3201
  * Send a message to the AppWindow.
@@ -3820,9 +3781,6 @@ export namespace media {
3820
3781
  export {};
3821
3782
  }
3822
3783
 
3823
- /**
3824
- * @alpha
3825
- */
3826
3784
  export namespace location {
3827
3785
  interface LocationProps {
3828
3786
  /**
@@ -4209,9 +4167,6 @@ export namespace meeting {
4209
4167
  function registerSpeakingStateChangeHandler(handler: (speakingState: ISpeakingState) => void): void;
4210
4168
  }
4211
4169
 
4212
- /**
4213
- * @alpha
4214
- */
4215
4170
  export namespace monetization {
4216
4171
  /**
4217
4172
  * @hidden
@@ -4262,9 +4217,6 @@ export namespace monetization {
4262
4217
  function isSupported(): boolean;
4263
4218
  }
4264
4219
 
4265
- /**
4266
- * @alpha
4267
- */
4268
4220
  export namespace calendar {
4269
4221
  function openCalendarItem(openCalendarItemParams: OpenCalendarItemParams): Promise<void>;
4270
4222
  function composeMeeting(composeMeetingParams: ComposeMeetingParams): Promise<void>;
@@ -4281,9 +4233,6 @@ export namespace calendar {
4281
4233
  }
4282
4234
  }
4283
4235
 
4284
- /**
4285
- * @alpha
4286
- */
4287
4236
  export namespace mail {
4288
4237
  export function openMailItem(openMailItemParams: OpenMailItemParams): Promise<void>;
4289
4238
  export function composeMail(composeMailParams: ComposeMailParams): Promise<void>;
@@ -4322,8 +4271,6 @@ export namespace mail {
4322
4271
 
4323
4272
  /**
4324
4273
  * Namespace containing the set of APIs that support Teams-specific functionalities.
4325
- *
4326
- * @alpha
4327
4274
  */
4328
4275
  export namespace teamsCore {
4329
4276
  /**
@@ -4356,9 +4303,6 @@ export namespace teamsCore {
4356
4303
  function isSupported(): boolean;
4357
4304
  }
4358
4305
 
4359
- /**
4360
- * @alpha
4361
- */
4362
4306
  export namespace people {
4363
4307
  /**
4364
4308
  * Launches a people picker and allows the user to select one or more people from the list
@@ -4427,22 +4371,19 @@ export namespace people {
4427
4371
  }
4428
4372
 
4429
4373
  /**
4430
- * Namespace to video extensibility of the SDK.
4431
- *
4432
- * @alpha
4433
- *
4374
+ * Namespace to video extensibility of the SDK
4434
4375
  */
4435
4376
  export namespace video {
4436
4377
  /**
4437
- * Represents a video frame.
4378
+ * Represents a video frame
4438
4379
  */
4439
4380
  interface VideoFrame {
4440
4381
  /**
4441
- * Video frame width.
4382
+ * Video frame width
4442
4383
  */
4443
4384
  width: number;
4444
4385
  /**
4445
- * Video frame height.
4386
+ * Video frame height
4446
4387
  */
4447
4388
  height: number;
4448
4389
  /**
@@ -4469,7 +4410,7 @@ export namespace video {
4469
4410
  NV12 = 0
4470
4411
  }
4471
4412
  /**
4472
- * Video frame configuration supplied to Teams to customize the generated video frame parameters, like format.
4413
+ * Video frame configuration supplied to Teams to customize the generated video frame parameters, like format
4473
4414
  */
4474
4415
  interface VideoFrameConfig {
4475
4416
  /**
@@ -4482,7 +4423,7 @@ export namespace video {
4482
4423
  */
4483
4424
  enum EffectChangeType {
4484
4425
  /**
4485
- * current video effect changed.
4426
+ * current video effect changed
4486
4427
  */
4487
4428
  EffectChanged = 0,
4488
4429
  /**
@@ -4499,7 +4440,7 @@ export namespace video {
4499
4440
  */
4500
4441
  type VideoEffectCallBack = (effectId: string | undefined) => void;
4501
4442
  /**
4502
- * register to read the video frames in Permissions section.
4443
+ * Register to read the video frames in Permissions section
4503
4444
  */
4504
4445
  function registerForVideoFrame(frameCallback: VideoFrameCallback, config: VideoFrameConfig): void;
4505
4446
  /**
@@ -4512,15 +4453,12 @@ export namespace video {
4512
4453
  */
4513
4454
  function notifySelectedVideoEffectChanged(effectChangeType: EffectChangeType, effectId: string | undefined): void;
4514
4455
  /**
4515
- * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied.
4456
+ * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied
4516
4457
  */
4517
4458
  function registerForVideoEffect(callback: VideoEffectCallBack): void;
4518
4459
  function isSupported(): boolean;
4519
4460
  }
4520
4461
 
4521
- /**
4522
- * @alpha
4523
- */
4524
4462
  export namespace sharing {
4525
4463
  export const SharingAPIMessages: {
4526
4464
  shareWebContent: string;
@@ -4629,30 +4567,27 @@ export namespace stageView {
4629
4567
  function open(stageViewParams: StageViewParams, callback?: (sdkError?: SdkError) => void): void;
4630
4568
  }
4631
4569
 
4632
- /**
4633
- * @alpha
4634
- */
4635
4570
  export namespace call {
4636
- enum CallModalities {
4637
- Unknown = "unknown",
4638
- Audio = "audio",
4639
- Video = "video",
4640
- VideoBasedScreenSharing = "videoBasedScreenSharing",
4641
- Data = "data"
4642
- }
4643
- interface StartCallParams {
4644
- targets: string[];
4645
- requestedModalities?: CallModalities[];
4646
- source?: string;
4647
- }
4648
- /**
4649
- * Starts a call with other users
4650
- *
4651
- * @param startCallParams - Parameters for the call
4652
- * @returns If the call is accepted
4653
- */
4654
- function startCall(startCallParams: StartCallParams): Promise<boolean>;
4655
- function isSupported(): boolean;
4571
+ enum CallModalities {
4572
+ Unknown = "unknown",
4573
+ Audio = "audio",
4574
+ Video = "video",
4575
+ VideoBasedScreenSharing = "videoBasedScreenSharing",
4576
+ Data = "data"
4577
+ }
4578
+ interface StartCallParams {
4579
+ targets: string[];
4580
+ requestedModalities?: CallModalities[];
4581
+ source?: string;
4582
+ }
4583
+ /**
4584
+ * Starts a call with other users
4585
+ *
4586
+ * @param startCallParams - Parameters for the call
4587
+ * @returns If the call is accepted
4588
+ */
4589
+ function startCall(startCallParams: StartCallParams): Promise<boolean>;
4590
+ function isSupported(): boolean;
4656
4591
  }
4657
4592
 
4658
4593
  /**
@@ -1122,7 +1122,7 @@ __webpack_require__.d(__webpack_exports__, {
1122
1122
  });
1123
1123
 
1124
1124
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1125
- var version = "2.0.0-beta.6-dev.13";
1125
+ var version = "2.0.0-beta.6-dev.14";
1126
1126
  /**
1127
1127
  * @hidden
1128
1128
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -2912,8 +2912,6 @@ var menus;
2912
2912
 
2913
2913
  /**
2914
2914
  * Namespace containing the set of APIs that support Teams-specific functionalities.
2915
- *
2916
- * @alpha
2917
2915
  */
2918
2916
  var teamsCore;
2919
2917
  (function (teamsCore) {
@@ -4415,9 +4413,6 @@ var logs;
4415
4413
  })(logs || (logs = {}));
4416
4414
 
4417
4415
  ;// CONCATENATED MODULE: ./src/private/interfaces.ts
4418
- /**
4419
- * @alpha
4420
- */
4421
4416
  var NotificationTypes;
4422
4417
  (function (NotificationTypes) {
4423
4418
  NotificationTypes["fileDownloadStart"] = "fileDownloadStart";
@@ -4426,8 +4421,6 @@ var NotificationTypes;
4426
4421
  /**
4427
4422
  * @hidden
4428
4423
  * Hide from docs.
4429
- * ------
4430
- * @alpha
4431
4424
  */
4432
4425
  var ViewerActionTypes;
4433
4426
  (function (ViewerActionTypes) {
@@ -4439,8 +4432,7 @@ var ViewerActionTypes;
4439
4432
  * @hidden
4440
4433
  * Hide from docs.
4441
4434
  * ------
4442
- * User setting changes that can be subscribed to,
4443
- * @alpha
4435
+ * User setting changes that can be subscribed to
4444
4436
  */
4445
4437
  var UserSettingTypes;
4446
4438
  (function (UserSettingTypes) {
@@ -4465,8 +4457,6 @@ var UserSettingTypes;
4465
4457
  /**
4466
4458
  * @hidden
4467
4459
  * Namespace to interact with the conversational subEntities inside the tab
4468
- *
4469
- * @alpha
4470
4460
  */
4471
4461
  var conversations;
4472
4462
  (function (conversations) {
@@ -4633,9 +4623,6 @@ function createTeamsDeepLinkForAppInstallDialog(appId) {
4633
4623
 
4634
4624
 
4635
4625
 
4636
- /**
4637
- * @alpha
4638
- */
4639
4626
  var appInstallDialog;
4640
4627
  (function (appInstallDialog) {
4641
4628
  function openAppInstallDialog(openAPPInstallDialogParams) {
@@ -5487,9 +5474,6 @@ var media;
5487
5474
 
5488
5475
 
5489
5476
 
5490
- /**
5491
- * @alpha
5492
- */
5493
5477
  var location_location;
5494
5478
  (function (location_1) {
5495
5479
  function getLocation(props, callback) {
@@ -5825,9 +5809,6 @@ var meeting;
5825
5809
 
5826
5810
 
5827
5811
 
5828
- /**
5829
- * @alpha
5830
- */
5831
5812
  var monetization;
5832
5813
  (function (monetization) {
5833
5814
  /**
@@ -5870,9 +5851,6 @@ var monetization;
5870
5851
 
5871
5852
 
5872
5853
 
5873
- /**
5874
- * @alpha
5875
- */
5876
5854
  var calendar;
5877
5855
  (function (calendar) {
5878
5856
  function openCalendarItem(openCalendarItemParams) {
@@ -5914,9 +5892,6 @@ var calendar;
5914
5892
 
5915
5893
 
5916
5894
 
5917
- /**
5918
- * @alpha
5919
- */
5920
5895
  var mail;
5921
5896
  (function (mail) {
5922
5897
  function openMailItem(openMailItemParams) {
@@ -5964,9 +5939,6 @@ var mail;
5964
5939
 
5965
5940
 
5966
5941
 
5967
- /**
5968
- * @alpha
5969
- */
5970
5942
  var people;
5971
5943
  (function (people_1) {
5972
5944
  /**
@@ -6000,6 +5972,9 @@ var people;
6000
5972
  if (!validatePeoplePickerInput(peoplePickerInputs)) {
6001
5973
  throw { errorCode: ErrorCode.INVALID_ARGUMENTS };
6002
5974
  }
5975
+ if (!isSupported()) {
5976
+ throw errorNotSupportedOnPlatform;
5977
+ }
6003
5978
  resolve(sendAndHandleSdkError('people.selectPeople', peoplePickerInputs));
6004
5979
  });
6005
5980
  }
@@ -6016,10 +5991,7 @@ var people;
6016
5991
 
6017
5992
 
6018
5993
  /**
6019
- * Namespace to video extensibility of the SDK.
6020
- *
6021
- * @alpha
6022
- *
5994
+ * Namespace to video extensibility of the SDK
6023
5995
  */
6024
5996
  var video;
6025
5997
  (function (video) {
@@ -6036,7 +6008,7 @@ var video;
6036
6008
  var EffectChangeType;
6037
6009
  (function (EffectChangeType) {
6038
6010
  /**
6039
- * current video effect changed.
6011
+ * current video effect changed
6040
6012
  */
6041
6013
  EffectChangeType[EffectChangeType["EffectChanged"] = 0] = "EffectChanged";
6042
6014
  /**
@@ -6045,7 +6017,7 @@ var video;
6045
6017
  EffectChangeType[EffectChangeType["EffectDisabled"] = 1] = "EffectDisabled";
6046
6018
  })(EffectChangeType = video.EffectChangeType || (video.EffectChangeType = {}));
6047
6019
  /**
6048
- * register to read the video frames in Permissions section.
6020
+ * Register to read the video frames in Permissions section
6049
6021
  */
6050
6022
  function registerForVideoFrame(frameCallback, config) {
6051
6023
  ensureInitialized(FrameContexts.sidePanel);
@@ -6077,7 +6049,7 @@ var video;
6077
6049
  }
6078
6050
  video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
6079
6051
  /**
6080
- * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied.
6052
+ * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied
6081
6053
  */
6082
6054
  function registerForVideoEffect(callback) {
6083
6055
  ensureInitialized(FrameContexts.sidePanel);
@@ -6088,14 +6060,14 @@ var video;
6088
6060
  }
6089
6061
  video.registerForVideoEffect = registerForVideoEffect;
6090
6062
  /**
6091
- * sending notification to Teams client finished the video frame processing, now Teams client can render this video frame
6092
- * or pass the video frame to next one in video pipeline.
6063
+ * Sending notification to Teams client finished the video frame processing, now Teams client can render this video frame
6064
+ * or pass the video frame to next one in video pipeline
6093
6065
  */
6094
6066
  function notifyVideoFrameProcessed() {
6095
6067
  sendMessageToParent('video.videoFrameProcessed');
6096
6068
  }
6097
6069
  /**
6098
- * sending error notification to Teams client.
6070
+ * Sending error notification to Teams client
6099
6071
  */
6100
6072
  function notifyError(errorMessage) {
6101
6073
  sendMessageToParent('video.notifyError', [errorMessage]);
@@ -6113,9 +6085,6 @@ var video;
6113
6085
 
6114
6086
 
6115
6087
 
6116
- /**
6117
- * @alpha
6118
- */
6119
6088
  var sharing;
6120
6089
  (function (sharing) {
6121
6090
  sharing.SharingAPIMessages = {
@@ -6229,9 +6198,6 @@ var stageView;
6229
6198
 
6230
6199
 
6231
6200
 
6232
- /**
6233
- * @alpha
6234
- */
6235
6201
  var call;
6236
6202
  (function (call) {
6237
6203
  var CallModalities;
@@ -7403,9 +7369,6 @@ var legacy;
7403
7369
 
7404
7370
 
7405
7371
 
7406
- /**
7407
- * @alpha
7408
- */
7409
7372
  var meetingRoom;
7410
7373
  (function (meetingRoom) {
7411
7374
  /**
@@ -7537,9 +7500,6 @@ var notifications;
7537
7500
 
7538
7501
 
7539
7502
 
7540
- /**
7541
- * @alpha
7542
- */
7543
7503
  var remoteCamera;
7544
7504
  (function (remoteCamera) {
7545
7505
  /**
@@ -7771,8 +7731,6 @@ var remoteCamera;
7771
7731
  /**
7772
7732
  * @hidden
7773
7733
  * Namespace to interact with the application entities specific part of the SDK.
7774
- *
7775
- * @alpha
7776
7734
  */
7777
7735
  var appEntity;
7778
7736
  (function (appEntity_1) {
@@ -7788,8 +7746,6 @@ var appEntity;
7788
7746
  * @param callback Callback that will be triggered once the app entity information is available.
7789
7747
  * The callback takes two arguments: an SdkError in case something happened (i.e.
7790
7748
  * no permissions to execute the API) and the app entity configuration, if available
7791
- *
7792
- * @alpha
7793
7749
  */
7794
7750
  function selectAppEntity(threadId, categories, subEntityId, callback) {
7795
7751
  ensureInitialized(FrameContexts.content);