apimatic-apollo-sdk 0.0.1

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 (416) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +179 -0
  4. data/bin/console +15 -0
  5. data/lib/apollo_rest_api/api_helper.rb +10 -0
  6. data/lib/apollo_rest_api/apis/accounts_api.rb +400 -0
  7. data/lib/apollo_rest_api/apis/analytics_api.rb +65 -0
  8. data/lib/apollo_rest_api/apis/api.rb +45 -0
  9. data/lib/apollo_rest_api/apis/base_api.rb +67 -0
  10. data/lib/apollo_rest_api/apis/calls_api.rb +354 -0
  11. data/lib/apollo_rest_api/apis/contacts_api.rb +478 -0
  12. data/lib/apollo_rest_api/apis/conversations_api.rb +157 -0
  13. data/lib/apollo_rest_api/apis/deals_api.rb +253 -0
  14. data/lib/apollo_rest_api/apis/emailer_messages_api.rb +160 -0
  15. data/lib/apollo_rest_api/apis/enrichment_api.rb +447 -0
  16. data/lib/apollo_rest_api/apis/miscellaneous_api.rb +610 -0
  17. data/lib/apollo_rest_api/apis/search_api.rb +675 -0
  18. data/lib/apollo_rest_api/apis/sequences_api.rb +774 -0
  19. data/lib/apollo_rest_api/apis/tasks_api.rb +397 -0
  20. data/lib/apollo_rest_api/client.rb +147 -0
  21. data/lib/apollo_rest_api/configuration.rb +170 -0
  22. data/lib/apollo_rest_api/exceptions/account_stages429_error_exception.rb +46 -0
  23. data/lib/apollo_rest_api/exceptions/accounts422_error_exception.rb +46 -0
  24. data/lib/apollo_rest_api/exceptions/accounts429_error_exception.rb +46 -0
  25. data/lib/apollo_rest_api/exceptions/accounts_bulk_create422_error_exception.rb +46 -0
  26. data/lib/apollo_rest_api/exceptions/accounts_bulk_create429_error_exception.rb +46 -0
  27. data/lib/apollo_rest_api/exceptions/accounts_bulk_create500_error_exception.rb +46 -0
  28. data/lib/apollo_rest_api/exceptions/accounts_bulk_update422_error_exception.rb +46 -0
  29. data/lib/apollo_rest_api/exceptions/accounts_bulk_update429_error_exception.rb +46 -0
  30. data/lib/apollo_rest_api/exceptions/accounts_search403_error_exception.rb +46 -0
  31. data/lib/apollo_rest_api/exceptions/accounts_search429_error_exception.rb +46 -0
  32. data/lib/apollo_rest_api/exceptions/accounts_update_owners429_error_exception.rb +46 -0
  33. data/lib/apollo_rest_api/exceptions/api_exception.rb +21 -0
  34. data/lib/apollo_rest_api/exceptions/contact_stages429_error_exception.rb +46 -0
  35. data/lib/apollo_rest_api/exceptions/contacts422_error_exception.rb +46 -0
  36. data/lib/apollo_rest_api/exceptions/contacts429_error_exception.rb +46 -0
  37. data/lib/apollo_rest_api/exceptions/contacts_bulk_create422_error_exception.rb +46 -0
  38. data/lib/apollo_rest_api/exceptions/contacts_bulk_create429_error_exception.rb +46 -0
  39. data/lib/apollo_rest_api/exceptions/contacts_bulk_create500_error_exception.rb +46 -0
  40. data/lib/apollo_rest_api/exceptions/contacts_bulk_update422_error_exception.rb +51 -0
  41. data/lib/apollo_rest_api/exceptions/contacts_bulk_update429_error_exception.rb +46 -0
  42. data/lib/apollo_rest_api/exceptions/contacts_opportunities429_error_exception.rb +46 -0
  43. data/lib/apollo_rest_api/exceptions/contacts_search403_error_exception.rb +46 -0
  44. data/lib/apollo_rest_api/exceptions/contacts_search429_error_exception.rb +46 -0
  45. data/lib/apollo_rest_api/exceptions/contacts_update_owners422_error_exception.rb +46 -0
  46. data/lib/apollo_rest_api/exceptions/contacts_update_owners429_error_exception.rb +46 -0
  47. data/lib/apollo_rest_api/exceptions/contacts_update_stages422_error_exception.rb +46 -0
  48. data/lib/apollo_rest_api/exceptions/contacts_update_stages429_error_exception.rb +46 -0
  49. data/lib/apollo_rest_api/exceptions/conversations404_error_exception.rb +46 -0
  50. data/lib/apollo_rest_api/exceptions/conversations422_error_exception.rb +46 -0
  51. data/lib/apollo_rest_api/exceptions/conversations_export404_error_exception.rb +46 -0
  52. data/lib/apollo_rest_api/exceptions/conversations_export422_error_exception.rb +46 -0
  53. data/lib/apollo_rest_api/exceptions/conversations_search403_error_exception.rb +46 -0
  54. data/lib/apollo_rest_api/exceptions/email_accounts429_error_exception.rb +46 -0
  55. data/lib/apollo_rest_api/exceptions/emailer_campaigns_abort422_error_exception.rb +46 -0
  56. data/lib/apollo_rest_api/exceptions/emailer_campaigns_abort429_error_exception.rb +46 -0
  57. data/lib/apollo_rest_api/exceptions/emailer_campaigns_add_contact_ids429_error_exception.rb +46 -0
  58. data/lib/apollo_rest_api/exceptions/emailer_campaigns_approve422_error_exception.rb +46 -0
  59. data/lib/apollo_rest_api/exceptions/emailer_campaigns_approve429_error_exception.rb +46 -0
  60. data/lib/apollo_rest_api/exceptions/emailer_campaigns_archive429_error_exception.rb +46 -0
  61. data/lib/apollo_rest_api/exceptions/emailer_campaigns_remove_or_stop_contact_ids429_error_exception.rb +46 -0
  62. data/lib/apollo_rest_api/exceptions/emailer_campaigns_search429_error_exception.rb +46 -0
  63. data/lib/apollo_rest_api/exceptions/emailer_messages429_error_exception.rb +46 -0
  64. data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status404_error_exception.rb +46 -0
  65. data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status422_error_exception.rb +46 -0
  66. data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status429_error_exception.rb +46 -0
  67. data/lib/apollo_rest_api/exceptions/emailer_messages_search422_error_exception.rb +46 -0
  68. data/lib/apollo_rest_api/exceptions/emailer_messages_search429_error_exception.rb +46 -0
  69. data/lib/apollo_rest_api/exceptions/emailer_messages_send_now429_error_exception.rb +46 -0
  70. data/lib/apollo_rest_api/exceptions/emailer_schedules429_error_exception.rb +46 -0
  71. data/lib/apollo_rest_api/exceptions/fields429_error_exception.rb +46 -0
  72. data/lib/apollo_rest_api/exceptions/labels404_error_exception.rb +51 -0
  73. data/lib/apollo_rest_api/exceptions/labels422_error_exception.rb +53 -0
  74. data/lib/apollo_rest_api/exceptions/labels429_error_exception.rb +46 -0
  75. data/lib/apollo_rest_api/exceptions/labels_add_entity_ids_to_label_names422_error_exception.rb +46 -0
  76. data/lib/apollo_rest_api/exceptions/labels_add_entity_ids_to_label_names429_error_exception.rb +46 -0
  77. data/lib/apollo_rest_api/exceptions/labels_remove_entity_ids_from_label_names422_error_exception.rb +46 -0
  78. data/lib/apollo_rest_api/exceptions/labels_remove_entity_ids_from_label_names429_error_exception.rb +46 -0
  79. data/lib/apollo_rest_api/exceptions/mixed_companies_search403_error_exception.rb +46 -0
  80. data/lib/apollo_rest_api/exceptions/mixed_companies_search429_error_exception.rb +46 -0
  81. data/lib/apollo_rest_api/exceptions/mixed_people_api_search422_error_exception.rb +46 -0
  82. data/lib/apollo_rest_api/exceptions/mixed_people_api_search429_error_exception.rb +46 -0
  83. data/lib/apollo_rest_api/exceptions/need_master_api_key_exception.rb +51 -0
  84. data/lib/apollo_rest_api/exceptions/notes400_error_exception.rb +46 -0
  85. data/lib/apollo_rest_api/exceptions/opportunities404_error_exception.rb +51 -0
  86. data/lib/apollo_rest_api/exceptions/opportunities422_error_exception.rb +46 -0
  87. data/lib/apollo_rest_api/exceptions/opportunities429_error_exception.rb +46 -0
  88. data/lib/apollo_rest_api/exceptions/opportunities_search429_error_exception.rb +46 -0
  89. data/lib/apollo_rest_api/exceptions/opportunity_stages429_error_exception.rb +46 -0
  90. data/lib/apollo_rest_api/exceptions/organizations_bulk_enrich400_error_exception.rb +58 -0
  91. data/lib/apollo_rest_api/exceptions/organizations_bulk_enrich429_error_exception.rb +46 -0
  92. data/lib/apollo_rest_api/exceptions/organizations_enrich422_error_exception.rb +46 -0
  93. data/lib/apollo_rest_api/exceptions/organizations_enrich429_error_exception.rb +46 -0
  94. data/lib/apollo_rest_api/exceptions/organizations_job_postings422_error_exception.rb +46 -0
  95. data/lib/apollo_rest_api/exceptions/organizations_job_postings429_error_exception.rb +46 -0
  96. data/lib/apollo_rest_api/exceptions/people_bulk_match429_error_exception.rb +46 -0
  97. data/lib/apollo_rest_api/exceptions/people_match429_error_exception.rb +46 -0
  98. data/lib/apollo_rest_api/exceptions/reports_sync_report400_error_exception.rb +46 -0
  99. data/lib/apollo_rest_api/exceptions/reports_sync_report429_error_exception.rb +46 -0
  100. data/lib/apollo_rest_api/exceptions/sequences404_error_exception.rb +46 -0
  101. data/lib/apollo_rest_api/exceptions/sequences422_error_exception.rb +46 -0
  102. data/lib/apollo_rest_api/exceptions/sequences429_error_exception.rb +46 -0
  103. data/lib/apollo_rest_api/exceptions/tasks401_error_exception.rb +46 -0
  104. data/lib/apollo_rest_api/exceptions/tasks422_error_exception.rb +46 -0
  105. data/lib/apollo_rest_api/exceptions/tasks429_error_exception.rb +46 -0
  106. data/lib/apollo_rest_api/exceptions/tasks_bulk_create422_error_exception.rb +46 -0
  107. data/lib/apollo_rest_api/exceptions/tasks_bulk_create429_error_exception.rb +46 -0
  108. data/lib/apollo_rest_api/exceptions/tasks_complete422_error_exception.rb +46 -0
  109. data/lib/apollo_rest_api/exceptions/tasks_complete429_error_exception.rb +46 -0
  110. data/lib/apollo_rest_api/exceptions/tasks_search429_error_exception.rb +46 -0
  111. data/lib/apollo_rest_api/exceptions/tasks_skip422_error_exception.rb +46 -0
  112. data/lib/apollo_rest_api/exceptions/tasks_skip429_error_exception.rb +46 -0
  113. data/lib/apollo_rest_api/exceptions/typed_custom_fields429_error_exception.rb +46 -0
  114. data/lib/apollo_rest_api/exceptions/users_search429_error_exception.rb +46 -0
  115. data/lib/apollo_rest_api/exceptions/webhook_result404_error_exception.rb +55 -0
  116. data/lib/apollo_rest_api/http/api_response.rb +19 -0
  117. data/lib/apollo_rest_api/http/auth/api_key.rb +52 -0
  118. data/lib/apollo_rest_api/http/auth/bearer_auth.rb +53 -0
  119. data/lib/apollo_rest_api/http/http_call_back.rb +10 -0
  120. data/lib/apollo_rest_api/http/http_method_enum.rb +10 -0
  121. data/lib/apollo_rest_api/http/http_request.rb +10 -0
  122. data/lib/apollo_rest_api/http/http_response.rb +10 -0
  123. data/lib/apollo_rest_api/http/proxy_settings.rb +22 -0
  124. data/lib/apollo_rest_api/logging/configuration/api_logging_configuration.rb +186 -0
  125. data/lib/apollo_rest_api/logging/sdk_logger.rb +17 -0
  126. data/lib/apollo_rest_api/models/account.rb +551 -0
  127. data/lib/apollo_rest_api/models/account1.rb +420 -0
  128. data/lib/apollo_rest_api/models/account10.rb +595 -0
  129. data/lib/apollo_rest_api/models/account12.rb +424 -0
  130. data/lib/apollo_rest_api/models/account14.rb +247 -0
  131. data/lib/apollo_rest_api/models/account2.rb +420 -0
  132. data/lib/apollo_rest_api/models/account22.rb +85 -0
  133. data/lib/apollo_rest_api/models/account3.rb +420 -0
  134. data/lib/apollo_rest_api/models/account4.rb +474 -0
  135. data/lib/apollo_rest_api/models/account5.rb +238 -0
  136. data/lib/apollo_rest_api/models/account6.rb +86 -0
  137. data/lib/apollo_rest_api/models/account7.rb +95 -0
  138. data/lib/apollo_rest_api/models/account8.rb +434 -0
  139. data/lib/apollo_rest_api/models/account9.rb +540 -0
  140. data/lib/apollo_rest_api/models/account_attribute.rb +116 -0
  141. data/lib/apollo_rest_api/models/account_rule_config_status.rb +138 -0
  142. data/lib/apollo_rest_api/models/account_stage.rb +151 -0
  143. data/lib/apollo_rest_api/models/account_stages_response.rb +85 -0
  144. data/lib/apollo_rest_api/models/accounts_bulk_create_request.rb +108 -0
  145. data/lib/apollo_rest_api/models/accounts_bulk_create_response.rb +105 -0
  146. data/lib/apollo_rest_api/models/accounts_bulk_update_request.rb +139 -0
  147. data/lib/apollo_rest_api/models/accounts_bulk_update_response.rb +84 -0
  148. data/lib/apollo_rest_api/models/accounts_request.rb +183 -0
  149. data/lib/apollo_rest_api/models/accounts_request1.rb +183 -0
  150. data/lib/apollo_rest_api/models/accounts_response.rb +75 -0
  151. data/lib/apollo_rest_api/models/accounts_response1.rb +85 -0
  152. data/lib/apollo_rest_api/models/accounts_search_request.rb +167 -0
  153. data/lib/apollo_rest_api/models/accounts_search_response.rb +168 -0
  154. data/lib/apollo_rest_api/models/accounts_update_owners_response.rb +84 -0
  155. data/lib/apollo_rest_api/models/active.rb +26 -0
  156. data/lib/apollo_rest_api/models/assistant_setting.rb +397 -0
  157. data/lib/apollo_rest_api/models/audio_recording.rb +74 -0
  158. data/lib/apollo_rest_api/models/base_model.rb +110 -0
  159. data/lib/apollo_rest_api/models/bounced.rb +26 -0
  160. data/lib/apollo_rest_api/models/breadcrumb.rb +107 -0
  161. data/lib/apollo_rest_api/models/check_apollo_pricing_plan.rb +75 -0
  162. data/lib/apollo_rest_api/models/check_the_account_id.rb +75 -0
  163. data/lib/apollo_rest_api/models/check_the_contact_stage_id.rb +75 -0
  164. data/lib/apollo_rest_api/models/contact.rb +809 -0
  165. data/lib/apollo_rest_api/models/contact1.rb +921 -0
  166. data/lib/apollo_rest_api/models/contact10.rb +465 -0
  167. data/lib/apollo_rest_api/models/contact11.rb +250 -0
  168. data/lib/apollo_rest_api/models/contact14.rb +248 -0
  169. data/lib/apollo_rest_api/models/contact15.rb +166 -0
  170. data/lib/apollo_rest_api/models/contact2.rb +884 -0
  171. data/lib/apollo_rest_api/models/contact3.rb +239 -0
  172. data/lib/apollo_rest_api/models/contact4.rb +105 -0
  173. data/lib/apollo_rest_api/models/contact5.rb +893 -0
  174. data/lib/apollo_rest_api/models/contact6.rb +839 -0
  175. data/lib/apollo_rest_api/models/contact7.rb +95 -0
  176. data/lib/apollo_rest_api/models/contact8.rb +375 -0
  177. data/lib/apollo_rest_api/models/contact9.rb +198 -0
  178. data/lib/apollo_rest_api/models/contact_attribute.rb +179 -0
  179. data/lib/apollo_rest_api/models/contact_campaign_status.rb +336 -0
  180. data/lib/apollo_rest_api/models/contact_campaign_status2.rb +163 -0
  181. data/lib/apollo_rest_api/models/contact_email.rb +167 -0
  182. data/lib/apollo_rest_api/models/contact_email1.rb +85 -0
  183. data/lib/apollo_rest_api/models/contact_email2.rb +148 -0
  184. data/lib/apollo_rest_api/models/contact_statuses.rb +132 -0
  185. data/lib/apollo_rest_api/models/contacts_bulk_create_request.rb +121 -0
  186. data/lib/apollo_rest_api/models/contacts_bulk_create_response.rb +106 -0
  187. data/lib/apollo_rest_api/models/contacts_bulk_update_request.rb +224 -0
  188. data/lib/apollo_rest_api/models/contacts_bulk_update_response.rb +94 -0
  189. data/lib/apollo_rest_api/models/contacts_bulk_update_response1.rb +87 -0
  190. data/lib/apollo_rest_api/models/contacts_opportunities_response.rb +85 -0
  191. data/lib/apollo_rest_api/models/contacts_request.rb +269 -0
  192. data/lib/apollo_rest_api/models/contacts_request1.rb +253 -0
  193. data/lib/apollo_rest_api/models/contacts_response.rb +94 -0
  194. data/lib/apollo_rest_api/models/contacts_response1.rb +94 -0
  195. data/lib/apollo_rest_api/models/contacts_response2.rb +75 -0
  196. data/lib/apollo_rest_api/models/contacts_search_request.rb +166 -0
  197. data/lib/apollo_rest_api/models/contacts_search_response.rb +168 -0
  198. data/lib/apollo_rest_api/models/contacts_update_owners_response.rb +84 -0
  199. data/lib/apollo_rest_api/models/contacts_update_stages_response.rb +84 -0
  200. data/lib/apollo_rest_api/models/conversation.rb +284 -0
  201. data/lib/apollo_rest_api/models/conversation_type.rb +36 -0
  202. data/lib/apollo_rest_api/models/conversation_type2.rb +36 -0
  203. data/lib/apollo_rest_api/models/conversations_export_request.rb +94 -0
  204. data/lib/apollo_rest_api/models/conversations_export_response.rb +86 -0
  205. data/lib/apollo_rest_api/models/conversations_export_response1.rb +76 -0
  206. data/lib/apollo_rest_api/models/conversations_response.rb +333 -0
  207. data/lib/apollo_rest_api/models/conversations_search_request.rb +207 -0
  208. data/lib/apollo_rest_api/models/conversations_search_response.rb +130 -0
  209. data/lib/apollo_rest_api/models/counts.rb +115 -0
  210. data/lib/apollo_rest_api/models/created_account.rb +174 -0
  211. data/lib/apollo_rest_api/models/created_contact.rb +195 -0
  212. data/lib/apollo_rest_api/models/creation_type.rb +41 -0
  213. data/lib/apollo_rest_api/models/currency.rb +95 -0
  214. data/lib/apollo_rest_api/models/current_technology.rb +95 -0
  215. data/lib/apollo_rest_api/models/date_range.rb +84 -0
  216. data/lib/apollo_rest_api/models/date_range1.rb +87 -0
  217. data/lib/apollo_rest_api/models/deal.rb +107 -0
  218. data/lib/apollo_rest_api/models/deliverability_score.rb +460 -0
  219. data/lib/apollo_rest_api/models/departmental_head_count.rb +260 -0
  220. data/lib/apollo_rest_api/models/detail.rb +173 -0
  221. data/lib/apollo_rest_api/models/detail1.rb +109 -0
  222. data/lib/apollo_rest_api/models/email_account.rb +616 -0
  223. data/lib/apollo_rest_api/models/email_accounts_response.rb +85 -0
  224. data/lib/apollo_rest_api/models/emailer_campaign.rb +722 -0
  225. data/lib/apollo_rest_api/models/emailer_campaign1.rb +359 -0
  226. data/lib/apollo_rest_api/models/emailer_campaign2.rb +158 -0
  227. data/lib/apollo_rest_api/models/emailer_campaign3.rb +95 -0
  228. data/lib/apollo_rest_api/models/emailer_campaign4.rb +96 -0
  229. data/lib/apollo_rest_api/models/emailer_campaign6.rb +105 -0
  230. data/lib/apollo_rest_api/models/emailer_campaigns_abort_response.rb +96 -0
  231. data/lib/apollo_rest_api/models/emailer_campaigns_add_contact_ids_response.rb +164 -0
  232. data/lib/apollo_rest_api/models/emailer_campaigns_approve_response.rb +96 -0
  233. data/lib/apollo_rest_api/models/emailer_campaigns_archive_response.rb +77 -0
  234. data/lib/apollo_rest_api/models/emailer_campaigns_remove_or_stop_contact_ids_response.rb +77 -0
  235. data/lib/apollo_rest_api/models/emailer_campaigns_search_response.rb +125 -0
  236. data/lib/apollo_rest_api/models/emailer_message.rb +676 -0
  237. data/lib/apollo_rest_api/models/emailer_message1.rb +410 -0
  238. data/lib/apollo_rest_api/models/emailer_messages_email_send_status_request.rb +74 -0
  239. data/lib/apollo_rest_api/models/emailer_messages_email_send_status_response.rb +166 -0
  240. data/lib/apollo_rest_api/models/emailer_messages_request.rb +197 -0
  241. data/lib/apollo_rest_api/models/emailer_messages_response.rb +77 -0
  242. data/lib/apollo_rest_api/models/emailer_messages_send_now_request.rb +76 -0
  243. data/lib/apollo_rest_api/models/emailer_messages_send_now_response.rb +77 -0
  244. data/lib/apollo_rest_api/models/emailer_schedule.rb +154 -0
  245. data/lib/apollo_rest_api/models/emailer_schedules_response.rb +85 -0
  246. data/lib/apollo_rest_api/models/emailer_step.rb +206 -0
  247. data/lib/apollo_rest_api/models/emailer_step1.rb +189 -0
  248. data/lib/apollo_rest_api/models/emailer_step2.rb +126 -0
  249. data/lib/apollo_rest_api/models/emailer_step3.rb +148 -0
  250. data/lib/apollo_rest_api/models/emailer_step4.rb +85 -0
  251. data/lib/apollo_rest_api/models/emailer_step5.rb +128 -0
  252. data/lib/apollo_rest_api/models/emailer_template.rb +100 -0
  253. data/lib/apollo_rest_api/models/emailer_template1.rb +95 -0
  254. data/lib/apollo_rest_api/models/emailer_template2.rb +85 -0
  255. data/lib/apollo_rest_api/models/emailer_touch.rb +254 -0
  256. data/lib/apollo_rest_api/models/emailer_touch1.rb +128 -0
  257. data/lib/apollo_rest_api/models/emailer_touch2.rb +117 -0
  258. data/lib/apollo_rest_api/models/emailer_touch3.rb +139 -0
  259. data/lib/apollo_rest_api/models/emailer_touch4.rb +85 -0
  260. data/lib/apollo_rest_api/models/employment_history.rb +238 -0
  261. data/lib/apollo_rest_api/models/entity_progress_job.rb +153 -0
  262. data/lib/apollo_rest_api/models/entity_progress_job1.rb +135 -0
  263. data/lib/apollo_rest_api/models/entity_progress_job2.rb +141 -0
  264. data/lib/apollo_rest_api/models/error_details.rb +95 -0
  265. data/lib/apollo_rest_api/models/existing_account.rb +152 -0
  266. data/lib/apollo_rest_api/models/existing_contact.rb +171 -0
  267. data/lib/apollo_rest_api/models/faceting.rb +523 -0
  268. data/lib/apollo_rest_api/models/failure_reason.rb +44 -0
  269. data/lib/apollo_rest_api/models/field.rb +181 -0
  270. data/lib/apollo_rest_api/models/fields_request.rb +105 -0
  271. data/lib/apollo_rest_api/models/fields_response.rb +84 -0
  272. data/lib/apollo_rest_api/models/fields_response1.rb +85 -0
  273. data/lib/apollo_rest_api/models/filters.rb +165 -0
  274. data/lib/apollo_rest_api/models/finished.rb +26 -0
  275. data/lib/apollo_rest_api/models/funding_event.rb +134 -0
  276. data/lib/apollo_rest_api/models/generation_option.rb +107 -0
  277. data/lib/apollo_rest_api/models/generation_tone.rb +86 -0
  278. data/lib/apollo_rest_api/models/group_by.rb +84 -0
  279. data/lib/apollo_rest_api/models/industry_tag_hash.rb +83 -0
  280. data/lib/apollo_rest_api/models/label.rb +135 -0
  281. data/lib/apollo_rest_api/models/label2.rb +147 -0
  282. data/lib/apollo_rest_api/models/labels_add_entity_ids_to_label_names_request.rb +113 -0
  283. data/lib/apollo_rest_api/models/labels_add_entity_ids_to_label_names_response.rb +107 -0
  284. data/lib/apollo_rest_api/models/labels_remove_entity_ids_from_label_names_request.rb +113 -0
  285. data/lib/apollo_rest_api/models/labels_remove_entity_ids_from_label_names_response.rb +107 -0
  286. data/lib/apollo_rest_api/models/labels_request.rb +97 -0
  287. data/lib/apollo_rest_api/models/labels_request1.rb +87 -0
  288. data/lib/apollo_rest_api/models/labels_response.rb +201 -0
  289. data/lib/apollo_rest_api/models/labels_response1.rb +75 -0
  290. data/lib/apollo_rest_api/models/match.rb +393 -0
  291. data/lib/apollo_rest_api/models/meta.rb +76 -0
  292. data/lib/apollo_rest_api/models/metric.rb +117 -0
  293. data/lib/apollo_rest_api/models/metric1.rb +100 -0
  294. data/lib/apollo_rest_api/models/mixed_companies_search_response.rb +199 -0
  295. data/lib/apollo_rest_api/models/mixed_people_api_search_response.rb +95 -0
  296. data/lib/apollo_rest_api/models/modality.rb +37 -0
  297. data/lib/apollo_rest_api/models/modality1.rb +37 -0
  298. data/lib/apollo_rest_api/models/modality3.rb +40 -0
  299. data/lib/apollo_rest_api/models/note.rb +260 -0
  300. data/lib/apollo_rest_api/models/notes_response.rb +84 -0
  301. data/lib/apollo_rest_api/models/opportunities_request.rb +175 -0
  302. data/lib/apollo_rest_api/models/opportunities_request1.rb +164 -0
  303. data/lib/apollo_rest_api/models/opportunities_response.rb +76 -0
  304. data/lib/apollo_rest_api/models/opportunities_response1.rb +76 -0
  305. data/lib/apollo_rest_api/models/opportunities_response2.rb +76 -0
  306. data/lib/apollo_rest_api/models/opportunities_search_response.rb +170 -0
  307. data/lib/apollo_rest_api/models/opportunity.rb +602 -0
  308. data/lib/apollo_rest_api/models/opportunity1.rb +574 -0
  309. data/lib/apollo_rest_api/models/opportunity11.rb +217 -0
  310. data/lib/apollo_rest_api/models/opportunity2.rb +583 -0
  311. data/lib/apollo_rest_api/models/opportunity3.rb +594 -0
  312. data/lib/apollo_rest_api/models/opportunity4.rb +574 -0
  313. data/lib/apollo_rest_api/models/opportunity5.rb +591 -0
  314. data/lib/apollo_rest_api/models/opportunity_contact_role.rb +95 -0
  315. data/lib/apollo_rest_api/models/opportunity_contact_role1.rb +135 -0
  316. data/lib/apollo_rest_api/models/opportunity_stage.rb +210 -0
  317. data/lib/apollo_rest_api/models/opportunity_stages_response.rb +85 -0
  318. data/lib/apollo_rest_api/models/organization.rb +659 -0
  319. data/lib/apollo_rest_api/models/organization1.rb +422 -0
  320. data/lib/apollo_rest_api/models/organization2.rb +752 -0
  321. data/lib/apollo_rest_api/models/organization3.rb +600 -0
  322. data/lib/apollo_rest_api/models/organization4.rb +162 -0
  323. data/lib/apollo_rest_api/models/organization5.rb +336 -0
  324. data/lib/apollo_rest_api/models/organization6.rb +264 -0
  325. data/lib/apollo_rest_api/models/organization7.rb +88 -0
  326. data/lib/apollo_rest_api/models/organization_job_posting.rb +144 -0
  327. data/lib/apollo_rest_api/models/organizations_bulk_enrich_request.rb +89 -0
  328. data/lib/apollo_rest_api/models/organizations_bulk_enrich_response.rb +194 -0
  329. data/lib/apollo_rest_api/models/organizations_enrich_response.rb +76 -0
  330. data/lib/apollo_rest_api/models/organizations_job_postings_response.rb +88 -0
  331. data/lib/apollo_rest_api/models/pagination.rb +105 -0
  332. data/lib/apollo_rest_api/models/pagination6.rb +105 -0
  333. data/lib/apollo_rest_api/models/params.rb +116 -0
  334. data/lib/apollo_rest_api/models/participants.rb +85 -0
  335. data/lib/apollo_rest_api/models/paused.rb +26 -0
  336. data/lib/apollo_rest_api/models/people_bulk_match_request.rb +83 -0
  337. data/lib/apollo_rest_api/models/people_bulk_match_response.rb +180 -0
  338. data/lib/apollo_rest_api/models/people_match_response.rb +87 -0
  339. data/lib/apollo_rest_api/models/person.rb +393 -0
  340. data/lib/apollo_rest_api/models/person1.rb +196 -0
  341. data/lib/apollo_rest_api/models/phone_call.rb +131 -0
  342. data/lib/apollo_rest_api/models/phone_number.rb +149 -0
  343. data/lib/apollo_rest_api/models/phone_number1.rb +149 -0
  344. data/lib/apollo_rest_api/models/phone_number3.rb +97 -0
  345. data/lib/apollo_rest_api/models/phone_number4.rb +85 -0
  346. data/lib/apollo_rest_api/models/phone_number5.rb +127 -0
  347. data/lib/apollo_rest_api/models/pivot_group_by.rb +85 -0
  348. data/lib/apollo_rest_api/models/primary_phone.rb +96 -0
  349. data/lib/apollo_rest_api/models/priority.rb +40 -0
  350. data/lib/apollo_rest_api/models/recipient.rb +100 -0
  351. data/lib/apollo_rest_api/models/recipient1.rb +116 -0
  352. data/lib/apollo_rest_api/models/reports_sync_report_request.rb +253 -0
  353. data/lib/apollo_rest_api/models/reports_sync_report_response.rb +102 -0
  354. data/lib/apollo_rest_api/models/request_type.rb +40 -0
  355. data/lib/apollo_rest_api/models/response.rb +118 -0
  356. data/lib/apollo_rest_api/models/role.rb +112 -0
  357. data/lib/apollo_rest_api/models/send_from.rb +116 -0
  358. data/lib/apollo_rest_api/models/sequences_request.rb +391 -0
  359. data/lib/apollo_rest_api/models/sequences_request1.rb +206 -0
  360. data/lib/apollo_rest_api/models/sequences_response.rb +148 -0
  361. data/lib/apollo_rest_api/models/sequences_response1.rb +203 -0
  362. data/lib/apollo_rest_api/models/sharing_access.rb +148 -0
  363. data/lib/apollo_rest_api/models/sharing_permission.rb +154 -0
  364. data/lib/apollo_rest_api/models/skipped_contact_ids.rb +77 -0
  365. data/lib/apollo_rest_api/models/smart_datetime_range.rb +86 -0
  366. data/lib/apollo_rest_api/models/sort.rb +85 -0
  367. data/lib/apollo_rest_api/models/sort_by_field.rb +43 -0
  368. data/lib/apollo_rest_api/models/sort_by_field1.rb +36 -0
  369. data/lib/apollo_rest_api/models/sort_direction.rb +36 -0
  370. data/lib/apollo_rest_api/models/source.rb +40 -0
  371. data/lib/apollo_rest_api/models/status.rb +44 -0
  372. data/lib/apollo_rest_api/models/status2.rb +36 -0
  373. data/lib/apollo_rest_api/models/status3.rb +40 -0
  374. data/lib/apollo_rest_api/models/status4.rb +37 -0
  375. data/lib/apollo_rest_api/models/step.rb +127 -0
  376. data/lib/apollo_rest_api/models/task.rb +394 -0
  377. data/lib/apollo_rest_api/models/task2.rb +536 -0
  378. data/lib/apollo_rest_api/models/task4.rb +524 -0
  379. data/lib/apollo_rest_api/models/task5.rb +104 -0
  380. data/lib/apollo_rest_api/models/task_type.rb +95 -0
  381. data/lib/apollo_rest_api/models/tasks_bulk_create_request.rb +173 -0
  382. data/lib/apollo_rest_api/models/tasks_bulk_create_response.rb +94 -0
  383. data/lib/apollo_rest_api/models/tasks_complete_request.rb +75 -0
  384. data/lib/apollo_rest_api/models/tasks_complete_response.rb +86 -0
  385. data/lib/apollo_rest_api/models/tasks_request.rb +183 -0
  386. data/lib/apollo_rest_api/models/tasks_request1.rb +227 -0
  387. data/lib/apollo_rest_api/models/tasks_response.rb +74 -0
  388. data/lib/apollo_rest_api/models/tasks_response1.rb +74 -0
  389. data/lib/apollo_rest_api/models/tasks_search_response.rb +136 -0
  390. data/lib/apollo_rest_api/models/tasks_skip_request.rb +88 -0
  391. data/lib/apollo_rest_api/models/tasks_skip_response.rb +74 -0
  392. data/lib/apollo_rest_api/models/team.rb +87 -0
  393. data/lib/apollo_rest_api/models/total_facet.rb +95 -0
  394. data/lib/apollo_rest_api/models/true_warmup_thresholds.rb +106 -0
  395. data/lib/apollo_rest_api/models/type.rb +44 -0
  396. data/lib/apollo_rest_api/models/type1.rb +36 -0
  397. data/lib/apollo_rest_api/models/type2.rb +52 -0
  398. data/lib/apollo_rest_api/models/typed_custom_fields.rb +111 -0
  399. data/lib/apollo_rest_api/models/typed_custom_fields6.rb +106 -0
  400. data/lib/apollo_rest_api/models/typed_custom_fields7.rb +243 -0
  401. data/lib/apollo_rest_api/models/typed_custom_fields_response.rb +85 -0
  402. data/lib/apollo_rest_api/models/unique_completed.rb +26 -0
  403. data/lib/apollo_rest_api/models/unique_scheduled.rb +26 -0
  404. data/lib/apollo_rest_api/models/unique_skipped.rb +26 -0
  405. data/lib/apollo_rest_api/models/user.rb +1294 -0
  406. data/lib/apollo_rest_api/models/users_api_profile_response.rb +309 -0
  407. data/lib/apollo_rest_api/models/users_search_response.rb +106 -0
  408. data/lib/apollo_rest_api/models/video_recording.rb +95 -0
  409. data/lib/apollo_rest_api/models/wait_mode.rb +40 -0
  410. data/lib/apollo_rest_api/models/webhook_result_response.rb +140 -0
  411. data/lib/apollo_rest_api/models/webhook_status.rb +40 -0
  412. data/lib/apollo_rest_api/utilities/date_time_helper.rb +11 -0
  413. data/lib/apollo_rest_api/utilities/file_wrapper.rb +28 -0
  414. data/lib/apollo_rest_api/utilities/union_type_lookup.rb +128 -0
  415. data/lib/apollo_rest_api.rb +503 -0
  416. metadata +499 -0
@@ -0,0 +1,610 @@
1
+ # apollo_rest_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module ApolloRestApi
7
+ # MiscellaneousApi
8
+ class MiscellaneousApi < BaseApi
9
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
10
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
11
+ # <a
12
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4409130537101-Add-Mana
13
+ # ge-and-Deactivate-Users" target="_blank">Users</a> are the people who use
14
+ # your Apollo workspace.<br><br>Use the Get a List of Users endpoint to
15
+ # retrieve the IDs for all of the users in your Apollo account.<br><br>These
16
+ # IDs can be used for several other endpoints, including the <a
17
+ # href="https://docs.apollo.io/reference/create-deal">Create a Deal</a>, <a
18
+ # href="https://docs.apollo.io/reference/create-an-account">Create an
19
+ # Account</a>, and <a
20
+ # href="https://docs.apollo.io/reference/create-a-task">Create a Task</a>
21
+ # endpoints.<br><br>This endpoint requires a master API key. If you call the
22
+ # endpoint without a master key, you receive a `403` response. Check out <a
23
+ # href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
24
+ # learn how to create a master API key.
25
+ # @param [Integer] page Optional parameter: The page number of the Apollo
26
+ # data that you want to retrieve. <br><br>Use this parameter in combination
27
+ # with the `per_page` parameter to make search results for navigable and
28
+ # improve the performance of the endpoint. <br><br>Example: `4`
29
+ # @param [Integer] per_page Optional parameter: The number of search results
30
+ # that should be returned for each page. Limiting the number of results per
31
+ # page improves the endpoint's performance. <br><br>Use the `page` parameter
32
+ # to search the different pages of data. <br><br>Example: `10`
33
+ # @return [ApiResponse] Complete http response with raw body and status code.
34
+ def get_a_list_of_users(page: nil,
35
+ per_page: nil)
36
+ @api_call
37
+ .request(new_request_builder(HttpMethodEnum::GET,
38
+ '/users/search',
39
+ Server::DEFAULT)
40
+ .query_param(new_parameter(page, key: 'page'))
41
+ .query_param(new_parameter(per_page, key: 'per_page'))
42
+ .header_param(new_parameter('application/json', key: 'accept'))
43
+ .auth(Or.new('bearerAuth', 'apiKey')))
44
+ .response(new_response_handler
45
+ .deserializer(APIHelper.method(:custom_type_deserializer))
46
+ .deserialize_into(UsersSearchResponse.method(:from_hash))
47
+ .is_api_response(true)
48
+ .local_error('401',
49
+ '401',
50
+ APIException)
51
+ .local_error('403',
52
+ '403',
53
+ APIException)
54
+ .local_error('429',
55
+ '429',
56
+ UsersSearch429ErrorException))
57
+ .execute
58
+ end
59
+
60
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
61
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
62
+ # You can <a
63
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4409127806093-Link-You
64
+ # r-Mailbox-to-Apollo" target="_blank">link mailboxes to Apollo</a>, and use
65
+ # them for prospect outreach.<br><br>Use the Get a List of Email Accounts
66
+ # endpoint to retrieve information about the linked email inboxes that your
67
+ # teammates use in your Apollo account.<br><br>In particular, this endpoint
68
+ # returns IDs for each of your team's linked email accounts, which can be
69
+ # used with the <a
70
+ # href="https://docs.apollo.io/reference/add-contacts-to-sequence">Add
71
+ # Contacts to a Sequence endpoint</a>.<br><br>This endpoint doesn't require
72
+ # any parameters.<br><br>This endpoint requires a master API key. If you
73
+ # call the endpoint without a master key, you receive a `403` response.
74
+ # Check out <a href="https://docs.apollo.io/docs/create-api-key">Create an
75
+ # API Key</a> to learn how to create a master key.
76
+ # @return [ApiResponse] Complete http response with raw body and status code.
77
+ def get_a_list_of_email_accounts
78
+ @api_call
79
+ .request(new_request_builder(HttpMethodEnum::GET,
80
+ '/email_accounts',
81
+ Server::DEFAULT)
82
+ .header_param(new_parameter('application/json', key: 'accept'))
83
+ .auth(Or.new('bearerAuth', 'apiKey')))
84
+ .response(new_response_handler
85
+ .deserializer(APIHelper.method(:custom_type_deserializer))
86
+ .deserialize_into(EmailAccountsResponse.method(:from_hash))
87
+ .is_api_response(true)
88
+ .local_error('401',
89
+ '401',
90
+ APIException)
91
+ .local_error('403',
92
+ '403',
93
+ NeedMasterApiKeyException)
94
+ .local_error('429',
95
+ '429',
96
+ EmailAccounts429ErrorException))
97
+ .execute
98
+ end
99
+
100
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
101
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
102
+ # Use the Get a List of All Lists endpoint to retrieve information about
103
+ # every <a
104
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4409728608525-Create-a
105
+ # nd-Use-a-List" target="_blank">list</a> that has been created in your
106
+ # Apollo account. This endpoint can be used to check the available lists
107
+ # before you use the <a
108
+ # href="https://docs.apollo.io/reference/create-a-contact">Create a Contact
109
+ # endpoint</a>. <br><br>This endpoint doesn't require any
110
+ # parameters.<br><br>This endpoint requires a master API key. If you call
111
+ # the endpoint without a master key, you receive a `403` response. Check out
112
+ # <a href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a>
113
+ # to learn how to create a master key.
114
+ # @return [ApiResponse] Complete http response with raw body and status code.
115
+ def get_a_list_of_all_lists
116
+ @api_call
117
+ .request(new_request_builder(HttpMethodEnum::GET,
118
+ '/labels',
119
+ Server::DEFAULT)
120
+ .header_param(new_parameter('application/json', key: 'accept'))
121
+ .auth(Or.new('bearerAuth', 'apiKey')))
122
+ .response(new_response_handler
123
+ .deserializer(APIHelper.method(:custom_type_deserializer))
124
+ .deserialize_into(LabelsResponse.method(:from_hash))
125
+ .is_api_response(true)
126
+ .is_response_array(true)
127
+ .local_error('401',
128
+ '401',
129
+ APIException)
130
+ .local_error('403',
131
+ '403',
132
+ NeedMasterApiKeyException)
133
+ .local_error('429',
134
+ '429',
135
+ Labels429ErrorException))
136
+ .execute
137
+ end
138
+
139
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
140
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
141
+ # A <a
142
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4409728608525-Create-a
143
+ # nd-Use-a-List" target="_blank">list</a> is a saved group of contacts or
144
+ # accounts in Apollo that you can organize, action, and track
145
+ # together.<br><br>Use the Create a List endpoint to create a new, empty
146
+ # contact or account list in your team's Apollo account. After you create a
147
+ # list, add records to it with the <a
148
+ # href="https://docs.apollo.io/reference/add-records-to-a-list">Add Records
149
+ # to a List endpoint</a>.<br><br>List names must be unique for each modality
150
+ # within your team. If you try to create a list with a name that already
151
+ # exists for the same modality, Apollo returns a `422` response.
152
+ # @param [LabelsRequest] body Required parameter: TODO: type description
153
+ # here
154
+ # @return [ApiResponse] Complete http response with raw body and status code.
155
+ def create_a_list(body)
156
+ @api_call
157
+ .request(new_request_builder(HttpMethodEnum::POST,
158
+ '/labels',
159
+ Server::DEFAULT)
160
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
161
+ .body_param(new_parameter(body)
162
+ .is_required(true))
163
+ .header_param(new_parameter('application/json', key: 'accept'))
164
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
165
+ .auth(Or.new('bearerAuth', 'apiKey')))
166
+ .response(new_response_handler
167
+ .deserializer(APIHelper.method(:custom_type_deserializer))
168
+ .deserialize_into(LabelsResponse1.method(:from_hash))
169
+ .is_api_response(true)
170
+ .local_error('401',
171
+ '401',
172
+ APIException)
173
+ .local_error('403',
174
+ '403',
175
+ NeedMasterApiKeyException)
176
+ .local_error('422',
177
+ '422',
178
+ Labels422ErrorException)
179
+ .local_error('429',
180
+ '429',
181
+ Labels429ErrorException))
182
+ .execute
183
+ end
184
+
185
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
186
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
187
+ # A <a
188
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4409728608525-Create-a
189
+ # nd-Use-a-List" target="_blank">list</a> is a saved group of contacts or
190
+ # accounts in Apollo that you can organize, action, and track
191
+ # together.<br><br>Use the Update a List endpoint to rename an existing list
192
+ # or to toggle its Book of Business status. You can't change a list's
193
+ # modality after it's created.<br><br>To find list IDs, call the <a
194
+ # href="https://docs.apollo.io/reference/get-a-list-of-all-lists">Get a List
195
+ # of All Lists endpoint</a> and identify the `id` value for the list you
196
+ # want to update.
197
+ # @param [String] id Required parameter: The Apollo ID for the list you want
198
+ # to update.<br><br>To find list IDs, call the <a
199
+ # href="https://docs.apollo.io/reference/get-a-list-of-all-lists">Get a List
200
+ # of All Lists endpoint</a> and identify the `id` value.<br><br>Example:
201
+ # `6612a4b7c8d9e0f123456789`
202
+ # @param [LabelsRequest1] body Required parameter: TODO: type description
203
+ # here
204
+ # @return [ApiResponse] Complete http response with raw body and status code.
205
+ def update_a_list(id,
206
+ body)
207
+ @api_call
208
+ .request(new_request_builder(HttpMethodEnum::PATCH,
209
+ '/labels/{id}',
210
+ Server::DEFAULT)
211
+ .template_param(new_parameter(id, key: 'id')
212
+ .is_required(true)
213
+ .should_encode(true))
214
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
215
+ .body_param(new_parameter(body)
216
+ .is_required(true))
217
+ .header_param(new_parameter('application/json', key: 'accept'))
218
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
219
+ .auth(Or.new('bearerAuth', 'apiKey')))
220
+ .response(new_response_handler
221
+ .deserializer(APIHelper.method(:custom_type_deserializer))
222
+ .deserialize_into(LabelsResponse1.method(:from_hash))
223
+ .is_api_response(true)
224
+ .local_error('401',
225
+ '401',
226
+ APIException)
227
+ .local_error('403',
228
+ '403',
229
+ NeedMasterApiKeyException)
230
+ .local_error('404',
231
+ '404',
232
+ Labels404ErrorException)
233
+ .local_error('422',
234
+ '422',
235
+ Labels422ErrorException)
236
+ .local_error('429',
237
+ '429',
238
+ Labels429ErrorException))
239
+ .execute
240
+ end
241
+
242
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
243
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
244
+ # A <a
245
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4409728608525-Create-a
246
+ # nd-Use-a-List" target="_blank">list</a> is a saved group of contacts or
247
+ # accounts in Apollo that you can organize, action, and track
248
+ # together.<br><br>Use the Add Records to a List endpoint to add existing
249
+ # contacts or accounts to one or more lists, referencing the lists by name.
250
+ # If a list name you provide doesn't exist yet for the given modality,
251
+ # Apollo creates it automatically.<br><br>Provide the record IDs in
252
+ # `entity_ids` and the target list names in `label_names`. To find record
253
+ # IDs, use the <a
254
+ # href="https://docs.apollo.io/reference/search-for-contacts">Search for
255
+ # Contacts</a> or <a
256
+ # href="https://docs.apollo.io/reference/search-for-accounts">Search for
257
+ # Accounts</a> endpoints.<br><br>If you provide no valid `entity_ids` or no
258
+ # `label_names`, the endpoint makes no changes and returns a `200` response
259
+ # with a confirmation message.
260
+ # @param [LabelsAddEntityIdsToLabelNamesRequest] body Required parameter:
261
+ # TODO: type description here
262
+ # @return [ApiResponse] Complete http response with raw body and status code.
263
+ def add_records_to_a_list(body)
264
+ @api_call
265
+ .request(new_request_builder(HttpMethodEnum::POST,
266
+ '/labels/add_entity_ids_to_label_names',
267
+ Server::DEFAULT)
268
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
269
+ .body_param(new_parameter(body)
270
+ .is_required(true))
271
+ .header_param(new_parameter('application/json', key: 'accept'))
272
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
273
+ .auth(Or.new('bearerAuth', 'apiKey')))
274
+ .response(new_response_handler
275
+ .deserializer(APIHelper.method(:custom_type_deserializer))
276
+ .deserialize_into(LabelsAddEntityIdsToLabelNamesResponse.method(:from_hash))
277
+ .is_api_response(true)
278
+ .local_error('401',
279
+ '401',
280
+ APIException)
281
+ .local_error('403',
282
+ '403',
283
+ NeedMasterApiKeyException)
284
+ .local_error('422',
285
+ '422',
286
+ LabelsAddEntityIdsToLabelNames422ErrorException)
287
+ .local_error('429',
288
+ '429',
289
+ LabelsAddEntityIdsToLabelNames429ErrorException))
290
+ .execute
291
+ end
292
+
293
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
294
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
295
+ # A <a
296
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4409728608525-Create-a
297
+ # nd-Use-a-List" target="_blank">list</a> is a saved group of contacts or
298
+ # accounts in Apollo that you can organize, action, and track
299
+ # together.<br><br>Use the Remove Records from a List endpoint to remove
300
+ # contacts or accounts from one or more lists, referencing the lists by
301
+ # name. Removing records from a list doesn't delete the records themselves —
302
+ # it only removes them from the specified lists.<br><br>Provide the record
303
+ # IDs in `entity_ids` and the list names in `label_names`. To find record
304
+ # IDs, use the <a
305
+ # href="https://docs.apollo.io/reference/search-for-contacts">Search for
306
+ # Contacts</a> or <a
307
+ # href="https://docs.apollo.io/reference/search-for-accounts">Search for
308
+ # Accounts</a> endpoints.<br><br>If you provide no valid `entity_ids` or no
309
+ # `label_names`, the endpoint makes no changes and returns a `200` response
310
+ # with a confirmation message.
311
+ # @param [LabelsRemoveEntityIdsFromLabelNamesRequest] body Required
312
+ # parameter: TODO: type description here
313
+ # @return [ApiResponse] Complete http response with raw body and status code.
314
+ def remove_records_from_a_list(body)
315
+ @api_call
316
+ .request(new_request_builder(HttpMethodEnum::POST,
317
+ '/labels/remove_entity_ids_from_label_names',
318
+ Server::DEFAULT)
319
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
320
+ .body_param(new_parameter(body)
321
+ .is_required(true))
322
+ .header_param(new_parameter('application/json', key: 'accept'))
323
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
324
+ .auth(Or.new('bearerAuth', 'apiKey')))
325
+ .response(new_response_handler
326
+ .deserializer(APIHelper.method(:custom_type_deserializer))
327
+ .deserialize_into(LabelsRemoveEntityIdsFromLabelNamesResponse.method(:from_hash))
328
+ .is_api_response(true)
329
+ .local_error('401',
330
+ '401',
331
+ APIException)
332
+ .local_error('403',
333
+ '403',
334
+ NeedMasterApiKeyException)
335
+ .local_error('422',
336
+ '422',
337
+ LabelsRemoveEntityIdsFromLabelNames422ErrorException)
338
+ .local_error('429',
339
+ '429',
340
+ LabelsRemoveEntityIdsFromLabelNames429ErrorException))
341
+ .execute
342
+ end
343
+
344
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
345
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
346
+ # Use the Get a List of Fields endpoint to retrieve information about all of
347
+ # the fields that exist in your Apollo account.<br><br>This endpoint
348
+ # requires a master API key. If you call the endpoint without a master key,
349
+ # you receive a `403` response. Check out <a
350
+ # href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
351
+ # learn how to create a master key.
352
+ # @param [Source] source Optional parameter: Example:
353
+ # @return [ApiResponse] Complete http response with raw body and status code.
354
+ def get_a_list_of_fields(source: nil)
355
+ @api_call
356
+ .request(new_request_builder(HttpMethodEnum::GET,
357
+ '/fields',
358
+ Server::DEFAULT)
359
+ .query_param(new_parameter(source, key: 'source'))
360
+ .header_param(new_parameter('application/json', key: 'accept'))
361
+ .auth(Or.new('bearerAuth', 'apiKey')))
362
+ .response(new_response_handler
363
+ .deserializer(APIHelper.method(:custom_type_deserializer))
364
+ .deserialize_into(FieldsResponse.method(:from_hash))
365
+ .is_api_response(true)
366
+ .local_error('401',
367
+ '401',
368
+ APIException)
369
+ .local_error('403',
370
+ '403',
371
+ NeedMasterApiKeyException)
372
+ .local_error('429',
373
+ '429',
374
+ Fields429ErrorException))
375
+ .execute
376
+ end
377
+
378
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
379
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
380
+ # The Create a Custom Field endpoint lets you add custom fields to your
381
+ # Apollo account, helping your team capture unique details with <a
382
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4412498825869-Create-C
383
+ # ustom-Contact-Fields" target="_blank">custom contact</a>, <a
384
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4412498754445-Create-C
385
+ # ustom-Account-Fields" target="_blank">custom account</a>, or <a
386
+ # href="https://knowledge.apollo.io/hc/en-us/articles/4415062486669-Create-a
387
+ # -Deal" target="_blank">custom deal fields</a>.<br><br>Use these fields to
388
+ # enhance your sequences and deliver more personalized, relevant outreach.
389
+ # @param [FieldsRequest] body Required parameter: TODO: type description
390
+ # here
391
+ # @return [ApiResponse] Complete http response with raw body and status code.
392
+ def create_a_custom_field(body)
393
+ @api_call
394
+ .request(new_request_builder(HttpMethodEnum::POST,
395
+ '/fields',
396
+ Server::DEFAULT)
397
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
398
+ .body_param(new_parameter(body)
399
+ .is_required(true))
400
+ .header_param(new_parameter('application/json', key: 'accept'))
401
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
402
+ .auth(Or.new('bearerAuth', 'apiKey')))
403
+ .response(new_response_handler
404
+ .deserializer(APIHelper.method(:custom_type_deserializer))
405
+ .deserialize_into(FieldsResponse1.method(:from_hash))
406
+ .is_api_response(true)
407
+ .local_error('401',
408
+ '401',
409
+ APIException)
410
+ .local_error('403',
411
+ '403',
412
+ NeedMasterApiKeyException))
413
+ .execute
414
+ end
415
+
416
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
417
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
418
+ # This endpoint is deprecated. To achieve the same result, use the <a
419
+ # href="https://docs.apollo.io/reference/get-a-list-of-fields">Fields
420
+ # endpoint</a> (use `source: custom` to get custom fields only).<br><br> Use
421
+ # the Get a List of Custom Fields endpoint to retrieve information about all
422
+ # of the custom fields that have been created in your Apollo
423
+ # account.<br><br>This endpoint doesn't require any parameters. <br><br>This
424
+ # endpoint requires a master API key. If you call the endpoint without a
425
+ # master key, you receive a `403` response. Check out <a
426
+ # href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
427
+ # learn how to create a master key.
428
+ # @return [ApiResponse] Complete http response with raw body and status code.
429
+ def get_a_list_of_all_custom_fields
430
+ warn 'Endpoint get_a_list_of_all_custom_fields in MiscellaneousApi is de'\
431
+ 'precated'
432
+ @api_call
433
+ .request(new_request_builder(HttpMethodEnum::GET,
434
+ '/typed_custom_fields',
435
+ Server::DEFAULT)
436
+ .header_param(new_parameter('application/json', key: 'accept'))
437
+ .auth(Or.new('bearerAuth', 'apiKey')))
438
+ .response(new_response_handler
439
+ .deserializer(APIHelper.method(:custom_type_deserializer))
440
+ .deserialize_into(TypedCustomFieldsResponse.method(:from_hash))
441
+ .is_api_response(true)
442
+ .local_error('401',
443
+ '401',
444
+ APIException)
445
+ .local_error('403',
446
+ '403',
447
+ NeedMasterApiKeyException)
448
+ .local_error('429',
449
+ '429',
450
+ TypedCustomFields429ErrorException))
451
+ .execute
452
+ end
453
+
454
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
455
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
456
+ # Use the Poll Webhook Result endpoint to retrieve webhook results from
457
+ # Apollo. This endpoint enables you to poll for the webhook payload if you
458
+ # didn't receive the original webhook callback. <br><br>To use this
459
+ # endpoint, you need the <code>request_id</code> from the <a
460
+ # href="https://docs.apollo.io/reference/people-enrichment">People
461
+ # Enrichment</a> or <a
462
+ # href="https://docs.apollo.io/reference/bulk-people-enrichment">Bulk People
463
+ # Enrichment</a> endpoint. Pass this value as <code>request_id</code> in
464
+ # this endpoint.<br><br>This endpoint returns webhook results for your team
465
+ # from up to thirty days after the webhook was triggered.
466
+ # @param [Integer] request_id Required parameter: The
467
+ # <code>request_id</code> returned when the original enrichment request was
468
+ # submitted. This value is an integer and can be positive or negative.
469
+ # <br><br>Example: <code>1039995589705121900</code>
470
+ # @return [ApiResponse] Complete http response with raw body and status code.
471
+ def poll_webhook_result(request_id)
472
+ @api_call
473
+ .request(new_request_builder(HttpMethodEnum::GET,
474
+ '/webhook_result/{request_id}',
475
+ Server::DEFAULT)
476
+ .template_param(new_parameter(request_id, key: 'request_id')
477
+ .is_required(true)
478
+ .should_encode(true))
479
+ .header_param(new_parameter('application/json', key: 'accept'))
480
+ .auth(Or.new('bearerAuth', 'apiKey')))
481
+ .response(new_response_handler
482
+ .deserializer(APIHelper.method(:custom_type_deserializer))
483
+ .deserialize_into(WebhookResultResponse.method(:from_hash))
484
+ .is_api_response(true)
485
+ .local_error('401',
486
+ '401',
487
+ APIException)
488
+ .local_error('404',
489
+ '404',
490
+ WebhookResult404ErrorException))
491
+ .execute
492
+ end
493
+
494
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
495
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
496
+ # Use the View API Usage Stats endpoint to view your team's usage of Apollo
497
+ # API and your rate limit for API endpoints.<br><br>Each endpoint has a rate
498
+ # limit per minute, hour, and day. Your <a
499
+ # href="https://docs.apollo.io/docs/api-pricing">Apollo plan</a> does impact
500
+ # the rate limits for API endpoints.<br><br>This endpoint requires a master
501
+ # API key. If you call the endpoint without a master key, you receive a
502
+ # `403` response. Check out <a
503
+ # href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
504
+ # learn how to create a master key.
505
+ # @return [ApiResponse] Complete http response with raw body and status code.
506
+ def post_apiusage
507
+ @api_call
508
+ .request(new_request_builder(HttpMethodEnum::POST,
509
+ '/usage_stats/api_usage_stats',
510
+ Server::DEFAULT)
511
+ .header_param(new_parameter('application/json', key: 'accept'))
512
+ .auth(Or.new('bearerAuth', 'apiKey')))
513
+ .response(new_response_handler
514
+ .deserializer(APIHelper.method(:dynamic_deserializer))
515
+ .is_api_response(true)
516
+ .local_error('401',
517
+ 'Unauthorized',
518
+ APIException)
519
+ .local_error('403',
520
+ 'Forbidden',
521
+ APIException))
522
+ .execute
523
+ end
524
+
525
+ # This endpoint doesn't consume Apollo credits. Learn more about [API
526
+ # pricing and credits](https://docs.apollo.io/docs/api-pricing).
527
+ # <a
528
+ # href="https://knowledge.apollo.io/hc/en-us/articles/28746467476365-Notes-O
529
+ # verview" target="_blank">Notes</a> on Apollo let you keep track of info
530
+ # directly on prospect profiles.<br><br>The Get a List of Notes endpoint
531
+ # retrieves notes associated with a specific contact, account, opportunity,
532
+ # calendar event, or conversation in your Apollo account. You must provide
533
+ # at least one relation parameter (<code>account_id</code>,
534
+ # <code>contact_id</code>, <code>contact_ids</code>,
535
+ # <code>opportunity_id</code>, <code>calendar_event_id</code>,
536
+ # <code>conversation_id</code>, or <code>conversation_ids</code>). Use this
537
+ # endpoint to fetch notes with sorting and pagination support.
538
+ # @param [String] contact_id Optional parameter: The ID of the contact whose
539
+ # notes you want to retrieve. <br><br>Example: `60a5c0b8e4b0c7001c4f1234`
540
+ # @param [String] account_id Optional parameter: The ID of the account whose
541
+ # notes you want to retrieve. <br><br>Example: `60a5c0b8e4b0c7001c4f5678`
542
+ # @param [String] opportunity_id Optional parameter: The ID of the
543
+ # opportunity whose notes you want to retrieve. <br><br>Example:
544
+ # `60a5c0b8e4b0c7001c4f9012`
545
+ # @param [String] calendar_event_id Optional parameter: The ID of the
546
+ # calendar event whose notes you want to retrieve. <br><br>Example:
547
+ # `60a5c0b8e4b0c7001c4f3456`
548
+ # @param [String] conversation_id Optional parameter: The ID of the
549
+ # conversation whose notes you want to retrieve. <br><br>Example:
550
+ # `60a5c0b8e4b0c7001c4f7890`
551
+ # @param [Array[String]] conversation_ids Optional parameter: An array of
552
+ # conversation IDs to filter notes by multiple conversations.
553
+ # @param [Array[String]] contact_ids Optional parameter: An array of contact
554
+ # IDs to filter notes by multiple contacts.
555
+ # @param [String] start_date Optional parameter: Filter notes created on or
556
+ # after this date. Must be a valid date string. <br><br>Example:
557
+ # `2024-01-01`
558
+ # @param [SortByField1] sort_by_field Optional parameter: The field to sort
559
+ # results by. Defaults to `created_at`.
560
+ # @param [SortDirection] sort_direction Optional parameter: The direction to
561
+ # sort results. Defaults to `desc`.
562
+ # @param [Integer] skip Optional parameter: The number of notes to skip for
563
+ # pagination. Must be a non-negative integer. Defaults to `0`.
564
+ # @param [Integer] limit Optional parameter: The maximum number of notes to
565
+ # return per request. Defaults to `25`. Maximum value is `100`.
566
+ # @return [ApiResponse] Complete http response with raw body and status code.
567
+ def get_a_list_of_notes(contact_id: nil,
568
+ account_id: nil,
569
+ opportunity_id: nil,
570
+ calendar_event_id: nil,
571
+ conversation_id: nil,
572
+ conversation_ids: nil,
573
+ contact_ids: nil,
574
+ start_date: nil,
575
+ sort_by_field: SortByField1::CREATED_AT,
576
+ sort_direction: SortDirection::DESC,
577
+ skip: 0,
578
+ limit: 25)
579
+ @api_call
580
+ .request(new_request_builder(HttpMethodEnum::GET,
581
+ '/notes',
582
+ Server::DEFAULT)
583
+ .query_param(new_parameter(contact_id, key: 'contact_id'))
584
+ .query_param(new_parameter(account_id, key: 'account_id'))
585
+ .query_param(new_parameter(opportunity_id, key: 'opportunity_id'))
586
+ .query_param(new_parameter(calendar_event_id, key: 'calendar_event_id'))
587
+ .query_param(new_parameter(conversation_id, key: 'conversation_id'))
588
+ .query_param(new_parameter(conversation_ids, key: 'conversation_ids'))
589
+ .query_param(new_parameter(contact_ids, key: 'contact_ids'))
590
+ .query_param(new_parameter(start_date, key: 'start_date'))
591
+ .query_param(new_parameter(sort_by_field, key: 'sort_by_field'))
592
+ .query_param(new_parameter(sort_direction, key: 'sort_direction'))
593
+ .query_param(new_parameter(skip, key: 'skip'))
594
+ .query_param(new_parameter(limit, key: 'limit'))
595
+ .header_param(new_parameter('application/json', key: 'accept'))
596
+ .auth(Or.new('bearerAuth', 'apiKey')))
597
+ .response(new_response_handler
598
+ .deserializer(APIHelper.method(:custom_type_deserializer))
599
+ .deserialize_into(NotesResponse.method(:from_hash))
600
+ .is_api_response(true)
601
+ .local_error('400',
602
+ '400',
603
+ Notes400ErrorException)
604
+ .local_error('401',
605
+ '401',
606
+ APIException))
607
+ .execute
608
+ end
609
+ end
610
+ end