UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

95 lines 2.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeviceEventStateChange = void 0; var DeviceEventStateChange = /** @class */ (function () { function DeviceEventStateChange(data) { Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `DeviceEventStateChange`. */ DeviceEventStateChange.getModelName = function () { return 'DeviceEventStateChange'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of DeviceEventStateChange for dynamic purposes. */ DeviceEventStateChange.factory = function (data) { return new DeviceEventStateChange(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ DeviceEventStateChange.getModelDefinition = function () { return { name: 'DeviceEventStateChange', plural: 'DeviceEventStateChanges', path: 'DeviceEventStateChanges', idName: 'id', properties: { id: { name: 'id', type: 'string' }, name: { name: 'name', type: 'string' }, description: { name: 'description', type: 'string' }, 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 DeviceEventStateChange; }()); exports.DeviceEventStateChange = DeviceEventStateChange; //# sourceMappingURL=DeviceEventStateChange.js.map