@types/office-js 1.0.215 → 1.0.219
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 +205 -14
- 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: Tue, 16 Nov 2021 23:01:27 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
|
@@ -3807,7 +3807,7 @@ declare namespace Office {
|
|
|
3807
3807
|
* <tr><th> </th><th> Office on Windows </th><th> Office on the web </th><th> Office on iPad </th><th> Office on Mac </th></tr>
|
|
3808
3808
|
* <tr><td><strong> Excel </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf` </td><td> </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
|
|
3809
3809
|
* <tr><td><strong> PowerPoint </strong></td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td></tr>
|
|
3810
|
-
* <tr><td><strong> Word </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`
|
|
3810
|
+
* <tr><td><strong> Word </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
|
|
3811
3811
|
* </table>
|
|
3812
3812
|
*
|
|
3813
3813
|
* @param fileType The format in which the file will be returned
|
|
@@ -3842,7 +3842,7 @@ declare namespace Office {
|
|
|
3842
3842
|
* <tr><th> </th><th> Office on Windows </th><th> Office on the web </th><th> Office on iPad </th><th> Office on Mac </th></tr>
|
|
3843
3843
|
* <tr><td><strong> Excel </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf` </td><td> </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
|
|
3844
3844
|
* <tr><td><strong> PowerPoint </strong></td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td></tr>
|
|
3845
|
-
* <tr><td><strong> Word </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`
|
|
3845
|
+
* <tr><td><strong> Word </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
|
|
3846
3846
|
* </table>
|
|
3847
3847
|
*
|
|
3848
3848
|
* @param fileType The format in which the file will be returned
|
|
@@ -9503,6 +9503,17 @@ declare namespace Office {
|
|
|
9503
9503
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
9504
9504
|
*/
|
|
9505
9505
|
requiredAttendees: Recipients;
|
|
9506
|
+
/**
|
|
9507
|
+
* Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
|
|
9508
|
+
*
|
|
9509
|
+
* @remarks
|
|
9510
|
+
* [Api set: Mailbox 1.11]
|
|
9511
|
+
*
|
|
9512
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
9513
|
+
*
|
|
9514
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
9515
|
+
*/
|
|
9516
|
+
sessionData: SessionData;
|
|
9506
9517
|
/**
|
|
9507
9518
|
* Gets the id of the series that an instance belongs to.
|
|
9508
9519
|
*
|
|
@@ -10279,6 +10290,9 @@ declare namespace Office {
|
|
|
10279
10290
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10280
10291
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10281
10292
|
*
|
|
10293
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10294
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10295
|
+
*
|
|
10282
10296
|
* **Note**: If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware
|
|
10283
10297
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10284
10298
|
* Until the item is synced, using the item ID will return an error.
|
|
@@ -10314,6 +10328,9 @@ declare namespace Office {
|
|
|
10314
10328
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10315
10329
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10316
10330
|
*
|
|
10331
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10332
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10333
|
+
*
|
|
10317
10334
|
* **Note**: If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware that
|
|
10318
10335
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10319
10336
|
* Until the item is synced, using the item ID will return an error.
|
|
@@ -11645,6 +11662,8 @@ declare namespace Office {
|
|
|
11645
11662
|
*
|
|
11646
11663
|
* **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
|
|
11647
11664
|
*
|
|
11665
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11666
|
+
*
|
|
11648
11667
|
* **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
|
|
11649
11668
|
*
|
|
11650
11669
|
* @remarks
|
|
@@ -11680,6 +11699,8 @@ declare namespace Office {
|
|
|
11680
11699
|
*
|
|
11681
11700
|
* **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
|
|
11682
11701
|
*
|
|
11702
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11703
|
+
*
|
|
11683
11704
|
* **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
|
|
11684
11705
|
*
|
|
11685
11706
|
* @remarks
|
|
@@ -11789,6 +11810,8 @@ declare namespace Office {
|
|
|
11789
11810
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11790
11811
|
* (see the **Examples** section for a sample).
|
|
11791
11812
|
*
|
|
11813
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11814
|
+
*
|
|
11792
11815
|
* @remarks
|
|
11793
11816
|
* [Api set: Mailbox 1.1]
|
|
11794
11817
|
*
|
|
@@ -11821,6 +11844,8 @@ declare namespace Office {
|
|
|
11821
11844
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11822
11845
|
* (see the **Examples** section for a sample).
|
|
11823
11846
|
*
|
|
11847
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11848
|
+
*
|
|
11824
11849
|
* @remarks
|
|
11825
11850
|
* [Api set: Mailbox 1.1]
|
|
11826
11851
|
*
|
|
@@ -11847,13 +11872,17 @@ declare namespace Office {
|
|
|
11847
11872
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11848
11873
|
* (see the **Examples** section for a sample).
|
|
11849
11874
|
*
|
|
11875
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11876
|
+
*
|
|
11877
|
+
* **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
|
|
11878
|
+
*
|
|
11850
11879
|
* @remarks
|
|
11851
11880
|
* [Api set: Mailbox 1.3]
|
|
11852
11881
|
*
|
|
11853
11882
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
11854
11883
|
*
|
|
11855
11884
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
11856
|
-
*
|
|
11885
|
+
*
|
|
11857
11886
|
* **Errors**:
|
|
11858
11887
|
*
|
|
11859
11888
|
* - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
|
|
@@ -11878,13 +11907,17 @@ declare namespace Office {
|
|
|
11878
11907
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11879
11908
|
* (see the **Examples** section for a sample).
|
|
11880
11909
|
*
|
|
11910
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11911
|
+
*
|
|
11912
|
+
* **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
|
|
11913
|
+
*
|
|
11881
11914
|
* @remarks
|
|
11882
11915
|
* [Api set: Mailbox 1.3]
|
|
11883
11916
|
*
|
|
11884
11917
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
11885
11918
|
*
|
|
11886
11919
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
11887
|
-
*
|
|
11920
|
+
*
|
|
11888
11921
|
* **Errors**:
|
|
11889
11922
|
*
|
|
11890
11923
|
* - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
|
|
@@ -11906,6 +11939,8 @@ declare namespace Office {
|
|
|
11906
11939
|
* When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11907
11940
|
* (see the **Examples** section for a sample).
|
|
11908
11941
|
*
|
|
11942
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11943
|
+
*
|
|
11909
11944
|
* @remarks
|
|
11910
11945
|
* [Api set: Mailbox 1.1]
|
|
11911
11946
|
*
|
|
@@ -11937,6 +11972,8 @@ declare namespace Office {
|
|
|
11937
11972
|
* When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11938
11973
|
* (see the **Examples** section for a sample).
|
|
11939
11974
|
*
|
|
11975
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11976
|
+
*
|
|
11940
11977
|
* @remarks
|
|
11941
11978
|
* [Api set: Mailbox 1.1]
|
|
11942
11979
|
*
|
|
@@ -14343,6 +14380,17 @@ declare namespace Office {
|
|
|
14343
14380
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
14344
14381
|
*/
|
|
14345
14382
|
notificationMessages: NotificationMessages;
|
|
14383
|
+
/**
|
|
14384
|
+
* Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
|
|
14385
|
+
*
|
|
14386
|
+
* @remarks
|
|
14387
|
+
* [Api set: Mailbox 1.11]
|
|
14388
|
+
*
|
|
14389
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
14390
|
+
*
|
|
14391
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
14392
|
+
*/
|
|
14393
|
+
sessionData: SessionData;
|
|
14346
14394
|
/**
|
|
14347
14395
|
* Gets the ID of the series that an instance belongs to.
|
|
14348
14396
|
*
|
|
@@ -15167,6 +15215,9 @@ declare namespace Office {
|
|
|
15167
15215
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
15168
15216
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
15169
15217
|
*
|
|
15218
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
15219
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
15220
|
+
*
|
|
15170
15221
|
* **Note**: If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware
|
|
15171
15222
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
15172
15223
|
* Until the item is synced, using the itemId will return an error.
|
|
@@ -15199,6 +15250,9 @@ declare namespace Office {
|
|
|
15199
15250
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
15200
15251
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
15201
15252
|
*
|
|
15253
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
15254
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
15255
|
+
*
|
|
15202
15256
|
* **Note**: If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware
|
|
15203
15257
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
15204
15258
|
* Until the item is synced, using the `itemId` will return an error.
|
|
@@ -17417,6 +17471,143 @@ declare namespace Office {
|
|
|
17417
17471
|
*/
|
|
17418
17472
|
setStartTime(time: string): void;
|
|
17419
17473
|
}
|
|
17474
|
+
/**
|
|
17475
|
+
* Provides methods to manage an item's session data.
|
|
17476
|
+
*
|
|
17477
|
+
* @remarks
|
|
17478
|
+
* [Api set: Mailbox 1.11]
|
|
17479
|
+
*
|
|
17480
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
17481
|
+
*
|
|
17482
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17483
|
+
*/
|
|
17484
|
+
interface SessionData {
|
|
17485
|
+
/**
|
|
17486
|
+
* Clears all session data key-value pairs.
|
|
17487
|
+
*
|
|
17488
|
+
* @remarks
|
|
17489
|
+
* [Api set: Mailbox 1.11]
|
|
17490
|
+
*
|
|
17491
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
17492
|
+
*
|
|
17493
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17494
|
+
*
|
|
17495
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
17496
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback method.
|
|
17497
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
17498
|
+
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
17499
|
+
*/
|
|
17500
|
+
clearAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17501
|
+
/**
|
|
17502
|
+
* Clears all session data key-value pairs.
|
|
17503
|
+
*
|
|
17504
|
+
* @remarks
|
|
17505
|
+
* [Api set: Mailbox 1.11]
|
|
17506
|
+
*
|
|
17507
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
17508
|
+
*
|
|
17509
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17510
|
+
*
|
|
17511
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
17512
|
+
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
17513
|
+
*/
|
|
17514
|
+
clearAsync(callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17515
|
+
/**
|
|
17516
|
+
* Gets all session data key-value pairs.
|
|
17517
|
+
*
|
|
17518
|
+
* @remarks
|
|
17519
|
+
* [Api set: Mailbox 1.11]
|
|
17520
|
+
*
|
|
17521
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
17522
|
+
*
|
|
17523
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17524
|
+
*
|
|
17525
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
17526
|
+
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
17527
|
+
*/
|
|
17528
|
+
getAllAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17529
|
+
/**
|
|
17530
|
+
* Gets the session data value of the specified key.
|
|
17531
|
+
*
|
|
17532
|
+
* @remarks
|
|
17533
|
+
* [Api set: Mailbox 1.11]
|
|
17534
|
+
*
|
|
17535
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
17536
|
+
*
|
|
17537
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17538
|
+
*
|
|
17539
|
+
* @param name - The session data key.
|
|
17540
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
17541
|
+
* type `Office.AsyncResult`.
|
|
17542
|
+
*/
|
|
17543
|
+
getAsync(name: string, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
17544
|
+
/**
|
|
17545
|
+
* Removes a session data key-value pair.
|
|
17546
|
+
*
|
|
17547
|
+
* @remarks
|
|
17548
|
+
* [Api set: Mailbox 1.11]
|
|
17549
|
+
*
|
|
17550
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
17551
|
+
*
|
|
17552
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17553
|
+
*
|
|
17554
|
+
* @param name - The session data key.
|
|
17555
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
17556
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback method.
|
|
17557
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
17558
|
+
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
17559
|
+
*/
|
|
17560
|
+
removeAsync(name: string, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17561
|
+
/**
|
|
17562
|
+
* Removes a session data key-value pair.
|
|
17563
|
+
*
|
|
17564
|
+
* @remarks
|
|
17565
|
+
* [Api set: Mailbox 1.11]
|
|
17566
|
+
*
|
|
17567
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
17568
|
+
*
|
|
17569
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17570
|
+
*
|
|
17571
|
+
* @param name - The session data key.
|
|
17572
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
17573
|
+
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
17574
|
+
*/
|
|
17575
|
+
removeAsync(name: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17576
|
+
/**
|
|
17577
|
+
* Sets a session data key-value pair.
|
|
17578
|
+
*
|
|
17579
|
+
* @remarks
|
|
17580
|
+
* [Api set: Mailbox 1.11]
|
|
17581
|
+
*
|
|
17582
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
17583
|
+
*
|
|
17584
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17585
|
+
|
|
17586
|
+
* @param name - The session data key.
|
|
17587
|
+
* @param value - The session data value as a string.
|
|
17588
|
+
* @param options - An object literal that contains one or more of the following properties.
|
|
17589
|
+
* `asyncContext`: Developers can provide any object they wish to access in the callback method.
|
|
17590
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
17591
|
+
* type `Office.AsyncResult`.
|
|
17592
|
+
*/
|
|
17593
|
+
setAsync(name: string, value: string, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17594
|
+
/**
|
|
17595
|
+
* Sets a session data key-value pair.
|
|
17596
|
+
*
|
|
17597
|
+
* @remarks
|
|
17598
|
+
* [Api set: Mailbox 1.11]
|
|
17599
|
+
*
|
|
17600
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
17601
|
+
*
|
|
17602
|
+
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
17603
|
+
|
|
17604
|
+
* @param name - The session data key.
|
|
17605
|
+
* @param value - The session data value as a string.
|
|
17606
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
17607
|
+
* type `Office.AsyncResult`.
|
|
17608
|
+
*/
|
|
17609
|
+
setAsync(name: string, value: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17610
|
+
}
|
|
17420
17611
|
/**
|
|
17421
17612
|
* Represents the properties of an appointment or message in a shared folder.
|
|
17422
17613
|
*
|
|
@@ -48446,7 +48637,7 @@ declare namespace Excel {
|
|
|
48446
48637
|
}): FunctionResult<T>;
|
|
48447
48638
|
/**
|
|
48448
48639
|
* Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
|
|
48449
|
-
* Whereas the original FunctionResult<T
|
|
48640
|
+
* Whereas the original `FunctionResult<T>` object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Interfaces.FunctionResultData<T>`) that contains shallow copies of any loaded child properties from the original object.
|
|
48450
48641
|
*/
|
|
48451
48642
|
toJSON(): Interfaces.FunctionResultData<T>;
|
|
48452
48643
|
}
|
|
@@ -52207,7 +52398,9 @@ declare namespace Excel {
|
|
|
52207
52398
|
accessDenied = "AccessDenied",
|
|
52208
52399
|
apiNotFound = "ApiNotFound",
|
|
52209
52400
|
conflict = "Conflict",
|
|
52401
|
+
emptyChartSeries = "EmptyChartSeries",
|
|
52210
52402
|
filteredRangeConflict = "FilteredRangeConflict",
|
|
52403
|
+
formulaLengthExceedsLimit = "FormulaLengthExceedsLimit",
|
|
52211
52404
|
generalException = "GeneralException",
|
|
52212
52405
|
inactiveWorkbook = "InactiveWorkbook",
|
|
52213
52406
|
insertDeleteConflict = "InsertDeleteConflict",
|
|
@@ -74762,7 +74955,10 @@ declare namespace Word {
|
|
|
74762
74955
|
*/
|
|
74763
74956
|
readonly lists: Word.ListCollection;
|
|
74764
74957
|
/**
|
|
74765
|
-
*
|
|
74958
|
+
* Gets the collection of paragraph objects in the content control. Read-only.
|
|
74959
|
+
*
|
|
74960
|
+
* **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this content control are not returned.
|
|
74961
|
+
* From requirement set 1.3, paragraphs in such tables are also returned.
|
|
74766
74962
|
*
|
|
74767
74963
|
* @remarks
|
|
74768
74964
|
* [Api set: WordApi 1.1]
|
|
@@ -77514,6 +77710,9 @@ declare namespace Word {
|
|
|
77514
77710
|
/**
|
|
77515
77711
|
* Gets the collection of paragraph objects in the range. Read-only.
|
|
77516
77712
|
*
|
|
77713
|
+
* **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this range are not returned.
|
|
77714
|
+
* From requirement set 1.3, paragraphs in such tables are also returned.
|
|
77715
|
+
*
|
|
77517
77716
|
* @remarks
|
|
77518
77717
|
* [Api set: WordApi 1.1]
|
|
77519
77718
|
*/
|
|
@@ -86203,14 +86402,6 @@ declare namespace Word {
|
|
|
86203
86402
|
/**
|
|
86204
86403
|
* Executes a batch script that performs actions on the Word object model, using a new RequestContext. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
|
|
86205
86404
|
* @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the RequestContext is required to get access to the Word object model from the add-in.
|
|
86206
|
-
*
|
|
86207
|
-
* @remarks
|
|
86208
|
-
*
|
|
86209
|
-
* In addition to this signature, the method also has the following signatures, which allow you to resume using the request context of previously created objects:
|
|
86210
|
-
*
|
|
86211
|
-
* run<T>(object: OfficeExtension.ClientObject, batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
86212
|
-
*
|
|
86213
|
-
* run<T>(objects: OfficeExtension.ClientObject[], batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
86214
86405
|
*/
|
|
86215
86406
|
function run<T>(batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
86216
86407
|
}
|
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.219",
|
|
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",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
43
|
+
"typesPublisherContentHash": "2ffcb9a8db922b880292475e645746b3bf495bbf1ef83a48e5d4949bda83aed2",
|
|
44
44
|
"typeScriptVersion": "3.7"
|
|
45
45
|
}
|