@types/office-js 1.0.331 → 1.0.333
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 +41 -13
- 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: 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/index.d.ts
CHANGED
|
@@ -14633,11 +14633,11 @@ declare namespace Office {
|
|
|
14633
14633
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
14634
14634
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
14635
14635
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
14636
|
-
* `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages are returned as an array of
|
|
14637
|
-
*
|
|
14638
|
-
*
|
|
14636
|
+
* `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
|
|
14637
|
+
* {@link Office.SelectedItemDetails | SelectedItemDetails} objects in the `asyncResult.value` property. The objects in the array follow the order in which
|
|
14638
|
+
* messages were selected.
|
|
14639
14639
|
*/
|
|
14640
|
-
getSelectedItemsAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<
|
|
14640
|
+
getSelectedItemsAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<SelectedItemDetails[]>) => void): void;
|
|
14641
14641
|
/**
|
|
14642
14642
|
* 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.
|
|
14643
14643
|
* To learn more about item multi-select, see
|
|
@@ -14655,11 +14655,11 @@ declare namespace Office {
|
|
|
14655
14655
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
14656
14656
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
14657
14657
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
14658
|
-
* `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages are returned as an array of
|
|
14659
|
-
*
|
|
14660
|
-
*
|
|
14658
|
+
* `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
|
|
14659
|
+
* {@link Office.SelectedItemDetails | SelectedItemDetails} objects in the `asyncResult.value` property. The objects in the array follow the order in which
|
|
14660
|
+
* messages were selected.
|
|
14661
14661
|
*/
|
|
14662
|
-
getSelectedItemsAsync(callback: (asyncResult: Office.AsyncResult<
|
|
14662
|
+
getSelectedItemsAsync(callback: (asyncResult: Office.AsyncResult<SelectedItemDetails[]>) => void): void;
|
|
14663
14663
|
/**
|
|
14664
14664
|
* Gets a token identifying the user and the Office Add-in.
|
|
14665
14665
|
*
|
|
@@ -18236,6 +18236,34 @@ declare namespace Office {
|
|
|
18236
18236
|
*/
|
|
18237
18237
|
set(name: string, value: any): void;
|
|
18238
18238
|
}
|
|
18239
|
+
/**
|
|
18240
|
+
* Represents the properties of a message that's currently selected in Outlook.
|
|
18241
|
+
*
|
|
18242
|
+
* @remarks
|
|
18243
|
+
* [Api set: Mailbox 1.13]
|
|
18244
|
+
*
|
|
18245
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write mailbox**
|
|
18246
|
+
*
|
|
18247
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose, Message Read
|
|
18248
|
+
*/
|
|
18249
|
+
interface SelectedItemDetails {
|
|
18250
|
+
/**
|
|
18251
|
+
* The Exchange Web Services (EWS) item identifier of the message that's currently selected.
|
|
18252
|
+
*/
|
|
18253
|
+
itemId: string;
|
|
18254
|
+
/**
|
|
18255
|
+
* The Outlook mode (`Read` or `Compose`) of the message that's currently selected.
|
|
18256
|
+
*/
|
|
18257
|
+
itemMode: string;
|
|
18258
|
+
/**
|
|
18259
|
+
* The type of the item that's currently selected. `Message` is the only supported type at this time.
|
|
18260
|
+
*/
|
|
18261
|
+
itemType: MailboxEnums.ItemType | string;
|
|
18262
|
+
/**
|
|
18263
|
+
* The description that appears in the subject field of the message that's currently selected.
|
|
18264
|
+
*/
|
|
18265
|
+
subject: string;
|
|
18266
|
+
}
|
|
18239
18267
|
/**
|
|
18240
18268
|
* Provides methods to get or set the sensitivity label of a message or appointment. For more information on sensitivity labels, see
|
|
18241
18269
|
* {@link https://learn.microsoft.com/microsoft-365/compliance/sensitivity-labels | Learn about sensitivity labels}.
|
|
@@ -88938,35 +88966,35 @@ declare namespace Word {
|
|
|
88938
88966
|
* @remarks
|
|
88939
88967
|
* [Api set: WordApi 1.5]
|
|
88940
88968
|
*/
|
|
88941
|
-
importChangeTrackingMode
|
|
88969
|
+
importChangeTrackingMode?: boolean;
|
|
88942
88970
|
/**
|
|
88943
88971
|
* Represents whether the page color and other background information from the source document should be imported.
|
|
88944
88972
|
*
|
|
88945
88973
|
* @remarks
|
|
88946
88974
|
* [Api set: WordApi 1.5]
|
|
88947
88975
|
*/
|
|
88948
|
-
importPageColor
|
|
88976
|
+
importPageColor?: boolean;
|
|
88949
88977
|
/**
|
|
88950
88978
|
* Represents whether the paragraph spacing from the source document should be imported.
|
|
88951
88979
|
*
|
|
88952
88980
|
* @remarks
|
|
88953
88981
|
* [Api set: WordApi 1.5]
|
|
88954
88982
|
*/
|
|
88955
|
-
importParagraphSpacing
|
|
88983
|
+
importParagraphSpacing?: boolean;
|
|
88956
88984
|
/**
|
|
88957
88985
|
* Represents whether the styles from the source document should be imported.
|
|
88958
88986
|
*
|
|
88959
88987
|
* @remarks
|
|
88960
88988
|
* [Api set: WordApi 1.5]
|
|
88961
88989
|
*/
|
|
88962
|
-
importStyles
|
|
88990
|
+
importStyles?: boolean;
|
|
88963
88991
|
/**
|
|
88964
88992
|
* Represents whether the theme from the source document should be imported.
|
|
88965
88993
|
*
|
|
88966
88994
|
* @remarks
|
|
88967
88995
|
* [Api set: WordApi 1.5]
|
|
88968
88996
|
*/
|
|
88969
|
-
importTheme
|
|
88997
|
+
importTheme?: boolean;
|
|
88970
88998
|
}
|
|
88971
88999
|
/**
|
|
88972
89000
|
* Specifies the options to be included in a search operation.
|
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.333",
|
|
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": "73aeaaa098e54c895e33987e7e2717756b293a2dda4237c18b98fc58f2120ea1",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|