UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

268 lines 10.8 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ProcessLayoutApi = void 0; var SDKModels_1 = require("./SDKModels"); var core_1 = require("../core"); var XompassClient_1 = require("../../XompassClient"); /** * Api services for the `ProcessLayout` model. */ var ProcessLayoutApi = /** @class */ (function (_super) { __extends(ProcessLayoutApi, _super); function ProcessLayoutApi() { return _super !== null && _super.apply(this, arguments) || this; } ProcessLayoutApi.findByIdTrackingLogs = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/trackingLogs/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.getContainer = function (id, refresh, retry) { if (refresh === void 0) { refresh = {}; } if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; if (typeof refresh !== 'undefined' && refresh !== null) { _urlParams['refresh'] = refresh; } return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.createContainer = function (id, data, retry) { if (data === void 0) { data = {}; } if (retry === void 0) { retry = false; } var _method = 'POST'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container' ].join(''); var _routeParams = { id: id }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.updateContainer = function (id, data, retry) { if (data === void 0) { data = {}; } if (retry === void 0) { retry = false; } var _method = 'PUT'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container' ].join(''); var _routeParams = { id: id }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.destroyContainer = function (id, retry) { if (retry === void 0) { retry = false; } var _method = 'DELETE'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.getProject = function (id, refresh, retry) { if (refresh === void 0) { refresh = {}; } if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/project' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; if (typeof refresh !== 'undefined' && refresh !== null) { _urlParams['refresh'] = refresh; } return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.getTrackingLogs = function (id, filter, retry) { if (filter === void 0) { filter = {}; } if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/trackingLogs' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; if (typeof filter !== 'undefined' && filter !== null) { _urlParams['filter'] = filter; } return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.countTrackingLogs = function (id, where, retry) { if (where === void 0) { where = {}; } if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/trackingLogs/count' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; if (typeof where !== 'undefined' && where !== null) { _urlParams['where'] = where; } return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.getContainerInfo = function (id, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container/info' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.getFiles = function (id, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container/files' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.getFile = function (id, file, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container/files/:file' ].join(''); var _routeParams = { id: id, file: file }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.removeFile = function (id, property, file, retry) { if (retry === void 0) { retry = false; } var _method = 'DELETE'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container/files/:file' ].join(''); var _routeParams = { id: id, file: file }; var _postBody = {}; var _urlParams = {}; if (typeof property !== 'undefined' && property !== null) { _urlParams['property'] = property; } return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.upload = function (id, property, retry) { if (retry === void 0) { retry = false; } var _method = 'POST'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container/upload' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; if (typeof property !== 'undefined' && property !== null) { _urlParams['property'] = property; } return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ProcessLayoutApi.download = function (id, property, file, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/ProcessLayouts/:id/container/download/:file' ].join(''); var _routeParams = { id: id, file: file }; var _postBody = {}; var _urlParams = {}; if (typeof property !== 'undefined' && property !== null) { _urlParams['property'] = property; } return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; /** * The name of the model represented by this $resource, * i.e. `ProcessLayout`. */ ProcessLayoutApi.getModelName = function () { return 'ProcessLayout'; }; ProcessLayoutApi.model = SDKModels_1.SDKModels.get('ProcessLayout'); return ProcessLayoutApi; }(core_1.XompassBaseApi)); exports.ProcessLayoutApi = ProcessLayoutApi; //# sourceMappingURL=ProcessLayout.js.map