@conboai/app.db.query 0.6.17 → 0.6.19

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 (40) hide show
  1. package/dist/app.db.query.js +32753 -31732
  2. package/dist/apps/Cargo/Cargo.d.ts +0 -1
  3. package/dist/apps/Cargo/components/CargoHeader/CargoHeader.d.ts +8 -0
  4. package/dist/apps/Cargo/components/CargoHeader/index.d.ts +1 -0
  5. package/dist/apps/Classifiers/Classifiers.d.ts +0 -1
  6. package/dist/apps/Classifiers/components/ClassifiersHeader/ClassifiersHeader.d.ts +5 -0
  7. package/dist/apps/Classifiers/components/ClassifiersHeader/index.d.ts +1 -0
  8. package/dist/apps/ConboKeySearch/components/AppContent/AppContent.d.ts +1 -2
  9. package/dist/apps/ConboKeySearch/components/AppContent/useColumnDefs.d.ts +8 -65
  10. package/dist/apps/ConboKeySearch/components/AppContent/utils.d.ts +16 -4
  11. package/dist/apps/ConboKeySearch/components/ConboKeySearchHeader/ConboKeySearchHeader.d.ts +8 -0
  12. package/dist/apps/ConboKeySearch/components/ConboKeySearchHeader/index.d.ts +1 -0
  13. package/dist/apps/EntitySearch/components/EntitySearchHeader/EntitySearchHeader.d.ts +7 -0
  14. package/dist/apps/EntitySearch/components/EntitySearchHeader/index.d.ts +1 -0
  15. package/dist/apps/ImageAnalysis/components/AppContent/AppContent.d.ts +11 -0
  16. package/dist/apps/ImageAnalysis/components/AppContent/index.d.ts +1 -0
  17. package/dist/apps/ImageAnalysis/components/AppContent/styles.d.ts +4 -0
  18. package/dist/apps/ImageAnalysis/components/AppContent/useColumnDefs.d.ts +73 -0
  19. package/dist/apps/ImageAnalysis/components/AppContent/utils.d.ts +13 -0
  20. package/dist/apps/ImageAnalysis/components/ImageAnalysisHeader/ImageAnalysisHeader.d.ts +7 -0
  21. package/dist/apps/ImageAnalysis/components/ImageAnalysisHeader/index.d.ts +1 -0
  22. package/dist/apps/conbo-match/components/app-content/app-content.d.ts +1 -0
  23. package/dist/apps/conbo-match/components/app-content/index.d.ts +1 -0
  24. package/dist/apps/conbo-match/components/app-content/styles.d.ts +4 -0
  25. package/dist/apps/conbo-match/components/app-content/use-column-defs.d.ts +12 -0
  26. package/dist/apps/conbo-match/components/app-content/utils.d.ts +21 -0
  27. package/dist/apps/conbo-match/components/app-content-wrapper/app-content-wrapper.d.ts +1 -0
  28. package/dist/apps/conbo-match/components/app-content-wrapper/index.d.ts +1 -0
  29. package/dist/apps/conbo-match/components/app-sidebar-left/app-sidebar-left.d.ts +1 -0
  30. package/dist/apps/conbo-match/components/app-sidebar-left/index.d.ts +1 -0
  31. package/dist/apps/conbo-match/components/app-sidebar-left/styles.d.ts +7 -0
  32. package/dist/apps/conbo-match/components/conbo-match-header/conbo-match-header.d.ts +6 -0
  33. package/dist/apps/conbo-match/components/conbo-match-header/index.d.ts +1 -0
  34. package/dist/apps/conbo-match/conbo-match.d.ts +8 -0
  35. package/dist/apps/conbo-match/index.d.ts +1 -0
  36. package/dist/apps/conbo-match/mocks.d.ts +10 -0
  37. package/dist/apps/conbo-match/styles.d.ts +3 -0
  38. package/dist/apps/conbo-match/types.d.ts +12 -0
  39. package/dist/build/index.d.ts +1 -0
  40. package/package.json +10 -12
@@ -1,7 +1,6 @@
1
1
  type InputProps = {
2
2
  siteId: string;
3
3
  baseUrl?: string;
4
- isAdmin?: boolean;
5
4
  onHomeClick?: () => void;
6
5
  };
7
6
  export declare const Cargo: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ type InputType = {
2
+ title?: string;
3
+ showSiteName?: boolean;
4
+ titleWidth?: string;
5
+ onHomeClick?: () => void;
6
+ };
7
+ export declare const CargoHeader: (props: InputType) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export { CargoHeader } from './CargoHeader';
@@ -1,7 +1,6 @@
1
1
  type InputProps = {
2
2
  siteId: string;
3
3
  baseUrl?: string;
4
- isAdmin?: boolean;
5
4
  onHomeClick?: () => void;
6
5
  };
7
6
  export declare const Classifiers: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ type InputType = {
2
+ onHomeClick?: () => void;
3
+ };
4
+ export declare const ClassifiersHeader: (props: InputType) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export { ClassifiersHeader } from './ClassifiersHeader';
@@ -2,10 +2,9 @@ import { FrameDetailUI } from '../../../../store/interfaces';
2
2
 
3
3
  interface IAppContent {
4
4
  baseUrl?: string;
5
- isImageAnalysis?: boolean;
6
5
  }
7
6
  export type FrameDetailUICmp = FrameDetailUI & {
8
7
  selected: boolean;
9
8
  };
10
- declare function AppContent({ baseUrl, isImageAnalysis }: IAppContent): import("react/jsx-runtime").JSX.Element;
9
+ declare function AppContent({ baseUrl }: IAppContent): import("react/jsx-runtime").JSX.Element;
11
10
  export default AppContent;
@@ -1,73 +1,16 @@
1
+ import { CheckboxProps } from '@mui/material/Checkbox';
2
+ import { ChangeEvent } from 'react';
3
+ import { FrameDetailUICmp } from './AppContent';
4
+ import { GridColDef, GridRenderCellParams } from '@mui/x-data-grid-pro';
1
5
 
2
6
  interface ColumnDefsProps {
3
- handleCheckBoxChange?: (event: any, params: any) => void;
4
- handleSelectAllClick?: (event: any) => void;
5
- getLabel?: (value: number) => string;
7
+ handleCheckBoxChange?: (event: ChangeEvent<HTMLInputElement>, params: GridRenderCellParams) => void;
8
+ handleSelectAllClick?: CheckboxProps["onChange"];
6
9
  getSelectedData?: () => Set<any>;
7
10
  getTotalItems?: () => number;
8
- getElementInSet?: (id: any) => any;
11
+ getElementInSet?: (id: number) => FrameDetailUICmp | null;
9
12
  }
10
13
  export declare const useColumnDefs: ({ handleCheckBoxChange, handleSelectAllClick, getSelectedData, getTotalItems, getElementInSet }: ColumnDefsProps) => {
11
- columns: ({
12
- field: string;
13
- headerName: string;
14
- disableColumnMenu: boolean;
15
- filterable: boolean;
16
- maxWidth: number;
17
- sortable: boolean;
18
- renderHeader: () => import("react/jsx-runtime").JSX.Element;
19
- renderCell: (params: any) => import("react/jsx-runtime").JSX.Element;
20
- flex?: undefined;
21
- valueGetter?: undefined;
22
- width?: undefined;
23
- } | {
24
- field: string;
25
- headerName: string;
26
- flex: number;
27
- disableColumnMenu?: undefined;
28
- filterable?: undefined;
29
- maxWidth?: undefined;
30
- sortable?: undefined;
31
- renderHeader?: undefined;
32
- renderCell?: undefined;
33
- valueGetter?: undefined;
34
- width?: undefined;
35
- } | {
36
- field: string;
37
- headerName: string;
38
- flex: number;
39
- valueGetter: (params: any, value: any) => string | undefined;
40
- disableColumnMenu?: undefined;
41
- filterable?: undefined;
42
- maxWidth?: undefined;
43
- sortable?: undefined;
44
- renderHeader?: undefined;
45
- renderCell?: undefined;
46
- width?: undefined;
47
- } | {
48
- field: string;
49
- headerName: string;
50
- width: number;
51
- renderCell: (params: any) => import("react/jsx-runtime").JSX.Element;
52
- disableColumnMenu?: undefined;
53
- filterable?: undefined;
54
- maxWidth?: undefined;
55
- sortable?: undefined;
56
- renderHeader?: undefined;
57
- flex?: undefined;
58
- valueGetter?: undefined;
59
- } | {
60
- field: string;
61
- headerName: string;
62
- sortable: boolean;
63
- filterable: boolean;
64
- disableColumnMenu: boolean;
65
- maxWidth: number;
66
- renderCell: (params: any) => import("react/jsx-runtime").JSX.Element;
67
- renderHeader?: undefined;
68
- flex?: undefined;
69
- valueGetter?: undefined;
70
- width?: undefined;
71
- })[];
14
+ columns: GridColDef[];
72
15
  };
73
16
  export {};
@@ -1,7 +1,19 @@
1
- interface IGetContentProps {
2
- gridProps: any;
3
- }
4
- export declare const getContent: ({ gridProps }: IGetContentProps) => {
1
+ import { GridColDef } from '@mui/x-data-grid-pro';
2
+ import { CustomDataGridProps } from '@conboai/storybook.components/dist/components/CustomDataGrid/CustomDataGrid';
3
+ import { FrameDetailUICmp } from './AppContent';
4
+
5
+ type InputProps = {
6
+ gridProps: {
7
+ columns: GridColDef[];
8
+ rows: FrameDetailUICmp[];
9
+ loading: string;
10
+ handleCellClick: CustomDataGridProps["onCellClick"];
11
+ selectedRowId: number;
12
+ isRowIdSelected: boolean;
13
+ isShapeSelection: boolean;
14
+ };
15
+ };
16
+ export declare const getContent: ({ gridProps }: InputProps) => {
5
17
  value: string;
6
18
  content: import("react/jsx-runtime").JSX.Element;
7
19
  }[];
@@ -0,0 +1,8 @@
1
+ type InputType = {
2
+ title?: string;
3
+ showSiteName?: boolean;
4
+ titleWidth?: string;
5
+ onHomeClick?: () => void;
6
+ };
7
+ export declare const ConboKeySearchHeader: (props: InputType) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export { ConboKeySearchHeader } from './ConboKeySearchHeader';
@@ -0,0 +1,7 @@
1
+ type InputType = {
2
+ title?: string;
3
+ showSiteName?: boolean;
4
+ onHomeClick?: () => void;
5
+ };
6
+ export declare const EntitySearchHeader: (props: InputType) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { EntitySearchHeader } from './EntitySearchHeader';
@@ -0,0 +1,11 @@
1
+ import { FrameDetailUI } from '../../../../store/interfaces';
2
+
3
+ interface IAppContent {
4
+ baseUrl?: string;
5
+ isImageAnalysis?: boolean;
6
+ }
7
+ export type FrameDetailUICmp = FrameDetailUI & {
8
+ selected: boolean;
9
+ };
10
+ declare function AppContent({ baseUrl, isImageAnalysis }: IAppContent): import("react/jsx-runtime").JSX.Element;
11
+ export default AppContent;
@@ -0,0 +1 @@
1
+ export { default as AppContent } from './AppContent.tsx';
@@ -0,0 +1,4 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const checkBoxSx: SxProps;
4
+ export declare const formControlLabelSx: SxProps;
@@ -0,0 +1,73 @@
1
+ import { CheckboxProps } from '@mui/material/Checkbox';
2
+
3
+ interface ColumnDefsProps {
4
+ handleCheckBoxChange?: (event: any, params: any) => void;
5
+ handleSelectAllClick?: CheckboxProps["onChange"];
6
+ getSelectedData?: () => Set<any>;
7
+ getTotalItems?: () => number;
8
+ getElementInSet?: (id: any) => any;
9
+ }
10
+ export declare const useColumnDefs: ({ handleCheckBoxChange, handleSelectAllClick, getSelectedData, getTotalItems, getElementInSet }: ColumnDefsProps) => {
11
+ columns: ({
12
+ field: string;
13
+ headerName: string;
14
+ disableColumnMenu: boolean;
15
+ filterable: boolean;
16
+ maxWidth: number;
17
+ sortable: boolean;
18
+ renderHeader: () => import("react/jsx-runtime").JSX.Element;
19
+ renderCell: (params: any) => import("react/jsx-runtime").JSX.Element;
20
+ flex?: undefined;
21
+ valueGetter?: undefined;
22
+ width?: undefined;
23
+ } | {
24
+ field: string;
25
+ headerName: string;
26
+ flex: number;
27
+ disableColumnMenu?: undefined;
28
+ filterable?: undefined;
29
+ maxWidth?: undefined;
30
+ sortable?: undefined;
31
+ renderHeader?: undefined;
32
+ renderCell?: undefined;
33
+ valueGetter?: undefined;
34
+ width?: undefined;
35
+ } | {
36
+ field: string;
37
+ headerName: string;
38
+ flex: number;
39
+ valueGetter: (params: any, value: any) => string | undefined;
40
+ disableColumnMenu?: undefined;
41
+ filterable?: undefined;
42
+ maxWidth?: undefined;
43
+ sortable?: undefined;
44
+ renderHeader?: undefined;
45
+ renderCell?: undefined;
46
+ width?: undefined;
47
+ } | {
48
+ field: string;
49
+ headerName: string;
50
+ width: number;
51
+ renderCell: (params: any) => import("react/jsx-runtime").JSX.Element;
52
+ disableColumnMenu?: undefined;
53
+ filterable?: undefined;
54
+ maxWidth?: undefined;
55
+ sortable?: undefined;
56
+ renderHeader?: undefined;
57
+ flex?: undefined;
58
+ valueGetter?: undefined;
59
+ } | {
60
+ field: string;
61
+ headerName: string;
62
+ sortable: boolean;
63
+ filterable: boolean;
64
+ disableColumnMenu: boolean;
65
+ maxWidth: number;
66
+ renderCell: (params: any) => import("react/jsx-runtime").JSX.Element;
67
+ renderHeader?: undefined;
68
+ flex?: undefined;
69
+ valueGetter?: undefined;
70
+ width?: undefined;
71
+ })[];
72
+ };
73
+ export {};
@@ -0,0 +1,13 @@
1
+ interface IGetContentProps {
2
+ gridProps: any;
3
+ }
4
+ export declare const getContent: ({ gridProps }: IGetContentProps) => {
5
+ value: string;
6
+ content: import("react/jsx-runtime").JSX.Element;
7
+ }[];
8
+ export declare const getContentTabs: () => {
9
+ label: string;
10
+ value: string;
11
+ disabled: boolean;
12
+ }[];
13
+ export {};
@@ -0,0 +1,7 @@
1
+ type InputType = {
2
+ title?: string;
3
+ showSiteName?: boolean;
4
+ onHomeClick?: () => void;
5
+ };
6
+ export declare const ImageAnalysisHeader: (props: InputType) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { ImageAnalysisHeader } from './ImageAnalysisHeader';
@@ -0,0 +1 @@
1
+ export declare const AppContent: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './app-content';
@@ -0,0 +1,4 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const checkBoxSx: SxProps;
4
+ export declare const formControlLabelSx: SxProps;
@@ -0,0 +1,12 @@
1
+ import { GridColDef } from '@mui/x-data-grid-pro';
2
+
3
+ type ColumnDefsProps = {
4
+ selectedItemsCount?: number | null;
5
+ totalItems?: number | null;
6
+ handleSelectRow?: (value: boolean, id: number) => void;
7
+ handleSelectAllRows?: (value: boolean) => void;
8
+ };
9
+ export declare const useColumnDefs: (args: ColumnDefsProps) => {
10
+ columns: GridColDef[];
11
+ };
12
+ export {};
@@ -0,0 +1,21 @@
1
+ import { GridColDef } from '@mui/x-data-grid-pro';
2
+ import { CustomDataGridProps } from '@conboai/storybook.components/dist/components/CustomDataGrid/CustomDataGrid';
3
+ import { MatchItemType } from '../../types';
4
+
5
+ type InputProps = {
6
+ columns: GridColDef[];
7
+ selectedRowId?: number;
8
+ rows?: MatchItemType[];
9
+ loading?: boolean;
10
+ handleCellClick?: CustomDataGridProps["onCellClick"];
11
+ };
12
+ export declare const getContent: (gridProps: InputProps) => {
13
+ value: string;
14
+ content: import("react/jsx-runtime").JSX.Element;
15
+ }[];
16
+ export declare const getContentTabs: () => {
17
+ label: string;
18
+ value: string;
19
+ disabled: boolean;
20
+ }[];
21
+ export {};
@@ -0,0 +1 @@
1
+ export declare const AppContentWrapper: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './app-content-wrapper';
@@ -0,0 +1 @@
1
+ export declare const AppSidebarLeft: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './app-sidebar-left';
@@ -0,0 +1,7 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const toggleSx: SxProps;
4
+ export declare const boxSx: SxProps;
5
+ export declare const mainBoxSx: SxProps;
6
+ export declare const dividerSx: SxProps;
7
+ export declare const buttonContainerSx: SxProps;
@@ -0,0 +1,6 @@
1
+ type InputType = {
2
+ title?: string;
3
+ onHomeClick?: () => void;
4
+ };
5
+ export declare const ConboMatchHeader: (props: InputType) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './conbo-match-header';
@@ -0,0 +1,8 @@
1
+ type InputProps = {
2
+ siteId: string;
3
+ baseUrl?: string;
4
+ isAdmin?: boolean;
5
+ onHomeClick?: () => void;
6
+ };
7
+ export declare const ConboMatch: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './conbo-match';
@@ -0,0 +1,10 @@
1
+ import { MatchItemType } from './types';
2
+ import { FrameResponseDto } from '../../api/detectionPixel';
3
+
4
+ export declare const DetectionsPixelsServiceMock: {
5
+ detectionsControllerGetFrameDetails: () => {
6
+ items: MatchItemType[];
7
+ details: FrameResponseDto["details"];
8
+ time_info: any;
9
+ };
10
+ };
@@ -0,0 +1,3 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const boxSx: SxProps;
@@ -0,0 +1,12 @@
1
+ import { FrameItemDto } from '../../api/detectionPixel/models/FrameItemDto.ts';
2
+
3
+ export type MatchItemType = Omit<FrameItemDto, "start_time" | "end_time"> & {
4
+ id: number;
5
+ color: string;
6
+ startTime: string;
7
+ endTime: string;
8
+ selected: boolean;
9
+ type: string;
10
+ timezone: string;
11
+ isUtc: boolean;
12
+ };
@@ -3,4 +3,5 @@ export { Cargo } from '../apps/Cargo';
3
3
  export { ImageAnalysis } from '../apps/ImageAnalysis';
4
4
  export { ConboKeySearch } from '../apps/ConboKeySearch';
5
5
  export { EntitySearch } from '../apps/EntitySearch';
6
+ export { ConboMatch } from '../apps/conbo-match';
6
7
  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.6.17",
3
+ "version": "0.6.19",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",
@@ -21,18 +21,16 @@
21
21
  "prepare": "husky",
22
22
  "storybook": "storybook dev -p 6006",
23
23
  "build-storybook": "storybook build",
24
- "generate-classifiers": "openapi --input https://dev.test.portsight.ai/api/classification/docs-yaml --output ./src/api/classifiers",
24
+ "generate-classifiers": "openapi --input https://dev.portsight.ai/api/classification/docs-yaml --output ./src/api/classifiers",
25
25
  "generate-cargo": "openapi --input https://dev.test.portsight.ai/api/action/docs-yaml --output ./src/api/cargo",
26
- "generate-snapshots": "openapi --input https://dev.test.portsight.ai/api/snapshots/docs-yaml --output ./src/api/snapshot",
27
- "generate-detections-pixels": "openapi --input https://dev.test.portsight.ai/api/detections_pixels/docs-yaml --output ./src/api/detectionPixel",
28
- "generate-detections-geo": "openapi --input https://dev.test.portsight.ai/api/detections_geo/docs-yaml --output ./src/api/detectionGeo",
29
- "generate-tag-family-labels": "openapi --input https://dev.gateway.dev.portsight.ai/api/msm/api-yaml --output ./src/api/tagFamilyLabels",
30
- "generate-top-one": "openapi --input https://dev.test.portsight.ai/api/top1/docs-yaml --output ./src/api/topOne",
31
- "generate-cropped": "openapi --input https://dev.test.portsight.ai/api/cropped/docs-yaml --output ./src/api/cropped",
32
- "generate-poc": "openapi --input https://dev.gateway.dev.portsight.ai/api/poc/api-yaml --output ./src/api/poc",
33
- "generate-search": "openapi --input https://dev.test.portsight.ai/api/search/docs-yaml --output ./src/api/search",
34
- "generate-query-info": "openapi --input https://dev.test.portsight.ai/api/info/docs-yaml --output ./src/api/queryInfo",
35
- "generate-api": "yarn generate-classifiers && yarn generate-cargo && yarn generate-snapshots && yarn generate-detections-pixels && yarn generate-detections-geo && yarn generate-tag-family-labels && yarn generate-top-one && yarn generate-cropped && yarn generate-poc && yarn generate-search && yarn generate-query-info",
26
+ "generate-snapshots": "openapi --input https://dev.portsight.ai/api/snapshots/docs-yaml --output ./src/api/snapshot",
27
+ "generate-detections-pixels": "openapi --input https://dev.portsight.ai/api/detections_pixels/docs-yaml --output ./src/api/detectionPixel",
28
+ "generate-detections-geo": "openapi --input https://dev.portsight.ai/api/detections_geo/docs-yaml --output ./src/api/detectionGeo",
29
+ "generate-top-one": "openapi --input https://dev.portsight.ai/api/top1/docs-yaml --output ./src/api/topOne",
30
+ "generate-cropped": "openapi --input https://dev.portsight.ai/api/cropped/docs-yaml --output ./src/api/cropped",
31
+ "generate-search": "openapi --input https://dev.portsight.ai/api/search/docs-yaml --output ./src/api/search",
32
+ "generate-query-info": "openapi --input https://dev.portsight.ai/api/info/docs-yaml --output ./src/api/queryInfo",
33
+ "generate-api": "yarn generate-classifiers && yarn generate-cargo && yarn generate-snapshots && yarn generate-detections-pixels && yarn generate-detections-geo && yarn generate-top-one && yarn generate-cropped && yarn generate-search && yarn generate-query-info",
36
34
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives",
37
35
  "lint:fix": "eslint . --ext ts,tsx --fix",
38
36
  "format:check": "prettier \"src/**/*.{ts,tsx,json}\" --check",