npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@devoinc/alerts-api-client

v2.0.4

Published

Typescript client for devo alerts API

Downloads

39

Readme

Alerts API client

Devo Alerts API Client is a client for Devo Alerts API writed in TypeScript.

Requirements

  • node > 16
  • npm > 8

**NOTE:**The clients was developed and test using node v16.15.1 and npm v8.11.0

Getting started

Installation

Use one of those ways to use the Alerts API Client.

Install from npm

npm install --save @devoinc/alerts-api-client

Install from Github

First, install typescript:

npm install --save-dev typescript

Install the client:

npm install --save https://github.com/DevoInc/alerts-api-client

Install from source

  • Download the package from the GitHub repository https://github.com/DevoInc/alerts-api-client
  • Install the package inside your project
npm install --save /path/to/alerts-api-client

Using the client

Prior to instantiate the client, you need to create a class which implements the IConfig interface, for example, in this example we create a class called AuthConfig:

import { IConfig } from "@devoinc/alerts-api-client";

const credentials = require('../../.credentials/tapu.json');

export class AuthConfig implements IConfig {
    getAuthorization() {
      return credentials.token;
    }
  }

Now you can instantiate the client. In the case that you use async/await:

import { Client } from '@devoinc/alerts-api-client';

// define the url that are you using and the token created.
const url = 'https://api-us.devo.com/alerts';

const authConfig: AuthConfig = new AuthConfig();

// initialize the Client
const client = new Client(authConfig, url);

// get alert
const alertId = 1;
const alert: Alert = await client.get(alertId, true, true);

Or instead of using async/await, you can also use promises:

import { AlertDefinition } from '@devoinc/alerts-api-client';

// define the url that are you using and the token created.
const url = 'https://api-us.devo.com/alerts';

const authConfig: AuthConfig = new AuthConfig();

// initialize the Client
const client = new Client(authConfig, url);

// get alert
const alertId = 1;
client
  .get(alertId, true, true)
  .then((alert) => {
    // do something with the alert
  })
  .catch((error) => {
    console.log(error);
  });

Supported Endpoints

Comments

  • addComments
  • deleteComment
  • updateComment
  • updateComments
  • addComment
  • getList

Alerts

  • updateStatus
  • updateStatusLists
  • getListByCriterias
  • getListByCriteriasOverview
  • getStatistics
  • listStatus
  • get

Alert definition

  • getAlerts
  • putAlerts
  • postAlerts
  • deleteAlerts
  • putAlertsBatch
  • postAlertsBatch
  • putAlertStatus

Tags

  • setTags

Nswag

This client has been generated using Nswag.

Nswag is a dotnet library that takes OpenApi documentation from an existing API and builds a typescript client to consume this at your front-end.

If you are going to regenerate this client be sure you firstly had installed at least .net core 3.1 runtime in your local machine.

Documentation and usage

The documentation of this client is available at GitHub.