2021-04-12 13:32:25 +00:00
|
|
|
import PropTypes from "prop-types";
|
2021-09-10 19:06:37 +00:00
|
|
|
import { IFormField } from "./form_field";
|
2021-08-16 14:30:19 +00:00
|
|
|
import packInterface, { IPack } from "./pack";
|
2016-11-07 16:42:39 +00:00
|
|
|
|
|
|
|
export default PropTypes.shape({
|
2021-08-16 14:30:19 +00:00
|
|
|
created_at: PropTypes.string,
|
|
|
|
updated_at: PropTypes.string,
|
|
|
|
id: PropTypes.number,
|
2016-11-07 16:42:39 +00:00
|
|
|
name: PropTypes.string,
|
2021-08-16 14:30:19 +00:00
|
|
|
description: PropTypes.string,
|
2016-11-07 16:42:39 +00:00
|
|
|
query: PropTypes.string,
|
2021-08-16 14:30:19 +00:00
|
|
|
saved: PropTypes.bool,
|
|
|
|
author_id: PropTypes.number,
|
2021-08-03 20:09:01 +00:00
|
|
|
author_name: PropTypes.string,
|
2021-08-16 14:30:19 +00:00
|
|
|
observer_can_run: PropTypes.bool,
|
|
|
|
packs: PropTypes.arrayOf(packInterface),
|
2016-11-07 16:42:39 +00:00
|
|
|
});
|
2021-09-10 19:06:37 +00:00
|
|
|
export interface IQueryFormData {
|
2021-09-13 21:23:24 +00:00
|
|
|
description?: string | number | boolean | any[] | undefined;
|
|
|
|
name?: string | number | boolean | any[] | undefined;
|
|
|
|
query?: string | number | boolean | any[] | undefined;
|
|
|
|
observer_can_run?: string | number | boolean | any[] | undefined;
|
2021-09-10 19:06:37 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 16:51:39 +00:00
|
|
|
export interface IQuery {
|
2021-08-16 14:30:19 +00:00
|
|
|
created_at: string;
|
|
|
|
updated_at: string;
|
|
|
|
id: number;
|
2021-03-03 16:51:39 +00:00
|
|
|
name: string;
|
2021-08-16 14:30:19 +00:00
|
|
|
description: string;
|
2021-03-03 16:51:39 +00:00
|
|
|
query: string;
|
2021-08-16 14:30:19 +00:00
|
|
|
saved: boolean;
|
|
|
|
author_id: number;
|
2021-08-03 20:09:01 +00:00
|
|
|
author_name: string;
|
2021-08-16 14:30:19 +00:00
|
|
|
observer_can_run: boolean;
|
|
|
|
packs: IPack[];
|
2021-03-03 16:51:39 +00:00
|
|
|
}
|
2021-09-10 19:06:37 +00:00
|
|
|
|
|
|
|
export interface IQueryFormFields {
|
|
|
|
description: IFormField;
|
|
|
|
name: IFormField;
|
|
|
|
query: IFormField;
|
|
|
|
observer_can_run: IFormField;
|
|
|
|
}
|