@1oo4/miv 1.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 (914) hide show
  1. package/README.md +34 -0
  2. package/dist/Client/AuditTrail.d.ts +132 -0
  3. package/dist/Client/AuditTrail.d.ts.map +1 -0
  4. package/dist/Client/AuditTrail.js +705 -0
  5. package/dist/Client/AuditTrail.js.map +1 -0
  6. package/dist/Client/Connections/ConnectionStrategy.d.ts +9 -0
  7. package/dist/Client/Connections/ConnectionStrategy.d.ts.map +1 -0
  8. package/dist/Client/Connections/ConnectionStrategy.js +52 -0
  9. package/dist/Client/Connections/ConnectionStrategy.js.map +1 -0
  10. package/dist/Client/Connections/WebSocketConnection.d.ts +31 -0
  11. package/dist/Client/Connections/WebSocketConnection.d.ts.map +1 -0
  12. package/dist/Client/Connections/WebSocketConnection.js +323 -0
  13. package/dist/Client/Connections/WebSocketConnection.js.map +1 -0
  14. package/dist/Client/Construction/ChildAndRealtionData.d.ts +16 -0
  15. package/dist/Client/Construction/ChildAndRealtionData.d.ts.map +1 -0
  16. package/dist/Client/Construction/ChildAndRealtionData.js +38 -0
  17. package/dist/Client/Construction/ChildAndRealtionData.js.map +1 -0
  18. package/dist/Client/Construction/ClientTypes.d.ts +107 -0
  19. package/dist/Client/Construction/ClientTypes.d.ts.map +1 -0
  20. package/dist/Client/Construction/ClientTypes.js +316 -0
  21. package/dist/Client/Construction/ClientTypes.js.map +1 -0
  22. package/dist/Client/Construction/FiltersSet.d.ts +2 -0
  23. package/dist/Client/Construction/FiltersSet.d.ts.map +1 -0
  24. package/dist/Client/Construction/FiltersSet.js +60 -0
  25. package/dist/Client/Construction/FiltersSet.js.map +1 -0
  26. package/dist/Client/Construction/TypesInfos.d.ts +21 -0
  27. package/dist/Client/Construction/TypesInfos.d.ts.map +1 -0
  28. package/dist/Client/Construction/TypesInfos.js +29 -0
  29. package/dist/Client/Construction/TypesInfos.js.map +1 -0
  30. package/dist/Client/LoadFilter.d.ts +14 -0
  31. package/dist/Client/LoadFilter.d.ts.map +1 -0
  32. package/dist/Client/LoadFilter.js +49 -0
  33. package/dist/Client/LoadFilter.js.map +1 -0
  34. package/dist/Client/MChild.d.ts +43 -0
  35. package/dist/Client/MChild.d.ts.map +1 -0
  36. package/dist/Client/MChild.js +344 -0
  37. package/dist/Client/MChild.js.map +1 -0
  38. package/dist/Client/MField.d.ts +6 -0
  39. package/dist/Client/MField.d.ts.map +1 -0
  40. package/dist/Client/MField.js +40 -0
  41. package/dist/Client/MField.js.map +1 -0
  42. package/dist/Client/MIVClient.d.ts +122 -0
  43. package/dist/Client/MIVClient.d.ts.map +1 -0
  44. package/dist/Client/MIVClient.js +931 -0
  45. package/dist/Client/MIVClient.js.map +1 -0
  46. package/dist/Client/MObject.d.ts +13 -0
  47. package/dist/Client/MObject.d.ts.map +1 -0
  48. package/dist/Client/MObject.js +67 -0
  49. package/dist/Client/MObject.js.map +1 -0
  50. package/dist/Client/MProperty.d.ts +7 -0
  51. package/dist/Client/MProperty.d.ts.map +1 -0
  52. package/dist/Client/MProperty.js +96 -0
  53. package/dist/Client/MProperty.js.map +1 -0
  54. package/dist/Client/MRealObject.d.ts +56 -0
  55. package/dist/Client/MRealObject.d.ts.map +1 -0
  56. package/dist/Client/MRealObject.js +534 -0
  57. package/dist/Client/MRealObject.js.map +1 -0
  58. package/dist/Client/MRelation.d.ts +32 -0
  59. package/dist/Client/MRelation.d.ts.map +1 -0
  60. package/dist/Client/MRelation.js +116 -0
  61. package/dist/Client/MRelation.js.map +1 -0
  62. package/dist/Client/MRoot.d.ts +27 -0
  63. package/dist/Client/MRoot.d.ts.map +1 -0
  64. package/dist/Client/MRoot.js +108 -0
  65. package/dist/Client/MRoot.js.map +1 -0
  66. package/dist/Client/MSets/ChildrenListInternal.d.ts +2 -0
  67. package/dist/Client/MSets/ChildrenListInternal.d.ts.map +1 -0
  68. package/dist/Client/MSets/ChildrenListInternal.js +87 -0
  69. package/dist/Client/MSets/ChildrenListInternal.js.map +1 -0
  70. package/dist/Client/MSets/ListInternal.d.ts +2 -0
  71. package/dist/Client/MSets/ListInternal.d.ts.map +1 -0
  72. package/dist/Client/MSets/ListInternal.js +123 -0
  73. package/dist/Client/MSets/ListInternal.js.map +1 -0
  74. package/dist/Client/MSets/MItem.d.ts +23 -0
  75. package/dist/Client/MSets/MItem.d.ts.map +1 -0
  76. package/dist/Client/MSets/MItem.js +72 -0
  77. package/dist/Client/MSets/MItem.js.map +1 -0
  78. package/dist/Client/MSets/MList.d.ts +9 -0
  79. package/dist/Client/MSets/MList.d.ts.map +1 -0
  80. package/dist/Client/MSets/MList.js +17 -0
  81. package/dist/Client/MSets/MList.js.map +1 -0
  82. package/dist/Client/MSets/MPage.d.ts +12 -0
  83. package/dist/Client/MSets/MPage.d.ts.map +1 -0
  84. package/dist/Client/MSets/MPage.js +32 -0
  85. package/dist/Client/MSets/MPage.js.map +1 -0
  86. package/dist/Client/MSets/MPagination.d.ts +25 -0
  87. package/dist/Client/MSets/MPagination.d.ts.map +1 -0
  88. package/dist/Client/MSets/MPagination.js +99 -0
  89. package/dist/Client/MSets/MPagination.js.map +1 -0
  90. package/dist/Client/MSets/MRealLists.d.ts +33 -0
  91. package/dist/Client/MSets/MRealLists.d.ts.map +1 -0
  92. package/dist/Client/MSets/MRealLists.js +85 -0
  93. package/dist/Client/MSets/MRealLists.js.map +1 -0
  94. package/dist/Client/MSets/MSet.d.ts +4 -0
  95. package/dist/Client/MSets/MSet.d.ts.map +1 -0
  96. package/dist/Client/MSets/MSet.js +18 -0
  97. package/dist/Client/MSets/MSet.js.map +1 -0
  98. package/dist/Client/MSets/PageInternal.d.ts +2 -0
  99. package/dist/Client/MSets/PageInternal.d.ts.map +1 -0
  100. package/dist/Client/MSets/PageInternal.js +142 -0
  101. package/dist/Client/MSets/PageInternal.js.map +1 -0
  102. package/dist/Client/MSets/PointersListInternal.d.ts +2 -0
  103. package/dist/Client/MSets/PointersListInternal.d.ts.map +1 -0
  104. package/dist/Client/MSets/PointersListInternal.js +75 -0
  105. package/dist/Client/MSets/PointersListInternal.js.map +1 -0
  106. package/dist/Client/MSets/TargetingListInternal.d.ts +2 -0
  107. package/dist/Client/MSets/TargetingListInternal.d.ts.map +1 -0
  108. package/dist/Client/MSets/TargetingListInternal.js +91 -0
  109. package/dist/Client/MSets/TargetingListInternal.js.map +1 -0
  110. package/dist/Client/MSets/TargetsListInternal.d.ts +2 -0
  111. package/dist/Client/MSets/TargetsListInternal.d.ts.map +1 -0
  112. package/dist/Client/MSets/TargetsListInternal.js +93 -0
  113. package/dist/Client/MSets/TargetsListInternal.js.map +1 -0
  114. package/dist/Client/MSets/VirtualList.d.ts +11 -0
  115. package/dist/Client/MSets/VirtualList.d.ts.map +1 -0
  116. package/dist/Client/MSets/VirtualList.js +63 -0
  117. package/dist/Client/MSets/VirtualList.js.map +1 -0
  118. package/dist/Client/MSets/WholeListInternal.d.ts +4 -0
  119. package/dist/Client/MSets/WholeListInternal.d.ts.map +1 -0
  120. package/dist/Client/MSets/WholeListInternal.js +12 -0
  121. package/dist/Client/MSets/WholeListInternal.js.map +1 -0
  122. package/dist/Client/MUser.d.ts +10 -0
  123. package/dist/Client/MUser.d.ts.map +1 -0
  124. package/dist/Client/MUser.js +16 -0
  125. package/dist/Client/MUser.js.map +1 -0
  126. package/dist/Client/MVirtualObject.d.ts +13 -0
  127. package/dist/Client/MVirtualObject.d.ts.map +1 -0
  128. package/dist/Client/MVirtualObject.js +30 -0
  129. package/dist/Client/MVirtualObject.js.map +1 -0
  130. package/dist/Client/Properties/BinaryProperty.d.ts +24 -0
  131. package/dist/Client/Properties/BinaryProperty.d.ts.map +1 -0
  132. package/dist/Client/Properties/BinaryProperty.js +135 -0
  133. package/dist/Client/Properties/BinaryProperty.js.map +1 -0
  134. package/dist/Client/Properties/BoolProperty.d.ts +30 -0
  135. package/dist/Client/Properties/BoolProperty.d.ts.map +1 -0
  136. package/dist/Client/Properties/BoolProperty.js +89 -0
  137. package/dist/Client/Properties/BoolProperty.js.map +1 -0
  138. package/dist/Client/Properties/ByteProperty.d.ts +31 -0
  139. package/dist/Client/Properties/ByteProperty.d.ts.map +1 -0
  140. package/dist/Client/Properties/ByteProperty.js +134 -0
  141. package/dist/Client/Properties/ByteProperty.js.map +1 -0
  142. package/dist/Client/Properties/DateTimeProperty.d.ts +32 -0
  143. package/dist/Client/Properties/DateTimeProperty.d.ts.map +1 -0
  144. package/dist/Client/Properties/DateTimeProperty.js +150 -0
  145. package/dist/Client/Properties/DateTimeProperty.js.map +1 -0
  146. package/dist/Client/Properties/DoubleProperty.d.ts +28 -0
  147. package/dist/Client/Properties/DoubleProperty.d.ts.map +1 -0
  148. package/dist/Client/Properties/DoubleProperty.js +126 -0
  149. package/dist/Client/Properties/DoubleProperty.js.map +1 -0
  150. package/dist/Client/Properties/EnumProperty.d.ts +32 -0
  151. package/dist/Client/Properties/EnumProperty.d.ts.map +1 -0
  152. package/dist/Client/Properties/EnumProperty.js +81 -0
  153. package/dist/Client/Properties/EnumProperty.js.map +1 -0
  154. package/dist/Client/Properties/IRealProperty.d.ts +12 -0
  155. package/dist/Client/Properties/IRealProperty.d.ts.map +1 -0
  156. package/dist/Client/Properties/IRealProperty.js +3 -0
  157. package/dist/Client/Properties/IRealProperty.js.map +1 -0
  158. package/dist/Client/Properties/LongProperty.d.ts +28 -0
  159. package/dist/Client/Properties/LongProperty.d.ts.map +1 -0
  160. package/dist/Client/Properties/LongProperty.js +126 -0
  161. package/dist/Client/Properties/LongProperty.js.map +1 -0
  162. package/dist/Client/Properties/RealPropertyInternal.d.ts +2 -0
  163. package/dist/Client/Properties/RealPropertyInternal.d.ts.map +1 -0
  164. package/dist/Client/Properties/RealPropertyInternal.js +36 -0
  165. package/dist/Client/Properties/RealPropertyInternal.js.map +1 -0
  166. package/dist/Client/Properties/StringProperty.d.ts +28 -0
  167. package/dist/Client/Properties/StringProperty.d.ts.map +1 -0
  168. package/dist/Client/Properties/StringProperty.js +129 -0
  169. package/dist/Client/Properties/StringProperty.js.map +1 -0
  170. package/dist/Client/Properties/SupportedPropertyInternal.d.ts +2 -0
  171. package/dist/Client/Properties/SupportedPropertyInternal.d.ts.map +1 -0
  172. package/dist/Client/Properties/SupportedPropertyInternal.js +21 -0
  173. package/dist/Client/Properties/SupportedPropertyInternal.js.map +1 -0
  174. package/dist/Client/Properties/UlongProperty.d.ts +29 -0
  175. package/dist/Client/Properties/UlongProperty.d.ts.map +1 -0
  176. package/dist/Client/Properties/UlongProperty.js +126 -0
  177. package/dist/Client/Properties/UlongProperty.js.map +1 -0
  178. package/dist/Client/Queries/IRealObject.d.ts +3 -0
  179. package/dist/Client/Queries/IRealObject.d.ts.map +1 -0
  180. package/dist/Client/Queries/IRealObject.js +3 -0
  181. package/dist/Client/Queries/IRealObject.js.map +1 -0
  182. package/dist/Client/Queries/PlaceholderChild.d.ts +10 -0
  183. package/dist/Client/Queries/PlaceholderChild.d.ts.map +1 -0
  184. package/dist/Client/Queries/PlaceholderChild.js +22 -0
  185. package/dist/Client/Queries/PlaceholderChild.js.map +1 -0
  186. package/dist/Client/Queries/PlaceholderCopy.d.ts +13 -0
  187. package/dist/Client/Queries/PlaceholderCopy.d.ts.map +1 -0
  188. package/dist/Client/Queries/PlaceholderCopy.js +32 -0
  189. package/dist/Client/Queries/PlaceholderCopy.js.map +1 -0
  190. package/dist/Client/QueryBuilder.d.ts +92 -0
  191. package/dist/Client/QueryBuilder.d.ts.map +1 -0
  192. package/dist/Client/QueryBuilder.js +380 -0
  193. package/dist/Client/QueryBuilder.js.map +1 -0
  194. package/dist/Client/QueryInfo.d.ts +7 -0
  195. package/dist/Client/QueryInfo.d.ts.map +1 -0
  196. package/dist/Client/QueryInfo.js +12 -0
  197. package/dist/Client/QueryInfo.js.map +1 -0
  198. package/dist/Client/UpdateTools/ChildUpdate.d.ts +2 -0
  199. package/dist/Client/UpdateTools/ChildUpdate.d.ts.map +1 -0
  200. package/dist/Client/UpdateTools/ChildUpdate.js +262 -0
  201. package/dist/Client/UpdateTools/ChildUpdate.js.map +1 -0
  202. package/dist/Client/UpdateTools/ChildUpdateInfo.d.ts +13 -0
  203. package/dist/Client/UpdateTools/ChildUpdateInfo.d.ts.map +1 -0
  204. package/dist/Client/UpdateTools/ChildUpdateInfo.js +79 -0
  205. package/dist/Client/UpdateTools/ChildUpdateInfo.js.map +1 -0
  206. package/dist/Client/UpdateTools/ClientDataUpdateAndCompute.d.ts +42 -0
  207. package/dist/Client/UpdateTools/ClientDataUpdateAndCompute.d.ts.map +1 -0
  208. package/dist/Client/UpdateTools/ClientDataUpdateAndCompute.js +156 -0
  209. package/dist/Client/UpdateTools/ClientDataUpdateAndCompute.js.map +1 -0
  210. package/dist/Client/UpdateTools/FieldWatcher.d.ts +13 -0
  211. package/dist/Client/UpdateTools/FieldWatcher.d.ts.map +1 -0
  212. package/dist/Client/UpdateTools/FieldWatcher.js +43 -0
  213. package/dist/Client/UpdateTools/FieldWatcher.js.map +1 -0
  214. package/dist/Client/UpdateTools/Load.d.ts +2 -0
  215. package/dist/Client/UpdateTools/Load.d.ts.map +1 -0
  216. package/dist/Client/UpdateTools/Load.js +126 -0
  217. package/dist/Client/UpdateTools/Load.js.map +1 -0
  218. package/dist/Client/UpdateTools/ModelUpdateAndCompute.d.ts +42 -0
  219. package/dist/Client/UpdateTools/ModelUpdateAndCompute.d.ts.map +1 -0
  220. package/dist/Client/UpdateTools/ModelUpdateAndCompute.js +163 -0
  221. package/dist/Client/UpdateTools/ModelUpdateAndCompute.js.map +1 -0
  222. package/dist/Client/UpdateTools/UpdateWatcher.d.ts +12 -0
  223. package/dist/Client/UpdateTools/UpdateWatcher.d.ts.map +1 -0
  224. package/dist/Client/UpdateTools/UpdateWatcher.js +41 -0
  225. package/dist/Client/UpdateTools/UpdateWatcher.js.map +1 -0
  226. package/dist/Client/UpdateTools/ViewUpdateAndCompute.d.ts +21 -0
  227. package/dist/Client/UpdateTools/ViewUpdateAndCompute.d.ts.map +1 -0
  228. package/dist/Client/UpdateTools/ViewUpdateAndCompute.js +83 -0
  229. package/dist/Client/UpdateTools/ViewUpdateAndCompute.js.map +1 -0
  230. package/dist/Client/VSets/FilterAndSort/VFilters.d.ts +2 -0
  231. package/dist/Client/VSets/FilterAndSort/VFilters.d.ts.map +1 -0
  232. package/dist/Client/VSets/FilterAndSort/VFilters.js +53 -0
  233. package/dist/Client/VSets/FilterAndSort/VFilters.js.map +1 -0
  234. package/dist/Client/VSets/FilterAndSort/VListModif.d.ts +2 -0
  235. package/dist/Client/VSets/FilterAndSort/VListModif.d.ts.map +1 -0
  236. package/dist/Client/VSets/FilterAndSort/VListModif.js +45 -0
  237. package/dist/Client/VSets/FilterAndSort/VListModif.js.map +1 -0
  238. package/dist/Client/VSets/FilterAndSort/VListModification.d.ts +2 -0
  239. package/dist/Client/VSets/FilterAndSort/VListModification.d.ts.map +1 -0
  240. package/dist/Client/VSets/FilterAndSort/VListModification.js +24 -0
  241. package/dist/Client/VSets/FilterAndSort/VListModification.js.map +1 -0
  242. package/dist/Client/VSets/FilterAndSort/VSorter.d.ts +2 -0
  243. package/dist/Client/VSets/FilterAndSort/VSorter.d.ts.map +1 -0
  244. package/dist/Client/VSets/FilterAndSort/VSorter.js +21 -0
  245. package/dist/Client/VSets/FilterAndSort/VSorter.js.map +1 -0
  246. package/dist/Client/VSets/VItem.d.ts +42 -0
  247. package/dist/Client/VSets/VItem.d.ts.map +1 -0
  248. package/dist/Client/VSets/VItem.js +161 -0
  249. package/dist/Client/VSets/VItem.js.map +1 -0
  250. package/dist/Client/VSets/VList.d.ts +44 -0
  251. package/dist/Client/VSets/VList.d.ts.map +1 -0
  252. package/dist/Client/VSets/VList.js +409 -0
  253. package/dist/Client/VSets/VList.js.map +1 -0
  254. package/dist/Client/VSets/VPage.d.ts +20 -0
  255. package/dist/Client/VSets/VPage.d.ts.map +1 -0
  256. package/dist/Client/VSets/VPage.js +125 -0
  257. package/dist/Client/VSets/VPage.js.map +1 -0
  258. package/dist/Client/VSets/VPagination.d.ts +32 -0
  259. package/dist/Client/VSets/VPagination.d.ts.map +1 -0
  260. package/dist/Client/VSets/VPagination.js +126 -0
  261. package/dist/Client/VSets/VPagination.js.map +1 -0
  262. package/dist/Client/VSets/VSet.d.ts +9 -0
  263. package/dist/Client/VSets/VSet.d.ts.map +1 -0
  264. package/dist/Client/VSets/VSet.js +135 -0
  265. package/dist/Client/VSets/VSet.js.map +1 -0
  266. package/dist/Client/View/VBoundObject.d.ts +4 -0
  267. package/dist/Client/View/VBoundObject.d.ts.map +1 -0
  268. package/dist/Client/View/VBoundObject.js +15 -0
  269. package/dist/Client/View/VBoundObject.js.map +1 -0
  270. package/dist/Client/View/VObject.d.ts +29 -0
  271. package/dist/Client/View/VObject.d.ts.map +1 -0
  272. package/dist/Client/View/VObject.js +181 -0
  273. package/dist/Client/View/VObject.js.map +1 -0
  274. package/dist/Client/View/VObjectInItem.d.ts +22 -0
  275. package/dist/Client/View/VObjectInItem.d.ts.map +1 -0
  276. package/dist/Client/View/VObjectInItem.js +46 -0
  277. package/dist/Client/View/VObjectInItem.js.map +1 -0
  278. package/dist/Client/View/VObjectInList.d.ts +41 -0
  279. package/dist/Client/View/VObjectInList.d.ts.map +1 -0
  280. package/dist/Client/View/VObjectInList.js +100 -0
  281. package/dist/Client/View/VObjectInList.js.map +1 -0
  282. package/dist/Communication/ConnectionLogs.d.ts +22 -0
  283. package/dist/Communication/ConnectionLogs.d.ts.map +1 -0
  284. package/dist/Communication/ConnectionLogs.js +93 -0
  285. package/dist/Communication/ConnectionLogs.js.map +1 -0
  286. package/dist/Communication/CustomReadQuery.d.ts +2 -0
  287. package/dist/Communication/CustomReadQuery.d.ts.map +1 -0
  288. package/dist/Communication/CustomReadQuery.js +12 -0
  289. package/dist/Communication/CustomReadQuery.js.map +1 -0
  290. package/dist/Communication/DataAnswer.d.ts +2 -0
  291. package/dist/Communication/DataAnswer.d.ts.map +1 -0
  292. package/dist/Communication/DataAnswer.js +62 -0
  293. package/dist/Communication/DataAnswer.js.map +1 -0
  294. package/dist/Communication/DataItems/ChildData.d.ts +2 -0
  295. package/dist/Communication/DataItems/ChildData.d.ts.map +1 -0
  296. package/dist/Communication/DataItems/ChildData.js +92 -0
  297. package/dist/Communication/DataItems/ChildData.js.map +1 -0
  298. package/dist/Communication/DataItems/QueryData.d.ts +2 -0
  299. package/dist/Communication/DataItems/QueryData.d.ts.map +1 -0
  300. package/dist/Communication/DataItems/QueryData.js +56 -0
  301. package/dist/Communication/DataItems/QueryData.js.map +1 -0
  302. package/dist/Communication/DataItems/RelationData.d.ts +2 -0
  303. package/dist/Communication/DataItems/RelationData.d.ts.map +1 -0
  304. package/dist/Communication/DataItems/RelationData.js +82 -0
  305. package/dist/Communication/DataItems/RelationData.js.map +1 -0
  306. package/dist/Communication/DataItems/ValueClearedData.d.ts +2 -0
  307. package/dist/Communication/DataItems/ValueClearedData.d.ts.map +1 -0
  308. package/dist/Communication/DataItems/ValueClearedData.js +51 -0
  309. package/dist/Communication/DataItems/ValueClearedData.js.map +1 -0
  310. package/dist/Communication/DataItems/ValueData.d.ts +2 -0
  311. package/dist/Communication/DataItems/ValueData.d.ts.map +1 -0
  312. package/dist/Communication/DataItems/ValueData.js +50 -0
  313. package/dist/Communication/DataItems/ValueData.js.map +1 -0
  314. package/dist/Communication/DataItems/Values/VDBinary.d.ts +2 -0
  315. package/dist/Communication/DataItems/Values/VDBinary.d.ts.map +1 -0
  316. package/dist/Communication/DataItems/Values/VDBinary.js +55 -0
  317. package/dist/Communication/DataItems/Values/VDBinary.js.map +1 -0
  318. package/dist/Communication/DataItems/Values/VDByte.d.ts +2 -0
  319. package/dist/Communication/DataItems/Values/VDByte.d.ts.map +1 -0
  320. package/dist/Communication/DataItems/Values/VDByte.js +40 -0
  321. package/dist/Communication/DataItems/Values/VDByte.js.map +1 -0
  322. package/dist/Communication/DataItems/Values/VDDateTime.d.ts +2 -0
  323. package/dist/Communication/DataItems/Values/VDDateTime.d.ts.map +1 -0
  324. package/dist/Communication/DataItems/Values/VDDateTime.js +40 -0
  325. package/dist/Communication/DataItems/Values/VDDateTime.js.map +1 -0
  326. package/dist/Communication/DataItems/Values/VDDouble.d.ts +2 -0
  327. package/dist/Communication/DataItems/Values/VDDouble.d.ts.map +1 -0
  328. package/dist/Communication/DataItems/Values/VDDouble.js +40 -0
  329. package/dist/Communication/DataItems/Values/VDDouble.js.map +1 -0
  330. package/dist/Communication/DataItems/Values/VDLong.d.ts +2 -0
  331. package/dist/Communication/DataItems/Values/VDLong.d.ts.map +1 -0
  332. package/dist/Communication/DataItems/Values/VDLong.js +40 -0
  333. package/dist/Communication/DataItems/Values/VDLong.js.map +1 -0
  334. package/dist/Communication/DataItems/Values/VDString.d.ts +2 -0
  335. package/dist/Communication/DataItems/Values/VDString.d.ts.map +1 -0
  336. package/dist/Communication/DataItems/Values/VDString.js +43 -0
  337. package/dist/Communication/DataItems/Values/VDString.js.map +1 -0
  338. package/dist/Communication/DataItems/Values/VDUlong.d.ts +2 -0
  339. package/dist/Communication/DataItems/Values/VDUlong.d.ts.map +1 -0
  340. package/dist/Communication/DataItems/Values/VDUlong.js +40 -0
  341. package/dist/Communication/DataItems/Values/VDUlong.js.map +1 -0
  342. package/dist/Communication/DataMessage.d.ts +2 -0
  343. package/dist/Communication/DataMessage.d.ts.map +1 -0
  344. package/dist/Communication/DataMessage.js +212 -0
  345. package/dist/Communication/DataMessage.js.map +1 -0
  346. package/dist/Communication/ErrorMessage.d.ts +348 -0
  347. package/dist/Communication/ErrorMessage.d.ts.map +1 -0
  348. package/dist/Communication/ErrorMessage.js +943 -0
  349. package/dist/Communication/ErrorMessage.js.map +1 -0
  350. package/dist/Communication/Errors/CustomErrorMessage.d.ts +7 -0
  351. package/dist/Communication/Errors/CustomErrorMessage.d.ts.map +1 -0
  352. package/dist/Communication/Errors/CustomErrorMessage.js +28 -0
  353. package/dist/Communication/Errors/CustomErrorMessage.js.map +1 -0
  354. package/dist/Communication/Errors/ErroneousWriteErrorMessages.d.ts +28 -0
  355. package/dist/Communication/Errors/ErroneousWriteErrorMessages.d.ts.map +1 -0
  356. package/dist/Communication/Errors/ErroneousWriteErrorMessages.js +130 -0
  357. package/dist/Communication/Errors/ErroneousWriteErrorMessages.js.map +1 -0
  358. package/dist/Communication/Errors/ErrorHandlers.d.ts +96 -0
  359. package/dist/Communication/Errors/ErrorHandlers.d.ts.map +1 -0
  360. package/dist/Communication/Errors/ErrorHandlers.js +61 -0
  361. package/dist/Communication/Errors/ErrorHandlers.js.map +1 -0
  362. package/dist/Communication/Errors/InvalidWriteErrorMessages.d.ts +25 -0
  363. package/dist/Communication/Errors/InvalidWriteErrorMessages.d.ts.map +1 -0
  364. package/dist/Communication/Errors/InvalidWriteErrorMessages.js +115 -0
  365. package/dist/Communication/Errors/InvalidWriteErrorMessages.js.map +1 -0
  366. package/dist/Communication/Errors/NonwriteErrorMessages.d.ts +2 -0
  367. package/dist/Communication/Errors/NonwriteErrorMessages.d.ts.map +1 -0
  368. package/dist/Communication/Errors/NonwriteErrorMessages.js +2 -0
  369. package/dist/Communication/Errors/NonwriteErrorMessages.js.map +1 -0
  370. package/dist/Communication/Errors/RegularWriteErrorMessages.d.ts +30 -0
  371. package/dist/Communication/Errors/RegularWriteErrorMessages.d.ts.map +1 -0
  372. package/dist/Communication/Errors/RegularWriteErrorMessages.js +134 -0
  373. package/dist/Communication/Errors/RegularWriteErrorMessages.js.map +1 -0
  374. package/dist/Communication/Errors/WriteErrorMessage.d.ts +2 -0
  375. package/dist/Communication/Errors/WriteErrorMessage.d.ts.map +1 -0
  376. package/dist/Communication/Errors/WriteErrorMessage.js +2 -0
  377. package/dist/Communication/Errors/WriteErrorMessage.js.map +1 -0
  378. package/dist/Communication/GetPagesQuery.d.ts +2 -0
  379. package/dist/Communication/GetPagesQuery.d.ts.map +1 -0
  380. package/dist/Communication/GetPagesQuery.js +22 -0
  381. package/dist/Communication/GetPagesQuery.js.map +1 -0
  382. package/dist/Communication/Query.d.ts +2 -0
  383. package/dist/Communication/Query.d.ts.map +1 -0
  384. package/dist/Communication/Query.js +20 -0
  385. package/dist/Communication/Query.js.map +1 -0
  386. package/dist/Communication/QueryItems/QIClearLinks.d.ts +2 -0
  387. package/dist/Communication/QueryItems/QIClearLinks.d.ts.map +1 -0
  388. package/dist/Communication/QueryItems/QIClearLinks.js +17 -0
  389. package/dist/Communication/QueryItems/QIClearLinks.js.map +1 -0
  390. package/dist/Communication/QueryItems/QIDelete.d.ts +2 -0
  391. package/dist/Communication/QueryItems/QIDelete.d.ts.map +1 -0
  392. package/dist/Communication/QueryItems/QIDelete.js +15 -0
  393. package/dist/Communication/QueryItems/QIDelete.js.map +1 -0
  394. package/dist/Communication/QueryItems/QINewChild.d.ts +2 -0
  395. package/dist/Communication/QueryItems/QINewChild.d.ts.map +1 -0
  396. package/dist/Communication/QueryItems/QINewChild.js +104 -0
  397. package/dist/Communication/QueryItems/QINewChild.js.map +1 -0
  398. package/dist/Communication/QueryItems/QIReassignChild.d.ts +2 -0
  399. package/dist/Communication/QueryItems/QIReassignChild.d.ts.map +1 -0
  400. package/dist/Communication/QueryItems/QIReassignChild.js +27 -0
  401. package/dist/Communication/QueryItems/QIReassignChild.js.map +1 -0
  402. package/dist/Communication/QueryItems/QIUnlink.d.ts +2 -0
  403. package/dist/Communication/QueryItems/QIUnlink.d.ts.map +1 -0
  404. package/dist/Communication/QueryItems/QIUnlink.js +19 -0
  405. package/dist/Communication/QueryItems/QIUnlink.js.map +1 -0
  406. package/dist/Communication/QueryItems/QIValue.d.ts +37 -0
  407. package/dist/Communication/QueryItems/QIValue.d.ts.map +1 -0
  408. package/dist/Communication/QueryItems/QIValue.js +122 -0
  409. package/dist/Communication/QueryItems/QIValue.js.map +1 -0
  410. package/dist/Communication/Serialization/MIVDeserializer.d.ts +21 -0
  411. package/dist/Communication/Serialization/MIVDeserializer.d.ts.map +1 -0
  412. package/dist/Communication/Serialization/MIVDeserializer.js +148 -0
  413. package/dist/Communication/Serialization/MIVDeserializer.js.map +1 -0
  414. package/dist/Communication/Serialization/MIVSerializer.d.ts +25 -0
  415. package/dist/Communication/Serialization/MIVSerializer.d.ts.map +1 -0
  416. package/dist/Communication/Serialization/MIVSerializer.js +136 -0
  417. package/dist/Communication/Serialization/MIVSerializer.js.map +1 -0
  418. package/dist/Communication/SignQuery.d.ts +2 -0
  419. package/dist/Communication/SignQuery.d.ts.map +1 -0
  420. package/dist/Communication/SignQuery.js +19 -0
  421. package/dist/Communication/SignQuery.js.map +1 -0
  422. package/dist/Communication/SignupQuery.d.ts +2 -0
  423. package/dist/Communication/SignupQuery.d.ts.map +1 -0
  424. package/dist/Communication/SignupQuery.js +14 -0
  425. package/dist/Communication/SignupQuery.js.map +1 -0
  426. package/dist/Communication/UnloadQuery.d.ts +2 -0
  427. package/dist/Communication/UnloadQuery.d.ts.map +1 -0
  428. package/dist/Communication/UnloadQuery.js +20 -0
  429. package/dist/Communication/UnloadQuery.js.map +1 -0
  430. package/dist/Communication/UpdateQuery.d.ts +2 -0
  431. package/dist/Communication/UpdateQuery.d.ts.map +1 -0
  432. package/dist/Communication/UpdateQuery.js +45 -0
  433. package/dist/Communication/UpdateQuery.js.map +1 -0
  434. package/dist/HTML/BoolPropertyCheckBox.d.ts +17 -0
  435. package/dist/HTML/BoolPropertyCheckBox.d.ts.map +1 -0
  436. package/dist/HTML/BoolPropertyCheckBox.js +67 -0
  437. package/dist/HTML/BoolPropertyCheckBox.js.map +1 -0
  438. package/dist/HTML/PropertyTextArea.d.ts +53 -0
  439. package/dist/HTML/PropertyTextArea.d.ts.map +1 -0
  440. package/dist/HTML/PropertyTextArea.js +224 -0
  441. package/dist/HTML/PropertyTextArea.js.map +1 -0
  442. package/dist/HTML/PropertyTextBlock.d.ts +43 -0
  443. package/dist/HTML/PropertyTextBlock.d.ts.map +1 -0
  444. package/dist/HTML/PropertyTextBlock.js +161 -0
  445. package/dist/HTML/PropertyTextBlock.js.map +1 -0
  446. package/dist/HTML/PropertyTextBox.d.ts +72 -0
  447. package/dist/HTML/PropertyTextBox.d.ts.map +1 -0
  448. package/dist/HTML/PropertyTextBox.js +260 -0
  449. package/dist/HTML/PropertyTextBox.js.map +1 -0
  450. package/dist/MIVConstants.d.ts +22 -0
  451. package/dist/MIVConstants.d.ts.map +1 -0
  452. package/dist/MIVConstants.js +35 -0
  453. package/dist/MIVConstants.js.map +1 -0
  454. package/dist/MIVValueTypes.d.ts +14 -0
  455. package/dist/MIVValueTypes.d.ts.map +1 -0
  456. package/dist/MIVValueTypes.js +27 -0
  457. package/dist/MIVValueTypes.js.map +1 -0
  458. package/dist/Tools/AccumulatorList.d.ts +2 -0
  459. package/dist/Tools/AccumulatorList.d.ts.map +1 -0
  460. package/dist/Tools/AccumulatorList.js +61 -0
  461. package/dist/Tools/AccumulatorList.js.map +1 -0
  462. package/dist/Tools/LoadTools.d.ts +7 -0
  463. package/dist/Tools/LoadTools.d.ts.map +1 -0
  464. package/dist/Tools/LoadTools.js +57 -0
  465. package/dist/Tools/LoadTools.js.map +1 -0
  466. package/dist/Tools/MIVCache.d.ts +2 -0
  467. package/dist/Tools/MIVCache.d.ts.map +1 -0
  468. package/dist/Tools/MIVCache.js +29 -0
  469. package/dist/Tools/MIVCache.js.map +1 -0
  470. package/dist/Tools/MIVConverter.d.ts +6 -0
  471. package/dist/Tools/MIVConverter.d.ts.map +1 -0
  472. package/dist/Tools/MIVConverter.js +133 -0
  473. package/dist/Tools/MIVConverter.js.map +1 -0
  474. package/dist/Tools/PersistentList.d.ts +2 -0
  475. package/dist/Tools/PersistentList.d.ts.map +1 -0
  476. package/dist/Tools/PersistentList.js +90 -0
  477. package/dist/Tools/PersistentList.js.map +1 -0
  478. package/dist/Tools/Semaphore.d.ts +15 -0
  479. package/dist/Tools/Semaphore.d.ts.map +1 -0
  480. package/dist/Tools/Semaphore.js +62 -0
  481. package/dist/Tools/Semaphore.js.map +1 -0
  482. package/dist/Tools/UpdateTool.d.ts +7 -0
  483. package/dist/Tools/UpdateTool.d.ts.map +1 -0
  484. package/dist/Tools/UpdateTool.js +15 -0
  485. package/dist/Tools/UpdateTool.js.map +1 -0
  486. package/dist/index.d.ts +63 -0
  487. package/dist/index.d.ts.map +1 -0
  488. package/dist/index.js +146 -0
  489. package/dist/index.js.map +1 -0
  490. package/dist/src/Client/AuditTrail.d.ts +86 -0
  491. package/dist/src/Client/AuditTrail.d.ts.map +1 -0
  492. package/dist/src/Client/AuditTrail.js +556 -0
  493. package/dist/src/Client/AuditTrail.js.map +1 -0
  494. package/dist/src/Client/Connections/ConnectionStrategy.d.ts +9 -0
  495. package/dist/src/Client/Connections/ConnectionStrategy.d.ts.map +1 -0
  496. package/dist/src/Client/Connections/ConnectionStrategy.js +52 -0
  497. package/dist/src/Client/Connections/ConnectionStrategy.js.map +1 -0
  498. package/dist/src/Client/Connections/WebSocketConnection.d.ts +27 -0
  499. package/dist/src/Client/Connections/WebSocketConnection.d.ts.map +1 -0
  500. package/dist/src/Client/Connections/WebSocketConnection.js +285 -0
  501. package/dist/src/Client/Connections/WebSocketConnection.js.map +1 -0
  502. package/dist/src/Client/Construction/ChildAndRealtionData.d.ts +17 -0
  503. package/dist/src/Client/Construction/ChildAndRealtionData.d.ts.map +1 -0
  504. package/dist/src/Client/Construction/ChildAndRealtionData.js +39 -0
  505. package/dist/src/Client/Construction/ChildAndRealtionData.js.map +1 -0
  506. package/dist/src/Client/Construction/ClientTypes.d.ts +98 -0
  507. package/dist/src/Client/Construction/ClientTypes.d.ts.map +1 -0
  508. package/dist/src/Client/Construction/ClientTypes.js +271 -0
  509. package/dist/src/Client/Construction/ClientTypes.js.map +1 -0
  510. package/dist/src/Client/Construction/FiltersSet.d.ts +2 -0
  511. package/dist/src/Client/Construction/FiltersSet.d.ts.map +1 -0
  512. package/dist/src/Client/Construction/FiltersSet.js +60 -0
  513. package/dist/src/Client/Construction/FiltersSet.js.map +1 -0
  514. package/dist/src/Client/LoadFilter.d.ts +2 -0
  515. package/dist/src/Client/LoadFilter.d.ts.map +1 -0
  516. package/dist/src/Client/LoadFilter.js +49 -0
  517. package/dist/src/Client/LoadFilter.js.map +1 -0
  518. package/dist/src/Client/MChild.d.ts +46 -0
  519. package/dist/src/Client/MChild.d.ts.map +1 -0
  520. package/dist/src/Client/MChild.js +323 -0
  521. package/dist/src/Client/MChild.js.map +1 -0
  522. package/dist/src/Client/MField.d.ts +6 -0
  523. package/dist/src/Client/MField.d.ts.map +1 -0
  524. package/dist/src/Client/MField.js +40 -0
  525. package/dist/src/Client/MField.js.map +1 -0
  526. package/dist/src/Client/MIVClient.d.ts +108 -0
  527. package/dist/src/Client/MIVClient.d.ts.map +1 -0
  528. package/dist/src/Client/MIVClient.js +862 -0
  529. package/dist/src/Client/MIVClient.js.map +1 -0
  530. package/dist/src/Client/MObject.d.ts +11 -0
  531. package/dist/src/Client/MObject.d.ts.map +1 -0
  532. package/dist/src/Client/MObject.js +55 -0
  533. package/dist/src/Client/MObject.js.map +1 -0
  534. package/dist/src/Client/MProperty.d.ts +5 -0
  535. package/dist/src/Client/MProperty.d.ts.map +1 -0
  536. package/dist/src/Client/MProperty.js +14 -0
  537. package/dist/src/Client/MProperty.js.map +1 -0
  538. package/dist/src/Client/MRealObject.d.ts +57 -0
  539. package/dist/src/Client/MRealObject.d.ts.map +1 -0
  540. package/dist/src/Client/MRealObject.js +536 -0
  541. package/dist/src/Client/MRealObject.js.map +1 -0
  542. package/dist/src/Client/MRelation.d.ts +36 -0
  543. package/dist/src/Client/MRelation.d.ts.map +1 -0
  544. package/dist/src/Client/MRelation.js +114 -0
  545. package/dist/src/Client/MRelation.js.map +1 -0
  546. package/dist/src/Client/MRoot.d.ts +26 -0
  547. package/dist/src/Client/MRoot.d.ts.map +1 -0
  548. package/dist/src/Client/MRoot.js +105 -0
  549. package/dist/src/Client/MRoot.js.map +1 -0
  550. package/dist/src/Client/MSets/ChildrenListInternal.d.ts +2 -0
  551. package/dist/src/Client/MSets/ChildrenListInternal.d.ts.map +1 -0
  552. package/dist/src/Client/MSets/ChildrenListInternal.js +83 -0
  553. package/dist/src/Client/MSets/ChildrenListInternal.js.map +1 -0
  554. package/dist/src/Client/MSets/ListInternal.d.ts +2 -0
  555. package/dist/src/Client/MSets/ListInternal.d.ts.map +1 -0
  556. package/dist/src/Client/MSets/ListInternal.js +123 -0
  557. package/dist/src/Client/MSets/ListInternal.js.map +1 -0
  558. package/dist/src/Client/MSets/MItem.d.ts +23 -0
  559. package/dist/src/Client/MSets/MItem.d.ts.map +1 -0
  560. package/dist/src/Client/MSets/MItem.js +72 -0
  561. package/dist/src/Client/MSets/MItem.js.map +1 -0
  562. package/dist/src/Client/MSets/MList.d.ts +9 -0
  563. package/dist/src/Client/MSets/MList.d.ts.map +1 -0
  564. package/dist/src/Client/MSets/MList.js +17 -0
  565. package/dist/src/Client/MSets/MList.js.map +1 -0
  566. package/dist/src/Client/MSets/MPage.d.ts +12 -0
  567. package/dist/src/Client/MSets/MPage.d.ts.map +1 -0
  568. package/dist/src/Client/MSets/MPage.js +32 -0
  569. package/dist/src/Client/MSets/MPage.js.map +1 -0
  570. package/dist/src/Client/MSets/MPagination.d.ts +25 -0
  571. package/dist/src/Client/MSets/MPagination.d.ts.map +1 -0
  572. package/dist/src/Client/MSets/MPagination.js +99 -0
  573. package/dist/src/Client/MSets/MPagination.js.map +1 -0
  574. package/dist/src/Client/MSets/MRealLists.d.ts +33 -0
  575. package/dist/src/Client/MSets/MRealLists.d.ts.map +1 -0
  576. package/dist/src/Client/MSets/MRealLists.js +85 -0
  577. package/dist/src/Client/MSets/MRealLists.js.map +1 -0
  578. package/dist/src/Client/MSets/MSet.d.ts +4 -0
  579. package/dist/src/Client/MSets/MSet.d.ts.map +1 -0
  580. package/dist/src/Client/MSets/MSet.js +18 -0
  581. package/dist/src/Client/MSets/MSet.js.map +1 -0
  582. package/dist/src/Client/MSets/PageInternal.d.ts +2 -0
  583. package/dist/src/Client/MSets/PageInternal.d.ts.map +1 -0
  584. package/dist/src/Client/MSets/PageInternal.js +142 -0
  585. package/dist/src/Client/MSets/PageInternal.js.map +1 -0
  586. package/dist/src/Client/MSets/PointersListInternal.d.ts +2 -0
  587. package/dist/src/Client/MSets/PointersListInternal.d.ts.map +1 -0
  588. package/dist/src/Client/MSets/PointersListInternal.js +71 -0
  589. package/dist/src/Client/MSets/PointersListInternal.js.map +1 -0
  590. package/dist/src/Client/MSets/TargetingListInternal.d.ts +2 -0
  591. package/dist/src/Client/MSets/TargetingListInternal.d.ts.map +1 -0
  592. package/dist/src/Client/MSets/TargetingListInternal.js +86 -0
  593. package/dist/src/Client/MSets/TargetingListInternal.js.map +1 -0
  594. package/dist/src/Client/MSets/TargetsListInternal.d.ts +2 -0
  595. package/dist/src/Client/MSets/TargetsListInternal.d.ts.map +1 -0
  596. package/dist/src/Client/MSets/TargetsListInternal.js +89 -0
  597. package/dist/src/Client/MSets/TargetsListInternal.js.map +1 -0
  598. package/dist/src/Client/MSets/VirtualList.d.ts +11 -0
  599. package/dist/src/Client/MSets/VirtualList.d.ts.map +1 -0
  600. package/dist/src/Client/MSets/VirtualList.js +63 -0
  601. package/dist/src/Client/MSets/VirtualList.js.map +1 -0
  602. package/dist/src/Client/MSets/WholeListInternal.d.ts +4 -0
  603. package/dist/src/Client/MSets/WholeListInternal.d.ts.map +1 -0
  604. package/dist/src/Client/MSets/WholeListInternal.js +12 -0
  605. package/dist/src/Client/MSets/WholeListInternal.js.map +1 -0
  606. package/dist/src/Client/MUser.d.ts +10 -0
  607. package/dist/src/Client/MUser.d.ts.map +1 -0
  608. package/dist/src/Client/MUser.js +16 -0
  609. package/dist/src/Client/MUser.js.map +1 -0
  610. package/dist/src/Client/MVirtualObject.d.ts +13 -0
  611. package/dist/src/Client/MVirtualObject.d.ts.map +1 -0
  612. package/dist/src/Client/MVirtualObject.js +25 -0
  613. package/dist/src/Client/MVirtualObject.js.map +1 -0
  614. package/dist/src/Client/Properties/BoolProperty.d.ts +26 -0
  615. package/dist/src/Client/Properties/BoolProperty.d.ts.map +1 -0
  616. package/dist/src/Client/Properties/BoolProperty.js +66 -0
  617. package/dist/src/Client/Properties/BoolProperty.js.map +1 -0
  618. package/dist/src/Client/Properties/ByteProperty.d.ts +27 -0
  619. package/dist/src/Client/Properties/ByteProperty.d.ts.map +1 -0
  620. package/dist/src/Client/Properties/ByteProperty.js +114 -0
  621. package/dist/src/Client/Properties/ByteProperty.js.map +1 -0
  622. package/dist/src/Client/Properties/DateTimeProperty.d.ts +28 -0
  623. package/dist/src/Client/Properties/DateTimeProperty.d.ts.map +1 -0
  624. package/dist/src/Client/Properties/DateTimeProperty.js +128 -0
  625. package/dist/src/Client/Properties/DateTimeProperty.js.map +1 -0
  626. package/dist/src/Client/Properties/DoubleProperty.d.ts +24 -0
  627. package/dist/src/Client/Properties/DoubleProperty.d.ts.map +1 -0
  628. package/dist/src/Client/Properties/DoubleProperty.js +106 -0
  629. package/dist/src/Client/Properties/DoubleProperty.js.map +1 -0
  630. package/dist/src/Client/Properties/EnumProperty.d.ts +31 -0
  631. package/dist/src/Client/Properties/EnumProperty.d.ts.map +1 -0
  632. package/dist/src/Client/Properties/EnumProperty.js +68 -0
  633. package/dist/src/Client/Properties/EnumProperty.js.map +1 -0
  634. package/dist/src/Client/Properties/IRealProperty.d.ts +12 -0
  635. package/dist/src/Client/Properties/IRealProperty.d.ts.map +1 -0
  636. package/dist/src/Client/Properties/IRealProperty.js +3 -0
  637. package/dist/src/Client/Properties/IRealProperty.js.map +1 -0
  638. package/dist/src/Client/Properties/LongProperty.d.ts +24 -0
  639. package/dist/src/Client/Properties/LongProperty.d.ts.map +1 -0
  640. package/dist/src/Client/Properties/LongProperty.js +106 -0
  641. package/dist/src/Client/Properties/LongProperty.js.map +1 -0
  642. package/dist/src/Client/Properties/RealPropertyInternal.d.ts +2 -0
  643. package/dist/src/Client/Properties/RealPropertyInternal.d.ts.map +1 -0
  644. package/dist/src/Client/Properties/RealPropertyInternal.js +29 -0
  645. package/dist/src/Client/Properties/RealPropertyInternal.js.map +1 -0
  646. package/dist/src/Client/Properties/StringProperty.d.ts +30 -0
  647. package/dist/src/Client/Properties/StringProperty.d.ts.map +1 -0
  648. package/dist/src/Client/Properties/StringProperty.js +152 -0
  649. package/dist/src/Client/Properties/StringProperty.js.map +1 -0
  650. package/dist/src/Client/Properties/SupportedPropertyInternal.d.ts +2 -0
  651. package/dist/src/Client/Properties/SupportedPropertyInternal.d.ts.map +1 -0
  652. package/dist/src/Client/Properties/SupportedPropertyInternal.js +21 -0
  653. package/dist/src/Client/Properties/SupportedPropertyInternal.js.map +1 -0
  654. package/dist/src/Client/Properties/UlongProperty.d.ts +24 -0
  655. package/dist/src/Client/Properties/UlongProperty.d.ts.map +1 -0
  656. package/dist/src/Client/Properties/UlongProperty.js +106 -0
  657. package/dist/src/Client/Properties/UlongProperty.js.map +1 -0
  658. package/dist/src/Client/Queries/IRealObject.d.ts +3 -0
  659. package/dist/src/Client/Queries/IRealObject.d.ts.map +1 -0
  660. package/dist/src/Client/Queries/IRealObject.js +3 -0
  661. package/dist/src/Client/Queries/IRealObject.js.map +1 -0
  662. package/dist/src/Client/Queries/PlaceholderChild.d.ts +10 -0
  663. package/dist/src/Client/Queries/PlaceholderChild.d.ts.map +1 -0
  664. package/dist/src/Client/Queries/PlaceholderChild.js +22 -0
  665. package/dist/src/Client/Queries/PlaceholderChild.js.map +1 -0
  666. package/dist/src/Client/Queries/PlaceholderCopy.d.ts +13 -0
  667. package/dist/src/Client/Queries/PlaceholderCopy.d.ts.map +1 -0
  668. package/dist/src/Client/Queries/PlaceholderCopy.js +32 -0
  669. package/dist/src/Client/Queries/PlaceholderCopy.js.map +1 -0
  670. package/dist/src/Client/QueryBuilder.d.ts +87 -0
  671. package/dist/src/Client/QueryBuilder.d.ts.map +1 -0
  672. package/dist/src/Client/QueryBuilder.js +366 -0
  673. package/dist/src/Client/QueryBuilder.js.map +1 -0
  674. package/dist/src/Client/QueryInfo.d.ts +7 -0
  675. package/dist/src/Client/QueryInfo.d.ts.map +1 -0
  676. package/dist/src/Client/QueryInfo.js +12 -0
  677. package/dist/src/Client/QueryInfo.js.map +1 -0
  678. package/dist/src/Client/UpdateTools/ChildUpdate.d.ts +2 -0
  679. package/dist/src/Client/UpdateTools/ChildUpdate.d.ts.map +1 -0
  680. package/dist/src/Client/UpdateTools/ChildUpdate.js +262 -0
  681. package/dist/src/Client/UpdateTools/ChildUpdate.js.map +1 -0
  682. package/dist/src/Client/UpdateTools/ChildUpdateInfo.d.ts +13 -0
  683. package/dist/src/Client/UpdateTools/ChildUpdateInfo.d.ts.map +1 -0
  684. package/dist/src/Client/UpdateTools/ChildUpdateInfo.js +79 -0
  685. package/dist/src/Client/UpdateTools/ChildUpdateInfo.js.map +1 -0
  686. package/dist/src/Client/UpdateTools/FieldWatcher.d.ts +13 -0
  687. package/dist/src/Client/UpdateTools/FieldWatcher.d.ts.map +1 -0
  688. package/dist/src/Client/UpdateTools/FieldWatcher.js +43 -0
  689. package/dist/src/Client/UpdateTools/FieldWatcher.js.map +1 -0
  690. package/dist/src/Client/UpdateTools/Load.d.ts +2 -0
  691. package/dist/src/Client/UpdateTools/Load.d.ts.map +1 -0
  692. package/dist/src/Client/UpdateTools/Load.js +126 -0
  693. package/dist/src/Client/UpdateTools/Load.js.map +1 -0
  694. package/dist/src/Client/UpdateTools/ModelUpdateAndCompute.d.ts +42 -0
  695. package/dist/src/Client/UpdateTools/ModelUpdateAndCompute.d.ts.map +1 -0
  696. package/dist/src/Client/UpdateTools/ModelUpdateAndCompute.js +161 -0
  697. package/dist/src/Client/UpdateTools/ModelUpdateAndCompute.js.map +1 -0
  698. package/dist/src/Client/UpdateTools/UpdateWatcher.d.ts +12 -0
  699. package/dist/src/Client/UpdateTools/UpdateWatcher.d.ts.map +1 -0
  700. package/dist/src/Client/UpdateTools/UpdateWatcher.js +41 -0
  701. package/dist/src/Client/UpdateTools/UpdateWatcher.js.map +1 -0
  702. package/dist/src/Client/UpdateTools/ViewUpdateAndCompute.d.ts +21 -0
  703. package/dist/src/Client/UpdateTools/ViewUpdateAndCompute.d.ts.map +1 -0
  704. package/dist/src/Client/UpdateTools/ViewUpdateAndCompute.js +83 -0
  705. package/dist/src/Client/UpdateTools/ViewUpdateAndCompute.js.map +1 -0
  706. package/dist/src/Client/VSets/FilterAndSort/VFilters.d.ts +2 -0
  707. package/dist/src/Client/VSets/FilterAndSort/VFilters.d.ts.map +1 -0
  708. package/dist/src/Client/VSets/FilterAndSort/VFilters.js +53 -0
  709. package/dist/src/Client/VSets/FilterAndSort/VFilters.js.map +1 -0
  710. package/dist/src/Client/VSets/FilterAndSort/VListModif.d.ts +2 -0
  711. package/dist/src/Client/VSets/FilterAndSort/VListModif.d.ts.map +1 -0
  712. package/dist/src/Client/VSets/FilterAndSort/VListModif.js +45 -0
  713. package/dist/src/Client/VSets/FilterAndSort/VListModif.js.map +1 -0
  714. package/dist/src/Client/VSets/FilterAndSort/VListModification.d.ts +2 -0
  715. package/dist/src/Client/VSets/FilterAndSort/VListModification.d.ts.map +1 -0
  716. package/dist/src/Client/VSets/FilterAndSort/VListModification.js +24 -0
  717. package/dist/src/Client/VSets/FilterAndSort/VListModification.js.map +1 -0
  718. package/dist/src/Client/VSets/FilterAndSort/VSorter.d.ts +2 -0
  719. package/dist/src/Client/VSets/FilterAndSort/VSorter.d.ts.map +1 -0
  720. package/dist/src/Client/VSets/FilterAndSort/VSorter.js +21 -0
  721. package/dist/src/Client/VSets/FilterAndSort/VSorter.js.map +1 -0
  722. package/dist/src/Client/VSets/VList.d.ts +44 -0
  723. package/dist/src/Client/VSets/VList.d.ts.map +1 -0
  724. package/dist/src/Client/VSets/VList.js +409 -0
  725. package/dist/src/Client/VSets/VList.js.map +1 -0
  726. package/dist/src/Client/VSets/VPage.d.ts +20 -0
  727. package/dist/src/Client/VSets/VPage.d.ts.map +1 -0
  728. package/dist/src/Client/VSets/VPage.js +125 -0
  729. package/dist/src/Client/VSets/VPage.js.map +1 -0
  730. package/dist/src/Client/VSets/VPagination.d.ts +32 -0
  731. package/dist/src/Client/VSets/VPagination.d.ts.map +1 -0
  732. package/dist/src/Client/VSets/VPagination.js +126 -0
  733. package/dist/src/Client/VSets/VPagination.js.map +1 -0
  734. package/dist/src/Client/VSets/VSet.d.ts +9 -0
  735. package/dist/src/Client/VSets/VSet.d.ts.map +1 -0
  736. package/dist/src/Client/VSets/VSet.js +132 -0
  737. package/dist/src/Client/VSets/VSet.js.map +1 -0
  738. package/dist/src/Client/View/VBoundObject.d.ts +4 -0
  739. package/dist/src/Client/View/VBoundObject.d.ts.map +1 -0
  740. package/dist/src/Client/View/VBoundObject.js +15 -0
  741. package/dist/src/Client/View/VBoundObject.js.map +1 -0
  742. package/dist/src/Client/View/VObject.d.ts +29 -0
  743. package/dist/src/Client/View/VObject.d.ts.map +1 -0
  744. package/dist/src/Client/View/VObject.js +181 -0
  745. package/dist/src/Client/View/VObject.js.map +1 -0
  746. package/dist/src/Client/View/VObjectInList.d.ts +41 -0
  747. package/dist/src/Client/View/VObjectInList.d.ts.map +1 -0
  748. package/dist/src/Client/View/VObjectInList.js +100 -0
  749. package/dist/src/Client/View/VObjectInList.js.map +1 -0
  750. package/dist/src/Communication/CustomReadQuery.d.ts +2 -0
  751. package/dist/src/Communication/CustomReadQuery.d.ts.map +1 -0
  752. package/dist/src/Communication/CustomReadQuery.js +12 -0
  753. package/dist/src/Communication/CustomReadQuery.js.map +1 -0
  754. package/dist/src/Communication/DataAnswer.d.ts +2 -0
  755. package/dist/src/Communication/DataAnswer.d.ts.map +1 -0
  756. package/dist/src/Communication/DataAnswer.js +62 -0
  757. package/dist/src/Communication/DataAnswer.js.map +1 -0
  758. package/dist/src/Communication/DataItems/ChildData.d.ts +2 -0
  759. package/dist/src/Communication/DataItems/ChildData.d.ts.map +1 -0
  760. package/dist/src/Communication/DataItems/ChildData.js +92 -0
  761. package/dist/src/Communication/DataItems/ChildData.js.map +1 -0
  762. package/dist/src/Communication/DataItems/QueryData.d.ts +2 -0
  763. package/dist/src/Communication/DataItems/QueryData.d.ts.map +1 -0
  764. package/dist/src/Communication/DataItems/QueryData.js +56 -0
  765. package/dist/src/Communication/DataItems/QueryData.js.map +1 -0
  766. package/dist/src/Communication/DataItems/RelationData.d.ts +2 -0
  767. package/dist/src/Communication/DataItems/RelationData.d.ts.map +1 -0
  768. package/dist/src/Communication/DataItems/RelationData.js +82 -0
  769. package/dist/src/Communication/DataItems/RelationData.js.map +1 -0
  770. package/dist/src/Communication/DataItems/ValueClearedData.d.ts +2 -0
  771. package/dist/src/Communication/DataItems/ValueClearedData.d.ts.map +1 -0
  772. package/dist/src/Communication/DataItems/ValueClearedData.js +51 -0
  773. package/dist/src/Communication/DataItems/ValueClearedData.js.map +1 -0
  774. package/dist/src/Communication/DataItems/ValueData.d.ts +2 -0
  775. package/dist/src/Communication/DataItems/ValueData.d.ts.map +1 -0
  776. package/dist/src/Communication/DataItems/ValueData.js +50 -0
  777. package/dist/src/Communication/DataItems/ValueData.js.map +1 -0
  778. package/dist/src/Communication/DataItems/Values/VDByte.d.ts +2 -0
  779. package/dist/src/Communication/DataItems/Values/VDByte.d.ts.map +1 -0
  780. package/dist/src/Communication/DataItems/Values/VDByte.js +40 -0
  781. package/dist/src/Communication/DataItems/Values/VDByte.js.map +1 -0
  782. package/dist/src/Communication/DataItems/Values/VDDateTime.d.ts +2 -0
  783. package/dist/src/Communication/DataItems/Values/VDDateTime.d.ts.map +1 -0
  784. package/dist/src/Communication/DataItems/Values/VDDateTime.js +40 -0
  785. package/dist/src/Communication/DataItems/Values/VDDateTime.js.map +1 -0
  786. package/dist/src/Communication/DataItems/Values/VDDouble.d.ts +2 -0
  787. package/dist/src/Communication/DataItems/Values/VDDouble.d.ts.map +1 -0
  788. package/dist/src/Communication/DataItems/Values/VDDouble.js +40 -0
  789. package/dist/src/Communication/DataItems/Values/VDDouble.js.map +1 -0
  790. package/dist/src/Communication/DataItems/Values/VDLong.d.ts +2 -0
  791. package/dist/src/Communication/DataItems/Values/VDLong.d.ts.map +1 -0
  792. package/dist/src/Communication/DataItems/Values/VDLong.js +40 -0
  793. package/dist/src/Communication/DataItems/Values/VDLong.js.map +1 -0
  794. package/dist/src/Communication/DataItems/Values/VDString.d.ts +2 -0
  795. package/dist/src/Communication/DataItems/Values/VDString.d.ts.map +1 -0
  796. package/dist/src/Communication/DataItems/Values/VDString.js +43 -0
  797. package/dist/src/Communication/DataItems/Values/VDString.js.map +1 -0
  798. package/dist/src/Communication/DataItems/Values/VDUlong.d.ts +2 -0
  799. package/dist/src/Communication/DataItems/Values/VDUlong.d.ts.map +1 -0
  800. package/dist/src/Communication/DataItems/Values/VDUlong.js +40 -0
  801. package/dist/src/Communication/DataItems/Values/VDUlong.js.map +1 -0
  802. package/dist/src/Communication/DataMessage.d.ts +2 -0
  803. package/dist/src/Communication/DataMessage.d.ts.map +1 -0
  804. package/dist/src/Communication/DataMessage.js +199 -0
  805. package/dist/src/Communication/DataMessage.js.map +1 -0
  806. package/dist/src/Communication/ErrorMessage.d.ts +348 -0
  807. package/dist/src/Communication/ErrorMessage.d.ts.map +1 -0
  808. package/dist/src/Communication/ErrorMessage.js +943 -0
  809. package/dist/src/Communication/ErrorMessage.js.map +1 -0
  810. package/dist/src/Communication/GetPagesQuery.d.ts +2 -0
  811. package/dist/src/Communication/GetPagesQuery.d.ts.map +1 -0
  812. package/dist/src/Communication/GetPagesQuery.js +22 -0
  813. package/dist/src/Communication/GetPagesQuery.js.map +1 -0
  814. package/dist/src/Communication/Query.d.ts +2 -0
  815. package/dist/src/Communication/Query.d.ts.map +1 -0
  816. package/dist/src/Communication/Query.js +18 -0
  817. package/dist/src/Communication/Query.js.map +1 -0
  818. package/dist/src/Communication/QueryItems/QIClearLinks.d.ts +2 -0
  819. package/dist/src/Communication/QueryItems/QIClearLinks.d.ts.map +1 -0
  820. package/dist/src/Communication/QueryItems/QIClearLinks.js +17 -0
  821. package/dist/src/Communication/QueryItems/QIClearLinks.js.map +1 -0
  822. package/dist/src/Communication/QueryItems/QIDelete.d.ts +2 -0
  823. package/dist/src/Communication/QueryItems/QIDelete.d.ts.map +1 -0
  824. package/dist/src/Communication/QueryItems/QIDelete.js +15 -0
  825. package/dist/src/Communication/QueryItems/QIDelete.js.map +1 -0
  826. package/dist/src/Communication/QueryItems/QINewChild.d.ts +2 -0
  827. package/dist/src/Communication/QueryItems/QINewChild.d.ts.map +1 -0
  828. package/dist/src/Communication/QueryItems/QINewChild.js +104 -0
  829. package/dist/src/Communication/QueryItems/QINewChild.js.map +1 -0
  830. package/dist/src/Communication/QueryItems/QIReassignChild.d.ts +2 -0
  831. package/dist/src/Communication/QueryItems/QIReassignChild.d.ts.map +1 -0
  832. package/dist/src/Communication/QueryItems/QIReassignChild.js +27 -0
  833. package/dist/src/Communication/QueryItems/QIReassignChild.js.map +1 -0
  834. package/dist/src/Communication/QueryItems/QIUnlink.d.ts +2 -0
  835. package/dist/src/Communication/QueryItems/QIUnlink.d.ts.map +1 -0
  836. package/dist/src/Communication/QueryItems/QIUnlink.js +19 -0
  837. package/dist/src/Communication/QueryItems/QIUnlink.js.map +1 -0
  838. package/dist/src/Communication/QueryItems/QIValue.d.ts +33 -0
  839. package/dist/src/Communication/QueryItems/QIValue.d.ts.map +1 -0
  840. package/dist/src/Communication/QueryItems/QIValue.js +111 -0
  841. package/dist/src/Communication/QueryItems/QIValue.js.map +1 -0
  842. package/dist/src/Communication/Serialization/MIVDeserializer.d.ts +20 -0
  843. package/dist/src/Communication/Serialization/MIVDeserializer.d.ts.map +1 -0
  844. package/dist/src/Communication/Serialization/MIVDeserializer.js +128 -0
  845. package/dist/src/Communication/Serialization/MIVDeserializer.js.map +1 -0
  846. package/dist/src/Communication/Serialization/MIVSerializer.d.ts +25 -0
  847. package/dist/src/Communication/Serialization/MIVSerializer.d.ts.map +1 -0
  848. package/dist/src/Communication/Serialization/MIVSerializer.js +135 -0
  849. package/dist/src/Communication/Serialization/MIVSerializer.js.map +1 -0
  850. package/dist/src/Communication/SignQuery.d.ts +2 -0
  851. package/dist/src/Communication/SignQuery.d.ts.map +1 -0
  852. package/dist/src/Communication/SignQuery.js +19 -0
  853. package/dist/src/Communication/SignQuery.js.map +1 -0
  854. package/dist/src/Communication/SignupQuery.d.ts +2 -0
  855. package/dist/src/Communication/SignupQuery.d.ts.map +1 -0
  856. package/dist/src/Communication/SignupQuery.js +14 -0
  857. package/dist/src/Communication/SignupQuery.js.map +1 -0
  858. package/dist/src/Communication/UnloadQuery.d.ts +2 -0
  859. package/dist/src/Communication/UnloadQuery.d.ts.map +1 -0
  860. package/dist/src/Communication/UnloadQuery.js +20 -0
  861. package/dist/src/Communication/UnloadQuery.js.map +1 -0
  862. package/dist/src/Communication/UpdateQuery.d.ts +2 -0
  863. package/dist/src/Communication/UpdateQuery.d.ts.map +1 -0
  864. package/dist/src/Communication/UpdateQuery.js +45 -0
  865. package/dist/src/Communication/UpdateQuery.js.map +1 -0
  866. package/dist/src/HTML/PropertyTextBlock.d.ts +42 -0
  867. package/dist/src/HTML/PropertyTextBlock.d.ts.map +1 -0
  868. package/dist/src/HTML/PropertyTextBlock.js +161 -0
  869. package/dist/src/HTML/PropertyTextBlock.js.map +1 -0
  870. package/dist/src/HTML/PropertyTextBox.d.ts +39 -0
  871. package/dist/src/HTML/PropertyTextBox.d.ts.map +1 -0
  872. package/dist/src/HTML/PropertyTextBox.js +245 -0
  873. package/dist/src/HTML/PropertyTextBox.js.map +1 -0
  874. package/dist/src/MIVConstants.d.ts +19 -0
  875. package/dist/src/MIVConstants.d.ts.map +1 -0
  876. package/dist/src/MIVConstants.js +31 -0
  877. package/dist/src/MIVConstants.js.map +1 -0
  878. package/dist/src/MIVValueTypes.d.ts +2 -0
  879. package/dist/src/MIVValueTypes.d.ts.map +1 -0
  880. package/dist/src/MIVValueTypes.js +14 -0
  881. package/dist/src/MIVValueTypes.js.map +1 -0
  882. package/dist/src/Tools/AccumulatorList.d.ts +2 -0
  883. package/dist/src/Tools/AccumulatorList.d.ts.map +1 -0
  884. package/dist/src/Tools/AccumulatorList.js +61 -0
  885. package/dist/src/Tools/AccumulatorList.js.map +1 -0
  886. package/dist/src/Tools/LoadTools.d.ts +7 -0
  887. package/dist/src/Tools/LoadTools.d.ts.map +1 -0
  888. package/dist/src/Tools/LoadTools.js +57 -0
  889. package/dist/src/Tools/LoadTools.js.map +1 -0
  890. package/dist/src/Tools/MIVCache.d.ts +2 -0
  891. package/dist/src/Tools/MIVCache.d.ts.map +1 -0
  892. package/dist/src/Tools/MIVCache.js +29 -0
  893. package/dist/src/Tools/MIVCache.js.map +1 -0
  894. package/dist/src/Tools/MIVConverter.d.ts +6 -0
  895. package/dist/src/Tools/MIVConverter.d.ts.map +1 -0
  896. package/dist/src/Tools/MIVConverter.js +133 -0
  897. package/dist/src/Tools/MIVConverter.js.map +1 -0
  898. package/dist/src/Tools/PersistentList.d.ts +2 -0
  899. package/dist/src/Tools/PersistentList.d.ts.map +1 -0
  900. package/dist/src/Tools/PersistentList.js +90 -0
  901. package/dist/src/Tools/PersistentList.js.map +1 -0
  902. package/dist/src/Tools/Semaphore.d.ts +15 -0
  903. package/dist/src/Tools/Semaphore.d.ts.map +1 -0
  904. package/dist/src/Tools/Semaphore.js +62 -0
  905. package/dist/src/Tools/Semaphore.js.map +1 -0
  906. package/dist/src/Tools/UpdateTool.d.ts +7 -0
  907. package/dist/src/Tools/UpdateTool.d.ts.map +1 -0
  908. package/dist/src/Tools/UpdateTool.js +15 -0
  909. package/dist/src/Tools/UpdateTool.js.map +1 -0
  910. package/dist/src/index.d.ts +56 -0
  911. package/dist/src/index.d.ts.map +1 -0
  912. package/dist/src/index.js +134 -0
  913. package/dist/src/index.js.map +1 -0
  914. package/package.json +23 -0
@@ -0,0 +1,862 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MIVClient = void 0;
4
+ const ErrorMessage_1 = require("../Communication/ErrorMessage");
5
+ const ChildAndRealtionData_1 = require("./Construction/ChildAndRealtionData");
6
+ const MRelation_1 = require("./MRelation");
7
+ const ChildUpdate_1 = require("./UpdateTools/ChildUpdate");
8
+ const ClientTypes_1 = require("./Construction/ClientTypes");
9
+ const PersistentList_1 = require("../Tools/PersistentList");
10
+ const ModelUpdateAndCompute_1 = require("./UpdateTools/ModelUpdateAndCompute");
11
+ const ViewUpdateAndCompute_1 = require("./UpdateTools/ViewUpdateAndCompute");
12
+ const VListModif_1 = require("./VSets/FilterAndSort/VListModif");
13
+ const UnloadQuery_1 = require("../Communication/UnloadQuery");
14
+ const AccumulatorList_1 = require("../Tools/AccumulatorList");
15
+ const QueryBuilder_1 = require("./QueryBuilder");
16
+ const QueryInfo_1 = require("./QueryInfo");
17
+ const MIVConstants_1 = require("../MIVConstants");
18
+ const DataAnswer_1 = require("../Communication/DataAnswer");
19
+ const Semaphore_1 = require("../Tools/Semaphore");
20
+ const MIVDeserializer_1 = require("../Communication/Serialization/MIVDeserializer");
21
+ const DateTimeProperty_1 = require("./Properties/DateTimeProperty");
22
+ class MIVClient {
23
+ get IsStarted() { return this._is_started_miv_; }
24
+ get UserID() { return this._user_id_miv_; }
25
+ get Error() { return this._error_miv_; }
26
+ get MustChangePassword() { return this._must_change_password_miv_; }
27
+ constructor(cs) {
28
+ this._is_started_miv_ = false;
29
+ this._user_id_miv_ = -1n;
30
+ this._semaLock_miv_ = new Semaphore_1.SemaphoreConcurrency();
31
+ this._token_lock_miv_ = MIVClient.TOKEN_BASE_miv_;
32
+ this._recursive_lock_miv_ = 0;
33
+ this._must_change_password_miv_ = false;
34
+ this._pageItemsList_miv_ = new AccumulatorList_1.AccumulatorList(1);
35
+ this.DefaultQueryHistory = false;
36
+ this._roots_miv_ = new Array();
37
+ this._children_miv_ = new Map();
38
+ this._queries_miv_ = new Map();
39
+ this._cTypesFetcher_miv_ = new Map();
40
+ this._rTypesFetcher_miv_ = new Map();
41
+ this._loads_miv_ = new PersistentList_1.PersistentList(8);
42
+ this._cuCache_miv_ = new ChildUpdate_1.ChildUpdateCache(32);
43
+ this._newChildren_miv_ = new AccumulatorList_1.AccumulatorList(32);
44
+ this._destroyedChildren_miv_ = new AccumulatorList_1.AccumulatorList(32);
45
+ this._listsChanged_miv_ = new AccumulatorList_1.AccumulatorList(32);
46
+ this._childrenListsTMP_miv_ = new AccumulatorList_1.AccumulatorList(32);
47
+ this._targetsListsTMP_miv_ = new AccumulatorList_1.AccumulatorList(32);
48
+ this._queriesTMP_miv_ = new Map();
49
+ this._newRelations_miv_ = new AccumulatorList_1.AccumulatorList(32);
50
+ this._loadsList_miv_ = new AccumulatorList_1.AccumulatorList(2);
51
+ this._unloadIDList_miv_ = new AccumulatorList_1.AccumulatorList(2);
52
+ this._unloadCodeList_miv_ = new AccumulatorList_1.AccumulatorList(2);
53
+ this._objectsChangedForV_miv_ = new AccumulatorList_1.AccumulatorList(32);
54
+ this._fieldsChangedForV_miv_ = new AccumulatorList_1.AccumulatorList(32);
55
+ this._vWithModelUpdated_miv_ = new AccumulatorList_1.AccumulatorList(32);
56
+ this._vStatusChanged_miv_ = new AccumulatorList_1.AccumulatorList(32);
57
+ this._paginationsWithMaybeDestroyed_miv_ = new AccumulatorList_1.AccumulatorList(2);
58
+ this._vSetsToPreapare_miv_ = new PersistentList_1.PersistentList2(16);
59
+ this._vSetsUpdated_miv_ = new AccumulatorList_1.AccumulatorList(16);
60
+ this._vIndexChanged_miv_ = new AccumulatorList_1.AccumulatorList(16);
61
+ this._uwTriggered_miv_ = new AccumulatorList_1.AccumulatorList(2);
62
+ this._modifCache_miv_ = new VListModif_1.VListModifCache(16);
63
+ this.AllowPropertyOverlap = false;
64
+ this._connection_miv_ = cs;
65
+ this._cData_miv_ = new ChildAndRealtionData_1.ChildData(this);
66
+ this._rData_miv_ = new ChildAndRealtionData_1.RelationData(this);
67
+ this.GenericParentChildType = new ClientTypes_1.ClientGenericChildType(this);
68
+ this.GenericParentRelationType = new ClientTypes_1.ClientGenericRelationType(this);
69
+ this._dataUpdate_miv_ = new ModelUpdateAndCompute_1.ModelUpdate(this);
70
+ this._viewUpdate_miv_ = new ViewUpdateAndCompute_1.ViewUpdate(this);
71
+ }
72
+ _addRoot_miv_(r) {
73
+ if (r.ID == MIVConstants_1.MIVConstants.SYSTEM_ROOT_ID || r.Type.ID == MIVConstants_1.MIVConstants.SYSTEM_ROOT_TYPE) {
74
+ if (r.ID != MIVConstants_1.MIVConstants.SYSTEM_ROOT_ID || r.Type.ID != MIVConstants_1.MIVConstants.SYSTEM_ROOT_TYPE) {
75
+ throw new Error("the MRootSystem must have both its ID and Type match MIVConstances.SYSTEM_ROOT_ID and MIVConstants.SYSTEM_ROOT_TYPE.");
76
+ }
77
+ if (this._system_miv_ === undefined) {
78
+ this._system_miv_ = r;
79
+ }
80
+ else {
81
+ throw new Error("duplicate root");
82
+ }
83
+ }
84
+ this._roots_miv_.push(r);
85
+ }
86
+ RegisterChildType(typeID, cstr, name, parent, collection) {
87
+ if (this._cTypesFetcher_miv_.has(typeID)) {
88
+ throw new Error("A type with this ID is already registered.");
89
+ }
90
+ const result = new ClientTypes_1.ClientChildType(this, typeID, cstr, name, parent, collection);
91
+ this._cTypesFetcher_miv_.set(typeID, result);
92
+ return result;
93
+ }
94
+ RegisterRelationType(typeID, cstr, name, parent, collection) {
95
+ if (this._rTypesFetcher_miv_.has(typeID)) {
96
+ throw new Error("A type with this ID is already registered.");
97
+ }
98
+ const result = new ClientTypes_1.ClientRelationType(this, typeID, cstr, name, parent, collection);
99
+ this._rTypesFetcher_miv_.set(typeID, result);
100
+ return result;
101
+ }
102
+ async StartAsync(login, password) {
103
+ this._constructingObject_miv_ = undefined;
104
+ if (this._system_miv_ === undefined) {
105
+ throw new Error("missing system root");
106
+ }
107
+ const checkDuplicateID = new Set();
108
+ for (let i = 0; i < this._roots_miv_.length; i++) {
109
+ const r = this._roots_miv_[i];
110
+ if (checkDuplicateID.has(r.ID)) {
111
+ throw new Error("duplicate root ID " + r.ID);
112
+ }
113
+ else {
114
+ checkDuplicateID.add(r.ID);
115
+ }
116
+ }
117
+ for (let i = 0; i < this._roots_miv_.length; i++) {
118
+ const r = this._roots_miv_[i];
119
+ }
120
+ for (let [tid, type] of this._cTypesFetcher_miv_) {
121
+ type._initializeChild_miv_(this._cData_miv_);
122
+ }
123
+ for (let [tid, type] of this._rTypesFetcher_miv_) {
124
+ type._initializeRelation_miv_(this._rData_miv_);
125
+ }
126
+ let msg = await this._connection_miv_._startAsync_miv_(this);
127
+ if (msg !== undefined) {
128
+ return msg;
129
+ }
130
+ this._is_started_miv_ = true;
131
+ if (login !== undefined) {
132
+ msg = await this.SignInAsync(login, password);
133
+ if (msg !== undefined)
134
+ return msg;
135
+ }
136
+ const forest = new Array();
137
+ for (let i = 0; i < this._roots_miv_.length; i++) {
138
+ const r = this._roots_miv_[i];
139
+ if (r._actuallyLoaded_miv_) {
140
+ forest.push({ root: r, filters: [r.InitialLoad] });
141
+ }
142
+ else {
143
+ r._falselyLoaded_miv_(r.InitialLoad, r._filters_miv_);
144
+ }
145
+ }
146
+ let errors;
147
+ if (forest.length > 0) {
148
+ errors = await this._loadForestArrayAsync_miv_(0n, true, forest);
149
+ }
150
+ else {
151
+ errors = undefined;
152
+ }
153
+ return ErrorMessage_1.AggregateErrorMessage.CreateFromList(errors);
154
+ }
155
+ async SignInAsync(login, password, virtualUpdate = undefined, lockToken = 0n) {
156
+ await this.TakeLockAsync(lockToken);
157
+ if (!this._connection_miv_._isActive_miv_) {
158
+ this.ReleaseLock();
159
+ return ErrorMessage_1.ConnectionLost.SINGLETON;
160
+ }
161
+ const data = await this._connection_miv_._signinAsync_miv_(login, password);
162
+ if (data._error_miv_ === undefined) {
163
+ let userID;
164
+ if (data._children_miv_._count_miv_ > 0) {
165
+ userID = data._children_miv_._list_miv_._get_miv_(0)._id_miv_;
166
+ this._login_miv_ = login;
167
+ this._password_miv_ = password;
168
+ this._update_on_login_miv_ = virtualUpdate;
169
+ }
170
+ else {
171
+ userID = -1n;
172
+ }
173
+ this._user_id_miv_ = userID;
174
+ await this._executeSingleDataMessage_miv_(data, mu => {
175
+ if (this._system_miv_ !== undefined) {
176
+ mu.SetDefaultLong(this._system_miv_.CurrentUserID, userID);
177
+ this._system_miv_._setCurrentUser_miv_(userID, mu);
178
+ }
179
+ if (virtualUpdate !== undefined) {
180
+ virtualUpdate(mu);
181
+ }
182
+ });
183
+ this._receiveAnswer_miv_(data._mustChangePassword_miv_);
184
+ this.ReleaseLock();
185
+ return undefined;
186
+ }
187
+ else {
188
+ this._receiveAnswer_miv_(data._mustChangePassword_miv_);
189
+ this.ReleaseLock();
190
+ return data._error_miv_;
191
+ }
192
+ }
193
+ async SignOutAsync(virtualUpdate = undefined, lockToken = 0n) {
194
+ this._login_miv_ = undefined;
195
+ this._password_miv_ = undefined;
196
+ lockToken = await this.TakeLockAsync(lockToken);
197
+ this._user_id_miv_ = -1n;
198
+ await this._executeVirtualUpdateAsync_must_have_lock_miv_(mu => {
199
+ if (this._system_miv_ !== undefined) {
200
+ mu.SetDefaultLong(this._system_miv_.CurrentUserID, -1n);
201
+ this._system_miv_._setCurrentUser_miv_(-1n, mu);
202
+ }
203
+ if (virtualUpdate !== undefined) {
204
+ virtualUpdate(mu);
205
+ }
206
+ });
207
+ if (this._connection_miv_._isActive_miv_) {
208
+ await this._connection_miv_._signoutAsync_miv_();
209
+ }
210
+ this.ReleaseLock();
211
+ }
212
+ _receiveAnswer_miv_(mustChangePassword) {
213
+ if (mustChangePassword) {
214
+ if (!this._must_change_password_miv_) {
215
+ this._must_change_password_miv_ = true;
216
+ this.PasswordChangeRequired();
217
+ }
218
+ }
219
+ else {
220
+ if (this._must_change_password_miv_) {
221
+ this._must_change_password_miv_ = false;
222
+ this.PasswordChangeNotRequired();
223
+ }
224
+ }
225
+ }
226
+ PasswordChangeRequired() { }
227
+ PasswordChangeNotRequired() { }
228
+ Stop() {
229
+ this._connection_miv_._stop_miv_();
230
+ this._login_miv_ = undefined;
231
+ this._password_miv_ = undefined;
232
+ }
233
+ async _connectionLost_miv_() {
234
+ this._user_id_miv_ = -1n;
235
+ const cl = this.ConnectionLost();
236
+ if (cl.maxAttempts != 0) {
237
+ const token = await this.TakeLockAsync();
238
+ const msg = await this._tryReconnectAsync_miv_(cl.maxAttempts, cl.delayMilliseconds, true, token);
239
+ if (this._connection_miv_._isActive_miv_) {
240
+ this._executeVUpdate_do_not_release_lock_miv();
241
+ this.ReleaseLock();
242
+ this.ReconnectAttemptSuccessful(msg);
243
+ }
244
+ else {
245
+ this.ReleaseLock();
246
+ this.ReconnectAttemptsAllFailed(msg);
247
+ }
248
+ }
249
+ }
250
+ ConnectionLost() { return { maxAttempts: 4, delayMilliseconds: 2000 }; }
251
+ ;
252
+ ReconnectAttempt(attempt, maxAttempts, calledFromEnsure) { }
253
+ ReconnectAttemptSuccessful(error) { }
254
+ ReconnectAttemptFailed(attempt, maxAttempts, calledFromEnsure, error) { }
255
+ ReconnectAttemptsAllFailed(error) { }
256
+ async _tryReconnectAsync_miv_(maxAttempts, delayMilliseconds, calledFromLost, lockToken) {
257
+ if (maxAttempts == 0)
258
+ return ErrorMessage_1.ConnectionLost.SINGLETON;
259
+ let msg = undefined;
260
+ let i = 1;
261
+ while (maxAttempts < 0 || i <= maxAttempts) {
262
+ if (delayMilliseconds > 0 && (calledFromLost || i > 1)) {
263
+ await new Promise(f => setTimeout(f, delayMilliseconds));
264
+ }
265
+ this.ReconnectAttempt(i, maxAttempts, !calledFromLost);
266
+ msg = await this._connection_miv_._tryReconnectAsync_miv_();
267
+ if (msg === undefined) {
268
+ if (this._login_miv_ !== undefined) {
269
+ msg = await this.SignInAsync(this._login_miv_, this._password_miv_, this._update_on_login_miv_, lockToken);
270
+ if (msg !== undefined) {
271
+ this._connection_miv_._stop_miv_();
272
+ return msg;
273
+ }
274
+ }
275
+ const toLoad = new Array();
276
+ for (let j = 0; j < this._loads_miv_._count_miv_; j++) {
277
+ const root = this._loads_miv_._get_miv_(j);
278
+ const filters = root._getActiveLoads_miv_();
279
+ if (filters !== undefined && filters.length > 0)
280
+ toLoad.push({ root: root._owner_miv_, filters: filters });
281
+ }
282
+ const errors = await this._loadForestArrayAsync_miv_(lockToken, false, toLoad);
283
+ msg = ErrorMessage_1.AggregateErrorMessage.CreateFromList(errors);
284
+ break;
285
+ }
286
+ else {
287
+ this.ReconnectAttemptFailed(i, maxAttempts, !calledFromLost, msg);
288
+ i++;
289
+ }
290
+ }
291
+ return msg;
292
+ }
293
+ async EnsureConnectionAsync(maxAttempts, delayMilliseconds, lockToken = 0n) {
294
+ lockToken = await this.TakeLockAsync(lockToken);
295
+ if (this._connection_miv_._isActive_miv_) {
296
+ this.ReleaseLock();
297
+ return undefined;
298
+ }
299
+ else {
300
+ const msg = await this._tryReconnectAsync_miv_(maxAttempts, delayMilliseconds, false, lockToken);
301
+ if (this._connection_miv_._isActive_miv_) {
302
+ this._executeVUpdate_do_not_release_lock_miv();
303
+ }
304
+ this.ReleaseLock();
305
+ return msg;
306
+ }
307
+ }
308
+ TryGetObject(id) {
309
+ const c = this._children_miv_.get(id);
310
+ if (c === undefined) {
311
+ for (let i = 0; i < this._roots_miv_.length; i++) {
312
+ const r = this._roots_miv_[i];
313
+ if (r.ID == id)
314
+ return r;
315
+ }
316
+ return undefined;
317
+ }
318
+ else {
319
+ return c;
320
+ }
321
+ }
322
+ TryGetChild(id) {
323
+ return this._children_miv_.get(id);
324
+ }
325
+ TryGetType(id) {
326
+ let result = this._cTypesFetcher_miv_.get(id);
327
+ if (result !== undefined)
328
+ return result;
329
+ result = this._rTypesFetcher_miv_.get(id);
330
+ if (result !== undefined)
331
+ return result;
332
+ for (let i = 0; i < this._roots_miv_.length; i++) {
333
+ const rt = this._roots_miv_[i].Type;
334
+ if (rt.ID == id)
335
+ return rt;
336
+ }
337
+ return undefined;
338
+ }
339
+ async TakeLockAsync(token = 0n) {
340
+ if (token == this._token_lock_miv_) {
341
+ this._recursive_lock_miv_++;
342
+ return token;
343
+ }
344
+ else {
345
+ await this._semaLock_miv_.WaitAsync();
346
+ this._token_lock_miv_++;
347
+ if (this._token_lock_miv_ <= MIVClient.TOKEN_BASE_miv_)
348
+ this._token_lock_miv_ = MIVClient.TOKEN_BASE_miv_;
349
+ return this._token_lock_miv_;
350
+ }
351
+ }
352
+ ReleaseLock() {
353
+ if (this._recursive_lock_miv_ > 0) {
354
+ this._recursive_lock_miv_--;
355
+ }
356
+ else {
357
+ this._semaLock_miv_.Release();
358
+ }
359
+ }
360
+ async BeginQueryAsync(lockToken = 0n) {
361
+ this._error_miv_ = undefined;
362
+ await this.TakeLockAsync(lockToken);
363
+ if (this._qb_miv_ === undefined) {
364
+ this._qb_miv_ = new QueryBuilder_1.QueryBuilder(this);
365
+ return this._qb_miv_;
366
+ }
367
+ else {
368
+ throw new Error("You cannot create several simultaneous QueryBuilder objects.");
369
+ }
370
+ }
371
+ _updateCanceled_miv_() {
372
+ this._qb_miv_ = undefined;
373
+ this.ReleaseLock();
374
+ }
375
+ _emptyOrFaultyUpdate_miv_() {
376
+ this._qb_miv_ = undefined;
377
+ }
378
+ async _executeUpdate_miv_(qb, uq) {
379
+ if (this._qb_miv_ === undefined) {
380
+ throw new Error("This query is canceled or already executed.");
381
+ }
382
+ if (!this._connection_miv_._isActive_miv_)
383
+ return new DataAnswer_1.DataAnswer(ErrorMessage_1.ConnectionLost.SINGLETON);
384
+ const ans = await this._connection_miv_._executeAsync_miv_(uq);
385
+ this._error_miv_ = ans._error_miv_;
386
+ qb._custom_result_miv_ = ans._customPayload_miv_;
387
+ if (ans._error_miv_ === undefined) {
388
+ await this._executeSingleDataMessage_miv_(ans, undefined);
389
+ }
390
+ this._receiveAnswer_miv_(ans._mustChangePassword_miv_);
391
+ this._qb_miv_ = undefined;
392
+ return ans;
393
+ }
394
+ async SignUpAsync(login, password, customPayload, virtualUpdate = undefined, lockToken = 0n) {
395
+ if (!this._connection_miv_._isActive_miv_)
396
+ return ErrorMessage_1.ConnectionLost.SINGLETON;
397
+ await this.TakeLockAsync(lockToken);
398
+ const ans = await this._connection_miv_._signupAsync_miv_(login, password, customPayload);
399
+ const msg = ans._error_miv_;
400
+ if (msg === undefined) {
401
+ if (ans._customPayload_miv_ !== undefined) {
402
+ const reader = new MIVDeserializer_1.MIVDeserializer(ans._customPayload_miv_, 0);
403
+ const uid = reader.ReadInt64();
404
+ if (uid !== undefined) {
405
+ this._user_id_miv_ = uid;
406
+ }
407
+ }
408
+ this._login_miv_ = login;
409
+ this._password_miv_ = password;
410
+ this._update_on_login_miv_ = virtualUpdate;
411
+ await this._executeSingleDataMessage_miv_(ans, mu => {
412
+ if (this._system_miv_ !== undefined) {
413
+ mu.SetDefaultLong(this._system_miv_.CurrentUserID, this._user_id_miv_);
414
+ this._system_miv_._setCurrentUser_miv_(this._user_id_miv_, mu);
415
+ }
416
+ if (virtualUpdate !== undefined) {
417
+ virtualUpdate(mu);
418
+ }
419
+ });
420
+ }
421
+ this._receiveAnswer_miv_(ans._mustChangePassword_miv_);
422
+ this.ReleaseLock();
423
+ return msg;
424
+ }
425
+ LoadForestAsync(lockToken, ...roots) {
426
+ return this._loadForestAsync_client_required_miv_(lockToken, roots);
427
+ }
428
+ LoadForestArrayAsync(lockToken, roots) {
429
+ return this._loadForestAsync_client_required_miv_(lockToken, roots);
430
+ }
431
+ _loadForestAsync_client_required_miv_(lockToken, roots) {
432
+ if (roots === undefined || roots.length <= 0) {
433
+ return Promise.resolve(undefined);
434
+ }
435
+ else {
436
+ for (let i = 0; i < roots.length; i++) {
437
+ const x = roots[i];
438
+ const root = x.root;
439
+ const filters = x.filters;
440
+ const available = root._getFilters_miv_();
441
+ if (available === undefined)
442
+ throw new Error("This filter is not defined on this type.");
443
+ for (let j = 0; j < filters.length; j++) {
444
+ const f = filters[j];
445
+ const index = available._getFilterIndexFromFilter(f);
446
+ if (index < 0)
447
+ throw new Error("This filter is not defined on this type.");
448
+ }
449
+ }
450
+ return this._loadForestArrayAsync_miv_(lockToken, true, roots);
451
+ }
452
+ }
453
+ async _loadForestArrayAsync_miv_(lockToken, incrLoadCount, roots) {
454
+ if (roots.length <= 0)
455
+ return undefined;
456
+ await this.TakeLockAsync(lockToken);
457
+ let mustChangePassword = false;
458
+ const errors = new AccumulatorList_1.AccumulatorList(0);
459
+ for (let i = 0; i < roots.length; i++) {
460
+ const r = roots[i];
461
+ if (this._connection_miv_._isActive_miv_) {
462
+ const data = await this._connection_miv_._loadAsync_miv_(r.root.ID, r.filters);
463
+ this._must_change_password_miv_ = data._mustChangePassword_miv_;
464
+ if (data._error_miv_ === undefined) {
465
+ r.root._loadedInForest_miv_(r.filters, incrLoadCount);
466
+ this._executeDataMessageWithinSetOfMessages_miv_(data);
467
+ }
468
+ else {
469
+ errors._add_miv_({ root: r.root, error: data._error_miv_ });
470
+ }
471
+ }
472
+ else {
473
+ errors._add_miv_({ root: r.root, error: ErrorMessage_1.ConnectionLost.SINGLETON });
474
+ }
475
+ }
476
+ await this._finalizeExecuteModel_miv_(undefined);
477
+ this._receiveAnswer_miv_(mustChangePassword);
478
+ let result;
479
+ if (errors._count_miv_ > 0) {
480
+ result = new Array(errors._count_miv_);
481
+ for (let i = 0; i < result.length; i++) {
482
+ result[i] = errors._get_miv_(i);
483
+ }
484
+ }
485
+ else {
486
+ result = undefined;
487
+ }
488
+ this.ReleaseLock();
489
+ return result;
490
+ }
491
+ async _loadModel_miv_(root, filter, filters) {
492
+ this._error_miv_ = undefined;
493
+ if (!this._connection_miv_._isActive_miv_)
494
+ return ErrorMessage_1.ConnectionLost.SINGLETON;
495
+ const data = await this._connection_miv_._loadAsync_miv_(root.ID, [filter]);
496
+ if (data._error_miv_ !== undefined) {
497
+ this._error_miv_ = data._error_miv_;
498
+ return data._error_miv_;
499
+ }
500
+ root._loadedSingle_miv_(filters, filter);
501
+ await this._executeSingleDataMessage_miv_(data, undefined);
502
+ this._receiveAnswer_miv_(data._mustChangePassword_miv_);
503
+ return undefined;
504
+ }
505
+ _executeUnload_miv_() {
506
+ return this._finalizeExecuteModel_miv_(undefined);
507
+ }
508
+ async _loadPagesAsync_miv_(pages, filter) {
509
+ this._error_miv_ = undefined;
510
+ if (!this._connection_miv_._isActive_miv_)
511
+ return ErrorMessage_1.ConnectionLost.SINGLETON;
512
+ const pagi = pages[0]._pagination_miv_;
513
+ for (let i = 0; i < pages.length; i++) {
514
+ const page = pages[i];
515
+ for (let j = 0; j < page._supportInternal_miv_._content_miv_._count_miv_; j++) {
516
+ this._pageItemsList_miv_._add_miv_(page._supportInternal_miv_._content_miv_._get_miv_(j).ID);
517
+ }
518
+ }
519
+ const data = await this._connection_miv_._loadPagesAsync_miv_(pagi.Owner.ID, filter, pagi.Code, pages, this._pageItemsList_miv_);
520
+ this._pageItemsList_miv_._clear_miv_(8, false);
521
+ if (data._error_miv_ !== undefined) {
522
+ this._error_miv_ = data._error_miv_;
523
+ return data._error_miv_;
524
+ }
525
+ await this._executeSingleDataMessage_miv_(data, undefined);
526
+ this._receiveAnswer_miv_(data._mustChangePassword_miv_);
527
+ return undefined;
528
+ }
529
+ async RunCustomReadQueryAsync(request, executeViewUpdate, virtualUpdate, lockToken = 0n) {
530
+ if (request.length <= 0) {
531
+ if (executeViewUpdate) {
532
+ await this.TakeLockAsync(lockToken);
533
+ this._executeVUpdate_do_not_release_lock_miv();
534
+ this.ReleaseLock();
535
+ }
536
+ return MIVClient.EMPTY_RESPONSE_PAYLOAD;
537
+ }
538
+ if (request.length > MIVClient.MAX_CUSTOM_READ_REQUEST_LENGTH) {
539
+ throw new Error("request.length is greater than MAX_CUSTOM_READ_REQUEST_LENGTH " + MIVClient.MAX_CUSTOM_READ_REQUEST_LENGTH);
540
+ }
541
+ await this.TakeLockAsync(lockToken);
542
+ this._error_miv_ = undefined;
543
+ const answer = await this._connection_miv_._customReadAsync_miv_(request);
544
+ let vUpdate;
545
+ if (virtualUpdate === undefined) {
546
+ vUpdate = undefined;
547
+ }
548
+ else {
549
+ vUpdate = x => virtualUpdate(answer._customPayload_miv_, x);
550
+ }
551
+ await this._executeSingleDataMessage_miv_(answer, vUpdate);
552
+ this._receiveAnswer_miv_(answer._mustChangePassword_miv_);
553
+ let result;
554
+ if (answer._error_miv_ === undefined) {
555
+ if (answer._customPayload_miv_ === undefined)
556
+ result = MIVClient.EMPTY_RESPONSE_PAYLOAD;
557
+ else
558
+ result = answer._customPayload_miv_;
559
+ }
560
+ else {
561
+ this._error_miv_ = answer._error_miv_;
562
+ result = answer._customPayload_miv_;
563
+ }
564
+ if (executeViewUpdate)
565
+ this._executeVUpdate_do_not_release_lock_miv();
566
+ this.ReleaseLock();
567
+ return result;
568
+ }
569
+ async _getAuditTrailAsync_miv_(root, depth, fromLocal, allowTypes, ...args) {
570
+ const typesID = new Array();
571
+ if (args !== undefined && args.length > 0) {
572
+ for (let i = 0; i < args.length; i++) {
573
+ typesID.push(args[i].ID);
574
+ }
575
+ }
576
+ await this.TakeLockAsync();
577
+ const result = await this._connection_miv_._getAuditTrailAsync_miv_(root.ID, depth, DateTimeProperty_1.DateTimeProperty.ToUTC(fromLocal), allowTypes, typesID);
578
+ result._pack_miv_();
579
+ this.ReleaseLock();
580
+ return result;
581
+ }
582
+ _createChild_miv_(data, creation, assignment) {
583
+ const cct = this._cTypesFetcher_miv_.get(data._type_miv_);
584
+ if (cct === undefined)
585
+ return undefined;
586
+ this._cData_miv_._setup_miv_(cct, data._id_miv_, data._parent_miv_, data._property_miv_, data._index_miv_, data._paginationIndex_miv_, creation, assignment, data._copyOf_miv_, false);
587
+ const result = cct._create_miv_(this._cData_miv_);
588
+ this._constructingObject_miv_ = undefined;
589
+ return result;
590
+ }
591
+ _getGenericRelationType_miv_() {
592
+ if (this._generic_relation_type_miv_ === undefined) {
593
+ this._generic_relation_type_miv_ = new ClientTypes_1.ClientRelationType(this, MIVConstants_1.MIVConstants.TYPE_GENERIC_RELATION, x => new MRelation_1.MRelation(x), this.GenericParentRelationType.Name, this.GenericParentRelationType, false);
594
+ }
595
+ return this._generic_relation_type_miv_;
596
+ }
597
+ _createRelation_miv_(data, creation, assignment) {
598
+ const crt = this._rTypesFetcher_miv_.get(data._type_miv_);
599
+ let result;
600
+ if (crt === undefined) {
601
+ this._rData_miv_._setupRelation_miv_(this._getGenericRelationType_miv_(), data._id_miv_, data._parent_miv_, data._property_miv_, data._index_miv_, data._paginationIndex_miv_, creation, assignment, data._copyOf_miv_, false, data._target_miv_);
602
+ result = new MRelation_1.MRelation(this._rData_miv_);
603
+ }
604
+ else {
605
+ this._rData_miv_._setupRelation_miv_(crt, data._id_miv_, data._parent_miv_, data._property_miv_, data._index_miv_, data._paginationIndex_miv_, creation, assignment, data._copyOf_miv_, false, data._target_miv_);
606
+ result = crt._create_miv_(this._rData_miv_);
607
+ if (result === undefined) {
608
+ this._rData_miv_._setupGenericType_miv_(this._getGenericRelationType_miv_());
609
+ result = new MRelation_1.MRelation(this._rData_miv_);
610
+ }
611
+ }
612
+ this._constructingObject_miv_ = undefined;
613
+ return result;
614
+ }
615
+ async _receiveMessage(msg) {
616
+ const token = await this.TakeLockAsync();
617
+ await this._executeSingleDataMessage_miv_(msg, undefined);
618
+ if (msg._customPayload_miv_ !== undefined && msg._customPayload_miv_.byteLength > 0)
619
+ this.HandleBroadcast(msg._customPayload_miv_, token);
620
+ this._executeVUpdate_do_not_release_lock_miv();
621
+ this.ReleaseLock();
622
+ }
623
+ HandleBroadcast(payload, lockToken) { }
624
+ _manageObjectData_miv_(list, count) {
625
+ for (let i = 0; i < count; i++) {
626
+ const data = list._get_miv_(i);
627
+ const creation = this._getUpdateQuery_miv_(data._creation_miv_);
628
+ const assignment = this._getUpdateQuery_miv_(data._assignment_miv_);
629
+ let c = this._children_miv_.get(data._id_miv_);
630
+ if (c === undefined) {
631
+ c = data._createClient_miv_(this, assignment, creation);
632
+ if (c !== undefined) {
633
+ this._children_miv_.set(data._id_miv_, c);
634
+ this._newChildren_miv_._add_miv_(c);
635
+ }
636
+ }
637
+ else {
638
+ c._update_miv_(data, assignment);
639
+ }
640
+ }
641
+ }
642
+ _getUpdateQuery_miv_(id) {
643
+ let qi = this._queriesTMP_miv_.get(id);
644
+ if (qi === undefined) {
645
+ qi = this._queries_miv_.get(id);
646
+ }
647
+ return qi;
648
+ }
649
+ _executeDataMessageWithinSetOfMessages_miv_(msg) {
650
+ for (let i = 0; i < msg._queries_miv_._count_miv_; i++) {
651
+ const qd = msg._queries_miv_._list_miv_._get_miv_(i);
652
+ if (!this._queriesTMP_miv_.has(qd._id_miv_)) {
653
+ const existing = this._queries_miv_.get(qd._id_miv_);
654
+ if (existing === undefined) {
655
+ const q = new QueryInfo_1.QueryInfo(qd._id_miv_, qd._by_miv_, qd._atUTC_miv_);
656
+ this._queries_miv_.set(qd._id_miv_, q);
657
+ this._queriesTMP_miv_.set(qd._id_miv_, q);
658
+ }
659
+ else {
660
+ this._queriesTMP_miv_.set(qd._id_miv_, existing);
661
+ }
662
+ }
663
+ }
664
+ this._manageObjectData_miv_(msg._children_miv_._list_miv_, msg._children_miv_._count_miv_);
665
+ this._manageObjectData_miv_(msg._relations_miv_._list_miv_, msg._relations_miv_._count_miv_);
666
+ for (let i = 0; i < msg._deletions_miv_._count_miv_; i++) {
667
+ const c = this._children_miv_.get(msg._deletions_miv_._get_miv_(i));
668
+ if (c !== undefined) {
669
+ c._markForDestruction_miv_();
670
+ }
671
+ }
672
+ for (let i = 0; i < msg._cleared_miv_._count_miv_; i++) {
673
+ const v = msg._cleared_miv_._list_miv_._get_miv_(i);
674
+ this.TryGetObject(v._owner_miv_)?._clear_miv_(v._property_miv_);
675
+ }
676
+ for (let i = 0; i < msg._strings_miv_._count_miv_; i++) {
677
+ const v = msg._strings_miv_._list_miv_._get_miv_(i);
678
+ this.TryGetObject(v._owner_miv_)?._setString_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
679
+ }
680
+ for (let i = 0; i < msg._bytes_miv_._count_miv_; i++) {
681
+ const v = msg._bytes_miv_._list_miv_._get_miv_(i);
682
+ this.TryGetObject(v._owner_miv_)?._setByte_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
683
+ }
684
+ for (let i = 0; i < msg._doubles_miv_._count_miv_; i++) {
685
+ const v = msg._doubles_miv_._list_miv_._get_miv_(i);
686
+ this.TryGetObject(v._owner_miv_)?._setDouble_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
687
+ }
688
+ for (let i = 0; i < msg._longs_miv_._count_miv_; i++) {
689
+ const v = msg._longs_miv_._list_miv_._get_miv_(i);
690
+ this.TryGetObject(v._owner_miv_)?._setLong_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
691
+ }
692
+ for (let i = 0; i < msg._ulongs_miv_._count_miv_; i++) {
693
+ const v = msg._ulongs_miv_._list_miv_._get_miv_(i);
694
+ this.TryGetObject(v._owner_miv_)?._setUlong_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
695
+ }
696
+ for (let i = 0; i < msg._datims_miv_._count_miv_; i++) {
697
+ const v = msg._datims_miv_._list_miv_._get_miv_(i);
698
+ this.TryGetObject(v._owner_miv_)?._setDateTime_miv_(v._value_utc_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
699
+ }
700
+ this._queriesTMP_miv_.clear();
701
+ }
702
+ _executeSingleDataMessage_miv_(msg, virtualUpdate) {
703
+ this._executeDataMessageWithinSetOfMessages_miv_(msg);
704
+ return this._finalizeExecuteModel_miv_(virtualUpdate);
705
+ }
706
+ _finalizeExecuteModel_miv_(virtualUpdate) {
707
+ for (let i = 0; i < this._newChildren_miv_._count_miv_; i++) {
708
+ const nc = this._newChildren_miv_._get_miv_(i);
709
+ const cu = nc._cUpdate_miv_;
710
+ const parent = this.TryGetObject(cu._newParentID_miv_);
711
+ if (parent !== undefined) {
712
+ cu._setupNewParentAsNewlyCreated_miv_(parent);
713
+ nc._setupNewParentAsNewlyCreated_miv_(parent);
714
+ }
715
+ }
716
+ this._newChildren_miv_._clear_miv_(256);
717
+ for (let i = 0; i < this._newRelations_miv_._count_miv_; i++) {
718
+ this._newRelations_miv_._get_miv_(i)._assignTarget_miv_();
719
+ }
720
+ for (let i = 0; i < this._cuCache_miv_._count_miv_; i++) {
721
+ const cu = this._cuCache_miv_._list_miv_._get_miv_(i);
722
+ if (!cu._validate_miv_())
723
+ cu._owner_miv_._markForDestruction_miv_();
724
+ }
725
+ for (let i = 0; i < this._newRelations_miv_._count_miv_; i++) {
726
+ this._newRelations_miv_._get_miv_(i)._validateTarget_miv_();
727
+ }
728
+ this._newRelations_miv_._clear_miv_(128);
729
+ for (let i = 0; i < this._cuCache_miv_._count_miv_; i++) {
730
+ this._cuCache_miv_._list_miv_._get_miv_(i)._executeDepthUpdate_miv_();
731
+ }
732
+ for (let i = 0; i < this._destroyedChildren_miv_._count_miv_; i++) {
733
+ const c = this._destroyedChildren_miv_._get_miv_(i)._owner_miv_;
734
+ this._children_miv_.delete(c.ID);
735
+ c._executeDestruction_miv_();
736
+ }
737
+ this._destroyedChildren_miv_._clear_miv_(128);
738
+ for (let i = 0; i < this._cuCache_miv_._count_miv_; i++) {
739
+ const cu = this._cuCache_miv_._list_miv_._get_miv_(i);
740
+ if (!cu._owner_miv_.IsDestroyed)
741
+ cu._owner_miv_._executeMovement_miv_(cu);
742
+ }
743
+ for (let i = 0; i < this._listsChanged_miv_._count_miv_; i++) {
744
+ this._listsChanged_miv_._get_miv_(i)._finalizeUpdate_miv_();
745
+ }
746
+ this._dataUpdate_miv_._executeAndReset_miv_(virtualUpdate);
747
+ for (let i = 0; i < this._listsChanged_miv_._count_miv_; i++) {
748
+ this._listsChanged_miv_._get_miv_(i)._clearUpdateMark_miv_();
749
+ }
750
+ this._listsChanged_miv_._clear_miv_(64);
751
+ this._cuCache_miv_._reset_miv_(256);
752
+ if (this._unloadIDList_miv_._count_miv_ > 0 && this._connection_miv_._isActive_miv_) {
753
+ const arrID = new Array(this._unloadIDList_miv_._count_miv_);
754
+ const arrCode = new Array(this._unloadCodeList_miv_._count_miv_);
755
+ for (let i = 0; i < arrID.length; i++) {
756
+ arrID[i] = this._unloadIDList_miv_._get_miv_(i);
757
+ arrCode[i] = this._unloadCodeList_miv_._get_miv_(i);
758
+ }
759
+ const uq = new UnloadQuery_1.UnloadQuery(arrID, arrCode);
760
+ this._unloadIDList_miv_._clear_miv_(8, false);
761
+ this._unloadCodeList_miv_._clear_miv_(8, false);
762
+ return this._connection_miv_._unloadAsync_miv_(uq);
763
+ }
764
+ }
765
+ _childDestroyed_miv_(c) {
766
+ this._children_miv_.delete(c.ID);
767
+ }
768
+ _protint_DataUpdateCompleted_miv_() { this.DataUpdateCompleted(this._dataUpdate_miv_); }
769
+ DataUpdateCompleted(mc) { }
770
+ async ExecuteVirtualUpdateAsync(virtualUpdate, updateView, lockToken = 0n) {
771
+ await this.TakeLockAsync(lockToken);
772
+ await this._executeVirtualUpdateAsync_must_have_lock_miv_(virtualUpdate);
773
+ if (updateView)
774
+ this._executeVUpdate_do_not_release_lock_miv();
775
+ this.ReleaseLock();
776
+ }
777
+ _executeVirtualUpdateAsync_must_have_lock_miv_(virtualUpdate) {
778
+ return this._finalizeExecuteModel_miv_(virtualUpdate);
779
+ }
780
+ _executeVUpdate_do_not_release_lock_miv() {
781
+ this._constructing_view_miv_ = undefined;
782
+ for (let i = 0; i < this._objectsChangedForV_miv_._count_miv_; i++) {
783
+ const o = this._objectsChangedForV_miv_._get_miv_(i);
784
+ for (let j = 0; j < o._views_miv_._count_miv_; j++) {
785
+ o._views_miv_._get_miv_(j)._modelUpdated_miv_();
786
+ }
787
+ }
788
+ while (this._vSetsToPreapare_miv_._count_miv_ > 0) {
789
+ do {
790
+ this._vSetsToPreapare_miv_._get_miv_(this._vSetsToPreapare_miv_._count_miv_ - 1)._prepareUpdate_miv_();
791
+ } while (this._vSetsToPreapare_miv_._count_miv_ > 0);
792
+ for (let i = 0; i < this._paginationsWithMaybeDestroyed_miv_._count_miv_; i++) {
793
+ this._paginationsWithMaybeDestroyed_miv_._get_miv_(i)._computeToDestroy_miv_();
794
+ }
795
+ this._paginationsWithMaybeDestroyed_miv_._clear_miv_(32);
796
+ }
797
+ for (let i = 0; i < this._vSetsUpdated_miv_._count_miv_; i++) {
798
+ this._vSetsUpdated_miv_._get_miv_(i)._computeUpdate_miv_();
799
+ }
800
+ for (let i = 0; i < this._vSetsUpdated_miv_._count_miv_; i++) {
801
+ this._vSetsUpdated_miv_._get_miv_(i)._executeUpdate_miv_(this._viewUpdate_miv_);
802
+ }
803
+ for (let i = 0; i < this._vWithModelUpdated_miv_._count_miv_; i++) {
804
+ this._vWithModelUpdated_miv_._get_miv_(i)._executeModelUpdated_miv_(this._viewUpdate_miv_);
805
+ }
806
+ for (let i = 0; i < this._vStatusChanged_miv_._count_miv_; i++) {
807
+ this._vStatusChanged_miv_._get_miv_(i)._executeStatusUpdate_miv_(this._viewUpdate_miv_);
808
+ }
809
+ for (let i = 0; i < this._fieldsChangedForV_miv_._count_miv_; i++) {
810
+ this._fieldsChangedForV_miv_._get_miv_(i)._executeVChanged_miv_(this._viewUpdate_miv_);
811
+ }
812
+ for (let i = 0; i < this._uwTriggered_miv_._count_miv_; i++) {
813
+ this._uwTriggered_miv_._get_miv_(i)._executeTriggered_miv_(this._viewUpdate_miv_);
814
+ }
815
+ for (let i = 0; i < this._vStatusChanged_miv_._count_miv_; i++) {
816
+ this._vStatusChanged_miv_._get_miv_(i)._clearStatusUpdate_miv_();
817
+ }
818
+ for (let i = 0; i < this._vIndexChanged_miv_._count_miv_; i++) {
819
+ this._vIndexChanged_miv_._get_miv_(i)._protint_IndexChanged_miv_(this._viewUpdate_miv_);
820
+ }
821
+ this._viewUpdate_miv_._executeAndReset_miv_();
822
+ for (let i = 0; i < this._objectsChangedForV_miv_._count_miv_; i++) {
823
+ this._objectsChangedForV_miv_._get_miv_(i)._clearVChangedMark_miv_();
824
+ }
825
+ this._objectsChangedForV_miv_._clear_miv_(128);
826
+ for (let i = 0; i < this._fieldsChangedForV_miv_._count_miv_; i++) {
827
+ this._fieldsChangedForV_miv_._get_miv_(i)._clearVChangedMark_miv_();
828
+ }
829
+ this._fieldsChangedForV_miv_._clear_miv_(256);
830
+ for (let i = 0; i < this._uwTriggered_miv_._count_miv_; i++) {
831
+ this._uwTriggered_miv_._get_miv_(i)._clearTriggerMark_miv_();
832
+ }
833
+ this._uwTriggered_miv_._clear_miv_(16);
834
+ this._vWithModelUpdated_miv_._clear_miv_(256);
835
+ this._vStatusChanged_miv_._clear_miv_(256);
836
+ this._vSetsUpdated_miv_._clear_miv_(128);
837
+ this._vIndexChanged_miv_._clear_miv_(128);
838
+ }
839
+ _protint_ViewUpdateCompleted_miv_(vc) { this.ViewUpdateCompleted(vc); }
840
+ ViewUpdateCompleted(vc) { }
841
+ _creatingVBound_miv_(vs) {
842
+ this._owner_set_miv_ = vs;
843
+ }
844
+ _vBoundCreating_miv_() {
845
+ if (this._owner_set_miv_ === undefined) {
846
+ this._constructing_view_miv_ = undefined;
847
+ throw new Error("you cannot create a VBoundObject outside of a VSet update");
848
+ }
849
+ else {
850
+ return this._owner_set_miv_;
851
+ }
852
+ }
853
+ _vBoundCreated_miv_() {
854
+ this._constructing_view_miv_ = undefined;
855
+ this._owner_set_miv_ = undefined;
856
+ }
857
+ }
858
+ exports.MIVClient = MIVClient;
859
+ MIVClient.TOKEN_BASE_miv_ = 111n;
860
+ MIVClient.EMPTY_RESPONSE_PAYLOAD = new ArrayBuffer(0);
861
+ MIVClient.MAX_CUSTOM_READ_REQUEST_LENGTH = 32768;
862
+ //# sourceMappingURL=MIVClient.js.map