@backstage/plugin-notifications-common 0.0.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @backstage/plugin-notifications-common
2
+
3
+ ## 0.0.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - fb8fc24: Initial notifications system for backstage
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @backstage/plugin-notifications-common
2
+
3
+ Welcome to the common package for the notifications plugin!
4
+
5
+ _This plugin was created through the Backstage CLI_
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,33 @@
1
+ /** @public */
2
+ type NotificationType = 'undone' | 'done' | 'saved';
3
+ /** @public */
4
+ type NotificationSeverity = 'critical' | 'high' | 'normal' | 'low';
5
+ /** @public */
6
+ type NotificationPayload = {
7
+ title: string;
8
+ description?: string;
9
+ link: string;
10
+ severity: NotificationSeverity;
11
+ topic?: string;
12
+ scope?: string;
13
+ icon?: string;
14
+ };
15
+ /** @public */
16
+ type Notification = {
17
+ id: string;
18
+ user: string;
19
+ created: Date;
20
+ saved?: Date;
21
+ read?: Date;
22
+ done?: Date;
23
+ updated?: Date;
24
+ origin: string;
25
+ payload: NotificationPayload;
26
+ };
27
+ /** @public */
28
+ type NotificationStatus = {
29
+ unread: number;
30
+ read: number;
31
+ };
32
+
33
+ export { Notification, NotificationPayload, NotificationSeverity, NotificationStatus, NotificationType };
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@backstage/plugin-notifications-common",
3
+ "description": "Common functionalities for the notifications plugin",
4
+ "version": "0.0.1-next.0",
5
+ "main": "dist/index.cjs.js",
6
+ "types": "dist/index.d.ts",
7
+ "license": "Apache-2.0",
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "main": "dist/index.cjs.js",
11
+ "module": "dist/index.esm.js",
12
+ "types": "dist/index.d.ts"
13
+ },
14
+ "backstage": {
15
+ "role": "common-library"
16
+ },
17
+ "sideEffects": false,
18
+ "scripts": {
19
+ "build": "backstage-cli package build",
20
+ "lint": "backstage-cli package lint",
21
+ "test": "backstage-cli package test",
22
+ "clean": "backstage-cli package clean",
23
+ "prepack": "backstage-cli package prepack",
24
+ "postpack": "backstage-cli package postpack"
25
+ },
26
+ "devDependencies": {
27
+ "@backstage/cli": "^0.25.2-next.2"
28
+ },
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "dependencies": {
33
+ "@material-ui/icons": "^4.9.1"
34
+ },
35
+ "module": "dist/index.esm.js"
36
+ }