@duvdu-v1/duvdu 1.1.194 → 1.1.196
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 +2 -0
- package/build/models/copyrights.model.js +2 -0
- package/build/models/portfolio-post.model.d.ts +2 -0
- package/build/models/portfolio-post.model.js +8 -1
- package/build/models/rental.model.d.ts +2 -0
- package/build/models/rental.model.js +2 -0
- package/build/models/teamProject.model.d.ts +1 -0
- package/build/models/teamProject.model.js +1 -0
- package/package.json +1 -1
|
@@ -55,6 +55,8 @@ export interface IcopyRights {
|
|
|
55
55
|
ar: string;
|
|
56
56
|
en: string;
|
|
57
57
|
};
|
|
58
|
+
minBudget: number;
|
|
59
|
+
maxBudget: number;
|
|
58
60
|
}
|
|
59
61
|
export declare const CopyRights: import("mongoose").Model<IcopyRights, {}, {}, {}, import("mongoose").Document<unknown, {}, IcopyRights> & IcopyRights & {
|
|
60
62
|
_id: Types.ObjectId;
|
|
@@ -27,6 +27,8 @@ exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new
|
|
|
27
27
|
lat: { type: Number, default: null },
|
|
28
28
|
lng: { type: Number, default: null },
|
|
29
29
|
},
|
|
30
|
+
minBudget: { type: Number, default: null },
|
|
31
|
+
maxBudget: { type: Number, default: null },
|
|
30
32
|
}, {
|
|
31
33
|
timestamps: true,
|
|
32
34
|
collection: model_names_1.MODELS.copyrights,
|
|
@@ -82,6 +82,8 @@ export interface IprojectCycle {
|
|
|
82
82
|
url: string;
|
|
83
83
|
note: string;
|
|
84
84
|
};
|
|
85
|
+
minBudget: number;
|
|
86
|
+
maxBudget: number;
|
|
85
87
|
}
|
|
86
88
|
export declare const ProjectCycle: import("mongoose").Model<IprojectCycle, {}, {}, {}, import("mongoose").Document<unknown, {}, IprojectCycle> & IprojectCycle & {
|
|
87
89
|
_id: Types.ObjectId;
|
|
@@ -23,7 +23,12 @@ exports.ProjectCycle = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPost,
|
|
|
23
23
|
functions: [
|
|
24
24
|
{ name: { type: String, default: null }, unitPrice: { type: Number, default: 0 } },
|
|
25
25
|
],
|
|
26
|
-
creatives: [
|
|
26
|
+
creatives: [
|
|
27
|
+
{
|
|
28
|
+
creative: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
29
|
+
inviteStatus: { type: String, enum: InviteStatus, default: InviteStatus.pending },
|
|
30
|
+
},
|
|
31
|
+
],
|
|
27
32
|
location: { lat: { type: Number, default: 0 }, lng: { type: Number, default: 0 } },
|
|
28
33
|
address: { type: String, default: null },
|
|
29
34
|
searchKeyWords: [String],
|
|
@@ -43,4 +48,6 @@ exports.ProjectCycle = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPost,
|
|
|
43
48
|
url: { type: String, default: null },
|
|
44
49
|
note: { type: String, default: null },
|
|
45
50
|
},
|
|
51
|
+
minBudget: { type: Number, default: null },
|
|
52
|
+
maxBudget: { type: Number, default: null },
|
|
46
53
|
}, { timestamps: true, collection: model_names_1.MODELS.portfolioPost }));
|
|
@@ -71,6 +71,8 @@ export interface Irental {
|
|
|
71
71
|
};
|
|
72
72
|
createdAt: Date;
|
|
73
73
|
updatedAt: Date;
|
|
74
|
+
minBudget: number;
|
|
75
|
+
maxBudget: number;
|
|
74
76
|
}
|
|
75
77
|
export declare const Rentals: import("mongoose").Model<Irental, {}, {}, {}, import("mongoose").Document<unknown, {}, Irental> & Irental & {
|
|
76
78
|
_id: Types.ObjectId;
|
|
@@ -35,4 +35,6 @@ exports.Rentals = (0, mongoose_1.model)('rentals', new mongoose_1.Schema({
|
|
|
35
35
|
},
|
|
36
36
|
isDeleted: { type: Boolean, default: false },
|
|
37
37
|
rate: { ratersCounter: Number, totalRates: Number },
|
|
38
|
+
minBudget: { type: Number, default: null },
|
|
39
|
+
maxBudget: { type: Number, default: null },
|
|
38
40
|
}, { collection: 'rentals', timestamps: true }).index({ createdAt: 1, updatedAt: -1 }));
|
|
@@ -13,6 +13,7 @@ var UserStatus;
|
|
|
13
13
|
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
14
14
|
const UserSchema = new mongoose_1.Schema({
|
|
15
15
|
user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
16
|
+
contract: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
16
17
|
attachments: [String],
|
|
17
18
|
duration: { type: Number, default: 0 },
|
|
18
19
|
startDate: Date,
|