2.0.0 • Published 1 year ago

@fye/notification-schemas v2.0.0

Weekly downloads
32
License
UNLICENSED
Repository
-
Last release
1 year ago

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.

Schema Wiki