@duvdu-v1/duvdu 1.1.133 → 1.1.135

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.
@@ -0,0 +1,11 @@
1
+ import { Subject } from './subject';
2
+ export interface InotificationEvent {
3
+ subject: Subject.notification;
4
+ data: {
5
+ targetUsers: string[];
6
+ notificationDetails: {
7
+ title: string;
8
+ message: string;
9
+ };
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,5 @@
1
1
  export declare enum Subject {
2
- newNotification = "new:notification"
2
+ newNotification = "new:notification",
3
+ notification = "notification",
4
+ topicNotification = "topic:notification"
3
5
  }
@@ -4,4 +4,6 @@ exports.Subject = void 0;
4
4
  var Subject;
5
5
  (function (Subject) {
6
6
  Subject["newNotification"] = "new:notification";
7
+ Subject["notification"] = "notification";
8
+ Subject["topicNotification"] = "topic:notification";
7
9
  })(Subject || (exports.Subject = Subject = {}));
@@ -0,0 +1,9 @@
1
+ import { Subject } from './subject';
2
+ export interface TopicNotificationEvent {
3
+ subject: Subject.topicNotification;
4
+ data: {
5
+ topic: string;
6
+ title: string;
7
+ message: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/build/index.d.ts CHANGED
@@ -73,7 +73,9 @@ export * from './services/projectView.service';
73
73
  export * from './types/notification.type';
74
74
  export * from './types/notification_details';
75
75
  export * from './events/new-notification.event';
76
+ export * from './events/notification.event';
76
77
  export * from './events/base-listener';
77
78
  export * from './events/base-publisher';
78
79
  export * from './events/subject';
80
+ export * from './events/topic-notification.event';
79
81
  export * from './config/winston';
package/build/index.js CHANGED
@@ -91,7 +91,9 @@ __exportStar(require("./types/notification.type"), exports);
91
91
  __exportStar(require("./types/notification_details"), exports);
92
92
  // events
93
93
  __exportStar(require("./events/new-notification.event"), exports);
94
+ __exportStar(require("./events/notification.event"), exports);
94
95
  __exportStar(require("./events/base-listener"), exports);
95
96
  __exportStar(require("./events/base-publisher"), exports);
96
97
  __exportStar(require("./events/subject"), exports);
98
+ __exportStar(require("./events/topic-notification.event"), exports);
97
99
  __exportStar(require("./config/winston"), exports);
@@ -1,8 +1,10 @@
1
1
  export declare enum Channels {
2
+ notification = "notification",
2
3
  new_message = "new_message",
3
4
  new_follower = "new_follower",
4
5
  new_producer_contract = "new_producer_contract",
5
6
  updated_producer_contract = "updated_producer_contract",
6
7
  new_project_contract = "new_project_contract",
7
- update_project_contract = "update_project_contract"
8
+ update_project_contract = "update_project_contract",
9
+ new_contract = "new_contract"
8
10
  }
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Channels = void 0;
4
4
  var Channels;
5
5
  (function (Channels) {
6
+ Channels["notification"] = "notification";
6
7
  Channels["new_message"] = "new_message";
7
8
  Channels["new_follower"] = "new_follower";
8
9
  Channels["new_producer_contract"] = "new_producer_contract";
9
10
  Channels["updated_producer_contract"] = "updated_producer_contract";
10
11
  Channels["new_project_contract"] = "new_project_contract";
11
12
  Channels["update_project_contract"] = "update_project_contract";
13
+ Channels["new_contract"] = "new_contract";
12
14
  })(Channels || (exports.Channels = Channels = {}));
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.133",
4
- "main": "./build/index.js",
5
- "types": "./build/index.d.ts",
6
- "files": [
7
- "build/**/*"
8
- ],
9
- "scripts": {
10
- "clean": "rimraf ./build",
11
- "build": "npm run clean && tsc",
12
- "fix:build": "mv ./build/common/src/* ./build && rm -rf ./build/auth ./build/common",
13
- "pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish",
14
- "lint": "eslint .",
15
- "lint:fix": "eslint --fix .",
16
- "format": "prettier --write ."
17
- },
18
- "keywords": [],
19
- "author": "motemed khaled",
20
- "license": "ISC",
21
- "dependencies": {
22
- "@duvdu-v1/duvdu": "^1.1.116",
23
- "@types/express": "^4.17.21",
24
- "@types/express-session": "^1.18.0",
25
- "@types/jsonwebtoken": "^9.0.5",
26
- "@types/multer": "^1.4.11",
27
- "@types/node": "^20.11.0",
28
- "@typescript-eslint/eslint-plugin": "^6.19.0",
29
- "@typescript-eslint/parser": "^6.19.0",
30
- "aws-sdk": "^2.1595.0",
31
- "connect-redis": "^7.1.1",
32
- "express": "^4.18.2",
33
- "express-async-errors": "^3.1.1",
34
- "express-session": "^1.18.0",
35
- "express-validator": "^7.0.1",
36
- "jsonwebtoken": "^9.0.2",
37
- "mongoose": "^8.0.4",
38
- "multer": "^1.4.5-lts.1",
39
- "node-nats-streaming": "^0.3.2",
40
- "redis": "^4.6.13",
41
- "rimraf": "^5.0.5",
42
- "typescript": "^5.3.3",
43
- "uuid": "^9.0.1",
44
- "winston": "^3.13.0",
45
- "winston-daily-rotate-file": "^5.0.0"
46
- },
47
- "devDependencies": {
48
- "@types/uuid": "^9.0.8",
49
- "del-cli": "^5.1.0",
50
- "eslint": "^8.56.0",
51
- "eslint-config-prettier": "^9.1.0",
52
- "eslint-plugin-import": "^2.29.1",
53
- "eslint-plugin-prettier": "^5.1.3",
54
- "prettier": "^3.2.4"
55
- },
56
- "description": ""
57
- }
1
+ {
2
+ "name": "@duvdu-v1/duvdu",
3
+ "version": "1.1.135",
4
+ "main": "./build/index.js",
5
+ "types": "./build/index.d.ts",
6
+ "files": [
7
+ "build/**/*"
8
+ ],
9
+ "scripts": {
10
+ "clean": "rimraf ./build",
11
+ "build": "npm run clean && tsc",
12
+ "fix:build": "mv ./build/common/src/* ./build && rm -rf ./build/auth ./build/common",
13
+ "pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish",
14
+ "lint": "eslint .",
15
+ "lint:fix": "eslint --fix .",
16
+ "format": "prettier --write ."
17
+ },
18
+ "keywords": [],
19
+ "author": "motemed khaled",
20
+ "license": "ISC",
21
+ "dependencies": {
22
+ "@duvdu-v1/duvdu": "^1.1.116",
23
+ "@types/express": "^4.17.21",
24
+ "@types/express-session": "^1.18.0",
25
+ "@types/jsonwebtoken": "^9.0.5",
26
+ "@types/multer": "^1.4.11",
27
+ "@types/node": "^20.11.0",
28
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
29
+ "@typescript-eslint/parser": "^6.19.0",
30
+ "aws-sdk": "^2.1595.0",
31
+ "connect-redis": "^7.1.1",
32
+ "express": "^4.18.2",
33
+ "express-async-errors": "^3.1.1",
34
+ "express-session": "^1.18.0",
35
+ "express-validator": "^7.0.1",
36
+ "jsonwebtoken": "^9.0.2",
37
+ "mongoose": "^8.0.4",
38
+ "multer": "^1.4.5-lts.1",
39
+ "node-nats-streaming": "^0.3.2",
40
+ "redis": "^4.6.13",
41
+ "rimraf": "^5.0.5",
42
+ "typescript": "^5.3.3",
43
+ "uuid": "^9.0.1",
44
+ "winston": "^3.13.0",
45
+ "winston-daily-rotate-file": "^5.0.0"
46
+ },
47
+ "devDependencies": {
48
+ "@types/uuid": "^9.0.8",
49
+ "del-cli": "^5.1.0",
50
+ "eslint": "^8.56.0",
51
+ "eslint-config-prettier": "^9.1.0",
52
+ "eslint-plugin-import": "^2.29.1",
53
+ "eslint-plugin-prettier": "^5.1.3",
54
+ "prettier": "^3.2.4"
55
+ },
56
+ "description": ""
57
+ }