@hybridcore/ui 1.3.7 → 1.4.1
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/AccordionDetails-CGs6GZQK.js +454 -0
- package/dist/Add-eepk2WTM.js +379 -0
- package/dist/Box-BPyg-Ybm.js +70 -0
- package/dist/Button-DLwB_sKd.js +354 -0
- package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
- package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
- package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
- package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
- package/dist/Delete-OHEw9lDi.js +22 -0
- package/dist/DialogContent-CxOSq6h9.js +519 -0
- package/dist/FormControlLabel-D9KFjcIx.js +193 -0
- package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
- package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
- package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
- package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
- package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
- package/dist/ListItem-CZbZ91vp.js +428 -0
- package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
- package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
- package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
- package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
- package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
- package/dist/Tabs-BzelDJKy.js +787 -0
- package/dist/TextField-D87qTh1k.js +457 -0
- package/dist/Typography-Bm7PFqUT.js +176 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/card/index.js +341 -179
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +20 -466
- package/dist/components/confirm/dialog.js +8 -149
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +191 -604
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/data-security-selectors/security-level/index.js +42 -40
- package/dist/components/date-time-picker/index.js +18 -19
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +16 -16
- package/dist/components/geometry-picker/geometry/index.js +35 -35
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/geometry-picker/kml/index.js +14 -14
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +38 -37
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
- package/dist/components/geometry-picker/parser/logic.js +33 -32
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button/styled.js +0 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
- package/dist/components/instance-form/components/variable/index.js +19 -0
- package/dist/components/instance-form/components/variables/index.js +40 -0
- package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
- package/dist/components/instance-hierarchy-table/index.js +58 -0
- package/dist/components/instance-hierarchy-table/styled.js +29 -0
- package/dist/components/instance-table/index.js +125 -0
- package/dist/components/instance-table/styled.js +13 -0
- package/dist/components/map/helpers/ol.js +1 -1
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/property-mapping/index.js +558 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
- package/dist/components/range-selector/components/date-range/index.js +9 -0
- package/dist/components/range-selector/components/geometry-range/index.js +26 -0
- package/dist/components/range-selector/components/number-range/index.js +86 -0
- package/dist/components/range-selector/components/string-range/index.js +31 -0
- package/dist/components/range-selector/index.js +59 -0
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/tabs/appleTabs.style.js +55 -0
- package/dist/components/tabs/index.js +93 -0
- package/dist/components/tabs/tab-panel.js +18 -0
- package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
- package/dist/components/template-form/components/property-list/index.js +72 -0
- package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
- package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
- package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
- package/dist/components/template-form/components/property-list/types.js +8 -0
- package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
- package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
- package/dist/components/template-form/components/select-icon/index.js +186 -0
- package/dist/components/template-form/components/select-icon/styled.js +76 -0
- package/dist/components/template-form/index.js +338 -0
- package/dist/components/template-property-filters/property.js +48 -46
- package/dist/components/tree-select/index.js +16 -15
- package/dist/components/tree-select/styled.js +2 -2
- package/dist/components/treeview-filter/index.js +8 -8
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +18 -17
- package/dist/constants/index.js +41 -0
- package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
- package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
- package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
- package/dist/dialog-v5-nL5yy.js +153 -0
- package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
- package/dist/extendSxProp-qqdkfHzS.js +30 -0
- package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
- package/dist/index-C1fczHEW.js +11042 -0
- package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
- package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
- package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
- package/dist/main.d.ts +562 -78
- package/dist/main.js +157 -157
- package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
- package/dist/property-list-form-BfP9gzSo.js +391 -0
- package/dist/requirePropFactory-BjhhI-AW.js +18 -0
- package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
- package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
- package/dist/utils/ontology.js +52 -30
- package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
- package/package.json +2 -1
- package/dist/DialogContent-BCYm_d1s.js +0 -864
- package/dist/FormControlLabel-DENNVXWL.js +0 -639
- package/dist/Typography-Dg-ROiTA.js +0 -201
- package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
- package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
- package/dist/createSvgIcon-B2WT0K4k.js +0 -87
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
- package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
- package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
package/dist/main.d.ts
CHANGED
|
@@ -8,16 +8,18 @@ import { default as default_3 } from 'ol/layer/Layer';
|
|
|
8
8
|
import { default as default_4 } from 'ol/layer/Group';
|
|
9
9
|
import { DefaultsOptions } from 'ol/interaction/defaults';
|
|
10
10
|
import { DefaultsOptions as DefaultsOptions_2 } from 'ol/control/defaults';
|
|
11
|
+
import { DefaultValues } from 'react-hook-form';
|
|
11
12
|
import { Extent } from 'ol/extent';
|
|
12
13
|
import { FC } from 'react';
|
|
13
14
|
import { Feature } from 'ol';
|
|
14
15
|
import { Geometry } from 'ol/geom';
|
|
16
|
+
import { GridActionsCellItemProps } from '@mui/x-data-grid';
|
|
15
17
|
import { IconButtonProps } from '@mui/material/IconButton';
|
|
16
18
|
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
17
19
|
import { Pixel } from 'ol/pixel';
|
|
18
20
|
import { Size } from 'ol/size';
|
|
19
|
-
import { SxProps } from '@mui/material
|
|
20
|
-
import { SxProps as SxProps_2 } from '@mui/material';
|
|
21
|
+
import { SxProps } from '@mui/material';
|
|
22
|
+
import { SxProps as SxProps_2 } from '@mui/material/styles';
|
|
21
23
|
import { Theme } from '@mui/material/styles';
|
|
22
24
|
import { View } from 'ol';
|
|
23
25
|
|
|
@@ -61,9 +63,10 @@ declare interface CardProps {
|
|
|
61
63
|
* Only available on landscape
|
|
62
64
|
*/
|
|
63
65
|
stats?: default_2.ReactNode;
|
|
66
|
+
loading?: boolean;
|
|
64
67
|
}
|
|
65
68
|
|
|
66
|
-
export declare const CollapsibleCard: FC<
|
|
69
|
+
export declare const CollapsibleCard: FC<Props_2>;
|
|
67
70
|
|
|
68
71
|
export declare const ConditionalWrapper: React.FC<ConditionalWrapperProps>;
|
|
69
72
|
|
|
@@ -107,15 +110,15 @@ declare interface ContainerProps {
|
|
|
107
110
|
/**
|
|
108
111
|
*
|
|
109
112
|
*/
|
|
110
|
-
sx?:
|
|
113
|
+
sx?: SxProps_2<Theme>;
|
|
111
114
|
/**
|
|
112
115
|
*
|
|
113
116
|
*/
|
|
114
|
-
headerSx?:
|
|
117
|
+
headerSx?: SxProps_2<Theme>;
|
|
115
118
|
/**
|
|
116
119
|
*
|
|
117
120
|
*/
|
|
118
|
-
contentSx?:
|
|
121
|
+
contentSx?: SxProps_2<Theme>;
|
|
119
122
|
/**
|
|
120
123
|
*
|
|
121
124
|
*/
|
|
@@ -126,7 +129,7 @@ declare interface ContainerProps {
|
|
|
126
129
|
children?: default_2.ReactNode;
|
|
127
130
|
}
|
|
128
131
|
|
|
129
|
-
export declare const ContextMenu: React.FC<
|
|
132
|
+
export declare const ContextMenu: React.FC<Props_3>;
|
|
130
133
|
|
|
131
134
|
declare interface DataType extends ItemProps {
|
|
132
135
|
idKey?: string;
|
|
@@ -134,7 +137,7 @@ declare interface DataType extends ItemProps {
|
|
|
134
137
|
defaultSelected?: string[];
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
export declare const DateTimePicker: React.FC<
|
|
140
|
+
export declare const DateTimePicker: React.FC<Props_4>;
|
|
138
141
|
|
|
139
142
|
declare function decrypt(encryptionKey: any, base64data: string): Promise<{
|
|
140
143
|
status: string;
|
|
@@ -187,13 +190,13 @@ declare function exportKey(key: any): Promise<JsonWebKey>;
|
|
|
187
190
|
|
|
188
191
|
declare function generateKey(): Promise<CryptoKey>;
|
|
189
192
|
|
|
190
|
-
export declare const GeometryPicker: React.FC<
|
|
193
|
+
export declare const GeometryPicker: React.FC<Props_5>;
|
|
191
194
|
|
|
192
195
|
declare interface Handle {
|
|
193
196
|
reset: () => void;
|
|
194
197
|
}
|
|
195
198
|
|
|
196
|
-
export declare const IconButton: default_2.FC<
|
|
199
|
+
export declare const IconButton: default_2.FC<Props_6>;
|
|
197
200
|
|
|
198
201
|
declare function importKey(jwk: any): Promise<CryptoKey>;
|
|
199
202
|
|
|
@@ -243,7 +246,15 @@ K extends
|
|
|
243
246
|
/**
|
|
244
247
|
*
|
|
245
248
|
*/
|
|
246
|
-
defaultValues:
|
|
249
|
+
defaultValues: DefaultValues<
|
|
250
|
+
INSTANCE.CreateObjectDTO &
|
|
251
|
+
INSTANCE.UpdateObjectDTO &
|
|
252
|
+
INSTANCE.CreateEventDTO &
|
|
253
|
+
INSTANCE.UpdateEventDTO &
|
|
254
|
+
INSTANCE.CreateAgentDTO &
|
|
255
|
+
INSTANCE.CreateFileDTO &
|
|
256
|
+
INSTANCE.UpdateFileDTO
|
|
257
|
+
>;
|
|
247
258
|
/**
|
|
248
259
|
*
|
|
249
260
|
*/
|
|
@@ -296,6 +307,8 @@ K extends
|
|
|
296
307
|
*
|
|
297
308
|
*/
|
|
298
309
|
policyList: POLICY.Policy[];
|
|
310
|
+
|
|
311
|
+
mapboxAccessToken: string;
|
|
299
312
|
/**
|
|
300
313
|
*
|
|
301
314
|
* @param template
|
|
@@ -316,6 +329,34 @@ K extends
|
|
|
316
329
|
onCancel?(): void;
|
|
317
330
|
}
|
|
318
331
|
|
|
332
|
+
export declare const InstanceHierarchyTable: FC<InstanceHierarchyTableProps>;
|
|
333
|
+
|
|
334
|
+
declare interface InstanceHierarchyTableProps {
|
|
335
|
+
data: FV.HierarchySearchResults;
|
|
336
|
+
templates: Map<string | number, ONTOLOGY.TemplateType>;
|
|
337
|
+
selectedIds?: number[];
|
|
338
|
+
enableCheckboxSelection?: boolean;
|
|
339
|
+
sortColumnsBy?: "name" | "type";
|
|
340
|
+
actions?: React.ReactElement<GridActionsCellItemProps>[];
|
|
341
|
+
actionsWidth?: number;
|
|
342
|
+
onSelect?(selectedIds: number[]): void;
|
|
343
|
+
onTitleClick?(instance: INSTANCE.GenericInstanceView): void;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export declare const InstanceTable: FC<InstanceTableProps>;
|
|
347
|
+
|
|
348
|
+
declare interface InstanceTableProps {
|
|
349
|
+
template: ONTOLOGY.TemplateType;
|
|
350
|
+
data: INSTANCE.GenericInstanceView[];
|
|
351
|
+
selectedIds?: number[];
|
|
352
|
+
enableCheckboxSelection?: boolean;
|
|
353
|
+
sortColumnsBy?: "name" | "type";
|
|
354
|
+
actions?: React.ReactElement<GridActionsCellItemProps>[];
|
|
355
|
+
actionsWidth?: number;
|
|
356
|
+
onSelect?(selectedIds: number[]): void;
|
|
357
|
+
onTitleClick?(instance: INSTANCE.GenericInstanceView): void;
|
|
358
|
+
}
|
|
359
|
+
|
|
319
360
|
declare interface ItemProps {
|
|
320
361
|
id: string | number;
|
|
321
362
|
name: string;
|
|
@@ -337,9 +378,9 @@ export declare namespace KeyProductionUtils {
|
|
|
337
378
|
}
|
|
338
379
|
}
|
|
339
380
|
|
|
340
|
-
export declare const KeyProtectionMenu: React.FC<
|
|
381
|
+
export declare const KeyProtectionMenu: React.FC<Props_7>;
|
|
341
382
|
|
|
342
|
-
export declare const Loading: React.FC<
|
|
383
|
+
export declare const Loading: React.FC<Props_8>;
|
|
343
384
|
|
|
344
385
|
export { LocalizationProvider }
|
|
345
386
|
|
|
@@ -444,7 +485,7 @@ declare interface OptionsType {
|
|
|
444
485
|
|
|
445
486
|
declare type OrientationType_2 = "portrait" | "landscape";
|
|
446
487
|
|
|
447
|
-
export declare const PhoneInput: React.FC<
|
|
488
|
+
export declare const PhoneInput: React.FC<Props_9>;
|
|
448
489
|
|
|
449
490
|
declare interface Props {
|
|
450
491
|
/**
|
|
@@ -474,31 +515,42 @@ declare interface Props {
|
|
|
474
515
|
}
|
|
475
516
|
|
|
476
517
|
declare interface Props_10 {
|
|
518
|
+
values: FV.TemplateFilter[];
|
|
519
|
+
templates: Map<string | number, ONTOLOGY.TemplateType>;
|
|
520
|
+
onChange(values: FV.TemplateFilter[]): void;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
declare interface Props_11 {
|
|
524
|
+
data: DataType[];
|
|
525
|
+
idKey?: string;
|
|
526
|
+
selected?: string[];
|
|
527
|
+
expanded?: string[];
|
|
528
|
+
disabled?: string[];
|
|
529
|
+
disableSearch?: boolean;
|
|
530
|
+
onChange?(id: string, checked: boolean): void;
|
|
531
|
+
onToggle?(event: React.SyntheticEvent, nodeIds: string[]): void;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
declare interface Props_2 {
|
|
477
535
|
header: React.ReactNode;
|
|
478
536
|
content: React.ReactNode;
|
|
479
537
|
expanded?: boolean;
|
|
480
538
|
defaultExpanded?: boolean;
|
|
481
539
|
actions?: React.ReactNode;
|
|
482
|
-
sx?:
|
|
540
|
+
sx?: SxProps;
|
|
483
541
|
onChange?(event: React.SyntheticEvent, newExpanded: boolean): void;
|
|
484
542
|
}
|
|
485
543
|
|
|
486
|
-
declare interface
|
|
487
|
-
values: FV.TemplateFilter[];
|
|
488
|
-
templates: Map<string | number, ONTOLOGY.TemplateType>;
|
|
489
|
-
onChange(values: FV.TemplateFilter[]): void;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
declare interface Props_2 {
|
|
544
|
+
declare interface Props_3 {
|
|
493
545
|
open: boolean;
|
|
494
546
|
buttons: ButtonType[];
|
|
495
547
|
position?: MousePosition;
|
|
496
548
|
width?: number | string;
|
|
497
|
-
sx?:
|
|
549
|
+
sx?: SxProps;
|
|
498
550
|
onClose?(): void;
|
|
499
551
|
}
|
|
500
552
|
|
|
501
|
-
declare interface
|
|
553
|
+
declare interface Props_4 {
|
|
502
554
|
/**
|
|
503
555
|
*
|
|
504
556
|
*/
|
|
@@ -535,7 +587,7 @@ declare interface Props_3 {
|
|
|
535
587
|
pattern?: string;
|
|
536
588
|
}
|
|
537
589
|
|
|
538
|
-
declare interface
|
|
590
|
+
declare interface Props_5 {
|
|
539
591
|
/**
|
|
540
592
|
*
|
|
541
593
|
*/
|
|
@@ -563,7 +615,7 @@ declare interface Props_4 {
|
|
|
563
615
|
onChange?(value: string): void;
|
|
564
616
|
}
|
|
565
617
|
|
|
566
|
-
declare interface
|
|
618
|
+
declare interface Props_6 extends IconButtonProps {
|
|
567
619
|
/**
|
|
568
620
|
*
|
|
569
621
|
*/
|
|
@@ -582,32 +634,21 @@ declare interface Props_5 extends IconButtonProps {
|
|
|
582
634
|
children: React.ReactNode;
|
|
583
635
|
}
|
|
584
636
|
|
|
585
|
-
declare interface
|
|
637
|
+
declare interface Props_7 {
|
|
586
638
|
encryptionKey: CryptoKey | null;
|
|
587
639
|
}
|
|
588
640
|
|
|
589
|
-
declare interface
|
|
641
|
+
declare interface Props_8 extends StyleProps {
|
|
590
642
|
show: boolean;
|
|
591
643
|
}
|
|
592
644
|
|
|
593
|
-
declare interface
|
|
645
|
+
declare interface Props_9 {
|
|
594
646
|
label: string;
|
|
595
647
|
value: string;
|
|
596
648
|
placeholder?: string;
|
|
597
649
|
onChange(value: string): void;
|
|
598
650
|
}
|
|
599
651
|
|
|
600
|
-
declare interface Props_9 {
|
|
601
|
-
data: DataType[];
|
|
602
|
-
idKey?: string;
|
|
603
|
-
selected?: string[];
|
|
604
|
-
expanded?: string[];
|
|
605
|
-
disabled?: string[];
|
|
606
|
-
disableSearch?: boolean;
|
|
607
|
-
onChange?(id: string, checked: boolean): void;
|
|
608
|
-
onToggle?(event: React.SyntheticEvent, nodeIds: string[]): void;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
652
|
declare function register(): Promise<Credential | null>;
|
|
612
653
|
|
|
613
654
|
export declare const SearchInput: (props: SearchInputProps & default_2.RefAttributes<Handle>) => default_2.ReactNode | null;
|
|
@@ -621,7 +662,7 @@ declare interface SearchInputProps {
|
|
|
621
662
|
variant?: "outlined" | "filled" | "standard";
|
|
622
663
|
size?: "small" | "medium";
|
|
623
664
|
iconSize?: "small" | "medium" | "large";
|
|
624
|
-
sx?:
|
|
665
|
+
sx?: SxProps_2<Theme>;
|
|
625
666
|
onChange?(value: string): void;
|
|
626
667
|
onSubmit?(value: string | undefined): void;
|
|
627
668
|
}
|
|
@@ -629,13 +670,7 @@ declare interface SearchInputProps {
|
|
|
629
670
|
export declare const SecurityLevel: React.FC<SecurityLevelProps>;
|
|
630
671
|
|
|
631
672
|
declare interface SecurityLevelConfig {
|
|
632
|
-
/**
|
|
633
|
-
*
|
|
634
|
-
*/
|
|
635
673
|
templateKeys: string[];
|
|
636
|
-
/**
|
|
637
|
-
*
|
|
638
|
-
*/
|
|
639
674
|
templateType: string;
|
|
640
675
|
}
|
|
641
676
|
|
|
@@ -696,21 +731,73 @@ declare interface StyleProps extends BoxProps {
|
|
|
696
731
|
}
|
|
697
732
|
|
|
698
733
|
declare interface SubmitButton {
|
|
699
|
-
/**
|
|
700
|
-
*
|
|
701
|
-
*/
|
|
702
734
|
label: string;
|
|
703
|
-
/**
|
|
704
|
-
*
|
|
705
|
-
*/
|
|
706
735
|
icon?: React.ReactNode;
|
|
707
|
-
/**
|
|
708
|
-
*
|
|
709
|
-
*/
|
|
710
736
|
onClick?(): void;
|
|
711
737
|
}
|
|
712
738
|
|
|
713
|
-
|
|
739
|
+
declare interface SubmitButton_2 {
|
|
740
|
+
label: string;
|
|
741
|
+
icon?: React.ReactNode;
|
|
742
|
+
onClick?(): void;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export declare const TemplateForm: <T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File, K extends ONTOLOGY.CreateObjectDTO | ONTOLOGY.CreateEventDTO | ONTOLOGY.CreateFileDTO | ONTOLOGY.CreateAgentDTO | ONTOLOGY.UpdateObjectDTO | ONTOLOGY.UpdateEventDTO | ONTOLOGY.UpdateFileDTO | ONTOLOGY.UpdateAgentDTO>(props: TemplateFormProps<T, K> & default_2.RefAttributes<TemplateFormHandle>) => default_2.ReactNode | null;
|
|
746
|
+
|
|
747
|
+
declare interface TemplateFormHandle {
|
|
748
|
+
resetForm: () => void;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
declare interface TemplateFormProps<
|
|
752
|
+
T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File,
|
|
753
|
+
K extends
|
|
754
|
+
| ONTOLOGY.CreateObjectDTO
|
|
755
|
+
| ONTOLOGY.CreateEventDTO
|
|
756
|
+
| ONTOLOGY.CreateFileDTO
|
|
757
|
+
| ONTOLOGY.CreateAgentDTO
|
|
758
|
+
| ONTOLOGY.UpdateObjectDTO
|
|
759
|
+
| ONTOLOGY.UpdateEventDTO
|
|
760
|
+
| ONTOLOGY.UpdateFileDTO
|
|
761
|
+
| ONTOLOGY.UpdateAgentDTO
|
|
762
|
+
> {
|
|
763
|
+
mappedTemplates: Map<string | number, T>;
|
|
764
|
+
|
|
765
|
+
defaultValues: DefaultValues<
|
|
766
|
+
ONTOLOGY.CreateObjectDTO &
|
|
767
|
+
ONTOLOGY.CreateEventDTO &
|
|
768
|
+
ONTOLOGY.CreateFileDTO &
|
|
769
|
+
ONTOLOGY.CreateAgentDTO &
|
|
770
|
+
ONTOLOGY.UpdateObjectDTO &
|
|
771
|
+
ONTOLOGY.UpdateEventDTO &
|
|
772
|
+
ONTOLOGY.UpdateFileDTO &
|
|
773
|
+
ONTOLOGY.UpdateAgentDTO
|
|
774
|
+
>;
|
|
775
|
+
loading: boolean;
|
|
776
|
+
agentTemplates: Map<string | number, ONTOLOGY.Agent>;
|
|
777
|
+
agentsData?: FV.HierarchySearchResults;
|
|
778
|
+
selectedAgentInstances?: INSTANCE.Agent[];
|
|
779
|
+
inputVariant?: "standard" | "outlined" | "filled";
|
|
780
|
+
disableTemlateKey?: boolean;
|
|
781
|
+
disablePropertyId?: boolean;
|
|
782
|
+
disableParent?: boolean;
|
|
783
|
+
saveButtons?: SubmitButton_2[];
|
|
784
|
+
onSubmit(data: any, showNotification?: boolean): void;
|
|
785
|
+
onCancel?(): void;
|
|
786
|
+
onAgentSelect?(selectedIds: number[]): void;
|
|
787
|
+
|
|
788
|
+
//Props for mapping
|
|
789
|
+
openMapping: boolean;
|
|
790
|
+
mappingData: POLICY.InstancePolicyMapping[];
|
|
791
|
+
objectTemplate: ONTOLOGY.Object;
|
|
792
|
+
selectedInstances?: INSTANCE.Agent[];
|
|
793
|
+
mapboxAccessToken: string;
|
|
794
|
+
onMappingSubmit(data: POLICY.InstancePolicyMapping[]): void;
|
|
795
|
+
onMappingOpen(event: MouseEvent<HTMLButtonElement>): void;
|
|
796
|
+
onMappingClose(): void;
|
|
797
|
+
onCatalogueInstanceSearchSubmit(value?: string): void;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export declare const TemplatePropertyFilters: FC<Props_10>;
|
|
714
801
|
|
|
715
802
|
export declare const TreeSelect: FC<TreeSelectProps>;
|
|
716
803
|
|
|
@@ -730,7 +817,7 @@ declare interface TreeSelectProps {
|
|
|
730
817
|
onChange(id: string, checked: boolean): void;
|
|
731
818
|
}
|
|
732
819
|
|
|
733
|
-
export declare const TreeViewFilter: FC<
|
|
820
|
+
export declare const TreeViewFilter: FC<Props_11>;
|
|
734
821
|
|
|
735
822
|
export { }
|
|
736
823
|
|
|
@@ -987,16 +1074,16 @@ declare namespace FV {
|
|
|
987
1074
|
EVENT: number;
|
|
988
1075
|
OBJECT: number;
|
|
989
1076
|
DOCUMENT: number;
|
|
990
|
-
DICTIONARY_AGENT
|
|
991
|
-
DICTIONARY_DEFINITION
|
|
1077
|
+
DICTIONARY_AGENT?: number;
|
|
1078
|
+
DICTIONARY_DEFINITION?: number;
|
|
992
1079
|
}
|
|
993
1080
|
|
|
994
1081
|
interface HierarchySearchResultInstance {
|
|
995
1082
|
id: number;
|
|
996
1083
|
title: string;
|
|
997
|
-
description?: string;
|
|
1084
|
+
description?: string | null;
|
|
998
1085
|
variables: INSTANCE.GroupedVariables;
|
|
999
|
-
highlights?:
|
|
1086
|
+
highlights?: object;
|
|
1000
1087
|
}
|
|
1001
1088
|
|
|
1002
1089
|
interface HierarchySearchResult {
|
|
@@ -1086,10 +1173,18 @@ declare namespace INSTANCE {
|
|
|
1086
1173
|
wkt?: string;
|
|
1087
1174
|
}
|
|
1088
1175
|
|
|
1176
|
+
interface GenericInstanceView {
|
|
1177
|
+
id: number;
|
|
1178
|
+
title: string;
|
|
1179
|
+
templateId: number;
|
|
1180
|
+
variables: GroupedVariables;
|
|
1181
|
+
description?: string | null;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1089
1184
|
interface Object {
|
|
1090
1185
|
id: number;
|
|
1091
1186
|
title: string;
|
|
1092
|
-
description: string;
|
|
1187
|
+
description: string | null;
|
|
1093
1188
|
template: ONTOLOGY.GenericTemplateView;
|
|
1094
1189
|
templateHierarchy?: ONTOLOGY.GenericTemplateView[];
|
|
1095
1190
|
variables: GroupedVariables;
|
|
@@ -1101,7 +1196,7 @@ declare namespace INSTANCE {
|
|
|
1101
1196
|
interface CreateObjectDTO {
|
|
1102
1197
|
title: string;
|
|
1103
1198
|
templateId: number;
|
|
1104
|
-
description: string;
|
|
1199
|
+
description: string | null;
|
|
1105
1200
|
variables: Variable;
|
|
1106
1201
|
profileImageUrl?: string;
|
|
1107
1202
|
securityLevelId: number;
|
|
@@ -1115,7 +1210,7 @@ declare namespace INSTANCE {
|
|
|
1115
1210
|
interface Event {
|
|
1116
1211
|
id: number;
|
|
1117
1212
|
title: string;
|
|
1118
|
-
description: string;
|
|
1213
|
+
description: string | null;
|
|
1119
1214
|
template: ONTOLOGY.GenericTemplateView;
|
|
1120
1215
|
templateHierarchy?: ONTOLOGY.GenericTemplateView[];
|
|
1121
1216
|
variables: GroupedVariables;
|
|
@@ -1139,10 +1234,10 @@ declare namespace INSTANCE {
|
|
|
1139
1234
|
interface Agent {
|
|
1140
1235
|
id: number;
|
|
1141
1236
|
title: string;
|
|
1142
|
-
description: string;
|
|
1237
|
+
description: string | null;
|
|
1238
|
+
aliasList: string[];
|
|
1143
1239
|
template: ONTOLOGY.GenericTemplateView;
|
|
1144
1240
|
variables: GroupedVariables;
|
|
1145
|
-
aliasList: string[];
|
|
1146
1241
|
appliedPolicies: number[];
|
|
1147
1242
|
securityLevelId: number;
|
|
1148
1243
|
disseminationList: string[];
|
|
@@ -1166,7 +1261,7 @@ declare namespace INSTANCE {
|
|
|
1166
1261
|
interface File {
|
|
1167
1262
|
id: number;
|
|
1168
1263
|
title: string;
|
|
1169
|
-
description: string;
|
|
1264
|
+
description: string | null;
|
|
1170
1265
|
template: ONTOLOGY.GenericTemplateView;
|
|
1171
1266
|
templateHierarchy: ONTOLOGY.GenericTemplateView[];
|
|
1172
1267
|
variables: GroupedVariables;
|
|
@@ -1326,11 +1421,11 @@ declare namespace ONTOLOGY {
|
|
|
1326
1421
|
parent: string | null;
|
|
1327
1422
|
icon: string;
|
|
1328
1423
|
properties: Property[];
|
|
1329
|
-
version:
|
|
1424
|
+
version: unknown;
|
|
1330
1425
|
creatable: boolean;
|
|
1331
1426
|
editable: boolean;
|
|
1332
1427
|
stationary: boolean;
|
|
1333
|
-
agentReferenceIds: number
|
|
1428
|
+
agentReferenceIds: Array<number>;
|
|
1334
1429
|
|
|
1335
1430
|
// UI Spesific fields
|
|
1336
1431
|
childrenKeys?: string[];
|
|
@@ -1345,11 +1440,11 @@ declare namespace ONTOLOGY {
|
|
|
1345
1440
|
parent: string;
|
|
1346
1441
|
icon: string;
|
|
1347
1442
|
properties: Property[];
|
|
1348
|
-
version:
|
|
1443
|
+
version: unknown;
|
|
1349
1444
|
creatable: boolean;
|
|
1350
1445
|
editable: boolean;
|
|
1351
1446
|
stationary: boolean;
|
|
1352
|
-
agentReferenceIds?: number
|
|
1447
|
+
agentReferenceIds?: Array<number>;
|
|
1353
1448
|
}
|
|
1354
1449
|
|
|
1355
1450
|
interface UpdateObjectDTO extends CreateObjectDTO {
|
|
@@ -1366,7 +1461,7 @@ declare namespace ONTOLOGY {
|
|
|
1366
1461
|
parent: string;
|
|
1367
1462
|
icon: string;
|
|
1368
1463
|
properties: Property[];
|
|
1369
|
-
version:
|
|
1464
|
+
version: unknown;
|
|
1370
1465
|
creatable: boolean;
|
|
1371
1466
|
editable: boolean;
|
|
1372
1467
|
recognitionPropertyList: RecognitionProperty[];
|
|
@@ -1380,7 +1475,7 @@ declare namespace ONTOLOGY {
|
|
|
1380
1475
|
parent: string;
|
|
1381
1476
|
icon: string;
|
|
1382
1477
|
properties: Property[];
|
|
1383
|
-
version:
|
|
1478
|
+
version: unknown;
|
|
1384
1479
|
creatable: boolean;
|
|
1385
1480
|
editable: boolean;
|
|
1386
1481
|
recognitionPropertyList: RecognitionProperty[];
|
|
@@ -1402,7 +1497,7 @@ declare namespace ONTOLOGY {
|
|
|
1402
1497
|
properties: Property[];
|
|
1403
1498
|
stationary: boolean;
|
|
1404
1499
|
livingObject: boolean;
|
|
1405
|
-
version:
|
|
1500
|
+
version: unknown;
|
|
1406
1501
|
creatable: boolean;
|
|
1407
1502
|
editable: boolean;
|
|
1408
1503
|
}
|
|
@@ -1417,7 +1512,7 @@ declare namespace ONTOLOGY {
|
|
|
1417
1512
|
properties: Property[];
|
|
1418
1513
|
stationary: boolean;
|
|
1419
1514
|
livingObject: boolean;
|
|
1420
|
-
version:
|
|
1515
|
+
version: unknown;
|
|
1421
1516
|
creatable: boolean;
|
|
1422
1517
|
editable: boolean;
|
|
1423
1518
|
}
|
|
@@ -1436,7 +1531,7 @@ declare namespace ONTOLOGY {
|
|
|
1436
1531
|
parent: string;
|
|
1437
1532
|
icon: string;
|
|
1438
1533
|
properties: Property[];
|
|
1439
|
-
version:
|
|
1534
|
+
version: unknown;
|
|
1440
1535
|
creatable: boolean;
|
|
1441
1536
|
editable: boolean;
|
|
1442
1537
|
storeFile: boolean;
|
|
@@ -1450,7 +1545,7 @@ declare namespace ONTOLOGY {
|
|
|
1450
1545
|
parent: string;
|
|
1451
1546
|
icon: string;
|
|
1452
1547
|
properties: Property[];
|
|
1453
|
-
version:
|
|
1548
|
+
version: unknown;
|
|
1454
1549
|
creatable: boolean;
|
|
1455
1550
|
editable: boolean;
|
|
1456
1551
|
storeFile: boolean;
|
|
@@ -1517,3 +1612,392 @@ declare module "react" {
|
|
|
1517
1612
|
render: (props: P, ref: React.Ref<T>) => React.ReactNode | null
|
|
1518
1613
|
): (props: P & React.RefAttributes<T>) => React.ReactNode | null;
|
|
1519
1614
|
}
|
|
1615
|
+
|
|
1616
|
+
declare namespace SIMULATION {
|
|
1617
|
+
type EnvironmentType = "GIS" | "GIS_3D" | "CARTESIAN" | "NON_SPACE";
|
|
1618
|
+
|
|
1619
|
+
type PolicyType =
|
|
1620
|
+
| "AGENT_ACTION_POLICY"
|
|
1621
|
+
| "TIME_SERIES_POLICY"
|
|
1622
|
+
| "USER_INTERACTION"
|
|
1623
|
+
| "INTELLIGENT_AGENT_ACTION";
|
|
1624
|
+
|
|
1625
|
+
type DataSecurityLevelType =
|
|
1626
|
+
| "UNCLASSIFIED"
|
|
1627
|
+
| "RESTRICTED"
|
|
1628
|
+
| "CONFIDENTIAL"
|
|
1629
|
+
| "SECRET"
|
|
1630
|
+
| "TOP SECRET";
|
|
1631
|
+
|
|
1632
|
+
type GenerationMethodType =
|
|
1633
|
+
| "RANDOM"
|
|
1634
|
+
| "RANDOM_PROPERTY"
|
|
1635
|
+
| "REFERENCE_OBJECT"
|
|
1636
|
+
| "PATTERN";
|
|
1637
|
+
|
|
1638
|
+
type RewardPolicyType =
|
|
1639
|
+
| "ACTION_TYPE_POLICY"
|
|
1640
|
+
| "CONDITION_BASED_POLICY"
|
|
1641
|
+
| "DECISION_TABLE_POLICY";
|
|
1642
|
+
|
|
1643
|
+
// type SortFieldType = 'user' | 'name' | 'startDate' | 'endDate';
|
|
1644
|
+
|
|
1645
|
+
type InstanceQuerySortFieldType = "USER" | "NAME" | "START_DATE" | "END_DATE";
|
|
1646
|
+
|
|
1647
|
+
type SortFunctionType = "ASC" | "DESC";
|
|
1648
|
+
|
|
1649
|
+
type ScenarioStatus = "NOT_SAVED" | "SAVED_NOT_VALID" | "SAVED_VALID";
|
|
1650
|
+
|
|
1651
|
+
type ObjectReferenceStatusType = "NEW" | "ORIGINAL" | "UPDATED";
|
|
1652
|
+
|
|
1653
|
+
type InstanceStateType =
|
|
1654
|
+
| "SCHEDULED"
|
|
1655
|
+
| "IN_PROGRESS"
|
|
1656
|
+
| "COMPLETED"
|
|
1657
|
+
| "FAILED"
|
|
1658
|
+
| "PAUSED"
|
|
1659
|
+
| "STOPPED"
|
|
1660
|
+
| "ABORTED";
|
|
1661
|
+
|
|
1662
|
+
interface TeamGoal {
|
|
1663
|
+
sourceAgentId?: number;
|
|
1664
|
+
targetAgents: string[] | number[];
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
interface Environment {
|
|
1668
|
+
environmentReference: string | null;
|
|
1669
|
+
environmentType: EnvironmentType;
|
|
1670
|
+
policyInfoList: Policy[] | null;
|
|
1671
|
+
context: Context | null;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
interface Policy {
|
|
1675
|
+
policyId: number;
|
|
1676
|
+
name: string;
|
|
1677
|
+
policyType: PolicyType;
|
|
1678
|
+
parentPolicyId: number;
|
|
1679
|
+
eventSchemaId: number;
|
|
1680
|
+
configuration: Configuration;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
interface Configuration {
|
|
1684
|
+
[key]: unknown;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
type CollisionsEngine = "KDTree" | "UnityMapbox";
|
|
1688
|
+
|
|
1689
|
+
interface Context {
|
|
1690
|
+
boundingBox: string;
|
|
1691
|
+
collisionsEngine?: CollisionsEngine;
|
|
1692
|
+
weather?: boolean;
|
|
1693
|
+
[key]: unknown;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
interface ScenarioTemplate {
|
|
1697
|
+
id: string;
|
|
1698
|
+
name: string;
|
|
1699
|
+
environment: Environment;
|
|
1700
|
+
redTeamAgentTypes: number[];
|
|
1701
|
+
blueTeamAgentTypes: number[];
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
interface ScenarioTemplateListResponse {
|
|
1705
|
+
totalResultCount: number;
|
|
1706
|
+
totalPageCount: number;
|
|
1707
|
+
templates: ScenarioTemplate[];
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
interface ScenarioBasic {
|
|
1711
|
+
id: string;
|
|
1712
|
+
name: string;
|
|
1713
|
+
scenarioTemplateId: string;
|
|
1714
|
+
startTime: string;
|
|
1715
|
+
endTime: string;
|
|
1716
|
+
version: number;
|
|
1717
|
+
status: ScenarioStatus;
|
|
1718
|
+
disseminationList: string[];
|
|
1719
|
+
securityLevel: number;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
interface Scenario extends ScenarioBasic {
|
|
1723
|
+
redTeamAgents: Population[];
|
|
1724
|
+
blueTeamAgents: Population[];
|
|
1725
|
+
environment: Environment;
|
|
1726
|
+
blueTeamRewardPolicy: RewardPolicyType;
|
|
1727
|
+
redTeamRewardPolicy: RewardPolicyType;
|
|
1728
|
+
redTeamGoal: GoalInfo | null;
|
|
1729
|
+
blueTeamGoal: GoalInfo | null;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
interface Agent {
|
|
1733
|
+
instanceId: string;
|
|
1734
|
+
name: string;
|
|
1735
|
+
referenceObjectInstanceId: number | null;
|
|
1736
|
+
objectReferenceStatus: ObjectReferenceStatusType;
|
|
1737
|
+
criticalityScore: number;
|
|
1738
|
+
templateId: number;
|
|
1739
|
+
agentGoal: GoalInfo | null;
|
|
1740
|
+
propertyInfoMap: PropertyInfoMap[];
|
|
1741
|
+
description?: string;
|
|
1742
|
+
valid?: boolean;
|
|
1743
|
+
validationErrors?: string[];
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
type GoalType = "TEAM" | "POPULATION" | "AGENT";
|
|
1747
|
+
type GoalTargetType = "AGENTS" | "POPULATION" | "TEAM";
|
|
1748
|
+
type GoalTargetActionType = "ATTACK" | "MOVE" | "DETECT" | "DESTROY";
|
|
1749
|
+
|
|
1750
|
+
interface GoalInfo {
|
|
1751
|
+
goalType: GoalType;
|
|
1752
|
+
targetType: GoalTargetType;
|
|
1753
|
+
targetAgents?: string[];
|
|
1754
|
+
targetPopulation?: number;
|
|
1755
|
+
targetAction: GoalTargetActionType;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
type RandomInfoNumber =
|
|
1759
|
+
| {
|
|
1760
|
+
maxValue: number | string;
|
|
1761
|
+
minValue: number | string;
|
|
1762
|
+
}
|
|
1763
|
+
| { discreteList: number[] };
|
|
1764
|
+
|
|
1765
|
+
type TimeUnitType =
|
|
1766
|
+
| "MILLISECOND"
|
|
1767
|
+
| "SECOND"
|
|
1768
|
+
| "MINUTE"
|
|
1769
|
+
| "HOUR"
|
|
1770
|
+
| "DAY"
|
|
1771
|
+
| "MONTH"
|
|
1772
|
+
| "YEAR";
|
|
1773
|
+
|
|
1774
|
+
interface RandomInfoDate {
|
|
1775
|
+
startRange: number;
|
|
1776
|
+
endRange: number;
|
|
1777
|
+
timeUnit: TimeUnitType;
|
|
1778
|
+
startDate: string;
|
|
1779
|
+
limitForScenarioTimeRange: boolean;
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
interface RandomInfoString {
|
|
1783
|
+
listOfPossibleValues: string[];
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
interface RandomInfoGeometry {
|
|
1787
|
+
geometryArea: string;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
type RandomInfoComposite = {
|
|
1791
|
+
count: number | string;
|
|
1792
|
+
innerRandomInfo?:
|
|
1793
|
+
| RandomInfoNumber
|
|
1794
|
+
| RandomInfoDate
|
|
1795
|
+
| RandomInfoString
|
|
1796
|
+
| RandomInfoGeometry;
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
type RandomInfoType =
|
|
1800
|
+
| RandomInfoDate
|
|
1801
|
+
| RandomInfoGeometry
|
|
1802
|
+
| RandomInfoNumber
|
|
1803
|
+
| RandomInfoString
|
|
1804
|
+
| RandomInfoComposite;
|
|
1805
|
+
|
|
1806
|
+
interface PropertyInfoMap extends POLICY.PolicyProperty {
|
|
1807
|
+
source: string | number | "RANDOM" | "SMART RANDOM" | "STATIC";
|
|
1808
|
+
sourceField: string | null;
|
|
1809
|
+
randomInfo?: RandomInfoType;
|
|
1810
|
+
value: number | boolean | string | number[] | string[];
|
|
1811
|
+
valid?: boolean;
|
|
1812
|
+
validationErrors?: string[];
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
interface AgentGenerator {
|
|
1816
|
+
id: string;
|
|
1817
|
+
name: string;
|
|
1818
|
+
count: number;
|
|
1819
|
+
criticalityScore: number;
|
|
1820
|
+
agentGoal: GoalInfo | null;
|
|
1821
|
+
propertyInfoMap: PropertyInfoMap[];
|
|
1822
|
+
valid?: boolean;
|
|
1823
|
+
validationErrors?: string[];
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
interface Population {
|
|
1827
|
+
templateId: number;
|
|
1828
|
+
valid?: boolean;
|
|
1829
|
+
validationErrors?: string[];
|
|
1830
|
+
agentGeneratorInfoList: AgentGenerator[];
|
|
1831
|
+
agentList: Agent[];
|
|
1832
|
+
criticalityScore: number;
|
|
1833
|
+
populationGoal: GoalInfo | null;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
interface ScenarioListResponse {
|
|
1837
|
+
totalResultCount: number;
|
|
1838
|
+
totalPageCount: number;
|
|
1839
|
+
scenarios: ScenarioBasic[];
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
interface ScenarioQueryRequest {
|
|
1843
|
+
dateFilter?: DateFilter;
|
|
1844
|
+
userFilter?: string[][];
|
|
1845
|
+
nameFilter?: string;
|
|
1846
|
+
sortCriteria: SortCriteria;
|
|
1847
|
+
pageNumber: number;
|
|
1848
|
+
rows: number;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
interface DateFilter {
|
|
1852
|
+
start: string;
|
|
1853
|
+
end: string;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
interface SortCriteria {
|
|
1857
|
+
sortField: InstanceQuerySortFieldType;
|
|
1858
|
+
sortOrder: SortFunctionType;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
interface ScenarioQueryResponse {
|
|
1862
|
+
totalResultCount: number;
|
|
1863
|
+
totalPageCount: number;
|
|
1864
|
+
usersFilterValues?: UserBasic[];
|
|
1865
|
+
scenarios: ScenarioBasic[];
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
interface UserBasic {
|
|
1869
|
+
userId: string;
|
|
1870
|
+
firstName: string;
|
|
1871
|
+
lastName: string;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
interface ScenarioRunType {
|
|
1875
|
+
name: string;
|
|
1876
|
+
count: number;
|
|
1877
|
+
schedule: boolean;
|
|
1878
|
+
scheduleDate: string;
|
|
1879
|
+
playable: boolean;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
interface StartScenarioWithObjectsRequest {
|
|
1883
|
+
objectInstanceIdList: number[];
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
interface InvalidInstanceInfo {
|
|
1887
|
+
totalInvalidInstance: number;
|
|
1888
|
+
invalidCountsByTemplate: InvalidCountsByTemplate[];
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
interface InvalidCountsByTemplate {
|
|
1892
|
+
templateName: string;
|
|
1893
|
+
count: number;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
interface StartScenarioWithObjectsResponse {
|
|
1897
|
+
scenarioInfo: Scenario;
|
|
1898
|
+
invalidInstanceInfo: InvalidInstanceInfo;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
interface InstanceQueryRequest {
|
|
1902
|
+
dateFilter?: DateFilter;
|
|
1903
|
+
userFilter?: string[][];
|
|
1904
|
+
nameFilter?: string;
|
|
1905
|
+
scenarioFilter?: string[];
|
|
1906
|
+
executionFilter?: string[];
|
|
1907
|
+
experimentStateFilter?: InstanceStateType[];
|
|
1908
|
+
referenceObjectIdFilter?: number[];
|
|
1909
|
+
sortCriteria: InstanceQuerySortCriteria;
|
|
1910
|
+
pageNumber: number;
|
|
1911
|
+
rows: number;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
interface InstanceQuerySortCriteria {
|
|
1915
|
+
sortField: InstanceQuerySortFieldType;
|
|
1916
|
+
sortOrder: SortFunctionType;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
interface InstanceQueryResultType {
|
|
1920
|
+
id: string;
|
|
1921
|
+
name: string;
|
|
1922
|
+
description: string;
|
|
1923
|
+
startTime: string;
|
|
1924
|
+
endTime: string;
|
|
1925
|
+
ontologyId: number;
|
|
1926
|
+
scenarioId: string;
|
|
1927
|
+
scenarioName: string;
|
|
1928
|
+
executionId: string;
|
|
1929
|
+
startedBy: string;
|
|
1930
|
+
state: InstanceStateType;
|
|
1931
|
+
playable: boolean;
|
|
1932
|
+
stateMessage: string | null;
|
|
1933
|
+
warnings: string[];
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
interface InstanceQueryResponse {
|
|
1937
|
+
totalResultCount: number;
|
|
1938
|
+
totalPageCount: number;
|
|
1939
|
+
results: InstanceQueryResultType[];
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
interface ExecutionBasic {
|
|
1943
|
+
id: string;
|
|
1944
|
+
name: string;
|
|
1945
|
+
scenarioId: string;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
interface Execution {
|
|
1949
|
+
id: string;
|
|
1950
|
+
name: string;
|
|
1951
|
+
scenarioName: string;
|
|
1952
|
+
agentCount: number;
|
|
1953
|
+
createdAt: string;
|
|
1954
|
+
totalExperiments: number;
|
|
1955
|
+
scheduled: boolean;
|
|
1956
|
+
scheduledFor: string;
|
|
1957
|
+
experimentsByState: {
|
|
1958
|
+
[InstanceStateType]: number;
|
|
1959
|
+
};
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
interface ExecutionQueryRequest {
|
|
1963
|
+
nameFilter: string;
|
|
1964
|
+
scenarioFilter?: string[];
|
|
1965
|
+
pageNumber: number;
|
|
1966
|
+
rows: number;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
interface ExecutionQueryResponse {
|
|
1970
|
+
totalResultCount: number;
|
|
1971
|
+
totalPageCount: number;
|
|
1972
|
+
executions: ExecutionBasic[];
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
interface ExecutionSummaryQueryRequest {
|
|
1976
|
+
dateFilter: DateFilter;
|
|
1977
|
+
pageNumber: number;
|
|
1978
|
+
rows: number;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
interface ExecutionSummaryQueryResponse {
|
|
1982
|
+
totalResultCount: number;
|
|
1983
|
+
totalPageCount: number;
|
|
1984
|
+
results: Execution[];
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
interface ExecutedScenarioQueryRequest {
|
|
1988
|
+
keyword: string;
|
|
1989
|
+
pageNumber: number;
|
|
1990
|
+
rows: number;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
interface ScenarioMinimalView {
|
|
1994
|
+
id: string;
|
|
1995
|
+
name: string;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
interface ExecutedScenarioQueryResponse {
|
|
1999
|
+
totalResultCount: number;
|
|
2000
|
+
totalPageCount: number;
|
|
2001
|
+
scenarios: ScenarioMinimalView[];
|
|
2002
|
+
}
|
|
2003
|
+
}
|