mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 16:08:47 +00:00
* #1496 fixed sorting using API * #1496 added try catch * #1496 removed test that no longer serves a purpose * #1496 fixed linting * #1496 cleanup * #1496 added loading indicator back * #1496 fix lint issues * #1496 added changes log * #1496 minor fixes
35 lines
1,004 B
TypeScript
35 lines
1,004 B
TypeScript
import PropTypes, { string } from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
created_at: PropTypes.string,
|
|
description: PropTypes.string,
|
|
display_text: PropTypes.string,
|
|
hosts_count: PropTypes.number,
|
|
host_ids: PropTypes.arrayOf(
|
|
PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
),
|
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
name: PropTypes.string,
|
|
label_type: PropTypes.string,
|
|
title: PropTypes.string, // confirm on rest api doc
|
|
type: PropTypes.string, // confirm on rest api doc
|
|
count: PropTypes.number, // confirm on rest api doc
|
|
});
|
|
|
|
export interface ILabel {
|
|
created_at: string;
|
|
description: string;
|
|
display_text: string;
|
|
hosts_count: number;
|
|
host_ids: number[] | null;
|
|
id: number | string;
|
|
label_membership_type: string;
|
|
label_type: string;
|
|
name: string;
|
|
query: string;
|
|
updated_at: string;
|
|
title: string; // confirm on rest api doc
|
|
type: string; // confirm on rest api doc
|
|
count: number;
|
|
slug?: string;
|
|
}
|