crelate_client 1.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 (331) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +267 -0
  5. data/Rakefile +8 -0
  6. data/crelate_client-1.0.0.gem +0 -0
  7. data/crelate_client.gemspec +45 -0
  8. data/docs/AssignedTo.md +11 -0
  9. data/docs/AssignedToRequest.md +9 -0
  10. data/docs/BoardParameters.md +9 -0
  11. data/docs/BroadcastMessage.md +15 -0
  12. data/docs/BroadcastMessageCreateRequest.md +9 -0
  13. data/docs/CompaniesApi.md +921 -0
  14. data/docs/Company.md +11 -0
  15. data/docs/ComplianceSettingsPayload.md +8 -0
  16. data/docs/ConsentRequestPayload.md +9 -0
  17. data/docs/ContactsApi.md +1246 -0
  18. data/docs/CrelateAction.md +14 -0
  19. data/docs/CrelateActionPayload.md +10 -0
  20. data/docs/CrelateDetails.md +10 -0
  21. data/docs/CustomFormCompletedForm.md +11 -0
  22. data/docs/CustomFormDefinition.md +16 -0
  23. data/docs/CustomFormDefinitionEntities.md +9 -0
  24. data/docs/CustomFormFormDefinitionUsage.md +10 -0
  25. data/docs/CustomFormFormDefintionUsageJobs.md +9 -0
  26. data/docs/CustomFormFormFieldUsage.md +11 -0
  27. data/docs/CustomFormFormFieldUsageFormDefinition.md +10 -0
  28. data/docs/CustomFormLayoutSection.md +9 -0
  29. data/docs/CustomFormSaveResponse.md +12 -0
  30. data/docs/DocumentCollection.md +10 -0
  31. data/docs/DocumentItem.md +22 -0
  32. data/docs/DomainApi.md +198 -0
  33. data/docs/EmailAttachment.md +9 -0
  34. data/docs/EntityDocumentOptions.md +8 -0
  35. data/docs/EntityLookup.md +15 -0
  36. data/docs/ExtIntegrationResponseInterviewResponse.md +11 -0
  37. data/docs/ExtReferralRequest.md +12 -0
  38. data/docs/ExtResumeCandidate.md +21 -0
  39. data/docs/ExtResumeCareerBuilderValidateCredentialsResponse.md +9 -0
  40. data/docs/ExtResumeOrgState.md +27 -0
  41. data/docs/ExtResumePackagePricing.md +11 -0
  42. data/docs/ExtResumePackageUpdateRequest.md +9 -0
  43. data/docs/ExtResumeSearchResponse.md +9 -0
  44. data/docs/ExtResumeViewResponse.md +30 -0
  45. data/docs/FusebillStateItem.md +9 -0
  46. data/docs/GetDocumentListOptions.md +10 -0
  47. data/docs/InterviewRequest.md +9 -0
  48. data/docs/InterviewRequestDetails.md +15 -0
  49. data/docs/InterviewResponse.md +18 -0
  50. data/docs/JobPostRequest.md +9 -0
  51. data/docs/JobPostingsApi.md +378 -0
  52. data/docs/JobResponse.md +15 -0
  53. data/docs/JobsApi.md +1197 -0
  54. data/docs/MultiEntityLookup.md +8 -0
  55. data/docs/NotesApi.md +215 -0
  56. data/docs/OrgAuditLogEvent.md +22 -0
  57. data/docs/PostPurchaseRequest.md +12 -0
  58. data/docs/PublicApiAttachmentResponse.md +19 -0
  59. data/docs/PublicApiAttachmentResponseList.md +9 -0
  60. data/docs/PublicApiDocumentType.md +10 -0
  61. data/docs/PublicApiGetAccountResponse.md +85 -0
  62. data/docs/PublicApiGetAccountResponseList.md +9 -0
  63. data/docs/PublicApiGetContactJob.md +13 -0
  64. data/docs/PublicApiGetContactResponse.md +151 -0
  65. data/docs/PublicApiGetContactResponseList.md +9 -0
  66. data/docs/PublicApiGetJobContact.md +13 -0
  67. data/docs/PublicApiGetJobListResponse.md +9 -0
  68. data/docs/PublicApiGetJobPostingListResponse.md +9 -0
  69. data/docs/PublicApiGetJobPostingResponse.md +29 -0
  70. data/docs/PublicApiGetJobPostingSearchResponse.md +8 -0
  71. data/docs/PublicApiGetJobPostingSearchResult.md +18 -0
  72. data/docs/PublicApiGetJobResponse.md +127 -0
  73. data/docs/PublicApiGetNoteResponse.md +21 -0
  74. data/docs/PublicApiGetTaskResponse.md +23 -0
  75. data/docs/PublicApiIdResponse.md +8 -0
  76. data/docs/PublicApiPlacementResponse.md +32 -0
  77. data/docs/PublicApiPlacementResponseList.md +9 -0
  78. data/docs/PublicApiRecordOwner.md +10 -0
  79. data/docs/PublicApiSaveAccountRequest.md +74 -0
  80. data/docs/PublicApiSaveAttachmentRequest.md +13 -0
  81. data/docs/PublicApiSaveContactRequest.md +139 -0
  82. data/docs/PublicApiSaveJobApplicationRequest.md +13 -0
  83. data/docs/PublicApiSaveJobPostingRequest.md +19 -0
  84. data/docs/PublicApiSaveJobRequest.md +95 -0
  85. data/docs/PublicApiSaveJobRequestJobType.md +9 -0
  86. data/docs/PublicApiSaveNoteRequest.md +11 -0
  87. data/docs/PublicApiSaveTaskRequest.md +13 -0
  88. data/docs/PublicApiSaveWorkflowItemStatusRequest.md +9 -0
  89. data/docs/PublicApiTagCategory.md +9 -0
  90. data/docs/PublicApiWorkflowStatus.md +12 -0
  91. data/docs/PublicApiWorkflowType.md +9 -0
  92. data/docs/Question.md +13 -0
  93. data/docs/QuestionSetResponse.md +12 -0
  94. data/docs/SaveExtCredentialResponse.md +10 -0
  95. data/docs/SearchContact.md +11 -0
  96. data/docs/SendEmailResponse.md +13 -0
  97. data/docs/SendSubmittalDetail.md +11 -0
  98. data/docs/ShareLink.md +13 -0
  99. data/docs/SignupInformation.md +19 -0
  100. data/docs/SmsPlivoMessageReceivedRequest.md +15 -0
  101. data/docs/SmsPlivoMessageStatusReceivedRequest.md +17 -0
  102. data/docs/SmsPlivoVoiceAnswerRequest.md +13 -0
  103. data/docs/SmsPlivoVoiceHangupRequest.md +19 -0
  104. data/docs/SparkHireResponseInfoInterviewResponse.md +11 -0
  105. data/docs/SparkHireResponseInfoJobResponse.md +11 -0
  106. data/docs/SparkHireResponseInfoQuestionSetResponse.md +11 -0
  107. data/docs/TasksApi.md +215 -0
  108. data/docs/UserResponse.md +12 -0
  109. data/docs/WayupData.md +15 -0
  110. data/docs/WebhookDeleteResponse.md +8 -0
  111. data/docs/ZipApplyData.md +15 -0
  112. data/git_push.sh +55 -0
  113. data/lib/.DS_Store +0 -0
  114. data/lib/crelate_client/.DS_Store +0 -0
  115. data/lib/crelate_client/api/companies_api.rb +1151 -0
  116. data/lib/crelate_client/api/contacts_api.rb +1552 -0
  117. data/lib/crelate_client/api/domain_api.rb +239 -0
  118. data/lib/crelate_client/api/job_postings_api.rb +467 -0
  119. data/lib/crelate_client/api/jobs_api.rb +1494 -0
  120. data/lib/crelate_client/api/notes_api.rb +273 -0
  121. data/lib/crelate_client/api/tasks_api.rb +273 -0
  122. data/lib/crelate_client/api_client.rb +388 -0
  123. data/lib/crelate_client/api_error.rb +38 -0
  124. data/lib/crelate_client/configuration.rb +202 -0
  125. data/lib/crelate_client/models/assigned_to.rb +215 -0
  126. data/lib/crelate_client/models/assigned_to_request.rb +197 -0
  127. data/lib/crelate_client/models/board_parameters.rb +199 -0
  128. data/lib/crelate_client/models/broadcast_message.rb +284 -0
  129. data/lib/crelate_client/models/broadcast_message_create_request.rb +197 -0
  130. data/lib/crelate_client/models/company.rb +215 -0
  131. data/lib/crelate_client/models/compliance_settings_payload.rb +188 -0
  132. data/lib/crelate_client/models/consent_request_payload.rb +197 -0
  133. data/lib/crelate_client/models/crelate_action.rb +279 -0
  134. data/lib/crelate_client/models/crelate_action_payload.rb +210 -0
  135. data/lib/crelate_client/models/crelate_details.rb +206 -0
  136. data/lib/crelate_client/models/custom_form_completed_form.rb +221 -0
  137. data/lib/crelate_client/models/custom_form_definition.rb +264 -0
  138. data/lib/crelate_client/models/custom_form_definition_entities.rb +201 -0
  139. data/lib/crelate_client/models/custom_form_form_definition_usage.rb +210 -0
  140. data/lib/crelate_client/models/custom_form_form_defintion_usage_jobs.rb +197 -0
  141. data/lib/crelate_client/models/custom_form_form_field_usage.rb +221 -0
  142. data/lib/crelate_client/models/custom_form_form_field_usage_form_definition.rb +206 -0
  143. data/lib/crelate_client/models/custom_form_layout_section.rb +199 -0
  144. data/lib/crelate_client/models/custom_form_save_response.rb +259 -0
  145. data/lib/crelate_client/models/document_collection.rb +212 -0
  146. data/lib/crelate_client/models/document_item.rb +316 -0
  147. data/lib/crelate_client/models/email_attachment.rb +213 -0
  148. data/lib/crelate_client/models/entity_document_options.rb +188 -0
  149. data/lib/crelate_client/models/entity_lookup.rb +286 -0
  150. data/lib/crelate_client/models/ext_integration_response_interview_response.rb +217 -0
  151. data/lib/crelate_client/models/ext_referral_request.rb +224 -0
  152. data/lib/crelate_client/models/ext_resume_candidate.rb +342 -0
  153. data/lib/crelate_client/models/ext_resume_career_builder_validate_credentials_response.rb +197 -0
  154. data/lib/crelate_client/models/ext_resume_org_state.rb +404 -0
  155. data/lib/crelate_client/models/ext_resume_package_pricing.rb +215 -0
  156. data/lib/crelate_client/models/ext_resume_package_update_request.rb +230 -0
  157. data/lib/crelate_client/models/ext_resume_search_response.rb +199 -0
  158. data/lib/crelate_client/models/ext_resume_view_response.rb +421 -0
  159. data/lib/crelate_client/models/fusebill_state_item.rb +197 -0
  160. data/lib/crelate_client/models/get_document_list_options.rb +231 -0
  161. data/lib/crelate_client/models/interview_request.rb +199 -0
  162. data/lib/crelate_client/models/interview_request_details.rb +255 -0
  163. data/lib/crelate_client/models/interview_response.rb +311 -0
  164. data/lib/crelate_client/models/job_post_request.rb +197 -0
  165. data/lib/crelate_client/models/job_response.rb +251 -0
  166. data/lib/crelate_client/models/multi_entity_lookup.rb +190 -0
  167. data/lib/crelate_client/models/org_audit_log_event.rb +314 -0
  168. data/lib/crelate_client/models/post_purchase_request.rb +224 -0
  169. data/lib/crelate_client/models/public_api_attachment_response.rb +287 -0
  170. data/lib/crelate_client/models/public_api_attachment_response_list.rb +199 -0
  171. data/lib/crelate_client/models/public_api_document_type.rb +208 -0
  172. data/lib/crelate_client/models/public_api_get_account_response.rb +889 -0
  173. data/lib/crelate_client/models/public_api_get_account_response_list.rb +199 -0
  174. data/lib/crelate_client/models/public_api_get_contact_job.rb +233 -0
  175. data/lib/crelate_client/models/public_api_get_contact_response.rb +1485 -0
  176. data/lib/crelate_client/models/public_api_get_contact_response_list.rb +199 -0
  177. data/lib/crelate_client/models/public_api_get_job_contact.rb +233 -0
  178. data/lib/crelate_client/models/public_api_get_job_list_response.rb +199 -0
  179. data/lib/crelate_client/models/public_api_get_job_posting_list_response.rb +199 -0
  180. data/lib/crelate_client/models/public_api_get_job_posting_response.rb +379 -0
  181. data/lib/crelate_client/models/public_api_get_job_posting_search_response.rb +190 -0
  182. data/lib/crelate_client/models/public_api_get_job_posting_search_result.rb +278 -0
  183. data/lib/crelate_client/models/public_api_get_job_response.rb +1267 -0
  184. data/lib/crelate_client/models/public_api_get_note_response.rb +307 -0
  185. data/lib/crelate_client/models/public_api_get_task_response.rb +325 -0
  186. data/lib/crelate_client/models/public_api_id_response.rb +188 -0
  187. data/lib/crelate_client/models/public_api_placement_response.rb +404 -0
  188. data/lib/crelate_client/models/public_api_placement_response_list.rb +199 -0
  189. data/lib/crelate_client/models/public_api_record_owner.rb +206 -0
  190. data/lib/crelate_client/models/public_api_save_account_request.rb +786 -0
  191. data/lib/crelate_client/models/public_api_save_attachment_request.rb +233 -0
  192. data/lib/crelate_client/models/public_api_save_contact_request.rb +1373 -0
  193. data/lib/crelate_client/models/public_api_save_job_application_request.rb +233 -0
  194. data/lib/crelate_client/models/public_api_save_job_posting_request.rb +287 -0
  195. data/lib/crelate_client/models/public_api_save_job_request.rb +975 -0
  196. data/lib/crelate_client/models/public_api_save_job_request_job_type.rb +197 -0
  197. data/lib/crelate_client/models/public_api_save_note_request.rb +215 -0
  198. data/lib/crelate_client/models/public_api_save_task_request.rb +233 -0
  199. data/lib/crelate_client/models/public_api_save_workflow_item_status_request.rb +197 -0
  200. data/lib/crelate_client/models/public_api_tag_category.rb +197 -0
  201. data/lib/crelate_client/models/public_api_workflow_status.rb +224 -0
  202. data/lib/crelate_client/models/public_api_workflow_type.rb +197 -0
  203. data/lib/crelate_client/models/question.rb +233 -0
  204. data/lib/crelate_client/models/question_set_response.rb +226 -0
  205. data/lib/crelate_client/models/save_ext_credential_response.rb +206 -0
  206. data/lib/crelate_client/models/search_contact.rb +215 -0
  207. data/lib/crelate_client/models/send_email_response.rb +235 -0
  208. data/lib/crelate_client/models/send_submittal_detail.rb +217 -0
  209. data/lib/crelate_client/models/share_link.rb +266 -0
  210. data/lib/crelate_client/models/signup_information.rb +287 -0
  211. data/lib/crelate_client/models/sms_plivo_message_received_request.rb +251 -0
  212. data/lib/crelate_client/models/sms_plivo_message_status_received_request.rb +269 -0
  213. data/lib/crelate_client/models/sms_plivo_voice_answer_request.rb +233 -0
  214. data/lib/crelate_client/models/sms_plivo_voice_hangup_request.rb +287 -0
  215. data/lib/crelate_client/models/spark_hire_response_info_interview_response.rb +215 -0
  216. data/lib/crelate_client/models/spark_hire_response_info_job_response.rb +215 -0
  217. data/lib/crelate_client/models/spark_hire_response_info_question_set_response.rb +215 -0
  218. data/lib/crelate_client/models/user_response.rb +224 -0
  219. data/lib/crelate_client/models/wayup_data.rb +267 -0
  220. data/lib/crelate_client/models/webhook_delete_response.rb +188 -0
  221. data/lib/crelate_client/models/zip_apply_data.rb +267 -0
  222. data/lib/crelate_client/version.rb +15 -0
  223. data/lib/crelate_client.rb +143 -0
  224. data/spec/api/companies_api_spec.rb +273 -0
  225. data/spec/api/contacts_api_spec.rb +358 -0
  226. data/spec/api/domain_api_spec.rb +83 -0
  227. data/spec/api/job_postings_api_spec.rb +131 -0
  228. data/spec/api/jobs_api_spec.rb +346 -0
  229. data/spec/api/notes_api_spec.rb +88 -0
  230. data/spec/api/tasks_api_spec.rb +88 -0
  231. data/spec/api_client_spec.rb +226 -0
  232. data/spec/configuration_spec.rb +42 -0
  233. data/spec/models/assigned_to_request_spec.rb +48 -0
  234. data/spec/models/assigned_to_spec.rb +60 -0
  235. data/spec/models/board_parameters_spec.rb +48 -0
  236. data/spec/models/broadcast_message_create_request_spec.rb +48 -0
  237. data/spec/models/broadcast_message_spec.rb +88 -0
  238. data/spec/models/company_spec.rb +60 -0
  239. data/spec/models/compliance_settings_payload_spec.rb +42 -0
  240. data/spec/models/consent_request_payload_spec.rb +48 -0
  241. data/spec/models/crelate_action_payload_spec.rb +54 -0
  242. data/spec/models/crelate_action_spec.rb +82 -0
  243. data/spec/models/crelate_details_spec.rb +54 -0
  244. data/spec/models/custom_form_completed_form_spec.rb +60 -0
  245. data/spec/models/custom_form_definition_entities_spec.rb +48 -0
  246. data/spec/models/custom_form_definition_spec.rb +90 -0
  247. data/spec/models/custom_form_form_definition_usage_spec.rb +54 -0
  248. data/spec/models/custom_form_form_defintion_usage_jobs_spec.rb +48 -0
  249. data/spec/models/custom_form_form_field_usage_form_definition_spec.rb +54 -0
  250. data/spec/models/custom_form_form_field_usage_spec.rb +60 -0
  251. data/spec/models/custom_form_layout_section_spec.rb +48 -0
  252. data/spec/models/custom_form_save_response_spec.rb +70 -0
  253. data/spec/models/document_collection_spec.rb +54 -0
  254. data/spec/models/document_item_spec.rb +126 -0
  255. data/spec/models/email_attachment_spec.rb +48 -0
  256. data/spec/models/entity_document_options_spec.rb +42 -0
  257. data/spec/models/entity_lookup_spec.rb +88 -0
  258. data/spec/models/ext_integration_response_interview_response_spec.rb +60 -0
  259. data/spec/models/ext_referral_request_spec.rb +66 -0
  260. data/spec/models/ext_resume_candidate_spec.rb +124 -0
  261. data/spec/models/ext_resume_career_builder_validate_credentials_response_spec.rb +48 -0
  262. data/spec/models/ext_resume_org_state_spec.rb +164 -0
  263. data/spec/models/ext_resume_package_pricing_spec.rb +60 -0
  264. data/spec/models/ext_resume_package_update_request_spec.rb +52 -0
  265. data/spec/models/ext_resume_search_response_spec.rb +48 -0
  266. data/spec/models/ext_resume_view_response_spec.rb +178 -0
  267. data/spec/models/fusebill_state_item_spec.rb +48 -0
  268. data/spec/models/get_document_list_options_spec.rb +58 -0
  269. data/spec/models/interview_request_details_spec.rb +84 -0
  270. data/spec/models/interview_request_spec.rb +48 -0
  271. data/spec/models/interview_response_spec.rb +106 -0
  272. data/spec/models/job_post_request_spec.rb +48 -0
  273. data/spec/models/job_response_spec.rb +84 -0
  274. data/spec/models/multi_entity_lookup_spec.rb +42 -0
  275. data/spec/models/org_audit_log_event_spec.rb +126 -0
  276. data/spec/models/post_purchase_request_spec.rb +66 -0
  277. data/spec/models/public_api_attachment_response_list_spec.rb +48 -0
  278. data/spec/models/public_api_attachment_response_spec.rb +108 -0
  279. data/spec/models/public_api_document_type_spec.rb +54 -0
  280. data/spec/models/public_api_get_account_response_list_spec.rb +48 -0
  281. data/spec/models/public_api_get_account_response_spec.rb +504 -0
  282. data/spec/models/public_api_get_contact_job_spec.rb +72 -0
  283. data/spec/models/public_api_get_contact_response_list_spec.rb +48 -0
  284. data/spec/models/public_api_get_contact_response_spec.rb +900 -0
  285. data/spec/models/public_api_get_job_contact_spec.rb +72 -0
  286. data/spec/models/public_api_get_job_list_response_spec.rb +48 -0
  287. data/spec/models/public_api_get_job_posting_list_response_spec.rb +48 -0
  288. data/spec/models/public_api_get_job_posting_response_spec.rb +168 -0
  289. data/spec/models/public_api_get_job_posting_search_response_spec.rb +42 -0
  290. data/spec/models/public_api_get_job_posting_search_result_spec.rb +102 -0
  291. data/spec/models/public_api_get_job_response_spec.rb +756 -0
  292. data/spec/models/public_api_get_note_response_spec.rb +120 -0
  293. data/spec/models/public_api_get_task_response_spec.rb +132 -0
  294. data/spec/models/public_api_id_response_spec.rb +42 -0
  295. data/spec/models/public_api_placement_response_list_spec.rb +48 -0
  296. data/spec/models/public_api_placement_response_spec.rb +186 -0
  297. data/spec/models/public_api_record_owner_spec.rb +54 -0
  298. data/spec/models/public_api_save_account_request_spec.rb +438 -0
  299. data/spec/models/public_api_save_attachment_request_spec.rb +72 -0
  300. data/spec/models/public_api_save_contact_request_spec.rb +828 -0
  301. data/spec/models/public_api_save_job_application_request_spec.rb +72 -0
  302. data/spec/models/public_api_save_job_posting_request_spec.rb +108 -0
  303. data/spec/models/public_api_save_job_request_job_type_spec.rb +48 -0
  304. data/spec/models/public_api_save_job_request_spec.rb +564 -0
  305. data/spec/models/public_api_save_note_request_spec.rb +60 -0
  306. data/spec/models/public_api_save_task_request_spec.rb +72 -0
  307. data/spec/models/public_api_save_workflow_item_status_request_spec.rb +48 -0
  308. data/spec/models/public_api_tag_category_spec.rb +48 -0
  309. data/spec/models/public_api_workflow_status_spec.rb +66 -0
  310. data/spec/models/public_api_workflow_type_spec.rb +48 -0
  311. data/spec/models/question_set_response_spec.rb +66 -0
  312. data/spec/models/question_spec.rb +72 -0
  313. data/spec/models/save_ext_credential_response_spec.rb +54 -0
  314. data/spec/models/search_contact_spec.rb +60 -0
  315. data/spec/models/send_email_response_spec.rb +72 -0
  316. data/spec/models/send_submittal_detail_spec.rb +60 -0
  317. data/spec/models/share_link_spec.rb +76 -0
  318. data/spec/models/signup_information_spec.rb +108 -0
  319. data/spec/models/sms_plivo_message_received_request_spec.rb +84 -0
  320. data/spec/models/sms_plivo_message_status_received_request_spec.rb +96 -0
  321. data/spec/models/sms_plivo_voice_answer_request_spec.rb +72 -0
  322. data/spec/models/sms_plivo_voice_hangup_request_spec.rb +108 -0
  323. data/spec/models/spark_hire_response_info_interview_response_spec.rb +60 -0
  324. data/spec/models/spark_hire_response_info_job_response_spec.rb +60 -0
  325. data/spec/models/spark_hire_response_info_question_set_response_spec.rb +60 -0
  326. data/spec/models/user_response_spec.rb +66 -0
  327. data/spec/models/wayup_data_spec.rb +84 -0
  328. data/spec/models/webhook_delete_response_spec.rb +42 -0
  329. data/spec/models/zip_apply_data_spec.rb +84 -0
  330. data/spec/spec_helper.rb +111 -0
  331. metadata +654 -0
@@ -0,0 +1,1494 @@
1
+ =begin
2
+ #Crelate API Reference
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module CrelateClient
16
+ class JobsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # delete a job
24
+ #
25
+ # @param job_id identifier
26
+ # @param api_key crelate api key
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [Object]
29
+ def public_api_delete_job(job_id, api_key, opts = {})
30
+ data, _status_code, _headers = public_api_delete_job_with_http_info(job_id, api_key, opts)
31
+ return data
32
+ end
33
+
34
+ # delete a job
35
+ #
36
+ # @param job_id identifier
37
+ # @param api_key crelate api key
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
40
+ def public_api_delete_job_with_http_info(job_id, api_key, opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_delete_job ..."
43
+ end
44
+ # verify the required parameter 'job_id' is set
45
+ if @api_client.config.client_side_validation && job_id.nil?
46
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_delete_job"
47
+ end
48
+ # verify the required parameter 'api_key' is set
49
+ if @api_client.config.client_side_validation && api_key.nil?
50
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_delete_job"
51
+ end
52
+ # resource path
53
+ local_var_path = "/api/pub/v1/jobs/{jobId}".sub('{' + 'jobId' + '}', job_id.to_s)
54
+
55
+ # query parameters
56
+ query_params = {}
57
+ query_params[:'api_key'] = api_key
58
+
59
+ # header parameters
60
+ header_params = {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
63
+
64
+ # form parameters
65
+ form_params = {}
66
+
67
+ # http body (model)
68
+ post_body = nil
69
+ auth_names = []
70
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => 'Object')
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: JobsApi#public_api_delete_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # delete an attachment for a job
84
+ #
85
+ # @param job_id job identifier
86
+ # @param attachment_id attachment identifier
87
+ # @param api_key crelate api key
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [Object]
90
+ def public_api_delete_job_attachment(job_id, attachment_id, api_key, opts = {})
91
+ data, _status_code, _headers = public_api_delete_job_attachment_with_http_info(job_id, attachment_id, api_key, opts)
92
+ return data
93
+ end
94
+
95
+ # delete an attachment for a job
96
+ #
97
+ # @param job_id job identifier
98
+ # @param attachment_id attachment identifier
99
+ # @param api_key crelate api key
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
102
+ def public_api_delete_job_attachment_with_http_info(job_id, attachment_id, api_key, opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_delete_job_attachment ..."
105
+ end
106
+ # verify the required parameter 'job_id' is set
107
+ if @api_client.config.client_side_validation && job_id.nil?
108
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_delete_job_attachment"
109
+ end
110
+ # verify the required parameter 'attachment_id' is set
111
+ if @api_client.config.client_side_validation && attachment_id.nil?
112
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling JobsApi.public_api_delete_job_attachment"
113
+ end
114
+ # verify the required parameter 'api_key' is set
115
+ if @api_client.config.client_side_validation && api_key.nil?
116
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_delete_job_attachment"
117
+ end
118
+ # resource path
119
+ local_var_path = "/api/pub/v1/jobs/{jobId}/attachments/{attachmentId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
120
+
121
+ # query parameters
122
+ query_params = {}
123
+ query_params[:'api_key'] = api_key
124
+
125
+ # header parameters
126
+ header_params = {}
127
+ # HTTP header 'Accept' (if needed)
128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
129
+
130
+ # form parameters
131
+ form_params = {}
132
+
133
+ # http body (model)
134
+ post_body = nil
135
+ auth_names = []
136
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => 'Object')
143
+ if @api_client.config.debugging
144
+ @api_client.config.logger.debug "API called: JobsApi#public_api_delete_job_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ end
146
+ return data, status_code, headers
147
+ end
148
+
149
+ # delete a contact from a job for the recruiting workflow
150
+ #
151
+ # @param job_id
152
+ # @param contact_id
153
+ # @param api_key crelate api key
154
+ # @param [Hash] opts the optional parameters
155
+ # @return [Object]
156
+ def public_api_delete_job_contact(job_id, contact_id, api_key, opts = {})
157
+ data, _status_code, _headers = public_api_delete_job_contact_with_http_info(job_id, contact_id, api_key, opts)
158
+ return data
159
+ end
160
+
161
+ # delete a contact from a job for the recruiting workflow
162
+ #
163
+ # @param job_id
164
+ # @param contact_id
165
+ # @param api_key crelate api key
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
168
+ def public_api_delete_job_contact_with_http_info(job_id, contact_id, api_key, opts = {})
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_delete_job_contact ..."
171
+ end
172
+ # verify the required parameter 'job_id' is set
173
+ if @api_client.config.client_side_validation && job_id.nil?
174
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_delete_job_contact"
175
+ end
176
+ # verify the required parameter 'contact_id' is set
177
+ if @api_client.config.client_side_validation && contact_id.nil?
178
+ fail ArgumentError, "Missing the required parameter 'contact_id' when calling JobsApi.public_api_delete_job_contact"
179
+ end
180
+ # verify the required parameter 'api_key' is set
181
+ if @api_client.config.client_side_validation && api_key.nil?
182
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_delete_job_contact"
183
+ end
184
+ # resource path
185
+ local_var_path = "/api/pub/v1/jobs/{jobId}/contacts/{contactId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)
186
+
187
+ # query parameters
188
+ query_params = {}
189
+ query_params[:'api_key'] = api_key
190
+
191
+ # header parameters
192
+ header_params = {}
193
+ # HTTP header 'Accept' (if needed)
194
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
195
+
196
+ # form parameters
197
+ form_params = {}
198
+
199
+ # http body (model)
200
+ post_body = nil
201
+ auth_names = []
202
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
203
+ :header_params => header_params,
204
+ :query_params => query_params,
205
+ :form_params => form_params,
206
+ :body => post_body,
207
+ :auth_names => auth_names,
208
+ :return_type => 'Object')
209
+ if @api_client.config.debugging
210
+ @api_client.config.logger.debug "API called: JobsApi#public_api_delete_job_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
211
+ end
212
+ return data, status_code, headers
213
+ end
214
+
215
+ # delete a note for a job
216
+ #
217
+ # @param job_id identifier
218
+ # @param note_id
219
+ # @param api_key crelate api key
220
+ # @param [Hash] opts the optional parameters
221
+ # @return [Object]
222
+ def public_api_delete_job_note(job_id, note_id, api_key, opts = {})
223
+ data, _status_code, _headers = public_api_delete_job_note_with_http_info(job_id, note_id, api_key, opts)
224
+ return data
225
+ end
226
+
227
+ # delete a note for a job
228
+ #
229
+ # @param job_id identifier
230
+ # @param note_id
231
+ # @param api_key crelate api key
232
+ # @param [Hash] opts the optional parameters
233
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
234
+ def public_api_delete_job_note_with_http_info(job_id, note_id, api_key, opts = {})
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_delete_job_note ..."
237
+ end
238
+ # verify the required parameter 'job_id' is set
239
+ if @api_client.config.client_side_validation && job_id.nil?
240
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_delete_job_note"
241
+ end
242
+ # verify the required parameter 'note_id' is set
243
+ if @api_client.config.client_side_validation && note_id.nil?
244
+ fail ArgumentError, "Missing the required parameter 'note_id' when calling JobsApi.public_api_delete_job_note"
245
+ end
246
+ # verify the required parameter 'api_key' is set
247
+ if @api_client.config.client_side_validation && api_key.nil?
248
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_delete_job_note"
249
+ end
250
+ # resource path
251
+ local_var_path = "/api/pub/v1/jobs/{jobId}/notes/{noteId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
252
+
253
+ # query parameters
254
+ query_params = {}
255
+ query_params[:'api_key'] = api_key
256
+
257
+ # header parameters
258
+ header_params = {}
259
+ # HTTP header 'Accept' (if needed)
260
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
261
+
262
+ # form parameters
263
+ form_params = {}
264
+
265
+ # http body (model)
266
+ post_body = nil
267
+ auth_names = []
268
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
269
+ :header_params => header_params,
270
+ :query_params => query_params,
271
+ :form_params => form_params,
272
+ :body => post_body,
273
+ :auth_names => auth_names,
274
+ :return_type => 'Object')
275
+ if @api_client.config.debugging
276
+ @api_client.config.logger.debug "API called: JobsApi#public_api_delete_job_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
277
+ end
278
+ return data, status_code, headers
279
+ end
280
+
281
+ # delete a task for a job
282
+ #
283
+ # @param job_id
284
+ # @param task_id identifier
285
+ # @param api_key crelate api key
286
+ # @param [Hash] opts the optional parameters
287
+ # @return [Object]
288
+ def public_api_delete_job_task(job_id, task_id, api_key, opts = {})
289
+ data, _status_code, _headers = public_api_delete_job_task_with_http_info(job_id, task_id, api_key, opts)
290
+ return data
291
+ end
292
+
293
+ # delete a task for a job
294
+ #
295
+ # @param job_id
296
+ # @param task_id identifier
297
+ # @param api_key crelate api key
298
+ # @param [Hash] opts the optional parameters
299
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
300
+ def public_api_delete_job_task_with_http_info(job_id, task_id, api_key, opts = {})
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_delete_job_task ..."
303
+ end
304
+ # verify the required parameter 'job_id' is set
305
+ if @api_client.config.client_side_validation && job_id.nil?
306
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_delete_job_task"
307
+ end
308
+ # verify the required parameter 'task_id' is set
309
+ if @api_client.config.client_side_validation && task_id.nil?
310
+ fail ArgumentError, "Missing the required parameter 'task_id' when calling JobsApi.public_api_delete_job_task"
311
+ end
312
+ # verify the required parameter 'api_key' is set
313
+ if @api_client.config.client_side_validation && api_key.nil?
314
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_delete_job_task"
315
+ end
316
+ # resource path
317
+ local_var_path = "/api/pub/v1/jobs/{jobId}/tasks/{taskId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
318
+
319
+ # query parameters
320
+ query_params = {}
321
+ query_params[:'api_key'] = api_key
322
+
323
+ # header parameters
324
+ header_params = {}
325
+ # HTTP header 'Accept' (if needed)
326
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
327
+
328
+ # form parameters
329
+ form_params = {}
330
+
331
+ # http body (model)
332
+ post_body = nil
333
+ auth_names = []
334
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
335
+ :header_params => header_params,
336
+ :query_params => query_params,
337
+ :form_params => form_params,
338
+ :body => post_body,
339
+ :auth_names => auth_names,
340
+ :return_type => 'Object')
341
+ if @api_client.config.debugging
342
+ @api_client.config.logger.debug "API called: JobsApi#public_api_delete_job_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
343
+ end
344
+ return data, status_code, headers
345
+ end
346
+
347
+ # retrieve a job
348
+ #
349
+ # @param job_id identifier
350
+ # @param api_key crelate api key
351
+ # @param [Hash] opts the optional parameters
352
+ # @return [PublicApiGetJobResponse]
353
+ def public_api_get_job(job_id, api_key, opts = {})
354
+ data, _status_code, _headers = public_api_get_job_with_http_info(job_id, api_key, opts)
355
+ return data
356
+ end
357
+
358
+ # retrieve a job
359
+ #
360
+ # @param job_id identifier
361
+ # @param api_key crelate api key
362
+ # @param [Hash] opts the optional parameters
363
+ # @return [Array<(PublicApiGetJobResponse, Fixnum, Hash)>] PublicApiGetJobResponse data, response status code and response headers
364
+ def public_api_get_job_with_http_info(job_id, api_key, opts = {})
365
+ if @api_client.config.debugging
366
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_get_job ..."
367
+ end
368
+ # verify the required parameter 'job_id' is set
369
+ if @api_client.config.client_side_validation && job_id.nil?
370
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_get_job"
371
+ end
372
+ # verify the required parameter 'api_key' is set
373
+ if @api_client.config.client_side_validation && api_key.nil?
374
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_get_job"
375
+ end
376
+ # resource path
377
+ local_var_path = "/api/pub/v1/jobs/{jobId}".sub('{' + 'jobId' + '}', job_id.to_s)
378
+
379
+ # query parameters
380
+ query_params = {}
381
+ query_params[:'api_key'] = api_key
382
+
383
+ # header parameters
384
+ header_params = {}
385
+ # HTTP header 'Accept' (if needed)
386
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
387
+
388
+ # form parameters
389
+ form_params = {}
390
+
391
+ # http body (model)
392
+ post_body = nil
393
+ auth_names = []
394
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
395
+ :header_params => header_params,
396
+ :query_params => query_params,
397
+ :form_params => form_params,
398
+ :body => post_body,
399
+ :auth_names => auth_names,
400
+ :return_type => 'PublicApiGetJobResponse')
401
+ if @api_client.config.debugging
402
+ @api_client.config.logger.debug "API called: JobsApi#public_api_get_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
403
+ end
404
+ return data, status_code, headers
405
+ end
406
+
407
+ # get content for a specific attachment for a job
408
+ #
409
+ # @param job_id identifier
410
+ # @param attachment_id attachment identifier
411
+ # @param api_key crelate api key
412
+ # @param [Hash] opts the optional parameters
413
+ # @return [Object]
414
+ def public_api_get_job_attachment(job_id, attachment_id, api_key, opts = {})
415
+ data, _status_code, _headers = public_api_get_job_attachment_with_http_info(job_id, attachment_id, api_key, opts)
416
+ return data
417
+ end
418
+
419
+ # get content for a specific attachment for a job
420
+ #
421
+ # @param job_id identifier
422
+ # @param attachment_id attachment identifier
423
+ # @param api_key crelate api key
424
+ # @param [Hash] opts the optional parameters
425
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
426
+ def public_api_get_job_attachment_with_http_info(job_id, attachment_id, api_key, opts = {})
427
+ if @api_client.config.debugging
428
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_get_job_attachment ..."
429
+ end
430
+ # verify the required parameter 'job_id' is set
431
+ if @api_client.config.client_side_validation && job_id.nil?
432
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_get_job_attachment"
433
+ end
434
+ # verify the required parameter 'attachment_id' is set
435
+ if @api_client.config.client_side_validation && attachment_id.nil?
436
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling JobsApi.public_api_get_job_attachment"
437
+ end
438
+ # verify the required parameter 'api_key' is set
439
+ if @api_client.config.client_side_validation && api_key.nil?
440
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_get_job_attachment"
441
+ end
442
+ # resource path
443
+ local_var_path = "/api/pub/v1/jobs/{jobId}/attachments/{attachmentId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
444
+
445
+ # query parameters
446
+ query_params = {}
447
+ query_params[:'api_key'] = api_key
448
+
449
+ # header parameters
450
+ header_params = {}
451
+ # HTTP header 'Accept' (if needed)
452
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
453
+
454
+ # form parameters
455
+ form_params = {}
456
+
457
+ # http body (model)
458
+ post_body = nil
459
+ auth_names = []
460
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
461
+ :header_params => header_params,
462
+ :query_params => query_params,
463
+ :form_params => form_params,
464
+ :body => post_body,
465
+ :auth_names => auth_names,
466
+ :return_type => 'Object')
467
+ if @api_client.config.debugging
468
+ @api_client.config.logger.debug "API called: JobsApi#public_api_get_job_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
469
+ end
470
+ return data, status_code, headers
471
+ end
472
+
473
+ # get all attachment metadata for a company
474
+ #
475
+ # @param job_id identifier
476
+ # @param api_key crelate api key
477
+ # @param [Hash] opts the optional parameters
478
+ # @return [PublicApiAttachmentResponseList]
479
+ def public_api_get_job_attachments(job_id, api_key, opts = {})
480
+ data, _status_code, _headers = public_api_get_job_attachments_with_http_info(job_id, api_key, opts)
481
+ return data
482
+ end
483
+
484
+ # get all attachment metadata for a company
485
+ #
486
+ # @param job_id identifier
487
+ # @param api_key crelate api key
488
+ # @param [Hash] opts the optional parameters
489
+ # @return [Array<(PublicApiAttachmentResponseList, Fixnum, Hash)>] PublicApiAttachmentResponseList data, response status code and response headers
490
+ def public_api_get_job_attachments_with_http_info(job_id, api_key, opts = {})
491
+ if @api_client.config.debugging
492
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_get_job_attachments ..."
493
+ end
494
+ # verify the required parameter 'job_id' is set
495
+ if @api_client.config.client_side_validation && job_id.nil?
496
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_get_job_attachments"
497
+ end
498
+ # verify the required parameter 'api_key' is set
499
+ if @api_client.config.client_side_validation && api_key.nil?
500
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_get_job_attachments"
501
+ end
502
+ # resource path
503
+ local_var_path = "/api/pub/v1/jobs/{jobId}/attachments".sub('{' + 'jobId' + '}', job_id.to_s)
504
+
505
+ # query parameters
506
+ query_params = {}
507
+ query_params[:'api_key'] = api_key
508
+
509
+ # header parameters
510
+ header_params = {}
511
+ # HTTP header 'Accept' (if needed)
512
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
513
+
514
+ # form parameters
515
+ form_params = {}
516
+
517
+ # http body (model)
518
+ post_body = nil
519
+ auth_names = []
520
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
521
+ :header_params => header_params,
522
+ :query_params => query_params,
523
+ :form_params => form_params,
524
+ :body => post_body,
525
+ :auth_names => auth_names,
526
+ :return_type => 'PublicApiAttachmentResponseList')
527
+ if @api_client.config.debugging
528
+ @api_client.config.logger.debug "API called: JobsApi#public_api_get_job_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
529
+ end
530
+ return data, status_code, headers
531
+ end
532
+
533
+ # get contacts associated with job
534
+ #
535
+ # @param job_id contact identifier
536
+ # @param api_key crelate api key
537
+ # @param [Hash] opts the optional parameters
538
+ # @return [Array<PublicApiGetJobContact>]
539
+ def public_api_get_job_contacts(job_id, api_key, opts = {})
540
+ data, _status_code, _headers = public_api_get_job_contacts_with_http_info(job_id, api_key, opts)
541
+ return data
542
+ end
543
+
544
+ # get contacts associated with job
545
+ #
546
+ # @param job_id contact identifier
547
+ # @param api_key crelate api key
548
+ # @param [Hash] opts the optional parameters
549
+ # @return [Array<(Array<PublicApiGetJobContact>, Fixnum, Hash)>] Array<PublicApiGetJobContact> data, response status code and response headers
550
+ def public_api_get_job_contacts_with_http_info(job_id, api_key, opts = {})
551
+ if @api_client.config.debugging
552
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_get_job_contacts ..."
553
+ end
554
+ # verify the required parameter 'job_id' is set
555
+ if @api_client.config.client_side_validation && job_id.nil?
556
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_get_job_contacts"
557
+ end
558
+ # verify the required parameter 'api_key' is set
559
+ if @api_client.config.client_side_validation && api_key.nil?
560
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_get_job_contacts"
561
+ end
562
+ # resource path
563
+ local_var_path = "/api/pub/v1/jobs/{jobId}/contacts".sub('{' + 'jobId' + '}', job_id.to_s)
564
+
565
+ # query parameters
566
+ query_params = {}
567
+ query_params[:'api_key'] = api_key
568
+
569
+ # header parameters
570
+ header_params = {}
571
+ # HTTP header 'Accept' (if needed)
572
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
573
+
574
+ # form parameters
575
+ form_params = {}
576
+
577
+ # http body (model)
578
+ post_body = nil
579
+ auth_names = []
580
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
581
+ :header_params => header_params,
582
+ :query_params => query_params,
583
+ :form_params => form_params,
584
+ :body => post_body,
585
+ :auth_names => auth_names,
586
+ :return_type => 'Array<PublicApiGetJobContact>')
587
+ if @api_client.config.debugging
588
+ @api_client.config.logger.debug "API called: JobsApi#public_api_get_job_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
589
+ end
590
+ return data, status_code, headers
591
+ end
592
+
593
+ # get a note for a contact
594
+ #
595
+ # @param job_id identifier
596
+ # @param note_id
597
+ # @param api_key crelate api key
598
+ # @param [Hash] opts the optional parameters
599
+ # @return [PublicApiGetNoteResponse]
600
+ def public_api_get_job_note(job_id, note_id, api_key, opts = {})
601
+ data, _status_code, _headers = public_api_get_job_note_with_http_info(job_id, note_id, api_key, opts)
602
+ return data
603
+ end
604
+
605
+ # get a note for a contact
606
+ #
607
+ # @param job_id identifier
608
+ # @param note_id
609
+ # @param api_key crelate api key
610
+ # @param [Hash] opts the optional parameters
611
+ # @return [Array<(PublicApiGetNoteResponse, Fixnum, Hash)>] PublicApiGetNoteResponse data, response status code and response headers
612
+ def public_api_get_job_note_with_http_info(job_id, note_id, api_key, opts = {})
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_get_job_note ..."
615
+ end
616
+ # verify the required parameter 'job_id' is set
617
+ if @api_client.config.client_side_validation && job_id.nil?
618
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_get_job_note"
619
+ end
620
+ # verify the required parameter 'note_id' is set
621
+ if @api_client.config.client_side_validation && note_id.nil?
622
+ fail ArgumentError, "Missing the required parameter 'note_id' when calling JobsApi.public_api_get_job_note"
623
+ end
624
+ # verify the required parameter 'api_key' is set
625
+ if @api_client.config.client_side_validation && api_key.nil?
626
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_get_job_note"
627
+ end
628
+ # resource path
629
+ local_var_path = "/api/pub/v1/jobs/{jobId}/notes/{noteId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
630
+
631
+ # query parameters
632
+ query_params = {}
633
+ query_params[:'api_key'] = api_key
634
+
635
+ # header parameters
636
+ header_params = {}
637
+ # HTTP header 'Accept' (if needed)
638
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
639
+
640
+ # form parameters
641
+ form_params = {}
642
+
643
+ # http body (model)
644
+ post_body = nil
645
+ auth_names = []
646
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
647
+ :header_params => header_params,
648
+ :query_params => query_params,
649
+ :form_params => form_params,
650
+ :body => post_body,
651
+ :auth_names => auth_names,
652
+ :return_type => 'PublicApiGetNoteResponse')
653
+ if @api_client.config.debugging
654
+ @api_client.config.logger.debug "API called: JobsApi#public_api_get_job_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
655
+ end
656
+ return data, status_code, headers
657
+ end
658
+
659
+ # Get placements associated with a job Please Note: TimeToFill is the amount of Days it took to fill the position
660
+ #
661
+ # @param job_id id for job
662
+ # @param api_key crelate api key
663
+ # @param [Hash] opts the optional parameters
664
+ # @option opts [Integer] :skip skip number of records, default 0
665
+ # @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
666
+ # @return [PublicApiPlacementResponseList]
667
+ def public_api_get_job_placements(job_id, api_key, opts = {})
668
+ data, _status_code, _headers = public_api_get_job_placements_with_http_info(job_id, api_key, opts)
669
+ return data
670
+ end
671
+
672
+ # Get placements associated with a job Please Note: TimeToFill is the amount of Days it took to fill the position
673
+ #
674
+ # @param job_id id for job
675
+ # @param api_key crelate api key
676
+ # @param [Hash] opts the optional parameters
677
+ # @option opts [Integer] :skip skip number of records, default 0
678
+ # @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
679
+ # @return [Array<(PublicApiPlacementResponseList, Fixnum, Hash)>] PublicApiPlacementResponseList data, response status code and response headers
680
+ def public_api_get_job_placements_with_http_info(job_id, api_key, opts = {})
681
+ if @api_client.config.debugging
682
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_get_job_placements ..."
683
+ end
684
+ # verify the required parameter 'job_id' is set
685
+ if @api_client.config.client_side_validation && job_id.nil?
686
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_get_job_placements"
687
+ end
688
+ # verify the required parameter 'api_key' is set
689
+ if @api_client.config.client_side_validation && api_key.nil?
690
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_get_job_placements"
691
+ end
692
+ # resource path
693
+ local_var_path = "/api/pub/v1/jobs/{jobId}/placements".sub('{' + 'jobId' + '}', job_id.to_s)
694
+
695
+ # query parameters
696
+ query_params = {}
697
+ query_params[:'api_key'] = api_key
698
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
699
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
700
+
701
+ # header parameters
702
+ header_params = {}
703
+ # HTTP header 'Accept' (if needed)
704
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
705
+
706
+ # form parameters
707
+ form_params = {}
708
+
709
+ # http body (model)
710
+ post_body = nil
711
+ auth_names = []
712
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
713
+ :header_params => header_params,
714
+ :query_params => query_params,
715
+ :form_params => form_params,
716
+ :body => post_body,
717
+ :auth_names => auth_names,
718
+ :return_type => 'PublicApiPlacementResponseList')
719
+ if @api_client.config.debugging
720
+ @api_client.config.logger.debug "API called: JobsApi#public_api_get_job_placements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
721
+ end
722
+ return data, status_code, headers
723
+ end
724
+
725
+ # get a task for a job
726
+ #
727
+ # @param job_id
728
+ # @param task_id identifier
729
+ # @param api_key crelate api key
730
+ # @param [Hash] opts the optional parameters
731
+ # @return [PublicApiGetTaskResponse]
732
+ def public_api_get_job_task(job_id, task_id, api_key, opts = {})
733
+ data, _status_code, _headers = public_api_get_job_task_with_http_info(job_id, task_id, api_key, opts)
734
+ return data
735
+ end
736
+
737
+ # get a task for a job
738
+ #
739
+ # @param job_id
740
+ # @param task_id identifier
741
+ # @param api_key crelate api key
742
+ # @param [Hash] opts the optional parameters
743
+ # @return [Array<(PublicApiGetTaskResponse, Fixnum, Hash)>] PublicApiGetTaskResponse data, response status code and response headers
744
+ def public_api_get_job_task_with_http_info(job_id, task_id, api_key, opts = {})
745
+ if @api_client.config.debugging
746
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_get_job_task ..."
747
+ end
748
+ # verify the required parameter 'job_id' is set
749
+ if @api_client.config.client_side_validation && job_id.nil?
750
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_get_job_task"
751
+ end
752
+ # verify the required parameter 'task_id' is set
753
+ if @api_client.config.client_side_validation && task_id.nil?
754
+ fail ArgumentError, "Missing the required parameter 'task_id' when calling JobsApi.public_api_get_job_task"
755
+ end
756
+ # verify the required parameter 'api_key' is set
757
+ if @api_client.config.client_side_validation && api_key.nil?
758
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_get_job_task"
759
+ end
760
+ # resource path
761
+ local_var_path = "/api/pub/v1/jobs/{jobId}/tasks/{taskId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
762
+
763
+ # query parameters
764
+ query_params = {}
765
+ query_params[:'api_key'] = api_key
766
+
767
+ # header parameters
768
+ header_params = {}
769
+ # HTTP header 'Accept' (if needed)
770
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
771
+
772
+ # form parameters
773
+ form_params = {}
774
+
775
+ # http body (model)
776
+ post_body = nil
777
+ auth_names = []
778
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
779
+ :header_params => header_params,
780
+ :query_params => query_params,
781
+ :form_params => form_params,
782
+ :body => post_body,
783
+ :auth_names => auth_names,
784
+ :return_type => 'PublicApiGetTaskResponse')
785
+ if @api_client.config.debugging
786
+ @api_client.config.logger.debug "API called: JobsApi#public_api_get_job_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
787
+ end
788
+ return data, status_code, headers
789
+ end
790
+
791
+ # retrieve a list of jobs updated within a certain time frame
792
+ #
793
+ # @param modified modified within x number of minutes ago
794
+ # @param api_key crelate api key
795
+ # @param [Hash] opts the optional parameters
796
+ # @option opts [Integer] :skip skip number of records, default 0
797
+ # @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
798
+ # @option opts [String] :sales_workflow_item_status_id id of sales workflow item status
799
+ # @option opts [String] :workflow_name name of sales workflow item status
800
+ # @return [PublicApiGetJobListResponse]
801
+ def public_api_get_jobs(modified, api_key, opts = {})
802
+ data, _status_code, _headers = public_api_get_jobs_with_http_info(modified, api_key, opts)
803
+ return data
804
+ end
805
+
806
+ # retrieve a list of jobs updated within a certain time frame
807
+ #
808
+ # @param modified modified within x number of minutes ago
809
+ # @param api_key crelate api key
810
+ # @param [Hash] opts the optional parameters
811
+ # @option opts [Integer] :skip skip number of records, default 0
812
+ # @option opts [Integer] :take retrieve x amount of records, limit 500, default 50
813
+ # @option opts [String] :sales_workflow_item_status_id id of sales workflow item status
814
+ # @option opts [String] :workflow_name name of sales workflow item status
815
+ # @return [Array<(PublicApiGetJobListResponse, Fixnum, Hash)>] PublicApiGetJobListResponse data, response status code and response headers
816
+ def public_api_get_jobs_with_http_info(modified, api_key, opts = {})
817
+ if @api_client.config.debugging
818
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_get_jobs ..."
819
+ end
820
+ # verify the required parameter 'modified' is set
821
+ if @api_client.config.client_side_validation && modified.nil?
822
+ fail ArgumentError, "Missing the required parameter 'modified' when calling JobsApi.public_api_get_jobs"
823
+ end
824
+ # verify the required parameter 'api_key' is set
825
+ if @api_client.config.client_side_validation && api_key.nil?
826
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_get_jobs"
827
+ end
828
+ # resource path
829
+ local_var_path = "/api/pub/v1/jobs/recent"
830
+
831
+ # query parameters
832
+ query_params = {}
833
+ query_params[:'modified'] = modified
834
+ query_params[:'api_key'] = api_key
835
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
836
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
837
+ query_params[:'salesWorkflowItemStatusId'] = opts[:'sales_workflow_item_status_id'] if !opts[:'sales_workflow_item_status_id'].nil?
838
+ query_params[:'workflowName'] = opts[:'workflow_name'] if !opts[:'workflow_name'].nil?
839
+
840
+ # header parameters
841
+ header_params = {}
842
+ # HTTP header 'Accept' (if needed)
843
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
844
+
845
+ # form parameters
846
+ form_params = {}
847
+
848
+ # http body (model)
849
+ post_body = nil
850
+ auth_names = []
851
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
852
+ :header_params => header_params,
853
+ :query_params => query_params,
854
+ :form_params => form_params,
855
+ :body => post_body,
856
+ :auth_names => auth_names,
857
+ :return_type => 'PublicApiGetJobListResponse')
858
+ if @api_client.config.debugging
859
+ @api_client.config.logger.debug "API called: JobsApi#public_api_get_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
860
+ end
861
+ return data, status_code, headers
862
+ end
863
+
864
+ # create a job
865
+ #
866
+ # @param api_key crelate api key
867
+ # @param request
868
+ # @param [Hash] opts the optional parameters
869
+ # @return [PublicApiIdResponse]
870
+ def public_api_post_job(api_key, request, opts = {})
871
+ data, _status_code, _headers = public_api_post_job_with_http_info(api_key, request, opts)
872
+ return data
873
+ end
874
+
875
+ # create a job
876
+ #
877
+ # @param api_key crelate api key
878
+ # @param request
879
+ # @param [Hash] opts the optional parameters
880
+ # @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
881
+ def public_api_post_job_with_http_info(api_key, request, opts = {})
882
+ if @api_client.config.debugging
883
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_post_job ..."
884
+ end
885
+ # verify the required parameter 'api_key' is set
886
+ if @api_client.config.client_side_validation && api_key.nil?
887
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_post_job"
888
+ end
889
+ # verify the required parameter 'request' is set
890
+ if @api_client.config.client_side_validation && request.nil?
891
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_post_job"
892
+ end
893
+ # resource path
894
+ local_var_path = "/api/pub/v1/jobs"
895
+
896
+ # query parameters
897
+ query_params = {}
898
+ query_params[:'api_key'] = api_key
899
+
900
+ # header parameters
901
+ header_params = {}
902
+ # HTTP header 'Accept' (if needed)
903
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
904
+ # HTTP header 'Content-Type'
905
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
906
+
907
+ # form parameters
908
+ form_params = {}
909
+
910
+ # http body (model)
911
+ post_body = @api_client.object_to_http_body(request)
912
+ auth_names = []
913
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
914
+ :header_params => header_params,
915
+ :query_params => query_params,
916
+ :form_params => form_params,
917
+ :body => post_body,
918
+ :auth_names => auth_names,
919
+ :return_type => 'PublicApiIdResponse')
920
+ if @api_client.config.debugging
921
+ @api_client.config.logger.debug "API called: JobsApi#public_api_post_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
922
+ end
923
+ return data, status_code, headers
924
+ end
925
+
926
+ # add an attachment to a job
927
+ #
928
+ # @param job_id identifier
929
+ # @param api_key crelate api key
930
+ # @param request
931
+ # @param [Hash] opts the optional parameters
932
+ # @return [PublicApiIdResponse]
933
+ def public_api_post_job_attachment(job_id, api_key, request, opts = {})
934
+ data, _status_code, _headers = public_api_post_job_attachment_with_http_info(job_id, api_key, request, opts)
935
+ return data
936
+ end
937
+
938
+ # add an attachment to a job
939
+ #
940
+ # @param job_id identifier
941
+ # @param api_key crelate api key
942
+ # @param request
943
+ # @param [Hash] opts the optional parameters
944
+ # @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
945
+ def public_api_post_job_attachment_with_http_info(job_id, api_key, request, opts = {})
946
+ if @api_client.config.debugging
947
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_post_job_attachment ..."
948
+ end
949
+ # verify the required parameter 'job_id' is set
950
+ if @api_client.config.client_side_validation && job_id.nil?
951
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_post_job_attachment"
952
+ end
953
+ # verify the required parameter 'api_key' is set
954
+ if @api_client.config.client_side_validation && api_key.nil?
955
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_post_job_attachment"
956
+ end
957
+ # verify the required parameter 'request' is set
958
+ if @api_client.config.client_side_validation && request.nil?
959
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_post_job_attachment"
960
+ end
961
+ # resource path
962
+ local_var_path = "/api/pub/v1/jobs/{jobId}/attachments".sub('{' + 'jobId' + '}', job_id.to_s)
963
+
964
+ # query parameters
965
+ query_params = {}
966
+ query_params[:'api_key'] = api_key
967
+
968
+ # header parameters
969
+ header_params = {}
970
+ # HTTP header 'Accept' (if needed)
971
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
972
+ # HTTP header 'Content-Type'
973
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
974
+
975
+ # form parameters
976
+ form_params = {}
977
+
978
+ # http body (model)
979
+ post_body = @api_client.object_to_http_body(request)
980
+ auth_names = []
981
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
982
+ :header_params => header_params,
983
+ :query_params => query_params,
984
+ :form_params => form_params,
985
+ :body => post_body,
986
+ :auth_names => auth_names,
987
+ :return_type => 'PublicApiIdResponse')
988
+ if @api_client.config.debugging
989
+ @api_client.config.logger.debug "API called: JobsApi#public_api_post_job_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
990
+ end
991
+ return data, status_code, headers
992
+ end
993
+
994
+ # move a contact into a job for the first time
995
+ #
996
+ # @param job_id identifier
997
+ # @param contact_id identifier
998
+ # @param api_key crelate api key
999
+ # @param request
1000
+ # @param [Hash] opts the optional parameters
1001
+ # @return [PublicApiIdResponse]
1002
+ def public_api_post_job_contact(job_id, contact_id, api_key, request, opts = {})
1003
+ data, _status_code, _headers = public_api_post_job_contact_with_http_info(job_id, contact_id, api_key, request, opts)
1004
+ return data
1005
+ end
1006
+
1007
+ # move a contact into a job for the first time
1008
+ #
1009
+ # @param job_id identifier
1010
+ # @param contact_id identifier
1011
+ # @param api_key crelate api key
1012
+ # @param request
1013
+ # @param [Hash] opts the optional parameters
1014
+ # @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
1015
+ def public_api_post_job_contact_with_http_info(job_id, contact_id, api_key, request, opts = {})
1016
+ if @api_client.config.debugging
1017
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_post_job_contact ..."
1018
+ end
1019
+ # verify the required parameter 'job_id' is set
1020
+ if @api_client.config.client_side_validation && job_id.nil?
1021
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_post_job_contact"
1022
+ end
1023
+ # verify the required parameter 'contact_id' is set
1024
+ if @api_client.config.client_side_validation && contact_id.nil?
1025
+ fail ArgumentError, "Missing the required parameter 'contact_id' when calling JobsApi.public_api_post_job_contact"
1026
+ end
1027
+ # verify the required parameter 'api_key' is set
1028
+ if @api_client.config.client_side_validation && api_key.nil?
1029
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_post_job_contact"
1030
+ end
1031
+ # verify the required parameter 'request' is set
1032
+ if @api_client.config.client_side_validation && request.nil?
1033
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_post_job_contact"
1034
+ end
1035
+ # resource path
1036
+ local_var_path = "/api/pub/v1/jobs/{jobId}/contacts/{contactId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)
1037
+
1038
+ # query parameters
1039
+ query_params = {}
1040
+ query_params[:'api_key'] = api_key
1041
+
1042
+ # header parameters
1043
+ header_params = {}
1044
+ # HTTP header 'Accept' (if needed)
1045
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
1046
+ # HTTP header 'Content-Type'
1047
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
1048
+
1049
+ # form parameters
1050
+ form_params = {}
1051
+
1052
+ # http body (model)
1053
+ post_body = @api_client.object_to_http_body(request)
1054
+ auth_names = []
1055
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1056
+ :header_params => header_params,
1057
+ :query_params => query_params,
1058
+ :form_params => form_params,
1059
+ :body => post_body,
1060
+ :auth_names => auth_names,
1061
+ :return_type => 'PublicApiIdResponse')
1062
+ if @api_client.config.debugging
1063
+ @api_client.config.logger.debug "API called: JobsApi#public_api_post_job_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1064
+ end
1065
+ return data, status_code, headers
1066
+ end
1067
+
1068
+ # create a note for a job
1069
+ #
1070
+ # @param job_id identifier
1071
+ # @param api_key crelate api key
1072
+ # @param request
1073
+ # @param [Hash] opts the optional parameters
1074
+ # @return [PublicApiIdResponse]
1075
+ def public_api_post_job_note(job_id, api_key, request, opts = {})
1076
+ data, _status_code, _headers = public_api_post_job_note_with_http_info(job_id, api_key, request, opts)
1077
+ return data
1078
+ end
1079
+
1080
+ # create a note for a job
1081
+ #
1082
+ # @param job_id identifier
1083
+ # @param api_key crelate api key
1084
+ # @param request
1085
+ # @param [Hash] opts the optional parameters
1086
+ # @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
1087
+ def public_api_post_job_note_with_http_info(job_id, api_key, request, opts = {})
1088
+ if @api_client.config.debugging
1089
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_post_job_note ..."
1090
+ end
1091
+ # verify the required parameter 'job_id' is set
1092
+ if @api_client.config.client_side_validation && job_id.nil?
1093
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_post_job_note"
1094
+ end
1095
+ # verify the required parameter 'api_key' is set
1096
+ if @api_client.config.client_side_validation && api_key.nil?
1097
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_post_job_note"
1098
+ end
1099
+ # verify the required parameter 'request' is set
1100
+ if @api_client.config.client_side_validation && request.nil?
1101
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_post_job_note"
1102
+ end
1103
+ # resource path
1104
+ local_var_path = "/api/pub/v1/jobs/{jobId}/notes".sub('{' + 'jobId' + '}', job_id.to_s)
1105
+
1106
+ # query parameters
1107
+ query_params = {}
1108
+ query_params[:'api_key'] = api_key
1109
+
1110
+ # header parameters
1111
+ header_params = {}
1112
+ # HTTP header 'Accept' (if needed)
1113
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
1114
+ # HTTP header 'Content-Type'
1115
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
1116
+
1117
+ # form parameters
1118
+ form_params = {}
1119
+
1120
+ # http body (model)
1121
+ post_body = @api_client.object_to_http_body(request)
1122
+ auth_names = []
1123
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1124
+ :header_params => header_params,
1125
+ :query_params => query_params,
1126
+ :form_params => form_params,
1127
+ :body => post_body,
1128
+ :auth_names => auth_names,
1129
+ :return_type => 'PublicApiIdResponse')
1130
+ if @api_client.config.debugging
1131
+ @api_client.config.logger.debug "API called: JobsApi#public_api_post_job_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1132
+ end
1133
+ return data, status_code, headers
1134
+ end
1135
+
1136
+ # create a task for a job
1137
+ #
1138
+ # @param job_id
1139
+ # @param api_key crelate api key
1140
+ # @param request
1141
+ # @param [Hash] opts the optional parameters
1142
+ # @return [PublicApiIdResponse]
1143
+ def public_api_post_job_task(job_id, api_key, request, opts = {})
1144
+ data, _status_code, _headers = public_api_post_job_task_with_http_info(job_id, api_key, request, opts)
1145
+ return data
1146
+ end
1147
+
1148
+ # create a task for a job
1149
+ #
1150
+ # @param job_id
1151
+ # @param api_key crelate api key
1152
+ # @param request
1153
+ # @param [Hash] opts the optional parameters
1154
+ # @return [Array<(PublicApiIdResponse, Fixnum, Hash)>] PublicApiIdResponse data, response status code and response headers
1155
+ def public_api_post_job_task_with_http_info(job_id, api_key, request, opts = {})
1156
+ if @api_client.config.debugging
1157
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_post_job_task ..."
1158
+ end
1159
+ # verify the required parameter 'job_id' is set
1160
+ if @api_client.config.client_side_validation && job_id.nil?
1161
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_post_job_task"
1162
+ end
1163
+ # verify the required parameter 'api_key' is set
1164
+ if @api_client.config.client_side_validation && api_key.nil?
1165
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_post_job_task"
1166
+ end
1167
+ # verify the required parameter 'request' is set
1168
+ if @api_client.config.client_side_validation && request.nil?
1169
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_post_job_task"
1170
+ end
1171
+ # resource path
1172
+ local_var_path = "/api/pub/v1/jobs/{jobId}/tasks".sub('{' + 'jobId' + '}', job_id.to_s)
1173
+
1174
+ # query parameters
1175
+ query_params = {}
1176
+ query_params[:'api_key'] = api_key
1177
+
1178
+ # header parameters
1179
+ header_params = {}
1180
+ # HTTP header 'Accept' (if needed)
1181
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
1182
+ # HTTP header 'Content-Type'
1183
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
1184
+
1185
+ # form parameters
1186
+ form_params = {}
1187
+
1188
+ # http body (model)
1189
+ post_body = @api_client.object_to_http_body(request)
1190
+ auth_names = []
1191
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1192
+ :header_params => header_params,
1193
+ :query_params => query_params,
1194
+ :form_params => form_params,
1195
+ :body => post_body,
1196
+ :auth_names => auth_names,
1197
+ :return_type => 'PublicApiIdResponse')
1198
+ if @api_client.config.debugging
1199
+ @api_client.config.logger.debug "API called: JobsApi#public_api_post_job_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1200
+ end
1201
+ return data, status_code, headers
1202
+ end
1203
+
1204
+ # update a job
1205
+ # Replaces all fields. To partially update a job, first retrieve it using the GET method, apply changes and submit to the PUT method.
1206
+ # @param job_id identifier
1207
+ # @param api_key crelate api key
1208
+ # @param request
1209
+ # @param [Hash] opts the optional parameters
1210
+ # @return [Object]
1211
+ def public_api_put_job(job_id, api_key, request, opts = {})
1212
+ data, _status_code, _headers = public_api_put_job_with_http_info(job_id, api_key, request, opts)
1213
+ return data
1214
+ end
1215
+
1216
+ # update a job
1217
+ # Replaces all fields. To partially update a job, first retrieve it using the GET method, apply changes and submit to the PUT method.
1218
+ # @param job_id identifier
1219
+ # @param api_key crelate api key
1220
+ # @param request
1221
+ # @param [Hash] opts the optional parameters
1222
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
1223
+ def public_api_put_job_with_http_info(job_id, api_key, request, opts = {})
1224
+ if @api_client.config.debugging
1225
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_put_job ..."
1226
+ end
1227
+ # verify the required parameter 'job_id' is set
1228
+ if @api_client.config.client_side_validation && job_id.nil?
1229
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_put_job"
1230
+ end
1231
+ # verify the required parameter 'api_key' is set
1232
+ if @api_client.config.client_side_validation && api_key.nil?
1233
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_put_job"
1234
+ end
1235
+ # verify the required parameter 'request' is set
1236
+ if @api_client.config.client_side_validation && request.nil?
1237
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_put_job"
1238
+ end
1239
+ # resource path
1240
+ local_var_path = "/api/pub/v1/jobs/{jobId}".sub('{' + 'jobId' + '}', job_id.to_s)
1241
+
1242
+ # query parameters
1243
+ query_params = {}
1244
+ query_params[:'api_key'] = api_key
1245
+
1246
+ # header parameters
1247
+ header_params = {}
1248
+ # HTTP header 'Accept' (if needed)
1249
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
1250
+ # HTTP header 'Content-Type'
1251
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
1252
+
1253
+ # form parameters
1254
+ form_params = {}
1255
+
1256
+ # http body (model)
1257
+ post_body = @api_client.object_to_http_body(request)
1258
+ auth_names = []
1259
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1260
+ :header_params => header_params,
1261
+ :query_params => query_params,
1262
+ :form_params => form_params,
1263
+ :body => post_body,
1264
+ :auth_names => auth_names,
1265
+ :return_type => 'Object')
1266
+ if @api_client.config.debugging
1267
+ @api_client.config.logger.debug "API called: JobsApi#public_api_put_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1268
+ end
1269
+ return data, status_code, headers
1270
+ end
1271
+
1272
+ # update job stage for a contact
1273
+ #
1274
+ # @param job_id job identifier
1275
+ # @param contact_id contact identifier
1276
+ # @param api_key crelate api key
1277
+ # @param request
1278
+ # @param [Hash] opts the optional parameters
1279
+ # @return [Object]
1280
+ def public_api_put_job_contact_status(job_id, contact_id, api_key, request, opts = {})
1281
+ data, _status_code, _headers = public_api_put_job_contact_status_with_http_info(job_id, contact_id, api_key, request, opts)
1282
+ return data
1283
+ end
1284
+
1285
+ # update job stage for a contact
1286
+ #
1287
+ # @param job_id job identifier
1288
+ # @param contact_id contact identifier
1289
+ # @param api_key crelate api key
1290
+ # @param request
1291
+ # @param [Hash] opts the optional parameters
1292
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
1293
+ def public_api_put_job_contact_status_with_http_info(job_id, contact_id, api_key, request, opts = {})
1294
+ if @api_client.config.debugging
1295
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_put_job_contact_status ..."
1296
+ end
1297
+ # verify the required parameter 'job_id' is set
1298
+ if @api_client.config.client_side_validation && job_id.nil?
1299
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_put_job_contact_status"
1300
+ end
1301
+ # verify the required parameter 'contact_id' is set
1302
+ if @api_client.config.client_side_validation && contact_id.nil?
1303
+ fail ArgumentError, "Missing the required parameter 'contact_id' when calling JobsApi.public_api_put_job_contact_status"
1304
+ end
1305
+ # verify the required parameter 'api_key' is set
1306
+ if @api_client.config.client_side_validation && api_key.nil?
1307
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_put_job_contact_status"
1308
+ end
1309
+ # verify the required parameter 'request' is set
1310
+ if @api_client.config.client_side_validation && request.nil?
1311
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_put_job_contact_status"
1312
+ end
1313
+ # resource path
1314
+ local_var_path = "/api/pub/v1/jobs/{jobId}/contacts/{contactId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)
1315
+
1316
+ # query parameters
1317
+ query_params = {}
1318
+ query_params[:'api_key'] = api_key
1319
+
1320
+ # header parameters
1321
+ header_params = {}
1322
+ # HTTP header 'Accept' (if needed)
1323
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
1324
+ # HTTP header 'Content-Type'
1325
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
1326
+
1327
+ # form parameters
1328
+ form_params = {}
1329
+
1330
+ # http body (model)
1331
+ post_body = @api_client.object_to_http_body(request)
1332
+ auth_names = []
1333
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1334
+ :header_params => header_params,
1335
+ :query_params => query_params,
1336
+ :form_params => form_params,
1337
+ :body => post_body,
1338
+ :auth_names => auth_names,
1339
+ :return_type => 'Object')
1340
+ if @api_client.config.debugging
1341
+ @api_client.config.logger.debug "API called: JobsApi#public_api_put_job_contact_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1342
+ end
1343
+ return data, status_code, headers
1344
+ end
1345
+
1346
+ # update a note for a job
1347
+ #
1348
+ # @param job_id identifier
1349
+ # @param note_id
1350
+ # @param api_key crelate api key
1351
+ # @param request
1352
+ # @param [Hash] opts the optional parameters
1353
+ # @return [Object]
1354
+ def public_api_put_job_note(job_id, note_id, api_key, request, opts = {})
1355
+ data, _status_code, _headers = public_api_put_job_note_with_http_info(job_id, note_id, api_key, request, opts)
1356
+ return data
1357
+ end
1358
+
1359
+ # update a note for a job
1360
+ #
1361
+ # @param job_id identifier
1362
+ # @param note_id
1363
+ # @param api_key crelate api key
1364
+ # @param request
1365
+ # @param [Hash] opts the optional parameters
1366
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
1367
+ def public_api_put_job_note_with_http_info(job_id, note_id, api_key, request, opts = {})
1368
+ if @api_client.config.debugging
1369
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_put_job_note ..."
1370
+ end
1371
+ # verify the required parameter 'job_id' is set
1372
+ if @api_client.config.client_side_validation && job_id.nil?
1373
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_put_job_note"
1374
+ end
1375
+ # verify the required parameter 'note_id' is set
1376
+ if @api_client.config.client_side_validation && note_id.nil?
1377
+ fail ArgumentError, "Missing the required parameter 'note_id' when calling JobsApi.public_api_put_job_note"
1378
+ end
1379
+ # verify the required parameter 'api_key' is set
1380
+ if @api_client.config.client_side_validation && api_key.nil?
1381
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_put_job_note"
1382
+ end
1383
+ # verify the required parameter 'request' is set
1384
+ if @api_client.config.client_side_validation && request.nil?
1385
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_put_job_note"
1386
+ end
1387
+ # resource path
1388
+ local_var_path = "/api/pub/v1/jobs/{jobId}/notes/{noteId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'noteId' + '}', note_id.to_s)
1389
+
1390
+ # query parameters
1391
+ query_params = {}
1392
+ query_params[:'api_key'] = api_key
1393
+
1394
+ # header parameters
1395
+ header_params = {}
1396
+ # HTTP header 'Accept' (if needed)
1397
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
1398
+ # HTTP header 'Content-Type'
1399
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
1400
+
1401
+ # form parameters
1402
+ form_params = {}
1403
+
1404
+ # http body (model)
1405
+ post_body = @api_client.object_to_http_body(request)
1406
+ auth_names = []
1407
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1408
+ :header_params => header_params,
1409
+ :query_params => query_params,
1410
+ :form_params => form_params,
1411
+ :body => post_body,
1412
+ :auth_names => auth_names,
1413
+ :return_type => 'Object')
1414
+ if @api_client.config.debugging
1415
+ @api_client.config.logger.debug "API called: JobsApi#public_api_put_job_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1416
+ end
1417
+ return data, status_code, headers
1418
+ end
1419
+
1420
+ # update a task for a job
1421
+ #
1422
+ # @param job_id
1423
+ # @param task_id identifier
1424
+ # @param api_key crelate api key
1425
+ # @param request
1426
+ # @param [Hash] opts the optional parameters
1427
+ # @return [Object]
1428
+ def public_api_put_job_task(job_id, task_id, api_key, request, opts = {})
1429
+ data, _status_code, _headers = public_api_put_job_task_with_http_info(job_id, task_id, api_key, request, opts)
1430
+ return data
1431
+ end
1432
+
1433
+ # update a task for a job
1434
+ #
1435
+ # @param job_id
1436
+ # @param task_id identifier
1437
+ # @param api_key crelate api key
1438
+ # @param request
1439
+ # @param [Hash] opts the optional parameters
1440
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
1441
+ def public_api_put_job_task_with_http_info(job_id, task_id, api_key, request, opts = {})
1442
+ if @api_client.config.debugging
1443
+ @api_client.config.logger.debug "Calling API: JobsApi.public_api_put_job_task ..."
1444
+ end
1445
+ # verify the required parameter 'job_id' is set
1446
+ if @api_client.config.client_side_validation && job_id.nil?
1447
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.public_api_put_job_task"
1448
+ end
1449
+ # verify the required parameter 'task_id' is set
1450
+ if @api_client.config.client_side_validation && task_id.nil?
1451
+ fail ArgumentError, "Missing the required parameter 'task_id' when calling JobsApi.public_api_put_job_task"
1452
+ end
1453
+ # verify the required parameter 'api_key' is set
1454
+ if @api_client.config.client_side_validation && api_key.nil?
1455
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling JobsApi.public_api_put_job_task"
1456
+ end
1457
+ # verify the required parameter 'request' is set
1458
+ if @api_client.config.client_side_validation && request.nil?
1459
+ fail ArgumentError, "Missing the required parameter 'request' when calling JobsApi.public_api_put_job_task"
1460
+ end
1461
+ # resource path
1462
+ local_var_path = "/api/pub/v1/jobs/{jobId}/tasks/{taskId}".sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
1463
+
1464
+ # query parameters
1465
+ query_params = {}
1466
+ query_params[:'api_key'] = api_key
1467
+
1468
+ # header parameters
1469
+ header_params = {}
1470
+ # HTTP header 'Accept' (if needed)
1471
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
1472
+ # HTTP header 'Content-Type'
1473
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/x-www-form-urlencoded'])
1474
+
1475
+ # form parameters
1476
+ form_params = {}
1477
+
1478
+ # http body (model)
1479
+ post_body = @api_client.object_to_http_body(request)
1480
+ auth_names = []
1481
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1482
+ :header_params => header_params,
1483
+ :query_params => query_params,
1484
+ :form_params => form_params,
1485
+ :body => post_body,
1486
+ :auth_names => auth_names,
1487
+ :return_type => 'Object')
1488
+ if @api_client.config.debugging
1489
+ @api_client.config.logger.debug "API called: JobsApi#public_api_put_job_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1490
+ end
1491
+ return data, status_code, headers
1492
+ end
1493
+ end
1494
+ end