@types/office-js-preview 1.0.442 → 1.0.443

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-preview (https://github.com
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, 25 Jan 2024 17:06:50 GMT
11
+ * Last updated: Thu, 25 Jan 2024 17:35:38 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -1006,6 +1006,20 @@ declare namespace Office {
1006
1006
  * Provides objects and methods that you can use to create and manipulate UI components, such as dialog boxes.
1007
1007
  */
1008
1008
  ui: UI;
1009
+ /**
1010
+ * Gets the object to retrieve the runtime URLs of an add-in.
1011
+ *
1012
+ * @remarks
1013
+ *
1014
+ * [Api set: Mailbox preview]
1015
+ *
1016
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
1017
+ *
1018
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
1019
+ *
1020
+ * @beta
1021
+ */
1022
+ urls: Urls;
1009
1023
  }
1010
1024
  /**
1011
1025
  * Provides specific information about an error that occurred during an asynchronous data operation.
@@ -1443,6 +1457,51 @@ declare namespace Office {
1443
1457
  */
1444
1458
  openBrowserWindow(url: string): void;
1445
1459
  }
1460
+ /**
1461
+ * Provides the URLs of the runtime environments used by an add-in.
1462
+ *
1463
+ * @remarks
1464
+ *
1465
+ * [Api set: Mailbox preview]
1466
+ *
1467
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
1468
+ *
1469
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
1470
+ *
1471
+ * @beta
1472
+ */
1473
+ interface Urls {
1474
+ /**
1475
+ * Gets the URL of the JavaScript runtime of an add-in.
1476
+ *
1477
+ * @remarks
1478
+ *
1479
+ * [Api set: Mailbox preview]
1480
+ *
1481
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
1482
+ *
1483
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
1484
+ *
1485
+ * **Important**:
1486
+ *
1487
+ * - This property is currently in preview in Outlook on Windows. To test it in your add-in, you must install Version 2401 (Build 17228.20000) or later.
1488
+ * Then, join the {@link | Microsoft 365 Insider program} and select the **Beta Channel** option to access Office beta builds.
1489
+ *
1490
+ * - The URL returned points to the location of the JavaScript file that Outlook on Windows uses to handle event-based activation
1491
+ * and integrated spam reporting. To learn more about these features, see
1492
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | Configure your Outlook add-in for event-based activation} and
1493
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | Implement an integrated spam-reporting add-in (preview)}.
1494
+ *
1495
+ * - If your add-in uses the XML manifest, the URL returned matches the `resid` value of the **RuntimeOverride** element of type `javascript`.
1496
+ * To learn more, see {@link https://learn.microsoft.com/javascript/api/manifest/override#override-element-for-runtime | Override element for Runtime}.
1497
+ *
1498
+ * - If your add-in uses the unified manifest for Microsoft 365 (developer preview), the URL returned matches the value of the `script` property in the
1499
+ * "code" object.
1500
+ *
1501
+ * @beta
1502
+ */
1503
+ javaScriptRuntimeUrl: string;
1504
+ }
1446
1505
  /**
1447
1506
  * Provides information about which Requirement Sets are supported in the current environment.
1448
1507
  */
@@ -12931,7 +12990,7 @@ declare namespace Office {
12931
12990
  */
12932
12991
  setSelectedDataAsync(data: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
12933
12992
  /**
12934
- * Adds or replaces the signature of the item body.
12993
+ * Adds a signature to the item body if it doesn't have an existing signature. If there's already a signature in the body, replaces that signature.
12935
12994
  *
12936
12995
  * @remarks
12937
12996
  * [Api set: Mailbox 1.10]
@@ -12971,7 +13030,7 @@ declare namespace Office {
12971
13030
  */
12972
13031
  setSignatureAsync(data: string, options: Office.AsyncContextOptions & CoercionTypeOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
12973
13032
  /**
12974
- * Adds or replaces the signature of the item body.
13033
+ * Adds a signature to the item body if it doesn't have an existing signature. If there's already a signature in the body, replaces that signature.
12975
13034
  *
12976
13035
  * @remarks
12977
13036
  * [Api set: Mailbox 1.10]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.442",
3
+ "version": "1.0.443",
4
4
  "description": "TypeScript definitions for office-js-preview",
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": "37207b61719bbef9a9f54b7a59ac799761812bae6eba83e022e12aca50a79482",
48
+ "typesPublisherContentHash": "5114d78a85066f06c88466980819fe055cc6708b0039af9961780f5663baba08",
49
49
  "typeScriptVersion": "4.6"
50
50
  }