@types/office-js-preview 1.0.335 → 1.0.336
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +81 -139
- office-js-preview/package.json +2 -2
office-js-preview/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-preview.
|
|
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-preview/index.d.ts
CHANGED
|
@@ -10303,20 +10303,15 @@ declare namespace Office {
|
|
|
10303
10303
|
*/
|
|
10304
10304
|
getAttachmentsAsync(callback?: (asyncResult: Office.AsyncResult<AttachmentDetailsCompose[]>) => void): void;
|
|
10305
10305
|
/**
|
|
10306
|
-
* Gets initialization data passed when the add-in is activated by an actionable message.
|
|
10307
|
-
*
|
|
10308
|
-
* **Note**: This method is only supported by Outlook 2016 or later on Windows (Click-to-Run versions greater than 16.0.8413.1000)
|
|
10309
|
-
* and Outlook on the web for Microsoft 365.
|
|
10306
|
+
* 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}.
|
|
10310
10307
|
*
|
|
10311
10308
|
* @remarks
|
|
10312
|
-
* [Api set: Mailbox
|
|
10309
|
+
* [Api set: Mailbox 1.8]
|
|
10313
10310
|
*
|
|
10314
10311
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
10315
10312
|
*
|
|
10316
10313
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10317
10314
|
*
|
|
10318
|
-
* More information on {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in-from-actionable-message | actionable messages}.
|
|
10319
|
-
*
|
|
10320
10315
|
* @param options - An object literal that contains one or more of the following properties.
|
|
10321
10316
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10322
10317
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
@@ -10324,32 +10319,23 @@ declare namespace Office {
|
|
|
10324
10319
|
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
10325
10320
|
* If there is no initialization context, the `asyncResult` object will contain
|
|
10326
10321
|
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
10327
|
-
*
|
|
10328
|
-
* @beta
|
|
10329
10322
|
*/
|
|
10330
10323
|
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10331
10324
|
/**
|
|
10332
|
-
* Gets initialization data passed when the add-in is activated by an actionable message.
|
|
10333
|
-
*
|
|
10334
|
-
* **Note**: This method is only supported by Outlook 2016 or later on Windows (Click-to-Run versions greater than 16.0.8413.1000)
|
|
10335
|
-
* and Outlook on the web for Microsoft 365.
|
|
10325
|
+
* 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}.
|
|
10336
10326
|
*
|
|
10337
10327
|
* @remarks
|
|
10338
|
-
* [Api set: Mailbox
|
|
10328
|
+
* [Api set: Mailbox 1.8]
|
|
10339
10329
|
*
|
|
10340
10330
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
10341
10331
|
*
|
|
10342
10332
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10343
10333
|
*
|
|
10344
|
-
* More information on {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in-from-actionable-message | actionable messages}.
|
|
10345
|
-
*
|
|
10346
10334
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10347
10335
|
* of type `Office.AsyncResult`.
|
|
10348
10336
|
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
10349
10337
|
* If there is no initialization context, the `asyncResult` object will contain
|
|
10350
10338
|
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
10351
|
-
*
|
|
10352
|
-
* @beta
|
|
10353
10339
|
*/
|
|
10354
10340
|
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10355
10341
|
/**
|
|
@@ -11558,52 +11544,6 @@ declare namespace Office {
|
|
|
11558
11544
|
* an error code with the reason for the failure.
|
|
11559
11545
|
*/
|
|
11560
11546
|
getAttachmentContentAsync(attachmentId: string, callback?: (asyncResult: Office.AsyncResult<AttachmentContent>) => void): void;
|
|
11561
|
-
/**
|
|
11562
|
-
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in-from-actionable-message | activated by an actionable message}.
|
|
11563
|
-
*
|
|
11564
|
-
* **Note**: This method is only supported by Outlook 2016 or later on Windows (Click-to-Run versions greater than 16.0.8413.1000)
|
|
11565
|
-
* and Outlook on the web for Microsoft 365.
|
|
11566
|
-
*
|
|
11567
|
-
* @remarks
|
|
11568
|
-
* [Api set: Mailbox preview]
|
|
11569
|
-
*
|
|
11570
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
11571
|
-
*
|
|
11572
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11573
|
-
*
|
|
11574
|
-
* @param options - An object literal that contains one or more of the following properties.
|
|
11575
|
-
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
11576
|
-
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
11577
|
-
* of type `Office.AsyncResult`.
|
|
11578
|
-
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
11579
|
-
* If there is no initialization context, the `asyncResult` object will contain
|
|
11580
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
11581
|
-
*
|
|
11582
|
-
* @beta
|
|
11583
|
-
*/
|
|
11584
|
-
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11585
|
-
/**
|
|
11586
|
-
* Gets initialization data passed when the add-in is {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in-from-actionable-message | activated by an actionable message}.
|
|
11587
|
-
*
|
|
11588
|
-
* **Note**: This method is only supported by Outlook 2016 or later on Windows (Click-to-Run versions greater than 16.0.8413.1000)
|
|
11589
|
-
* and Outlook on the web for Microsoft 365.
|
|
11590
|
-
*
|
|
11591
|
-
* @remarks
|
|
11592
|
-
* [Api set: Mailbox preview]
|
|
11593
|
-
*
|
|
11594
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
11595
|
-
*
|
|
11596
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11597
|
-
*
|
|
11598
|
-
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
11599
|
-
* of type `Office.AsyncResult`.
|
|
11600
|
-
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
11601
|
-
* If there is no initialization context, the `asyncResult` object will contain
|
|
11602
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
11603
|
-
*
|
|
11604
|
-
* @beta
|
|
11605
|
-
*/
|
|
11606
|
-
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11607
11547
|
/**
|
|
11608
11548
|
* Gets the entities found in the selected item's body.
|
|
11609
11549
|
*
|
|
@@ -11702,6 +11642,42 @@ declare namespace Office {
|
|
|
11702
11642
|
* @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
|
|
11703
11643
|
*/
|
|
11704
11644
|
getFilteredEntitiesByName(name: string): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
|
|
11645
|
+
/**
|
|
11646
|
+
* 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}.
|
|
11647
|
+
*
|
|
11648
|
+
* @remarks
|
|
11649
|
+
* [Api set: Mailbox 1.8]
|
|
11650
|
+
*
|
|
11651
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
11652
|
+
*
|
|
11653
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11654
|
+
*
|
|
11655
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
11656
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
11657
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
11658
|
+
* of type `Office.AsyncResult`.
|
|
11659
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
11660
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
11661
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
11662
|
+
*/
|
|
11663
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11664
|
+
/**
|
|
11665
|
+
* 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}.
|
|
11666
|
+
*
|
|
11667
|
+
* @remarks
|
|
11668
|
+
* [Api set: Mailbox 1.8]
|
|
11669
|
+
*
|
|
11670
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
11671
|
+
*
|
|
11672
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11673
|
+
*
|
|
11674
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
11675
|
+
* of type `Office.AsyncResult`.
|
|
11676
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
11677
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
11678
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
11679
|
+
*/
|
|
11680
|
+
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11705
11681
|
/**
|
|
11706
11682
|
* Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
|
|
11707
11683
|
*
|
|
@@ -15492,20 +15468,15 @@ declare namespace Office {
|
|
|
15492
15468
|
*/
|
|
15493
15469
|
getComposeTypeAsync(callback: (asyncResult: Office.AsyncResult<any>) => void): void;
|
|
15494
15470
|
/**
|
|
15495
|
-
* Gets initialization data passed when the add-in is activated by an actionable message.
|
|
15496
|
-
*
|
|
15497
|
-
* **Note**: This method is only supported by Outlook 2016 or later on Windows (Click-to-Run versions greater than 16.0.8413.1000)
|
|
15498
|
-
* and Outlook on the web for Microsoft 365.
|
|
15471
|
+
* 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}.
|
|
15499
15472
|
*
|
|
15500
15473
|
* @remarks
|
|
15501
|
-
* [Api set: Mailbox
|
|
15474
|
+
* [Api set: Mailbox 1.8]
|
|
15502
15475
|
*
|
|
15503
15476
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
15504
15477
|
*
|
|
15505
15478
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15506
15479
|
*
|
|
15507
|
-
* More information on {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in-from-actionable-message | actionable messages}.
|
|
15508
|
-
*
|
|
15509
15480
|
* @param options - An object literal that contains one or more of the following properties.
|
|
15510
15481
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
15511
15482
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
@@ -15513,32 +15484,23 @@ declare namespace Office {
|
|
|
15513
15484
|
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
15514
15485
|
* If there is no initialization context, the `asyncResult` object will contain
|
|
15515
15486
|
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
15516
|
-
*
|
|
15517
|
-
* @beta
|
|
15518
15487
|
*/
|
|
15519
15488
|
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
15520
15489
|
/**
|
|
15521
|
-
* Gets initialization data passed when the add-in is activated by an actionable message.
|
|
15522
|
-
*
|
|
15523
|
-
* **Note**: This method is only supported by Outlook 2016 or later on Windows (Click-to-Run versions greater than 16.0.8413.1000)
|
|
15524
|
-
* and Outlook on the web for Microsoft 365.
|
|
15490
|
+
* 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}.
|
|
15525
15491
|
*
|
|
15526
15492
|
* @remarks
|
|
15527
|
-
* [Api set: Mailbox
|
|
15493
|
+
* [Api set: Mailbox 1.8]
|
|
15528
15494
|
*
|
|
15529
15495
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
15530
15496
|
*
|
|
15531
15497
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15532
15498
|
*
|
|
15533
|
-
* More information on {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in-from-actionable-message | actionable messages}.
|
|
15534
|
-
*
|
|
15535
15499
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
15536
15500
|
* of type `Office.AsyncResult`.
|
|
15537
15501
|
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
15538
15502
|
* If there is no initialization context, the `asyncResult` object will contain
|
|
15539
15503
|
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
15540
|
-
*
|
|
15541
|
-
* @beta
|
|
15542
15504
|
*/
|
|
15543
15505
|
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
15544
15506
|
/**
|
|
@@ -16674,54 +16636,6 @@ declare namespace Office {
|
|
|
16674
16636
|
* an error code with the reason for the failure.
|
|
16675
16637
|
*/
|
|
16676
16638
|
getAttachmentContentAsync(attachmentId: string, callback?: (asyncResult: Office.AsyncResult<AttachmentContent>) => void): void;
|
|
16677
|
-
/**
|
|
16678
|
-
* Gets initialization data passed when the add-in is
|
|
16679
|
-
* {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in-from-actionable-message | activated by an actionable message}.
|
|
16680
|
-
*
|
|
16681
|
-
* **Note**: This method is only supported by Outlook 2016 or later on Windows (Click-to-Run versions greater than 16.0.8413.1000)
|
|
16682
|
-
* and Outlook on the web for Microsoft 365.
|
|
16683
|
-
*
|
|
16684
|
-
* @remarks
|
|
16685
|
-
* [Api set: Mailbox preview]
|
|
16686
|
-
*
|
|
16687
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
16688
|
-
*
|
|
16689
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
16690
|
-
*
|
|
16691
|
-
* @param options - An object literal that contains one or more of the following properties.
|
|
16692
|
-
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16693
|
-
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16694
|
-
* of type `Office.AsyncResult`.
|
|
16695
|
-
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
16696
|
-
* If there is no initialization context, the `asyncResult` object will contain
|
|
16697
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
16698
|
-
*
|
|
16699
|
-
* @beta
|
|
16700
|
-
*/
|
|
16701
|
-
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16702
|
-
/**
|
|
16703
|
-
* Gets initialization data passed when the add-in is
|
|
16704
|
-
* {@link https://docs.microsoft.com/outlook/actionable-messages/invoke-add-in-from-actionable-message | activated by an actionable message}.
|
|
16705
|
-
*
|
|
16706
|
-
* **Note**: This method is only supported by Outlook 2016 or later on Windows (Click-to-Run versions greater than 16.0.8413.1000)
|
|
16707
|
-
* and Outlook on the web for Microsoft 365.
|
|
16708
|
-
*
|
|
16709
|
-
* @remarks
|
|
16710
|
-
* [Api set: Mailbox preview]
|
|
16711
|
-
*
|
|
16712
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
16713
|
-
*
|
|
16714
|
-
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
16715
|
-
*
|
|
16716
|
-
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16717
|
-
* of type `Office.AsyncResult`.
|
|
16718
|
-
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
16719
|
-
* If there is no initialization context, the `asyncResult` object will contain
|
|
16720
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
16721
|
-
*
|
|
16722
|
-
* @beta
|
|
16723
|
-
*/
|
|
16724
|
-
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16725
16639
|
/**
|
|
16726
16640
|
* Gets the entities found in the selected item's body.
|
|
16727
16641
|
*
|
|
@@ -16821,6 +16735,42 @@ declare namespace Office {
|
|
|
16821
16735
|
* @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
|
|
16822
16736
|
*/
|
|
16823
16737
|
getFilteredEntitiesByName(name: string): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
|
|
16738
|
+
/**
|
|
16739
|
+
* 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}.
|
|
16740
|
+
*
|
|
16741
|
+
* @remarks
|
|
16742
|
+
* [Api set: Mailbox 1.8]
|
|
16743
|
+
*
|
|
16744
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
16745
|
+
*
|
|
16746
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
16747
|
+
*
|
|
16748
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
16749
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16750
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16751
|
+
* of type `Office.AsyncResult`.
|
|
16752
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
16753
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
16754
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
16755
|
+
*/
|
|
16756
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16757
|
+
/**
|
|
16758
|
+
* 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}.
|
|
16759
|
+
*
|
|
16760
|
+
* @remarks
|
|
16761
|
+
* [Api set: Mailbox 1.8]
|
|
16762
|
+
*
|
|
16763
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
16764
|
+
*
|
|
16765
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
16766
|
+
*
|
|
16767
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16768
|
+
* of type `Office.AsyncResult`.
|
|
16769
|
+
* On success, the initialization context data is provided in the `asyncResult.value` property as a string.
|
|
16770
|
+
* If there is no initialization context, the `asyncResult` object will contain
|
|
16771
|
+
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
16772
|
+
*/
|
|
16773
|
+
getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16824
16774
|
/**
|
|
16825
16775
|
* Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
|
|
16826
16776
|
*
|
|
@@ -17112,7 +17062,6 @@ declare namespace Office {
|
|
|
17112
17062
|
*
|
|
17113
17063
|
* **Important**: In modern Outlook on the web, the `NotificationMessageAction` object is available in Compose mode only.
|
|
17114
17064
|
*
|
|
17115
|
-
*
|
|
17116
17065
|
* @remarks
|
|
17117
17066
|
* [Api set: Mailbox 1.10]
|
|
17118
17067
|
*
|
|
@@ -17135,15 +17084,8 @@ declare namespace Office {
|
|
|
17135
17084
|
*/
|
|
17136
17085
|
commandId: string;
|
|
17137
17086
|
/**
|
|
17138
|
-
* Any JSON data the button needs to pass on.
|
|
17087
|
+
* Any JSON data the action button needs to pass on.
|
|
17139
17088
|
* This data can be retrieved by calling `item.getInitializationContextAsync`.
|
|
17140
|
-
*
|
|
17141
|
-
* **Important**: In Outlook on the web, the ability to retrieve `contextData` is not yet available.
|
|
17142
|
-
*
|
|
17143
|
-
* @remarks
|
|
17144
|
-
* [Api set: Mailbox preview]
|
|
17145
|
-
*
|
|
17146
|
-
* @beta
|
|
17147
17089
|
*/
|
|
17148
17090
|
contextData: any;
|
|
17149
17091
|
}
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.336",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "87ab8061017dcc6614e4e7b940e79730444f45ef6c14d97eceb57af7e39ee8f5",
|
|
49
49
|
"typeScriptVersion": "4.1"
|
|
50
50
|
}
|