@duvdu-v1/duvdu 1.1.132 → 1.1.134

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.
@@ -1,4 +1,4 @@
1
1
  export declare enum Subject {
2
2
  newNotification = "new:notification",
3
- notification = "notification"
3
+ topicNotification = "topic:notification"
4
4
  }
@@ -4,5 +4,5 @@ exports.Subject = void 0;
4
4
  var Subject;
5
5
  (function (Subject) {
6
6
  Subject["newNotification"] = "new:notification";
7
- Subject["notification"] = "notification";
7
+ Subject["topicNotification"] = "topic:notification";
8
8
  })(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
+ }
package/build/index.d.ts CHANGED
@@ -73,8 +73,8 @@ 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';
77
76
  export * from './events/base-listener';
78
77
  export * from './events/base-publisher';
79
78
  export * from './events/subject';
79
+ export * from './events/topic-notification.event';
80
80
  export * from './config/winston';
package/build/index.js CHANGED
@@ -91,8 +91,8 @@ __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);
95
94
  __exportStar(require("./events/base-listener"), exports);
96
95
  __exportStar(require("./events/base-publisher"), exports);
97
96
  __exportStar(require("./events/subject"), exports);
97
+ __exportStar(require("./events/topic-notification.event"), exports);
98
98
  __exportStar(require("./config/winston"), exports);
@@ -2,5 +2,7 @@ export declare enum NotificationType {
2
2
  new_message = "new_message",
3
3
  new_follower = "new_follower",
4
4
  new_producer_contract = "new_producer_contract",
5
- updated_producer_contract = "updated_producer_contract"
5
+ updated_producer_contract = "updated_producer_contract",
6
+ new_project_contract = "new_project_contract",
7
+ update_project_contract = "update_project_contract"
6
8
  }
@@ -7,4 +7,6 @@ var NotificationType;
7
7
  NotificationType["new_follower"] = "new_follower";
8
8
  NotificationType["new_producer_contract"] = "new_producer_contract";
9
9
  NotificationType["updated_producer_contract"] = "updated_producer_contract";
10
+ NotificationType["new_project_contract"] = "new_project_contract";
11
+ NotificationType["update_project_contract"] = "update_project_contract";
10
12
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
@@ -19,4 +19,12 @@ export declare const NotificationDetails: {
19
19
  title: string;
20
20
  message: string;
21
21
  };
22
+ newProjectContract: {
23
+ title: string;
24
+ message: string;
25
+ };
26
+ updateProjectContract: {
27
+ title: string;
28
+ message: string;
29
+ };
22
30
  };
@@ -21,5 +21,13 @@ exports.NotificationDetails = {
21
21
  updatedProducerContract: {
22
22
  title: 'update producer contract',
23
23
  message: 'update producer contract'
24
- }
24
+ },
25
+ newProjectContract: {
26
+ title: 'new project contract',
27
+ message: 'new project contract'
28
+ },
29
+ updateProjectContract: {
30
+ title: 'update project contract',
31
+ message: 'update project contract'
32
+ },
25
33
  };
@@ -2,5 +2,7 @@ export declare enum Channels {
2
2
  new_message = "new_message",
3
3
  new_follower = "new_follower",
4
4
  new_producer_contract = "new_producer_contract",
5
- updated_producer_contract = "updated_producer_contract"
5
+ updated_producer_contract = "updated_producer_contract",
6
+ new_project_contract = "new_project_contract",
7
+ update_project_contract = "update_project_contract"
6
8
  }
@@ -7,4 +7,6 @@ var Channels;
7
7
  Channels["new_follower"] = "new_follower";
8
8
  Channels["new_producer_contract"] = "new_producer_contract";
9
9
  Channels["updated_producer_contract"] = "updated_producer_contract";
10
+ Channels["new_project_contract"] = "new_project_contract";
11
+ Channels["update_project_contract"] = "update_project_contract";
10
12
  })(Channels || (exports.Channels = Channels = {}));
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.132",
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.134",
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,12 +0,0 @@
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
- socketChannel: string;
11
- };
12
- }