@types/office-js-preview 1.0.328 → 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.
@@ -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: Wed, 31 Aug 2022 17:32:44 GMT
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
 
@@ -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 UI-less command buttons. The object allows the add-in to identify
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 UI-less button (i.e., an add-in command defined with an `Action` element where the `xsi:type` attribute is set to `ExecuteFunction`)
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 method is used to signal completion of an event handler,
1104
- * this value indicates if the handled event should continue execution or be canceled.
1105
- * For example, an add-in that handles the `ItemSend` event can set `allowEvent` to `false` to cancel sending of the message.
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 completed method is used to signal completion of an event handler and if the `allowEvent` option is set to `false`,
1111
- * this value sets the error message that will be displayed to the user. For an example, refer to the
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 preview]
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
- * @beta
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
  }
@@ -10189,9 +10206,9 @@ declare namespace Office {
10189
10206
  /**
10190
10207
  * Gets an attachment from a message or appointment and returns it as an `AttachmentContent` object.
10191
10208
  *
10192
- * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use
10193
- * the identifier to retrieve an attachment in the same session that the attachmentIds were retrieved with the `getAttachmentsAsync` or
10194
- * `item.attachments` call. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
10209
+ * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should get
10210
+ * the attachment's identifier from a `getAttachmentsAsync` call, then in the same session, use that identifier to retrieve the attachment.
10211
+ * In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
10195
10212
  * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to
10196
10213
  * continue in a separate window.
10197
10214
  *
@@ -10220,9 +10237,9 @@ declare namespace Office {
10220
10237
  /**
10221
10238
  * Gets an attachment from a message or appointment and returns it as an `AttachmentContent` object.
10222
10239
  *
10223
- * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use
10224
- * the identifier to retrieve an attachment in the same session that the attachmentIds were retrieved with the `getAttachmentsAsync` or
10225
- * `item.attachments` call. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
10240
+ * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should get
10241
+ * the attachment's identifier from a `getAttachmentsAsync` call, then in the same session, use that identifier to retrieve the attachment.
10242
+ * In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
10226
10243
  * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to
10227
10244
  * continue in a separate window.
10228
10245
  *
@@ -11477,9 +11494,9 @@ declare namespace Office {
11477
11494
  /**
11478
11495
  * Gets an attachment from a message or appointment and returns it as an `AttachmentContent` object.
11479
11496
  *
11480
- * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use
11481
- * the identifier to retrieve an attachment in the same session that the attachmentIds were retrieved with the `getAttachmentsAsync` or
11482
- * `item.attachments` call. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
11497
+ * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should get
11498
+ * the attachment's identifier from an {@link Office.AppointmentRead.attachments | item.attachments} call, then in the same session, use that identifier
11499
+ * to retrieve the attachment. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
11483
11500
  * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to
11484
11501
  * continue in a separate window.
11485
11502
  *
@@ -11508,9 +11525,9 @@ declare namespace Office {
11508
11525
  /**
11509
11526
  * Gets an attachment from a message or appointment and returns it as an `AttachmentContent` object.
11510
11527
  *
11511
- * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use
11512
- * the identifier to retrieve an attachment in the same session that the attachmentIds were retrieved with the `getAttachmentsAsync` or
11513
- * `item.attachments` call. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
11528
+ * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should get
11529
+ * the attachment's identifier from an {@link Office.AppointmentRead.attachments | item.attachments} call, then in the same session, use that identifier
11530
+ * to retrieve the attachment. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
11514
11531
  * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to
11515
11532
  * continue in a separate window.
11516
11533
  *
@@ -13344,7 +13361,11 @@ declare namespace Office {
13344
13361
  *
13345
13362
  * Apply the following guidelines when you create internet headers in your add-in.
13346
13363
  *
13347
- * - Create the minimum number of headers required.
13364
+ * - Create the minimum number of headers required. The header quota is based on the total size of headers applied to a message. In Exchange Online,
13365
+ * the header limit is capped at 256 KB, while in an Exchange on-premises environment, the limit is determined by your organization's administrator.
13366
+ * For further information on header limits, see
13367
+ * {@link https://docs.microsoft.com/office365/servicedescriptions/exchange-online-service-description/exchange-online-limits#message-limits | Exchange Online message limits}
13368
+ * and {@link https://docs.microsoft.com/exchange/mail-flow/message-size-limits?view=exchserver-2019#types-of-message-size-limits | Exchange Server message limits}.
13348
13369
  *
13349
13370
  * - Name headers so that you can reuse and update their values later. As such, avoid naming headers in a variable manner
13350
13371
  * (for example, based on user input, timestamp, etc.).
@@ -13435,6 +13456,12 @@ declare namespace Office {
13435
13456
  * the new value.
13436
13457
  *
13437
13458
  * **Note**: This method is intended to set the values of your custom headers.
13459
+ *
13460
+ * **Important**: The header quota is based on the total size of headers applied to a message. In Exchange Online,
13461
+ * the header limit is capped at 256 KB, while in an Exchange on-premises environment, the limit is determined by your organization's administrator.
13462
+ * For further information on header limits, see
13463
+ * {@link https://docs.microsoft.com/office365/servicedescriptions/exchange-online-service-description/exchange-online-limits#message-limits | Exchange Online message limits}
13464
+ * and {@link https://docs.microsoft.com/exchange/mail-flow/message-size-limits?view=exchserver-2019#types-of-message-size-limits | Exchange Server message limits}.
13438
13465
  *
13439
13466
  * @remarks
13440
13467
  * [Api set: Mailbox 1.8]
@@ -13458,6 +13485,12 @@ declare namespace Office {
13458
13485
  * the new value.
13459
13486
  *
13460
13487
  * **Note**: This method is intended to set the values of your custom headers.
13488
+ *
13489
+ * **Important**: The header quota is based on the total size of headers applied to a message. In Exchange Online,
13490
+ * the header limit is capped at 256 KB, while in an Exchange on-premises environment, the limit is determined by your organization's administrator.
13491
+ * For further information on header limits, see
13492
+ * {@link https://docs.microsoft.com/office365/servicedescriptions/exchange-online-service-description/exchange-online-limits#message-limits | Exchange Online message limits}
13493
+ * and {@link https://docs.microsoft.com/exchange/mail-flow/message-size-limits?view=exchserver-2019#types-of-message-size-limits | Exchange Server message limits}.
13461
13494
  *
13462
13495
  * @remarks
13463
13496
  * [Api set: Mailbox 1.8]
@@ -15322,9 +15355,9 @@ declare namespace Office {
15322
15355
  /**
15323
15356
  * Gets an attachment from a message or appointment and returns it as an `AttachmentContent` object.
15324
15357
  *
15325
- * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use
15326
- * the identifier to retrieve an attachment in the same session that the attachment IDs were retrieved with the `getAttachmentsAsync` or
15327
- * `item.attachments` call. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
15358
+ * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should get
15359
+ * the attachment's identifier from a `getAttachmentsAsync` call, then in the same session, use that identifier to retrieve the attachment.
15360
+ * In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
15328
15361
  * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to
15329
15362
  * continue in a separate window.
15330
15363
  *
@@ -15353,9 +15386,9 @@ declare namespace Office {
15353
15386
  /**
15354
15387
  * Gets an attachment from a message or appointment and returns it as an `AttachmentContent` object.
15355
15388
  *
15356
- * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use
15357
- * the identifier to retrieve an attachment in the same session that the attachment IDs were retrieved with the `getAttachmentsAsync` or
15358
- * `item.attachments` call. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
15389
+ * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should get
15390
+ * the attachment's identifier from a `getAttachmentsAsync` call, then in the same session, use that identifier to retrieve the attachment.
15391
+ * In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
15359
15392
  * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to
15360
15393
  * continue in a separate window.
15361
15394
  *
@@ -16577,9 +16610,9 @@ declare namespace Office {
16577
16610
  /**
16578
16611
  * Gets an attachment from a message or appointment and returns it as an `AttachmentContent` object.
16579
16612
  *
16580
- * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use
16581
- * the identifier to retrieve an attachment in the same session that the attachmentIds were retrieved with the `getAttachmentsAsync` or
16582
- * `item.attachments` call. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
16613
+ * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should get
16614
+ * the attachment's identifier from an {@link Office.MessageRead.attachments | item.attachments} call, then in the same session, use that identifier
16615
+ * to retrieve the attachment. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
16583
16616
  * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to
16584
16617
  * continue in a separate window.
16585
16618
  *
@@ -16608,9 +16641,9 @@ declare namespace Office {
16608
16641
  /**
16609
16642
  * Gets an attachment from a message or appointment and returns it as an `AttachmentContent` object.
16610
16643
  *
16611
- * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use
16612
- * the identifier to retrieve an attachment in the same session that the attachmentIds were retrieved with the `getAttachmentsAsync` or
16613
- * `item.attachments` call. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
16644
+ * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should get
16645
+ * the attachment's identifier from an {@link Office.MessageRead.attachments | item.attachments} call, then in the same session, use that identifier
16646
+ * to retrieve the attachment. In Outlook on the web and mobile devices, the attachment identifier is valid only within the same session.
16614
16647
  * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to
16615
16648
  * continue in a separate window.
16616
16649
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.328",
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": "1190c42988b0784a2096a14bdcd4a515ce214d2a056f78a1f9f5adb53f721fd5",
48
+ "typesPublisherContentHash": "70d011d63461712003d9ef8b6dc17144de655cab40981c06f84e050214a1b5ba",
49
49
  "typeScriptVersion": "4.1"
50
50
  }