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