magicbell
Version:
MagicBell API wrapper
29 lines • 1.01 kB
JavaScript
;
// This file is generated. Do not update manually!
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotificationPreferences = void 0;
const resource_js_1 = require("../client/resource.js");
class NotificationPreferences extends resource_js_1.Resource {
path = 'notification_preferences';
entity = 'notification_preferences';
/**
* Fetch a user's notification preferences. If a user does not disable a channel
* explicitly, we would send notifications through that channel as long as your
* project is enabled.
*
* @param options - override client request options.
* @returns
**/
get(options) {
return this.request({
method: 'GET',
}, options);
}
update(dataOrOptions, options) {
return this.request({
method: 'PUT',
}, dataOrOptions, options);
}
}
exports.NotificationPreferences = NotificationPreferences;
//# sourceMappingURL=notification-preferences.js.map