# @plasma-platform/tm-service-notifications

> Service Notifications Api

Latest version **1.1.0** (published 2023-10-06) · CC-BY-4.0 license · 0 weekly downloads

## Install

```sh
npm install @plasma-platform/tm-service-notifications
pnpm add @plasma-platform/tm-service-notifications
yarn add @plasma-platform/tm-service-notifications
bun add @plasma-platform/tm-service-notifications
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2023-10-06 |
| First published | 2018-06-22 |
| Weekly downloads | 0 |
| License | CC-BY-4.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kyrylo Voronoi |
| Maintainers | alienmonster, ch-tm, viram |
| Keywords | TM Micro Service, Template Monster, API |

## Links

- npm: https://www.npmjs.com/package/@plasma-platform/tm-service-notifications
- Repository: https://gitlab.com/TemplateMonster/PlasmaPlatform/Frontend/tm-service-notifications
- Homepage: https://gitlab.com/TemplateMonster/PlasmaPlatform/Frontend/tm-service-notifications#readme
- Issues: https://gitlab.com/TemplateMonster/PlasmaPlatform/Frontend/tm-service-notifications/issues
- npm.io page: https://npm.io/package/@plasma-platform/tm-service-notifications

## Dependencies (15)

- [husky](https://npm.io/package/husky.md) ^0.14.3
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.1
- [babel-cli](https://npm.io/package/babel-cli.md) ^6.24.1
- [urlencode](https://npm.io/package/urlencode.md) ^1.1.0
- [babel-core](https://npm.io/package/babel-core.md) ^6.24.1
- [joi-browser](https://npm.io/package/joi-browser.md) ^13.4.0
- [npm-run-all](https://npm.io/package/npm-run-all.md) ^4.1.1
- [babel-minify](https://npm.io/package/babel-minify.md) ^0.2.0
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.26.0
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.5.2
- [isomorphic-fetch](https://npm.io/package/isomorphic-fetch.md) ^2.2.1
- [babel-preset-stage-0](https://npm.io/package/babel-preset-stage-0.md) ^6.24.1
- [babel-plugin-es6-promise](https://npm.io/package/babel-plugin-es6-promise.md) ^1.1.1
- [@plasma-platform/tm-service-api](https://npm.io/package/@plasma-platform/tm-service-api.md) ^2.5.0
- [@plasma-platform/tm-message-hook](https://npm.io/package/@plasma-platform/tm-message-hook.md) ^1.0.3

## Recent versions

- 1.1.0 (latest) — 2023-10-06
- 1.0.0 — 2018-06-22

## README

# Documentation

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [NotificationsService](#notificationsservice)
    -   [messages](#messages)
    -   [getResourceToken](#getresourcetoken)

## NotificationsService

-   **See: <http://service-notifications.templatemonsterdev.com/doc/>**

### messages

object with class service messages

### getResourceToken

Subscription - Get system centrifugo token based on resource id

**Parameters**

-   `params` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
    -   `params.resourceId` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Resource ID (orderId for example) (required)
    -   `params.timestamp` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** UNIX Timestamp (required)

**Examples**

_Get membership plan info by ID_

```javascript
(async () => {
  const service = new NotificationsService(url);
  const response = await service.getResourceToken(params);
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** Promise object represents info

---
_Source: https://npm.io/package/@plasma-platform/tm-service-notifications · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
