scjson 0.2.0 → 0.2.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/package.json +1 -1
- package/scjsonProps.ts +105 -2
- package/types/scjsonProps.d.ts +78 -2
package/package.json
CHANGED
package/scjsonProps.ts
CHANGED
|
@@ -23,6 +23,9 @@ export const defaultAssign = (): AssignProps => ({
|
|
|
23
23
|
otherAttributes: {},
|
|
24
24
|
content: [],
|
|
25
25
|
});
|
|
26
|
+
|
|
27
|
+
export type AssignArray = AssignProps[];
|
|
28
|
+
|
|
26
29
|
export const AssignTypeDatatypeProps = {
|
|
27
30
|
Addattribute: "addattribute",
|
|
28
31
|
Delete: "delete",
|
|
@@ -63,6 +66,9 @@ export const defaultCancel = (): CancelProps => ({
|
|
|
63
66
|
sendidexpr: null,
|
|
64
67
|
otherAttributes: {},
|
|
65
68
|
});
|
|
69
|
+
|
|
70
|
+
export type CancelArray = CancelProps[];
|
|
71
|
+
|
|
66
72
|
export interface ContentProps {
|
|
67
73
|
otherAttributes: Record<string, object>;
|
|
68
74
|
expr: string | null;
|
|
@@ -74,6 +80,9 @@ export const defaultContent = (): ContentProps => ({
|
|
|
74
80
|
expr: null,
|
|
75
81
|
content: [],
|
|
76
82
|
});
|
|
83
|
+
|
|
84
|
+
export type ContentArray = ContentProps[];
|
|
85
|
+
|
|
77
86
|
export interface DataProps {
|
|
78
87
|
id: string;
|
|
79
88
|
src: string | null;
|
|
@@ -89,6 +98,9 @@ export const defaultData = (): DataProps => ({
|
|
|
89
98
|
otherAttributes: {},
|
|
90
99
|
content: [],
|
|
91
100
|
});
|
|
101
|
+
|
|
102
|
+
export type DataArray = DataProps[];
|
|
103
|
+
|
|
92
104
|
export interface DatamodelProps {
|
|
93
105
|
data: DataProps[];
|
|
94
106
|
otherElement: Record<string, object>[];
|
|
@@ -100,6 +112,9 @@ export const defaultDatamodel = (): DatamodelProps => ({
|
|
|
100
112
|
otherElement: [],
|
|
101
113
|
otherAttributes: {},
|
|
102
114
|
});
|
|
115
|
+
|
|
116
|
+
export type DatamodelArray = DatamodelProps[];
|
|
117
|
+
|
|
103
118
|
export interface DonedataProps {
|
|
104
119
|
content: ContentProps | null;
|
|
105
120
|
param: ParamProps[];
|
|
@@ -111,6 +126,9 @@ export const defaultDonedata = (): DonedataProps => ({
|
|
|
111
126
|
param: [],
|
|
112
127
|
otherAttributes: {},
|
|
113
128
|
});
|
|
129
|
+
|
|
130
|
+
export type DonedataArray = DonedataProps[];
|
|
131
|
+
|
|
114
132
|
export interface ElseProps {
|
|
115
133
|
otherAttributes: Record<string, object>;
|
|
116
134
|
}
|
|
@@ -118,6 +136,7 @@ export interface ElseProps {
|
|
|
118
136
|
export const defaultElse = (): ElseProps => ({
|
|
119
137
|
otherAttributes: {},
|
|
120
138
|
});
|
|
139
|
+
|
|
121
140
|
export interface ElseifProps {
|
|
122
141
|
cond: string;
|
|
123
142
|
otherAttributes: Record<string, object>;
|
|
@@ -127,6 +146,7 @@ export const defaultElseif = (): ElseifProps => ({
|
|
|
127
146
|
cond: "",
|
|
128
147
|
otherAttributes: {},
|
|
129
148
|
});
|
|
149
|
+
|
|
130
150
|
export const ExmodeDatatypeProps = {
|
|
131
151
|
Lax: "lax",
|
|
132
152
|
Strict: "strict",
|
|
@@ -151,6 +171,9 @@ export const defaultFinal = (): FinalProps => ({
|
|
|
151
171
|
id: null,
|
|
152
172
|
otherAttributes: {},
|
|
153
173
|
});
|
|
174
|
+
|
|
175
|
+
export type FinalArray = FinalProps[];
|
|
176
|
+
|
|
154
177
|
export interface FinalizeProps {
|
|
155
178
|
otherElement: Record<string, object>[];
|
|
156
179
|
raiseValue: RaiseProps[];
|
|
@@ -176,6 +199,9 @@ export const defaultFinalize = (): FinalizeProps => ({
|
|
|
176
199
|
cancel: [],
|
|
177
200
|
otherAttributes: {},
|
|
178
201
|
});
|
|
202
|
+
|
|
203
|
+
export type FinalizeArray = FinalizeProps[];
|
|
204
|
+
|
|
179
205
|
export interface ForeachProps {
|
|
180
206
|
otherElement: Record<string, object>[];
|
|
181
207
|
raiseValue: RaiseProps[];
|
|
@@ -207,6 +233,9 @@ export const defaultForeach = (): ForeachProps => ({
|
|
|
207
233
|
index: null,
|
|
208
234
|
otherAttributes: {},
|
|
209
235
|
});
|
|
236
|
+
|
|
237
|
+
export type ForeachArray = ForeachProps[];
|
|
238
|
+
|
|
210
239
|
export interface HistoryProps {
|
|
211
240
|
otherElement: Record<string, object>[];
|
|
212
241
|
transition: TransitionProps;
|
|
@@ -222,6 +251,9 @@ export const defaultHistory = (): HistoryProps => ({
|
|
|
222
251
|
typeValue: null,
|
|
223
252
|
otherAttributes: {},
|
|
224
253
|
});
|
|
254
|
+
|
|
255
|
+
export type HistoryArray = HistoryProps[];
|
|
256
|
+
|
|
225
257
|
export const HistoryTypeDatatypeProps = {
|
|
226
258
|
Deep: "deep",
|
|
227
259
|
Shallow: "shallow",
|
|
@@ -260,6 +292,9 @@ export const defaultIf = (): IfProps => ({
|
|
|
260
292
|
cond: "",
|
|
261
293
|
otherAttributes: {},
|
|
262
294
|
});
|
|
295
|
+
|
|
296
|
+
export type IfArray = IfProps[];
|
|
297
|
+
|
|
263
298
|
export interface InitialProps {
|
|
264
299
|
otherElement: Record<string, object>[];
|
|
265
300
|
transition: TransitionProps;
|
|
@@ -271,6 +306,9 @@ export const defaultInitial = (): InitialProps => ({
|
|
|
271
306
|
transition: defaultTransition(),
|
|
272
307
|
otherAttributes: {},
|
|
273
308
|
});
|
|
309
|
+
|
|
310
|
+
export type InitialArray = InitialProps[];
|
|
311
|
+
|
|
274
312
|
export interface InvokeProps {
|
|
275
313
|
content: ContentProps[];
|
|
276
314
|
param: ParamProps[];
|
|
@@ -302,6 +340,9 @@ export const defaultInvoke = (): InvokeProps => ({
|
|
|
302
340
|
autoforward: BooleanDatatypeProps.False,
|
|
303
341
|
otherAttributes: {},
|
|
304
342
|
});
|
|
343
|
+
|
|
344
|
+
export type InvokeArray = InvokeProps[];
|
|
345
|
+
|
|
305
346
|
export interface LogProps {
|
|
306
347
|
otherElement: Record<string, object>[];
|
|
307
348
|
label: string | null;
|
|
@@ -315,6 +356,9 @@ export const defaultLog = (): LogProps => ({
|
|
|
315
356
|
expr: null,
|
|
316
357
|
otherAttributes: {},
|
|
317
358
|
});
|
|
359
|
+
|
|
360
|
+
export type LogArray = LogProps[];
|
|
361
|
+
|
|
318
362
|
export interface OnentryProps {
|
|
319
363
|
otherElement: Record<string, object>[];
|
|
320
364
|
raiseValue: RaiseProps[];
|
|
@@ -340,6 +384,9 @@ export const defaultOnentry = (): OnentryProps => ({
|
|
|
340
384
|
cancel: [],
|
|
341
385
|
otherAttributes: {},
|
|
342
386
|
});
|
|
387
|
+
|
|
388
|
+
export type OnentryArray = OnentryProps[];
|
|
389
|
+
|
|
343
390
|
export interface OnexitProps {
|
|
344
391
|
otherElement: Record<string, object>[];
|
|
345
392
|
raiseValue: RaiseProps[];
|
|
@@ -365,6 +412,9 @@ export const defaultOnexit = (): OnexitProps => ({
|
|
|
365
412
|
cancel: [],
|
|
366
413
|
otherAttributes: {},
|
|
367
414
|
});
|
|
415
|
+
|
|
416
|
+
export type OnexitArray = OnexitProps[];
|
|
417
|
+
|
|
368
418
|
export interface ParallelProps {
|
|
369
419
|
onentry: OnentryProps[];
|
|
370
420
|
onexit: OnexitProps[];
|
|
@@ -392,6 +442,9 @@ export const defaultParallel = (): ParallelProps => ({
|
|
|
392
442
|
id: null,
|
|
393
443
|
otherAttributes: {},
|
|
394
444
|
});
|
|
445
|
+
|
|
446
|
+
export type ParallelArray = ParallelProps[];
|
|
447
|
+
|
|
395
448
|
export interface ParamProps {
|
|
396
449
|
otherElement: Record<string, object>[];
|
|
397
450
|
name: string;
|
|
@@ -407,6 +460,9 @@ export const defaultParam = (): ParamProps => ({
|
|
|
407
460
|
location: null,
|
|
408
461
|
otherAttributes: {},
|
|
409
462
|
});
|
|
463
|
+
|
|
464
|
+
export type ParamArray = ParamProps[];
|
|
465
|
+
|
|
410
466
|
export interface RaiseProps {
|
|
411
467
|
event: string;
|
|
412
468
|
otherAttributes: Record<string, object>;
|
|
@@ -416,6 +472,9 @@ export const defaultRaise = (): RaiseProps => ({
|
|
|
416
472
|
event: "",
|
|
417
473
|
otherAttributes: {},
|
|
418
474
|
});
|
|
475
|
+
|
|
476
|
+
export type RaiseArray = RaiseProps[];
|
|
477
|
+
|
|
419
478
|
export interface ScriptProps {
|
|
420
479
|
src: string | null;
|
|
421
480
|
otherAttributes: Record<string, object>;
|
|
@@ -427,6 +486,9 @@ export const defaultScript = (): ScriptProps => ({
|
|
|
427
486
|
otherAttributes: {},
|
|
428
487
|
content: [],
|
|
429
488
|
});
|
|
489
|
+
|
|
490
|
+
export type ScriptArray = ScriptProps[];
|
|
491
|
+
|
|
430
492
|
export interface ScxmlProps {
|
|
431
493
|
state: StateProps[];
|
|
432
494
|
parallel: ParallelProps[];
|
|
@@ -458,6 +520,7 @@ export const defaultScxml = (): ScxmlProps => ({
|
|
|
458
520
|
exmode: null,
|
|
459
521
|
otherAttributes: {},
|
|
460
522
|
});
|
|
523
|
+
|
|
461
524
|
export interface SendProps {
|
|
462
525
|
content: ContentProps[];
|
|
463
526
|
param: ParamProps[];
|
|
@@ -493,6 +556,9 @@ export const defaultSend = (): SendProps => ({
|
|
|
493
556
|
namelist: null,
|
|
494
557
|
otherAttributes: {},
|
|
495
558
|
});
|
|
559
|
+
|
|
560
|
+
export type SendArray = SendProps[];
|
|
561
|
+
|
|
496
562
|
export interface StateProps {
|
|
497
563
|
onentry: OnentryProps[];
|
|
498
564
|
onexit: OnexitProps[];
|
|
@@ -526,6 +592,9 @@ export const defaultState = (): StateProps => ({
|
|
|
526
592
|
initialAttribute: [],
|
|
527
593
|
otherAttributes: {},
|
|
528
594
|
});
|
|
595
|
+
|
|
596
|
+
export type StateArray = StateProps[];
|
|
597
|
+
|
|
529
598
|
export interface TransitionProps {
|
|
530
599
|
otherElement: Record<string, object>[];
|
|
531
600
|
raiseValue: RaiseProps[];
|
|
@@ -559,6 +628,9 @@ export const defaultTransition = (): TransitionProps => ({
|
|
|
559
628
|
typeValue: null,
|
|
560
629
|
otherAttributes: {},
|
|
561
630
|
});
|
|
631
|
+
|
|
632
|
+
export type TransitionArray = TransitionProps[];
|
|
633
|
+
|
|
562
634
|
export const TransitionTypeDatatypeProps = {
|
|
563
635
|
External: "external",
|
|
564
636
|
Internal: "internal",
|
|
@@ -571,7 +643,11 @@ export type Kind = "number" | "string" | "record<string, object>" | "number[]" |
|
|
|
571
643
|
| "cancel" | "content" | "data" | "datamodel" | "donedata" | "else" | "elseif"
|
|
572
644
|
| "exmodedatatype" | "final" | "finalize" | "foreach" | "history" | "historytypedatatype" | "if"
|
|
573
645
|
| "initial" | "invoke" | "log" | "onentry" | "onexit" | "parallel" | "param" | "raise"
|
|
574
|
-
| "script" | "scxml" | "send" | "state" | "transition" | "transitiontypedatatype"
|
|
646
|
+
| "script" | "scxml" | "send" | "state" | "transition" | "transitiontypedatatype"
|
|
647
|
+
| "assignarray" | "cancelarray" | "contentarray" | "dataarray" | "datamodelarray"
|
|
648
|
+
| "donedataarray" | "finalarray" | "finalizearray" | "foreacharray" | "historyarray" | "ifarray"
|
|
649
|
+
| "initialarray" | "invokearray" | "logarray" | "onentryarray" | "onexitarray" | "parallelarray"
|
|
650
|
+
| "paramarray" | "raisearray" | "scriptarray" | "sendarray" | "statearray" | "transitionarray";
|
|
575
651
|
|
|
576
652
|
export type PropsUnion = null | string | number | Record<string, object> | string[] | number[]
|
|
577
653
|
| Record<string, object>[] | AssignProps | AssignTypeDatatypeProps | BindingDatatypeProps
|
|
@@ -579,40 +655,67 @@ export type PropsUnion = null | string | number | Record<string, object> | strin
|
|
|
579
655
|
| ElseProps | ElseifProps | ExmodeDatatypeProps | FinalProps | FinalizeProps | ForeachProps
|
|
580
656
|
| HistoryProps | HistoryTypeDatatypeProps | IfProps | InitialProps | InvokeProps | LogProps
|
|
581
657
|
| OnentryProps | OnexitProps | ParallelProps | ParamProps | RaiseProps | ScriptProps
|
|
582
|
-
| ScxmlProps | SendProps | StateProps | TransitionProps | TransitionTypeDatatypeProps
|
|
658
|
+
| ScxmlProps | SendProps | StateProps | TransitionProps | TransitionTypeDatatypeProps
|
|
659
|
+
| AssignArray | CancelArray | ContentArray | DataArray | DatamodelArray | DonedataArray
|
|
660
|
+
| FinalArray | FinalizeArray | ForeachArray | HistoryArray | IfArray | InitialArray
|
|
661
|
+
| InvokeArray | LogArray | OnentryArray | OnexitArray | ParallelArray | ParamArray
|
|
662
|
+
| RaiseArray | ScriptArray | SendArray | StateArray | TransitionArray;
|
|
583
663
|
|
|
584
664
|
export type KindMap = {
|
|
585
665
|
assign: AssignProps
|
|
666
|
+
assignarray: AssignArray
|
|
586
667
|
assigntypedatatype: AssignTypeDatatypeProps
|
|
587
668
|
bindingdatatype: BindingDatatypeProps
|
|
588
669
|
booleandatatype: BooleanDatatypeProps
|
|
589
670
|
cancel: CancelProps
|
|
671
|
+
cancelarray: CancelArray
|
|
590
672
|
content: ContentProps
|
|
673
|
+
contentarray: ContentArray
|
|
591
674
|
data: DataProps
|
|
675
|
+
dataarray: DataArray
|
|
592
676
|
datamodel: DatamodelProps
|
|
677
|
+
datamodelarray: DatamodelArray
|
|
593
678
|
donedata: DonedataProps
|
|
679
|
+
donedataarray: DonedataArray
|
|
594
680
|
else: ElseProps
|
|
595
681
|
elseif: ElseifProps
|
|
596
682
|
exmodedatatype: ExmodeDatatypeProps
|
|
597
683
|
final: FinalProps
|
|
684
|
+
finalarray: FinalArray
|
|
598
685
|
finalize: FinalizeProps
|
|
686
|
+
finalizearray: FinalizeArray
|
|
599
687
|
foreach: ForeachProps
|
|
688
|
+
foreacharray: ForeachArray
|
|
600
689
|
history: HistoryProps
|
|
690
|
+
historyarray: HistoryArray
|
|
601
691
|
historytypedatatype: HistoryTypeDatatypeProps
|
|
602
692
|
if: IfProps
|
|
693
|
+
ifarray: IfArray
|
|
603
694
|
initial: InitialProps
|
|
695
|
+
initialarray: InitialArray
|
|
604
696
|
invoke: InvokeProps
|
|
697
|
+
invokearray: InvokeArray
|
|
605
698
|
log: LogProps
|
|
699
|
+
logarray: LogArray
|
|
606
700
|
onentry: OnentryProps
|
|
701
|
+
onentryarray: OnentryArray
|
|
607
702
|
onexit: OnexitProps
|
|
703
|
+
onexitarray: OnexitArray
|
|
608
704
|
parallel: ParallelProps
|
|
705
|
+
parallelarray: ParallelArray
|
|
609
706
|
param: ParamProps
|
|
707
|
+
paramarray: ParamArray
|
|
610
708
|
raise: RaiseProps
|
|
709
|
+
raisearray: RaiseArray
|
|
611
710
|
script: ScriptProps
|
|
711
|
+
scriptarray: ScriptArray
|
|
612
712
|
scxml: ScxmlProps
|
|
613
713
|
send: SendProps
|
|
714
|
+
sendarray: SendArray
|
|
614
715
|
state: StateProps
|
|
716
|
+
statearray: StateArray
|
|
615
717
|
transition: TransitionProps
|
|
718
|
+
transitionarray: TransitionArray
|
|
616
719
|
transitiontypedatatype: TransitionTypeDatatypeProps
|
|
617
720
|
}
|
|
618
721
|
|
package/types/scjsonProps.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export interface AssignProps {
|
|
|
17
17
|
|
|
18
18
|
export declare const defaultAssign: () => AssignProps;
|
|
19
19
|
|
|
20
|
+
export type AssignArray = AssignProps[];
|
|
21
|
+
|
|
20
22
|
export type AssignTypeDatatypePropsType =
|
|
21
23
|
| "addattribute"
|
|
22
24
|
| "delete"
|
|
@@ -68,6 +70,8 @@ export interface CancelProps {
|
|
|
68
70
|
|
|
69
71
|
export declare const defaultCancel: () => CancelProps;
|
|
70
72
|
|
|
73
|
+
export type CancelArray = CancelProps[];
|
|
74
|
+
|
|
71
75
|
export interface ContentProps {
|
|
72
76
|
otherAttributes: Record<string, object>;
|
|
73
77
|
expr: string | null;
|
|
@@ -76,6 +80,8 @@ export interface ContentProps {
|
|
|
76
80
|
|
|
77
81
|
export declare const defaultContent: () => ContentProps;
|
|
78
82
|
|
|
83
|
+
export type ContentArray = ContentProps[];
|
|
84
|
+
|
|
79
85
|
export interface DataProps {
|
|
80
86
|
id: string;
|
|
81
87
|
src: string | null;
|
|
@@ -86,6 +92,8 @@ export interface DataProps {
|
|
|
86
92
|
|
|
87
93
|
export declare const defaultData: () => DataProps;
|
|
88
94
|
|
|
95
|
+
export type DataArray = DataProps[];
|
|
96
|
+
|
|
89
97
|
export interface DatamodelProps {
|
|
90
98
|
data: DataProps[];
|
|
91
99
|
otherElement: Record<string, object>[];
|
|
@@ -94,6 +102,8 @@ export interface DatamodelProps {
|
|
|
94
102
|
|
|
95
103
|
export declare const defaultDatamodel: () => DatamodelProps;
|
|
96
104
|
|
|
105
|
+
export type DatamodelArray = DatamodelProps[];
|
|
106
|
+
|
|
97
107
|
export interface DonedataProps {
|
|
98
108
|
content: ContentProps | null;
|
|
99
109
|
param: ParamProps[];
|
|
@@ -102,6 +112,8 @@ export interface DonedataProps {
|
|
|
102
112
|
|
|
103
113
|
export declare const defaultDonedata: () => DonedataProps;
|
|
104
114
|
|
|
115
|
+
export type DonedataArray = DonedataProps[];
|
|
116
|
+
|
|
105
117
|
export interface ElseProps {
|
|
106
118
|
otherAttributes: Record<string, object>;
|
|
107
119
|
}
|
|
@@ -136,6 +148,8 @@ export interface FinalProps {
|
|
|
136
148
|
|
|
137
149
|
export declare const defaultFinal: () => FinalProps;
|
|
138
150
|
|
|
151
|
+
export type FinalArray = FinalProps[];
|
|
152
|
+
|
|
139
153
|
export interface FinalizeProps {
|
|
140
154
|
otherElement: Record<string, object>[];
|
|
141
155
|
raiseValue: RaiseProps[];
|
|
@@ -151,6 +165,8 @@ export interface FinalizeProps {
|
|
|
151
165
|
|
|
152
166
|
export declare const defaultFinalize: () => FinalizeProps;
|
|
153
167
|
|
|
168
|
+
export type FinalizeArray = FinalizeProps[];
|
|
169
|
+
|
|
154
170
|
export interface ForeachProps {
|
|
155
171
|
otherElement: Record<string, object>[];
|
|
156
172
|
raiseValue: RaiseProps[];
|
|
@@ -169,6 +185,8 @@ export interface ForeachProps {
|
|
|
169
185
|
|
|
170
186
|
export declare const defaultForeach: () => ForeachProps;
|
|
171
187
|
|
|
188
|
+
export type ForeachArray = ForeachProps[];
|
|
189
|
+
|
|
172
190
|
export interface HistoryProps {
|
|
173
191
|
otherElement: Record<string, object>[];
|
|
174
192
|
transition: TransitionProps;
|
|
@@ -179,6 +197,8 @@ export interface HistoryProps {
|
|
|
179
197
|
|
|
180
198
|
export declare const defaultHistory: () => HistoryProps;
|
|
181
199
|
|
|
200
|
+
export type HistoryArray = HistoryProps[];
|
|
201
|
+
|
|
182
202
|
export type HistoryTypeDatatypePropsType =
|
|
183
203
|
| "deep"
|
|
184
204
|
| "shallow"
|
|
@@ -207,6 +227,8 @@ export interface IfProps {
|
|
|
207
227
|
|
|
208
228
|
export declare const defaultIf: () => IfProps;
|
|
209
229
|
|
|
230
|
+
export type IfArray = IfProps[];
|
|
231
|
+
|
|
210
232
|
export interface InitialProps {
|
|
211
233
|
otherElement: Record<string, object>[];
|
|
212
234
|
transition: TransitionProps;
|
|
@@ -215,6 +237,8 @@ export interface InitialProps {
|
|
|
215
237
|
|
|
216
238
|
export declare const defaultInitial: () => InitialProps;
|
|
217
239
|
|
|
240
|
+
export type InitialArray = InitialProps[];
|
|
241
|
+
|
|
218
242
|
export interface InvokeProps {
|
|
219
243
|
content: ContentProps[];
|
|
220
244
|
param: ParamProps[];
|
|
@@ -233,6 +257,8 @@ export interface InvokeProps {
|
|
|
233
257
|
|
|
234
258
|
export declare const defaultInvoke: () => InvokeProps;
|
|
235
259
|
|
|
260
|
+
export type InvokeArray = InvokeProps[];
|
|
261
|
+
|
|
236
262
|
export interface LogProps {
|
|
237
263
|
otherElement: Record<string, object>[];
|
|
238
264
|
label: string | null;
|
|
@@ -242,6 +268,8 @@ export interface LogProps {
|
|
|
242
268
|
|
|
243
269
|
export declare const defaultLog: () => LogProps;
|
|
244
270
|
|
|
271
|
+
export type LogArray = LogProps[];
|
|
272
|
+
|
|
245
273
|
export interface OnentryProps {
|
|
246
274
|
otherElement: Record<string, object>[];
|
|
247
275
|
raiseValue: RaiseProps[];
|
|
@@ -257,6 +285,8 @@ export interface OnentryProps {
|
|
|
257
285
|
|
|
258
286
|
export declare const defaultOnentry: () => OnentryProps;
|
|
259
287
|
|
|
288
|
+
export type OnentryArray = OnentryProps[];
|
|
289
|
+
|
|
260
290
|
export interface OnexitProps {
|
|
261
291
|
otherElement: Record<string, object>[];
|
|
262
292
|
raiseValue: RaiseProps[];
|
|
@@ -272,6 +302,8 @@ export interface OnexitProps {
|
|
|
272
302
|
|
|
273
303
|
export declare const defaultOnexit: () => OnexitProps;
|
|
274
304
|
|
|
305
|
+
export type OnexitArray = OnexitProps[];
|
|
306
|
+
|
|
275
307
|
export interface ParallelProps {
|
|
276
308
|
onentry: OnentryProps[];
|
|
277
309
|
onexit: OnexitProps[];
|
|
@@ -288,6 +320,8 @@ export interface ParallelProps {
|
|
|
288
320
|
|
|
289
321
|
export declare const defaultParallel: () => ParallelProps;
|
|
290
322
|
|
|
323
|
+
export type ParallelArray = ParallelProps[];
|
|
324
|
+
|
|
291
325
|
export interface ParamProps {
|
|
292
326
|
otherElement: Record<string, object>[];
|
|
293
327
|
name: string;
|
|
@@ -298,6 +332,8 @@ export interface ParamProps {
|
|
|
298
332
|
|
|
299
333
|
export declare const defaultParam: () => ParamProps;
|
|
300
334
|
|
|
335
|
+
export type ParamArray = ParamProps[];
|
|
336
|
+
|
|
301
337
|
export interface RaiseProps {
|
|
302
338
|
event: string;
|
|
303
339
|
otherAttributes: Record<string, object>;
|
|
@@ -305,6 +341,8 @@ export interface RaiseProps {
|
|
|
305
341
|
|
|
306
342
|
export declare const defaultRaise: () => RaiseProps;
|
|
307
343
|
|
|
344
|
+
export type RaiseArray = RaiseProps[];
|
|
345
|
+
|
|
308
346
|
export interface ScriptProps {
|
|
309
347
|
src: string | null;
|
|
310
348
|
otherAttributes: Record<string, object>;
|
|
@@ -313,6 +351,8 @@ export interface ScriptProps {
|
|
|
313
351
|
|
|
314
352
|
export declare const defaultScript: () => ScriptProps;
|
|
315
353
|
|
|
354
|
+
export type ScriptArray = ScriptProps[];
|
|
355
|
+
|
|
316
356
|
export interface ScxmlProps {
|
|
317
357
|
state: StateProps[];
|
|
318
358
|
parallel: ParallelProps[];
|
|
@@ -351,6 +391,8 @@ export interface SendProps {
|
|
|
351
391
|
|
|
352
392
|
export declare const defaultSend: () => SendProps;
|
|
353
393
|
|
|
394
|
+
export type SendArray = SendProps[];
|
|
395
|
+
|
|
354
396
|
export interface StateProps {
|
|
355
397
|
onentry: OnentryProps[];
|
|
356
398
|
onexit: OnexitProps[];
|
|
@@ -370,6 +412,8 @@ export interface StateProps {
|
|
|
370
412
|
|
|
371
413
|
export declare const defaultState: () => StateProps;
|
|
372
414
|
|
|
415
|
+
export type StateArray = StateProps[];
|
|
416
|
+
|
|
373
417
|
export interface TransitionProps {
|
|
374
418
|
otherElement: Record<string, object>[];
|
|
375
419
|
raiseValue: RaiseProps[];
|
|
@@ -389,6 +433,8 @@ export interface TransitionProps {
|
|
|
389
433
|
|
|
390
434
|
export declare const defaultTransition: () => TransitionProps;
|
|
391
435
|
|
|
436
|
+
export type TransitionArray = TransitionProps[];
|
|
437
|
+
|
|
392
438
|
export type TransitionTypeDatatypePropsType =
|
|
393
439
|
| "external"
|
|
394
440
|
| "internal"
|
|
@@ -404,7 +450,11 @@ export type Kind = "number" | "string" | "record<string, object>" | "number[]" |
|
|
|
404
450
|
| "cancel" | "content" | "data" | "datamodel" | "donedata" | "else" | "elseif"
|
|
405
451
|
| "exmodedatatype" | "final" | "finalize" | "foreach" | "history" | "historytypedatatype" | "if"
|
|
406
452
|
| "initial" | "invoke" | "log" | "onentry" | "onexit" | "parallel" | "param" | "raise"
|
|
407
|
-
| "script" | "scxml" | "send" | "state" | "transition" | "transitiontypedatatype"
|
|
453
|
+
| "script" | "scxml" | "send" | "state" | "transition" | "transitiontypedatatype"
|
|
454
|
+
| "assignarray" | "cancelarray" | "contentarray" | "dataarray" | "datamodelarray"
|
|
455
|
+
| "donedataarray" | "finalarray" | "finalizearray" | "foreacharray" | "historyarray" | "ifarray"
|
|
456
|
+
| "initialarray" | "invokearray" | "logarray" | "onentryarray" | "onexitarray" | "parallelarray"
|
|
457
|
+
| "paramarray" | "raisearray" | "scriptarray" | "sendarray" | "statearray" | "transitionarray";
|
|
408
458
|
|
|
409
459
|
export type PropsUnion = null | string | number | Record<string, object> | string[] | number[]
|
|
410
460
|
| Record<string, object>[] | AssignProps | typeof AssignTypeDatatypeProps | typeof BindingDatatypeProps
|
|
@@ -413,40 +463,66 @@ export type PropsUnion = null | string | number | Record<string, object> | strin
|
|
|
413
463
|
| ForeachProps | HistoryProps | typeof HistoryTypeDatatypeProps | IfProps | InitialProps
|
|
414
464
|
| InvokeProps | LogProps | OnentryProps | OnexitProps | ParallelProps | ParamProps
|
|
415
465
|
| RaiseProps | ScriptProps | ScxmlProps | SendProps | StateProps | TransitionProps
|
|
416
|
-
| typeof TransitionTypeDatatypeProps
|
|
466
|
+
| typeof TransitionTypeDatatypeProps | AssignArray | CancelArray | ContentArray | DataArray | DatamodelArray
|
|
467
|
+
| DonedataArray | FinalArray | FinalizeArray | ForeachArray | HistoryArray | IfArray
|
|
468
|
+
| InitialArray | InvokeArray | LogArray | OnentryArray | OnexitArray | ParallelArray
|
|
469
|
+
| ParamArray | RaiseArray | ScriptArray | SendArray | StateArray | TransitionArray;
|
|
417
470
|
|
|
418
471
|
export type KindMap = {
|
|
419
472
|
assign: AssignProps
|
|
473
|
+
assignarray: AssignArray
|
|
420
474
|
assigntypedatatype: typeof AssignTypeDatatypeProps
|
|
421
475
|
bindingdatatype: typeof BindingDatatypeProps
|
|
422
476
|
booleandatatype: typeof BooleanDatatypeProps
|
|
423
477
|
cancel: CancelProps
|
|
478
|
+
cancelarray: CancelArray
|
|
424
479
|
content: ContentProps
|
|
480
|
+
contentarray: ContentArray
|
|
425
481
|
data: DataProps
|
|
482
|
+
dataarray: DataArray
|
|
426
483
|
datamodel: DatamodelProps
|
|
484
|
+
datamodelarray: DatamodelArray
|
|
427
485
|
donedata: DonedataProps
|
|
486
|
+
donedataarray: DonedataArray
|
|
428
487
|
else: ElseProps
|
|
429
488
|
elseif: ElseifProps
|
|
430
489
|
exmodedatatype: typeof ExmodeDatatypeProps
|
|
431
490
|
final: FinalProps
|
|
491
|
+
finalarray: FinalArray
|
|
432
492
|
finalize: FinalizeProps
|
|
493
|
+
finalizearray: FinalizeArray
|
|
433
494
|
foreach: ForeachProps
|
|
495
|
+
foreacharray: ForeachArray
|
|
434
496
|
history: HistoryProps
|
|
497
|
+
historyarray: HistoryArray
|
|
435
498
|
historytypedatatype: typeof HistoryTypeDatatypeProps
|
|
436
499
|
if: IfProps
|
|
500
|
+
ifarray: IfArray
|
|
437
501
|
initial: InitialProps
|
|
502
|
+
initialarray: InitialArray
|
|
438
503
|
invoke: InvokeProps
|
|
504
|
+
invokearray: InvokeArray
|
|
439
505
|
log: LogProps
|
|
506
|
+
logarray: LogArray
|
|
440
507
|
onentry: OnentryProps
|
|
508
|
+
onentryarray: OnentryArray
|
|
441
509
|
onexit: OnexitProps
|
|
510
|
+
onexitarray: OnexitArray
|
|
442
511
|
parallel: ParallelProps
|
|
512
|
+
parallelarray: ParallelArray
|
|
443
513
|
param: ParamProps
|
|
514
|
+
paramarray: ParamArray
|
|
444
515
|
raise: RaiseProps
|
|
516
|
+
raisearray: RaiseArray
|
|
445
517
|
script: ScriptProps
|
|
518
|
+
scriptarray: ScriptArray
|
|
446
519
|
scxml: ScxmlProps
|
|
447
520
|
send: SendProps
|
|
521
|
+
sendarray: SendArray
|
|
448
522
|
state: StateProps
|
|
523
|
+
statearray: StateArray
|
|
449
524
|
transition: TransitionProps
|
|
525
|
+
transitionarray: TransitionArray
|
|
450
526
|
transitiontypedatatype: typeof TransitionTypeDatatypeProps
|
|
451
527
|
}
|
|
452
528
|
|