@types/office-js-preview 1.0.314 → 1.0.317
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 +80 -42
- 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: Tue, 28 Jun 2022 23:32:26 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
|
@@ -1536,9 +1536,15 @@ declare namespace Office {
|
|
|
1536
1536
|
*
|
|
1537
1537
|
* **Hosts**: Excel, OneNote, Outlook, PowerPoint, Word
|
|
1538
1538
|
*
|
|
1539
|
-
* **Important**: In Outlook, this API is not supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
|
|
1540
|
-
*
|
|
1541
1539
|
* **Requirement set**: {@link https://docs.microsoft.com/javascript/api/requirement-sets/common/identity-api-requirement-sets | IdentityAPI 1.3}
|
|
1540
|
+
*
|
|
1541
|
+
* **Important**: In Outlook, this API isn't supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
|
|
1542
|
+
*
|
|
1543
|
+
* **Note**: In an Outlook event-based activation add-in, this API is supported in Outlook on Windows starting from version 2111 (build 14701.20000).
|
|
1544
|
+
* To retrieve an access token in older builds, use
|
|
1545
|
+
* {@link https://docs.microsoft.com/javascript/api/office-runtime/officeruntime.auth?view=common-js-preview#office-runtime-officeruntime-auth-getaccesstoken-member(1) |
|
|
1546
|
+
* OfficeRuntime.auth.getAccessToken} instead. For more information, see
|
|
1547
|
+
* {@link https://docs.microsoft.com/office/dev/add-ins/outlook/use-sso-in-event-based-activation | Enable single sign-on (SSO) in Outlook add-ins that use event-based activation}.
|
|
1542
1548
|
*
|
|
1543
1549
|
* @param options - Optional. Accepts an `AuthOptions` object to define sign-on behaviors.
|
|
1544
1550
|
* @returns Promise to the access token.
|
|
@@ -10819,9 +10825,9 @@ declare namespace Office {
|
|
|
10819
10825
|
*
|
|
10820
10826
|
* - Windows: 500 members
|
|
10821
10827
|
*
|
|
10822
|
-
* - Mac: 100 members
|
|
10828
|
+
* - Classic Mac UI: 100 members
|
|
10823
10829
|
*
|
|
10824
|
-
* -
|
|
10830
|
+
* - New Mac UI, web browser, Android: No limit
|
|
10825
10831
|
*
|
|
10826
10832
|
* *Compose mode*
|
|
10827
10833
|
*
|
|
@@ -10856,9 +10862,9 @@ declare namespace Office {
|
|
|
10856
10862
|
*
|
|
10857
10863
|
* - Windows: 500 members
|
|
10858
10864
|
*
|
|
10859
|
-
* - Mac: 100 members
|
|
10865
|
+
* - Classic Mac UI: 100 members
|
|
10860
10866
|
*
|
|
10861
|
-
* -
|
|
10867
|
+
* - New Mac UI, web browser, Android: No limit
|
|
10862
10868
|
*
|
|
10863
10869
|
* *Compose mode*
|
|
10864
10870
|
*
|
|
@@ -11141,11 +11147,11 @@ declare namespace Office {
|
|
|
11141
11147
|
* The `optionalAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
11142
11148
|
* each optional attendee to the meeting. Collection size limits:
|
|
11143
11149
|
*
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
|
|
11147
|
-
|
|
11148
|
-
|
|
11150
|
+
* - Windows: 500 members
|
|
11151
|
+
*
|
|
11152
|
+
* - Classic Mac UI: 100 members
|
|
11153
|
+
*
|
|
11154
|
+
* - New Mac UI, web browser, Android: No limit
|
|
11149
11155
|
*
|
|
11150
11156
|
* @remarks
|
|
11151
11157
|
*
|
|
@@ -11189,11 +11195,11 @@ declare namespace Office {
|
|
|
11189
11195
|
* The `requiredAttendees` property returns an array that contains an {@link Office.EmailAddressDetails | EmailAddressDetails} object for
|
|
11190
11196
|
* each required attendee to the meeting. Collection size limits:
|
|
11191
11197
|
*
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11198
|
+
* - Windows: 500 members
|
|
11199
|
+
*
|
|
11200
|
+
* - Classic Mac UI: 100 members
|
|
11201
|
+
*
|
|
11202
|
+
* - New Mac UI, web browser, Android: No limit
|
|
11197
11203
|
*
|
|
11198
11204
|
* @remarks
|
|
11199
11205
|
*
|
|
@@ -15995,11 +16001,11 @@ declare namespace Office {
|
|
|
15995
16001
|
*
|
|
15996
16002
|
* - Windows: 500 members
|
|
15997
16003
|
*
|
|
15998
|
-
* - Mac: 100 members
|
|
16004
|
+
* - Classic Mac UI: 100 members
|
|
15999
16005
|
*
|
|
16000
16006
|
* - Web browser: 20 members
|
|
16001
16007
|
*
|
|
16002
|
-
* -
|
|
16008
|
+
* - New Mac UI, Android: No limit
|
|
16003
16009
|
*
|
|
16004
16010
|
* @remarks
|
|
16005
16011
|
*
|
|
@@ -16293,11 +16299,11 @@ declare namespace Office {
|
|
|
16293
16299
|
*
|
|
16294
16300
|
* - Windows: 500 members
|
|
16295
16301
|
*
|
|
16296
|
-
* - Mac: 100 members
|
|
16302
|
+
* - Classic Mac UI: 100 members
|
|
16297
16303
|
*
|
|
16298
16304
|
* - Web browser: 20 members
|
|
16299
16305
|
*
|
|
16300
|
-
* -
|
|
16306
|
+
* - New Mac UI, Android: No limit
|
|
16301
16307
|
*
|
|
16302
16308
|
* @remarks
|
|
16303
16309
|
*
|
|
@@ -17440,9 +17446,9 @@ declare namespace Office {
|
|
|
17440
17446
|
* - Windows: 100 recipients.
|
|
17441
17447
|
* **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
|
|
17442
17448
|
*
|
|
17443
|
-
* - Mac, web browser: 100 recipients
|
|
17449
|
+
* - Classic Mac UI, web browser: 100 recipients
|
|
17444
17450
|
*
|
|
17445
|
-
* -
|
|
17451
|
+
* - New Mac UI, Android: No limit
|
|
17446
17452
|
*
|
|
17447
17453
|
* @remarks
|
|
17448
17454
|
* [Api set: Mailbox 1.1]
|
|
@@ -17478,9 +17484,9 @@ declare namespace Office {
|
|
|
17478
17484
|
* - Windows: 100 recipients.
|
|
17479
17485
|
* **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
|
|
17480
17486
|
*
|
|
17481
|
-
* - Mac, web browser: 100 recipients
|
|
17487
|
+
* - Classic Mac UI, web browser: 100 recipients
|
|
17482
17488
|
*
|
|
17483
|
-
* -
|
|
17489
|
+
* - New Mac UI, Android: No limit
|
|
17484
17490
|
*
|
|
17485
17491
|
* @remarks
|
|
17486
17492
|
* [Api set: Mailbox 1.1]
|
|
@@ -17504,14 +17510,9 @@ declare namespace Office {
|
|
|
17504
17510
|
* When the call completes, the `asyncResult.value` property will contain an array of {@link Office.EmailAddressDetails | EmailAddressDetails}
|
|
17505
17511
|
* objects. Collection size limits:
|
|
17506
17512
|
*
|
|
17507
|
-
* - Windows, Mac, web browser: 500 members
|
|
17508
|
-
*
|
|
17509
|
-
* - Other: No limit
|
|
17513
|
+
* - Windows, classic Mac UI, web browser: 500 members
|
|
17510
17514
|
*
|
|
17511
|
-
*
|
|
17512
|
-
* profile card, your add-in's `getAsync` call currently won't return a value in the `displayName` property of the
|
|
17513
|
-
* associated `EmailAddressDetails` object. For more details, refer to the
|
|
17514
|
-
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17515
|
+
* - New Mac UI, Android: No limit
|
|
17515
17516
|
*
|
|
17516
17517
|
* @remarks
|
|
17517
17518
|
* [Api set: Mailbox 1.1]
|
|
@@ -17519,6 +17520,24 @@ declare namespace Office {
|
|
|
17519
17520
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
17520
17521
|
*
|
|
17521
17522
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17523
|
+
*
|
|
17524
|
+
* **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
|
|
17525
|
+
* or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
|
|
17526
|
+
* `EmailAddressDetails` object instead of the contact's saved name. For more details, refer to the
|
|
17527
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17528
|
+
*
|
|
17529
|
+
* **Important**: The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
|
|
17530
|
+
*
|
|
17531
|
+
* - 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.
|
|
17532
|
+
*
|
|
17533
|
+
* - A Teams meeting status icon appears before the recipient's name or email address.
|
|
17534
|
+
*
|
|
17535
|
+
* - A semicolon appears after the recipient's name or email address.
|
|
17536
|
+
*
|
|
17537
|
+
* - The recipient's name or email address is underlined or enclosed in a box.
|
|
17538
|
+
*
|
|
17539
|
+
* 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
|
|
17540
|
+
* the auto-complete list.
|
|
17522
17541
|
*
|
|
17523
17542
|
* @param options - An object literal that contains one or more of the following properties.
|
|
17524
17543
|
* `asyncContext`: Developers can provide any object they wish to access in the callback method.
|
|
@@ -17532,14 +17551,9 @@ declare namespace Office {
|
|
|
17532
17551
|
* When the call completes, the `asyncResult.value` property will contain an array of {@link Office.EmailAddressDetails | EmailAddressDetails}
|
|
17533
17552
|
* objects. Collection size limits:
|
|
17534
17553
|
*
|
|
17535
|
-
* - Windows, Mac, web browser: 500 members
|
|
17536
|
-
*
|
|
17537
|
-
* - Other: No limit
|
|
17554
|
+
* - Windows, classic Mac UI, web browser: 500 members
|
|
17538
17555
|
*
|
|
17539
|
-
*
|
|
17540
|
-
* profile card, your add-in's `getAsync` call currently won't return a value in the `displayName` property of the
|
|
17541
|
-
* associated `EmailAddressDetails` object. For more details, refer to the
|
|
17542
|
-
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17556
|
+
* - New Mac UI, Android: No limit
|
|
17543
17557
|
*
|
|
17544
17558
|
* @remarks
|
|
17545
17559
|
* [Api set: Mailbox 1.1]
|
|
@@ -17547,6 +17561,24 @@ declare namespace Office {
|
|
|
17547
17561
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
17548
17562
|
*
|
|
17549
17563
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17564
|
+
*
|
|
17565
|
+
* **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
|
|
17566
|
+
* or profile card, your add-in's `Recipients.getAsync` call returns the contact's email address in the `displayName` property of the associated
|
|
17567
|
+
* `EmailAddressDetails` object instead of the contact's saved name. For more details, refer to the
|
|
17568
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17569
|
+
*
|
|
17570
|
+
* **Important**: The `getAsync` method only returns recipients resolved by the Outlook client. A resolved recipient has the following characteristics.
|
|
17571
|
+
*
|
|
17572
|
+
* - 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.
|
|
17573
|
+
*
|
|
17574
|
+
* - A Teams meeting status icon appears before the recipient's name or email address.
|
|
17575
|
+
*
|
|
17576
|
+
* - A semicolon appears after the recipient's name or email address.
|
|
17577
|
+
*
|
|
17578
|
+
* - The recipient's name or email address is underlined or enclosed in a box.
|
|
17579
|
+
*
|
|
17580
|
+
* 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
|
|
17581
|
+
* the auto-complete list.
|
|
17550
17582
|
*
|
|
17551
17583
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17552
17584
|
* of type `Office.AsyncResult`. The `value` property of the result is an array of `EmailAddressDetails` objects.
|
|
@@ -17567,9 +17599,12 @@ declare namespace Office {
|
|
|
17567
17599
|
*
|
|
17568
17600
|
* Maximum number that can be set:
|
|
17569
17601
|
*
|
|
17570
|
-
* - Windows
|
|
17602
|
+
* - Windows: 100 recipients.
|
|
17603
|
+
* **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
|
|
17604
|
+
*
|
|
17605
|
+
* - Classic Mac UI, web browser: 100 recipients
|
|
17571
17606
|
*
|
|
17572
|
-
* -
|
|
17607
|
+
* - New Mac UI, Android: No limit
|
|
17573
17608
|
*
|
|
17574
17609
|
* @remarks
|
|
17575
17610
|
* [Api set: Mailbox 1.1]
|
|
@@ -17605,9 +17640,12 @@ declare namespace Office {
|
|
|
17605
17640
|
*
|
|
17606
17641
|
* Maximum number that can be set:
|
|
17607
17642
|
*
|
|
17608
|
-
* - Windows
|
|
17643
|
+
* - Windows: 100 recipients.
|
|
17644
|
+
* **Note**: Can call API repeatedly but the maximum number of recipients in the target field on the item is 500 recipients.
|
|
17645
|
+
*
|
|
17646
|
+
* - Classic Mac UI, web browser: 100 recipients
|
|
17609
17647
|
*
|
|
17610
|
-
* -
|
|
17648
|
+
* - New Mac UI, Android: No limit
|
|
17611
17649
|
*
|
|
17612
17650
|
* @remarks
|
|
17613
17651
|
* [Api set: Mailbox 1.1]
|
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.317",
|
|
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": "f19ecff4c37e5e2bfe90d4e84f785282ed2b85d00355182d4fb4e0c340eea623",
|
|
49
49
|
"typeScriptVersion": "4.0"
|
|
50
50
|
}
|