@duvdu-v1/duvdu 1.1.134 → 1.1.136
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/build/events/notification.event.d.ts +11 -0
- package/build/events/notification.event.js +2 -0
- package/build/events/subject.d.ts +1 -0
- package/build/events/subject.js +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/models/all-contracts.model.d.ts +6 -0
- package/build/models/all-contracts.model.js +15 -2
- package/build/types/socket-channel.d.ts +3 -1
- package/build/types/socket-channel.js +2 -0
- package/package.json +57 -57
package/build/events/subject.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ 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';
|
package/build/index.js
CHANGED
|
@@ -91,6 +91,7 @@ __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);
|
|
@@ -40,6 +40,12 @@ export interface IcontractReport {
|
|
|
40
40
|
contract: Types.ObjectId | Icontract;
|
|
41
41
|
ref: string;
|
|
42
42
|
desc: string;
|
|
43
|
+
attachments: string[];
|
|
44
|
+
state: {
|
|
45
|
+
isClosed: boolean;
|
|
46
|
+
closedBy: Types.ObjectId;
|
|
47
|
+
feedback: string;
|
|
48
|
+
};
|
|
43
49
|
createdAt: Date;
|
|
44
50
|
updatedAt: Date;
|
|
45
51
|
}
|
|
@@ -14,5 +14,18 @@ exports.ContractReports = (0, mongoose_1.model)('contract_reports', new mongoose
|
|
|
14
14
|
reporter: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
15
15
|
contract: { type: mongoose_1.Schema.Types.ObjectId, refPath: 'ref' },
|
|
16
16
|
ref: String,
|
|
17
|
-
desc: String,
|
|
18
|
-
|
|
17
|
+
desc: { type: String, default: null },
|
|
18
|
+
attachments: [String],
|
|
19
|
+
state: {
|
|
20
|
+
isClosed: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false,
|
|
23
|
+
},
|
|
24
|
+
closedBy: {
|
|
25
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
26
|
+
ref: model_names_1.MODELS.user,
|
|
27
|
+
default: null,
|
|
28
|
+
},
|
|
29
|
+
feedback: { type: String, default: null },
|
|
30
|
+
},
|
|
31
|
+
}, { collection: 'contract_reports', timestamps: true }).index({ reporter: 1, contract: 1 }, { unique: true }));
|
|
@@ -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.
|
|
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.136",
|
|
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
|
+
}
|