@duvdu-v1/duvdu 1.1.196 → 1.1.198
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/models/copyrights.model.d.ts +1 -0
- package/build/models/copyrights.model.js +1 -0
- package/build/models/portfolio-post.model.d.ts +3 -2
- package/build/models/portfolio-post.model.js +5 -2
- package/build/models/rental.model.d.ts +1 -0
- package/build/models/rental.model.js +1 -1
- package/package.json +1 -1
|
@@ -35,6 +35,7 @@ export interface IprojectCycle {
|
|
|
35
35
|
subCategory: {
|
|
36
36
|
ar: string;
|
|
37
37
|
en: string;
|
|
38
|
+
_id: string;
|
|
38
39
|
};
|
|
39
40
|
tags: {
|
|
40
41
|
ar: string;
|
|
@@ -58,8 +59,8 @@ export interface IprojectCycle {
|
|
|
58
59
|
inviteStatus: InviteStatus;
|
|
59
60
|
}[];
|
|
60
61
|
location: {
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
type: 'Point';
|
|
63
|
+
coordinates: [number, number];
|
|
63
64
|
};
|
|
64
65
|
address: string;
|
|
65
66
|
searchKeyWords: string[];
|
|
@@ -12,7 +12,7 @@ var InviteStatus;
|
|
|
12
12
|
exports.ProjectCycle = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPost, new mongoose_1.Schema({
|
|
13
13
|
user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
14
14
|
category: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.category },
|
|
15
|
-
subCategory: { ar: { type: String, default: null }, en: { type: String, default: null } },
|
|
15
|
+
subCategory: { ar: { type: String, default: null }, en: { type: String, default: null }, _id: String },
|
|
16
16
|
tags: [{ ar: { type: String, default: null }, en: { type: String, default: null } }],
|
|
17
17
|
cover: { type: String, default: null },
|
|
18
18
|
audioCover: { type: String, default: null },
|
|
@@ -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: {
|
|
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 },
|
|
@@ -14,7 +14,7 @@ var RentalUnits;
|
|
|
14
14
|
exports.Rentals = (0, mongoose_1.model)('rentals', new mongoose_1.Schema({
|
|
15
15
|
user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
16
16
|
category: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.category },
|
|
17
|
-
subCategory: { ar: String, en: String },
|
|
17
|
+
subCategory: { ar: String, en: String, _id: String },
|
|
18
18
|
tags: [{ ar: String, en: String }],
|
|
19
19
|
attachments: [String],
|
|
20
20
|
cover: String,
|