@hpcc-js/comms
Version:
hpcc-js - Communications
23 lines • 907 B
JavaScript
import { __extends } from "tslib";
import { CloudServiceBase } from "./wsdl/WsCloud/v1/WsCloud";
var CloudService = /** @class */ (function (_super) {
__extends(CloudService, _super);
function CloudService() {
return _super !== null && _super.apply(this, arguments) || this;
}
CloudService.prototype.getPODs = function () {
return _super.prototype.GetPODs.call(this, {}).then(function (response) {
var _a;
try {
var obj = typeof response.Result === "string" ? JSON.parse(response.Result) : response.Result;
return (_a = obj === null || obj === void 0 ? void 0 : obj.items) !== null && _a !== void 0 ? _a : [];
}
catch (error) {
return [];
}
});
};
return CloudService;
}(CloudServiceBase));
export { CloudService };
//# sourceMappingURL=wsCloud.js.map