UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

433 lines 16.7 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.GisApi = void 0; var SDKModels_1 = require("./SDKModels"); var core_1 = require("../core"); var XompassClient_1 = require("../../XompassClient"); /** * Api services for the `Gis` model. */ var GisApi = /** @class */ (function (_super) { __extends(GisApi, _super); function GisApi() { return _super !== null && _super.apply(this, arguments) || this; } GisApi.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(), '/Gis/: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); }; GisApi.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(), '/Gis/:id/container' ].join(''); var _routeParams = { id: id }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.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(), '/Gis/:id/container' ].join(''); var _routeParams = { id: id }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.destroyContainer = function (id, retry) { if (retry === void 0) { retry = false; } var _method = 'DELETE'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/:id/container' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.findByIdLayers = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/:id/layers/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.destroyByIdLayers = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'DELETE'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/:id/layers/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.updateByIdLayers = function (id, fk, 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(), '/Gis/:id/layers/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.findByIdTrackingLogs = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/: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); }; GisApi.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(), '/Gis/: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); }; GisApi.getLayers = 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(), '/Gis/:id/layers' ].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); }; GisApi.createLayers = 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(), '/Gis/:id/layers' ].join(''); var _routeParams = { id: id }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.countLayers = 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(), '/Gis/:id/layers/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); }; GisApi.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(), '/Gis/: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); }; GisApi.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(), '/Gis/: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); }; GisApi.getContainerInfo = function (id, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/:id/container/info' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.getFiles = function (id, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/:id/container/files' ].join(''); var _routeParams = { id: id }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.getFile = function (id, file, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/: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); }; GisApi.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(), '/Gis/: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); }; GisApi.upload = function (id, property, retry) { if (retry === void 0) { retry = false; } var _method = 'POST'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/: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); }; GisApi.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(), '/Gis/: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); }; GisApi.findByIdLayersFeatures = function (id, nk, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/:id/layers/:nk/features/:fk' ].join(''); var _routeParams = { id: id, nk: nk, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.destroyByIdLayersFeatures = function (id, nk, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'DELETE'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Gis/:id/layers/:nk/features/:fk' ].join(''); var _routeParams = { id: id, nk: nk, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.updateByIdLayersFeatures = function (id, nk, fk, 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(), '/Gis/:id/layers/:nk/features/:fk' ].join(''); var _routeParams = { id: id, nk: nk, fk: fk }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; GisApi.countLayersFeatures = function (id, nk, 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(), '/Gis/:id/layers/:nk/features/count' ].join(''); var _routeParams = { id: id, nk: nk }; var _postBody = {}; var _urlParams = {}; if (typeof where !== 'undefined' && where !== null) { _urlParams['where'] = where; } return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; /** * The name of the model represented by this $resource, * i.e. `Gis`. */ GisApi.getModelName = function () { return 'Gis'; }; GisApi.model = SDKModels_1.SDKModels.get('Gis'); return GisApi; }(core_1.XompassBaseApi)); exports.GisApi = GisApi; //# sourceMappingURL=Gis.js.map