@cool-digital-solutions/interferir-models 1.3.18 → 1.3.19

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