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