2017-09-20 14:25:27 -07:00
|
|
|
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;
|
2017-12-06 10:23:33 -08:00
|
|
|
columns?: Array<IDatasetColumn>;
|
2017-09-20 14:25:27 -07:00
|
|
|
message?: string;
|
2017-12-06 10:23:33 -08:00
|
|
|
schemaless: boolean;
|
2017-09-20 14:25:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export { IDatasetColumn, IDatasetColumnWithHtmlComments, IDatasetColumnsGetResponse };
|