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