@types/office-js-preview 1.0.383 → 1.0.385

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, 20 Apr 2023 21:32:46 GMT
11
+ * Last updated: Wed, 03 May 2023 18:02:49 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -8989,7 +8989,7 @@ declare namespace Office {
8989
8989
  /**
8990
8990
  * Specifies the recipient is an SMTP email address that isn't on the Exchange server. It also refers to a recipient added from a personal Outlook address book.
8991
8991
  *
8992
- * **Note**: In Outlook on Windows starting with Version 2210 (Build 15813.20002), Global Address Book (GAL) recipients saved to a personal address book return
8992
+ * **Important**: In Outlook on Windows (starting with Version 2210 (Build 15813.20002)), on Mac, and on the web, Global Address Book (GAL) recipients saved to a personal address book return
8993
8993
  * the `ExternalUser` value, even if their SMTP email address appears on the Exchange server. Recipients return a `User` value only if they're directly
8994
8994
  * added or resolved against the GAL.
8995
8995
  */
@@ -8997,6 +8997,10 @@ declare namespace Office {
8997
8997
  /**
8998
8998
  * Specifies the recipient isn't one of the other recipient types. It also refers to a recipient that isn't resolved against the Exchange address book,
8999
8999
  * and is therefore treated as an external SMTP address.
9000
+ *
9001
+ * **Important**: In Outlook on Android and on iOS, Global Address Book (GAL) recipients saved to a personal address book return
9002
+ * the `Other` value, even if their SMTP email address appears on the Exchange server. Recipients return a `User` value only if they're directly
9003
+ * added or resolved against the GAL.
9000
9004
  */
9001
9005
  Other = "other"
9002
9006
  }
@@ -13056,11 +13060,12 @@ declare namespace Office {
13056
13060
  * @param options - An object literal that contains one or more of the following properties:-
13057
13061
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
13058
13062
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
13059
- * `asyncResult`, which is an `Office.AsyncResult` object.
13063
+ * `asyncResult`, which is an `Office.AsyncResult` object. The delivery date and time of a message is returned in the
13064
+ * `asyncResult.value` property. If a delivery date hasn't been set on a message yet, `0` is returned instead.
13060
13065
  *
13061
13066
  * @beta
13062
13067
  */
13063
- getAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<Date>) => void): void;
13068
+ getAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<Date | 0>) => void): void;
13064
13069
  /**
13065
13070
  * Gets the delivery date and time of a message.
13066
13071
  *
@@ -13072,11 +13077,12 @@ declare namespace Office {
13072
13077
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13073
13078
  *
13074
13079
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
13075
- * `asyncResult`, which is an `Office.AsyncResult` object.
13080
+ * `asyncResult`, which is an `Office.AsyncResult` object. The delivery date and time of a message is returned in the
13081
+ * `asyncResult.value` property. If a delivery date hasn't been set on a message yet, `0` is returned instead.
13076
13082
  *
13077
13083
  * @beta
13078
13084
  */
13079
- getAsync(callback?: (asyncResult: Office.AsyncResult<Date>) => void): void;
13085
+ getAsync(callback?: (asyncResult: Office.AsyncResult<Date | 0>) => void): void;
13080
13086
  /**
13081
13087
  * Sets the delivery date and time of a message.
13082
13088
  *
@@ -13087,11 +13093,15 @@ declare namespace Office {
13087
13093
  *
13088
13094
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13089
13095
  *
13096
+ * **Errors**:
13097
+ *
13098
+ * - `InvalidFormatError` - The format of the specified data object is not valid.
13099
+ *
13090
13100
  * @param datetime - The future date and time when the message should be sent.
13091
13101
  * @param options - An object literal that contains one or more of the following properties:-
13092
13102
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
13093
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
13094
- * of type Office.AsyncResult. Any errors encountered will be provided in the `asyncResult.error` property.
13103
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
13104
+ * `asyncResult`, which is an `Office.AsyncResult` object. Any errors encountered will be provided in the `asyncResult.error` property.
13095
13105
  *
13096
13106
  * @beta
13097
13107
  */
@@ -13106,9 +13116,13 @@ declare namespace Office {
13106
13116
  *
13107
13117
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13108
13118
  *
13119
+ * **Errors**:
13120
+ *
13121
+ * - `InvalidFormatError` - The format of the specified data object is not valid.
13122
+ *
13109
13123
  * @param datetime - The future date and time when the message should be sent.
13110
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
13111
- * of type Office.AsyncResult. Any errors encountered will be provided in the `asyncResult.error` property.
13124
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
13125
+ * `asyncResult`, which is an `Office.AsyncResult` object. Any errors encountered will be provided in the `asyncResult.error` property.
13112
13126
  *
13113
13127
  * @beta
13114
13128
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.383",
3
+ "version": "1.0.385",
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": "d68c30aac167a5c05122e2408207ea802b255a74c7ba244fb94734618394d5e7",
48
+ "typesPublisherContentHash": "84c4d304b04f624ac09d99e418dc470191ec4cfaa130f3190f5f410e57c5be06",
49
49
  "typeScriptVersion": "4.3"
50
50
  }