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