@conboai/app.db.query 0.9.74 → 0.9.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.db.query.js +81346 -59206
- package/dist/apps/Cargo/components/AppContent/index.d.ts +1 -1
- package/dist/apps/Cargo/components/AppLeftBar/index.d.ts +1 -1
- package/dist/apps/Classifiers/components/LabelSelectors/LabelSelectors.d.ts +1 -1
- package/dist/apps/ConboKeySearch/components/AppLeftBar/index.d.ts +1 -1
- package/dist/apps/EntitySearch/components/AppContent/index.d.ts +1 -1
- package/dist/apps/EntitySearch/components/AppLeftBar/index.d.ts +1 -1
- package/dist/apps/EventLog/AppContent/AppContent.d.ts +2 -0
- package/dist/apps/EventLog/AppContent/AppContentWrapper.d.ts +5 -0
- package/dist/apps/EventLog/AppContent/styles.d.ts +53 -0
- package/dist/apps/EventLog/AppContent/useColumnDefs.d.ts +6 -0
- package/dist/apps/EventLog/AppContent/utils.d.ts +36 -0
- package/dist/apps/EventLog/AppLeftBar/AppLeftBar.d.ts +13 -0
- package/dist/apps/EventLog/AppLeftBar/styles.d.ts +4 -0
- package/dist/apps/EventLog/AppRightBar/AppRightBar.d.ts +6 -0
- package/dist/apps/EventLog/AppRightBar/styles.d.ts +10 -0
- package/dist/apps/EventLog/AppRightBar/useFetchRightBarData.d.ts +11 -0
- package/dist/apps/EventLog/AppRightBar/utils.d.ts +27 -0
- package/dist/apps/EventLog/EventLog.d.ts +12 -0
- package/dist/apps/EventLog/EventLogHeader/EventLogHeader.d.ts +10 -0
- package/dist/apps/HeatMap/components/AppContent/index.d.ts +1 -1
- package/dist/apps/HeatMap/components/AppLeftBar/index.d.ts +1 -1
- package/dist/apps/ImageAnalysis/components/AppContent/index.d.ts +1 -1
- package/dist/apps/ImageAnalysis/components/AppLeftBar/index.d.ts +1 -1
- package/dist/apps/SearchTool/components/AppHeader/index.d.ts +1 -1
- package/dist/apps/conbo-match/types.d.ts +1 -1
- package/dist/build/index.d.ts +1 -0
- package/package.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppContent } from './AppContent
|
|
1
|
+
export { default as AppContent } from './AppContent';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppLeftBar } from './AppLeftBar
|
|
1
|
+
export { default as AppLeftBar } from './AppLeftBar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppLeftBar } from './AppLeftBar
|
|
1
|
+
export { default as AppLeftBar } from './AppLeftBar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppContent } from './AppContent
|
|
1
|
+
export { default as AppContent } from './AppContent';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppLeftBar } from './AppLeftBar
|
|
1
|
+
export { default as AppLeftBar } from './AppLeftBar';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const headerStyles: {
|
|
2
|
+
display: string;
|
|
3
|
+
flexDirection: string;
|
|
4
|
+
alignItems: string;
|
|
5
|
+
justifyContent: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const tableWrapperStyles: {
|
|
8
|
+
display: string;
|
|
9
|
+
flexDirection: string;
|
|
10
|
+
minHeight: string;
|
|
11
|
+
maxHeight: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const imageWrapperStyles: {
|
|
14
|
+
display: string;
|
|
15
|
+
alignItems: string;
|
|
16
|
+
justifyContent: string;
|
|
17
|
+
img: {
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const dataGridStyles: {
|
|
22
|
+
flexGrow: number;
|
|
23
|
+
borderLeft: string;
|
|
24
|
+
borderRight: string;
|
|
25
|
+
"& .MuiDataGrid-columnHeader": {
|
|
26
|
+
borderLeft: string;
|
|
27
|
+
borderRight: string;
|
|
28
|
+
};
|
|
29
|
+
"& .MuiDataGrid-cell": {
|
|
30
|
+
borderLeft: string;
|
|
31
|
+
borderRight: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const footerStyles: {
|
|
35
|
+
height: string;
|
|
36
|
+
display: string;
|
|
37
|
+
justifyContent: string;
|
|
38
|
+
alignItems: string;
|
|
39
|
+
paddingRight: string;
|
|
40
|
+
borderTop: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const totalTextStyles: {
|
|
43
|
+
fontSize: number;
|
|
44
|
+
fontWeight: number;
|
|
45
|
+
};
|
|
46
|
+
export declare const mapContainerStyles: {
|
|
47
|
+
width: string;
|
|
48
|
+
height: string;
|
|
49
|
+
margin: string;
|
|
50
|
+
display: string;
|
|
51
|
+
alignItems: string;
|
|
52
|
+
justifyContent: string;
|
|
53
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IFeed } from '../../../store/types/interfaces';
|
|
2
|
+
import { GridColDef, GridInputRowSelectionModel, GridRowParams, GridSortModel } from '@mui/x-data-grid-pro';
|
|
3
|
+
import { GridPaginationModel } from '@mui/x-data-grid';
|
|
4
|
+
import { EventDto } from '../../../api/events';
|
|
5
|
+
|
|
6
|
+
interface IGetContentProps {
|
|
7
|
+
rows: IEventRow[];
|
|
8
|
+
columns: GridColDef[];
|
|
9
|
+
onRowClick?: (params: GridRowParams) => void;
|
|
10
|
+
onSortModelChange?: (model: GridSortModel) => void;
|
|
11
|
+
loading: "pending" | "done";
|
|
12
|
+
handlePaginationModelChange?: (model: GridPaginationModel) => void;
|
|
13
|
+
selectedConboKey?: GridInputRowSelectionModel;
|
|
14
|
+
}
|
|
15
|
+
export type IEventRow = {
|
|
16
|
+
id: string;
|
|
17
|
+
type: string;
|
|
18
|
+
eventId?: string;
|
|
19
|
+
assignedFeedId: string;
|
|
20
|
+
feedName: string;
|
|
21
|
+
conboKey: string;
|
|
22
|
+
startTime: string;
|
|
23
|
+
endTime: string;
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
export declare const generateEventRows: (events?: EventDto[], feeds?: IFeed[]) => IEventRow[];
|
|
27
|
+
export declare const generateDataGrid: (props: IGetContentProps) => {
|
|
28
|
+
value: string;
|
|
29
|
+
content: import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
}[];
|
|
31
|
+
export declare const getContentTabs: () => {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
}[];
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type AppLeftBarProps = {
|
|
2
|
+
localStartTime: Date;
|
|
3
|
+
localEndTime: Date;
|
|
4
|
+
search: () => void;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
setLocalStartTime: (date: Date) => void;
|
|
7
|
+
setLocalEndTime: (date: Date) => void;
|
|
8
|
+
setChecked: (val: boolean) => void;
|
|
9
|
+
timezone: string;
|
|
10
|
+
deploymentId?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function AppLeftBar({ timezone, localStartTime, localEndTime, search, checked, setLocalStartTime, setLocalEndTime, setChecked }: AppLeftBarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default AppLeftBar;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface IFetchRightPanelData {
|
|
2
|
+
conboKey: string;
|
|
3
|
+
startTime: string;
|
|
4
|
+
endTime: string;
|
|
5
|
+
assignedFeedId: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const useFetchRightBarData: () => {
|
|
8
|
+
fetchRightPanelData: ({ conboKey, startTime, endTime, assignedFeedId }: IFetchRightPanelData) => Promise<void>;
|
|
9
|
+
setRightPanelData: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type DetailsContentArgs = {
|
|
2
|
+
topOne?: {
|
|
3
|
+
[x: string]: unknown;
|
|
4
|
+
}[];
|
|
5
|
+
classifierSummary: {
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
}[];
|
|
8
|
+
kitsElements?: {
|
|
9
|
+
serial_number: number;
|
|
10
|
+
name: string;
|
|
11
|
+
labels: {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
}[];
|
|
15
|
+
}[];
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const getDetailsContent: (args: DetailsContentArgs) => {
|
|
19
|
+
value: string;
|
|
20
|
+
content: import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
}[];
|
|
22
|
+
export declare const getDetailsTabs: () => {
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
}[];
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Link } from '../../shared/RightLayout/RightLayout';
|
|
3
|
+
|
|
4
|
+
type InputProps = {
|
|
5
|
+
deploymentId: string;
|
|
6
|
+
baseUrl?: string;
|
|
7
|
+
onHomeClick?: () => void;
|
|
8
|
+
links?: Link[];
|
|
9
|
+
UserComponent?: FC;
|
|
10
|
+
};
|
|
11
|
+
export declare const EventLog: ({ deploymentId, onHomeClick, baseUrl, links, UserComponent }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
type InputType = {
|
|
4
|
+
title?: string;
|
|
5
|
+
onHomeClick?: () => void;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
UserComponent?: FC;
|
|
8
|
+
};
|
|
9
|
+
export declare const EventLogHeader: ({ title, onHomeClick, isLoading, UserComponent }: InputType) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppContent } from './AppContent
|
|
1
|
+
export { default as AppContent } from './AppContent';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppLeftBar } from './AppLeftBar
|
|
1
|
+
export { default as AppLeftBar } from './AppLeftBar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppContent } from './AppContent
|
|
1
|
+
export { default as AppContent } from './AppContent';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as AppLeftBar } from './AppLeftBar
|
|
1
|
+
export { default as AppLeftBar } from './AppLeftBar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AppHeader } from './AppHeader
|
|
1
|
+
export { AppHeader } from './AppHeader';
|
package/dist/build/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Classifiers } from '../apps/Classifiers';
|
|
2
2
|
export { Cargo } from '../apps/Cargo';
|
|
3
3
|
export { ImageAnalysis } from '../apps/ImageAnalysis';
|
|
4
|
+
export { EventLog } from '../apps/EventLog/EventLog';
|
|
4
5
|
export { ConboKeySearch } from '../apps/ConboKeySearch';
|
|
5
6
|
export { EntitySearch } from '../apps/EntitySearch';
|
|
6
7
|
export { ConboMatch } from '../apps/conbo-match';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conboai/app.db.query",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.76",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/app.db.query.js",
|
|
6
6
|
"types": "dist/build/index.d.ts",
|
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
"generate-images": "openapi --input https://dev.portsight.ai/api/images/docs-yaml --output ./src/api/images",
|
|
35
35
|
"generate-floor-plan": "openapi --input https://portsight.ai/api/floorplan/docs-yaml --output ./src/api/floorPlan",
|
|
36
36
|
"generate-position": "openapi --input https://dev.portsight.ai/api/position/docs-yaml --output ./src/api/position",
|
|
37
|
+
"generate-events": "openapi --input https://dev.portsight.ai/api/events/docs-yaml --output ./src/api/events",
|
|
38
|
+
"generate-deployments": "openapi --input https://portsight.ai/api/deployment/docs-yaml --output ./src/api/deployments",
|
|
37
39
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives",
|
|
38
40
|
"lint-fix": "eslint . --ext ts,tsx --fix",
|
|
39
41
|
"format-check": "prettier \"src/**/*.{ts,tsx,json}\" --check",
|