scjson 0.2.1 → 0.3.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.
@@ -1,87 +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
17
  export type AssignArray = AssignProps[];
21
-
22
- export type AssignTypeDatatypePropsType =
23
- | "addattribute"
24
- | "delete"
25
- | "firstchild"
26
- | "lastchild"
27
- | "nextsibling"
28
- | "previoussibling"
29
- | "replace"
30
- | "replacechildren"
31
- ;
32
-
33
18
  export declare const AssignTypeDatatypeProps: {
34
- readonly Addattribute: "addattribute",
35
- readonly Delete: "delete",
36
- readonly Firstchild: "firstchild",
37
- readonly Lastchild: "lastchild",
38
- readonly Nextsibling: "nextsibling",
39
- readonly Previoussibling: "previoussibling",
40
- readonly Replace: "replace",
41
- 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";
42
27
  };
43
-
44
- export type BindingDatatypePropsType =
45
- | "early"
46
- | "late"
47
- ;
48
-
28
+ export type AssignTypeDatatypeProps = typeof AssignTypeDatatypeProps[keyof typeof AssignTypeDatatypeProps];
49
29
  export declare const BindingDatatypeProps: {
50
- readonly Early: "early",
51
- readonly Late: "late",
30
+ readonly Early: "early";
31
+ readonly Late: "late";
52
32
  };
53
-
54
- export type BooleanDatatypePropsType =
55
- | "false"
56
- | "true"
57
- ;
58
-
33
+ export type BindingDatatypeProps = typeof BindingDatatypeProps[keyof typeof BindingDatatypeProps];
59
34
  export declare const BooleanDatatypeProps: {
60
- readonly False: "false",
61
- readonly True: "true",
35
+ readonly False: "false";
36
+ readonly True: "true";
62
37
  };
63
-
38
+ export type BooleanDatatypeProps = typeof BooleanDatatypeProps[keyof typeof BooleanDatatypeProps];
64
39
  export interface CancelProps {
65
40
  otherElement: Record<string, object>[];
66
41
  sendid: string | null;
67
42
  sendidexpr: string | null;
68
43
  otherAttributes: Record<string, object>;
69
44
  }
70
-
71
45
  export declare const defaultCancel: () => CancelProps;
72
-
73
46
  export type CancelArray = CancelProps[];
74
-
75
47
  export interface ContentProps {
76
- otherAttributes: Record<string, object>;
48
+ content: ScxmlProps[] | null;
77
49
  expr: string | null;
78
- content: Record<string, object>[];
50
+ otherAttributes: Record<string, object>;
79
51
  }
80
-
81
52
  export declare const defaultContent: () => ContentProps;
82
-
83
53
  export type ContentArray = ContentProps[];
84
-
85
54
  export interface DataProps {
86
55
  id: string;
87
56
  src: string | null;
@@ -89,54 +58,36 @@ export interface DataProps {
89
58
  otherAttributes: Record<string, object>;
90
59
  content: Record<string, object>[];
91
60
  }
92
-
93
61
  export declare const defaultData: () => DataProps;
94
-
95
62
  export type DataArray = DataProps[];
96
-
97
63
  export interface DatamodelProps {
98
64
  data: DataProps[];
99
65
  otherElement: Record<string, object>[];
100
66
  otherAttributes: Record<string, object>;
101
67
  }
102
-
103
68
  export declare const defaultDatamodel: () => DatamodelProps;
104
-
105
69
  export type DatamodelArray = DatamodelProps[];
106
-
107
70
  export interface DonedataProps {
108
71
  content: ContentProps | null;
109
72
  param: ParamProps[];
110
73
  otherAttributes: Record<string, object>;
111
74
  }
112
-
113
75
  export declare const defaultDonedata: () => DonedataProps;
114
-
115
76
  export type DonedataArray = DonedataProps[];
116
-
117
77
  export interface ElseProps {
118
78
  otherAttributes: Record<string, object>;
119
79
  }
120
-
121
80
  export declare const defaultElse: () => ElseProps;
122
-
123
81
  export interface ElseifProps {
124
82
  cond: string;
125
83
  otherAttributes: Record<string, object>;
126
84
  }
127
-
128
85
  export declare const defaultElseif: () => ElseifProps;
129
-
130
- export type ExmodeDatatypePropsType =
131
- | "lax"
132
- | "strict"
133
- ;
134
-
135
86
  export declare const ExmodeDatatypeProps: {
136
- readonly Lax: "lax",
137
- readonly Strict: "strict",
87
+ readonly Lax: "lax";
88
+ readonly Strict: "strict";
138
89
  };
139
-
90
+ export type ExmodeDatatypeProps = typeof ExmodeDatatypeProps[keyof typeof ExmodeDatatypeProps];
140
91
  export interface FinalProps {
141
92
  onentry: OnentryProps[];
142
93
  onexit: OnexitProps[];
@@ -145,11 +96,8 @@ export interface FinalProps {
145
96
  id: string | null;
146
97
  otherAttributes: Record<string, object>;
147
98
  }
148
-
149
99
  export declare const defaultFinal: () => FinalProps;
150
-
151
100
  export type FinalArray = FinalProps[];
152
-
153
101
  export interface FinalizeProps {
154
102
  otherElement: Record<string, object>[];
155
103
  raiseValue: RaiseProps[];
@@ -162,11 +110,8 @@ export interface FinalizeProps {
162
110
  cancel: CancelProps[];
163
111
  otherAttributes: Record<string, object>;
164
112
  }
165
-
166
113
  export declare const defaultFinalize: () => FinalizeProps;
167
-
168
114
  export type FinalizeArray = FinalizeProps[];
169
-
170
115
  export interface ForeachProps {
171
116
  otherElement: Record<string, object>[];
172
117
  raiseValue: RaiseProps[];
@@ -182,33 +127,22 @@ export interface ForeachProps {
182
127
  index: string | null;
183
128
  otherAttributes: Record<string, object>;
184
129
  }
185
-
186
130
  export declare const defaultForeach: () => ForeachProps;
187
-
188
131
  export type ForeachArray = ForeachProps[];
189
-
190
132
  export interface HistoryProps {
191
133
  otherElement: Record<string, object>[];
192
134
  transition: TransitionProps;
193
135
  id: string | null;
194
- typeValue: typeof HistoryTypeDatatypeProps | null;
136
+ typeValue: HistoryTypeDatatypeProps | null;
195
137
  otherAttributes: Record<string, object>;
196
138
  }
197
-
198
139
  export declare const defaultHistory: () => HistoryProps;
199
-
200
140
  export type HistoryArray = HistoryProps[];
201
-
202
- export type HistoryTypeDatatypePropsType =
203
- | "deep"
204
- | "shallow"
205
- ;
206
-
207
141
  export declare const HistoryTypeDatatypeProps: {
208
- readonly Deep: "deep",
209
- readonly Shallow: "shallow",
142
+ readonly Deep: "deep";
143
+ readonly Shallow: "shallow";
210
144
  };
211
-
145
+ export type HistoryTypeDatatypeProps = typeof HistoryTypeDatatypeProps[keyof typeof HistoryTypeDatatypeProps];
212
146
  export interface IfProps {
213
147
  otherElement: Record<string, object>[];
214
148
  raiseValue: RaiseProps[];
@@ -224,21 +158,15 @@ export interface IfProps {
224
158
  cond: string;
225
159
  otherAttributes: Record<string, object>;
226
160
  }
227
-
228
161
  export declare const defaultIf: () => IfProps;
229
-
230
162
  export type IfArray = IfProps[];
231
-
232
163
  export interface InitialProps {
233
164
  otherElement: Record<string, object>[];
234
165
  transition: TransitionProps;
235
166
  otherAttributes: Record<string, object>;
236
167
  }
237
-
238
168
  export declare const defaultInitial: () => InitialProps;
239
-
240
169
  export type InitialArray = InitialProps[];
241
-
242
170
  export interface InvokeProps {
243
171
  content: ContentProps[];
244
172
  param: ParamProps[];
@@ -251,25 +179,19 @@ export interface InvokeProps {
251
179
  id: string | null;
252
180
  idlocation: string | null;
253
181
  namelist: string | null;
254
- autoforward: typeof BooleanDatatypeProps;
182
+ autoforward: BooleanDatatypeProps;
255
183
  otherAttributes: Record<string, object>;
256
184
  }
257
-
258
185
  export declare const defaultInvoke: () => InvokeProps;
259
-
260
186
  export type InvokeArray = InvokeProps[];
261
-
262
187
  export interface LogProps {
263
188
  otherElement: Record<string, object>[];
264
189
  label: string | null;
265
190
  expr: string | null;
266
191
  otherAttributes: Record<string, object>;
267
192
  }
268
-
269
193
  export declare const defaultLog: () => LogProps;
270
-
271
194
  export type LogArray = LogProps[];
272
-
273
195
  export interface OnentryProps {
274
196
  otherElement: Record<string, object>[];
275
197
  raiseValue: RaiseProps[];
@@ -282,11 +204,8 @@ export interface OnentryProps {
282
204
  cancel: CancelProps[];
283
205
  otherAttributes: Record<string, object>;
284
206
  }
285
-
286
207
  export declare const defaultOnentry: () => OnentryProps;
287
-
288
208
  export type OnentryArray = OnentryProps[];
289
-
290
209
  export interface OnexitProps {
291
210
  otherElement: Record<string, object>[];
292
211
  raiseValue: RaiseProps[];
@@ -299,11 +218,8 @@ export interface OnexitProps {
299
218
  cancel: CancelProps[];
300
219
  otherAttributes: Record<string, object>;
301
220
  }
302
-
303
221
  export declare const defaultOnexit: () => OnexitProps;
304
-
305
222
  export type OnexitArray = OnexitProps[];
306
-
307
223
  export interface ParallelProps {
308
224
  onentry: OnentryProps[];
309
225
  onexit: OnexitProps[];
@@ -317,11 +233,8 @@ export interface ParallelProps {
317
233
  id: string | null;
318
234
  otherAttributes: Record<string, object>;
319
235
  }
320
-
321
236
  export declare const defaultParallel: () => ParallelProps;
322
-
323
237
  export type ParallelArray = ParallelProps[];
324
-
325
238
  export interface ParamProps {
326
239
  otherElement: Record<string, object>[];
327
240
  name: string;
@@ -329,30 +242,21 @@ export interface ParamProps {
329
242
  location: string | null;
330
243
  otherAttributes: Record<string, object>;
331
244
  }
332
-
333
245
  export declare const defaultParam: () => ParamProps;
334
-
335
246
  export type ParamArray = ParamProps[];
336
-
337
247
  export interface RaiseProps {
338
248
  event: string;
339
249
  otherAttributes: Record<string, object>;
340
250
  }
341
-
342
251
  export declare const defaultRaise: () => RaiseProps;
343
-
344
252
  export type RaiseArray = RaiseProps[];
345
-
346
253
  export interface ScriptProps {
347
254
  src: string | null;
348
255
  otherAttributes: Record<string, object>;
349
256
  content: Record<string, object>[];
350
257
  }
351
-
352
258
  export declare const defaultScript: () => ScriptProps;
353
-
354
259
  export type ScriptArray = ScriptProps[];
355
-
356
260
  export interface ScxmlProps {
357
261
  state: StateProps[];
358
262
  parallel: ParallelProps[];
@@ -364,13 +268,11 @@ export interface ScxmlProps {
364
268
  name: string | null;
365
269
  version: number | string;
366
270
  datamodelAttribute: string;
367
- binding: typeof BindingDatatypeProps | null;
368
- exmode: typeof ExmodeDatatypeProps | null;
271
+ binding: BindingDatatypeProps | null;
272
+ exmode: ExmodeDatatypeProps | null;
369
273
  otherAttributes: Record<string, object>;
370
274
  }
371
-
372
275
  export declare const defaultScxml: () => ScxmlProps;
373
-
374
276
  export interface SendProps {
375
277
  content: ContentProps[];
376
278
  param: ParamProps[];
@@ -388,11 +290,8 @@ export interface SendProps {
388
290
  namelist: string | null;
389
291
  otherAttributes: Record<string, object>;
390
292
  }
391
-
392
293
  export declare const defaultSend: () => SendProps;
393
-
394
294
  export type SendArray = SendProps[];
395
-
396
295
  export interface StateProps {
397
296
  onentry: OnentryProps[];
398
297
  onexit: OnexitProps[];
@@ -409,11 +308,8 @@ export interface StateProps {
409
308
  initialAttribute: string[];
410
309
  otherAttributes: Record<string, object>;
411
310
  }
412
-
413
311
  export declare const defaultState: () => StateProps;
414
-
415
312
  export type StateArray = StateProps[];
416
-
417
313
  export interface TransitionProps {
418
314
  otherElement: Record<string, object>[];
419
315
  raiseValue: RaiseProps[];
@@ -427,102 +323,72 @@ export interface TransitionProps {
427
323
  event: string | null;
428
324
  cond: string | null;
429
325
  target: string[];
430
- typeValue: typeof TransitionTypeDatatypeProps | null;
326
+ typeValue: TransitionTypeDatatypeProps | null;
431
327
  otherAttributes: Record<string, object>;
432
328
  }
433
-
434
329
  export declare const defaultTransition: () => TransitionProps;
435
-
436
330
  export type TransitionArray = TransitionProps[];
437
-
438
- export type TransitionTypeDatatypePropsType =
439
- | "external"
440
- | "internal"
441
- ;
442
-
443
331
  export declare const TransitionTypeDatatypeProps: {
444
- readonly External: "external",
445
- readonly Internal: "internal",
332
+ readonly External: "external";
333
+ readonly Internal: "internal";
446
334
  };
447
-
448
- export type Kind = "number" | "string" | "record<string, object>" | "number[]" | "string[]"
449
- | "record<string, object>[]" | "assign" | "assigntypedatatype" | "bindingdatatype" | "booleandatatype"
450
- | "cancel" | "content" | "data" | "datamodel" | "donedata" | "else" | "elseif"
451
- | "exmodedatatype" | "final" | "finalize" | "foreach" | "history" | "historytypedatatype" | "if"
452
- | "initial" | "invoke" | "log" | "onentry" | "onexit" | "parallel" | "param" | "raise"
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";
458
-
459
- export type PropsUnion = null | string | number | Record<string, object> | string[] | number[]
460
- | Record<string, object>[] | AssignProps | typeof AssignTypeDatatypeProps | typeof BindingDatatypeProps
461
- | typeof BooleanDatatypeProps | CancelProps | ContentProps | DataProps | DatamodelProps | DonedataProps
462
- | ElseProps | ElseifProps | typeof ExmodeDatatypeProps | FinalProps | FinalizeProps
463
- | ForeachProps | HistoryProps | typeof HistoryTypeDatatypeProps | IfProps | InitialProps
464
- | InvokeProps | LogProps | OnentryProps | OnexitProps | ParallelProps | ParamProps
465
- | RaiseProps | ScriptProps | ScxmlProps | SendProps | StateProps | TransitionProps
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;
470
-
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;
471
338
  export type KindMap = {
472
- assign: AssignProps
473
- assignarray: AssignArray
474
- assigntypedatatype: typeof AssignTypeDatatypeProps
475
- bindingdatatype: typeof BindingDatatypeProps
476
- booleandatatype: typeof BooleanDatatypeProps
477
- cancel: CancelProps
478
- cancelarray: CancelArray
479
- content: ContentProps
480
- contentarray: ContentArray
481
- data: DataProps
482
- dataarray: DataArray
483
- datamodel: DatamodelProps
484
- datamodelarray: DatamodelArray
485
- donedata: DonedataProps
486
- donedataarray: DonedataArray
487
- else: ElseProps
488
- elseif: ElseifProps
489
- exmodedatatype: typeof ExmodeDatatypeProps
490
- final: FinalProps
491
- finalarray: FinalArray
492
- finalize: FinalizeProps
493
- finalizearray: FinalizeArray
494
- foreach: ForeachProps
495
- foreacharray: ForeachArray
496
- history: HistoryProps
497
- historyarray: HistoryArray
498
- historytypedatatype: typeof HistoryTypeDatatypeProps
499
- if: IfProps
500
- ifarray: IfArray
501
- initial: InitialProps
502
- initialarray: InitialArray
503
- invoke: InvokeProps
504
- invokearray: InvokeArray
505
- log: LogProps
506
- logarray: LogArray
507
- onentry: OnentryProps
508
- onentryarray: OnentryArray
509
- onexit: OnexitProps
510
- onexitarray: OnexitArray
511
- parallel: ParallelProps
512
- parallelarray: ParallelArray
513
- param: ParamProps
514
- paramarray: ParamArray
515
- raise: RaiseProps
516
- raisearray: RaiseArray
517
- script: ScriptProps
518
- scriptarray: ScriptArray
519
- scxml: ScxmlProps
520
- send: SendProps
521
- sendarray: SendArray
522
- state: StateProps
523
- statearray: StateArray
524
- transition: TransitionProps
525
- transitionarray: TransitionArray
526
- transitiontypedatatype: typeof TransitionTypeDatatypeProps
527
- }
528
-
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
+ };