@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
165 lines • 6.79 kB
JavaScript
;
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.SummaryForAssetApi = void 0;
var SDKModels_1 = require("./SDKModels");
var core_1 = require("../core");
var XompassClient_1 = require("../../XompassClient");
/**
* Api services for the `SummaryForAsset` model.
*/
var SummaryForAssetApi = /** @class */ (function (_super) {
__extends(SummaryForAssetApi, _super);
function SummaryForAssetApi() {
return _super !== null && _super.apply(this, arguments) || this;
}
SummaryForAssetApi.findByIdTrackingLogs = function (id, fk, retry) {
if (retry === void 0) { retry = false; }
var _method = 'GET';
var _url = [
XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(),
'/SummaryForAssets/: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);
};
SummaryForAssetApi.findByIdSummaries = function (id, fk, retry) {
if (retry === void 0) { retry = false; }
var _method = 'GET';
var _url = [
XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(),
'/SummaryForAssets/:id/summaries/:fk'
].join('');
var _routeParams = {
id: id,
fk: fk
};
var _postBody = {};
var _urlParams = {};
return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry);
};
SummaryForAssetApi.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(),
'/SummaryForAssets/: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);
};
SummaryForAssetApi.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(),
'/SummaryForAssets/: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);
};
SummaryForAssetApi.getSummaries = 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(),
'/SummaryForAssets/:id/summaries'
].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);
};
SummaryForAssetApi.countSummaries = 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(),
'/SummaryForAssets/:id/summaries/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);
};
SummaryForAssetApi.generateSummary = function (id, force, minimalResponse, retry) {
if (force === void 0) { force = {}; }
if (minimalResponse === void 0) { minimalResponse = {}; }
if (retry === void 0) { retry = false; }
var _method = 'POST';
var _url = [
XompassClient_1.XompassClient.getPath() + '/' + XompassClient_1.XompassClient.getApiVersion(),
'/SummaryForAssets/:id/generate'
].join('');
var _routeParams = {
id: id
};
var _postBody = {};
var _urlParams = {};
if (typeof force !== 'undefined' && force !== null) {
_urlParams['force'] = force;
}
if (typeof minimalResponse !== 'undefined' && minimalResponse !== null) {
_urlParams['minimal_response'] = minimalResponse;
}
return _super.request.call(this, _method, _url, _routeParams, _urlParams, _postBody, retry);
};
/**
* The name of the model represented by this $resource,
* i.e. `SummaryForAsset`.
*/
SummaryForAssetApi.getModelName = function () {
return 'SummaryForAsset';
};
SummaryForAssetApi.model = SDKModels_1.SDKModels.get('SummaryForAsset');
return SummaryForAssetApi;
}(core_1.XompassBaseApi));
exports.SummaryForAssetApi = SummaryForAssetApi;
//# sourceMappingURL=SummaryForAsset.js.map