@duvdu-v1/duvdu 1.1.217 → 1.1.219
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/producer_contracts.model.d.ts +2 -1
- package/build/models/producer_contracts.model.js +1 -0
- package/build/models/projectContract.model.d.ts +2 -1
- package/build/models/projectContract.model.js +1 -0
- package/build/models/teamProject.model.d.ts +6 -1
- package/build/models/teamProject.model.js +2 -0
- package/package.json +1 -1
|
@@ -29,7 +29,8 @@ export declare enum ContractStatus {
|
|
|
29
29
|
pending = "pending",
|
|
30
30
|
accepted = "accepted",
|
|
31
31
|
rejected = "rejected",
|
|
32
|
-
acceptedWithUpdate = "accepted with update"
|
|
32
|
+
acceptedWithUpdate = "accepted with update",
|
|
33
|
+
complaint = "complaint"
|
|
33
34
|
}
|
|
34
35
|
export interface IproducerContarct {
|
|
35
36
|
producer: Types.ObjectId | Iuser;
|
|
@@ -10,6 +10,7 @@ var ContractStatus;
|
|
|
10
10
|
ContractStatus["accepted"] = "accepted";
|
|
11
11
|
ContractStatus["rejected"] = "rejected";
|
|
12
12
|
ContractStatus["acceptedWithUpdate"] = "accepted with update";
|
|
13
|
+
ContractStatus["complaint"] = "complaint";
|
|
13
14
|
})(ContractStatus || (exports.ContractStatus = ContractStatus = {}));
|
|
14
15
|
exports.ProducerContract = (0, mongoose_1.model)(model_names_1.MODELS.producerContract, new mongoose_1.Schema({
|
|
15
16
|
producer: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
@@ -33,7 +33,8 @@ export declare enum ProjectContractStatus {
|
|
|
33
33
|
waitingForTotalPayment = "waiting-for-total-payment",
|
|
34
34
|
ongoing = "ongoing",
|
|
35
35
|
completed = "completed",
|
|
36
|
-
rejected = "rejected"
|
|
36
|
+
rejected = "rejected",
|
|
37
|
+
complaint = "complaint"
|
|
37
38
|
}
|
|
38
39
|
export interface IprojectContract {
|
|
39
40
|
sp: Types.ObjectId | Iuser;
|
|
@@ -13,6 +13,7 @@ var ProjectContractStatus;
|
|
|
13
13
|
ProjectContractStatus["ongoing"] = "ongoing";
|
|
14
14
|
ProjectContractStatus["completed"] = "completed";
|
|
15
15
|
ProjectContractStatus["rejected"] = "rejected";
|
|
16
|
+
ProjectContractStatus["complaint"] = "complaint";
|
|
16
17
|
})(ProjectContractStatus || (exports.ProjectContractStatus = ProjectContractStatus = {}));
|
|
17
18
|
exports.ProjectContract = (0, mongoose_1.model)(model_names_1.MODELS.projectContract, new mongoose_1.Schema({
|
|
18
19
|
sp: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
@@ -74,7 +74,8 @@ export declare enum TeamContractStatus {
|
|
|
74
74
|
waitingForTotalPayment = "waiting-for-total-payment",
|
|
75
75
|
ongoing = "ongoing",
|
|
76
76
|
completed = "completed",
|
|
77
|
-
rejected = "rejected"
|
|
77
|
+
rejected = "rejected",
|
|
78
|
+
complaint = "complaint"
|
|
78
79
|
}
|
|
79
80
|
export interface ITeamContract {
|
|
80
81
|
sp: Types.ObjectId | Iuser;
|
|
@@ -98,6 +99,10 @@ export interface ITeamContract {
|
|
|
98
99
|
createdAt: Date;
|
|
99
100
|
paymentAmount: number;
|
|
100
101
|
totalCheckoutAt: Date;
|
|
102
|
+
submitFiles: {
|
|
103
|
+
link: string;
|
|
104
|
+
notes: string;
|
|
105
|
+
};
|
|
101
106
|
}
|
|
102
107
|
export declare const TeamContract: import("mongoose").Model<ITeamContract, {}, {}, {}, import("mongoose").Document<unknown, {}, ITeamContract> & ITeamContract & {
|
|
103
108
|
_id: Types.ObjectId;
|
|
@@ -72,6 +72,7 @@ var TeamContractStatus;
|
|
|
72
72
|
TeamContractStatus["ongoing"] = "ongoing";
|
|
73
73
|
TeamContractStatus["completed"] = "completed";
|
|
74
74
|
TeamContractStatus["rejected"] = "rejected";
|
|
75
|
+
TeamContractStatus["complaint"] = "complaint";
|
|
75
76
|
})(TeamContractStatus || (exports.TeamContractStatus = TeamContractStatus = {}));
|
|
76
77
|
exports.TeamContract = (0, mongoose_1.model)(model_names_1.MODELS.teamContract, new mongoose_1.Schema({
|
|
77
78
|
sp: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
@@ -94,4 +95,5 @@ exports.TeamContract = (0, mongoose_1.model)(model_names_1.MODELS.teamContract,
|
|
|
94
95
|
paymentAmount: { type: Number, default: 0 },
|
|
95
96
|
attachments: [String],
|
|
96
97
|
totalCheckoutAt: Date,
|
|
98
|
+
submitFiles: { link: { type: String, default: null }, notes: { type: String, default: null } },
|
|
97
99
|
}, { timestamps: true, collection: model_names_1.MODELS.teamContract }));
|