@types/office-js 1.0.349 → 1.0.351

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.
Files changed (3) hide show
  1. office-js/README.md +2 -3
  2. office-js/index.d.ts +18 -24
  3. office-js/package.json +15 -15
office-js/README.md CHANGED
@@ -2,15 +2,14 @@
2
2
  > `npm install --save @types/office-js`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for Office.js (https://github.com/OfficeDev/office-js).
5
+ This package contains type definitions for office-js (https://github.com/OfficeDev/office-js).
6
6
 
7
7
  # Details
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: Fri, 06 Oct 2023 19:35:19 GMT
11
+ * Last updated: Wed, 18 Oct 2023 05:47:08 GMT
12
12
  * Dependencies: none
13
- * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
13
 
15
14
  # Credits
16
15
  These definitions were written by [OfficeDev](https://github.com/OfficeDev), [Ricky Kirkham](https://github.com/Rick-Kirkham), [Alex Jerabek](https://github.com/AlexJerabek), [Elizabeth Samuel](https://github.com/ElizabethSamuel-MSFT), [Alison McKay](https://github.com/alison-mk), and [Sam Ramon](https://github.com/samantharamon).
office-js/index.d.ts CHANGED
@@ -1,14 +1,3 @@
1
- // Type definitions for Office.js 1.0
2
- // Project: https://github.com/OfficeDev/office-js
3
- // Definitions by: OfficeDev <https://github.com/OfficeDev>,
4
- // Ricky Kirkham <https://github.com/Rick-Kirkham>,
5
- // Alex Jerabek <https://github.com/AlexJerabek>,
6
- // Elizabeth Samuel <https://github.com/ElizabethSamuel-MSFT>,
7
- // Alison McKay <https://github.com/alison-mk>,
8
- // Sam Ramon <https://github.com/samantharamon>
9
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
10
- // TypeScript Version: 2.4
11
-
12
1
  /*
13
2
  office-js
14
3
  Copyright (c) Microsoft Corporation
@@ -14110,10 +14099,7 @@ declare namespace Office {
14110
14099
  */
14111
14100
  addHandlerAsync(eventType: Office.EventType | string, handler: any, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
14112
14101
  /**
14113
- * Converts an item ID formatted for REST into EWS format.
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.
14102
+ * Converts a supported ID into the Exchange Web Services (EWS) format.
14117
14103
  *
14118
14104
  * @remarks
14119
14105
  * [Api set: Mailbox 1.3]
@@ -14122,13 +14108,19 @@ declare namespace Office {
14122
14108
  *
14123
14109
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
14124
14110
  *
14125
- * **Important**: This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14111
+ * **Important**:
14112
+ *
14113
+ * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14126
14114
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
14127
14115
  *
14128
- * @param itemId - An item ID formatted for the Outlook REST APIs.
14116
+ * - 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.
14117
+ * The `convertToEwsId` method converts a REST-formatted ID into the proper format for EWS.
14118
+ *
14119
+ * @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
14120
+ * `Office.context.mailbox.item.conversationId`.
14129
14121
  * @param restVersion - A value indicating the version of the Outlook REST API used to retrieve the item ID.
14130
14122
  */
14131
- convertToEwsId(itemId: string, restVersion: MailboxEnums.RestVersion | string): string;
14123
+ convertToEwsId(id: string, restVersion: MailboxEnums.RestVersion | string): string;
14132
14124
  /**
14133
14125
  * Gets a dictionary containing time information in local client time.
14134
14126
  *
@@ -14152,7 +14144,7 @@ declare namespace Office {
14152
14144
  */
14153
14145
  convertToLocalClientTime(timeValue: Date): LocalClientTime;
14154
14146
  /**
14155
- * Converts an item ID formatted for EWS into REST format.
14147
+ * Converts a supported ID into REST format.
14156
14148
  *
14157
14149
  * @remarks
14158
14150
  * [Api set: Mailbox 1.3]
@@ -14166,15 +14158,17 @@ declare namespace Office {
14166
14158
  * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
14167
14159
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
14168
14160
  *
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
14161
+ * - 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
14162
  * {@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}.
14163
+ * or the {@link https://graph.microsoft.io/ | Microsoft Graph}).
14172
14164
  * The `convertToRestId` method converts an EWS-formatted ID into the proper format for REST.
14173
14165
  *
14174
- * @param itemId - An item ID formatted for Exchange Web Services (EWS)
14175
- * @param restVersion - A value indicating the version of the Outlook REST API that the converted ID will be used with.
14166
+ * @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
14167
+ * `Office.context.mailbox.item.itemId`, a conversation ID retrieved from `Office.context.mailbox.item.conversationId`, or a
14168
+ * series ID retrieved from `Office.context.mailbox.item.seriesId`.
14169
+ * @param restVersion - A value indicating the version of the Outlook REST API used with the converted ID.
14176
14170
  */
14177
- convertToRestId(itemId: string, restVersion: MailboxEnums.RestVersion | string): string;
14171
+ convertToRestId(id: string, restVersion: MailboxEnums.RestVersion | string): string;
14178
14172
  /**
14179
14173
  * Gets a `Date` object from a dictionary containing time information.
14180
14174
  *
office-js/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.349",
4
- "description": "TypeScript definitions for Office.js",
3
+ "version": "1.0.351",
4
+ "description": "TypeScript definitions for office-js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "OfficeDev",
10
- "url": "https://github.com/OfficeDev",
11
- "githubUsername": "OfficeDev"
10
+ "githubUsername": "OfficeDev",
11
+ "url": "https://github.com/OfficeDev"
12
12
  },
13
13
  {
14
14
  "name": "Ricky Kirkham",
15
- "url": "https://github.com/Rick-Kirkham",
16
- "githubUsername": "Rick-Kirkham"
15
+ "githubUsername": "Rick-Kirkham",
16
+ "url": "https://github.com/Rick-Kirkham"
17
17
  },
18
18
  {
19
19
  "name": "Alex Jerabek",
20
- "url": "https://github.com/AlexJerabek",
21
- "githubUsername": "AlexJerabek"
20
+ "githubUsername": "AlexJerabek",
21
+ "url": "https://github.com/AlexJerabek"
22
22
  },
23
23
  {
24
24
  "name": "Elizabeth Samuel",
25
- "url": "https://github.com/ElizabethSamuel-MSFT",
26
- "githubUsername": "ElizabethSamuel-MSFT"
25
+ "githubUsername": "ElizabethSamuel-MSFT",
26
+ "url": "https://github.com/ElizabethSamuel-MSFT"
27
27
  },
28
28
  {
29
29
  "name": "Alison McKay",
30
- "url": "https://github.com/alison-mk",
31
- "githubUsername": "alison-mk"
30
+ "githubUsername": "alison-mk",
31
+ "url": "https://github.com/alison-mk"
32
32
  },
33
33
  {
34
34
  "name": "Sam Ramon",
35
- "url": "https://github.com/samantharamon",
36
- "githubUsername": "samantharamon"
35
+ "githubUsername": "samantharamon",
36
+ "url": "https://github.com/samantharamon"
37
37
  }
38
38
  ],
39
39
  "main": "",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "17c7eafb0c249980c06196b73d160a493e31c2c8b5e5009ee334f07b399fa986",
48
+ "typesPublisherContentHash": "18995246a22f0e1be416e9adebccd26a03cca77ec7e5d05f8b52fba53692d8c9",
49
49
  "typeScriptVersion": "4.5"
50
50
  }