UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

123 lines 3.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetOperabilitySummary = void 0; var AssetOperabilitySummary = /** @class */ (function () { function AssetOperabilitySummary(data) { Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `AssetOperabilitySummary`. */ AssetOperabilitySummary.getModelName = function () { return 'AssetOperabilitySummary'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of AssetOperabilitySummary for dynamic purposes. */ AssetOperabilitySummary.factory = function (data) { return new AssetOperabilitySummary(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ AssetOperabilitySummary.getModelDefinition = function () { return { name: 'AssetOperabilitySummary', plural: 'AssetOperabilitySummaries', path: 'AssetOperabilitySummaries', idName: 'id', properties: { name: { name: 'name', type: 'string' }, month: { name: 'month', type: 'Date' }, from: { name: 'from', type: 'Date' }, to: { name: 'to', type: 'Date' }, adjustedOperativeHours: { name: 'adjustedOperativeHours', type: 'number' }, hoursOfOperation: { name: 'hoursOfOperation', type: 'number' }, operability: { name: 'operability', type: 'number' }, created: { name: 'created', type: 'Date' }, modified: { name: 'modified', type: 'Date' }, deleted: { name: 'deleted', type: 'Date', default: undefined }, id: { name: 'id', type: 'any' }, assetId: { name: 'assetId', type: 'any' }, projectId: { name: 'projectId', type: 'any' }, }, relations: { asset: { name: 'asset', type: 'Asset', model: 'Asset', relationType: 'belongsTo', keyFrom: 'assetId', keyTo: 'id' }, trackingLogs: { name: 'trackingLogs', type: 'Log[]', model: 'Log', relationType: 'hasMany', keyFrom: 'id', keyTo: 'trackingModelId' }, project: { name: 'project', type: 'Project', model: 'Project', relationType: 'belongsTo', keyFrom: 'projectId', keyTo: 'id' }, } }; }; return AssetOperabilitySummary; }()); exports.AssetOperabilitySummary = AssetOperabilitySummary; //# sourceMappingURL=AssetOperabilitySummary.js.map