fleet/frontend/interfaces/pack.ts
RachelElysia 267b7343e1
Manage Packs Page: Refactor to typescript, functional components, new UI (#1567)
* Refactor ManagePacksPage as functional component in TypeScript
* Refactor old table using TableContainer component
* Add Enable, Disable buttons to DataTable component
* Update Packs interface with additional properties
* Update Cypress e2e tests
2021-08-10 14:25:34 -04:00

31 lines
798 B
TypeScript

import PropTypes from "prop-types";
export default PropTypes.shape({
description: PropTypes.string,
detail_updated_at: PropTypes.string,
id: PropTypes.number,
name: PropTypes.string,
platform: PropTypes.string,
updated_at: PropTypes.string,
query_count: PropTypes.number,
total_hosts_count: PropTypes.number,
disabled: PropTypes.bool,
team_ids: PropTypes.arrayOf(PropTypes.number),
host_ids: PropTypes.arrayOf(PropTypes.number),
label_ids: PropTypes.arrayOf(PropTypes.number),
});
export interface IPack {
description: string;
detail_updated_at: string;
id: number;
name: string;
platform: string;
updated_at: string;
query_count: number;
total_hosts_count: number;
disabled: boolean;
team_ids: number[];
host_ids: number[];
label_ids: number[];
}