UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

95 lines 2.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatasourceStorageError = void 0; var DatasourceStorageError = /** @class */ (function () { function DatasourceStorageError(data) { Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `DatasourceStorageError`. */ DatasourceStorageError.getModelName = function () { return 'DatasourceStorageError'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of DatasourceStorageError for dynamic purposes. */ DatasourceStorageError.factory = function (data) { return new DatasourceStorageError(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ DatasourceStorageError.getModelDefinition = function () { return { name: 'DatasourceStorageError', plural: 'DatasourceStorageErrors', path: 'DatasourceStorageErrors', idName: 'id', properties: { model: { name: 'model', type: 'string' }, method: { name: 'method', type: 'string' }, datasourceName: { name: 'datasourceName', type: 'string' }, container: { name: 'container', type: 'string' }, file: { name: 'file', type: 'string' }, content: { name: 'content', 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 DatasourceStorageError; }()); exports.DatasourceStorageError = DatasourceStorageError; //# sourceMappingURL=DatasourceStorageError.js.map