@conboai/app.db.query 0.8.44 → 0.8.46

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 (34) hide show
  1. package/dist/app.db.query.js +34065 -32789
  2. package/dist/apps/FeedStreams/components/ImageGrid/ErrorBox.d.ts +6 -1
  3. package/dist/apps/FeedStreams/components/ImageGrid/NoData.d.ts +4 -1
  4. package/dist/apps/SearchTool/SearchTool.d.ts +8 -0
  5. package/dist/apps/SearchTool/components/AppContent/AppContent.d.ts +2 -0
  6. package/dist/apps/SearchTool/components/AppContent/index.d.ts +1 -0
  7. package/dist/apps/SearchTool/components/AppHeader/AppHeader.d.ts +6 -0
  8. package/dist/apps/SearchTool/components/AppHeader/index.d.ts +1 -0
  9. package/dist/apps/SearchTool/components/AppLeftBar/ActionsPanel.d.ts +4 -0
  10. package/dist/apps/SearchTool/components/AppLeftBar/AppLeftBar.d.ts +4 -0
  11. package/dist/apps/SearchTool/components/AppLeftBar/index.d.ts +1 -0
  12. package/dist/apps/SearchTool/components/AppLeftBar/styles.d.ts +4 -0
  13. package/dist/apps/SearchTool/components/AppLeftBar/types.d.ts +27 -0
  14. package/dist/apps/SearchTool/components/AppRightBar/AppRightBar.d.ts +5 -0
  15. package/dist/apps/SearchTool/components/AppRightBar/columnsDefs.d.ts +26 -0
  16. package/dist/apps/SearchTool/components/AppRightBar/index.d.ts +1 -0
  17. package/dist/apps/SearchTool/components/AppRightBar/styles.d.ts +4 -0
  18. package/dist/apps/SearchTool/components/AppRightBar/utils.d.ts +44 -0
  19. package/dist/apps/SearchTool/components/ImageGrid/ImageGrid.d.ts +16 -0
  20. package/dist/apps/SearchTool/components/ImageGrid/ImageItem.d.ts +18 -0
  21. package/dist/apps/SearchTool/components/ImageGrid/styles.d.ts +15 -0
  22. package/dist/apps/SearchTool/components/ImageModal/ImageModal.d.ts +7 -0
  23. package/dist/apps/SearchTool/components/ImageModal/index.d.ts +1 -0
  24. package/dist/apps/SearchTool/components/ImageModal/styles.d.ts +14 -0
  25. package/dist/apps/SearchTool/hooks/useActions.d.ts +28 -0
  26. package/dist/apps/SearchTool/hooks/useClearData.d.ts +2 -0
  27. package/dist/apps/SearchTool/hooks/useKitsEffect.d.ts +6 -0
  28. package/dist/apps/SearchTool/hooks/useMountEffect.d.ts +4 -0
  29. package/dist/apps/SearchTool/hooks/useSearch.d.ts +8 -0
  30. package/dist/apps/SearchTool/hooks/useTimezoneEffect.d.ts +10 -0
  31. package/dist/apps/SearchTool/index.d.ts +1 -0
  32. package/dist/apps/SearchTool/utils.d.ts +11 -0
  33. package/dist/build/index.d.ts +1 -0
  34. package/package.json +1 -1
@@ -1,2 +1,7 @@
1
- declare const ErrorBox: () => import("react/jsx-runtime").JSX.Element;
1
+ import { SxProps } from '@mui/material';
2
+
3
+ declare const ErrorBox: ({ title, sx }: {
4
+ title?: string;
5
+ sx?: SxProps;
6
+ }) => import("react/jsx-runtime").JSX.Element;
2
7
  export default ErrorBox;
@@ -1,2 +1,5 @@
1
- declare const NoData: () => import("react/jsx-runtime").JSX.Element;
1
+ type NoDataProps = {
2
+ title?: string;
3
+ };
4
+ declare const NoData: ({ title }: NoDataProps) => import("react/jsx-runtime").JSX.Element;
2
5
  export default NoData;
@@ -0,0 +1,8 @@
1
+ type SearchToolProps = {
2
+ siteId: string;
3
+ baseUrl?: string;
4
+ isAdmin?: boolean;
5
+ onHomeClick?: () => void;
6
+ };
7
+ export declare const SearchTool: ({ siteId, onHomeClick, baseUrl, isAdmin }: SearchToolProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default SearchTool;
@@ -0,0 +1,2 @@
1
+ declare const AppContent: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AppContent;
@@ -0,0 +1 @@
1
+ export { default as AppContent } from './AppContent';
@@ -0,0 +1,6 @@
1
+ type AppHeaderProps = {
2
+ title?: string;
3
+ onHomeClick?: () => void;
4
+ };
5
+ export declare const AppHeader: ({ title, onHomeClick }: AppHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export { AppHeader } from './AppHeader.tsx';
@@ -0,0 +1,4 @@
1
+ import { ActionPanelProps } from './types';
2
+
3
+ declare const ActionsPanel: ({ handleSearchClick, isAutoSearchDisabled, tooltipTile, isSearchButtonDisabled, isLeftPanelShown, isTimezoneTheSame, newSiteInfo, duration, feedsOptions, feed, displayFeedsOptions, displayFeed, confidence, content, tabs, infoKitsIds, isAdmin, debouncedSearch, handelTabIndex }: ActionPanelProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionsPanel;
@@ -0,0 +1,4 @@
1
+ declare function AppLeftBar({ isAdmin }: {
2
+ isAdmin?: boolean;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ export default AppLeftBar;
@@ -0,0 +1 @@
1
+ export { default as AppLeftBar } from './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,27 @@
1
+ import { TypeTabsContent } from '@conboai/storybook.components';
2
+
3
+ export type ActionPanelProps = {
4
+ isLeftPanelShown?: boolean;
5
+ handleSearchClick: () => void;
6
+ isAutoSearchDisabled?: boolean;
7
+ tooltipTile?: string;
8
+ isSearchButtonDisabled?: boolean;
9
+ isTimezoneTheSame?: boolean;
10
+ duration: number;
11
+ feedsOptions: string[];
12
+ feed: string[];
13
+ displayFeedsOptions: string[];
14
+ displayFeed: string[];
15
+ confidence: number;
16
+ content: TypeTabsContent;
17
+ tabs: {
18
+ label: string;
19
+ value: string;
20
+ disabled?: boolean;
21
+ }[];
22
+ infoKitsIds: number[];
23
+ isAdmin?: boolean;
24
+ newSiteInfo: any;
25
+ debouncedSearch: () => void;
26
+ handelTabIndex: (value: string) => void;
27
+ };
@@ -0,0 +1,5 @@
1
+ type InputProps = {
2
+ baseUrl?: string;
3
+ };
4
+ declare const AppRightBar: ({ baseUrl }: InputProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default AppRightBar;
@@ -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,16 @@
1
+ type ImageGridProps = {
2
+ data: any[];
3
+ onModalOpen: (value: string) => void;
4
+ onClick?: (payload: {
5
+ startTime?: string;
6
+ endTime?: string;
7
+ assignedFeedId?: number;
8
+ id: string;
9
+ }) => void;
10
+ onLoadMore?: () => void;
11
+ showLoadMore?: boolean;
12
+ selectedItem?: number | string;
13
+ loading?: boolean;
14
+ };
15
+ declare const ImageGrid: ({ data, onModalOpen, onClick, onLoadMore, showLoadMore, selectedItem, loading }: ImageGridProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default ImageGrid;
@@ -0,0 +1,18 @@
1
+ type ImageItemProps = {
2
+ onClick?: (payload: {
3
+ startTime?: string;
4
+ endTime?: string;
5
+ assignedFeedId?: number;
6
+ id: string;
7
+ }) => void;
8
+ onModalOpen?: (value: string) => void;
9
+ imgUrl: string;
10
+ startTime?: string;
11
+ endTime?: string;
12
+ duration?: string;
13
+ id: string;
14
+ isActive?: boolean;
15
+ assignedFeedId?: number;
16
+ };
17
+ declare const ImageItem: ({ onClick, onModalOpen, imgUrl, startTime, endTime, duration, id, isActive, assignedFeedId }: ImageItemProps) => import("react/jsx-runtime").JSX.Element;
18
+ export default ImageItem;
@@ -0,0 +1,15 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const imageItemContentBoxSx: (isActive?: boolean) => SxProps;
4
+ export declare const descriptionBoxSx: SxProps;
5
+ export declare const imageItemCardMediaSx: SxProps;
6
+ export declare const imageGridBoxSx: SxProps;
7
+ export declare const imageItemSx: SxProps;
8
+ export declare const fullscreenIconBoxSx: SxProps;
9
+ export declare const typographyBoldSx: SxProps;
10
+ export declare const typographyRegularSx: SxProps;
11
+ export declare const mainContentSx: SxProps;
12
+ export declare const actionBtnSx: SxProps;
13
+ export declare const imageBoxSx: (isActive?: boolean) => SxProps;
14
+ export declare const loaderBoxSx: SxProps;
15
+ export declare const errorBoxSx: (isActive?: boolean) => SxProps;
@@ -0,0 +1,7 @@
1
+ interface ImageModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ imageData: any;
5
+ }
6
+ declare const ImageModal: ({ open, onClose, imageData }: ImageModalProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ImageModal;
@@ -0,0 +1 @@
1
+ export { default as ImageModal } from './ImageModal';
@@ -0,0 +1,14 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const modalBoxSx: SxProps;
4
+ export declare const backdropStyles: {
5
+ style: {
6
+ background: string;
7
+ backdropFilter: string;
8
+ };
9
+ };
10
+ export declare const cardMediaSx: SxProps;
11
+ export declare const modalContainerSx: SxProps;
12
+ export declare const typographyBoldSx: SxProps;
13
+ export declare const typographyRegularSx: SxProps;
14
+ export declare const imageItemContentBoxSx: SxProps;
@@ -0,0 +1,28 @@
1
+ import { ChangeEvent } from 'react';
2
+
3
+ declare const useActions: (debouncedSearch?: () => void) => {
4
+ isSiteTimezone: boolean;
5
+ handleToggleChange: (event: ChangeEvent<HTMLInputElement>) => void;
6
+ isAutoSearchActive: boolean;
7
+ handelAutoSearchChange: (event: ChangeEvent<HTMLInputElement>) => void;
8
+ localStartTime: Date;
9
+ localEndTime: Date;
10
+ checked: boolean;
11
+ endTimeError: string;
12
+ handleToggleCheck: () => void;
13
+ handleConfidenceChange: (value: number) => void;
14
+ startTimeError: string;
15
+ handleStartTimeError: (error: string) => void;
16
+ handleEndTimeError: (error: string) => void;
17
+ handleFeedNameChange: (selectedFeeds: any) => void;
18
+ handleDisplayFeedNameChange: (selectedFeeds: any) => void;
19
+ handleStartTimeChange: (updatedDate: any) => void;
20
+ handleEndTimeChange: (updatedDate: any) => void;
21
+ handleDurationChange: (event: any) => void;
22
+ handleKitContentChange: (kitId: number, itemName: string, value: string | string[]) => void;
23
+ isAutoSearchAvalible: boolean | 0;
24
+ timezone: string;
25
+ setLocalStartTime: import('react').Dispatch<import('react').SetStateAction<Date>>;
26
+ setLocalEndTime: import('react').Dispatch<import('react').SetStateAction<Date>>;
27
+ };
28
+ export default useActions;
@@ -0,0 +1,2 @@
1
+ declare const useClearData: () => void;
2
+ export default useClearData;
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ tabIndex: string;
3
+ frameDetailsConboKeys: string[];
4
+ };
5
+ declare const useKitsEffect: ({ tabIndex, frameDetailsConboKeys }: Props) => void;
6
+ export default useKitsEffect;
@@ -0,0 +1,4 @@
1
+ declare const useMountEffect: (tabIndex?: string) => {
2
+ frameDetailsConboKeys: string[];
3
+ };
4
+ export default useMountEffect;
@@ -0,0 +1,8 @@
1
+ declare const useSearch: () => {
2
+ handleSearch: (details?: {
3
+ skip: number;
4
+ take: number;
5
+ }, payloadBody?: any) => Promise<void>;
6
+ handleImagesSearch: (conboKeys: string[]) => Promise<void>;
7
+ };
8
+ export default useSearch;
@@ -0,0 +1,10 @@
1
+ type Props = {
2
+ isSiteTimezone: boolean;
3
+ localStartTime: Date;
4
+ localEndTime: Date;
5
+ };
6
+ type Output = {
7
+ timezone: string;
8
+ };
9
+ declare const useTimezoneEffect: ({ isSiteTimezone, localStartTime, localEndTime }: Props) => Output;
10
+ export default useTimezoneEffect;
@@ -0,0 +1 @@
1
+ export { default as SearchTool } from './SearchTool';
@@ -0,0 +1,11 @@
1
+ import { Image } from '../../store/snapshotsStore';
2
+
3
+ export type Item = {
4
+ startTime: string;
5
+ id: string;
6
+ endTime: string;
7
+ assignedFeedId: number;
8
+ imgUrl?: string;
9
+ duration?: string;
10
+ };
11
+ export declare const generateData: (a: any[], b: Image[]) => Item[];
@@ -6,4 +6,5 @@ export { EntitySearch } from '../apps/EntitySearch';
6
6
  export { ConboMatch } from '../apps/conbo-match';
7
7
  export { FeedStreams } from '../apps/FeedStreams';
8
8
  export { HeatMap } from '../apps/HeatMap';
9
+ export { SearchTool } from '../apps/SearchTool';
9
10
  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.8.44",
3
+ "version": "0.8.46",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",