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