@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
87 lines • 2.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BLMSServerKey = void 0;
var BLMSServerKey = /** @class */ (function () {
function BLMSServerKey(data) {
this.ttl = 1209600;
this.enabled = true;
Object.assign(this, data);
}
/**
* The name of the model represented by this $resource,
* i.e. `BLMSServerKey`.
*/
BLMSServerKey.getModelName = function () {
return 'BLMSServerKey';
};
/**
* @method factory
* @author Jonathan Casarrubias
* @license MIT
* This method creates an instance of BLMSServerKey for dynamic purposes.
*/
BLMSServerKey.factory = function (data) {
return new BLMSServerKey(data);
};
/**
* @method getModelDefinition
* @author Julien Ledun
* @license MIT
* This method returns an object that represents some of the model
* definitions.
*/
BLMSServerKey.getModelDefinition = function () {
return {
name: 'BLMSServerKey',
plural: 'BLMSServerKeys',
path: 'BLMSServerKeys',
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 BLMSServerKey;
}());
exports.BLMSServerKey = BLMSServerKey;
//# sourceMappingURL=BLMSServerKey.js.map