@types/office-js-preview 1.0.397 → 1.0.398
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +121 -133
- office-js-preview/package.json +2 -2
office-js-preview/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-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 05 Jul 2023 22:32:45 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js-preview/index.d.ts
CHANGED
|
@@ -11273,13 +11273,13 @@ declare namespace Office {
|
|
|
11273
11273
|
* 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
11274
|
*
|
|
11275
11275
|
* The `optionalAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
11276
|
-
* each optional attendee to the meeting.
|
|
11276
|
+
* each optional attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
|
|
11277
11277
|
*
|
|
11278
|
-
* - Windows: 500
|
|
11278
|
+
* - Windows: 500 attendees
|
|
11279
11279
|
*
|
|
11280
|
-
* -
|
|
11280
|
+
* - Android, classic Mac UI, iOS: 100 attendees
|
|
11281
11281
|
*
|
|
11282
|
-
* - New Mac UI, web browser
|
|
11282
|
+
* - New Mac UI, web browser: No limit
|
|
11283
11283
|
*
|
|
11284
11284
|
* @remarks
|
|
11285
11285
|
*
|
|
@@ -11321,13 +11321,13 @@ declare namespace Office {
|
|
|
11321
11321
|
* 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
11322
|
*
|
|
11323
11323
|
* The `requiredAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
11324
|
-
* each required attendee to the meeting.
|
|
11324
|
+
* each required attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
|
|
11325
11325
|
*
|
|
11326
|
-
* - Windows: 500
|
|
11326
|
+
* - Windows: 500 attendees
|
|
11327
11327
|
*
|
|
11328
|
-
* -
|
|
11328
|
+
* - Android, classic Mac UI, iOS: 100 attendees
|
|
11329
11329
|
*
|
|
11330
|
-
* - New Mac UI, web browser
|
|
11330
|
+
* - New Mac UI, web browser: No limit
|
|
11331
11331
|
*
|
|
11332
11332
|
* @remarks
|
|
11333
11333
|
*
|
|
@@ -16551,15 +16551,15 @@ declare namespace Office {
|
|
|
16551
16551
|
* current item.
|
|
16552
16552
|
*
|
|
16553
16553
|
* 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.
|
|
16554
|
+
* each recipient listed on the **Cc** line of the message. The maximum number of recipients returned varies per Outlook client.
|
|
16555
16555
|
*
|
|
16556
|
-
* - Windows: 500
|
|
16556
|
+
* - Windows: 500 recipients
|
|
16557
16557
|
*
|
|
16558
|
-
* -
|
|
16558
|
+
* - Android, classic Mac UI, iOS: 100 recipients
|
|
16559
16559
|
*
|
|
16560
|
-
* - Web browser: 20
|
|
16560
|
+
* - Web browser: 20 recipients
|
|
16561
16561
|
*
|
|
16562
|
-
* - New Mac UI
|
|
16562
|
+
* - New Mac UI: No limit
|
|
16563
16563
|
*
|
|
16564
16564
|
* @remarks
|
|
16565
16565
|
*
|
|
@@ -16862,15 +16862,15 @@ declare namespace Office {
|
|
|
16862
16862
|
* current item.
|
|
16863
16863
|
*
|
|
16864
16864
|
* 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.
|
|
16865
|
+
* each recipient listed on the **To** line of the message. The maximum number of recipients returned varies per Outlook client.
|
|
16866
16866
|
*
|
|
16867
|
-
* - Windows: 500
|
|
16867
|
+
* - Windows: 500 recipients
|
|
16868
16868
|
*
|
|
16869
|
-
* -
|
|
16869
|
+
* - Android, classic Mac UI, iOS: 100 recipients
|
|
16870
16870
|
*
|
|
16871
|
-
* - Web browser: 20
|
|
16871
|
+
* - Web browser: 20 recipients
|
|
16872
16872
|
*
|
|
16873
|
-
* - New Mac UI
|
|
16873
|
+
* - New Mac UI: No limit
|
|
16874
16874
|
*
|
|
16875
16875
|
* @remarks
|
|
16876
16876
|
*
|
|
@@ -17992,23 +17992,6 @@ declare namespace Office {
|
|
|
17992
17992
|
/**
|
|
17993
17993
|
* Adds a recipient list to the existing recipients for an appointment or message.
|
|
17994
17994
|
*
|
|
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
17995
|
* @remarks
|
|
18013
17996
|
* [Api set: Mailbox 1.1]
|
|
18014
17997
|
*
|
|
@@ -18016,11 +17999,23 @@ declare namespace Office {
|
|
|
18016
17999
|
*
|
|
18017
18000
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
18018
18001
|
*
|
|
18002
|
+
* **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),
|
|
18003
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
18004
|
+
*
|
|
18005
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
18006
|
+
* 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.
|
|
18007
|
+
*
|
|
18008
|
+
* - In Outlook on Android and on iOS, the `addAsync` method isn't supported in Message Compose mode. Only the Appointment Organizer mode is
|
|
18009
|
+
* supported.
|
|
18010
|
+
*
|
|
18011
|
+
* There's no recipient limit if you call `addAsync` in Outlook on Mac (new UI).
|
|
18012
|
+
*
|
|
18019
18013
|
* **Errors**:
|
|
18020
18014
|
*
|
|
18021
18015
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
18022
18016
|
*
|
|
18023
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
18017
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
18018
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
18024
18019
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
18025
18020
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
18026
18021
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
@@ -18030,23 +18025,6 @@ declare namespace Office {
|
|
|
18030
18025
|
/**
|
|
18031
18026
|
* Adds a recipient list to the existing recipients for an appointment or message.
|
|
18032
18027
|
*
|
|
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
18028
|
* @remarks
|
|
18051
18029
|
* [Api set: Mailbox 1.1]
|
|
18052
18030
|
*
|
|
@@ -18054,11 +18032,23 @@ declare namespace Office {
|
|
|
18054
18032
|
*
|
|
18055
18033
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
18056
18034
|
*
|
|
18035
|
+
* **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),
|
|
18036
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
18037
|
+
*
|
|
18038
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
18039
|
+
* 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.
|
|
18040
|
+
*
|
|
18041
|
+
* - In Outlook on Android and on iOS, the `addAsync` method isn't supported in Message Compose mode. Only the Appointment Organizer mode is
|
|
18042
|
+
* supported.
|
|
18043
|
+
*
|
|
18044
|
+
* There's no recipient limit if you call `addAsync` in Outlook on Mac (new UI).
|
|
18045
|
+
*
|
|
18057
18046
|
* **Errors**:
|
|
18058
18047
|
*
|
|
18059
18048
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
18060
18049
|
*
|
|
18061
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
18050
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
18051
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
18062
18052
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
18063
18053
|
* of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
|
|
18064
18054
|
*/
|
|
@@ -18066,54 +18056,51 @@ declare namespace Office {
|
|
|
18066
18056
|
/**
|
|
18067
18057
|
* Gets a recipient list for an appointment or message.
|
|
18068
18058
|
*
|
|
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
18059
|
* @remarks
|
|
18077
18060
|
* [Api set: Mailbox 1.1]
|
|
18078
18061
|
*
|
|
18079
18062
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
18080
18063
|
*
|
|
18081
18064
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
18082
|
-
*
|
|
18083
|
-
* **Important**:
|
|
18084
|
-
*
|
|
18085
|
-
*
|
|
18086
|
-
*
|
|
18087
|
-
*
|
|
18088
|
-
*
|
|
18089
|
-
*
|
|
18065
|
+
*
|
|
18066
|
+
* **Important**:
|
|
18067
|
+
*
|
|
18068
|
+
* The maximum number of recipients returned by this method varies per Outlook client.
|
|
18069
|
+
*
|
|
18070
|
+
* - Windows, web browser, Mac (classic UI): 500 recipients
|
|
18071
|
+
*
|
|
18072
|
+
* - Android, iOS: 100 recipients
|
|
18073
|
+
*
|
|
18074
|
+
* - Mac (new UI): No limit
|
|
18075
|
+
*
|
|
18076
|
+
* The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
|
|
18077
|
+
*
|
|
18090
18078
|
* - 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
|
-
*
|
|
18079
|
+
*
|
|
18092
18080
|
* - A Teams meeting status icon appears before the recipient's name or email address.
|
|
18093
|
-
*
|
|
18081
|
+
*
|
|
18094
18082
|
* - A semicolon appears after the recipient's name or email address.
|
|
18095
|
-
*
|
|
18083
|
+
*
|
|
18096
18084
|
* - 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
|
|
18085
|
+
*
|
|
18086
|
+
* 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
18087
|
* the auto-complete list.
|
|
18100
18088
|
*
|
|
18089
|
+
* 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
|
|
18090
|
+
* or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
|
|
18091
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} object instead of the contact's saved name. For more details, see
|
|
18092
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
18093
|
+
*
|
|
18101
18094
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
18102
18095
|
* `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
|
|
18096
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
18097
|
+
* of type `Office.AsyncResult`. The `asyncResult.value` property of the result is an array of
|
|
18098
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
18105
18099
|
*/
|
|
18106
18100
|
getAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
|
|
18107
18101
|
/**
|
|
18108
18102
|
* Gets a recipient list for an appointment or message.
|
|
18109
18103
|
*
|
|
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
18104
|
* @remarks
|
|
18118
18105
|
* [Api set: Mailbox 1.1]
|
|
18119
18106
|
*
|
|
@@ -18121,26 +18108,37 @@ declare namespace Office {
|
|
|
18121
18108
|
*
|
|
18122
18109
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
18123
18110
|
*
|
|
18124
|
-
* **Important**:
|
|
18125
|
-
*
|
|
18126
|
-
*
|
|
18127
|
-
*
|
|
18128
|
-
*
|
|
18129
|
-
*
|
|
18130
|
-
*
|
|
18111
|
+
* **Important**:
|
|
18112
|
+
*
|
|
18113
|
+
* The maximum number of recipients returned by this method varies per Outlook client.
|
|
18114
|
+
*
|
|
18115
|
+
* - Windows, web browser, Mac (classic UI): 500 recipients
|
|
18116
|
+
*
|
|
18117
|
+
* - Android, iOS: 100 recipients
|
|
18118
|
+
*
|
|
18119
|
+
* - Mac (new UI): No limit
|
|
18120
|
+
*
|
|
18121
|
+
* The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
|
|
18122
|
+
*
|
|
18131
18123
|
* - 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
|
-
*
|
|
18124
|
+
*
|
|
18133
18125
|
* - A Teams meeting status icon appears before the recipient's name or email address.
|
|
18134
|
-
*
|
|
18126
|
+
*
|
|
18135
18127
|
* - A semicolon appears after the recipient's name or email address.
|
|
18136
|
-
*
|
|
18128
|
+
*
|
|
18137
18129
|
* - 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
|
|
18130
|
+
*
|
|
18131
|
+
* 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
18132
|
* the auto-complete list.
|
|
18141
18133
|
*
|
|
18142
|
-
*
|
|
18143
|
-
*
|
|
18134
|
+
* 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
|
|
18135
|
+
* or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
|
|
18136
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} object instead of the contact's saved name. For more details, see
|
|
18137
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
18138
|
+
*
|
|
18139
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
18140
|
+
* of type `Office.AsyncResult`. The `asyncResult.value` property of the result is an array of
|
|
18141
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
18144
18142
|
*/
|
|
18145
18143
|
getAsync(callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
|
|
18146
18144
|
/**
|
|
@@ -18148,23 +18146,6 @@ declare namespace Office {
|
|
|
18148
18146
|
*
|
|
18149
18147
|
* The `setAsync` method overwrites the current recipient list.
|
|
18150
18148
|
*
|
|
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
18149
|
* @remarks
|
|
18169
18150
|
* [Api set: Mailbox 1.1]
|
|
18170
18151
|
*
|
|
@@ -18172,11 +18153,23 @@ declare namespace Office {
|
|
|
18172
18153
|
*
|
|
18173
18154
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
18174
18155
|
*
|
|
18156
|
+
* **Important**: With the `setAsync` method, you can set a maximum of 100 recipients in Outlook on Windows, on Mac (classic UI),
|
|
18157
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
18158
|
+
*
|
|
18159
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
18160
|
+
* If you need to set more than 100 recipients, you can call `setAsync` repeatedly, but be mindful of the recipient limit of the field.
|
|
18161
|
+
*
|
|
18162
|
+
* - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
|
|
18163
|
+
* supported.
|
|
18164
|
+
*
|
|
18165
|
+
* There's no recipient limit if you call `setAsync` in Outlook on Mac (new UI).
|
|
18166
|
+
*
|
|
18175
18167
|
* **Errors**:
|
|
18176
18168
|
*
|
|
18177
18169
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
18178
18170
|
*
|
|
18179
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
18171
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
18172
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
18180
18173
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
18181
18174
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
18182
18175
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
@@ -18189,23 +18182,6 @@ declare namespace Office {
|
|
|
18189
18182
|
*
|
|
18190
18183
|
* The `setAsync` method overwrites the current recipient list.
|
|
18191
18184
|
*
|
|
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
18185
|
* @remarks
|
|
18210
18186
|
* [Api set: Mailbox 1.1]
|
|
18211
18187
|
*
|
|
@@ -18213,11 +18189,23 @@ declare namespace Office {
|
|
|
18213
18189
|
*
|
|
18214
18190
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
18215
18191
|
*
|
|
18192
|
+
* **Important**: With the `setAsync` method, you can set a maximum of 100 recipients in Outlook on Windows, on Mac (classic UI),
|
|
18193
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
18194
|
+
*
|
|
18195
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
18196
|
+
* If you need to set more than 100 recipients, you can call `setAsync` repeatedly, but be mindful of the recipient limit of the field.
|
|
18197
|
+
*
|
|
18198
|
+
* - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
|
|
18199
|
+
* supported.
|
|
18200
|
+
*
|
|
18201
|
+
* There's no recipient limit if you call `setAsync` in Outlook on Mac (new UI).
|
|
18202
|
+
*
|
|
18216
18203
|
* **Errors**:
|
|
18217
18204
|
*
|
|
18218
18205
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
18219
18206
|
*
|
|
18220
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
18207
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
18208
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
18221
18209
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
18222
18210
|
* type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
|
|
18223
18211
|
* indicates any error that occurred while adding the data.
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.398",
|
|
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": "
|
|
48
|
+
"typesPublisherContentHash": "bf079259b0b190763060f6bc9b8132be72f9e72f8c2332f928a6a7fd6260ee48",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|