@types/office-js-preview 1.0.422 → 1.0.423

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: Fri, 06 Oct 2023 19:35:19 GMT
11
+ * Last updated: Wed, 11 Oct 2023 20:35:13 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -14449,10 +14449,7 @@ declare namespace Office {
14449
14449
  */
14450
14450
  addHandlerAsync(eventType: Office.EventType | string, handler: any, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
14451
14451
  /**
14452
- * Converts an item ID formatted for REST into EWS format.
14453
- *
14454
- * Item IDs retrieved via a REST API (such as the Outlook Mail API or the Microsoft Graph) use a different format than the format used by
14455
- * Exchange Web Services (EWS). The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
14452
+ * Converts a supported ID into the Exchange Web Services (EWS) format.
14456
14453
  *
14457
14454
  * @remarks
14458
14455
  * [Api set: Mailbox 1.3]
@@ -14461,13 +14458,19 @@ declare namespace Office {
14461
14458
  *
14462
14459
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14463
14460
  *
14464
- * **Important**: This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14461
+ * **Important**:
14462
+ *
14463
+ * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14465
14464
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
14466
14465
  *
14467
- * @param itemId - An item ID formatted for the Outlook REST APIs.
14466
+ * - Item IDs retrieved via a REST API (such as the Outlook Mail API or the Microsoft Graph) use a different format than the format used by EWS.
14467
+ * The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
14468
+ *
14469
+ * @param id - The ID to be converted into EWS format. This string can be an item ID formatted for the Outlook REST APIs or a conversation ID retrieved from
14470
+ * `Office.context.mailbox.item.conversationId`.
14468
14471
  * @param restVersion - A value indicating the version of the Outlook REST API used to retrieve the item ID.
14469
14472
  */
14470
- convertToEwsId(itemId: string, restVersion: MailboxEnums.RestVersion | string): string;
14473
+ convertToEwsId(id: string, restVersion: MailboxEnums.RestVersion | string): string;
14471
14474
  /**
14472
14475
  * Gets a dictionary containing time information in local client time.
14473
14476
  *
@@ -14491,7 +14494,7 @@ declare namespace Office {
14491
14494
  */
14492
14495
  convertToLocalClientTime(timeValue: Date): LocalClientTime;
14493
14496
  /**
14494
- * Converts an item ID formatted for EWS into REST format.
14497
+ * Converts a supported ID into REST format.
14495
14498
  *
14496
14499
  * @remarks
14497
14500
  * [Api set: Mailbox 1.3]
@@ -14505,15 +14508,17 @@ declare namespace Office {
14505
14508
  * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14506
14509
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
14507
14510
  *
14508
- * - Item IDs retrieved via EWS or via the `itemId` property use a different format than the format used by REST APIs (such as the
14511
+ * - Item IDs retrieved via Exchange Web Services (EWS) or via the `itemId` property use a different format than the format used by REST APIs (such as the
14509
14512
  * {@link https://learn.microsoft.com/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations | Outlook Mail API}
14510
- * or the {@link https://graph.microsoft.io/ | Microsoft Graph}.
14513
+ * or the {@link https://graph.microsoft.io/ | Microsoft Graph}).
14511
14514
  * The `convertToRestId` method converts an EWS-formatted ID into the proper format for REST.
14512
14515
  *
14513
- * @param itemId - An item ID formatted for Exchange Web Services (EWS)
14514
- * @param restVersion - A value indicating the version of the Outlook REST API that the converted ID will be used with.
14516
+ * @param id - The ID to be converted into REST format. This string can be an item ID formatted for EWS that's usually retrieved from
14517
+ * `Office.context.mailbox.item.itemId`, a conversation ID retrieved from `Office.context.mailbox.item.conversationId`, or a
14518
+ * series ID retrieved from `Office.context.mailbox.item.seriesId`.
14519
+ * @param restVersion - A value indicating the version of the Outlook REST API used with the converted ID.
14515
14520
  */
14516
- convertToRestId(itemId: string, restVersion: MailboxEnums.RestVersion | string): string;
14521
+ convertToRestId(id: string, restVersion: MailboxEnums.RestVersion | string): string;
14517
14522
  /**
14518
14523
  * Gets a `Date` object from a dictionary containing time information.
14519
14524
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.422",
3
+ "version": "1.0.423",
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": "8e6a6b3b7eeae372f2cf2e7bfd79f3c619862ee811c72a3783be20254da3a0f0",
48
+ "typesPublisherContentHash": "6a78737f9139b5d1fb7d6f427c810de9b466a34f4a9bbe9c2862bfbd605ceb2a",
49
49
  "typeScriptVersion": "4.5"
50
50
  }