@types/office-js 1.0.280 → 1.0.282
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 +156 -1
- 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: Fri, 16 Sep 2022 19:32:48 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
|
@@ -1550,8 +1550,14 @@ declare namespace Office {
|
|
|
1550
1550
|
asyncContext?: any;
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Causes Office to return a descriptive error when the add-in wants to access Microsoft Graph and the user/admin has not granted consent to Graph scopes. Default value is `false`.
|
|
1553
|
-
* Office only supports consent to Graph scopes when the add-in has been deployed by a tenant admin.
|
|
1553
|
+
* Office only supports consent to Graph scopes when the add-in has been deployed by a tenant admin.
|
|
1554
1554
|
* Setting this option to `true` will cause Office to inform your add-in beforehand (by returning a descriptive error) if Graph access will fail.
|
|
1555
|
+
*
|
|
1556
|
+
* @remarks
|
|
1557
|
+
*
|
|
1558
|
+
* **Note**: If you're developing an Outlook add-in that uses single sign-on (SSO), comment out the `forMSGraphAccess` option before sideloading the add-in for testing.
|
|
1559
|
+
* Otherwise, you'll receive {@link https://docs.microsoft.com/office/dev/add-ins/develop/troubleshoot-sso-in-office-add-ins#13012 | error 13012}. For additional guidance, see
|
|
1560
|
+
* {@link https://docs.microsoft.com/office/dev/add-ins/develop/authorize-to-microsoft-graph#details-on-sso-with-an-outlook-add-in | Details on SSO with an Outlook add-in}.
|
|
1555
1561
|
*/
|
|
1556
1562
|
forMSGraphAccess?: boolean;
|
|
1557
1563
|
}
|
|
@@ -10154,6 +10160,42 @@ declare namespace Office {
|
|
|
10154
10160
|
* the failure.
|
|
10155
10161
|
*/
|
|
10156
10162
|
getAttachmentsAsync(callback?: (asyncResult: Office.AsyncResult<AttachmentDetailsCompose[]>) => void): void;
|
|
10163
|
+
/**
|
|
10164
|
+
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
10165
|
+
*
|
|
10166
|
+
* @remarks
|
|
10167
|
+
* [Api set: Mailbox 1.8]
|
|
10168
|
+
*
|
|
10169
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
10170
|
+
*
|
|
10171
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10172
|
+
*
|
|
10173
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
10174
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10175
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10176
|
+
* of type `Office.AsyncResult`.
|
|
10177
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
10178
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
10179
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
10180
|
+
*/
|
|
10181
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10182
|
+
/**
|
|
10183
|
+
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
10184
|
+
*
|
|
10185
|
+
* @remarks
|
|
10186
|
+
* [Api set: Mailbox 1.8]
|
|
10187
|
+
*
|
|
10188
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
10189
|
+
*
|
|
10190
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10191
|
+
*
|
|
10192
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10193
|
+
* of type `Office.AsyncResult`.
|
|
10194
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
10195
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
10196
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
10197
|
+
*/
|
|
10198
|
+
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10157
10199
|
/**
|
|
10158
10200
|
* Asynchronously gets the ID of a saved item.
|
|
10159
10201
|
*
|
|
@@ -11433,6 +11475,42 @@ declare namespace Office {
|
|
|
11433
11475
|
* @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
|
|
11434
11476
|
*/
|
|
11435
11477
|
getFilteredEntitiesByName(name: string): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
|
|
11478
|
+
/**
|
|
11479
|
+
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
11480
|
+
*
|
|
11481
|
+
* @remarks
|
|
11482
|
+
* [Api set: Mailbox 1.8]
|
|
11483
|
+
*
|
|
11484
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
11485
|
+
*
|
|
11486
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11487
|
+
*
|
|
11488
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
11489
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
11490
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
11491
|
+
* of type `Office.AsyncResult`.
|
|
11492
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
11493
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
11494
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
11495
|
+
*/
|
|
11496
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11497
|
+
/**
|
|
11498
|
+
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
11499
|
+
*
|
|
11500
|
+
* @remarks
|
|
11501
|
+
* [Api set: Mailbox 1.8]
|
|
11502
|
+
*
|
|
11503
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
11504
|
+
*
|
|
11505
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11506
|
+
*
|
|
11507
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
11508
|
+
* of type `Office.AsyncResult`.
|
|
11509
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
11510
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
11511
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
11512
|
+
*/
|
|
11513
|
+
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11436
11514
|
/**
|
|
11437
11515
|
* Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
|
|
11438
11516
|
*
|
|
@@ -15122,6 +15200,42 @@ declare namespace Office {
|
|
|
15122
15200
|
* An object with `ComposeType` and `CoercionType` enum values for the message item.
|
|
15123
15201
|
*/
|
|
15124
15202
|
getComposeTypeAsync(callback: (asyncResult: Office.AsyncResult<any>) => void): void;
|
|
15203
|
+
/**
|
|
15204
|
+
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
15205
|
+
*
|
|
15206
|
+
* @remarks
|
|
15207
|
+
* [Api set: Mailbox 1.8]
|
|
15208
|
+
*
|
|
15209
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
15210
|
+
*
|
|
15211
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15212
|
+
*
|
|
15213
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
15214
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
15215
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
15216
|
+
* of type `Office.AsyncResult`.
|
|
15217
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
15218
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
15219
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
15220
|
+
*/
|
|
15221
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
15222
|
+
/**
|
|
15223
|
+
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
15224
|
+
*
|
|
15225
|
+
* @remarks
|
|
15226
|
+
* [Api set: Mailbox 1.8]
|
|
15227
|
+
*
|
|
15228
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
15229
|
+
*
|
|
15230
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15231
|
+
*
|
|
15232
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
15233
|
+
* of type `Office.AsyncResult`.
|
|
15234
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
15235
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
15236
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
15237
|
+
*/
|
|
15238
|
+
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
15125
15239
|
/**
|
|
15126
15240
|
* Asynchronously gets the ID of a saved item.
|
|
15127
15241
|
*
|
|
@@ -16334,6 +16448,42 @@ declare namespace Office {
|
|
|
16334
16448
|
* @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
|
|
16335
16449
|
*/
|
|
16336
16450
|
getFilteredEntitiesByName(name: string): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
|
|
16451
|
+
/**
|
|
16452
|
+
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
16453
|
+
*
|
|
16454
|
+
* @remarks
|
|
16455
|
+
* [Api set: Mailbox 1.8]
|
|
16456
|
+
*
|
|
16457
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
16458
|
+
*
|
|
16459
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
16460
|
+
*
|
|
16461
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
16462
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16463
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16464
|
+
* of type `Office.AsyncResult`.
|
|
16465
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
16466
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
16467
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
16468
|
+
*/
|
|
16469
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16470
|
+
/**
|
|
16471
|
+
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
16472
|
+
*
|
|
16473
|
+
* @remarks
|
|
16474
|
+
* [Api set: Mailbox 1.8]
|
|
16475
|
+
*
|
|
16476
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
16477
|
+
*
|
|
16478
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
16479
|
+
*
|
|
16480
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16481
|
+
* of type `Office.AsyncResult`.
|
|
16482
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
16483
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
16484
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
16485
|
+
*/
|
|
16486
|
+
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16337
16487
|
/**
|
|
16338
16488
|
* Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
|
|
16339
16489
|
*
|
|
@@ -16556,6 +16706,11 @@ declare namespace Office {
|
|
|
16556
16706
|
* The button defined in the manifest based on the item type.
|
|
16557
16707
|
*/
|
|
16558
16708
|
commandId: string;
|
|
16709
|
+
/**
|
|
16710
|
+
* Any JSON data the action button needs to pass on.
|
|
16711
|
+
* This data can be retrieved by calling `item.getInitializationContextAsync`.
|
|
16712
|
+
*/
|
|
16713
|
+
contextData: any;
|
|
16559
16714
|
}
|
|
16560
16715
|
/**
|
|
16561
16716
|
* An array of `NotificationMessageDetails` objects are returned by the `NotificationMessages.getAllAsync` method.
|
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.282",
|
|
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": "ab0d6f71c3679e890e5a2356269b2a4a22a6afc890e91305192c5a927edcb19e",
|
|
49
49
|
"typeScriptVersion": "4.1"
|
|
50
50
|
}
|