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.
Files changed (157) hide show
  1. package/.gitlab-ci.yml +20 -0
  2. package/README.md +65 -0
  3. package/docs/behind-api-client/easyjob/JobDescriptions/README.md +654 -0
  4. package/docs/behind-api-client/easyjob/README.md +647 -0
  5. package/docs/behind-api-client/easyjob/applicants/README.md +494 -0
  6. package/docs/behind-api-client/easyjob/applications/README.md +754 -0
  7. package/docs/behind-api-client/easyjob/candidateProfiles/README.md +940 -0
  8. package/docs/behind-api-client/easyjob/jd-candidate-questions/README.md +372 -0
  9. package/docs/behind-api-client/payments/payture/README.21.md +901 -0
  10. package/docs/behind-api-client/payments/payture/README.cards.md +1497 -0
  11. package/docs/behind-api-client/payments/payture/README.md +1497 -0
  12. package/docs/behind-api-client/payments/payture/README.rukitchen.md +396 -0
  13. package/docs/behind-api-client/payments/payture/README.subscriptions.md +1266 -0
  14. package/docs/behind-api-client/payments/stripe/README.flow.md +254 -0
  15. package/docs/behind-api-client/rag/storage/README.md +519 -0
  16. package/example.js +35 -0
  17. package/index.cjs +14 -0
  18. package/index.js +15 -0
  19. package/lib/behind-api-auth-client/BehindApiAuthClient.js +91 -0
  20. package/lib/behind-api-auth-client/authorisation/AuthorisationApp.js +9 -0
  21. package/lib/behind-api-auth-client/authorisation/AuthorisationV10.js +9 -0
  22. package/lib/behind-api-auth-client/authorisation/AuthorisationV10Code.js +30 -0
  23. package/lib/behind-api-auth-client/example.js +47 -0
  24. package/lib/behind-api-auth-client/package.json +9 -0
  25. package/lib/behind-api-client/BehindApiClient.js +137 -0
  26. package/lib/behind-api-client/chat/ChatApp.js +11 -0
  27. package/lib/behind-api-client/chat/ChatV10.js +13 -0
  28. package/lib/behind-api-client/chat/ChatV10Chat.js +87 -0
  29. package/lib/behind-api-client/chat/ChatV10Chats.js +14 -0
  30. package/lib/behind-api-client/chat/ChatV10Message.js +57 -0
  31. package/lib/behind-api-client/chat/ChatV20.js +11 -0
  32. package/lib/behind-api-client/chat/ChatV20Chat.js +14 -0
  33. package/lib/behind-api-client/chat/ChatV20Message.js +27 -0
  34. package/lib/behind-api-client/easyjob/EasyjobApp.js +9 -0
  35. package/lib/behind-api-client/easyjob/EasyjobV10.js +31 -0
  36. package/lib/behind-api-client/easyjob/EasyjobV10Answers.js +16 -0
  37. package/lib/behind-api-client/easyjob/EasyjobV10Applicants.js +29 -0
  38. package/lib/behind-api-client/easyjob/EasyjobV10Applications.js +39 -0
  39. package/lib/behind-api-client/easyjob/EasyjobV10CandidateProfileArtifacts.js +31 -0
  40. package/lib/behind-api-client/easyjob/EasyjobV10CandidateProfiles.js +99 -0
  41. package/lib/behind-api-client/easyjob/EasyjobV10Companies.js +36 -0
  42. package/lib/behind-api-client/easyjob/EasyjobV10Cv.js +15 -0
  43. package/lib/behind-api-client/easyjob/EasyjobV10Departments.js +37 -0
  44. package/lib/behind-api-client/easyjob/EasyjobV10JobDescriptionArtifacts.js +29 -0
  45. package/lib/behind-api-client/easyjob/EasyjobV10JobDescriptionCandidateQuestions.js +63 -0
  46. package/lib/behind-api-client/easyjob/EasyjobV10JobDescriptions.js +93 -0
  47. package/lib/behind-api-client/easyjob/EasyjobV10Reports.js +35 -0
  48. package/lib/behind-api-client/example.js +47 -0
  49. package/lib/behind-api-client/global/GlobalApp.js +9 -0
  50. package/lib/behind-api-client/global/GlobalV10.js +11 -0
  51. package/lib/behind-api-client/global/GlobalV10Sockets.js +16 -0
  52. package/lib/behind-api-client/global/GlobalV10Storage.js +29 -0
  53. package/lib/behind-api-client/gpt/GptApp.js +15 -0
  54. package/lib/behind-api-client/gpt/GptV10.js +15 -0
  55. package/lib/behind-api-client/gpt/GptV10Prompt.js +17 -0
  56. package/lib/behind-api-client/gpt/GptV10Request.js +16 -0
  57. package/lib/behind-api-client/gpt/GptV10Storedprompts.js +14 -0
  58. package/lib/behind-api-client/gpt/GptV10Whisper.js +23 -0
  59. package/lib/behind-api-client/gpt/GptV20.js +9 -0
  60. package/lib/behind-api-client/gpt/GptV20Prompt.js +15 -0
  61. package/lib/behind-api-client/gpt/GptV30.js +13 -0
  62. package/lib/behind-api-client/gpt/GptV30Chat.js +19 -0
  63. package/lib/behind-api-client/gpt/GptV30Prompt.js +41 -0
  64. package/lib/behind-api-client/gpt/GptV30Prompts.js +32 -0
  65. package/lib/behind-api-client/gpt/GptV40.js +11 -0
  66. package/lib/behind-api-client/gpt/GptV40Prompt.js +24 -0
  67. package/lib/behind-api-client/gpt/GptV40Prompts.js +30 -0
  68. package/lib/behind-api-client/mailer/MailerApp.js +11 -0
  69. package/lib/behind-api-client/mailer/MailerV10.js +15 -0
  70. package/lib/behind-api-client/mailer/MailerV10Bulk.js +21 -0
  71. package/lib/behind-api-client/mailer/MailerV10Message.js +83 -0
  72. package/lib/behind-api-client/mailer/MailerV10Settings.js +44 -0
  73. package/lib/behind-api-client/mailer/MailerV10Template.js +23 -0
  74. package/lib/behind-api-client/mailer/MailerV20.js +9 -0
  75. package/lib/behind-api-client/mailer/MailerV20Message.js +21 -0
  76. package/lib/behind-api-client/mastogram/MastogramApp.js +9 -0
  77. package/lib/behind-api-client/mastogram/MastogramV10.js +13 -0
  78. package/lib/behind-api-client/mastogram/MastogramV10Bluesky.js +42 -0
  79. package/lib/behind-api-client/mastogram/MastogramV10Mastodon.js +45 -0
  80. package/lib/behind-api-client/mastogram/MastogramV10Telegram.js +39 -0
  81. package/lib/behind-api-client/monitor/MonitorApp.js +9 -0
  82. package/lib/behind-api-client/monitor/MonitorV10.js +13 -0
  83. package/lib/behind-api-client/monitor/MonitorV10Finances.js +39 -0
  84. package/lib/behind-api-client/monitor/MonitorV10Record.js +15 -0
  85. package/lib/behind-api-client/monitor/MonitorV10Records.js +22 -0
  86. package/lib/behind-api-client/oauth/OauthApp.js +9 -0
  87. package/lib/behind-api-client/oauth/OauthV10.js +9 -0
  88. package/lib/behind-api-client/oauth/OauthV10Authorisation.js +15 -0
  89. package/lib/behind-api-client/package.json +9 -0
  90. package/lib/behind-api-client/payments/PaymentsApp.js +13 -0
  91. package/lib/behind-api-client/payments/PaymentsV10.js +15 -0
  92. package/lib/behind-api-client/payments/PaymentsV10Gift.js +32 -0
  93. package/lib/behind-api-client/payments/PaymentsV10Payture.js +30 -0
  94. package/lib/behind-api-client/payments/PaymentsV10Product.js +15 -0
  95. package/lib/behind-api-client/payments/PaymentsV10Telegram.js +44 -0
  96. package/lib/behind-api-client/payments/PaymentsV20.js +9 -0
  97. package/lib/behind-api-client/payments/PaymentsV20Payture.js +32 -0
  98. package/lib/behind-api-client/payments/PaymentsV21.js +15 -0
  99. package/lib/behind-api-client/payments/PaymentsV21Cards.js +14 -0
  100. package/lib/behind-api-client/payments/PaymentsV21Payture.js +29 -0
  101. package/lib/behind-api-client/payments/PaymentsV21Stripe.js +28 -0
  102. package/lib/behind-api-client/payments/PaymentsV21Subscriptions.js +21 -0
  103. package/lib/behind-api-client/questionnaire/QuestionnaireApp.js +9 -0
  104. package/lib/behind-api-client/questionnaire/QuestionnaireV10.js +9 -0
  105. package/lib/behind-api-client/questionnaire/QuestionnaireV10Form.js +22 -0
  106. package/lib/behind-api-client/raet/RaetApp.js +11 -0
  107. package/lib/behind-api-client/raet/RaetV10.js +21 -0
  108. package/lib/behind-api-client/raet/RaetV10Cv.js +87 -0
  109. package/lib/behind-api-client/raet/RaetV10Individual.js +43 -0
  110. package/lib/behind-api-client/raet/RaetV10Individuals.js +38 -0
  111. package/lib/behind-api-client/raet/RaetV10Jd.js +47 -0
  112. package/lib/behind-api-client/raet/RaetV10Project.js +61 -0
  113. package/lib/behind-api-client/raet/RaetV10Projects.js +14 -0
  114. package/lib/behind-api-client/raet/RaetV10Report.js +39 -0
  115. package/lib/behind-api-client/raet/RaetV20.js +11 -0
  116. package/lib/behind-api-client/raet/RaetV20Cv.js +31 -0
  117. package/lib/behind-api-client/raet/RaetV20Individuals.js +25 -0
  118. package/lib/behind-api-client/rag/RagApp.js +9 -0
  119. package/lib/behind-api-client/rag/RagV10.js +9 -0
  120. package/lib/behind-api-client/rag/RagV10Storage.js +27 -0
  121. package/lib/behind-api-client/ruKitchen/RuKitchenApp.js +9 -0
  122. package/lib/behind-api-client/ruKitchen/RuKitchenV10.js +11 -0
  123. package/lib/behind-api-client/ruKitchen/RuKitchenV10Importer.js +29 -0
  124. package/lib/behind-api-client/ruKitchen/RuKitchenV10SeoArticle.js +14 -0
  125. package/lib/behind-api-client/sales/SalesApp.js +11 -0
  126. package/lib/behind-api-client/sales/SalesV10.js +23 -0
  127. package/lib/behind-api-client/sales/SalesV10Catalogue.js +58 -0
  128. package/lib/behind-api-client/sales/SalesV10Categories.js +15 -0
  129. package/lib/behind-api-client/sales/SalesV10Companies.js +55 -0
  130. package/lib/behind-api-client/sales/SalesV10Company.js +120 -0
  131. package/lib/behind-api-client/sales/SalesV10Group.js +70 -0
  132. package/lib/behind-api-client/sales/SalesV10Groups.js +21 -0
  133. package/lib/behind-api-client/sales/SalesV10Logs.js +14 -0
  134. package/lib/behind-api-client/sales/SalesV10Notes.js +38 -0
  135. package/lib/behind-api-client/sales/SalesV20.js +11 -0
  136. package/lib/behind-api-client/sales/SalesV20Companies.js +26 -0
  137. package/lib/behind-api-client/sales/SalesV20Notes.js +17 -0
  138. package/lib/behind-api-client/sip/SipApp.js +9 -0
  139. package/lib/behind-api-client/sip/SipV10.js +15 -0
  140. package/lib/behind-api-client/sip/SipV10Call.js +83 -0
  141. package/lib/behind-api-client/sip/SipV10Phone.js +44 -0
  142. package/lib/behind-api-client/sip/SipV10Transcript.js +21 -0
  143. package/lib/behind-api-client/sip/SipV10Transcripts.js +21 -0
  144. package/lib/behind-api-client/storage/StorageApp.js +9 -0
  145. package/lib/behind-api-client/storage/StorageV10.js +11 -0
  146. package/lib/behind-api-client/storage/StorageV10File.js +35 -0
  147. package/lib/behind-api-client/storage/StorageV10Upload.js +21 -0
  148. package/lib/behind-api-client/tests/TestsApp.js +9 -0
  149. package/lib/behind-api-client/tests/TestsV10.js +15 -0
  150. package/lib/behind-api-client/tests/TestsV10Cases.js +29 -0
  151. package/lib/behind-api-client/tests/TestsV10CasesExtended.js +14 -0
  152. package/lib/behind-api-client/tests/TestsV10Core.js +14 -0
  153. package/lib/behind-api-client/tests/TestsV10Mail.js +14 -0
  154. package/lib/behind-api-client/tools/ToolsApp.js +9 -0
  155. package/lib/behind-api-client/tools/ToolsV10.js +9 -0
  156. package/lib/behind-api-client/tools/ToolsV10Pdf.js +30 -0
  157. package/package.json +25 -0
@@ -0,0 +1,47 @@
1
+ class RaetV10Jd {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async update(i_project_id, i_jd) {
7
+ // Calls the raet/V10/jd endpoint
8
+ return this.apiClient.apiRequest('raet', '10', 'jd', 'update', {
9
+ "project_id": i_project_id,
10
+ "jd": i_jd
11
+ });
12
+ }
13
+
14
+ async updateSys(i_project_id, i_jd) {
15
+ // Calls the raet/V10/jd endpoint
16
+ return this.apiClient.apiRequest('raet', '10', 'jd', 'updateSys', {
17
+ "project_id": i_project_id,
18
+ "jd": i_jd
19
+ });
20
+ }
21
+
22
+ async parse(i_project_id, i_data) {
23
+ // Calls the raet/V10/jd endpoint
24
+ return this.apiClient.apiRequest('raet', '10', 'jd', 'parse', {
25
+ "project_id": i_project_id,
26
+ "data": i_data
27
+ });
28
+ }
29
+
30
+ async parseSys(i_project_id, i_data) {
31
+ // Calls the raet/V10/jd endpoint
32
+ return this.apiClient.apiRequest('raet', '10', 'jd', 'parseSys', {
33
+ "project_id": i_project_id,
34
+ "data": i_data
35
+ });
36
+ }
37
+
38
+ async parseFromThePhoneCall(i_project_id, i_call_id) {
39
+ // Calls the raet/V10/jd endpoint
40
+ return this.apiClient.apiRequest('raet', '10', 'jd', 'parseFromThePhoneCall', {
41
+ "project_id": i_project_id,
42
+ "call_id": i_call_id
43
+ });
44
+ }
45
+ }
46
+
47
+ module.exports = RaetV10Jd;
@@ -0,0 +1,61 @@
1
+ class RaetV10Project {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async get(i_project_id) {
7
+ // Calls the raet/V10/project endpoint
8
+ return this.apiClient.apiRequest('raet', '10', 'project', 'get', {
9
+ "project_id": i_project_id
10
+ });
11
+ }
12
+
13
+ async create() {
14
+ // Calls the raet/V10/project endpoint
15
+ return this.apiClient.apiRequest('raet', '10', 'project', 'create', {
16
+
17
+ });
18
+ }
19
+
20
+ async edit(i_project_id, i_name, i_description) {
21
+ // Calls the raet/V10/project endpoint
22
+ return this.apiClient.apiRequest('raet', '10', 'project', 'edit', {
23
+ "project_id": i_project_id,
24
+ "name": i_name,
25
+ "description": i_description
26
+ });
27
+ }
28
+
29
+ async editSys(i_project_id, i_name, i_description) {
30
+ // Calls the raet/V10/project endpoint
31
+ return this.apiClient.apiRequest('raet', '10', 'project', 'editSys', {
32
+ "project_id": i_project_id,
33
+ "name": i_name,
34
+ "description": i_description
35
+ });
36
+ }
37
+
38
+ async delete(i_project_id) {
39
+ // Calls the raet/V10/project endpoint
40
+ return this.apiClient.apiRequest('raet', '10', 'project', 'delete', {
41
+ "project_id": i_project_id
42
+ });
43
+ }
44
+
45
+ async updateStatusSys(i_project_id, i_status) {
46
+ // Calls the raet/V10/project endpoint
47
+ return this.apiClient.apiRequest('raet', '10', 'project', 'updateStatusSys', {
48
+ "project_id": i_project_id,
49
+ "status": i_status
50
+ });
51
+ }
52
+
53
+ async getCallLog(i_project_id) {
54
+ // Calls the raet/V10/project endpoint
55
+ return this.apiClient.apiRequest('raet', '10', 'project', 'getCallLog', {
56
+ "project_id": i_project_id
57
+ });
58
+ }
59
+ }
60
+
61
+ module.exports = RaetV10Project;
@@ -0,0 +1,14 @@
1
+ class RaetV10Projects {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async get() {
7
+ // Calls the raet/V10/projects endpoint
8
+ return this.apiClient.apiRequest('raet', '10', 'projects', 'get', {
9
+
10
+ });
11
+ }
12
+ }
13
+
14
+ module.exports = RaetV10Projects;
@@ -0,0 +1,39 @@
1
+ class RaetV10Report {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async get(i_project_id, i_cv_id) {
7
+ // Calls the raet/V10/report endpoint
8
+ return this.apiClient.apiRequest('raet', '10', 'report', 'get', {
9
+ "project_id": i_project_id,
10
+ "cv_id": i_cv_id
11
+ });
12
+ }
13
+
14
+ async create(i_project_id, i_cv_id) {
15
+ // Calls the raet/V10/report endpoint
16
+ return this.apiClient.apiRequest('raet', '10', 'report', 'create', {
17
+ "project_id": i_project_id,
18
+ "cv_id": i_cv_id
19
+ });
20
+ }
21
+
22
+ async update(i_project_id, i_cv_id) {
23
+ // Calls the raet/V10/report endpoint
24
+ return this.apiClient.apiRequest('raet', '10', 'report', 'update', {
25
+ "project_id": i_project_id,
26
+ "cv_id": i_cv_id
27
+ });
28
+ }
29
+
30
+ async parseSys(i_cv_id, i_data) {
31
+ // Calls the raet/V10/report endpoint
32
+ return this.apiClient.apiRequest('raet', '10', 'report', 'parseSys', {
33
+ "cv_id": i_cv_id,
34
+ "data": i_data
35
+ });
36
+ }
37
+ }
38
+
39
+ module.exports = RaetV10Report;
@@ -0,0 +1,11 @@
1
+ const RaetV20Individuals = require('./RaetV20Individuals');
2
+ const RaetV20Cv = require('./RaetV20Cv');
3
+
4
+ class RaetV20 {
5
+ constructor(apiClient) {
6
+ this.individuals = new RaetV20Individuals(apiClient);
7
+ this.cv = new RaetV20Cv(apiClient);
8
+ }
9
+ }
10
+
11
+ module.exports = RaetV20;
@@ -0,0 +1,31 @@
1
+ class RaetV20Cv {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async importFromPdf(i_project_id, i_file_key) {
7
+ // Calls the raet/V20/cv endpoint
8
+ return this.apiClient.apiRequest('raet', '20', 'cv', 'importFromPdf', {
9
+ "project_id": i_project_id,
10
+ "file_key": i_file_key
11
+ });
12
+ }
13
+
14
+ async importFromText(i_project_id, i_text) {
15
+ // Calls the raet/V20/cv endpoint
16
+ return this.apiClient.apiRequest('raet', '20', 'cv', 'importFromText', {
17
+ "project_id": i_project_id,
18
+ "text": i_text
19
+ });
20
+ }
21
+
22
+ async updateFromCallSys(i_cv_id, i_data) {
23
+ // Calls the raet/V20/cv endpoint
24
+ return this.apiClient.apiRequest('raet', '20', 'cv', 'updateFromCallSys', {
25
+ "cv_id": i_cv_id,
26
+ "data": i_data
27
+ });
28
+ }
29
+ }
30
+
31
+ module.exports = RaetV20Cv;
@@ -0,0 +1,25 @@
1
+ class RaetV20Individuals {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async get(i_project_id, i_query, i_page, i_page_size) {
7
+ // Calls the raet/V20/individuals endpoint
8
+ return this.apiClient.apiRequest('raet', '20', 'individuals', 'get', {
9
+ "project_id": i_project_id,
10
+ "query": i_query,
11
+ "page": i_page,
12
+ "page_size": i_page_size
13
+ });
14
+ }
15
+
16
+ async create(i_individual, i_project_id) {
17
+ // Calls the raet/V20/individuals endpoint
18
+ return this.apiClient.apiRequest('raet', '20', 'individuals', 'create', {
19
+ "individual": i_individual,
20
+ "project_id": i_project_id
21
+ });
22
+ }
23
+ }
24
+
25
+ module.exports = RaetV20Individuals;
@@ -0,0 +1,9 @@
1
+ const RagV10 = require('./RagV10');
2
+
3
+ class RagApp {
4
+ constructor(apiClient) {
5
+ this.V10 = new RagV10(apiClient);
6
+ }
7
+ }
8
+
9
+ module.exports = RagApp;
@@ -0,0 +1,9 @@
1
+ const RagV10Storage = require('./RagV10Storage');
2
+
3
+ class RagV10 {
4
+ constructor(apiClient) {
5
+ this.storage = new RagV10Storage(apiClient);
6
+ }
7
+ }
8
+
9
+ module.exports = RagV10;
@@ -0,0 +1,27 @@
1
+ class RagV10Storage {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async search(i_query, i_limit) {
7
+ // Calls the rag/V10/storage endpoint
8
+ return this.apiClient.apiRequest('rag', '10', 'storage', 'search', {
9
+ "query": i_query,
10
+ "limit": i_limit
11
+ });
12
+ }
13
+
14
+ async put(i_text, i_doc_type, i_source, i_book_id, i_chapter_id, i_page_id) {
15
+ // Calls the rag/V10/storage endpoint
16
+ return this.apiClient.apiRequest('rag', '10', 'storage', 'put', {
17
+ "text": i_text,
18
+ "doc_type": i_doc_type,
19
+ "source": i_source,
20
+ "book_id": i_book_id,
21
+ "chapter_id": i_chapter_id,
22
+ "page_id": i_page_id
23
+ });
24
+ }
25
+ }
26
+
27
+ module.exports = RagV10Storage;
@@ -0,0 +1,9 @@
1
+ const RuKitchenV10 = require('./RuKitchenV10');
2
+
3
+ class RuKitchenApp {
4
+ constructor(apiClient) {
5
+ this.V10 = new RuKitchenV10(apiClient);
6
+ }
7
+ }
8
+
9
+ module.exports = RuKitchenApp;
@@ -0,0 +1,11 @@
1
+ const RuKitchenV10Importer = require('./RuKitchenV10Importer');
2
+ const RuKitchenV10SeoArticle = require('./RuKitchenV10SeoArticle');
3
+
4
+ class RuKitchenV10 {
5
+ constructor(apiClient) {
6
+ this.importer = new RuKitchenV10Importer(apiClient);
7
+ this.seoArticle = new RuKitchenV10SeoArticle(apiClient);
8
+ }
9
+ }
10
+
11
+ module.exports = RuKitchenV10;
@@ -0,0 +1,29 @@
1
+ class RuKitchenV10Importer {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async extractIngredients(i_page_id) {
7
+ // Calls the ru-kitchen/V10/importer endpoint
8
+ return this.apiClient.apiRequest('ru-kitchen', '10', 'importer', 'extractIngredients', {
9
+ "page_id": i_page_id
10
+ });
11
+ }
12
+
13
+ async fetchFDC(i_name) {
14
+ // Calls the ru-kitchen/V10/importer endpoint
15
+ return this.apiClient.apiRequest('ru-kitchen', '10', 'importer', 'fetchFDC', {
16
+ "name": i_name
17
+ });
18
+ }
19
+
20
+ async fetchIngredient(i_name, i_recipe) {
21
+ // Calls the ru-kitchen/V10/importer endpoint
22
+ return this.apiClient.apiRequest('ru-kitchen', '10', 'importer', 'fetchIngredient', {
23
+ "name": i_name,
24
+ "recipe": i_recipe
25
+ });
26
+ }
27
+ }
28
+
29
+ module.exports = RuKitchenV10Importer;
@@ -0,0 +1,14 @@
1
+ class RuKitchenV10SeoArticle {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async create(i_page_id) {
7
+ // Calls the ru-kitchen/V10/seoArticle endpoint
8
+ return this.apiClient.apiRequest('ru-kitchen', '10', 'seoArticle', 'create', {
9
+ "page_id": i_page_id
10
+ });
11
+ }
12
+ }
13
+
14
+ module.exports = RuKitchenV10SeoArticle;
@@ -0,0 +1,11 @@
1
+ const SalesV10 = require('./SalesV10');
2
+ const SalesV20 = require('./SalesV20');
3
+
4
+ class SalesApp {
5
+ constructor(apiClient) {
6
+ this.V10 = new SalesV10(apiClient);
7
+ this.V20 = new SalesV20(apiClient);
8
+ }
9
+ }
10
+
11
+ module.exports = SalesApp;
@@ -0,0 +1,23 @@
1
+ const SalesV10Companies = require('./SalesV10Companies');
2
+ const SalesV10Company = require('./SalesV10Company');
3
+ const SalesV10Notes = require('./SalesV10Notes');
4
+ const SalesV10Group = require('./SalesV10Group');
5
+ const SalesV10Groups = require('./SalesV10Groups');
6
+ const SalesV10Catalogue = require('./SalesV10Catalogue');
7
+ const SalesV10Categories = require('./SalesV10Categories');
8
+ const SalesV10Logs = require('./SalesV10Logs');
9
+
10
+ class SalesV10 {
11
+ constructor(apiClient) {
12
+ this.companies = new SalesV10Companies(apiClient);
13
+ this.company = new SalesV10Company(apiClient);
14
+ this.notes = new SalesV10Notes(apiClient);
15
+ this.group = new SalesV10Group(apiClient);
16
+ this.groups = new SalesV10Groups(apiClient);
17
+ this.catalogue = new SalesV10Catalogue(apiClient);
18
+ this.categories = new SalesV10Categories(apiClient);
19
+ this.logs = new SalesV10Logs(apiClient);
20
+ }
21
+ }
22
+
23
+ module.exports = SalesV10;
@@ -0,0 +1,58 @@
1
+ class SalesV10Catalogue {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async getRecords(i_page_size, i_section) {
7
+ // Calls the sales/V10/catalogue endpoint
8
+ return this.apiClient.apiRequest('sales', '10', 'catalogue', 'getRecords', {
9
+ "page_size": i_page_size,
10
+ "section": i_section
11
+ });
12
+ }
13
+
14
+ async getAllRecords(i_section) {
15
+ // Calls the sales/V10/catalogue endpoint
16
+ return this.apiClient.apiRequest('sales', '10', 'catalogue', 'getAllRecords', {
17
+ "section": i_section
18
+ });
19
+ }
20
+
21
+ async getAllArticles(i_country) {
22
+ // Calls the sales/V10/catalogue endpoint
23
+ return this.apiClient.apiRequest('sales', '10', 'catalogue', 'getAllArticles', {
24
+ "country": i_country
25
+ });
26
+ }
27
+
28
+ async getRecord(i_object_id) {
29
+ // Calls the sales/V10/catalogue endpoint
30
+ return this.apiClient.apiRequest('sales', '10', 'catalogue', 'getRecord', {
31
+ "object_id": i_object_id
32
+ });
33
+ }
34
+
35
+ async getArticle(i_municipality, i_branch) {
36
+ // Calls the sales/V10/catalogue endpoint
37
+ return this.apiClient.apiRequest('sales', '10', 'catalogue', 'getArticle', {
38
+ "municipality": i_municipality,
39
+ "branch": i_branch
40
+ });
41
+ }
42
+
43
+ async getMunicipalities(i_country) {
44
+ // Calls the sales/V10/catalogue endpoint
45
+ return this.apiClient.apiRequest('sales', '10', 'catalogue', 'getMunicipalities', {
46
+ "country": i_country
47
+ });
48
+ }
49
+
50
+ async getArticles(i_municipality) {
51
+ // Calls the sales/V10/catalogue endpoint
52
+ return this.apiClient.apiRequest('sales', '10', 'catalogue', 'getArticles', {
53
+ "municipality": i_municipality
54
+ });
55
+ }
56
+ }
57
+
58
+ module.exports = SalesV10Catalogue;
@@ -0,0 +1,15 @@
1
+ class SalesV10Categories {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async get(i_query, i_section) {
7
+ // Calls the sales/V10/categories endpoint
8
+ return this.apiClient.apiRequest('sales', '10', 'categories', 'get', {
9
+ "query": i_query,
10
+ "section": i_section
11
+ });
12
+ }
13
+ }
14
+
15
+ module.exports = SalesV10Categories;
@@ -0,0 +1,55 @@
1
+ class SalesV10Companies {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async get(i_query, i_filters, i_page, i_page_size, i_section) {
7
+ // Calls the sales/V10/companies endpoint
8
+ return this.apiClient.apiRequest('sales', '10', 'companies', 'get', {
9
+ "query": i_query,
10
+ "filters": i_filters,
11
+ "page": i_page,
12
+ "page_size": i_page_size,
13
+ "section": i_section
14
+ });
15
+ }
16
+
17
+ async getUnauthorized() {
18
+ // Calls the sales/V10/companies endpoint
19
+ return this.apiClient.apiRequest('sales', '10', 'companies', 'getUnauthorized', {
20
+
21
+ });
22
+ }
23
+
24
+ async process(i_queue_id, i_query, i_filters, i_account_name, i_template_name, i_prompt_id, i_prompt_title_id) {
25
+ // Calls the sales/V10/companies endpoint
26
+ return this.apiClient.apiRequest('sales', '10', 'companies', 'process', {
27
+ "queue_id": i_queue_id,
28
+ "query": i_query,
29
+ "filters": i_filters,
30
+ "account_name": i_account_name,
31
+ "template_name": i_template_name,
32
+ "prompt_id": i_prompt_id,
33
+ "prompt_title_id": i_prompt_title_id
34
+ });
35
+ }
36
+
37
+ async crawl(i_queue_id, i_query, i_limit) {
38
+ // Calls the sales/V10/companies endpoint
39
+ return this.apiClient.apiRequest('sales', '10', 'companies', 'crawl', {
40
+ "queue_id": i_queue_id,
41
+ "query": i_query,
42
+ "limit": i_limit
43
+ });
44
+ }
45
+
46
+ async test(i_query, i_filters) {
47
+ // Calls the sales/V10/companies endpoint
48
+ return this.apiClient.apiRequest('sales', '10', 'companies', 'test', {
49
+ "query": i_query,
50
+ "filters": i_filters
51
+ });
52
+ }
53
+ }
54
+
55
+ module.exports = SalesV10Companies;
@@ -0,0 +1,120 @@
1
+ class SalesV10Company {
2
+ constructor(apiClient) {
3
+ this.apiClient = apiClient;
4
+ }
5
+
6
+ async get(i_object_id) {
7
+ // Calls the sales/V10/company endpoint
8
+ return this.apiClient.apiRequest('sales', '10', 'company', 'get', {
9
+ "object_id": i_object_id
10
+ });
11
+ }
12
+
13
+ async getUnauthorised(i_object_id) {
14
+ // Calls the sales/V10/company endpoint
15
+ return this.apiClient.apiRequest('sales', '10', 'company', 'getUnauthorised', {
16
+ "object_id": i_object_id
17
+ });
18
+ }
19
+
20
+ async contactsGet(i_object_id) {
21
+ // Calls the sales/V10/company endpoint
22
+ return this.apiClient.apiRequest('sales', '10', 'company', 'contactsGet', {
23
+ "object_id": i_object_id
24
+ });
25
+ }
26
+
27
+ async process(i_object_id, i_queue_id, i_account_name, i_template_name, i_prompt_id) {
28
+ // Calls the sales/V10/company endpoint
29
+ return this.apiClient.apiRequest('sales', '10', 'company', 'process', {
30
+ "object_id": i_object_id,
31
+ "queue_id": i_queue_id,
32
+ "account_name": i_account_name,
33
+ "template_name": i_template_name,
34
+ "prompt_id": i_prompt_id
35
+ });
36
+ }
37
+
38
+ async getProgressStatus(i_object_id) {
39
+ // Calls the sales/V10/company endpoint
40
+ return this.apiClient.apiRequest('sales', '10', 'company', 'getProgressStatus', {
41
+ "object_id": i_object_id
42
+ });
43
+ }
44
+
45
+ async parseSite(i_object_id, i_queue_id) {
46
+ // Calls the sales/V10/company endpoint
47
+ return this.apiClient.apiRequest('sales', '10', 'company', 'parseSite', {
48
+ "object_id": i_object_id,
49
+ "queue_id": i_queue_id
50
+ });
51
+ }
52
+
53
+ async parser(i_object_id, i_emails) {
54
+ // Calls the sales/V10/company endpoint
55
+ return this.apiClient.apiRequest('sales', '10', 'company', 'parser', {
56
+ "object_id": i_object_id,
57
+ "emails": i_emails
58
+ });
59
+ }
60
+
61
+ async emailUpdate(i_object_id, i_emails) {
62
+ // Calls the sales/V10/company endpoint
63
+ return this.apiClient.apiRequest('sales', '10', 'company', 'emailUpdate', {
64
+ "object_id": i_object_id,
65
+ "emails": i_emails
66
+ });
67
+ }
68
+
69
+ async updateDescription(i_object_id) {
70
+ // Calls the sales/V10/company endpoint
71
+ return this.apiClient.apiRequest('sales', '10', 'company', 'updateDescription', {
72
+ "object_id": i_object_id
73
+ });
74
+ }
75
+
76
+ async crawlerStatusUpdate(i_object_id, i_data) {
77
+ // Calls the sales/V10/company endpoint
78
+ return this.apiClient.apiRequest('sales', '10', 'company', 'crawlerStatusUpdate', {
79
+ "object_id": i_object_id,
80
+ "data": i_data
81
+ });
82
+ }
83
+
84
+ async emailSend(i_object_id, i_account_name, i_template_name, i_prompt_id) {
85
+ // Calls the sales/V10/company endpoint
86
+ return this.apiClient.apiRequest('sales', '10', 'company', 'emailSend', {
87
+ "object_id": i_object_id,
88
+ "account_name": i_account_name,
89
+ "template_name": i_template_name,
90
+ "prompt_id": i_prompt_id
91
+ });
92
+ }
93
+
94
+ async promptRender(i_object_id, i_prompt_id) {
95
+ // Calls the sales/V10/company endpoint
96
+ return this.apiClient.apiRequest('sales', '10', 'company', 'promptRender', {
97
+ "object_id": i_object_id,
98
+ "prompt_id": i_prompt_id
99
+ });
100
+ }
101
+
102
+ async notes(i_object_id) {
103
+ // Calls the sales/V10/company endpoint
104
+ return this.apiClient.apiRequest('sales', '10', 'company', 'notes', {
105
+ "object_id": i_object_id
106
+ });
107
+ }
108
+
109
+ async add(i_name, i_country, i_website, i_category) {
110
+ // Calls the sales/V10/company endpoint
111
+ return this.apiClient.apiRequest('sales', '10', 'company', 'add', {
112
+ "name": i_name,
113
+ "country": i_country,
114
+ "website": i_website,
115
+ "category": i_category
116
+ });
117
+ }
118
+ }
119
+
120
+ module.exports = SalesV10Company;