@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
95 lines • 2.94 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.YoloClassProject = void 0;
var YoloClassProject = /** @class */ (function () {
function YoloClassProject(data) {
Object.assign(this, data);
}
/**
* The name of the model represented by this $resource,
* i.e. `YoloClassProject`.
*/
YoloClassProject.getModelName = function () {
return 'YoloClassProject';
};
/**
* @method factory
* @author Jonathan Casarrubias
* @license MIT
* This method creates an instance of YoloClassProject for dynamic purposes.
*/
YoloClassProject.factory = function (data) {
return new YoloClassProject(data);
};
/**
* @method getModelDefinition
* @author Julien Ledun
* @license MIT
* This method returns an object that represents some of the model
* definitions.
*/
YoloClassProject.getModelDefinition = function () {
return {
name: 'YoloClassProject',
plural: 'YoloClassProjects',
path: 'YoloClassProjects',
idName: 'id',
properties: {
created: {
name: 'created',
type: 'Date'
},
modified: {
name: 'modified',
type: 'Date'
},
deleted: {
name: 'deleted',
type: 'Date',
default: undefined
},
id: {
name: 'id',
type: 'any'
},
yoloClassId: {
name: 'yoloClassId',
type: 'any'
},
projectId: {
name: 'projectId',
type: 'any'
},
},
relations: {
trackingLogs: {
name: 'trackingLogs',
type: 'Log[]',
model: 'Log',
relationType: 'hasMany',
keyFrom: 'id',
keyTo: 'trackingModelId'
},
yoloClass: {
name: 'yoloClass',
type: 'YoloClass',
model: 'YoloClass',
relationType: 'belongsTo',
keyFrom: 'yoloClassId',
keyTo: 'id'
},
project: {
name: 'project',
type: 'Project',
model: 'Project',
relationType: 'belongsTo',
keyFrom: 'projectId',
keyTo: 'id'
},
}
};
};
return YoloClassProject;
}());
exports.YoloClassProject = YoloClassProject;
//# sourceMappingURL=YoloClassProject.js.map