added nped list functionality
This commit is contained in:
@@ -97,7 +97,25 @@ export type SightingWidgetType = {
|
||||
plateUrlInfrared?: string;
|
||||
plateUrlColour?: string;
|
||||
overviewPlateRect?: [number, number, number, number]; // [x,y,w,h] normalized 0..1
|
||||
plateTrack?: [number, number, number, number][]; // list of rects normalized 0..1
|
||||
plateTrack?: [number, number, number, number][];
|
||||
metadata?: Metadata;
|
||||
// list of rects normalized 0..1
|
||||
};
|
||||
|
||||
export type Metadata = {
|
||||
npedJSON: NpedJSON;
|
||||
"hotlist-matches": HotlistMatches;
|
||||
};
|
||||
|
||||
export type HotlistMatches = {
|
||||
Hotlist0: boolean;
|
||||
Hotlist1: boolean;
|
||||
Hotlist2: boolean;
|
||||
};
|
||||
|
||||
export type NpedJSON = {
|
||||
status_code: number;
|
||||
reason_phrase: string;
|
||||
};
|
||||
|
||||
export type NPEDUser = {
|
||||
@@ -111,3 +129,22 @@ export type NPEDErrorValues = {
|
||||
password?: string | undefined;
|
||||
clientId?: string | undefined;
|
||||
};
|
||||
|
||||
export type NPEDCameraConfig = {
|
||||
id: string;
|
||||
configHash: string;
|
||||
propEnabled: Prop;
|
||||
propUsername: Prop;
|
||||
propPassword: Prop;
|
||||
propClientID: Prop;
|
||||
propConnectTimeoutSeconds: Prop;
|
||||
propReadTimeoutSeconds: Prop;
|
||||
propNPEDAuthTokenURL: Prop;
|
||||
propNPEDLookupURL: Prop;
|
||||
propVerbose: Prop;
|
||||
};
|
||||
|
||||
export interface Prop {
|
||||
value: string;
|
||||
datatype: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user