UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

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