@types/office-js 1.0.378 → 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 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: Thu, 28 Mar 2024 20:35:30 GMT
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
@@ -11129,9 +11129,9 @@ declare namespace Office {
11129
11129
  */
11130
11130
  enhancedLocation: EnhancedLocation;
11131
11131
  /**
11132
- * Gets the Exchange Web Services item class of the selected item.
11132
+ * Gets the Exchange Web Services item class of the selected appointment.
11133
11133
  *
11134
- * You can create custom message classes that extends a default message class, for example, a custom appointment message class `IPM.Appointment.Contoso`.
11134
+ * Returns `IPM.Appointment` for non-recurring appointments and `IPM.Appointment.Occurrence` for recurring appointments.
11135
11135
  *
11136
11136
  * @remarks
11137
11137
  *
@@ -11139,26 +11139,7 @@ declare namespace Office {
11139
11139
  *
11140
11140
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
11141
11141
  *
11142
- * The `itemClass` property specifies the message class of the selected item. The following are the default message classes for the message or appointment item.
11143
- *
11144
- * <table>
11145
- * <tr>
11146
- * <th>Type</th>
11147
- * <th>Description</th>
11148
- * <th>Item Class</th>
11149
- * </tr>
11150
- * <tr>
11151
- * <td>Appointment items</td>
11152
- * <td>These are calendar items of the item class IPM.Appointment or IPM.Appointment.Occurrence.</td>
11153
- * <td>IPM.Appointment, IPM.Appointment.Occurrence</td>
11154
- * </tr>
11155
- * <tr>
11156
- * <td>Message items</td>
11157
- * <td>These include email messages that have the default message class IPM.Note, and meeting requests, responses, and cancellations, that use IPM.Schedule.Meeting as the base message class.</td>
11158
- * <td>IPM.Note, IPM.Schedule.Meeting.Request, IPM.Schedule.Meeting.Neg, IPM.Schedule.Meeting.Pos, IPM.Schedule.Meeting.Tent, IPM.Schedule.Meeting.Canceled</td>
11159
- * </tr>
11160
- * </table>
11161
- *
11142
+ * **Important**: You can create custom classes that extend a default item class. For example, `IPM.Appointment.Contoso`.
11162
11143
  */
11163
11144
  itemClass: string;
11164
11145
  /**
@@ -14803,6 +14784,29 @@ declare namespace Office {
14803
14784
  *
14804
14785
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14805
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
+ *
14806
14810
  * *REST Tokens*
14807
14811
  *
14808
14812
  * When a REST token is requested (`options.isRest` = `true`), the resulting token won't work to authenticate EWS calls.
@@ -14837,22 +14841,6 @@ declare namespace Office {
14837
14841
  * attachment or item. For example, you can create a remote service to
14838
14842
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/get-attachments-of-an-outlook-item | get attachments from the selected item}.
14839
14843
  *
14840
- * **Important**:
14841
- *
14842
- * - 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
14843
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
14844
- *
14845
- * - EWS operations aren't supported in add-ins running in Outlook on iOS and on Android. A REST token is always returned in Outlook
14846
- * mobile clients even if `options.isRest` is set to `false`.
14847
- *
14848
- *- Calling the `getCallbackTokenAsync` method in read mode requires a minimum permission level of **read item**.
14849
- *
14850
- * - Calling the `getCallbackTokenAsync` method in compose mode requires you to have saved the item.
14851
- * The `saveAsync` method requires a minimum permission level of **read/write item**.
14852
- *
14853
- * - For guidance on delegate or shared scenarios, see the
14854
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/delegate-access | shared folders and shared mailbox} article.
14855
- *
14856
14844
  * **Errors**:
14857
14845
  *
14858
14846
  * - `HTTPRequestFailure`: The request has failed. Please look at the diagnostics object for the HTTP error code.
@@ -14886,6 +14874,13 @@ declare namespace Office {
14886
14874
  *
14887
14875
  * **Important**:
14888
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
+ *
14889
14884
  * - You can pass both the token and either an attachment identifier or item identifier to an external system. That system uses
14890
14885
  * the token as a bearer authorization token to call the Exchange Web Services (EWS)
14891
14886
  * {@link https://learn.microsoft.com/exchange/client-developer/web-service-reference/getattachment-operation | GetAttachment} or
@@ -14974,7 +14969,16 @@ declare namespace Office {
14974
14969
  *
14975
14970
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14976
14971
  *
14977
- * The `getUserIdentityTokenAsync` method returns a token that you can use to identify and
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
14978
14982
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication | authenticate the add-in and user with an external system}.
14979
14983
  *
14980
14984
  * **Errors**:
@@ -15006,6 +15010,13 @@ declare namespace Office {
15006
15010
  *
15007
15011
  * **Important**:
15008
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
+ *
15009
15020
  * - To enable the `makeEwsRequestAsync` method to make EWS requests, the server administrator must set `OAuthAuthentication` to `true` on the
15010
15021
  * Client Access Server EWS directory .
15011
15022
  *
@@ -16700,10 +16711,7 @@ declare namespace Office {
16700
16711
  */
16701
16712
  internetMessageId: string;
16702
16713
  /**
16703
- * Gets the Exchange Web Services item class of the selected item.
16704
- *
16705
- * You can create custom message classes that extends a default message class, for example, a custom appointment message class
16706
- * `IPM.Appointment.Contoso`.
16714
+ * Gets the Exchange Web Services item class of the selected message.
16707
16715
  *
16708
16716
  * @remarks
16709
16717
  *
@@ -16711,27 +16719,42 @@ declare namespace Office {
16711
16719
  *
16712
16720
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
16713
16721
  *
16714
- * The `itemClass` property specifies the message class of the selected item.
16715
- * The following are the default message classes for the message or appointment item.
16722
+ * **Important**:
16723
+ *
16724
+ * The following table lists the default item classes for messages.
16716
16725
  *
16717
16726
  * <table>
16718
16727
  * <tr>
16719
- * <th>Type</th>
16728
+ * <th>Item class</th>
16720
16729
  * <th>Description</th>
16721
- * <th>Item Class</th>
16722
16730
  * </tr>
16723
16731
  * <tr>
16724
- * <td>Appointment items</td>
16725
- * <td>These are calendar items of the item class IPM.Appointment or IPM.Appointment.Occurrence.</td>
16726
- * <td>IPM.Appointment, IPM.Appointment.Occurrence</td>
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>
16727
16750
  * </tr>
16728
16751
  * <tr>
16729
- * <td>Message items</td>
16730
- * <td>These include email messages that have the default message class IPM.Note, and meeting requests, responses, and cancellations, that use IPM.Schedule.Meeting as the base message class.</td>
16731
- * <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>
16732
16754
  * </tr>
16733
16755
  * </table>
16734
16756
  *
16757
+ * You can create custom classes that extend a default item class. For example, `IPM.Note.Contoso`.
16735
16758
  */
16736
16759
  itemClass: string;
16737
16760
  /**
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.378",
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": "bcc55dc00af5d598cb779a049b17524cf96d7c0ddb9b6406bab86a02222978d6",
48
+ "typesPublisherContentHash": "2bbb69642d5833dbbfabe2e32e1d7775286206e6319a1a37cef11a4ec7b92723",
49
49
  "typeScriptVersion": "4.7"
50
50
  }