@duvdu-v1/duvdu 1.1.197 → 1.1.199

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.
@@ -36,8 +36,8 @@ export interface IcopyRights {
36
36
  };
37
37
  address: string;
38
38
  location: {
39
- lat: number;
40
- lng: number;
39
+ type: 'Point';
40
+ coordinates: [number, number];
41
41
  };
42
42
  searchKeywords: string[];
43
43
  showOnHome: boolean;
@@ -22,11 +22,11 @@ exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new
22
22
  subCategory: {
23
23
  ar: String,
24
24
  en: String,
25
- _id: String
25
+ _id: String,
26
26
  },
27
27
  location: {
28
- lat: { type: Number, default: null },
29
- lng: { type: Number, default: null },
28
+ type: { type: String, default: 'Point' },
29
+ coordinates: { type: [Number], default: [31.2357, 30.0444] },
30
30
  },
31
31
  minBudget: { type: Number, default: null },
32
32
  maxBudget: { type: Number, default: null },
@@ -59,8 +59,8 @@ export interface IprojectCycle {
59
59
  inviteStatus: InviteStatus;
60
60
  }[];
61
61
  location: {
62
- lat: number;
63
- lng: number;
62
+ type: 'Point';
63
+ coordinates: [number, number];
64
64
  };
65
65
  address: string;
66
66
  searchKeyWords: string[];
@@ -29,7 +29,10 @@ exports.ProjectCycle = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPost,
29
29
  inviteStatus: { type: String, enum: InviteStatus, default: InviteStatus.pending },
30
30
  },
31
31
  ],
32
- location: { lat: { type: Number, default: 0 }, lng: { type: Number, default: 0 } },
32
+ location: {
33
+ type: { type: String, default: 'Point' },
34
+ coordinates: { type: [Number], default: [31.2357, 30.0444] },
35
+ },
33
36
  address: { type: String, default: null },
34
37
  searchKeyWords: [String],
35
38
  showOnHome: { type: Boolean, default: true },
@@ -52,8 +52,8 @@ export interface Irental {
52
52
  email: string;
53
53
  description: string;
54
54
  location: {
55
- lat: number;
56
- lng: number;
55
+ type: 'Point';
56
+ coordinates: [number, number];
57
57
  };
58
58
  address: string;
59
59
  searchKeywords: string[];
@@ -22,7 +22,10 @@ exports.Rentals = (0, mongoose_1.model)('rentals', new mongoose_1.Schema({
22
22
  phoneNumber: String,
23
23
  email: String,
24
24
  description: String,
25
- location: { lat: Number, lng: Number },
25
+ location: {
26
+ type: { type: String, default: 'Point' },
27
+ coordinates: { type: [Number], default: [31.2357, 30.0444] },
28
+ },
26
29
  address: String,
27
30
  searchKeywords: [String],
28
31
  insurance: { type: Number, default: null },
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.197",
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
- "@types/express": "^4.17.21",
23
- "@types/express-session": "^1.18.0",
24
- "@types/jsonwebtoken": "^9.0.5",
25
- "@types/multer": "^1.4.11",
26
- "@types/node": "^20.11.0",
27
- "@typescript-eslint/eslint-plugin": "^6.19.0",
28
- "@typescript-eslint/parser": "^6.19.0",
29
- "aws-sdk": "^2.1595.0",
30
- "connect-redis": "^7.1.1",
31
- "express": "^4.18.2",
32
- "express-async-errors": "^3.1.1",
33
- "express-session": "^1.18.0",
34
- "express-validator": "^7.0.1",
35
- "jsonwebtoken": "^9.0.2",
36
- "mongoose": "^8.0.4",
37
- "multer": "^1.4.5-lts.1",
38
- "node-nats-streaming": "^0.3.2",
39
- "redis": "^4.6.13",
40
- "rimraf": "^5.0.5",
41
- "typescript": "^5.3.3",
42
- "uuid": "^9.0.1",
43
- "winston": "^3.13.0",
44
- "winston-daily-rotate-file": "^5.0.0"
45
- },
46
- "devDependencies": {
47
- "@types/uuid": "^9.0.8",
48
- "del-cli": "^5.1.0",
49
- "eslint": "^8.56.0",
50
- "eslint-config-prettier": "^9.1.0",
51
- "eslint-plugin-import": "^2.29.1",
52
- "eslint-plugin-prettier": "^5.1.3",
53
- "prettier": "^3.2.4"
54
- },
55
- "description": ""
56
- }
1
+ {
2
+ "name": "@duvdu-v1/duvdu",
3
+ "version": "1.1.199",
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
+ "@types/express": "^4.17.21",
23
+ "@types/express-session": "^1.18.0",
24
+ "@types/jsonwebtoken": "^9.0.5",
25
+ "@types/multer": "^1.4.11",
26
+ "@types/node": "^20.11.0",
27
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
28
+ "@typescript-eslint/parser": "^6.19.0",
29
+ "aws-sdk": "^2.1595.0",
30
+ "connect-redis": "^7.1.1",
31
+ "express": "^4.18.2",
32
+ "express-async-errors": "^3.1.1",
33
+ "express-session": "^1.18.0",
34
+ "express-validator": "^7.0.1",
35
+ "jsonwebtoken": "^9.0.2",
36
+ "mongoose": "^8.0.4",
37
+ "multer": "^1.4.5-lts.1",
38
+ "node-nats-streaming": "^0.3.2",
39
+ "redis": "^4.6.13",
40
+ "rimraf": "^5.0.5",
41
+ "typescript": "^5.3.3",
42
+ "uuid": "^9.0.1",
43
+ "winston": "^3.13.0",
44
+ "winston-daily-rotate-file": "^5.0.0"
45
+ },
46
+ "devDependencies": {
47
+ "@types/uuid": "^9.0.8",
48
+ "del-cli": "^5.1.0",
49
+ "eslint": "^8.56.0",
50
+ "eslint-config-prettier": "^9.1.0",
51
+ "eslint-plugin-import": "^2.29.1",
52
+ "eslint-plugin-prettier": "^5.1.3",
53
+ "prettier": "^3.2.4"
54
+ },
55
+ "description": ""
56
+ }