@types/office-js 1.0.217 → 1.0.221
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 +65 -7
- office-js/package.json +3 -3
office-js/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Office.js (https://github.com/OfficeD
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 19 Nov 2021 19:31:13 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
|
@@ -971,10 +971,24 @@ declare namespace Office {
|
|
|
971
971
|
*
|
|
972
972
|
* @param eventType Specifies the type of event to add. This must be `Office.EventType.DialogParentMessageReceived`.
|
|
973
973
|
* @param handler The event handler function to add, whose only parameter is of type {@link Office.DialogParentMessageReceivedEventArgs}.
|
|
974
|
-
* @param options
|
|
974
|
+
* @param options Provides an option for preserving context data of any type, unchanged, for use in a callback.
|
|
975
975
|
* @param callback Optional. A function that is invoked when the handler registration returns, whose only parameter is of type {@link Office.AsyncResult}.
|
|
976
976
|
*/
|
|
977
|
-
addHandlerAsync(eventType: Office.EventType, handler: (result: DialogParentMessageReceivedEventArgs) => void, options
|
|
977
|
+
addHandlerAsync(eventType: Office.EventType, handler: (result: DialogParentMessageReceivedEventArgs) => void, options: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
|
|
978
|
+
/**
|
|
979
|
+
* Adds an event handler to the object using the specified event type.
|
|
980
|
+
*
|
|
981
|
+
* @remarks
|
|
982
|
+
*
|
|
983
|
+
* **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/dialog-api-requirement-sets | DialogApi 1.2}
|
|
984
|
+
*
|
|
985
|
+
* You can add multiple event handlers for the specified event type as long as the name of each event handler function is unique.
|
|
986
|
+
*
|
|
987
|
+
* @param eventType Specifies the type of event to add. This must be `Office.EventType.DialogParentMessageReceived`.
|
|
988
|
+
* @param handler The event handler function to add, whose only parameter is of type {@link Office.DialogParentMessageReceivedEventArgs}.
|
|
989
|
+
* @param callback Optional. A function that is invoked when the handler registration returns, whose only parameter is of type {@link Office.AsyncResult}.
|
|
990
|
+
*/
|
|
991
|
+
addHandlerAsync(eventType: Office.EventType, handler: (result: DialogParentMessageReceivedEventArgs) => void, callback?: (result: AsyncResult<void>) => void): void;
|
|
978
992
|
/**
|
|
979
993
|
* Displays a dialog to show or collect information from the user or to facilitate Web navigation.
|
|
980
994
|
*
|
|
@@ -3807,7 +3821,7 @@ declare namespace Office {
|
|
|
3807
3821
|
* <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
3822
|
* <tr><td><strong> Excel </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf` </td><td> </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
|
|
3809
3823
|
* <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`
|
|
3824
|
+
* <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
3825
|
* </table>
|
|
3812
3826
|
*
|
|
3813
3827
|
* @param fileType The format in which the file will be returned
|
|
@@ -3842,7 +3856,7 @@ declare namespace Office {
|
|
|
3842
3856
|
* <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
3857
|
* <tr><td><strong> Excel </strong></td><td> `Compressed`, `Pdf`, `Text` </td><td> `Compressed`, `Pdf` </td><td> </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
|
|
3844
3858
|
* <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`
|
|
3859
|
+
* <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
3860
|
* </table>
|
|
3847
3861
|
*
|
|
3848
3862
|
* @param fileType The format in which the file will be returned
|
|
@@ -9506,6 +9520,8 @@ declare namespace Office {
|
|
|
9506
9520
|
/**
|
|
9507
9521
|
* Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
|
|
9508
9522
|
*
|
|
9523
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
9524
|
+
*
|
|
9509
9525
|
* @remarks
|
|
9510
9526
|
* [Api set: Mailbox 1.11]
|
|
9511
9527
|
*
|
|
@@ -10290,6 +10306,9 @@ declare namespace Office {
|
|
|
10290
10306
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10291
10307
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10292
10308
|
*
|
|
10309
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10310
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10311
|
+
*
|
|
10293
10312
|
* **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
|
|
10294
10313
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10295
10314
|
* Until the item is synced, using the item ID will return an error.
|
|
@@ -10325,6 +10344,9 @@ declare namespace Office {
|
|
|
10325
10344
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10326
10345
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10327
10346
|
*
|
|
10347
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10348
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10349
|
+
*
|
|
10328
10350
|
* **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
|
|
10329
10351
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10330
10352
|
* Until the item is synced, using the item ID will return an error.
|
|
@@ -11656,6 +11678,8 @@ declare namespace Office {
|
|
|
11656
11678
|
*
|
|
11657
11679
|
* **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
|
|
11658
11680
|
*
|
|
11681
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11682
|
+
*
|
|
11659
11683
|
* **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
|
|
11660
11684
|
*
|
|
11661
11685
|
* @remarks
|
|
@@ -11691,6 +11715,8 @@ declare namespace Office {
|
|
|
11691
11715
|
*
|
|
11692
11716
|
* **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
|
|
11693
11717
|
*
|
|
11718
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11719
|
+
*
|
|
11694
11720
|
* **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
|
|
11695
11721
|
*
|
|
11696
11722
|
* @remarks
|
|
@@ -11800,6 +11826,8 @@ declare namespace Office {
|
|
|
11800
11826
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11801
11827
|
* (see the **Examples** section for a sample).
|
|
11802
11828
|
*
|
|
11829
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11830
|
+
*
|
|
11803
11831
|
* @remarks
|
|
11804
11832
|
* [Api set: Mailbox 1.1]
|
|
11805
11833
|
*
|
|
@@ -11832,6 +11860,8 @@ declare namespace Office {
|
|
|
11832
11860
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11833
11861
|
* (see the **Examples** section for a sample).
|
|
11834
11862
|
*
|
|
11863
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11864
|
+
*
|
|
11835
11865
|
* @remarks
|
|
11836
11866
|
* [Api set: Mailbox 1.1]
|
|
11837
11867
|
*
|
|
@@ -11858,13 +11888,17 @@ declare namespace Office {
|
|
|
11858
11888
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11859
11889
|
* (see the **Examples** section for a sample).
|
|
11860
11890
|
*
|
|
11891
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11892
|
+
*
|
|
11893
|
+
* **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
|
|
11894
|
+
*
|
|
11861
11895
|
* @remarks
|
|
11862
11896
|
* [Api set: Mailbox 1.3]
|
|
11863
11897
|
*
|
|
11864
11898
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
11865
11899
|
*
|
|
11866
11900
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
11867
|
-
*
|
|
11901
|
+
*
|
|
11868
11902
|
* **Errors**:
|
|
11869
11903
|
*
|
|
11870
11904
|
* - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
|
|
@@ -11889,13 +11923,17 @@ declare namespace Office {
|
|
|
11889
11923
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11890
11924
|
* (see the **Examples** section for a sample).
|
|
11891
11925
|
*
|
|
11926
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11927
|
+
*
|
|
11928
|
+
* **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
|
|
11929
|
+
*
|
|
11892
11930
|
* @remarks
|
|
11893
11931
|
* [Api set: Mailbox 1.3]
|
|
11894
11932
|
*
|
|
11895
11933
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
11896
11934
|
*
|
|
11897
11935
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
11898
|
-
*
|
|
11936
|
+
*
|
|
11899
11937
|
* **Errors**:
|
|
11900
11938
|
*
|
|
11901
11939
|
* - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
|
|
@@ -11917,6 +11955,8 @@ declare namespace Office {
|
|
|
11917
11955
|
* When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11918
11956
|
* (see the **Examples** section for a sample).
|
|
11919
11957
|
*
|
|
11958
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11959
|
+
*
|
|
11920
11960
|
* @remarks
|
|
11921
11961
|
* [Api set: Mailbox 1.1]
|
|
11922
11962
|
*
|
|
@@ -11948,6 +11988,8 @@ declare namespace Office {
|
|
|
11948
11988
|
* When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11949
11989
|
* (see the **Examples** section for a sample).
|
|
11950
11990
|
*
|
|
11991
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11992
|
+
*
|
|
11951
11993
|
* @remarks
|
|
11952
11994
|
* [Api set: Mailbox 1.1]
|
|
11953
11995
|
*
|
|
@@ -14357,6 +14399,8 @@ declare namespace Office {
|
|
|
14357
14399
|
/**
|
|
14358
14400
|
* Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
|
|
14359
14401
|
*
|
|
14402
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
14403
|
+
*
|
|
14360
14404
|
* @remarks
|
|
14361
14405
|
* [Api set: Mailbox 1.11]
|
|
14362
14406
|
*
|
|
@@ -15189,6 +15233,9 @@ declare namespace Office {
|
|
|
15189
15233
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
15190
15234
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
15191
15235
|
*
|
|
15236
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
15237
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
15238
|
+
*
|
|
15192
15239
|
* **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
|
|
15193
15240
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
15194
15241
|
* Until the item is synced, using the itemId will return an error.
|
|
@@ -15221,6 +15268,9 @@ declare namespace Office {
|
|
|
15221
15268
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
15222
15269
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
15223
15270
|
*
|
|
15271
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
15272
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
15273
|
+
*
|
|
15224
15274
|
* **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
|
|
15225
15275
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
15226
15276
|
* Until the item is synced, using the `itemId` will return an error.
|
|
@@ -17440,7 +17490,9 @@ declare namespace Office {
|
|
|
17440
17490
|
setStartTime(time: string): void;
|
|
17441
17491
|
}
|
|
17442
17492
|
/**
|
|
17443
|
-
* Provides methods to
|
|
17493
|
+
* Provides methods to manage an item's session data.
|
|
17494
|
+
*
|
|
17495
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
17444
17496
|
*
|
|
17445
17497
|
* @remarks
|
|
17446
17498
|
* [Api set: Mailbox 1.11]
|
|
@@ -17544,6 +17596,8 @@ declare namespace Office {
|
|
|
17544
17596
|
/**
|
|
17545
17597
|
* Sets a session data key-value pair.
|
|
17546
17598
|
*
|
|
17599
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
17600
|
+
*
|
|
17547
17601
|
* @remarks
|
|
17548
17602
|
* [Api set: Mailbox 1.11]
|
|
17549
17603
|
*
|
|
@@ -17562,6 +17616,8 @@ declare namespace Office {
|
|
|
17562
17616
|
/**
|
|
17563
17617
|
* Sets a session data key-value pair.
|
|
17564
17618
|
*
|
|
17619
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
17620
|
+
*
|
|
17565
17621
|
* @remarks
|
|
17566
17622
|
* [Api set: Mailbox 1.11]
|
|
17567
17623
|
*
|
|
@@ -52366,7 +52422,9 @@ declare namespace Excel {
|
|
|
52366
52422
|
accessDenied = "AccessDenied",
|
|
52367
52423
|
apiNotFound = "ApiNotFound",
|
|
52368
52424
|
conflict = "Conflict",
|
|
52425
|
+
emptyChartSeries = "EmptyChartSeries",
|
|
52369
52426
|
filteredRangeConflict = "FilteredRangeConflict",
|
|
52427
|
+
formulaLengthExceedsLimit = "FormulaLengthExceedsLimit",
|
|
52370
52428
|
generalException = "GeneralException",
|
|
52371
52429
|
inactiveWorkbook = "InactiveWorkbook",
|
|
52372
52430
|
insertDeleteConflict = "InsertDeleteConflict",
|
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.221",
|
|
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": "
|
|
44
|
-
"typeScriptVersion": "3.
|
|
43
|
+
"typesPublisherContentHash": "7b1d022223980ac6cde4ad253c968d2d92454af5352e861b15a7bda2525bfc2c",
|
|
44
|
+
"typeScriptVersion": "3.8"
|
|
45
45
|
}
|