mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
* 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
31 lines
798 B
TypeScript
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[];
|
|
}
|