@types/office-runtime 1.0.30 → 1.0.32

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-runtime/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for office-runtime (https://github.com/Of
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-runtime.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 24 Mar 2023 20:32:48 GMT
11
+ * Last updated: Tue, 13 Jun 2023 23:02:50 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `OfficeRuntime`
14
14
 
office-runtime/index.d.ts CHANGED
@@ -43,8 +43,9 @@ declare namespace OfficeRuntime {
43
43
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.10/outlook-requirement-set-1.10 | Mailbox requirement set 1.10}
44
44
  * for Outlook.
45
45
  *
46
- * **Important**: In Outlook, support is only available with
47
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
46
+ * **Important**: In Outlook, support is only available with the
47
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation} feature implemented in Outlook on Windows.
48
+ * This interface isn't supported in Outlook on Mac or on the web.
48
49
  *
49
50
  * Storage limit is 10 MB per domain, which may be shared by multiple add-ins.
50
51
  */
@@ -62,8 +63,9 @@ declare namespace OfficeRuntime {
62
63
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.10/outlook-requirement-set-1.10 | Mailbox requirement set 1.10}
63
64
  * for Outlook.
64
65
  *
65
- * **Important**: In Outlook, support is only available with
66
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
66
+ * **Important**: In Outlook, support is only available with the
67
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation} feature implemented in Outlook on Windows.
68
+ * This method isn't supported in Outlook on Mac or on the web.
67
69
  *
68
70
  * @param key Key of item to be retrieved. Must be a string.
69
71
  */
@@ -81,8 +83,9 @@ declare namespace OfficeRuntime {
81
83
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.10/outlook-requirement-set-1.10 | Mailbox requirement set 1.10}
82
84
  * for Outlook.
83
85
  *
84
- * **Important**: In Outlook, support is only available with
85
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
86
+ * **Important**: In Outlook, support is only available with the
87
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation} feature implemented in Outlook on Windows.
88
+ * This method isn't supported in Outlook on Mac or on the web.
86
89
  *
87
90
  * @param key Key of item to be set. Must be a string.
88
91
  * @param value Must be a string.
@@ -101,8 +104,9 @@ declare namespace OfficeRuntime {
101
104
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.10/outlook-requirement-set-1.10 | Mailbox requirement set 1.10}
102
105
  * for Outlook.
103
106
  *
104
- * **Important**: In Outlook, support is only available with
105
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
107
+ * **Important**: In Outlook, support is only available with the
108
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation} feature implemented in Outlook on Windows.
109
+ * This method isn't supported in Outlook on Mac or on the web.
106
110
  *
107
111
  * @param key Key of item to be removed. Must be a string.
108
112
  */
@@ -120,8 +124,9 @@ declare namespace OfficeRuntime {
120
124
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.10/outlook-requirement-set-1.10 | Mailbox requirement set 1.10}
121
125
  * for Outlook.
122
126
  *
123
- * **Important**: In Outlook, support is only available with
124
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
127
+ * **Important**: In Outlook, support is only available with the
128
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation} feature implemented in Outlook on Windows.
129
+ * This method isn't supported in Outlook on Mac or on the web.
125
130
  *
126
131
  * @param keys Keys of items to be removed. Must be an array of strings.
127
132
  */
@@ -139,8 +144,9 @@ declare namespace OfficeRuntime {
139
144
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.10/outlook-requirement-set-1.10 | Mailbox requirement set 1.10}
140
145
  * for Outlook.
141
146
  *
142
- * **Important**: In Outlook, support is only available with
143
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
147
+ * **Important**: In Outlook, support is only available with the
148
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation} feature implemented in Outlook on Windows.
149
+ * This method isn't supported in Outlook on Mac or on the web.
144
150
  *
145
151
  * @param keyValues Key-value pairs to be set. Must be strings.
146
152
  */
@@ -158,8 +164,9 @@ declare namespace OfficeRuntime {
158
164
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.10/outlook-requirement-set-1.10 | Mailbox requirement set 1.10}
159
165
  * for Outlook.
160
166
  *
161
- * **Important**: In Outlook, support is only available with
162
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
167
+ * **Important**: In Outlook, support is only available with the
168
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation} feature implemented in Outlook on Windows.
169
+ * This method isn't supported in Outlook on Mac or on the web.
163
170
  *
164
171
  * @param keys Keys of items to be removed. Must be an array of strings.
165
172
  */
@@ -177,8 +184,9 @@ declare namespace OfficeRuntime {
177
184
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.10/outlook-requirement-set-1.10 | Mailbox requirement set 1.10}
178
185
  * for Outlook.
179
186
  *
180
- * **Important**: In Outlook, support is only available with
181
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
187
+ * **Important**: In Outlook, support is only available with the
188
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation} feature implemented in Outlook on Windows.
189
+ * This method isn't supported in Outlook on Mac or on the web.
182
190
  */
183
191
  getKeys(): Promise<string[]>;
184
192
  }
@@ -341,12 +349,22 @@ declare namespace OfficeRuntime {
341
349
  * This API requires a single sign-on configuration that bridges the add-in to an Azure application. Office users sign-in with Organizational
342
350
  * Accounts and Microsoft Accounts. Microsoft Azure returns tokens intended for both user account types to access resources in the Microsoft Graph.
343
351
  *
344
- * **Important**: In Outlook, this API isn't supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
345
- *
346
352
  * @remarks
347
353
  *
348
354
  * **Applications**: Excel, Outlook, PowerPoint, Word
349
355
  *
356
+ * **Important**:
357
+ *
358
+ * - In Outlook, this API isn't supported in the following scenarios.
359
+ *
360
+ * - If the add-in is loaded in an Outlook.com or Gmail mailbox.
361
+ *
362
+ * - If the add-in is loaded in Outlook on the web in the Safari browser. This results in error 13001 ("The user is not signed into Office").
363
+ *
364
+ * - In Outlook on the web, if you use the
365
+ * {@link https://learn.microsoft.com/javascript/api/office/office.ui#office-office-ui-displaydialogasync-member(1) | displayDialogAsync}
366
+ * method to open a dialog, you must close the dialog before you can call `getAccessToken`.
367
+ *
350
368
  * @param options - Optional. Accepts an `AuthOptions` object to define sign-on behaviors.
351
369
  * @returns Promise to the access token.
352
370
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-runtime",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "TypeScript definitions for office-runtime",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-runtime",
6
6
  "license": "MIT",
@@ -40,6 +40,6 @@
40
40
  },
41
41
  "scripts": {},
42
42
  "dependencies": {},
43
- "typesPublisherContentHash": "abd45aac48a29da2770bb79f2b5d5291fe570fb1fdeef125c948d89138062482",
43
+ "typesPublisherContentHash": "3d85f887dc854f0238d539eb1a7f58720f468556bd259c9801ab5b77be32357b",
44
44
  "typeScriptVersion": "4.3"
45
45
  }