@hybridcore/ui 1.3.6 → 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 +12 -6
- package/dist/components/data-security-selectors/security-level/index.js +46 -45
- package/dist/components/date-time-picker/index.js +85 -64
- 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 +60 -56
- 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/geometry-picker/styled.js +22 -14
- 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/{data-management/instance-form → instance-form}/components/composite-list/styled.js +15 -6
- 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 +174 -155
- 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 +51 -49
- 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-DPf5olog.js +288 -0
- 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 +569 -81
- 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 -39
- package/dist/createSvgIcon-B2WT0K4k.js +0 -87
- package/dist/index-B3Oj04nl.js +0 -287
- 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;
|
|
@@ -166,7 +168,7 @@ declare interface DisseminationListProps {
|
|
|
166
168
|
/**
|
|
167
169
|
*
|
|
168
170
|
*/
|
|
169
|
-
variant?: "
|
|
171
|
+
variant?: "standard" | "outlined" | "filled";
|
|
170
172
|
/**
|
|
171
173
|
*
|
|
172
174
|
*/
|
|
@@ -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
|
|
|
@@ -235,6 +237,7 @@ K extends
|
|
|
235
237
|
*
|
|
236
238
|
*/
|
|
237
239
|
variant?: "inline" | "dialog";
|
|
240
|
+
inputVariant?: "standard" | "outlined" | "filled";
|
|
238
241
|
/**
|
|
239
242
|
*
|
|
240
243
|
*/
|
|
@@ -242,7 +245,15 @@ K extends
|
|
|
242
245
|
/**
|
|
243
246
|
*
|
|
244
247
|
*/
|
|
245
|
-
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
|
+
>;
|
|
246
257
|
/**
|
|
247
258
|
*
|
|
248
259
|
*/
|
|
@@ -295,6 +306,8 @@ K extends
|
|
|
295
306
|
*
|
|
296
307
|
*/
|
|
297
308
|
policyList: POLICY.Policy[];
|
|
309
|
+
|
|
310
|
+
mapboxAccessToken: string;
|
|
298
311
|
/**
|
|
299
312
|
*
|
|
300
313
|
* @param template
|
|
@@ -315,6 +328,34 @@ K extends
|
|
|
315
328
|
onCancel?(): void;
|
|
316
329
|
}
|
|
317
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
|
+
|
|
318
359
|
declare interface ItemProps {
|
|
319
360
|
id: string | number;
|
|
320
361
|
name: string;
|
|
@@ -336,9 +377,9 @@ export declare namespace KeyProductionUtils {
|
|
|
336
377
|
}
|
|
337
378
|
}
|
|
338
379
|
|
|
339
|
-
export declare const KeyProtectionMenu: React.FC<
|
|
380
|
+
export declare const KeyProtectionMenu: React.FC<Props_7>;
|
|
340
381
|
|
|
341
|
-
export declare const Loading: React.FC<
|
|
382
|
+
export declare const Loading: React.FC<Props_8>;
|
|
342
383
|
|
|
343
384
|
export { LocalizationProvider }
|
|
344
385
|
|
|
@@ -443,7 +484,7 @@ declare interface OptionsType {
|
|
|
443
484
|
|
|
444
485
|
declare type OrientationType_2 = "portrait" | "landscape";
|
|
445
486
|
|
|
446
|
-
export declare const PhoneInput: React.FC<
|
|
487
|
+
export declare const PhoneInput: React.FC<Props_9>;
|
|
447
488
|
|
|
448
489
|
declare interface Props {
|
|
449
490
|
/**
|
|
@@ -473,35 +514,46 @@ declare interface Props {
|
|
|
473
514
|
}
|
|
474
515
|
|
|
475
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 {
|
|
476
534
|
header: React.ReactNode;
|
|
477
535
|
content: React.ReactNode;
|
|
478
536
|
expanded?: boolean;
|
|
479
537
|
defaultExpanded?: boolean;
|
|
480
538
|
actions?: React.ReactNode;
|
|
481
|
-
sx?:
|
|
539
|
+
sx?: SxProps;
|
|
482
540
|
onChange?(event: React.SyntheticEvent, newExpanded: boolean): void;
|
|
483
541
|
}
|
|
484
542
|
|
|
485
|
-
declare interface
|
|
486
|
-
values: FV.TemplateFilter[];
|
|
487
|
-
templates: Map<string | number, ONTOLOGY.TemplateType>;
|
|
488
|
-
onChange(values: FV.TemplateFilter[]): void;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
declare interface Props_2 {
|
|
543
|
+
declare interface Props_3 {
|
|
492
544
|
open: boolean;
|
|
493
545
|
buttons: ButtonType[];
|
|
494
546
|
position?: MousePosition;
|
|
495
547
|
width?: number | string;
|
|
496
|
-
sx?:
|
|
548
|
+
sx?: SxProps;
|
|
497
549
|
onClose?(): void;
|
|
498
550
|
}
|
|
499
551
|
|
|
500
|
-
declare interface
|
|
552
|
+
declare interface Props_4 {
|
|
501
553
|
/**
|
|
502
554
|
*
|
|
503
555
|
*/
|
|
504
|
-
value
|
|
556
|
+
value?: string;
|
|
505
557
|
/**
|
|
506
558
|
*
|
|
507
559
|
*/
|
|
@@ -509,6 +561,8 @@ declare interface Props_3 {
|
|
|
509
561
|
/**
|
|
510
562
|
*
|
|
511
563
|
*/
|
|
564
|
+
label?: string;
|
|
565
|
+
|
|
512
566
|
name?: string;
|
|
513
567
|
/**
|
|
514
568
|
*
|
|
@@ -532,7 +586,7 @@ declare interface Props_3 {
|
|
|
532
586
|
pattern?: string;
|
|
533
587
|
}
|
|
534
588
|
|
|
535
|
-
declare interface
|
|
589
|
+
declare interface Props_5 {
|
|
536
590
|
/**
|
|
537
591
|
*
|
|
538
592
|
*/
|
|
@@ -553,13 +607,14 @@ declare interface Props_4 {
|
|
|
553
607
|
*
|
|
554
608
|
*/
|
|
555
609
|
defaultExtent?: Extent;
|
|
610
|
+
variant?: "standard" | "outlined" | "filled";
|
|
556
611
|
/**
|
|
557
612
|
*
|
|
558
613
|
*/
|
|
559
614
|
onChange?(value: string): void;
|
|
560
615
|
}
|
|
561
616
|
|
|
562
|
-
declare interface
|
|
617
|
+
declare interface Props_6 extends IconButtonProps {
|
|
563
618
|
/**
|
|
564
619
|
*
|
|
565
620
|
*/
|
|
@@ -578,32 +633,21 @@ declare interface Props_5 extends IconButtonProps {
|
|
|
578
633
|
children: React.ReactNode;
|
|
579
634
|
}
|
|
580
635
|
|
|
581
|
-
declare interface
|
|
636
|
+
declare interface Props_7 {
|
|
582
637
|
encryptionKey: CryptoKey | null;
|
|
583
638
|
}
|
|
584
639
|
|
|
585
|
-
declare interface
|
|
640
|
+
declare interface Props_8 extends StyleProps {
|
|
586
641
|
show: boolean;
|
|
587
642
|
}
|
|
588
643
|
|
|
589
|
-
declare interface
|
|
644
|
+
declare interface Props_9 {
|
|
590
645
|
label: string;
|
|
591
646
|
value: string;
|
|
592
647
|
placeholder?: string;
|
|
593
648
|
onChange(value: string): void;
|
|
594
649
|
}
|
|
595
650
|
|
|
596
|
-
declare interface Props_9 {
|
|
597
|
-
data: DataType[];
|
|
598
|
-
idKey?: string;
|
|
599
|
-
selected?: string[];
|
|
600
|
-
expanded?: string[];
|
|
601
|
-
disabled?: string[];
|
|
602
|
-
disableSearch?: boolean;
|
|
603
|
-
onChange?(id: string, checked: boolean): void;
|
|
604
|
-
onToggle?(event: React.SyntheticEvent, nodeIds: string[]): void;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
651
|
declare function register(): Promise<Credential | null>;
|
|
608
652
|
|
|
609
653
|
export declare const SearchInput: (props: SearchInputProps & default_2.RefAttributes<Handle>) => default_2.ReactNode | null;
|
|
@@ -617,7 +661,7 @@ declare interface SearchInputProps {
|
|
|
617
661
|
variant?: "outlined" | "filled" | "standard";
|
|
618
662
|
size?: "small" | "medium";
|
|
619
663
|
iconSize?: "small" | "medium" | "large";
|
|
620
|
-
sx?:
|
|
664
|
+
sx?: SxProps_2<Theme>;
|
|
621
665
|
onChange?(value: string): void;
|
|
622
666
|
onSubmit?(value: string | undefined): void;
|
|
623
667
|
}
|
|
@@ -625,13 +669,7 @@ declare interface SearchInputProps {
|
|
|
625
669
|
export declare const SecurityLevel: React.FC<SecurityLevelProps>;
|
|
626
670
|
|
|
627
671
|
declare interface SecurityLevelConfig {
|
|
628
|
-
/**
|
|
629
|
-
*
|
|
630
|
-
*/
|
|
631
672
|
templateKeys: string[];
|
|
632
|
-
/**
|
|
633
|
-
*
|
|
634
|
-
*/
|
|
635
673
|
templateType: string;
|
|
636
674
|
}
|
|
637
675
|
|
|
@@ -671,7 +709,7 @@ declare interface SecurityLevelProps {
|
|
|
671
709
|
/**
|
|
672
710
|
*
|
|
673
711
|
*/
|
|
674
|
-
variant?: "standard" | "outlined";
|
|
712
|
+
variant?: "standard" | "outlined" | "filled";
|
|
675
713
|
/**
|
|
676
714
|
*
|
|
677
715
|
*/
|
|
@@ -692,21 +730,73 @@ declare interface StyleProps extends BoxProps {
|
|
|
692
730
|
}
|
|
693
731
|
|
|
694
732
|
declare interface SubmitButton {
|
|
695
|
-
/**
|
|
696
|
-
*
|
|
697
|
-
*/
|
|
698
733
|
label: string;
|
|
699
|
-
/**
|
|
700
|
-
*
|
|
701
|
-
*/
|
|
702
734
|
icon?: React.ReactNode;
|
|
703
|
-
/**
|
|
704
|
-
*
|
|
705
|
-
*/
|
|
706
735
|
onClick?(): void;
|
|
707
736
|
}
|
|
708
737
|
|
|
709
|
-
|
|
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>;
|
|
710
800
|
|
|
711
801
|
export declare const TreeSelect: FC<TreeSelectProps>;
|
|
712
802
|
|
|
@@ -719,13 +809,14 @@ declare interface TreeSelectProps {
|
|
|
719
809
|
*
|
|
720
810
|
*/
|
|
721
811
|
selected: "" | string[] | undefined;
|
|
812
|
+
variant?: "standard" | "outlined" | "filled";
|
|
722
813
|
disabled?: string[];
|
|
723
814
|
label?: string;
|
|
724
815
|
idKey?: string;
|
|
725
816
|
onChange(id: string, checked: boolean): void;
|
|
726
817
|
}
|
|
727
818
|
|
|
728
|
-
export declare const TreeViewFilter: FC<
|
|
819
|
+
export declare const TreeViewFilter: FC<Props_11>;
|
|
729
820
|
|
|
730
821
|
export { }
|
|
731
822
|
|
|
@@ -982,16 +1073,16 @@ declare namespace FV {
|
|
|
982
1073
|
EVENT: number;
|
|
983
1074
|
OBJECT: number;
|
|
984
1075
|
DOCUMENT: number;
|
|
985
|
-
DICTIONARY_AGENT
|
|
986
|
-
DICTIONARY_DEFINITION
|
|
1076
|
+
DICTIONARY_AGENT?: number;
|
|
1077
|
+
DICTIONARY_DEFINITION?: number;
|
|
987
1078
|
}
|
|
988
1079
|
|
|
989
1080
|
interface HierarchySearchResultInstance {
|
|
990
1081
|
id: number;
|
|
991
1082
|
title: string;
|
|
992
|
-
description?: string;
|
|
1083
|
+
description?: string | null;
|
|
993
1084
|
variables: INSTANCE.GroupedVariables;
|
|
994
|
-
highlights?:
|
|
1085
|
+
highlights?: object;
|
|
995
1086
|
}
|
|
996
1087
|
|
|
997
1088
|
interface HierarchySearchResult {
|
|
@@ -1081,10 +1172,18 @@ declare namespace INSTANCE {
|
|
|
1081
1172
|
wkt?: string;
|
|
1082
1173
|
}
|
|
1083
1174
|
|
|
1175
|
+
interface GenericInstanceView {
|
|
1176
|
+
id: number;
|
|
1177
|
+
title: string;
|
|
1178
|
+
templateId: number;
|
|
1179
|
+
variables: GroupedVariables;
|
|
1180
|
+
description?: string | null;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1084
1183
|
interface Object {
|
|
1085
1184
|
id: number;
|
|
1086
1185
|
title: string;
|
|
1087
|
-
description: string;
|
|
1186
|
+
description: string | null;
|
|
1088
1187
|
template: ONTOLOGY.GenericTemplateView;
|
|
1089
1188
|
templateHierarchy?: ONTOLOGY.GenericTemplateView[];
|
|
1090
1189
|
variables: GroupedVariables;
|
|
@@ -1096,7 +1195,7 @@ declare namespace INSTANCE {
|
|
|
1096
1195
|
interface CreateObjectDTO {
|
|
1097
1196
|
title: string;
|
|
1098
1197
|
templateId: number;
|
|
1099
|
-
description: string;
|
|
1198
|
+
description: string | null;
|
|
1100
1199
|
variables: Variable;
|
|
1101
1200
|
profileImageUrl?: string;
|
|
1102
1201
|
securityLevelId: number;
|
|
@@ -1110,7 +1209,7 @@ declare namespace INSTANCE {
|
|
|
1110
1209
|
interface Event {
|
|
1111
1210
|
id: number;
|
|
1112
1211
|
title: string;
|
|
1113
|
-
description: string;
|
|
1212
|
+
description: string | null;
|
|
1114
1213
|
template: ONTOLOGY.GenericTemplateView;
|
|
1115
1214
|
templateHierarchy?: ONTOLOGY.GenericTemplateView[];
|
|
1116
1215
|
variables: GroupedVariables;
|
|
@@ -1134,10 +1233,10 @@ declare namespace INSTANCE {
|
|
|
1134
1233
|
interface Agent {
|
|
1135
1234
|
id: number;
|
|
1136
1235
|
title: string;
|
|
1137
|
-
description: string;
|
|
1236
|
+
description: string | null;
|
|
1237
|
+
aliasList: string[];
|
|
1138
1238
|
template: ONTOLOGY.GenericTemplateView;
|
|
1139
1239
|
variables: GroupedVariables;
|
|
1140
|
-
aliasList: string[];
|
|
1141
1240
|
appliedPolicies: number[];
|
|
1142
1241
|
securityLevelId: number;
|
|
1143
1242
|
disseminationList: string[];
|
|
@@ -1161,7 +1260,7 @@ declare namespace INSTANCE {
|
|
|
1161
1260
|
interface File {
|
|
1162
1261
|
id: number;
|
|
1163
1262
|
title: string;
|
|
1164
|
-
description: string;
|
|
1263
|
+
description: string | null;
|
|
1165
1264
|
template: ONTOLOGY.GenericTemplateView;
|
|
1166
1265
|
templateHierarchy: ONTOLOGY.GenericTemplateView[];
|
|
1167
1266
|
variables: GroupedVariables;
|
|
@@ -1321,11 +1420,11 @@ declare namespace ONTOLOGY {
|
|
|
1321
1420
|
parent: string | null;
|
|
1322
1421
|
icon: string;
|
|
1323
1422
|
properties: Property[];
|
|
1324
|
-
version:
|
|
1423
|
+
version: unknown;
|
|
1325
1424
|
creatable: boolean;
|
|
1326
1425
|
editable: boolean;
|
|
1327
1426
|
stationary: boolean;
|
|
1328
|
-
agentReferenceIds: number
|
|
1427
|
+
agentReferenceIds: Array<number>;
|
|
1329
1428
|
|
|
1330
1429
|
// UI Spesific fields
|
|
1331
1430
|
childrenKeys?: string[];
|
|
@@ -1340,11 +1439,11 @@ declare namespace ONTOLOGY {
|
|
|
1340
1439
|
parent: string;
|
|
1341
1440
|
icon: string;
|
|
1342
1441
|
properties: Property[];
|
|
1343
|
-
version:
|
|
1442
|
+
version: unknown;
|
|
1344
1443
|
creatable: boolean;
|
|
1345
1444
|
editable: boolean;
|
|
1346
1445
|
stationary: boolean;
|
|
1347
|
-
agentReferenceIds?: number
|
|
1446
|
+
agentReferenceIds?: Array<number>;
|
|
1348
1447
|
}
|
|
1349
1448
|
|
|
1350
1449
|
interface UpdateObjectDTO extends CreateObjectDTO {
|
|
@@ -1361,7 +1460,7 @@ declare namespace ONTOLOGY {
|
|
|
1361
1460
|
parent: string;
|
|
1362
1461
|
icon: string;
|
|
1363
1462
|
properties: Property[];
|
|
1364
|
-
version:
|
|
1463
|
+
version: unknown;
|
|
1365
1464
|
creatable: boolean;
|
|
1366
1465
|
editable: boolean;
|
|
1367
1466
|
recognitionPropertyList: RecognitionProperty[];
|
|
@@ -1375,7 +1474,7 @@ declare namespace ONTOLOGY {
|
|
|
1375
1474
|
parent: string;
|
|
1376
1475
|
icon: string;
|
|
1377
1476
|
properties: Property[];
|
|
1378
|
-
version:
|
|
1477
|
+
version: unknown;
|
|
1379
1478
|
creatable: boolean;
|
|
1380
1479
|
editable: boolean;
|
|
1381
1480
|
recognitionPropertyList: RecognitionProperty[];
|
|
@@ -1397,7 +1496,7 @@ declare namespace ONTOLOGY {
|
|
|
1397
1496
|
properties: Property[];
|
|
1398
1497
|
stationary: boolean;
|
|
1399
1498
|
livingObject: boolean;
|
|
1400
|
-
version:
|
|
1499
|
+
version: unknown;
|
|
1401
1500
|
creatable: boolean;
|
|
1402
1501
|
editable: boolean;
|
|
1403
1502
|
}
|
|
@@ -1412,7 +1511,7 @@ declare namespace ONTOLOGY {
|
|
|
1412
1511
|
properties: Property[];
|
|
1413
1512
|
stationary: boolean;
|
|
1414
1513
|
livingObject: boolean;
|
|
1415
|
-
version:
|
|
1514
|
+
version: unknown;
|
|
1416
1515
|
creatable: boolean;
|
|
1417
1516
|
editable: boolean;
|
|
1418
1517
|
}
|
|
@@ -1431,7 +1530,7 @@ declare namespace ONTOLOGY {
|
|
|
1431
1530
|
parent: string;
|
|
1432
1531
|
icon: string;
|
|
1433
1532
|
properties: Property[];
|
|
1434
|
-
version:
|
|
1533
|
+
version: unknown;
|
|
1435
1534
|
creatable: boolean;
|
|
1436
1535
|
editable: boolean;
|
|
1437
1536
|
storeFile: boolean;
|
|
@@ -1445,7 +1544,7 @@ declare namespace ONTOLOGY {
|
|
|
1445
1544
|
parent: string;
|
|
1446
1545
|
icon: string;
|
|
1447
1546
|
properties: Property[];
|
|
1448
|
-
version:
|
|
1547
|
+
version: unknown;
|
|
1449
1548
|
creatable: boolean;
|
|
1450
1549
|
editable: boolean;
|
|
1451
1550
|
storeFile: boolean;
|
|
@@ -1512,3 +1611,392 @@ declare module "react" {
|
|
|
1512
1611
|
render: (props: P, ref: React.Ref<T>) => React.ReactNode | null
|
|
1513
1612
|
): (props: P & React.RefAttributes<T>) => React.ReactNode | null;
|
|
1514
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
|
+
}
|