@types/office-js-preview 1.0.393 → 1.0.395
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 +59 -13
- 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: Thu, 22 Jun 2023 22:32:44 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
|
@@ -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
|
|
14765
|
-
*
|
|
14766
|
-
*
|
|
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<
|
|
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
|
|
14787
|
-
*
|
|
14788
|
-
*
|
|
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<
|
|
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}.
|
|
@@ -93791,35 +93837,35 @@ declare namespace Word {
|
|
|
93791
93837
|
* @remarks
|
|
93792
93838
|
* [Api set: WordApi 1.5]
|
|
93793
93839
|
*/
|
|
93794
|
-
importChangeTrackingMode
|
|
93840
|
+
importChangeTrackingMode?: boolean;
|
|
93795
93841
|
/**
|
|
93796
93842
|
* Represents whether the page color and other background information from the source document should be imported.
|
|
93797
93843
|
*
|
|
93798
93844
|
* @remarks
|
|
93799
93845
|
* [Api set: WordApi 1.5]
|
|
93800
93846
|
*/
|
|
93801
|
-
importPageColor
|
|
93847
|
+
importPageColor?: boolean;
|
|
93802
93848
|
/**
|
|
93803
93849
|
* Represents whether the paragraph spacing from the source document should be imported.
|
|
93804
93850
|
*
|
|
93805
93851
|
* @remarks
|
|
93806
93852
|
* [Api set: WordApi 1.5]
|
|
93807
93853
|
*/
|
|
93808
|
-
importParagraphSpacing
|
|
93854
|
+
importParagraphSpacing?: boolean;
|
|
93809
93855
|
/**
|
|
93810
93856
|
* Represents whether the styles from the source document should be imported.
|
|
93811
93857
|
*
|
|
93812
93858
|
* @remarks
|
|
93813
93859
|
* [Api set: WordApi 1.5]
|
|
93814
93860
|
*/
|
|
93815
|
-
importStyles
|
|
93861
|
+
importStyles?: boolean;
|
|
93816
93862
|
/**
|
|
93817
93863
|
* Represents whether the theme from the source document should be imported.
|
|
93818
93864
|
*
|
|
93819
93865
|
* @remarks
|
|
93820
93866
|
* [Api set: WordApi 1.5]
|
|
93821
93867
|
*/
|
|
93822
|
-
importTheme
|
|
93868
|
+
importTheme?: boolean;
|
|
93823
93869
|
}
|
|
93824
93870
|
/**
|
|
93825
93871
|
* Specifies the options to be included in a search operation.
|
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.395",
|
|
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": "2d6e0ab9d84f01ae11c892ce248ff458da80756691811507eb846729b6d7d610",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|