@types/office-js-preview 1.0.406 → 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.
@@ -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: Thu, 17 Aug 2023 17:32:52 GMT
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
 
@@ -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 reporting feature}.
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 reporting feature}.
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 next action to be performed on the message. The following post-processing actions are available:
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` - Deletes the reported message.
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 reporting feature}.
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**: If the property is set to `moveToCustomFolder`, you must specify the name of the folder to which the message will be moved in the `folderName`
1201
- * property of the `event.completed` call. Otherwise, the `postProcessingAction` property will default to `moveToSpamFolder` and move the reported message to the
1202
- * Junk Email folder.
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 reporting feature}.
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
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.406",
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": "f33ec520d0a910a872508b76e142c614d2e5c8c3fd7a2dc4ec24485cb153057e",
48
+ "typesPublisherContentHash": "5356f9c6216807b1a06e2a09ccb3d4bfc6629a701f92322ecece04ab49deb69a",
49
49
  "typeScriptVersion": "4.3"
50
50
  }