@types/office-js-preview 1.0.265 → 1.0.269

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.
@@ -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: Mon, 01 Nov 2021 17:01:31 GMT
11
+ * Last updated: Wed, 17 Nov 2021 23:01:25 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -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` </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
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` </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
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
@@ -9712,6 +9712,8 @@ declare namespace Office {
9712
9712
  /**
9713
9713
  * Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
9714
9714
  *
9715
+ * **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
9716
+ *
9715
9717
  * @remarks
9716
9718
  * [Api set: Mailbox 1.11]
9717
9719
  *
@@ -10524,6 +10526,9 @@ declare namespace Office {
10524
10526
  * appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
10525
10527
  * Saving an existing appointment will send an update to added or removed attendees.
10526
10528
  *
10529
+ * When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
10530
+ * subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
10531
+ *
10527
10532
  * **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
10528
10533
  * that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
10529
10534
  * Until the item is synced, using the item ID will return an error.
@@ -10559,6 +10564,9 @@ declare namespace Office {
10559
10564
  * appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
10560
10565
  * Saving an existing appointment will send an update to added or removed attendees.
10561
10566
  *
10567
+ * When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
10568
+ * subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
10569
+ *
10562
10570
  * **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
10563
10571
  * when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
10564
10572
  * Until the item is synced, using the item ID will return an error.
@@ -11962,6 +11970,8 @@ declare namespace Office {
11962
11970
  *
11963
11971
  * **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
11964
11972
  *
11973
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
11974
+ *
11965
11975
  * **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
11966
11976
  *
11967
11977
  * @remarks
@@ -11997,6 +12007,8 @@ declare namespace Office {
11997
12007
  *
11998
12008
  * **Important**: To use `appendOnSendAsync`, the `ExtendedPermissions` manifest node must include the `AppendOnSend` extended permission.
11999
12009
  *
12010
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12011
+ *
12000
12012
  * **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12001
12013
  *
12002
12014
  * @remarks
@@ -12106,6 +12118,8 @@ declare namespace Office {
12106
12118
  * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12107
12119
  * (see the **Examples** section for a sample).
12108
12120
  *
12121
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12122
+ *
12109
12123
  * @remarks
12110
12124
  * [Api set: Mailbox 1.1]
12111
12125
  *
@@ -12138,6 +12152,8 @@ declare namespace Office {
12138
12152
  * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12139
12153
  * (see the **Examples** section for a sample).
12140
12154
  *
12155
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12156
+ *
12141
12157
  * @remarks
12142
12158
  * [Api set: Mailbox 1.1]
12143
12159
  *
@@ -12164,6 +12180,10 @@ declare namespace Office {
12164
12180
  * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12165
12181
  * (see the **Examples** section for a sample).
12166
12182
  *
12183
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12184
+ *
12185
+ * **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
12186
+ *
12167
12187
  * @remarks
12168
12188
  * [Api set: Mailbox 1.3]
12169
12189
  *
@@ -12195,6 +12215,10 @@ declare namespace Office {
12195
12215
  * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12196
12216
  * (see the **Examples** section for a sample).
12197
12217
  *
12218
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12219
+ *
12220
+ * **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
12221
+ *
12198
12222
  * @remarks
12199
12223
  * [Api set: Mailbox 1.3]
12200
12224
  *
@@ -12223,6 +12247,8 @@ declare namespace Office {
12223
12247
  * When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
12224
12248
  * (see the **Examples** section for a sample).
12225
12249
  *
12250
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12251
+ *
12226
12252
  * @remarks
12227
12253
  * [Api set: Mailbox 1.1]
12228
12254
  *
@@ -12254,6 +12280,8 @@ declare namespace Office {
12254
12280
  * When including links in HTML markup, you can disable online link preview by setting the id attribute on the anchor (\<a\>) to "LPNoLP"
12255
12281
  * (see the **Examples** section for a sample).
12256
12282
  *
12283
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12284
+ *
12257
12285
  * @remarks
12258
12286
  * [Api set: Mailbox 1.1]
12259
12287
  *
@@ -14784,6 +14812,8 @@ declare namespace Office {
14784
14812
  /**
14785
14813
  * Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
14786
14814
  *
14815
+ * **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
14816
+ *
14787
14817
  * @remarks
14788
14818
  * [Api set: Mailbox 1.11]
14789
14819
  *
@@ -15664,6 +15694,9 @@ declare namespace Office {
15664
15694
  * appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
15665
15695
  * Saving an existing appointment will send an update to added or removed attendees.
15666
15696
  *
15697
+ * When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
15698
+ * subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
15699
+ *
15667
15700
  * **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
15668
15701
  * that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
15669
15702
  * Until the item is synced, using the itemId will return an error.
@@ -15696,6 +15729,9 @@ declare namespace Office {
15696
15729
  * appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
15697
15730
  * Saving an existing appointment will send an update to added or removed attendees.
15698
15731
  *
15732
+ * When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
15733
+ * subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
15734
+ *
15699
15735
  * **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
15700
15736
  * that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
15701
15737
  * Until the item is synced, using the `itemId` will return an error.
@@ -18193,7 +18229,9 @@ declare namespace Office {
18193
18229
  setStartTime(time: string): void;
18194
18230
  }
18195
18231
  /**
18196
- * Provides methods to manage an item's session data.
18232
+ * Provides methods to manage an item's session data.
18233
+ *
18234
+ * **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
18197
18235
  *
18198
18236
  * @remarks
18199
18237
  * [Api set: Mailbox 1.11]
@@ -18297,6 +18335,8 @@ declare namespace Office {
18297
18335
  /**
18298
18336
  * Sets a session data key-value pair.
18299
18337
  *
18338
+ * **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
18339
+ *
18300
18340
  * @remarks
18301
18341
  * [Api set: Mailbox 1.11]
18302
18342
  *
@@ -18315,6 +18355,8 @@ declare namespace Office {
18315
18355
  /**
18316
18356
  * Sets a session data key-value pair.
18317
18357
  *
18358
+ * **Important**: The entire SessionData object is limited to 50,000 characters per add-in.
18359
+ *
18318
18360
  * @remarks
18319
18361
  * [Api set: Mailbox 1.11]
18320
18362
  *
@@ -54500,7 +54542,7 @@ declare namespace Excel {
54500
54542
  }): FunctionResult<T>;
54501
54543
  /**
54502
54544
  * 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.)
54503
- * 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.
54545
+ * 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.
54504
54546
  */
54505
54547
  toJSON(): Interfaces.FunctionResultData<T>;
54506
54548
  }
@@ -82753,7 +82795,10 @@ declare namespace Word {
82753
82795
  */
82754
82796
  readonly lists: Word.ListCollection;
82755
82797
  /**
82756
- * Get the collection of paragraph objects in the content control. Read-only.
82798
+ * Gets the collection of paragraph objects in the content control. Read-only.
82799
+ *
82800
+ * **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this content control are not returned.
82801
+ * From requirement set 1.3, paragraphs in such tables are also returned.
82757
82802
  *
82758
82803
  * @remarks
82759
82804
  * [Api set: WordApi 1.1]
@@ -86393,6 +86438,9 @@ declare namespace Word {
86393
86438
  /**
86394
86439
  * Gets the parent body of the range. Read-only.
86395
86440
  *
86441
+ * **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this range are not returned.
86442
+ * From requirement set 1.3, paragraphs in such tables are also returned.
86443
+ *
86396
86444
  * @remarks
86397
86445
  * [Api set: WordApi 1.3]
86398
86446
  */
@@ -96234,14 +96282,6 @@ declare namespace Word {
96234
96282
  /**
96235
96283
  * 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.
96236
96284
  * @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.
96237
- *
96238
- * @remarks
96239
- *
96240
- * 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:
96241
- *
96242
- * run<T>(object: OfficeExtension.ClientObject, batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
96243
- *
96244
- * run<T>(objects: OfficeExtension.ClientObject[], batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
96245
96285
  */
96246
96286
  function run<T>(batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
96247
96287
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.265",
3
+ "version": "1.0.269",
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": "64b09c553a0d023fe6fbc0993415c5c69e51d96628bbd85ba5137a54eea71a74",
43
+ "typesPublisherContentHash": "707ccc53dd1f370e4d15b2e600d210efe21778ada2eb9df8c1ecec597bea79eb",
44
44
  "typeScriptVersion": "3.7"
45
45
  }