@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,4 +0,0 @@
1
- export var PKG_NAME = "@hpcc-js/comms";
2
- export var PKG_VERSION = "2.98.0";
3
- export var BUILD_VERSION = "2.107.0";
4
- //# sourceMappingURL=__package__.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"__package__.js","sourceRoot":"","sources":["../src/__package__.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,QAAQ,GAAG,gBAAgB,CAAC;AACzC,MAAM,CAAC,IAAM,WAAW,GAAG,QAAQ,CAAC;AACpC,MAAM,CAAC,IAAM,aAAa,GAAG,SAAS,CAAC"}
@@ -1,32 +0,0 @@
1
- import { __awaiter, __generator } from "tslib";
2
- import { expect } from "chai";
3
- import { Connection, DFUXRefService } from "../index.node";
4
- describe("DFUXRefService", function () {
5
- it("basic", function () {
6
- expect(DFUXRefService).to.exist;
7
- });
8
- it.skip("directories", function () { return __awaiter(void 0, void 0, void 0, function () {
9
- var dfuXRefService, xrefNodes;
10
- return __generator(this, function (_a) {
11
- switch (_a.label) {
12
- case 0:
13
- dfuXRefService = new DFUXRefService(new Connection({ baseUrl: "https://play.hpccsystems.com:18010/", rejectUnauthorized: false }));
14
- expect(dfuXRefService).to.exist;
15
- return [4 /*yield*/, dfuXRefService.DFUXRefList().then(function (response) {
16
- expect(response.DFUXRefListResult).to.exist;
17
- expect(response.DFUXRefListResult.XRefNode).to.have.length;
18
- return response.DFUXRefListResult.XRefNode;
19
- })];
20
- case 1:
21
- xrefNodes = _a.sent();
22
- return [4 /*yield*/, dfuXRefService.DFUXRefDirectories({ Cluster: xrefNodes[0].Name }).then(function (response) {
23
- expect(response.DFUXRefDirectoriesQueryResult).to.exist;
24
- })];
25
- case 2:
26
- _a.sent();
27
- return [2 /*return*/];
28
- }
29
- });
30
- }); });
31
- });
32
- //# sourceMappingURL=dfuXRef.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dfuXRef.js","sourceRoot":"","sources":["../../src/__tests__/dfuXRef.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE3D,QAAQ,CAAC,gBAAgB,EAAE;IACvB,EAAE,CAAC,OAAO,EAAE;QACR,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE;;;;;oBACb,cAAc,GAAG,IAAI,cAAc,CAAC,IAAI,UAAU,CAAC,EAAE,OAAO,EAAE,qCAAqC,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;oBACzI,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;oBACd,qBAAM,cAAc,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,UAAA,QAAQ;4BAC9D,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;4BAC5C,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;4BAC3D,OAAO,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC;wBAC/C,CAAC,CAAC,EAAA;;oBAJI,SAAS,GAAG,SAIhB;oBACF,qBAAM,cAAc,CAAC,kBAAkB,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ;4BACjF,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;wBAC5D,CAAC,CAAC,EAAA;;oBAFF,SAEE,CAAC;;;;SACN,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
@@ -1,60 +0,0 @@
1
- import * as https from "https";
2
- import { ESPConnection } from "../espConnection";
3
- import { WorkunitsService } from "../services/wsWorkunits";
4
- import { trustwave } from "../pem/trustwave";
5
- import { expect } from "chai";
6
- var extraRootAgent = new https.Agent({
7
- ca: trustwave
8
- });
9
- var acceptUnauthorizedAgent = new https.Agent({
10
- rejectUnauthorized: false
11
- });
12
- describe("https", function () {
13
- it("fetch fail", function () {
14
- var hasResponse = false;
15
- return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json").then(function (response) {
16
- hasResponse = true;
17
- }).catch(function (e) {
18
- return true;
19
- }).then(function () {
20
- expect(hasResponse).to.be.false;
21
- });
22
- });
23
- it("fetch with trustwave", function () {
24
- return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json", { agent: extraRootAgent }).then(function (response) {
25
- return true;
26
- }).catch(function (e) {
27
- throw e;
28
- });
29
- });
30
- it("fetch acceptUnauthorized", function () {
31
- return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json", { agent: acceptUnauthorizedAgent }).then(function (response) {
32
- return true;
33
- }).catch(function (e) {
34
- throw e;
35
- });
36
- });
37
- it("generic", function () {
38
- return fetch("https://jsonplaceholder.typicode.com/todos/1").then(function (response) {
39
- return response.json();
40
- }).then(function (json) {
41
- console.info(json);
42
- }).catch(function (e) {
43
- console.info(e.message);
44
- throw e;
45
- });
46
- });
47
- it("ESPConnection", function () {
48
- var connection = new ESPConnection({ baseUrl: "https://play.hpccsystems.com:18010/" }, "WsWorkunits", "1.8");
49
- return connection.send("WUQuery", {}).then(function (response) {
50
- return true;
51
- });
52
- });
53
- it("WsWorkunits", function () {
54
- var service = new WorkunitsService({ baseUrl: "https://play.hpccsystems.com:18010" });
55
- return service.WUQuery({}).then(function (response) {
56
- return true;
57
- });
58
- });
59
- });
60
- //# sourceMappingURL=https.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"https.js","sourceRoot":"","sources":["../../src/__tests__/https.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,IAAM,cAAc,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;IACnC,EAAE,EAAE,SAAS;CAChB,CAAC,CAAC;AAEH,IAAM,uBAAuB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;IAC5C,kBAAkB,EAAE,KAAK;CAC5B,CAAC,CAAC;AAEH,QAAQ,CAAC,OAAO,EAAE;IACd,EAAE,CAAC,YAAY,EAAE;QACb,IAAI,WAAW,GAAG,KAAK,CAAC;QACxB,OAAO,KAAK,CAAC,6DAA6D,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ;YACrF,WAAW,GAAG,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC;YACN,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC,IAAI,CAAC;YACJ,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACpC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE;QACvB,OAAO,KAAK,CAAC,6DAA6D,EAAE,EAAE,KAAK,EAAE,cAAc,EAAS,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ;YACvH,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC;YACN,MAAM,CAAC,CAAC;QACZ,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE;QAC3B,OAAO,KAAK,CAAC,6DAA6D,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAS,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ;YAChI,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC;YACN,MAAM,CAAC,CAAC;QACZ,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,SAAS,EAAE;QACV,OAAO,KAAK,CAAC,8CAA8C,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ;YACtE,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC,IAAI,CAAC,UAAA,IAAI;YACR,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC;YACN,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACxB,MAAM,CAAC,CAAC;QACZ,CAAC,CAAC,CAAC;IAEP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAChB,IAAM,UAAU,GAAG,IAAI,aAAa,CAAC,EAAE,OAAO,EAAE,qCAAqC,EAAE,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;QAC/G,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ;YAC/C,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;QACd,IAAM,OAAO,GAAG,IAAI,gBAAgB,CAAC,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC,CAAC;QACxF,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ;YACpC,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
@@ -1,71 +0,0 @@
1
- import { __awaiter, __generator } from "tslib";
2
- import { expect } from "chai";
3
- import { Workunit, WorkunitsService } from "../index.node";
4
- var connection = { baseUrl: "http://localhost:8010/" };
5
- describe("Workunit", function () {
6
- it("basic", function () {
7
- expect(Workunit).to.exist;
8
- });
9
- it("clone", function () { return __awaiter(void 0, void 0, void 0, function () {
10
- var wu, newWu;
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4 /*yield*/, Workunit.create(connection)];
14
- case 1:
15
- wu = _a.sent();
16
- return [4 /*yield*/, wu.update({ QueryText: "123;" })];
17
- case 2:
18
- _a.sent();
19
- return [4 /*yield*/, wu.submit("thor")];
20
- case 3:
21
- _a.sent();
22
- return [4 /*yield*/, wu.watchUntilComplete()];
23
- case 4:
24
- _a.sent();
25
- return [4 /*yield*/, wu.clone()];
26
- case 5:
27
- newWu = _a.sent();
28
- expect(newWu).to.exist;
29
- return [4 /*yield*/, newWu.delete()];
30
- case 6:
31
- _a.sent();
32
- return [4 /*yield*/, wu.delete()];
33
- case 7:
34
- _a.sent();
35
- return [2 /*return*/];
36
- }
37
- });
38
- }); });
39
- it("ping", function () { return __awaiter(void 0, void 0, void 0, function () {
40
- var service, pingResponse;
41
- return __generator(this, function (_a) {
42
- switch (_a.label) {
43
- case 0:
44
- service = new WorkunitsService(connection);
45
- return [4 /*yield*/, service.Ping()];
46
- case 1:
47
- pingResponse = _a.sent();
48
- expect(pingResponse).to.exist;
49
- return [2 /*return*/];
50
- }
51
- });
52
- }); });
53
- it.skip("query", function () { return __awaiter(void 0, void 0, void 0, function () {
54
- var wus, names;
55
- return __generator(this, function (_a) {
56
- switch (_a.label) {
57
- case 0: return [4 /*yield*/, Workunit.query(connection, {})];
58
- case 1:
59
- wus = _a.sent();
60
- expect(wus).to.have.length;
61
- expect(wus.length).to.be.greaterThan(0);
62
- return [4 /*yield*/, wus[0].fetchServiceNames()];
63
- case 2:
64
- names = _a.sent();
65
- console.info(names);
66
- return [2 /*return*/];
67
- }
68
- });
69
- }); });
70
- });
71
- //# sourceMappingURL=workunit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workunit.js","sourceRoot":"","sources":["../../src/__tests__/workunit.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE3D,IAAM,UAAU,GAAG,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEzD,QAAQ,CAAC,UAAU,EAAE;IACjB,EAAE,CAAC,OAAO,EAAE;QACR,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,OAAO,EAAE;;;;wBACG,qBAAM,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,EAAA;;oBAAtC,EAAE,GAAG,SAAiC;oBAC5C,qBAAM,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAA;;oBAAtC,SAAsC,CAAC;oBACvC,qBAAM,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAA;;oBAAvB,SAAuB,CAAC;oBACxB,qBAAM,EAAE,CAAC,kBAAkB,EAAE,EAAA;;oBAA7B,SAA6B,CAAC;oBAChB,qBAAM,EAAE,CAAC,KAAK,EAAE,EAAA;;oBAAxB,KAAK,GAAG,SAAgB;oBAC9B,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;oBACvB,qBAAM,KAAK,CAAC,MAAM,EAAE,EAAA;;oBAApB,SAAoB,CAAC;oBACrB,qBAAM,EAAE,CAAC,MAAM,EAAE,EAAA;;oBAAjB,SAAiB,CAAC;;;;SACrB,CAAC,CAAC;IAEH,EAAE,CAAC,MAAM,EAAE;;;;;oBACD,OAAO,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;oBAC5B,qBAAM,OAAO,CAAC,IAAI,EAAE,EAAA;;oBAAnC,YAAY,GAAG,SAAoB;oBACzC,MAAM,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;;;;SACjC,CAAC,CAAC;IAEH,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;;;;wBACD,qBAAM,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC,EAAA;;oBAA1C,GAAG,GAAG,SAAoC;oBAChD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;oBAC3B,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;oBAC1B,qBAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,EAAA;;oBAAxC,KAAK,GAAG,SAAgC;oBAC9C,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;;;;SACvB,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,463 +0,0 @@
1
- import { __extends, __spreadArray } from "tslib";
2
- import * as fs from "fs";
3
- import * as path from "path";
4
- import { Dictionary, DictionaryNoCase, find, SAXStackParser, scopedLogger, XMLNode } from "@hpcc-js/util";
5
- import { locateClientTools } from "./eclcc";
6
- var logger = scopedLogger("clienttools/eclmeta");
7
- var _inspect = false;
8
- function inspect(obj, _id, known) {
9
- if (_inspect) {
10
- for (var key in obj) {
11
- var id = "".concat(_id, ".").concat(key);
12
- if (key !== "$" && known[key] === undefined && known[key.toLowerCase() + "s"] === undefined) {
13
- logger.debug(id);
14
- }
15
- }
16
- if (obj.$) {
17
- inspect(obj.$, _id + ".$", known);
18
- }
19
- }
20
- }
21
- var Attr = /** @class */ (function () {
22
- function Attr(xmlAttr) {
23
- this.__attrs = xmlAttr.$;
24
- this.name = xmlAttr.$.name;
25
- }
26
- return Attr;
27
- }());
28
- export { Attr };
29
- var Field = /** @class */ (function () {
30
- function Field(definition, xmlField) {
31
- this.__attrs = xmlField.$;
32
- this.definition = definition;
33
- this.name = xmlField.$.name;
34
- this.type = xmlField.$.type;
35
- }
36
- Object.defineProperty(Field.prototype, "scope", {
37
- get: function () {
38
- return this.definition;
39
- },
40
- enumerable: false,
41
- configurable: true
42
- });
43
- return Field;
44
- }());
45
- export { Field };
46
- var ECLScope = /** @class */ (function () {
47
- function ECLScope(name, type, sourcePath, xmlDefinitions, line, start, body, end) {
48
- if (line === void 0) { line = 1; }
49
- if (start === void 0) { start = 0; }
50
- if (body === void 0) { body = 0; }
51
- if (end === void 0) { end = Number.MAX_VALUE; }
52
- this.name = name;
53
- this.type = type;
54
- this.sourcePath = path.normalize(sourcePath);
55
- this.line = +line - 1;
56
- this.start = +start;
57
- this.body = +body;
58
- this.end = +end;
59
- this.definitions = this.parseDefinitions(xmlDefinitions);
60
- }
61
- Object.defineProperty(ECLScope.prototype, "scope", {
62
- get: function () {
63
- return this;
64
- },
65
- enumerable: false,
66
- configurable: true
67
- });
68
- ECLScope.prototype.parseDefinitions = function (definitions) {
69
- var _this = this;
70
- if (definitions === void 0) { definitions = []; }
71
- return definitions.map(function (definition) {
72
- var retVal = new Definition(_this.sourcePath, definition);
73
- inspect(definition, "definition", retVal);
74
- return retVal;
75
- });
76
- };
77
- ECLScope.prototype.contains = function (charOffset) {
78
- return charOffset >= this.start && charOffset <= this.end;
79
- };
80
- ECLScope.prototype.scopeStackAt = function (charOffset) {
81
- var retVal = [];
82
- if (this.contains(charOffset)) {
83
- retVal.push(this);
84
- this.definitions.forEach(function (def) {
85
- retVal = def.scopeStackAt(charOffset).concat(retVal);
86
- });
87
- }
88
- return retVal;
89
- };
90
- ECLScope.prototype._resolve = function (defs, qualifiedID) {
91
- if (defs === void 0) { defs = []; }
92
- var qualifiedIDParts = qualifiedID.split(".");
93
- var base = qualifiedIDParts.shift();
94
- var retVal = find(defs, function (def) {
95
- if (typeof def.name === "string" && typeof base === "string" && def.name.toLowerCase() === base.toLowerCase()) {
96
- return true;
97
- }
98
- return false;
99
- });
100
- if (retVal && retVal.definitions.length && qualifiedIDParts.length) {
101
- return this._resolve(retVal.definitions, qualifiedIDParts.join("."));
102
- }
103
- return retVal;
104
- };
105
- ECLScope.prototype.resolve = function (qualifiedID) {
106
- return this._resolve(this.definitions, qualifiedID);
107
- };
108
- ECLScope.prototype.suggestions = function () {
109
- var _this = this;
110
- return this.definitions.map(function (def) {
111
- return {
112
- name: def.name,
113
- type: _this.type
114
- };
115
- });
116
- };
117
- return ECLScope;
118
- }());
119
- export { ECLScope };
120
- var Definition = /** @class */ (function (_super) {
121
- __extends(Definition, _super);
122
- function Definition(sourcePath, xmlDefinition) {
123
- var _this = _super.call(this, xmlDefinition.$.name, xmlDefinition.$.type, sourcePath, xmlDefinition.children("Definition"), xmlDefinition.$.line, xmlDefinition.$.start, xmlDefinition.$.body, xmlDefinition.$.end) || this;
124
- _this.__attrs = xmlDefinition.$;
125
- _this.exported = !!xmlDefinition.$.exported;
126
- _this.shared = !!xmlDefinition.$.shared;
127
- _this.fullname = xmlDefinition.$.fullname;
128
- _this.inherittype = xmlDefinition.$.inherittype;
129
- _this.attrs = _this.parseAttrs(xmlDefinition.children("Attr"));
130
- _this.fields = _this.parseFields(xmlDefinition.children("Field"));
131
- return _this;
132
- }
133
- Definition.prototype.parseAttrs = function (attrs) {
134
- if (attrs === void 0) { attrs = []; }
135
- return attrs.map(function (attr) {
136
- var retVal = new Attr(attr);
137
- inspect(attr, "attr", retVal);
138
- return retVal;
139
- });
140
- };
141
- Definition.prototype.parseFields = function (fields) {
142
- var _this = this;
143
- if (fields === void 0) { fields = []; }
144
- return fields.map(function (field) {
145
- var retVal = new Field(_this, field);
146
- inspect(field, "field", retVal);
147
- return retVal;
148
- });
149
- };
150
- Definition.prototype.suggestions = function () {
151
- return _super.prototype.suggestions.call(this).concat(this.fields.map(function (field) {
152
- return {
153
- name: field.name,
154
- type: field.type
155
- };
156
- }));
157
- };
158
- return Definition;
159
- }(ECLScope));
160
- export { Definition };
161
- var Import = /** @class */ (function () {
162
- function Import(xmlImport) {
163
- this.__attrs = xmlImport.$;
164
- this.name = xmlImport.$.name;
165
- this.ref = xmlImport.$.ref;
166
- this.start = xmlImport.$.start;
167
- this.end = xmlImport.$.end;
168
- this.line = xmlImport.$.line;
169
- }
170
- return Import;
171
- }());
172
- export { Import };
173
- var Source = /** @class */ (function (_super) {
174
- __extends(Source, _super);
175
- function Source(xmlSource) {
176
- var _this = _super.call(this, xmlSource.$.name, "source", xmlSource.$.sourcePath, xmlSource.children("Definition")) || this;
177
- _this.__attrs = xmlSource.$;
178
- var nameParts = xmlSource.$.name.split(".");
179
- nameParts.pop();
180
- var fakeNode = new XMLNode("");
181
- fakeNode.appendAttribute("name", "$");
182
- fakeNode.appendAttribute("ref", nameParts.join("."));
183
- _this.imports = __spreadArray([
184
- new Import(fakeNode)
185
- ], _this.parseImports(xmlSource.children("Import")), true);
186
- return _this;
187
- }
188
- Source.prototype.parseImports = function (imports) {
189
- if (imports === void 0) { imports = []; }
190
- return imports.map(function (imp) {
191
- var retVal = new Import(imp);
192
- inspect(imp, "import", retVal);
193
- return retVal;
194
- });
195
- };
196
- Source.prototype.resolve = function (qualifiedID, charOffset) {
197
- var retVal;
198
- // Check Inner Scopes ---
199
- if (!retVal && charOffset !== undefined) {
200
- var scopes = this.scopeStackAt(charOffset);
201
- scopes.some(function (scope) {
202
- retVal = scope.resolve(qualifiedID);
203
- return !!retVal;
204
- });
205
- }
206
- // Check Definitions ---
207
- if (!retVal) {
208
- retVal = _super.prototype.resolve.call(this, qualifiedID);
209
- }
210
- return retVal;
211
- };
212
- return Source;
213
- }(ECLScope));
214
- export { Source };
215
- var isHiddenDirectory = function (source) { return path.basename(source).indexOf(".") === 0; };
216
- var isDirectory = function (source) { return fs.lstatSync(source).isDirectory() && !isHiddenDirectory(source); };
217
- var isEcl = function (source) { return [".ecl", ".ecllib"].indexOf(path.extname(source).toLowerCase()) >= 0; };
218
- var modAttrs = function (source) { return fs.readdirSync(source).map(function (name) { return path.join(source, name); }).filter(function (path) { return isDirectory(path) || isEcl(path); }); };
219
- var File = /** @class */ (function (_super) {
220
- __extends(File, _super);
221
- function File(name, sourcePath) {
222
- return _super.call(this, name, "file", sourcePath, []) || this;
223
- }
224
- File.prototype.suggestions = function () {
225
- return [];
226
- };
227
- return File;
228
- }(ECLScope));
229
- export { File };
230
- var Folder = /** @class */ (function (_super) {
231
- __extends(Folder, _super);
232
- function Folder(name, sourcePath) {
233
- return _super.call(this, name, "folder", sourcePath, []) || this;
234
- }
235
- Folder.prototype.suggestions = function () {
236
- return modAttrs(this.sourcePath).map(function (folder) {
237
- return {
238
- name: path.basename(folder, ".ecl"),
239
- type: "folder"
240
- };
241
- });
242
- };
243
- return Folder;
244
- }(ECLScope));
245
- export { Folder };
246
- var Workspace = /** @class */ (function () {
247
- function Workspace(workspacePath, eclccPath) {
248
- this._sourceByID = new DictionaryNoCase();
249
- this._sourceByPath = new Dictionary();
250
- this._test = new DictionaryNoCase();
251
- this._workspacePath = workspacePath;
252
- this._eclccPath = eclccPath;
253
- }
254
- Workspace.prototype.refresh = function () {
255
- this.primeWorkspace();
256
- this.primeClientTools();
257
- };
258
- Workspace.prototype.primeClientTools = function () {
259
- var _this = this;
260
- return locateClientTools(this._eclccPath, "", this._workspacePath).then(function (clientTools) {
261
- _this._clientTools = clientTools;
262
- return clientTools.paths();
263
- }).then(function (paths) {
264
- for (var _i = 0, _a = ["ECLCC_ECLLIBRARY_PATH", "ECLCC_PLUGIN_PATH"]; _i < _a.length; _i++) {
265
- var knownFolder = _a[_i];
266
- if (paths[knownFolder] && fs.existsSync(paths[knownFolder])) {
267
- _this.walkChildFolders(paths[knownFolder], paths[knownFolder]);
268
- }
269
- }
270
- return _this;
271
- });
272
- };
273
- Workspace.prototype.primeWorkspace = function () {
274
- if (fs.existsSync(this._workspacePath)) {
275
- this.visitFolder(this._workspacePath, this._workspacePath);
276
- }
277
- };
278
- Workspace.prototype.walkChildFolders = function (folderPath, refPath, force) {
279
- if (force === void 0) { force = false; }
280
- for (var _i = 0, _a = modAttrs(folderPath); _i < _a.length; _i++) {
281
- var child = _a[_i];
282
- if (!isDirectory(child)) {
283
- this.visitFile(child, refPath, force);
284
- }
285
- else {
286
- this.visitFolder(child, refPath, force);
287
- }
288
- }
289
- };
290
- Workspace.prototype.visitFile = function (filePath, refPath, force) {
291
- if (force === void 0) { force = false; }
292
- var filePathInfo = path.parse(filePath);
293
- var pathNoExt = path.join(filePathInfo.dir, filePathInfo.name);
294
- var name = path.relative(refPath, pathNoExt).split(path.sep).join(".");
295
- if (force || !this._test.has(name)) {
296
- this._test.set(name, new File("", filePath));
297
- }
298
- };
299
- Workspace.prototype.visitFolder = function (folderPath, refPath, force) {
300
- if (force === void 0) { force = false; }
301
- var name = path.relative(refPath, folderPath).split(path.sep).join(".");
302
- if (force || !this._test.has(name)) {
303
- this._test.set(name, new Folder(name, folderPath));
304
- this.walkChildFolders(folderPath, refPath, force);
305
- }
306
- };
307
- Workspace.prototype.buildStack = function (parentStack, name, removeDupID) {
308
- var nameStack = name.split(".");
309
- if (removeDupID && parentStack[parentStack.length - 1] === nameStack[0]) {
310
- nameStack.shift();
311
- }
312
- var stack = __spreadArray(__spreadArray([], parentStack, true), nameStack, true);
313
- var qid = stack.join(".");
314
- return {
315
- stack: stack,
316
- qid: qid
317
- };
318
- };
319
- Workspace.prototype.walkECLScope = function (parentStack, scope) {
320
- var info = this.buildStack(parentStack, scope.name, true);
321
- this._test.set(info.qid, scope);
322
- for (var _i = 0, _a = scope.definitions; _i < _a.length; _i++) {
323
- var def = _a[_i];
324
- this.walkDefinition(info.stack, def);
325
- }
326
- };
327
- Workspace.prototype.walkField = function (parentStack, field) {
328
- var info = this.buildStack(parentStack, field.name, false);
329
- this._test.set(info.qid, field);
330
- };
331
- Workspace.prototype.walkDefinition = function (parentStack, definition) {
332
- var info = this.buildStack(parentStack, definition.name, true);
333
- this.walkECLScope(parentStack, definition);
334
- for (var _i = 0, _a = definition.fields; _i < _a.length; _i++) {
335
- var field = _a[_i];
336
- this.walkField(info.stack, field);
337
- }
338
- };
339
- Workspace.prototype.walkSource = function (source) {
340
- // const dirName = path.dirname(source.sourcePath);
341
- // const relName = path.relative(this._workspacePath, dirName).split(path.sep).join(".");
342
- // const folder = new Folder(relName, dirName);
343
- // this._test.set(folder.name, folder);
344
- this.walkECLScope([], source);
345
- };
346
- Workspace.prototype.parseSources = function (sources) {
347
- if (sources === void 0) { sources = []; }
348
- for (var _i = 0, sources_1 = sources; _i < sources_1.length; _i++) {
349
- var _source = sources_1[_i];
350
- if (_source.$.name) { // Plugins have no name...
351
- var source = new Source(_source);
352
- inspect(_source, "source", source);
353
- this._sourceByID.set(source.name, source);
354
- this._sourceByPath.set(source.sourcePath, source);
355
- // If external source like "std.system.ThorLib" then need to backup to "std" and add its folder
356
- if (source.name) {
357
- var sourceNameParts = source.name.split(".");
358
- var depth = sourceNameParts.length;
359
- if (depth > 1) {
360
- var sourcePath = source.sourcePath;
361
- while (depth > 1) {
362
- sourcePath = path.dirname(sourcePath);
363
- --depth;
364
- }
365
- this.visitFolder(sourcePath, path.dirname(sourcePath));
366
- }
367
- }
368
- this.walkSource(source);
369
- }
370
- }
371
- };
372
- Workspace.prototype.parseMetaXML = function (metaXML) {
373
- var metaParser = new MetaParser();
374
- metaParser.parse(metaXML);
375
- this.parseSources(metaParser.sources);
376
- return metaParser.sources.map(function (source) { return path.normalize(source.$.sourcePath); });
377
- };
378
- Workspace.prototype.resolveQualifiedID = function (filePath, qualifiedID, charOffset) {
379
- var retVal;
380
- if (!retVal && this._test.has(qualifiedID)) {
381
- retVal = this._test.get(qualifiedID).scope;
382
- }
383
- if (!retVal && this._sourceByPath.has(filePath)) {
384
- var eclSource = this._sourceByPath.get(filePath);
385
- // Resolve Imports ---
386
- var qualifiedIDParts = qualifiedID.split(".");
387
- for (var _i = 0, _a = eclSource.imports; _i < _a.length; _i++) {
388
- var imp = _a[_i];
389
- if (imp.name.toLowerCase() === qualifiedIDParts[0].toLowerCase()) {
390
- if (imp.ref) {
391
- qualifiedIDParts[0] = imp.ref;
392
- }
393
- else {
394
- qualifiedIDParts.shift();
395
- }
396
- break;
397
- }
398
- }
399
- var realQID = qualifiedIDParts.join(".");
400
- if (!retVal && this._test.has(realQID)) {
401
- retVal = this._test.get(realQID).scope;
402
- }
403
- if (!retVal) {
404
- realQID = __spreadArray(__spreadArray([], eclSource.name.split("."), true), qualifiedIDParts, true).join(".");
405
- if (this._test.has(realQID)) {
406
- retVal = this._test.get(realQID).scope;
407
- }
408
- }
409
- }
410
- return retVal;
411
- };
412
- Workspace.prototype.resolvePartialID = function (filePath, partialID, charOffset) {
413
- partialID = partialID.toLowerCase();
414
- var partialIDParts = partialID.split(".");
415
- partialIDParts.pop();
416
- var partialIDQualifier = partialIDParts.length === 1 ? partialIDParts[0] : partialIDParts.join(".");
417
- return this.resolveQualifiedID(filePath, partialIDQualifier, charOffset);
418
- };
419
- return Workspace;
420
- }());
421
- export { Workspace };
422
- var workspaceCache = new Dictionary();
423
- export function attachWorkspace(_workspacePath, eclccPath) {
424
- var workspacePath = path.normalize(_workspacePath);
425
- if (!workspaceCache.has(workspacePath)) {
426
- var workspace = new Workspace(workspacePath, eclccPath);
427
- workspaceCache.set(workspacePath, workspace);
428
- workspace.refresh();
429
- }
430
- return workspaceCache.get(workspacePath);
431
- }
432
- function isQualifiedIDChar(lineText, charPos, reverse) {
433
- if (charPos < 0)
434
- return false;
435
- var testChar = lineText.charAt(charPos);
436
- return (reverse ? /[a-zA-Z\d_\.$]/ : /[a-zA-Z\d_]/).test(testChar);
437
- }
438
- export function qualifiedIDBoundary(lineText, charPos, reverse) {
439
- while (isQualifiedIDChar(lineText, charPos, reverse)) {
440
- charPos += reverse ? -1 : 1;
441
- }
442
- return charPos + (reverse ? 1 : -1);
443
- }
444
- var MetaParser = /** @class */ (function (_super) {
445
- __extends(MetaParser, _super);
446
- function MetaParser() {
447
- var _this = _super !== null && _super.apply(this, arguments) || this;
448
- _this.sources = [];
449
- return _this;
450
- }
451
- MetaParser.prototype.endXMLNode = function (e) {
452
- switch (e.name) {
453
- case "Source":
454
- this.sources.push(e);
455
- break;
456
- default:
457
- break;
458
- }
459
- _super.prototype.endXMLNode.call(this, e);
460
- };
461
- return MetaParser;
462
- }(SAXStackParser));
463
- //# sourceMappingURL=eclMeta.js.map