@types/office-js-preview 1.0.317 → 1.0.318

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: Tue, 28 Jun 2022 23:32:26 GMT
11
+ * Last updated: Fri, 08 Jul 2022 00:32:15 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -19644,7 +19644,24 @@ declare namespace Excel {
19644
19644
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
19645
19645
  * @beta
19646
19646
  */
19647
- lambdaInCell = "LambdaInCell"
19647
+ lambdaInCell = "LambdaInCell",
19648
+ /**
19649
+ * An error caused by a `CellValue` object that is too deeply nested within another `CellValue`. Displays as error type #CALC! in Excel.
19650
+ *
19651
+ * @remarks
19652
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
19653
+ * @beta
19654
+ */
19655
+ tooDeeplyNested = "TooDeeplyNested",
19656
+ /**
19657
+ * An error caused by a cell's formula returning a string that exceeds the maximum of 32767 characters. Displays as error type #CALC! in Excel.
19658
+ * Some characters, like emoji, may appear to be one character in the Excel UI but are actually processed as surrogate characters. A surrogate character counts as multiple characters toward the maximum character limit.
19659
+ *
19660
+ * @remarks
19661
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
19662
+ * @beta
19663
+ */
19664
+ textOverflow = "TextOverflow"
19648
19665
  }
19649
19666
  /**
19650
19667
  * Represents the value of a cell containing a #CALC! error.
@@ -19695,7 +19712,15 @@ declare namespace Excel {
19695
19712
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
19696
19713
  * @beta
19697
19714
  */
19698
- errorSubType?: CalcErrorCellValueSubType | "Unknown" | "ArrayOfArrays" | "ArrayOfRanges" | "EmptyArray" | "UnsupportedLifting" | "DataTableReferencedPendingFormula" | "TooManyCells" | "LambdaInCell";
19715
+ errorSubType?: CalcErrorCellValueSubType | "Unknown" | "ArrayOfArrays" | "ArrayOfRanges" | "EmptyArray" | "UnsupportedLifting" | "DataTableReferencedPendingFormula" | "TooManyCells" | "LambdaInCell" | "TooDeeplyNested" | "TextOverflow";
19716
+ /**
19717
+ * Represents the name of the function causing the error.
19718
+ *
19719
+ * @remarks
19720
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
19721
+ * @beta
19722
+ */
19723
+ functionName?: string;
19699
19724
  }
19700
19725
  /**
19701
19726
  * Represents a reference to a property used by the card layout.
@@ -19706,7 +19731,7 @@ declare namespace Excel {
19706
19731
  */
19707
19732
  interface CardLayoutPropertyReference {
19708
19733
  /**
19709
- * The name of the property referenced by the card layout.
19734
+ * Represents the name of the property referenced by the card layout.
19710
19735
  *
19711
19736
  * @remarks
19712
19737
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
@@ -20838,6 +20863,14 @@ declare namespace Excel {
20838
20863
  */
20839
20864
  div0 = "Div0",
20840
20865
  /**
20866
+ * Represents an `ExternalErrorCellValue`.
20867
+ *
20868
+ * @remarks
20869
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
20870
+ * @beta
20871
+ */
20872
+ external = "External",
20873
+ /**
20841
20874
  * Represents a `FieldErrorCellValue`.
20842
20875
  *
20843
20876
  * @remarks
@@ -20925,7 +20958,83 @@ declare namespace Excel {
20925
20958
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
20926
20959
  * @beta
20927
20960
  */
20928
- type ErrorCellValue = BlockedErrorCellValue | BusyErrorCellValue | CalcErrorCellValue | ConnectErrorCellValue | Div0ErrorCellValue | FieldErrorCellValue | GettingDataErrorCellValue | NotAvailableErrorCellValue | NameErrorCellValue | NullErrorCellValue | NumErrorCellValue | PlaceholderErrorCellValue | RefErrorCellValue | SpillErrorCellValue | ValueErrorCellValue;
20961
+ type ErrorCellValue = BlockedErrorCellValue | BusyErrorCellValue | CalcErrorCellValue | ConnectErrorCellValue | Div0ErrorCellValue | ExternalErrorCellValue | FieldErrorCellValue | GettingDataErrorCellValue | NotAvailableErrorCellValue | NameErrorCellValue | NullErrorCellValue | NumErrorCellValue | PlaceholderErrorCellValue | RefErrorCellValue | SpillErrorCellValue | ValueErrorCellValue;
20962
+ /**
20963
+ * Represents types of #EXTERNAL! errors.
20964
+ *
20965
+ * @remarks
20966
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
20967
+ * @beta
20968
+ */
20969
+ enum ExternalErrorCellValueSubType {
20970
+ /**
20971
+ * An unknown type of error. Displays as error type #EXTERNAL! in Excel.
20972
+ *
20973
+ * @remarks
20974
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
20975
+ * @beta
20976
+ */
20977
+ unknown = "Unknown",
20978
+ /**
20979
+ * An error returned by the Python interpreter as a result of running the Python code. Displays as error type #EXTERNAL! in Excel.
20980
+ *
20981
+ * @remarks
20982
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
20983
+ * @beta
20984
+ */
20985
+ pythonError = "PythonError"
20986
+ }
20987
+ /**
20988
+ * Represents the value of a cell containing an #EXTERNAL! error.
20989
+ *
20990
+ * @remarks
20991
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
20992
+ * @beta
20993
+ */
20994
+ interface ExternalErrorCellValue {
20995
+ /**
20996
+ * Represents the type of this cell value.
20997
+ *
20998
+ * @remarks
20999
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21000
+ * @beta
21001
+ */
21002
+ type: CellValueType.error | "Error";
21003
+ /**
21004
+ * Represents the value that would be returned by `Range.values` for a cell with this value.
21005
+ * When accessed through a `valuesAsJson` property, this string value aligns with the en-US locale.
21006
+ * When accessed through a `valuesAsJsonLocal` property, this string value aligns with the user's display locale.
21007
+ *
21008
+ * @remarks
21009
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21010
+ * @beta
21011
+ */
21012
+ basicValue?: "#EXTERNAL!" | string;
21013
+ /**
21014
+ * Represents the value that would be returned by `Range.valueTypes` for a cell with this value.
21015
+ *
21016
+ * @remarks
21017
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21018
+ * @beta
21019
+ */
21020
+ basicType?: RangeValueType.error | "Error";
21021
+ /**
21022
+ * Represents the type of `ErrorCellValue`.
21023
+ *
21024
+ * @remarks
21025
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21026
+ * @beta
21027
+ */
21028
+ errorType?: ErrorCellValueType.external | "External";
21029
+ /**
21030
+ * Represents the type of `ExternalErrorCellValue`.
21031
+ *
21032
+ * @remarks
21033
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21034
+ * @beta
21035
+ */
21036
+ errorSubType?: ExternalErrorCellValueSubType | "Unknown" | "PythonError";
21037
+ }
20929
21038
  /**
20930
21039
  * Represents types of #FIELD! errors.
20931
21040
  *
@@ -21009,6 +21118,14 @@ declare namespace Excel {
21009
21118
  * @beta
21010
21119
  */
21011
21120
  errorSubType?: FieldErrorCellValueSubType | "Unknown" | "WebImageMissingFilePart" | "DataProviderError";
21121
+ /**
21122
+ * Represents the field which was not found by FIELDVALUE.
21123
+ *
21124
+ * @remarks
21125
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21126
+ * @beta
21127
+ */
21128
+ fieldName?: string;
21012
21129
  }
21013
21130
  /**
21014
21131
  * Represents the value of a cell containing a number with a format string. Number format strings must conform to Excel guidelines. To learn more, see {@link https://support.microsoft.com/office/review-guidelines-for-customizing-a-number-format-c0a1d1fa-d3f4-4018-96b7-9c9354dd99f5 | Review guidelines for customizing a number format}.
@@ -21350,6 +21467,31 @@ declare namespace Excel {
21350
21467
  errorType?: ErrorCellValueType.null | "Null";
21351
21468
  }
21352
21469
  /**
21470
+ * Represents types of #NUM! errors.
21471
+ *
21472
+ * @remarks
21473
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21474
+ * @beta
21475
+ */
21476
+ enum NumErrorCellValueSubType {
21477
+ /**
21478
+ * An unknown type of error. Displays as error type #NUM! in Excel.
21479
+ *
21480
+ * @remarks
21481
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21482
+ * @beta
21483
+ */
21484
+ unknown = "Unknown",
21485
+ /**
21486
+ * An error caused by a cell's formula having an array parameter with too many rows or columns. The maximum number of rows and columns in an array parameter is 1048576. Displays as error type #NUM! in Excel.
21487
+ *
21488
+ * @remarks
21489
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21490
+ * @beta
21491
+ */
21492
+ arrayTooLarge = "ArrayTooLarge"
21493
+ }
21494
+ /**
21353
21495
  * Represents the value of a cell containing a #NUM! error.
21354
21496
  *
21355
21497
  * @remarks
@@ -21391,6 +21533,22 @@ declare namespace Excel {
21391
21533
  * @beta
21392
21534
  */
21393
21535
  errorType?: ErrorCellValueType.num | "Num";
21536
+ /**
21537
+ * Represents the type of `NumErrorCellValue`.
21538
+ *
21539
+ * @remarks
21540
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21541
+ * @beta
21542
+ */
21543
+ errorSubType?: NumErrorCellValueSubType | "Unknown" | "ArrayTooLarge";
21544
+ /**
21545
+ * Represents the name of the function causing the error.
21546
+ *
21547
+ * @remarks
21548
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
21549
+ * @beta
21550
+ */
21551
+ functionName?: string;
21394
21552
  }
21395
21553
  /**
21396
21554
  * Represents types of #REF! errors.
@@ -32825,6 +32983,19 @@ declare namespace Excel {
32825
32983
  * @param name Optional. Specifies the name of the new column. If `null`, the default name will be used.
32826
32984
  */
32827
32985
  add(index?: number, values?: Array<Array<boolean | string | number>> | boolean | string | number, name?: string): Excel.TableColumn;
32986
+ /**
32987
+ * Adds a new column to the table.
32988
+ Unlike `add()`, `addAsJson()` takes any type of cell value, such as image or entity data types.
32989
+ *
32990
+ * @remarks
32991
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
32992
+ * @beta
32993
+ *
32994
+ * @param index Optional. Specifies the relative position of the new column. If null or -1, the addition happens at the end. Columns with a higher index will be shifted to the side. Zero-indexed.
32995
+ * @param values Optional. A 2D array of cell values of the table column.
32996
+ * @param name Optional. Specifies the name of the new column. If `null`, the default name will be used.
32997
+ */
32998
+ addAsJson(index?: number, values?: CellValue[][], name?: string): Excel.TableColumn;
32828
32999
  /**
32829
33000
  * Gets the number of columns in the table.
32830
33001
  *
@@ -33058,6 +33229,24 @@ declare namespace Excel {
33058
33229
  * @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`.
33059
33230
  */
33060
33231
  add(index?: number, values?: Array<Array<boolean | string | number>> | boolean | string | number, alwaysInsert?: boolean): Excel.TableRow;
33232
+ /**
33233
+ * Adds one or more rows to the table. The returned object will be the top row of the newly added row or rows.
33234
+ Unlike `add()`, `addAsJson()` takes any type of cell value, such as image or entity data types.
33235
+
33236
+ Note that unlike ranges or columns, which will adjust if new rows or columns are added before them,
33237
+ a `TableRow` object represents the physical location of the table row, but not the data.
33238
+ That is, if the data is sorted or if new rows are added, a table row will continue
33239
+ to point at the index for which it was created.
33240
+ *
33241
+ * @remarks
33242
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
33243
+ * @beta
33244
+ *
33245
+ * @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.
33246
+ * @param values Optional. A 2D array of cell values of the table row.
33247
+ * @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`.
33248
+ */
33249
+ addAsJson(index?: number, values?: CellValue[][], alwaysInsert?: boolean): Excel.TableRow;
33061
33250
  /**
33062
33251
  * Delete multiple rows from a table.
33063
33252
  These rows don't need to be sequential. This method will throw the `InvalidArgument` error if a chosen row has already been deleted or doesn't exist.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.317",
3
+ "version": "1.0.318",
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": "f19ecff4c37e5e2bfe90d4e84f785282ed2b85d00355182d4fb4e0c340eea623",
48
+ "typesPublisherContentHash": "bf8642e42365f504fdabe3aa84a7a02ca4d53fc8dd8056c72ed6be5c0d143aeb",
49
49
  "typeScriptVersion": "4.0"
50
50
  }