@types/office-js-preview 1.0.393 → 1.0.394

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: Mon, 19 Jun 2023 15:02:36 GMT
11
+ * Last updated: Tue, 20 Jun 2023 17:32:41 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -14761,11 +14761,11 @@ declare namespace Office {
14761
14761
  * @param options - An object literal that contains one or more of the following properties:-
14762
14762
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
14763
14763
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
14764
- * `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages are returned as an array of JSON objects in the
14765
- * `asyncResult.value` property. These properties include the item ID, subject, item type (`Message` is the only supported type at this time), and item mode
14766
- * (`Read` or `Compose`). The objects in the array follow the order in which messages were selected.
14764
+ * `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages, such as the item ID and subject, are returned as an array of
14765
+ * {@link Office.SelectedItemDetails | SelectedItemDetails} objects in the `asyncResult.value` property. The objects in the array follow the order in which
14766
+ * messages were selected.
14767
14767
  */
14768
- getSelectedItemsAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<object[]>) => void): void;
14768
+ getSelectedItemsAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<SelectedItemDetails[]>) => void): void;
14769
14769
  /**
14770
14770
  * Gets currently selected messages on which an add-in can activate and perform operations. An add-in can activate on a maximum of 100 messages at a time.
14771
14771
  * To learn more about item multi-select, see
@@ -14783,11 +14783,11 @@ declare namespace Office {
14783
14783
  * @param options - An object literal that contains one or more of the following properties:-
14784
14784
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
14785
14785
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
14786
- * `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages are returned as an array of JSON objects in the
14787
- * `asyncResult.value` property. These properties include the item ID, subject, item type (`Message` is the only supported type at this time), and item mode
14788
- * (`Read` or `Compose`). The objects in the array follow the order in which messages were selected.
14786
+ * `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages, such as the item ID and subject, are returned as an array of
14787
+ * {@link Office.SelectedItemDetails | SelectedItemDetails} objects in the `asyncResult.value` property. The objects in the array follow the order in which
14788
+ * messages were selected.
14789
14789
  */
14790
- getSelectedItemsAsync(callback: (asyncResult: Office.AsyncResult<object[]>) => void): void;
14790
+ getSelectedItemsAsync(callback: (asyncResult: Office.AsyncResult<SelectedItemDetails[]>) => void): void;
14791
14791
  /**
14792
14792
  * Gets a token identifying the user and the Office Add-in.
14793
14793
  *
@@ -18554,6 +18554,52 @@ declare namespace Office {
18554
18554
  */
18555
18555
  set(name: string, value: any): void;
18556
18556
  }
18557
+ /**
18558
+ * Represents the properties of a message that's currently selected in Outlook.
18559
+ *
18560
+ * @remarks
18561
+ * [Api set: Mailbox 1.13]
18562
+ *
18563
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write mailbox**
18564
+ *
18565
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose, Message Read
18566
+ */
18567
+ interface SelectedItemDetails {
18568
+ /**
18569
+ * The identifier of the message conversation that contains the message that's currently selected.
18570
+ *
18571
+ * @beta
18572
+ */
18573
+ conversationId: string;
18574
+ /**
18575
+ * Returns `true` if the message that's currently selected contains an attachment.
18576
+ *
18577
+ * @beta
18578
+ */
18579
+ hasAttachment: boolean;
18580
+ /**
18581
+ * The internet message identifier of the message that's currently selected.
18582
+ *
18583
+ * @beta
18584
+ */
18585
+ internetMessageId: string;
18586
+ /**
18587
+ * The Exchange Web Services (EWS) item identifier of the message that's currently selected.
18588
+ */
18589
+ itemId: string;
18590
+ /**
18591
+ * The Outlook mode (`Read` or `Compose`) of the message that's currently selected.
18592
+ */
18593
+ itemMode: string;
18594
+ /**
18595
+ * The type of the item that's currently selected. `Message` is the only supported type at this time.
18596
+ */
18597
+ itemType: MailboxEnums.ItemType | string;
18598
+ /**
18599
+ * The description that appears in the subject field of the message that's currently selected.
18600
+ */
18601
+ subject: string;
18602
+ }
18557
18603
  /**
18558
18604
  * Provides methods to get and set the sensitivity level of an appointment. To learn more about sensitivity levels, see
18559
18605
  * {@link https://support.microsoft.com/office/4a76d05b-6c29-4a0d-9096-71784a6b12c1 | Mark your email as Normal, Personal, Private, or Confidential}.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.393",
3
+ "version": "1.0.394",
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": "39ec9dbaa7d3bb8f53d2a7b82eca170aff987d65d1a53ab537a091a2ea821b0c",
48
+ "typesPublisherContentHash": "ad2874e9e7f1f867fc94b86ee6ada63b22bbbe769f2c0cd0f2fb587cad6daa66",
49
49
  "typeScriptVersion": "4.3"
50
50
  }