UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

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