Socket
Book a DemoInstallSign in
Socket

@techcityventures/notifications-backend

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@techcityventures/notifications-backend

## Install

latest
npmnpm
Version
1.0.18
Version published
Maintainers
4
Created
Source

Notifications Backend

Install

npm install --save @techcityventures/notifications-backend

Usage

const notificationsFactory = require("@techcityventures/notifications-backend")

const notificationsIntegration = notificationsFactory({ security, queryOptimizer})
const Notifications = notificationsIntegration.collection


// Reactive notifications creation on ULA

// ULA has its own notification types so we're going to use those
const ulaNotifTypes = {OPPORTUNITY_UPDATED:"opportunity created"}
await notificationIntegration.create({text:"test", userId:"XXXXXXXX", actions:[], type: ulaNotifTypes.OPPORTUNITY_UPDATED,})

FAQs

Package last updated on 09 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts