2.0.0 • Published 3 years ago
@fye/notification-schemas
Licence
UNLICENSED
Version
2.0.0
Deps
3
Size
21 kB
Vulns
0
Weekly
0
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.