Creates the plugin factory.
Registers an INotifier under CAPABILITIES.NOTIFICATION backed by the
configured channels and providers.
Plugin configuration
The plugin instance
import { NotificationPlugin } from '@setu-ts/notification-plugin';
app.register(NotificationPlugin({
channels: {
email: { provider: 'mail' },
sms: {
provider: 'twilio',
options: { accountSid: '…', authToken: '…', from: '+1234' },
},
slack: { provider: 'slack', options: { webhookUrl: 'https://hooks.slack.com/…' } },
},
}));
NotificationPlugin factory — registers an
INotifierunderCAPABILITIES.NOTIFICATION.Example
Since
0.1.0