@types/office-js 1.0.333 → 1.0.335
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.
- office-js/README.md +1 -1
- office-js/index.d.ts +233 -189
- office-js/package.json +2 -2
office-js/README.md
CHANGED
|
@@ -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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 07 Jul 2023 17:32:40 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js/index.d.ts
CHANGED
|
@@ -8781,6 +8781,8 @@ declare namespace Office {
|
|
|
8781
8781
|
InformationalMessage = "informationalMessage",
|
|
8782
8782
|
/**
|
|
8783
8783
|
* The notification message is an error message.
|
|
8784
|
+
*
|
|
8785
|
+
* **Important**: Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
|
|
8784
8786
|
*/
|
|
8785
8787
|
ErrorMessage = "errorMessage",
|
|
8786
8788
|
/**
|
|
@@ -11157,13 +11159,13 @@ declare namespace Office {
|
|
|
11157
11159
|
* 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.
|
|
11158
11160
|
*
|
|
11159
11161
|
* The `optionalAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
11160
|
-
* each optional attendee to the meeting.
|
|
11162
|
+
* each optional attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
|
|
11161
11163
|
*
|
|
11162
|
-
* - Windows: 500
|
|
11164
|
+
* - Windows: 500 attendees
|
|
11163
11165
|
*
|
|
11164
|
-
* -
|
|
11166
|
+
* - Android, classic Mac UI, iOS: 100 attendees
|
|
11165
11167
|
*
|
|
11166
|
-
* - New Mac UI, web browser
|
|
11168
|
+
* - New Mac UI, web browser: No limit
|
|
11167
11169
|
*
|
|
11168
11170
|
* @remarks
|
|
11169
11171
|
*
|
|
@@ -11205,13 +11207,13 @@ declare namespace Office {
|
|
|
11205
11207
|
* 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.
|
|
11206
11208
|
*
|
|
11207
11209
|
* The `requiredAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
11208
|
-
* each required attendee to the meeting.
|
|
11210
|
+
* each required attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
|
|
11209
11211
|
*
|
|
11210
|
-
* - Windows: 500
|
|
11212
|
+
* - Windows: 500 attendees
|
|
11211
11213
|
*
|
|
11212
|
-
* -
|
|
11214
|
+
* - Android, classic Mac UI, iOS: 100 attendees
|
|
11213
11215
|
*
|
|
11214
|
-
* - New Mac UI, web browser
|
|
11216
|
+
* - New Mac UI, web browser: No limit
|
|
11215
11217
|
*
|
|
11216
11218
|
* @remarks
|
|
11217
11219
|
*
|
|
@@ -12514,15 +12516,6 @@ declare namespace Office {
|
|
|
12514
12516
|
/**
|
|
12515
12517
|
* Adds or replaces the signature of the item body.
|
|
12516
12518
|
*
|
|
12517
|
-
* **Important**: In Outlook on the web, `setSignatureAsync` only works on messages.
|
|
12518
|
-
*
|
|
12519
|
-
* **Important**: If your add-in implements the
|
|
12520
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation feature using `LaunchEvent` in the manifest},
|
|
12521
|
-
* and calls `setSignatureAsync` in the event handler, the following behavior applies.
|
|
12522
|
-
*
|
|
12523
|
-
* - When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
|
|
12524
|
-
* if the user closes the form without making other edits, they won't be prompted to save changes.
|
|
12525
|
-
*
|
|
12526
12519
|
* @remarks
|
|
12527
12520
|
* [Api set: Mailbox 1.10]
|
|
12528
12521
|
*
|
|
@@ -12530,6 +12523,18 @@ declare namespace Office {
|
|
|
12530
12523
|
*
|
|
12531
12524
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
12532
12525
|
*
|
|
12526
|
+
* **Important**:
|
|
12527
|
+
*
|
|
12528
|
+
* - In Outlook on the web, `setSignatureAsync` only works on messages.
|
|
12529
|
+
*
|
|
12530
|
+
* - This method is supported in Message Compose on Outlook on Android and on iOS. For a sample scenario, see
|
|
12531
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
|
|
12532
|
+
*
|
|
12533
|
+
* - The behavior of `setSignatureAsync` differs if you call it in the event handler of an add-in that implements the
|
|
12534
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation feature using `LaunchEvent` in the manifest}.
|
|
12535
|
+
* When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
|
|
12536
|
+
* if the user closes the form without making other edits, they won't be prompted to save changes.
|
|
12537
|
+
*
|
|
12533
12538
|
* **Errors**:
|
|
12534
12539
|
*
|
|
12535
12540
|
* - `DataExceedsMaximumSize`: The `data` parameter is longer than 30,000 characters.
|
|
@@ -12548,15 +12553,6 @@ declare namespace Office {
|
|
|
12548
12553
|
/**
|
|
12549
12554
|
* Adds or replaces the signature of the item body.
|
|
12550
12555
|
*
|
|
12551
|
-
* **Important**: In Outlook on the web, `setSignatureAsync` only works on messages.
|
|
12552
|
-
*
|
|
12553
|
-
* **Important**: If your add-in implements the
|
|
12554
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation feature using `LaunchEvent` in the manifest},
|
|
12555
|
-
* and calls `setSignatureAsync` in the event handler, the following behavior applies.
|
|
12556
|
-
*
|
|
12557
|
-
* - When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
|
|
12558
|
-
* if the user closes the form without making other edits, they won't be prompted to save changes.
|
|
12559
|
-
*
|
|
12560
12556
|
* @remarks
|
|
12561
12557
|
* [Api set: Mailbox 1.10]
|
|
12562
12558
|
*
|
|
@@ -12564,6 +12560,18 @@ declare namespace Office {
|
|
|
12564
12560
|
*
|
|
12565
12561
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
12566
12562
|
*
|
|
12563
|
+
* **Important**:
|
|
12564
|
+
*
|
|
12565
|
+
* - In Outlook on the web, `setSignatureAsync` only works on messages.
|
|
12566
|
+
*
|
|
12567
|
+
* - This method is supported in Message Compose on Outlook on Android and on iOS. For a sample scenario, see
|
|
12568
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
|
|
12569
|
+
*
|
|
12570
|
+
* - The behavior of `setSignatureAsync` differs if you call it in the event handler of an add-in that implements the
|
|
12571
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation feature using `LaunchEvent` in the manifest}.
|
|
12572
|
+
* When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
|
|
12573
|
+
* if the user closes the form without making other edits, they won't be prompted to save changes.
|
|
12574
|
+
*
|
|
12567
12575
|
* **Errors**:
|
|
12568
12576
|
*
|
|
12569
12577
|
* - `DataExceedsMaximumSize`: The `data` parameter is longer than 30,000 characters.
|
|
@@ -13347,6 +13355,9 @@ declare namespace Office {
|
|
|
13347
13355
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
13348
13356
|
*
|
|
13349
13357
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
13358
|
+
*
|
|
13359
|
+
* **Important**: This interface is supported in Outlook on Android and on iOS. For a sample scenario, see
|
|
13360
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
|
|
13350
13361
|
*/
|
|
13351
13362
|
interface From {
|
|
13352
13363
|
/**
|
|
@@ -13363,7 +13374,12 @@ declare namespace Office {
|
|
|
13363
13374
|
*
|
|
13364
13375
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
13365
13376
|
*
|
|
13366
|
-
* **Important**:
|
|
13377
|
+
* **Important**:
|
|
13378
|
+
*
|
|
13379
|
+
* - This method is supported in Outlook on Android and on iOS. For a sample scenario, see
|
|
13380
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
|
|
13381
|
+
*
|
|
13382
|
+
* - A `recipientType` property value isn't returned by the `getAsync` method.
|
|
13367
13383
|
* The email sender is always a user whose email address is on the Exchange server.
|
|
13368
13384
|
*
|
|
13369
13385
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
@@ -13387,7 +13403,12 @@ declare namespace Office {
|
|
|
13387
13403
|
*
|
|
13388
13404
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
13389
13405
|
*
|
|
13390
|
-
* **Important**:
|
|
13406
|
+
* **Important**:
|
|
13407
|
+
*
|
|
13408
|
+
* - This method is supported in Outlook on Android and on iOS. For a sample scenario, see
|
|
13409
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
|
|
13410
|
+
*
|
|
13411
|
+
* - A `recipientType` property value isn't returned by the `getAsync` method.
|
|
13391
13412
|
* The email sender is always a user whose email address is on the Exchange server.
|
|
13392
13413
|
*
|
|
13393
13414
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
@@ -15074,6 +15095,9 @@ declare namespace Office {
|
|
|
15074
15095
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
15075
15096
|
*
|
|
15076
15097
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15098
|
+
*
|
|
15099
|
+
* **Important**: This property is supported in Outlook on Android and on iOS. For a sample scenario, see
|
|
15100
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
|
|
15077
15101
|
*/
|
|
15078
15102
|
from: From;
|
|
15079
15103
|
/**
|
|
@@ -15277,9 +15301,6 @@ declare namespace Office {
|
|
|
15277
15301
|
*
|
|
15278
15302
|
* You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
|
|
15279
15303
|
*
|
|
15280
|
-
* **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.
|
|
15281
|
-
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
15282
|
-
*
|
|
15283
15304
|
* @remarks
|
|
15284
15305
|
* [Api set: Mailbox 1.8]
|
|
15285
15306
|
*
|
|
@@ -15287,6 +15308,18 @@ declare namespace Office {
|
|
|
15287
15308
|
*
|
|
15288
15309
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15289
15310
|
*
|
|
15311
|
+
* **Important**:
|
|
15312
|
+
*
|
|
15313
|
+
* - Adding an inline Base64 file to a messsage in compose mode is supported in Outlook on Android and on iOS.
|
|
15314
|
+
*
|
|
15315
|
+
* - 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.
|
|
15316
|
+
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
15317
|
+
*
|
|
15318
|
+
* - 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
|
|
15319
|
+
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
15320
|
+
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
15321
|
+
* 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}.
|
|
15322
|
+
*
|
|
15290
15323
|
* **Errors**:
|
|
15291
15324
|
*
|
|
15292
15325
|
* - `AttachmentSizeExceeded`: The attachment is larger than allowed.
|
|
@@ -15295,11 +15328,6 @@ declare namespace Office {
|
|
|
15295
15328
|
*
|
|
15296
15329
|
* - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
|
|
15297
15330
|
*
|
|
15298
|
-
* **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
|
|
15299
|
-
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
15300
|
-
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
15301
|
-
* 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}.
|
|
15302
|
-
*
|
|
15303
15331
|
* @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).
|
|
15304
15332
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
15305
15333
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
@@ -15318,9 +15346,6 @@ declare namespace Office {
|
|
|
15318
15346
|
*
|
|
15319
15347
|
* You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
|
|
15320
15348
|
*
|
|
15321
|
-
* **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.
|
|
15322
|
-
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
15323
|
-
*
|
|
15324
15349
|
* @remarks
|
|
15325
15350
|
* [Api set: Mailbox 1.8]
|
|
15326
15351
|
*
|
|
@@ -15328,6 +15353,18 @@ declare namespace Office {
|
|
|
15328
15353
|
*
|
|
15329
15354
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15330
15355
|
*
|
|
15356
|
+
* **Important**:
|
|
15357
|
+
*
|
|
15358
|
+
* - Adding an inline Base64 file to a messsage in compose mode is supported in Outlook on Android and on iOS.
|
|
15359
|
+
*
|
|
15360
|
+
* - 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.
|
|
15361
|
+
* For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
|
|
15362
|
+
*
|
|
15363
|
+
* - 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
|
|
15364
|
+
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
15365
|
+
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
15366
|
+
* 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}.
|
|
15367
|
+
*
|
|
15331
15368
|
* **Errors**:
|
|
15332
15369
|
*
|
|
15333
15370
|
* - `AttachmentSizeExceeded`: The attachment is larger than allowed.
|
|
@@ -15336,11 +15373,6 @@ declare namespace Office {
|
|
|
15336
15373
|
*
|
|
15337
15374
|
* - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
|
|
15338
15375
|
*
|
|
15339
|
-
* **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
|
|
15340
|
-
* {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
|
|
15341
|
-
* method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
|
|
15342
|
-
* 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}.
|
|
15343
|
-
*
|
|
15344
15376
|
* @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).
|
|
15345
15377
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
15346
15378
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
@@ -15478,10 +15510,15 @@ declare namespace Office {
|
|
|
15478
15510
|
/**
|
|
15479
15511
|
* Disables the Outlook client signature.
|
|
15480
15512
|
*
|
|
15481
|
-
*
|
|
15482
|
-
*
|
|
15483
|
-
*
|
|
15484
|
-
*
|
|
15513
|
+
* The behavior of this method depends on which client the add-in is running.
|
|
15514
|
+
*
|
|
15515
|
+
* - In Outlook on Windows and on Mac, the signature under the **New messages** and **Replies/forwards** sections
|
|
15516
|
+
* of the sending account is set to **(none)**.
|
|
15517
|
+
*
|
|
15518
|
+
* - In Outlook on the web, the signature option for new mails, replies, and forwards is disabled.
|
|
15519
|
+
* A signature that's selected is also disabled by the method.
|
|
15520
|
+
*
|
|
15521
|
+
* - In Outlook on Android and on iOS, the signature saved on the mobile device is cleared.
|
|
15485
15522
|
*
|
|
15486
15523
|
* @remarks
|
|
15487
15524
|
* [Api set: Mailbox 1.10]
|
|
@@ -15490,6 +15527,8 @@ declare namespace Office {
|
|
|
15490
15527
|
*
|
|
15491
15528
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15492
15529
|
*
|
|
15530
|
+
* **Important**: This method is supported in Message Compose in Outlook on Android and on iOS.
|
|
15531
|
+
*
|
|
15493
15532
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
15494
15533
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
15495
15534
|
* @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
|
|
@@ -15499,10 +15538,15 @@ declare namespace Office {
|
|
|
15499
15538
|
/**
|
|
15500
15539
|
* Disables the Outlook client signature.
|
|
15501
15540
|
*
|
|
15502
|
-
*
|
|
15503
|
-
*
|
|
15504
|
-
*
|
|
15505
|
-
*
|
|
15541
|
+
* The behavior of this method depends on which client the add-in is running.
|
|
15542
|
+
*
|
|
15543
|
+
* - In Outlook on Windows and on Mac, the signature under the **New messages** and **Replies/forwards** sections
|
|
15544
|
+
* of the sending account is set to **(none)**.
|
|
15545
|
+
*
|
|
15546
|
+
* - In Outlook on the web, the signature option for new mails, replies, and forwards is disabled.
|
|
15547
|
+
* A signature that's selected is also disabled by the method.
|
|
15548
|
+
*
|
|
15549
|
+
* - In Outlook on Android and on iOS, the signature saved on the mobile device is cleared.
|
|
15506
15550
|
*
|
|
15507
15551
|
* @remarks
|
|
15508
15552
|
* [Api set: Mailbox 1.10]
|
|
@@ -15511,6 +15555,8 @@ declare namespace Office {
|
|
|
15511
15555
|
*
|
|
15512
15556
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15513
15557
|
*
|
|
15558
|
+
* **Important**: This method is supported in Message Compose on Outlook on Android and on iOS.
|
|
15559
|
+
*
|
|
15514
15560
|
* @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
|
|
15515
15561
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
15516
15562
|
*/
|
|
@@ -15618,6 +15664,8 @@ declare namespace Office {
|
|
|
15618
15664
|
*
|
|
15619
15665
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15620
15666
|
*
|
|
15667
|
+
* **Important**: This method is supported in Outlook on Android and on iOS.
|
|
15668
|
+
*
|
|
15621
15669
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
15622
15670
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
15623
15671
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
@@ -15639,6 +15687,8 @@ declare namespace Office {
|
|
|
15639
15687
|
*
|
|
15640
15688
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15641
15689
|
*
|
|
15690
|
+
* **Important**: This method is supported in Outlook on Android and on iOS.
|
|
15691
|
+
*
|
|
15642
15692
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
15643
15693
|
* type `Office.AsyncResult`. On success, the `asyncResult.value` property contains an object with the item's compose type
|
|
15644
15694
|
* and coercion type.
|
|
@@ -16206,15 +16256,15 @@ declare namespace Office {
|
|
|
16206
16256
|
* current item.
|
|
16207
16257
|
*
|
|
16208
16258
|
* The `cc` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
16209
|
-
* each recipient listed on the **Cc** line of the message.
|
|
16259
|
+
* each recipient listed on the **Cc** line of the message. The maximum number of recipients returned varies per Outlook client.
|
|
16210
16260
|
*
|
|
16211
|
-
* - Windows: 500
|
|
16261
|
+
* - Windows: 500 recipients
|
|
16212
16262
|
*
|
|
16213
|
-
* -
|
|
16263
|
+
* - Android, classic Mac UI, iOS: 100 recipients
|
|
16214
16264
|
*
|
|
16215
|
-
* - Web browser: 20
|
|
16265
|
+
* - Web browser: 20 recipients
|
|
16216
16266
|
*
|
|
16217
|
-
* - New Mac UI
|
|
16267
|
+
* - New Mac UI: No limit
|
|
16218
16268
|
*
|
|
16219
16269
|
* @remarks
|
|
16220
16270
|
*
|
|
@@ -16504,15 +16554,15 @@ declare namespace Office {
|
|
|
16504
16554
|
* current item.
|
|
16505
16555
|
*
|
|
16506
16556
|
* The `to` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
16507
|
-
* each recipient listed on the **To** line of the message.
|
|
16557
|
+
* each recipient listed on the **To** line of the message. The maximum number of recipients returned varies per Outlook client.
|
|
16508
16558
|
*
|
|
16509
|
-
* - Windows: 500
|
|
16559
|
+
* - Windows: 500 recipients
|
|
16510
16560
|
*
|
|
16511
|
-
* -
|
|
16561
|
+
* - Android, classic Mac UI, iOS: 100 recipients
|
|
16512
16562
|
*
|
|
16513
|
-
* - Web browser: 20
|
|
16563
|
+
* - Web browser: 20 recipients
|
|
16514
16564
|
*
|
|
16515
|
-
* - New Mac UI
|
|
16565
|
+
* - New Mac UI: No limit
|
|
16516
16566
|
*
|
|
16517
16567
|
* @remarks
|
|
16518
16568
|
*
|
|
@@ -17215,6 +17265,8 @@ declare namespace Office {
|
|
|
17215
17265
|
* Including them will result in an `ArgumentException`.
|
|
17216
17266
|
*
|
|
17217
17267
|
* If type is `ProgressIndicator`, the developer should remove or replace the progress indicator when the action is complete.
|
|
17268
|
+
*
|
|
17269
|
+
* **Important**: Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
|
|
17218
17270
|
*/
|
|
17219
17271
|
type: MailboxEnums.ItemNotificationMessageType | string;
|
|
17220
17272
|
/**
|
|
@@ -17268,6 +17320,13 @@ declare namespace Office {
|
|
|
17268
17320
|
*
|
|
17269
17321
|
* There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
|
|
17270
17322
|
*
|
|
17323
|
+
* @remarks
|
|
17324
|
+
* [Api set: Mailbox 1.3]
|
|
17325
|
+
*
|
|
17326
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17327
|
+
*
|
|
17328
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
17329
|
+
*
|
|
17271
17330
|
* **Important**:
|
|
17272
17331
|
*
|
|
17273
17332
|
* - Only one notification of type {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
|
|
@@ -17275,12 +17334,7 @@ declare namespace Office {
|
|
|
17275
17334
|
*
|
|
17276
17335
|
* - In modern Outlook on the web, you can add an `InsightMessage` notification only in Compose mode.
|
|
17277
17336
|
*
|
|
17278
|
-
*
|
|
17279
|
-
* [Api set: Mailbox 1.3]
|
|
17280
|
-
*
|
|
17281
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17282
|
-
*
|
|
17283
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
17337
|
+
* - Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
|
|
17284
17338
|
*
|
|
17285
17339
|
* @param key - A developer-specified key used to reference this notification message.
|
|
17286
17340
|
* Developers can use it to modify this message later. It can't be longer than 32 characters.
|
|
@@ -17297,6 +17351,13 @@ declare namespace Office {
|
|
|
17297
17351
|
*
|
|
17298
17352
|
* There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
|
|
17299
17353
|
*
|
|
17354
|
+
* @remarks
|
|
17355
|
+
* [Api set: Mailbox 1.3]
|
|
17356
|
+
*
|
|
17357
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17358
|
+
*
|
|
17359
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
17360
|
+
*
|
|
17300
17361
|
* **Important**:
|
|
17301
17362
|
*
|
|
17302
17363
|
* - Only one notification of type {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
|
|
@@ -17304,12 +17365,7 @@ declare namespace Office {
|
|
|
17304
17365
|
*
|
|
17305
17366
|
* - In modern Outlook on the web, you can add an `InsightMessage` notification only in Compose mode.
|
|
17306
17367
|
*
|
|
17307
|
-
*
|
|
17308
|
-
* [Api set: Mailbox 1.3]
|
|
17309
|
-
*
|
|
17310
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17311
|
-
*
|
|
17312
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
17368
|
+
* - Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
|
|
17313
17369
|
*
|
|
17314
17370
|
* @param key - A developer-specified key used to reference this notification message.
|
|
17315
17371
|
* Developers can use it to modify this message later. It can't be longer than 32 characters.
|
|
@@ -17516,23 +17572,6 @@ declare namespace Office {
|
|
|
17516
17572
|
/**
|
|
17517
17573
|
* Adds a recipient list to the existing recipients for an appointment or message.
|
|
17518
17574
|
*
|
|
17519
|
-
* The recipients parameter can be an array of one of the following:
|
|
17520
|
-
*
|
|
17521
|
-
* - Strings containing SMTP email addresses
|
|
17522
|
-
*
|
|
17523
|
-
* - {@link Office.EmailUser | EmailUser} objects
|
|
17524
|
-
*
|
|
17525
|
-
* - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
|
|
17526
|
-
*
|
|
17527
|
-
* Maximum number that can be added:
|
|
17528
|
-
*
|
|
17529
|
-
* - Windows: 100 recipients.
|
|
17530
|
-
* **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
|
|
17531
|
-
*
|
|
17532
|
-
* - Classic Mac UI, web browser: 100 recipients
|
|
17533
|
-
*
|
|
17534
|
-
* - New Mac UI, Android: No limit
|
|
17535
|
-
*
|
|
17536
17575
|
* @remarks
|
|
17537
17576
|
* [Api set: Mailbox 1.1]
|
|
17538
17577
|
*
|
|
@@ -17540,11 +17579,23 @@ declare namespace Office {
|
|
|
17540
17579
|
*
|
|
17541
17580
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17542
17581
|
*
|
|
17582
|
+
* **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),
|
|
17583
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
17584
|
+
*
|
|
17585
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
17586
|
+
* 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.
|
|
17587
|
+
*
|
|
17588
|
+
* - In Outlook on Android and on iOS, the `addAsync` method isn't supported in Message Compose mode. Only the Appointment Organizer mode is
|
|
17589
|
+
* supported.
|
|
17590
|
+
*
|
|
17591
|
+
* There's no recipient limit if you call `addAsync` in Outlook on Mac (new UI).
|
|
17592
|
+
*
|
|
17543
17593
|
* **Errors**:
|
|
17544
17594
|
*
|
|
17545
17595
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
17546
17596
|
*
|
|
17547
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
17597
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
17598
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17548
17599
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17549
17600
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17550
17601
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
@@ -17554,23 +17605,6 @@ declare namespace Office {
|
|
|
17554
17605
|
/**
|
|
17555
17606
|
* Adds a recipient list to the existing recipients for an appointment or message.
|
|
17556
17607
|
*
|
|
17557
|
-
* The recipients parameter can be an array of one of the following:
|
|
17558
|
-
*
|
|
17559
|
-
* - Strings containing SMTP email addresses
|
|
17560
|
-
*
|
|
17561
|
-
* - {@link Office.EmailUser | EmailUser} objects
|
|
17562
|
-
*
|
|
17563
|
-
* - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
|
|
17564
|
-
*
|
|
17565
|
-
* Maximum number that can be added:
|
|
17566
|
-
*
|
|
17567
|
-
* - Windows: 100 recipients.
|
|
17568
|
-
* **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
|
|
17569
|
-
*
|
|
17570
|
-
* - Classic Mac UI, web browser: 100 recipients
|
|
17571
|
-
*
|
|
17572
|
-
* - New Mac UI, Android: No limit
|
|
17573
|
-
*
|
|
17574
17608
|
* @remarks
|
|
17575
17609
|
* [Api set: Mailbox 1.1]
|
|
17576
17610
|
*
|
|
@@ -17578,11 +17612,23 @@ declare namespace Office {
|
|
|
17578
17612
|
*
|
|
17579
17613
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17580
17614
|
*
|
|
17615
|
+
* **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),
|
|
17616
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
17617
|
+
*
|
|
17618
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
17619
|
+
* 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.
|
|
17620
|
+
*
|
|
17621
|
+
* - In Outlook on Android and on iOS, the `addAsync` method isn't supported in Message Compose mode. Only the Appointment Organizer mode is
|
|
17622
|
+
* supported.
|
|
17623
|
+
*
|
|
17624
|
+
* There's no recipient limit if you call `addAsync` in Outlook on Mac (new UI).
|
|
17625
|
+
*
|
|
17581
17626
|
* **Errors**:
|
|
17582
17627
|
*
|
|
17583
17628
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
17584
17629
|
*
|
|
17585
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
17630
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
17631
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17586
17632
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17587
17633
|
* of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
|
|
17588
17634
|
*/
|
|
@@ -17590,54 +17636,51 @@ declare namespace Office {
|
|
|
17590
17636
|
/**
|
|
17591
17637
|
* Gets a recipient list for an appointment or message.
|
|
17592
17638
|
*
|
|
17593
|
-
* When the call completes, the `asyncResult.value` property will contain an array of {@link Office.EmailAddressDetails | EmailAddressDetails}
|
|
17594
|
-
* objects. Collection size limits:
|
|
17595
|
-
*
|
|
17596
|
-
* - Windows, classic Mac UI, web browser: 500 members
|
|
17597
|
-
*
|
|
17598
|
-
* - New Mac UI, Android: No limit
|
|
17599
|
-
*
|
|
17600
17639
|
* @remarks
|
|
17601
17640
|
* [Api set: Mailbox 1.1]
|
|
17602
17641
|
*
|
|
17603
17642
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17604
17643
|
*
|
|
17605
17644
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17606
|
-
*
|
|
17607
|
-
* **Important**:
|
|
17608
|
-
*
|
|
17609
|
-
*
|
|
17610
|
-
*
|
|
17611
|
-
*
|
|
17612
|
-
*
|
|
17613
|
-
*
|
|
17645
|
+
*
|
|
17646
|
+
* **Important**:
|
|
17647
|
+
*
|
|
17648
|
+
* The maximum number of recipients returned by this method varies per Outlook client.
|
|
17649
|
+
*
|
|
17650
|
+
* - Windows, web browser, Mac (classic UI): 500 recipients
|
|
17651
|
+
*
|
|
17652
|
+
* - Android, iOS: 100 recipients
|
|
17653
|
+
*
|
|
17654
|
+
* - Mac (new UI): No limit
|
|
17655
|
+
*
|
|
17656
|
+
* The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
|
|
17657
|
+
*
|
|
17614
17658
|
* - 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.
|
|
17615
|
-
*
|
|
17659
|
+
*
|
|
17616
17660
|
* - A Teams meeting status icon appears before the recipient's name or email address.
|
|
17617
|
-
*
|
|
17661
|
+
*
|
|
17618
17662
|
* - A semicolon appears after the recipient's name or email address.
|
|
17619
|
-
*
|
|
17663
|
+
*
|
|
17620
17664
|
* - The recipient's name or email address is underlined or enclosed in a box.
|
|
17621
|
-
*
|
|
17622
|
-
* 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
|
|
17665
|
+
*
|
|
17666
|
+
* 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
|
|
17623
17667
|
* the auto-complete list.
|
|
17624
17668
|
*
|
|
17669
|
+
* 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
|
|
17670
|
+
* or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
|
|
17671
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} object instead of the contact's saved name. For more details, see
|
|
17672
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17673
|
+
*
|
|
17625
17674
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17626
17675
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17627
|
-
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17628
|
-
* of type `Office.AsyncResult`. The `value` property of the result is an array of
|
|
17676
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
17677
|
+
* of type `Office.AsyncResult`. The `asyncResult.value` property of the result is an array of
|
|
17678
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17629
17679
|
*/
|
|
17630
17680
|
getAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
|
|
17631
17681
|
/**
|
|
17632
17682
|
* Gets a recipient list for an appointment or message.
|
|
17633
17683
|
*
|
|
17634
|
-
* When the call completes, the `asyncResult.value` property will contain an array of {@link Office.EmailAddressDetails | EmailAddressDetails}
|
|
17635
|
-
* objects. Collection size limits:
|
|
17636
|
-
*
|
|
17637
|
-
* - Windows, classic Mac UI, web browser: 500 members
|
|
17638
|
-
*
|
|
17639
|
-
* - New Mac UI, Android: No limit
|
|
17640
|
-
*
|
|
17641
17684
|
* @remarks
|
|
17642
17685
|
* [Api set: Mailbox 1.1]
|
|
17643
17686
|
*
|
|
@@ -17645,26 +17688,37 @@ declare namespace Office {
|
|
|
17645
17688
|
*
|
|
17646
17689
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17647
17690
|
*
|
|
17648
|
-
* **Important**:
|
|
17649
|
-
*
|
|
17650
|
-
*
|
|
17651
|
-
*
|
|
17652
|
-
*
|
|
17653
|
-
*
|
|
17654
|
-
*
|
|
17691
|
+
* **Important**:
|
|
17692
|
+
*
|
|
17693
|
+
* The maximum number of recipients returned by this method varies per Outlook client.
|
|
17694
|
+
*
|
|
17695
|
+
* - Windows, web browser, Mac (classic UI): 500 recipients
|
|
17696
|
+
*
|
|
17697
|
+
* - Android, iOS: 100 recipients
|
|
17698
|
+
*
|
|
17699
|
+
* - Mac (new UI): No limit
|
|
17700
|
+
*
|
|
17701
|
+
* The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
|
|
17702
|
+
*
|
|
17655
17703
|
* - 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.
|
|
17656
|
-
*
|
|
17704
|
+
*
|
|
17657
17705
|
* - A Teams meeting status icon appears before the recipient's name or email address.
|
|
17658
|
-
*
|
|
17706
|
+
*
|
|
17659
17707
|
* - A semicolon appears after the recipient's name or email address.
|
|
17660
|
-
*
|
|
17708
|
+
*
|
|
17661
17709
|
* - The recipient's name or email address is underlined or enclosed in a box.
|
|
17662
|
-
*
|
|
17663
|
-
* 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
|
|
17710
|
+
*
|
|
17711
|
+
* 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
|
|
17664
17712
|
* the auto-complete list.
|
|
17665
17713
|
*
|
|
17666
|
-
*
|
|
17667
|
-
*
|
|
17714
|
+
* 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
|
|
17715
|
+
* or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
|
|
17716
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} object instead of the contact's saved name. For more details, see
|
|
17717
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17718
|
+
*
|
|
17719
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
17720
|
+
* of type `Office.AsyncResult`. The `asyncResult.value` property of the result is an array of
|
|
17721
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17668
17722
|
*/
|
|
17669
17723
|
getAsync(callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
|
|
17670
17724
|
/**
|
|
@@ -17672,23 +17726,6 @@ declare namespace Office {
|
|
|
17672
17726
|
*
|
|
17673
17727
|
* The `setAsync` method overwrites the current recipient list.
|
|
17674
17728
|
*
|
|
17675
|
-
* The recipients parameter can be an array of one of the following:
|
|
17676
|
-
*
|
|
17677
|
-
* - Strings containing SMTP email addresses
|
|
17678
|
-
*
|
|
17679
|
-
* - {@link Office.EmailUser | EmailUser} objects
|
|
17680
|
-
*
|
|
17681
|
-
* - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
|
|
17682
|
-
*
|
|
17683
|
-
* Maximum number that can be set:
|
|
17684
|
-
*
|
|
17685
|
-
* - Windows: 100 recipients.
|
|
17686
|
-
* **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
|
|
17687
|
-
*
|
|
17688
|
-
* - Classic Mac UI, web browser: 100 recipients
|
|
17689
|
-
*
|
|
17690
|
-
* - New Mac UI, Android: No limit
|
|
17691
|
-
*
|
|
17692
17729
|
* @remarks
|
|
17693
17730
|
* [Api set: Mailbox 1.1]
|
|
17694
17731
|
*
|
|
@@ -17696,11 +17733,23 @@ declare namespace Office {
|
|
|
17696
17733
|
*
|
|
17697
17734
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17698
17735
|
*
|
|
17736
|
+
* **Important**: With the `setAsync` method, you can set a maximum of 100 recipients in Outlook on Windows, on Mac (classic UI),
|
|
17737
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
17738
|
+
*
|
|
17739
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
17740
|
+
* If you need to set more than 100 recipients, you can call `setAsync` repeatedly, but be mindful of the recipient limit of the field.
|
|
17741
|
+
*
|
|
17742
|
+
* - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
|
|
17743
|
+
* supported.
|
|
17744
|
+
*
|
|
17745
|
+
* There's no recipient limit if you call `setAsync` in Outlook on Mac (new UI).
|
|
17746
|
+
*
|
|
17699
17747
|
* **Errors**:
|
|
17700
17748
|
*
|
|
17701
17749
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
17702
17750
|
*
|
|
17703
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
17751
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
17752
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17704
17753
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17705
17754
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17706
17755
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
@@ -17713,23 +17762,6 @@ declare namespace Office {
|
|
|
17713
17762
|
*
|
|
17714
17763
|
* The `setAsync` method overwrites the current recipient list.
|
|
17715
17764
|
*
|
|
17716
|
-
* The recipients parameter can be an array of one of the following:
|
|
17717
|
-
*
|
|
17718
|
-
* - Strings containing SMTP email addresses
|
|
17719
|
-
*
|
|
17720
|
-
* - {@link Office.EmailUser | EmailUser} objects
|
|
17721
|
-
*
|
|
17722
|
-
* - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
|
|
17723
|
-
*
|
|
17724
|
-
* Maximum number that can be set:
|
|
17725
|
-
*
|
|
17726
|
-
* - Windows: 100 recipients.
|
|
17727
|
-
* **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
|
|
17728
|
-
*
|
|
17729
|
-
* - Classic Mac UI, web browser: 100 recipients
|
|
17730
|
-
*
|
|
17731
|
-
* - New Mac UI, Android: No limit
|
|
17732
|
-
*
|
|
17733
17765
|
* @remarks
|
|
17734
17766
|
* [Api set: Mailbox 1.1]
|
|
17735
17767
|
*
|
|
@@ -17737,11 +17769,23 @@ declare namespace Office {
|
|
|
17737
17769
|
*
|
|
17738
17770
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17739
17771
|
*
|
|
17772
|
+
* **Important**: With the `setAsync` method, you can set a maximum of 100 recipients in Outlook on Windows, on Mac (classic UI),
|
|
17773
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
17774
|
+
*
|
|
17775
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
17776
|
+
* If you need to set more than 100 recipients, you can call `setAsync` repeatedly, but be mindful of the recipient limit of the field.
|
|
17777
|
+
*
|
|
17778
|
+
* - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
|
|
17779
|
+
* supported.
|
|
17780
|
+
*
|
|
17781
|
+
* There's no recipient limit if you call `setAsync` in Outlook on Mac (new UI).
|
|
17782
|
+
*
|
|
17740
17783
|
* **Errors**:
|
|
17741
17784
|
*
|
|
17742
17785
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
17743
17786
|
*
|
|
17744
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
17787
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
17788
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17745
17789
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
17746
17790
|
* type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
|
|
17747
17791
|
* indicates any error that occurred while adding the data.
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.335",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "181bd7562dddfdbdde06b0ca4fe4f35ea9bd78b30cb3960f4871d593e99dcd4e",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|