@conboai/app.db.query 0.9.18 → 0.9.20

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 (35) hide show
  1. package/dist/app.db.query.js +34795 -33764
  2. package/dist/apps/CargoTrails/CargoTrails.d.ts +7 -0
  3. package/dist/apps/CargoTrails/components/AppContent/AppContent.d.ts +5 -0
  4. package/dist/apps/CargoTrails/components/AppContent/index.d.ts +1 -0
  5. package/dist/apps/CargoTrails/components/AppHeader/AppHeader.d.ts +7 -0
  6. package/dist/apps/CargoTrails/components/AppHeader/index.d.ts +1 -0
  7. package/dist/apps/CargoTrails/components/AppLeftBar/AppLeftBar.d.ts +4 -0
  8. package/dist/apps/CargoTrails/components/AppLeftBar/index.d.ts +1 -0
  9. package/dist/apps/CargoTrails/components/AppRightBar/AppRightBar.d.ts +6 -0
  10. package/dist/apps/CargoTrails/components/AppRightBar/columnsDefs.d.ts +26 -0
  11. package/dist/apps/CargoTrails/components/AppRightBar/index.d.ts +1 -0
  12. package/dist/apps/CargoTrails/components/AppRightBar/styles.d.ts +4 -0
  13. package/dist/apps/CargoTrails/components/AppRightBar/utils.d.ts +44 -0
  14. package/dist/apps/CargoTrails/components/CargoTrailDetails/CargoTrailDetails.d.ts +4 -0
  15. package/dist/apps/CargoTrails/components/CargoTrailDetails/index.d.ts +1 -0
  16. package/dist/apps/CargoTrails/components/CargoTrailDetails/styles.d.ts +7 -0
  17. package/dist/apps/CargoTrails/components/CargoTrailDetails/types.d.ts +10 -0
  18. package/dist/apps/CargoTrails/components/CheckboxesPanel/CheckboxesPanel.d.ts +5 -0
  19. package/dist/apps/CargoTrails/components/CheckboxesPanel/index.d.ts +1 -0
  20. package/dist/apps/CargoTrails/components/CheckboxesPanel/styles.d.ts +4 -0
  21. package/dist/apps/CargoTrails/components/SnapshotBox/SnapshotBox.d.ts +4 -0
  22. package/dist/apps/CargoTrails/components/SnapshotBox/index.d.ts +1 -0
  23. package/dist/apps/CargoTrails/components/SnapshotBox/styles.d.ts +4 -0
  24. package/dist/apps/CargoTrails/components/SnapshotBox/types.d.ts +10 -0
  25. package/dist/apps/CargoTrails/hooks/useClearEffect.d.ts +2 -0
  26. package/dist/apps/CargoTrails/hooks/useColumnDefs.d.ts +15 -0
  27. package/dist/apps/CargoTrails/hooks/useSearch.d.ts +6 -0
  28. package/dist/apps/CargoTrails/index.d.ts +1 -0
  29. package/dist/apps/CargoTrails/utils.d.ts +2 -0
  30. package/dist/apps/FeedStreams/utils.d.ts +8 -0
  31. package/dist/apps/HeatMap/hooks/useColumnDefs.d.ts +2 -1
  32. package/dist/apps/ImageAnalysis/hooks/useDataEffect.d.ts +1 -5
  33. package/dist/build/index.d.ts +1 -0
  34. package/package.json +1 -1
  35. package/dist/apps/ImageAnalysis/hooks/useResizeActions.d.ts +0 -6
@@ -0,0 +1,7 @@
1
+ type PalletsProps = {
2
+ siteId: string;
3
+ baseUrl?: string;
4
+ onHomeClick?: () => void;
5
+ };
6
+ declare const CargoTrails: ({ siteId, onHomeClick, baseUrl }: PalletsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default CargoTrails;
@@ -0,0 +1,5 @@
1
+ type AppContentProps = {
2
+ baseUrl?: string;
3
+ };
4
+ declare const AppContent: ({ baseUrl }: AppContentProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default AppContent;
@@ -0,0 +1 @@
1
+ export { default as AppContent } from './AppContent';
@@ -0,0 +1,7 @@
1
+ type AppHeaderProps = {
2
+ title?: string;
3
+ onHomeClick?: () => void;
4
+ isLoading?: boolean;
5
+ };
6
+ declare const AppHeader: ({ title, onHomeClick, isLoading }: AppHeaderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default AppHeader;
@@ -0,0 +1 @@
1
+ export { default as AppHeader } from './AppHeader';
@@ -0,0 +1,4 @@
1
+ declare const AppLeftBar: ({ baseUrl }: {
2
+ baseUrl?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default AppLeftBar;
@@ -0,0 +1 @@
1
+ export { default as AppLeftBar } from './AppLeftBar';
@@ -0,0 +1,6 @@
1
+ type InputProps = {
2
+ baseUrl?: string;
3
+ selectedItem?: number;
4
+ };
5
+ declare const _default: import('react').MemoExoticComponent<({ baseUrl, selectedItem }: InputProps) => import("react/jsx-runtime").JSX.Element>;
6
+ export default _default;
@@ -0,0 +1,26 @@
1
+
2
+ export declare const verticalTableColumnDefs: () => {
3
+ topOneColumnDefs: ({
4
+ headerName: string;
5
+ field: string;
6
+ renderCell?: undefined;
7
+ } | {
8
+ headerName: string;
9
+ field: string;
10
+ renderCell: (value: number) => string;
11
+ })[];
12
+ frameInfoColumnDefs: {
13
+ headerName: string;
14
+ field: string;
15
+ renderCell: (value: number) => string;
16
+ }[];
17
+ summaryColumnDefs: ({
18
+ headerName: string;
19
+ field: string;
20
+ renderCell: (value: number) => string;
21
+ } | {
22
+ headerName: string;
23
+ field: string;
24
+ renderCell?: undefined;
25
+ })[];
26
+ };
@@ -0,0 +1 @@
1
+ export { default as AppRightBar } from './AppRightBar';
@@ -0,0 +1,4 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const typographySx: SxProps;
4
+ export declare const loaderSx: SxProps;
@@ -0,0 +1,44 @@
1
+ type GetDetailsContentProps = {
2
+ topOne?: {
3
+ [x: string]: any;
4
+ }[];
5
+ classifiersFrameInfo?: {
6
+ conbo_key: string;
7
+ tag_id: number;
8
+ value: number;
9
+ confidence: number;
10
+ element_serial_number: number;
11
+ kit_id: number;
12
+ kit_version: number;
13
+ assigned_feed_id: number;
14
+ track_id: number;
15
+ start_time: string;
16
+ end_time: string;
17
+ }[];
18
+ classifierSummary?: {
19
+ [x: string]: any;
20
+ }[];
21
+ kitsElements?: {
22
+ kit_id: number;
23
+ tag_id: number;
24
+ type: string;
25
+ category: string;
26
+ serial_number: number;
27
+ name: string;
28
+ primary: boolean;
29
+ labels: {
30
+ id: number;
31
+ name: string;
32
+ }[];
33
+ }[];
34
+ };
35
+ export declare const getDetailsContent: (args: GetDetailsContentProps) => {
36
+ value: string;
37
+ content: import("react/jsx-runtime").JSX.Element;
38
+ }[];
39
+ export declare const getDetailsTabs: () => {
40
+ label: string;
41
+ value: string;
42
+ disabled: boolean;
43
+ }[];
44
+ export {};
@@ -0,0 +1,4 @@
1
+ import { CargoTrailDetailsProps } from './types';
2
+
3
+ declare const CargoTrailDetails: ({ details, timezone }: CargoTrailDetailsProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default CargoTrailDetails;
@@ -0,0 +1 @@
1
+ export { default as CargoTrailDetails } from './CargoTrailDetails';
@@ -0,0 +1,7 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const wrapperSx: SxProps;
4
+ export declare const mainContainer: SxProps;
5
+ export declare const containerSx: SxProps;
6
+ export declare const typographyHeaderSx: SxProps;
7
+ export declare const typographySx: SxProps;
@@ -0,0 +1,10 @@
1
+ export type CargoTrailDetailsProps = {
2
+ details: {
3
+ id: number;
4
+ startTime: string;
5
+ endTime: string;
6
+ barcode: number;
7
+ type: string;
8
+ };
9
+ timezone?: string;
10
+ };
@@ -0,0 +1,5 @@
1
+ type CheckboxesPanelProps = {
2
+ isDisabled?: boolean;
3
+ };
4
+ declare const CheckboxesPanel: ({ isDisabled }: CheckboxesPanelProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default CheckboxesPanel;
@@ -0,0 +1 @@
1
+ export { default as CheckboxesPanel } from './CheckboxesPanel';
@@ -0,0 +1,4 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const wrapperBoxSx: SxProps;
4
+ export declare const containerBoxSx: SxProps;
@@ -0,0 +1,4 @@
1
+ import { SnapshotBoxProps } from './types';
2
+
3
+ declare const SnapshotBox: ({ isEmpty, imgUrl, shapes, shapeWidth, selectedShape, onShapeClick }: SnapshotBoxProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default SnapshotBox;
@@ -0,0 +1 @@
1
+ export { default as SnapshotBox } from './SnapshotBox';
@@ -0,0 +1,4 @@
1
+ export declare const cardMediaSx: (shapeWidth: string) => {
2
+ width: string;
3
+ margin: string;
4
+ };
@@ -0,0 +1,10 @@
1
+ import { Shape } from '../../../../shared/Shapes/types';
2
+
3
+ export type SnapshotBoxProps = {
4
+ isEmpty?: boolean;
5
+ imgUrl: string;
6
+ shapes: Shape[];
7
+ shapeWidth: string;
8
+ selectedShape?: string;
9
+ onShapeClick?: (shape: Shape) => void;
10
+ };
@@ -0,0 +1,2 @@
1
+ declare const useClearEffect: () => void;
2
+ export default useClearEffect;
@@ -0,0 +1,15 @@
1
+
2
+ declare const useColumnDefs: () => {
3
+ columns: ({
4
+ field: string;
5
+ headerName: string;
6
+ flex: number;
7
+ renderCell?: undefined;
8
+ } | {
9
+ field: string;
10
+ headerName: string;
11
+ flex: number;
12
+ renderCell: (params: any) => import("react/jsx-runtime").JSX.Element;
13
+ })[];
14
+ };
15
+ export default useColumnDefs;
@@ -0,0 +1,6 @@
1
+ declare const useSearch: ({ baseUrl }: {
2
+ baseUrl?: string;
3
+ }) => {
4
+ search: () => Promise<void>;
5
+ };
6
+ export default useSearch;
@@ -0,0 +1 @@
1
+ export { default as CargoTrails } from './CargoTrails';
@@ -0,0 +1,2 @@
1
+ export declare const generateCargoTrailsDots: (data: any) => any;
2
+ export declare const generateInfoText: (amount: number, date?: Date | string) => string;
@@ -10,6 +10,10 @@ export declare const generateFeedStreamsData: ({ latestSnapshots, fovInfos, base
10
10
  y: number;
11
11
  }[];
12
12
  styles: any;
13
+ coordinates: {
14
+ x: number;
15
+ y: number;
16
+ }[];
13
17
  } | null;
14
18
  displayName: string | undefined;
15
19
  name: string | undefined;
@@ -27,6 +31,10 @@ export declare const generateFeedStreamsData: ({ latestSnapshots, fovInfos, base
27
31
  y: number;
28
32
  }[];
29
33
  styles: any;
34
+ coordinates: {
35
+ x: number;
36
+ y: number;
37
+ }[];
30
38
  } | null)[] | undefined;
31
39
  unit: string | undefined;
32
40
  }[];
@@ -1,4 +1,5 @@
1
1
  import { CheckboxProps } from '@mui/material/Checkbox';
2
+ import { ChangeEvent } from 'react';
2
3
 
3
4
  export interface RowData {
4
5
  id: number | string;
@@ -13,7 +14,7 @@ interface UseColumnDefsProps {
13
14
  allSelected: boolean;
14
15
  partiallySelected: boolean;
15
16
  onToggleSelectAll: CheckboxProps["onChange"];
16
- onToggleRow: (event: React.ChangeEvent<HTMLInputElement>, row: RowData) => void;
17
+ onToggleRow: (event: ChangeEvent<HTMLInputElement>, row: RowData) => void;
17
18
  }
18
19
  export declare const useColumnDefs: ({ allSelected, partiallySelected, onToggleSelectAll, onToggleRow }: UseColumnDefsProps) => {
19
20
  columns: ({
@@ -18,11 +18,7 @@ declare const useDataEffect: (isImageAnalysis?: boolean) => {
18
18
  shapesCoordinates: GeneratedShape[];
19
19
  trailShapes: GeneratedShape[];
20
20
  fovShapes: GeneratedShape[];
21
- checkboxes: {
22
- value: boolean;
23
- label: string;
24
- disabled?: boolean;
25
- }[];
21
+ checkboxes: import('../../../store/types/types').CheckboxType[];
26
22
  columns: ({
27
23
  field: string;
28
24
  headerName: string;
@@ -7,4 +7,5 @@ export { ConboMatch } from '../apps/conbo-match';
7
7
  export { FeedStreams } from '../apps/FeedStreams';
8
8
  export { HeatMap } from '../apps/HeatMap';
9
9
  export { SearchTool } from '../apps/SearchTool';
10
+ export { CargoTrails } from '../apps/CargoTrails';
10
11
  export { default as applicationsMeta } from '../helpers/applicationsMeta';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.9.18",
3
+ "version": "0.9.20",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",
@@ -1,6 +0,0 @@
1
- declare const useResizeActions: () => {
2
- shapeStyles: any;
3
- handleMouseDown: (e: React.MouseEvent) => void;
4
- isResizing: import('react').MutableRefObject<boolean>;
5
- };
6
- export default useResizeActions;