/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * Metadata describing a chart or a count stat for the landing page of Signature Commons */ export type Counting = { /** * URI to schema or module for validation of this instance */ $validator: string; [k: string]: any; } & ( | { /** * Prefered name of the table */ text: string; /** * mdi icon to use */ icon?: string; /** * type of count schema */ type: "table"; /** * name of table */ model: "entities" | "signatures" | "libraries" | "resources"; /** * For groups with multiple components, we'll use this to order the components */ priority: number; [k: string]: any; } | { /** * Prefered name of the count */ text: string; /** * type of count schema */ type: "meta-count"; /** * mdi icon to use */ icon?: string; /** * name of table */ model: "entities" | "signatures" | "libraries" | "resources"; /** * name of the field to count */ field: string; /** * For groups with multiple components, we'll use this to order the components */ priority: number; [k: string]: any; } | { /** * Prefered name of the visualization */ text: string; /** * type of count schema */ type: "bar" | "pie" | "word" | "icon"; /** * name of table */ model: "entities" | "signatures" | "libraries" | "resources"; /** * name of the field to count */ field: string; /** * Name of the field for searching will default to field if not specified. (Top level for arrays of object) */ search_field?: string; /** * Limit of counts to include in the visualization. Default: None */ limit?: number; /** * For groups with multiple components, we'll use this to order the components */ priority: number; /** * For groups with multiple components, we'll use this to order the components */ props?: { [k: string]: any; }; [k: string]: any; } | { /** * Prefered name of the visualization */ text: string; /** * type of count schema */ type: "score"; /** * name of table */ model: "entities" | "signatures" | "libraries" | "resources"; /** * name of the field to count */ field: string; /** * name of the field to order things by */ order_by: string; /** * Ordering */ order: "ASC" | "DESC"; /** * limit of the score. default: none */ limit?: number; /** * Name of the field for searching will default to field if not specified. (Top level for arrays of object) */ search_field?: string; /** * For groups with multiple components, we'll use this to order the components */ priority: number; [k: string]: any; } | { /** * Prefered name of the visualization */ text: string; /** * type of count schema */ type: "component"; /** * location of the component */ component: string; /** * user props to pass the component */ props: { [k: string]: any; }; /** * For groups with multiple components, we'll use this to order the components */ priority: number; [k: string]: any; } | { /** * Prefered name of the visualization */ text: string; /** * type of count schema */ type: "filter"; /** * name of table */ model: "entities" | "signatures" | "libraries" | "resources"; /** * mdi icon to use */ icon?: string; /** * name of the filter field */ field: string; /** * field use for searching */ search_field: string; /** * Order of the filter */ priority?: number; [k: string]: any; });