@conboai/app.db.query 0.9.73 → 0.9.75

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.
Files changed (28) hide show
  1. package/dist/app.db.query.js +80289 -58021
  2. package/dist/apps/Cargo/components/AppContent/index.d.ts +1 -1
  3. package/dist/apps/Cargo/components/AppLeftBar/index.d.ts +1 -1
  4. package/dist/apps/Classifiers/components/LabelSelectors/LabelSelectors.d.ts +1 -1
  5. package/dist/apps/ConboKeySearch/components/AppLeftBar/index.d.ts +1 -1
  6. package/dist/apps/EntitySearch/components/AppContent/index.d.ts +1 -1
  7. package/dist/apps/EntitySearch/components/AppLeftBar/index.d.ts +1 -1
  8. package/dist/apps/EventLog/AppContent/AppContent.d.ts +2 -0
  9. package/dist/apps/EventLog/AppContent/AppContentWrapper.d.ts +5 -0
  10. package/dist/apps/EventLog/AppContent/styles.d.ts +53 -0
  11. package/dist/apps/EventLog/AppContent/useColumnDefs.d.ts +6 -0
  12. package/dist/apps/EventLog/AppContent/utils.d.ts +36 -0
  13. package/dist/apps/EventLog/AppLeftBar/AppLeftBar.d.ts +13 -0
  14. package/dist/apps/EventLog/AppLeftBar/styles.d.ts +4 -0
  15. package/dist/apps/EventLog/AppRightBar/AppRightBar.d.ts +6 -0
  16. package/dist/apps/EventLog/AppRightBar/styles.d.ts +10 -0
  17. package/dist/apps/EventLog/AppRightBar/useFetchRightBarData.d.ts +11 -0
  18. package/dist/apps/EventLog/AppRightBar/utils.d.ts +27 -0
  19. package/dist/apps/EventLog/EventLog.d.ts +10 -0
  20. package/dist/apps/EventLog/EventLogHeader/EventLogHeader.d.ts +10 -0
  21. package/dist/apps/HeatMap/components/AppContent/index.d.ts +1 -1
  22. package/dist/apps/HeatMap/components/AppLeftBar/index.d.ts +1 -1
  23. package/dist/apps/ImageAnalysis/components/AppContent/index.d.ts +1 -1
  24. package/dist/apps/ImageAnalysis/components/AppLeftBar/index.d.ts +1 -1
  25. package/dist/apps/SearchTool/components/AppHeader/index.d.ts +1 -1
  26. package/dist/apps/conbo-match/types.d.ts +1 -1
  27. package/dist/build/index.d.ts +1 -0
  28. package/package.json +3 -1
@@ -1 +1 @@
1
- export { default as AppContent } from './AppContent.tsx';
1
+ export { default as AppContent } from './AppContent';
@@ -1 +1 @@
1
- export { default as AppLeftBar } from './AppLeftBar.tsx';
1
+ export { default as AppLeftBar } from './AppLeftBar';
@@ -1,4 +1,4 @@
1
- import { LabelItem, TagValues } from '../../../../store/types/interfaces.ts';
1
+ import { LabelItem, TagValues } from '../../../../store/types/interfaces';
2
2
 
3
3
  interface ILabelSelectors {
4
4
  labels: LabelItem[];
@@ -1 +1 @@
1
- export { default as AppLeftBar } from './AppLeftBar.tsx';
1
+ export { default as AppLeftBar } from './AppLeftBar';
@@ -1 +1 @@
1
- export { default as AppContent } from './AppContent.tsx';
1
+ export { default as AppContent } from './AppContent';
@@ -1 +1 @@
1
- export { default as AppLeftBar } from './AppLeftBar.tsx';
1
+ export { default as AppLeftBar } from './AppLeftBar';
@@ -0,0 +1,2 @@
1
+ declare const AppContent: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AppContent;
@@ -0,0 +1,5 @@
1
+ declare const AppContentWrapper: ({ baseUrl, deploymentId }: {
2
+ baseUrl?: string;
3
+ deploymentId?: string;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default AppContentWrapper;
@@ -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,6 @@
1
+ import { GridColDef } from '@mui/x-data-grid-pro';
2
+ import { IEventRow } from './utils';
3
+
4
+ export declare const useColumnDefs: () => {
5
+ columns: GridColDef<IEventRow>[];
6
+ };
@@ -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,4 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const buttonContainerSx: SxProps;
4
+ export declare const durationGridSx: SxProps;
@@ -0,0 +1,6 @@
1
+ import { Link } from '../../../shared/RightLayout/RightLayout';
2
+
3
+ export declare const AppRightBar: ({ baseUrl, links }: {
4
+ baseUrl?: string;
5
+ links?: Link[];
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const loaderSx: SxProps;
4
+ export declare const progressBarStyles: {
5
+ width: string;
6
+ height: string;
7
+ justifyContent: string;
8
+ alignItems: string;
9
+ display: string;
10
+ };
@@ -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,10 @@
1
+ import { Link } from '../../shared/RightLayout/RightLayout';
2
+
3
+ type InputProps = {
4
+ deploymentId: string;
5
+ baseUrl?: string;
6
+ onHomeClick?: () => void;
7
+ links?: Link[];
8
+ };
9
+ export declare const EventLog: ({ deploymentId, onHomeClick, baseUrl, links }: InputProps) => import("react/jsx-runtime").JSX.Element;
10
+ 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.tsx';
1
+ export { default as AppContent } from './AppContent';
@@ -1 +1 @@
1
- export { default as AppLeftBar } from './AppLeftBar.tsx';
1
+ export { default as AppLeftBar } from './AppLeftBar';
@@ -1 +1 @@
1
- export { default as AppContent } from './AppContent.tsx';
1
+ export { default as AppContent } from './AppContent';
@@ -1 +1 @@
1
- export { default as AppLeftBar } from './AppLeftBar.tsx';
1
+ export { default as AppLeftBar } from './AppLeftBar';
@@ -1 +1 @@
1
- export { AppHeader } from './AppHeader.tsx';
1
+ export { AppHeader } from './AppHeader';
@@ -1,4 +1,4 @@
1
- import { FrameItemDto } from '../../api/detectionPixel/models/FrameItemDto.ts';
1
+ import { FrameItemDto } from '../../api/detectionPixel/models/FrameItemDto';
2
2
 
3
3
  export type MatchItemType = Omit<FrameItemDto, "start_time" | "end_time"> & {
4
4
  id: number;
@@ -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.73",
3
+ "version": "0.9.75",
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",