@types/office-js 1.0.379 → 1.0.380
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 +73 -31
- 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: Tue, 09 Apr 2024 18:07:35 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -14784,6 +14784,29 @@ declare namespace Office {
|
|
|
14784
14784
|
*
|
|
14785
14785
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
14786
14786
|
*
|
|
14787
|
+
* **Important**:
|
|
14788
|
+
*
|
|
14789
|
+
* - In October 2024, legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
|
|
14790
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens will be turned off by default for all Exchange Online tenants.
|
|
14791
|
+
* This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
|
|
14792
|
+
* which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
|
|
14793
|
+
* Nested app authentication is the recommended approach for tokens going forward. For more information, see our {@link https://aka.ms/NAApreviewblog | blog post} and
|
|
14794
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens | FAQ page}.
|
|
14795
|
+
*
|
|
14796
|
+
* - This method is only supported in read mode in Outlook on Android and on iOS. For more information on supported APIs in Outlook mobile, see
|
|
14797
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
14798
|
+
*
|
|
14799
|
+
* - EWS operations aren't supported in add-ins running in Outlook on iOS and on Android. A REST token is always returned in Outlook
|
|
14800
|
+
* mobile clients even if `options.isRest` is set to `false`.
|
|
14801
|
+
*
|
|
14802
|
+
*- Calling the `getCallbackTokenAsync` method in read mode requires a minimum permission level of **read item**.
|
|
14803
|
+
*
|
|
14804
|
+
* - Calling the `getCallbackTokenAsync` method in compose mode requires you to have saved the item.
|
|
14805
|
+
* The `saveAsync` method requires a minimum permission level of **read/write item**.
|
|
14806
|
+
*
|
|
14807
|
+
* - For guidance on delegate or shared scenarios, see the
|
|
14808
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/delegate-access | shared folders and shared mailbox} article.
|
|
14809
|
+
*
|
|
14787
14810
|
* *REST Tokens*
|
|
14788
14811
|
*
|
|
14789
14812
|
* When a REST token is requested (`options.isRest` = `true`), the resulting token won't work to authenticate EWS calls.
|
|
@@ -14818,22 +14841,6 @@ declare namespace Office {
|
|
|
14818
14841
|
* attachment or item. For example, you can create a remote service to
|
|
14819
14842
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/get-attachments-of-an-outlook-item | get attachments from the selected item}.
|
|
14820
14843
|
*
|
|
14821
|
-
* **Important**:
|
|
14822
|
-
*
|
|
14823
|
-
* - This method is only supported in read mode in Outlook on Android and on iOS. For more information on supported APIs in Outlook mobile, see
|
|
14824
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
14825
|
-
*
|
|
14826
|
-
* - EWS operations aren't supported in add-ins running in Outlook on iOS and on Android. A REST token is always returned in Outlook
|
|
14827
|
-
* mobile clients even if `options.isRest` is set to `false`.
|
|
14828
|
-
*
|
|
14829
|
-
*- Calling the `getCallbackTokenAsync` method in read mode requires a minimum permission level of **read item**.
|
|
14830
|
-
*
|
|
14831
|
-
* - Calling the `getCallbackTokenAsync` method in compose mode requires you to have saved the item.
|
|
14832
|
-
* The `saveAsync` method requires a minimum permission level of **read/write item**.
|
|
14833
|
-
*
|
|
14834
|
-
* - For guidance on delegate or shared scenarios, see the
|
|
14835
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/delegate-access | shared folders and shared mailbox} article.
|
|
14836
|
-
*
|
|
14837
14844
|
* **Errors**:
|
|
14838
14845
|
*
|
|
14839
14846
|
* - `HTTPRequestFailure`: The request has failed. Please look at the diagnostics object for the HTTP error code.
|
|
@@ -14867,6 +14874,13 @@ declare namespace Office {
|
|
|
14867
14874
|
*
|
|
14868
14875
|
* **Important**:
|
|
14869
14876
|
*
|
|
14877
|
+
* - In October 2024, legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
|
|
14878
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens will be turned off by default for all Exchange Online tenants.
|
|
14879
|
+
* This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
|
|
14880
|
+
* which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
|
|
14881
|
+
* Nested app authentication is the recommended approach for tokens going forward. For more information, see our {@link https://aka.ms/NAApreviewblog | blog post} and
|
|
14882
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens | FAQ page}.
|
|
14883
|
+
*
|
|
14870
14884
|
* - You can pass both the token and either an attachment identifier or item identifier to an external system. That system uses
|
|
14871
14885
|
* the token as a bearer authorization token to call the Exchange Web Services (EWS)
|
|
14872
14886
|
* {@link https://learn.microsoft.com/exchange/client-developer/web-service-reference/getattachment-operation | GetAttachment} or
|
|
@@ -14955,7 +14969,16 @@ declare namespace Office {
|
|
|
14955
14969
|
*
|
|
14956
14970
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
14957
14971
|
*
|
|
14958
|
-
*
|
|
14972
|
+
* **Important**:
|
|
14973
|
+
*
|
|
14974
|
+
* - In October 2024, legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
|
|
14975
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens will be turned off by default for all Exchange Online tenants.
|
|
14976
|
+
* This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
|
|
14977
|
+
* which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
|
|
14978
|
+
* Nested app authentication is the recommended approach for tokens going forward. For more information, see our {@link https://aka.ms/NAApreviewblog | blog post} and
|
|
14979
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens | FAQ page}.
|
|
14980
|
+
*
|
|
14981
|
+
* - The `getUserIdentityTokenAsync` method returns a token that you can use to identify and
|
|
14959
14982
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication | authenticate the add-in and user with an external system}.
|
|
14960
14983
|
*
|
|
14961
14984
|
* **Errors**:
|
|
@@ -14987,6 +15010,13 @@ declare namespace Office {
|
|
|
14987
15010
|
*
|
|
14988
15011
|
* **Important**:
|
|
14989
15012
|
*
|
|
15013
|
+
* - In October 2024, legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
|
|
15014
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens will be turned off by default for all Exchange Online tenants.
|
|
15015
|
+
* This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
|
|
15016
|
+
* which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
|
|
15017
|
+
* Nested app authentication is the recommended approach for tokens going forward. For more information, see our {@link https://aka.ms/NAApreviewblog | blog post} and
|
|
15018
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens | FAQ page}.
|
|
15019
|
+
*
|
|
14990
15020
|
* - To enable the `makeEwsRequestAsync` method to make EWS requests, the server administrator must set `OAuthAuthentication` to `true` on the
|
|
14991
15021
|
* Client Access Server EWS directory .
|
|
14992
15022
|
*
|
|
@@ -16681,10 +16711,7 @@ declare namespace Office {
|
|
|
16681
16711
|
*/
|
|
16682
16712
|
internetMessageId: string;
|
|
16683
16713
|
/**
|
|
16684
|
-
* Gets the Exchange Web Services item class of the selected
|
|
16685
|
-
*
|
|
16686
|
-
* You can create custom message classes that extends a default message class, for example, a custom appointment message class
|
|
16687
|
-
* `IPM.Appointment.Contoso`.
|
|
16714
|
+
* Gets the Exchange Web Services item class of the selected message.
|
|
16688
16715
|
*
|
|
16689
16716
|
* @remarks
|
|
16690
16717
|
*
|
|
@@ -16692,27 +16719,42 @@ declare namespace Office {
|
|
|
16692
16719
|
*
|
|
16693
16720
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
16694
16721
|
*
|
|
16695
|
-
*
|
|
16696
|
-
*
|
|
16722
|
+
* **Important**:
|
|
16723
|
+
*
|
|
16724
|
+
* The following table lists the default item classes for messages.
|
|
16697
16725
|
*
|
|
16698
16726
|
* <table>
|
|
16699
16727
|
* <tr>
|
|
16700
|
-
* <th>
|
|
16728
|
+
* <th>Item class</th>
|
|
16701
16729
|
* <th>Description</th>
|
|
16702
|
-
* <th>Item Class</th>
|
|
16703
16730
|
* </tr>
|
|
16704
16731
|
* <tr>
|
|
16705
|
-
* <td>
|
|
16706
|
-
* <td>
|
|
16707
|
-
*
|
|
16732
|
+
* <td>IPM.Note</td>
|
|
16733
|
+
* <td>New messages and message replies</td>
|
|
16734
|
+
* </tr>
|
|
16735
|
+
* <tr>
|
|
16736
|
+
* <td>IPM.Schedule.Meeting.Request</td>
|
|
16737
|
+
* <td>Meeting requests</td>
|
|
16738
|
+
* </tr>
|
|
16739
|
+
* <tr>
|
|
16740
|
+
* <td>IPM.Schedule.Meeting.Canceled</td>
|
|
16741
|
+
* <td>Meeting cancellations</td>
|
|
16742
|
+
* </tr>
|
|
16743
|
+
* <tr>
|
|
16744
|
+
* <td>IPM.Schedule.Meeting.Resp.Neg</td>
|
|
16745
|
+
* <td>Responses to decline meeting requests</td>
|
|
16746
|
+
* </tr>
|
|
16747
|
+
* <tr>
|
|
16748
|
+
* <td>IPM.Schedule.Meeting.Resp.Pos</td>
|
|
16749
|
+
* <td>Responses to accept meeting requests</td>
|
|
16708
16750
|
* </tr>
|
|
16709
16751
|
* <tr>
|
|
16710
|
-
* <td>
|
|
16711
|
-
* <td>
|
|
16712
|
-
* <td>IPM.Note, IPM.Schedule.Meeting.Request, IPM.Schedule.Meeting.Neg, IPM.Schedule.Meeting.Pos, IPM.Schedule.Meeting.Tent, IPM.Schedule.Meeting.Canceled</td>
|
|
16752
|
+
* <td>IPM.Schedule.Meeting.Resp.Tent</td>
|
|
16753
|
+
* <td>Responses to tentatively accept meeting requests</td>
|
|
16713
16754
|
* </tr>
|
|
16714
16755
|
* </table>
|
|
16715
16756
|
*
|
|
16757
|
+
* You can create custom classes that extend a default item class. For example, `IPM.Note.Contoso`.
|
|
16716
16758
|
*/
|
|
16717
16759
|
itemClass: string;
|
|
16718
16760
|
/**
|
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.380",
|
|
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": "2bbb69642d5833dbbfabe2e32e1d7775286206e6319a1a37cef11a4ec7b92723",
|
|
49
49
|
"typeScriptVersion": "4.7"
|
|
50
50
|
}
|