@types/office-js-preview 1.0.396 → 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.
@@ -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: Mon, 26 Jun 2023 17:32:37 GMT
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
 
@@ -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. Collection size limits:
11276
+ * each optional attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
11277
11277
  *
11278
- * - Windows: 500 members
11278
+ * - Windows: 500 attendees
11279
11279
  *
11280
- * - Classic Mac UI: 100 members
11280
+ * - Android, classic Mac UI, iOS: 100 attendees
11281
11281
  *
11282
- * - New Mac UI, web browser, Android: No limit
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. Collection size limits:
11324
+ * each required attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
11325
11325
  *
11326
- * - Windows: 500 members
11326
+ * - Windows: 500 attendees
11327
11327
  *
11328
- * - Classic Mac UI: 100 members
11328
+ * - Android, classic Mac UI, iOS: 100 attendees
11329
11329
  *
11330
- * - New Mac UI, web browser, Android: No limit
11330
+ * - New Mac UI, web browser: No limit
11331
11331
  *
11332
11332
  * @remarks
11333
11333
  *
@@ -13204,6 +13204,151 @@ declare namespace Office {
13204
13204
  */
13205
13205
  OWAView: MailboxEnums.OWAView | "OneColumn" | "TwoColumns" | "ThreeColumns";
13206
13206
  }
13207
+ /**
13208
+ * Provides properties to temporarily set the content displayed in the body or subject of a message in read mode.
13209
+ *
13210
+ * @remarks
13211
+ * [Api set: Mailbox preview]
13212
+ *
13213
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13214
+ *
13215
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13216
+ *
13217
+ * @beta
13218
+ */
13219
+ interface Display {
13220
+ /**
13221
+ * Gets an object to temporarily set the content displayed in the body of a message in read mode.
13222
+ *
13223
+ * @remarks
13224
+ * [Api set: Mailbox preview]
13225
+ *
13226
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13227
+ *
13228
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13229
+ *
13230
+ * @beta
13231
+ */
13232
+ body: DisplayedBody;
13233
+ /**
13234
+ * Gets an object to temporarily set the content displayed in the subject of a message in read mode.
13235
+ *
13236
+ * @remarks
13237
+ * [Api set: Mailbox preview]
13238
+ *
13239
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13240
+ *
13241
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13242
+ *
13243
+ * @beta
13244
+ */
13245
+ subject: DisplayedSubject;
13246
+ }
13247
+ /**
13248
+ * Provides a method to temporarily set the content displayed in the body of a message in read mode.
13249
+ *
13250
+ * @remarks
13251
+ * [Api set: Mailbox preview]
13252
+ *
13253
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13254
+ *
13255
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13256
+ *
13257
+ * @beta
13258
+ */
13259
+ interface DisplayedBody {
13260
+ /**
13261
+ * Temporarily sets the content displayed in the body of a message in read mode. The set content will remain visible until the user switches to a different messsage or
13262
+ * closes the window of the current message.
13263
+ *
13264
+ * @remarks
13265
+ * [Api set: Mailbox preview]
13266
+ *
13267
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13268
+ *
13269
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13270
+ *
13271
+ * **Recommended**: Call
13272
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-gettypeasync-member(1) | Office.context.mailbox.item.body.getTypeAsync},
13273
+ * then pass the returned value to the `options.coercionType` parameter.
13274
+ *
13275
+ * @param data - The string to be temporarily displayed in the body of a message. The string is limited to 1,000,000 characters.
13276
+ * @param options - An object literal that contains one or more of the following properties:-
13277
+ * `asyncContext`: Developers can provide any object they wish to access in the callback function.
13278
+ * `coercionType`: The format of the data to be temporarily displayed. The string in the `data` parameter will be converted to this format.
13279
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
13280
+ * which is an `Office.AsyncResult` object. Any errors encountered will be provided in the `asyncResult.error` property.
13281
+ *
13282
+ * @beta
13283
+ */
13284
+ setAsync(data: string, options: Office.AsyncContextOptions & CoercionTypeOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
13285
+ /**
13286
+ * Temporarily sets the content displayed in the body of a message in read mode. The set content will remain visible until the user switches to a different messsage or
13287
+ * closes the window of the current message.
13288
+ *
13289
+ * @remarks
13290
+ * [Api set: Mailbox preview]
13291
+ *
13292
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13293
+ *
13294
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13295
+ *
13296
+ * @param data - The string to be temporarily displayed in the body of a message. The string is limited to 1,000,000 characters.
13297
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
13298
+ * which is an `Office.AsyncResult` object. Any errors encountered will be provided in the `asyncResult.error` property.
13299
+ *
13300
+ * @beta
13301
+ */
13302
+ setAsync(data: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
13303
+ }
13304
+ /**
13305
+ * Provides a method to temporarily set the content displayed in the subject of a message in read mode.
13306
+ *
13307
+ * @remarks
13308
+ * [Api set: Mailbox preview]
13309
+ *
13310
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13311
+ *
13312
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13313
+ *
13314
+ * @beta
13315
+ */
13316
+ interface DisplayedSubject {
13317
+ /**
13318
+ * Temporarily sets the content displayed in the subject of a message in read mode. The set content will remain visible until the user switches to a different messsage or
13319
+ * closes the window of the current message.
13320
+ *
13321
+ * @remarks
13322
+ * [Api set: Mailbox preview]
13323
+ *
13324
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13325
+ *
13326
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13327
+ *
13328
+ * @param data - The string to be temporarily displayed in the subject of a message. The string is limited to 255 characters.
13329
+ * @param options - An object literal that contains one or more of the following properties:-
13330
+ * `asyncContext`: Developers can provide any object they wish to access in the callback function.
13331
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
13332
+ * which is an `Office.AsyncResult` object. Any errors encountered will be provided in the `asyncResult.error` property.
13333
+ */
13334
+ setAsync(data: string, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
13335
+ /**
13336
+ * Temporarily sets the content displayed in the subject of a message in read mode. The set content will remain visible until the user switches to a different messsage or
13337
+ * closes the window of the current message.
13338
+ *
13339
+ * @remarks
13340
+ * [Api set: Mailbox preview]
13341
+ *
13342
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
13343
+ *
13344
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
13345
+ *
13346
+ * @param data - The string to be temporarily displayed in the subject of a message. The string is limited to 255 characters.
13347
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
13348
+ * which is an `Office.AsyncResult` object. Any errors encountered will be provided in the `asyncResult.error` property.
13349
+ */
13350
+ setAsync(data: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
13351
+ }
13207
13352
  /**
13208
13353
  * Provides the email properties of the sender or specified recipients of an email message or appointment.
13209
13354
  *
@@ -16406,15 +16551,15 @@ declare namespace Office {
16406
16551
  * current item.
16407
16552
  *
16408
16553
  * The `cc` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
16409
- * each recipient listed on the **Cc** line of the message. Collection size limits:
16554
+ * each recipient listed on the **Cc** line of the message. The maximum number of recipients returned varies per Outlook client.
16410
16555
  *
16411
- * - Windows: 500 members
16556
+ * - Windows: 500 recipients
16412
16557
  *
16413
- * - Classic Mac UI: 100 members
16558
+ * - Android, classic Mac UI, iOS: 100 recipients
16414
16559
  *
16415
- * - Web browser: 20 members
16560
+ * - Web browser: 20 recipients
16416
16561
  *
16417
- * - New Mac UI, Android: No limit
16562
+ * - New Mac UI: No limit
16418
16563
  *
16419
16564
  * @remarks
16420
16565
  *
@@ -16462,6 +16607,19 @@ declare namespace Office {
16462
16607
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
16463
16608
  */
16464
16609
  dateTimeModified: Date;
16610
+ /**
16611
+ * Gets an object to temporarily set the content displayed in the body or subject of a message in read mode.
16612
+ *
16613
+ * @remarks
16614
+ * [Api set: Mailbox preview]
16615
+ *
16616
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
16617
+ *
16618
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
16619
+ *
16620
+ * @beta
16621
+ */
16622
+ display: Display;
16465
16623
  /**
16466
16624
  * Gets the date and time that the appointment is to end.
16467
16625
  *
@@ -16704,15 +16862,15 @@ declare namespace Office {
16704
16862
  * current item.
16705
16863
  *
16706
16864
  * The `to` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
16707
- * each recipient listed on the **To** line of the message. Collection size limits:
16865
+ * each recipient listed on the **To** line of the message. The maximum number of recipients returned varies per Outlook client.
16708
16866
  *
16709
- * - Windows: 500 members
16867
+ * - Windows: 500 recipients
16710
16868
  *
16711
- * - Classic Mac UI: 100 members
16869
+ * - Android, classic Mac UI, iOS: 100 recipients
16712
16870
  *
16713
- * - Web browser: 20 members
16871
+ * - Web browser: 20 recipients
16714
16872
  *
16715
- * - New Mac UI, Android: No limit
16873
+ * - New Mac UI: No limit
16716
16874
  *
16717
16875
  * @remarks
16718
16876
  *
@@ -17834,23 +17992,6 @@ declare namespace Office {
17834
17992
  /**
17835
17993
  * Adds a recipient list to the existing recipients for an appointment or message.
17836
17994
  *
17837
- * The recipients parameter can be an array of one of the following:
17838
- *
17839
- * - Strings containing SMTP email addresses
17840
- *
17841
- * - {@link Office.EmailUser | EmailUser} objects
17842
- *
17843
- * - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
17844
- *
17845
- * Maximum number that can be added:
17846
- *
17847
- * - Windows: 100 recipients.
17848
- * **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
17849
- *
17850
- * - Classic Mac UI, web browser: 100 recipients
17851
- *
17852
- * - New Mac UI, Android: No limit
17853
- *
17854
17995
  * @remarks
17855
17996
  * [Api set: Mailbox 1.1]
17856
17997
  *
@@ -17858,11 +17999,23 @@ declare namespace Office {
17858
17999
  *
17859
18000
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17860
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
+ *
17861
18013
  * **Errors**:
17862
18014
  *
17863
18015
  * - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
17864
18016
  *
17865
- * @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.
17866
18019
  * @param options - An object literal that contains one or more of the following properties:-
17867
18020
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
17868
18021
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
@@ -17872,23 +18025,6 @@ declare namespace Office {
17872
18025
  /**
17873
18026
  * Adds a recipient list to the existing recipients for an appointment or message.
17874
18027
  *
17875
- * The recipients parameter can be an array of one of the following:
17876
- *
17877
- * - Strings containing SMTP email addresses
17878
- *
17879
- * - {@link Office.EmailUser | EmailUser} objects
17880
- *
17881
- * - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
17882
- *
17883
- * Maximum number that can be added:
17884
- *
17885
- * - Windows: 100 recipients.
17886
- * **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
17887
- *
17888
- * - Classic Mac UI, web browser: 100 recipients
17889
- *
17890
- * - New Mac UI, Android: No limit
17891
- *
17892
18028
  * @remarks
17893
18029
  * [Api set: Mailbox 1.1]
17894
18030
  *
@@ -17896,11 +18032,23 @@ declare namespace Office {
17896
18032
  *
17897
18033
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17898
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
+ *
17899
18046
  * **Errors**:
17900
18047
  *
17901
18048
  * - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
17902
18049
  *
17903
- * @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.
17904
18052
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
17905
18053
  * of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
17906
18054
  */
@@ -17908,54 +18056,51 @@ declare namespace Office {
17908
18056
  /**
17909
18057
  * Gets a recipient list for an appointment or message.
17910
18058
  *
17911
- * When the call completes, the `asyncResult.value` property will contain an array of {@link Office.EmailAddressDetails | EmailAddressDetails}
17912
- * objects. Collection size limits:
17913
- *
17914
- * - Windows, classic Mac UI, web browser: 500 members
17915
- *
17916
- * - New Mac UI, Android: No limit
17917
- *
17918
18059
  * @remarks
17919
18060
  * [Api set: Mailbox 1.1]
17920
18061
  *
17921
18062
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
17922
18063
  *
17923
18064
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17924
- *
17925
- * **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
17926
- * or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
17927
- * `EmailAddressDetails` object instead of the contact's saved name. For more details, refer to the
17928
- * {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
17929
- *
17930
- * **Important**: The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
17931
- *
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
+ *
17932
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.
17933
- *
18079
+ *
17934
18080
  * - A Teams meeting status icon appears before the recipient's name or email address.
17935
- *
18081
+ *
17936
18082
  * - A semicolon appears after the recipient's name or email address.
17937
- *
18083
+ *
17938
18084
  * - The recipient's name or email address is underlined or enclosed in a box.
17939
- *
17940
- * 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
17941
18087
  * the auto-complete list.
17942
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
+ *
17943
18094
  * @param options - An object literal that contains one or more of the following properties:-
17944
18095
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
17945
- * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
17946
- * of type `Office.AsyncResult`. The `value` property of the result is an array of `EmailAddressDetails` objects.
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.
17947
18099
  */
17948
18100
  getAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
17949
18101
  /**
17950
18102
  * Gets a recipient list for an appointment or message.
17951
18103
  *
17952
- * When the call completes, the `asyncResult.value` property will contain an array of {@link Office.EmailAddressDetails | EmailAddressDetails}
17953
- * objects. Collection size limits:
17954
- *
17955
- * - Windows, classic Mac UI, web browser: 500 members
17956
- *
17957
- * - New Mac UI, Android: No limit
17958
- *
17959
18104
  * @remarks
17960
18105
  * [Api set: Mailbox 1.1]
17961
18106
  *
@@ -17963,26 +18108,37 @@ declare namespace Office {
17963
18108
  *
17964
18109
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17965
18110
  *
17966
- * **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
17967
- * or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
17968
- * `EmailAddressDetails` object instead of the contact's saved name. For more details, refer to the
17969
- * {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
17970
- *
17971
- * **Important**: The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
17972
- *
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
+ *
17973
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.
17974
- *
18124
+ *
17975
18125
  * - A Teams meeting status icon appears before the recipient's name or email address.
17976
- *
18126
+ *
17977
18127
  * - A semicolon appears after the recipient's name or email address.
17978
- *
18128
+ *
17979
18129
  * - The recipient's name or email address is underlined or enclosed in a box.
17980
- *
17981
- * 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
17982
18132
  * the auto-complete list.
17983
18133
  *
17984
- * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
17985
- * of type `Office.AsyncResult`. The `value` property of the result is an array of `EmailAddressDetails` objects.
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.
17986
18142
  */
17987
18143
  getAsync(callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
17988
18144
  /**
@@ -17990,23 +18146,6 @@ declare namespace Office {
17990
18146
  *
17991
18147
  * The `setAsync` method overwrites the current recipient list.
17992
18148
  *
17993
- * The recipients parameter can be an array of one of the following:
17994
- *
17995
- * - Strings containing SMTP email addresses
17996
- *
17997
- * - {@link Office.EmailUser | EmailUser} objects
17998
- *
17999
- * - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
18000
- *
18001
- * Maximum number that can be set:
18002
- *
18003
- * - Windows: 100 recipients.
18004
- * **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
18005
- *
18006
- * - Classic Mac UI, web browser: 100 recipients
18007
- *
18008
- * - New Mac UI, Android: No limit
18009
- *
18010
18149
  * @remarks
18011
18150
  * [Api set: Mailbox 1.1]
18012
18151
  *
@@ -18014,11 +18153,23 @@ declare namespace Office {
18014
18153
  *
18015
18154
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
18016
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
+ *
18017
18167
  * **Errors**:
18018
18168
  *
18019
18169
  * - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
18020
18170
  *
18021
- * @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.
18022
18173
  * @param options - An object literal that contains one or more of the following properties:-
18023
18174
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
18024
18175
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
@@ -18031,23 +18182,6 @@ declare namespace Office {
18031
18182
  *
18032
18183
  * The `setAsync` method overwrites the current recipient list.
18033
18184
  *
18034
- * The recipients parameter can be an array of one of the following:
18035
- *
18036
- * - Strings containing SMTP email addresses
18037
- *
18038
- * - {@link Office.EmailUser | EmailUser} objects
18039
- *
18040
- * - {@link Office.EmailAddressDetails | EmailAddressDetails} objects
18041
- *
18042
- * Maximum number that can be set:
18043
- *
18044
- * - Windows: 100 recipients.
18045
- * **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
18046
- *
18047
- * - Classic Mac UI, web browser: 100 recipients
18048
- *
18049
- * - New Mac UI, Android: No limit
18050
- *
18051
18185
  * @remarks
18052
18186
  * [Api set: Mailbox 1.1]
18053
18187
  *
@@ -18055,11 +18189,23 @@ declare namespace Office {
18055
18189
  *
18056
18190
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
18057
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
+ *
18058
18203
  * **Errors**:
18059
18204
  *
18060
18205
  * - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
18061
18206
  *
18062
- * @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.
18063
18209
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
18064
18210
  * type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
18065
18211
  * 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.396",
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": "876d8a510e5601515316844091957fb63c1c890516f4e5293710c24ac031f960",
48
+ "typesPublisherContentHash": "bf079259b0b190763060f6bc9b8132be72f9e72f8c2332f928a6a7fd6260ee48",
49
49
  "typeScriptVersion": "4.3"
50
50
  }