@types/office-js 1.0.281 → 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 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: Wed, 14 Sep 2022 20:32:52 GMT
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
@@ -10160,6 +10160,42 @@ declare namespace Office {
10160
10160
  * the failure.
10161
10161
  */
10162
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;
10163
10199
  /**
10164
10200
  * Asynchronously gets the ID of a saved item.
10165
10201
  *
@@ -11439,6 +11475,42 @@ declare namespace Office {
11439
11475
  * @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
11440
11476
  */
11441
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;
11442
11514
  /**
11443
11515
  * Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
11444
11516
  *
@@ -15128,6 +15200,42 @@ declare namespace Office {
15128
15200
  * An object with `ComposeType` and `CoercionType` enum values for the message item.
15129
15201
  */
15130
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;
15131
15239
  /**
15132
15240
  * Asynchronously gets the ID of a saved item.
15133
15241
  *
@@ -16340,6 +16448,42 @@ declare namespace Office {
16340
16448
  * @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
16341
16449
  */
16342
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;
16343
16487
  /**
16344
16488
  * Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
16345
16489
  *
@@ -16562,6 +16706,11 @@ declare namespace Office {
16562
16706
  * The button defined in the manifest based on the item type.
16563
16707
  */
16564
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;
16565
16714
  }
16566
16715
  /**
16567
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.281",
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": "0ca35ba1ff598f6fe3322c0879268d476ece5acb05c46dfe2c92ebc2e7d0f6bd",
48
+ "typesPublisherContentHash": "ab0d6f71c3679e890e5a2356269b2a4a22a6afc890e91305192c5a927edcb19e",
49
49
  "typeScriptVersion": "4.1"
50
50
  }