@fye/notification-schemas
v2.0.0
Published
standards to send notifications
Downloads
337
Keywords
Readme
FYE Notification Schemas
A repo to hold common schemas for sending notifications
Install
yarn add @fye/notification-schemas
or
npm install @fye/notification-schemas
Usage
const { ProcessNotification, PagerDuty } = require('@fye/notification-schemas');
const processNotification = new ProcessNotification({...processParams});
const pagerDuty = new PagerDuty({...pagerDutyParams});
The fields validate when each constructor is instantiated and will throw with an error containing the fileds that did not validate.