@types/office-js-preview 1.0.405 → 1.0.407
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 +87 -16
- 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, 17 Aug 2023 21:32:55 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
|
@@ -1135,7 +1135,7 @@ declare namespace Office {
|
|
|
1135
1135
|
* When you use the {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method}
|
|
1136
1136
|
* to signal that a reported message has finished processing, this property specifies the Outlook mailbox folder to which the message will be moved.
|
|
1137
1137
|
*
|
|
1138
|
-
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam
|
|
1138
|
+
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting feature}.
|
|
1139
1139
|
*
|
|
1140
1140
|
* @remarks
|
|
1141
1141
|
*
|
|
@@ -1156,13 +1156,40 @@ declare namespace Office {
|
|
|
1156
1156
|
* @beta
|
|
1157
1157
|
*/
|
|
1158
1158
|
folderName?: string;
|
|
1159
|
+
/**
|
|
1160
|
+
* When you use the {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method}
|
|
1161
|
+
* to signal that a reported message has finished processing, this property specifies whether the message is moved to a different folder in the mailbox.
|
|
1162
|
+
*
|
|
1163
|
+
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting feature}.
|
|
1164
|
+
*
|
|
1165
|
+
* @remarks
|
|
1166
|
+
*
|
|
1167
|
+
* [Api set: Mailbox preview]
|
|
1168
|
+
*
|
|
1169
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **read item**
|
|
1170
|
+
*
|
|
1171
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
1172
|
+
*
|
|
1173
|
+
* **Important**:
|
|
1174
|
+
*
|
|
1175
|
+
* In Outlook on Windows, you can only use this property in a spam-reporting add-in starting in Version 2308 (Build 16724.10000).
|
|
1176
|
+
* If you're using an earlier build that supports the integrated spam-reporting feature, use the `postProcessingAction`
|
|
1177
|
+
* property instead.
|
|
1178
|
+
*
|
|
1179
|
+
* If the property is set to `Office.MailboxEnums.MoveSpamItemTo.CustomFolder`, you must specify the name of the folder to which
|
|
1180
|
+
* the message will be moved in the `folderName` property of the `event.completed` call. Otherwise, the `moveItemTo` property will default to
|
|
1181
|
+
* `Office.MailboxEnums.MoveSpamItemTo.JunkFolder` and move the reported message to the **Junk Email** folder.
|
|
1182
|
+
*
|
|
1183
|
+
* @beta
|
|
1184
|
+
*/
|
|
1185
|
+
moveItemTo?: Office.MailboxEnums.MoveSpamItemTo;
|
|
1159
1186
|
/**
|
|
1160
1187
|
* When set to `true`, deletes a reported message if an error occurs while the message is processed.
|
|
1161
1188
|
* If this property is set to `false` or isn't specified in the
|
|
1162
1189
|
* {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method},
|
|
1163
1190
|
* the reported message remains in its current mailbox folder.
|
|
1164
1191
|
*
|
|
1165
|
-
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam
|
|
1192
|
+
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting feature}.
|
|
1166
1193
|
*
|
|
1167
1194
|
* @remarks
|
|
1168
1195
|
*
|
|
@@ -1177,17 +1204,18 @@ declare namespace Office {
|
|
|
1177
1204
|
onErrorDeleteItem?: boolean;
|
|
1178
1205
|
/**
|
|
1179
1206
|
* When you use the {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event#office-office-addincommands-event-completed-member(1) | completed method}
|
|
1180
|
-
* to signal that a reported message has finished processing, this property specifies the
|
|
1207
|
+
* to signal that a reported message has finished processing, this property specifies whether the message is moved to a different folder in the mailbox.
|
|
1208
|
+
* The following post-processing actions are available.
|
|
1181
1209
|
*
|
|
1182
|
-
* - `delete` -
|
|
1210
|
+
* - `delete` - Moves the reported message to the **Deleted Items** folder of the mailbox.
|
|
1183
1211
|
*
|
|
1184
1212
|
* - `moveToCustomFolder` - Moves the reported message to a specified folder. You must specify the name of the folder in the `folderName` property.
|
|
1185
1213
|
*
|
|
1186
|
-
* - `moveToSpamFolder` - Moves the reported message to the Junk Email folder of the mailbox.
|
|
1214
|
+
* - `moveToSpamFolder` - Moves the reported message to the **Junk Email** folder of the mailbox.
|
|
1187
1215
|
*
|
|
1188
1216
|
* - `noMove` - Leaves the reported message in its current folder.
|
|
1189
1217
|
*
|
|
1190
|
-
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam
|
|
1218
|
+
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting feature}.
|
|
1191
1219
|
*
|
|
1192
1220
|
* @remarks
|
|
1193
1221
|
*
|
|
@@ -1197,9 +1225,14 @@ declare namespace Office {
|
|
|
1197
1225
|
*
|
|
1198
1226
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
1199
1227
|
*
|
|
1200
|
-
* **Important**:
|
|
1201
|
-
*
|
|
1202
|
-
*
|
|
1228
|
+
* **Important**:
|
|
1229
|
+
*
|
|
1230
|
+
* In Outlook on Windows, you can only use this property in earlier builds that support the integrated spam-reporting feature.
|
|
1231
|
+
* If you're on Version 2308 (Build 16724.10000) or later, use the `moveItemTo` property instead.
|
|
1232
|
+
*
|
|
1233
|
+
* If the property is set to `moveToCustomFolder`, you must specify the name of the folder to which
|
|
1234
|
+
* the message will be moved in the `folderName` property of the `event.completed` call. Otherwise, the `postProcessingAction` property will default to
|
|
1235
|
+
* `moveToSpamFolder` and move the reported message to the **Junk Email** folder.
|
|
1203
1236
|
*
|
|
1204
1237
|
* @beta
|
|
1205
1238
|
*/
|
|
@@ -1209,7 +1242,7 @@ declare namespace Office {
|
|
|
1209
1242
|
* to signal that a reported message has finished processing, this property indicates if a post-processing dialog is shown to the user. The JSON object assigned to this property
|
|
1210
1243
|
* must contain a title and a description. If this property isn't specified, a dialog isn't shown to the user once their reported message is processed.
|
|
1211
1244
|
*
|
|
1212
|
-
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam
|
|
1245
|
+
* **Important**: Only applicable to add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting feature}.
|
|
1213
1246
|
*
|
|
1214
1247
|
* @remarks
|
|
1215
1248
|
*
|
|
@@ -9038,6 +9071,44 @@ declare namespace Office {
|
|
|
9038
9071
|
*/
|
|
9039
9072
|
Dec = "dec"
|
|
9040
9073
|
}
|
|
9074
|
+
/**
|
|
9075
|
+
* Specifies the folder to which a reported spam or phishing message is moved once it's processed by a spam-reporting add-in.
|
|
9076
|
+
*
|
|
9077
|
+
* To learn more about the integrated spam-reporting feature, see
|
|
9078
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | Implement an integrated spam-reporting add-in (preview)}.
|
|
9079
|
+
*
|
|
9080
|
+
* @remarks
|
|
9081
|
+
* [Api set: Mailbox preview]
|
|
9082
|
+
*
|
|
9083
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
9084
|
+
*
|
|
9085
|
+
* **Important**: This enum can only be used to assign values to the
|
|
9086
|
+
* {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.eventcompletedoptions?view=outlook-js-preview&preserve-view=true#office-office-addincommands-eventcompletedoptions-moveitemto-member |
|
|
9087
|
+
* moveItemTo} property of the `event.completed` method. If you're on an Outlook on Windows version that only supports the `postProcessingAction` property,
|
|
9088
|
+
* you must assign it different string values. For a list of supported string values, see
|
|
9089
|
+
* {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.eventcompletedoptions?view=outlook-js-preview&preserve-view=true#office-office-addincommands-eventcompletedoptions-postprocessingaction-member |
|
|
9090
|
+
* Office.AddinCommands.EventCompletedOptions.postProcessingAction}.
|
|
9091
|
+
*
|
|
9092
|
+
* @beta
|
|
9093
|
+
*/
|
|
9094
|
+
enum MoveSpamItemTo {
|
|
9095
|
+
/**
|
|
9096
|
+
* Specifies that a reported message is moved to a custom folder in the mailbox.
|
|
9097
|
+
*/
|
|
9098
|
+
CustomFolder = "customFolder",
|
|
9099
|
+
/**
|
|
9100
|
+
* Specifies that a reported message is moved to the **Deleted Items** folder of the mailbox.
|
|
9101
|
+
*/
|
|
9102
|
+
DeletedItemsFolder = "deletedItemsFolder",
|
|
9103
|
+
/**
|
|
9104
|
+
* Specifies that a reported message is moved to the **Junk Email** folder of the mailbox.
|
|
9105
|
+
*/
|
|
9106
|
+
JunkFolder = "junkFolder",
|
|
9107
|
+
/**
|
|
9108
|
+
* Specifies that a reported message remains in its current folder in the mailbox.
|
|
9109
|
+
*/
|
|
9110
|
+
NoMove = "noMove"
|
|
9111
|
+
}
|
|
9041
9112
|
/**
|
|
9042
9113
|
* Represents the current view of Outlook on the web.
|
|
9043
9114
|
*/
|
|
@@ -88559,13 +88630,13 @@ declare namespace Word {
|
|
|
88559
88630
|
*/
|
|
88560
88631
|
getOoxml(): OfficeExtension.ClientResult<string>;
|
|
88561
88632
|
/**
|
|
88562
|
-
* Gets the paragraph by its unique
|
|
88633
|
+
* Gets the paragraph by its unique ID in GUID format. Throws an `ItemNotFound` error if the collection is empty.
|
|
88563
88634
|
*
|
|
88564
88635
|
* @remarks
|
|
88565
88636
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
88566
88637
|
* @beta
|
|
88567
88638
|
*
|
|
88568
|
-
* @param id Required. Unique
|
|
88639
|
+
* @param id Required. Unique paragraph ID in GUID format.
|
|
88569
88640
|
*/
|
|
88570
88641
|
getParagraphById(id: string): Word.Paragraph;
|
|
88571
88642
|
/**
|
|
@@ -88850,7 +88921,7 @@ declare namespace Word {
|
|
|
88850
88921
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
88851
88922
|
context: RequestContext;
|
|
88852
88923
|
/**
|
|
88853
|
-
* Specifies the line color for the border.
|
|
88924
|
+
* Specifies the line color for the border. Color is specified in ‘#RRGGBB’ format or by using the color name.
|
|
88854
88925
|
*
|
|
88855
88926
|
* @remarks
|
|
88856
88927
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -100889,7 +100960,7 @@ declare namespace Word {
|
|
|
100889
100960
|
/** An interface for updating data on the Border object, for use in `border.set({ ... })`. */
|
|
100890
100961
|
interface BorderUpdateData {
|
|
100891
100962
|
/**
|
|
100892
|
-
* Specifies the line color for the border.
|
|
100963
|
+
* Specifies the line color for the border. Color is specified in ‘#RRGGBB’ format or by using the color name.
|
|
100893
100964
|
*
|
|
100894
100965
|
* @remarks
|
|
100895
100966
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -102345,7 +102416,7 @@ declare namespace Word {
|
|
|
102345
102416
|
/** An interface describing the data returned by calling `border.toJSON()`. */
|
|
102346
102417
|
interface BorderData {
|
|
102347
102418
|
/**
|
|
102348
|
-
* Specifies the line color for the border.
|
|
102419
|
+
* Specifies the line color for the border. Color is specified in ‘#RRGGBB’ format or by using the color name.
|
|
102349
102420
|
*
|
|
102350
102421
|
* @remarks
|
|
102351
102422
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -104463,7 +104534,7 @@ declare namespace Word {
|
|
|
104463
104534
|
*/
|
|
104464
104535
|
$all?: boolean;
|
|
104465
104536
|
/**
|
|
104466
|
-
* Specifies the line color for the border.
|
|
104537
|
+
* Specifies the line color for the border. Color is specified in ‘#RRGGBB’ format or by using the color name.
|
|
104467
104538
|
*
|
|
104468
104539
|
* @remarks
|
|
104469
104540
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
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.407",
|
|
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": "5356f9c6216807b1a06e2a09ccb3d4bfc6629a701f92322ecece04ab49deb69a",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|