@types/office-js 1.0.216 → 1.0.220
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 +57 -15
- 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: Wed, 17 Nov 2021 23:01:24 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
|
|
@@ -9506,6 +9506,8 @@ declare namespace Office {
|
|
|
9506
9506
|
/**
|
|
9507
9507
|
* Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
|
|
9508
9508
|
*
|
|
9509
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
9510
|
+
*
|
|
9509
9511
|
* @remarks
|
|
9510
9512
|
* [Api set: Mailbox 1.11]
|
|
9511
9513
|
*
|
|
@@ -10290,6 +10292,9 @@ declare namespace Office {
|
|
|
10290
10292
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10291
10293
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10292
10294
|
*
|
|
10295
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10296
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10297
|
+
*
|
|
10293
10298
|
* **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
10299
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10295
10300
|
* Until the item is synced, using the item ID will return an error.
|
|
@@ -10325,6 +10330,9 @@ declare namespace Office {
|
|
|
10325
10330
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10326
10331
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10327
10332
|
*
|
|
10333
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10334
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10335
|
+
*
|
|
10328
10336
|
* **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
10337
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10330
10338
|
* Until the item is synced, using the item ID will return an error.
|
|
@@ -11656,6 +11664,8 @@ declare namespace Office {
|
|
|
11656
11664
|
*
|
|
11657
11665
|
* **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
|
|
11658
11666
|
*
|
|
11667
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11668
|
+
*
|
|
11659
11669
|
* **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
|
|
11660
11670
|
*
|
|
11661
11671
|
* @remarks
|
|
@@ -11691,6 +11701,8 @@ declare namespace Office {
|
|
|
11691
11701
|
*
|
|
11692
11702
|
* **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
|
|
11693
11703
|
*
|
|
11704
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11705
|
+
*
|
|
11694
11706
|
* **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
|
|
11695
11707
|
*
|
|
11696
11708
|
* @remarks
|
|
@@ -11800,6 +11812,8 @@ declare namespace Office {
|
|
|
11800
11812
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11801
11813
|
* (see the **Examples** section for a sample).
|
|
11802
11814
|
*
|
|
11815
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11816
|
+
*
|
|
11803
11817
|
* @remarks
|
|
11804
11818
|
* [Api set: Mailbox 1.1]
|
|
11805
11819
|
*
|
|
@@ -11832,6 +11846,8 @@ declare namespace Office {
|
|
|
11832
11846
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11833
11847
|
* (see the **Examples** section for a sample).
|
|
11834
11848
|
*
|
|
11849
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11850
|
+
*
|
|
11835
11851
|
* @remarks
|
|
11836
11852
|
* [Api set: Mailbox 1.1]
|
|
11837
11853
|
*
|
|
@@ -11858,13 +11874,17 @@ declare namespace Office {
|
|
|
11858
11874
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11859
11875
|
* (see the **Examples** section for a sample).
|
|
11860
11876
|
*
|
|
11877
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11878
|
+
*
|
|
11879
|
+
* **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
|
|
11880
|
+
*
|
|
11861
11881
|
* @remarks
|
|
11862
11882
|
* [Api set: Mailbox 1.3]
|
|
11863
11883
|
*
|
|
11864
11884
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
11865
11885
|
*
|
|
11866
11886
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
11867
|
-
*
|
|
11887
|
+
*
|
|
11868
11888
|
* **Errors**:
|
|
11869
11889
|
*
|
|
11870
11890
|
* - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
|
|
@@ -11889,13 +11909,17 @@ declare namespace Office {
|
|
|
11889
11909
|
* When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11890
11910
|
* (see the **Examples** section for a sample).
|
|
11891
11911
|
*
|
|
11912
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11913
|
+
*
|
|
11914
|
+
* **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
|
|
11915
|
+
*
|
|
11892
11916
|
* @remarks
|
|
11893
11917
|
* [Api set: Mailbox 1.3]
|
|
11894
11918
|
*
|
|
11895
11919
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
|
|
11896
11920
|
*
|
|
11897
11921
|
* **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
11898
|
-
*
|
|
11922
|
+
*
|
|
11899
11923
|
* **Errors**:
|
|
11900
11924
|
*
|
|
11901
11925
|
* - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
|
|
@@ -11917,6 +11941,8 @@ declare namespace Office {
|
|
|
11917
11941
|
* When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11918
11942
|
* (see the **Examples** section for a sample).
|
|
11919
11943
|
*
|
|
11944
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11945
|
+
*
|
|
11920
11946
|
* @remarks
|
|
11921
11947
|
* [Api set: Mailbox 1.1]
|
|
11922
11948
|
*
|
|
@@ -11948,6 +11974,8 @@ declare namespace Office {
|
|
|
11948
11974
|
* When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
|
|
11949
11975
|
* (see the **Examples** section for a sample).
|
|
11950
11976
|
*
|
|
11977
|
+
* **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
|
|
11978
|
+
*
|
|
11951
11979
|
* @remarks
|
|
11952
11980
|
* [Api set: Mailbox 1.1]
|
|
11953
11981
|
*
|
|
@@ -14357,6 +14385,8 @@ declare namespace Office {
|
|
|
14357
14385
|
/**
|
|
14358
14386
|
* Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
|
|
14359
14387
|
*
|
|
14388
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
14389
|
+
*
|
|
14360
14390
|
* @remarks
|
|
14361
14391
|
* [Api set: Mailbox 1.11]
|
|
14362
14392
|
*
|
|
@@ -15189,6 +15219,9 @@ declare namespace Office {
|
|
|
15189
15219
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
15190
15220
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
15191
15221
|
*
|
|
15222
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
15223
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
15224
|
+
*
|
|
15192
15225
|
* **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
15226
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
15194
15227
|
* Until the item is synced, using the itemId will return an error.
|
|
@@ -15221,6 +15254,9 @@ declare namespace Office {
|
|
|
15221
15254
|
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
15222
15255
|
* Saving an existing appointment will send an update to added or removed attendees.
|
|
15223
15256
|
*
|
|
15257
|
+
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
15258
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
15259
|
+
*
|
|
15224
15260
|
* **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
15261
|
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
15226
15262
|
* Until the item is synced, using the `itemId` will return an error.
|
|
@@ -17440,7 +17476,9 @@ declare namespace Office {
|
|
|
17440
17476
|
setStartTime(time: string): void;
|
|
17441
17477
|
}
|
|
17442
17478
|
/**
|
|
17443
|
-
* Provides methods to
|
|
17479
|
+
* Provides methods to manage an item's session data.
|
|
17480
|
+
*
|
|
17481
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
17444
17482
|
*
|
|
17445
17483
|
* @remarks
|
|
17446
17484
|
* [Api set: Mailbox 1.11]
|
|
@@ -17544,6 +17582,8 @@ declare namespace Office {
|
|
|
17544
17582
|
/**
|
|
17545
17583
|
* Sets a session data key-value pair.
|
|
17546
17584
|
*
|
|
17585
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
17586
|
+
*
|
|
17547
17587
|
* @remarks
|
|
17548
17588
|
* [Api set: Mailbox 1.11]
|
|
17549
17589
|
*
|
|
@@ -17562,6 +17602,8 @@ declare namespace Office {
|
|
|
17562
17602
|
/**
|
|
17563
17603
|
* Sets a session data key-value pair.
|
|
17564
17604
|
*
|
|
17605
|
+
* **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
|
|
17606
|
+
*
|
|
17565
17607
|
* @remarks
|
|
17566
17608
|
* [Api set: Mailbox 1.11]
|
|
17567
17609
|
*
|
|
@@ -48605,7 +48647,7 @@ declare namespace Excel {
|
|
|
48605
48647
|
}): FunctionResult<T>;
|
|
48606
48648
|
/**
|
|
48607
48649
|
* 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.)
|
|
48608
|
-
* Whereas the original FunctionResult<T
|
|
48650
|
+
* 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.
|
|
48609
48651
|
*/
|
|
48610
48652
|
toJSON(): Interfaces.FunctionResultData<T>;
|
|
48611
48653
|
}
|
|
@@ -52366,7 +52408,9 @@ declare namespace Excel {
|
|
|
52366
52408
|
accessDenied = "AccessDenied",
|
|
52367
52409
|
apiNotFound = "ApiNotFound",
|
|
52368
52410
|
conflict = "Conflict",
|
|
52411
|
+
emptyChartSeries = "EmptyChartSeries",
|
|
52369
52412
|
filteredRangeConflict = "FilteredRangeConflict",
|
|
52413
|
+
formulaLengthExceedsLimit = "FormulaLengthExceedsLimit",
|
|
52370
52414
|
generalException = "GeneralException",
|
|
52371
52415
|
inactiveWorkbook = "InactiveWorkbook",
|
|
52372
52416
|
insertDeleteConflict = "InsertDeleteConflict",
|
|
@@ -74921,7 +74965,10 @@ declare namespace Word {
|
|
|
74921
74965
|
*/
|
|
74922
74966
|
readonly lists: Word.ListCollection;
|
|
74923
74967
|
/**
|
|
74924
|
-
*
|
|
74968
|
+
* Gets the collection of paragraph objects in the content control. Read-only.
|
|
74969
|
+
*
|
|
74970
|
+
* **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this content control are not returned.
|
|
74971
|
+
* From requirement set 1.3, paragraphs in such tables are also returned.
|
|
74925
74972
|
*
|
|
74926
74973
|
* @remarks
|
|
74927
74974
|
* [Api set: WordApi 1.1]
|
|
@@ -77673,6 +77720,9 @@ declare namespace Word {
|
|
|
77673
77720
|
/**
|
|
77674
77721
|
* Gets the collection of paragraph objects in the range. Read-only.
|
|
77675
77722
|
*
|
|
77723
|
+
* **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this range are not returned.
|
|
77724
|
+
* From requirement set 1.3, paragraphs in such tables are also returned.
|
|
77725
|
+
*
|
|
77676
77726
|
* @remarks
|
|
77677
77727
|
* [Api set: WordApi 1.1]
|
|
77678
77728
|
*/
|
|
@@ -86362,14 +86412,6 @@ declare namespace Word {
|
|
|
86362
86412
|
/**
|
|
86363
86413
|
* 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.
|
|
86364
86414
|
* @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.
|
|
86365
|
-
*
|
|
86366
|
-
* @remarks
|
|
86367
|
-
*
|
|
86368
|
-
* 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:
|
|
86369
|
-
*
|
|
86370
|
-
* run<T>(object: OfficeExtension.ClientObject, batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
86371
|
-
*
|
|
86372
|
-
* run<T>(objects: OfficeExtension.ClientObject[], batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
86373
86415
|
*/
|
|
86374
86416
|
function run<T>(batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
86375
86417
|
}
|
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.220",
|
|
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": "0025c72280fa249687b9265890195648b8a0a417f00c831bd636f9f1f61bff65",
|
|
44
44
|
"typeScriptVersion": "3.7"
|
|
45
45
|
}
|