@hpcc-js/comms 2.98.0 → 3.1.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 (525) hide show
  1. package/dist/index.js +6 -10388
  2. package/dist/index.js.map +7 -1
  3. package/dist/index.node.js +925 -10845
  4. package/dist/index.node.js.map +7 -1
  5. package/package.json +55 -60
  6. package/src/__package__.ts +1 -1
  7. package/src/clienttools/eclMeta.ts +1 -1
  8. package/src/clienttools/eclcc.ts +1 -1
  9. package/src/ecl/activity.ts +3 -3
  10. package/src/ecl/dfuWorkunit.ts +5 -5
  11. package/src/ecl/graph.ts +4 -4
  12. package/src/ecl/logicalFile.ts +3 -3
  13. package/src/ecl/machine.ts +2 -2
  14. package/src/ecl/query.ts +12 -12
  15. package/src/ecl/queryGraph.ts +3 -3
  16. package/src/ecl/resource.ts +1 -1
  17. package/src/ecl/result.ts +4 -4
  18. package/src/ecl/scope.ts +2 -2
  19. package/src/ecl/sourceFile.ts +2 -2
  20. package/src/ecl/store.ts +3 -3
  21. package/src/ecl/targetCluster.ts +4 -4
  22. package/src/ecl/timer.ts +2 -2
  23. package/src/ecl/topology.ts +3 -3
  24. package/src/ecl/workunit.ts +11 -11
  25. package/src/ecl/xsdParser.ts +0 -1
  26. package/src/espConnection.ts +1 -1
  27. package/src/index-common.ts +38 -38
  28. package/src/index.node.ts +9 -5
  29. package/src/index.ts +1 -3
  30. package/src/services/fileSpray.ts +1 -1
  31. package/src/services/wsAccess.ts +1 -1
  32. package/src/services/wsAccount.ts +2 -2
  33. package/src/services/wsCloud.ts +1 -1
  34. package/src/services/wsCodesign.ts +2 -2
  35. package/src/services/wsDFU.ts +1 -1
  36. package/src/services/wsDFUXRef.ts +2 -2
  37. package/src/services/wsDali.ts +1 -1
  38. package/src/services/wsEcl.ts +2 -2
  39. package/src/services/wsElk.ts +1 -1
  40. package/src/services/wsLogaccess.ts +3 -3
  41. package/src/services/wsMachine.ts +1 -1
  42. package/src/services/wsPackageProcess.ts +1 -1
  43. package/src/services/wsResources.ts +1 -1
  44. package/src/services/wsSMC.ts +2 -2
  45. package/src/services/wsSasha.ts +1 -1
  46. package/src/services/wsStore.ts +2 -2
  47. package/src/services/wsTopology.ts +2 -2
  48. package/src/services/wsWorkunits.ts +3 -3
  49. package/src/services/wsdl/FileSpray/v1.23/FileSpray.ts +828 -828
  50. package/src/services/wsdl/FileSpray/v1.25/FileSpray.ts +2 -2
  51. package/src/services/wsdl/FileSpray/v1.26/FileSpray.ts +2 -2
  52. package/src/services/wsdl/WsCloud/v1/WsCloud.ts +20 -20
  53. package/src/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.ts +165 -165
  54. package/src/services/wsdl/WsDali/v1.04/WsDali.ts +2 -2
  55. package/src/services/wsdl/WsDali/v1.07/WsDali.ts +2 -2
  56. package/src/services/wsdl/WsDfu/v1.62/WsDfu.ts +2 -2
  57. package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +2 -2
  58. package/src/services/wsdl/WsDfu/v1.65/WsDfu.ts +2 -2
  59. package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +86 -86
  60. package/src/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts +434 -434
  61. package/src/services/wsdl/WsResources/v1.01/WsResources.ts +2 -2
  62. package/src/services/wsdl/WsSMC/v1.24/WsSMC.ts +514 -514
  63. package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +2 -2
  64. package/src/services/wsdl/WsSasha/v1.01/WsSasha.ts +2 -2
  65. package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +2 -2
  66. package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +2 -2
  67. package/src/services/wsdl/WsWorkunits/v1.88/WsWorkunits.ts +2415 -2415
  68. package/src/services/wsdl/WsWorkunits/v1.94/WsWorkunits.ts +2 -2
  69. package/src/services/wsdl/WsWorkunits/v1.95/WsWorkunits.ts +2 -2
  70. package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +2 -2
  71. package/src/services/wsdl/WsWorkunits/v1.98/WsWorkunits.ts +2 -2
  72. package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +2 -2
  73. package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +2 -2
  74. package/src/services/wsdl/ws_access/v1.16/ws_access.ts +953 -953
  75. package/src/services/wsdl/ws_access/v1.17/ws_access.ts +2 -2
  76. package/src/services/wsdl/ws_account/v1.05/ws_account.ts +78 -78
  77. package/src/services/wsdl/ws_account/v1.06/ws_account.ts +2 -2
  78. package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +68 -68
  79. package/src/services/wsdl/ws_elk/v1/ws_elk.ts +29 -29
  80. package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +54 -54
  81. package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +2 -2
  82. package/src/services/wsdl/ws_logaccess/v1.03/ws_logaccess.ts +2 -2
  83. package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +2 -2
  84. package/src/services/wsdl/ws_logaccess/v1.05/ws_logaccess.ts +2 -2
  85. package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +2 -2
  86. package/src/services/wsdl/wsstore/v1.02/wsstore.ts +213 -213
  87. package/types/__package__.d.ts +1 -2
  88. package/types/clienttools/eclMeta.d.ts +1 -2
  89. package/types/clienttools/eclcc.d.ts +1 -2
  90. package/types/connection.d.ts +0 -1
  91. package/types/ecl/activity.d.ts +3 -4
  92. package/types/ecl/dfuWorkunit.d.ts +4 -5
  93. package/types/ecl/graph.d.ts +4 -5
  94. package/types/ecl/logicalFile.d.ts +2 -3
  95. package/types/ecl/machine.d.ts +2 -3
  96. package/types/ecl/query.d.ts +6 -7
  97. package/types/ecl/queryGraph.d.ts +0 -1
  98. package/types/ecl/resource.d.ts +1 -2
  99. package/types/ecl/result.d.ts +4 -5
  100. package/types/ecl/scope.d.ts +2 -3
  101. package/types/ecl/sourceFile.d.ts +2 -3
  102. package/types/ecl/store.d.ts +3 -4
  103. package/types/ecl/targetCluster.d.ts +4 -5
  104. package/types/ecl/timer.d.ts +2 -3
  105. package/types/ecl/topology.d.ts +3 -4
  106. package/types/ecl/workunit.d.ts +10 -11
  107. package/types/ecl/xsdParser.d.ts +0 -1
  108. package/types/espConnection.d.ts +1 -2
  109. package/types/index-common.d.ts +38 -39
  110. package/types/index.node.d.ts +3 -4
  111. package/types/pem/trustwave.d.ts +0 -1
  112. package/types/services/fileSpray.d.ts +1 -2
  113. package/types/services/wsAccess.d.ts +1 -2
  114. package/types/services/wsAccount.d.ts +1 -2
  115. package/types/services/wsCloud.d.ts +1 -2
  116. package/types/services/wsCodesign.d.ts +1 -2
  117. package/types/services/wsDFU.d.ts +1 -2
  118. package/types/services/wsDFUXRef.d.ts +2 -3
  119. package/types/services/wsDali.d.ts +1 -2
  120. package/types/services/wsEcl.d.ts +2 -3
  121. package/types/services/wsElk.d.ts +1 -2
  122. package/types/services/wsLogaccess.d.ts +1 -2
  123. package/types/services/wsMachine.d.ts +1 -2
  124. package/types/services/wsPackageProcess.d.ts +1 -2
  125. package/types/services/wsResources.d.ts +1 -2
  126. package/types/services/wsSMC.d.ts +2 -3
  127. package/types/services/wsSasha.d.ts +1 -2
  128. package/types/services/wsStore.d.ts +2 -3
  129. package/types/services/wsTopology.d.ts +2 -3
  130. package/types/services/wsWorkunits.d.ts +3 -4
  131. package/types/services/wsdl/FileSpray/v1.26/FileSpray.d.ts +2 -3
  132. package/types/services/wsdl/WsCloud/v1/WsCloud.d.ts +2 -3
  133. package/types/services/wsdl/WsDali/v1.07/WsDali.d.ts +2 -3
  134. package/types/services/wsdl/WsDfu/v1.65/WsDfu.d.ts +2 -3
  135. package/types/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts +2 -3
  136. package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts +2 -3
  137. package/types/services/wsdl/WsSMC/v1.27/WsSMC.d.ts +2 -3
  138. package/types/services/wsdl/WsSasha/v1.01/WsSasha.d.ts +2 -3
  139. package/types/services/wsdl/WsTopology/v1.32/WsTopology.d.ts +2 -3
  140. package/types/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts +2 -3
  141. package/types/services/wsdl/ws_access/v1.17/ws_access.d.ts +2 -3
  142. package/types/services/wsdl/ws_account/v1.06/ws_account.d.ts +2 -3
  143. package/types/services/wsdl/ws_elk/v1/ws_elk.d.ts +2 -3
  144. package/types/services/wsdl/ws_logaccess/v1.05/ws_logaccess.d.ts +2 -3
  145. package/types/services/wsdl/ws_machine/v1.17/ws_machine.d.ts +2 -3
  146. package/dist/index.es6.js +0 -10704
  147. package/dist/index.es6.js.map +0 -1
  148. package/dist/index.min.js +0 -2
  149. package/dist/index.min.js.map +0 -1
  150. package/dist/index.node.min.js +0 -2
  151. package/dist/index.node.min.js.map +0 -1
  152. package/lib-es6/__package__.js +0 -4
  153. package/lib-es6/__package__.js.map +0 -1
  154. package/lib-es6/__tests__/dfuXRef.js +0 -32
  155. package/lib-es6/__tests__/dfuXRef.js.map +0 -1
  156. package/lib-es6/__tests__/https.js +0 -60
  157. package/lib-es6/__tests__/https.js.map +0 -1
  158. package/lib-es6/__tests__/workunit.js +0 -71
  159. package/lib-es6/__tests__/workunit.js.map +0 -1
  160. package/lib-es6/clienttools/eclMeta.js +0 -463
  161. package/lib-es6/clienttools/eclMeta.js.map +0 -1
  162. package/lib-es6/clienttools/eclcc.js +0 -585
  163. package/lib-es6/clienttools/eclcc.js.map +0 -1
  164. package/lib-es6/connection.js +0 -254
  165. package/lib-es6/connection.js.map +0 -1
  166. package/lib-es6/ecl/activity.js +0 -172
  167. package/lib-es6/ecl/activity.js.map +0 -1
  168. package/lib-es6/ecl/dfuWorkunit.js +0 -591
  169. package/lib-es6/ecl/dfuWorkunit.js.map +0 -1
  170. package/lib-es6/ecl/graph.js +0 -289
  171. package/lib-es6/ecl/graph.js.map +0 -1
  172. package/lib-es6/ecl/logicalFile.js +0 -391
  173. package/lib-es6/ecl/logicalFile.js.map +0 -1
  174. package/lib-es6/ecl/machine.js +0 -159
  175. package/lib-es6/ecl/machine.js.map +0 -1
  176. package/lib-es6/ecl/query.js +0 -422
  177. package/lib-es6/ecl/query.js.map +0 -1
  178. package/lib-es6/ecl/queryGraph.js +0 -759
  179. package/lib-es6/ecl/queryGraph.js.map +0 -1
  180. package/lib-es6/ecl/resource.js +0 -47
  181. package/lib-es6/ecl/resource.js.map +0 -1
  182. package/lib-es6/ecl/result.js +0 -288
  183. package/lib-es6/ecl/result.js.map +0 -1
  184. package/lib-es6/ecl/scope.js +0 -234
  185. package/lib-es6/ecl/scope.js.map +0 -1
  186. package/lib-es6/ecl/sourceFile.js +0 -60
  187. package/lib-es6/ecl/sourceFile.js.map +0 -1
  188. package/lib-es6/ecl/store.js +0 -166
  189. package/lib-es6/ecl/store.js.map +0 -1
  190. package/lib-es6/ecl/targetCluster.js +0 -194
  191. package/lib-es6/ecl/targetCluster.js.map +0 -1
  192. package/lib-es6/ecl/timer.js +0 -76
  193. package/lib-es6/ecl/timer.js.map +0 -1
  194. package/lib-es6/ecl/topology.js +0 -156
  195. package/lib-es6/ecl/topology.js.map +0 -1
  196. package/lib-es6/ecl/workunit.js +0 -1553
  197. package/lib-es6/ecl/workunit.js.map +0 -1
  198. package/lib-es6/ecl/xsdParser.js +0 -253
  199. package/lib-es6/ecl/xsdParser.js.map +0 -1
  200. package/lib-es6/espConnection.js +0 -148
  201. package/lib-es6/espConnection.js.map +0 -1
  202. package/lib-es6/index-common.js +0 -39
  203. package/lib-es6/index-common.js.map +0 -1
  204. package/lib-es6/index.js +0 -3
  205. package/lib-es6/index.js.map +0 -1
  206. package/lib-es6/index.node.js +0 -64
  207. package/lib-es6/index.node.js.map +0 -1
  208. package/lib-es6/pem/trustwave.js +0 -2
  209. package/lib-es6/pem/trustwave.js.map +0 -1
  210. package/lib-es6/services/fileSpray.js +0 -40
  211. package/lib-es6/services/fileSpray.js.map +0 -1
  212. package/lib-es6/services/wsAccess.js +0 -12
  213. package/lib-es6/services/wsAccess.js.map +0 -1
  214. package/lib-es6/services/wsAccount.js +0 -27
  215. package/lib-es6/services/wsAccount.js.map +0 -1
  216. package/lib-es6/services/wsCloud.js +0 -23
  217. package/lib-es6/services/wsCloud.js.map +0 -1
  218. package/lib-es6/services/wsCodesign.js +0 -26
  219. package/lib-es6/services/wsCodesign.js.map +0 -1
  220. package/lib-es6/services/wsDFU.js +0 -19
  221. package/lib-es6/services/wsDFU.js.map +0 -1
  222. package/lib-es6/services/wsDFUXRef.js +0 -45
  223. package/lib-es6/services/wsDFUXRef.js.map +0 -1
  224. package/lib-es6/services/wsDali.js +0 -11
  225. package/lib-es6/services/wsDali.js.map +0 -1
  226. package/lib-es6/services/wsEcl.js +0 -111
  227. package/lib-es6/services/wsEcl.js.map +0 -1
  228. package/lib-es6/services/wsElk.js +0 -11
  229. package/lib-es6/services/wsElk.js.map +0 -1
  230. package/lib-es6/services/wsLogaccess.js +0 -226
  231. package/lib-es6/services/wsLogaccess.js.map +0 -1
  232. package/lib-es6/services/wsMachine.js +0 -57
  233. package/lib-es6/services/wsMachine.js.map +0 -1
  234. package/lib-es6/services/wsPackageProcess.js +0 -11
  235. package/lib-es6/services/wsPackageProcess.js.map +0 -1
  236. package/lib-es6/services/wsResources.js +0 -11
  237. package/lib-es6/services/wsResources.js.map +0 -1
  238. package/lib-es6/services/wsSMC.js +0 -22
  239. package/lib-es6/services/wsSMC.js.map +0 -1
  240. package/lib-es6/services/wsSasha.js +0 -12
  241. package/lib-es6/services/wsSasha.js.map +0 -1
  242. package/lib-es6/services/wsStore.js +0 -56
  243. package/lib-es6/services/wsStore.js.map +0 -1
  244. package/lib-es6/services/wsTopology.js +0 -45
  245. package/lib-es6/services/wsTopology.js.map +0 -1
  246. package/lib-es6/services/wsWorkunits.js +0 -136
  247. package/lib-es6/services/wsWorkunits.js.map +0 -1
  248. package/lib-es6/services/wsdl/FileSpray/v1.23/FileSpray.js +0 -110
  249. package/lib-es6/services/wsdl/FileSpray/v1.23/FileSpray.js.map +0 -1
  250. package/lib-es6/services/wsdl/FileSpray/v1.25/FileSpray.js +0 -116
  251. package/lib-es6/services/wsdl/FileSpray/v1.25/FileSpray.js.map +0 -1
  252. package/lib-es6/services/wsdl/FileSpray/v1.26/FileSpray.js +0 -119
  253. package/lib-es6/services/wsdl/FileSpray/v1.26/FileSpray.js.map +0 -1
  254. package/lib-es6/services/wsdl/WsCloud/v1/WsCloud.js +0 -17
  255. package/lib-es6/services/wsdl/WsCloud/v1/WsCloud.js.map +0 -1
  256. package/lib-es6/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.js +0 -47
  257. package/lib-es6/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.js.map +0 -1
  258. package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js +0 -68
  259. package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js.map +0 -1
  260. package/lib-es6/services/wsdl/WsDali/v1.07/WsDali.js +0 -101
  261. package/lib-es6/services/wsdl/WsDali/v1.07/WsDali.js.map +0 -1
  262. package/lib-es6/services/wsdl/WsDfu/v1.62/WsDfu.js +0 -142
  263. package/lib-es6/services/wsdl/WsDfu/v1.62/WsDfu.js.map +0 -1
  264. package/lib-es6/services/wsdl/WsDfu/v1.63/WsDfu.js +0 -145
  265. package/lib-es6/services/wsdl/WsDfu/v1.63/WsDfu.js.map +0 -1
  266. package/lib-es6/services/wsdl/WsDfu/v1.65/WsDfu.js +0 -145
  267. package/lib-es6/services/wsdl/WsDfu/v1.65/WsDfu.js.map +0 -1
  268. package/lib-es6/services/wsdl/WsFileIO/v1.01/WsFileIO.js +0 -23
  269. package/lib-es6/services/wsdl/WsFileIO/v1.01/WsFileIO.js.map +0 -1
  270. package/lib-es6/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.js +0 -62
  271. package/lib-es6/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.js.map +0 -1
  272. package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js +0 -20
  273. package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js.map +0 -1
  274. package/lib-es6/services/wsdl/WsSMC/v1.24/WsSMC.js +0 -93
  275. package/lib-es6/services/wsdl/WsSMC/v1.24/WsSMC.js.map +0 -1
  276. package/lib-es6/services/wsdl/WsSMC/v1.27/WsSMC.js +0 -99
  277. package/lib-es6/services/wsdl/WsSMC/v1.27/WsSMC.js.map +0 -1
  278. package/lib-es6/services/wsdl/WsSasha/v1.01/WsSasha.js +0 -34
  279. package/lib-es6/services/wsdl/WsSasha/v1.01/WsSasha.js.map +0 -1
  280. package/lib-es6/services/wsdl/WsTopology/v1.31/WsTopology.js +0 -80
  281. package/lib-es6/services/wsdl/WsTopology/v1.31/WsTopology.js.map +0 -1
  282. package/lib-es6/services/wsdl/WsTopology/v1.32/WsTopology.js +0 -83
  283. package/lib-es6/services/wsdl/WsTopology/v1.32/WsTopology.js.map +0 -1
  284. package/lib-es6/services/wsdl/WsWorkunits/v1.88/WsWorkunits.js +0 -328
  285. package/lib-es6/services/wsdl/WsWorkunits/v1.88/WsWorkunits.js.map +0 -1
  286. package/lib-es6/services/wsdl/WsWorkunits/v1.94/WsWorkunits.js +0 -354
  287. package/lib-es6/services/wsdl/WsWorkunits/v1.94/WsWorkunits.js.map +0 -1
  288. package/lib-es6/services/wsdl/WsWorkunits/v1.95/WsWorkunits.js +0 -354
  289. package/lib-es6/services/wsdl/WsWorkunits/v1.95/WsWorkunits.js.map +0 -1
  290. package/lib-es6/services/wsdl/WsWorkunits/v1.97/WsWorkunits.js +0 -376
  291. package/lib-es6/services/wsdl/WsWorkunits/v1.97/WsWorkunits.js.map +0 -1
  292. package/lib-es6/services/wsdl/WsWorkunits/v1.98/WsWorkunits.js +0 -370
  293. package/lib-es6/services/wsdl/WsWorkunits/v1.98/WsWorkunits.js.map +0 -1
  294. package/lib-es6/services/wsdl/WsWorkunits/v1.99/WsWorkunits.js +0 -376
  295. package/lib-es6/services/wsdl/WsWorkunits/v1.99/WsWorkunits.js.map +0 -1
  296. package/lib-es6/services/wsdl/WsWorkunits/v2/WsWorkunits.js +0 -376
  297. package/lib-es6/services/wsdl/WsWorkunits/v2/WsWorkunits.js.map +0 -1
  298. package/lib-es6/services/wsdl/ws_access/v1.16/ws_access.js +0 -203
  299. package/lib-es6/services/wsdl/ws_access/v1.16/ws_access.js.map +0 -1
  300. package/lib-es6/services/wsdl/ws_access/v1.17/ws_access.js +0 -200
  301. package/lib-es6/services/wsdl/ws_access/v1.17/ws_access.js.map +0 -1
  302. package/lib-es6/services/wsdl/ws_account/v1.05/ws_account.js +0 -26
  303. package/lib-es6/services/wsdl/ws_account/v1.05/ws_account.js.map +0 -1
  304. package/lib-es6/services/wsdl/ws_account/v1.06/ws_account.js +0 -26
  305. package/lib-es6/services/wsdl/ws_account/v1.06/ws_account.js.map +0 -1
  306. package/lib-es6/services/wsdl/ws_codesign/v1.1/ws_codesign.js +0 -27
  307. package/lib-es6/services/wsdl/ws_codesign/v1.1/ws_codesign.js.map +0 -1
  308. package/lib-es6/services/wsdl/ws_elk/v1/ws_elk.js +0 -17
  309. package/lib-es6/services/wsdl/ws_elk/v1/ws_elk.js.map +0 -1
  310. package/lib-es6/services/wsdl/ws_logaccess/v1/ws_logaccess.js +0 -28
  311. package/lib-es6/services/wsdl/ws_logaccess/v1/ws_logaccess.js.map +0 -1
  312. package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js +0 -47
  313. package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js.map +0 -1
  314. package/lib-es6/services/wsdl/ws_logaccess/v1.03/ws_logaccess.js +0 -63
  315. package/lib-es6/services/wsdl/ws_logaccess/v1.03/ws_logaccess.js.map +0 -1
  316. package/lib-es6/services/wsdl/ws_logaccess/v1.04/ws_logaccess.js +0 -85
  317. package/lib-es6/services/wsdl/ws_logaccess/v1.04/ws_logaccess.js.map +0 -1
  318. package/lib-es6/services/wsdl/ws_logaccess/v1.05/ws_logaccess.js +0 -88
  319. package/lib-es6/services/wsdl/ws_logaccess/v1.05/ws_logaccess.js.map +0 -1
  320. package/lib-es6/services/wsdl/ws_machine/v1.17/ws_machine.js +0 -41
  321. package/lib-es6/services/wsdl/ws_machine/v1.17/ws_machine.js.map +0 -1
  322. package/lib-es6/services/wsdl/wsstore/v1.02/wsstore.js +0 -44
  323. package/lib-es6/services/wsdl/wsstore/v1.02/wsstore.js.map +0 -1
  324. package/src/__tests__/dfuXRef.ts +0 -22
  325. package/src/__tests__/https.ts +0 -69
  326. package/src/__tests__/workunit.ts +0 -35
  327. package/types/__package__.d.ts.map +0 -1
  328. package/types/__tests__/dfuXRef.d.ts +0 -2
  329. package/types/__tests__/dfuXRef.d.ts.map +0 -1
  330. package/types/__tests__/https.d.ts +0 -2
  331. package/types/__tests__/https.d.ts.map +0 -1
  332. package/types/__tests__/workunit.d.ts +0 -2
  333. package/types/__tests__/workunit.d.ts.map +0 -1
  334. package/types/clienttools/eclMeta.d.ts.map +0 -1
  335. package/types/clienttools/eclcc.d.ts.map +0 -1
  336. package/types/connection.d.ts.map +0 -1
  337. package/types/ecl/activity.d.ts.map +0 -1
  338. package/types/ecl/dfuWorkunit.d.ts.map +0 -1
  339. package/types/ecl/graph.d.ts.map +0 -1
  340. package/types/ecl/logicalFile.d.ts.map +0 -1
  341. package/types/ecl/machine.d.ts.map +0 -1
  342. package/types/ecl/query.d.ts.map +0 -1
  343. package/types/ecl/queryGraph.d.ts.map +0 -1
  344. package/types/ecl/resource.d.ts.map +0 -1
  345. package/types/ecl/result.d.ts.map +0 -1
  346. package/types/ecl/scope.d.ts.map +0 -1
  347. package/types/ecl/sourceFile.d.ts.map +0 -1
  348. package/types/ecl/store.d.ts.map +0 -1
  349. package/types/ecl/targetCluster.d.ts.map +0 -1
  350. package/types/ecl/timer.d.ts.map +0 -1
  351. package/types/ecl/topology.d.ts.map +0 -1
  352. package/types/ecl/workunit.d.ts.map +0 -1
  353. package/types/ecl/xsdParser.d.ts.map +0 -1
  354. package/types/espConnection.d.ts.map +0 -1
  355. package/types/index-common.d.ts.map +0 -1
  356. package/types/index.d.ts +0 -3
  357. package/types/index.d.ts.map +0 -1
  358. package/types/index.node.d.ts.map +0 -1
  359. package/types/pem/trustwave.d.ts.map +0 -1
  360. package/types/services/fileSpray.d.ts.map +0 -1
  361. package/types/services/wsAccess.d.ts.map +0 -1
  362. package/types/services/wsAccount.d.ts.map +0 -1
  363. package/types/services/wsCloud.d.ts.map +0 -1
  364. package/types/services/wsCodesign.d.ts.map +0 -1
  365. package/types/services/wsDFU.d.ts.map +0 -1
  366. package/types/services/wsDFUXRef.d.ts.map +0 -1
  367. package/types/services/wsDali.d.ts.map +0 -1
  368. package/types/services/wsEcl.d.ts.map +0 -1
  369. package/types/services/wsElk.d.ts.map +0 -1
  370. package/types/services/wsLogaccess.d.ts.map +0 -1
  371. package/types/services/wsMachine.d.ts.map +0 -1
  372. package/types/services/wsPackageProcess.d.ts.map +0 -1
  373. package/types/services/wsResources.d.ts.map +0 -1
  374. package/types/services/wsSMC.d.ts.map +0 -1
  375. package/types/services/wsSasha.d.ts.map +0 -1
  376. package/types/services/wsStore.d.ts.map +0 -1
  377. package/types/services/wsTopology.d.ts.map +0 -1
  378. package/types/services/wsWorkunits.d.ts.map +0 -1
  379. package/types/services/wsdl/FileSpray/v1.23/FileSpray.d.ts +0 -830
  380. package/types/services/wsdl/FileSpray/v1.23/FileSpray.d.ts.map +0 -1
  381. package/types/services/wsdl/FileSpray/v1.25/FileSpray.d.ts +0 -856
  382. package/types/services/wsdl/FileSpray/v1.25/FileSpray.d.ts.map +0 -1
  383. package/types/services/wsdl/FileSpray/v1.26/FileSpray.d.ts.map +0 -1
  384. package/types/services/wsdl/WsCloud/v1/WsCloud.d.ts.map +0 -1
  385. package/types/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts +0 -148
  386. package/types/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts.map +0 -1
  387. package/types/services/wsdl/WsDali/v1.04/WsDali.d.ts +0 -125
  388. package/types/services/wsdl/WsDali/v1.04/WsDali.d.ts.map +0 -1
  389. package/types/services/wsdl/WsDali/v1.07/WsDali.d.ts.map +0 -1
  390. package/types/services/wsdl/WsDfu/v1.62/WsDfu.d.ts +0 -1224
  391. package/types/services/wsdl/WsDfu/v1.62/WsDfu.d.ts.map +0 -1
  392. package/types/services/wsdl/WsDfu/v1.63/WsDfu.d.ts +0 -1233
  393. package/types/services/wsdl/WsDfu/v1.63/WsDfu.d.ts.map +0 -1
  394. package/types/services/wsdl/WsDfu/v1.65/WsDfu.d.ts.map +0 -1
  395. package/types/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts +0 -77
  396. package/types/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts.map +0 -1
  397. package/types/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts.map +0 -1
  398. package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts.map +0 -1
  399. package/types/services/wsdl/WsSMC/v1.24/WsSMC.d.ts +0 -515
  400. package/types/services/wsdl/WsSMC/v1.24/WsSMC.d.ts.map +0 -1
  401. package/types/services/wsdl/WsSMC/v1.27/WsSMC.d.ts.map +0 -1
  402. package/types/services/wsdl/WsSasha/v1.01/WsSasha.d.ts.map +0 -1
  403. package/types/services/wsdl/WsTopology/v1.31/WsTopology.d.ts +0 -694
  404. package/types/services/wsdl/WsTopology/v1.31/WsTopology.d.ts.map +0 -1
  405. package/types/services/wsdl/WsTopology/v1.32/WsTopology.d.ts.map +0 -1
  406. package/types/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts +0 -2405
  407. package/types/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts.map +0 -1
  408. package/types/services/wsdl/WsWorkunits/v1.94/WsWorkunits.d.ts +0 -2520
  409. package/types/services/wsdl/WsWorkunits/v1.94/WsWorkunits.d.ts.map +0 -1
  410. package/types/services/wsdl/WsWorkunits/v1.95/WsWorkunits.d.ts +0 -2521
  411. package/types/services/wsdl/WsWorkunits/v1.95/WsWorkunits.d.ts.map +0 -1
  412. package/types/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts +0 -2529
  413. package/types/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts.map +0 -1
  414. package/types/services/wsdl/WsWorkunits/v1.98/WsWorkunits.d.ts +0 -2623
  415. package/types/services/wsdl/WsWorkunits/v1.98/WsWorkunits.d.ts.map +0 -1
  416. package/types/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts +0 -2555
  417. package/types/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts.map +0 -1
  418. package/types/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts.map +0 -1
  419. package/types/services/wsdl/ws_access/v1.16/ws_access.d.ts +0 -778
  420. package/types/services/wsdl/ws_access/v1.16/ws_access.d.ts.map +0 -1
  421. package/types/services/wsdl/ws_access/v1.17/ws_access.d.ts.map +0 -1
  422. package/types/services/wsdl/ws_account/v1.05/ws_account.d.ts +0 -74
  423. package/types/services/wsdl/ws_account/v1.05/ws_account.d.ts.map +0 -1
  424. package/types/services/wsdl/ws_account/v1.06/ws_account.d.ts.map +0 -1
  425. package/types/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts +0 -67
  426. package/types/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts.map +0 -1
  427. package/types/services/wsdl/ws_elk/v1/ws_elk.d.ts.map +0 -1
  428. package/types/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts +0 -56
  429. package/types/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts.map +0 -1
  430. package/types/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts +0 -126
  431. package/types/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts.map +0 -1
  432. package/types/services/wsdl/ws_logaccess/v1.03/ws_logaccess.d.ts +0 -150
  433. package/types/services/wsdl/ws_logaccess/v1.03/ws_logaccess.d.ts.map +0 -1
  434. package/types/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts +0 -171
  435. package/types/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts.map +0 -1
  436. package/types/services/wsdl/ws_logaccess/v1.05/ws_logaccess.d.ts.map +0 -1
  437. package/types/services/wsdl/ws_machine/v1.17/ws_machine.d.ts.map +0 -1
  438. package/types/services/wsdl/wsstore/v1.02/wsstore.d.ts +0 -179
  439. package/types/services/wsdl/wsstore/v1.02/wsstore.d.ts.map +0 -1
  440. package/types-3.4/__package__.d.ts +0 -4
  441. package/types-3.4/__tests__/dfuXRef.d.ts +0 -2
  442. package/types-3.4/__tests__/https.d.ts +0 -2
  443. package/types-3.4/__tests__/workunit.d.ts +0 -2
  444. package/types-3.4/clienttools/eclMeta.d.ts +0 -124
  445. package/types-3.4/clienttools/eclcc.d.ts +0 -105
  446. package/types-3.4/connection.d.ts +0 -43
  447. package/types-3.4/ecl/activity.d.ts +0 -40
  448. package/types-3.4/ecl/dfuWorkunit.d.ts +0 -103
  449. package/types-3.4/ecl/graph.d.ts +0 -46
  450. package/types-3.4/ecl/logicalFile.d.ts +0 -91
  451. package/types-3.4/ecl/machine.d.ts +0 -40
  452. package/types-3.4/ecl/query.d.ts +0 -70
  453. package/types-3.4/ecl/queryGraph.d.ts +0 -101
  454. package/types-3.4/ecl/resource.d.ts +0 -16
  455. package/types-3.4/ecl/result.d.ts +0 -88
  456. package/types-3.4/ecl/scope.d.ts +0 -55
  457. package/types-3.4/ecl/sourceFile.d.ts +0 -19
  458. package/types-3.4/ecl/store.d.ts +0 -40
  459. package/types-3.4/ecl/targetCluster.d.ts +0 -43
  460. package/types-3.4/ecl/timer.d.ts +0 -24
  461. package/types-3.4/ecl/topology.d.ts +0 -33
  462. package/types-3.4/ecl/workunit.d.ts +0 -275
  463. package/types-3.4/ecl/xsdParser.d.ts +0 -42
  464. package/types-3.4/espConnection.d.ts +0 -42
  465. package/types-3.4/index-common.d.ts +0 -39
  466. package/types-3.4/index.d.ts +0 -3
  467. package/types-3.4/index.node.d.ts +0 -4
  468. package/types-3.4/pem/trustwave.d.ts +0 -2
  469. package/types-3.4/services/fileSpray.d.ts +0 -27
  470. package/types-3.4/services/wsAccess.d.ts +0 -5
  471. package/types-3.4/services/wsAccount.d.ts +0 -6
  472. package/types-3.4/services/wsCloud.d.ts +0 -6
  473. package/types-3.4/services/wsCodesign.d.ts +0 -57
  474. package/types-3.4/services/wsDFU.d.ts +0 -11
  475. package/types-3.4/services/wsDFUXRef.d.ts +0 -220
  476. package/types-3.4/services/wsDali.d.ts +0 -5
  477. package/types-3.4/services/wsEcl.d.ts +0 -18
  478. package/types-3.4/services/wsElk.d.ts +0 -5
  479. package/types-3.4/services/wsLogaccess.d.ts +0 -55
  480. package/types-3.4/services/wsMachine.d.ts +0 -29
  481. package/types-3.4/services/wsPackageProcess.d.ts +0 -5
  482. package/types-3.4/services/wsResources.d.ts +0 -5
  483. package/types-3.4/services/wsSMC.d.ts +0 -8
  484. package/types-3.4/services/wsSasha.d.ts +0 -5
  485. package/types-3.4/services/wsStore.d.ts +0 -147
  486. package/types-3.4/services/wsTopology.d.ts +0 -10
  487. package/types-3.4/services/wsWorkunits.d.ts +0 -64
  488. package/types-3.4/services/wsdl/FileSpray/v1.23/FileSpray.d.ts +0 -830
  489. package/types-3.4/services/wsdl/FileSpray/v1.25/FileSpray.d.ts +0 -856
  490. package/types-3.4/services/wsdl/FileSpray/v1.26/FileSpray.d.ts +0 -736
  491. package/types-3.4/services/wsdl/WsCloud/v1/WsCloud.d.ts +0 -19
  492. package/types-3.4/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts +0 -148
  493. package/types-3.4/services/wsdl/WsDali/v1.04/WsDali.d.ts +0 -125
  494. package/types-3.4/services/wsdl/WsDali/v1.07/WsDali.d.ts +0 -158
  495. package/types-3.4/services/wsdl/WsDfu/v1.62/WsDfu.d.ts +0 -1224
  496. package/types-3.4/services/wsdl/WsDfu/v1.63/WsDfu.d.ts +0 -1233
  497. package/types-3.4/services/wsdl/WsDfu/v1.65/WsDfu.d.ts +0 -1011
  498. package/types-3.4/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts +0 -77
  499. package/types-3.4/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts +0 -396
  500. package/types-3.4/services/wsdl/WsResources/v1.01/WsResources.d.ts +0 -85
  501. package/types-3.4/services/wsdl/WsSMC/v1.24/WsSMC.d.ts +0 -515
  502. package/types-3.4/services/wsdl/WsSMC/v1.27/WsSMC.d.ts +0 -519
  503. package/types-3.4/services/wsdl/WsSasha/v1.01/WsSasha.d.ts +0 -65
  504. package/types-3.4/services/wsdl/WsTopology/v1.31/WsTopology.d.ts +0 -694
  505. package/types-3.4/services/wsdl/WsTopology/v1.32/WsTopology.d.ts +0 -716
  506. package/types-3.4/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts +0 -2405
  507. package/types-3.4/services/wsdl/WsWorkunits/v1.94/WsWorkunits.d.ts +0 -2520
  508. package/types-3.4/services/wsdl/WsWorkunits/v1.95/WsWorkunits.d.ts +0 -2521
  509. package/types-3.4/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts +0 -2529
  510. package/types-3.4/services/wsdl/WsWorkunits/v1.98/WsWorkunits.d.ts +0 -2623
  511. package/types-3.4/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts +0 -2555
  512. package/types-3.4/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts +0 -2549
  513. package/types-3.4/services/wsdl/ws_access/v1.16/ws_access.d.ts +0 -778
  514. package/types-3.4/services/wsdl/ws_access/v1.17/ws_access.d.ts +0 -721
  515. package/types-3.4/services/wsdl/ws_account/v1.05/ws_account.d.ts +0 -74
  516. package/types-3.4/services/wsdl/ws_account/v1.06/ws_account.d.ts +0 -71
  517. package/types-3.4/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts +0 -67
  518. package/types-3.4/services/wsdl/ws_elk/v1/ws_elk.d.ts +0 -28
  519. package/types-3.4/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts +0 -56
  520. package/types-3.4/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts +0 -126
  521. package/types-3.4/services/wsdl/ws_logaccess/v1.03/ws_logaccess.d.ts +0 -150
  522. package/types-3.4/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts +0 -171
  523. package/types-3.4/services/wsdl/ws_logaccess/v1.05/ws_logaccess.d.ts +0 -175
  524. package/types-3.4/services/wsdl/ws_machine/v1.17/ws_machine.d.ts +0 -470
  525. package/types-3.4/services/wsdl/wsstore/v1.02/wsstore.d.ts +0 -179
@@ -1,759 +0,0 @@
1
- // Ported from: https://github.com/hpcc-systems/HPCC-Platform/blob/f0ed9dbeca49c39fb55aa28fec295c89407ac663/esp/src/src/ESPGraph.ts
2
- import { __extends, __spreadArray } from "tslib";
3
- export function safeAssign(obj, key, value) {
4
- if (key === "__proto__" || key === "constructor" || key === "prototype")
5
- return;
6
- obj[key] = value;
7
- }
8
- function xmlEncode(str) {
9
- str = "" + str;
10
- return str.replace(/&/g, "&")
11
- .replace(/"/g, """)
12
- .replace(/'/g, "'")
13
- .replace(/</g, "&lt;")
14
- .replace(/>/g, "&gt;")
15
- .replace(/\n/g, "&#10;")
16
- .replace(/\r/g, "&#13;");
17
- }
18
- function espTime2Seconds(duration) {
19
- if (!duration) {
20
- return 0;
21
- }
22
- else if (!isNaN(+duration)) {
23
- return parseFloat(duration);
24
- }
25
- var re = /(?:(?:(\d+).days.)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+\.\d+|\d+)s))|(?:(\d+\.\d+|\d+)ms|(\d+\.\d+|\d+)us|(\d+\.\d+|\d+)ns)/;
26
- var match = re.exec(duration);
27
- if (!match)
28
- return 0;
29
- var days = +match[1] || 0;
30
- var hours = +match[2] || 0;
31
- var mins = +match[3] || 0;
32
- var secs = +match[4] || 0;
33
- var ms = +match[5] || 0;
34
- var us = +match[6] || 0;
35
- var ns = +match[7] || 0;
36
- return (days * 24 * 60 * 60) + (hours * 60 * 60) + (mins * 60) + secs + ms / 1000 + us / 1000000 + ns / 1000000000;
37
- }
38
- function unitTest(size, unit) {
39
- var nsIndex = size.indexOf(unit);
40
- if (nsIndex !== -1) {
41
- return parseFloat(size.substring(0, nsIndex));
42
- }
43
- return -1;
44
- }
45
- function espSize2Bytes(size) {
46
- if (!size) {
47
- return 0;
48
- }
49
- else if (!isNaN(+size)) {
50
- return parseFloat(size);
51
- }
52
- var retVal = unitTest(size, "Kb");
53
- if (retVal >= 0) {
54
- return retVal * 1024;
55
- }
56
- retVal = unitTest(size, "Mb");
57
- if (retVal >= 0) {
58
- return retVal * Math.pow(1024, 2);
59
- }
60
- retVal = unitTest(size, "Gb");
61
- if (retVal >= 0) {
62
- return retVal * Math.pow(1024, 3);
63
- }
64
- retVal = unitTest(size, "Tb");
65
- if (retVal >= 0) {
66
- return retVal * Math.pow(1024, 4);
67
- }
68
- retVal = unitTest(size, "Pb");
69
- if (retVal >= 0) {
70
- return retVal * Math.pow(1024, 5);
71
- }
72
- retVal = unitTest(size, "Eb");
73
- if (retVal >= 0) {
74
- return retVal * Math.pow(1024, 6);
75
- }
76
- retVal = unitTest(size, "Zb");
77
- if (retVal >= 0) {
78
- return retVal * Math.pow(1024, 7);
79
- }
80
- retVal = unitTest(size, "b");
81
- if (retVal >= 0) {
82
- return retVal;
83
- }
84
- return 0;
85
- }
86
- function espSkew2Number(skew) {
87
- if (!skew) {
88
- return 0;
89
- }
90
- return parseFloat(skew);
91
- }
92
- var GRAPH_TYPE;
93
- (function (GRAPH_TYPE) {
94
- GRAPH_TYPE[GRAPH_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
95
- GRAPH_TYPE[GRAPH_TYPE["GRAPH"] = 1] = "GRAPH";
96
- GRAPH_TYPE[GRAPH_TYPE["SUBGRAPH"] = 2] = "SUBGRAPH";
97
- GRAPH_TYPE[GRAPH_TYPE["VERTEX"] = 3] = "VERTEX";
98
- GRAPH_TYPE[GRAPH_TYPE["EDGE"] = 4] = "EDGE";
99
- GRAPH_TYPE[GRAPH_TYPE["LAST"] = 5] = "LAST";
100
- })(GRAPH_TYPE || (GRAPH_TYPE = {}));
101
- var GRAPH_TYPE_STRING;
102
- (function (GRAPH_TYPE_STRING) {
103
- GRAPH_TYPE_STRING["UNKNOWN"] = "Unknown";
104
- GRAPH_TYPE_STRING["GRAPH"] = "Graph";
105
- GRAPH_TYPE_STRING["SUBGRAPH"] = "Cluster";
106
- GRAPH_TYPE_STRING["VERTEX"] = "Vertex";
107
- GRAPH_TYPE_STRING["EDGE"] = "Edge";
108
- GRAPH_TYPE_STRING["LAST"] = "Last";
109
- })(GRAPH_TYPE_STRING || (GRAPH_TYPE_STRING = {}));
110
- var LocalisedXGMMLWriter = /** @class */ (function () {
111
- function LocalisedXGMMLWriter(graph) {
112
- this.graph = graph;
113
- this.m_xgmml = "";
114
- this.m_visibleSubgraphs = {};
115
- this.m_visibleVertices = {};
116
- this.m_semiVisibleVertices = {};
117
- this.m_visibleEdges = {};
118
- }
119
- LocalisedXGMMLWriter.prototype.calcVisibility = function (items, localisationDepth, localisationDistance, noSpills) {
120
- var _this = this;
121
- this.noSpills = noSpills;
122
- items.forEach(function (item) {
123
- if (_this.graph.isVertex(item)) {
124
- _this.calcInVertexVisibility(item, localisationDistance);
125
- _this.calcOutVertexVisibility(item, localisationDistance);
126
- }
127
- else if (_this.graph.isEdge(item)) {
128
- _this.calcInVertexVisibility(item.getSource(), localisationDistance - 1);
129
- _this.calcOutVertexVisibility(item.getTarget(), localisationDistance - 1);
130
- }
131
- else if (_this.graph.isSubgraph(item)) {
132
- _this.m_visibleSubgraphs[item.__hpcc_id] = item;
133
- _this.calcSubgraphVisibility(item, localisationDepth - 1);
134
- }
135
- });
136
- this.calcVisibility2();
137
- };
138
- LocalisedXGMMLWriter.prototype.calcInVertexVisibility = function (vertex, localisationDistance) {
139
- var _this = this;
140
- if (this.noSpills && vertex.isSpill()) {
141
- localisationDistance++;
142
- }
143
- this.m_visibleVertices[vertex.__hpcc_id] = vertex;
144
- if (localisationDistance > 0) {
145
- vertex.getInEdges().forEach(function (edge) {
146
- _this.calcInVertexVisibility(edge.getSource(), localisationDistance - 1);
147
- });
148
- }
149
- };
150
- LocalisedXGMMLWriter.prototype.calcOutVertexVisibility = function (vertex, localisationDistance) {
151
- var _this = this;
152
- if (this.noSpills && vertex.isSpill()) {
153
- localisationDistance++;
154
- }
155
- this.m_visibleVertices[vertex.__hpcc_id] = vertex;
156
- if (localisationDistance > 0) {
157
- vertex.getOutEdges().forEach(function (edge) {
158
- _this.calcOutVertexVisibility(edge.getTarget(), localisationDistance - 1);
159
- });
160
- }
161
- };
162
- LocalisedXGMMLWriter.prototype.calcSubgraphVisibility = function (subgraph, localisationDepth) {
163
- var _this = this;
164
- if (localisationDepth < 0) {
165
- return;
166
- }
167
- if (localisationDepth > 0) {
168
- subgraph.__hpcc_subgraphs.forEach(function (subgraph, idx) {
169
- _this.calcSubgraphVisibility(subgraph, localisationDepth - 1);
170
- });
171
- }
172
- subgraph.__hpcc_subgraphs.forEach(function (subgraph, idx) {
173
- _this.m_visibleSubgraphs[subgraph.__hpcc_id] = subgraph;
174
- });
175
- subgraph.__hpcc_vertices.forEach(function (vertex, idx) {
176
- _this.m_visibleVertices[vertex.__hpcc_id] = vertex;
177
- });
178
- // Calculate edges that pass through the subgraph ---
179
- var dedupEdges = {};
180
- this.graph.edges.forEach(function (edge, idx) {
181
- if (edge.getSource().__hpcc_parent !== edge.getTarget().__hpcc_parent && subgraph === _this.getCommonAncestor(edge)) {
182
- // Only include one unique edge between subgraphs ---
183
- if (!dedupEdges[edge.getSource().__hpcc_parent.__hpcc_id + "::" + edge.getTarget().__hpcc_parent.__hpcc_id]) {
184
- dedupEdges[edge.getSource().__hpcc_parent.__hpcc_id + "::" + edge.getTarget().__hpcc_parent.__hpcc_id] = true;
185
- _this.m_visibleEdges[edge.__hpcc_id] = edge;
186
- }
187
- }
188
- });
189
- };
190
- LocalisedXGMMLWriter.prototype.buildVertexString = function (vertex, isPoint) {
191
- var attrStr = "";
192
- var propsStr = "";
193
- var props = vertex.getProperties();
194
- for (var key in props) {
195
- if (isPoint && key.indexOf("_kind") >= 0) {
196
- propsStr += "<att name=\"_kind\" value=\"point\"/>";
197
- }
198
- else if (key === "id" || key === "label") {
199
- attrStr += " " + key + "=\"" + xmlEncode(props[key]) + "\"";
200
- }
201
- else {
202
- propsStr += "<att name=\"" + key + "\" value=\"" + xmlEncode(props[key]) + "\"/>";
203
- }
204
- }
205
- return "<node" + attrStr + ">" + propsStr + "</node>";
206
- };
207
- LocalisedXGMMLWriter.prototype.buildEdgeString = function (edge) {
208
- var attrStr = "";
209
- var propsStr = "";
210
- var props = edge.getProperties();
211
- for (var key in props) {
212
- if (key.toLowerCase() === "id" ||
213
- key.toLowerCase() === "label" ||
214
- key.toLowerCase() === "source" ||
215
- key.toLowerCase() === "target") {
216
- attrStr += " " + key + "=\"" + xmlEncode(props[key]) + "\"";
217
- }
218
- else {
219
- propsStr += "<att name=\"" + key + "\" value=\"" + xmlEncode(props[key]) + "\"/>";
220
- }
221
- }
222
- return "<edge" + attrStr + ">" + propsStr + "</edge>";
223
- };
224
- LocalisedXGMMLWriter.prototype.getAncestors = function (v, ancestors) {
225
- var parent = v.__hpcc_parent;
226
- while (parent) {
227
- ancestors.push(parent);
228
- parent = parent.__hpcc_parent;
229
- }
230
- };
231
- LocalisedXGMMLWriter.prototype.getCommonAncestorV = function (v1, v2) {
232
- var v1_ancestors = [];
233
- var v2_ancestors = [];
234
- this.getAncestors(v1, v1_ancestors);
235
- this.getAncestors(v2, v2_ancestors);
236
- var finger1 = v1_ancestors.length - 1;
237
- var finger2 = v2_ancestors.length - 1;
238
- var retVal = null;
239
- while (finger1 >= 0 && finger2 >= 0 && v1_ancestors[finger1] === v2_ancestors[finger2]) {
240
- retVal = v1_ancestors[finger1];
241
- --finger1;
242
- --finger2;
243
- }
244
- return retVal;
245
- };
246
- LocalisedXGMMLWriter.prototype.getCommonAncestor = function (e) {
247
- return this.getCommonAncestorV(e.getSource(), e.getTarget());
248
- };
249
- LocalisedXGMMLWriter.prototype.calcAncestorVisibility = function (vertex) {
250
- var _this = this;
251
- var ancestors = [];
252
- this.getAncestors(vertex, ancestors);
253
- ancestors.forEach(function (item, idx) {
254
- _this.m_visibleSubgraphs[item.__hpcc_id] = item;
255
- });
256
- };
257
- LocalisedXGMMLWriter.prototype.calcVisibility2 = function () {
258
- var _this = this;
259
- for (var key in this.m_visibleVertices) {
260
- var vertex = this.m_visibleVertices[key];
261
- vertex.getInEdges().forEach(function (edge, idx) {
262
- _this.m_visibleEdges[edge.__hpcc_id] = edge;
263
- });
264
- vertex.getOutEdges().forEach(function (edge, idx) {
265
- _this.m_visibleEdges[edge.__hpcc_id] = edge;
266
- });
267
- this.calcAncestorVisibility(vertex);
268
- }
269
- this.calcSemiVisibleVertices();
270
- };
271
- LocalisedXGMMLWriter.prototype.addSemiVisibleEdge = function (edge) {
272
- if (edge && !this.m_visibleEdges[edge.__hpcc_id]) {
273
- this.m_visibleEdges[edge.__hpcc_id] = edge;
274
- }
275
- };
276
- LocalisedXGMMLWriter.prototype.addSemiVisibleVertex = function (vertex) {
277
- if (!this.m_visibleVertices[vertex.__hpcc_id]) {
278
- this.m_semiVisibleVertices[vertex.__hpcc_id] = vertex;
279
- this.calcAncestorVisibility(vertex);
280
- }
281
- };
282
- LocalisedXGMMLWriter.prototype.calcSemiVisibleVertices = function () {
283
- for (var key in this.m_visibleEdges) {
284
- var edge = this.m_visibleEdges[key];
285
- var source = edge.getSource();
286
- this.addSemiVisibleVertex(source);
287
- while (this.noSpills && source.isSpill()) {
288
- var inEdges = source.getInEdges();
289
- if (inEdges.length) {
290
- this.addSemiVisibleEdge(inEdges[0]);
291
- source = inEdges[0].getSource();
292
- this.addSemiVisibleVertex(source);
293
- }
294
- else {
295
- break;
296
- }
297
- }
298
- var target = edge.getTarget();
299
- this.addSemiVisibleVertex(target);
300
- while (this.noSpills && target.isSpill()) {
301
- var outEdges = target.getOutEdges();
302
- if (outEdges.length) {
303
- this.addSemiVisibleEdge(outEdges[0]);
304
- target = outEdges[0].getTarget();
305
- this.addSemiVisibleVertex(target);
306
- }
307
- else {
308
- break;
309
- }
310
- }
311
- }
312
- };
313
- LocalisedXGMMLWriter.prototype.writeXgmml = function () {
314
- var _this = this;
315
- this.subgraphVisited(this.graph.subgraphs[0], true);
316
- this.graph.edges.forEach(function (edge, idx) {
317
- _this.edgeVisited(edge);
318
- });
319
- };
320
- LocalisedXGMMLWriter.prototype.subgraphVisited = function (subgraph, root) {
321
- if (root === void 0) { root = false; }
322
- if (this.m_visibleSubgraphs[subgraph.__hpcc_id]) {
323
- var propsStr = "";
324
- this.m_xgmml += root ? "" : "<node id=\"" + subgraph.__hpcc_id + "\"><att><graph>";
325
- var xgmmlLen = this.m_xgmml.length;
326
- subgraph.walkSubgraphs(this);
327
- subgraph.walkVertices(this);
328
- if (xgmmlLen === this.m_xgmml.length) {
329
- // Add at least one child otherwise subgraphs will render as a vertex ---
330
- var vertex = subgraph.__hpcc_vertices[0];
331
- if (vertex) {
332
- this.m_xgmml += this.buildVertexString(vertex, true);
333
- }
334
- }
335
- var props = subgraph.getProperties();
336
- for (var key in props) {
337
- propsStr += "<att name=\"" + key + "\" value=\"" + xmlEncode(props[key]) + "\"/>";
338
- }
339
- this.m_xgmml += root ? "" : "</graph></att>" + propsStr + "</node>";
340
- }
341
- return false;
342
- };
343
- LocalisedXGMMLWriter.prototype.vertexVisited = function (vertex) {
344
- if (this.m_visibleVertices[vertex.__hpcc_id]) {
345
- this.m_xgmml += this.buildVertexString(vertex, false);
346
- }
347
- else if (this.m_semiVisibleVertices[vertex.__hpcc_id]) {
348
- this.m_xgmml += this.buildVertexString(vertex, true);
349
- }
350
- };
351
- LocalisedXGMMLWriter.prototype.edgeVisited = function (edge) {
352
- if (this.m_visibleEdges[edge.__hpcc_id]) {
353
- this.m_xgmml += this.buildEdgeString(edge);
354
- }
355
- };
356
- return LocalisedXGMMLWriter;
357
- }());
358
- var GraphItem = /** @class */ (function () {
359
- function GraphItem(graph, id) {
360
- this.__hpcc_graph = graph;
361
- this.__hpcc_id = id;
362
- this._globalID = id;
363
- }
364
- GraphItem.prototype.getProperties = function () {
365
- var retVal = {};
366
- for (var key in this) {
367
- if (key.indexOf("__") !== 0 && this.hasOwnProperty(key)) {
368
- retVal[key] = this[key];
369
- }
370
- }
371
- return retVal;
372
- };
373
- return GraphItem;
374
- }());
375
- var Subgraph = /** @class */ (function (_super) {
376
- __extends(Subgraph, _super);
377
- function Subgraph(graph, id) {
378
- var _this = _super.call(this, graph, id) || this;
379
- _this._globalType = id === "0" ? "Graph" : "Cluster";
380
- _this.__hpcc_subgraphs = [];
381
- _this.__hpcc_vertices = [];
382
- _this.__hpcc_edges = [];
383
- _this.id = id;
384
- return _this;
385
- }
386
- Subgraph.prototype.addSubgraph = function (subgraph) {
387
- subgraph.__hpcc_parent = this;
388
- if (!this.__hpcc_subgraphs.some(function (subgraph2) { return subgraph === subgraph2; })) {
389
- this.__hpcc_subgraphs.push(subgraph);
390
- }
391
- };
392
- Subgraph.prototype.addVertex = function (vertex) {
393
- vertex.__hpcc_parent = this;
394
- if (!this.__hpcc_vertices.some(function (vertex2) { return vertex === vertex2; })) {
395
- this.__hpcc_vertices.push(vertex);
396
- }
397
- };
398
- Subgraph.prototype.removeVertex = function (vertex) {
399
- this.__hpcc_vertices = this.__hpcc_vertices.filter(function (vertex2) { return vertex !== vertex2; });
400
- };
401
- Subgraph.prototype.addEdge = function (edge) {
402
- edge.__hpcc_parent = this;
403
- if (!this.__hpcc_edges.some(function (edge2) { return edge === edge2; })) {
404
- this.__hpcc_edges.push(edge);
405
- }
406
- };
407
- Subgraph.prototype.removeEdge = function (edge) {
408
- this.__hpcc_edges = this.__hpcc_edges.filter(function (edge2) { return edge !== edge2; });
409
- };
410
- Subgraph.prototype.remove = function () {
411
- var _this = this;
412
- this.__hpcc_subgraphs.forEach(function (subgraph) { return subgraph.__hpcc_parent = _this.__hpcc_parent; });
413
- this.__hpcc_vertices.forEach(function (vertex) { return vertex.__hpcc_parent = _this.__hpcc_parent; });
414
- this.__hpcc_edges.forEach(function (edge) { return edge.__hpcc_parent = _this.__hpcc_parent; });
415
- delete this.__hpcc_parent;
416
- this.__hpcc_graph.removeItem(this);
417
- };
418
- Subgraph.prototype.walkSubgraphs = function (visitor) {
419
- this.__hpcc_subgraphs.forEach(function (subgraph, idx) {
420
- if (visitor.subgraphVisited(subgraph)) {
421
- subgraph.walkSubgraphs(visitor);
422
- }
423
- });
424
- };
425
- Subgraph.prototype.walkVertices = function (visitor) {
426
- this.__hpcc_vertices.forEach(function (vertex, idx) {
427
- visitor.vertexVisited(vertex);
428
- });
429
- };
430
- return Subgraph;
431
- }(GraphItem));
432
- var Vertex = /** @class */ (function (_super) {
433
- __extends(Vertex, _super);
434
- function Vertex(graph, id) {
435
- var _this = _super.call(this, graph, id) || this;
436
- _this._globalType = "Vertex";
437
- return _this;
438
- }
439
- Vertex.prototype.isSpill = function () {
440
- return this._isSpill;
441
- };
442
- Vertex.prototype.remove = function () {
443
- var _a;
444
- var inVertices = this.getInVertices();
445
- if (inVertices.length <= 1) {
446
- console.warn(this.__hpcc_id + ": remove only supports single or zero inputs activities...");
447
- }
448
- this.getInEdges().forEach(function (edge) {
449
- edge.remove();
450
- });
451
- this.getOutEdges().forEach(function (edge) {
452
- edge.setSource(inVertices[0]);
453
- });
454
- (_a = this.__hpcc_parent) === null || _a === void 0 ? void 0 : _a.removeVertex(this);
455
- this.__hpcc_graph.removeItem(this);
456
- };
457
- Vertex.prototype.getInVertices = function () {
458
- return this.getInEdges().map(function (edge) {
459
- return edge.getSource();
460
- });
461
- };
462
- Vertex.prototype.getInEdges = function () {
463
- var _this = this;
464
- return this.__hpcc_graph.edges.filter(function (edge) {
465
- return edge.getTarget() === _this;
466
- });
467
- };
468
- Vertex.prototype.getOutVertices = function () {
469
- return this.getOutEdges().map(function (edge) {
470
- return edge.getTarget();
471
- });
472
- };
473
- Vertex.prototype.getOutEdges = function () {
474
- var _this = this;
475
- return this.__hpcc_graph.edges.filter(function (edge) {
476
- return edge.getSource() === _this;
477
- });
478
- };
479
- return Vertex;
480
- }(GraphItem));
481
- var Edge = /** @class */ (function (_super) {
482
- __extends(Edge, _super);
483
- function Edge(graph, id) {
484
- var _this = _super.call(this, graph, id) || this;
485
- _this._globalType = "Edge";
486
- _this._globalType = "Edge";
487
- return _this;
488
- }
489
- Edge.prototype.remove = function () {
490
- var _this = this;
491
- this.__hpcc_graph.subgraphs.forEach(function (subgraph) {
492
- subgraph.removeEdge(_this);
493
- });
494
- this.__hpcc_graph.removeItem(this);
495
- };
496
- Edge.prototype.getSource = function () {
497
- return this.__hpcc_graph.idx[this._sourceActivity || this.source];
498
- };
499
- Edge.prototype.setSource = function (source) {
500
- if (this._sourceActivity) {
501
- this._sourceActivity = source.__hpcc_id;
502
- }
503
- else if (this.source) {
504
- this.source = source.__hpcc_id;
505
- }
506
- if (this.__widget) {
507
- this.__widget.setSource(this.getSource().__widget);
508
- }
509
- };
510
- Edge.prototype.getTarget = function () {
511
- return this.__hpcc_graph.idx[this._targetActivity || this.target];
512
- };
513
- return Edge;
514
- }(GraphItem));
515
- var QueryGraph = /** @class */ (function () {
516
- function QueryGraph() {
517
- this.idx = {};
518
- this.subgraphs = [];
519
- this.vertices = [];
520
- this.edges = [];
521
- this.xgmml = "";
522
- this.clear();
523
- }
524
- QueryGraph.prototype.clear = function () {
525
- this.xgmml = "";
526
- this.idx = {};
527
- this.subgraphs = [];
528
- this.vertices = [];
529
- this.edges = [];
530
- };
531
- QueryGraph.prototype.load = function (xgmml) {
532
- this.clear();
533
- this.merge(xgmml);
534
- };
535
- QueryGraph.prototype.merge = function (xgmml) {
536
- this.xgmml = xgmml;
537
- var parser = new DOMParser();
538
- var dom = parser.parseFromString(xgmml, "text/xml");
539
- this.walkDocument(dom.documentElement, "0");
540
- };
541
- QueryGraph.prototype.isSubgraph = function (item) {
542
- return item instanceof Subgraph;
543
- };
544
- QueryGraph.prototype.isVertex = function (item) {
545
- return item instanceof Vertex;
546
- };
547
- QueryGraph.prototype.isEdge = function (item) {
548
- return item instanceof Edge;
549
- };
550
- QueryGraph.prototype.getGlobalType = function (item) {
551
- if (item instanceof Vertex) {
552
- return GRAPH_TYPE.VERTEX;
553
- }
554
- else if (item instanceof Edge) {
555
- return GRAPH_TYPE.EDGE;
556
- }
557
- else if (item instanceof Subgraph) {
558
- return GRAPH_TYPE.SUBGRAPH;
559
- }
560
- else if (item instanceof QueryGraph) {
561
- return GRAPH_TYPE.GRAPH;
562
- }
563
- return GRAPH_TYPE.UNKNOWN;
564
- };
565
- QueryGraph.prototype.getGlobalTypeString = function (item) {
566
- if (item instanceof Vertex) {
567
- return GRAPH_TYPE_STRING.VERTEX;
568
- }
569
- else if (item instanceof Edge) {
570
- return GRAPH_TYPE_STRING.EDGE;
571
- }
572
- else if (item instanceof Subgraph) {
573
- return GRAPH_TYPE_STRING.SUBGRAPH;
574
- }
575
- else if (item instanceof QueryGraph) {
576
- return GRAPH_TYPE_STRING.GRAPH;
577
- }
578
- return GRAPH_TYPE_STRING.UNKNOWN;
579
- };
580
- QueryGraph.prototype.getItem = function (docNode, id) {
581
- if (!this.idx[id]) {
582
- switch (docNode.tagName) {
583
- case "graph":
584
- var subgraph = new Subgraph(this, id);
585
- this.subgraphs.push(subgraph);
586
- this.idx[id] = subgraph;
587
- break;
588
- case "node":
589
- var vertex = new Vertex(this, id);
590
- this.vertices.push(vertex);
591
- this.idx[id] = vertex;
592
- break;
593
- case "edge":
594
- var edge = new Edge(this, id);
595
- this.edges.push(edge);
596
- this.idx[id] = edge;
597
- break;
598
- default:
599
- console.warn("Graph.getItem - Unknown Node Type!");
600
- break;
601
- }
602
- }
603
- var retVal = this.idx[id];
604
- Array.from(docNode.attributes).forEach(function (attr) {
605
- safeAssign(retVal, attr.name, attr.value);
606
- });
607
- return retVal;
608
- };
609
- QueryGraph.prototype.removeItem = function (item) {
610
- delete this.idx[item.__hpcc_id];
611
- if (item instanceof Subgraph) {
612
- this.subgraphs = this.subgraphs.filter(function (subgraph) {
613
- return item !== subgraph;
614
- });
615
- }
616
- else if (item instanceof Vertex) {
617
- this.vertices = this.vertices.filter(function (vertex) {
618
- return item !== vertex;
619
- });
620
- }
621
- else if (item instanceof Edge) {
622
- this.edges = this.edges.filter(function (edge) {
623
- return item !== edge;
624
- });
625
- }
626
- };
627
- QueryGraph.prototype.getChildByTagName = function (docNode, tagName) {
628
- var retVal = null;
629
- Array.from(docNode.childNodes).some(function (childNode, idx) {
630
- if (childNode.tagName === tagName) {
631
- retVal = childNode;
632
- return true;
633
- }
634
- });
635
- return retVal;
636
- };
637
- QueryGraph.prototype.walkDocument = function (docNode, id) {
638
- var _this = this;
639
- var retVal = this.getItem(docNode, id);
640
- docNode.childNodes.forEach(function (childNode, idx) {
641
- switch (childNode.nodeType) {
642
- case 1: // ELEMENT_NODE
643
- switch (childNode.tagName) {
644
- case "graph":
645
- break;
646
- case "node":
647
- var isSubgraph = false;
648
- var attNode = _this.getChildByTagName(childNode, "att");
649
- if (attNode) {
650
- var graphNode = _this.getChildByTagName(attNode, "graph");
651
- if (graphNode) {
652
- isSubgraph = true;
653
- var subgraph = _this.walkDocument(graphNode, childNode.getAttribute("id"));
654
- retVal.addSubgraph(subgraph);
655
- }
656
- }
657
- if (!isSubgraph) {
658
- var vertex = _this.walkDocument(childNode, childNode.getAttribute("id"));
659
- retVal.addVertex(vertex);
660
- }
661
- break;
662
- case "att":
663
- var name_1 = childNode.getAttribute("name");
664
- var uname = "_" + name_1;
665
- var value = childNode.getAttribute("value");
666
- if (name_1.indexOf("Time") === 0) {
667
- safeAssign(retVal, uname, value);
668
- safeAssign(retVal, name_1, "" + espTime2Seconds(value));
669
- }
670
- else if (name_1.indexOf("Size") === 0) {
671
- safeAssign(retVal, uname, value);
672
- safeAssign(retVal, name_1, "" + espSize2Bytes(value));
673
- }
674
- else if (name_1.indexOf("Skew") === 0) {
675
- safeAssign(retVal, uname, value);
676
- safeAssign(retVal, name_1, "" + espSkew2Number(value));
677
- }
678
- else {
679
- safeAssign(retVal, name_1, value);
680
- }
681
- break;
682
- case "edge":
683
- var edge = _this.walkDocument(childNode, childNode.getAttribute("id"));
684
- if (edge.NumRowsProcessed !== undefined) {
685
- edge._eclwatchCount = edge.NumRowsProcessed.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
686
- }
687
- else if (edge.Count !== undefined) {
688
- edge._eclwatchCount = edge.Count.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
689
- }
690
- else if (edge.count !== undefined) {
691
- edge._eclwatchCount = edge.count.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
692
- }
693
- if (edge.inputProgress) {
694
- edge._eclwatchInputProgress = "[" + edge.inputProgress.replace(/\B(?=(\d{3})+(?!\d))/g, ",") + "]";
695
- }
696
- if (edge.SkewMaxRowsProcessed && edge.SkewMinRowsProcessed) {
697
- edge._eclwatchSkew = "+" + edge.SkewMaxRowsProcessed + ", " + edge.SkewMinRowsProcessed;
698
- }
699
- if (edge._dependsOn) {
700
- }
701
- else if (edge._childGraph) {
702
- }
703
- else if (edge._sourceActivity || edge._targetActivity) {
704
- edge._isSpill = true;
705
- var source = edge.getSource();
706
- source._isSpill = true;
707
- var target = edge.getTarget();
708
- target._isSpill = true;
709
- }
710
- retVal.addEdge(edge);
711
- break;
712
- default:
713
- break;
714
- }
715
- break;
716
- case 2: // ATTRIBUTE_NODE
717
- case 3: // TEXT_NODE
718
- case 4: // CDATA_SECTION_NODE
719
- case 5: // ENTITY_REFERENCE_NODE
720
- case 6: // ENTITY_NODE
721
- case 7: // PROCESSING_INSTRUCTION_NODE
722
- case 8: // COMMENT_NODE
723
- case 9: // DOCUMENT_NODE
724
- case 10: // DOCUMENT_TYPE_NODE
725
- case 11: // DOCUMENT_FRAGMENT_NODE
726
- case 12: // NOTATION_NODE
727
- break;
728
- default:
729
- break;
730
- }
731
- });
732
- return retVal;
733
- };
734
- QueryGraph.prototype.removeSubgraphs = function () {
735
- var subgraphs = __spreadArray([], this.subgraphs, true);
736
- subgraphs.forEach(function (subgraph) {
737
- if (subgraph.__hpcc_parent instanceof Subgraph) {
738
- subgraph.remove();
739
- }
740
- });
741
- };
742
- QueryGraph.prototype.removeSpillVertices = function () {
743
- var vertices = __spreadArray([], this.vertices, true);
744
- vertices.forEach(function (vertex) {
745
- if (vertex.isSpill()) {
746
- vertex.remove();
747
- }
748
- });
749
- };
750
- QueryGraph.prototype.getLocalisedXGMML = function (items, localisationDepth, localisationDistance, noSpills) {
751
- var xgmmlWriter = new LocalisedXGMMLWriter(this);
752
- xgmmlWriter.calcVisibility(items, localisationDepth, localisationDistance, noSpills);
753
- xgmmlWriter.writeXgmml();
754
- return "<graph>" + xgmmlWriter.m_xgmml + "</graph>";
755
- };
756
- return QueryGraph;
757
- }());
758
- export { QueryGraph };
759
- //# sourceMappingURL=queryGraph.js.map