@cool-digital-solutions/interferir-models 1.3.41 → 1.3.42

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.
@@ -90,6 +90,15 @@ const aiHrCandidateProfileSchema = new mongoose_1.Schema({
90
90
  mechanical: { type: Boolean, required: false },
91
91
  },
92
92
  },
93
+ emailResearch: {
94
+ found: { type: Boolean, default: false },
95
+ sources: [
96
+ {
97
+ description: { type: String, required: false },
98
+ source: { type: String, required: false },
99
+ },
100
+ ],
101
+ },
93
102
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
94
103
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
95
104
  updatedDate: Number,
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const mongoose_1 = require("mongoose");
7
7
  const express_http_context_1 = __importDefault(require("express-http-context"));
8
8
  const _config_1 = require("../config");
9
+ const ai_hr_candidate_top_candidate_type_1 = require("../types/ai-hr-candidate-top-candidate.type");
9
10
  const aiHrCandidateTopCandidateSchema = new mongoose_1.Schema({
10
11
  aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', required: true },
11
12
  aiHrCandidate: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiHrCandidate', required: true },
@@ -14,6 +15,90 @@ const aiHrCandidateTopCandidateSchema = new mongoose_1.Schema({
14
15
  relevancy: { type: String },
15
16
  strengths: [{ type: String }],
16
17
  weaknesses: [{ type: String }],
18
+ companyBackgroundAnalysis: { type: String, required: false },
19
+ educationBackgroundAnalysis: { type: String, required: false },
20
+ profileTag: { type: String, enum: Object.values(ai_hr_candidate_top_candidate_type_1.ProfileTag), required: false },
21
+ personalityAnalysis: {
22
+ thinkingStyle: {
23
+ learningIndex: {
24
+ score: { type: Number, required: false },
25
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
26
+ },
27
+ verbalSkills: {
28
+ score: { type: Number, required: false },
29
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
30
+ },
31
+ verbalReasoning: {
32
+ score: { type: Number, required: false },
33
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
34
+ },
35
+ numericalAbility: {
36
+ score: { type: Number, required: false },
37
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
38
+ },
39
+ numericalReasoning: {
40
+ score: { type: Number, required: false },
41
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
42
+ },
43
+ },
44
+ behaviorTraits: {
45
+ energyLevel: {
46
+ score: { type: Number, required: false },
47
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
48
+ },
49
+ assertiveness: {
50
+ score: { type: Number, required: false },
51
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
52
+ },
53
+ sociability: {
54
+ score: { type: Number, required: false },
55
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
56
+ },
57
+ manageability: {
58
+ score: { type: Number, required: false },
59
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
60
+ },
61
+ attitude: {
62
+ score: { type: Number, required: false },
63
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
64
+ },
65
+ decisiveness: {
66
+ score: { type: Number, required: false },
67
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
68
+ },
69
+ accommodating: {
70
+ score: { type: Number, required: false },
71
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
72
+ },
73
+ independence: {
74
+ score: { type: Number, required: false },
75
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
76
+ },
77
+ objectiveJudgment: {
78
+ score: { type: Number, required: false },
79
+ reasoning: [{ evidence: { type: String }, trait: { type: String } }],
80
+ },
81
+ },
82
+ interests: {
83
+ creative: { type: Boolean, required: false },
84
+ enterprising: { type: Boolean, required: false },
85
+ financialAdministrative: { type: Boolean, required: false },
86
+ peopleService: { type: Boolean, required: false },
87
+ technical: { type: Boolean, required: false },
88
+ mechanical: { type: Boolean, required: false },
89
+ },
90
+ },
91
+ emailResearch: {
92
+ found: { type: Boolean, default: false },
93
+ sources: [
94
+ {
95
+ description: { type: String, required: false },
96
+ source: { type: String, required: false },
97
+ },
98
+ ],
99
+ },
100
+ isOutreached: { type: Boolean, required: false },
101
+ addToOutreach: { type: Boolean, required: false },
17
102
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
18
103
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
19
104
  updatedDate: Number,
@@ -108,6 +108,13 @@ export declare enum ProfileTag {
108
108
  NOT_INTERESTED = "notInterested",
109
109
  EMPTY = ""
110
110
  }
111
+ interface EmailResearch {
112
+ found: boolean;
113
+ sources: {
114
+ description: string;
115
+ source: string;
116
+ }[];
117
+ }
111
118
  export interface IAiHrCandidateProfile extends BaseSchema {
112
119
  aiTask: Types.ObjectId | IAiTask;
113
120
  aiHrCandidate: Types.ObjectId | IAiHrCandidate;
@@ -122,6 +129,7 @@ export interface IAiHrCandidateProfile extends BaseSchema {
122
129
  addToOutreach: boolean;
123
130
  isOutreached: boolean;
124
131
  profileTag: ProfileTag;
132
+ emailResearch: EmailResearch;
125
133
  }
126
134
  export interface IAiHrCandidateProfileModel extends BaseModel<IAiHrCandidateProfile> {
127
135
  }
@@ -108,6 +108,13 @@ export declare enum ProfileTag {
108
108
  NOT_INTERESTED = "notInterested",
109
109
  EMPTY = ""
110
110
  }
111
+ interface EmailResearch {
112
+ found: boolean;
113
+ sources: {
114
+ description: string;
115
+ source: string;
116
+ }[];
117
+ }
111
118
  export interface IAiHrCandidateTopCandidate extends BaseSchema {
112
119
  aiTask: Types.ObjectId | IAiTask;
113
120
  aiHrCandidate: Types.ObjectId | IAiHrCandidate;
@@ -122,6 +129,7 @@ export interface IAiHrCandidateTopCandidate extends BaseSchema {
122
129
  addToOutreach: boolean;
123
130
  isOutreached: boolean;
124
131
  profileTag: ProfileTag;
132
+ emailResearch: EmailResearch;
125
133
  }
126
134
  export interface IAiHrCandidateTopCandidateModel extends BaseModel<IAiHrCandidateTopCandidate> {
127
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.3.41",
3
+ "version": "1.3.42",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"