@types/office-js 1.0.214 → 1.0.218

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 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: Fri, 22 Oct 2021 21:31:19 GMT
11
+ * Last updated: Mon, 08 Nov 2021 22:01:41 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` </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
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` </td><td> `Compressed`, `Pdf`, `Text` </td></tr>
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
  *
@@ -14343,6 +14354,17 @@ declare namespace Office {
14343
14354
  * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
14344
14355
  */
14345
14356
  notificationMessages: NotificationMessages;
14357
+ /**
14358
+ * Manages the {@link Office.SessionData | SessionData} of an item in Compose mode.
14359
+ *
14360
+ * @remarks
14361
+ * [Api set: Mailbox 1.11]
14362
+ *
14363
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
14364
+ *
14365
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
14366
+ */
14367
+ sessionData: SessionData;
14346
14368
  /**
14347
14369
  * Gets the ID of the series that an instance belongs to.
14348
14370
  *
@@ -17417,6 +17439,143 @@ declare namespace Office {
17417
17439
  */
17418
17440
  setStartTime(time: string): void;
17419
17441
  }
17442
+ /**
17443
+ * Provides methods to manage an item's session data.
17444
+ *
17445
+ * @remarks
17446
+ * [Api set: Mailbox 1.11]
17447
+ *
17448
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
17449
+ *
17450
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17451
+ */
17452
+ interface SessionData {
17453
+ /**
17454
+ * Clears all session data key-value pairs.
17455
+ *
17456
+ * @remarks
17457
+ * [Api set: Mailbox 1.11]
17458
+ *
17459
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
17460
+ *
17461
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17462
+ *
17463
+ * @param options - An object literal that contains one or more of the following properties.
17464
+ * `asyncContext`: Developers can provide any object they wish to access in the callback method.
17465
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
17466
+ * `asyncResult`, which is an `Office.AsyncResult` object.
17467
+ */
17468
+ clearAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
17469
+ /**
17470
+ * Clears all session data key-value pairs.
17471
+ *
17472
+ * @remarks
17473
+ * [Api set: Mailbox 1.11]
17474
+ *
17475
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
17476
+ *
17477
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17478
+ *
17479
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
17480
+ * `asyncResult`, which is an `Office.AsyncResult` object.
17481
+ */
17482
+ clearAsync(callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
17483
+ /**
17484
+ * Gets all session data key-value pairs.
17485
+ *
17486
+ * @remarks
17487
+ * [Api set: Mailbox 1.11]
17488
+ *
17489
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
17490
+ *
17491
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17492
+ *
17493
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
17494
+ * `asyncResult`, which is an `Office.AsyncResult` object.
17495
+ */
17496
+ getAllAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
17497
+ /**
17498
+ * Gets the session data value of the specified key.
17499
+ *
17500
+ * @remarks
17501
+ * [Api set: Mailbox 1.11]
17502
+ *
17503
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
17504
+ *
17505
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17506
+ *
17507
+ * @param name - The session data key.
17508
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
17509
+ * type `Office.AsyncResult`.
17510
+ */
17511
+ getAsync(name: string, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
17512
+ /**
17513
+ * Removes a session data key-value pair.
17514
+ *
17515
+ * @remarks
17516
+ * [Api set: Mailbox 1.11]
17517
+ *
17518
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadWriteItem`
17519
+ *
17520
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17521
+ *
17522
+ * @param name - The session data key.
17523
+ * @param options - An object literal that contains one or more of the following properties.
17524
+ * `asyncContext`: Developers can provide any object they wish to access in the callback method.
17525
+ * @param callback - Optional. 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
+ removeAsync(name: string, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
17529
+ /**
17530
+ * Removes a session data key-value pair.
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}**: `ReadWriteItem`
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 - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
17541
+ * `asyncResult`, which is an `Office.AsyncResult` object.
17542
+ */
17543
+ removeAsync(name: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
17544
+ /**
17545
+ * Sets 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}**: `ReadItem`
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 value - The session data value as a string.
17556
+ * @param options - An object literal that contains one or more of the following properties.
17557
+ * `asyncContext`: Developers can provide any object they wish to access in the callback method.
17558
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
17559
+ * type `Office.AsyncResult`.
17560
+ */
17561
+ setAsync(name: string, value: string, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
17562
+ /**
17563
+ * Sets a session data key-value pair.
17564
+ *
17565
+ * @remarks
17566
+ * [Api set: Mailbox 1.11]
17567
+ *
17568
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: `ReadItem`
17569
+ *
17570
+ * **{@link https://docs.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
17571
+
17572
+ * @param name - The session data key.
17573
+ * @param value - The session data value as a string.
17574
+ * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
17575
+ * type `Office.AsyncResult`.
17576
+ */
17577
+ setAsync(name: string, value: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
17578
+ }
17420
17579
  /**
17421
17580
  * Represents the properties of an appointment or message in a shared folder.
17422
17581
  *
@@ -32833,7 +32992,7 @@ declare namespace Excel {
32833
32992
  * Clears the column filter criteria of the AutoFilter.
32834
32993
  *
32835
32994
  * @remarks
32836
- * [Api set: ExcelApiOnline 1.1]
32995
+ * [Api set: ExcelApi 1.14]
32837
32996
  *
32838
32997
  * @param columnIndex The zero-based column index, which represents which column filter needs to be cleared.
32839
32998
  If the index value is not supported(for example, if the value is a negative number, or if the value is greater than the number of available columns in the range),
@@ -48446,7 +48605,7 @@ declare namespace Excel {
48446
48605
  }): FunctionResult<T>;
48447
48606
  /**
48448
48607
  * 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> 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.
48608
+ * 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
48609
  */
48451
48610
  toJSON(): Interfaces.FunctionResultData<T>;
48452
48611
  }
@@ -74762,7 +74921,10 @@ declare namespace Word {
74762
74921
  */
74763
74922
  readonly lists: Word.ListCollection;
74764
74923
  /**
74765
- * Get the collection of paragraph objects in the content control. Read-only.
74924
+ * Gets the collection of paragraph objects in the content control. Read-only.
74925
+ *
74926
+ * **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this content control are not returned.
74927
+ * From requirement set 1.3, paragraphs in such tables are also returned.
74766
74928
  *
74767
74929
  * @remarks
74768
74930
  * [Api set: WordApi 1.1]
@@ -77514,6 +77676,9 @@ declare namespace Word {
77514
77676
  /**
77515
77677
  * Gets the collection of paragraph objects in the range. Read-only.
77516
77678
  *
77679
+ * **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this range are not returned.
77680
+ * From requirement set 1.3, paragraphs in such tables are also returned.
77681
+ *
77517
77682
  * @remarks
77518
77683
  * [Api set: WordApi 1.1]
77519
77684
  */
@@ -86203,14 +86368,6 @@ declare namespace Word {
86203
86368
  /**
86204
86369
  * 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
86370
  * @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
86371
  */
86215
86372
  function run<T>(batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
86216
86373
  }
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.214",
3
+ "version": "1.0.218",
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": "4a05bea4c5e7ecf93cda2ef524c5249a0461294dce4e7c051b56785742bc2ec9",
43
+ "typesPublisherContentHash": "fc96f9befdba8500f96819a1cad77e416d22373d848ea9e2fa1c4d132f0db5c2",
44
44
  "typeScriptVersion": "3.7"
45
45
  }