mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 03:49:37 +00:00
40 lines
877 B
TypeScript
40 lines
877 B
TypeScript
import { ApiStatus } from 'wherehows-web/utils/api/shared';
|
|
|
|
/**
|
|
* Describes a dataset column
|
|
*/
|
|
interface IDatasetColumn {
|
|
comment: string;
|
|
commentCount: null | number;
|
|
dataType: string;
|
|
distributed: boolean;
|
|
fieldName: string;
|
|
fullFieldPath: string;
|
|
id: number | null;
|
|
indexed: boolean;
|
|
nullable: boolean;
|
|
parentSortID: number;
|
|
partitioned: boolean;
|
|
sortID: number;
|
|
treeGridClass: null;
|
|
}
|
|
|
|
/**
|
|
* Describes the interface that extends a DatasetColumn with a string
|
|
*/
|
|
interface IDatasetColumnWithHtmlComments extends IDatasetColumn {
|
|
commentHtml: string;
|
|
}
|
|
|
|
/**
|
|
* Describes a dataset column GET request response
|
|
*/
|
|
interface IDatasetColumnsGetResponse {
|
|
status: ApiStatus;
|
|
columns?: Array<IDatasetColumn>;
|
|
message?: string;
|
|
schemaless: boolean;
|
|
}
|
|
|
|
export { IDatasetColumn, IDatasetColumnWithHtmlComments, IDatasetColumnsGetResponse };
|