@types/office-js-preview 1.0.423 → 1.0.425

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.
@@ -2,15 +2,14 @@
2
2
  > `npm install --save @types/office-js-preview`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for Office.js (https://github.com/OfficeDev/office-js).
5
+ This package contains type definitions for office-js-preview (https://github.com/OfficeDev/office-js).
6
6
 
7
7
  # Details
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: Wed, 11 Oct 2023 20:35:13 GMT
11
+ * Last updated: Thu, 19 Oct 2023 14:43:11 GMT
12
12
  * Dependencies: none
13
- * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
13
 
15
14
  # Credits
16
15
  These definitions were written by [OfficeDev](https://github.com/OfficeDev), [Ricky Kirkham](https://github.com/Rick-Kirkham), [Alex Jerabek](https://github.com/AlexJerabek), [Elizabeth Samuel](https://github.com/ElizabethSamuel-MSFT), [Alison McKay](https://github.com/alison-mk), and [Sam Ramon](https://github.com/samantharamon).
@@ -1,14 +1,3 @@
1
- // Type definitions for Office.js 1.0
2
- // Project: https://github.com/OfficeDev/office-js
3
- // Definitions by: OfficeDev <https://github.com/OfficeDev>,
4
- // Ricky Kirkham <https://github.com/Rick-Kirkham>,
5
- // Alex Jerabek <https://github.com/AlexJerabek>,
6
- // Elizabeth Samuel <https://github.com/ElizabethSamuel-MSFT>,
7
- // Alison McKay <https://github.com/alison-mk>,
8
- // Sam Ramon <https://github.com/samantharamon>
9
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
10
- // TypeScript Version: 2.4
11
-
12
1
  /*
13
2
  office-js
14
3
  Copyright (c) Microsoft Corporation
@@ -28911,115 +28900,6 @@ declare namespace Excel {
28911
28900
  */
28912
28901
  undo = "undo"
28913
28902
  }
28914
- /**
28915
- * Represents a recorded change to the task, to be used as an input parameter.
28916
- *
28917
- * @remarks
28918
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28919
- * @beta
28920
- */
28921
- interface DocumentTaskChangeProperties {
28922
- /**
28923
- * Represents the user assigned to the task for an `assign` change action, or the user unassigned from the task for an `unassign` change action.
28924
- *
28925
- * @remarks
28926
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28927
- * @beta
28928
- */
28929
- assignee?: Excel.EmailIdentity;
28930
- /**
28931
- * Represents the identity of the user who made the task change.
28932
- *
28933
- * @remarks
28934
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28935
- * @beta
28936
- */
28937
- changedBy: Excel.EmailIdentity;
28938
- /**
28939
- * Represents the ID of the `comment` or `commentReply` to which the task change is anchored.
28940
- *
28941
- * @remarks
28942
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28943
- * @beta
28944
- */
28945
- commentId?: string;
28946
- /**
28947
- * Represents the creation date and time of the task change record. All dates are in UTC.
28948
- *
28949
- * @remarks
28950
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28951
- * @beta
28952
- */
28953
- createdDateTime?: Date;
28954
- /**
28955
- * Represents the task's due date and time. It is used for the `setSchedule` change action.
28956
- It is in UTC time zone. It can be set to `null` to remove the due date and time. It should be set together with `startDateTime` to avoid conflicts.
28957
- *
28958
- * @remarks
28959
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28960
- * @beta
28961
- */
28962
- dueDateTime?: Date;
28963
- /**
28964
- * The unique GUID of the task change.
28965
- *
28966
- * @remarks
28967
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28968
- * @beta
28969
- */
28970
- id: string;
28971
- /**
28972
- * Represents the task's completion percentage. It is used for the `setPercentComplete` change action.
28973
- This is a value betwen 0 and 100, where 100 represents a completed task. Changing this value to 100 also completes the associated comment. Changing the completion from 100 to a lower value reactivates the associated comment.
28974
- *
28975
- * @remarks
28976
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28977
- * @beta
28978
- */
28979
- percentComplete?: number;
28980
- /**
28981
- * Represents the task's priority. It is used for the `setPriority` change action.
28982
- This is a value between 0 and 10, with 5 being the default priority if not set, and where 0 represents the highest priority.
28983
- *
28984
- * @remarks
28985
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28986
- * @beta
28987
- */
28988
- priority?: number;
28989
- /**
28990
- * Represents the task's start date and time. It is used for the `setSchedule` change action.
28991
- It is in UTC time zone. It can be set to `null` to remove the start date and time. It should be set together with `dueDateTime` to avoid conflicts.
28992
- *
28993
- * @remarks
28994
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
28995
- * @beta
28996
- */
28997
- startDateTime?: Date;
28998
- /**
28999
- * Represents the task's title. It is used for the `setTitle` change action.
29000
- *
29001
- * @remarks
29002
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
29003
- * @beta
29004
- */
29005
- title?: string;
29006
- /**
29007
- * Represents the action type of the task change record. Some examples of action types are assign, undo, and setPriority.
29008
- *
29009
- * @remarks
29010
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
29011
- * @beta
29012
- */
29013
- type: Excel.DocumentTaskChangeAction | "unknown" | "create" | "assign" | "unassign" | "unassignAll" | "setSchedule" | "setPercentComplete" | "setPriority" | "remove" | "restore" | "setTitle" | "undo";
29014
- /**
29015
- * Represents the `DocumentTaskChange.id` property that was undone for the `undo` change action.
29016
- *
29017
- * @remarks
29018
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
29019
- * @beta
29020
- */
29021
- undoChangeId?: string;
29022
- }
29023
28903
  /**
29024
28904
  * Represents a recorded change to the task.
29025
28905
  *
@@ -33274,6 +33154,15 @@ declare namespace Excel {
33274
33154
  * [Api set: ExcelApi 1.9]
33275
33155
  */
33276
33156
  chartDataPointTrack: boolean;
33157
+ /**
33158
+ * Specifies the maximum length of time, in seconds, allotted for a formula that depends on an external code service to complete.
33159
+ The valid range is 1 to 86400, inclusive.
33160
+ *
33161
+ * @remarks
33162
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
33163
+ * @beta
33164
+ */
33165
+ externalCodeServiceTimeout: number;
33277
33166
  /**
33278
33167
  * Specifies if changes have been made since the workbook was last saved.
33279
33168
  You can set this property to `true` if you want to close a modified workbook without either saving it or being prompted to save it.
@@ -64862,6 +64751,7 @@ declare namespace Excel {
64862
64751
  openWorkbookLinksBlocked = "OpenWorkbookLinksBlocked",
64863
64752
  operationCellsExceedLimit = "OperationCellsExceedLimit",
64864
64753
  pivotTableRangeConflict = "PivotTableRangeConflict",
64754
+ powerQueryRefreshResourceChallenge = "PowerQueryRefreshResourceChallenge",
64865
64755
  rangeExceedsLimit = "RangeExceedsLimit",
64866
64756
  refreshWorkbookLinksBlocked = "RefreshWorkbookLinksBlocked",
64867
64757
  requestAborted = "RequestAborted",
@@ -65049,6 +64939,15 @@ declare namespace Excel {
65049
64939
  * [Api set: ExcelApi 1.9]
65050
64940
  */
65051
64941
  chartDataPointTrack?: boolean;
64942
+ /**
64943
+ * Specifies the maximum length of time, in seconds, allotted for a formula that depends on an external code service to complete.
64944
+ The valid range is 1 to 86400, inclusive.
64945
+ *
64946
+ * @remarks
64947
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
64948
+ * @beta
64949
+ */
64950
+ externalCodeServiceTimeout?: number;
65052
64951
  /**
65053
64952
  * Specifies if changes have been made since the workbook was last saved.
65054
64953
  You can set this property to `true` if you want to close a modified workbook without either saving it or being prompted to save it.
@@ -70395,6 +70294,15 @@ declare namespace Excel {
70395
70294
  * [Api set: ExcelApi 1.9]
70396
70295
  */
70397
70296
  chartDataPointTrack?: boolean;
70297
+ /**
70298
+ * Specifies the maximum length of time, in seconds, allotted for a formula that depends on an external code service to complete.
70299
+ The valid range is 1 to 86400, inclusive.
70300
+ *
70301
+ * @remarks
70302
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
70303
+ * @beta
70304
+ */
70305
+ externalCodeServiceTimeout?: number;
70398
70306
  /**
70399
70307
  * Specifies if changes have been made since the workbook was last saved.
70400
70308
  You can set this property to `true` if you want to close a modified workbook without either saving it or being prompted to save it.
@@ -77679,6 +77587,15 @@ declare namespace Excel {
77679
77587
  * [Api set: ExcelApi 1.9]
77680
77588
  */
77681
77589
  chartDataPointTrack?: boolean;
77590
+ /**
77591
+ * Specifies the maximum length of time, in seconds, allotted for a formula that depends on an external code service to complete.
77592
+ The valid range is 1 to 86400, inclusive.
77593
+ *
77594
+ * @remarks
77595
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
77596
+ * @beta
77597
+ */
77598
+ externalCodeServiceTimeout?: boolean;
77682
77599
  /**
77683
77600
  * Specifies if changes have been made since the workbook was last saved.
77684
77601
  You can set this property to `true` if you want to close a modified workbook without either saving it or being prompted to save it.
@@ -92067,7 +91984,7 @@ declare namespace Word {
92067
91984
  */
92068
91985
  getBookmarkRange(name: string): Word.Range;
92069
91986
  /**
92070
- * Gets a bookmark's range. If the bookmark does not exist, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
91987
+ * Gets a bookmark's range. If the bookmark doesn't exist, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
92071
91988
  *
92072
91989
  * @remarks
92073
91990
  * [Api set: WordApiHiddenDocument 1.4]
@@ -92356,6 +92273,8 @@ declare namespace Word {
92356
92273
  *
92357
92274
  * @remarks
92358
92275
  * [Api set: WordApi 1.4]
92276
+ *
92277
+ * Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5. Support for managing fields is similar to what's available in the Word UI. However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}), the `Addin` field is editable. To learn more about Word UI clients that more fully support fields, see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
92359
92278
  */
92360
92279
  class Field extends OfficeExtension.ClientObject {
92361
92280
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
@@ -92555,6 +92474,8 @@ declare namespace Word {
92555
92474
  *
92556
92475
  * @remarks
92557
92476
  * [Api set: WordApi 1.4]
92477
+ *
92478
+ * Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5. Support for managing fields is similar to what's available in the Word UI. However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}), the `Addin` field is editable. To learn more about Word UI clients that more fully support fields, see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
92558
92479
  */
92559
92480
  class FieldCollection extends OfficeExtension.ClientObject {
92560
92481
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
@@ -94992,7 +94913,7 @@ declare namespace Word {
94992
94913
  */
94993
94914
  expandTo(range: Word.Range): Word.Range;
94994
94915
  /**
94995
- * Returns a new range that extends from this range in either direction to cover another range. This range is not changed. If the two ranges do not have a union, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
94916
+ * Returns a new range that extends from this range in either direction to cover another range. This range isn't changed. If the two ranges don't have a union, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
94996
94917
  *
94997
94918
  * @remarks
94998
94919
  * [Api set: WordApi 1.3]
@@ -95172,6 +95093,20 @@ declare namespace Word {
95172
95093
  * @remarks
95173
95094
  * [Api set: WordApi 1.5]
95174
95095
  *
95096
+ * Important:
95097
+ *
95098
+ * In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
95099
+ *
95100
+ * In Word on the web, the API supports inserting and managing the following field types.
95101
+ *
95102
+ * - Word.FieldType.addin
95103
+ *
95104
+ * - Word.FieldType.date
95105
+ *
95106
+ * - Word.FieldType.hyperlink
95107
+ *
95108
+ * - Word.FieldType.toc
95109
+ *
95175
95110
  * @param insertLocation Required. The location relative to the range where the field will be inserted. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
95176
95111
  * @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
95177
95112
  * @param text Optional. Additional properties or options if needed for specified field type.
@@ -95184,6 +95119,20 @@ declare namespace Word {
95184
95119
  * @remarks
95185
95120
  * [Api set: WordApi 1.5]
95186
95121
  *
95122
+ * Important:
95123
+ *
95124
+ * In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
95125
+ *
95126
+ * In Word on the web, the API supports inserting and managing the following field types.
95127
+ *
95128
+ * - Word.FieldType.addin
95129
+ *
95130
+ * - Word.FieldType.date
95131
+ *
95132
+ * - Word.FieldType.hyperlink
95133
+ *
95134
+ * - Word.FieldType.toc
95135
+ *
95187
95136
  * @param insertLocation Required. The location relative to the range where the field will be inserted. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
95188
95137
  * @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
95189
95138
  * @param text Optional. Additional properties or options if needed for specified field type.
@@ -95283,7 +95232,7 @@ declare namespace Word {
95283
95232
  */
95284
95233
  intersectWith(range: Word.Range): Word.Range;
95285
95234
  /**
95286
- * Returns a new range as the intersection of this range with another range. This range isn't changed. If the two ranges are not overlapped or adjacent, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
95235
+ * Returns a new range as the intersection of this range with another range. This range isn't changed. If the two ranges aren't overlapped or adjacent, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
95287
95236
  *
95288
95237
  * @remarks
95289
95238
  * [Api set: WordApi 1.3]
@@ -107307,14 +107256,14 @@ declare namespace Word {
107307
107256
  */
107308
107257
  parentTableCell?: Word.Interfaces.TableCellLoadOptions;
107309
107258
  /**
107310
- * Gets the table cell that contains the field. If it is not contained in a table cell, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
107259
+ * Gets the table cell that contains the field. If it isn't contained in a table cell, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
107311
107260
  *
107312
107261
  * @remarks
107313
107262
  * [Api set: WordApi 1.4]
107314
107263
  */
107315
107264
  parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
107316
107265
  /**
107317
- * Gets the table that contains the field. If it is not contained in a table, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
107266
+ * Gets the table that contains the field. If it isn't contained in a table, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
107318
107267
  *
107319
107268
  * @remarks
107320
107269
  * [Api set: WordApi 1.4]
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.423",
4
- "description": "TypeScript definitions for Office.js",
3
+ "version": "1.0.425",
4
+ "description": "TypeScript definitions for office-js-preview",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "OfficeDev",
10
- "url": "https://github.com/OfficeDev",
11
- "githubUsername": "OfficeDev"
10
+ "githubUsername": "OfficeDev",
11
+ "url": "https://github.com/OfficeDev"
12
12
  },
13
13
  {
14
14
  "name": "Ricky Kirkham",
15
- "url": "https://github.com/Rick-Kirkham",
16
- "githubUsername": "Rick-Kirkham"
15
+ "githubUsername": "Rick-Kirkham",
16
+ "url": "https://github.com/Rick-Kirkham"
17
17
  },
18
18
  {
19
19
  "name": "Alex Jerabek",
20
- "url": "https://github.com/AlexJerabek",
21
- "githubUsername": "AlexJerabek"
20
+ "githubUsername": "AlexJerabek",
21
+ "url": "https://github.com/AlexJerabek"
22
22
  },
23
23
  {
24
24
  "name": "Elizabeth Samuel",
25
- "url": "https://github.com/ElizabethSamuel-MSFT",
26
- "githubUsername": "ElizabethSamuel-MSFT"
25
+ "githubUsername": "ElizabethSamuel-MSFT",
26
+ "url": "https://github.com/ElizabethSamuel-MSFT"
27
27
  },
28
28
  {
29
29
  "name": "Alison McKay",
30
- "url": "https://github.com/alison-mk",
31
- "githubUsername": "alison-mk"
30
+ "githubUsername": "alison-mk",
31
+ "url": "https://github.com/alison-mk"
32
32
  },
33
33
  {
34
34
  "name": "Sam Ramon",
35
- "url": "https://github.com/samantharamon",
36
- "githubUsername": "samantharamon"
35
+ "githubUsername": "samantharamon",
36
+ "url": "https://github.com/samantharamon"
37
37
  }
38
38
  ],
39
39
  "main": "",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "6a78737f9139b5d1fb7d6f427c810de9b466a34f4a9bbe9c2862bfbd605ceb2a",
48
+ "typesPublisherContentHash": "965df4069c607b96b3a93892d32b11b4c21fd69f22aefd0d649d3932429e6289",
49
49
  "typeScriptVersion": "4.5"
50
50
  }