@types/office-js 1.0.349 → 1.0.350
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.
- office-js/README.md +1 -1
- office-js/index.d.ts +18 -13
- office-js/package.json +2 -2
office-js/README.md
CHANGED
|
@@ -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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 11 Oct 2023 20:35:12 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js/index.d.ts
CHANGED
|
@@ -14110,10 +14110,7 @@ declare namespace Office {
|
|
|
14110
14110
|
*/
|
|
14111
14111
|
addHandlerAsync(eventType: Office.EventType | string, handler: any, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
14112
14112
|
/**
|
|
14113
|
-
* Converts
|
|
14114
|
-
*
|
|
14115
|
-
* Item IDs retrieved via a REST API (such as the Outlook Mail API or the Microsoft Graph) use a different format than the format used by
|
|
14116
|
-
* Exchange Web Services (EWS). The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
|
|
14113
|
+
* Converts a supported ID into the Exchange Web Services (EWS) format.
|
|
14117
14114
|
*
|
|
14118
14115
|
* @remarks
|
|
14119
14116
|
* [Api set: Mailbox 1.3]
|
|
@@ -14122,13 +14119,19 @@ declare namespace Office {
|
|
|
14122
14119
|
*
|
|
14123
14120
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
14124
14121
|
*
|
|
14125
|
-
* **Important**:
|
|
14122
|
+
* **Important**:
|
|
14123
|
+
*
|
|
14124
|
+
* - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
14126
14125
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
14127
14126
|
*
|
|
14128
|
-
*
|
|
14127
|
+
* - Item IDs retrieved via a REST API (such as the Outlook Mail API or the Microsoft Graph) use a different format than the format used by EWS.
|
|
14128
|
+
* The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
|
|
14129
|
+
*
|
|
14130
|
+
* @param id - The ID to be converted into EWS format. This string can be an item ID formatted for the Outlook REST APIs or a conversation ID retrieved from
|
|
14131
|
+
* `Office.context.mailbox.item.conversationId`.
|
|
14129
14132
|
* @param restVersion - A value indicating the version of the Outlook REST API used to retrieve the item ID.
|
|
14130
14133
|
*/
|
|
14131
|
-
convertToEwsId(
|
|
14134
|
+
convertToEwsId(id: string, restVersion: MailboxEnums.RestVersion | string): string;
|
|
14132
14135
|
/**
|
|
14133
14136
|
* Gets a dictionary containing time information in local client time.
|
|
14134
14137
|
*
|
|
@@ -14152,7 +14155,7 @@ declare namespace Office {
|
|
|
14152
14155
|
*/
|
|
14153
14156
|
convertToLocalClientTime(timeValue: Date): LocalClientTime;
|
|
14154
14157
|
/**
|
|
14155
|
-
* Converts
|
|
14158
|
+
* Converts a supported ID into REST format.
|
|
14156
14159
|
*
|
|
14157
14160
|
* @remarks
|
|
14158
14161
|
* [Api set: Mailbox 1.3]
|
|
@@ -14166,15 +14169,17 @@ declare namespace Office {
|
|
|
14166
14169
|
* - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
14167
14170
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
14168
14171
|
*
|
|
14169
|
-
* - Item IDs retrieved via EWS or via the `itemId` property use a different format than the format used by REST APIs (such as the
|
|
14172
|
+
* - Item IDs retrieved via Exchange Web Services (EWS) or via the `itemId` property use a different format than the format used by REST APIs (such as the
|
|
14170
14173
|
* {@link https://learn.microsoft.com/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations | Outlook Mail API}
|
|
14171
|
-
* or the {@link https://graph.microsoft.io/ | Microsoft Graph}.
|
|
14174
|
+
* or the {@link https://graph.microsoft.io/ | Microsoft Graph}).
|
|
14172
14175
|
* The `convertToRestId` method converts an EWS-formatted ID into the proper format for REST.
|
|
14173
14176
|
*
|
|
14174
|
-
* @param
|
|
14175
|
-
*
|
|
14177
|
+
* @param id - The ID to be converted into REST format. This string can be an item ID formatted for EWS that's usually retrieved from
|
|
14178
|
+
* `Office.context.mailbox.item.itemId`, a conversation ID retrieved from `Office.context.mailbox.item.conversationId`, or a
|
|
14179
|
+
* series ID retrieved from `Office.context.mailbox.item.seriesId`.
|
|
14180
|
+
* @param restVersion - A value indicating the version of the Outlook REST API used with the converted ID.
|
|
14176
14181
|
*/
|
|
14177
|
-
convertToRestId(
|
|
14182
|
+
convertToRestId(id: string, restVersion: MailboxEnums.RestVersion | string): string;
|
|
14178
14183
|
/**
|
|
14179
14184
|
* Gets a `Date` object from a dictionary containing time information.
|
|
14180
14185
|
*
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.350",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "d0867fb687bc897d20cd15dbfdbbacb60e9d4351bec5e590424888cfe7a72721",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|