@conboai/app.db.query 0.8.30 → 0.8.32
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.
- package/dist/app.db.query.js +16614 -16582
- package/dist/apps/conbo-match/components/app-content/utils.d.ts +2 -8
- package/dist/apps/conbo-match/components/app-sidebar-left/app-sidebar-left.d.ts +5 -1
- package/dist/apps/conbo-match/components/sidebar-left-filter/sidebar-left-filter.d.ts +6 -4
- package/dist/apps/conbo-match/utils.d.ts +41 -0
- package/package.json +1 -2
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { CustomDataGridProps } from '@conboai/storybook.components/dist/components/CustomDataGrid/CustomDataGrid';
|
|
2
|
+
import { OutputItem } from '../../utils';
|
|
2
3
|
|
|
3
4
|
export type InputProps = {
|
|
4
5
|
columns: CustomDataGridProps["columns"];
|
|
5
6
|
selectedRowId?: number;
|
|
6
|
-
rows?:
|
|
7
|
-
id: number;
|
|
8
|
-
assigned_feed_id: number | null;
|
|
9
|
-
startTime: string;
|
|
10
|
-
endTime: string;
|
|
11
|
-
conbo_key: string;
|
|
12
|
-
confidence: number | null;
|
|
13
|
-
}[];
|
|
7
|
+
rows?: OutputItem[];
|
|
14
8
|
loading?: boolean;
|
|
15
9
|
handleCellClick?: CustomDataGridProps["onCellClick"];
|
|
16
10
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { FormSubmitFn } from '../../../../helpers/utils/forms';
|
|
2
|
-
|
|
3
1
|
export type MatchFilterFormType = {
|
|
4
2
|
conboKey?: string;
|
|
5
3
|
keyExclusive?: boolean;
|
|
@@ -7,7 +5,11 @@ export type MatchFilterFormType = {
|
|
|
7
5
|
};
|
|
8
6
|
type SidebarLeftFilterInput = {
|
|
9
7
|
loadingFetch?: boolean;
|
|
10
|
-
onSubmit?:
|
|
8
|
+
onSubmit?: (value: {
|
|
9
|
+
conboKey: string;
|
|
10
|
+
baseUrl?: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
baseUrl?: string;
|
|
11
13
|
};
|
|
12
|
-
export declare const SidebarLeftFilter: (
|
|
14
|
+
export declare const SidebarLeftFilter: ({ loadingFetch, onSubmit, baseUrl }: SidebarLeftFilterInput) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type IntersectionItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
distance: number;
|
|
4
|
+
time: number;
|
|
5
|
+
source: string;
|
|
6
|
+
start: string;
|
|
7
|
+
end: string;
|
|
8
|
+
assigned_id: number;
|
|
9
|
+
};
|
|
10
|
+
type FeatureItem = {
|
|
11
|
+
id: string;
|
|
12
|
+
distance: number;
|
|
13
|
+
source: string;
|
|
14
|
+
start: string;
|
|
15
|
+
end: string;
|
|
16
|
+
assigned_id: number;
|
|
17
|
+
};
|
|
18
|
+
type InputData = {
|
|
19
|
+
intersection: IntersectionItem[];
|
|
20
|
+
feature: FeatureItem[];
|
|
21
|
+
};
|
|
22
|
+
export type OutputItem = {
|
|
23
|
+
distance: number;
|
|
24
|
+
origin: string;
|
|
25
|
+
conbo_key: string;
|
|
26
|
+
time: number;
|
|
27
|
+
source: string;
|
|
28
|
+
startTime: string;
|
|
29
|
+
endTime: string;
|
|
30
|
+
assigned_feed_id: number;
|
|
31
|
+
} | {
|
|
32
|
+
distance: number;
|
|
33
|
+
origin: string;
|
|
34
|
+
conbo_key: string;
|
|
35
|
+
source: string;
|
|
36
|
+
startTime: string;
|
|
37
|
+
endTime: string;
|
|
38
|
+
assigned_feed_id: number;
|
|
39
|
+
};
|
|
40
|
+
export declare function transformData(data: InputData): OutputItem[];
|
|
41
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conboai/app.db.query",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/app.db.query.js",
|
|
6
6
|
"types": "dist/build/index.d.ts",
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"generate-search": "openapi --input https://dev.portsight.ai/api/search/docs-yaml --output ./src/api/search",
|
|
33
33
|
"generate-query-info": "openapi --input https://dev.portsight.ai/api/info/docs-yaml --output ./src/api/queryInfo",
|
|
34
34
|
"generate-images": "openapi --input https://dev.portsight.ai/api/images/docs-yaml --output ./src/api/images",
|
|
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-poc && yarn generate-search && yarn generate-query-info && generate-images",
|
|
36
35
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives",
|
|
37
36
|
"lint:fix": "eslint . --ext ts,tsx --fix",
|
|
38
37
|
"format:check": "prettier \"src/**/*.{ts,tsx,json}\" --check",
|