UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

235 lines 9.07 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.ViewApi = void 0; var SDKModels_1 = require("./SDKModels"); var core_1 = require("../core"); var XompassClient_1 = require("../../XompassClient"); /** * Api services for the `View` model. */ var ViewApi = /** @class */ (function (_super) { __extends(ViewApi, _super); function ViewApi() { return _super !== null && _super.apply(this, arguments) || this; } ViewApi.findByIdTrackingLogs = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Views/: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); }; ViewApi.findByIdManagers = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'GET'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Views/:id/managers/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ViewApi.destroyByIdManagers = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'DELETE'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Views/:id/managers/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ViewApi.updateByIdManagers = 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(), '/Views/:id/managers/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ViewApi.linkManagers = 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(), '/Views/:id/managers/rel/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ViewApi.unlinkManagers = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'DELETE'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Views/:id/managers/rel/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ViewApi.existsManagers = function (id, fk, retry) { if (retry === void 0) { retry = false; } var _method = 'HEAD'; var _url = [ XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(), '/Views/:id/managers/rel/:fk' ].join(''); var _routeParams = { id: id, fk: fk }; var _postBody = {}; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ViewApi.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(), '/Views/: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); }; ViewApi.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(), '/Views/: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); }; ViewApi.getManagers = 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(), '/Views/:id/managers' ].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); }; ViewApi.createManagers = 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(), '/Views/:id/managers' ].join(''); var _routeParams = { id: id }; var _postBody = data; var _urlParams = {}; return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry); }; ViewApi.countManagers = 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(), '/Views/:id/managers/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); }; /** * The name of the model represented by this $resource, * i.e. `View`. */ ViewApi.getModelName = function () { return 'View'; }; ViewApi.model = SDKModels_1.SDKModels.get('View'); return ViewApi; }(core_1.XompassBaseApi)); exports.ViewApi = ViewApi; //# sourceMappingURL=View.js.map