UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

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