@types/office-js-preview 1.0.410 → 1.0.411

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: Tue, 29 Aug 2023 20:03:01 GMT
11
+ * Last updated: Thu, 31 Aug 2023 19:03:05 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -8984,11 +8984,12 @@ declare namespace Office {
8984
8984
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
8985
8985
  *
8986
8986
  * **Important**: This enum can only be used to assign values to the
8987
- * {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.eventcompletedoptions?view=outlook-js-preview&preserve-view=true#office-office-addincommands-eventcompletedoptions-moveitemto-member |
8988
- * moveItemTo} property of the `event.completed` method. If you're on an Outlook on Windows version that only supports the `postProcessingAction` property,
8987
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.spamreportingeventcompletedoptions?view=outlook-js-preview&preserve-view=true#outlook-office-spamreportingeventcompletedoptions-moveitemto-member | moveItemTo}
8988
+ * property of the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | event.completed}
8989
+ * method. If you're on an Outlook on Windows version that only supports the `postProcessingAction` property,
8989
8990
  * you must assign it different string values. For a list of supported string values, see
8990
- * {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.eventcompletedoptions?view=outlook-js-preview&preserve-view=true#office-office-addincommands-eventcompletedoptions-postprocessingaction-member |
8991
- * Office.AddinCommands.EventCompletedOptions.postProcessingAction}.
8991
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.spamreportingeventcompletedoptions?view=outlook-js-preview&preserve-view=true#outlook-office-spamreportingeventcompletedoptions-postprocessingaction-member |
8992
+ * Office.SpamReportingEventCompletedOptions.postProcessingAction}.
8992
8993
  *
8993
8994
  * @beta
8994
8995
  */
@@ -9710,6 +9711,29 @@ declare namespace Office {
9710
9711
  */
9711
9712
  Beta = "beta"
9712
9713
  }
9714
+ /**
9715
+ * Specifies the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#available-send-mode-options | send mode option}
9716
+ * that overrides the option set in the manifest at runtime.
9717
+ *
9718
+ * For information on how to implement a Smart Alerts add-in, see
9719
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Use Smart Alerts and the OnMessageSend and OnAppointmentSend events in your Outlook add-in}.
9720
+ *
9721
+ * @remarks
9722
+ * [Api set: Mailbox preview]
9723
+ *
9724
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
9725
+ *
9726
+ * @beta
9727
+ */
9728
+ enum SendModeOverride {
9729
+ /**
9730
+ * Provides the **Send Anyway** option in a Smart Alerts dialog when the mail item doesn't meet the conditions of the event-based add-in.
9731
+ * To learn more, see the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#prompt-user | **prompt user** send mode option}.
9732
+ *
9733
+ * @beta
9734
+ */
9735
+ PromptUser = "promptUser"
9736
+ }
9713
9737
  /**
9714
9738
  * Specifies the source of the selected data in an item (see `Office.mailbox.item.getSelectedDataAsync` for details).
9715
9739
  *
@@ -19766,9 +19790,75 @@ declare namespace Office {
19766
19790
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
19767
19791
  */
19768
19792
  allowEvent?: boolean;
19793
+ /**
19794
+ * When you use the {@link Office.MailboxEvent.completed | completed method} to signal completion of an event handler and set its `allowEvent` property to `false`,
19795
+ * this property customizes the text of the **Don't Send** button in the Smart Alerts dialog. Custom text must be 20 characters or less.
19796
+ *
19797
+ * For an example, see the
19798
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#customize-the-dont-send-button-optional-preview | Smart Alerts walkthrough}.
19799
+ *
19800
+ * @remarks
19801
+ *
19802
+ * [Api set: Mailbox preview]
19803
+ *
19804
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
19805
+ *
19806
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
19807
+ *
19808
+ * @beta
19809
+ */
19810
+ cancelLabel?: string;
19811
+ /**
19812
+ * When you use the {@link Office.MailboxEvent.completed | completed method} to signal completion of an event handler and set its `allowEvent` property to `false`,
19813
+ * this property specifies the ID of the task pane that opens when the **Don't Send** button is selected from the Smart Alerts dialog.
19814
+ *
19815
+ * For an example, see the
19816
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#customize-the-dont-send-button-optional-preview | Smart Alerts walkthrough}.
19817
+ *
19818
+ * @remarks
19819
+ *
19820
+ * [Api set: Mailbox preview]
19821
+ *
19822
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
19823
+ *
19824
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
19825
+ *
19826
+ * **Important**:
19827
+ *
19828
+ * The `commandId` value must match the task pane ID specified in the manifest of your add-in. The markup depends on the type of manifest your
19829
+ * add-in uses.
19830
+ *
19831
+ * - **XML manifest**: The `id` attribute of the {@link https://learn.microsoft.com/javascript/api/manifest/control | Control} element representing the task pane.
19832
+ *
19833
+ * - **Unified manifest for Microsoft 365 (preview)**: The "id" property of the task pane command in the "controls" array.
19834
+ *
19835
+ * If you specify the `contextData` option in your `event.completed` call, you must also assign a task pane ID to the `commandId` option.
19836
+ * Otherwise, the JSON data assigned to `contextData` is ignored.
19837
+ *
19838
+ * @beta
19839
+ */
19840
+ commandId?: string;
19841
+ /**
19842
+ * When you use the {@link Office.MailboxEvent.completed | completed method} to signal completion of an event handler and set its `allowEvent` property to `false`,
19843
+ * this property specifies any JSON data passed to the add-in for processing when the **Don't Send** button is selected from the Smart Alerts dialog.
19844
+ *
19845
+ * @remarks
19846
+ *
19847
+ * [Api set: Mailbox preview]
19848
+ *
19849
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
19850
+ *
19851
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
19852
+ *
19853
+ * **Important**: If you specify the `contextData` option in your `event.completed` call, you must also assign a task pane ID to the `commandId` option.
19854
+ * Otherwise, the JSON data assigned to `contextData` is ignored.
19855
+ *
19856
+ * @beta
19857
+ */
19858
+ contextData?: object;
19769
19859
  /**
19770
19860
  * When you use the {@link Office.MailboxEvent.completed | completed method} to signal completion of an event handler and set its `allowEvent` property
19771
- * to `false`, this property sets the error message that will be displayed to the user. For an example, see the
19861
+ * to `false`, this property sets the error message displayed to the user. For an example, see the
19772
19862
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts walkthrough}.
19773
19863
  *
19774
19864
  * @remarks
@@ -19780,6 +19870,29 @@ declare namespace Office {
19780
19870
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
19781
19871
  */
19782
19872
  errorMessage?: string;
19873
+ /**
19874
+ * When you use the {@link Office.MailboxEvent.completed | completed method} to signal completion of an event handler
19875
+ * and set its `allowEvent` property to `false`, this property overrides the
19876
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#available-send-mode-options | send mode option}
19877
+ * specified in the manifest at runtime.
19878
+ *
19879
+ * For an example, see the
19880
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#override-the-send-mode-option-at-runtime-optional-preview | Smart Alerts walkthrough}.
19881
+ *
19882
+ * @remarks
19883
+ *
19884
+ * [Api set: Mailbox preview]
19885
+ *
19886
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **restricted**
19887
+ *
19888
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
19889
+ *
19890
+ * **Important**: Currently, `sendModeOverride` can only be set to the
19891
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#prompt-user | prompt user} option.
19892
+ *
19893
+ * @beta
19894
+ */
19895
+ sendModeOverride?: Office.MailboxEnums.SendModeOverride | string;
19783
19896
  }
19784
19897
  /**
19785
19898
  * Provides information about the `Office.EventType.SpamReporting` event that occurs when an unsolicited message is reported.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.410",
3
+ "version": "1.0.411",
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": "844fdd4e078cd90f5f0556b7777348441770b71bd98176c8b58b58d931258132",
48
+ "typesPublisherContentHash": "fb9af49e6c8b0723529deee1945cd6cbe677b3b1b98e8ab59baae85d333ab9df",
49
49
  "typeScriptVersion": "4.3"
50
50
  }