scjson 0.2.0 → 0.3.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.
@@ -1,81 +1,56 @@
1
1
  /**
2
- * scjsonProps.d.ts : Properties definition file for scjson types
2
+ * Agent Name: ts-props
3
3
  *
4
4
  * Part of the scjson project.
5
5
  * Developed by Softoboros Technology Inc.
6
6
  * Licensed under the BSD 1-Clause License.
7
- */
8
-
7
+ */
9
8
  export interface AssignProps {
10
9
  location: string;
11
10
  expr: string | null;
12
- typeValue: typeof AssignTypeDatatypeProps;
11
+ typeValue: AssignTypeDatatypeProps;
13
12
  attr: string | null;
14
13
  otherAttributes: Record<string, object>;
15
14
  content: Record<string, object>[];
16
15
  }
17
-
18
16
  export declare const defaultAssign: () => AssignProps;
19
-
20
- export type AssignTypeDatatypePropsType =
21
- | "addattribute"
22
- | "delete"
23
- | "firstchild"
24
- | "lastchild"
25
- | "nextsibling"
26
- | "previoussibling"
27
- | "replace"
28
- | "replacechildren"
29
- ;
30
-
17
+ export type AssignArray = AssignProps[];
31
18
  export declare const AssignTypeDatatypeProps: {
32
- readonly Addattribute: "addattribute",
33
- readonly Delete: "delete",
34
- readonly Firstchild: "firstchild",
35
- readonly Lastchild: "lastchild",
36
- readonly Nextsibling: "nextsibling",
37
- readonly Previoussibling: "previoussibling",
38
- readonly Replace: "replace",
39
- readonly Replacechildren: "replacechildren",
19
+ readonly Addattribute: "addattribute";
20
+ readonly Delete: "delete";
21
+ readonly Firstchild: "firstchild";
22
+ readonly Lastchild: "lastchild";
23
+ readonly Nextsibling: "nextsibling";
24
+ readonly Previoussibling: "previoussibling";
25
+ readonly Replace: "replace";
26
+ readonly Replacechildren: "replacechildren";
40
27
  };
41
-
42
- export type BindingDatatypePropsType =
43
- | "early"
44
- | "late"
45
- ;
46
-
28
+ export type AssignTypeDatatypeProps = typeof AssignTypeDatatypeProps[keyof typeof AssignTypeDatatypeProps];
47
29
  export declare const BindingDatatypeProps: {
48
- readonly Early: "early",
49
- readonly Late: "late",
30
+ readonly Early: "early";
31
+ readonly Late: "late";
50
32
  };
51
-
52
- export type BooleanDatatypePropsType =
53
- | "false"
54
- | "true"
55
- ;
56
-
33
+ export type BindingDatatypeProps = typeof BindingDatatypeProps[keyof typeof BindingDatatypeProps];
57
34
  export declare const BooleanDatatypeProps: {
58
- readonly False: "false",
59
- readonly True: "true",
35
+ readonly False: "false";
36
+ readonly True: "true";
60
37
  };
61
-
38
+ export type BooleanDatatypeProps = typeof BooleanDatatypeProps[keyof typeof BooleanDatatypeProps];
62
39
  export interface CancelProps {
63
40
  otherElement: Record<string, object>[];
64
41
  sendid: string | null;
65
42
  sendidexpr: string | null;
66
43
  otherAttributes: Record<string, object>;
67
44
  }
68
-
69
45
  export declare const defaultCancel: () => CancelProps;
70
-
46
+ export type CancelArray = CancelProps[];
71
47
  export interface ContentProps {
72
- otherAttributes: Record<string, object>;
48
+ content: ScxmlProps[] | null;
73
49
  expr: string | null;
74
- content: Record<string, object>[];
50
+ otherAttributes: Record<string, object>;
75
51
  }
76
-
77
52
  export declare const defaultContent: () => ContentProps;
78
-
53
+ export type ContentArray = ContentProps[];
79
54
  export interface DataProps {
80
55
  id: string;
81
56
  src: string | null;
@@ -83,48 +58,36 @@ export interface DataProps {
83
58
  otherAttributes: Record<string, object>;
84
59
  content: Record<string, object>[];
85
60
  }
86
-
87
61
  export declare const defaultData: () => DataProps;
88
-
62
+ export type DataArray = DataProps[];
89
63
  export interface DatamodelProps {
90
64
  data: DataProps[];
91
65
  otherElement: Record<string, object>[];
92
66
  otherAttributes: Record<string, object>;
93
67
  }
94
-
95
68
  export declare const defaultDatamodel: () => DatamodelProps;
96
-
69
+ export type DatamodelArray = DatamodelProps[];
97
70
  export interface DonedataProps {
98
71
  content: ContentProps | null;
99
72
  param: ParamProps[];
100
73
  otherAttributes: Record<string, object>;
101
74
  }
102
-
103
75
  export declare const defaultDonedata: () => DonedataProps;
104
-
76
+ export type DonedataArray = DonedataProps[];
105
77
  export interface ElseProps {
106
78
  otherAttributes: Record<string, object>;
107
79
  }
108
-
109
80
  export declare const defaultElse: () => ElseProps;
110
-
111
81
  export interface ElseifProps {
112
82
  cond: string;
113
83
  otherAttributes: Record<string, object>;
114
84
  }
115
-
116
85
  export declare const defaultElseif: () => ElseifProps;
117
-
118
- export type ExmodeDatatypePropsType =
119
- | "lax"
120
- | "strict"
121
- ;
122
-
123
86
  export declare const ExmodeDatatypeProps: {
124
- readonly Lax: "lax",
125
- readonly Strict: "strict",
87
+ readonly Lax: "lax";
88
+ readonly Strict: "strict";
126
89
  };
127
-
90
+ export type ExmodeDatatypeProps = typeof ExmodeDatatypeProps[keyof typeof ExmodeDatatypeProps];
128
91
  export interface FinalProps {
129
92
  onentry: OnentryProps[];
130
93
  onexit: OnexitProps[];
@@ -133,9 +96,8 @@ export interface FinalProps {
133
96
  id: string | null;
134
97
  otherAttributes: Record<string, object>;
135
98
  }
136
-
137
99
  export declare const defaultFinal: () => FinalProps;
138
-
100
+ export type FinalArray = FinalProps[];
139
101
  export interface FinalizeProps {
140
102
  otherElement: Record<string, object>[];
141
103
  raiseValue: RaiseProps[];
@@ -148,9 +110,8 @@ export interface FinalizeProps {
148
110
  cancel: CancelProps[];
149
111
  otherAttributes: Record<string, object>;
150
112
  }
151
-
152
113
  export declare const defaultFinalize: () => FinalizeProps;
153
-
114
+ export type FinalizeArray = FinalizeProps[];
154
115
  export interface ForeachProps {
155
116
  otherElement: Record<string, object>[];
156
117
  raiseValue: RaiseProps[];
@@ -166,29 +127,22 @@ export interface ForeachProps {
166
127
  index: string | null;
167
128
  otherAttributes: Record<string, object>;
168
129
  }
169
-
170
130
  export declare const defaultForeach: () => ForeachProps;
171
-
131
+ export type ForeachArray = ForeachProps[];
172
132
  export interface HistoryProps {
173
133
  otherElement: Record<string, object>[];
174
134
  transition: TransitionProps;
175
135
  id: string | null;
176
- typeValue: typeof HistoryTypeDatatypeProps | null;
136
+ typeValue: HistoryTypeDatatypeProps | null;
177
137
  otherAttributes: Record<string, object>;
178
138
  }
179
-
180
139
  export declare const defaultHistory: () => HistoryProps;
181
-
182
- export type HistoryTypeDatatypePropsType =
183
- | "deep"
184
- | "shallow"
185
- ;
186
-
140
+ export type HistoryArray = HistoryProps[];
187
141
  export declare const HistoryTypeDatatypeProps: {
188
- readonly Deep: "deep",
189
- readonly Shallow: "shallow",
142
+ readonly Deep: "deep";
143
+ readonly Shallow: "shallow";
190
144
  };
191
-
145
+ export type HistoryTypeDatatypeProps = typeof HistoryTypeDatatypeProps[keyof typeof HistoryTypeDatatypeProps];
192
146
  export interface IfProps {
193
147
  otherElement: Record<string, object>[];
194
148
  raiseValue: RaiseProps[];
@@ -204,17 +158,15 @@ export interface IfProps {
204
158
  cond: string;
205
159
  otherAttributes: Record<string, object>;
206
160
  }
207
-
208
161
  export declare const defaultIf: () => IfProps;
209
-
162
+ export type IfArray = IfProps[];
210
163
  export interface InitialProps {
211
164
  otherElement: Record<string, object>[];
212
165
  transition: TransitionProps;
213
166
  otherAttributes: Record<string, object>;
214
167
  }
215
-
216
168
  export declare const defaultInitial: () => InitialProps;
217
-
169
+ export type InitialArray = InitialProps[];
218
170
  export interface InvokeProps {
219
171
  content: ContentProps[];
220
172
  param: ParamProps[];
@@ -227,21 +179,19 @@ export interface InvokeProps {
227
179
  id: string | null;
228
180
  idlocation: string | null;
229
181
  namelist: string | null;
230
- autoforward: typeof BooleanDatatypeProps;
182
+ autoforward: BooleanDatatypeProps;
231
183
  otherAttributes: Record<string, object>;
232
184
  }
233
-
234
185
  export declare const defaultInvoke: () => InvokeProps;
235
-
186
+ export type InvokeArray = InvokeProps[];
236
187
  export interface LogProps {
237
188
  otherElement: Record<string, object>[];
238
189
  label: string | null;
239
190
  expr: string | null;
240
191
  otherAttributes: Record<string, object>;
241
192
  }
242
-
243
193
  export declare const defaultLog: () => LogProps;
244
-
194
+ export type LogArray = LogProps[];
245
195
  export interface OnentryProps {
246
196
  otherElement: Record<string, object>[];
247
197
  raiseValue: RaiseProps[];
@@ -254,9 +204,8 @@ export interface OnentryProps {
254
204
  cancel: CancelProps[];
255
205
  otherAttributes: Record<string, object>;
256
206
  }
257
-
258
207
  export declare const defaultOnentry: () => OnentryProps;
259
-
208
+ export type OnentryArray = OnentryProps[];
260
209
  export interface OnexitProps {
261
210
  otherElement: Record<string, object>[];
262
211
  raiseValue: RaiseProps[];
@@ -269,9 +218,8 @@ export interface OnexitProps {
269
218
  cancel: CancelProps[];
270
219
  otherAttributes: Record<string, object>;
271
220
  }
272
-
273
221
  export declare const defaultOnexit: () => OnexitProps;
274
-
222
+ export type OnexitArray = OnexitProps[];
275
223
  export interface ParallelProps {
276
224
  onentry: OnentryProps[];
277
225
  onexit: OnexitProps[];
@@ -285,9 +233,8 @@ export interface ParallelProps {
285
233
  id: string | null;
286
234
  otherAttributes: Record<string, object>;
287
235
  }
288
-
289
236
  export declare const defaultParallel: () => ParallelProps;
290
-
237
+ export type ParallelArray = ParallelProps[];
291
238
  export interface ParamProps {
292
239
  otherElement: Record<string, object>[];
293
240
  name: string;
@@ -295,24 +242,21 @@ export interface ParamProps {
295
242
  location: string | null;
296
243
  otherAttributes: Record<string, object>;
297
244
  }
298
-
299
245
  export declare const defaultParam: () => ParamProps;
300
-
246
+ export type ParamArray = ParamProps[];
301
247
  export interface RaiseProps {
302
248
  event: string;
303
249
  otherAttributes: Record<string, object>;
304
250
  }
305
-
306
251
  export declare const defaultRaise: () => RaiseProps;
307
-
252
+ export type RaiseArray = RaiseProps[];
308
253
  export interface ScriptProps {
309
254
  src: string | null;
310
255
  otherAttributes: Record<string, object>;
311
256
  content: Record<string, object>[];
312
257
  }
313
-
314
258
  export declare const defaultScript: () => ScriptProps;
315
-
259
+ export type ScriptArray = ScriptProps[];
316
260
  export interface ScxmlProps {
317
261
  state: StateProps[];
318
262
  parallel: ParallelProps[];
@@ -324,13 +268,11 @@ export interface ScxmlProps {
324
268
  name: string | null;
325
269
  version: number | string;
326
270
  datamodelAttribute: string;
327
- binding: typeof BindingDatatypeProps | null;
328
- exmode: typeof ExmodeDatatypeProps | null;
271
+ binding: BindingDatatypeProps | null;
272
+ exmode: ExmodeDatatypeProps | null;
329
273
  otherAttributes: Record<string, object>;
330
274
  }
331
-
332
275
  export declare const defaultScxml: () => ScxmlProps;
333
-
334
276
  export interface SendProps {
335
277
  content: ContentProps[];
336
278
  param: ParamProps[];
@@ -348,9 +290,8 @@ export interface SendProps {
348
290
  namelist: string | null;
349
291
  otherAttributes: Record<string, object>;
350
292
  }
351
-
352
293
  export declare const defaultSend: () => SendProps;
353
-
294
+ export type SendArray = SendProps[];
354
295
  export interface StateProps {
355
296
  onentry: OnentryProps[];
356
297
  onexit: OnexitProps[];
@@ -367,9 +308,8 @@ export interface StateProps {
367
308
  initialAttribute: string[];
368
309
  otherAttributes: Record<string, object>;
369
310
  }
370
-
371
311
  export declare const defaultState: () => StateProps;
372
-
312
+ export type StateArray = StateProps[];
373
313
  export interface TransitionProps {
374
314
  otherElement: Record<string, object>[];
375
315
  raiseValue: RaiseProps[];
@@ -383,70 +323,72 @@ export interface TransitionProps {
383
323
  event: string | null;
384
324
  cond: string | null;
385
325
  target: string[];
386
- typeValue: typeof TransitionTypeDatatypeProps | null;
326
+ typeValue: TransitionTypeDatatypeProps | null;
387
327
  otherAttributes: Record<string, object>;
388
328
  }
389
-
390
329
  export declare const defaultTransition: () => TransitionProps;
391
-
392
- export type TransitionTypeDatatypePropsType =
393
- | "external"
394
- | "internal"
395
- ;
396
-
330
+ export type TransitionArray = TransitionProps[];
397
331
  export declare const TransitionTypeDatatypeProps: {
398
- readonly External: "external",
399
- readonly Internal: "internal",
332
+ readonly External: "external";
333
+ readonly Internal: "internal";
400
334
  };
401
-
402
- export type Kind = "number" | "string" | "record<string, object>" | "number[]" | "string[]"
403
- | "record<string, object>[]" | "assign" | "assigntypedatatype" | "bindingdatatype" | "booleandatatype"
404
- | "cancel" | "content" | "data" | "datamodel" | "donedata" | "else" | "elseif"
405
- | "exmodedatatype" | "final" | "finalize" | "foreach" | "history" | "historytypedatatype" | "if"
406
- | "initial" | "invoke" | "log" | "onentry" | "onexit" | "parallel" | "param" | "raise"
407
- | "script" | "scxml" | "send" | "state" | "transition" | "transitiontypedatatype";
408
-
409
- export type PropsUnion = null | string | number | Record<string, object> | string[] | number[]
410
- | Record<string, object>[] | AssignProps | typeof AssignTypeDatatypeProps | typeof BindingDatatypeProps
411
- | typeof BooleanDatatypeProps | CancelProps | ContentProps | DataProps | DatamodelProps | DonedataProps
412
- | ElseProps | ElseifProps | typeof ExmodeDatatypeProps | FinalProps | FinalizeProps
413
- | ForeachProps | HistoryProps | typeof HistoryTypeDatatypeProps | IfProps | InitialProps
414
- | InvokeProps | LogProps | OnentryProps | OnexitProps | ParallelProps | ParamProps
415
- | RaiseProps | ScriptProps | ScxmlProps | SendProps | StateProps | TransitionProps
416
- | typeof TransitionTypeDatatypeProps;
417
-
335
+ export type TransitionTypeDatatypeProps = typeof TransitionTypeDatatypeProps[keyof typeof TransitionTypeDatatypeProps];
336
+ export type Kind = "number" | "string" | "record<string, object>" | "number[]" | "string[]" | "record<string, object>[]" | "assign" | "assigntypedatatype" | "bindingdatatype" | "booleandatatype" | "cancel" | "content" | "data" | "datamodel" | "donedata" | "else" | "elseif" | "exmodedatatype" | "final" | "finalize" | "foreach" | "history" | "historytypedatatype" | "if" | "initial" | "invoke" | "log" | "onentry" | "onexit" | "parallel" | "param" | "raise" | "script" | "scxml" | "send" | "state" | "transition" | "transitiontypedatatype" | "assignarray" | "cancelarray" | "contentarray" | "dataarray" | "datamodelarray" | "donedataarray" | "finalarray" | "finalizearray" | "foreacharray" | "historyarray" | "ifarray" | "initialarray" | "invokearray" | "logarray" | "onentryarray" | "onexitarray" | "parallelarray" | "paramarray" | "raisearray" | "scriptarray" | "sendarray" | "statearray" | "transitionarray";
337
+ export type PropsUnion = null | string | number | Record<string, object> | string[] | number[] | Record<string, object>[] | AssignProps | AssignTypeDatatypeProps | BindingDatatypeProps | BooleanDatatypeProps | CancelProps | ContentProps | DataProps | DatamodelProps | DonedataProps | ElseProps | ElseifProps | ExmodeDatatypeProps | FinalProps | FinalizeProps | ForeachProps | HistoryProps | HistoryTypeDatatypeProps | IfProps | InitialProps | InvokeProps | LogProps | OnentryProps | OnexitProps | ParallelProps | ParamProps | RaiseProps | ScriptProps | ScxmlProps | SendProps | StateProps | TransitionProps | TransitionTypeDatatypeProps | AssignArray | CancelArray | ContentArray | DataArray | DatamodelArray | DonedataArray | FinalArray | FinalizeArray | ForeachArray | HistoryArray | IfArray | InitialArray | InvokeArray | LogArray | OnentryArray | OnexitArray | ParallelArray | ParamArray | RaiseArray | ScriptArray | SendArray | StateArray | TransitionArray;
418
338
  export type KindMap = {
419
- assign: AssignProps
420
- assigntypedatatype: typeof AssignTypeDatatypeProps
421
- bindingdatatype: typeof BindingDatatypeProps
422
- booleandatatype: typeof BooleanDatatypeProps
423
- cancel: CancelProps
424
- content: ContentProps
425
- data: DataProps
426
- datamodel: DatamodelProps
427
- donedata: DonedataProps
428
- else: ElseProps
429
- elseif: ElseifProps
430
- exmodedatatype: typeof ExmodeDatatypeProps
431
- final: FinalProps
432
- finalize: FinalizeProps
433
- foreach: ForeachProps
434
- history: HistoryProps
435
- historytypedatatype: typeof HistoryTypeDatatypeProps
436
- if: IfProps
437
- initial: InitialProps
438
- invoke: InvokeProps
439
- log: LogProps
440
- onentry: OnentryProps
441
- onexit: OnexitProps
442
- parallel: ParallelProps
443
- param: ParamProps
444
- raise: RaiseProps
445
- script: ScriptProps
446
- scxml: ScxmlProps
447
- send: SendProps
448
- state: StateProps
449
- transition: TransitionProps
450
- transitiontypedatatype: typeof TransitionTypeDatatypeProps
451
- }
452
-
339
+ assign: AssignProps;
340
+ assignarray: AssignArray;
341
+ assigntypedatatype: AssignTypeDatatypeProps;
342
+ bindingdatatype: BindingDatatypeProps;
343
+ booleandatatype: BooleanDatatypeProps;
344
+ cancel: CancelProps;
345
+ cancelarray: CancelArray;
346
+ content: ContentProps;
347
+ contentarray: ContentArray;
348
+ data: DataProps;
349
+ dataarray: DataArray;
350
+ datamodel: DatamodelProps;
351
+ datamodelarray: DatamodelArray;
352
+ donedata: DonedataProps;
353
+ donedataarray: DonedataArray;
354
+ else: ElseProps;
355
+ elseif: ElseifProps;
356
+ exmodedatatype: ExmodeDatatypeProps;
357
+ final: FinalProps;
358
+ finalarray: FinalArray;
359
+ finalize: FinalizeProps;
360
+ finalizearray: FinalizeArray;
361
+ foreach: ForeachProps;
362
+ foreacharray: ForeachArray;
363
+ history: HistoryProps;
364
+ historyarray: HistoryArray;
365
+ historytypedatatype: HistoryTypeDatatypeProps;
366
+ if: IfProps;
367
+ ifarray: IfArray;
368
+ initial: InitialProps;
369
+ initialarray: InitialArray;
370
+ invoke: InvokeProps;
371
+ invokearray: InvokeArray;
372
+ log: LogProps;
373
+ logarray: LogArray;
374
+ onentry: OnentryProps;
375
+ onentryarray: OnentryArray;
376
+ onexit: OnexitProps;
377
+ onexitarray: OnexitArray;
378
+ parallel: ParallelProps;
379
+ parallelarray: ParallelArray;
380
+ param: ParamProps;
381
+ paramarray: ParamArray;
382
+ raise: RaiseProps;
383
+ raisearray: RaiseArray;
384
+ script: ScriptProps;
385
+ scriptarray: ScriptArray;
386
+ scxml: ScxmlProps;
387
+ send: SendProps;
388
+ sendarray: SendArray;
389
+ state: StateProps;
390
+ statearray: StateArray;
391
+ transition: TransitionProps;
392
+ transitionarray: TransitionArray;
393
+ transitiontypedatatype: TransitionTypeDatatypeProps;
394
+ };