Skip to content

Commit 619d09b

Browse files
feat(disco-v2): interface changes
1 parent 784c476 commit 619d09b

File tree

1 file changed

+20
-60
lines changed

1 file changed

+20
-60
lines changed

discovery/v2.ts

Lines changed: 20 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -5672,18 +5672,18 @@ namespace DiscoveryV2 {
56725672
column_index_begin?: number;
56735673
/** The `end` index of this cell's `column` location in the current table. */
56745674
column_index_end?: number;
5675-
/** A list of table row header ids. */
5676-
row_header_ids?: TableRowHeaderIds[];
5677-
/** A list of table row header texts. */
5678-
row_header_texts?: TableRowHeaderTexts[];
5679-
/** A list of table row header texts normalized. */
5680-
row_header_texts_normalized?: TableRowHeaderTextsNormalized[];
5681-
/** A list of table column header ids. */
5682-
column_header_ids?: TableColumnHeaderIds[];
5683-
/** A list of table column header texts. */
5684-
column_header_texts?: TableColumnHeaderTexts[];
5685-
/** A list of table column header texts normalized. */
5686-
column_header_texts_normalized?: TableColumnHeaderTextsNormalized[];
5675+
/** A list of ID values that represent the table row headers that are associated with this body cell. */
5676+
row_header_ids?: string[];
5677+
/** A list of row header values that are associated with this body cell. */
5678+
row_header_texts?: string[];
5679+
/** A list of normalized row header values that are associated with this body cell. */
5680+
row_header_texts_normalized?: string[];
5681+
/** A list of ID values that represent the column headers that are associated with this body cell. */
5682+
column_header_ids?: string[];
5683+
/** A list of column header values that are associated with this body cell. */
5684+
column_header_texts?: string[];
5685+
/** A list of normalized column header values that are associated with this body cell. */
5686+
column_header_texts_normalized?: string[];
56875687
/** A list of document attributes. */
56885688
attributes?: DocumentAttribute[];
56895689
}
@@ -5712,37 +5712,17 @@ namespace DiscoveryV2 {
57125712
text?: string;
57135713
}
57145714

5715-
/** An array of values, each being the `id` value of a column header that is applicable to the current cell. */
5716-
export interface TableColumnHeaderIds {
5717-
/** The `id` value of a column header. */
5718-
id?: string;
5719-
}
5720-
5721-
/** An array of values, each being the `text` value of a column header that is applicable to the current cell. */
5722-
export interface TableColumnHeaderTexts {
5723-
/** The `text` value of a column header. */
5724-
text?: string;
5725-
}
5726-
5727-
/** If you provide customization input, the normalized version of the column header texts according to the customization; otherwise, the same value as `column_header_texts`. */
5728-
export interface TableColumnHeaderTextsNormalized {
5729-
/** The normalized version of a column header text. */
5730-
text_normalized?: string;
5731-
}
5732-
57335715
/** Column-level cells, each applicable as a header to other cells in the same column as itself, of the current table. */
57345716
export interface TableColumnHeaders {
57355717
/** The unique ID of the cell in the current table. */
57365718
cell_id?: string;
5737-
/** The location of the column header cell in the current table as defined by its `begin` and `end` offsets,
5738-
* respectfully, in the input document.
5719+
/** The numeric location of the identified element in the document, represented with two integers labeled
5720+
* `begin` and `end`.
57395721
*/
5740-
location?: JsonObject;
5722+
location?: TableElementLocation;
57415723
/** The textual contents of this cell from the input document without associated markup content. */
57425724
text?: string;
5743-
/** If you provide customization input, the normalized version of the cell text according to the customization;
5744-
* otherwise, the same value as `text`.
5745-
*/
5725+
/** Normalized column header text. */
57465726
text_normalized?: string;
57475727
/** The `begin` index of this cell's `row` location in the current table. */
57485728
row_index_begin?: number;
@@ -5766,10 +5746,10 @@ namespace DiscoveryV2 {
57665746
export interface TableHeaders {
57675747
/** The unique ID of the cell in the current table. */
57685748
cell_id?: string;
5769-
/** The location of the table header cell in the current table as defined by its `begin` and `end` offsets,
5770-
* respectfully, in the input document.
5749+
/** The numeric location of the identified element in the document, represented with two integers labeled
5750+
* `begin` and `end`.
57715751
*/
5772-
location?: JsonObject;
5752+
location?: TableElementLocation;
57735753
/** The textual contents of the cell from the input document without associated markup content. */
57745754
text?: string;
57755755
/** The `begin` index of this cell's `row` location in the current table. */
@@ -5822,24 +5802,6 @@ namespace DiscoveryV2 {
58225802
contexts?: TableTextLocation[];
58235803
}
58245804

5825-
/** An array of values, each being the `id` value of a row header that is applicable to this body cell. */
5826-
export interface TableRowHeaderIds {
5827-
/** The `id` values of a row header. */
5828-
id?: string;
5829-
}
5830-
5831-
/** An array of values, each being the `text` value of a row header that is applicable to this body cell. */
5832-
export interface TableRowHeaderTexts {
5833-
/** The `text` value of a row header. */
5834-
text?: string;
5835-
}
5836-
5837-
/** If you provide customization input, the normalized version of the row header texts according to the customization; otherwise, the same value as `row_header_texts`. */
5838-
export interface TableRowHeaderTextsNormalized {
5839-
/** The normalized version of a row header text. */
5840-
text_normalized?: string;
5841-
}
5842-
58435805
/** Row-level cells, each applicable as a header to other cells in the same row as itself, of the current table. */
58445806
export interface TableRowHeaders {
58455807
/** The unique ID of the cell in the current table. */
@@ -5850,9 +5812,7 @@ namespace DiscoveryV2 {
58505812
location?: TableElementLocation;
58515813
/** The textual contents of this cell from the input document without associated markup content. */
58525814
text?: string;
5853-
/** If you provide customization input, the normalized version of the cell text according to the customization;
5854-
* otherwise, the same value as `text`.
5855-
*/
5815+
/** Normalized row header text. */
58565816
text_normalized?: string;
58575817
/** The `begin` index of this cell's `row` location in the current table. */
58585818
row_index_begin?: number;

0 commit comments

Comments
 (0)