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,22 @@
|
|
|
1
|
+
class MonitorV10Records {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_alias, i_interval) {
|
|
7
|
+
// Calls the monitor/V10/records endpoint
|
|
8
|
+
return this.apiClient.apiRequest('monitor', '10', 'records', 'get', {
|
|
9
|
+
"alias": i_alias,
|
|
10
|
+
"interval": i_interval
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async financial(i_month) {
|
|
15
|
+
// Calls the monitor/V10/records endpoint
|
|
16
|
+
return this.apiClient.apiRequest('monitor', '10', 'records', 'financial', {
|
|
17
|
+
"month": i_month
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module.exports = MonitorV10Records;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class OauthV10Authorisation {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async has(i_user_id, i_client_id) {
|
|
7
|
+
// Calls the oauth/V10/authorisation endpoint
|
|
8
|
+
return this.apiClient.apiRequest('oauth', '10', 'authorisation', 'has', {
|
|
9
|
+
"user_id": i_user_id,
|
|
10
|
+
"client_id": i_client_id
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = OauthV10Authorisation;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const PaymentsV10 = require('./PaymentsV10');
|
|
2
|
+
const PaymentsV20 = require('./PaymentsV20');
|
|
3
|
+
const PaymentsV21 = require('./PaymentsV21');
|
|
4
|
+
|
|
5
|
+
class PaymentsApp {
|
|
6
|
+
constructor(apiClient) {
|
|
7
|
+
this.V10 = new PaymentsV10(apiClient);
|
|
8
|
+
this.V20 = new PaymentsV20(apiClient);
|
|
9
|
+
this.V21 = new PaymentsV21(apiClient);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
module.exports = PaymentsApp;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const PaymentsV10Payture = require('./PaymentsV10Payture');
|
|
2
|
+
const PaymentsV10Telegram = require('./PaymentsV10Telegram');
|
|
3
|
+
const PaymentsV10Product = require('./PaymentsV10Product');
|
|
4
|
+
const PaymentsV10Gift = require('./PaymentsV10Gift');
|
|
5
|
+
|
|
6
|
+
class PaymentsV10 {
|
|
7
|
+
constructor(apiClient) {
|
|
8
|
+
this.payture = new PaymentsV10Payture(apiClient);
|
|
9
|
+
this.telegram = new PaymentsV10Telegram(apiClient);
|
|
10
|
+
this.product = new PaymentsV10Product(apiClient);
|
|
11
|
+
this.gift = new PaymentsV10Gift(apiClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = PaymentsV10;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
class PaymentsV10Gift {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_code) {
|
|
7
|
+
// Calls the payments/V10/gift endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '10', 'gift', 'get', {
|
|
9
|
+
"code": i_code
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async send(i_code, i_delivery_time, i_delivery_email, i_delivery_name, i_extended) {
|
|
14
|
+
// Calls the payments/V10/gift endpoint
|
|
15
|
+
return this.apiClient.apiRequest('payments', '10', 'gift', 'send', {
|
|
16
|
+
"code": i_code,
|
|
17
|
+
"delivery_time": i_delivery_time,
|
|
18
|
+
"delivery_email": i_delivery_email,
|
|
19
|
+
"delivery_name": i_delivery_name,
|
|
20
|
+
"extended": i_extended
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async apply(i_code) {
|
|
25
|
+
// Calls the payments/V10/gift endpoint
|
|
26
|
+
return this.apiClient.apiRequest('payments', '10', 'gift', 'apply', {
|
|
27
|
+
"code": i_code
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
module.exports = PaymentsV10Gift;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
class PaymentsV10Payture {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async billCreate(i_subscription_id) {
|
|
7
|
+
// Calls the payments/V10/payture endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '10', 'payture', 'billCreate', {
|
|
9
|
+
"subscription_id": i_subscription_id
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async billCreateUnauthorised(i_subscription_id, i_user_id, i_redirect_url) {
|
|
14
|
+
// Calls the payments/V10/payture endpoint
|
|
15
|
+
return this.apiClient.apiRequest('payments', '10', 'payture', 'billCreateUnauthorised', {
|
|
16
|
+
"subscription_id": i_subscription_id,
|
|
17
|
+
"user_id": i_user_id,
|
|
18
|
+
"redirect_url": i_redirect_url
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async billStatus(i_bill_id) {
|
|
23
|
+
// Calls the payments/V10/payture endpoint
|
|
24
|
+
return this.apiClient.apiRequest('payments', '10', 'payture', 'billStatus', {
|
|
25
|
+
"bill_id": i_bill_id
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = PaymentsV10Payture;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class PaymentsV10Product {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async has(i_user_id, i_product_id) {
|
|
7
|
+
// Calls the payments/V10/product endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '10', 'product', 'has', {
|
|
9
|
+
"user_id": i_user_id,
|
|
10
|
+
"product_id": i_product_id
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = PaymentsV10Product;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
class PaymentsV10Telegram {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async billCreate(i_subscription_id) {
|
|
7
|
+
// Calls the payments/V10/telegram endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '10', 'telegram', 'billCreate', {
|
|
9
|
+
"subscription_id": i_subscription_id
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async billCreateUnauthorised(i_subscription_id, i_user_id, i_redirect_url) {
|
|
14
|
+
// Calls the payments/V10/telegram endpoint
|
|
15
|
+
return this.apiClient.apiRequest('payments', '10', 'telegram', 'billCreateUnauthorised', {
|
|
16
|
+
"subscription_id": i_subscription_id,
|
|
17
|
+
"user_id": i_user_id,
|
|
18
|
+
"redirect_url": i_redirect_url
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async billStatus(i_bill_id) {
|
|
23
|
+
// Calls the payments/V10/telegram endpoint
|
|
24
|
+
return this.apiClient.apiRequest('payments', '10', 'telegram', 'billStatus', {
|
|
25
|
+
"bill_id": i_bill_id
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async start(i_ctx) {
|
|
30
|
+
// Calls the payments/V10/telegram endpoint
|
|
31
|
+
return this.apiClient.apiRequest('payments', '10', 'telegram', 'start', {
|
|
32
|
+
"ctx": i_ctx
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async successfulPayment(i_ctx) {
|
|
37
|
+
// Calls the payments/V10/telegram endpoint
|
|
38
|
+
return this.apiClient.apiRequest('payments', '10', 'telegram', 'successfulPayment', {
|
|
39
|
+
"ctx": i_ctx
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports = PaymentsV10Telegram;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
class PaymentsV20Payture {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async billCreate(i_subscription_id, i_extended) {
|
|
7
|
+
// Calls the payments/V20/payture endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '20', 'payture', 'billCreate', {
|
|
9
|
+
"subscription_id": i_subscription_id,
|
|
10
|
+
"extended": i_extended
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async billCreateUnauthorised(i_subscription_id, i_user_id, i_redirect_url, i_extended) {
|
|
15
|
+
// Calls the payments/V20/payture endpoint
|
|
16
|
+
return this.apiClient.apiRequest('payments', '20', 'payture', 'billCreateUnauthorised', {
|
|
17
|
+
"subscription_id": i_subscription_id,
|
|
18
|
+
"user_id": i_user_id,
|
|
19
|
+
"redirect_url": i_redirect_url,
|
|
20
|
+
"extended": i_extended
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async billStatus(i_bill_id) {
|
|
25
|
+
// Calls the payments/V20/payture endpoint
|
|
26
|
+
return this.apiClient.apiRequest('payments', '20', 'payture', 'billStatus', {
|
|
27
|
+
"bill_id": i_bill_id
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
module.exports = PaymentsV20Payture;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const PaymentsV21Payture = require('./PaymentsV21Payture');
|
|
2
|
+
const PaymentsV21Cards = require('./PaymentsV21Cards');
|
|
3
|
+
const PaymentsV21Stripe = require('./PaymentsV21Stripe');
|
|
4
|
+
const PaymentsV21Subscriptions = require('./PaymentsV21Subscriptions');
|
|
5
|
+
|
|
6
|
+
class PaymentsV21 {
|
|
7
|
+
constructor(apiClient) {
|
|
8
|
+
this.payture = new PaymentsV21Payture(apiClient);
|
|
9
|
+
this.cards = new PaymentsV21Cards(apiClient);
|
|
10
|
+
this.stripe = new PaymentsV21Stripe(apiClient);
|
|
11
|
+
this.subscriptions = new PaymentsV21Subscriptions(apiClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = PaymentsV21;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class PaymentsV21Cards {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async getList() {
|
|
7
|
+
// Calls the payments/V21/cards endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '21', 'cards', 'getList', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = PaymentsV21Cards;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class PaymentsV21Payture {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async initUnauthorised(i_user_id, i_subscription_id) {
|
|
7
|
+
// Calls the payments/V21/payture endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '21', 'payture', 'initUnauthorised', {
|
|
9
|
+
"user_id": i_user_id,
|
|
10
|
+
"subscription_id": i_subscription_id
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async init(i_subscription_id) {
|
|
15
|
+
// Calls the payments/V21/payture endpoint
|
|
16
|
+
return this.apiClient.apiRequest('payments', '21', 'payture', 'init', {
|
|
17
|
+
"subscription_id": i_subscription_id
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async finalise(i_order_id) {
|
|
22
|
+
// Calls the payments/V21/payture endpoint
|
|
23
|
+
return this.apiClient.apiRequest('payments', '21', 'payture', 'finalise', {
|
|
24
|
+
"order_id": i_order_id
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports = PaymentsV21Payture;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
class PaymentsV21Stripe {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async initUnauthorised(i_user_id) {
|
|
7
|
+
// Calls the payments/V21/stripe endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '21', 'stripe', 'initUnauthorised', {
|
|
9
|
+
"user_id": i_user_id
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async init() {
|
|
14
|
+
// Calls the payments/V21/stripe endpoint
|
|
15
|
+
return this.apiClient.apiRequest('payments', '21', 'stripe', 'init', {
|
|
16
|
+
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async finalise(i_payment_method) {
|
|
21
|
+
// Calls the payments/V21/stripe endpoint
|
|
22
|
+
return this.apiClient.apiRequest('payments', '21', 'stripe', 'finalise', {
|
|
23
|
+
"payment_method": i_payment_method
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
module.exports = PaymentsV21Stripe;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class PaymentsV21Subscriptions {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async getList() {
|
|
7
|
+
// Calls the payments/V21/subscriptions endpoint
|
|
8
|
+
return this.apiClient.apiRequest('payments', '21', 'subscriptions', 'getList', {
|
|
9
|
+
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async subscribe(i_subscription_id) {
|
|
14
|
+
// Calls the payments/V21/subscriptions endpoint
|
|
15
|
+
return this.apiClient.apiRequest('payments', '21', 'subscriptions', 'subscribe', {
|
|
16
|
+
"subscription_id": i_subscription_id
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = PaymentsV21Subscriptions;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
class QuestionnaireV10Form {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_form_id) {
|
|
7
|
+
// Calls the questionnaire/V10/form endpoint
|
|
8
|
+
return this.apiClient.apiRequest('questionnaire', '10', 'form', 'get', {
|
|
9
|
+
"form_id": i_form_id
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async send(i_form_id, i_data) {
|
|
14
|
+
// Calls the questionnaire/V10/form endpoint
|
|
15
|
+
return this.apiClient.apiRequest('questionnaire', '10', 'form', 'send', {
|
|
16
|
+
"form_id": i_form_id,
|
|
17
|
+
"data": i_data
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module.exports = QuestionnaireV10Form;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const RaetV10Project = require('./RaetV10Project');
|
|
2
|
+
const RaetV10Projects = require('./RaetV10Projects');
|
|
3
|
+
const RaetV10Jd = require('./RaetV10Jd');
|
|
4
|
+
const RaetV10Cv = require('./RaetV10Cv');
|
|
5
|
+
const RaetV10Individuals = require('./RaetV10Individuals');
|
|
6
|
+
const RaetV10Individual = require('./RaetV10Individual');
|
|
7
|
+
const RaetV10Report = require('./RaetV10Report');
|
|
8
|
+
|
|
9
|
+
class RaetV10 {
|
|
10
|
+
constructor(apiClient) {
|
|
11
|
+
this.project = new RaetV10Project(apiClient);
|
|
12
|
+
this.projects = new RaetV10Projects(apiClient);
|
|
13
|
+
this.jd = new RaetV10Jd(apiClient);
|
|
14
|
+
this.cv = new RaetV10Cv(apiClient);
|
|
15
|
+
this.individuals = new RaetV10Individuals(apiClient);
|
|
16
|
+
this.individual = new RaetV10Individual(apiClient);
|
|
17
|
+
this.report = new RaetV10Report(apiClient);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = RaetV10;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
class RaetV10Cv {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_individual_id) {
|
|
7
|
+
// Calls the raet/V10/cv endpoint
|
|
8
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'get', {
|
|
9
|
+
"individual_id": i_individual_id
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async create(i_individual_id, i_cv) {
|
|
14
|
+
// Calls the raet/V10/cv endpoint
|
|
15
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'create', {
|
|
16
|
+
"individual_id": i_individual_id,
|
|
17
|
+
"cv": i_cv
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async update(i_cv_id, i_cv) {
|
|
22
|
+
// Calls the raet/V10/cv endpoint
|
|
23
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'update', {
|
|
24
|
+
"cv_id": i_cv_id,
|
|
25
|
+
"cv": i_cv
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async updateOutline(i_cv_id) {
|
|
30
|
+
// Calls the raet/V10/cv endpoint
|
|
31
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'updateOutline', {
|
|
32
|
+
"cv_id": i_cv_id
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async importFromPdf(i_file_key) {
|
|
37
|
+
// Calls the raet/V10/cv endpoint
|
|
38
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'importFromPdf', {
|
|
39
|
+
"file_key": i_file_key
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async importFromDoc(i_file_key) {
|
|
44
|
+
// Calls the raet/V10/cv endpoint
|
|
45
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'importFromDoc', {
|
|
46
|
+
"file_key": i_file_key
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async reImportFromPdf(i_cv_id) {
|
|
51
|
+
// Calls the raet/V10/cv endpoint
|
|
52
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'reImportFromPdf', {
|
|
53
|
+
"cv_id": i_cv_id
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async parse(i_cv_id) {
|
|
58
|
+
// Calls the raet/V10/cv endpoint
|
|
59
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'parse', {
|
|
60
|
+
"cv_id": i_cv_id
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async generate(i_cv_id) {
|
|
65
|
+
// Calls the raet/V10/cv endpoint
|
|
66
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'generate', {
|
|
67
|
+
"cv_id": i_cv_id
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async obtain(i_cv_id) {
|
|
72
|
+
// Calls the raet/V10/cv endpoint
|
|
73
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'obtain', {
|
|
74
|
+
"cv_id": i_cv_id
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
async mergeCV(i_individual_id, i_transcript_id) {
|
|
79
|
+
// Calls the raet/V10/cv endpoint
|
|
80
|
+
return this.apiClient.apiRequest('raet', '10', 'cv', 'mergeCV', {
|
|
81
|
+
"individual_id": i_individual_id,
|
|
82
|
+
"transcript_id": i_transcript_id
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
module.exports = RaetV10Cv;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
class RaetV10Individual {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_individual_id) {
|
|
7
|
+
// Calls the raet/V10/individual endpoint
|
|
8
|
+
return this.apiClient.apiRequest('raet', '10', 'individual', 'get', {
|
|
9
|
+
"individual_id": i_individual_id
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async getByPhoneNumber(i_phone_number) {
|
|
14
|
+
// Calls the raet/V10/individual endpoint
|
|
15
|
+
return this.apiClient.apiRequest('raet', '10', 'individual', 'getByPhoneNumber', {
|
|
16
|
+
"phone_number": i_phone_number
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async update(i_individual_id, i_individual) {
|
|
21
|
+
// Calls the raet/V10/individual endpoint
|
|
22
|
+
return this.apiClient.apiRequest('raet', '10', 'individual', 'update', {
|
|
23
|
+
"individual_id": i_individual_id,
|
|
24
|
+
"individual": i_individual
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async contactsGet(i_individual_id) {
|
|
29
|
+
// Calls the raet/V10/individual endpoint
|
|
30
|
+
return this.apiClient.apiRequest('raet', '10', 'individual', 'contactsGet', {
|
|
31
|
+
"individual_id": i_individual_id
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async delete(i_individual_id) {
|
|
36
|
+
// Calls the raet/V10/individual endpoint
|
|
37
|
+
return this.apiClient.apiRequest('raet', '10', 'individual', 'delete', {
|
|
38
|
+
"individual_id": i_individual_id
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
module.exports = RaetV10Individual;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
class RaetV10Individuals {
|
|
2
|
+
constructor(apiClient) {
|
|
3
|
+
this.apiClient = apiClient;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async get(i_query, i_page, i_page_size) {
|
|
7
|
+
// Calls the raet/V10/individuals endpoint
|
|
8
|
+
return this.apiClient.apiRequest('raet', '10', 'individuals', 'get', {
|
|
9
|
+
"query": i_query,
|
|
10
|
+
"page": i_page,
|
|
11
|
+
"page_size": i_page_size
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
async getByPhoneNumber(i_phone_number) {
|
|
16
|
+
// Calls the raet/V10/individuals endpoint
|
|
17
|
+
return this.apiClient.apiRequest('raet', '10', 'individuals', 'getByPhoneNumber', {
|
|
18
|
+
"phone_number": i_phone_number
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async getByPhoneNumberSystem(i_phone_number, i_user_id) {
|
|
23
|
+
// Calls the raet/V10/individuals endpoint
|
|
24
|
+
return this.apiClient.apiRequest('raet', '10', 'individuals', 'getByPhoneNumberSystem', {
|
|
25
|
+
"phone_number": i_phone_number,
|
|
26
|
+
"user_id": i_user_id
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async create(i_individual) {
|
|
31
|
+
// Calls the raet/V10/individuals endpoint
|
|
32
|
+
return this.apiClient.apiRequest('raet', '10', 'individuals', 'create', {
|
|
33
|
+
"individual": i_individual
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = RaetV10Individuals;
|