@types/office-js-preview 1.0.264 → 1.0.268
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 +53 -45
- 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: 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-preview/index.d.ts
CHANGED
|
@@ -3926,7 +3926,7 @@ declare namespace Office {
|
|
|
3926
3926
|
* <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>
|
|
3927
3927
|
* <tr><td><strong> Excel </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf` </td><td> </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
|
|
3928
3928
|
* <tr><td><strong> PowerPoint </strong></td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td></tr>
|
|
3929
|
-
* <tr><td><strong> Word </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`
|
|
3929
|
+
* <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>
|
|
3930
3930
|
* </table>
|
|
3931
3931
|
*
|
|
3932
3932
|
* @param fileType The format in which the file will be returned
|
|
@@ -3961,7 +3961,7 @@ declare namespace Office {
|
|
|
3961
3961
|
* <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>
|
|
3962
3962
|
* <tr><td><strong> Excel </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf` </td><td> </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
|
|
3963
3963
|
* <tr><td><strong> PowerPoint </strong></td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td><td> `Compressed`, `Pdf` </td></tr>
|
|
3964
|
-
* <tr><td><strong> Word </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`
|
|
3964
|
+
* <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>
|
|
3965
3965
|
* </table>
|
|
3966
3966
|
*
|
|
3967
3967
|
* @param fileType The format in which the file will be returned
|
|
@@ -9713,13 +9713,11 @@ declare namespace Office {
|
|
|
9713
9713
|
* Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
|
|
9714
9714
|
*
|
|
9715
9715
|
* @remarks
|
|
9716
|
-
* [Api set: Mailbox
|
|
9716
|
+
* [Api set: Mailbox 1.11]
|
|
9717
9717
|
*
|
|
9718
9718
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
9719
9719
|
*
|
|
9720
9720
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
9721
|
-
*
|
|
9722
|
-
* @beta
|
|
9723
9721
|
*/
|
|
9724
9722
|
sessionData: SessionData;
|
|
9725
9723
|
/**
|
|
@@ -10526,6 +10524,9 @@ declare namespace Office {
|
|
|
10526
10524
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10527
10525
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10528
10526
|
*
|
|
10527
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10528
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10529
|
+
*
|
|
10529
10530
|
* **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
|
|
10530
10531
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10531
10532
|
* Until the item is synced, using the item ID will return an error.
|
|
@@ -10561,6 +10562,9 @@ declare namespace Office {
|
|
|
10561
10562
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10562
10563
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10563
10564
|
*
|
|
10565
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10566
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10567
|
+
*
|
|
10564
10568
|
* **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
|
|
10565
10569
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10566
10570
|
* Until the item is synced, using the item ID will return an error.
|
|
@@ -11964,6 +11968,8 @@ declare namespace Office {
|
|
|
11964
11968
|
*
|
|
11965
11969
|
* **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
|
|
11966
11970
|
*
|
|
11971
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11972
|
+
*
|
|
11967
11973
|
* **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
|
|
11968
11974
|
*
|
|
11969
11975
|
* @remarks
|
|
@@ -11999,6 +12005,8 @@ declare namespace Office {
|
|
|
11999
12005
|
*
|
|
12000
12006
|
* **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
|
|
12001
12007
|
*
|
|
12008
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
12009
|
+
*
|
|
12002
12010
|
* **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
|
|
12003
12011
|
*
|
|
12004
12012
|
* @remarks
|
|
@@ -12108,6 +12116,8 @@ declare namespace Office {
|
|
|
12108
12116
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
12109
12117
|
* (see the **Examples** section for a sample).
|
|
12110
12118
|
*
|
|
12119
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
12120
|
+
*
|
|
12111
12121
|
* @remarks
|
|
12112
12122
|
* [Api set: Mailbox 1.1]
|
|
12113
12123
|
*
|
|
@@ -12140,6 +12150,8 @@ declare namespace Office {
|
|
|
12140
12150
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
12141
12151
|
* (see the **Examples** section for a sample).
|
|
12142
12152
|
*
|
|
12153
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
12154
|
+
*
|
|
12143
12155
|
* @remarks
|
|
12144
12156
|
* [Api set: Mailbox 1.1]
|
|
12145
12157
|
*
|
|
@@ -12166,6 +12178,10 @@ declare namespace Office {
|
|
|
12166
12178
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
12167
12179
|
* (see the **Examples** section for a sample).
|
|
12168
12180
|
*
|
|
12181
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
12182
|
+
*
|
|
12183
|
+
* **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
|
|
12184
|
+
*
|
|
12169
12185
|
* @remarks
|
|
12170
12186
|
* [Api set: Mailbox 1.3]
|
|
12171
12187
|
*
|
|
@@ -12197,6 +12213,10 @@ declare namespace Office {
|
|
|
12197
12213
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
12198
12214
|
* (see the **Examples** section for a sample).
|
|
12199
12215
|
*
|
|
12216
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
12217
|
+
*
|
|
12218
|
+
* **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
|
|
12219
|
+
*
|
|
12200
12220
|
* @remarks
|
|
12201
12221
|
* [Api set: Mailbox 1.3]
|
|
12202
12222
|
*
|
|
@@ -12225,6 +12245,8 @@ declare namespace Office {
|
|
|
12225
12245
|
* When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
|
|
12226
12246
|
* (see the **Examples** section for a sample).
|
|
12227
12247
|
*
|
|
12248
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
12249
|
+
*
|
|
12228
12250
|
* @remarks
|
|
12229
12251
|
* [Api set: Mailbox 1.1]
|
|
12230
12252
|
*
|
|
@@ -12256,6 +12278,8 @@ declare namespace Office {
|
|
|
12256
12278
|
* When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
|
|
12257
12279
|
* (see the **Examples** section for a sample).
|
|
12258
12280
|
*
|
|
12281
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
12282
|
+
*
|
|
12259
12283
|
* @remarks
|
|
12260
12284
|
* [Api set: Mailbox 1.1]
|
|
12261
12285
|
*
|
|
@@ -14787,13 +14811,11 @@ declare namespace Office {
|
|
|
14787
14811
|
* Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
|
|
14788
14812
|
*
|
|
14789
14813
|
* @remarks
|
|
14790
|
-
* [Api set: Mailbox
|
|
14814
|
+
* [Api set: Mailbox 1.11]
|
|
14791
14815
|
*
|
|
14792
14816
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
14793
14817
|
*
|
|
14794
14818
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
14795
|
-
*
|
|
14796
|
-
* @beta
|
|
14797
14819
|
*/
|
|
14798
14820
|
sessionData: SessionData;
|
|
14799
14821
|
/**
|
|
@@ -15668,6 +15690,9 @@ declare namespace Office {
|
|
|
15668
15690
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
15669
15691
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
15670
15692
|
*
|
|
15693
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
15694
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
15695
|
+
*
|
|
15671
15696
|
* **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
|
|
15672
15697
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
15673
15698
|
* Until the item is synced, using the itemId will return an error.
|
|
@@ -15700,6 +15725,9 @@ declare namespace Office {
|
|
|
15700
15725
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
15701
15726
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
15702
15727
|
*
|
|
15728
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
15729
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
15730
|
+
*
|
|
15703
15731
|
* **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
|
|
15704
15732
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
15705
15733
|
* Until the item is synced, using the `itemId` will return an error.
|
|
@@ -18200,20 +18228,18 @@ declare namespace Office {
|
|
|
18200
18228
|
* Provides methods to manage an item's session data.
|
|
18201
18229
|
*
|
|
18202
18230
|
* @remarks
|
|
18203
|
-
* [Api set: Mailbox
|
|
18231
|
+
* [Api set: Mailbox 1.11]
|
|
18204
18232
|
*
|
|
18205
18233
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
18206
18234
|
*
|
|
18207
18235
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
18208
|
-
*
|
|
18209
|
-
* @beta
|
|
18210
18236
|
*/
|
|
18211
18237
|
interface SessionData {
|
|
18212
18238
|
/**
|
|
18213
18239
|
* Clears all session data key-value pairs.
|
|
18214
18240
|
*
|
|
18215
18241
|
* @remarks
|
|
18216
|
-
* [Api set: Mailbox
|
|
18242
|
+
* [Api set: Mailbox 1.11]
|
|
18217
18243
|
*
|
|
18218
18244
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
18219
18245
|
*
|
|
@@ -18223,15 +18249,13 @@ declare namespace Office {
|
|
|
18223
18249
|
* `asyncContext`: Developers can provide any object they wish to access in the callback method.
|
|
18224
18250
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
18225
18251
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
18226
|
-
*
|
|
18227
|
-
* @beta
|
|
18228
18252
|
*/
|
|
18229
18253
|
clearAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18230
18254
|
/**
|
|
18231
18255
|
* Clears all session data key-value pairs.
|
|
18232
18256
|
*
|
|
18233
18257
|
* @remarks
|
|
18234
|
-
* [Api set: Mailbox
|
|
18258
|
+
* [Api set: Mailbox 1.11]
|
|
18235
18259
|
*
|
|
18236
18260
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
18237
18261
|
*
|
|
@@ -18239,15 +18263,13 @@ declare namespace Office {
|
|
|
18239
18263
|
*
|
|
18240
18264
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
18241
18265
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
18242
|
-
*
|
|
18243
|
-
* @beta
|
|
18244
18266
|
*/
|
|
18245
18267
|
clearAsync(callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18246
18268
|
/**
|
|
18247
18269
|
* Gets all session data key-value pairs.
|
|
18248
18270
|
*
|
|
18249
18271
|
* @remarks
|
|
18250
|
-
* [Api set: Mailbox
|
|
18272
|
+
* [Api set: Mailbox 1.11]
|
|
18251
18273
|
*
|
|
18252
18274
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
18253
18275
|
*
|
|
@@ -18255,15 +18277,13 @@ declare namespace Office {
|
|
|
18255
18277
|
*
|
|
18256
18278
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
18257
18279
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
18258
|
-
*
|
|
18259
|
-
* @beta
|
|
18260
18280
|
*/
|
|
18261
18281
|
getAllAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
18262
18282
|
/**
|
|
18263
18283
|
* Gets the session data value of the specified key.
|
|
18264
18284
|
*
|
|
18265
18285
|
* @remarks
|
|
18266
|
-
* [Api set: Mailbox
|
|
18286
|
+
* [Api set: Mailbox 1.11]
|
|
18267
18287
|
*
|
|
18268
18288
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
18269
18289
|
*
|
|
@@ -18272,15 +18292,13 @@ declare namespace Office {
|
|
|
18272
18292
|
* @param name - The session data key.
|
|
18273
18293
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
18274
18294
|
* type `Office.AsyncResult`.
|
|
18275
|
-
*
|
|
18276
|
-
* @beta
|
|
18277
18295
|
*/
|
|
18278
18296
|
getAsync(name: string, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
18279
18297
|
/**
|
|
18280
18298
|
* Removes a session data key-value pair.
|
|
18281
18299
|
*
|
|
18282
18300
|
* @remarks
|
|
18283
|
-
* [Api set: Mailbox
|
|
18301
|
+
* [Api set: Mailbox 1.11]
|
|
18284
18302
|
*
|
|
18285
18303
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
18286
18304
|
*
|
|
@@ -18291,15 +18309,13 @@ declare namespace Office {
|
|
|
18291
18309
|
* `asyncContext`: Developers can provide any object they wish to access in the callback method.
|
|
18292
18310
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
18293
18311
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
18294
|
-
*
|
|
18295
|
-
* @beta
|
|
18296
18312
|
*/
|
|
18297
18313
|
removeAsync(name: string, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18298
18314
|
/**
|
|
18299
18315
|
* Removes a session data key-value pair.
|
|
18300
18316
|
*
|
|
18301
18317
|
* @remarks
|
|
18302
|
-
* [Api set: Mailbox
|
|
18318
|
+
* [Api set: Mailbox 1.11]
|
|
18303
18319
|
*
|
|
18304
18320
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
18305
18321
|
*
|
|
@@ -18308,15 +18324,13 @@ declare namespace Office {
|
|
|
18308
18324
|
* @param name - The session data key.
|
|
18309
18325
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
18310
18326
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
18311
|
-
*
|
|
18312
|
-
* @beta
|
|
18313
18327
|
*/
|
|
18314
18328
|
removeAsync(name: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18315
18329
|
/**
|
|
18316
18330
|
* Sets a session data key-value pair.
|
|
18317
18331
|
*
|
|
18318
18332
|
* @remarks
|
|
18319
|
-
* [Api set: Mailbox
|
|
18333
|
+
* [Api set: Mailbox 1.11]
|
|
18320
18334
|
*
|
|
18321
18335
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
18322
18336
|
*
|
|
@@ -18328,15 +18342,13 @@ declare namespace Office {
|
|
|
18328
18342
|
* `asyncContext`: Developers can provide any object they wish to access in the callback method.
|
|
18329
18343
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
18330
18344
|
* type `Office.AsyncResult`.
|
|
18331
|
-
*
|
|
18332
|
-
* @beta
|
|
18333
18345
|
*/
|
|
18334
18346
|
setAsync(name: string, value: string, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18335
18347
|
/**
|
|
18336
18348
|
* Sets a session data key-value pair.
|
|
18337
18349
|
*
|
|
18338
18350
|
* @remarks
|
|
18339
|
-
* [Api set: Mailbox
|
|
18351
|
+
* [Api set: Mailbox 1.11]
|
|
18340
18352
|
*
|
|
18341
18353
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
|
|
18342
18354
|
*
|
|
@@ -18346,8 +18358,6 @@ declare namespace Office {
|
|
|
18346
18358
|
* @param value - The session data value as a string.
|
|
18347
18359
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
18348
18360
|
* type `Office.AsyncResult`.
|
|
18349
|
-
*
|
|
18350
|
-
* @beta
|
|
18351
18361
|
*/
|
|
18352
18362
|
setAsync(name: string, value: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18353
18363
|
}
|
|
@@ -54522,7 +54532,7 @@ declare namespace Excel {
|
|
|
54522
54532
|
}): FunctionResult<T>;
|
|
54523
54533
|
/**
|
|
54524
54534
|
* 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.)
|
|
54525
|
-
* Whereas the original FunctionResult<T
|
|
54535
|
+
* 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.
|
|
54526
54536
|
*/
|
|
54527
54537
|
toJSON(): Interfaces.FunctionResultData<T>;
|
|
54528
54538
|
}
|
|
@@ -82775,7 +82785,10 @@ declare namespace Word {
|
|
|
82775
82785
|
*/
|
|
82776
82786
|
readonly lists: Word.ListCollection;
|
|
82777
82787
|
/**
|
|
82778
|
-
*
|
|
82788
|
+
* Gets the collection of paragraph objects in the content control. Read-only.
|
|
82789
|
+
*
|
|
82790
|
+
* **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this content control are not returned.
|
|
82791
|
+
* From requirement set 1.3, paragraphs in such tables are also returned.
|
|
82779
82792
|
*
|
|
82780
82793
|
* @remarks
|
|
82781
82794
|
* [Api set: WordApi 1.1]
|
|
@@ -86415,6 +86428,9 @@ declare namespace Word {
|
|
|
86415
86428
|
/**
|
|
86416
86429
|
* Gets the parent body of the range. Read-only.
|
|
86417
86430
|
*
|
|
86431
|
+
* **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this range are not returned.
|
|
86432
|
+
* From requirement set 1.3, paragraphs in such tables are also returned.
|
|
86433
|
+
*
|
|
86418
86434
|
* @remarks
|
|
86419
86435
|
* [Api set: WordApi 1.3]
|
|
86420
86436
|
*/
|
|
@@ -96256,14 +96272,6 @@ declare namespace Word {
|
|
|
96256
96272
|
/**
|
|
96257
96273
|
* 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.
|
|
96258
96274
|
* @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.
|
|
96259
|
-
*
|
|
96260
|
-
* @remarks
|
|
96261
|
-
*
|
|
96262
|
-
* 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:
|
|
96263
|
-
*
|
|
96264
|
-
* run<T>(object: OfficeExtension.ClientObject, batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
96265
|
-
*
|
|
96266
|
-
* run<T>(objects: OfficeExtension.ClientObject[], batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
96267
96275
|
*/
|
|
96268
96276
|
function run<T>(batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
96269
96277
|
}
|
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.268",
|
|
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",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
43
|
+
"typesPublisherContentHash": "13b629c2f7619ef0363475e796408b1bafd23764e3b81c2870e1deafeb3d1707",
|
|
44
44
|
"typeScriptVersion": "3.7"
|
|
45
45
|
}
|