@twec/notification-schemas

1.2.2 • Public • Published

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.

Schema Wiki

Dependencies (1)

Dev Dependencies (11)

Package Sidebar

Install

npm i @twec/notification-schemas

Weekly Downloads

1

Version

1.2.2

License

UNCLICENSED

Unpacked Size

20.5 kB

Total Files

8

Last publish

Collaborators

  • couto
  • drudge
  • fye-engineering
  • ramitos
  • strumwolf
  • vlaadbrain