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,70 @@
|
|
|
1
|
+
class SalesV10Group {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_group_id, i_page, i_page_size) {
|
|
7
|
+
// Calls the sales/V10/group endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sales', '10', 'group', 'get', {
|
|
9
|
+
"group_id": i_group_id,
|
|
10
|
+
"page": i_page,
|
|
11
|
+
"page_size": i_page_size
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
async list(i_group_id) {
|
|
16
|
+
// Calls the sales/V10/group endpoint
|
|
17
|
+
return this.apiClient.apiRequest('sales', '10', 'group', 'list', {
|
|
18
|
+
"group_id": i_group_id
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async delete(i_group_id) {
|
|
23
|
+
// Calls the sales/V10/group endpoint
|
|
24
|
+
return this.apiClient.apiRequest('sales', '10', 'group', 'delete', {
|
|
25
|
+
"group_id": i_group_id
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async rename(i_group_id, i_name) {
|
|
30
|
+
// Calls the sales/V10/group endpoint
|
|
31
|
+
return this.apiClient.apiRequest('sales', '10', 'group', 'rename', {
|
|
32
|
+
"group_id": i_group_id,
|
|
33
|
+
"name": i_name
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async companyAdd(i_group_id, i_company_id) {
|
|
38
|
+
// Calls the sales/V10/group endpoint
|
|
39
|
+
return this.apiClient.apiRequest('sales', '10', 'group', 'companyAdd', {
|
|
40
|
+
"group_id": i_group_id,
|
|
41
|
+
"company_id": i_company_id
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async companiesAdd(i_group_id, i_companies) {
|
|
46
|
+
// Calls the sales/V10/group endpoint
|
|
47
|
+
return this.apiClient.apiRequest('sales', '10', 'group', 'companiesAdd', {
|
|
48
|
+
"group_id": i_group_id,
|
|
49
|
+
"companies": i_companies
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async companyDelete(i_group_id, i_company_id) {
|
|
54
|
+
// Calls the sales/V10/group endpoint
|
|
55
|
+
return this.apiClient.apiRequest('sales', '10', 'group', 'companyDelete', {
|
|
56
|
+
"group_id": i_group_id,
|
|
57
|
+
"company_id": i_company_id
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async companiesDelete(i_group_id, i_companies) {
|
|
62
|
+
// Calls the sales/V10/group endpoint
|
|
63
|
+
return this.apiClient.apiRequest('sales', '10', 'group', 'companiesDelete', {
|
|
64
|
+
"group_id": i_group_id,
|
|
65
|
+
"companies": i_companies
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
module.exports = SalesV10Group;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class SalesV10Groups {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get() {
|
|
7
|
+
// Calls the sales/V10/groups endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sales', '10', 'groups', 'get', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async create(i_name) {
|
|
14
|
+
// Calls the sales/V10/groups endpoint
|
|
15
|
+
return this.apiClient.apiRequest('sales', '10', 'groups', 'create', {
|
|
16
|
+
"name": i_name
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = SalesV10Groups;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class SalesV10Logs {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get() {
|
|
7
|
+
// Calls the sales/V10/logs endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sales', '10', 'logs', 'get', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = SalesV10Logs;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
class SalesV10Notes {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_page, i_page_size) {
|
|
7
|
+
// Calls the sales/V10/notes endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sales', '10', 'notes', 'get', {
|
|
9
|
+
"page": i_page,
|
|
10
|
+
"page_size": i_page_size
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async add(i_company_id, i_text) {
|
|
15
|
+
// Calls the sales/V10/notes endpoint
|
|
16
|
+
return this.apiClient.apiRequest('sales', '10', 'notes', 'add', {
|
|
17
|
+
"company_id": i_company_id,
|
|
18
|
+
"text": i_text
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async edit(i_note_id, i_text) {
|
|
23
|
+
// Calls the sales/V10/notes endpoint
|
|
24
|
+
return this.apiClient.apiRequest('sales', '10', 'notes', 'edit', {
|
|
25
|
+
"note_id": i_note_id,
|
|
26
|
+
"text": i_text
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async delete(i_note_id) {
|
|
31
|
+
// Calls the sales/V10/notes endpoint
|
|
32
|
+
return this.apiClient.apiRequest('sales', '10', 'notes', 'delete', {
|
|
33
|
+
"note_id": i_note_id
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = SalesV10Notes;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const SalesV20Companies = require('./SalesV20Companies');
|
|
2
|
+
const SalesV20Notes = require('./SalesV20Notes');
|
|
3
|
+
|
|
4
|
+
class SalesV20 {
|
|
5
|
+
constructor(apiClient) {
|
|
6
|
+
this.companies = new SalesV20Companies(apiClient);
|
|
7
|
+
this.notes = new SalesV20Notes(apiClient);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = SalesV20;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
class SalesV20Companies {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async process(i_queue_id, i_group_id, i_account_name, i_template_name, i_prompt_id) {
|
|
7
|
+
// Calls the sales/V20/companies endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sales', '20', 'companies', 'process', {
|
|
9
|
+
"queue_id": i_queue_id,
|
|
10
|
+
"group_id": i_group_id,
|
|
11
|
+
"account_name": i_account_name,
|
|
12
|
+
"template_name": i_template_name,
|
|
13
|
+
"prompt_id": i_prompt_id
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
async getUnauthorized(i_query, i_section) {
|
|
18
|
+
// Calls the sales/V20/companies endpoint
|
|
19
|
+
return this.apiClient.apiRequest('sales', '20', 'companies', 'getUnauthorized', {
|
|
20
|
+
"query": i_query,
|
|
21
|
+
"section": i_section
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = SalesV20Companies;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
class SalesV20Notes {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async add(i_company_id, i_text, i_type, i_data) {
|
|
7
|
+
// Calls the sales/V20/notes endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sales', '20', 'notes', 'add', {
|
|
9
|
+
"company_id": i_company_id,
|
|
10
|
+
"text": i_text,
|
|
11
|
+
"type": i_type,
|
|
12
|
+
"data": i_data
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = SalesV20Notes;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const SipV10Phone = require('./SipV10Phone');
|
|
2
|
+
const SipV10Call = require('./SipV10Call');
|
|
3
|
+
const SipV10Transcript = require('./SipV10Transcript');
|
|
4
|
+
const SipV10Transcripts = require('./SipV10Transcripts');
|
|
5
|
+
|
|
6
|
+
class SipV10 {
|
|
7
|
+
constructor(apiClient) {
|
|
8
|
+
this.phone = new SipV10Phone(apiClient);
|
|
9
|
+
this.call = new SipV10Call(apiClient);
|
|
10
|
+
this.transcript = new SipV10Transcript(apiClient);
|
|
11
|
+
this.transcripts = new SipV10Transcripts(apiClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = SipV10;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
class SipV10Call {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async createIntent(i_phone_number, i_meta) {
|
|
7
|
+
// Calls the sip/V10/call endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'createIntent', {
|
|
9
|
+
"phone_number": i_phone_number,
|
|
10
|
+
"meta": i_meta
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async getIntent(i_phone_1, i_phone_2) {
|
|
15
|
+
// Calls the sip/V10/call endpoint
|
|
16
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'getIntent', {
|
|
17
|
+
"phone_1": i_phone_1,
|
|
18
|
+
"phone_2": i_phone_2
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async transcribe(i_call_id) {
|
|
23
|
+
// Calls the sip/V10/call endpoint
|
|
24
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'transcribe', {
|
|
25
|
+
"call_id": i_call_id
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async transcribeAsync(i_call_id) {
|
|
30
|
+
// Calls the sip/V10/call endpoint
|
|
31
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'transcribeAsync', {
|
|
32
|
+
"call_id": i_call_id
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async transcribeLiveDemo(i_call_id) {
|
|
37
|
+
// Calls the sip/V10/call endpoint
|
|
38
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'transcribeLiveDemo', {
|
|
39
|
+
"call_id": i_call_id
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async transcribeLive(i_call_id) {
|
|
44
|
+
// Calls the sip/V10/call endpoint
|
|
45
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'transcribeLive', {
|
|
46
|
+
"call_id": i_call_id
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async extractCVInsights(i_call_id, i_cv_id) {
|
|
51
|
+
// Calls the sip/V10/call endpoint
|
|
52
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'extractCVInsights', {
|
|
53
|
+
"call_id": i_call_id,
|
|
54
|
+
"cv_id": i_cv_id
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async extractJDInsights(i_call_id, i_project_id) {
|
|
59
|
+
// Calls the sip/V10/call endpoint
|
|
60
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'extractJDInsights', {
|
|
61
|
+
"call_id": i_call_id,
|
|
62
|
+
"project_id": i_project_id
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async extractReportInsights(i_call_id, i_cv_id) {
|
|
67
|
+
// Calls the sip/V10/call endpoint
|
|
68
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'extractReportInsights', {
|
|
69
|
+
"call_id": i_call_id,
|
|
70
|
+
"cv_id": i_cv_id
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async transcribeLiveCallback(i_extended, i_data) {
|
|
75
|
+
// Calls the sip/V10/call endpoint
|
|
76
|
+
return this.apiClient.apiRequest('sip', '10', 'call', 'transcribeLiveCallback', {
|
|
77
|
+
"extended": i_extended,
|
|
78
|
+
"data": i_data
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
module.exports = SipV10Call;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
class SipV10Phone {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async create(i_phone_number) {
|
|
7
|
+
// Calls the sip/V10/phone endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sip', '10', 'phone', 'create', {
|
|
9
|
+
"phone_number": i_phone_number
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async getUser(i_phone_number) {
|
|
14
|
+
// Calls the sip/V10/phone endpoint
|
|
15
|
+
return this.apiClient.apiRequest('sip', '10', 'phone', 'getUser', {
|
|
16
|
+
"phone_number": i_phone_number
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async getContactName(i_phone_number, i_caller_id) {
|
|
21
|
+
// Calls the sip/V10/phone endpoint
|
|
22
|
+
return this.apiClient.apiRequest('sip', '10', 'phone', 'getContactName', {
|
|
23
|
+
"phone_number": i_phone_number,
|
|
24
|
+
"caller_id": i_caller_id
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async getContactNameText(i_phone_number, i_caller_id) {
|
|
29
|
+
// Calls the sip/V10/phone endpoint
|
|
30
|
+
return this.apiClient.apiRequest('sip', '10', 'phone', 'getContactNameText', {
|
|
31
|
+
"phone_number": i_phone_number,
|
|
32
|
+
"caller_id": i_caller_id
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async getWebRTCCredentials() {
|
|
37
|
+
// Calls the sip/V10/phone endpoint
|
|
38
|
+
return this.apiClient.apiRequest('sip', '10', 'phone', 'getWebRTCCredentials', {
|
|
39
|
+
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports = SipV10Phone;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class SipV10Transcript {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_transcript_id) {
|
|
7
|
+
// Calls the sip/V10/transcript endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sip', '10', 'transcript', 'get', {
|
|
9
|
+
"transcript_id": i_transcript_id
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async deleteUpdates(i_transcript_id) {
|
|
14
|
+
// Calls the sip/V10/transcript endpoint
|
|
15
|
+
return this.apiClient.apiRequest('sip', '10', 'transcript', 'deleteUpdates', {
|
|
16
|
+
"transcript_id": i_transcript_id
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = SipV10Transcript;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class SipV10Transcripts {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get() {
|
|
7
|
+
// Calls the sip/V10/transcripts endpoint
|
|
8
|
+
return this.apiClient.apiRequest('sip', '10', 'transcripts', 'get', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async getByIndividualId(i_individual_id) {
|
|
14
|
+
// Calls the sip/V10/transcripts endpoint
|
|
15
|
+
return this.apiClient.apiRequest('sip', '10', 'transcripts', 'getByIndividualId', {
|
|
16
|
+
"individual_id": i_individual_id
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = SipV10Transcripts;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const StorageV10File = require('./StorageV10File');
|
|
2
|
+
const StorageV10Upload = require('./StorageV10Upload');
|
|
3
|
+
|
|
4
|
+
class StorageV10 {
|
|
5
|
+
constructor(apiClient) {
|
|
6
|
+
this.file = new StorageV10File(apiClient);
|
|
7
|
+
this.upload = new StorageV10Upload(apiClient);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = StorageV10;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
class StorageV10File {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async store(i_file_token) {
|
|
7
|
+
// Calls the storage/V10/file endpoint
|
|
8
|
+
return this.apiClient.apiRequest('storage', '10', 'file', 'store', {
|
|
9
|
+
"file_token": i_file_token
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async get(i_file_key) {
|
|
14
|
+
// Calls the storage/V10/file endpoint
|
|
15
|
+
return this.apiClient.apiRequest('storage', '10', 'file', 'get', {
|
|
16
|
+
"file_key": i_file_key
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async obtain(i_file_key) {
|
|
21
|
+
// Calls the storage/V10/file endpoint
|
|
22
|
+
return this.apiClient.apiRequest('storage', '10', 'file', 'obtain', {
|
|
23
|
+
"file_key": i_file_key
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async download(i_object_id) {
|
|
28
|
+
// Calls the storage/V10/file endpoint
|
|
29
|
+
return this.apiClient.apiRequest('storage', '10', 'file', 'download', {
|
|
30
|
+
"object_id": i_object_id
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
module.exports = StorageV10File;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class StorageV10Upload {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async chunk() {
|
|
7
|
+
// Calls the storage/V10/upload endpoint
|
|
8
|
+
return this.apiClient.apiRequest('storage', '10', 'upload', 'chunk', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async remote(i_url) {
|
|
14
|
+
// Calls the storage/V10/upload endpoint
|
|
15
|
+
return this.apiClient.apiRequest('storage', '10', 'upload', 'remote', {
|
|
16
|
+
"url": i_url
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = StorageV10Upload;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const TestsV10Core = require('./TestsV10Core');
|
|
2
|
+
const TestsV10Cases = require('./TestsV10Cases');
|
|
3
|
+
const TestsV10CasesExtended = require('./TestsV10CasesExtended');
|
|
4
|
+
const TestsV10Mail = require('./TestsV10Mail');
|
|
5
|
+
|
|
6
|
+
class TestsV10 {
|
|
7
|
+
constructor(apiClient) {
|
|
8
|
+
this.core = new TestsV10Core(apiClient);
|
|
9
|
+
this.cases = new TestsV10Cases(apiClient);
|
|
10
|
+
this.casesExtended = new TestsV10CasesExtended(apiClient);
|
|
11
|
+
this.mail = new TestsV10Mail(apiClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = TestsV10;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class TestsV10Cases {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async testParameters(i_param_1, i_param_2, i_param_3, i_param_4, i_param_5, i_param_6, i_param_7, i_param_8, i_param_9) {
|
|
7
|
+
// Calls the tests/V10/cases endpoint
|
|
8
|
+
return this.apiClient.apiRequest('tests', '10', 'cases', 'testParameters', {
|
|
9
|
+
"param_1": i_param_1,
|
|
10
|
+
"param_2": i_param_2,
|
|
11
|
+
"param_3": i_param_3,
|
|
12
|
+
"param_4": i_param_4,
|
|
13
|
+
"param_5": i_param_5,
|
|
14
|
+
"param_6": i_param_6,
|
|
15
|
+
"param_7": i_param_7,
|
|
16
|
+
"param_8": i_param_8,
|
|
17
|
+
"param_9": i_param_9
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async testAuthorisation() {
|
|
22
|
+
// Calls the tests/V10/cases endpoint
|
|
23
|
+
return this.apiClient.apiRequest('tests', '10', 'cases', 'testAuthorisation', {
|
|
24
|
+
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports = TestsV10Cases;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class TestsV10CasesExtended {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async testAuthorisation() {
|
|
7
|
+
// Calls the tests/V10/casesExtended endpoint
|
|
8
|
+
return this.apiClient.apiRequest('tests', '10', 'casesExtended', 'testAuthorisation', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = TestsV10CasesExtended;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class TestsV10Core {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async reAssignToken(i_access_token) {
|
|
7
|
+
// Calls the tests/V10/core endpoint
|
|
8
|
+
return this.apiClient.apiRequest('tests', '10', 'core', 'reAssignToken', {
|
|
9
|
+
"access_token": i_access_token
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = TestsV10Core;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class TestsV10Mail {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async getList() {
|
|
7
|
+
// Calls the tests/V10/mail endpoint
|
|
8
|
+
return this.apiClient.apiRequest('tests', '10', 'mail', 'getList', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = TestsV10Mail;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
class ToolsV10Pdf {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async toText(i_file_key) {
|
|
7
|
+
// Calls the tools/V10/pdf endpoint
|
|
8
|
+
return this.apiClient.apiRequest('tools', '10', 'pdf', 'toText', {
|
|
9
|
+
"file_key": i_file_key
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async toTextFromUrl(i_url) {
|
|
14
|
+
// Calls the tools/V10/pdf endpoint
|
|
15
|
+
return this.apiClient.apiRequest('tools', '10', 'pdf', 'toTextFromUrl', {
|
|
16
|
+
"url": i_url
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async renderFromJSON(i_template, i_data, i_style) {
|
|
21
|
+
// Calls the tools/V10/pdf endpoint
|
|
22
|
+
return this.apiClient.apiRequest('tools', '10', 'pdf', 'renderFromJSON', {
|
|
23
|
+
"template": i_template,
|
|
24
|
+
"data": i_data,
|
|
25
|
+
"style": i_style
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = ToolsV10Pdf;
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "node-behind-api-client",
|
|
3
|
+
"version": "2.0.48",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/behind-api-auth-client/behind-api-client.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node index.js",
|
|
8
|
+
"pack": "npm version patchs"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git@git.behind.ai:oleg/node-zecamp-api.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"axios": "^1.2.0",
|
|
19
|
+
"dotenv": "^17.2.2",
|
|
20
|
+
"uuid": "^8.3.2"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"@oleg:registry": "http://gitlab.behind.ai/api/v4/projects/83/packages/npm/"
|
|
24
|
+
}
|
|
25
|
+
}
|