@dialecte/scl 0.3.1 → 0.3.3

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 (274) hide show
  1. package/dist/{hooks-CtOTydon.js → hooks-BTkrNj6r.js} +2620 -903
  2. package/dist/v2019C1/constants/index.d.ts +2 -0
  3. package/dist/v2019C1/constants/index.d.ts.map +1 -0
  4. package/dist/v2019C1/{extensions/reference/constants/pairs.d.ts → constants/reference-pairs.d.ts} +2 -13
  5. package/dist/v2019C1/constants/reference-pairs.d.ts.map +1 -0
  6. package/dist/v2019C1/extensions/clean-up/transaction/orphan-lnode-bindings.d.ts +3 -1
  7. package/dist/v2019C1/extensions/clean-up/transaction/orphan-lnode-bindings.d.ts.map +1 -1
  8. package/dist/v2019C1/extensions/clean-up/transaction/orphan-uuid-refs.d.ts.map +1 -1
  9. package/dist/v2019C1/extensions/identity/index.d.ts +5 -0
  10. package/dist/v2019C1/extensions/identity/index.d.ts.map +1 -0
  11. package/dist/v2019C1/extensions/identity/transaction/index.d.ts +3 -0
  12. package/dist/v2019C1/extensions/identity/transaction/index.d.ts.map +1 -0
  13. package/dist/v2019C1/extensions/identity/transaction/write-identity.d.ts +21 -0
  14. package/dist/v2019C1/extensions/identity/transaction/write-identity.d.ts.map +1 -0
  15. package/dist/v2019C1/extensions/identity/transaction/write-identity.types.d.ts +3 -0
  16. package/dist/v2019C1/extensions/identity/transaction/write-identity.types.d.ts.map +1 -0
  17. package/dist/v2019C1/extensions/index.d.ts +17 -3
  18. package/dist/v2019C1/extensions/index.d.ts.map +1 -1
  19. package/dist/v2019C1/extensions/lifecycle/apply/apply.d.ts +29 -0
  20. package/dist/v2019C1/extensions/lifecycle/apply/apply.d.ts.map +1 -0
  21. package/dist/v2019C1/extensions/lifecycle/apply/apply.types.d.ts +26 -0
  22. package/dist/v2019C1/extensions/lifecycle/apply/apply.types.d.ts.map +1 -0
  23. package/dist/v2019C1/extensions/lifecycle/apply/index.d.ts +3 -0
  24. package/dist/v2019C1/extensions/lifecycle/apply/index.d.ts.map +1 -0
  25. package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.constants.d.ts +5 -0
  26. package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.constants.d.ts.map +1 -0
  27. package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.d.ts +25 -0
  28. package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.d.ts.map +1 -0
  29. package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.types.d.ts +23 -0
  30. package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.types.d.ts.map +1 -0
  31. package/dist/v2019C1/extensions/lifecycle/constraints/find-constraint-violation.d.ts +21 -0
  32. package/dist/v2019C1/extensions/lifecycle/constraints/find-constraint-violation.d.ts.map +1 -0
  33. package/dist/v2019C1/extensions/lifecycle/constraints/find-constraint-violation.types.d.ts +26 -0
  34. package/dist/v2019C1/extensions/lifecycle/constraints/find-constraint-violation.types.d.ts.map +1 -0
  35. package/dist/v2019C1/extensions/lifecycle/constraints/find-constraint-violations.d.ts +17 -0
  36. package/dist/v2019C1/extensions/lifecycle/constraints/find-constraint-violations.d.ts.map +1 -0
  37. package/dist/v2019C1/extensions/lifecycle/constraints/identity-fields.d.ts +2 -0
  38. package/dist/v2019C1/extensions/lifecycle/constraints/identity-fields.d.ts.map +1 -0
  39. package/dist/v2019C1/extensions/lifecycle/constraints/index.d.ts +12 -0
  40. package/dist/v2019C1/extensions/lifecycle/constraints/index.d.ts.map +1 -0
  41. package/dist/v2019C1/extensions/lifecycle/constraints/public.d.ts +2 -0
  42. package/dist/v2019C1/extensions/lifecycle/constraints/public.d.ts.map +1 -0
  43. package/dist/v2019C1/extensions/lifecycle/constraints/resolve-placement-collision.d.ts +29 -0
  44. package/dist/v2019C1/extensions/lifecycle/constraints/resolve-placement-collision.d.ts.map +1 -0
  45. package/dist/v2019C1/extensions/lifecycle/constraints/resolve-placement-collision.types.d.ts +20 -0
  46. package/dist/v2019C1/extensions/lifecycle/constraints/resolve-placement-collision.types.d.ts.map +1 -0
  47. package/dist/v2019C1/extensions/lifecycle/constraints/resolve-unique-value.d.ts +23 -0
  48. package/dist/v2019C1/extensions/lifecycle/constraints/resolve-unique-value.d.ts.map +1 -0
  49. package/dist/v2019C1/extensions/lifecycle/constraints/resolve-unique-value.types.d.ts +16 -0
  50. package/dist/v2019C1/extensions/lifecycle/constraints/resolve-unique-value.types.d.ts.map +1 -0
  51. package/dist/v2019C1/extensions/lifecycle/contract.types.d.ts +53 -0
  52. package/dist/v2019C1/extensions/lifecycle/contract.types.d.ts.map +1 -0
  53. package/dist/v2019C1/extensions/lifecycle/cross-cutting/applied-satellites.constants.d.ts +12 -0
  54. package/dist/v2019C1/extensions/lifecycle/cross-cutting/applied-satellites.constants.d.ts.map +1 -0
  55. package/dist/v2019C1/extensions/lifecycle/cross-cutting/applied-satellites.d.ts +13 -0
  56. package/dist/v2019C1/extensions/lifecycle/cross-cutting/applied-satellites.d.ts.map +1 -0
  57. package/dist/v2019C1/extensions/lifecycle/cross-cutting/clone-applied-satellites.d.ts +24 -0
  58. package/dist/v2019C1/extensions/lifecycle/cross-cutting/clone-applied-satellites.d.ts.map +1 -0
  59. package/dist/v2019C1/extensions/lifecycle/cross-cutting/index.d.ts +4 -0
  60. package/dist/v2019C1/extensions/lifecycle/cross-cutting/index.d.ts.map +1 -0
  61. package/dist/v2019C1/extensions/lifecycle/engine/decide.d.ts +31 -0
  62. package/dist/v2019C1/extensions/lifecycle/engine/decide.d.ts.map +1 -0
  63. package/dist/v2019C1/extensions/lifecycle/engine/decide.types.d.ts +12 -0
  64. package/dist/v2019C1/extensions/lifecycle/engine/decide.types.d.ts.map +1 -0
  65. package/dist/v2019C1/extensions/lifecycle/engine/diff.d.ts +30 -0
  66. package/dist/v2019C1/extensions/lifecycle/engine/diff.d.ts.map +1 -0
  67. package/dist/v2019C1/extensions/lifecycle/engine/diff.types.d.ts +121 -0
  68. package/dist/v2019C1/extensions/lifecycle/engine/diff.types.d.ts.map +1 -0
  69. package/dist/v2019C1/extensions/lifecycle/engine/group.d.ts +16 -0
  70. package/dist/v2019C1/extensions/lifecycle/engine/group.d.ts.map +1 -0
  71. package/dist/v2019C1/extensions/lifecycle/engine/index.d.ts +8 -0
  72. package/dist/v2019C1/extensions/lifecycle/engine/index.d.ts.map +1 -0
  73. package/dist/v2019C1/extensions/lifecycle/engine/public.d.ts +2 -0
  74. package/dist/v2019C1/extensions/lifecycle/engine/public.d.ts.map +1 -0
  75. package/dist/v2019C1/extensions/lifecycle/engine/reconcile.d.ts +37 -0
  76. package/dist/v2019C1/extensions/lifecycle/engine/reconcile.d.ts.map +1 -0
  77. package/dist/v2019C1/extensions/lifecycle/engine/visible-attributes.d.ts +7 -0
  78. package/dist/v2019C1/extensions/lifecycle/engine/visible-attributes.d.ts.map +1 -0
  79. package/dist/v2019C1/extensions/lifecycle/extract/index.d.ts +2 -0
  80. package/dist/v2019C1/extensions/lifecycle/extract/index.d.ts.map +1 -0
  81. package/dist/v2019C1/extensions/{extraction/transaction/recipes/asd/to-asd.d.ts → lifecycle/extract/transaction/asd.d.ts} +3 -3
  82. package/dist/v2019C1/extensions/lifecycle/extract/transaction/asd.d.ts.map +1 -0
  83. package/dist/v2019C1/extensions/{extraction/transaction/recipes/shared → lifecycle/extract/transaction}/ensure-substation-structure.d.ts +1 -1
  84. package/dist/v2019C1/extensions/lifecycle/extract/transaction/ensure-substation-structure.d.ts.map +1 -0
  85. package/dist/v2019C1/extensions/{extraction/transaction/recipes/fsd/to-fsd.d.ts → lifecycle/extract/transaction/fsd.d.ts} +3 -3
  86. package/dist/v2019C1/extensions/lifecycle/extract/transaction/fsd.d.ts.map +1 -0
  87. package/dist/v2019C1/extensions/lifecycle/extract/transaction/index.d.ts +4 -0
  88. package/dist/v2019C1/extensions/lifecycle/extract/transaction/index.d.ts.map +1 -0
  89. package/dist/v2019C1/extensions/{extraction/transaction/recipes/fsd → lifecycle/extract/transaction}/omit.d.ts +1 -1
  90. package/dist/v2019C1/extensions/lifecycle/extract/transaction/omit.d.ts.map +1 -0
  91. package/dist/v2019C1/extensions/{extraction/transaction/recipes/shared → lifecycle/extract/transaction}/post-extraction-cleanup.d.ts +1 -1
  92. package/dist/v2019C1/extensions/lifecycle/extract/transaction/post-extraction-cleanup.d.ts.map +1 -0
  93. package/dist/v2019C1/extensions/lifecycle/index.d.ts +44 -0
  94. package/dist/v2019C1/extensions/lifecycle/index.d.ts.map +1 -0
  95. package/dist/v2019C1/extensions/lifecycle/instance/composed-functions.d.ts +10 -0
  96. package/dist/v2019C1/extensions/lifecycle/instance/composed-functions.d.ts.map +1 -0
  97. package/dist/v2019C1/extensions/lifecycle/instance/find-instance.d.ts +50 -0
  98. package/dist/v2019C1/extensions/lifecycle/instance/find-instance.d.ts.map +1 -0
  99. package/dist/v2019C1/extensions/lifecycle/instance/index.d.ts +3 -0
  100. package/dist/v2019C1/extensions/lifecycle/instance/index.d.ts.map +1 -0
  101. package/dist/v2019C1/extensions/lifecycle/instantiate/index.d.ts +2 -0
  102. package/dist/v2019C1/extensions/lifecycle/instantiate/index.d.ts.map +1 -0
  103. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/asd.d.ts +22 -0
  104. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/asd.d.ts.map +1 -0
  105. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/asd.types.d.ts +21 -0
  106. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/asd.types.d.ts.map +1 -0
  107. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/fsd.d.ts +27 -0
  108. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/fsd.d.ts.map +1 -0
  109. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/fsd.types.d.ts +22 -0
  110. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/fsd.types.d.ts.map +1 -0
  111. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/index.d.ts +6 -0
  112. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/index.d.ts.map +1 -0
  113. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/resolve-target-structure.d.ts +20 -0
  114. package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/resolve-target-structure.d.ts.map +1 -0
  115. package/dist/v2019C1/extensions/lifecycle/layers/application/clone-application.d.ts +20 -0
  116. package/dist/v2019C1/extensions/lifecycle/layers/application/clone-application.d.ts.map +1 -0
  117. package/dist/v2019C1/extensions/lifecycle/layers/application/index.d.ts +3 -0
  118. package/dist/v2019C1/extensions/lifecycle/layers/application/index.d.ts.map +1 -0
  119. package/dist/v2019C1/extensions/lifecycle/layers/application/satellites.constants.d.ts +15 -0
  120. package/dist/v2019C1/extensions/lifecycle/layers/application/satellites.constants.d.ts.map +1 -0
  121. package/dist/v2019C1/extensions/lifecycle/layers/application/satellites.d.ts +12 -0
  122. package/dist/v2019C1/extensions/lifecycle/layers/application/satellites.d.ts.map +1 -0
  123. package/dist/v2019C1/extensions/{extraction/transaction/recipes/shared → lifecycle/layers/function}/clone-function.d.ts +4 -4
  124. package/dist/v2019C1/extensions/lifecycle/layers/function/clone-function.d.ts.map +1 -0
  125. package/dist/v2019C1/extensions/lifecycle/layers/function/index.d.ts +3 -0
  126. package/dist/v2019C1/extensions/lifecycle/layers/function/index.d.ts.map +1 -0
  127. package/dist/v2019C1/extensions/lifecycle/layers/function/satellites.constants.d.ts +12 -0
  128. package/dist/v2019C1/extensions/lifecycle/layers/function/satellites.constants.d.ts.map +1 -0
  129. package/dist/v2019C1/extensions/lifecycle/layers/function/satellites.d.ts +12 -0
  130. package/dist/v2019C1/extensions/lifecycle/layers/function/satellites.d.ts.map +1 -0
  131. package/dist/v2019C1/extensions/lifecycle/layers/index.d.ts +4 -0
  132. package/dist/v2019C1/extensions/lifecycle/layers/index.d.ts.map +1 -0
  133. package/dist/v2019C1/extensions/lifecycle/layers/omit-filters.d.ts +9 -0
  134. package/dist/v2019C1/extensions/lifecycle/layers/omit-filters.d.ts.map +1 -0
  135. package/dist/v2019C1/extensions/lifecycle/public.d.ts +7 -0
  136. package/dist/v2019C1/extensions/lifecycle/public.d.ts.map +1 -0
  137. package/dist/v2019C1/extensions/lifecycle/report/index.d.ts +4 -0
  138. package/dist/v2019C1/extensions/lifecycle/report/index.d.ts.map +1 -0
  139. package/dist/v2019C1/extensions/lifecycle/report/mark-placement-conflicts.d.ts +22 -0
  140. package/dist/v2019C1/extensions/lifecycle/report/mark-placement-conflicts.d.ts.map +1 -0
  141. package/dist/v2019C1/extensions/lifecycle/report/presentation-scope.d.ts +13 -0
  142. package/dist/v2019C1/extensions/lifecycle/report/presentation-scope.d.ts.map +1 -0
  143. package/dist/v2019C1/extensions/lifecycle/report/presentation-scope.types.d.ts +12 -0
  144. package/dist/v2019C1/extensions/lifecycle/report/presentation-scope.types.d.ts.map +1 -0
  145. package/dist/v2019C1/extensions/lifecycle/report/public.d.ts +3 -0
  146. package/dist/v2019C1/extensions/lifecycle/report/public.d.ts.map +1 -0
  147. package/dist/v2019C1/extensions/lifecycle/report/query/cross-cutting-satellites.d.ts +21 -0
  148. package/dist/v2019C1/extensions/lifecycle/report/query/cross-cutting-satellites.d.ts.map +1 -0
  149. package/dist/v2019C1/extensions/lifecycle/report/query/index.d.ts +3 -0
  150. package/dist/v2019C1/extensions/lifecycle/report/query/index.d.ts.map +1 -0
  151. package/dist/v2019C1/extensions/lifecycle/report/query/report-asd.d.ts +22 -0
  152. package/dist/v2019C1/extensions/lifecycle/report/query/report-asd.d.ts.map +1 -0
  153. package/dist/v2019C1/extensions/lifecycle/report/query/report-fsd.d.ts +23 -0
  154. package/dist/v2019C1/extensions/lifecycle/report/query/report-fsd.d.ts.map +1 -0
  155. package/dist/v2019C1/extensions/lifecycle/report/query/report-function-satellites.d.ts +21 -0
  156. package/dist/v2019C1/extensions/lifecycle/report/query/report-function-satellites.d.ts.map +1 -0
  157. package/dist/v2019C1/extensions/lifecycle/report/query/report-function.d.ts +21 -0
  158. package/dist/v2019C1/extensions/lifecycle/report/query/report-function.d.ts.map +1 -0
  159. package/dist/v2019C1/extensions/lifecycle/report/query/satellite-companions.d.ts +29 -0
  160. package/dist/v2019C1/extensions/lifecycle/report/query/satellite-companions.d.ts.map +1 -0
  161. package/dist/v2019C1/extensions/lifecycle/report/report.d.ts +17 -0
  162. package/dist/v2019C1/extensions/lifecycle/report/report.d.ts.map +1 -0
  163. package/dist/v2019C1/extensions/lifecycle/transplant/index.d.ts +2 -0
  164. package/dist/v2019C1/extensions/lifecycle/transplant/index.d.ts.map +1 -0
  165. package/dist/v2019C1/extensions/lifecycle/transplant/public.d.ts +3 -0
  166. package/dist/v2019C1/extensions/lifecycle/transplant/public.d.ts.map +1 -0
  167. package/dist/v2019C1/extensions/{extraction → lifecycle/transplant}/transaction/deep.d.ts +8 -2
  168. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/deep.d.ts.map +1 -0
  169. package/dist/v2019C1/extensions/{extraction → lifecycle/transplant}/transaction/deep.types.d.ts +3 -3
  170. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/deep.types.d.ts.map +1 -0
  171. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/index.d.ts +8 -0
  172. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/index.d.ts.map +1 -0
  173. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/add-children-to.d.ts +23 -0
  174. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/add-children-to.d.ts.map +1 -0
  175. package/dist/v2019C1/extensions/{extraction → lifecycle/transplant}/transaction/primitives/clone-referenced.d.ts +5 -6
  176. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/clone-referenced.d.ts.map +1 -0
  177. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/clone-referenced.types.d.ts +4 -0
  178. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/clone-referenced.types.d.ts.map +1 -0
  179. package/dist/v2019C1/extensions/{extraction → lifecycle/transplant}/transaction/primitives/clone-tree.d.ts +4 -5
  180. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/clone-tree.d.ts.map +1 -0
  181. package/dist/v2019C1/extensions/{extraction → lifecycle/transplant}/transaction/primitives/clone-tree.types.d.ts +2 -2
  182. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/clone-tree.types.d.ts.map +1 -0
  183. package/dist/v2019C1/extensions/{extraction/transaction/recipes/shared → lifecycle/transplant/transaction}/resolve-structure-ref.d.ts +6 -6
  184. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/resolve-structure-ref.d.ts.map +1 -0
  185. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/structure.types.d.ts +13 -0
  186. package/dist/v2019C1/extensions/lifecycle/transplant/transaction/structure.types.d.ts.map +1 -0
  187. package/dist/v2019C1/extensions/lifecycle/update/index.d.ts +2 -0
  188. package/dist/v2019C1/extensions/lifecycle/update/index.d.ts.map +1 -0
  189. package/dist/v2019C1/extensions/lifecycle/update/transaction/asd.d.ts +38 -0
  190. package/dist/v2019C1/extensions/lifecycle/update/transaction/asd.d.ts.map +1 -0
  191. package/dist/v2019C1/extensions/lifecycle/update/transaction/cross-cutting-satellites.d.ts +23 -0
  192. package/dist/v2019C1/extensions/lifecycle/update/transaction/cross-cutting-satellites.d.ts.map +1 -0
  193. package/dist/v2019C1/extensions/lifecycle/update/transaction/fsd.d.ts +29 -0
  194. package/dist/v2019C1/extensions/lifecycle/update/transaction/fsd.d.ts.map +1 -0
  195. package/dist/v2019C1/extensions/lifecycle/update/transaction/function-satellites.d.ts +33 -0
  196. package/dist/v2019C1/extensions/lifecycle/update/transaction/function-satellites.d.ts.map +1 -0
  197. package/dist/v2019C1/extensions/lifecycle/update/transaction/index.d.ts +3 -0
  198. package/dist/v2019C1/extensions/lifecycle/update/transaction/index.d.ts.map +1 -0
  199. package/dist/v2019C1/extensions/lifecycle/update/transaction/satellite-reconcile.d.ts +29 -0
  200. package/dist/v2019C1/extensions/lifecycle/update/transaction/satellite-reconcile.d.ts.map +1 -0
  201. package/dist/v2019C1/extensions/presentation/constants/title.d.ts +6 -0
  202. package/dist/v2019C1/extensions/presentation/constants/title.d.ts.map +1 -1
  203. package/dist/v2019C1/extensions/public.d.ts +2 -1
  204. package/dist/v2019C1/extensions/public.d.ts.map +1 -1
  205. package/dist/v2019C1/extensions/reference/constants/derived.d.ts +7 -0
  206. package/dist/v2019C1/extensions/reference/constants/derived.d.ts.map +1 -1
  207. package/dist/v2019C1/extensions/reference/constants/index.d.ts +1 -2
  208. package/dist/v2019C1/extensions/reference/constants/index.d.ts.map +1 -1
  209. package/dist/v2019C1/extensions/reference/constants/orphan-rules.d.ts +1 -1
  210. package/dist/v2019C1/extensions/reference/constants/orphan-rules.d.ts.map +1 -1
  211. package/dist/v2019C1/extensions/reference/constants/types.d.ts +2 -1
  212. package/dist/v2019C1/extensions/reference/constants/types.d.ts.map +1 -1
  213. package/dist/v2019C1/extensions/reference/query/build/build-element-path.d.ts.map +1 -1
  214. package/dist/v2019C1/extensions/reference/query/build/build-reference-path.d.ts +6 -0
  215. package/dist/v2019C1/extensions/reference/query/build/build-reference-path.d.ts.map +1 -1
  216. package/dist/v2019C1/extensions/reference/query/index.d.ts +1 -0
  217. package/dist/v2019C1/extensions/reference/query/index.d.ts.map +1 -1
  218. package/dist/v2019C1/extensions/reference/query/provenance/get-provenance.constants.d.ts +8 -0
  219. package/dist/v2019C1/extensions/reference/query/provenance/get-provenance.constants.d.ts.map +1 -0
  220. package/dist/v2019C1/extensions/reference/query/provenance/get-provenance.d.ts +12 -0
  221. package/dist/v2019C1/extensions/reference/query/provenance/get-provenance.d.ts.map +1 -0
  222. package/dist/v2019C1/extensions/reference/query/provenance/get-provenance.types.d.ts +19 -0
  223. package/dist/v2019C1/extensions/reference/query/provenance/get-provenance.types.d.ts.map +1 -0
  224. package/dist/v2019C1/extensions/reference/query/provenance/index.d.ts +3 -0
  225. package/dist/v2019C1/extensions/reference/query/provenance/index.d.ts.map +1 -0
  226. package/dist/v2019C1/extensions/reference/query/resolve/parse-path.d.ts.map +1 -1
  227. package/dist/v2019C1/extensions/reference/query/resolve/resolve-reference-path.d.ts.map +1 -1
  228. package/dist/v2019C1/extensions/reference/transaction/index.d.ts +2 -0
  229. package/dist/v2019C1/extensions/reference/transaction/index.d.ts.map +1 -1
  230. package/dist/v2019C1/extensions/reference/transaction/write-provenance.d.ts +18 -0
  231. package/dist/v2019C1/extensions/reference/transaction/write-provenance.d.ts.map +1 -0
  232. package/dist/v2019C1/extensions/reference/transaction/write-provenance.types.d.ts +13 -0
  233. package/dist/v2019C1/extensions/reference/transaction/write-provenance.types.d.ts.map +1 -0
  234. package/dist/v2019C1/extensions/signature/query/element-signature.d.ts.map +1 -1
  235. package/dist/v2019C1/hooks/after-deep-clone/ref-paths.d.ts.map +1 -1
  236. package/dist/v2019C1/hooks/before-delete/orphaned-refs.d.ts.map +1 -1
  237. package/dist/v2019C1/hooks/io/io-hooks.d.ts.map +1 -1
  238. package/dist/v2019C1/hooks/shared/ref-entry-ops.d.ts.map +1 -1
  239. package/dist/v2019C1/index.d.ts +1 -0
  240. package/dist/v2019C1/index.d.ts.map +1 -1
  241. package/dist/v2019C1/index.js +12 -12
  242. package/dist/v2019C1/test/hydrated-test.d.ts +34 -6
  243. package/dist/v2019C1/test/hydrated-test.d.ts.map +1 -1
  244. package/dist/v2019C1/test.js +11 -11
  245. package/package.json +6 -4
  246. package/dist/v2019C1/extensions/extraction/index.d.ts +0 -12
  247. package/dist/v2019C1/extensions/extraction/index.d.ts.map +0 -1
  248. package/dist/v2019C1/extensions/extraction/public.d.ts +0 -3
  249. package/dist/v2019C1/extensions/extraction/public.d.ts.map +0 -1
  250. package/dist/v2019C1/extensions/extraction/transaction/deep.d.ts.map +0 -1
  251. package/dist/v2019C1/extensions/extraction/transaction/deep.types.d.ts.map +0 -1
  252. package/dist/v2019C1/extensions/extraction/transaction/index.d.ts +0 -6
  253. package/dist/v2019C1/extensions/extraction/transaction/index.d.ts.map +0 -1
  254. package/dist/v2019C1/extensions/extraction/transaction/primitives/clone-referenced.d.ts.map +0 -1
  255. package/dist/v2019C1/extensions/extraction/transaction/primitives/clone-tree.d.ts.map +0 -1
  256. package/dist/v2019C1/extensions/extraction/transaction/primitives/clone-tree.types.d.ts.map +0 -1
  257. package/dist/v2019C1/extensions/extraction/transaction/recipes/asd/clone-application.d.ts +0 -16
  258. package/dist/v2019C1/extensions/extraction/transaction/recipes/asd/clone-application.d.ts.map +0 -1
  259. package/dist/v2019C1/extensions/extraction/transaction/recipes/asd/index.d.ts +0 -2
  260. package/dist/v2019C1/extensions/extraction/transaction/recipes/asd/index.d.ts.map +0 -1
  261. package/dist/v2019C1/extensions/extraction/transaction/recipes/asd/to-asd.d.ts.map +0 -1
  262. package/dist/v2019C1/extensions/extraction/transaction/recipes/fsd/index.d.ts +0 -2
  263. package/dist/v2019C1/extensions/extraction/transaction/recipes/fsd/index.d.ts.map +0 -1
  264. package/dist/v2019C1/extensions/extraction/transaction/recipes/fsd/omit.d.ts.map +0 -1
  265. package/dist/v2019C1/extensions/extraction/transaction/recipes/fsd/to-fsd.d.ts.map +0 -1
  266. package/dist/v2019C1/extensions/extraction/transaction/recipes/shared/clone-function.d.ts.map +0 -1
  267. package/dist/v2019C1/extensions/extraction/transaction/recipes/shared/ensure-substation-structure.d.ts.map +0 -1
  268. package/dist/v2019C1/extensions/extraction/transaction/recipes/shared/omit-filters.d.ts +0 -4
  269. package/dist/v2019C1/extensions/extraction/transaction/recipes/shared/omit-filters.d.ts.map +0 -1
  270. package/dist/v2019C1/extensions/extraction/transaction/recipes/shared/post-extraction-cleanup.d.ts.map +0 -1
  271. package/dist/v2019C1/extensions/extraction/transaction/recipes/shared/resolve-structure-ref.d.ts.map +0 -1
  272. package/dist/v2019C1/extensions/extraction/transaction/recipes/shared/shared.types.d.ts +0 -7
  273. package/dist/v2019C1/extensions/extraction/transaction/recipes/shared/shared.types.d.ts.map +0 -1
  274. package/dist/v2019C1/extensions/reference/constants/pairs.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export * from './reference-pairs';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -1,13 +1,3 @@
1
- import { RESOLUTION_TYPE } from './resolution-types';
2
- /**
3
- * Complete mapping of elements that have path/name -> UUID reference pairs.
4
- *
5
- * Each entry maps an element tag to its reference attribute pairs where:
6
- * - `path`: the attribute holding a pathname or name reference
7
- * - `uuid`: the corresponding UUID attribute that identifies the same target
8
- * - `target`: the element tag(s) the UUID resolves to
9
- * - `companions`: attributes that must/may be set when the UUID is used
10
- */
11
1
  export declare const UUID_REFERENCE_PAIRS: {
12
2
  readonly AllocationRoleRef: readonly [{
13
3
  readonly attribute: {
@@ -321,7 +311,7 @@ export declare const UUID_REFERENCE_PAIRS: {
321
311
  readonly uuid: "elementUuid";
322
312
  };
323
313
  readonly resolution: "unsupported";
324
- readonly target: readonly ["LNode", "Function", "SubFunction", "EqFunction", "EqSubFunction"];
314
+ readonly target: readonly ["AccessControl", "AccessPoint", "Address", "AllocationRole", "AllocationRoleRef", "AnalogueWiringParameters", "AnalogueWiringParametersRef", "Application", "ApplicationSclRef", "Association", "Authentication", "BDA", "Bay", "BayType", "BehaviorDescription", "BehaviorDescriptionRef", "BehaviorReference", "BinaryWiringParameters", "BinaryWiringParametersRef", "BitRate", "CheckoutID", "ClientLN", "ClientServices", "CommProt", "Communication", "CommunicationServiceSpecifications", "ConductingEquipment", "ConfDataSet", "ConfLNs", "ConfLdName", "ConfLogControl", "ConfReportControl", "ConfSG", "ConfSigRef", "ConnectedAP", "ConnectivityNode", "ControlRef", "ControllingLNode", "DA", "DAI", "DAS", "DAType", "DO", "DOI", "DOS", "DOType", "DataObjectDirectory", "DataSet", "DataSetDirectory", "DataTypeTemplates", "DynAssociation", "DynDataSet", "EnumType", "EnumVal", "EqFunction", "EqSubFunction", "ExtCtrl", "ExtRef", "FCDA", "FileHandling", "Function", "FunctionCatRef", "FunctionCategory", "FunctionCategoryRef", "FunctionRef", "FunctionRole", "FunctionRoleContent", "FunctionSclRef", "FunctionTemplate", "FunctionalSubVariant", "FunctionalVariant", "FunctionalVariantGroup", "FunctionalVariantRef", "GOOSE", "GOOSEMcSecurity", "GOOSESecurity", "GSE", "GSEControl", "GSEDir", "GSESettings", "GSSE", "GeneralEquipment", "GetCBValues", "GetDataObjectDefinition", "GetDataSetValue", "GetDirectory", "GooseParameters", "GooseParametersRef", "Header", "History", "Hitem", "IED", "IEDName", "IEDSourceFiles", "InputVar", "InputVarRef", "Inputs", "IssuerName", "KDC", "L2CommParameters", "L3IPv4CommParameters", "L3IPv6CommParameters", "LDevice", "LN", "LN0", "LNode", "LNodeDataRef", "LNodeInputRef", "LNodeInputs", "LNodeOutputRef", "LNodeOutputs", "LNodeSpecNaming", "LNodeType", "Label", "Labels", "Line", "Log", "LogControl", "LogParameters", "LogParametersRef", "LogSettings", "MaxTime", "McSecurity", "MinRequestedSCDFile", "MinRequestedSCDFiles", "MinTime", "MultiAPPerSubNet", "NeutralPoint", "OptFields", "OutputVar", "OutputVarRef", "Outputs", "P", "PhysConn", "PowerSystemRelation", "PowerSystemRelationRef", "PowerSystemRelations", "PowerTransformer", "Private", "Process", "ProcessEcho", "ProcessResource", "ProcessResourceRef", "ProcessResources", "Project", "ProjectProcessReference", "ProtNs", "Protocol", "ReadWrite", "RedProt", "ReportControl", "ReportParameters", "ReportParametersRef", "ReportSettings", "Resource", "RptEnabled", "SCL", "SCSM", "SDI", "SDO", "SDS", "SGEdit", "SMV", "SMVParameters", "SMVParametersRef", "SMVSecurity", "SMVSettings", "SMVsc", "SVMcSecurity", "SampledValueControl", "SamplesPerSec", "SclFileReference", "SecPerSamples", "Security", "Server", "ServerAt", "ServiceSpecifications", "Services", "SetDataSetValue", "SettingControl", "SettingGroups", "SignalRole", "SmpRate", "SmvOpts", "SourceFiles", "SourceRef", "SubCategory", "SubCheckoutID", "SubEquipment", "SubFunction", "SubFunctionTemplate", "SubNetwork", "Subject", "SubscriberLNode", "Substation", "SupSubscription", "TapChanger", "Terminal", "Text", "TimeSyncProt", "TimerActivatedControl", "TransformerWinding", "TrgOps", "Val", "ValueHandling", "Variable", "VariableApplyTo", "VariableRef", "Voltage", "VoltageLevel"];
325
315
  readonly companions: readonly [{
326
316
  readonly name: "doName";
327
317
  readonly required: false;
@@ -340,5 +330,4 @@ export declare const UUID_REFERENCE_PAIRS: {
340
330
  readonly companions: readonly [];
341
331
  }];
342
332
  };
343
- export { RESOLUTION_TYPE };
344
- //# sourceMappingURL=pairs.d.ts.map
333
+ //# sourceMappingURL=reference-pairs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference-pairs.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/constants/reference-pairs.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoSvB,CAAA"}
@@ -4,7 +4,9 @@ import type * as Core from '@dialecte/core';
4
4
  * Resets LNode IED bindings when the referenced IED is absent from the target DB.
5
5
  *
6
6
  * Logic per LNode:
7
- * - iedName is 'None' or empty → skip (already unbound)
7
+ * - iedName is 'None', empty, or absent → normalize the unbound marker to an
8
+ * explicit iedName='None' (the store is faithful, so an omitted iedName is not
9
+ * auto-stamped on import; the cleanup makes the canonical marker explicit)
8
10
  * - IED with matching name found → skip (binding valid)
9
11
  * - IED absent + LNodeSpecNaming child exists → restore lnClass/lnInst/prefix
10
12
  * from spec naming, clear iedName/ldInst/lnUuid, reset spec naming sIedName/sLdInst
@@ -1 +1 @@
1
- {"version":3,"file":"orphan-lnode-bindings.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/clean-up/transaction/orphan-lnode-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAe7E"}
1
+ {"version":3,"file":"orphan-lnode-bindings.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/clean-up/transaction/orphan-lnode-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAmB7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"orphan-uuid-refs.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/clean-up/transaction/orphan-uuid-refs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAyChF"}
1
+ {"version":3,"file":"orphan-uuid-refs.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/clean-up/transaction/orphan-uuid-refs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAyChF"}
@@ -0,0 +1,5 @@
1
+ import * as identityTransaction from './transaction';
2
+ export declare const identity: {
3
+ transaction: typeof identityTransaction;
4
+ };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/identity/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAA;AAEpD,eAAO,MAAM,QAAQ;;CAEpB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { writeIdentity } from './write-identity';
2
+ export type { IdentityMode } from './write-identity.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/identity/transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { IdentityMode } from './write-identity.types';
2
+ import { Config, Scl } from '../../../config';
3
+ import type * as Core from '@dialecte/core';
4
+ /**
5
+ * Writes instance-lineage identity onto the target records of a clone, driven by
6
+ * the clone mappings (each carries the source record's original attributes, so
7
+ * no cross-document query is needed).
8
+ *
9
+ * - `stamp-template` (instantiate / update): rotate lineage so the source
10
+ * identity becomes the template lineage of a fresh instance —
11
+ * `templateUuid <- source.uuid` and `originUuid <- source.templateUuid` (only
12
+ * when the origin slot is free and the element type carries a two-level
13
+ * lineage). The instance `uuid` is already fresh from `deepClone`.
14
+ * - `strip` (extract): drop `templateUuid` and `originUuid`, leaving a fresh template.
15
+ * - `keep` (fork): leave lineage untouched.
16
+ */
17
+ export declare function writeIdentity(tx: Core.Transaction<Config>, params: {
18
+ mappings: readonly Scl.CloneMapping[];
19
+ mode: IdentityMode;
20
+ }): Promise<void>;
21
+ //# sourceMappingURL=write-identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-identity.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/identity/transaction/write-identity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CAClC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,QAAQ,EAAE,SAAS,GAAG,CAAC,YAAY,EAAE,CAAA;IACrC,IAAI,EAAE,YAAY,CAAA;CAClB,GACC,OAAO,CAAC,IAAI,CAAC,CAYf"}
@@ -0,0 +1,3 @@
1
+ /** How to write instance-lineage identity onto the target records of a clone. */
2
+ export type IdentityMode = 'strip' | 'stamp-template' | 'keep';
3
+ //# sourceMappingURL=write-identity.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-identity.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/identity/transaction/write-identity.types.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,gBAAgB,GAAG,MAAM,CAAA"}
@@ -6,13 +6,27 @@ export declare const SCL_EXTENSION_MODULES: {
6
6
  query: typeof import("./data-model/query");
7
7
  transaction: typeof import("./data-model/transaction");
8
8
  };
9
- extraction: {
10
- transaction: typeof import("./extraction/transaction");
11
- };
12
9
  history: {
13
10
  query: typeof import("./history/query");
14
11
  transaction: typeof import("./history/transaction");
15
12
  };
13
+ identity: {
14
+ transaction: typeof import("./identity/transaction");
15
+ };
16
+ lifecycle: {
17
+ query: {
18
+ report: typeof import('./lifecycle/report').report;
19
+ };
20
+ transaction: {
21
+ extract: typeof import("./lifecycle/extract");
22
+ instantiate: typeof import("./lifecycle/instantiate");
23
+ transplant: {
24
+ deep: typeof import('./lifecycle/transplant').deep;
25
+ };
26
+ update: typeof import("./lifecycle/update");
27
+ apply: typeof import('./lifecycle/apply').apply;
28
+ };
29
+ };
16
30
  reference: {
17
31
  query: typeof import("./reference/query");
18
32
  transaction: typeof import("./reference/transaction");
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/extensions/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;CAQjC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/extensions/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASjC,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { ApplyResult } from './apply.types';
2
+ import { Config } from '../../../config';
3
+ import { LifecycleApplyParams } from '../contract.types';
4
+ import type * as Core from '@dialecte/core';
5
+ /**
6
+ * `tx.lifecycle.apply` — the generic write surface (ENGINE.md §4/§6, 07 §4).
7
+ *
8
+ * The consumer classifies first (`query.lifecycle.report`) and passes the
9
+ * `report` in. The report + `decisions` gate what is written:
10
+ *
11
+ * - **fast** (`needsDecisions === false`): first-time instantiate or a
12
+ * conflict-free change → apply headless (delegate to the per-layer update
13
+ * verb with no gate). When `decisions` are still supplied, their user value
14
+ * edits (editable attributes) are honored; there is simply no accept/skip gate.
15
+ * - **full, not decided** (`needsDecisions === true`, no `decisions`): a human
16
+ * must resolve decisions first → nothing is written; the report is returned
17
+ * unchanged so the caller can drive the review flow.
18
+ * - **full, decided** (`decisions` present): apply ONLY the accepted groups and
19
+ * their companions (the gate is passed to the update verb, which threads it
20
+ * through reconcile and the ASD cascade). A group absent from the map defaults
21
+ * to accept. The engine rejects a decision set that accepts a group whose
22
+ * `dependsOn` parent is skipped (07 §4).
23
+ *
24
+ * Returns `{ report, instances }` — the effective report plus the instance roots
25
+ * the write produced/reconciled. Run inside `doc.prepare(tx => tx.lifecycle.apply(...))`
26
+ * for a previewable, reversible dry-run.
27
+ */
28
+ export declare function apply(tx: Core.Transaction<Config>, params: LifecycleApplyParams): Promise<ApplyResult>;
29
+ //# sourceMappingURL=apply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/apply/apply.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EACX,oBAAoB,EAEpB,MAAM,+CAA+C,CAAA;AAEtD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,KAAK,CAC1B,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE,oBAAoB,GAC1B,OAAO,CAAC,WAAW,CAAC,CAetB"}
@@ -0,0 +1,26 @@
1
+ import { Scl } from '../../../config';
2
+ import { DiffReport } from '../engine/diff.types';
3
+ /**
4
+ * The instance roots a lifecycle write produced or reconciled, discriminated by
5
+ * verb. Flat arrays are scenario-honest: `instantiate` yields exactly one root
6
+ * set; `update` may reconcile several instances of one template (all listed).
7
+ * The "not decided yet" apply track yields empty arrays.
8
+ */
9
+ export type AppliedInstances = {
10
+ verb: 'fsd';
11
+ functions: (Scl.Ref<'Function'> | Scl.Ref<'SubFunction'>)[];
12
+ } | {
13
+ verb: 'asd';
14
+ applications: Scl.Ref<'Application'>[];
15
+ functions: (Scl.Ref<'Function'> | Scl.Ref<'SubFunction'>)[];
16
+ };
17
+ /**
18
+ * The result of `tx.lifecycle.apply`: the effective `report` plus the instance
19
+ * roots the write produced/reconciled (`instances`). Consumers act on the roots
20
+ * in the SAME transaction (name, wire, select, chain) without re-deriving them.
21
+ */
22
+ export type ApplyResult = {
23
+ report: DiffReport;
24
+ instances: AppliedInstances;
25
+ };
26
+ //# sourceMappingURL=apply.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/apply/apply.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAA;AAElF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GACzB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,EAAE,CAAA;CAAE,GAC5E;IACA,IAAI,EAAE,KAAK,CAAA;IACX,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAA;IACtC,SAAS,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,EAAE,CAAA;CAC1D,CAAA;AAEJ;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,gBAAgB,CAAA;CAC3B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { apply } from './apply';
2
+ export type { AppliedInstances, ApplyResult } from './apply.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/apply/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,5 @@
1
+ /** Lineage attributes — identity backbone, never user-editable. */
2
+ export declare const LINEAGE: Set<string>;
3
+ /** The classifier modes the UI may expose as editable inputs (no identity/reference side effect). */
4
+ export declare const EDITABLE_MODES: readonly ["rename", "free"];
5
+ //# sourceMappingURL=classify-attribute.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classify-attribute.constants.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/classify-attribute.constants.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,eAAO,MAAM,OAAO,aAAkD,CAAA;AAEtE,qGAAqG;AACrG,eAAO,MAAM,cAAc,6BAA8B,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { EDITABLE_MODES } from './classify-attribute.constants';
2
+ import { AttributeEditability, EditableAttribute } from './classify-attribute.types';
3
+ /**
4
+ * Classify how the UI may treat an attribute of an element during a lifecycle
5
+ * transaction (schema-derived, no hardcoded element rules):
6
+ *
7
+ * - lineage (`uuid`/`templateUuid`/`originUuid`) -> `identity`;
8
+ * - a reference path/uuid attribute (from `UUID_REFERENCE_PAIRS`) -> `reference`
9
+ * (system-owned, remapped automatically);
10
+ * - `name` -> `rename` (the mutable label; changing it triggers a managed ref-path
11
+ * rebuild — 61850-6 §8.5.6: the uuid is fixed, the name evolves);
12
+ * - any other path-contributing attribute (lnClass, prefix, inst, …) or scoped-key
13
+ * field -> `identity` (intrinsic; changing it is a delete+create, not an edit);
14
+ * - everything else -> `free`.
15
+ */
16
+ export declare function classifyAttribute(tag: string, attr: string): AttributeEditability;
17
+ /** Whether a classified attribute is user-editable (`rename` or `free`). */
18
+ export declare function isEditableMode(mode: AttributeEditability): mode is (typeof EDITABLE_MODES)[number];
19
+ /**
20
+ * The attributes of `tag` the UI may edit with no harmful side effect, each with its
21
+ * edit mode. `rename` triggers a managed remap; `free` has no side effect. Identity
22
+ * and reference attributes are omitted (nothing to show as editable).
23
+ */
24
+ export declare function editableAttributes(tag: string): EditableAttribute[];
25
+ //# sourceMappingURL=classify-attribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classify-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/classify-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAW,MAAM,gCAAgC,CAAA;AAOxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAEzF;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAMjF;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAC7B,IAAI,EAAE,oBAAoB,GACxB,IAAI,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAEzC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAQnE"}
@@ -0,0 +1,23 @@
1
+ /** How the UI may treat an attribute of an element during a lifecycle transaction. */
2
+ export type AttributeEditability =
3
+ /** Identity/lineage — never user-editable (uuid, lnClass, and other scoped-key fields). */
4
+ 'identity'
5
+ /** A reference (path/uuid pair) — system-owned, remapped automatically. */
6
+ | 'reference'
7
+ /** The mutable label (`name`) — editable; changing it triggers a managed ref-path rebuild. */
8
+ | 'rename'
9
+ /** Freely editable — no reference/identity side effect (desc, value, …). */
10
+ | 'free';
11
+ /** An attribute the UI may edit, with its edit mode (from {@link AttributeEditability}). */
12
+ export type EditableAttribute = {
13
+ attr: string;
14
+ mode: 'rename' | 'free';
15
+ /**
16
+ * Set at report time when placing this element would collide on this field and the
17
+ * engine auto-resolved it. `suggestedValue` is the collision-free value the engine
18
+ * proposes (the user may keep or override it).
19
+ */
20
+ conflict?: boolean;
21
+ suggestedValue?: string;
22
+ };
23
+ //# sourceMappingURL=classify-attribute.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classify-attribute.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/classify-attribute.types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,MAAM,oBAAoB;AAC/B,2FAA2F;AACzF,UAAU;AACZ,2EAA2E;GACzE,WAAW;AACb,8FAA8F;GAC5F,QAAQ;AACV,4EAA4E;GAC1E,MAAM,CAAA;AAET,4FAA4F;AAC5F,MAAM,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAA;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { ConstraintViolation } from './find-constraint-violation.types';
2
+ import { Config, Scl } from '../../../config';
3
+ import type * as Core from '@dialecte/core';
4
+ /**
5
+ * Detect whether placing a `childTag` element with the given `candidate` attribute
6
+ * values under `parentRef` would violate a scoped-uniqueness constraint declared on
7
+ * the parent (e.g. two children with the same `name` under one Bay). Schema-driven:
8
+ * reads the parent's `constraints` and compares the candidate's key fields against
9
+ * the existing children the constraint selects.
10
+ *
11
+ * Returns the first violation found, or `null` if the candidate is unique.
12
+ * `excludeId` skips a specific existing child (e.g. the element itself when
13
+ * re-checking after a rename).
14
+ */
15
+ export declare function findConstraintViolation(query: Core.Query<Config>, params: {
16
+ parentRef: Scl.Ref<Scl.ElementsOf>;
17
+ childTag: string;
18
+ candidate: Record<string, string | undefined>;
19
+ excludeId?: string;
20
+ }): Promise<ConstraintViolation | null>;
21
+ //# sourceMappingURL=find-constraint-violation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-constraint-violation.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/find-constraint-violation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAoB,MAAM,mCAAmC,CAAA;AAC9F,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;GAUG;AACH,wBAAsB,uBAAuB,CAC5C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB,GACC,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CA+BrC"}
@@ -0,0 +1,26 @@
1
+ /** A scoped-uniqueness constraint declared on a parent element (from the schema). */
2
+ export type SchemaConstraint = {
3
+ kind: string;
4
+ name: string;
5
+ selector?: {
6
+ steps?: {
7
+ kind: string;
8
+ value?: string;
9
+ }[];
10
+ }[];
11
+ fields?: {
12
+ target?: {
13
+ value?: string;
14
+ };
15
+ }[];
16
+ };
17
+ /** A detected violation: the constraint broken and the existing child it collides with. */
18
+ export type ConstraintViolation = {
19
+ /** The violated constraint's name (e.g. `uniqueChildNameInBay`). */
20
+ constraint: string;
21
+ /** The key fields the constraint compares (e.g. `['name']`). */
22
+ fields: string[];
23
+ /** The id of the existing sibling the candidate collides with. */
24
+ offendingId: string;
25
+ };
26
+ //# sourceMappingURL=find-constraint-violation.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-constraint-violation.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/find-constraint-violation.types.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,EAAE,CAAA;IAC3D,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,EAAE,CAAA;CAC1C,CAAA;AAED,2FAA2F;AAC3F,MAAM,MAAM,mBAAmB,GAAG;IACjC,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAA;IAClB,gEAAgE;IAChE,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAA;CACnB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { ConstraintViolation } from './find-constraint-violation.types';
2
+ import { Config, Scl } from '../../../config';
3
+ import type * as Core from '@dialecte/core';
4
+ /**
5
+ * Validate a whole subtree against its parent context: walk the tree rooted at
6
+ * `ref` and, for every element, check whether it violates a scoped-uniqueness
7
+ * constraint declared on its parent (via {@link findConstraintViolation}). Returns
8
+ * every violation found — the "check globally" seed of a future validation feature.
9
+ *
10
+ * The root itself is checked only when `parentRef` is given (its parent lives
11
+ * outside the subtree); internal nodes are checked against their in-tree parent.
12
+ */
13
+ export declare function findConstraintViolations(query: Core.Query<Config>, params: {
14
+ ref: Scl.Ref<Scl.ElementsOf>;
15
+ parentRef?: Scl.Ref<Scl.ElementsOf>;
16
+ }): Promise<ConstraintViolation[]>;
17
+ //# sourceMappingURL=find-constraint-violations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-constraint-violations.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/find-constraint-violations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAG3C;;;;;;;;GAQG;AACH,wBAAsB,wBAAwB,CAC7C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAAC,SAAS,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;CAAE,GAC3E,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAQhC"}
@@ -0,0 +1,2 @@
1
+ export declare function getIdentityFields(tag: string): ReadonlySet<string>;
2
+ //# sourceMappingURL=identity-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-fields.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/identity-fields.ts"],"names":[],"mappings":"AAaA,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAUlE"}
@@ -0,0 +1,12 @@
1
+ export { classifyAttribute, editableAttributes, isEditableMode } from './classify-attribute';
2
+ export { EDITABLE_MODES } from './classify-attribute.constants';
3
+ export { getIdentityFields } from './identity-fields';
4
+ export { findConstraintViolation } from './find-constraint-violation';
5
+ export { findConstraintViolations } from './find-constraint-violations';
6
+ export { resolveUniqueValue } from './resolve-unique-value';
7
+ export { resolvePlacementCollision } from './resolve-placement-collision';
8
+ export type { AttributeEditability, EditableAttribute } from './classify-attribute.types';
9
+ export type { ConstraintViolation, SchemaConstraint } from './find-constraint-violation.types';
10
+ export type { CollisionDecorator } from './resolve-unique-value.types';
11
+ export type { PlacementResolution } from './resolve-placement-collision.types';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAEzE,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACzF,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAC9F,YAAY,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACtE,YAAY,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { AttributeEditability, EditableAttribute } from './classify-attribute.types';
2
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/public.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { PlacementResolution } from './resolve-placement-collision.types';
2
+ import { CollisionDecorator } from './resolve-unique-value.types';
3
+ import { Config, Scl } from '../../../config';
4
+ import type * as Core from '@dialecte/core';
5
+ /**
6
+ * Validate a just-placed element against its parent context and resolve a scoped-
7
+ * uniqueness collision GENERICALLY over whichever key field is EDITABLE:
8
+ *
9
+ * 1. detect a violation from the parent (`findConstraintViolation`);
10
+ * 2. if the violated key includes an editable field (`rename`/`free` per
11
+ * `classifyAttribute`), bump it to the first free value (`resolveUniqueValue`)
12
+ * and apply it — the after-updated hook then rebuilds any ref paths that
13
+ * traverse it;
14
+ * 3. if the violated key is entirely IDENTITY (e.g. an LNode lnClass/lnInst tuple),
15
+ * it is NOT auto-resolvable (that would be a delete+create) — reported as
16
+ * `unresolvable` for the future validation/conflict surface.
17
+ *
18
+ * This is the auto-resolution (default fallback) half; a full-track consumer can
19
+ * instead supply `overrides` (user-edited values for editable attributes). Those are
20
+ * applied first, then uniqueness is re-ensured on the key field — so a user-typed name
21
+ * that itself collides is still bumped to a free value.
22
+ */
23
+ export declare function resolvePlacementCollision(tx: Core.Transaction<Config>, params: {
24
+ ref: Scl.Ref<Scl.ElementsOf>;
25
+ parentRef?: Scl.Ref<Scl.ElementsOf>;
26
+ decorate?: CollisionDecorator;
27
+ overrides?: Record<string, string>;
28
+ }): Promise<PlacementResolution>;
29
+ //# sourceMappingURL=resolve-placement-collision.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-placement-collision.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/resolve-placement-collision.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,yBAAyB,CAC9C,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC5B,SAAS,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACnC,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC,GACC,OAAO,CAAC,mBAAmB,CAAC,CA6C9B"}
@@ -0,0 +1,20 @@
1
+ import { ConstraintViolation } from './find-constraint-violation.types';
2
+ /** The outcome of resolving a placement collision. */
3
+ export type PlacementResolution =
4
+ /** No constraint was violated. */
5
+ {
6
+ status: 'ok';
7
+ }
8
+ /** A violation auto-resolved by bumping an editable field to a free value. */
9
+ | {
10
+ status: 'resolved';
11
+ attr: string;
12
+ from: string;
13
+ to: string;
14
+ }
15
+ /** A violation whose key is entirely identity — not auto-resolvable here. */
16
+ | {
17
+ status: 'unresolvable';
18
+ violation: ConstraintViolation;
19
+ };
20
+ //# sourceMappingURL=resolve-placement-collision.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-placement-collision.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/resolve-placement-collision.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAE5E,sDAAsD;AACtD,MAAM,MAAM,mBAAmB;AAC9B,kCAAkC;AAChC;IAAE,MAAM,EAAE,IAAI,CAAA;CAAE;AAClB,8EAA8E;GAC5E;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AAChE,6EAA6E;GAC3E;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,SAAS,EAAE,mBAAmB,CAAA;CAAE,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { CollisionDecorator } from './resolve-unique-value.types';
2
+ import { Config, Scl } from '../../../config';
3
+ import type * as Core from '@dialecte/core';
4
+ /**
5
+ * Resolve a collision-free value for the editable attribute `attr` of an element
6
+ * being placed under `parentRef`, generic over `attr` (not hardcoded to `name`).
7
+ *
8
+ * - candidate unique as-is -> returns its current `attr` value unchanged;
9
+ * - otherwise proposes `${base}_${attempt}` (or a consumer-decorated variant) and
10
+ * increments `attempt` until the whole candidate is collision-free.
11
+ *
12
+ * The engine owns uniqueness (the loop); the {@link CollisionDecorator} only shapes
13
+ * the scheme. `excludeId` skips the element itself when re-checking an in-place value.
14
+ */
15
+ export declare function resolveUniqueValue(query: Core.Query<Config>, params: {
16
+ parentRef: Scl.Ref<Scl.ElementsOf>;
17
+ childTag: string;
18
+ candidate: Record<string, string | undefined>;
19
+ attr: string;
20
+ decorate?: CollisionDecorator;
21
+ excludeId?: string;
22
+ }): Promise<string>;
23
+ //# sourceMappingURL=resolve-unique-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-unique-value.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/resolve-unique-value.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAI3C;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CACvC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB,GACC,OAAO,CAAC,MAAM,CAAC,CAsBjB"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Consumer hook that shapes the collision-resolution naming scheme. Given the base
3
+ * value and the current attempt, returns a candidate value. The engine still owns
4
+ * uniqueness (it loops `attempt` until the candidate is collision-free), so a hook
5
+ * need not guarantee uniqueness — only the scheme (e.g. a domain affix).
6
+ *
7
+ * Default (no hook): `` `${base}_${attempt}` ``. A SET affix hook could return
8
+ * `` `${base}_Fn_${attempt}` ``.
9
+ */
10
+ export type CollisionDecorator = (params: {
11
+ base: string;
12
+ attempt: number;
13
+ attr: string;
14
+ childTag: string;
15
+ }) => string;
16
+ //# sourceMappingURL=resolve-unique-value.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-unique-value.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/constraints/resolve-unique-value.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CAChB,KAAK,MAAM,CAAA"}
@@ -0,0 +1,53 @@
1
+ import { Scl, Config } from '../../config';
2
+ import { DecisionMap, DiffReport } from './engine/diff.types';
3
+ import type * as Core from '@dialecte/core';
4
+ /** Which template layer the lifecycle surface operates on. */
5
+ export type LifecycleVerb = 'fsd' | 'asd';
6
+ /**
7
+ * Which lifecycle operation the user chose:
8
+ * - `instantiate` — place a NEW instance of the template (duplicates allowed;
9
+ * a sibling name collision is resolved). Re-applying the same template yields
10
+ * another instance, never a silent no-op.
11
+ * - `update` — reconcile the template onto its EXISTING instance(s).
12
+ *
13
+ * Picked explicitly by the consumer — it cannot be inferred reliably (a same-
14
+ * version re-upload is a valid duplicate). Defaults to `update` for back-compat.
15
+ */
16
+ export type LifecycleScenario = 'instantiate' | 'update';
17
+ /**
18
+ * What to reconcile and where — the uniform `{ verb, sourceQuery, ref, anchor }`
19
+ * descriptor shared by `report` (read-only classify) and `apply` (write).
20
+ * Discriminated on `verb` so `ref` narrows to the right element type.
21
+ */
22
+ export type LifecycleTarget = {
23
+ verb: 'fsd';
24
+ sourceQuery: Core.Query<Config>;
25
+ /** The source (template) Function to reconcile. */
26
+ ref: Scl.Ref<'Function'>;
27
+ /** Target parent the instance lives under / is placed into. */
28
+ anchor: Scl.Ref<Scl.ElementsOf>;
29
+ /** Operation to perform. Defaults to `update`. */
30
+ scenario?: LifecycleScenario;
31
+ } | {
32
+ verb: 'asd';
33
+ sourceQuery: Core.Query<Config>;
34
+ /** The source (template) Application to reconcile. */
35
+ ref: Scl.Ref<'Application'>;
36
+ /** Target parent the composed functions are placed into. */
37
+ anchor: Scl.Ref<Scl.ElementsOf>;
38
+ /** Operation to perform. Defaults to `update`. */
39
+ scenario?: LifecycleScenario;
40
+ };
41
+ /**
42
+ * `apply` inputs: the target plus the `report` produced by `report` (the
43
+ * consumer classifies first, then applies). The report gates the track.
44
+ *
45
+ * `decisions` drives the full track: absent -> the caller has not decided yet
46
+ * (apply writes nothing and returns the report); present -> apply the accepted
47
+ * groups only (a group absent from the map defaults to accept).
48
+ */
49
+ export type LifecycleApplyParams = LifecycleTarget & {
50
+ report: DiffReport;
51
+ decisions?: DecisionMap;
52
+ };
53
+ //# sourceMappingURL=contract.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.types.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/lifecycle/contract.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAA;AAC/F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAA;AAEzC;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,QAAQ,CAAA;AAExD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACxB;IACA,IAAI,EAAE,KAAK,CAAA;IACX,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,mDAAmD;IACnD,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxB,+DAA+D;IAC/D,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC/B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC3B,GACD;IACA,IAAI,EAAE,KAAK,CAAA;IACX,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,sDAAsD;IACtD,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IAC3B,4DAA4D;IAC5D,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC/B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC3B,CAAA;AAEJ;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,SAAS,CAAC,EAAE,WAAW,CAAA;CAAE,CAAA"}