@types/office-js 1.0.339 → 1.0.341
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 +131 -46
- 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: Tue, 29 Aug 2023 20:03:01 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
|
@@ -1042,7 +1042,12 @@ declare namespace Office {
|
|
|
1042
1042
|
*
|
|
1043
1043
|
* @remarks
|
|
1044
1044
|
*
|
|
1045
|
-
*
|
|
1045
|
+
* For information on support in Excel, Word, and PowerPoint, see
|
|
1046
|
+
* {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/add-in-commands-requirement-sets | Add-in commands requirement sets}.
|
|
1047
|
+
*
|
|
1048
|
+
* The following outlines support information for Outlook.
|
|
1049
|
+
*
|
|
1050
|
+
* [Api set: Mailbox 1.3]
|
|
1046
1051
|
*
|
|
1047
1052
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
|
|
1048
1053
|
*
|
|
@@ -1054,83 +1059,102 @@ declare namespace Office {
|
|
|
1054
1059
|
*
|
|
1055
1060
|
* @remarks
|
|
1056
1061
|
*
|
|
1057
|
-
*
|
|
1062
|
+
* The following outlines support information for Outlook.
|
|
1063
|
+
*
|
|
1064
|
+
* [Api set: Mailbox 1.3]
|
|
1065
|
+
*
|
|
1066
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
|
|
1067
|
+
*
|
|
1068
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
1058
1069
|
*/
|
|
1059
1070
|
source:Source;
|
|
1060
|
-
|
|
1061
1071
|
/**
|
|
1062
1072
|
* Indicates that the add-in has completed processing and will automatically be closed.
|
|
1063
1073
|
*
|
|
1064
1074
|
* This method must be called at the end of a function which was invoked by the following:
|
|
1065
1075
|
*
|
|
1066
|
-
* - A function command button (that is, an add-in command defined with an
|
|
1076
|
+
* - A function command button (that is, an add-in command defined with an **\<Action\>** element, where the `xsi:type` attribute is set to `ExecuteFunction`).
|
|
1067
1077
|
*
|
|
1068
|
-
* - An event defined in the {@link https://learn.microsoft.com/javascript/api/manifest/extensionpoint#launchevent | LaunchEvent extension point}.
|
|
1069
|
-
* For example, an `OnMessageSend` event.
|
|
1070
|
-
*
|
|
1071
1078
|
* - An {@link https://learn.microsoft.com/javascript/api/manifest/event | event} defined in the
|
|
1072
|
-
* {@link https://learn.microsoft.com/javascript/api/manifest/extensionpoint#events | Events extension point}
|
|
1079
|
+
* {@link https://learn.microsoft.com/javascript/api/manifest/extensionpoint#events | Events extension point} of an on-send add-in in Outlook.
|
|
1080
|
+
* For example, an `ItemSend` event.
|
|
1073
1081
|
*
|
|
1074
1082
|
* @remarks
|
|
1075
1083
|
*
|
|
1084
|
+
* The following outlines support information for Outlook.
|
|
1085
|
+
*
|
|
1076
1086
|
* [Api set: Mailbox 1.3]
|
|
1077
|
-
*
|
|
1087
|
+
*
|
|
1078
1088
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
|
|
1079
1089
|
*
|
|
1080
1090
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
1081
1091
|
*
|
|
1082
|
-
* **
|
|
1092
|
+
* **Important**: The `options` parameter only applies to Outlook add-ins that implement the
|
|
1093
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins | on-send feature}. It was introduced in Mailbox 1.8.
|
|
1083
1094
|
*
|
|
1084
|
-
* @param options Optional. An object that specifies behavior
|
|
1095
|
+
* @param options Optional. An object that specifies the behavior of an on-send add-in in Outlook when it completes processing an `ItemSend` event.
|
|
1085
1096
|
*/
|
|
1086
1097
|
completed(options?: EventCompletedOptions): void;
|
|
1087
1098
|
}
|
|
1088
|
-
|
|
1089
1099
|
/**
|
|
1090
|
-
* Specifies the behavior
|
|
1100
|
+
* Specifies the behavior of an {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins | on-send} add-in in Outlook
|
|
1101
|
+
* when it completes processing an `ItemSend` event.
|
|
1102
|
+
*
|
|
1103
|
+
* @remarks
|
|
1104
|
+
*
|
|
1105
|
+
* [Api set: Mailbox 1.8]
|
|
1106
|
+
*
|
|
1107
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
|
|
1108
|
+
*
|
|
1109
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
1091
1110
|
*/
|
|
1092
1111
|
interface EventCompletedOptions {
|
|
1093
1112
|
/**
|
|
1094
|
-
* When the {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method}
|
|
1095
|
-
*
|
|
1096
|
-
* For example, an add-in that handles the `
|
|
1097
|
-
*
|
|
1098
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts walkthrough}.
|
|
1099
|
-
*
|
|
1113
|
+
* When you use the {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method}
|
|
1114
|
+
* to signal completion of an event handler, this value indicates if the handled event should continue execution or be canceled.
|
|
1115
|
+
* For example, an on-send add-in that handles the `ItemSend` event can set `allowEvent` to `false` to cancel the sending of a message.
|
|
1116
|
+
*
|
|
1100
1117
|
* @remarks
|
|
1101
1118
|
*
|
|
1102
1119
|
* [Api set: Mailbox 1.8]
|
|
1103
|
-
*
|
|
1104
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
|
|
1105
|
-
*
|
|
1106
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
1107
|
-
*/
|
|
1108
|
-
allowEvent: boolean;
|
|
1109
|
-
|
|
1110
|
-
/**
|
|
1111
|
-
* When the {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method}
|
|
1112
|
-
* is used to signal completion of an event handler and if the `allowEvent` option is set to `false`, this value sets the error message
|
|
1113
|
-
* that will be displayed to the user. For an example, see the
|
|
1114
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts walkthrough}.
|
|
1115
1120
|
*
|
|
1116
|
-
* @remarks
|
|
1117
|
-
*
|
|
1118
|
-
* [Api set: Mailbox 1.12]
|
|
1119
|
-
*
|
|
1120
1121
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
|
|
1121
1122
|
*
|
|
1122
1123
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
1123
1124
|
*/
|
|
1124
|
-
|
|
1125
|
+
allowEvent: boolean;
|
|
1125
1126
|
}
|
|
1126
|
-
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Encapsulates source data for add-in events.
|
|
1129
|
+
*
|
|
1130
|
+
* @remarks
|
|
1131
|
+
*
|
|
1132
|
+
* For information on support in Excel, Word, and PowerPoint, see
|
|
1133
|
+
* {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/add-in-commands-requirement-sets | Add-in commands requirement sets}.
|
|
1134
|
+
*
|
|
1135
|
+
* The following outlines support information for Outlook.
|
|
1136
|
+
*
|
|
1137
|
+
* [Api set: Mailbox 1.3]
|
|
1138
|
+
*
|
|
1139
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
|
|
1140
|
+
*
|
|
1141
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
1129
1142
|
*/
|
|
1130
1143
|
interface Source {
|
|
1131
|
-
|
|
1132
1144
|
/**
|
|
1133
1145
|
* The ID of the control that triggered calling this function. The ID comes from the manifest.
|
|
1146
|
+
*
|
|
1147
|
+
* @remarks
|
|
1148
|
+
*
|
|
1149
|
+
* The following outlines support information for Outlook.
|
|
1150
|
+
*
|
|
1151
|
+
* [Api set: Mailbox 1.3]
|
|
1152
|
+
*
|
|
1153
|
+
* See {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/add-in-commands-requirement-sets | Add-in commands requirement sets} for more support information.
|
|
1154
|
+
*
|
|
1155
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
|
|
1156
|
+
*
|
|
1157
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
1134
1158
|
*/
|
|
1135
1159
|
id: string;
|
|
1136
1160
|
}
|
|
@@ -1421,7 +1445,6 @@ declare namespace Office {
|
|
|
1421
1445
|
*/
|
|
1422
1446
|
openBrowserWindow(url: string): void;
|
|
1423
1447
|
}
|
|
1424
|
-
|
|
1425
1448
|
/**
|
|
1426
1449
|
* Provides information about which Requirement Sets are supported in the current environment.
|
|
1427
1450
|
*/
|
|
@@ -1444,7 +1467,6 @@ declare namespace Office {
|
|
|
1444
1467
|
*/
|
|
1445
1468
|
isSetSupported(name: string, minVersionNumber?: number): boolean;
|
|
1446
1469
|
}
|
|
1447
|
-
|
|
1448
1470
|
/**
|
|
1449
1471
|
* Provides options for how a dialog is displayed.
|
|
1450
1472
|
*/
|
|
@@ -1476,7 +1498,6 @@ declare namespace Office {
|
|
|
1476
1498
|
*/
|
|
1477
1499
|
asyncContext?: any
|
|
1478
1500
|
}
|
|
1479
|
-
|
|
1480
1501
|
/**
|
|
1481
1502
|
* The Office Auth namespace, `Office.auth`, provides a method that allows the Office client application to obtain an access token to the add-in's web application.
|
|
1482
1503
|
* Indirectly, this also enables the add-in to access the signed-in user's Microsoft Graph data without requiring the user to sign in a second time.
|
|
@@ -14864,6 +14885,34 @@ declare namespace Office {
|
|
|
14864
14885
|
*/
|
|
14865
14886
|
removeHandlerAsync(eventType: Office.EventType | string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
14866
14887
|
}
|
|
14888
|
+
/**
|
|
14889
|
+
* The `MailboxEvent` object is passed as an argument to the event handler of an add-in that implements
|
|
14890
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}, including
|
|
14891
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts}.
|
|
14892
|
+
* It allows the add-in to signify to the Outlook client that it has completed processing an event.
|
|
14893
|
+
*
|
|
14894
|
+
* @remarks
|
|
14895
|
+
* [Api set: Mailbox 1.10]
|
|
14896
|
+
*
|
|
14897
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
|
|
14898
|
+
*
|
|
14899
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
14900
|
+
*/
|
|
14901
|
+
interface MailboxEvent {
|
|
14902
|
+
/**
|
|
14903
|
+
* Indicates that the event-based add-in has completed processing an event.
|
|
14904
|
+
*
|
|
14905
|
+
* @remarks
|
|
14906
|
+
* [Api set: Mailbox 1.10]
|
|
14907
|
+
*
|
|
14908
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
|
|
14909
|
+
*
|
|
14910
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
14911
|
+
*
|
|
14912
|
+
* @param options - Optional. An object that specifies the behavior of an event-based add-in when it completes processing an event.
|
|
14913
|
+
*/
|
|
14914
|
+
completed(options?: SmartAlertsEventCompletedOptions): void;
|
|
14915
|
+
}
|
|
14867
14916
|
/**
|
|
14868
14917
|
* Represents the categories master list on the mailbox.
|
|
14869
14918
|
*
|
|
@@ -19038,6 +19087,42 @@ declare namespace Office {
|
|
|
19038
19087
|
*/
|
|
19039
19088
|
delegatePermissions: MailboxEnums.DelegatePermissions;
|
|
19040
19089
|
}
|
|
19090
|
+
/**
|
|
19091
|
+
* Specifies the behavior of a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts add-in}
|
|
19092
|
+
* when it completes processing an `OnMessageSend` or `OnAppointmentSend` event.
|
|
19093
|
+
*/
|
|
19094
|
+
interface SmartAlertsEventCompletedOptions {
|
|
19095
|
+
/**
|
|
19096
|
+
* When you use the {@link Office.MailboxEvent.completed | completed method} to signal completion of an event handler,
|
|
19097
|
+
* this value indicates if the handled event should continue execution or be canceled.
|
|
19098
|
+
* For example, an add-in that handles the `OnMessageSend` or `OnAppointmentSend` event can set `allowEvent` to `false` to cancel the sending of an item.
|
|
19099
|
+
* For a complete sample, see the
|
|
19100
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts walkthrough}.
|
|
19101
|
+
*
|
|
19102
|
+
* @remarks
|
|
19103
|
+
*
|
|
19104
|
+
* [Api set: Mailbox 1.12]
|
|
19105
|
+
*
|
|
19106
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
|
|
19107
|
+
*
|
|
19108
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
19109
|
+
*/
|
|
19110
|
+
allowEvent?: boolean;
|
|
19111
|
+
/**
|
|
19112
|
+
* When you use the {@link Office.MailboxEvent.completed | completed method} to signal completion of an event handler and set its `allowEvent` property
|
|
19113
|
+
* to `false`, this property sets the error message that will be displayed to the user. For an example, see the
|
|
19114
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts walkthrough}.
|
|
19115
|
+
*
|
|
19116
|
+
* @remarks
|
|
19117
|
+
*
|
|
19118
|
+
* [Api set: Mailbox 1.12]
|
|
19119
|
+
*
|
|
19120
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
|
|
19121
|
+
*
|
|
19122
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
19123
|
+
*/
|
|
19124
|
+
errorMessage?: string;
|
|
19125
|
+
}
|
|
19041
19126
|
/**
|
|
19042
19127
|
* Provides methods to get and set the subject of an appointment or message in an Outlook add-in.
|
|
19043
19128
|
*
|
|
@@ -60963,7 +61048,7 @@ declare namespace Excel {
|
|
|
60963
61048
|
unsupportedSheet = "UnsupportedSheet",
|
|
60964
61049
|
invalidOperationInCellEditMode = "InvalidOperationInCellEditMode"
|
|
60965
61050
|
}
|
|
60966
|
-
|
|
61051
|
+
namespace Interfaces {
|
|
60967
61052
|
/**
|
|
60968
61053
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
60969
61054
|
*/
|
|
@@ -93899,7 +93984,7 @@ declare namespace Word {
|
|
|
93899
93984
|
searchDialogIsOpen = "SearchDialogIsOpen",
|
|
93900
93985
|
searchStringInvalidOrTooLong = "SearchStringInvalidOrTooLong",
|
|
93901
93986
|
}
|
|
93902
|
-
|
|
93987
|
+
namespace Interfaces {
|
|
93903
93988
|
/**
|
|
93904
93989
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
93905
93990
|
*/
|
|
@@ -104653,7 +104738,7 @@ declare namespace OneNote {
|
|
|
104653
104738
|
notSupported = "NotSupported",
|
|
104654
104739
|
operationAborted = "OperationAborted",
|
|
104655
104740
|
}
|
|
104656
|
-
|
|
104741
|
+
namespace Interfaces {
|
|
104657
104742
|
/**
|
|
104658
104743
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
104659
104744
|
*/
|
|
@@ -109731,7 +109816,7 @@ declare namespace Visio {
|
|
|
109731
109816
|
notImplemented = "NotImplemented",
|
|
109732
109817
|
unsupportedOperation = "UnsupportedOperation",
|
|
109733
109818
|
}
|
|
109734
|
-
|
|
109819
|
+
namespace Interfaces {
|
|
109735
109820
|
/**
|
|
109736
109821
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
109737
109822
|
*/
|
|
@@ -114236,7 +114321,7 @@ declare namespace PowerPoint {
|
|
|
114236
114321
|
enum ErrorCodes {
|
|
114237
114322
|
generalException = "GeneralException",
|
|
114238
114323
|
}
|
|
114239
|
-
|
|
114324
|
+
namespace Interfaces {
|
|
114240
114325
|
/**
|
|
114241
114326
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
114242
114327
|
*/
|
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.341",
|
|
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": "85163151895fbe1fd08958eed03b88fcd3be2c45fea121bad3a6d0ba3afbdcd6",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|