We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a24d73 + cf38c92 commit d8e88a9Copy full SHA for d8e88a9
package.json
@@ -60,4 +60,4 @@
60
"test/e2e/*.js"
61
]
62
}
63
-}
+}
src/scripts/createIndex.js
@@ -29,6 +29,12 @@ async function createIndex () {
29
roles: { type: 'keyword' },
30
status: { type: 'keyword' },
31
isApplicationPageActive: { type: 'boolean' },
32
+ minSalary: { type: 'integer' },
33
+ maxSalary: { type: 'integer' },
34
+ hoursPerWeek: { type: 'integer' },
35
+ jobLocation: { type: 'keyword' },
36
+ jobTimezone: { type: 'keyword' },
37
+ currency: { type: 'keyword' },
38
roleIds: { type: 'keyword' },
39
createdAt: { type: 'date' },
40
createdBy: { type: 'keyword' },
@@ -48,6 +54,7 @@ async function createIndex () {
48
54
49
55
externalId: { type: 'keyword' },
50
56
resume: { type: 'text' },
57
+ remark: { type: 'keyword' },
51
58
interviews: {
52
59
type: 'nested',
53
properties: {
src/services/JobCandidateProcessorService.js
@@ -101,7 +101,8 @@ processCreate.schema = {
101
updatedBy: Joi.string().uuid().allow(null),
102
status: Joi.jobCandidateStatus().required(),
103
externalId: Joi.string().allow(null),
104
- resume: Joi.string().uri().allow(null)
+ resume: Joi.string().uri().allow(null),
105
+ remark: Joi.string().allow(null)
106
}).required()
107
}).required(),
108
transactionId: Joi.string().required()
src/services/JobProcessorService.js
@@ -85,6 +85,12 @@ processCreate.schema = {
85
86
status: Joi.jobStatus().required(),
87
isApplicationPageActive: Joi.boolean().required(),
88
+ minSalary: Joi.number().integer().required(),
89
+ maxSalary: Joi.number().integer().required(),
90
+ hoursPerWeek: Joi.number().integer().required(),
91
+ jobLocation: Joi.string().required(),
92
+ jobTimezone: Joi.string().required(),
93
+ currency: Joi.string().required(),
94
roleIds: Joi.array().items(Joi.string().uuid().required()).allow(null)
95
96
test/messages/taas.job.create.event.json
@@ -25,6 +25,12 @@
25
"createdBy": "a55fe1bc-1754-45fa-9adc-cf3d6d7c377a",
26
"status": "sourcing",
27
"isApplicationPageActive": false,
28
+ "minSalary": 100,
+ "maxSalary": 200,
+ "hoursPerWeek": 20,
+ "jobLocation": "Any location",
+ "jobTimezone": "GMT",
+ "currency": "USD",
"roleIds": [
"e7b7e818-40d4-4102-b486-09bdd21400b8"
test/messages/taas.job.update.event.json
@@ -24,6 +24,12 @@
24
"createdAt": "2020-11-05T19:00:16.268Z",
test/messages/taas.jobcandidate.create.event.json
@@ -9,6 +9,7 @@
9
"id": "0cb99adb-8bcd-4952-9203-9867dd45ef6f",
10
"createdAt": "2020-11-05T19:00:19.052Z",
11
12
- "status": "open"
+ "status": "open",
13
+ "remark": "excellent"
14
15
test/messages/taas.jobcandidate.update.event.json
@@ -8,6 +8,7 @@
8
"jobId": "ffbc24f7-301e-48d3-bf01-c056916056a2",
"userId": "a55fe1bc-1754-45fa-9adc-cf3d6d7c377a",
"status": "selected",
+ "remark": "excellent",
"updatedAt": "2020-11-05T19:00:21.625Z",
"updatedBy": "a55fe1bc-1754-45fa-9adc-cf3d6d7c377a",
0 commit comments