node-behind-api-client 2.0.48
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/.gitlab-ci.yml +20 -0
- package/README.md +65 -0
- package/docs/behind-api-client/easyjob/JobDescriptions/README.md +654 -0
- package/docs/behind-api-client/easyjob/README.md +647 -0
- package/docs/behind-api-client/easyjob/applicants/README.md +494 -0
- package/docs/behind-api-client/easyjob/applications/README.md +754 -0
- package/docs/behind-api-client/easyjob/candidateProfiles/README.md +940 -0
- package/docs/behind-api-client/easyjob/jd-candidate-questions/README.md +372 -0
- package/docs/behind-api-client/payments/payture/README.21.md +901 -0
- package/docs/behind-api-client/payments/payture/README.cards.md +1497 -0
- package/docs/behind-api-client/payments/payture/README.md +1497 -0
- package/docs/behind-api-client/payments/payture/README.rukitchen.md +396 -0
- package/docs/behind-api-client/payments/payture/README.subscriptions.md +1266 -0
- package/docs/behind-api-client/payments/stripe/README.flow.md +254 -0
- package/docs/behind-api-client/rag/storage/README.md +519 -0
- package/example.js +35 -0
- package/index.cjs +14 -0
- package/index.js +15 -0
- package/lib/behind-api-auth-client/BehindApiAuthClient.js +91 -0
- package/lib/behind-api-auth-client/authorisation/AuthorisationApp.js +9 -0
- package/lib/behind-api-auth-client/authorisation/AuthorisationV10.js +9 -0
- package/lib/behind-api-auth-client/authorisation/AuthorisationV10Code.js +30 -0
- package/lib/behind-api-auth-client/example.js +47 -0
- package/lib/behind-api-auth-client/package.json +9 -0
- package/lib/behind-api-client/BehindApiClient.js +137 -0
- package/lib/behind-api-client/chat/ChatApp.js +11 -0
- package/lib/behind-api-client/chat/ChatV10.js +13 -0
- package/lib/behind-api-client/chat/ChatV10Chat.js +87 -0
- package/lib/behind-api-client/chat/ChatV10Chats.js +14 -0
- package/lib/behind-api-client/chat/ChatV10Message.js +57 -0
- package/lib/behind-api-client/chat/ChatV20.js +11 -0
- package/lib/behind-api-client/chat/ChatV20Chat.js +14 -0
- package/lib/behind-api-client/chat/ChatV20Message.js +27 -0
- package/lib/behind-api-client/easyjob/EasyjobApp.js +9 -0
- package/lib/behind-api-client/easyjob/EasyjobV10.js +31 -0
- package/lib/behind-api-client/easyjob/EasyjobV10Answers.js +16 -0
- package/lib/behind-api-client/easyjob/EasyjobV10Applicants.js +29 -0
- package/lib/behind-api-client/easyjob/EasyjobV10Applications.js +39 -0
- package/lib/behind-api-client/easyjob/EasyjobV10CandidateProfileArtifacts.js +31 -0
- package/lib/behind-api-client/easyjob/EasyjobV10CandidateProfiles.js +99 -0
- package/lib/behind-api-client/easyjob/EasyjobV10Companies.js +36 -0
- package/lib/behind-api-client/easyjob/EasyjobV10Cv.js +15 -0
- package/lib/behind-api-client/easyjob/EasyjobV10Departments.js +37 -0
- package/lib/behind-api-client/easyjob/EasyjobV10JobDescriptionArtifacts.js +29 -0
- package/lib/behind-api-client/easyjob/EasyjobV10JobDescriptionCandidateQuestions.js +63 -0
- package/lib/behind-api-client/easyjob/EasyjobV10JobDescriptions.js +93 -0
- package/lib/behind-api-client/easyjob/EasyjobV10Reports.js +35 -0
- package/lib/behind-api-client/example.js +47 -0
- package/lib/behind-api-client/global/GlobalApp.js +9 -0
- package/lib/behind-api-client/global/GlobalV10.js +11 -0
- package/lib/behind-api-client/global/GlobalV10Sockets.js +16 -0
- package/lib/behind-api-client/global/GlobalV10Storage.js +29 -0
- package/lib/behind-api-client/gpt/GptApp.js +15 -0
- package/lib/behind-api-client/gpt/GptV10.js +15 -0
- package/lib/behind-api-client/gpt/GptV10Prompt.js +17 -0
- package/lib/behind-api-client/gpt/GptV10Request.js +16 -0
- package/lib/behind-api-client/gpt/GptV10Storedprompts.js +14 -0
- package/lib/behind-api-client/gpt/GptV10Whisper.js +23 -0
- package/lib/behind-api-client/gpt/GptV20.js +9 -0
- package/lib/behind-api-client/gpt/GptV20Prompt.js +15 -0
- package/lib/behind-api-client/gpt/GptV30.js +13 -0
- package/lib/behind-api-client/gpt/GptV30Chat.js +19 -0
- package/lib/behind-api-client/gpt/GptV30Prompt.js +41 -0
- package/lib/behind-api-client/gpt/GptV30Prompts.js +32 -0
- package/lib/behind-api-client/gpt/GptV40.js +11 -0
- package/lib/behind-api-client/gpt/GptV40Prompt.js +24 -0
- package/lib/behind-api-client/gpt/GptV40Prompts.js +30 -0
- package/lib/behind-api-client/mailer/MailerApp.js +11 -0
- package/lib/behind-api-client/mailer/MailerV10.js +15 -0
- package/lib/behind-api-client/mailer/MailerV10Bulk.js +21 -0
- package/lib/behind-api-client/mailer/MailerV10Message.js +83 -0
- package/lib/behind-api-client/mailer/MailerV10Settings.js +44 -0
- package/lib/behind-api-client/mailer/MailerV10Template.js +23 -0
- package/lib/behind-api-client/mailer/MailerV20.js +9 -0
- package/lib/behind-api-client/mailer/MailerV20Message.js +21 -0
- package/lib/behind-api-client/mastogram/MastogramApp.js +9 -0
- package/lib/behind-api-client/mastogram/MastogramV10.js +13 -0
- package/lib/behind-api-client/mastogram/MastogramV10Bluesky.js +42 -0
- package/lib/behind-api-client/mastogram/MastogramV10Mastodon.js +45 -0
- package/lib/behind-api-client/mastogram/MastogramV10Telegram.js +39 -0
- package/lib/behind-api-client/monitor/MonitorApp.js +9 -0
- package/lib/behind-api-client/monitor/MonitorV10.js +13 -0
- package/lib/behind-api-client/monitor/MonitorV10Finances.js +39 -0
- package/lib/behind-api-client/monitor/MonitorV10Record.js +15 -0
- package/lib/behind-api-client/monitor/MonitorV10Records.js +22 -0
- package/lib/behind-api-client/oauth/OauthApp.js +9 -0
- package/lib/behind-api-client/oauth/OauthV10.js +9 -0
- package/lib/behind-api-client/oauth/OauthV10Authorisation.js +15 -0
- package/lib/behind-api-client/package.json +9 -0
- package/lib/behind-api-client/payments/PaymentsApp.js +13 -0
- package/lib/behind-api-client/payments/PaymentsV10.js +15 -0
- package/lib/behind-api-client/payments/PaymentsV10Gift.js +32 -0
- package/lib/behind-api-client/payments/PaymentsV10Payture.js +30 -0
- package/lib/behind-api-client/payments/PaymentsV10Product.js +15 -0
- package/lib/behind-api-client/payments/PaymentsV10Telegram.js +44 -0
- package/lib/behind-api-client/payments/PaymentsV20.js +9 -0
- package/lib/behind-api-client/payments/PaymentsV20Payture.js +32 -0
- package/lib/behind-api-client/payments/PaymentsV21.js +15 -0
- package/lib/behind-api-client/payments/PaymentsV21Cards.js +14 -0
- package/lib/behind-api-client/payments/PaymentsV21Payture.js +29 -0
- package/lib/behind-api-client/payments/PaymentsV21Stripe.js +28 -0
- package/lib/behind-api-client/payments/PaymentsV21Subscriptions.js +21 -0
- package/lib/behind-api-client/questionnaire/QuestionnaireApp.js +9 -0
- package/lib/behind-api-client/questionnaire/QuestionnaireV10.js +9 -0
- package/lib/behind-api-client/questionnaire/QuestionnaireV10Form.js +22 -0
- package/lib/behind-api-client/raet/RaetApp.js +11 -0
- package/lib/behind-api-client/raet/RaetV10.js +21 -0
- package/lib/behind-api-client/raet/RaetV10Cv.js +87 -0
- package/lib/behind-api-client/raet/RaetV10Individual.js +43 -0
- package/lib/behind-api-client/raet/RaetV10Individuals.js +38 -0
- package/lib/behind-api-client/raet/RaetV10Jd.js +47 -0
- package/lib/behind-api-client/raet/RaetV10Project.js +61 -0
- package/lib/behind-api-client/raet/RaetV10Projects.js +14 -0
- package/lib/behind-api-client/raet/RaetV10Report.js +39 -0
- package/lib/behind-api-client/raet/RaetV20.js +11 -0
- package/lib/behind-api-client/raet/RaetV20Cv.js +31 -0
- package/lib/behind-api-client/raet/RaetV20Individuals.js +25 -0
- package/lib/behind-api-client/rag/RagApp.js +9 -0
- package/lib/behind-api-client/rag/RagV10.js +9 -0
- package/lib/behind-api-client/rag/RagV10Storage.js +27 -0
- package/lib/behind-api-client/ruKitchen/RuKitchenApp.js +9 -0
- package/lib/behind-api-client/ruKitchen/RuKitchenV10.js +11 -0
- package/lib/behind-api-client/ruKitchen/RuKitchenV10Importer.js +29 -0
- package/lib/behind-api-client/ruKitchen/RuKitchenV10SeoArticle.js +14 -0
- package/lib/behind-api-client/sales/SalesApp.js +11 -0
- package/lib/behind-api-client/sales/SalesV10.js +23 -0
- package/lib/behind-api-client/sales/SalesV10Catalogue.js +58 -0
- package/lib/behind-api-client/sales/SalesV10Categories.js +15 -0
- package/lib/behind-api-client/sales/SalesV10Companies.js +55 -0
- package/lib/behind-api-client/sales/SalesV10Company.js +120 -0
- package/lib/behind-api-client/sales/SalesV10Group.js +70 -0
- package/lib/behind-api-client/sales/SalesV10Groups.js +21 -0
- package/lib/behind-api-client/sales/SalesV10Logs.js +14 -0
- package/lib/behind-api-client/sales/SalesV10Notes.js +38 -0
- package/lib/behind-api-client/sales/SalesV20.js +11 -0
- package/lib/behind-api-client/sales/SalesV20Companies.js +26 -0
- package/lib/behind-api-client/sales/SalesV20Notes.js +17 -0
- package/lib/behind-api-client/sip/SipApp.js +9 -0
- package/lib/behind-api-client/sip/SipV10.js +15 -0
- package/lib/behind-api-client/sip/SipV10Call.js +83 -0
- package/lib/behind-api-client/sip/SipV10Phone.js +44 -0
- package/lib/behind-api-client/sip/SipV10Transcript.js +21 -0
- package/lib/behind-api-client/sip/SipV10Transcripts.js +21 -0
- package/lib/behind-api-client/storage/StorageApp.js +9 -0
- package/lib/behind-api-client/storage/StorageV10.js +11 -0
- package/lib/behind-api-client/storage/StorageV10File.js +35 -0
- package/lib/behind-api-client/storage/StorageV10Upload.js +21 -0
- package/lib/behind-api-client/tests/TestsApp.js +9 -0
- package/lib/behind-api-client/tests/TestsV10.js +15 -0
- package/lib/behind-api-client/tests/TestsV10Cases.js +29 -0
- package/lib/behind-api-client/tests/TestsV10CasesExtended.js +14 -0
- package/lib/behind-api-client/tests/TestsV10Core.js +14 -0
- package/lib/behind-api-client/tests/TestsV10Mail.js +14 -0
- package/lib/behind-api-client/tools/ToolsApp.js +9 -0
- package/lib/behind-api-client/tools/ToolsV10.js +9 -0
- package/lib/behind-api-client/tools/ToolsV10Pdf.js +30 -0
- package/package.json +25 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
class EasyjobV10CandidateProfiles {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async create() {
|
|
7
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
8
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'create', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async delete(i_profile_id) {
|
|
14
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
15
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'delete', {
|
|
16
|
+
"profile_id": i_profile_id
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async update(i_profile_id, i_profile_data) {
|
|
21
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
22
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'update', {
|
|
23
|
+
"profile_id": i_profile_id,
|
|
24
|
+
"profile_data": i_profile_data
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async get() {
|
|
29
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
30
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'get', {
|
|
31
|
+
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async updateEducation(i_profile_id, i_education) {
|
|
36
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
37
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'updateEducation', {
|
|
38
|
+
"profile_id": i_profile_id,
|
|
39
|
+
"education": i_education
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async updateJobExperience(i_profile_id, i_job_experience) {
|
|
44
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
45
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'updateJobExperience', {
|
|
46
|
+
"profile_id": i_profile_id,
|
|
47
|
+
"job_experience": i_job_experience
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async updateHardSkills(i_profile_id, i_hard_skills) {
|
|
52
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
53
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'updateHardSkills', {
|
|
54
|
+
"profile_id": i_profile_id,
|
|
55
|
+
"hard_skills": i_hard_skills
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async updateSoftSkills(i_profile_id, i_soft_skills) {
|
|
60
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
61
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'updateSoftSkills', {
|
|
62
|
+
"profile_id": i_profile_id,
|
|
63
|
+
"soft_skills": i_soft_skills
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
async updateCertificates(i_profile_id, i_certificates) {
|
|
68
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
69
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'updateCertificates', {
|
|
70
|
+
"profile_id": i_profile_id,
|
|
71
|
+
"certificates": i_certificates
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async updateLanguages(i_profile_id, i_languages) {
|
|
76
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
77
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'updateLanguages', {
|
|
78
|
+
"profile_id": i_profile_id,
|
|
79
|
+
"languages": i_languages
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
async parseFromPdf(i_url) {
|
|
84
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
85
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'parseFromPdf', {
|
|
86
|
+
"url": i_url
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
async updateStatus(i_profile_id, i_status) {
|
|
91
|
+
// Calls the easyjob/V10/candidateProfiles endpoint
|
|
92
|
+
return this.apiClient.apiRequest('easyjob', '10', 'candidateProfiles', 'updateStatus', {
|
|
93
|
+
"profile_id": i_profile_id,
|
|
94
|
+
"status": i_status
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
module.exports = EasyjobV10CandidateProfiles;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
class EasyjobV10Companies {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async create(i_name) {
|
|
7
|
+
// Calls the easyjob/V10/companies endpoint
|
|
8
|
+
return this.apiClient.apiRequest('easyjob', '10', 'companies', 'create', {
|
|
9
|
+
"name": i_name
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async delete(i_company_id) {
|
|
14
|
+
// Calls the easyjob/V10/companies endpoint
|
|
15
|
+
return this.apiClient.apiRequest('easyjob', '10', 'companies', 'delete', {
|
|
16
|
+
"company_id": i_company_id
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async update(i_company_id, i_name) {
|
|
21
|
+
// Calls the easyjob/V10/companies endpoint
|
|
22
|
+
return this.apiClient.apiRequest('easyjob', '10', 'companies', 'update', {
|
|
23
|
+
"company_id": i_company_id,
|
|
24
|
+
"name": i_name
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async getList() {
|
|
29
|
+
// Calls the easyjob/V10/companies endpoint
|
|
30
|
+
return this.apiClient.apiRequest('easyjob', '10', 'companies', 'getList', {
|
|
31
|
+
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
module.exports = EasyjobV10Companies;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class EasyjobV10Cv {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async parse(i_content, i_type) {
|
|
7
|
+
// Calls the easyjob/V10/cv endpoint
|
|
8
|
+
return this.apiClient.apiRequest('easyjob', '10', 'cv', 'parse', {
|
|
9
|
+
"content": i_content,
|
|
10
|
+
"type": i_type
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = EasyjobV10Cv;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
class EasyjobV10Departments {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async create(i_company_id, i_name) {
|
|
7
|
+
// Calls the easyjob/V10/departments endpoint
|
|
8
|
+
return this.apiClient.apiRequest('easyjob', '10', 'departments', 'create', {
|
|
9
|
+
"company_id": i_company_id,
|
|
10
|
+
"name": i_name
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async delete(i_department_id) {
|
|
15
|
+
// Calls the easyjob/V10/departments endpoint
|
|
16
|
+
return this.apiClient.apiRequest('easyjob', '10', 'departments', 'delete', {
|
|
17
|
+
"department_id": i_department_id
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async update(i_department_id, i_name) {
|
|
22
|
+
// Calls the easyjob/V10/departments endpoint
|
|
23
|
+
return this.apiClient.apiRequest('easyjob', '10', 'departments', 'update', {
|
|
24
|
+
"department_id": i_department_id,
|
|
25
|
+
"name": i_name
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async getList(i_company_id) {
|
|
30
|
+
// Calls the easyjob/V10/departments endpoint
|
|
31
|
+
return this.apiClient.apiRequest('easyjob', '10', 'departments', 'getList', {
|
|
32
|
+
"company_id": i_company_id
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
module.exports = EasyjobV10Departments;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class EasyjobV10JobDescriptionArtifacts {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async create(i_job_description_id, i_content) {
|
|
7
|
+
// Calls the easyjob/V10/jobDescriptionArtifacts endpoint
|
|
8
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionArtifacts', 'create', {
|
|
9
|
+
"job_description_id": i_job_description_id,
|
|
10
|
+
"content": i_content
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async delete(i_artifact_id) {
|
|
15
|
+
// Calls the easyjob/V10/jobDescriptionArtifacts endpoint
|
|
16
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionArtifacts', 'delete', {
|
|
17
|
+
"artifact_id": i_artifact_id
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async getList(i_job_description_id) {
|
|
22
|
+
// Calls the easyjob/V10/jobDescriptionArtifacts endpoint
|
|
23
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionArtifacts', 'getList', {
|
|
24
|
+
"job_description_id": i_job_description_id
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports = EasyjobV10JobDescriptionArtifacts;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
class EasyjobV10JobDescriptionCandidateQuestions {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async create(i_job_description_id, i_question, i_type, i_weight, i_category) {
|
|
7
|
+
// Calls the easyjob/V10/jobDescriptionCandidateQuestions endpoint
|
|
8
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionCandidateQuestions', 'create', {
|
|
9
|
+
"job_description_id": i_job_description_id,
|
|
10
|
+
"question": i_question,
|
|
11
|
+
"type": i_type,
|
|
12
|
+
"weight": i_weight,
|
|
13
|
+
"category": i_category
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
async delete(i_question_id) {
|
|
18
|
+
// Calls the easyjob/V10/jobDescriptionCandidateQuestions endpoint
|
|
19
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionCandidateQuestions', 'delete', {
|
|
20
|
+
"question_id": i_question_id
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async deleteAll(i_job_description_id) {
|
|
25
|
+
// Calls the easyjob/V10/jobDescriptionCandidateQuestions endpoint
|
|
26
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionCandidateQuestions', 'deleteAll', {
|
|
27
|
+
"job_description_id": i_job_description_id
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async getList(i_job_description_id) {
|
|
32
|
+
// Calls the easyjob/V10/jobDescriptionCandidateQuestions endpoint
|
|
33
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionCandidateQuestions', 'getList', {
|
|
34
|
+
"job_description_id": i_job_description_id
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async getByCategory(i_job_description_id, i_category) {
|
|
39
|
+
// Calls the easyjob/V10/jobDescriptionCandidateQuestions endpoint
|
|
40
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionCandidateQuestions', 'getByCategory', {
|
|
41
|
+
"job_description_id": i_job_description_id,
|
|
42
|
+
"category": i_category
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async edit(i_question_id, i_text, i_weight) {
|
|
47
|
+
// Calls the easyjob/V10/jobDescriptionCandidateQuestions endpoint
|
|
48
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionCandidateQuestions', 'edit', {
|
|
49
|
+
"question_id": i_question_id,
|
|
50
|
+
"text": i_text,
|
|
51
|
+
"weight": i_weight
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async extract(i_job_description_id) {
|
|
56
|
+
// Calls the easyjob/V10/jobDescriptionCandidateQuestions endpoint
|
|
57
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptionCandidateQuestions', 'extract', {
|
|
58
|
+
"job_description_id": i_job_description_id
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
module.exports = EasyjobV10JobDescriptionCandidateQuestions;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
class EasyjobV10JobDescriptions {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async create(i_department_id, i_title, i_description) {
|
|
7
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
8
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'create', {
|
|
9
|
+
"department_id": i_department_id,
|
|
10
|
+
"title": i_title,
|
|
11
|
+
"description": i_description
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
async delete(i_job_description_id) {
|
|
16
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
17
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'delete', {
|
|
18
|
+
"job_description_id": i_job_description_id
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async close(i_job_description_id) {
|
|
23
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
24
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'close', {
|
|
25
|
+
"job_description_id": i_job_description_id
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async update(i_job_description_id, i_title, i_description, i_published_at, i_deadline_at) {
|
|
30
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
31
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'update', {
|
|
32
|
+
"job_description_id": i_job_description_id,
|
|
33
|
+
"title": i_title,
|
|
34
|
+
"description": i_description,
|
|
35
|
+
"published_at": i_published_at,
|
|
36
|
+
"deadline_at": i_deadline_at
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
async updateData(i_job_description_id, i_data) {
|
|
41
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
42
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'updateData', {
|
|
43
|
+
"job_description_id": i_job_description_id,
|
|
44
|
+
"data": i_data
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async getList(i_department_id) {
|
|
49
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
50
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'getList', {
|
|
51
|
+
"department_id": i_department_id
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async get(i_job_description_id) {
|
|
56
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
57
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'get', {
|
|
58
|
+
"job_description_id": i_job_description_id
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async publish(i_job_description_id) {
|
|
63
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
64
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'publish', {
|
|
65
|
+
"job_description_id": i_job_description_id
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async getUnauthorised(i_job_description_id) {
|
|
70
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
71
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'getUnauthorised', {
|
|
72
|
+
"job_description_id": i_job_description_id
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async textUpdate(i_job_description_id, i_text) {
|
|
77
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
78
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'textUpdate', {
|
|
79
|
+
"job_description_id": i_job_description_id,
|
|
80
|
+
"text": i_text
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
async updateStatus(i_job_description_id, i_status) {
|
|
85
|
+
// Calls the easyjob/V10/jobDescriptions endpoint
|
|
86
|
+
return this.apiClient.apiRequest('easyjob', '10', 'jobDescriptions', 'updateStatus', {
|
|
87
|
+
"job_description_id": i_job_description_id,
|
|
88
|
+
"status": i_status
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
module.exports = EasyjobV10JobDescriptions;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
class EasyjobV10Reports {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async create(i_application_id) {
|
|
7
|
+
// Calls the easyjob/V10/reports endpoint
|
|
8
|
+
return this.apiClient.apiRequest('easyjob', '10', 'reports', 'create', {
|
|
9
|
+
"application_id": i_application_id
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async get(i_application_id) {
|
|
14
|
+
// Calls the easyjob/V10/reports endpoint
|
|
15
|
+
return this.apiClient.apiRequest('easyjob', '10', 'reports', 'get', {
|
|
16
|
+
"application_id": i_application_id
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async build(i_application_id) {
|
|
21
|
+
// Calls the easyjob/V10/reports endpoint
|
|
22
|
+
return this.apiClient.apiRequest('easyjob', '10', 'reports', 'build', {
|
|
23
|
+
"application_id": i_application_id
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async score(i_application_id) {
|
|
28
|
+
// Calls the easyjob/V10/reports endpoint
|
|
29
|
+
return this.apiClient.apiRequest('easyjob', '10', 'reports', 'score', {
|
|
30
|
+
"application_id": i_application_id
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
module.exports = EasyjobV10Reports;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const BehindApiClient = require('./BehindApiClient ');
|
|
2
|
+
|
|
3
|
+
// Initialize the API client
|
|
4
|
+
const apiClient = new BehindApiClient ("https://api.behind.ai:6002", "your-access-token");
|
|
5
|
+
|
|
6
|
+
// Set up event handlers
|
|
7
|
+
apiClient.onExpired(() => {
|
|
8
|
+
console.log('Token expired');
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
apiClient.onReject((data) => {
|
|
12
|
+
console.log('Request rejected:', data);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
apiClient.onTooManyRequests((data) => {
|
|
16
|
+
console.log('Too many requests:', data);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// Example usage:
|
|
20
|
+
async function example() {
|
|
21
|
+
try {
|
|
22
|
+
// Example: Get individuals
|
|
23
|
+
// const result = await apiClient.raet.V10.individuals.get("search query", 1, 10);
|
|
24
|
+
|
|
25
|
+
// Example: Create CV
|
|
26
|
+
// const cvResult = await apiClient.raet.V10.cv.create("individual_id", "cv_data");
|
|
27
|
+
|
|
28
|
+
// Example: Send email
|
|
29
|
+
// const emailResult = await apiClient.mailer.V10.message.send(
|
|
30
|
+
// "email@example.com",
|
|
31
|
+
// "Recipient Name",
|
|
32
|
+
// "account_name",
|
|
33
|
+
// "template_name",
|
|
34
|
+
// "data"
|
|
35
|
+
// );
|
|
36
|
+
|
|
37
|
+
// Example with hyphenated app name (web-harvester becomes webHarvester)
|
|
38
|
+
// const crawlerResult = await apiClient.webHarvester.V10.crawler.addSite("https://example.com");
|
|
39
|
+
|
|
40
|
+
console.log('API client initialized successfully');
|
|
41
|
+
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error('Error:', error);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
example();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const GlobalV10Storage = require('./GlobalV10Storage');
|
|
2
|
+
const GlobalV10Sockets = require('./GlobalV10Sockets');
|
|
3
|
+
|
|
4
|
+
class GlobalV10 {
|
|
5
|
+
constructor(apiClient) {
|
|
6
|
+
this.storage = new GlobalV10Storage(apiClient);
|
|
7
|
+
this.sockets = new GlobalV10Sockets(apiClient);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = GlobalV10;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
class GlobalV10Sockets {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async send(i_user_id, i_type, i_message) {
|
|
7
|
+
// Calls the global/V10/sockets endpoint
|
|
8
|
+
return this.apiClient.apiRequest('global', '10', 'sockets', 'send', {
|
|
9
|
+
"user_id": i_user_id,
|
|
10
|
+
"type": i_type,
|
|
11
|
+
"message": i_message
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = GlobalV10Sockets;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class GlobalV10Storage {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_key) {
|
|
7
|
+
// Calls the global/V10/storage endpoint
|
|
8
|
+
return this.apiClient.apiRequest('global', '10', 'storage', 'get', {
|
|
9
|
+
"key": i_key
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async getBulk(i_keys) {
|
|
14
|
+
// Calls the global/V10/storage endpoint
|
|
15
|
+
return this.apiClient.apiRequest('global', '10', 'storage', 'getBulk', {
|
|
16
|
+
"keys": i_keys
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async set(i_key, i_value) {
|
|
21
|
+
// Calls the global/V10/storage endpoint
|
|
22
|
+
return this.apiClient.apiRequest('global', '10', 'storage', 'set', {
|
|
23
|
+
"key": i_key,
|
|
24
|
+
"value": i_value
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports = GlobalV10Storage;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const GptV10 = require('./GptV10');
|
|
2
|
+
const GptV20 = require('./GptV20');
|
|
3
|
+
const GptV30 = require('./GptV30');
|
|
4
|
+
const GptV40 = require('./GptV40');
|
|
5
|
+
|
|
6
|
+
class GptApp {
|
|
7
|
+
constructor(apiClient) {
|
|
8
|
+
this.V10 = new GptV10(apiClient);
|
|
9
|
+
this.V20 = new GptV20(apiClient);
|
|
10
|
+
this.V30 = new GptV30(apiClient);
|
|
11
|
+
this.V40 = new GptV40(apiClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = GptApp;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const GptV10Prompt = require('./GptV10Prompt');
|
|
2
|
+
const GptV10Storedprompts = require('./GptV10Storedprompts');
|
|
3
|
+
const GptV10Request = require('./GptV10Request');
|
|
4
|
+
const GptV10Whisper = require('./GptV10Whisper');
|
|
5
|
+
|
|
6
|
+
class GptV10 {
|
|
7
|
+
constructor(apiClient) {
|
|
8
|
+
this.prompt = new GptV10Prompt(apiClient);
|
|
9
|
+
this.storedprompts = new GptV10Storedprompts(apiClient);
|
|
10
|
+
this.request = new GptV10Request(apiClient);
|
|
11
|
+
this.whisper = new GptV10Whisper(apiClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = GptV10;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
class GptV10Prompt {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_custom_prompt, i_tokens_max, i_temperature, i_params) {
|
|
7
|
+
// Calls the gpt/V10/prompt endpoint
|
|
8
|
+
return this.apiClient.apiRequest('gpt', '10', 'prompt', 'get', {
|
|
9
|
+
"custom_prompt": i_custom_prompt,
|
|
10
|
+
"tokens_max": i_tokens_max,
|
|
11
|
+
"temperature": i_temperature,
|
|
12
|
+
"params": i_params
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = GptV10Prompt;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
class GptV10Request {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async execute(i_path, i_data, i_params) {
|
|
7
|
+
// Calls the gpt/V10/request endpoint
|
|
8
|
+
return this.apiClient.apiRequest('gpt', '10', 'request', 'execute', {
|
|
9
|
+
"path": i_path,
|
|
10
|
+
"data": i_data,
|
|
11
|
+
"params": i_params
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = GptV10Request;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class GptV10Storedprompts {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get() {
|
|
7
|
+
// Calls the gpt/V10/storedprompts endpoint
|
|
8
|
+
return this.apiClient.apiRequest('gpt', '10', 'storedprompts', 'get', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = GptV10Storedprompts;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
class GptV10Whisper {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async transcribe(i_file_name) {
|
|
7
|
+
// Calls the gpt/V10/whisper endpoint
|
|
8
|
+
return this.apiClient.apiRequest('gpt', '10', 'whisper', 'transcribe', {
|
|
9
|
+
"file_name": i_file_name
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async transcribeLive(i_file_name, i_callback, i_extended) {
|
|
14
|
+
// Calls the gpt/V10/whisper endpoint
|
|
15
|
+
return this.apiClient.apiRequest('gpt', '10', 'whisper', 'transcribeLive', {
|
|
16
|
+
"file_name": i_file_name,
|
|
17
|
+
"callback": i_callback,
|
|
18
|
+
"extended": i_extended
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
module.exports = GptV10Whisper;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class GptV20Prompt {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_prompt_name, i_params) {
|
|
7
|
+
// Calls the gpt/V20/prompt endpoint
|
|
8
|
+
return this.apiClient.apiRequest('gpt', '20', 'prompt', 'get', {
|
|
9
|
+
"prompt_name": i_prompt_name,
|
|
10
|
+
"params": i_params
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = GptV20Prompt;
|