@microsoft/teams-js 2.10.0-beta.1 → 2.10.0-beta.3

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/README.md CHANGED
@@ -8,7 +8,7 @@ This JavaScript library is part of the [Microsoft Teams developer platform](http
8
8
 
9
9
  See [instructions](../../README.md#Getting-Started) in the monorepo root for how to clone and build the repository.
10
10
 
11
- Whenever building or testing the Teams client library, you can run `yarn build` or `yarn test` from the packages/teams-js directory.
11
+ Whenever building or testing the Teams client library, you can run `pnpm build` or `pnpm test` from the packages/teams-js directory.
12
12
 
13
13
  ## Installation
14
14
 
@@ -18,9 +18,9 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
18
18
 
19
19
  `npm install --save @microsoft/teams-js`
20
20
 
21
- ### yarn
21
+ ### pnpm
22
22
 
23
- `yarn add @microsoft/teams-js`
23
+ `pnpm add @microsoft/teams-js`
24
24
 
25
25
  ### Production
26
26
 
@@ -30,7 +30,7 @@ You can reference these files directly [from here](https://res.cdn.office.net/te
30
30
 
31
31
  ### As a package
32
32
 
33
- Install either using npm or yarn.
33
+ Install either using npm or pnpm.
34
34
 
35
35
  **If you are using any dependency loader** such as [RequireJS](http://requirejs.org/) or [SystemJS](https://github.com/systemjs/systemjs) or module bundler such as [browserify](http://browserify.org/), [webpack](https://webpack.github.io/), you can use `import` syntax to import specific modules. For e.g.
36
36
 
@@ -3738,11 +3738,11 @@ export namespace app {
3738
3738
  */
3739
3739
  interface AppHostInfo {
3740
3740
  /**
3741
- * The name of the host client. Possible values are: Office, Orange, Outlook, Teams
3741
+ * Identifies which host is running your app
3742
3742
  */
3743
3743
  name: HostName;
3744
3744
  /**
3745
- * The type of the host client. Possible values are : android, ios, web, desktop, rigel
3745
+ * The client type on which the host is running
3746
3746
  */
3747
3747
  clientType: HostClientType;
3748
3748
  /**
@@ -3898,7 +3898,7 @@ export namespace app {
3898
3898
  isPSTNCallingAllowed?: boolean;
3899
3899
  /**
3900
3900
  * The license type for the current user. Possible values are:
3901
- * "Unknown", "Teacher", "Student", "Free", "SmbBusinessVoice", "SmbNonVoice", "FrontlineWorker"
3901
+ * "Unknown", "Teacher", "Student", "Free", "SmbBusinessVoice", "SmbNonVoice", "FrontlineWorker", "Anonymous"
3902
3902
  */
3903
3903
  licenseType?: string;
3904
3904
  /**
@@ -6382,24 +6382,54 @@ export namespace mail {
6382
6382
  Forward = "forward"
6383
6383
  }
6384
6384
  /**
6385
- * Base of a discriminated union between compose scenarios.
6385
+ * Foundational interface for all other mail compose interfaces
6386
+ * Used for holding the type of mail item being composed
6387
+ *
6388
+ * @see {@link ComposeMailType}
6386
6389
  */
6387
6390
  interface ComposeMailBase<T extends ComposeMailType> {
6388
6391
  type: T;
6389
6392
  }
6390
6393
  /**
6391
- * Interfaces for each type.
6394
+ * Parameters supplied when composing a new mail item
6392
6395
  */
6393
6396
  export interface ComposeNewParams extends ComposeMailBase<ComposeMailType.New> {
6397
+ /**
6398
+ * The To: recipients for the message
6399
+ */
6394
6400
  toRecipients?: string[];
6401
+ /**
6402
+ * The Cc: recipients for the message
6403
+ */
6395
6404
  ccRecipients?: string[];
6405
+ /**
6406
+ * The Bcc: recipients for the message
6407
+ */
6396
6408
  bccRecipients?: string[];
6409
+ /**
6410
+ * The subject of the message
6411
+ */
6397
6412
  subject?: string;
6413
+ /**
6414
+ * The body of the message
6415
+ */
6398
6416
  message?: string;
6399
6417
  }
6418
+ /**
6419
+ * Parameters supplied when composing a reply to or forward of a message
6420
+ *
6421
+ * @see {@link ComposeMailType}
6422
+ */
6400
6423
  export interface ComposeReplyOrForwardParams<T extends ComposeMailType> extends ComposeMailBase<T> {
6401
6424
  itemid: string;
6402
6425
  }
6426
+ /**
6427
+ * Parameters supplied to {@link composeMail} when composing a new mail item
6428
+ *
6429
+ * @see {@link ComposeNewParams}
6430
+ * @see {@link ComposeReplyOrForwardParams}
6431
+ * @see {@link ComposeMailType}
6432
+ */
6403
6433
  export type ComposeMailParams = ComposeNewParams | ComposeReplyOrForwardParams<ComposeMailType.Reply> | ComposeReplyOrForwardParams<ComposeMailType.ReplyAll> | ComposeReplyOrForwardParams<ComposeMailType.Forward>;
6404
6434
  export {};
6405
6435
  }
@@ -6738,11 +6768,11 @@ export namespace video {
6738
6768
  /**
6739
6769
  * Current video effect changed
6740
6770
  */
6741
- EffectChanged = 0,
6771
+ EffectChanged = "EffectChanged",
6742
6772
  /**
6743
6773
  * Disable the video effect
6744
6774
  */
6745
- EffectDisabled = 1
6775
+ EffectDisabled = "EffectDisabled"
6746
6776
  }
6747
6777
  /**
6748
6778
  * Video frame call back function definition