@openscd/scl-lib 2.0.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.
Files changed (238) hide show
  1. package/LICENCE +201 -0
  2. package/README.md +20 -0
  3. package/dist/foundation/codecomponents/nsds.d.ts +5 -0
  4. package/dist/foundation/codecomponents/nsds.js +22435 -0
  5. package/dist/foundation/codecomponents/nsds.js.map +1 -0
  6. package/dist/foundation/nsd.json +137748 -0
  7. package/dist/foundation/uniqueElementName.d.ts +2 -0
  8. package/dist/foundation/uniqueElementName.js +18 -0
  9. package/dist/foundation/uniqueElementName.js.map +1 -0
  10. package/dist/foundation/utils.d.ts +20 -0
  11. package/dist/foundation/utils.js +14 -0
  12. package/dist/foundation/utils.js.map +1 -0
  13. package/dist/generator/appIdGenerator.d.ts +21 -0
  14. package/dist/generator/appIdGenerator.js +53 -0
  15. package/dist/generator/appIdGenerator.js.map +1 -0
  16. package/dist/generator/lnInstGenerator.d.ts +16 -0
  17. package/dist/generator/lnInstGenerator.js +41 -0
  18. package/dist/generator/lnInstGenerator.js.map +1 -0
  19. package/dist/generator/macAddressGenerator.d.ts +14 -0
  20. package/dist/generator/macAddressGenerator.js +39 -0
  21. package/dist/generator/macAddressGenerator.js.map +1 -0
  22. package/dist/index.d.ts +61 -0
  23. package/dist/index.js +55 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/tAddress/changeGseOrSmvAddress.d.ts +14 -0
  26. package/dist/tAddress/changeGseOrSmvAddress.js +43 -0
  27. package/dist/tAddress/changeGseOrSmvAddress.js.map +1 -0
  28. package/dist/tBaseElement/find.d.ts +6 -0
  29. package/dist/tBaseElement/find.js +529 -0
  30. package/dist/tBaseElement/find.js.map +1 -0
  31. package/dist/tBaseElement/getChildren.d.ts +5 -0
  32. package/dist/tBaseElement/getChildren.js +12 -0
  33. package/dist/tBaseElement/getChildren.js.map +1 -0
  34. package/dist/tBaseElement/getReference.d.ts +9 -0
  35. package/dist/tBaseElement/getReference.js +31 -0
  36. package/dist/tBaseElement/getReference.js.map +1 -0
  37. package/dist/tBaseElement/identity.d.ts +2 -0
  38. package/dist/tBaseElement/identity.js +566 -0
  39. package/dist/tBaseElement/identity.js.map +1 -0
  40. package/dist/tBaseElement/isPublic.d.ts +2 -0
  41. package/dist/tBaseElement/isPublic.js +5 -0
  42. package/dist/tBaseElement/isPublic.js.map +1 -0
  43. package/dist/tBaseElement/parentTags.d.ts +3 -0
  44. package/dist/tBaseElement/parentTags.js +8 -0
  45. package/dist/tBaseElement/parentTags.js.map +1 -0
  46. package/dist/tBaseElement/tags.d.ts +8 -0
  47. package/dist/tBaseElement/tags.js +807 -0
  48. package/dist/tBaseElement/tags.js.map +1 -0
  49. package/dist/tBay/updateBay.d.ts +5 -0
  50. package/dist/tBay/updateBay.js +81 -0
  51. package/dist/tBay/updateBay.js.map +1 -0
  52. package/dist/tControl/controlBlockGseOrSmv.d.ts +7 -0
  53. package/dist/tControl/controlBlockGseOrSmv.js +26 -0
  54. package/dist/tControl/controlBlockGseOrSmv.js.map +1 -0
  55. package/dist/tControl/controlBlockObjRef.d.ts +2 -0
  56. package/dist/tControl/controlBlockObjRef.js +14 -0
  57. package/dist/tControl/controlBlockObjRef.js.map +1 -0
  58. package/dist/tControl/controlBlocks.d.ts +2 -0
  59. package/dist/tControl/controlBlocks.js +9 -0
  60. package/dist/tControl/controlBlocks.js.map +1 -0
  61. package/dist/tControl/findControlSubscription.d.ts +2 -0
  62. package/dist/tControl/findControlSubscription.js +8 -0
  63. package/dist/tControl/findControlSubscription.js.map +1 -0
  64. package/dist/tControl/pathId.d.ts +1 -0
  65. package/dist/tControl/pathId.js +9 -0
  66. package/dist/tControl/pathId.js.map +1 -0
  67. package/dist/tControl/removeControlBlock.d.ts +14 -0
  68. package/dist/tControl/removeControlBlock.js +35 -0
  69. package/dist/tControl/removeControlBlock.js.map +1 -0
  70. package/dist/tControl/updateConfRev.d.ts +2 -0
  71. package/dist/tControl/updateConfRev.js +8 -0
  72. package/dist/tControl/updateConfRev.js.map +1 -0
  73. package/dist/tControl/updateDatSet.d.ts +6 -0
  74. package/dist/tControl/updateDatSet.js +22 -0
  75. package/dist/tControl/updateDatSet.js.map +1 -0
  76. package/dist/tControlWithIEDName/connctedAp.d.ts +2 -0
  77. package/dist/tControlWithIEDName/connctedAp.js +7 -0
  78. package/dist/tControlWithIEDName/connctedAp.js.map +1 -0
  79. package/dist/tDataSet/canAddDataSet.d.ts +4 -0
  80. package/dist/tDataSet/canAddDataSet.js +44 -0
  81. package/dist/tDataSet/canAddDataSet.js.map +1 -0
  82. package/dist/tDataSet/createDataSet.d.ts +9 -0
  83. package/dist/tDataSet/createDataSet.js +33 -0
  84. package/dist/tDataSet/createDataSet.js.map +1 -0
  85. package/dist/tDataSet/removeDataSet.d.ts +10 -0
  86. package/dist/tDataSet/removeDataSet.js +27 -0
  87. package/dist/tDataSet/removeDataSet.js.map +1 -0
  88. package/dist/tDataSet/updateDataSet.d.ts +7 -0
  89. package/dist/tDataSet/updateDataSet.js +28 -0
  90. package/dist/tDataSet/updateDataSet.js.map +1 -0
  91. package/dist/tDataTypeTemplates/foundation.d.ts +2 -0
  92. package/dist/tDataTypeTemplates/foundation.js +118 -0
  93. package/dist/tDataTypeTemplates/foundation.js.map +1 -0
  94. package/dist/tDataTypeTemplates/importLNodeType.d.ts +13 -0
  95. package/dist/tDataTypeTemplates/importLNodeType.js +88 -0
  96. package/dist/tDataTypeTemplates/importLNodeType.js.map +1 -0
  97. package/dist/tDataTypeTemplates/insertSelectedLNodeType.d.ts +20 -0
  98. package/dist/tDataTypeTemplates/insertSelectedLNodeType.js +187 -0
  99. package/dist/tDataTypeTemplates/insertSelectedLNodeType.js.map +1 -0
  100. package/dist/tDataTypeTemplates/lNodeTypeToSelection.d.ts +8 -0
  101. package/dist/tDataTypeTemplates/lNodeTypeToSelection.js +67 -0
  102. package/dist/tDataTypeTemplates/lNodeTypeToSelection.js.map +1 -0
  103. package/dist/tDataTypeTemplates/nsdToJson.d.ts +101 -0
  104. package/dist/tDataTypeTemplates/nsdToJson.js +433 -0
  105. package/dist/tDataTypeTemplates/nsdToJson.js.map +1 -0
  106. package/dist/tDataTypeTemplates/removeDataType.d.ts +12 -0
  107. package/dist/tDataTypeTemplates/removeDataType.js +62 -0
  108. package/dist/tDataTypeTemplates/removeDataType.js.map +1 -0
  109. package/dist/tDataTypeTemplates/updateLNodeType.d.ts +2 -0
  110. package/dist/tDataTypeTemplates/updateLNodeType.js +22 -0
  111. package/dist/tDataTypeTemplates/updateLNodeType.js.map +1 -0
  112. package/dist/tExtRef/doesFcdaMeetExtRefRestrictions.d.ts +16 -0
  113. package/dist/tExtRef/doesFcdaMeetExtRefRestrictions.js +52 -0
  114. package/dist/tExtRef/doesFcdaMeetExtRefRestrictions.js.map +1 -0
  115. package/dist/tExtRef/extRefTypeRestrictions.d.ts +17 -0
  116. package/dist/tExtRef/extRefTypeRestrictions.js +32 -0
  117. package/dist/tExtRef/extRefTypeRestrictions.js.map +1 -0
  118. package/dist/tExtRef/isSubscribed.d.ts +7 -0
  119. package/dist/tExtRef/isSubscribed.js +23 -0
  120. package/dist/tExtRef/isSubscribed.js.map +1 -0
  121. package/dist/tExtRef/matchDataAttributes.d.ts +2 -0
  122. package/dist/tExtRef/matchDataAttributes.js +13 -0
  123. package/dist/tExtRef/matchDataAttributes.js.map +1 -0
  124. package/dist/tExtRef/matchSrcAttributes.d.ts +2 -0
  125. package/dist/tExtRef/matchSrcAttributes.js +28 -0
  126. package/dist/tExtRef/matchSrcAttributes.js.map +1 -0
  127. package/dist/tExtRef/sourceControlBlock.d.ts +8 -0
  128. package/dist/tExtRef/sourceControlBlock.js +52 -0
  129. package/dist/tExtRef/sourceControlBlock.js.map +1 -0
  130. package/dist/tExtRef/subscribe.d.ts +47 -0
  131. package/dist/tExtRef/subscribe.js +187 -0
  132. package/dist/tExtRef/subscribe.js.map +1 -0
  133. package/dist/tExtRef/unsubscribe.d.ts +27 -0
  134. package/dist/tExtRef/unsubscribe.js +55 -0
  135. package/dist/tExtRef/unsubscribe.js.map +1 -0
  136. package/dist/tFCDA/canAddFCDA.d.ts +10 -0
  137. package/dist/tFCDA/canAddFCDA.js +42 -0
  138. package/dist/tFCDA/canAddFCDA.js.map +1 -0
  139. package/dist/tFCDA/fcdaBaseTypes.d.ts +11 -0
  140. package/dist/tFCDA/fcdaBaseTypes.js +56 -0
  141. package/dist/tFCDA/fcdaBaseTypes.js.map +1 -0
  142. package/dist/tFCDA/removeFCDA.d.ts +8 -0
  143. package/dist/tFCDA/removeFCDA.js +33 -0
  144. package/dist/tFCDA/removeFCDA.js.map +1 -0
  145. package/dist/tGSE/changeGSEContent.d.ts +17 -0
  146. package/dist/tGSE/changeGSEContent.js +53 -0
  147. package/dist/tGSE/changeGSEContent.js.map +1 -0
  148. package/dist/tGSE/createGSE.d.ts +20 -0
  149. package/dist/tGSE/createGSE.js +44 -0
  150. package/dist/tGSE/createGSE.js.map +1 -0
  151. package/dist/tGSEControl/canAddGSEControl.d.ts +4 -0
  152. package/dist/tGSEControl/canAddGSEControl.js +27 -0
  153. package/dist/tGSEControl/canAddGSEControl.js.map +1 -0
  154. package/dist/tGSEControl/createGSEControl.d.ts +49 -0
  155. package/dist/tGSEControl/createGSEControl.js +65 -0
  156. package/dist/tGSEControl/createGSEControl.js.map +1 -0
  157. package/dist/tGSEControl/updateGSEControl.d.ts +15 -0
  158. package/dist/tGSEControl/updateGSEControl.js +61 -0
  159. package/dist/tGSEControl/updateGSEControl.js.map +1 -0
  160. package/dist/tIED/insertIED.d.ts +13 -0
  161. package/dist/tIED/insertIED.js +245 -0
  162. package/dist/tIED/insertIED.js.map +1 -0
  163. package/dist/tIED/removeIED.d.ts +14 -0
  164. package/dist/tIED/removeIED.js +70 -0
  165. package/dist/tIED/removeIED.js.map +1 -0
  166. package/dist/tIED/updateIED.d.ts +17 -0
  167. package/dist/tIED/updateIED.js +185 -0
  168. package/dist/tIED/updateIED.js.map +1 -0
  169. package/dist/tInputs/removeInputs.d.ts +7 -0
  170. package/dist/tInputs/removeInputs.js +25 -0
  171. package/dist/tInputs/removeInputs.js.map +1 -0
  172. package/dist/tLN/removeSubscriptionSupervision.d.ts +7 -0
  173. package/dist/tLN/removeSubscriptionSupervision.js +94 -0
  174. package/dist/tLN/removeSubscriptionSupervision.js.map +1 -0
  175. package/dist/tLN/supervision/canInstantiateSubscriptionSupervision.d.ts +13 -0
  176. package/dist/tLN/supervision/canInstantiateSubscriptionSupervision.js +116 -0
  177. package/dist/tLN/supervision/canInstantiateSubscriptionSupervision.js.map +1 -0
  178. package/dist/tLN/supervision/createSupervisionEdit.d.ts +20 -0
  179. package/dist/tLN/supervision/createSupervisionEdit.js +129 -0
  180. package/dist/tLN/supervision/createSupervisionEdit.js.map +1 -0
  181. package/dist/tLN/supervision/findControlBlockOnSrcAttributes.d.ts +10 -0
  182. package/dist/tLN/supervision/findControlBlockOnSrcAttributes.js +13 -0
  183. package/dist/tLN/supervision/findControlBlockOnSrcAttributes.js.map +1 -0
  184. package/dist/tLN/supervision/foundation.d.ts +37 -0
  185. package/dist/tLN/supervision/foundation.js +43 -0
  186. package/dist/tLN/supervision/foundation.js.map +1 -0
  187. package/dist/tLN/supervision/insertSubscriptionSupervisions.d.ts +11 -0
  188. package/dist/tLN/supervision/insertSubscriptionSupervisions.js +98 -0
  189. package/dist/tLN/supervision/insertSubscriptionSupervisions.js.map +1 -0
  190. package/dist/tLN/supervision/instantiateSubscriptionSupervision.d.ts +10 -0
  191. package/dist/tLN/supervision/instantiateSubscriptionSupervision.js +36 -0
  192. package/dist/tLN/supervision/instantiateSubscriptionSupervision.js.map +1 -0
  193. package/dist/tLN/supervision/removeSupervision.d.ts +7 -0
  194. package/dist/tLN/supervision/removeSupervision.js +39 -0
  195. package/dist/tLN/supervision/removeSupervision.js.map +1 -0
  196. package/dist/tReportControl/canAddReportControl.d.ts +11 -0
  197. package/dist/tReportControl/canAddReportControl.js +24 -0
  198. package/dist/tReportControl/canAddReportControl.js.map +1 -0
  199. package/dist/tReportControl/createReportControl.d.ts +68 -0
  200. package/dist/tReportControl/createReportControl.js +78 -0
  201. package/dist/tReportControl/createReportControl.js.map +1 -0
  202. package/dist/tReportControl/numberReportControlInstances.d.ts +5 -0
  203. package/dist/tReportControl/numberReportControlInstances.js +19 -0
  204. package/dist/tReportControl/numberReportControlInstances.js.map +1 -0
  205. package/dist/tReportControl/updateReportControl.d.ts +5 -0
  206. package/dist/tReportControl/updateReportControl.js +24 -0
  207. package/dist/tReportControl/updateReportControl.js.map +1 -0
  208. package/dist/tSMV/changeSMVContent.d.ts +3 -0
  209. package/dist/tSMV/changeSMVContent.js +5 -0
  210. package/dist/tSMV/changeSMVContent.js.map +1 -0
  211. package/dist/tSMV/createSMV.d.ts +16 -0
  212. package/dist/tSMV/createSMV.js +32 -0
  213. package/dist/tSMV/createSMV.js.map +1 -0
  214. package/dist/tSampledValueControl/canAddSampledValueControl.d.ts +4 -0
  215. package/dist/tSampledValueControl/canAddSampledValueControl.js +27 -0
  216. package/dist/tSampledValueControl/canAddSampledValueControl.js.map +1 -0
  217. package/dist/tSampledValueControl/createSampledValueControl.d.ts +66 -0
  218. package/dist/tSampledValueControl/createSampledValueControl.js +74 -0
  219. package/dist/tSampledValueControl/createSampledValueControl.js.map +1 -0
  220. package/dist/tSampledValueControl/updateSampledValueControl.d.ts +14 -0
  221. package/dist/tSampledValueControl/updateSampledValueControl.js +60 -0
  222. package/dist/tSampledValueControl/updateSampledValueControl.js.map +1 -0
  223. package/dist/tServices/tConfReportControl/maxReportControl.d.ts +9 -0
  224. package/dist/tServices/tConfReportControl/maxReportControl.js +14 -0
  225. package/dist/tServices/tConfReportControl/maxReportControl.js.map +1 -0
  226. package/dist/tSubstation/removeProcessElement.d.ts +9 -0
  227. package/dist/tSubstation/removeProcessElement.js +50 -0
  228. package/dist/tSubstation/removeProcessElement.js.map +1 -0
  229. package/dist/tSubstation/updateLnType.d.ts +8 -0
  230. package/dist/tSubstation/updateLnType.js +96 -0
  231. package/dist/tSubstation/updateLnType.js.map +1 -0
  232. package/dist/tSubstation/updateSubstation.d.ts +5 -0
  233. package/dist/tSubstation/updateSubstation.js +75 -0
  234. package/dist/tSubstation/updateSubstation.js.map +1 -0
  235. package/dist/tVoltageLevel/updateVoltageLevel.d.ts +5 -0
  236. package/dist/tVoltageLevel/updateVoltageLevel.js +83 -0
  237. package/dist/tVoltageLevel/updateVoltageLevel.js.map +1 -0
  238. package/package.json +43 -0
@@ -0,0 +1,807 @@
1
+ const tAbstractConductingEquipment = [
2
+ "TransformerWinding",
3
+ "ConductingEquipment",
4
+ ];
5
+ const tEquipment = [
6
+ "GeneralEquipment",
7
+ "PowerTransformer",
8
+ ...tAbstractConductingEquipment,
9
+ ];
10
+ const tEquipmentContainer = ["Substation", "VoltageLevel", "Bay"];
11
+ const tGeneralEquipmentContainer = ["Process", "Line"];
12
+ const tAbstractEqFuncSubFunc = ["EqSubFunction", "EqFunction"];
13
+ const tPowerSystemResource = [
14
+ "SubFunction",
15
+ "Function",
16
+ "TapChanger",
17
+ "SubEquipment",
18
+ ...tEquipment,
19
+ ...tEquipmentContainer,
20
+ ...tGeneralEquipmentContainer,
21
+ ...tAbstractEqFuncSubFunc,
22
+ ];
23
+ const tLNodeContainer = ["ConnectivityNode", ...tPowerSystemResource];
24
+ const tCertificate = ["GOOSESecurity", "SMVSecurity"];
25
+ const tNaming = ["SubNetwork", ...tCertificate, ...tLNodeContainer];
26
+ const tAbstractDataAttribute = ["BDA", "DA"];
27
+ const tControlWithIEDName = ["SampledValueControl", "GSEControl"];
28
+ const tControlWithTriggerOpt = ["LogControl", "ReportControl"];
29
+ const tControl = [...tControlWithIEDName, ...tControlWithTriggerOpt];
30
+ const tControlBlock = ["GSE", "SMV"];
31
+ const tUnNaming = [
32
+ "ConnectedAP",
33
+ "PhysConn",
34
+ "SDO",
35
+ "DO",
36
+ "DAI",
37
+ "SDI",
38
+ "DOI",
39
+ "Inputs",
40
+ "RptEnabled",
41
+ "Server",
42
+ "ServerAt",
43
+ "SettingControl",
44
+ "Communication",
45
+ "Log",
46
+ "LDevice",
47
+ "DataSet",
48
+ "AccessPoint",
49
+ "IED",
50
+ "NeutralPoint",
51
+ ...tControl,
52
+ ...tControlBlock,
53
+ ...tAbstractDataAttribute,
54
+ ];
55
+ const tAnyLN = ["LN0", "LN"];
56
+ const tAnyContentFromOtherNamespace = [
57
+ "Text",
58
+ "Private",
59
+ "Hitem",
60
+ "AccessControl",
61
+ ];
62
+ const tCert = ["Subject", "IssuerName"];
63
+ const tDurationInMilliSec = ["MinTime", "MaxTime"];
64
+ const tIDNaming = ["LNodeType", "DOType", "DAType", "EnumType"];
65
+ const tServiceYesNo = [
66
+ "FileHandling",
67
+ "TimeSyncProt",
68
+ "CommProt",
69
+ "SGEdit",
70
+ "ConfSG",
71
+ "GetDirectory",
72
+ "GetDataObjectDefinition",
73
+ "DataObjectDirectory",
74
+ "GetDataSetValue",
75
+ "SetDataSetValue",
76
+ "DataSetDirectory",
77
+ "ReadWrite",
78
+ "TimerActivatedControl",
79
+ "GetCBValues",
80
+ "GSEDir",
81
+ "ConfLdName",
82
+ ];
83
+ const tServiceWithMaxAndMaxAttributes = ["DynDataSet", "ConfDataSet"];
84
+ const tServiceWithMax = [
85
+ "GSSE",
86
+ "GOOSE",
87
+ "ConfReportControl",
88
+ "SMVsc",
89
+ ...tServiceWithMaxAndMaxAttributes,
90
+ ];
91
+ const tServiceWithMaxNonZero = ["ConfLogControl", "ConfSigRef"];
92
+ const tServiceSettings = [
93
+ "ReportSettings",
94
+ "LogSettings",
95
+ "GSESettings",
96
+ "SMVSettings",
97
+ ];
98
+ const tBaseElement = ["SCL", ...tNaming, ...tUnNaming, ...tIDNaming];
99
+ const sCLTags = [
100
+ ...tBaseElement,
101
+ ...tAnyContentFromOtherNamespace,
102
+ "Header",
103
+ "LNode",
104
+ "Val",
105
+ "Voltage",
106
+ "Services",
107
+ ...tCert,
108
+ ...tDurationInMilliSec,
109
+ "Association",
110
+ "FCDA",
111
+ "ClientLN",
112
+ "IEDName",
113
+ "ExtRef",
114
+ "Protocol",
115
+ ...tAnyLN,
116
+ ...tServiceYesNo,
117
+ "DynAssociation",
118
+ "SettingGroups",
119
+ ...tServiceWithMax,
120
+ ...tServiceWithMaxNonZero,
121
+ ...tServiceSettings,
122
+ "ConfLNs",
123
+ "ClientServices",
124
+ "SupSubscription",
125
+ "ValueHandling",
126
+ "RedProt",
127
+ "McSecurity",
128
+ "KDC",
129
+ "Address",
130
+ "P",
131
+ "ProtNs",
132
+ "EnumVal",
133
+ "Terminal",
134
+ "BitRate",
135
+ "Authentication",
136
+ "DataTypeTemplates",
137
+ "History",
138
+ "OptFields",
139
+ "SmvOpts",
140
+ "TrgOps",
141
+ "SamplesPerSec",
142
+ "SmpRate",
143
+ "SecPerSamples",
144
+ ];
145
+ const tBaseNameSequence = ["Text", "Private"];
146
+ const tNamingSequence = [...tBaseNameSequence];
147
+ const tUnNamingSequence = [...tBaseNameSequence];
148
+ const tIDNamingSequence = [...tBaseNameSequence];
149
+ const tAbstractDataAttributeSequence = [...tUnNamingSequence, "Val"];
150
+ const tLNodeContainerSequence = [...tNamingSequence, "LNode"];
151
+ const tPowerSystemResourceSequence = [...tLNodeContainerSequence];
152
+ const tEquipmentSequence = [...tPowerSystemResourceSequence];
153
+ const tEquipmentContainerSequence = [
154
+ ...tPowerSystemResourceSequence,
155
+ "PowerTransformer",
156
+ "GeneralEquipment",
157
+ ];
158
+ const tAbstractConductingEquipmentSequence = [
159
+ ...tEquipmentSequence,
160
+ "Terminal",
161
+ ];
162
+ const tControlBlockSequence = [...tUnNamingSequence, "Address"];
163
+ const tControlSequence = [...tNamingSequence];
164
+ const tControlWithIEDNameSequence = [...tControlSequence, "IEDName"];
165
+ const tAnyLNSequence = [
166
+ ...tUnNamingSequence,
167
+ "DataSet",
168
+ "ReportControl",
169
+ "LogControl",
170
+ "DOI",
171
+ "Inputs",
172
+ "Log",
173
+ ];
174
+ const tGeneralEquipmentContainerSequence = [
175
+ ...tPowerSystemResourceSequence,
176
+ "GeneralEquipment",
177
+ "Function",
178
+ ];
179
+ const tControlWithTriggerOptSequence = [...tControlSequence, "TrgOps"];
180
+ const tAbstractEqFuncSubFuncSequence = [
181
+ ...tPowerSystemResourceSequence,
182
+ "GeneralEquipment",
183
+ "EqSubFunction",
184
+ ];
185
+ export const tags = {
186
+ AccessControl: {
187
+ parents: ["LDevice"],
188
+ children: [],
189
+ },
190
+ AccessPoint: {
191
+ parents: ["IED"],
192
+ children: [
193
+ ...tNamingSequence,
194
+ "Server",
195
+ "LN",
196
+ "ServerAt",
197
+ "Services",
198
+ "GOOSESecurity",
199
+ "SMVSecurity",
200
+ ],
201
+ },
202
+ Address: {
203
+ parents: ["ConnectedAP", "GSE", "SMV"],
204
+ children: ["P"],
205
+ },
206
+ Association: {
207
+ parents: ["Server"],
208
+ children: [],
209
+ },
210
+ Authentication: {
211
+ parents: ["Server"],
212
+ children: [],
213
+ },
214
+ BDA: {
215
+ parents: ["DAType"],
216
+ children: [...tAbstractDataAttributeSequence],
217
+ },
218
+ BitRate: {
219
+ parents: ["SubNetwork"],
220
+ children: [],
221
+ },
222
+ Bay: {
223
+ parents: ["VoltageLevel"],
224
+ children: [
225
+ ...tEquipmentContainerSequence,
226
+ "ConductingEquipment",
227
+ "ConnectivityNode",
228
+ "Function",
229
+ ],
230
+ },
231
+ ClientLN: {
232
+ parents: ["RptEnabled"],
233
+ children: [],
234
+ },
235
+ ClientServices: {
236
+ parents: ["Services"],
237
+ children: ["TimeSyncProt", "McSecurity"],
238
+ },
239
+ CommProt: {
240
+ parents: ["Services"],
241
+ children: [],
242
+ },
243
+ Communication: {
244
+ parents: ["SCL"],
245
+ children: [...tUnNamingSequence, "SubNetwork"],
246
+ },
247
+ ConductingEquipment: {
248
+ parents: ["Process", "Line", "SubFunction", "Function", "Bay"],
249
+ children: [
250
+ ...tAbstractConductingEquipmentSequence,
251
+ "EqFunction",
252
+ "SubEquipment",
253
+ ],
254
+ },
255
+ ConfDataSet: {
256
+ parents: ["Services"],
257
+ children: [],
258
+ },
259
+ ConfLdName: {
260
+ parents: ["Services"],
261
+ children: [],
262
+ },
263
+ ConfLNs: {
264
+ parents: ["Services"],
265
+ children: [],
266
+ },
267
+ ConfLogControl: {
268
+ parents: ["Services"],
269
+ children: [],
270
+ },
271
+ ConfReportControl: {
272
+ parents: ["Services"],
273
+ children: [],
274
+ },
275
+ ConfSG: {
276
+ parents: ["SettingGroups"],
277
+ children: [],
278
+ },
279
+ ConfSigRef: {
280
+ parents: ["Services"],
281
+ children: [],
282
+ },
283
+ ConnectedAP: {
284
+ parents: ["SubNetwork"],
285
+ children: [...tUnNamingSequence, "Address", "GSE", "SMV", "PhysConn"],
286
+ },
287
+ ConnectivityNode: {
288
+ parents: ["Bay", "Line"],
289
+ children: [...tLNodeContainerSequence],
290
+ },
291
+ DA: {
292
+ parents: ["DOType"],
293
+ children: [...tAbstractDataAttributeSequence],
294
+ },
295
+ DAI: {
296
+ parents: ["DOI", "SDI"],
297
+ children: [...tUnNamingSequence, "Val"],
298
+ },
299
+ DAType: {
300
+ parents: ["DataTypeTemplates"],
301
+ children: [...tIDNamingSequence, "BDA", "ProtNs"],
302
+ },
303
+ DO: {
304
+ parents: ["LNodeType"],
305
+ children: [...tUnNamingSequence],
306
+ },
307
+ DOI: {
308
+ parents: [...tAnyLN],
309
+ children: [...tUnNamingSequence, "SDI", "DAI"],
310
+ },
311
+ DOType: {
312
+ parents: ["DataTypeTemplates"],
313
+ children: [...tIDNamingSequence, "SDO", "DA"],
314
+ },
315
+ DataObjectDirectory: {
316
+ parents: ["Services"],
317
+ children: [],
318
+ },
319
+ DataSet: {
320
+ parents: [...tAnyLN],
321
+ children: [...tNamingSequence, "FCDA"],
322
+ },
323
+ DataSetDirectory: {
324
+ parents: ["Services"],
325
+ children: [],
326
+ },
327
+ DataTypeTemplates: {
328
+ parents: ["SCL"],
329
+ children: ["LNodeType", "DOType", "DAType", "EnumType"],
330
+ },
331
+ DynAssociation: {
332
+ parents: ["Services"],
333
+ children: [],
334
+ },
335
+ DynDataSet: {
336
+ parents: ["Services"],
337
+ children: [],
338
+ },
339
+ EnumType: {
340
+ parents: ["DataTypeTemplates"],
341
+ children: [...tIDNamingSequence, "EnumVal"],
342
+ },
343
+ EnumVal: {
344
+ parents: ["EnumType"],
345
+ children: [],
346
+ },
347
+ EqFunction: {
348
+ parents: [
349
+ "GeneralEquipment",
350
+ "TapChanger",
351
+ "TransformerWinding",
352
+ "PowerTransformer",
353
+ "SubEquipment",
354
+ "ConductingEquipment",
355
+ ],
356
+ children: [...tAbstractEqFuncSubFuncSequence],
357
+ },
358
+ EqSubFunction: {
359
+ parents: ["EqSubFunction", "EqFunction"],
360
+ children: [...tAbstractEqFuncSubFuncSequence],
361
+ },
362
+ ExtRef: {
363
+ parents: ["Inputs"],
364
+ children: [],
365
+ },
366
+ FCDA: {
367
+ parents: ["DataSet"],
368
+ children: [],
369
+ },
370
+ FileHandling: {
371
+ parents: ["Services"],
372
+ children: [],
373
+ },
374
+ Function: {
375
+ parents: ["Bay", "VoltageLevel", "Substation", "Process", "Line"],
376
+ children: [
377
+ ...tPowerSystemResourceSequence,
378
+ "SubFunction",
379
+ "GeneralEquipment",
380
+ "ConductingEquipment",
381
+ ],
382
+ },
383
+ GeneralEquipment: {
384
+ parents: [
385
+ "SubFunction",
386
+ "Function",
387
+ ...tGeneralEquipmentContainer,
388
+ ...tAbstractEqFuncSubFunc,
389
+ ...tEquipmentContainer,
390
+ ],
391
+ children: [...tEquipmentSequence, "EqFunction"],
392
+ },
393
+ GetCBValues: {
394
+ parents: ["Services"],
395
+ children: [],
396
+ },
397
+ GetDataObjectDefinition: {
398
+ parents: ["Services"],
399
+ children: [],
400
+ },
401
+ GetDataSetValue: {
402
+ parents: ["Services"],
403
+ children: [],
404
+ },
405
+ GetDirectory: {
406
+ parents: ["Services"],
407
+ children: [],
408
+ },
409
+ GOOSE: {
410
+ parents: ["Services"],
411
+ children: [],
412
+ },
413
+ GOOSESecurity: {
414
+ parents: ["AccessPoint"],
415
+ children: [...tNamingSequence, "Subject", "IssuerName"],
416
+ },
417
+ GSE: {
418
+ parents: ["ConnectedAP"],
419
+ children: [...tControlBlockSequence, "MinTime", "MaxTime"],
420
+ },
421
+ GSEDir: {
422
+ parents: ["Services"],
423
+ children: [],
424
+ },
425
+ GSEControl: {
426
+ parents: ["LN0"],
427
+ children: [...tControlWithIEDNameSequence, "Protocol"],
428
+ },
429
+ GSESettings: {
430
+ parents: ["Services"],
431
+ children: [],
432
+ },
433
+ GSSE: {
434
+ parents: ["Services"],
435
+ children: [],
436
+ },
437
+ Header: {
438
+ parents: ["SCL"],
439
+ children: ["Text", "History"],
440
+ },
441
+ History: {
442
+ parents: ["Header"],
443
+ children: ["Hitem"],
444
+ },
445
+ Hitem: {
446
+ parents: ["History"],
447
+ children: [],
448
+ },
449
+ IED: {
450
+ parents: ["SCL"],
451
+ children: [...tUnNamingSequence, "Services", "AccessPoint", "KDC"],
452
+ },
453
+ IEDName: {
454
+ parents: ["GSEControl", "SampledValueControl"],
455
+ children: [],
456
+ },
457
+ Inputs: {
458
+ parents: [...tAnyLN],
459
+ children: [...tUnNamingSequence, "ExtRef"],
460
+ },
461
+ IssuerName: {
462
+ parents: ["GOOSESecurity", "SMVSecurity"],
463
+ children: [],
464
+ },
465
+ KDC: {
466
+ parents: ["IED"],
467
+ children: [],
468
+ },
469
+ LDevice: {
470
+ parents: ["Server"],
471
+ children: [...tUnNamingSequence, "LN0", "LN", "AccessControl"],
472
+ },
473
+ LN: {
474
+ parents: ["AccessPoint", "LDevice"],
475
+ children: [...tAnyLNSequence],
476
+ },
477
+ LN0: {
478
+ parents: ["LDevice"],
479
+ children: [
480
+ ...tAnyLNSequence,
481
+ "GSEControl",
482
+ "SampledValueControl",
483
+ "SettingControl",
484
+ ],
485
+ },
486
+ LNode: {
487
+ parents: [...tLNodeContainer],
488
+ children: [...tUnNamingSequence],
489
+ },
490
+ LNodeType: {
491
+ parents: ["DataTypeTemplates"],
492
+ children: [...tIDNamingSequence, "DO"],
493
+ },
494
+ Line: {
495
+ parents: ["Process", "SCL"],
496
+ children: [
497
+ ...tGeneralEquipmentContainerSequence,
498
+ "Voltage",
499
+ "ConductingEquipment",
500
+ ],
501
+ },
502
+ Log: {
503
+ parents: [...tAnyLN],
504
+ children: [...tUnNamingSequence],
505
+ },
506
+ LogControl: {
507
+ parents: [...tAnyLN],
508
+ children: [...tControlWithTriggerOptSequence],
509
+ },
510
+ LogSettings: {
511
+ parents: ["Services"],
512
+ children: [],
513
+ },
514
+ MaxTime: {
515
+ parents: ["GSE"],
516
+ children: [],
517
+ },
518
+ McSecurity: {
519
+ parents: ["GSESettings", "SMVSettings", "ClientServices"],
520
+ children: [],
521
+ },
522
+ MinTime: {
523
+ parents: ["GSE"],
524
+ children: [],
525
+ },
526
+ NeutralPoint: {
527
+ parents: ["TransformerWinding"],
528
+ children: [...tUnNamingSequence],
529
+ },
530
+ OptFields: {
531
+ parents: ["ReportControl"],
532
+ children: [],
533
+ },
534
+ P: {
535
+ parents: ["Address", "PhysConn"],
536
+ children: [],
537
+ },
538
+ PhysConn: {
539
+ parents: ["ConnectedAP"],
540
+ children: [...tUnNamingSequence, "P"],
541
+ },
542
+ PowerTransformer: {
543
+ parents: [...tEquipmentContainer],
544
+ children: [
545
+ ...tEquipmentSequence,
546
+ "TransformerWinding",
547
+ "SubEquipment",
548
+ "EqFunction",
549
+ ],
550
+ },
551
+ Private: {
552
+ parents: [],
553
+ children: [],
554
+ },
555
+ Process: {
556
+ parents: ["Process", "SCL"],
557
+ children: [
558
+ ...tGeneralEquipmentContainerSequence,
559
+ "ConductingEquipment",
560
+ "Substation",
561
+ "Line",
562
+ "Process",
563
+ ],
564
+ },
565
+ ProtNs: {
566
+ parents: ["DAType", "DA"],
567
+ children: [],
568
+ },
569
+ Protocol: {
570
+ parents: ["GSEControl", "SampledValueControl"],
571
+ children: [],
572
+ },
573
+ ReadWrite: {
574
+ parents: ["Services"],
575
+ children: [],
576
+ },
577
+ RedProt: {
578
+ parents: ["Services"],
579
+ children: [],
580
+ },
581
+ ReportControl: {
582
+ parents: [...tAnyLN],
583
+ children: [...tControlWithTriggerOptSequence, "OptFields", "RptEnabled"],
584
+ },
585
+ ReportSettings: {
586
+ parents: ["Services"],
587
+ children: [],
588
+ },
589
+ RptEnabled: {
590
+ parents: ["ReportControl"],
591
+ children: [...tUnNamingSequence, "ClientLN"],
592
+ },
593
+ SamplesPerSec: {
594
+ parents: ["SMVSettings"],
595
+ children: [],
596
+ },
597
+ SampledValueControl: {
598
+ parents: ["LN0"],
599
+ children: [...tControlWithIEDNameSequence, "SmvOpts"],
600
+ },
601
+ SecPerSamples: {
602
+ parents: ["SMVSettings"],
603
+ children: [],
604
+ },
605
+ SCL: {
606
+ parents: [],
607
+ children: [
608
+ ...tBaseNameSequence,
609
+ "Header",
610
+ "Substation",
611
+ "Communication",
612
+ "IED",
613
+ "DataTypeTemplates",
614
+ "Line",
615
+ "Process",
616
+ ],
617
+ },
618
+ SDI: {
619
+ parents: ["DOI", "SDI"],
620
+ children: [...tUnNamingSequence, "SDI", "DAI"],
621
+ },
622
+ SDO: {
623
+ parents: ["DOType"],
624
+ children: [...tNamingSequence],
625
+ },
626
+ Server: {
627
+ parents: ["AccessPoint"],
628
+ children: [
629
+ ...tUnNamingSequence,
630
+ "Authentication",
631
+ "LDevice",
632
+ "Association",
633
+ ],
634
+ },
635
+ ServerAt: {
636
+ parents: ["AccessPoint"],
637
+ children: [...tUnNamingSequence],
638
+ },
639
+ Services: {
640
+ parents: ["IED", "AccessPoint"],
641
+ children: [
642
+ "DynAssociation",
643
+ "SettingGroups",
644
+ "GetDirectory",
645
+ "GetDataObjectDefinition",
646
+ "DataObjectDirectory",
647
+ "GetDataSetValue",
648
+ "SetDataSetValue",
649
+ "DataSetDirectory",
650
+ "ConfDataSet",
651
+ "DynDataSet",
652
+ "ReadWrite",
653
+ "TimerActivatedControl",
654
+ "ConfReportControl",
655
+ "GetCBValues",
656
+ "ConfLogControl",
657
+ "ReportSettings",
658
+ "LogSettings",
659
+ "GSESettings",
660
+ "SMVSettings",
661
+ "GSEDir",
662
+ "GOOSE",
663
+ "GSSE",
664
+ "SMVsc",
665
+ "FileHandling",
666
+ "ConfLNs",
667
+ "ClientServices",
668
+ "ConfLdName",
669
+ "SupSubscription",
670
+ "ConfSigRef",
671
+ "ValueHandling",
672
+ "RedProt",
673
+ "TimeSyncProt",
674
+ "CommProt",
675
+ ],
676
+ },
677
+ SetDataSetValue: {
678
+ parents: ["Services"],
679
+ children: [],
680
+ },
681
+ SettingControl: {
682
+ parents: ["LN0"],
683
+ children: [...tUnNamingSequence],
684
+ },
685
+ SettingGroups: {
686
+ parents: ["Services"],
687
+ children: ["SGEdit", "ConfSG"],
688
+ },
689
+ SGEdit: {
690
+ parents: ["SettingGroups"],
691
+ children: [],
692
+ },
693
+ SmpRate: {
694
+ parents: ["SMVSettings"],
695
+ children: [],
696
+ },
697
+ SMV: {
698
+ parents: ["ConnectedAP"],
699
+ children: [...tControlBlockSequence],
700
+ },
701
+ SmvOpts: {
702
+ parents: ["SampledValueControl"],
703
+ children: [],
704
+ },
705
+ SMVsc: {
706
+ parents: ["Services"],
707
+ children: [],
708
+ },
709
+ SMVSecurity: {
710
+ parents: ["AccessPoint"],
711
+ children: [...tNamingSequence, "Subject", "IssuerName"],
712
+ },
713
+ SMVSettings: {
714
+ parents: ["Services"],
715
+ children: ["SmpRate", "SamplesPerSec", "SecPerSamples", "McSecurity"],
716
+ },
717
+ SubEquipment: {
718
+ parents: [
719
+ "TapChanger",
720
+ "PowerTransformer",
721
+ "ConductingEquipment",
722
+ "TransformerWinding",
723
+ ...tAbstractConductingEquipment,
724
+ ],
725
+ children: [...tPowerSystemResourceSequence, "EqFunction"],
726
+ },
727
+ SubFunction: {
728
+ parents: ["SubFunction", "Function"],
729
+ children: [
730
+ ...tPowerSystemResourceSequence,
731
+ "GeneralEquipment",
732
+ "ConductingEquipment",
733
+ "SubFunction",
734
+ ],
735
+ },
736
+ SubNetwork: {
737
+ parents: ["Communication"],
738
+ children: [...tNamingSequence, "BitRate", "ConnectedAP"],
739
+ },
740
+ Subject: {
741
+ parents: ["GOOSESecurity", "SMVSecurity"],
742
+ children: [],
743
+ },
744
+ Substation: {
745
+ parents: ["SCL"],
746
+ children: [...tEquipmentContainerSequence, "VoltageLevel", "Function"],
747
+ },
748
+ SupSubscription: {
749
+ parents: ["Services"],
750
+ children: [],
751
+ },
752
+ TapChanger: {
753
+ parents: ["TransformerWinding"],
754
+ children: [...tPowerSystemResourceSequence, "SubEquipment", "EqFunction"],
755
+ },
756
+ Terminal: {
757
+ parents: [...tEquipment],
758
+ children: [...tUnNamingSequence],
759
+ },
760
+ Text: {
761
+ parents: sCLTags.filter((tag) => tag !== "Text" && tag !== "Private"),
762
+ children: [],
763
+ },
764
+ TimerActivatedControl: {
765
+ parents: ["Services"],
766
+ children: [],
767
+ },
768
+ TimeSyncProt: {
769
+ parents: ["Services", "ClientServices"],
770
+ children: [],
771
+ },
772
+ TransformerWinding: {
773
+ parents: ["PowerTransformer"],
774
+ children: [
775
+ ...tAbstractConductingEquipmentSequence,
776
+ "TapChanger",
777
+ "NeutralPoint",
778
+ "EqFunction",
779
+ "SubEquipment",
780
+ ],
781
+ },
782
+ TrgOps: {
783
+ parents: ["ReportControl"],
784
+ children: [],
785
+ },
786
+ Val: {
787
+ parents: ["DAI", "DA", "BDA"],
788
+ children: [],
789
+ },
790
+ ValueHandling: {
791
+ parents: ["Services"],
792
+ children: [],
793
+ },
794
+ Voltage: {
795
+ parents: ["VoltageLevel"],
796
+ children: [],
797
+ },
798
+ VoltageLevel: {
799
+ parents: ["Substation"],
800
+ children: [...tEquipmentContainerSequence, "Voltage", "Bay", "Function"],
801
+ },
802
+ };
803
+ const tagSet = new Set(sCLTags);
804
+ export function isSCLTag(tag) {
805
+ return tagSet.has(tag);
806
+ }
807
+ //# sourceMappingURL=tags.js.map