fleet/frontend/interfaces/query.ts
RachelElysia a6e921c7b8
Query Manage Page: Role based views (#843)
* Removes create new query button from only observers
* Renders CTA ManageQueriesPage side panel
* Renders Observer can run column for non observers
* Fixes integration tests: ManageQueriesPage and SidePanel

UI co-authored by: @gillespi314
Integration tests co-authored by: @ghernandez345
2021-05-25 16:03:32 -04:00

22 lines
456 B
TypeScript

import PropTypes from "prop-types";
export default PropTypes.shape({
description: PropTypes.string,
name: PropTypes.string,
query: PropTypes.string,
id: PropTypes.number,
interval: PropTypes.number,
last_excuted: PropTypes.string,
observer_can_run: PropTypes.bool,
});
export interface IQuery {
description: string;
name: string;
query: string;
id: number;
interval: number;
last_excuted: string;
observer_can_run: boolean;
}