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