@types/office-js 1.0.251 → 1.0.254
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 +180 -9
- 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: Fri, 20 May 2022 01:01:40 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
|
@@ -543,16 +543,16 @@ declare namespace Office {
|
|
|
543
543
|
*/
|
|
544
544
|
interface Actions {
|
|
545
545
|
/**
|
|
546
|
-
* Associates the ID of an action with a function.
|
|
546
|
+
* Associates the ID or name of an action with a function.
|
|
547
547
|
*
|
|
548
|
-
* @param actionId The ID of an action that is defined in an extended manifest.
|
|
548
|
+
* @param actionId The ID of an action that is defined in an extended manifest or the name of the function as specified in a **FunctionName** element in the manifest.
|
|
549
549
|
* @param actionFunction The function that is run when the action is invoked.
|
|
550
550
|
*
|
|
551
551
|
* @remarks
|
|
552
552
|
* **Requirement set**: {@link https://docs.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.1}
|
|
553
553
|
*/
|
|
554
554
|
associate: (actionId: string, actionFunction: (arg?: any) => void) => void;
|
|
555
|
-
}
|
|
555
|
+
}
|
|
556
556
|
/**
|
|
557
557
|
* Message used in the `onVisibilityModeChanged` invocation.
|
|
558
558
|
*/
|
|
@@ -18296,7 +18296,7 @@ declare namespace OfficeExtension {
|
|
|
18296
18296
|
* This statement will never contain any potentially-sensitive data and may not match the code exactly as written,
|
|
18297
18297
|
* but will be a close approximation.
|
|
18298
18298
|
*/
|
|
18299
|
-
|
|
18299
|
+
statement?: string;
|
|
18300
18300
|
/**
|
|
18301
18301
|
* The statements that closely precede and follow the statement that caused the error, if available.
|
|
18302
18302
|
*
|
|
@@ -19691,6 +19691,32 @@ declare namespace Excel {
|
|
|
19691
19691
|
*/
|
|
19692
19692
|
automatic = "Automatic"
|
|
19693
19693
|
}
|
|
19694
|
+
/**
|
|
19695
|
+
* Represents a command type of `DataConnection`.
|
|
19696
|
+
*
|
|
19697
|
+
* @remarks
|
|
19698
|
+
* [Api set: ExcelApi 1.15]
|
|
19699
|
+
*/
|
|
19700
|
+
enum DataSourceType {
|
|
19701
|
+
/**
|
|
19702
|
+
* The data source type is unknown or unsupported.
|
|
19703
|
+
* @remarks
|
|
19704
|
+
* [Api set: ExcelApi 1.15]
|
|
19705
|
+
*/
|
|
19706
|
+
unknown = "Unknown",
|
|
19707
|
+
/**
|
|
19708
|
+
* The data source type is a range in the current workbook.
|
|
19709
|
+
* @remarks
|
|
19710
|
+
* [Api set: ExcelApi 1.15]
|
|
19711
|
+
*/
|
|
19712
|
+
localRange = "LocalRange",
|
|
19713
|
+
/**
|
|
19714
|
+
* The data source type is a table in the current workbook.
|
|
19715
|
+
* @remarks
|
|
19716
|
+
* [Api set: ExcelApi 1.15]
|
|
19717
|
+
*/
|
|
19718
|
+
localTable = "LocalTable"
|
|
19719
|
+
}
|
|
19694
19720
|
/**
|
|
19695
19721
|
* Enum representing all accepted conditions by which a date filter can be applied.
|
|
19696
19722
|
Used to configure the type of PivotFilter that is applied to the field.
|
|
@@ -23996,14 +24022,21 @@ declare namespace Excel {
|
|
|
23996
24022
|
*/
|
|
23997
24023
|
getColumnsBefore(count?: number): Excel.Range;
|
|
23998
24024
|
/**
|
|
23999
|
-
* Returns a `WorkbookRangeAreas` object that represents the range containing all the
|
|
24000
|
-
*
|
|
24025
|
+
* Returns a `WorkbookRangeAreas` object that represents the range containing all the dependent cells of a specified range in the same worksheet or across multiple worksheets.
|
|
24026
|
+
*
|
|
24027
|
+
* @remarks
|
|
24028
|
+
* [Api set: ExcelApi 1.15]
|
|
24029
|
+
*/
|
|
24030
|
+
getDependents(): Excel.WorkbookRangeAreas;
|
|
24031
|
+
/**
|
|
24032
|
+
* Returns a `WorkbookRangeAreas` object that represents the range containing all the direct dependent cells of a specified range in the same worksheet or across multiple worksheets.
|
|
24033
|
+
*
|
|
24001
24034
|
* @remarks
|
|
24002
24035
|
* [Api set: ExcelApi 1.13]
|
|
24003
24036
|
*/
|
|
24004
24037
|
getDirectDependents(): Excel.WorkbookRangeAreas;
|
|
24005
24038
|
/**
|
|
24006
|
-
* Returns a `WorkbookRangeAreas` object that represents the range containing all the direct
|
|
24039
|
+
* Returns a `WorkbookRangeAreas` object that represents the range containing all the direct precedent cells of a specified range in the same worksheet or across multiple worksheets.
|
|
24007
24040
|
*
|
|
24008
24041
|
* @remarks
|
|
24009
24042
|
* [Api set: ExcelApi 1.12]
|
|
@@ -24120,7 +24153,7 @@ declare namespace Excel {
|
|
|
24120
24153
|
*/
|
|
24121
24154
|
getPivotTables(fullyContained?: boolean): Excel.PivotTableScopedCollection;
|
|
24122
24155
|
/**
|
|
24123
|
-
* Returns a `WorkbookRangeAreas` object that represents the range containing all the
|
|
24156
|
+
* Returns a `WorkbookRangeAreas` object that represents the range containing all the precedent cells of a specified range in the same worksheet or across multiple worksheets.
|
|
24124
24157
|
*
|
|
24125
24158
|
* @remarks
|
|
24126
24159
|
* [Api set: ExcelApi 1.14]
|
|
@@ -26990,10 +27023,11 @@ declare namespace Excel {
|
|
|
26990
27023
|
to point at the index for which it was created.
|
|
26991
27024
|
*
|
|
26992
27025
|
* @remarks
|
|
26993
|
-
* [Api set: ExcelApi 1.1 for adding a single row; 1.4 allows adding of multiple rows.]
|
|
27026
|
+
* [Api set: ExcelApi 1.1 for adding a single row; 1.4 allows adding of multiple rows; 1.15 for adding `alwaysInsert` parameter.]
|
|
26994
27027
|
*
|
|
26995
27028
|
* @param index Optional. Specifies the relative position of the new row. If null or -1, the addition happens at the end. Any rows below the inserted row are shifted downwards. Zero-indexed.
|
|
26996
27029
|
* @param values Optional. A 2D array of unformatted values of the table row.
|
|
27030
|
+
* @param alwaysInsert Optional. Specifies whether the new rows will be inserted into the table when new rows are added. If `true`, the new rows will be inserted into the table. If `false`, the new rows will be added below the table. Default is `true`.
|
|
26997
27031
|
*/
|
|
26998
27032
|
add(index?: number, values?: Array<Array<boolean | string | number>> | boolean | string | number, alwaysInsert?: boolean): Excel.TableRow;
|
|
26999
27033
|
/**
|
|
@@ -29162,6 +29196,42 @@ declare namespace Excel {
|
|
|
29162
29196
|
* [Api set: ExcelApi 1.7]
|
|
29163
29197
|
*/
|
|
29164
29198
|
delete(): void;
|
|
29199
|
+
/**
|
|
29200
|
+
* Gets the string representation of the data source of the chart series. The string representation could be information such as a cell address.
|
|
29201
|
+
*
|
|
29202
|
+
* @remarks
|
|
29203
|
+
* [Api set: ExcelApi 1.15]
|
|
29204
|
+
*
|
|
29205
|
+
* @param dimension The dimension of the axis where the data is from.
|
|
29206
|
+
*/
|
|
29207
|
+
getDimensionDataSourceString(dimension: Excel.ChartSeriesDimension): OfficeExtension.ClientResult<string>;
|
|
29208
|
+
/**
|
|
29209
|
+
* Gets the string representation of the data source of the chart series. The string representation could be information such as a cell address.
|
|
29210
|
+
*
|
|
29211
|
+
* @remarks
|
|
29212
|
+
* [Api set: ExcelApi 1.15]
|
|
29213
|
+
*
|
|
29214
|
+
* @param dimension The dimension of the axis where the data is from.
|
|
29215
|
+
*/
|
|
29216
|
+
getDimensionDataSourceString(dimension: "Categories" | "Values" | "XValues" | "YValues" | "BubbleSizes"): OfficeExtension.ClientResult<string>;
|
|
29217
|
+
/**
|
|
29218
|
+
* Gets the data source type of the chart series.
|
|
29219
|
+
*
|
|
29220
|
+
* @remarks
|
|
29221
|
+
* [Api set: ExcelApi 1.15]
|
|
29222
|
+
*
|
|
29223
|
+
* @param dimension The dimension of the axis where the data is from.
|
|
29224
|
+
*/
|
|
29225
|
+
getDimensionDataSourceType(dimension: Excel.ChartSeriesDimension): OfficeExtension.ClientResult<Excel.ChartDataSourceType>;
|
|
29226
|
+
/**
|
|
29227
|
+
* Gets the data source type of the chart series.
|
|
29228
|
+
*
|
|
29229
|
+
* @remarks
|
|
29230
|
+
* [Api set: ExcelApi 1.15]
|
|
29231
|
+
*
|
|
29232
|
+
* @param dimension The dimension of the axis where the data is from.
|
|
29233
|
+
*/
|
|
29234
|
+
getDimensionDataSourceType(dimension: "Categories" | "Values" | "XValues" | "YValues" | "BubbleSizes"): OfficeExtension.ClientResult<Excel.ChartDataSourceType>;
|
|
29165
29235
|
/**
|
|
29166
29236
|
* Gets the values from a single dimension of the chart series. These could be either category values or data values, depending on the dimension specified and how the data is mapped for the chart series.
|
|
29167
29237
|
*
|
|
@@ -33690,6 +33760,15 @@ declare namespace Excel {
|
|
|
33690
33760
|
* [Api set: ExcelApi 1.12]
|
|
33691
33761
|
*/
|
|
33692
33762
|
getFirst(): Excel.PivotTable;
|
|
33763
|
+
/**
|
|
33764
|
+
* Gets the first PivotTable in the collection. The PivotTables in the collection are sorted top-to-bottom and left-to-right, such that the top-left table is the first PivotTable in the collection.
|
|
33765
|
+
If the collection is empty, then this method returns an object with its `isNullObject` property set to `true`.
|
|
33766
|
+
For further information, see {@link https://docs.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
33767
|
+
*
|
|
33768
|
+
* @remarks
|
|
33769
|
+
* [Api set: ExcelApi 1.15]
|
|
33770
|
+
*/
|
|
33771
|
+
getFirstOrNullObject(): Excel.PivotTable;
|
|
33693
33772
|
/**
|
|
33694
33773
|
* Gets a PivotTable by name.
|
|
33695
33774
|
*
|
|
@@ -33929,6 +34008,21 @@ declare namespace Excel {
|
|
|
33929
34008
|
* [Api set: ExcelApi 1.8]
|
|
33930
34009
|
*/
|
|
33931
34010
|
delete(): void;
|
|
34011
|
+
/**
|
|
34012
|
+
* Returns the string representation of the data source for the PivotTable. This method currently supports string representations for table and range objects.
|
|
34013
|
+
Otherwise, it returns an empty string.
|
|
34014
|
+
*
|
|
34015
|
+
* @remarks
|
|
34016
|
+
* [Api set: ExcelApi 1.15]
|
|
34017
|
+
*/
|
|
34018
|
+
getDataSourceString(): OfficeExtension.ClientResult<string>;
|
|
34019
|
+
/**
|
|
34020
|
+
* Gets the type of the data source for the PivotTable.
|
|
34021
|
+
*
|
|
34022
|
+
* @remarks
|
|
34023
|
+
* [Api set: ExcelApi 1.15]
|
|
34024
|
+
*/
|
|
34025
|
+
getDataSourceType(): OfficeExtension.ClientResult<Excel.DataSourceType>;
|
|
33932
34026
|
/**
|
|
33933
34027
|
* Refreshes the PivotTable.
|
|
33934
34028
|
*
|
|
@@ -40108,6 +40202,15 @@ declare namespace Excel {
|
|
|
40108
40202
|
* [Api set: ExcelApi 1.9]
|
|
40109
40203
|
*/
|
|
40110
40204
|
readonly connectionSiteCount: number;
|
|
40205
|
+
/**
|
|
40206
|
+
* Gets the display name of the shape. A newly created shape has a generated name
|
|
40207
|
+
that is localized and may not match its `name`. In this scenario, you can use
|
|
40208
|
+
this API to get the name that is displayed in the UI.
|
|
40209
|
+
*
|
|
40210
|
+
* @remarks
|
|
40211
|
+
* [Api set: ExcelApi 1.15]
|
|
40212
|
+
*/
|
|
40213
|
+
readonly displayName: string;
|
|
40111
40214
|
/**
|
|
40112
40215
|
* Specifies the geometric shape type of this geometric shape. See `Excel.GeometricShapeType` for details. Returns `null` if the shape type is not "GeometricShape".
|
|
40113
40216
|
*
|
|
@@ -42533,6 +42636,38 @@ declare namespace Excel {
|
|
|
42533
42636
|
*/
|
|
42534
42637
|
rows = "Rows"
|
|
42535
42638
|
}
|
|
42639
|
+
/**
|
|
42640
|
+
* Specifies the data source type of the chart series.
|
|
42641
|
+
*
|
|
42642
|
+
* @remarks
|
|
42643
|
+
* [Api set: ExcelApi 1.15]
|
|
42644
|
+
*/
|
|
42645
|
+
enum ChartDataSourceType {
|
|
42646
|
+
/**
|
|
42647
|
+
* The data source type of the chart series is a local range.
|
|
42648
|
+
* @remarks
|
|
42649
|
+
* [Api set: ExcelApi 1.15]
|
|
42650
|
+
*/
|
|
42651
|
+
localRange = "LocalRange",
|
|
42652
|
+
/**
|
|
42653
|
+
* The data source type of the chart series is an external range.
|
|
42654
|
+
* @remarks
|
|
42655
|
+
* [Api set: ExcelApi 1.15]
|
|
42656
|
+
*/
|
|
42657
|
+
externalRange = "ExternalRange",
|
|
42658
|
+
/**
|
|
42659
|
+
* The data source type of the chart series is a list.
|
|
42660
|
+
* @remarks
|
|
42661
|
+
* [Api set: ExcelApi 1.15]
|
|
42662
|
+
*/
|
|
42663
|
+
list = "List",
|
|
42664
|
+
/**
|
|
42665
|
+
* The data source type of the chart series is unknown or unsupported.
|
|
42666
|
+
* @remarks
|
|
42667
|
+
* [Api set: ExcelApi 1.15]
|
|
42668
|
+
*/
|
|
42669
|
+
unknown = "Unknown"
|
|
42670
|
+
}
|
|
42536
42671
|
/**
|
|
42537
42672
|
* Represents the horizontal alignment for the specified object.
|
|
42538
42673
|
*
|
|
@@ -63170,6 +63305,15 @@ declare namespace Excel {
|
|
|
63170
63305
|
* [Api set: ExcelApi 1.9]
|
|
63171
63306
|
*/
|
|
63172
63307
|
connectionSiteCount?: number;
|
|
63308
|
+
/**
|
|
63309
|
+
* Gets the display name of the shape. A newly created shape has a generated name
|
|
63310
|
+
that is localized and may not match its `name`. In this scenario, you can use
|
|
63311
|
+
this API to get the name that is displayed in the UI.
|
|
63312
|
+
*
|
|
63313
|
+
* @remarks
|
|
63314
|
+
* [Api set: ExcelApi 1.15]
|
|
63315
|
+
*/
|
|
63316
|
+
displayName?: string;
|
|
63173
63317
|
/**
|
|
63174
63318
|
* Specifies the geometric shape type of this geometric shape. See `Excel.GeometricShapeType` for details. Returns `null` if the shape type is not "GeometricShape".
|
|
63175
63319
|
*
|
|
@@ -73295,6 +73439,15 @@ declare namespace Excel {
|
|
|
73295
73439
|
* [Api set: ExcelApi 1.9]
|
|
73296
73440
|
*/
|
|
73297
73441
|
connectionSiteCount?: boolean;
|
|
73442
|
+
/**
|
|
73443
|
+
* For EACH ITEM in the collection: Gets the display name of the shape. A newly created shape has a generated name
|
|
73444
|
+
that is localized and may not match its `name`. In this scenario, you can use
|
|
73445
|
+
this API to get the name that is displayed in the UI.
|
|
73446
|
+
*
|
|
73447
|
+
* @remarks
|
|
73448
|
+
* [Api set: ExcelApi 1.15]
|
|
73449
|
+
*/
|
|
73450
|
+
displayName?: boolean;
|
|
73298
73451
|
/**
|
|
73299
73452
|
* For EACH ITEM in the collection: Specifies the geometric shape type of this geometric shape. See `Excel.GeometricShapeType` for details. Returns `null` if the shape type is not "GeometricShape".
|
|
73300
73453
|
*
|
|
@@ -73487,6 +73640,15 @@ declare namespace Excel {
|
|
|
73487
73640
|
* [Api set: ExcelApi 1.9]
|
|
73488
73641
|
*/
|
|
73489
73642
|
connectionSiteCount?: boolean;
|
|
73643
|
+
/**
|
|
73644
|
+
* Gets the display name of the shape. A newly created shape has a generated name
|
|
73645
|
+
that is localized and may not match its `name`. In this scenario, you can use
|
|
73646
|
+
this API to get the name that is displayed in the UI.
|
|
73647
|
+
*
|
|
73648
|
+
* @remarks
|
|
73649
|
+
* [Api set: ExcelApi 1.15]
|
|
73650
|
+
*/
|
|
73651
|
+
displayName?: boolean;
|
|
73490
73652
|
/**
|
|
73491
73653
|
* Specifies the geometric shape type of this geometric shape. See `Excel.GeometricShapeType` for details. Returns `null` if the shape type is not "GeometricShape".
|
|
73492
73654
|
*
|
|
@@ -73763,6 +73925,15 @@ declare namespace Excel {
|
|
|
73763
73925
|
* [Api set: ExcelApi 1.9]
|
|
73764
73926
|
*/
|
|
73765
73927
|
connectionSiteCount?: boolean;
|
|
73928
|
+
/**
|
|
73929
|
+
* For EACH ITEM in the collection: Gets the display name of the shape. A newly created shape has a generated name
|
|
73930
|
+
that is localized and may not match its `name`. In this scenario, you can use
|
|
73931
|
+
this API to get the name that is displayed in the UI.
|
|
73932
|
+
*
|
|
73933
|
+
* @remarks
|
|
73934
|
+
* [Api set: ExcelApi 1.15]
|
|
73935
|
+
*/
|
|
73936
|
+
displayName?: boolean;
|
|
73766
73937
|
/**
|
|
73767
73938
|
* For EACH ITEM in the collection: Specifies the geometric shape type of this geometric shape. See `Excel.GeometricShapeType` for details. Returns `null` if the shape type is not "GeometricShape".
|
|
73768
73939
|
*
|
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.254",
|
|
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",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "396dca9293c5b54e74ea62fc185b98686af30c3b95cb56b53ca02602aa49a7bc",
|
|
49
49
|
"typeScriptVersion": "3.9"
|
|
50
50
|
}
|