climb-onyx-gui 0.14.0-dev.2 → 0.14.0-dev.4
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/climb-onyx-gui.js +2303 -2311
- package/dist/components/Header.d.ts +0 -2
- package/dist/interfaces.d.ts +8 -9
- package/dist/types.d.ts +36 -38
- package/package.json +1 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ExportStatus, ProjectField } from './types';
|
|
2
2
|
|
|
3
|
-
interface OnyxProps {
|
|
3
|
+
export interface OnyxProps {
|
|
4
4
|
httpPathHandler: (path: string) => Promise<Response>;
|
|
5
5
|
s3PathHandler: (path: string) => Promise<void>;
|
|
6
6
|
fileWriter: (path: string, content: string) => Promise<void>;
|
|
7
|
-
extVersion
|
|
7
|
+
extVersion: string;
|
|
8
8
|
}
|
|
9
|
-
interface ProjectProps extends OnyxProps {
|
|
9
|
+
export interface ProjectProps extends OnyxProps {
|
|
10
10
|
project: string;
|
|
11
11
|
}
|
|
12
|
-
interface PageProps extends ProjectProps {
|
|
12
|
+
export interface PageProps extends ProjectProps {
|
|
13
13
|
darkMode: boolean;
|
|
14
14
|
}
|
|
15
|
-
interface DataProps extends PageProps {
|
|
15
|
+
export interface DataProps extends PageProps {
|
|
16
16
|
projectFields: Map<string, ProjectField>;
|
|
17
17
|
projectDescription: string;
|
|
18
18
|
typeLookups: Map<string, string[]>;
|
|
@@ -21,7 +21,7 @@ interface DataProps extends PageProps {
|
|
|
21
21
|
handleProjectRecordShow: (recordID: string) => void;
|
|
22
22
|
handleAnalysisShow: (analysisID: string) => void;
|
|
23
23
|
}
|
|
24
|
-
interface IDProps extends DataProps {
|
|
24
|
+
export interface IDProps extends DataProps {
|
|
25
25
|
ID: string;
|
|
26
26
|
tabKey: string;
|
|
27
27
|
setTabKey: (key: string) => void;
|
|
@@ -29,11 +29,11 @@ interface IDProps extends DataProps {
|
|
|
29
29
|
setDataPanelTabKey: (key: string) => void;
|
|
30
30
|
onHide: () => void;
|
|
31
31
|
}
|
|
32
|
-
interface ResultsProps extends DataProps {
|
|
32
|
+
export interface ResultsProps extends DataProps {
|
|
33
33
|
title: string;
|
|
34
34
|
searchPath: string;
|
|
35
35
|
}
|
|
36
|
-
interface ExportHandlerProps {
|
|
36
|
+
export interface ExportHandlerProps {
|
|
37
37
|
fileName: string;
|
|
38
38
|
statusToken: {
|
|
39
39
|
status: ExportStatus;
|
|
@@ -42,4 +42,3 @@ interface ExportHandlerProps {
|
|
|
42
42
|
setExportProgress: (exportProgress: number) => void;
|
|
43
43
|
setExportError: (error: Error) => void;
|
|
44
44
|
}
|
|
45
|
-
export type { DataProps, ExportHandlerProps, IDProps, OnyxProps, PageProps, ProjectProps, ResultsProps, };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,35 +1,43 @@
|
|
|
1
|
-
declare enum RecordTabKeys {
|
|
1
|
+
export declare enum RecordTabKeys {
|
|
2
2
|
Data = "record-data-tab",
|
|
3
3
|
History = "record-history-tab",
|
|
4
4
|
Analyses = "record-analyses-tab"
|
|
5
5
|
}
|
|
6
|
-
declare enum AnalysisTabKeys {
|
|
6
|
+
export declare enum AnalysisTabKeys {
|
|
7
7
|
Data = "analysis-data-tab",
|
|
8
8
|
History = "analysis-history-tab",
|
|
9
9
|
Records = "analysis-records-tab",
|
|
10
10
|
Upstream = "analysis-upstream-tab",
|
|
11
11
|
Downstream = "analysis-downstream-tab"
|
|
12
12
|
}
|
|
13
|
-
declare enum DataPanelTabKeys {
|
|
13
|
+
export declare enum DataPanelTabKeys {
|
|
14
14
|
Details = "data-panel-details"
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
export declare enum ExportStatus {
|
|
17
|
+
READY = 0,
|
|
18
|
+
RUNNING = 1,
|
|
19
|
+
WRITING = 2,
|
|
20
|
+
FINISHED = 3,
|
|
21
|
+
CANCELLED = 4,
|
|
22
|
+
ERROR = 5
|
|
23
|
+
}
|
|
24
|
+
export type FieldType = "text" | "choice" | "integer" | "decimal" | "date" | "datetime" | "bool" | "relation" | "array" | "structure" | "";
|
|
25
|
+
export type GraphType = "line" | "bar" | "pie" | "";
|
|
26
|
+
export type ProjectField = {
|
|
19
27
|
type: FieldType;
|
|
20
28
|
description: string;
|
|
21
29
|
actions: string[];
|
|
22
30
|
values?: string[];
|
|
23
31
|
fields?: Record<string, ProjectField>;
|
|
24
32
|
};
|
|
25
|
-
type FilterConfig = {
|
|
33
|
+
export type FilterConfig = {
|
|
26
34
|
key: string;
|
|
27
35
|
type: FieldType;
|
|
28
36
|
field: string;
|
|
29
37
|
lookup: string;
|
|
30
38
|
value: string;
|
|
31
39
|
};
|
|
32
|
-
type GraphConfig = {
|
|
40
|
+
export type GraphConfig = {
|
|
33
41
|
key: string;
|
|
34
42
|
type: GraphType;
|
|
35
43
|
field: string;
|
|
@@ -38,64 +46,54 @@ type GraphConfig = {
|
|
|
38
46
|
filters: FilterConfig[];
|
|
39
47
|
yAxisType: string;
|
|
40
48
|
};
|
|
41
|
-
|
|
42
|
-
READY = 0,
|
|
43
|
-
RUNNING = 1,
|
|
44
|
-
WRITING = 2,
|
|
45
|
-
FINISHED = 3,
|
|
46
|
-
CANCELLED = 4,
|
|
47
|
-
ERROR = 5
|
|
48
|
-
}
|
|
49
|
-
type TypeObject = {
|
|
49
|
+
export type TypeObject = {
|
|
50
50
|
type: FieldType;
|
|
51
51
|
lookups: string[];
|
|
52
52
|
};
|
|
53
|
-
type LookupObject = {
|
|
53
|
+
export type LookupObject = {
|
|
54
54
|
lookup: string;
|
|
55
55
|
description: string;
|
|
56
56
|
};
|
|
57
|
-
type ChoiceDescription = {
|
|
57
|
+
export type ChoiceDescription = {
|
|
58
58
|
description: string;
|
|
59
59
|
is_active: boolean;
|
|
60
60
|
};
|
|
61
|
-
type OptionType = {
|
|
61
|
+
export type OptionType = {
|
|
62
62
|
label: string;
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
-
type ErrorType = Record<string, string | string[]>;
|
|
66
|
-
type RecordType = Record<string, string | number | boolean | object | null | RecordType[]>;
|
|
67
|
-
type SummaryType = Record<"count", number> & Record<string, string | number | boolean | object | null>;
|
|
68
|
-
type ProjectPermissionType = {
|
|
65
|
+
export type ErrorType = Record<string, string | string[]>;
|
|
66
|
+
export type RecordType = Record<string, string | number | boolean | object | null | RecordType[]>;
|
|
67
|
+
export type SummaryType = Record<"count", number> & Record<string, string | number | boolean | object | null>;
|
|
68
|
+
export type ProjectPermissionType = {
|
|
69
69
|
project: string;
|
|
70
70
|
scope: string;
|
|
71
71
|
actions: string[];
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
export interface ErrorResponse {
|
|
74
74
|
status: "fail" | "error";
|
|
75
75
|
code: number;
|
|
76
76
|
messages: ErrorType;
|
|
77
|
-
}
|
|
78
|
-
|
|
77
|
+
}
|
|
78
|
+
export interface SuccessResponse {
|
|
79
79
|
status: "success";
|
|
80
80
|
code: number;
|
|
81
|
-
}
|
|
82
|
-
|
|
81
|
+
}
|
|
82
|
+
export interface ListResponse extends SuccessResponse {
|
|
83
83
|
data: RecordType[];
|
|
84
84
|
next: string | null;
|
|
85
85
|
previous: string | null;
|
|
86
|
-
}
|
|
87
|
-
|
|
86
|
+
}
|
|
87
|
+
export interface DetailResponse extends SuccessResponse {
|
|
88
88
|
data: RecordType;
|
|
89
|
-
}
|
|
90
|
-
|
|
89
|
+
}
|
|
90
|
+
export interface FieldsResponse extends SuccessResponse {
|
|
91
91
|
data: {
|
|
92
92
|
name: string;
|
|
93
93
|
description: string;
|
|
94
94
|
fields: Record<string, ProjectField>;
|
|
95
95
|
};
|
|
96
|
-
}
|
|
97
|
-
|
|
96
|
+
}
|
|
97
|
+
export interface ChoicesResponse extends SuccessResponse {
|
|
98
98
|
data: Record<string, ChoiceDescription>;
|
|
99
|
-
}
|
|
100
|
-
export type { ChoiceDescription, ChoicesResponse, DetailResponse, ErrorResponse, ErrorType, FieldsResponse, FieldType, FilterConfig, GraphConfig, GraphType, ListResponse, LookupObject, OptionType, ProjectField, ProjectPermissionType, RecordType, SuccessResponse, SummaryType, TypeObject, };
|
|
101
|
-
export { AnalysisTabKeys, DataPanelTabKeys, ExportStatus, RecordTabKeys };
|
|
99
|
+
}
|