@types/office-js-preview 1.0.330 → 1.0.331
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 +32 -15
- 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: Mon, 12 Sep 2022 21:02:43 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
|
@@ -1048,14 +1048,14 @@ declare namespace Office {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
namespace AddinCommands {
|
|
1050
1050
|
/**
|
|
1051
|
-
* The `Event` object is passed as a parameter to add-in functions invoked by
|
|
1051
|
+
* The `Event` object is passed as a parameter to add-in functions invoked by function command buttons. The object allows the add-in to identify
|
|
1052
1052
|
* which button was clicked and to signal the host that it has completed its processing.
|
|
1053
1053
|
*
|
|
1054
1054
|
* @remarks
|
|
1055
1055
|
*
|
|
1056
1056
|
* See {@link https://docs.microsoft.com/javascript/api/requirement-sets/common/add-in-commands-requirement-sets | Add-in commands requirement sets} for more support information.
|
|
1057
1057
|
*
|
|
1058
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: Restricted
|
|
1058
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: `Restricted`
|
|
1059
1059
|
*
|
|
1060
1060
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
1061
1061
|
*/
|
|
@@ -1072,18 +1072,20 @@ declare namespace Office {
|
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Indicates that the add-in has completed processing and will automatically be closed.
|
|
1074
1074
|
*
|
|
1075
|
-
* This method must be called at the end of a function which was invoked by the following
|
|
1075
|
+
* This method must be called at the end of a function which was invoked by the following:
|
|
1076
1076
|
*
|
|
1077
|
-
* - A
|
|
1077
|
+
* - A function command button (that is, an add-in command defined with an `Action` element, where the `xsi:type` attribute is set to `ExecuteFunction`).
|
|
1078
1078
|
*
|
|
1079
|
+
* - An event defined in the {@link https://docs.microsoft.com/javascript/api/manifest/extensionpoint#launchevent | LaunchEvent extension point}.
|
|
1080
|
+
* For example, an `OnMessageSend` event.
|
|
1081
|
+
*
|
|
1079
1082
|
* - An {@link https://docs.microsoft.com/javascript/api/manifest/event | event} defined in the
|
|
1080
|
-
* {@link https://docs.microsoft.com/javascript/api/manifest/extensionpoint#events | Events extension point},
|
|
1081
|
-
* e.g., an `ItemSend` event
|
|
1082
|
-
*
|
|
1083
|
-
* [Api set: Mailbox 1.3]
|
|
1083
|
+
* {@link https://docs.microsoft.com/javascript/api/manifest/extensionpoint#events | Events extension point}. For example, an `ItemSend` event.
|
|
1084
1084
|
*
|
|
1085
1085
|
* @remarks
|
|
1086
1086
|
*
|
|
1087
|
+
* [Api set: Mailbox 1.3]
|
|
1088
|
+
*
|
|
1087
1089
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `Restricted`
|
|
1088
1090
|
*
|
|
1089
1091
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
@@ -1100,20 +1102,35 @@ declare namespace Office {
|
|
|
1100
1102
|
*/
|
|
1101
1103
|
interface EventCompletedOptions {
|
|
1102
1104
|
/**
|
|
1103
|
-
* When the completed
|
|
1104
|
-
* this value indicates if the handled event should continue execution or be canceled.
|
|
1105
|
-
* For example, an add-in that handles the `
|
|
1105
|
+
* When the {@link https://docs.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method}
|
|
1106
|
+
* is used to signal completion of an event handler, this value indicates if the handled event should continue execution or be canceled.
|
|
1107
|
+
* For example, an add-in that handles the `OnMessageSend` or `OnAppointmentSend` event can set `allowEvent` to `false` to cancel the
|
|
1108
|
+
* sending of an item. For a complete sample, see the
|
|
1109
|
+
* {@link https://docs.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts walkthrough}.
|
|
1110
|
+
*
|
|
1111
|
+
* @remarks
|
|
1112
|
+
*
|
|
1113
|
+
* [Api set: Mailbox 1.8]
|
|
1114
|
+
*
|
|
1115
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: `Restricted`
|
|
1116
|
+
*
|
|
1117
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
1106
1118
|
*/
|
|
1107
1119
|
allowEvent: boolean;
|
|
1108
1120
|
|
|
1109
1121
|
/**
|
|
1110
|
-
* When the
|
|
1111
|
-
*
|
|
1122
|
+
* When the {@link https://docs.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method}
|
|
1123
|
+
* is used to signal completion of an event handler and if the `allowEvent` option is set to `false`, this value sets the error message
|
|
1124
|
+
* that will be displayed to the user. For an example, see the
|
|
1112
1125
|
* {@link https://docs.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts walkthrough}.
|
|
1126
|
+
*
|
|
1127
|
+
* @remarks
|
|
1113
1128
|
*
|
|
1114
|
-
* [Api set: Mailbox
|
|
1129
|
+
* [Api set: Mailbox 1.12]
|
|
1130
|
+
*
|
|
1131
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: `Restricted`
|
|
1115
1132
|
*
|
|
1116
|
-
* @
|
|
1133
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
1117
1134
|
*/
|
|
1118
1135
|
errorMessage?: string;
|
|
1119
1136
|
}
|
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.331",
|
|
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": "70d011d63461712003d9ef8b6dc17144de655cab40981c06f84e050214a1b5ba",
|
|
49
49
|
"typeScriptVersion": "4.1"
|
|
50
50
|
}
|