2017-09-20 14:25:27 -07:00
|
|
|
import { IUser } from 'wherehows-web/typings/api/authentication/user';
|
|
|
|
import { ApiStatus } from 'wherehows-web/utils/api';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Describes the properties of a Dataset object
|
|
|
|
*/
|
|
|
|
interface IDataset {
|
|
|
|
created: number;
|
|
|
|
formatedModified: string;
|
|
|
|
hasSchemaHistory: boolean;
|
|
|
|
hdfsBrowserLink: null | string;
|
|
|
|
id: number;
|
|
|
|
isFavorite: boolean;
|
|
|
|
isOwned: boolean;
|
|
|
|
isWatched: false;
|
|
|
|
modified: number;
|
|
|
|
name: string;
|
|
|
|
owners: Array<IUser>;
|
|
|
|
properties: null;
|
2017-10-24 00:11:23 -07:00
|
|
|
schema: string; //JSON string
|
2017-09-20 14:25:27 -07:00
|
|
|
source: string;
|
|
|
|
urn: string;
|
|
|
|
watchId: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Describes the response from the GET Dataset endpoint
|
|
|
|
*/
|
|
|
|
interface IDatasetGetResponse {
|
|
|
|
status: ApiStatus;
|
|
|
|
dataset?: IDataset;
|
|
|
|
}
|