@conboai/app.db.query 0.9.34 → 0.9.36

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.
@@ -0,0 +1,2 @@
1
+ declare const useFetchData: (currentKitId: number, baseUrl?: string, checked?: boolean) => void;
2
+ export default useFetchData;
@@ -0,0 +1,4 @@
1
+ declare const useSearch: (timezone: string, checked: boolean, baseUrl?: string) => {
2
+ search: (start: Date, end: Date) => Promise<void>;
3
+ };
4
+ export default useSearch;
@@ -0,0 +1,4 @@
1
+ export declare function getNextEntityName(tabs: {
2
+ title: string;
3
+ }[]): string;
4
+ export declare const isIndoor: (feed: any[]) => any;
@@ -0,0 +1,18 @@
1
+ import { GeoType, Shape } from '@conboai/storybook.components';
2
+
3
+ type GeoContainerProps = {
4
+ data: GeoType[];
5
+ loading?: boolean;
6
+ shouldShowNoDataFrame?: boolean;
7
+ selectedItemId: string | null;
8
+ frameStyles?: {
9
+ width: string;
10
+ height: string;
11
+ };
12
+ isIndoor?: boolean;
13
+ floorPlanCoordinates?: Shape[];
14
+ floorPlanUrl?: string;
15
+ onModalOpen?: () => void;
16
+ };
17
+ declare const GeoFloorPlanContainer: ({ data, loading, shouldShowNoDataFrame, selectedItemId, frameStyles, isIndoor, floorPlanCoordinates, floorPlanUrl, onModalOpen }: GeoContainerProps) => import("react/jsx-runtime").JSX.Element;
18
+ export default GeoFloorPlanContainer;
@@ -0,0 +1 @@
1
+ export { default as GeoFloorPlanContainer } from './GeoFloorPlanContainer';
@@ -1,5 +1,6 @@
1
1
  declare const useFovAndTrailInfo: () => {
2
2
  pixelCoordinates: any[];
3
3
  geoCoordinates: any[];
4
+ floorPlanCoordinates: any[];
4
5
  };
5
6
  export default useFovAndTrailInfo;
@@ -18,15 +18,31 @@ export declare const generatePixelTrailsPoints: (data: TrailInfoPixelData[]) =>
18
18
  polylineCircleFill: string | undefined;
19
19
  };
20
20
  }[];
21
- export declare const generateGeoTrailCoordinates: (data: TrailsItemDtoGeo[], pixelData: TrailInfoPixelData[]) => {
21
+ export declare const generateGeoTrailCoordinates: (data: TrailsItemDtoGeo[], pixelData: TrailInfoPixelData[], isFloorPlan?: boolean) => ({
22
+ id: string;
23
+ points: any;
24
+ type: ShapeType;
25
+ styles: {
26
+ stroke: string | undefined;
27
+ polylineStroke: string | undefined;
28
+ polylineCircleFill: string | undefined;
29
+ strokeColor?: undefined;
30
+ fillColor?: undefined;
31
+ };
32
+ coordinates?: undefined;
33
+ } | {
22
34
  id: string;
23
35
  coordinates: any;
24
36
  type: EntityTypes;
25
37
  styles: {
26
38
  strokeColor: string;
27
39
  fillColor: string;
40
+ stroke?: undefined;
41
+ polylineStroke?: undefined;
42
+ polylineCircleFill?: undefined;
28
43
  };
29
- }[];
44
+ points?: undefined;
45
+ })[];
30
46
  export declare const generatePixelPolygonPoints: (data: Array<Array<Array<number>>>, styles?: any) => {
31
47
  id: string;
32
48
  type: ShapeType;
@@ -37,7 +53,17 @@ export declare const generatePixelPolygonPoints: (data: Array<Array<Array<number
37
53
  styles: any;
38
54
  isFov: boolean;
39
55
  };
40
- export declare const generateGeoPolygonCoordinates: (data?: Array<Array<Array<number>>>, styles?: any) => {
56
+ export declare const generateGeoPolygonCoordinates: (data?: Array<Array<Array<number>>>, styles?: any, isFloorPlan?: boolean) => {
57
+ id: string;
58
+ type: ShapeType;
59
+ points: {
60
+ x: number;
61
+ y: number;
62
+ }[];
63
+ styles: any;
64
+ isFov: boolean;
65
+ coordinates?: undefined;
66
+ } | {
41
67
  id: string;
42
68
  type: EntityTypes;
43
69
  coordinates: {
@@ -46,6 +72,7 @@ export declare const generateGeoPolygonCoordinates: (data?: Array<Array<Array<nu
46
72
  }[] | undefined;
47
73
  styles: any;
48
74
  isFov: boolean;
75
+ points?: undefined;
49
76
  };
50
77
  interface IGetContentProps {
51
78
  gridProps: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.9.34",
3
+ "version": "0.9.36",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",
@@ -1,14 +0,0 @@
1
- import { GeoType } from '@conboai/storybook.components';
2
-
3
- type GeoContainerProps = {
4
- data: GeoType[];
5
- loading?: boolean;
6
- shouldShowNoDataFrame?: boolean;
7
- selectedItemId: string | null;
8
- frameStyles?: {
9
- width: string;
10
- height: string;
11
- };
12
- };
13
- declare const GeoContainer: ({ data, loading, shouldShowNoDataFrame, selectedItemId, frameStyles }: GeoContainerProps) => import("react/jsx-runtime").JSX.Element;
14
- export default GeoContainer;
@@ -1 +0,0 @@
1
- export { default as GeoContainer } from './GeoContainer';