@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
73 lines • 2.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Notification = void 0;
var Notification = /** @class */ (function () {
function Notification(data) {
this.enabled = true;
this.sendEmail = true;
this.sendSMS = true;
this.minInterval = 30;
Object.assign(this, data);
}
/**
* The name of the model represented by this $resource,
* i.e. `Notification`.
*/
Notification.getModelName = function () {
return 'Notification';
};
/**
* @method factory
* @author Jonathan Casarrubias
* @license MIT
* This method creates an instance of Notification for dynamic purposes.
*/
Notification.factory = function (data) {
return new Notification(data);
};
/**
* @method getModelDefinition
* @author Julien Ledun
* @license MIT
* This method returns an object that represents some of the model
* definitions.
*/
Notification.getModelDefinition = function () {
return {
name: 'Notification',
plural: 'Notifications',
path: 'Notifications',
idName: 'id',
properties: {
enabled: {
name: 'enabled',
type: 'boolean',
default: true
},
sendEmail: {
name: 'sendEmail',
type: 'boolean',
default: true
},
sendSMS: {
name: 'sendSMS',
type: 'boolean',
default: true
},
minInterval: {
name: 'minInterval',
type: 'number',
default: 30
},
id: {
name: 'id',
type: 'any'
},
},
relations: {}
};
};
return Notification;
}());
exports.Notification = Notification;
//# sourceMappingURL=Notification.js.map