@hpcc-js/comms 2.77.0 → 2.78.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/index.es6.js +238 -111
  2. package/dist/index.es6.js.map +1 -1
  3. package/dist/index.js +241 -110
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist/index.node.js +241 -110
  8. package/dist/index.node.js.map +1 -1
  9. package/dist/index.node.min.js +1 -1
  10. package/dist/index.node.min.js.map +1 -1
  11. package/lib-es6/__package__.js +2 -2
  12. package/lib-es6/ecl/logicalFile.js +5 -0
  13. package/lib-es6/ecl/logicalFile.js.map +1 -1
  14. package/lib-es6/services/wsDFU.js +6 -2
  15. package/lib-es6/services/wsDFU.js.map +1 -1
  16. package/lib-es6/services/wsLogaccess.js +106 -2
  17. package/lib-es6/services/wsLogaccess.js.map +1 -1
  18. package/lib-es6/services/wsWorkunits.js +3 -0
  19. package/lib-es6/services/wsWorkunits.js.map +1 -1
  20. package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js +19 -19
  21. package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js.map +1 -1
  22. package/lib-es6/services/wsdl/WsDfu/v1.63/WsDfu.js +80 -77
  23. package/lib-es6/services/wsdl/WsDfu/v1.63/WsDfu.js.map +1 -1
  24. package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js +47 -0
  25. package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js.map +1 -0
  26. package/package.json +3 -3
  27. package/src/__package__.ts +2 -2
  28. package/src/ecl/logicalFile.ts +4 -3
  29. package/src/services/wsCloud.ts +1 -1
  30. package/src/services/wsDFU.ts +9 -10
  31. package/src/services/wsLogaccess.ts +145 -3
  32. package/src/services/wsWorkunits.ts +62 -0
  33. package/src/services/wsdl/WsDali/v1.04/WsDali.ts +156 -156
  34. package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +1219 -1217
  35. package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +161 -0
  36. package/types/__package__.d.ts +2 -2
  37. package/types/ecl/logicalFile.d.ts +4 -3
  38. package/types/ecl/logicalFile.d.ts.map +1 -1
  39. package/types/services/wsCloud.d.ts +1 -1
  40. package/types/services/wsCloud.d.ts.map +1 -1
  41. package/types/services/wsDFU.d.ts +7 -2
  42. package/types/services/wsDFU.d.ts.map +1 -1
  43. package/types/services/wsLogaccess.d.ts +46 -2
  44. package/types/services/wsLogaccess.d.ts.map +1 -1
  45. package/types/services/wsWorkunits.d.ts +48 -0
  46. package/types/services/wsWorkunits.d.ts.map +1 -1
  47. package/types/services/wsdl/WsDali/v1.04/WsDali.d.ts +27 -27
  48. package/types/services/wsdl/WsDali/v1.04/WsDali.d.ts.map +1 -1
  49. package/types/services/wsdl/WsDfu/v1.63/WsDfu.d.ts +49 -48
  50. package/types/services/wsdl/WsDfu/v1.63/WsDfu.d.ts.map +1 -1
  51. package/types/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts +126 -0
  52. package/types/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts.map +1 -0
  53. package/types-3.4/__package__.d.ts +2 -2
  54. package/types-3.4/ecl/logicalFile.d.ts +4 -3
  55. package/types-3.4/services/wsCloud.d.ts +1 -1
  56. package/types-3.4/services/wsDFU.d.ts +7 -2
  57. package/types-3.4/services/wsLogaccess.d.ts +46 -2
  58. package/types-3.4/services/wsWorkunits.d.ts +48 -0
  59. package/types-3.4/services/wsdl/WsDali/v1.04/WsDali.d.ts +27 -27
  60. package/types-3.4/services/wsdl/WsDfu/v1.63/WsDfu.d.ts +49 -48
  61. package/types-3.4/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts +126 -0
package/dist/index.js CHANGED
@@ -611,8 +611,8 @@
611
611
  }
612
612
 
613
613
  var PKG_NAME = "@hpcc-js/comms";
614
- var PKG_VERSION = "2.77.0";
615
- var BUILD_VERSION = "2.103.3";
614
+ var PKG_VERSION = "2.78.2";
615
+ var BUILD_VERSION = "2.103.6";
616
616
 
617
617
  /*! *****************************************************************************
618
618
  Copyright (c) Microsoft Corporation.
@@ -704,7 +704,7 @@
704
704
  return to.concat(ar || Array.prototype.slice.call(from));
705
705
  }
706
706
 
707
- var logger$1 = util.scopedLogger("comms/connection.ts");
707
+ var logger$2 = util.scopedLogger("comms/connection.ts");
708
708
  function instanceOfIOptions(object) {
709
709
  return "baseUrl" in object;
710
710
  }
@@ -806,12 +806,12 @@
806
806
  respondedTimeout -= respondedTick;
807
807
  if (respondedTimeout <= 0) {
808
808
  clearInterval(progress);
809
- logger$1.error("Request timeout: " + script.src);
809
+ logger$2.error("Request timeout: " + script.src);
810
810
  doCallback();
811
811
  reject(Error("Request timeout: " + script.src));
812
812
  }
813
813
  else {
814
- logger$1.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
814
+ logger$2.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
815
815
  }
816
816
  }
817
817
  }, respondedTick);
@@ -1510,61 +1510,61 @@
1510
1510
  return _super.call(this, optsConnection, "WSDali", "1.04") || this;
1511
1511
  }
1512
1512
  DaliServiceBase.prototype.Add = function (request) {
1513
- return this._connection.send("Add", request);
1513
+ return this._connection.send("Add", request, "json", false, undefined, "ResultResponse");
1514
1514
  };
1515
1515
  DaliServiceBase.prototype.Count = function (request) {
1516
- return this._connection.send("Count", request);
1516
+ return this._connection.send("Count", request, "json", false, undefined, "CountResponse");
1517
1517
  };
1518
1518
  DaliServiceBase.prototype.DFSCheck = function (request) {
1519
- return this._connection.send("DFSCheck", request);
1519
+ return this._connection.send("DFSCheck", request, "json", false, undefined, "ResultResponse");
1520
1520
  };
1521
1521
  DaliServiceBase.prototype.DFSExists = function (request) {
1522
- return this._connection.send("DFSExists", request);
1522
+ return this._connection.send("DFSExists", request, "json", false, undefined, "BooleanResponse");
1523
1523
  };
1524
1524
  DaliServiceBase.prototype.DFSLS = function (request) {
1525
- return this._connection.send("DFSLS", request);
1525
+ return this._connection.send("DFSLS", request, "json", false, undefined, "ResultResponse");
1526
1526
  };
1527
1527
  DaliServiceBase.prototype.Delete = function (request) {
1528
- return this._connection.send("Delete", request);
1528
+ return this._connection.send("Delete", request, "json", false, undefined, "ResultResponse");
1529
1529
  };
1530
1530
  DaliServiceBase.prototype.GetDFSCSV = function (request) {
1531
- return this._connection.send("GetDFSCSV", request);
1531
+ return this._connection.send("GetDFSCSV", request, "json", false, undefined, "ResultResponse");
1532
1532
  };
1533
1533
  DaliServiceBase.prototype.GetDFSMap = function (request) {
1534
- return this._connection.send("GetDFSMap", request);
1534
+ return this._connection.send("GetDFSMap", request, "json", false, undefined, "ResultResponse");
1535
1535
  };
1536
1536
  DaliServiceBase.prototype.GetDFSParents = function (request) {
1537
- return this._connection.send("GetDFSParents", request);
1537
+ return this._connection.send("GetDFSParents", request, "json", false, undefined, "ResultResponse");
1538
1538
  };
1539
1539
  DaliServiceBase.prototype.GetLogicalFile = function (request) {
1540
- return this._connection.send("GetLogicalFile", request);
1540
+ return this._connection.send("GetLogicalFile", request, "json", false, undefined, "ResultResponse");
1541
1541
  };
1542
1542
  DaliServiceBase.prototype.GetLogicalFilePart = function (request) {
1543
- return this._connection.send("GetLogicalFilePart", request);
1543
+ return this._connection.send("GetLogicalFilePart", request, "json", false, undefined, "ResultResponse");
1544
1544
  };
1545
1545
  DaliServiceBase.prototype.GetProtectedList = function (request) {
1546
- return this._connection.send("GetProtectedList", request);
1546
+ return this._connection.send("GetProtectedList", request, "json", false, undefined, "ResultResponse");
1547
1547
  };
1548
1548
  DaliServiceBase.prototype.GetValue = function (request) {
1549
- return this._connection.send("GetValue", request);
1549
+ return this._connection.send("GetValue", request, "json", false, undefined, "ResultResponse");
1550
1550
  };
1551
1551
  DaliServiceBase.prototype.Import = function (request) {
1552
- return this._connection.send("Import", request);
1552
+ return this._connection.send("Import", request, "json", false, undefined, "ResultResponse");
1553
1553
  };
1554
1554
  DaliServiceBase.prototype.Ping = function (request) {
1555
- return this._connection.send("Ping", request);
1555
+ return this._connection.send("Ping", request, "json", false, undefined, "WSDaliPingResponse");
1556
1556
  };
1557
1557
  DaliServiceBase.prototype.SetLogicalFilePartAttr = function (request) {
1558
- return this._connection.send("SetLogicalFilePartAttr", request);
1558
+ return this._connection.send("SetLogicalFilePartAttr", request, "json", false, undefined, "ResultResponse");
1559
1559
  };
1560
1560
  DaliServiceBase.prototype.SetProtected = function (request) {
1561
- return this._connection.send("SetProtected", request);
1561
+ return this._connection.send("SetProtected", request, "json", false, undefined, "ResultResponse");
1562
1562
  };
1563
1563
  DaliServiceBase.prototype.SetUnprotected = function (request) {
1564
- return this._connection.send("SetUnprotected", request);
1564
+ return this._connection.send("SetUnprotected", request, "json", false, undefined, "ResultResponse");
1565
1565
  };
1566
1566
  DaliServiceBase.prototype.SetValue = function (request) {
1567
- return this._connection.send("SetValue", request);
1567
+ return this._connection.send("SetValue", request, "json", false, undefined, "ResultResponse");
1568
1568
  };
1569
1569
  return DaliServiceBase;
1570
1570
  }(Service));
@@ -1577,145 +1577,145 @@
1577
1577
  return DaliService;
1578
1578
  }(DaliServiceBase));
1579
1579
 
1580
- exports.DFUArrayActions = void 0;
1581
- (function (DFUArrayActions) {
1582
- DFUArrayActions["Delete"] = "Delete";
1583
- DFUArrayActions["AddToSuperfile"] = "AddToSuperfile";
1584
- DFUArrayActions["ChangeProtection"] = "ChangeProtection";
1585
- DFUArrayActions["ChangeRestriction"] = "ChangeRestriction";
1586
- })(exports.DFUArrayActions || (exports.DFUArrayActions = {}));
1587
- exports.DFUChangeProtection = void 0;
1588
- (function (DFUChangeProtection) {
1589
- DFUChangeProtection[DFUChangeProtection["NoChange"] = 0] = "NoChange";
1590
- DFUChangeProtection[DFUChangeProtection["Protect"] = 1] = "Protect";
1591
- DFUChangeProtection[DFUChangeProtection["Unprotect"] = 2] = "Unprotect";
1592
- DFUChangeProtection[DFUChangeProtection["UnprotectAll"] = 3] = "UnprotectAll";
1593
- })(exports.DFUChangeProtection || (exports.DFUChangeProtection = {}));
1594
- exports.DFUChangeRestriction = void 0;
1595
- (function (DFUChangeRestriction) {
1596
- DFUChangeRestriction[DFUChangeRestriction["NoChange"] = 0] = "NoChange";
1597
- DFUChangeRestriction[DFUChangeRestriction["Restrict"] = 1] = "Restrict";
1598
- DFUChangeRestriction[DFUChangeRestriction["Unrestricted"] = 2] = "Unrestricted";
1599
- })(exports.DFUChangeRestriction || (exports.DFUChangeRestriction = {}));
1600
- exports.DFUDefFileFormat = void 0;
1601
- (function (DFUDefFileFormat) {
1602
- DFUDefFileFormat["Xml"] = "Xml";
1603
- DFUDefFileFormat["Def"] = "Def";
1604
- })(exports.DFUDefFileFormat || (exports.DFUDefFileFormat = {}));
1605
- exports.FileAccessRole = void 0;
1606
- (function (FileAccessRole) {
1607
- FileAccessRole["Token"] = "Token";
1608
- FileAccessRole["Engine"] = "Engine";
1609
- FileAccessRole["External"] = "External";
1610
- })(exports.FileAccessRole || (exports.FileAccessRole = {}));
1611
- exports.SecAccessType = void 0;
1612
- (function (SecAccessType) {
1613
- SecAccessType["None"] = "None";
1614
- SecAccessType["Access"] = "Access";
1615
- SecAccessType["Read"] = "Read";
1616
- SecAccessType["Write"] = "Write";
1617
- SecAccessType["Full"] = "Full";
1618
- })(exports.SecAccessType || (exports.SecAccessType = {}));
1619
- exports.DFUFileType = void 0;
1620
- (function (DFUFileType) {
1621
- DFUFileType["Flat"] = "Flat";
1622
- DFUFileType["Index"] = "Index";
1623
- DFUFileType["Xml"] = "Xml";
1624
- DFUFileType["Csv"] = "Csv";
1625
- DFUFileType["Json"] = "Json";
1626
- DFUFileType["IndexLocal"] = "IndexLocal";
1627
- DFUFileType["IndexPartitioned"] = "IndexPartitioned";
1628
- DFUFileType["Unset"] = "Unset";
1629
- })(exports.DFUFileType || (exports.DFUFileType = {}));
1580
+ exports.WsDfu = void 0;
1581
+ (function (WsDfu) {
1582
+ (function (DFUArrayActions) {
1583
+ DFUArrayActions["Delete"] = "Delete";
1584
+ DFUArrayActions["AddToSuperfile"] = "AddToSuperfile";
1585
+ DFUArrayActions["ChangeProtection"] = "ChangeProtection";
1586
+ DFUArrayActions["ChangeRestriction"] = "ChangeRestriction";
1587
+ })(WsDfu.DFUArrayActions || (WsDfu.DFUArrayActions = {}));
1588
+ (function (DFUChangeProtection) {
1589
+ DFUChangeProtection[DFUChangeProtection["NoChange"] = 0] = "NoChange";
1590
+ DFUChangeProtection[DFUChangeProtection["Protect"] = 1] = "Protect";
1591
+ DFUChangeProtection[DFUChangeProtection["Unprotect"] = 2] = "Unprotect";
1592
+ DFUChangeProtection[DFUChangeProtection["UnprotectAll"] = 3] = "UnprotectAll";
1593
+ })(WsDfu.DFUChangeProtection || (WsDfu.DFUChangeProtection = {}));
1594
+ (function (DFUChangeRestriction) {
1595
+ DFUChangeRestriction[DFUChangeRestriction["NoChange"] = 0] = "NoChange";
1596
+ DFUChangeRestriction[DFUChangeRestriction["Restrict"] = 1] = "Restrict";
1597
+ DFUChangeRestriction[DFUChangeRestriction["Unrestricted"] = 2] = "Unrestricted";
1598
+ })(WsDfu.DFUChangeRestriction || (WsDfu.DFUChangeRestriction = {}));
1599
+ (function (DFUDefFileFormat) {
1600
+ DFUDefFileFormat["xml"] = "xml";
1601
+ DFUDefFileFormat["def"] = "def";
1602
+ })(WsDfu.DFUDefFileFormat || (WsDfu.DFUDefFileFormat = {}));
1603
+ (function (FileAccessRole) {
1604
+ FileAccessRole["Token"] = "Token";
1605
+ FileAccessRole["Engine"] = "Engine";
1606
+ FileAccessRole["External"] = "External";
1607
+ })(WsDfu.FileAccessRole || (WsDfu.FileAccessRole = {}));
1608
+ (function (SecAccessType) {
1609
+ SecAccessType["None"] = "None";
1610
+ SecAccessType["Access"] = "Access";
1611
+ SecAccessType["Read"] = "Read";
1612
+ SecAccessType["Write"] = "Write";
1613
+ SecAccessType["Full"] = "Full";
1614
+ })(WsDfu.SecAccessType || (WsDfu.SecAccessType = {}));
1615
+ (function (DFUFileType) {
1616
+ DFUFileType["Flat"] = "Flat";
1617
+ DFUFileType["Index"] = "Index";
1618
+ DFUFileType["Xml"] = "Xml";
1619
+ DFUFileType["Csv"] = "Csv";
1620
+ DFUFileType["Json"] = "Json";
1621
+ DFUFileType["IndexLocal"] = "IndexLocal";
1622
+ DFUFileType["IndexPartitioned"] = "IndexPartitioned";
1623
+ DFUFileType["Unset"] = "Unset";
1624
+ })(WsDfu.DFUFileType || (WsDfu.DFUFileType = {}));
1625
+ })(exports.WsDfu || (exports.WsDfu = {}));
1630
1626
  var DfuServiceBase = /** @class */ (function (_super) {
1631
1627
  __extends(DfuServiceBase, _super);
1632
1628
  function DfuServiceBase(optsConnection) {
1633
1629
  return _super.call(this, optsConnection, "WsDfu", "1.63") || this;
1634
1630
  }
1635
1631
  DfuServiceBase.prototype.Add = function (request) {
1636
- return this._connection.send("Add", request);
1632
+ return this._connection.send("Add", request, "json", false, undefined, "AddResponse");
1637
1633
  };
1638
1634
  DfuServiceBase.prototype.AddRemote = function (request) {
1639
- return this._connection.send("AddRemote", request);
1635
+ return this._connection.send("AddRemote", request, "json", false, undefined, "AddRemoteResponse");
1640
1636
  };
1641
1637
  DfuServiceBase.prototype.AddtoSuperfile = function (request) {
1642
- return this._connection.send("AddtoSuperfile", request);
1638
+ return this._connection.send("AddtoSuperfile", request, "json", false, undefined, "AddtoSuperfileResponse");
1643
1639
  };
1644
1640
  DfuServiceBase.prototype.DFUArrayAction = function (request) {
1645
- return this._connection.send("DFUArrayAction", request);
1641
+ return this._connection.send("DFUArrayAction", request, "json", false, undefined, "DFUArrayActionResponse");
1646
1642
  };
1647
1643
  DfuServiceBase.prototype.DFUBrowseData = function (request) {
1648
- return this._connection.send("DFUBrowseData", request);
1644
+ return this._connection.send("DFUBrowseData", request, "json", false, undefined, "DFUBrowseDataResponse");
1649
1645
  };
1650
1646
  DfuServiceBase.prototype.DFUDefFile = function (request) {
1651
- return this._connection.send("DFUDefFile", request);
1647
+ return this._connection.send("DFUDefFile", request, "json", false, undefined, "DFUDefFileResponse");
1652
1648
  };
1653
1649
  DfuServiceBase.prototype.DFUFileAccess = function (request) {
1654
- return this._connection.send("DFUFileAccess", request);
1650
+ return this._connection.send("DFUFileAccess", request, "json", false, undefined, "DFUFileAccessResponse");
1655
1651
  };
1656
1652
  DfuServiceBase.prototype.DFUFileAccessV2 = function (request) {
1657
- return this._connection.send("DFUFileAccessV2", request);
1653
+ return this._connection.send("DFUFileAccessV2", request, "json", false, undefined, "DFUFileAccessResponse");
1658
1654
  };
1659
1655
  DfuServiceBase.prototype.DFUFileCreate = function (request) {
1660
- return this._connection.send("DFUFileCreate", request);
1656
+ return this._connection.send("DFUFileCreate", request, "json", false, undefined, "DFUFileCreateResponse");
1661
1657
  };
1662
1658
  DfuServiceBase.prototype.DFUFileCreateV2 = function (request) {
1663
- return this._connection.send("DFUFileCreateV2", request);
1659
+ return this._connection.send("DFUFileCreateV2", request, "json", false, undefined, "DFUFileCreateResponse");
1664
1660
  };
1665
1661
  DfuServiceBase.prototype.DFUFilePublish = function (request) {
1666
- return this._connection.send("DFUFilePublish", request);
1662
+ return this._connection.send("DFUFilePublish", request, "json", false, undefined, "DFUFilePublishResponse");
1667
1663
  };
1668
1664
  DfuServiceBase.prototype.DFUFileView = function (request) {
1669
- return this._connection.send("DFUFileView", request);
1665
+ return this._connection.send("DFUFileView", request, "json", false, undefined, "DFUFileViewResponse");
1670
1666
  };
1671
1667
  DfuServiceBase.prototype.DFUGetDataColumns = function (request) {
1672
- return this._connection.send("DFUGetDataColumns", request);
1668
+ return this._connection.send("DFUGetDataColumns", request, "json", false, undefined, "DFUGetDataColumnsResponse");
1673
1669
  };
1674
1670
  DfuServiceBase.prototype.DFUGetFileMetaData = function (request) {
1675
- return this._connection.send("DFUGetFileMetaData", request);
1671
+ return this._connection.send("DFUGetFileMetaData", request, "json", false, undefined, "DFUGetFileMetaDataResponse");
1676
1672
  };
1677
1673
  DfuServiceBase.prototype.DFUInfo = function (request) {
1678
- return this._connection.send("DFUInfo", request);
1674
+ return this._connection.send("DFUInfo", request, "json", false, undefined, "DFUInfoResponse");
1679
1675
  };
1680
1676
  DfuServiceBase.prototype.DFUQuery = function (request) {
1681
- return this._connection.send("DFUQuery", request);
1677
+ return this._connection.send("DFUQuery", request, "json", false, undefined, "DFUQueryResponse");
1682
1678
  };
1683
1679
  DfuServiceBase.prototype.DFURecordTypeInfo = function (request) {
1684
- return this._connection.send("DFURecordTypeInfo", request);
1680
+ return this._connection.send("DFURecordTypeInfo", request, "json", false, undefined, "DFURecordTypeInfoResponse");
1685
1681
  };
1686
1682
  DfuServiceBase.prototype.DFUSearch = function (request) {
1687
- return this._connection.send("DFUSearch", request);
1683
+ return this._connection.send("DFUSearch", request, "json", false, undefined, "DFUSearchResponse");
1688
1684
  };
1689
1685
  DfuServiceBase.prototype.DFUSearchData = function (request) {
1690
- return this._connection.send("DFUSearchData", request);
1686
+ return this._connection.send("DFUSearchData", request, "json", false, undefined, "DFUSearchDataResponse");
1691
1687
  };
1692
1688
  DfuServiceBase.prototype.DFUSpace = function (request) {
1693
- return this._connection.send("DFUSpace", request);
1689
+ return this._connection.send("DFUSpace", request, "json", false, undefined, "DFUSpaceResponse");
1694
1690
  };
1695
1691
  DfuServiceBase.prototype.EclRecordTypeInfo = function (request) {
1696
- return this._connection.send("EclRecordTypeInfo", request);
1692
+ return this._connection.send("EclRecordTypeInfo", request, "json", false, undefined, "EclRecordTypeInfoResponse");
1697
1693
  };
1698
1694
  DfuServiceBase.prototype.EraseHistory = function (request) {
1699
- return this._connection.send("EraseHistory", request);
1695
+ return this._connection.send("EraseHistory", request, "json", false, undefined, "EraseHistoryResponse");
1700
1696
  };
1701
1697
  DfuServiceBase.prototype.ListHistory = function (request) {
1702
- return this._connection.send("ListHistory", request);
1698
+ return this._connection.send("ListHistory", request, "json", false, undefined, "ListHistoryResponse");
1703
1699
  };
1704
1700
  DfuServiceBase.prototype.Ping = function (request) {
1705
- return this._connection.send("Ping", request);
1701
+ return this._connection.send("Ping", request, "json", false, undefined, "WsDfuPingResponse");
1706
1702
  };
1707
1703
  DfuServiceBase.prototype.Savexml = function (request) {
1708
- return this._connection.send("Savexml", request);
1704
+ return this._connection.send("Savexml", request, "json", false, undefined, "SavexmlResponse");
1709
1705
  };
1710
1706
  DfuServiceBase.prototype.SuperfileAction = function (request) {
1711
- return this._connection.send("SuperfileAction", request);
1707
+ return this._connection.send("SuperfileAction", request, "json", false, undefined, "SuperfileActionResponse");
1712
1708
  };
1713
1709
  DfuServiceBase.prototype.SuperfileList = function (request) {
1714
- return this._connection.send("SuperfileList", request);
1710
+ return this._connection.send("SuperfileList", request, "json", false, undefined, "SuperfileListResponse");
1715
1711
  };
1716
1712
  return DfuServiceBase;
1717
1713
  }(Service));
1718
1714
 
1715
+ var DFUArrayActions = exports.WsDfu.DFUArrayActions;
1716
+ var DFUDefFileFormat = exports.WsDfu.DFUDefFileFormat;
1717
+ var DFUChangeProtection = exports.WsDfu.DFUChangeProtection;
1718
+ var DFUChangeRestriction = exports.WsDfu.DFUChangeRestriction;
1719
1719
  var DFUService = /** @class */ (function (_super) {
1720
1720
  __extends(DFUService, _super);
1721
1721
  function DFUService() {
@@ -1899,18 +1899,34 @@
1899
1899
  return ElkService;
1900
1900
  }(ElkServiceBase));
1901
1901
 
1902
- exports.LogAccessType = void 0;
1903
- (function (LogAccessType) {
1904
- LogAccessType[LogAccessType["All"] = 0] = "All";
1905
- LogAccessType[LogAccessType["ByJobIdID"] = 1] = "ByJobIdID";
1906
- LogAccessType[LogAccessType["ByComponent"] = 2] = "ByComponent";
1907
- LogAccessType[LogAccessType["ByLogType"] = 3] = "ByLogType";
1908
- LogAccessType[LogAccessType["ByTargetAudience"] = 4] = "ByTargetAudience";
1909
- })(exports.LogAccessType || (exports.LogAccessType = {}));
1902
+ exports.WsLogaccess = void 0;
1903
+ (function (WsLogaccess) {
1904
+ (function (LogAccessType) {
1905
+ LogAccessType[LogAccessType["All"] = 0] = "All";
1906
+ LogAccessType[LogAccessType["ByJobIdID"] = 1] = "ByJobIdID";
1907
+ LogAccessType[LogAccessType["ByComponent"] = 2] = "ByComponent";
1908
+ LogAccessType[LogAccessType["ByLogType"] = 3] = "ByLogType";
1909
+ LogAccessType[LogAccessType["ByTargetAudience"] = 4] = "ByTargetAudience";
1910
+ LogAccessType[LogAccessType["BySourceInstance"] = 5] = "BySourceInstance";
1911
+ LogAccessType[LogAccessType["BySourceNode"] = 6] = "BySourceNode";
1912
+ LogAccessType[LogAccessType["ByFieldName"] = 7] = "ByFieldName";
1913
+ })(WsLogaccess.LogAccessType || (WsLogaccess.LogAccessType = {}));
1914
+ (function (LogAccessFilterOperator) {
1915
+ LogAccessFilterOperator[LogAccessFilterOperator["NONE"] = 0] = "NONE";
1916
+ LogAccessFilterOperator[LogAccessFilterOperator["AND"] = 1] = "AND";
1917
+ LogAccessFilterOperator[LogAccessFilterOperator["OR"] = 2] = "OR";
1918
+ })(WsLogaccess.LogAccessFilterOperator || (WsLogaccess.LogAccessFilterOperator = {}));
1919
+ (function (LogSelectColumnMode) {
1920
+ LogSelectColumnMode[LogSelectColumnMode["MIN"] = 0] = "MIN";
1921
+ LogSelectColumnMode[LogSelectColumnMode["DEFAULT"] = 1] = "DEFAULT";
1922
+ LogSelectColumnMode[LogSelectColumnMode["ALL"] = 2] = "ALL";
1923
+ LogSelectColumnMode[LogSelectColumnMode["CUSTOM"] = 3] = "CUSTOM";
1924
+ })(WsLogaccess.LogSelectColumnMode || (WsLogaccess.LogSelectColumnMode = {}));
1925
+ })(exports.WsLogaccess || (exports.WsLogaccess = {}));
1910
1926
  var LogaccessServiceBase = /** @class */ (function (_super) {
1911
1927
  __extends(LogaccessServiceBase, _super);
1912
1928
  function LogaccessServiceBase(optsConnection) {
1913
- return _super.call(this, optsConnection, "ws_logaccess", "1") || this;
1929
+ return _super.call(this, optsConnection, "ws_logaccess", "1.02") || this;
1914
1930
  }
1915
1931
  LogaccessServiceBase.prototype.GetLogAccessInfo = function (request) {
1916
1932
  return this._connection.send("GetLogAccessInfo", request);
@@ -1924,11 +1940,114 @@
1924
1940
  return LogaccessServiceBase;
1925
1941
  }(Service));
1926
1942
 
1943
+ var logger$1 = util.scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts");
1944
+ exports.KnownColumns = void 0;
1945
+ (function (KnownColumns) {
1946
+ KnownColumns["audience"] = "hpcc.log.audience";
1947
+ KnownColumns["class"] = "hpcc.log.class";
1948
+ KnownColumns["jobId"] = "hpcc.log.jobid";
1949
+ KnownColumns["message"] = "hpcc.log.message";
1950
+ KnownColumns["procId"] = "hpcc.log.procid";
1951
+ KnownColumns["sequence"] = "hpcc.log.sequence";
1952
+ KnownColumns["threadId"] = "hpcc.log.threadid";
1953
+ KnownColumns["timestamp"] = "hpcc.log.timestamp";
1954
+ KnownColumns["containerName"] = "kubernetes.container.name";
1955
+ })(exports.KnownColumns || (exports.KnownColumns = {}));
1956
+ var RKnownColumns = {};
1957
+ for (var key in exports.KnownColumns) {
1958
+ if (exports.KnownColumns.hasOwnProperty(key)) {
1959
+ RKnownColumns[exports.KnownColumns[key]] = key;
1960
+ }
1961
+ }
1962
+ var defaultToLogLine = function (line) {
1963
+ var retVal = {};
1964
+ for (var key in RKnownColumns) {
1965
+ retVal[RKnownColumns[key]] = line === null || line === void 0 ? void 0 : line.fields[0][key];
1966
+ }
1967
+ return retVal;
1968
+ };
1927
1969
  var LogaccessService = /** @class */ (function (_super) {
1928
1970
  __extends(LogaccessService, _super);
1929
1971
  function LogaccessService() {
1930
1972
  return _super !== null && _super.apply(this, arguments) || this;
1931
1973
  }
1974
+ LogaccessService.prototype.GetLogAccessInfo = function (request) {
1975
+ return _super.prototype.GetLogAccessInfo.call(this, request);
1976
+ };
1977
+ LogaccessService.prototype.GetLogs = function (request) {
1978
+ return _super.prototype.GetLogs.call(this, request);
1979
+ };
1980
+ LogaccessService.prototype.GetLogsEx = function (request) {
1981
+ var _a, _b;
1982
+ var getLogsRequest = {
1983
+ Filter: {
1984
+ leftBinaryFilter: {
1985
+ BinaryLogFilter: [{
1986
+ leftFilter: {
1987
+ LogCategory: exports.WsLogaccess.LogAccessType.All,
1988
+ },
1989
+ }]
1990
+ }
1991
+ },
1992
+ Range: {
1993
+ StartDate: new Date(0).toISOString(),
1994
+ },
1995
+ LogLineStartFrom: (_a = request.LogLineStartFrom) !== null && _a !== void 0 ? _a : 0,
1996
+ LogLineLimit: (_b = request.LogLineLimit) !== null && _b !== void 0 ? _b : 100,
1997
+ SelectColumnMode: exports.WsLogaccess.LogSelectColumnMode.DEFAULT,
1998
+ Format: "JSON"
1999
+ };
2000
+ var filters = [];
2001
+ for (var key in request) {
2002
+ if (key in exports.KnownColumns) {
2003
+ filters.push({
2004
+ LogCategory: exports.WsLogaccess.LogAccessType.ByFieldName,
2005
+ SearchField: exports.KnownColumns[key],
2006
+ SearchByValue: request[key]
2007
+ });
2008
+ }
2009
+ }
2010
+ var binaryLogFilter = getLogsRequest.Filter.leftBinaryFilter.BinaryLogFilter[0];
2011
+ filters.forEach(function (filter, i) {
2012
+ if (i === 0) {
2013
+ binaryLogFilter.leftFilter = filter;
2014
+ }
2015
+ else if (i === filters.length - 1) {
2016
+ binaryLogFilter.Operator = exports.WsLogaccess.LogAccessFilterOperator.AND;
2017
+ binaryLogFilter.rightFilter = filter;
2018
+ }
2019
+ else {
2020
+ binaryLogFilter.Operator = exports.WsLogaccess.LogAccessFilterOperator.AND;
2021
+ binaryLogFilter.rightBinaryFilter = {
2022
+ BinaryLogFilter: [{
2023
+ leftFilter: filter
2024
+ }]
2025
+ };
2026
+ binaryLogFilter = binaryLogFilter.rightBinaryFilter.BinaryLogFilter[0];
2027
+ }
2028
+ });
2029
+ if (request.StartDate && request.EndDate) {
2030
+ getLogsRequest.Range.StartDate = request.StartDate.toISOString();
2031
+ getLogsRequest.Range.EndDate = request.EndDate.toISOString();
2032
+ }
2033
+ return this.GetLogs(getLogsRequest).then(function (response) {
2034
+ var _a, _b, _c;
2035
+ try {
2036
+ var logLines = JSON.parse(response.LogLines);
2037
+ return {
2038
+ lines: (_b = (_a = logLines.lines) === null || _a === void 0 ? void 0 : _a.map(defaultToLogLine)) !== null && _b !== void 0 ? _b : [],
2039
+ total: (_c = response.TotalLogLinesAvailable) !== null && _c !== void 0 ? _c : 10000
2040
+ };
2041
+ }
2042
+ catch (e) {
2043
+ logger$1.error(e);
2044
+ }
2045
+ return {
2046
+ lines: [],
2047
+ total: 0
2048
+ };
2049
+ });
2050
+ };
1932
2051
  return LogaccessService;
1933
2052
  }(LogaccessServiceBase));
1934
2053
 
@@ -2500,6 +2619,9 @@
2500
2619
  WorkunitsService.prototype.WUPublishWorkunit = function (request) {
2501
2620
  return this._connection.send("WUPublishWorkunit", request);
2502
2621
  };
2622
+ WorkunitsService.prototype.WUQueryFiles = function (request) {
2623
+ return this._connection.send("WUQueryFiles", request);
2624
+ };
2503
2625
  WorkunitsService.prototype.WUGetGraph = function (request) {
2504
2626
  return this._connection.send("WUGetGraph", request);
2505
2627
  };
@@ -6441,6 +6563,11 @@
6441
6563
  enumerable: false,
6442
6564
  configurable: true
6443
6565
  });
6566
+ Object.defineProperty(LogicalFile.prototype, "ExpirationDate", {
6567
+ get: function () { return this.get("ExpirationDate"); },
6568
+ enumerable: false,
6569
+ configurable: true
6570
+ });
6444
6571
  Object.defineProperty(LogicalFile.prototype, "properties", {
6445
6572
  get: function () { return this.get(); },
6446
6573
  enumerable: false,
@@ -7411,6 +7538,10 @@
7411
7538
  exports.CloudService = CloudService;
7412
7539
  exports.CodesignService = CodesignService;
7413
7540
  exports.Connection = Connection;
7541
+ exports.DFUArrayActions = DFUArrayActions;
7542
+ exports.DFUChangeProtection = DFUChangeProtection;
7543
+ exports.DFUChangeRestriction = DFUChangeRestriction;
7544
+ exports.DFUDefFileFormat = DFUDefFileFormat;
7414
7545
  exports.DFUService = DFUService;
7415
7546
  exports.DFUXRefService = DFUXRefService;
7416
7547
  exports.DaliService = DaliService;