UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

95 lines 2.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeviceEventComment = void 0; var DeviceEventComment = /** @class */ (function () { function DeviceEventComment(data) { Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `DeviceEventComment`. */ DeviceEventComment.getModelName = function () { return 'DeviceEventComment'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of DeviceEventComment for dynamic purposes. */ DeviceEventComment.factory = function (data) { return new DeviceEventComment(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ DeviceEventComment.getModelDefinition = function () { return { name: 'DeviceEventComment', plural: 'DeviceEventComments', path: 'DeviceEventComments', idName: 'id', properties: { id: { name: 'id', type: 'string' }, content: { name: 'content', type: 'string' }, edited: { name: 'edited', type: 'boolean' }, created: { name: 'created', type: 'Date' }, modified: { name: 'modified', type: 'Date' }, deleted: { name: 'deleted', type: 'Date', default: undefined }, userId: { name: 'userId', type: 'string' }, principalType: { name: 'principalType', type: 'string' }, }, relations: { user: { name: 'user', type: 'any', model: '', relationType: 'belongsTo', keyFrom: 'userId', keyTo: 'id' }, trackingLogs: { name: 'trackingLogs', type: 'Log[]', model: 'Log', relationType: 'hasMany', keyFrom: 'id', keyTo: 'trackingModelId' }, } }; }; return DeviceEventComment; }()); exports.DeviceEventComment = DeviceEventComment; //# sourceMappingURL=DeviceEventComment.js.map