@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.
- package/dist/index.js +6 -10388
- package/dist/index.js.map +7 -1
- package/dist/index.node.js +925 -10845
- package/dist/index.node.js.map +7 -1
- package/package.json +55 -60
- package/src/__package__.ts +1 -1
- package/src/clienttools/eclMeta.ts +1 -1
- package/src/clienttools/eclcc.ts +1 -1
- package/src/ecl/activity.ts +3 -3
- package/src/ecl/dfuWorkunit.ts +5 -5
- package/src/ecl/graph.ts +4 -4
- package/src/ecl/logicalFile.ts +3 -3
- package/src/ecl/machine.ts +2 -2
- package/src/ecl/query.ts +12 -12
- package/src/ecl/queryGraph.ts +3 -3
- package/src/ecl/resource.ts +1 -1
- package/src/ecl/result.ts +4 -4
- package/src/ecl/scope.ts +2 -2
- package/src/ecl/sourceFile.ts +2 -2
- package/src/ecl/store.ts +3 -3
- package/src/ecl/targetCluster.ts +4 -4
- package/src/ecl/timer.ts +2 -2
- package/src/ecl/topology.ts +3 -3
- package/src/ecl/workunit.ts +11 -11
- package/src/ecl/xsdParser.ts +0 -1
- package/src/espConnection.ts +1 -1
- package/src/index-common.ts +38 -38
- package/src/index.node.ts +9 -5
- package/src/index.ts +1 -3
- package/src/services/fileSpray.ts +1 -1
- package/src/services/wsAccess.ts +1 -1
- package/src/services/wsAccount.ts +2 -2
- package/src/services/wsCloud.ts +1 -1
- package/src/services/wsCodesign.ts +2 -2
- package/src/services/wsDFU.ts +1 -1
- package/src/services/wsDFUXRef.ts +2 -2
- package/src/services/wsDali.ts +1 -1
- package/src/services/wsEcl.ts +2 -2
- package/src/services/wsElk.ts +1 -1
- package/src/services/wsLogaccess.ts +3 -3
- package/src/services/wsMachine.ts +1 -1
- package/src/services/wsPackageProcess.ts +1 -1
- package/src/services/wsResources.ts +1 -1
- package/src/services/wsSMC.ts +2 -2
- package/src/services/wsSasha.ts +1 -1
- package/src/services/wsStore.ts +2 -2
- package/src/services/wsTopology.ts +2 -2
- package/src/services/wsWorkunits.ts +3 -3
- package/src/services/wsdl/FileSpray/v1.23/FileSpray.ts +828 -828
- package/src/services/wsdl/FileSpray/v1.25/FileSpray.ts +2 -2
- package/src/services/wsdl/FileSpray/v1.26/FileSpray.ts +2 -2
- package/src/services/wsdl/WsCloud/v1/WsCloud.ts +20 -20
- package/src/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.ts +165 -165
- package/src/services/wsdl/WsDali/v1.04/WsDali.ts +2 -2
- package/src/services/wsdl/WsDali/v1.07/WsDali.ts +2 -2
- package/src/services/wsdl/WsDfu/v1.62/WsDfu.ts +2 -2
- package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +2 -2
- package/src/services/wsdl/WsDfu/v1.65/WsDfu.ts +2 -2
- package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +86 -86
- package/src/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts +434 -434
- package/src/services/wsdl/WsResources/v1.01/WsResources.ts +2 -2
- package/src/services/wsdl/WsSMC/v1.24/WsSMC.ts +514 -514
- package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +2 -2
- package/src/services/wsdl/WsSasha/v1.01/WsSasha.ts +2 -2
- package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +2 -2
- package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +2 -2
- package/src/services/wsdl/WsWorkunits/v1.88/WsWorkunits.ts +2415 -2415
- package/src/services/wsdl/WsWorkunits/v1.94/WsWorkunits.ts +2 -2
- package/src/services/wsdl/WsWorkunits/v1.95/WsWorkunits.ts +2 -2
- package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +2 -2
- package/src/services/wsdl/WsWorkunits/v1.98/WsWorkunits.ts +2 -2
- package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +2 -2
- package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +2 -2
- package/src/services/wsdl/ws_access/v1.16/ws_access.ts +953 -953
- package/src/services/wsdl/ws_access/v1.17/ws_access.ts +2 -2
- package/src/services/wsdl/ws_account/v1.05/ws_account.ts +78 -78
- package/src/services/wsdl/ws_account/v1.06/ws_account.ts +2 -2
- package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +68 -68
- package/src/services/wsdl/ws_elk/v1/ws_elk.ts +29 -29
- package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +54 -54
- package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +2 -2
- package/src/services/wsdl/ws_logaccess/v1.03/ws_logaccess.ts +2 -2
- package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +2 -2
- package/src/services/wsdl/ws_logaccess/v1.05/ws_logaccess.ts +2 -2
- package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +2 -2
- package/src/services/wsdl/wsstore/v1.02/wsstore.ts +213 -213
- package/types/__package__.d.ts +1 -2
- package/types/clienttools/eclMeta.d.ts +1 -2
- package/types/clienttools/eclcc.d.ts +1 -2
- package/types/connection.d.ts +0 -1
- package/types/ecl/activity.d.ts +3 -4
- package/types/ecl/dfuWorkunit.d.ts +4 -5
- package/types/ecl/graph.d.ts +4 -5
- package/types/ecl/logicalFile.d.ts +2 -3
- package/types/ecl/machine.d.ts +2 -3
- package/types/ecl/query.d.ts +6 -7
- package/types/ecl/queryGraph.d.ts +0 -1
- package/types/ecl/resource.d.ts +1 -2
- package/types/ecl/result.d.ts +4 -5
- package/types/ecl/scope.d.ts +2 -3
- package/types/ecl/sourceFile.d.ts +2 -3
- package/types/ecl/store.d.ts +3 -4
- package/types/ecl/targetCluster.d.ts +4 -5
- package/types/ecl/timer.d.ts +2 -3
- package/types/ecl/topology.d.ts +3 -4
- package/types/ecl/workunit.d.ts +10 -11
- package/types/ecl/xsdParser.d.ts +0 -1
- package/types/espConnection.d.ts +1 -2
- package/types/index-common.d.ts +38 -39
- package/types/index.node.d.ts +3 -4
- package/types/pem/trustwave.d.ts +0 -1
- package/types/services/fileSpray.d.ts +1 -2
- package/types/services/wsAccess.d.ts +1 -2
- package/types/services/wsAccount.d.ts +1 -2
- package/types/services/wsCloud.d.ts +1 -2
- package/types/services/wsCodesign.d.ts +1 -2
- package/types/services/wsDFU.d.ts +1 -2
- package/types/services/wsDFUXRef.d.ts +2 -3
- package/types/services/wsDali.d.ts +1 -2
- package/types/services/wsEcl.d.ts +2 -3
- package/types/services/wsElk.d.ts +1 -2
- package/types/services/wsLogaccess.d.ts +1 -2
- package/types/services/wsMachine.d.ts +1 -2
- package/types/services/wsPackageProcess.d.ts +1 -2
- package/types/services/wsResources.d.ts +1 -2
- package/types/services/wsSMC.d.ts +2 -3
- package/types/services/wsSasha.d.ts +1 -2
- package/types/services/wsStore.d.ts +2 -3
- package/types/services/wsTopology.d.ts +2 -3
- package/types/services/wsWorkunits.d.ts +3 -4
- package/types/services/wsdl/FileSpray/v1.26/FileSpray.d.ts +2 -3
- package/types/services/wsdl/WsCloud/v1/WsCloud.d.ts +2 -3
- package/types/services/wsdl/WsDali/v1.07/WsDali.d.ts +2 -3
- package/types/services/wsdl/WsDfu/v1.65/WsDfu.d.ts +2 -3
- package/types/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts +2 -3
- package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts +2 -3
- package/types/services/wsdl/WsSMC/v1.27/WsSMC.d.ts +2 -3
- package/types/services/wsdl/WsSasha/v1.01/WsSasha.d.ts +2 -3
- package/types/services/wsdl/WsTopology/v1.32/WsTopology.d.ts +2 -3
- package/types/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts +2 -3
- package/types/services/wsdl/ws_access/v1.17/ws_access.d.ts +2 -3
- package/types/services/wsdl/ws_account/v1.06/ws_account.d.ts +2 -3
- package/types/services/wsdl/ws_elk/v1/ws_elk.d.ts +2 -3
- package/types/services/wsdl/ws_logaccess/v1.05/ws_logaccess.d.ts +2 -3
- package/types/services/wsdl/ws_machine/v1.17/ws_machine.d.ts +2 -3
- package/dist/index.es6.js +0 -10704
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/dist/index.node.min.js +0 -2
- package/dist/index.node.min.js.map +0 -1
- package/lib-es6/__package__.js +0 -4
- package/lib-es6/__package__.js.map +0 -1
- package/lib-es6/__tests__/dfuXRef.js +0 -32
- package/lib-es6/__tests__/dfuXRef.js.map +0 -1
- package/lib-es6/__tests__/https.js +0 -60
- package/lib-es6/__tests__/https.js.map +0 -1
- package/lib-es6/__tests__/workunit.js +0 -71
- package/lib-es6/__tests__/workunit.js.map +0 -1
- package/lib-es6/clienttools/eclMeta.js +0 -463
- package/lib-es6/clienttools/eclMeta.js.map +0 -1
- package/lib-es6/clienttools/eclcc.js +0 -585
- package/lib-es6/clienttools/eclcc.js.map +0 -1
- package/lib-es6/connection.js +0 -254
- package/lib-es6/connection.js.map +0 -1
- package/lib-es6/ecl/activity.js +0 -172
- package/lib-es6/ecl/activity.js.map +0 -1
- package/lib-es6/ecl/dfuWorkunit.js +0 -591
- package/lib-es6/ecl/dfuWorkunit.js.map +0 -1
- package/lib-es6/ecl/graph.js +0 -289
- package/lib-es6/ecl/graph.js.map +0 -1
- package/lib-es6/ecl/logicalFile.js +0 -391
- package/lib-es6/ecl/logicalFile.js.map +0 -1
- package/lib-es6/ecl/machine.js +0 -159
- package/lib-es6/ecl/machine.js.map +0 -1
- package/lib-es6/ecl/query.js +0 -422
- package/lib-es6/ecl/query.js.map +0 -1
- package/lib-es6/ecl/queryGraph.js +0 -759
- package/lib-es6/ecl/queryGraph.js.map +0 -1
- package/lib-es6/ecl/resource.js +0 -47
- package/lib-es6/ecl/resource.js.map +0 -1
- package/lib-es6/ecl/result.js +0 -288
- package/lib-es6/ecl/result.js.map +0 -1
- package/lib-es6/ecl/scope.js +0 -234
- package/lib-es6/ecl/scope.js.map +0 -1
- package/lib-es6/ecl/sourceFile.js +0 -60
- package/lib-es6/ecl/sourceFile.js.map +0 -1
- package/lib-es6/ecl/store.js +0 -166
- package/lib-es6/ecl/store.js.map +0 -1
- package/lib-es6/ecl/targetCluster.js +0 -194
- package/lib-es6/ecl/targetCluster.js.map +0 -1
- package/lib-es6/ecl/timer.js +0 -76
- package/lib-es6/ecl/timer.js.map +0 -1
- package/lib-es6/ecl/topology.js +0 -156
- package/lib-es6/ecl/topology.js.map +0 -1
- package/lib-es6/ecl/workunit.js +0 -1553
- package/lib-es6/ecl/workunit.js.map +0 -1
- package/lib-es6/ecl/xsdParser.js +0 -253
- package/lib-es6/ecl/xsdParser.js.map +0 -1
- package/lib-es6/espConnection.js +0 -148
- package/lib-es6/espConnection.js.map +0 -1
- package/lib-es6/index-common.js +0 -39
- package/lib-es6/index-common.js.map +0 -1
- package/lib-es6/index.js +0 -3
- package/lib-es6/index.js.map +0 -1
- package/lib-es6/index.node.js +0 -64
- package/lib-es6/index.node.js.map +0 -1
- package/lib-es6/pem/trustwave.js +0 -2
- package/lib-es6/pem/trustwave.js.map +0 -1
- package/lib-es6/services/fileSpray.js +0 -40
- package/lib-es6/services/fileSpray.js.map +0 -1
- package/lib-es6/services/wsAccess.js +0 -12
- package/lib-es6/services/wsAccess.js.map +0 -1
- package/lib-es6/services/wsAccount.js +0 -27
- package/lib-es6/services/wsAccount.js.map +0 -1
- package/lib-es6/services/wsCloud.js +0 -23
- package/lib-es6/services/wsCloud.js.map +0 -1
- package/lib-es6/services/wsCodesign.js +0 -26
- package/lib-es6/services/wsCodesign.js.map +0 -1
- package/lib-es6/services/wsDFU.js +0 -19
- package/lib-es6/services/wsDFU.js.map +0 -1
- package/lib-es6/services/wsDFUXRef.js +0 -45
- package/lib-es6/services/wsDFUXRef.js.map +0 -1
- package/lib-es6/services/wsDali.js +0 -11
- package/lib-es6/services/wsDali.js.map +0 -1
- package/lib-es6/services/wsEcl.js +0 -111
- package/lib-es6/services/wsEcl.js.map +0 -1
- package/lib-es6/services/wsElk.js +0 -11
- package/lib-es6/services/wsElk.js.map +0 -1
- package/lib-es6/services/wsLogaccess.js +0 -226
- package/lib-es6/services/wsLogaccess.js.map +0 -1
- package/lib-es6/services/wsMachine.js +0 -57
- package/lib-es6/services/wsMachine.js.map +0 -1
- package/lib-es6/services/wsPackageProcess.js +0 -11
- package/lib-es6/services/wsPackageProcess.js.map +0 -1
- package/lib-es6/services/wsResources.js +0 -11
- package/lib-es6/services/wsResources.js.map +0 -1
- package/lib-es6/services/wsSMC.js +0 -22
- package/lib-es6/services/wsSMC.js.map +0 -1
- package/lib-es6/services/wsSasha.js +0 -12
- package/lib-es6/services/wsSasha.js.map +0 -1
- package/lib-es6/services/wsStore.js +0 -56
- package/lib-es6/services/wsStore.js.map +0 -1
- package/lib-es6/services/wsTopology.js +0 -45
- package/lib-es6/services/wsTopology.js.map +0 -1
- package/lib-es6/services/wsWorkunits.js +0 -136
- package/lib-es6/services/wsWorkunits.js.map +0 -1
- package/lib-es6/services/wsdl/FileSpray/v1.23/FileSpray.js +0 -110
- package/lib-es6/services/wsdl/FileSpray/v1.23/FileSpray.js.map +0 -1
- package/lib-es6/services/wsdl/FileSpray/v1.25/FileSpray.js +0 -116
- package/lib-es6/services/wsdl/FileSpray/v1.25/FileSpray.js.map +0 -1
- package/lib-es6/services/wsdl/FileSpray/v1.26/FileSpray.js +0 -119
- package/lib-es6/services/wsdl/FileSpray/v1.26/FileSpray.js.map +0 -1
- package/lib-es6/services/wsdl/WsCloud/v1/WsCloud.js +0 -17
- package/lib-es6/services/wsdl/WsCloud/v1/WsCloud.js.map +0 -1
- package/lib-es6/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.js +0 -47
- package/lib-es6/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.js.map +0 -1
- package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js +0 -68
- package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js.map +0 -1
- package/lib-es6/services/wsdl/WsDali/v1.07/WsDali.js +0 -101
- package/lib-es6/services/wsdl/WsDali/v1.07/WsDali.js.map +0 -1
- package/lib-es6/services/wsdl/WsDfu/v1.62/WsDfu.js +0 -142
- package/lib-es6/services/wsdl/WsDfu/v1.62/WsDfu.js.map +0 -1
- package/lib-es6/services/wsdl/WsDfu/v1.63/WsDfu.js +0 -145
- package/lib-es6/services/wsdl/WsDfu/v1.63/WsDfu.js.map +0 -1
- package/lib-es6/services/wsdl/WsDfu/v1.65/WsDfu.js +0 -145
- package/lib-es6/services/wsdl/WsDfu/v1.65/WsDfu.js.map +0 -1
- package/lib-es6/services/wsdl/WsFileIO/v1.01/WsFileIO.js +0 -23
- package/lib-es6/services/wsdl/WsFileIO/v1.01/WsFileIO.js.map +0 -1
- package/lib-es6/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.js +0 -62
- package/lib-es6/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.js.map +0 -1
- package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js +0 -20
- package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js.map +0 -1
- package/lib-es6/services/wsdl/WsSMC/v1.24/WsSMC.js +0 -93
- package/lib-es6/services/wsdl/WsSMC/v1.24/WsSMC.js.map +0 -1
- package/lib-es6/services/wsdl/WsSMC/v1.27/WsSMC.js +0 -99
- package/lib-es6/services/wsdl/WsSMC/v1.27/WsSMC.js.map +0 -1
- package/lib-es6/services/wsdl/WsSasha/v1.01/WsSasha.js +0 -34
- package/lib-es6/services/wsdl/WsSasha/v1.01/WsSasha.js.map +0 -1
- package/lib-es6/services/wsdl/WsTopology/v1.31/WsTopology.js +0 -80
- package/lib-es6/services/wsdl/WsTopology/v1.31/WsTopology.js.map +0 -1
- package/lib-es6/services/wsdl/WsTopology/v1.32/WsTopology.js +0 -83
- package/lib-es6/services/wsdl/WsTopology/v1.32/WsTopology.js.map +0 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.88/WsWorkunits.js +0 -328
- package/lib-es6/services/wsdl/WsWorkunits/v1.88/WsWorkunits.js.map +0 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.94/WsWorkunits.js +0 -354
- package/lib-es6/services/wsdl/WsWorkunits/v1.94/WsWorkunits.js.map +0 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.95/WsWorkunits.js +0 -354
- package/lib-es6/services/wsdl/WsWorkunits/v1.95/WsWorkunits.js.map +0 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.97/WsWorkunits.js +0 -376
- package/lib-es6/services/wsdl/WsWorkunits/v1.97/WsWorkunits.js.map +0 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.98/WsWorkunits.js +0 -370
- package/lib-es6/services/wsdl/WsWorkunits/v1.98/WsWorkunits.js.map +0 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.99/WsWorkunits.js +0 -376
- package/lib-es6/services/wsdl/WsWorkunits/v1.99/WsWorkunits.js.map +0 -1
- package/lib-es6/services/wsdl/WsWorkunits/v2/WsWorkunits.js +0 -376
- package/lib-es6/services/wsdl/WsWorkunits/v2/WsWorkunits.js.map +0 -1
- package/lib-es6/services/wsdl/ws_access/v1.16/ws_access.js +0 -203
- package/lib-es6/services/wsdl/ws_access/v1.16/ws_access.js.map +0 -1
- package/lib-es6/services/wsdl/ws_access/v1.17/ws_access.js +0 -200
- package/lib-es6/services/wsdl/ws_access/v1.17/ws_access.js.map +0 -1
- package/lib-es6/services/wsdl/ws_account/v1.05/ws_account.js +0 -26
- package/lib-es6/services/wsdl/ws_account/v1.05/ws_account.js.map +0 -1
- package/lib-es6/services/wsdl/ws_account/v1.06/ws_account.js +0 -26
- package/lib-es6/services/wsdl/ws_account/v1.06/ws_account.js.map +0 -1
- package/lib-es6/services/wsdl/ws_codesign/v1.1/ws_codesign.js +0 -27
- package/lib-es6/services/wsdl/ws_codesign/v1.1/ws_codesign.js.map +0 -1
- package/lib-es6/services/wsdl/ws_elk/v1/ws_elk.js +0 -17
- package/lib-es6/services/wsdl/ws_elk/v1/ws_elk.js.map +0 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1/ws_logaccess.js +0 -28
- package/lib-es6/services/wsdl/ws_logaccess/v1/ws_logaccess.js.map +0 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js +0 -47
- package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js.map +0 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.03/ws_logaccess.js +0 -63
- package/lib-es6/services/wsdl/ws_logaccess/v1.03/ws_logaccess.js.map +0 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.04/ws_logaccess.js +0 -85
- package/lib-es6/services/wsdl/ws_logaccess/v1.04/ws_logaccess.js.map +0 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.05/ws_logaccess.js +0 -88
- package/lib-es6/services/wsdl/ws_logaccess/v1.05/ws_logaccess.js.map +0 -1
- package/lib-es6/services/wsdl/ws_machine/v1.17/ws_machine.js +0 -41
- package/lib-es6/services/wsdl/ws_machine/v1.17/ws_machine.js.map +0 -1
- package/lib-es6/services/wsdl/wsstore/v1.02/wsstore.js +0 -44
- package/lib-es6/services/wsdl/wsstore/v1.02/wsstore.js.map +0 -1
- package/src/__tests__/dfuXRef.ts +0 -22
- package/src/__tests__/https.ts +0 -69
- package/src/__tests__/workunit.ts +0 -35
- package/types/__package__.d.ts.map +0 -1
- package/types/__tests__/dfuXRef.d.ts +0 -2
- package/types/__tests__/dfuXRef.d.ts.map +0 -1
- package/types/__tests__/https.d.ts +0 -2
- package/types/__tests__/https.d.ts.map +0 -1
- package/types/__tests__/workunit.d.ts +0 -2
- package/types/__tests__/workunit.d.ts.map +0 -1
- package/types/clienttools/eclMeta.d.ts.map +0 -1
- package/types/clienttools/eclcc.d.ts.map +0 -1
- package/types/connection.d.ts.map +0 -1
- package/types/ecl/activity.d.ts.map +0 -1
- package/types/ecl/dfuWorkunit.d.ts.map +0 -1
- package/types/ecl/graph.d.ts.map +0 -1
- package/types/ecl/logicalFile.d.ts.map +0 -1
- package/types/ecl/machine.d.ts.map +0 -1
- package/types/ecl/query.d.ts.map +0 -1
- package/types/ecl/queryGraph.d.ts.map +0 -1
- package/types/ecl/resource.d.ts.map +0 -1
- package/types/ecl/result.d.ts.map +0 -1
- package/types/ecl/scope.d.ts.map +0 -1
- package/types/ecl/sourceFile.d.ts.map +0 -1
- package/types/ecl/store.d.ts.map +0 -1
- package/types/ecl/targetCluster.d.ts.map +0 -1
- package/types/ecl/timer.d.ts.map +0 -1
- package/types/ecl/topology.d.ts.map +0 -1
- package/types/ecl/workunit.d.ts.map +0 -1
- package/types/ecl/xsdParser.d.ts.map +0 -1
- package/types/espConnection.d.ts.map +0 -1
- package/types/index-common.d.ts.map +0 -1
- package/types/index.d.ts +0 -3
- package/types/index.d.ts.map +0 -1
- package/types/index.node.d.ts.map +0 -1
- package/types/pem/trustwave.d.ts.map +0 -1
- package/types/services/fileSpray.d.ts.map +0 -1
- package/types/services/wsAccess.d.ts.map +0 -1
- package/types/services/wsAccount.d.ts.map +0 -1
- package/types/services/wsCloud.d.ts.map +0 -1
- package/types/services/wsCodesign.d.ts.map +0 -1
- package/types/services/wsDFU.d.ts.map +0 -1
- package/types/services/wsDFUXRef.d.ts.map +0 -1
- package/types/services/wsDali.d.ts.map +0 -1
- package/types/services/wsEcl.d.ts.map +0 -1
- package/types/services/wsElk.d.ts.map +0 -1
- package/types/services/wsLogaccess.d.ts.map +0 -1
- package/types/services/wsMachine.d.ts.map +0 -1
- package/types/services/wsPackageProcess.d.ts.map +0 -1
- package/types/services/wsResources.d.ts.map +0 -1
- package/types/services/wsSMC.d.ts.map +0 -1
- package/types/services/wsSasha.d.ts.map +0 -1
- package/types/services/wsStore.d.ts.map +0 -1
- package/types/services/wsTopology.d.ts.map +0 -1
- package/types/services/wsWorkunits.d.ts.map +0 -1
- package/types/services/wsdl/FileSpray/v1.23/FileSpray.d.ts +0 -830
- package/types/services/wsdl/FileSpray/v1.23/FileSpray.d.ts.map +0 -1
- package/types/services/wsdl/FileSpray/v1.25/FileSpray.d.ts +0 -856
- package/types/services/wsdl/FileSpray/v1.25/FileSpray.d.ts.map +0 -1
- package/types/services/wsdl/FileSpray/v1.26/FileSpray.d.ts.map +0 -1
- package/types/services/wsdl/WsCloud/v1/WsCloud.d.ts.map +0 -1
- package/types/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts +0 -148
- package/types/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts.map +0 -1
- package/types/services/wsdl/WsDali/v1.04/WsDali.d.ts +0 -125
- package/types/services/wsdl/WsDali/v1.04/WsDali.d.ts.map +0 -1
- package/types/services/wsdl/WsDali/v1.07/WsDali.d.ts.map +0 -1
- package/types/services/wsdl/WsDfu/v1.62/WsDfu.d.ts +0 -1224
- package/types/services/wsdl/WsDfu/v1.62/WsDfu.d.ts.map +0 -1
- package/types/services/wsdl/WsDfu/v1.63/WsDfu.d.ts +0 -1233
- package/types/services/wsdl/WsDfu/v1.63/WsDfu.d.ts.map +0 -1
- package/types/services/wsdl/WsDfu/v1.65/WsDfu.d.ts.map +0 -1
- package/types/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts +0 -77
- package/types/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts.map +0 -1
- package/types/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts.map +0 -1
- package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts.map +0 -1
- package/types/services/wsdl/WsSMC/v1.24/WsSMC.d.ts +0 -515
- package/types/services/wsdl/WsSMC/v1.24/WsSMC.d.ts.map +0 -1
- package/types/services/wsdl/WsSMC/v1.27/WsSMC.d.ts.map +0 -1
- package/types/services/wsdl/WsSasha/v1.01/WsSasha.d.ts.map +0 -1
- package/types/services/wsdl/WsTopology/v1.31/WsTopology.d.ts +0 -694
- package/types/services/wsdl/WsTopology/v1.31/WsTopology.d.ts.map +0 -1
- package/types/services/wsdl/WsTopology/v1.32/WsTopology.d.ts.map +0 -1
- package/types/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts +0 -2405
- package/types/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts.map +0 -1
- package/types/services/wsdl/WsWorkunits/v1.94/WsWorkunits.d.ts +0 -2520
- package/types/services/wsdl/WsWorkunits/v1.94/WsWorkunits.d.ts.map +0 -1
- package/types/services/wsdl/WsWorkunits/v1.95/WsWorkunits.d.ts +0 -2521
- package/types/services/wsdl/WsWorkunits/v1.95/WsWorkunits.d.ts.map +0 -1
- package/types/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts +0 -2529
- package/types/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts.map +0 -1
- package/types/services/wsdl/WsWorkunits/v1.98/WsWorkunits.d.ts +0 -2623
- package/types/services/wsdl/WsWorkunits/v1.98/WsWorkunits.d.ts.map +0 -1
- package/types/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts +0 -2555
- package/types/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts.map +0 -1
- package/types/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts.map +0 -1
- package/types/services/wsdl/ws_access/v1.16/ws_access.d.ts +0 -778
- package/types/services/wsdl/ws_access/v1.16/ws_access.d.ts.map +0 -1
- package/types/services/wsdl/ws_access/v1.17/ws_access.d.ts.map +0 -1
- package/types/services/wsdl/ws_account/v1.05/ws_account.d.ts +0 -74
- package/types/services/wsdl/ws_account/v1.05/ws_account.d.ts.map +0 -1
- package/types/services/wsdl/ws_account/v1.06/ws_account.d.ts.map +0 -1
- package/types/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts +0 -67
- package/types/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts.map +0 -1
- package/types/services/wsdl/ws_elk/v1/ws_elk.d.ts.map +0 -1
- package/types/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts +0 -56
- package/types/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts.map +0 -1
- package/types/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts +0 -126
- package/types/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts.map +0 -1
- package/types/services/wsdl/ws_logaccess/v1.03/ws_logaccess.d.ts +0 -150
- package/types/services/wsdl/ws_logaccess/v1.03/ws_logaccess.d.ts.map +0 -1
- package/types/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts +0 -171
- package/types/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts.map +0 -1
- package/types/services/wsdl/ws_logaccess/v1.05/ws_logaccess.d.ts.map +0 -1
- package/types/services/wsdl/ws_machine/v1.17/ws_machine.d.ts.map +0 -1
- package/types/services/wsdl/wsstore/v1.02/wsstore.d.ts +0 -179
- package/types/services/wsdl/wsstore/v1.02/wsstore.d.ts.map +0 -1
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/__tests__/dfuXRef.d.ts +0 -2
- package/types-3.4/__tests__/https.d.ts +0 -2
- package/types-3.4/__tests__/workunit.d.ts +0 -2
- package/types-3.4/clienttools/eclMeta.d.ts +0 -124
- package/types-3.4/clienttools/eclcc.d.ts +0 -105
- package/types-3.4/connection.d.ts +0 -43
- package/types-3.4/ecl/activity.d.ts +0 -40
- package/types-3.4/ecl/dfuWorkunit.d.ts +0 -103
- package/types-3.4/ecl/graph.d.ts +0 -46
- package/types-3.4/ecl/logicalFile.d.ts +0 -91
- package/types-3.4/ecl/machine.d.ts +0 -40
- package/types-3.4/ecl/query.d.ts +0 -70
- package/types-3.4/ecl/queryGraph.d.ts +0 -101
- package/types-3.4/ecl/resource.d.ts +0 -16
- package/types-3.4/ecl/result.d.ts +0 -88
- package/types-3.4/ecl/scope.d.ts +0 -55
- package/types-3.4/ecl/sourceFile.d.ts +0 -19
- package/types-3.4/ecl/store.d.ts +0 -40
- package/types-3.4/ecl/targetCluster.d.ts +0 -43
- package/types-3.4/ecl/timer.d.ts +0 -24
- package/types-3.4/ecl/topology.d.ts +0 -33
- package/types-3.4/ecl/workunit.d.ts +0 -275
- package/types-3.4/ecl/xsdParser.d.ts +0 -42
- package/types-3.4/espConnection.d.ts +0 -42
- package/types-3.4/index-common.d.ts +0 -39
- package/types-3.4/index.d.ts +0 -3
- package/types-3.4/index.node.d.ts +0 -4
- package/types-3.4/pem/trustwave.d.ts +0 -2
- package/types-3.4/services/fileSpray.d.ts +0 -27
- package/types-3.4/services/wsAccess.d.ts +0 -5
- package/types-3.4/services/wsAccount.d.ts +0 -6
- package/types-3.4/services/wsCloud.d.ts +0 -6
- package/types-3.4/services/wsCodesign.d.ts +0 -57
- package/types-3.4/services/wsDFU.d.ts +0 -11
- package/types-3.4/services/wsDFUXRef.d.ts +0 -220
- package/types-3.4/services/wsDali.d.ts +0 -5
- package/types-3.4/services/wsEcl.d.ts +0 -18
- package/types-3.4/services/wsElk.d.ts +0 -5
- package/types-3.4/services/wsLogaccess.d.ts +0 -55
- package/types-3.4/services/wsMachine.d.ts +0 -29
- package/types-3.4/services/wsPackageProcess.d.ts +0 -5
- package/types-3.4/services/wsResources.d.ts +0 -5
- package/types-3.4/services/wsSMC.d.ts +0 -8
- package/types-3.4/services/wsSasha.d.ts +0 -5
- package/types-3.4/services/wsStore.d.ts +0 -147
- package/types-3.4/services/wsTopology.d.ts +0 -10
- package/types-3.4/services/wsWorkunits.d.ts +0 -64
- package/types-3.4/services/wsdl/FileSpray/v1.23/FileSpray.d.ts +0 -830
- package/types-3.4/services/wsdl/FileSpray/v1.25/FileSpray.d.ts +0 -856
- package/types-3.4/services/wsdl/FileSpray/v1.26/FileSpray.d.ts +0 -736
- package/types-3.4/services/wsdl/WsCloud/v1/WsCloud.d.ts +0 -19
- package/types-3.4/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts +0 -148
- package/types-3.4/services/wsdl/WsDali/v1.04/WsDali.d.ts +0 -125
- package/types-3.4/services/wsdl/WsDali/v1.07/WsDali.d.ts +0 -158
- package/types-3.4/services/wsdl/WsDfu/v1.62/WsDfu.d.ts +0 -1224
- package/types-3.4/services/wsdl/WsDfu/v1.63/WsDfu.d.ts +0 -1233
- package/types-3.4/services/wsdl/WsDfu/v1.65/WsDfu.d.ts +0 -1011
- package/types-3.4/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts +0 -77
- package/types-3.4/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts +0 -396
- package/types-3.4/services/wsdl/WsResources/v1.01/WsResources.d.ts +0 -85
- package/types-3.4/services/wsdl/WsSMC/v1.24/WsSMC.d.ts +0 -515
- package/types-3.4/services/wsdl/WsSMC/v1.27/WsSMC.d.ts +0 -519
- package/types-3.4/services/wsdl/WsSasha/v1.01/WsSasha.d.ts +0 -65
- package/types-3.4/services/wsdl/WsTopology/v1.31/WsTopology.d.ts +0 -694
- package/types-3.4/services/wsdl/WsTopology/v1.32/WsTopology.d.ts +0 -716
- package/types-3.4/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts +0 -2405
- package/types-3.4/services/wsdl/WsWorkunits/v1.94/WsWorkunits.d.ts +0 -2520
- package/types-3.4/services/wsdl/WsWorkunits/v1.95/WsWorkunits.d.ts +0 -2521
- package/types-3.4/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts +0 -2529
- package/types-3.4/services/wsdl/WsWorkunits/v1.98/WsWorkunits.d.ts +0 -2623
- package/types-3.4/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts +0 -2555
- package/types-3.4/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts +0 -2549
- package/types-3.4/services/wsdl/ws_access/v1.16/ws_access.d.ts +0 -778
- package/types-3.4/services/wsdl/ws_access/v1.17/ws_access.d.ts +0 -721
- package/types-3.4/services/wsdl/ws_account/v1.05/ws_account.d.ts +0 -74
- package/types-3.4/services/wsdl/ws_account/v1.06/ws_account.d.ts +0 -71
- package/types-3.4/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts +0 -67
- package/types-3.4/services/wsdl/ws_elk/v1/ws_elk.d.ts +0 -28
- package/types-3.4/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts +0 -56
- package/types-3.4/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts +0 -126
- package/types-3.4/services/wsdl/ws_logaccess/v1.03/ws_logaccess.d.ts +0 -150
- package/types-3.4/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts +0 -171
- package/types-3.4/services/wsdl/ws_logaccess/v1.05/ws_logaccess.d.ts +0 -175
- package/types-3.4/services/wsdl/ws_machine/v1.17/ws_machine.d.ts +0 -470
- package/types-3.4/services/wsdl/wsstore/v1.02/wsstore.d.ts +0 -179
package/lib-es6/__package__.js
DELETED
|
@@ -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
|