@dialecte/plc 0.1.0 → 0.2.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.
@@ -7,26 +7,29 @@ export type AttributesAccessVariable = {
7
7
  instancePathAndName: string;
8
8
  pragma?: string;
9
9
  };
10
- export type AttributesAccessVars = {
11
- accessSpecifier?: 'private' | 'protected' | 'internal' | 'public' | (string & {});
10
+ export type AttributesAccessVars = AttributesAccessVars_Own | AttributesAccessVars_VarListWithAccessSpec;
11
+ export type AttributesAccessVars_Own = {
12
+ 'xsi:type'?: 'VarList';
12
13
  constant?: string;
13
14
  globalId?: string;
14
15
  non_retain?: string;
15
16
  pragma?: string;
16
17
  retain?: string;
17
- 'xsi:type'?: 'VarListWithAccessSpec' | (string & {});
18
- };
19
- export type AttributesAccessVarsInConfiguration = {
20
- globalId?: string;
21
- pragma?: string;
18
+ accessSpecifier?: undefined;
22
19
  };
23
- export type AttributesAccessVarsInProgram = {
20
+ export type AttributesAccessVars_VarListWithAccessSpec = {
21
+ 'xsi:type': 'VarListWithAccessSpec';
22
+ accessSpecifier: 'private' | 'protected' | 'internal' | 'public' | (string & {});
24
23
  constant?: string;
25
24
  globalId?: string;
26
25
  non_retain?: string;
27
26
  pragma?: string;
28
27
  retain?: string;
29
28
  };
29
+ export type AttributesAccessVarsInConfiguration = {
30
+ globalId?: string;
31
+ pragma?: string;
32
+ };
30
33
  export type AttributesAction = {
31
34
  globalId?: string;
32
35
  name: string;
@@ -42,21 +45,43 @@ export type AttributesActionQualifier = {
42
45
  };
43
46
  export type AttributesAddData = {};
44
47
  export type AttributesAddDataInfo = {};
45
- export type AttributesAddress = {
48
+ export type AttributesAddress = AttributesAddress_Own | AttributesAddress_AddressExpression;
49
+ export type AttributesAddress_Own = {
50
+ 'xsi:type'?: 'FixedAddressExpression';
51
+ address?: string;
52
+ globalId?: string;
53
+ location?: 'I' | 'Q' | 'M' | (string & {});
54
+ notYetFixed?: string;
55
+ pragma?: string;
56
+ size?: 'X' | 'B' | 'W' | 'D' | 'L' | (string & {});
57
+ };
58
+ export type AttributesAddress_AddressExpression = {
59
+ 'xsi:type': 'AddressExpression';
46
60
  address?: string;
47
61
  globalId?: string;
48
62
  location?: 'I' | 'Q' | 'M' | (string & {});
49
63
  notYetFixed?: string;
50
64
  pragma?: string;
51
65
  size?: 'X' | 'B' | 'W' | 'D' | 'L' | (string & {});
52
- 'xsi:type'?: 'AddressExpression' | (string & {});
53
66
  };
54
- export type AttributesAddressInConfigVariable = {
67
+ export type AttributesAddressInConfigVariable = AttributesAddressInConfigVariable_Own | AttributesAddressInConfigVariable_AddressExpression;
68
+ export type AttributesAddressInConfigVariable_Own = {
69
+ 'xsi:type'?: 'FixedAddressExpression';
55
70
  address?: string;
56
71
  globalId?: string;
57
72
  location?: 'I' | 'Q' | 'M' | (string & {});
58
73
  pragma?: string;
59
74
  size?: 'X' | 'B' | 'W' | 'D' | 'L' | (string & {});
75
+ notYetFixed?: undefined;
76
+ };
77
+ export type AttributesAddressInConfigVariable_AddressExpression = {
78
+ 'xsi:type': 'AddressExpression';
79
+ address?: string;
80
+ globalId?: string;
81
+ location?: 'I' | 'Q' | 'M' | (string & {});
82
+ notYetFixed?: string;
83
+ pragma?: string;
84
+ size?: 'X' | 'B' | 'W' | 'D' | 'L' | (string & {});
60
85
  };
61
86
  export type AttributesAddressInMember = {
62
87
  address?: string;
@@ -76,26 +101,26 @@ export type AttributesAddressInVariable = {
76
101
  };
77
102
  export type AttributesArrayValue = {};
78
103
  export type AttributesBaseType = {};
79
- export type AttributesBaseTypeInInstantlyDefinedType = {};
80
- export type AttributesBaseTypeInUserDefinedTypeSpec = {};
81
104
  export type AttributesBody = {
82
105
  globalId?: string;
83
106
  pragma?: string;
84
107
  };
85
- export type AttributesBodyInAction = {
86
- globalId?: string;
87
- pragma?: string;
108
+ export type AttributesBodyContent = AttributesBodyContent_FBD | AttributesBodyContent_IL | AttributesBodyContent_LD | AttributesBodyContent_SFC | AttributesBodyContent_ST;
109
+ export type AttributesBodyContent_FBD = {
110
+ 'xsi:type': 'FBD';
88
111
  };
89
- export type AttributesBodyInMethod = {
90
- globalId?: string;
91
- pragma?: string;
112
+ export type AttributesBodyContent_IL = {
113
+ 'xsi:type': 'IL';
114
+ };
115
+ export type AttributesBodyContent_LD = {
116
+ 'xsi:type': 'LD';
117
+ };
118
+ export type AttributesBodyContent_SFC = {
119
+ 'xsi:type': 'SFC';
92
120
  };
93
- export type AttributesBodyContent = {
94
- 'xsi:type'?: 'FBD' | 'IL' | 'LD' | 'SFC' | 'ST' | (string & {});
121
+ export type AttributesBodyContent_ST = {
122
+ 'xsi:type': 'ST';
95
123
  };
96
- export type AttributesBodyContentInBody = {};
97
- export type AttributesBodyContentInInline = {};
98
- export type AttributesBodyContentInMainBody = {};
99
124
  export type AttributesClass = {
100
125
  abstract?: string;
101
126
  final?: string;
@@ -104,23 +129,42 @@ export type AttributesClass = {
104
129
  name: string;
105
130
  pragma?: string;
106
131
  };
107
- export type AttributesCommonObject = {
132
+ export type AttributesCommonObject = AttributesCommonObject_ActionBlocks | AttributesCommonObject_Comment | AttributesCommonObject_Connector | AttributesCommonObject_Continuation;
133
+ export type AttributesCommonObject_ActionBlocks = {
134
+ 'xsi:type': 'ActionBlocks';
108
135
  globalId?: string;
109
- label?: string;
110
- 'xsi:type'?: 'ActionBlocks' | 'Comment' | 'Connector' | 'Continuation' | (string & {});
136
+ label?: undefined;
111
137
  };
112
- export type AttributesComplexOperand = {
113
- 'xsi:type'?: 'AccessSpecifiers' | 'EdgeModifierType' | (string & {});
138
+ export type AttributesCommonObject_Comment = {
139
+ 'xsi:type': 'Comment';
140
+ globalId?: string;
141
+ label?: undefined;
114
142
  };
115
- export type AttributesCondition = {
143
+ export type AttributesCommonObject_Connector = {
144
+ 'xsi:type': 'Connector';
116
145
  globalId?: string;
117
- pragma?: string;
146
+ label: string;
118
147
  };
119
- export type AttributesConditionInSfcObject = {};
120
- export type AttributesConditionInTransition = {
148
+ export type AttributesCommonObject_Continuation = {
149
+ 'xsi:type': 'Continuation';
150
+ globalId?: string;
151
+ label: string;
152
+ };
153
+ export type AttributesComplexOperand = AttributesComplexOperand_Own | AttributesComplexOperand_AccessSpecifiers | AttributesComplexOperand_EdgeModifierType;
154
+ export type AttributesComplexOperand_Own = {
155
+ 'xsi:type'?: never;
156
+ };
157
+ export type AttributesComplexOperand_AccessSpecifiers = {
158
+ 'xsi:type': 'AccessSpecifiers';
159
+ };
160
+ export type AttributesComplexOperand_EdgeModifierType = {
161
+ 'xsi:type': 'EdgeModifierType';
162
+ };
163
+ export type AttributesCondition = {
121
164
  globalId?: string;
122
165
  pragma?: string;
123
166
  };
167
+ export type AttributesConditionInSfcObject = {};
124
168
  export type AttributesConfigVariable = {
125
169
  globalId?: string;
126
170
  instancePathAndName: string;
@@ -135,11 +179,18 @@ export type AttributesConfiguration = {
135
179
  name: string;
136
180
  pragma?: string;
137
181
  };
138
- export type AttributesConnection = {
139
- feedbackVariable?: string;
182
+ export type AttributesConnection = AttributesConnection_Own | AttributesConnection_FeedbackConnection;
183
+ export type AttributesConnection_Own = {
184
+ 'xsi:type'?: 'Connection';
185
+ globalId?: string;
186
+ refConnectionPointOutId: string;
187
+ feedbackVariable?: undefined;
188
+ };
189
+ export type AttributesConnection_FeedbackConnection = {
190
+ 'xsi:type': 'FeedbackConnection';
191
+ feedbackVariable: string;
140
192
  globalId?: string;
141
193
  refConnectionPointOutId: string;
142
- 'xsi:type'?: 'FeedbackConnection' | (string & {});
143
194
  };
144
195
  export type AttributesConnectionPointIn = {
145
196
  globalId?: string;
@@ -169,16 +220,12 @@ export type AttributesConnectionPointOutInOutputVariable = {
169
220
  connectionPointOutId: string;
170
221
  globalId?: string;
171
222
  };
172
- export type AttributesConnectionPointOutInSfcObject = {
173
- connectionPointOutId: string;
174
- globalId?: string;
175
- };
176
223
  export type AttributesConnectionPointOutAction = {
177
224
  connectionPointOutId: string;
178
225
  globalId?: string;
179
226
  };
180
227
  export type AttributesContent = {
181
- 'xsi:type'?: 'SimpleText' | (string & {});
228
+ 'xsi:type': 'SimpleText';
182
229
  };
183
230
  export type AttributesContentHeader = {
184
231
  author?: string;
@@ -201,22 +248,18 @@ export type AttributesDataTypeDecl = {
201
248
  pragma?: string;
202
249
  };
203
250
  export type AttributesDescription = {
204
- 'xsi:type'?: 'SimpleText' | (string & {});
251
+ 'xsi:type': 'SimpleText';
205
252
  };
206
253
  export type AttributesDimensionSpec = {
207
254
  dimensionNumber: string;
208
255
  };
209
256
  export type AttributesDocumentation = {
210
- 'xsi:type'?: 'SimpleText' | (string & {});
257
+ 'xsi:type': 'SimpleText';
211
258
  };
212
259
  export type AttributesEnumerator = {
213
260
  name: string;
214
261
  value?: string;
215
262
  };
216
- export type AttributesEnumeratorInUserDefinedTypeSpec = {
217
- name: string;
218
- value: string;
219
- };
220
263
  export type AttributesExtends = {};
221
264
  export type AttributesExternalVars = {
222
265
  constant?: string;
@@ -227,14 +270,60 @@ export type AttributesFbInstTaskAssociation = {
227
270
  associatedTaskName: string;
228
271
  fbInstanceName: string;
229
272
  };
230
- export type AttributesFbdObject = {
231
- complexIdentifier?: string;
273
+ export type AttributesFbdObject = AttributesFbdObject_Block | AttributesFbdObject_DataSink | AttributesFbdObject_DataSource | AttributesFbdObject_Jump | AttributesFbdObject_Return | AttributesFbdObject_Unconnected;
274
+ export type AttributesFbdObject_Block = {
275
+ 'xsi:type': 'Block';
232
276
  globalId?: string;
233
- identifier?: string;
234
277
  instanceName?: string;
235
- targetNetworkLabel?: string;
236
- typeName?: string;
237
- 'xsi:type'?: 'Block' | 'DataSink' | 'DataSource' | 'Jump' | 'Return' | 'Unconnected' | (string & {});
278
+ typeName: string;
279
+ identifier?: undefined;
280
+ targetNetworkLabel?: undefined;
281
+ complexIdentifier?: undefined;
282
+ };
283
+ export type AttributesFbdObject_DataSink = {
284
+ 'xsi:type': 'DataSink';
285
+ globalId?: string;
286
+ identifier: string;
287
+ instanceName?: undefined;
288
+ typeName?: undefined;
289
+ targetNetworkLabel?: undefined;
290
+ complexIdentifier?: undefined;
291
+ };
292
+ export type AttributesFbdObject_DataSource = {
293
+ 'xsi:type': 'DataSource';
294
+ globalId?: string;
295
+ identifier: string;
296
+ instanceName?: undefined;
297
+ typeName?: undefined;
298
+ targetNetworkLabel?: undefined;
299
+ complexIdentifier?: undefined;
300
+ };
301
+ export type AttributesFbdObject_Jump = {
302
+ 'xsi:type': 'Jump';
303
+ globalId?: string;
304
+ targetNetworkLabel: string;
305
+ instanceName?: undefined;
306
+ typeName?: undefined;
307
+ identifier?: undefined;
308
+ complexIdentifier?: undefined;
309
+ };
310
+ export type AttributesFbdObject_Return = {
311
+ 'xsi:type': 'Return';
312
+ globalId?: string;
313
+ instanceName?: undefined;
314
+ typeName?: undefined;
315
+ identifier?: undefined;
316
+ targetNetworkLabel?: undefined;
317
+ complexIdentifier?: undefined;
318
+ };
319
+ export type AttributesFbdObject_Unconnected = {
320
+ 'xsi:type': 'Unconnected';
321
+ complexIdentifier: string;
322
+ globalId?: string;
323
+ instanceName?: undefined;
324
+ typeName?: undefined;
325
+ identifier?: undefined;
326
+ targetNetworkLabel?: undefined;
238
327
  };
239
328
  export type AttributesFbdScaling = {
240
329
  x: string;
@@ -270,24 +359,48 @@ export type AttributesGlobalNamespace = {
270
359
  globalId?: string;
271
360
  pragma?: string;
272
361
  };
273
- export type AttributesGlobalVars = {
274
- accessSpecifier?: 'private' | 'protected' | 'internal' | 'public' | (string & {});
362
+ export type AttributesGlobalVars = AttributesGlobalVars_Own | AttributesGlobalVars_VarListWithAccessSpec;
363
+ export type AttributesGlobalVars_Own = {
364
+ 'xsi:type'?: 'VarList';
365
+ constant?: string;
366
+ globalId?: string;
367
+ non_retain?: string;
368
+ pragma?: string;
369
+ retain?: string;
370
+ accessSpecifier?: undefined;
371
+ };
372
+ export type AttributesGlobalVars_VarListWithAccessSpec = {
373
+ 'xsi:type': 'VarListWithAccessSpec';
374
+ accessSpecifier: 'private' | 'protected' | 'internal' | 'public' | (string & {});
275
375
  constant?: string;
276
376
  globalId?: string;
277
377
  non_retain?: string;
278
378
  pragma?: string;
279
379
  retain?: string;
280
- 'xsi:type'?: 'VarListWithAccessSpec' | (string & {});
281
380
  };
282
- export type AttributesGraphicalExpression = {
381
+ export type AttributesGraphicalExpression = AttributesGraphicalExpression_FbdNetwork | AttributesGraphicalExpression_LadderRung;
382
+ export type AttributesGraphicalExpression_FbdNetwork = {
383
+ 'xsi:type': 'FbdNetwork';
384
+ evaluationOrder: string;
385
+ globalId?: string;
386
+ label?: string;
387
+ };
388
+ export type AttributesGraphicalExpression_LadderRung = {
389
+ 'xsi:type': 'LadderRung';
283
390
  evaluationOrder: string;
284
391
  globalId?: string;
285
392
  label?: string;
286
- 'xsi:type'?: 'FbdNetwork' | 'LadderRung' | (string & {});
287
393
  };
288
394
  export type AttributesGraphicalPredicate = {};
289
- export type AttributesIL = {
290
- 'xsi:type'?: 'AccessSpecifiers' | 'EdgeModifierType' | (string & {});
395
+ export type AttributesIL = AttributesIL_Own | AttributesIL_AccessSpecifiers | AttributesIL_EdgeModifierType;
396
+ export type AttributesIL_Own = {
397
+ 'xsi:type'?: never;
398
+ };
399
+ export type AttributesIL_AccessSpecifiers = {
400
+ 'xsi:type': 'AccessSpecifiers';
401
+ };
402
+ export type AttributesIL_EdgeModifierType = {
403
+ 'xsi:type': 'EdgeModifierType';
291
404
  };
292
405
  export type AttributesImplements = {};
293
406
  export type AttributesInOutAssignment = {
@@ -309,12 +422,18 @@ export type AttributesInfo = {
309
422
  vendor: string;
310
423
  version?: string;
311
424
  };
312
- export type AttributesInitialValue = {
313
- 'xsi:type'?: 'AccessSpecifiers' | 'EdgeModifierType' | (string & {});
425
+ export type AttributesInitialValue = AttributesInitialValue_Own | AttributesInitialValue_AccessSpecifiers | AttributesInitialValue_EdgeModifierType;
426
+ export type AttributesInitialValue_Own = {
427
+ 'xsi:type'?: 'Value';
428
+ };
429
+ export type AttributesInitialValue_AccessSpecifiers = {
430
+ 'xsi:type': 'AccessSpecifiers';
431
+ };
432
+ export type AttributesInitialValue_EdgeModifierType = {
433
+ 'xsi:type': 'EdgeModifierType';
314
434
  };
315
435
  export type AttributesInitialValueInConfigVariable = {};
316
436
  export type AttributesInitialValueInMember = {};
317
- export type AttributesInitialValueInUserDefinedTypeSpec = {};
318
437
  export type AttributesInitialValueInVariable = {};
319
438
  export type AttributesInline = {
320
439
  globalId?: string;
@@ -338,8 +457,12 @@ export type AttributesInputVars = {
338
457
  retain?: string;
339
458
  };
340
459
  export type AttributesInstances = {};
341
- export type AttributesInstantlyDefinedType = {
342
- 'xsi:type'?: 'ArrayTypeSpec' | 'ReferenceTypeSpec' | (string & {});
460
+ export type AttributesInstantlyDefinedType = AttributesInstantlyDefinedType_ArrayTypeSpec | AttributesInstantlyDefinedType_ReferenceTypeSpec;
461
+ export type AttributesInstantlyDefinedType_ArrayTypeSpec = {
462
+ 'xsi:type': 'ArrayTypeSpec';
463
+ };
464
+ export type AttributesInstantlyDefinedType_ReferenceTypeSpec = {
465
+ 'xsi:type': 'ReferenceTypeSpec';
343
466
  };
344
467
  export type AttributesInterface = {
345
468
  globalId?: string;
@@ -347,16 +470,61 @@ export type AttributesInterface = {
347
470
  name: string;
348
471
  pragma?: string;
349
472
  };
350
- export type AttributesLdObject = {
351
- compareOperator?: '>' | '>=' | '=' | '<=' | '<' | '<>' | (string & {});
473
+ export type AttributesLdObject = AttributesLdObject_Coil | AttributesLdObject_CompareContact | AttributesLdObject_Contact | AttributesLdObject_LeftPowerRail | AttributesLdObject_RightPowerRail;
474
+ export type AttributesLdObject_Coil = {
475
+ 'xsi:type': 'Coil';
352
476
  edge?: 'none' | 'falling' | 'rising' | (string & {});
353
477
  globalId?: string;
354
478
  latch?: 'none' | 'set' | 'reset' | (string & {});
355
479
  negated?: string;
356
- operand?: string;
357
- operand1?: string;
358
- operand2?: string;
359
- 'xsi:type'?: 'Coil' | 'CompareContact' | 'Contact' | 'LeftPowerRail' | 'RightPowerRail' | (string & {});
480
+ operand: string;
481
+ compareOperator?: undefined;
482
+ operand1?: undefined;
483
+ operand2?: undefined;
484
+ };
485
+ export type AttributesLdObject_CompareContact = {
486
+ 'xsi:type': 'CompareContact';
487
+ compareOperator: '>' | '>=' | '=' | '<=' | '<' | '<>' | (string & {});
488
+ globalId?: string;
489
+ operand1: string;
490
+ operand2: string;
491
+ edge?: undefined;
492
+ latch?: undefined;
493
+ negated?: undefined;
494
+ operand?: undefined;
495
+ };
496
+ export type AttributesLdObject_Contact = {
497
+ 'xsi:type': 'Contact';
498
+ edge?: 'none' | 'falling' | 'rising' | (string & {});
499
+ globalId?: string;
500
+ negated?: string;
501
+ operand: string;
502
+ latch?: undefined;
503
+ compareOperator?: undefined;
504
+ operand1?: undefined;
505
+ operand2?: undefined;
506
+ };
507
+ export type AttributesLdObject_LeftPowerRail = {
508
+ 'xsi:type': 'LeftPowerRail';
509
+ globalId?: string;
510
+ edge?: undefined;
511
+ latch?: undefined;
512
+ negated?: undefined;
513
+ operand?: undefined;
514
+ compareOperator?: undefined;
515
+ operand1?: undefined;
516
+ operand2?: undefined;
517
+ };
518
+ export type AttributesLdObject_RightPowerRail = {
519
+ 'xsi:type': 'RightPowerRail';
520
+ globalId?: string;
521
+ edge?: undefined;
522
+ latch?: undefined;
523
+ negated?: undefined;
524
+ operand?: undefined;
525
+ compareOperator?: undefined;
526
+ operand1?: undefined;
527
+ operand2?: undefined;
360
528
  };
361
529
  export type AttributesLdScaling = {
362
530
  x: string;
@@ -366,18 +534,6 @@ export type AttributesMainBody = {
366
534
  globalId?: string;
367
535
  pragma?: string;
368
536
  };
369
- export type AttributesMainBodyInFunction = {
370
- globalId?: string;
371
- pragma?: string;
372
- };
373
- export type AttributesMainBodyInFunctionBlock = {
374
- globalId?: string;
375
- pragma?: string;
376
- };
377
- export type AttributesMainBodyInProgram = {
378
- globalId?: string;
379
- pragma?: string;
380
- };
381
537
  export type AttributesMember = {
382
538
  globalId?: string;
383
539
  name: string;
@@ -442,8 +598,18 @@ export type AttributesOutputVars = {
442
598
  retain?: string;
443
599
  };
444
600
  export type AttributesParameters = {};
445
- export type AttributesPredicateContent = {
446
- 'xsi:type'?: 'FBD' | 'IL' | 'LD' | 'ST' | (string & {});
601
+ export type AttributesPredicateContent = AttributesPredicateContent_FBD | AttributesPredicateContent_IL | AttributesPredicateContent_LD | AttributesPredicateContent_ST;
602
+ export type AttributesPredicateContent_FBD = {
603
+ 'xsi:type': 'FBD';
604
+ };
605
+ export type AttributesPredicateContent_IL = {
606
+ 'xsi:type': 'IL';
607
+ };
608
+ export type AttributesPredicateContent_LD = {
609
+ 'xsi:type': 'LD';
610
+ };
611
+ export type AttributesPredicateContent_ST = {
612
+ 'xsi:type': 'ST';
447
613
  };
448
614
  export type AttributesProgram = {
449
615
  globalId?: string;
@@ -469,8 +635,15 @@ export type AttributesRange = {
469
635
  export type AttributesReference = {
470
636
  name: string;
471
637
  };
472
- export type AttributesReferenceName = {
473
- 'xsi:type'?: 'AccessSpecifiers' | 'EdgeModifierType' | (string & {});
638
+ export type AttributesReferenceName = AttributesReferenceName_Own | AttributesReferenceName_AccessSpecifiers | AttributesReferenceName_EdgeModifierType;
639
+ export type AttributesReferenceName_Own = {
640
+ 'xsi:type'?: never;
641
+ };
642
+ export type AttributesReferenceName_AccessSpecifiers = {
643
+ 'xsi:type': 'AccessSpecifiers';
644
+ };
645
+ export type AttributesReferenceName_EdgeModifierType = {
646
+ 'xsi:type': 'EdgeModifierType';
474
647
  };
475
648
  export type AttributesReferenceTo = {};
476
649
  export type AttributesRelPosition = {
@@ -489,15 +662,58 @@ export type AttributesRung = {
489
662
  globalId?: string;
490
663
  label?: string;
491
664
  };
492
- export type AttributesST = {
493
- 'xsi:type'?: 'AccessSpecifiers' | 'EdgeModifierType' | (string & {});
665
+ export type AttributesST = AttributesST_Own | AttributesST_AccessSpecifiers | AttributesST_EdgeModifierType;
666
+ export type AttributesST_Own = {
667
+ 'xsi:type'?: never;
668
+ };
669
+ export type AttributesST_AccessSpecifiers = {
670
+ 'xsi:type': 'AccessSpecifiers';
671
+ };
672
+ export type AttributesST_EdgeModifierType = {
673
+ 'xsi:type': 'EdgeModifierType';
494
674
  };
495
- export type AttributesSfcObject = {
675
+ export type AttributesSfcObject = AttributesSfcObject_SelectionConvergence | AttributesSfcObject_SelectionDivergence | AttributesSfcObject_SimultaneousConvergence | AttributesSfcObject_SimultaneousDivergence | AttributesSfcObject_Step | AttributesSfcObject_Transition;
676
+ export type AttributesSfcObject_SelectionConvergence = {
677
+ 'xsi:type': 'SelectionConvergence';
678
+ globalId?: string;
679
+ mutualExclusion?: undefined;
680
+ initialStep?: undefined;
681
+ name?: undefined;
682
+ };
683
+ export type AttributesSfcObject_SelectionDivergence = {
684
+ 'xsi:type': 'SelectionDivergence';
496
685
  globalId?: string;
497
- initialStep?: string;
498
686
  mutualExclusion?: string;
499
- name?: string;
500
- 'xsi:type'?: 'SelectionConvergence' | 'SelectionDivergence' | 'SimultaneousConvergence' | 'SimultaneousDivergence' | 'Step' | 'Transition' | (string & {});
687
+ initialStep?: undefined;
688
+ name?: undefined;
689
+ };
690
+ export type AttributesSfcObject_SimultaneousConvergence = {
691
+ 'xsi:type': 'SimultaneousConvergence';
692
+ globalId?: string;
693
+ mutualExclusion?: undefined;
694
+ initialStep?: undefined;
695
+ name?: undefined;
696
+ };
697
+ export type AttributesSfcObject_SimultaneousDivergence = {
698
+ 'xsi:type': 'SimultaneousDivergence';
699
+ globalId?: string;
700
+ mutualExclusion?: undefined;
701
+ initialStep?: undefined;
702
+ name?: undefined;
703
+ };
704
+ export type AttributesSfcObject_Step = {
705
+ 'xsi:type': 'Step';
706
+ globalId?: string;
707
+ initialStep?: string;
708
+ name: string;
709
+ mutualExclusion?: undefined;
710
+ };
711
+ export type AttributesSfcObject_Transition = {
712
+ 'xsi:type': 'Transition';
713
+ globalId?: string;
714
+ mutualExclusion?: undefined;
715
+ initialStep?: undefined;
716
+ name?: undefined;
501
717
  };
502
718
  export type AttributesSfcScaling = {
503
719
  x: string;
@@ -512,22 +728,32 @@ export type AttributesSize = {
512
728
  };
513
729
  export type AttributesStructValue = {};
514
730
  export type AttributesTask = {
731
+ 'xsi:type': 'StandardTask';
515
732
  globalId?: string;
516
733
  interval?: string;
517
734
  name: string;
518
735
  pragma?: string;
519
- priority?: string;
736
+ priority: string;
520
737
  single?: string;
521
- 'xsi:type'?: 'StandardTask' | (string & {});
522
738
  };
523
- export type AttributesTempVars = {
524
- accessSpecifier?: 'private' | 'protected' | 'internal' | 'public' | (string & {});
739
+ export type AttributesTempVars = AttributesTempVars_Own | AttributesTempVars_VarListWithAccessSpec;
740
+ export type AttributesTempVars_Own = {
741
+ 'xsi:type'?: 'VarList';
742
+ constant?: string;
743
+ globalId?: string;
744
+ non_retain?: string;
745
+ pragma?: string;
746
+ retain?: string;
747
+ accessSpecifier?: undefined;
748
+ };
749
+ export type AttributesTempVars_VarListWithAccessSpec = {
750
+ 'xsi:type': 'VarListWithAccessSpec';
751
+ accessSpecifier: 'private' | 'protected' | 'internal' | 'public' | (string & {});
525
752
  constant?: string;
526
753
  globalId?: string;
527
754
  non_retain?: string;
528
755
  pragma?: string;
529
756
  retain?: string;
530
- 'xsi:type'?: 'VarListWithAccessSpec' | (string & {});
531
757
  };
532
758
  export type AttributesTextualPredicate = {
533
759
  globalId?: string;
@@ -539,25 +765,59 @@ export type AttributesTransition = {
539
765
  pragma?: string;
540
766
  };
541
767
  export type AttributesType = {};
542
- export type AttributesTypeInAccessVariable = {};
543
- export type AttributesTypeInConfigVariable = {};
544
- export type AttributesTypeInLdObject = {};
545
- export type AttributesTypeInMember = {};
546
- export type AttributesTypeInVariable = {};
547
- export type AttributesTypeName = {
548
- 'xsi:type'?: 'AccessSpecifiers' | 'EdgeModifierType' | (string & {});
768
+ export type AttributesTypeName = AttributesTypeName_Own | AttributesTypeName_AccessSpecifiers | AttributesTypeName_EdgeModifierType;
769
+ export type AttributesTypeName_Own = {
770
+ 'xsi:type'?: never;
771
+ };
772
+ export type AttributesTypeName_AccessSpecifiers = {
773
+ 'xsi:type': 'AccessSpecifiers';
774
+ };
775
+ export type AttributesTypeName_EdgeModifierType = {
776
+ 'xsi:type': 'EdgeModifierType';
549
777
  };
550
778
  export type AttributesTypes = {};
551
- export type AttributesUserDefinedTypeSpec = {
779
+ export type AttributesUserDefinedTypeSpec = AttributesUserDefinedTypeSpec_ArrayTypeSpec | AttributesUserDefinedTypeSpec_DirectlyDerivedTypeSpec | AttributesUserDefinedTypeSpec_EnumTypeSpec | AttributesUserDefinedTypeSpec_EnumTypeWithNamedValueSpec | AttributesUserDefinedTypeSpec_ReferenceTypeSpec | AttributesUserDefinedTypeSpec_StructTypeSpec | AttributesUserDefinedTypeSpec_SubrangeTypeSpec;
780
+ export type AttributesUserDefinedTypeSpec_ArrayTypeSpec = {
781
+ 'xsi:type': 'ArrayTypeSpec';
782
+ overlap?: undefined;
783
+ };
784
+ export type AttributesUserDefinedTypeSpec_DirectlyDerivedTypeSpec = {
785
+ 'xsi:type': 'DirectlyDerivedTypeSpec';
786
+ overlap?: undefined;
787
+ };
788
+ export type AttributesUserDefinedTypeSpec_EnumTypeSpec = {
789
+ 'xsi:type': 'EnumTypeSpec';
790
+ overlap?: undefined;
791
+ };
792
+ export type AttributesUserDefinedTypeSpec_EnumTypeWithNamedValueSpec = {
793
+ 'xsi:type': 'EnumTypeWithNamedValueSpec';
794
+ overlap?: undefined;
795
+ };
796
+ export type AttributesUserDefinedTypeSpec_ReferenceTypeSpec = {
797
+ 'xsi:type': 'ReferenceTypeSpec';
798
+ overlap?: undefined;
799
+ };
800
+ export type AttributesUserDefinedTypeSpec_StructTypeSpec = {
801
+ 'xsi:type': 'StructTypeSpec';
552
802
  overlap?: string;
553
- 'xsi:type'?: 'ArrayTypeSpec' | 'DirectlyDerivedTypeSpec' | 'EnumTypeSpec' | 'EnumTypeWithNamedValueSpec' | 'ReferenceTypeSpec' | 'StructTypeSpec' | 'SubrangeTypeSpec' | (string & {});
554
803
  };
555
- export type AttributesUsingDirective = {
556
- 'xsi:type'?: 'AccessSpecifiers' | 'EdgeModifierType' | (string & {});
804
+ export type AttributesUserDefinedTypeSpec_SubrangeTypeSpec = {
805
+ 'xsi:type': 'SubrangeTypeSpec';
806
+ overlap?: undefined;
807
+ };
808
+ export type AttributesUsingDirective = AttributesUsingDirective_Own | AttributesUsingDirective_AccessSpecifiers | AttributesUsingDirective_EdgeModifierType;
809
+ export type AttributesUsingDirective_Own = {
810
+ 'xsi:type'?: never;
811
+ };
812
+ export type AttributesUsingDirective_AccessSpecifiers = {
813
+ 'xsi:type': 'AccessSpecifiers';
814
+ };
815
+ export type AttributesUsingDirective_EdgeModifierType = {
816
+ 'xsi:type': 'EdgeModifierType';
557
817
  };
558
818
  export type AttributesValue = {
559
- repetitionValue?: string;
560
819
  member?: string;
820
+ repetitionValue?: string;
561
821
  };
562
822
  export type AttributesValueInArrayValue = {
563
823
  repetitionValue?: string;
@@ -565,20 +825,37 @@ export type AttributesValueInArrayValue = {
565
825
  export type AttributesValueInStructValue = {
566
826
  member: string;
567
827
  };
568
- export type AttributesVariable = {
828
+ export type AttributesVariable = AttributesVariable_Own | AttributesVariable_VariableDecl;
829
+ export type AttributesVariable_Own = {
830
+ 'xsi:type'?: 'VariableDeclPlain';
569
831
  edgeDetection?: 'none' | 'falling' | 'rising' | (string & {});
570
832
  globalId?: string;
571
833
  name: string;
572
834
  orderWithinParamSet?: string;
573
835
  pragma?: string;
574
- 'xsi:type'?: 'VariableDecl' | (string & {});
836
+ };
837
+ export type AttributesVariable_VariableDecl = {
838
+ 'xsi:type': 'VariableDecl';
839
+ globalId?: string;
840
+ name: string;
841
+ pragma?: string;
842
+ edgeDetection?: undefined;
843
+ orderWithinParamSet?: undefined;
575
844
  };
576
845
  export type AttributesVariableInAccessVars = {
577
846
  globalId?: string;
578
847
  name: string;
579
848
  pragma?: string;
580
849
  };
581
- export type AttributesVariableInExternalVars = {
850
+ export type AttributesVariableInExternalVars = AttributesVariableInExternalVars_Own | AttributesVariableInExternalVars_VariableDecl;
851
+ export type AttributesVariableInExternalVars_Own = {
852
+ 'xsi:type'?: 'VariableDeclPlain';
853
+ globalId?: string;
854
+ name: string;
855
+ pragma?: string;
856
+ };
857
+ export type AttributesVariableInExternalVars_VariableDecl = {
858
+ 'xsi:type': 'VariableDecl';
582
859
  globalId?: string;
583
860
  name: string;
584
861
  pragma?: string;
@@ -745,7 +1022,7 @@ export type AttributesByParent = {
745
1022
  Documentation: AttributesDocumentation;
746
1023
  AddData: AttributesAddData;
747
1024
  UsingDirective: AttributesUsingDirective;
748
- Type: AttributesTypeInAccessVariable;
1025
+ Type: AttributesType;
749
1026
  };
750
1027
  AccessVars: {
751
1028
  Documentation: AttributesDocumentation;
@@ -758,7 +1035,7 @@ export type AttributesByParent = {
758
1035
  Documentation: AttributesDocumentation;
759
1036
  AddData: AttributesAddData;
760
1037
  UsingDirective: AttributesUsingDirective;
761
- Body: AttributesBodyInAction;
1038
+ Body: AttributesBody;
762
1039
  };
763
1040
  ActionBlock: {
764
1041
  Documentation: AttributesDocumentation;
@@ -792,7 +1069,7 @@ export type AttributesByParent = {
792
1069
  Documentation: AttributesDocumentation;
793
1070
  AddData: AttributesAddData;
794
1071
  UsingDirective: AttributesUsingDirective;
795
- BodyContent: AttributesBodyContentInBody;
1072
+ BodyContent: AttributesBodyContent;
796
1073
  };
797
1074
  BodyContent: {
798
1075
  Network: AttributesNetwork;
@@ -825,19 +1102,19 @@ export type AttributesByParent = {
825
1102
  ConnectionPointOut: AttributesConnectionPointOutInCommonObject;
826
1103
  };
827
1104
  Condition: {
828
- Reference: AttributesReference;
829
- GraphicalPredicate: AttributesGraphicalPredicate;
830
- TextualPredicate: AttributesTextualPredicate;
831
1105
  Documentation: AttributesDocumentation;
832
1106
  AddData: AttributesAddData;
833
1107
  UsingDirective: AttributesUsingDirective;
834
1108
  PredicateContent: AttributesPredicateContent;
1109
+ Reference: AttributesReference;
1110
+ GraphicalPredicate: AttributesGraphicalPredicate;
1111
+ TextualPredicate: AttributesTextualPredicate;
835
1112
  };
836
1113
  ConfigVariable: {
837
1114
  Documentation: AttributesDocumentation;
838
1115
  AddData: AttributesAddData;
839
1116
  UsingDirective: AttributesUsingDirective;
840
- Type: AttributesTypeInConfigVariable;
1117
+ Type: AttributesType;
841
1118
  InitialValue: AttributesInitialValueInConfigVariable;
842
1119
  Address: AttributesAddressInConfigVariable;
843
1120
  };
@@ -938,7 +1215,7 @@ export type AttributesByParent = {
938
1215
  Parameters: AttributesParameters;
939
1216
  ExternalVars: AttributesExternalVars;
940
1217
  TempVars: AttributesTempVars;
941
- MainBody: AttributesMainBodyInFunction;
1218
+ MainBody: AttributesMainBody;
942
1219
  };
943
1220
  FunctionBlock: {
944
1221
  Documentation: AttributesDocumentation;
@@ -951,7 +1228,7 @@ export type AttributesByParent = {
951
1228
  Vars: AttributesVars;
952
1229
  TempVars: AttributesTempVars;
953
1230
  Method: AttributesMethodInFunctionBlock;
954
- MainBody: AttributesMainBodyInFunctionBlock;
1231
+ MainBody: AttributesMainBody;
955
1232
  Action: AttributesAction;
956
1233
  Transition: AttributesTransition;
957
1234
  };
@@ -1011,7 +1288,7 @@ export type AttributesByParent = {
1011
1288
  Documentation: AttributesDocumentation;
1012
1289
  AddData: AttributesAddData;
1013
1290
  UsingDirective: AttributesUsingDirective;
1014
- BodyContent: AttributesBodyContentInInline;
1291
+ BodyContent: AttributesBodyContent;
1015
1292
  };
1016
1293
  InoutVars: {
1017
1294
  Variable: AttributesVariableInInoutVars;
@@ -1031,7 +1308,7 @@ export type AttributesByParent = {
1031
1308
  Configuration: AttributesConfiguration;
1032
1309
  };
1033
1310
  InstantlyDefinedType: {
1034
- BaseType: AttributesBaseTypeInInstantlyDefinedType;
1311
+ BaseType: AttributesBaseType;
1035
1312
  DimensionSpec: AttributesDimensionSpec;
1036
1313
  AddData: AttributesAddData;
1037
1314
  ReferenceTo: AttributesReferenceTo;
@@ -1050,19 +1327,19 @@ export type AttributesByParent = {
1050
1327
  Size: AttributesSize;
1051
1328
  ConnectionPointIn: AttributesConnectionPointIn;
1052
1329
  ConnectionPointOut: AttributesConnectionPointOutInLdObject;
1053
- Type: AttributesTypeInLdObject;
1330
+ Type: AttributesType;
1054
1331
  };
1055
1332
  MainBody: {
1056
1333
  Documentation: AttributesDocumentation;
1057
1334
  AddData: AttributesAddData;
1058
1335
  UsingDirective: AttributesUsingDirective;
1059
- BodyContent: AttributesBodyContentInMainBody;
1336
+ BodyContent: AttributesBodyContent;
1060
1337
  };
1061
1338
  Member: {
1062
1339
  Documentation: AttributesDocumentation;
1063
1340
  AddData: AttributesAddData;
1064
1341
  UsingDirective: AttributesUsingDirective;
1065
- Type: AttributesTypeInMember;
1342
+ Type: AttributesType;
1066
1343
  InitialValue: AttributesInitialValueInMember;
1067
1344
  Address: AttributesAddressInMember;
1068
1345
  };
@@ -1073,7 +1350,7 @@ export type AttributesByParent = {
1073
1350
  ResultType: AttributesResultType;
1074
1351
  Parameters: AttributesParameters;
1075
1352
  TempVars: AttributesTempVars;
1076
- Body: AttributesBodyInMethod;
1353
+ Body: AttributesBody;
1077
1354
  };
1078
1355
  NamespaceDecl: {
1079
1356
  Documentation: AttributesDocumentation;
@@ -1121,13 +1398,13 @@ export type AttributesByParent = {
1121
1398
  Documentation: AttributesDocumentation;
1122
1399
  AddData: AttributesAddData;
1123
1400
  UsingDirective: AttributesUsingDirective;
1124
- AccessVars: AttributesAccessVarsInProgram;
1401
+ AccessVars: AttributesAccessVars;
1125
1402
  GlobalVars: AttributesGlobalVars;
1126
1403
  Parameters: AttributesParameters;
1127
1404
  ExternalVars: AttributesExternalVars;
1128
1405
  Vars: AttributesVars;
1129
1406
  TempVars: AttributesTempVars;
1130
- MainBody: AttributesMainBodyInProgram;
1407
+ MainBody: AttributesMainBody;
1131
1408
  Action: AttributesAction;
1132
1409
  Transition: AttributesTransition;
1133
1410
  };
@@ -1179,7 +1456,7 @@ export type AttributesByParent = {
1179
1456
  RelPosition: AttributesRelPosition;
1180
1457
  Size: AttributesSize;
1181
1458
  ConnectionPointIn: AttributesConnectionPointIn;
1182
- ConnectionPointOut: AttributesConnectionPointOutInSfcObject;
1459
+ ConnectionPointOut: AttributesConnectionPointOut;
1183
1460
  ConnectionPointOutAction: AttributesConnectionPointOutAction;
1184
1461
  Condition: AttributesConditionInSfcObject;
1185
1462
  };
@@ -1207,7 +1484,7 @@ export type AttributesByParent = {
1207
1484
  Documentation: AttributesDocumentation;
1208
1485
  AddData: AttributesAddData;
1209
1486
  UsingDirective: AttributesUsingDirective;
1210
- Condition: AttributesConditionInTransition;
1487
+ Condition: AttributesCondition;
1211
1488
  };
1212
1489
  Type: {
1213
1490
  TypeName: AttributesTypeName;
@@ -1217,11 +1494,11 @@ export type AttributesByParent = {
1217
1494
  GlobalNamespace: AttributesGlobalNamespace;
1218
1495
  };
1219
1496
  UserDefinedTypeSpec: {
1220
- BaseType: AttributesBaseTypeInUserDefinedTypeSpec;
1497
+ BaseType: AttributesBaseType;
1221
1498
  DimensionSpec: AttributesDimensionSpec;
1222
1499
  AddData: AttributesAddData;
1223
- InitialValue: AttributesInitialValueInUserDefinedTypeSpec;
1224
- Enumerator: AttributesEnumeratorInUserDefinedTypeSpec;
1500
+ InitialValue: AttributesInitialValue;
1501
+ Enumerator: AttributesEnumerator;
1225
1502
  ReferenceTo: AttributesReferenceTo;
1226
1503
  Member: AttributesMember;
1227
1504
  Range: AttributesRange;
@@ -1235,7 +1512,7 @@ export type AttributesByParent = {
1235
1512
  Documentation: AttributesDocumentation;
1236
1513
  AddData: AttributesAddData;
1237
1514
  UsingDirective: AttributesUsingDirective;
1238
- Type: AttributesTypeInVariable;
1515
+ Type: AttributesType;
1239
1516
  InitialValue: AttributesInitialValueInVariable;
1240
1517
  Address: AttributesAddressInVariable;
1241
1518
  };
@@ -1247,5 +1524,6 @@ export type AttributesByParent = {
1247
1524
  };
1248
1525
  };
1249
1526
  export type RequiredAttributeNames<T extends AvailableElement> = (typeof REQUIRED_ATTRIBUTES)[T][number];
1250
- export type OptionalAttributeNames<T extends AvailableElement> = Exclude<keyof AttributesOf<T>, RequiredAttributeNames<T>>;
1527
+ /** Every attribute name a member of the type offers, but the required ones. */
1528
+ export type OptionalAttributeNames<T extends AvailableElement> = Exclude<AttributesOf<T> extends infer Member ? (Member extends unknown ? keyof Member : never) : never, RequiredAttributeNames<T>>;
1251
1529
  //# sourceMappingURL=types.generated.d.ts.map