@twec/notification-schemas
v1.2.2
Published
standards to send notifications
Downloads
7
Keywords
Readme
TWEC Notification Schemas
A repo to hold common schemas for sending notifications
Install
yarn add @twec/notification-schemas
or
npm install @twec/notification-schemas
Usage
const { ProcessNotification, PagerDuty } = require('@twec/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.