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