@types/office-js-preview 1.0.304 → 1.0.305

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: Thu, 05 May 2022 23:31:39 GMT
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
 
@@ -19806,6 +19806,31 @@ declare namespace Excel {
19806
19806
  */
19807
19807
  type CardLayout = EntityCardLayout;
19808
19808
  /**
19809
+ * The compact layout properties for an entity.
19810
+ *
19811
+ * @remarks
19812
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
19813
+ * @beta
19814
+ */
19815
+ interface EntityCompactLayout {
19816
+ /**
19817
+ * Specifies the name of the icon which is used to open the card.
19818
+ *
19819
+ * @remarks
19820
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
19821
+ * @beta
19822
+ */
19823
+ icon?: string;
19824
+ }
19825
+ /**
19826
+ * Represents the layout used when there is limited space to represent the entity.
19827
+ *
19828
+ * @remarks
19829
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
19830
+ * @beta
19831
+ */
19832
+ type CompactLayout = EntityCompactLayout;
19833
+ /**
19809
19834
  * Represents a reference into `referencedValues`. One scenario for using this reference is to avoid duplicating cell value objects (such as an `EntityCellValue`). Define a cell value object once in `referencedValues`, and then refer to that cell value from many places by using a `ReferenceCellValue` where the duplicated value would have appeared.
19810
19835
  *
19811
19836
  * @remarks
@@ -20695,6 +20720,14 @@ declare namespace Excel {
20695
20720
  * @beta
20696
20721
  */
20697
20722
  card?: CardLayout;
20723
+ /**
20724
+ * Represents the layout used when there is limited space to represent the entity.
20725
+ *
20726
+ * @remarks
20727
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
20728
+ * @beta
20729
+ */
20730
+ compact?: CompactLayout;
20698
20731
  }
20699
20732
  /**
20700
20733
  * Represents a card layout best used for an entity.
@@ -24062,15 +24095,13 @@ declare namespace Excel {
24062
24095
  * Represents a command type of `DataConnection`.
24063
24096
  *
24064
24097
  * @remarks
24065
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
24066
- * @beta
24098
+ * [Api set: ExcelApi 1.15]
24067
24099
  */
24068
24100
  enum DataSourceType {
24069
24101
  /**
24070
24102
  * The data source type is unknown or unsupported.
24071
24103
  * @remarks
24072
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
24073
- * @beta
24104
+ * [Api set: ExcelApi 1.15]
24074
24105
  */
24075
24106
  unknown = "Unknown",
24076
24107
  /**
@@ -24083,17 +24114,22 @@ declare namespace Excel {
24083
24114
  /**
24084
24115
  * The data source type is a range in the current workbook.
24085
24116
  * @remarks
24086
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
24087
- * @beta
24117
+ * [Api set: ExcelApi 1.15]
24088
24118
  */
24089
24119
  localRange = "LocalRange",
24090
24120
  /**
24091
24121
  * The data source type is a table in the current workbook.
24092
24122
  * @remarks
24123
+ * [Api set: ExcelApi 1.15]
24124
+ */
24125
+ localTable = "LocalTable",
24126
+ /**
24127
+ * Contains command text that the OLE DB provider (such as Power BI) understands.
24128
+ * @remarks
24093
24129
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
24094
24130
  * @beta
24095
24131
  */
24096
- localTable = "LocalTable"
24132
+ oledbDefault = "OledbDefault"
24097
24133
  }
24098
24134
  /**
24099
24135
  * Enum representing all accepted conditions by which a date filter can be applied.
@@ -29845,22 +29881,21 @@ declare namespace Excel {
29845
29881
  */
29846
29882
  getColumnsBefore(count?: number): Excel.Range;
29847
29883
  /**
29848
- * Returns a `WorkbookRangeAreas` object that represents the range containing all the dependents of a cell in the same worksheet or in multiple worksheets.
29884
+ * 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.
29849
29885
  *
29850
29886
  * @remarks
29851
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
29852
- * @beta
29887
+ * [Api set: ExcelApi 1.15]
29853
29888
  */
29854
29889
  getDependents(): Excel.WorkbookRangeAreas;
29855
29890
  /**
29856
- * Returns a `WorkbookRangeAreas` object that represents the range containing all the direct dependents of a cell in the same worksheet or in multiple worksheets.
29891
+ * 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.
29857
29892
  *
29858
29893
  * @remarks
29859
29894
  * [Api set: ExcelApi 1.13]
29860
29895
  */
29861
29896
  getDirectDependents(): Excel.WorkbookRangeAreas;
29862
29897
  /**
29863
- * Returns a `WorkbookRangeAreas` object that represents the range containing all the direct precedents of a cell in the same worksheet or in multiple worksheets.
29898
+ * 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.
29864
29899
  *
29865
29900
  * @remarks
29866
29901
  * [Api set: ExcelApi 1.12]
@@ -29977,7 +30012,7 @@ declare namespace Excel {
29977
30012
  */
29978
30013
  getPivotTables(fullyContained?: boolean): Excel.PivotTableScopedCollection;
29979
30014
  /**
29980
- * Returns a `WorkbookRangeAreas` object that represents the range containing all the precedents of a cell in the same worksheet or in multiple worksheets.
30015
+ * 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.
29981
30016
  *
29982
30017
  * @remarks
29983
30018
  * [Api set: ExcelApi 1.14]
@@ -32973,7 +33008,7 @@ declare namespace Excel {
32973
33008
  to point at the index for which it was created.
32974
33009
  *
32975
33010
  * @remarks
32976
- * [Api set: ExcelApi 1.1 for adding a single row; 1.4 allows adding of multiple rows; ExcelApi BETA (PREVIEW ONLY) for adding `alwaysInsert` parameter.]
33011
+ * [Api set: ExcelApi 1.1 for adding a single row; 1.4 allows adding of multiple rows; 1.15 for adding `alwaysInsert` parameter.]
32977
33012
  *
32978
33013
  * @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.
32979
33014
  * @param values Optional. A 2D array of unformatted values of the table row.
@@ -35170,8 +35205,7 @@ declare namespace Excel {
35170
35205
  * Gets the string representation of the data source of the chart series.The string representation could be information such as a cell address.
35171
35206
  *
35172
35207
  * @remarks
35173
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
35174
- * @beta
35208
+ * [Api set: ExcelApi 1.15]
35175
35209
  *
35176
35210
  * @param dimension The dimension of the axis where the data is from.
35177
35211
  */
@@ -35180,8 +35214,7 @@ declare namespace Excel {
35180
35214
  * Gets the string representation of the data source of the chart series.The string representation could be information such as a cell address.
35181
35215
  *
35182
35216
  * @remarks
35183
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
35184
- * @beta
35217
+ * [Api set: ExcelApi 1.15]
35185
35218
  *
35186
35219
  * @param dimension The dimension of the axis where the data is from.
35187
35220
  */
@@ -35190,8 +35223,7 @@ declare namespace Excel {
35190
35223
  * Gets the data source type of the chart series.
35191
35224
  *
35192
35225
  * @remarks
35193
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
35194
- * @beta
35226
+ * [Api set: ExcelApi 1.15]
35195
35227
  *
35196
35228
  * @param dimension The dimension of the axis where the data is from.
35197
35229
  */
@@ -35200,8 +35232,7 @@ declare namespace Excel {
35200
35232
  * Gets the data source type of the chart series.
35201
35233
  *
35202
35234
  * @remarks
35203
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
35204
- * @beta
35235
+ * [Api set: ExcelApi 1.15]
35205
35236
  *
35206
35237
  * @param dimension The dimension of the axis where the data is from.
35207
35238
  */
@@ -37651,22 +37682,6 @@ declare namespace Excel {
37651
37682
  class ChartFill extends OfficeExtension.ClientObject {
37652
37683
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
37653
37684
  context: RequestContext;
37654
- /**
37655
- * Sets and gets the uniform color fill formatting of a chart element.
37656
- *
37657
- * @remarks
37658
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
37659
- * @beta
37660
- */
37661
- solidColor: string;
37662
- /**
37663
- * Sets multiple properties of an object at the same time. You can pass either a plain object with the appropriate properties, or another API object of the same type.
37664
- * @param properties A JavaScript object with properties that are structured isomorphically to the properties of the object on which the method is called.
37665
- * @param options Provides an option to suppress errors if the properties object tries to set any read-only properties.
37666
- */
37667
- set(properties: Interfaces.ChartFillUpdateData, options?: OfficeExtension.UpdateOptions): void;
37668
- /** Sets multiple properties on the object at the same time, based on an existing loaded object. */
37669
- set(properties: Excel.ChartFill): void;
37670
37685
  /**
37671
37686
  * Clears the fill color of a chart element.
37672
37687
  *
@@ -37683,32 +37698,6 @@ declare namespace Excel {
37683
37698
  * @param color HTML color code representing the color of the background, in the form #RRGGBB (e.g., "FFA500") or as a named HTML color (e.g., "orange").
37684
37699
  */
37685
37700
  setSolidColor(color: string): void;
37686
- /**
37687
- * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
37688
- *
37689
- * @param options Provides options for which properties of the object to load.
37690
- */
37691
- load(options?: Excel.Interfaces.ChartFillLoadOptions): Excel.ChartFill;
37692
- /**
37693
- * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
37694
- *
37695
- * @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
37696
- */
37697
- load(propertyNames?: string | string[]): Excel.ChartFill;
37698
- /**
37699
- * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
37700
- *
37701
- * @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
37702
- */
37703
- load(propertyNamesAndPaths?: {
37704
- select?: string;
37705
- expand?: string;
37706
- }): Excel.ChartFill;
37707
- /**
37708
- * 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.)
37709
- * Whereas the original Excel.ChartFill object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Excel.Interfaces.ChartFillData`) that contains shallow copies of any loaded child properties from the original object.
37710
- */
37711
- toJSON(): Excel.Interfaces.ChartFillData;
37712
37701
  }
37713
37702
  /**
37714
37703
  * Represents the border formatting of a chart element.
@@ -39775,8 +39764,7 @@ declare namespace Excel {
39775
39764
  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}.
39776
39765
  *
39777
39766
  * @remarks
39778
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39779
- * @beta
39767
+ * [Api set: ExcelApi 1.15]
39780
39768
  */
39781
39769
  getFirstOrNullObject(): Excel.PivotTable;
39782
39770
  /**
@@ -40072,16 +40060,14 @@ declare namespace Excel {
40072
40060
  Otherwise, it returns an empty string.
40073
40061
  *
40074
40062
  * @remarks
40075
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
40076
- * @beta
40063
+ * [Api set: ExcelApi 1.15]
40077
40064
  */
40078
40065
  getDataSourceString(): OfficeExtension.ClientResult<string>;
40079
40066
  /**
40080
40067
  * Gets the type of the data source for the PivotTable.
40081
40068
  *
40082
40069
  * @remarks
40083
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
40084
- * @beta
40070
+ * [Api set: ExcelApi 1.15]
40085
40071
  */
40086
40072
  getDataSourceType(): OfficeExtension.ClientResult<Excel.DataSourceType>;
40087
40073
  /**
@@ -46364,8 +46350,7 @@ declare namespace Excel {
46364
46350
  this API to get the name that is displayed in the UI.
46365
46351
  *
46366
46352
  * @remarks
46367
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
46368
- * @beta
46353
+ * [Api set: ExcelApi 1.15]
46369
46354
  */
46370
46355
  readonly displayName: string;
46371
46356
  /**
@@ -49192,31 +49177,34 @@ declare namespace Excel {
49192
49177
  rows = "Rows"
49193
49178
  }
49194
49179
  /**
49195
- * Specifies whether the series data range is local range, external range, list or unknown.
49196
- *
49180
+ * Specifies the data source type of the chart series.
49181
+ *
49197
49182
  * @remarks
49198
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
49199
- * @beta
49183
+ * [Api set: ExcelApi 1.15]
49200
49184
  */
49201
49185
  enum ChartDataSourceType {
49202
49186
  /**
49187
+ * The data source type of the chart series is a local range.
49203
49188
  * @remarks
49204
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
49189
+ * [Api set: ExcelApi 1.15]
49205
49190
  */
49206
49191
  localRange = "LocalRange",
49207
49192
  /**
49193
+ * The data source type of the chart series is an external range.
49208
49194
  * @remarks
49209
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
49195
+ * [Api set: ExcelApi 1.15]
49210
49196
  */
49211
49197
  externalRange = "ExternalRange",
49212
49198
  /**
49199
+ * The data source type of the chart series is a list.
49213
49200
  * @remarks
49214
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
49201
+ * [Api set: ExcelApi 1.15]
49215
49202
  */
49216
49203
  list = "List",
49217
49204
  /**
49205
+ * The data source type of the chart series is unknown or unsupported.
49218
49206
  * @remarks
49219
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
49207
+ * [Api set: ExcelApi 1.15]
49220
49208
  */
49221
49209
  unknown = "Unknown"
49222
49210
  }
@@ -61977,17 +61965,6 @@ declare namespace Excel {
61977
61965
  */
61978
61966
  font?: Excel.Interfaces.ChartFontUpdateData;
61979
61967
  }
61980
- /** An interface for updating data on the ChartFill object, for use in `chartFill.set({ ... })`. */
61981
- interface ChartFillUpdateData {
61982
- /**
61983
- * Sets and gets the uniform color fill formatting of a chart element.
61984
- *
61985
- * @remarks
61986
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
61987
- * @beta
61988
- */
61989
- solidColor?: string;
61990
- }
61991
61968
  /** An interface for updating data on the ChartBorder object, for use in `chartBorder.set({ ... })`. */
61992
61969
  interface ChartBorderUpdateData {
61993
61970
  /**
@@ -68215,17 +68192,6 @@ declare namespace Excel {
68215
68192
  */
68216
68193
  font?: Excel.Interfaces.ChartFontData;
68217
68194
  }
68218
- /** An interface describing the data returned by calling `chartFill.toJSON()`. */
68219
- interface ChartFillData {
68220
- /**
68221
- * Sets and gets the uniform color fill formatting of a chart element.
68222
- *
68223
- * @remarks
68224
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
68225
- * @beta
68226
- */
68227
- solidColor?: string;
68228
- }
68229
68195
  /** An interface describing the data returned by calling `chartBorder.toJSON()`. */
68230
68196
  interface ChartBorderData {
68231
68197
  /**
@@ -70690,8 +70656,7 @@ declare namespace Excel {
70690
70656
  this API to get the name that is displayed in the UI.
70691
70657
  *
70692
70658
  * @remarks
70693
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
70694
- * @beta
70659
+ * [Api set: ExcelApi 1.15]
70695
70660
  */
70696
70661
  displayName?: string;
70697
70662
  /**
@@ -77352,26 +77317,6 @@ declare namespace Excel {
77352
77317
  */
77353
77318
  font?: Excel.Interfaces.ChartFontLoadOptions;
77354
77319
  }
77355
- /**
77356
- * Represents the fill formatting for a chart element.
77357
- *
77358
- * @remarks
77359
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
77360
- */
77361
- interface ChartFillLoadOptions {
77362
- /**
77363
- Specifying `$all` for the LoadOptions loads all the scalar properties (e.g.: `Range.address`) but not the navigational properties (e.g.: `Range.format.fill.color`).
77364
- */
77365
- $all?: boolean;
77366
- /**
77367
- * Sets and gets the uniform color fill formatting of a chart element.
77368
- *
77369
- * @remarks
77370
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
77371
- * @beta
77372
- */
77373
- solidColor?: boolean;
77374
- }
77375
77320
  /**
77376
77321
  * Represents the border formatting of a chart element.
77377
77322
  *
@@ -81798,8 +81743,7 @@ declare namespace Excel {
81798
81743
  this API to get the name that is displayed in the UI.
81799
81744
  *
81800
81745
  * @remarks
81801
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
81802
- * @beta
81746
+ * [Api set: ExcelApi 1.15]
81803
81747
  */
81804
81748
  displayName?: boolean;
81805
81749
  /**
@@ -82000,8 +81944,7 @@ declare namespace Excel {
82000
81944
  this API to get the name that is displayed in the UI.
82001
81945
  *
82002
81946
  * @remarks
82003
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
82004
- * @beta
81947
+ * [Api set: ExcelApi 1.15]
82005
81948
  */
82006
81949
  displayName?: boolean;
82007
81950
  /**
@@ -82286,8 +82229,7 @@ declare namespace Excel {
82286
82229
  this API to get the name that is displayed in the UI.
82287
82230
  *
82288
82231
  * @remarks
82289
- * [Api set: ExcelApi BETA (PREVIEW ONLY)]
82290
- * @beta
82232
+ * [Api set: ExcelApi 1.15]
82291
82233
  */
82292
82234
  displayName?: boolean;
82293
82235
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.304",
3
+ "version": "1.0.305",
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",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "7c02619549c29a4188d5df5b2307e9f46c019c20013e42689788449741e07335",
48
+ "typesPublisherContentHash": "2d8fa62dd9f863d04d601a5c6f60341d72f8606a44f710b6376a4dd442771485",
49
49
  "typeScriptVersion": "3.9"
50
50
  }