@duvdu-v1/duvdu 1.1.237 → 1.1.239
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/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/models/copyright-contract.model.d.ts +1 -0
- package/build/models/copyright-contract.model.js +1 -0
- package/build/models/projectContract.model.d.ts +1 -0
- package/build/models/projectContract.model.js +1 -0
- package/build/models/teamProject.model.d.ts +1 -0
- package/build/models/teamProject.model.js +1 -0
- package/build/services/checkUserFaceVerification.d.ts +1 -0
- package/build/services/checkUserFaceVerification.js +24 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export * from './models/Bookmark-projects.model';
|
|
|
83
83
|
export * from './services/category.service';
|
|
84
84
|
export * from './services/projectView.service';
|
|
85
85
|
export * from './services/rank.service';
|
|
86
|
+
export * from './services/checkUserFaceVerification';
|
|
86
87
|
export * from './types/notification.type';
|
|
87
88
|
export * from './types/notification_details';
|
|
88
89
|
export * from './events/new-notification.event';
|
package/build/index.js
CHANGED
|
@@ -100,6 +100,7 @@ __exportStar(require("./models/Bookmark-projects.model"), exports);
|
|
|
100
100
|
__exportStar(require("./services/category.service"), exports);
|
|
101
101
|
__exportStar(require("./services/projectView.service"), exports);
|
|
102
102
|
__exportStar(require("./services/rank.service"), exports);
|
|
103
|
+
__exportStar(require("./services/checkUserFaceVerification"), exports);
|
|
103
104
|
__exportStar(require("./types/notification.type"), exports);
|
|
104
105
|
__exportStar(require("./types/notification_details"), exports);
|
|
105
106
|
// events
|
|
@@ -46,6 +46,7 @@ exports.CopyrightContracts = (0, mongoose_1.model)(model_names_1.MODELS.copyrigh
|
|
|
46
46
|
notes: { type: String, default: null },
|
|
47
47
|
reason: { type: String, default: null },
|
|
48
48
|
status: { type: String, enum: SubmitFilesStatus, default: SubmitFilesStatus.pending },
|
|
49
|
+
dateOfSubmission: { type: Date, default: null },
|
|
49
50
|
}],
|
|
50
51
|
rejectedBy: { type: String, enum: ['sp', 'customer'], default: null },
|
|
51
52
|
paymentLink: { type: String, default: null },
|
|
@@ -84,6 +84,7 @@ export interface IprojectContract {
|
|
|
84
84
|
notes: string;
|
|
85
85
|
status: SubmitFilesStatus;
|
|
86
86
|
reason?: string;
|
|
87
|
+
dateOfSubmission: Date;
|
|
87
88
|
}[];
|
|
88
89
|
}
|
|
89
90
|
export declare const ProjectContract: import("mongoose").Model<IprojectContract, {}, {}, {}, import("mongoose").Document<unknown, {}, IprojectContract> & IprojectContract & {
|
|
@@ -62,6 +62,7 @@ exports.ProjectContract = (0, mongoose_1.model)(model_names_1.MODELS.projectCont
|
|
|
62
62
|
link: { type: String, default: null },
|
|
63
63
|
notes: { type: String, default: null },
|
|
64
64
|
reason: { type: String, default: null },
|
|
65
|
+
dateOfSubmission: { type: Date, default: null },
|
|
65
66
|
status: { type: String, enum: copyright_contract_model_1.SubmitFilesStatus, default: copyright_contract_model_1.SubmitFilesStatus.pending },
|
|
66
67
|
}],
|
|
67
68
|
}, { timestamps: true, collection: model_names_1.MODELS.projectContract }));
|
|
@@ -105,6 +105,7 @@ export interface ITeamContract {
|
|
|
105
105
|
notes: string;
|
|
106
106
|
status: SubmitFilesStatus;
|
|
107
107
|
reason?: string;
|
|
108
|
+
dateOfSubmission: Date;
|
|
108
109
|
}[];
|
|
109
110
|
}
|
|
110
111
|
export declare const TeamContract: import("mongoose").Model<ITeamContract, {}, {}, {}, import("mongoose").Document<unknown, {}, ITeamContract> & ITeamContract & {
|
|
@@ -100,6 +100,7 @@ exports.TeamContract = (0, mongoose_1.model)(model_names_1.MODELS.teamContract,
|
|
|
100
100
|
link: { type: String, default: null },
|
|
101
101
|
notes: { type: String, default: null },
|
|
102
102
|
reason: { type: String, default: null },
|
|
103
|
+
dateOfSubmission: { type: Date, default: null },
|
|
103
104
|
status: { type: String, enum: copyright_contract_model_1.SubmitFilesStatus, default: copyright_contract_model_1.SubmitFilesStatus.pending },
|
|
104
105
|
}],
|
|
105
106
|
}, { timestamps: true, collection: model_names_1.MODELS.teamContract }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function checkUserFaceVerification(userId: string): Promise<boolean>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.checkUserFaceVerification = void 0;
|
|
13
|
+
const User_model_1 = require("../models/User.model");
|
|
14
|
+
function checkUserFaceVerification(userId) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
const user = yield User_model_1.Users.findOne({ _id: userId });
|
|
17
|
+
let isVerified = false;
|
|
18
|
+
if (user) {
|
|
19
|
+
isVerified = user.faceRecognition !== null;
|
|
20
|
+
}
|
|
21
|
+
return isVerified;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.checkUserFaceVerification = checkUserFaceVerification;
|