@duvdu-v1/duvdu 1.1.136 → 1.1.138

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.
@@ -7,24 +7,24 @@ exports.Notification = (0, mongoose_1.model)(model_names_1.MODELS.notifications,
7
7
  sourceUser: {
8
8
  type: mongoose_1.Schema.Types.ObjectId,
9
9
  ref: model_names_1.MODELS.user,
10
- required: true
10
+ // required:true
11
11
  },
12
12
  targetUser: {
13
13
  type: mongoose_1.Schema.Types.ObjectId,
14
14
  ref: model_names_1.MODELS.user,
15
- required: true
15
+ required: true,
16
16
  },
17
17
  target: {
18
18
  type: mongoose_1.Schema.Types.ObjectId,
19
- required: true
19
+ required: true,
20
20
  },
21
21
  type: {
22
22
  type: String,
23
- default: null
23
+ default: null,
24
24
  },
25
25
  watched: {
26
26
  type: Boolean,
27
- default: false
27
+ default: false,
28
28
  },
29
29
  title: {
30
30
  type: String,
@@ -34,6 +34,6 @@ exports.Notification = (0, mongoose_1.model)(model_names_1.MODELS.notifications,
34
34
  message: {
35
35
  type: String,
36
36
  trim: true,
37
- default: null
37
+ default: null,
38
38
  },
39
39
  }, { timestamps: true }));
@@ -58,6 +58,7 @@ export interface IprojectCycle {
58
58
  projectScale: {
59
59
  unit: string;
60
60
  minimum: number;
61
+ current: number;
61
62
  maximum: number;
62
63
  pricerPerUnit: number;
63
64
  };
@@ -67,6 +68,11 @@ export interface IprojectCycle {
67
68
  totalRates: number;
68
69
  };
69
70
  duration: number;
71
+ submitFiles: {
72
+ files: string[];
73
+ url: string;
74
+ note: string;
75
+ };
70
76
  }
71
77
  export declare const ProjectCycle: import("mongoose").Model<IprojectCycle, {}, {}, {}, import("mongoose").Document<unknown, {}, IprojectCycle> & IprojectCycle & {
72
78
  _id: Types.ObjectId;
@@ -19,8 +19,9 @@ exports.ProjectCycle = (0, mongoose_1.model)(duvdu_1.MODELS.portfolioPost, new m
19
19
  address: { type: String, default: null },
20
20
  searchKeyWords: [String],
21
21
  showOnHome: { type: Boolean, default: true },
22
- projectScale: { unit: String, minimum: Number, maximum: Number, pricerPerUnit: Number },
22
+ projectScale: { unit: String, minimum: Number, maximum: Number, current: Number, pricerPerUnit: Number },
23
23
  isDeleted: { type: Boolean, default: false },
24
24
  rate: { ratersCounter: Number, totalRates: Number },
25
- duration: { type: Number, default: 0 }
25
+ duration: { type: Number, default: 0 },
26
+ submitFiles: { files: [String], url: { type: String, default: null }, note: { type: String, default: null } }
26
27
  }, { timestamps: true, collection: duvdu_1.MODELS.portfolioPost }));
package/package.json CHANGED
@@ -1,57 +1,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
- }
1
+ {
2
+ "name": "@duvdu-v1/duvdu",
3
+ "version": "1.1.138",
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
+ }