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