myinterview
Advanced tools
Comparing version 1.0.204 to 1.0.205
@@ -10,1 +10,2 @@ export * from './utils'; | ||
export * from './Webhooks'; | ||
export * from './Intelligence'; |
@@ -22,1 +22,2 @@ "use strict"; | ||
__exportStar(require("./Webhooks"), exports); | ||
__exportStar(require("./Intelligence"), exports); |
@@ -140,9 +140,11 @@ "use strict"; | ||
} | ||
case 'createBulkCandidates': | ||
case 'createBulkCandidates': { | ||
const { job_id, communication, reminders } = data; | ||
return { | ||
method: 'post', | ||
url: Helpers_1.Helpers.cleanURL(`${baseURL}/candidates/jobs/${data.job_id}?communication=${data.communication ? '1' : '0'}`), | ||
url: Helpers_1.Helpers.cleanURL(`${baseURL}/candidates/jobs/${job_id}?communication=${communication ? '1' : '0'}&reminders=${reminders ? '1' : '0'}`), | ||
headers, | ||
data, | ||
}; | ||
} | ||
case 'updateCandidate': | ||
@@ -209,2 +211,12 @@ return { | ||
}; | ||
// Intelligence | ||
case 'updateJobIntelligence': { | ||
const { job_id } = data; | ||
return { | ||
method: 'post', | ||
url: Helpers_1.Helpers.cleanURL(`${baseURL}/intelligence/jobs/${job_id}`), | ||
headers, | ||
data, | ||
}; | ||
} | ||
default: { | ||
@@ -211,0 +223,0 @@ return { |
@@ -72,2 +72,3 @@ import { AxiosRequestConfig, Method } from 'axios'; | ||
communication?: boolean; | ||
reminders?: boolean; | ||
deadlineDate?: Date | string | number; | ||
@@ -232,1 +233,9 @@ timezoneForInvite?: string; | ||
} | ||
export declare type TraitNameTypes = 'Creative' | 'Strategic' | 'Disciplined' | 'Driven' | 'Friendly' | 'Outgoing' | 'Assertive' | 'Persuasive' | 'Stress Tolerant' | 'Optimism'; | ||
export interface IUpdateIntelligenceBody { | ||
job_id: string; | ||
intelligence: { | ||
order: 1 | 2 | 3 | 4 | 5; | ||
name: TraitNameTypes; | ||
}[]; | ||
} |
{ | ||
"name": "myinterview", | ||
"version": "1.0.204", | ||
"version": "1.0.205", | ||
"description": "Build and integrate myInterview with ease via our node.js npm package and connect to the myInterview API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -107,12 +107,11 @@ # MyInterview-node # | ||
| Field | Type | Description | | ||
| --- | --- | --- | | ||
| *job_id | string | ID of the job | | ||
| communication | object | Query object | | ||
| query.ids | string array | ids of candidates you need | | ||
| query.email | string | email of candidate you need | | ||
| query.status | string | status of the candidate enum (pending, clicked, completed, cancelled) | | ||
| query.username | string | username of candidate you need | | ||
| query.skip | number | Pagination | | ||
| query.limit | number | Pagination | | ||
| Field | Type | Description | | ||
|----------------|--------------|-----------------------------------------------------------------------| | ||
| *job_id | string | ID of the job | | ||
| query.ids | string array | ids of candidates you need | | ||
| query.email | string | email of candidate you need | | ||
| query.status | string | status of the candidate enum (pending, clicked, completed, cancelled) | | ||
| query.username | string | username of candidate you need | | ||
| query.skip | number | Pagination | | ||
| query.limit | number | Pagination | | ||
*required field | ||
@@ -125,3 +124,4 @@ | ||
job_id: "job_id", | ||
communication: false, | ||
communication: true, | ||
reminders: true, | ||
deadlineDate: "2021-10-20T08:42:59.537+00:00", | ||
@@ -144,2 +144,3 @@ timezoneForInvite: "Australia/Sydney", | ||
| communication | boolean | Flag to send mail to invited candidates (default = false) | | ||
| reminders | boolean | Flag to activate reminders mails | | ||
| deadlineDate | ISO Date string | Deadline date for the candidate/s | | ||
@@ -356,2 +357,3 @@ | timezoneForInvite | string | Timezone for the deadline | | ||
communication: true, | ||
reminders: true, | ||
deadlineDate: "2021-10-20T08:42:59.537+00:00", | ||
@@ -566,3 +568,49 @@ timezoneForInvite: "Australia/Sydney", | ||
## Intelligence | ||
```js | ||
const { Intelligence } = require('myinterview'); | ||
``` | ||
### updateJobIntelligence | ||
```ts | ||
const body = { | ||
job_id: 'job_id', | ||
intelligence: [ | ||
{ | ||
name: 'Creative', | ||
order: 1, | ||
}, | ||
{ | ||
name: 'Persuasive', | ||
order: 2, | ||
}, | ||
{ | ||
name: 'Assertive', | ||
order: 3, | ||
}, | ||
{ | ||
name: 'Optimism', | ||
order: 4, | ||
}, | ||
{ | ||
name: 'Outgoing', | ||
order: 5, | ||
}, | ||
], | ||
}; | ||
const res = await Intelligence.updateJobIntelligence(body); | ||
``` | ||
### updateJobIntelligence Params | ||
| Field | Type | Description | | ||
|---------------------|--------|---------------------------------------------| | ||
| *job_id | string | job_id | | ||
| *intelligence.order | number | order from 1 to 5 | | ||
| *intelligence.name | string | trait name need to be one of these values: Creative,Strategic,Disciplined,Driven,Friendly,Outgoing,Assertive,Persuasive,Stress Tolerant,Optimism | | ||
*required field | ||
## Webhooks | ||
@@ -569,0 +617,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90530
36
1673
703