@types/office-js-preview 1.0.397 → 1.0.399

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.
@@ -8,7 +8,7 @@ This package contains type definitions for Office.js (https://github.com/OfficeD
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 29 Jun 2023 17:32:52 GMT
11
+ * Last updated: Fri, 07 Jul 2023 17:32:41 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -8838,6 +8838,8 @@ declare namespace Office {
8838
8838
  InformationalMessage = "informationalMessage",
8839
8839
  /**
8840
8840
  * The notification message is an error message.
8841
+ *
8842
+ * **Important**: Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
8841
8843
  */
8842
8844
  ErrorMessage = "errorMessage",
8843
8845
  /**
@@ -11273,13 +11275,13 @@ declare namespace Office {
11273
11275
  * Provides access to the optional attendees of an event. The type of object and level of access depend on the mode of the current item.
11274
11276
  *
11275
11277
  * The `optionalAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
11276
- * each optional attendee to the meeting. Collection size limits:
11278
+ * each optional attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
11277
11279
  *
11278
- * - Windows: 500 members
11280
+ * - Windows: 500 attendees
11279
11281
  *
11280
- * - Classic Mac UI: 100 members
11282
+ * - Android, classic Mac UI, iOS: 100 attendees
11281
11283
  *
11282
- * - New Mac UI, web browser, Android: No limit
11284
+ * - New Mac UI, web browser: No limit
11283
11285
  *
11284
11286
  * @remarks
11285
11287
  *
@@ -11321,13 +11323,13 @@ declare namespace Office {
11321
11323
  * Provides access to the required attendees of an event. The type of object and level of access depend on the mode of the current item.
11322
11324
  *
11323
11325
  * The `requiredAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
11324
- * each required attendee to the meeting. Collection size limits:
11326
+ * each required attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
11325
11327
  *
11326
- * - Windows: 500 members
11328
+ * - Windows: 500 attendees
11327
11329
  *
11328
- * - Classic Mac UI: 100 members
11330
+ * - Android, classic Mac UI, iOS: 100 attendees
11329
11331
  *
11330
- * - New Mac UI, web browser, Android: No limit
11332
+ * - New Mac UI, web browser: No limit
11331
11333
  *
11332
11334
  * @remarks
11333
11335
  *
@@ -12643,15 +12645,6 @@ declare namespace Office {
12643
12645
  /**
12644
12646
  * Adds or replaces the signature of the item body.
12645
12647
  *
12646
- * **Important**: In Outlook on the web, `setSignatureAsync` only works on messages.
12647
- *
12648
- * **Important**: If your add-in implements the
12649
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation feature using `LaunchEvent` in the manifest},
12650
- * and calls `setSignatureAsync` in the event handler, the following behavior applies.
12651
- *
12652
- * - When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
12653
- * if the user closes the form without making other edits, they won't be prompted to save changes.
12654
- *
12655
12648
  * @remarks
12656
12649
  * [Api set: Mailbox 1.10]
12657
12650
  *
@@ -12659,6 +12652,18 @@ declare namespace Office {
12659
12652
  *
12660
12653
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12661
12654
  *
12655
+ * **Important**:
12656
+ *
12657
+ * - In Outlook on the web, `setSignatureAsync` only works on messages.
12658
+ *
12659
+ * - This method is supported in Message Compose on Outlook on Android and on iOS. For a sample scenario, see
12660
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
12661
+ *
12662
+ * - The behavior of `setSignatureAsync` differs if you call it in the event handler of an add-in that implements the
12663
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation feature using `LaunchEvent` in the manifest}.
12664
+ * When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
12665
+ * if the user closes the form without making other edits, they won't be prompted to save changes.
12666
+ *
12662
12667
  * **Errors**:
12663
12668
  *
12664
12669
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 30,000 characters.
@@ -12677,15 +12682,6 @@ declare namespace Office {
12677
12682
  /**
12678
12683
  * Adds or replaces the signature of the item body.
12679
12684
  *
12680
- * **Important**: In Outlook on the web, `setSignatureAsync` only works on messages.
12681
- *
12682
- * **Important**: If your add-in implements the
12683
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation feature using `LaunchEvent` in the manifest},
12684
- * and calls `setSignatureAsync` in the event handler, the following behavior applies.
12685
- *
12686
- * - When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
12687
- * if the user closes the form without making other edits, they won't be prompted to save changes.
12688
- *
12689
12685
  * @remarks
12690
12686
  * [Api set: Mailbox 1.10]
12691
12687
  *
@@ -12693,6 +12689,18 @@ declare namespace Office {
12693
12689
  *
12694
12690
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12695
12691
  *
12692
+ * **Important**:
12693
+ *
12694
+ * - In Outlook on the web, `setSignatureAsync` only works on messages.
12695
+ *
12696
+ * - This method is supported in Message Compose on Outlook on Android and on iOS. For a sample scenario, see
12697
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
12698
+ *
12699
+ * - The behavior of `setSignatureAsync` differs if you call it in the event handler of an add-in that implements the
12700
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation feature using `LaunchEvent` in the manifest}.
12701
+ * When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
12702
+ * if the user closes the form without making other edits, they won't be prompted to save changes.
12703
+ *
12696
12704
  * **Errors**:
12697
12705
  *
12698
12706
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 30,000 characters.
@@ -13621,6 +13629,9 @@ declare namespace Office {
13621
13629
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
13622
13630
  *
13623
13631
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13632
+ *
13633
+ * **Important**: This interface is supported in Outlook on Android and on iOS. For a sample scenario, see
13634
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
13624
13635
  */
13625
13636
  interface From {
13626
13637
  /**
@@ -13637,7 +13648,12 @@ declare namespace Office {
13637
13648
  *
13638
13649
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13639
13650
  *
13640
- * **Important**: A `recipientType` property value isn't returned by the getAsync method.
13651
+ * **Important**:
13652
+ *
13653
+ * - This method is supported in Outlook on Android and on iOS. For a sample scenario, see
13654
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
13655
+ *
13656
+ * - A `recipientType` property value isn't returned by the `getAsync` method.
13641
13657
  * The email sender is always a user whose email address is on the Exchange server.
13642
13658
  *
13643
13659
  * @param options - An object literal that contains one or more of the following properties:-
@@ -13661,7 +13677,12 @@ declare namespace Office {
13661
13677
  *
13662
13678
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13663
13679
  *
13664
- * **Important**: A `recipientType` property value isn't returned by the getAsync method.
13680
+ * **Important**:
13681
+ *
13682
+ * - This method is supported in Outlook on Android and on iOS. For a sample scenario, see
13683
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
13684
+ *
13685
+ * - A `recipientType` property value isn't returned by the `getAsync` method.
13665
13686
  * The email sender is always a user whose email address is on the Exchange server.
13666
13687
  *
13667
13688
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
@@ -15347,6 +15368,9 @@ declare namespace Office {
15347
15368
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
15348
15369
  *
15349
15370
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
15371
+ *
15372
+ * **Important**: This property is supported in Outlook on Android and on iOS. For a sample scenario, see
15373
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
15350
15374
  */
15351
15375
  from: From;
15352
15376
  /**
@@ -15550,9 +15574,6 @@ declare namespace Office {
15550
15574
  *
15551
15575
  * You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
15552
15576
  *
15553
- * **Note**: If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
15554
- * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
15555
- *
15556
15577
  * @remarks
15557
15578
  * [Api set: Mailbox 1.8]
15558
15579
  *
@@ -15560,6 +15581,18 @@ declare namespace Office {
15560
15581
  *
15561
15582
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
15562
15583
  *
15584
+ * **Important**:
15585
+ *
15586
+ * - Adding an inline Base64 file to a messsage in compose mode is supported in Outlook on Android and on iOS.
15587
+ *
15588
+ * - If you're using a data URL API (for example, `readAsDataURL`), you need to strip out the data URL prefix, then send the rest of the string to this API.
15589
+ * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
15590
+ *
15591
+ * - If you're adding an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the
15592
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
15593
+ * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
15594
+ * For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
15595
+ *
15563
15596
  * **Errors**:
15564
15597
  *
15565
15598
  * - `AttachmentSizeExceeded`: The attachment is larger than allowed.
@@ -15568,11 +15601,6 @@ declare namespace Office {
15568
15601
  *
15569
15602
  * - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
15570
15603
  *
15571
- * **Note**: If you're adding an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the
15572
- * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
15573
- * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
15574
- * For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
15575
- *
15576
15604
  * @param base64File - The Base64-encoded content of an image or file to be added to an email or event. The maximum length of the encoded string is 27,892,122 characters (about 25 MB).
15577
15605
  * @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
15578
15606
  * @param options - An object literal that contains one or more of the following properties:-
@@ -15591,9 +15619,6 @@ declare namespace Office {
15591
15619
  *
15592
15620
  * You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
15593
15621
  *
15594
- * **Note**: If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
15595
- * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
15596
- *
15597
15622
  * @remarks
15598
15623
  * [Api set: Mailbox 1.8]
15599
15624
  *
@@ -15601,6 +15626,18 @@ declare namespace Office {
15601
15626
  *
15602
15627
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
15603
15628
  *
15629
+ * **Important**:
15630
+ *
15631
+ * - Adding an inline Base64 file to a messsage in compose mode is supported in Outlook on Android and on iOS.
15632
+ *
15633
+ * - If you're using a data URL API (for example, `readAsDataURL`), you need to strip out the data URL prefix, then send the rest of the string to this API.
15634
+ * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
15635
+ *
15636
+ * - If you're adding an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the
15637
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
15638
+ * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
15639
+ * For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
15640
+ *
15604
15641
  * **Errors**:
15605
15642
  *
15606
15643
  * - `AttachmentSizeExceeded`: The attachment is larger than allowed.
@@ -15609,11 +15646,6 @@ declare namespace Office {
15609
15646
  *
15610
15647
  * - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
15611
15648
  *
15612
- * **Note**: If you're adding an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the
15613
- * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
15614
- * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
15615
- * For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
15616
- *
15617
15649
  * @param base64File - The Base64-encoded content of an image or file to be added to an email or event. The maximum length of the encoded string is 27,892,122 characters (about 25 MB).
15618
15650
  * @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
15619
15651
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
@@ -15823,10 +15855,15 @@ declare namespace Office {
15823
15855
  /**
15824
15856
  * Disables the Outlook client signature.
15825
15857
  *
15826
- * For Windows and Mac rich clients, this API sets the signature under the "New Message" and "Replies/Forwards" sections
15827
- * for the sending account to "(none)", effectively disabling the signature.
15828
- * For Outlook on the web, the API should disable the signature option for new mails, replies, and forwards.
15829
- * If the signature is selected, this API call should disable it.
15858
+ * The behavior of this method depends on which client the add-in is running.
15859
+ *
15860
+ * - In Outlook on Windows and on Mac, the signature under the **New messages** and **Replies/forwards** sections
15861
+ * of the sending account is set to **(none)**.
15862
+ *
15863
+ * - In Outlook on the web, the signature option for new mails, replies, and forwards is disabled.
15864
+ * A signature that's selected is also disabled by the method.
15865
+ *
15866
+ * - In Outlook on Android and on iOS, the signature saved on the mobile device is cleared.
15830
15867
  *
15831
15868
  * @remarks
15832
15869
  * [Api set: Mailbox 1.10]
@@ -15835,6 +15872,8 @@ declare namespace Office {
15835
15872
  *
15836
15873
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
15837
15874
  *
15875
+ * **Important**: This method is supported in Message Compose on Outlook on Android and on iOS.
15876
+ *
15838
15877
  * @param options - An object literal that contains one or more of the following properties:-
15839
15878
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
15840
15879
  * @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
@@ -15844,10 +15883,15 @@ declare namespace Office {
15844
15883
  /**
15845
15884
  * Disables the Outlook client signature.
15846
15885
  *
15847
- * For Windows and Mac rich clients, this API sets the signature under the "New Message" and "Replies/Forwards" sections
15848
- * for the sending account to "(none)", effectively disabling the signature.
15849
- * For Outlook on the web, the API should disable the signature option for new mails, replies, and forwards.
15850
- * If the signature is selected, this API call should disable it.
15886
+ * The behavior of this method depends on which client the add-in is running.
15887
+ *
15888
+ * - In Outlook on Windows and on Mac, the signature under the **New messages** and **Replies/forwards** sections
15889
+ * of the sending account is set to **(none)**.
15890
+ *
15891
+ * - In Outlook on the web, the signature option for new mails, replies, and forwards is disabled.
15892
+ * A signature that's selected is also disabled by the method.
15893
+ *
15894
+ * - In Outlook on Android and on iOS, the signature saved on the mobile device is cleared.
15851
15895
  *
15852
15896
  * @remarks
15853
15897
  * [Api set: Mailbox 1.10]
@@ -15856,6 +15900,8 @@ declare namespace Office {
15856
15900
  *
15857
15901
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
15858
15902
  *
15903
+ * **Important**: This method is supported in Message Compose in Outlook on Android and on iOS.
15904
+ *
15859
15905
  * @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
15860
15906
  * `asyncResult`, which is an `Office.AsyncResult` object.
15861
15907
  */
@@ -15963,6 +16009,8 @@ declare namespace Office {
15963
16009
  *
15964
16010
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
15965
16011
  *
16012
+ * **Important**: This method is supported in Outlook on Android and on iOS.
16013
+ *
15966
16014
  * @param options - An object literal that contains one or more of the following properties:-
15967
16015
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
15968
16016
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
@@ -15984,6 +16032,8 @@ declare namespace Office {
15984
16032
  *
15985
16033
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
15986
16034
  *
16035
+ * **Important**: This method is supported in Outlook on Android and on iOS.
16036
+ *
15987
16037
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
15988
16038
  * type `Office.AsyncResult`. On success, the `asyncResult.value` property contains an object with the item's compose type
15989
16039
  * and coercion type.
@@ -16551,15 +16601,15 @@ declare namespace Office {
16551
16601
  * current item.
16552
16602
  *
16553
16603
  * The `cc` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
16554
- * each recipient listed on the **Cc** line of the message. Collection size limits:
16604
+ * each recipient listed on the **Cc** line of the message. The maximum number of recipients returned varies per Outlook client.
16555
16605
  *
16556
- * - Windows: 500 members
16606
+ * - Windows: 500 recipients
16557
16607
  *
16558
- * - Classic Mac UI: 100 members
16608
+ * - Android, classic Mac UI, iOS: 100 recipients
16559
16609
  *
16560
- * - Web browser: 20 members
16610
+ * - Web browser: 20 recipients
16561
16611
  *
16562
- * - New Mac UI, Android: No limit
16612
+ * - New Mac UI: No limit
16563
16613
  *
16564
16614
  * @remarks
16565
16615
  *
@@ -16862,15 +16912,15 @@ declare namespace Office {
16862
16912
  * current item.
16863
16913
  *
16864
16914
  * The `to` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
16865
- * each recipient listed on the **To** line of the message. Collection size limits:
16915
+ * each recipient listed on the **To** line of the message. The maximum number of recipients returned varies per Outlook client.
16866
16916
  *
16867
- * - Windows: 500 members
16917
+ * - Windows: 500 recipients
16868
16918
  *
16869
- * - Classic Mac UI: 100 members
16919
+ * - Android, classic Mac UI, iOS: 100 recipients
16870
16920
  *
16871
- * - Web browser: 20 members
16921
+ * - Web browser: 20 recipients
16872
16922
  *
16873
- * - New Mac UI, Android: No limit
16923
+ * - New Mac UI: No limit
16874
16924
  *
16875
16925
  * @remarks
16876
16926
  *
@@ -17663,6 +17713,8 @@ declare namespace Office {
17663
17713
  * Including them will result in an `ArgumentException`.
17664
17714
  *
17665
17715
  * If type is `ProgressIndicator`, the developer should remove or replace the progress indicator when the action is complete.
17716
+ *
17717
+ * **Important**: Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
17666
17718
  */
17667
17719
  type: MailboxEnums.ItemNotificationMessageType | string;
17668
17720
  /**
@@ -17716,6 +17768,13 @@ declare namespace Office {
17716
17768
  *
17717
17769
  * There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
17718
17770
  *
17771
+ * @remarks
17772
+ * [Api set: Mailbox 1.3]
17773
+ *
17774
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17775
+ *
17776
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
17777
+ *
17719
17778
  * **Important**:
17720
17779
  *
17721
17780
  * - Only one notification of type {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
@@ -17723,12 +17782,7 @@ declare namespace Office {
17723
17782
  *
17724
17783
  * - In modern Outlook on the web, you can add an `InsightMessage` notification only in Compose mode.
17725
17784
  *
17726
- * @remarks
17727
- * [Api set: Mailbox 1.3]
17728
- *
17729
- * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17730
- *
17731
- * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
17785
+ * - Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
17732
17786
  *
17733
17787
  * @param key - A developer-specified key used to reference this notification message.
17734
17788
  * Developers can use it to modify this message later. It can't be longer than 32 characters.
@@ -17745,6 +17799,13 @@ declare namespace Office {
17745
17799
  *
17746
17800
  * There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
17747
17801
  *
17802
+ * @remarks
17803
+ * [Api set: Mailbox 1.3]
17804
+ *
17805
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17806
+ *
17807
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
17808
+ *
17748
17809
  * **Important**:
17749
17810
  *
17750
17811
  * - Only one notification of type {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
@@ -17752,12 +17813,7 @@ declare namespace Office {
17752
17813
  *
17753
17814
  * - In modern Outlook on the web, you can add an `InsightMessage` notification only in Compose mode.
17754
17815
  *
17755
- * @remarks
17756
- * [Api set: Mailbox 1.3]
17757
- *
17758
- * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17759
- *
17760
- * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
17816
+ * - Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
17761
17817
  *
17762
17818
  * @param key - A developer-specified key used to reference this notification message.
17763
17819
  * Developers can use it to modify this message later. It can't be longer than 32 characters.
@@ -17992,23 +18048,6 @@ declare namespace Office {
17992
18048
  /**
17993
18049
  * Adds a recipient list to the existing recipients for an appointment or message.
17994
18050
  *
17995
- * The recipients parameter can be an array of one of the following:
17996
- *
17997
- * - Strings containing SMTP email addresses
17998
- *
17999
- * - {@link Office.EmailUser | EmailUser} objects
18000
- *
18001
- * - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
18002
- *
18003
- * Maximum number that can be added:
18004
- *
18005
- * - Windows: 100 recipients.
18006
- * **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
18007
- *
18008
- * - Classic Mac UI, web browser: 100 recipients
18009
- *
18010
- * - New Mac UI, Android: No limit
18011
- *
18012
18051
  * @remarks
18013
18052
  * [Api set: Mailbox 1.1]
18014
18053
  *
@@ -18016,11 +18055,23 @@ declare namespace Office {
18016
18055
  *
18017
18056
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
18018
18057
  *
18058
+ * **Important**: With the `addAsync` method, you can add a maximum of 100 recipients to a mail item in Outlook on Windows, on Mac (classic UI),
18059
+ * on the web, on Android, and on iOS. However, take note of the following:
18060
+ *
18061
+ * - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
18062
+ * If you need to add more than 100 recipients to a mail item, you can call `addAsync` repeatedly, but be mindful of the recipient limit of the field.
18063
+ *
18064
+ * - In Outlook on Android and on iOS, the `addAsync` method isn't supported in Message Compose mode. Only the Appointment Organizer mode is
18065
+ * supported.
18066
+ *
18067
+ * There's no recipient limit if you call `addAsync` in Outlook on Mac (new UI).
18068
+ *
18019
18069
  * **Errors**:
18020
18070
  *
18021
18071
  * - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
18022
18072
  *
18023
- * @param recipients - The recipients to add to the recipients list.
18073
+ * @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
18074
+ * {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
18024
18075
  * @param options - An object literal that contains one or more of the following properties:-
18025
18076
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
18026
18077
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
@@ -18030,23 +18081,6 @@ declare namespace Office {
18030
18081
  /**
18031
18082
  * Adds a recipient list to the existing recipients for an appointment or message.
18032
18083
  *
18033
- * The recipients parameter can be an array of one of the following:
18034
- *
18035
- * - Strings containing SMTP email addresses
18036
- *
18037
- * - {@link Office.EmailUser | EmailUser} objects
18038
- *
18039
- * - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
18040
- *
18041
- * Maximum number that can be added:
18042
- *
18043
- * - Windows: 100 recipients.
18044
- * **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
18045
- *
18046
- * - Classic Mac UI, web browser: 100 recipients
18047
- *
18048
- * - New Mac UI, Android: No limit
18049
- *
18050
18084
  * @remarks
18051
18085
  * [Api set: Mailbox 1.1]
18052
18086
  *
@@ -18054,11 +18088,23 @@ declare namespace Office {
18054
18088
  *
18055
18089
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
18056
18090
  *
18091
+ * **Important**: With the `addAsync` method, you can add a maximum of 100 recipients to a mail item in Outlook on Windows, on Mac (classic UI),
18092
+ * on the web, on Android, and on iOS. However, take note of the following:
18093
+ *
18094
+ * - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
18095
+ * If you need to add more than 100 recipients to a mail item, you can call `addAsync` repeatedly, but be mindful of the recipient limit of the field.
18096
+ *
18097
+ * - In Outlook on Android and on iOS, the `addAsync` method isn't supported in Message Compose mode. Only the Appointment Organizer mode is
18098
+ * supported.
18099
+ *
18100
+ * There's no recipient limit if you call `addAsync` in Outlook on Mac (new UI).
18101
+ *
18057
18102
  * **Errors**:
18058
18103
  *
18059
18104
  * - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
18060
18105
  *
18061
- * @param recipients - The recipients to add to the recipients list.
18106
+ * @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
18107
+ * {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
18062
18108
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
18063
18109
  * of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
18064
18110
  */
@@ -18066,54 +18112,51 @@ declare namespace Office {
18066
18112
  /**
18067
18113
  * Gets a recipient list for an appointment or message.
18068
18114
  *
18069
- * When the call completes, the `asyncResult.value` property will contain an array of {@link Office.EmailAddressDetails | EmailAddressDetails}
18070
- * objects. Collection size limits:
18071
- *
18072
- * - Windows, classic Mac UI, web browser: 500 members
18073
- *
18074
- * - New Mac UI, Android: No limit
18075
- *
18076
18115
  * @remarks
18077
18116
  * [Api set: Mailbox 1.1]
18078
18117
  *
18079
18118
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
18080
18119
  *
18081
18120
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
18082
- *
18083
- * **Important**: In Outlook on the web and on Windows, if a user creates a new message by activating a contact's email address link from their contact
18084
- * or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
18085
- * `EmailAddressDetails` object instead of the contact's saved name. For more details, refer to the
18086
- * {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
18087
- *
18088
- * **Important**: The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
18089
- *
18121
+ *
18122
+ * **Important**:
18123
+ *
18124
+ * The maximum number of recipients returned by this method varies per Outlook client.
18125
+ *
18126
+ * - Windows, web browser, Mac (classic UI): 500 recipients
18127
+ *
18128
+ * - Android, iOS: 100 recipients
18129
+ *
18130
+ * - Mac (new UI): No limit
18131
+ *
18132
+ * The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
18133
+ *
18090
18134
  * - If the recipient has a saved entry in the sender's address book, Outlook resolves the email address to the recipient's saved display name.
18091
- *
18135
+ *
18092
18136
  * - A Teams meeting status icon appears before the recipient's name or email address.
18093
- *
18137
+ *
18094
18138
  * - A semicolon appears after the recipient's name or email address.
18095
- *
18139
+ *
18096
18140
  * - The recipient's name or email address is underlined or enclosed in a box.
18097
- *
18098
- * To resolve an email address once it's added to a mail item, the sender must use the **Tab** key or select a suggested contact or email address from
18141
+ *
18142
+ * To resolve an email address once it's added to a mail item, the sender must use the **Tab** key or select a suggested contact or email address from
18099
18143
  * the auto-complete list.
18100
18144
  *
18145
+ * In Outlook on the web and on Windows, if a user creates a new message by activating a contact's email address link from their contact
18146
+ * or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
18147
+ * {@link Office.EmailAddressDetails | EmailAddressDetails} object instead of the contact's saved name. For more details, see
18148
+ * {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
18149
+ *
18101
18150
  * @param options - An object literal that contains one or more of the following properties:-
18102
18151
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
18103
- * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
18104
- * of type `Office.AsyncResult`. The `value` property of the result is an array of `EmailAddressDetails` objects.
18152
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
18153
+ * of type `Office.AsyncResult`. The `asyncResult.value` property of the result is an array of
18154
+ * {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
18105
18155
  */
18106
18156
  getAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
18107
18157
  /**
18108
18158
  * Gets a recipient list for an appointment or message.
18109
18159
  *
18110
- * When the call completes, the `asyncResult.value` property will contain an array of {@link Office.EmailAddressDetails | EmailAddressDetails}
18111
- * objects. Collection size limits:
18112
- *
18113
- * - Windows, classic Mac UI, web browser: 500 members
18114
- *
18115
- * - New Mac UI, Android: No limit
18116
- *
18117
18160
  * @remarks
18118
18161
  * [Api set: Mailbox 1.1]
18119
18162
  *
@@ -18121,26 +18164,37 @@ declare namespace Office {
18121
18164
  *
18122
18165
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
18123
18166
  *
18124
- * **Important**: In Outlook on the web and on Windows, if a user creates a new message by activating a contact's email address link from their contact
18125
- * or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
18126
- * `EmailAddressDetails` object instead of the contact's saved name. For more details, refer to the
18127
- * {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
18128
- *
18129
- * **Important**: The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
18130
- *
18167
+ * **Important**:
18168
+ *
18169
+ * The maximum number of recipients returned by this method varies per Outlook client.
18170
+ *
18171
+ * - Windows, web browser, Mac (classic UI): 500 recipients
18172
+ *
18173
+ * - Android, iOS: 100 recipients
18174
+ *
18175
+ * - Mac (new UI): No limit
18176
+ *
18177
+ * The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
18178
+ *
18131
18179
  * - If the recipient has a saved entry in the sender's address book, Outlook resolves the email address to the recipient's saved display name.
18132
- *
18180
+ *
18133
18181
  * - A Teams meeting status icon appears before the recipient's name or email address.
18134
- *
18182
+ *
18135
18183
  * - A semicolon appears after the recipient's name or email address.
18136
- *
18184
+ *
18137
18185
  * - The recipient's name or email address is underlined or enclosed in a box.
18138
- *
18139
- * To resolve an email address once it's added to a mail item, the sender must use the **Tab** key or select a suggested contact or email address from
18186
+ *
18187
+ * To resolve an email address once it's added to a mail item, the sender must use the **Tab** key or select a suggested contact or email address from
18140
18188
  * the auto-complete list.
18141
18189
  *
18142
- * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
18143
- * of type `Office.AsyncResult`. The `value` property of the result is an array of `EmailAddressDetails` objects.
18190
+ * In Outlook on the web and on Windows, if a user creates a new message by activating a contact's email address link from their contact
18191
+ * or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
18192
+ * {@link Office.EmailAddressDetails | EmailAddressDetails} object instead of the contact's saved name. For more details, see
18193
+ * {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
18194
+ *
18195
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
18196
+ * of type `Office.AsyncResult`. The `asyncResult.value` property of the result is an array of
18197
+ * {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
18144
18198
  */
18145
18199
  getAsync(callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
18146
18200
  /**
@@ -18148,23 +18202,6 @@ declare namespace Office {
18148
18202
  *
18149
18203
  * The `setAsync` method overwrites the current recipient list.
18150
18204
  *
18151
- * The recipients parameter can be an array of one of the following:
18152
- *
18153
- * - Strings containing SMTP email addresses
18154
- *
18155
- * - {@link Office.EmailUser | EmailUser} objects
18156
- *
18157
- * - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
18158
- *
18159
- * Maximum number that can be set:
18160
- *
18161
- * - Windows: 100 recipients.
18162
- * **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
18163
- *
18164
- * - Classic Mac UI, web browser: 100 recipients
18165
- *
18166
- * - New Mac UI, Android: No limit
18167
- *
18168
18205
  * @remarks
18169
18206
  * [Api set: Mailbox 1.1]
18170
18207
  *
@@ -18172,11 +18209,23 @@ declare namespace Office {
18172
18209
  *
18173
18210
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
18174
18211
  *
18212
+ * **Important**: With the `setAsync` method, you can set a maximum of 100 recipients in Outlook on Windows, on Mac (classic UI),
18213
+ * on the web, on Android, and on iOS. However, take note of the following:
18214
+ *
18215
+ * - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
18216
+ * If you need to set more than 100 recipients, you can call `setAsync` repeatedly, but be mindful of the recipient limit of the field.
18217
+ *
18218
+ * - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
18219
+ * supported.
18220
+ *
18221
+ * There's no recipient limit if you call `setAsync` in Outlook on Mac (new UI).
18222
+ *
18175
18223
  * **Errors**:
18176
18224
  *
18177
18225
  * - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
18178
18226
  *
18179
- * @param recipients - The recipients to add to the recipients list.
18227
+ * @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
18228
+ * {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
18180
18229
  * @param options - An object literal that contains one or more of the following properties:-
18181
18230
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
18182
18231
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
@@ -18189,23 +18238,6 @@ declare namespace Office {
18189
18238
  *
18190
18239
  * The `setAsync` method overwrites the current recipient list.
18191
18240
  *
18192
- * The recipients parameter can be an array of one of the following:
18193
- *
18194
- * - Strings containing SMTP email addresses
18195
- *
18196
- * - {@link Office.EmailUser | EmailUser} objects
18197
- *
18198
- * - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
18199
- *
18200
- * Maximum number that can be set:
18201
- *
18202
- * - Windows: 100 recipients.
18203
- * **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
18204
- *
18205
- * - Classic Mac UI, web browser: 100 recipients
18206
- *
18207
- * - New Mac UI, Android: No limit
18208
- *
18209
18241
  * @remarks
18210
18242
  * [Api set: Mailbox 1.1]
18211
18243
  *
@@ -18213,11 +18245,23 @@ declare namespace Office {
18213
18245
  *
18214
18246
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
18215
18247
  *
18248
+ * **Important**: With the `setAsync` method, you can set a maximum of 100 recipients in Outlook on Windows, on Mac (classic UI),
18249
+ * on the web, on Android, and on iOS. However, take note of the following:
18250
+ *
18251
+ * - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
18252
+ * If you need to set more than 100 recipients, you can call `setAsync` repeatedly, but be mindful of the recipient limit of the field.
18253
+ *
18254
+ * - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
18255
+ * supported.
18256
+ *
18257
+ * There's no recipient limit if you call `setAsync` in Outlook on Mac (new UI).
18258
+ *
18216
18259
  * **Errors**:
18217
18260
  *
18218
18261
  * - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
18219
18262
  *
18220
- * @param recipients - The recipients to add to the recipients list.
18263
+ * @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
18264
+ * {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
18221
18265
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
18222
18266
  * type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
18223
18267
  * indicates any error that occurred while adding the data.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.397",
3
+ "version": "1.0.399",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "aca524ef89a76b687214fc8491c94067631386d53284ee106ef3c66c421b050d",
48
+ "typesPublisherContentHash": "66cf969c9244cf439918f513eb8b12e41f24ae9d6ce8c46f575c0dc4c1506ab6",
49
49
  "typeScriptVersion": "4.3"
50
50
  }