@types/office-js 1.0.332 → 1.0.334
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 +126 -138
- 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: 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/index.d.ts
CHANGED
|
@@ -11157,13 +11157,13 @@ declare namespace Office {
|
|
|
11157
11157
|
* 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
11158
|
*
|
|
11159
11159
|
* The `optionalAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
11160
|
-
* each optional attendee to the meeting.
|
|
11160
|
+
* each optional attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
|
|
11161
11161
|
*
|
|
11162
|
-
* - Windows: 500
|
|
11162
|
+
* - Windows: 500 attendees
|
|
11163
11163
|
*
|
|
11164
|
-
* -
|
|
11164
|
+
* - Android, classic Mac UI, iOS: 100 attendees
|
|
11165
11165
|
*
|
|
11166
|
-
* - New Mac UI, web browser
|
|
11166
|
+
* - New Mac UI, web browser: No limit
|
|
11167
11167
|
*
|
|
11168
11168
|
* @remarks
|
|
11169
11169
|
*
|
|
@@ -11205,13 +11205,13 @@ declare namespace Office {
|
|
|
11205
11205
|
* 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
11206
|
*
|
|
11207
11207
|
* The `requiredAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
11208
|
-
* each required attendee to the meeting.
|
|
11208
|
+
* each required attendee to the meeting. The maximum number of attendees returned varies per Outlook client.
|
|
11209
11209
|
*
|
|
11210
|
-
* - Windows: 500
|
|
11210
|
+
* - Windows: 500 attendees
|
|
11211
11211
|
*
|
|
11212
|
-
* -
|
|
11212
|
+
* - Android, classic Mac UI, iOS: 100 attendees
|
|
11213
11213
|
*
|
|
11214
|
-
* - New Mac UI, web browser
|
|
11214
|
+
* - New Mac UI, web browser: No limit
|
|
11215
11215
|
*
|
|
11216
11216
|
* @remarks
|
|
11217
11217
|
*
|
|
@@ -16206,15 +16206,15 @@ declare namespace Office {
|
|
|
16206
16206
|
* current item.
|
|
16207
16207
|
*
|
|
16208
16208
|
* 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.
|
|
16209
|
+
* each recipient listed on the **Cc** line of the message. The maximum number of recipients returned varies per Outlook client.
|
|
16210
16210
|
*
|
|
16211
|
-
* - Windows: 500
|
|
16211
|
+
* - Windows: 500 recipients
|
|
16212
16212
|
*
|
|
16213
|
-
* -
|
|
16213
|
+
* - Android, classic Mac UI, iOS: 100 recipients
|
|
16214
16214
|
*
|
|
16215
|
-
* - Web browser: 20
|
|
16215
|
+
* - Web browser: 20 recipients
|
|
16216
16216
|
*
|
|
16217
|
-
* - New Mac UI
|
|
16217
|
+
* - New Mac UI: No limit
|
|
16218
16218
|
*
|
|
16219
16219
|
* @remarks
|
|
16220
16220
|
*
|
|
@@ -16504,15 +16504,15 @@ declare namespace Office {
|
|
|
16504
16504
|
* current item.
|
|
16505
16505
|
*
|
|
16506
16506
|
* 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.
|
|
16507
|
+
* each recipient listed on the **To** line of the message. The maximum number of recipients returned varies per Outlook client.
|
|
16508
16508
|
*
|
|
16509
|
-
* - Windows: 500
|
|
16509
|
+
* - Windows: 500 recipients
|
|
16510
16510
|
*
|
|
16511
|
-
* -
|
|
16511
|
+
* - Android, classic Mac UI, iOS: 100 recipients
|
|
16512
16512
|
*
|
|
16513
|
-
* - Web browser: 20
|
|
16513
|
+
* - Web browser: 20 recipients
|
|
16514
16514
|
*
|
|
16515
|
-
* - New Mac UI
|
|
16515
|
+
* - New Mac UI: No limit
|
|
16516
16516
|
*
|
|
16517
16517
|
* @remarks
|
|
16518
16518
|
*
|
|
@@ -17516,23 +17516,6 @@ declare namespace Office {
|
|
|
17516
17516
|
/**
|
|
17517
17517
|
* Adds a recipient list to the existing recipients for an appointment or message.
|
|
17518
17518
|
*
|
|
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
17519
|
* @remarks
|
|
17537
17520
|
* [Api set: Mailbox 1.1]
|
|
17538
17521
|
*
|
|
@@ -17540,11 +17523,23 @@ declare namespace Office {
|
|
|
17540
17523
|
*
|
|
17541
17524
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17542
17525
|
*
|
|
17526
|
+
* **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),
|
|
17527
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
17528
|
+
*
|
|
17529
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
17530
|
+
* 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.
|
|
17531
|
+
*
|
|
17532
|
+
* - In Outlook on Android and on iOS, the `addAsync` method isn't supported in Message Compose mode. Only the Appointment Organizer mode is
|
|
17533
|
+
* supported.
|
|
17534
|
+
*
|
|
17535
|
+
* There's no recipient limit if you call `addAsync` in Outlook on Mac (new UI).
|
|
17536
|
+
*
|
|
17543
17537
|
* **Errors**:
|
|
17544
17538
|
*
|
|
17545
17539
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
17546
17540
|
*
|
|
17547
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
17541
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
17542
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17548
17543
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17549
17544
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17550
17545
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
@@ -17554,23 +17549,6 @@ declare namespace Office {
|
|
|
17554
17549
|
/**
|
|
17555
17550
|
* Adds a recipient list to the existing recipients for an appointment or message.
|
|
17556
17551
|
*
|
|
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
17552
|
* @remarks
|
|
17575
17553
|
* [Api set: Mailbox 1.1]
|
|
17576
17554
|
*
|
|
@@ -17578,11 +17556,23 @@ declare namespace Office {
|
|
|
17578
17556
|
*
|
|
17579
17557
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17580
17558
|
*
|
|
17559
|
+
* **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),
|
|
17560
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
17561
|
+
*
|
|
17562
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
17563
|
+
* 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.
|
|
17564
|
+
*
|
|
17565
|
+
* - In Outlook on Android and on iOS, the `addAsync` method isn't supported in Message Compose mode. Only the Appointment Organizer mode is
|
|
17566
|
+
* supported.
|
|
17567
|
+
*
|
|
17568
|
+
* There's no recipient limit if you call `addAsync` in Outlook on Mac (new UI).
|
|
17569
|
+
*
|
|
17581
17570
|
* **Errors**:
|
|
17582
17571
|
*
|
|
17583
17572
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
17584
17573
|
*
|
|
17585
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
17574
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
17575
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17586
17576
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17587
17577
|
* of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
|
|
17588
17578
|
*/
|
|
@@ -17590,54 +17580,51 @@ declare namespace Office {
|
|
|
17590
17580
|
/**
|
|
17591
17581
|
* Gets a recipient list for an appointment or message.
|
|
17592
17582
|
*
|
|
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
17583
|
* @remarks
|
|
17601
17584
|
* [Api set: Mailbox 1.1]
|
|
17602
17585
|
*
|
|
17603
17586
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17604
17587
|
*
|
|
17605
17588
|
* **{@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
|
-
*
|
|
17589
|
+
*
|
|
17590
|
+
* **Important**:
|
|
17591
|
+
*
|
|
17592
|
+
* The maximum number of recipients returned by this method varies per Outlook client.
|
|
17593
|
+
*
|
|
17594
|
+
* - Windows, web browser, Mac (classic UI): 500 recipients
|
|
17595
|
+
*
|
|
17596
|
+
* - Android, iOS: 100 recipients
|
|
17597
|
+
*
|
|
17598
|
+
* - Mac (new UI): No limit
|
|
17599
|
+
*
|
|
17600
|
+
* The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
|
|
17601
|
+
*
|
|
17614
17602
|
* - 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
|
-
*
|
|
17603
|
+
*
|
|
17616
17604
|
* - A Teams meeting status icon appears before the recipient's name or email address.
|
|
17617
|
-
*
|
|
17605
|
+
*
|
|
17618
17606
|
* - A semicolon appears after the recipient's name or email address.
|
|
17619
|
-
*
|
|
17607
|
+
*
|
|
17620
17608
|
* - 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
|
|
17609
|
+
*
|
|
17610
|
+
* 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
17611
|
* the auto-complete list.
|
|
17624
17612
|
*
|
|
17613
|
+
* 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
|
|
17614
|
+
* or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
|
|
17615
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} object instead of the contact's saved name. For more details, see
|
|
17616
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17617
|
+
*
|
|
17625
17618
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17626
17619
|
* `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
|
|
17620
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
17621
|
+
* of type `Office.AsyncResult`. The `asyncResult.value` property of the result is an array of
|
|
17622
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17629
17623
|
*/
|
|
17630
17624
|
getAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
|
|
17631
17625
|
/**
|
|
17632
17626
|
* Gets a recipient list for an appointment or message.
|
|
17633
17627
|
*
|
|
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
17628
|
* @remarks
|
|
17642
17629
|
* [Api set: Mailbox 1.1]
|
|
17643
17630
|
*
|
|
@@ -17645,26 +17632,37 @@ declare namespace Office {
|
|
|
17645
17632
|
*
|
|
17646
17633
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17647
17634
|
*
|
|
17648
|
-
* **Important**:
|
|
17649
|
-
*
|
|
17650
|
-
*
|
|
17651
|
-
*
|
|
17652
|
-
*
|
|
17653
|
-
*
|
|
17654
|
-
*
|
|
17635
|
+
* **Important**:
|
|
17636
|
+
*
|
|
17637
|
+
* The maximum number of recipients returned by this method varies per Outlook client.
|
|
17638
|
+
*
|
|
17639
|
+
* - Windows, web browser, Mac (classic UI): 500 recipients
|
|
17640
|
+
*
|
|
17641
|
+
* - Android, iOS: 100 recipients
|
|
17642
|
+
*
|
|
17643
|
+
* - Mac (new UI): No limit
|
|
17644
|
+
*
|
|
17645
|
+
* The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
|
|
17646
|
+
*
|
|
17655
17647
|
* - 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
|
-
*
|
|
17648
|
+
*
|
|
17657
17649
|
* - A Teams meeting status icon appears before the recipient's name or email address.
|
|
17658
|
-
*
|
|
17650
|
+
*
|
|
17659
17651
|
* - A semicolon appears after the recipient's name or email address.
|
|
17660
|
-
*
|
|
17652
|
+
*
|
|
17661
17653
|
* - 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
|
|
17654
|
+
*
|
|
17655
|
+
* 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
17656
|
* the auto-complete list.
|
|
17665
17657
|
*
|
|
17666
|
-
*
|
|
17667
|
-
*
|
|
17658
|
+
* 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
|
|
17659
|
+
* or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
|
|
17660
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} object instead of the contact's saved name. For more details, see
|
|
17661
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17662
|
+
*
|
|
17663
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
17664
|
+
* of type `Office.AsyncResult`. The `asyncResult.value` property of the result is an array of
|
|
17665
|
+
* {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17668
17666
|
*/
|
|
17669
17667
|
getAsync(callback: (asyncResult: Office.AsyncResult<EmailAddressDetails[]>) => void): void;
|
|
17670
17668
|
/**
|
|
@@ -17672,23 +17670,6 @@ declare namespace Office {
|
|
|
17672
17670
|
*
|
|
17673
17671
|
* The `setAsync` method overwrites the current recipient list.
|
|
17674
17672
|
*
|
|
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
17673
|
* @remarks
|
|
17693
17674
|
* [Api set: Mailbox 1.1]
|
|
17694
17675
|
*
|
|
@@ -17696,11 +17677,23 @@ declare namespace Office {
|
|
|
17696
17677
|
*
|
|
17697
17678
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17698
17679
|
*
|
|
17680
|
+
* **Important**: With the `setAsync` method, you can set a maximum of 100 recipients in Outlook on Windows, on Mac (classic UI),
|
|
17681
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
17682
|
+
*
|
|
17683
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
17684
|
+
* If you need to set more than 100 recipients, you can call `setAsync` repeatedly, but be mindful of the recipient limit of the field.
|
|
17685
|
+
*
|
|
17686
|
+
* - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
|
|
17687
|
+
* supported.
|
|
17688
|
+
*
|
|
17689
|
+
* There's no recipient limit if you call `setAsync` in Outlook on Mac (new UI).
|
|
17690
|
+
*
|
|
17699
17691
|
* **Errors**:
|
|
17700
17692
|
*
|
|
17701
17693
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
17702
17694
|
*
|
|
17703
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
17695
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
17696
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17704
17697
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
17705
17698
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
17706
17699
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
@@ -17713,23 +17706,6 @@ declare namespace Office {
|
|
|
17713
17706
|
*
|
|
17714
17707
|
* The `setAsync` method overwrites the current recipient list.
|
|
17715
17708
|
*
|
|
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
17709
|
* @remarks
|
|
17734
17710
|
* [Api set: Mailbox 1.1]
|
|
17735
17711
|
*
|
|
@@ -17737,11 +17713,23 @@ declare namespace Office {
|
|
|
17737
17713
|
*
|
|
17738
17714
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17739
17715
|
*
|
|
17716
|
+
* **Important**: With the `setAsync` method, you can set a maximum of 100 recipients in Outlook on Windows, on Mac (classic UI),
|
|
17717
|
+
* on the web, on Android, and on iOS. However, take note of the following:
|
|
17718
|
+
*
|
|
17719
|
+
* - In Outlook on Windows, on Mac (classic UI), and on the web, you can have a maximum of 500 recipients in a target field.
|
|
17720
|
+
* If you need to set more than 100 recipients, you can call `setAsync` repeatedly, but be mindful of the recipient limit of the field.
|
|
17721
|
+
*
|
|
17722
|
+
* - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
|
|
17723
|
+
* supported.
|
|
17724
|
+
*
|
|
17725
|
+
* There's no recipient limit if you call `setAsync` in Outlook on Mac (new UI).
|
|
17726
|
+
*
|
|
17740
17727
|
* **Errors**:
|
|
17741
17728
|
*
|
|
17742
17729
|
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
|
|
17743
17730
|
*
|
|
17744
|
-
* @param recipients - The recipients to add to the recipients list.
|
|
17731
|
+
* @param recipients - The recipients to add to the recipients list. The array of recipients can contain strings of SMTP email addresses,
|
|
17732
|
+
* {@link Office.EmailUser | EmailUser} objects, or {@link Office.EmailAddressDetails | EmailAddressDetails} objects.
|
|
17745
17733
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
17746
17734
|
* type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
|
|
17747
17735
|
* indicates any error that occurred while adding the data.
|
|
@@ -88966,35 +88954,35 @@ declare namespace Word {
|
|
|
88966
88954
|
* @remarks
|
|
88967
88955
|
* [Api set: WordApi 1.5]
|
|
88968
88956
|
*/
|
|
88969
|
-
importChangeTrackingMode
|
|
88957
|
+
importChangeTrackingMode?: boolean;
|
|
88970
88958
|
/**
|
|
88971
88959
|
* Represents whether the page color and other background information from the source document should be imported.
|
|
88972
88960
|
*
|
|
88973
88961
|
* @remarks
|
|
88974
88962
|
* [Api set: WordApi 1.5]
|
|
88975
88963
|
*/
|
|
88976
|
-
importPageColor
|
|
88964
|
+
importPageColor?: boolean;
|
|
88977
88965
|
/**
|
|
88978
88966
|
* Represents whether the paragraph spacing from the source document should be imported.
|
|
88979
88967
|
*
|
|
88980
88968
|
* @remarks
|
|
88981
88969
|
* [Api set: WordApi 1.5]
|
|
88982
88970
|
*/
|
|
88983
|
-
importParagraphSpacing
|
|
88971
|
+
importParagraphSpacing?: boolean;
|
|
88984
88972
|
/**
|
|
88985
88973
|
* Represents whether the styles from the source document should be imported.
|
|
88986
88974
|
*
|
|
88987
88975
|
* @remarks
|
|
88988
88976
|
* [Api set: WordApi 1.5]
|
|
88989
88977
|
*/
|
|
88990
|
-
importStyles
|
|
88978
|
+
importStyles?: boolean;
|
|
88991
88979
|
/**
|
|
88992
88980
|
* Represents whether the theme from the source document should be imported.
|
|
88993
88981
|
*
|
|
88994
88982
|
* @remarks
|
|
88995
88983
|
* [Api set: WordApi 1.5]
|
|
88996
88984
|
*/
|
|
88997
|
-
importTheme
|
|
88985
|
+
importTheme?: boolean;
|
|
88998
88986
|
}
|
|
88999
88987
|
/**
|
|
89000
88988
|
* Specifies the options to be included in a search operation.
|
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.334",
|
|
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": "2428e1df634be62898a3b56a33fbb8a4f129d6bfdaa95ab4fb9131c5a7f4409a",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|