merge_ats_client 1.0.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +53 -17
  3. data/docs/AccountDetails.md +34 -0
  4. data/docs/AccountDetailsAndActions.md +34 -0
  5. data/docs/AccountDetailsAndActionsIntegration.md +32 -0
  6. data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
  7. data/docs/AccountDetailsApi.md +79 -0
  8. data/docs/AccountIntegration.md +4 -4
  9. data/docs/AccountTokenApi.md +2 -2
  10. data/docs/ActivitiesApi.md +6 -4
  11. data/docs/Activity.md +7 -5
  12. data/docs/Application.md +12 -8
  13. data/docs/ApplicationEndpointRequest.md +20 -0
  14. data/docs/ApplicationRequest.md +16 -8
  15. data/docs/ApplicationResponse.md +24 -0
  16. data/docs/ApplicationsApi.md +98 -18
  17. data/docs/Attachment.md +3 -1
  18. data/docs/AttachmentEndpointRequest.md +20 -0
  19. data/docs/AttachmentRequest.md +5 -1
  20. data/docs/AttachmentResponse.md +24 -0
  21. data/docs/AttachmentsApi.md +93 -15
  22. data/docs/AvailableActionsApi.md +2 -2
  23. data/docs/Candidate.md +11 -7
  24. data/docs/CandidateEndpointRequest.md +20 -0
  25. data/docs/CandidateRequest.md +15 -7
  26. data/docs/CandidateResponse.md +24 -0
  27. data/docs/CandidatesApi.md +171 -17
  28. data/docs/CategoriesEnum.md +15 -0
  29. data/docs/CategoryEnum.md +15 -0
  30. data/docs/DataPassthroughRequest.md +8 -4
  31. data/docs/DebugModeLog.md +22 -0
  32. data/docs/DebugModelLogSummary.md +22 -0
  33. data/docs/DeleteAccountApi.md +78 -0
  34. data/docs/Department.md +3 -1
  35. data/docs/DepartmentsApi.md +6 -4
  36. data/docs/EEOC.md +5 -3
  37. data/docs/EeocsApi.md +6 -4
  38. data/docs/EmailAddress.md +1 -1
  39. data/docs/EmailAddressRequest.md +1 -1
  40. data/docs/EncodingEnum.md +15 -0
  41. data/docs/EndUserDetailsRequest.md +5 -3
  42. data/docs/ErrorValidationProblem.md +24 -0
  43. data/docs/ForceResyncApi.md +79 -0
  44. data/docs/GenerateKeyApi.md +2 -2
  45. data/docs/IgnoreCommonModel.md +20 -0
  46. data/docs/IgnoreCommonModelRequest.md +20 -0
  47. data/docs/InterviewsApi.md +6 -84
  48. data/docs/Issue.md +30 -0
  49. data/docs/IssueStatusEnum.md +15 -0
  50. data/docs/IssuesApi.md +177 -0
  51. data/docs/Job.md +13 -7
  52. data/docs/JobInterviewStage.md +4 -2
  53. data/docs/JobInterviewStagesApi.md +8 -6
  54. data/docs/JobsApi.md +9 -5
  55. data/docs/LinkTokenApi.md +3 -3
  56. data/docs/LinkedAccountStatus.md +20 -0
  57. data/docs/LinkedAccountsApi.md +103 -0
  58. data/docs/MetaResponse.md +24 -0
  59. data/docs/MultipartFormFieldRequest.md +26 -0
  60. data/docs/Offer.md +9 -7
  61. data/docs/OffersApi.md +6 -4
  62. data/docs/Office.md +3 -1
  63. data/docs/OfficesApi.md +6 -4
  64. data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
  65. data/docs/PaginatedIssueList.md +22 -0
  66. data/docs/PaginatedSyncStatusList.md +2 -2
  67. data/docs/PassthroughApi.md +2 -2
  68. data/docs/ReasonEnum.md +15 -0
  69. data/docs/RegenerateKeyApi.md +2 -2
  70. data/docs/RejectReason.md +3 -1
  71. data/docs/RejectReasonsApi.md +6 -4
  72. data/docs/RemoteUser.md +4 -2
  73. data/docs/RequestFormatEnum.md +15 -0
  74. data/docs/ScheduledInterview.md +11 -9
  75. data/docs/Scorecard.md +8 -6
  76. data/docs/ScorecardsApi.md +6 -84
  77. data/docs/SyncStatusApi.md +3 -75
  78. data/docs/Tag.md +3 -1
  79. data/docs/TagsApi.md +4 -2
  80. data/docs/UsersApi.md +7 -84
  81. data/docs/ValidationProblemSource.md +18 -0
  82. data/docs/WarningValidationProblem.md +24 -0
  83. data/docs/WebhookReceiver.md +22 -0
  84. data/docs/WebhookReceiverRequest.md +22 -0
  85. data/docs/WebhookReceiversApi.md +153 -0
  86. data/lib/merge_ats_client/api/account_details_api.rb +84 -0
  87. data/lib/merge_ats_client/api/account_token_api.rb +1 -1
  88. data/lib/merge_ats_client/api/activities_api.rb +4 -1
  89. data/lib/merge_ats_client/api/applications_api.rb +87 -16
  90. data/lib/merge_ats_client/api/attachments_api.rb +95 -16
  91. data/lib/merge_ats_client/api/available_actions_api.rb +1 -1
  92. data/lib/merge_ats_client/api/candidates_api.rb +163 -16
  93. data/lib/merge_ats_client/api/delete_account_api.rb +82 -0
  94. data/lib/merge_ats_client/api/departments_api.rb +4 -1
  95. data/lib/merge_ats_client/api/eeocs_api.rb +4 -1
  96. data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
  97. data/lib/merge_ats_client/api/generate_key_api.rb +1 -1
  98. data/lib/merge_ats_client/api/interviews_api.rb +4 -77
  99. data/lib/merge_ats_client/api/issues_api.rb +181 -0
  100. data/lib/merge_ats_client/api/job_interview_stages_api.rb +6 -3
  101. data/lib/merge_ats_client/api/jobs_api.rb +10 -4
  102. data/lib/merge_ats_client/api/link_token_api.rb +1 -1
  103. data/lib/merge_ats_client/api/linked_accounts_api.rb +117 -0
  104. data/lib/merge_ats_client/api/offers_api.rb +4 -1
  105. data/lib/merge_ats_client/api/offices_api.rb +4 -1
  106. data/lib/merge_ats_client/api/passthrough_api.rb +1 -1
  107. data/lib/merge_ats_client/api/regenerate_key_api.rb +1 -1
  108. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -1
  109. data/lib/merge_ats_client/api/scorecards_api.rb +4 -77
  110. data/lib/merge_ats_client/api/sync_status_api.rb +5 -67
  111. data/lib/merge_ats_client/api/tags_api.rb +4 -1
  112. data/lib/merge_ats_client/api/users_api.rb +4 -77
  113. data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
  114. data/lib/merge_ats_client/api_client.rb +1 -1
  115. data/lib/merge_ats_client/api_error.rb +1 -1
  116. data/lib/merge_ats_client/configuration.rb +7 -5
  117. data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
  118. data/lib/merge_ats_client/models/{end_user_details.rb → account_details.rb} +68 -66
  119. data/lib/merge_ats_client/models/{scheduled_interview_request.rb → account_details_and_actions.rb} +85 -100
  120. data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +310 -0
  121. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +36 -0
  122. data/lib/merge_ats_client/models/account_integration.rb +7 -29
  123. data/lib/merge_ats_client/models/account_token.rb +2 -2
  124. data/lib/merge_ats_client/models/activity.rb +17 -8
  125. data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
  126. data/lib/merge_ats_client/models/application.rb +29 -12
  127. data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
  128. data/lib/merge_ats_client/models/application_request.rb +70 -13
  129. data/lib/merge_ats_client/models/application_response.rb +266 -0
  130. data/lib/merge_ats_client/models/attachment.rb +16 -7
  131. data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
  132. data/lib/merge_ats_client/models/attachment_request.rb +31 -7
  133. data/lib/merge_ats_client/models/attachment_response.rb +266 -0
  134. data/lib/merge_ats_client/models/attachment_type_enum.rb +0 -2
  135. data/lib/merge_ats_client/models/available_actions.rb +2 -2
  136. data/lib/merge_ats_client/models/candidate.rb +32 -7
  137. data/lib/merge_ats_client/models/candidate_endpoint_request.rb +237 -0
  138. data/lib/merge_ats_client/models/candidate_request.rb +72 -7
  139. data/lib/merge_ats_client/models/candidate_response.rb +266 -0
  140. data/lib/merge_ats_client/models/categories_enum.rb +38 -0
  141. data/lib/merge_ats_client/models/category_enum.rb +38 -0
  142. data/lib/merge_ats_client/models/data_passthrough_request.rb +81 -10
  143. data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
  144. data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
  145. data/lib/merge_ats_client/models/department.rb +18 -8
  146. data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
  147. data/lib/merge_ats_client/models/eeoc.rb +17 -8
  148. data/lib/merge_ats_client/models/email_address.rb +3 -3
  149. data/lib/merge_ats_client/models/email_address_request.rb +3 -3
  150. data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
  151. data/lib/merge_ats_client/models/encoding_enum.rb +35 -0
  152. data/lib/merge_ats_client/models/end_user_details_request.rb +148 -29
  153. data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
  154. data/lib/merge_ats_client/models/gender_enum.rb +1 -1
  155. data/lib/merge_ats_client/models/generate_remote_key_request.rb +21 -2
  156. data/lib/merge_ats_client/models/{remote_user_request.rb → ignore_common_model.rb} +30 -85
  157. data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
  158. data/lib/merge_ats_client/models/{scorecard_request.rb → issue.rb} +56 -62
  159. data/lib/merge_ats_client/models/issue_status_enum.rb +35 -0
  160. data/lib/merge_ats_client/models/job.rb +43 -7
  161. data/lib/merge_ats_client/models/job_interview_stage.rb +17 -8
  162. data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
  163. data/lib/merge_ats_client/models/link_token.rb +2 -2
  164. data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
  165. data/lib/merge_ats_client/models/meta_response.rb +262 -0
  166. data/lib/merge_ats_client/models/method_enum.rb +1 -1
  167. data/lib/merge_ats_client/models/model_operation.rb +2 -2
  168. data/lib/merge_ats_client/models/{patched_application_request.rb → multipart_form_field_request.rb} +120 -88
  169. data/lib/merge_ats_client/models/offer.rb +17 -9
  170. data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
  171. data/lib/merge_ats_client/models/office.rb +18 -8
  172. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
  173. data/lib/merge_ats_client/models/paginated_account_details_and_actions_list.rb +240 -0
  174. data/lib/merge_ats_client/models/paginated_activity_list.rb +2 -2
  175. data/lib/merge_ats_client/models/paginated_application_list.rb +2 -2
  176. data/lib/merge_ats_client/models/paginated_attachment_list.rb +2 -2
  177. data/lib/merge_ats_client/models/paginated_candidate_list.rb +2 -2
  178. data/lib/merge_ats_client/models/paginated_department_list.rb +2 -2
  179. data/lib/merge_ats_client/models/paginated_eeoc_list.rb +2 -2
  180. data/lib/merge_ats_client/models/paginated_issue_list.rb +240 -0
  181. data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +2 -2
  182. data/lib/merge_ats_client/models/paginated_job_list.rb +2 -2
  183. data/lib/merge_ats_client/models/paginated_offer_list.rb +2 -2
  184. data/lib/merge_ats_client/models/paginated_office_list.rb +2 -2
  185. data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +2 -2
  186. data/lib/merge_ats_client/models/paginated_remote_user_list.rb +2 -2
  187. data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +2 -2
  188. data/lib/merge_ats_client/models/paginated_scorecard_list.rb +2 -2
  189. data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
  190. data/lib/merge_ats_client/models/paginated_tag_list.rb +2 -2
  191. data/lib/merge_ats_client/models/phone_number.rb +3 -3
  192. data/lib/merge_ats_client/models/phone_number_request.rb +3 -3
  193. data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
  194. data/lib/merge_ats_client/models/race_enum.rb +1 -1
  195. data/lib/merge_ats_client/models/reason_enum.rb +36 -0
  196. data/lib/merge_ats_client/models/reject_reason.rb +18 -8
  197. data/lib/merge_ats_client/models/remote_data.rb +2 -2
  198. data/lib/merge_ats_client/models/remote_data_request.rb +21 -2
  199. data/lib/merge_ats_client/models/remote_key.rb +2 -2
  200. data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +21 -2
  201. data/lib/merge_ats_client/models/remote_response.rb +2 -2
  202. data/lib/merge_ats_client/models/remote_user.rb +18 -8
  203. data/lib/merge_ats_client/models/request_format_enum.rb +36 -0
  204. data/lib/merge_ats_client/models/scheduled_interview.rb +18 -10
  205. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
  206. data/lib/merge_ats_client/models/scorecard.rb +17 -10
  207. data/lib/merge_ats_client/models/sync_status.rb +2 -2
  208. data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -2
  209. data/lib/merge_ats_client/models/tag.rb +18 -8
  210. data/lib/merge_ats_client/models/url.rb +8 -8
  211. data/lib/merge_ats_client/models/url_request.rb +8 -8
  212. data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
  213. data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → validation_problem_source.rb} +15 -16
  214. data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
  215. data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
  216. data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
  217. data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
  218. data/lib/merge_ats_client/models/webhook_receiver_request.rb +280 -0
  219. data/lib/merge_ats_client/version.rb +1 -1
  220. data/lib/merge_ats_client.rb +38 -4
  221. data/merge_ats_client.gemspec +1 -1
  222. data/spec/api/account_details_api_spec.rb +46 -0
  223. data/spec/api/account_token_api_spec.rb +1 -1
  224. data/spec/api/activities_api_spec.rb +4 -1
  225. data/spec/api/applications_api_spec.rb +31 -1
  226. data/spec/api/attachments_api_spec.rb +31 -1
  227. data/spec/api/available_actions_api_spec.rb +1 -1
  228. data/spec/api/candidates_api_spec.rb +44 -1
  229. data/spec/api/departments_api_spec.rb +4 -1
  230. data/spec/api/eeocs_api_spec.rb +4 -1
  231. data/spec/api/force_resync_api_spec.rb +46 -0
  232. data/spec/api/interviews_api_spec.rb +4 -1
  233. data/spec/api/issues_api_spec.rb +9 -5
  234. data/spec/api/job_interview_stages_api_spec.rb +4 -1
  235. data/spec/api/jobs_api_spec.rb +6 -1
  236. data/spec/api/link_token_api_spec.rb +2 -2
  237. data/spec/api/linked_accounts_api_spec.rb +57 -0
  238. data/spec/api/offers_api_spec.rb +4 -1
  239. data/spec/api/offices_api_spec.rb +4 -1
  240. data/spec/api/passthrough_api_spec.rb +2 -2
  241. data/spec/api/regenerate_key_api_spec.rb +3 -5
  242. data/spec/api/reject_reasons_api_spec.rb +4 -1
  243. data/spec/api/scorecards_api_spec.rb +4 -1
  244. data/spec/api/sync_status_api_spec.rb +8 -5
  245. data/spec/api/tags_api_spec.rb +3 -1
  246. data/spec/api/users_api_spec.rb +5 -1
  247. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  248. data/spec/api_client_spec.rb +1 -1
  249. data/spec/configuration_spec.rb +1 -1
  250. data/spec/models/access_role_enum_spec.rb +1 -1
  251. data/spec/models/{scorecard_request_spec.rb → account_details_and_actions_integration_spec.rb} +19 -13
  252. data/spec/models/{scheduled_interview_request_spec.rb → account_details_and_actions_spec.rb} +15 -27
  253. data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
  254. data/spec/models/{patched_application_request_spec.rb → account_details_spec.rb} +16 -16
  255. data/spec/models/account_integration_spec.rb +7 -1
  256. data/spec/models/account_token_spec.rb +7 -1
  257. data/spec/models/activity_spec.rb +13 -1
  258. data/spec/models/activity_type_enum_spec.rb +1 -1
  259. data/spec/models/application_endpoint_request_spec.rb +40 -0
  260. data/spec/models/application_request_spec.rb +25 -1
  261. data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
  262. data/spec/models/application_spec.rb +19 -7
  263. data/spec/models/attachment_endpoint_request_spec.rb +40 -0
  264. data/spec/models/attachment_request_spec.rb +12 -0
  265. data/spec/models/attachment_response_spec.rb +52 -0
  266. data/spec/models/attachment_spec.rb +25 -1
  267. data/spec/models/available_actions_spec.rb +1 -1
  268. data/spec/models/candidate_endpoint_request_spec.rb +40 -0
  269. data/spec/models/candidate_request_spec.rb +37 -1
  270. data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
  271. data/spec/models/candidate_spec.rb +19 -1
  272. data/spec/models/categories_enum_spec.rb +28 -0
  273. data/spec/models/category_enum_spec.rb +28 -0
  274. data/spec/models/data_passthrough_request_spec.rb +13 -1
  275. data/spec/models/debug_mode_log_spec.rb +46 -0
  276. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  277. data/spec/models/department_spec.rb +13 -1
  278. data/spec/models/disability_status_enum_spec.rb +1 -1
  279. data/spec/models/eeoc_spec.rb +13 -1
  280. data/spec/models/email_address_request_spec.rb +1 -1
  281. data/spec/models/email_address_spec.rb +1 -1
  282. data/spec/models/email_address_type_enum_spec.rb +1 -1
  283. data/spec/models/encoding_enum_spec.rb +28 -0
  284. data/spec/models/end_user_details_request_spec.rb +13 -5
  285. data/spec/models/error_validation_problem_spec.rb +52 -0
  286. data/spec/models/gender_enum_spec.rb +1 -1
  287. data/spec/models/ignore_common_model_request_spec.rb +40 -0
  288. data/spec/models/ignore_common_model_spec.rb +40 -0
  289. data/spec/models/job_interview_stage_spec.rb +13 -1
  290. data/spec/models/job_spec.rb +31 -1
  291. data/spec/models/job_status_enum_spec.rb +1 -1
  292. data/spec/models/link_token_spec.rb +1 -1
  293. data/spec/models/linked_account_status_spec.rb +40 -0
  294. data/spec/models/meta_response_spec.rb +52 -0
  295. data/spec/models/method_enum_spec.rb +1 -1
  296. data/spec/models/model_operation_spec.rb +13 -1
  297. data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
  298. data/spec/models/offer_spec.rb +13 -1
  299. data/spec/models/offer_status_enum_spec.rb +1 -1
  300. data/spec/models/office_spec.rb +13 -1
  301. data/spec/models/overall_recommendation_enum_spec.rb +1 -1
  302. data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
  303. data/spec/models/paginated_activity_list_spec.rb +1 -1
  304. data/spec/models/paginated_application_list_spec.rb +1 -1
  305. data/spec/models/paginated_attachment_list_spec.rb +1 -1
  306. data/spec/models/paginated_candidate_list_spec.rb +1 -1
  307. data/spec/models/paginated_department_list_spec.rb +1 -1
  308. data/spec/models/paginated_eeoc_list_spec.rb +1 -1
  309. data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
  310. data/spec/models/paginated_job_list_spec.rb +1 -1
  311. data/spec/models/paginated_offer_list_spec.rb +1 -1
  312. data/spec/models/paginated_office_list_spec.rb +1 -1
  313. data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
  314. data/spec/models/paginated_remote_user_list_spec.rb +1 -1
  315. data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
  316. data/spec/models/paginated_scorecard_list_spec.rb +1 -1
  317. data/spec/models/paginated_tag_list_spec.rb +1 -1
  318. data/spec/models/phone_number_request_spec.rb +1 -1
  319. data/spec/models/phone_number_spec.rb +1 -1
  320. data/spec/models/phone_number_type_enum_spec.rb +1 -1
  321. data/spec/models/race_enum_spec.rb +1 -1
  322. data/spec/models/reason_enum_spec.rb +28 -0
  323. data/spec/models/reject_reason_spec.rb +13 -1
  324. data/spec/models/remote_data_spec.rb +1 -1
  325. data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
  326. data/spec/models/remote_key_spec.rb +1 -1
  327. data/spec/models/remote_response_spec.rb +1 -1
  328. data/spec/models/remote_user_spec.rb +13 -1
  329. data/spec/models/request_format_enum_spec.rb +28 -0
  330. data/spec/models/scheduled_interview_spec.rb +13 -1
  331. data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
  332. data/spec/models/scorecard_spec.rb +13 -1
  333. data/spec/models/sync_status_spec.rb +1 -1
  334. data/spec/models/tag_spec.rb +13 -1
  335. data/spec/models/url_request_spec.rb +1 -1
  336. data/spec/models/url_spec.rb +1 -1
  337. data/spec/models/url_type_enum_spec.rb +1 -1
  338. data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
  339. data/spec/models/veteran_status_enum_spec.rb +1 -1
  340. data/spec/models/visibility_enum_spec.rb +1 -1
  341. data/spec/models/warning_validation_problem_spec.rb +52 -0
  342. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  343. data/spec/models/webhook_receiver_spec.rb +46 -0
  344. data/spec/spec_helper.rb +1 -1
  345. metadata +220 -113
  346. data/config.json +0 -2
  347. data/docs/DataPassthrough.md +0 -24
  348. data/docs/EndUserDetails.md +0 -24
  349. data/docs/PatchedApplicationRequest.md +0 -34
  350. data/docs/RemoteKeyForRegeneration.md +0 -18
  351. data/docs/RemoteUserRequest.md +0 -30
  352. data/docs/ScheduledInterviewRequest.md +0 -38
  353. data/docs/ScorecardRequest.md +0 -30
  354. data/test_ats.rb +0 -22
  355. data/test_signature.rb +0 -32
@@ -0,0 +1,310 @@
1
+ =begin
2
+ #Merge ATS API
3
+
4
+ #The unified API for building rich integrations with multiple Applicant Tracking System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MergeATSClient
17
+ class AccountDetailsAndActionsIntegration
18
+ attr_accessor :name
19
+
20
+ attr_accessor :categories
21
+
22
+ attr_accessor :image
23
+
24
+ attr_accessor :square_image
25
+
26
+ attr_accessor :color
27
+
28
+ attr_accessor :slug
29
+
30
+ attr_accessor :passthrough_available
31
+
32
+ attr_accessor :available_model_operations
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'name' => :'name',
38
+ :'categories' => :'categories',
39
+ :'image' => :'image',
40
+ :'square_image' => :'square_image',
41
+ :'color' => :'color',
42
+ :'slug' => :'slug',
43
+ :'passthrough_available' => :'passthrough_available',
44
+ :'available_model_operations' => :'available_model_operations'
45
+ }
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'name' => :'String',
57
+ :'categories' => :'Array<CategoriesEnum>',
58
+ :'image' => :'String',
59
+ :'square_image' => :'String',
60
+ :'color' => :'String',
61
+ :'slug' => :'String',
62
+ :'passthrough_available' => :'Boolean',
63
+ :'available_model_operations' => :'Array<ModelOperation>'
64
+ }
65
+ end
66
+
67
+ # List of attributes with nullable: true
68
+ def self.openapi_nullable
69
+ Set.new([
70
+ ])
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ if (!attributes.is_a?(Hash))
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AccountDetailsAndActionsIntegration` initialize method"
78
+ end
79
+
80
+ # check to see if the attribute exists and convert string to symbol for hash key
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!self.class.attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AccountDetailsAndActionsIntegration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'name')
89
+ self.name = attributes[:'name']
90
+ end
91
+
92
+ if attributes.key?(:'categories')
93
+ if (value = attributes[:'categories']).is_a?(Array)
94
+ self.categories = value
95
+ end
96
+ end
97
+
98
+ if attributes.key?(:'image')
99
+ self.image = attributes[:'image']
100
+ end
101
+
102
+ if attributes.key?(:'square_image')
103
+ self.square_image = attributes[:'square_image']
104
+ end
105
+
106
+ if attributes.key?(:'color')
107
+ self.color = attributes[:'color']
108
+ end
109
+
110
+ if attributes.key?(:'slug')
111
+ self.slug = attributes[:'slug']
112
+ end
113
+
114
+ if attributes.key?(:'passthrough_available')
115
+ self.passthrough_available = attributes[:'passthrough_available']
116
+ end
117
+
118
+ if attributes.key?(:'available_model_operations')
119
+ if (value = attributes[:'available_model_operations']).is_a?(Array)
120
+ self.available_model_operations = value
121
+ end
122
+ end
123
+ end
124
+
125
+ # Show invalid properties with the reasons. Usually used together with valid?
126
+ # @return Array for valid properties with the reasons
127
+ def list_invalid_properties
128
+ invalid_properties = Array.new
129
+ if @name.nil?
130
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
131
+ end
132
+
133
+ if @categories.nil?
134
+ invalid_properties.push('invalid value for "categories", categories cannot be nil.')
135
+ end
136
+
137
+ if @color.nil?
138
+ invalid_properties.push('invalid value for "color", color cannot be nil.')
139
+ end
140
+
141
+ if @slug.nil?
142
+ invalid_properties.push('invalid value for "slug", slug cannot be nil.')
143
+ end
144
+
145
+ if @passthrough_available.nil?
146
+ invalid_properties.push('invalid value for "passthrough_available", passthrough_available cannot be nil.')
147
+ end
148
+
149
+ invalid_properties
150
+ end
151
+
152
+ # Check to see if the all the properties in the model are valid
153
+ # @return true if the model is valid
154
+ def valid?
155
+ return false if @name.nil?
156
+ return false if @categories.nil?
157
+ return false if @color.nil?
158
+ return false if @slug.nil?
159
+ return false if @passthrough_available.nil?
160
+ true
161
+ end
162
+
163
+ # Checks equality by comparing each attribute.
164
+ # @param [Object] Object to be compared
165
+ def ==(o)
166
+ return true if self.equal?(o)
167
+ self.class == o.class &&
168
+ name == o.name &&
169
+ categories == o.categories &&
170
+ image == o.image &&
171
+ square_image == o.square_image &&
172
+ color == o.color &&
173
+ slug == o.slug &&
174
+ passthrough_available == o.passthrough_available &&
175
+ available_model_operations == o.available_model_operations
176
+ end
177
+
178
+ # @see the `==` method
179
+ # @param [Object] Object to be compared
180
+ def eql?(o)
181
+ self == o
182
+ end
183
+
184
+ # Calculates hash code according to all attributes.
185
+ # @return [Integer] Hash code
186
+ def hash
187
+ [name, categories, image, square_image, color, slug, passthrough_available, available_model_operations].hash
188
+ end
189
+
190
+ # Builds the object from hash
191
+ # @param [Hash] attributes Model attributes in the form of hash
192
+ # @return [Object] Returns the model itself
193
+ def self.build_from_hash(attributes)
194
+ new.build_from_hash(attributes)
195
+ end
196
+
197
+ # Builds the object from hash
198
+ # @param [Hash] attributes Model attributes in the form of hash
199
+ # @return [Object] Returns the model itself
200
+ def build_from_hash(attributes)
201
+ return nil unless attributes.is_a?(Hash)
202
+ self.class.openapi_types.each_pair do |key, type|
203
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
204
+ self.send("#{key}=", nil)
205
+ elsif type =~ /\AArray<(.*)>/i
206
+ # check to ensure the input is an array given that the attribute
207
+ # is documented as an array but the input is not
208
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
209
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
210
+ end
211
+ elsif !attributes[self.class.attribute_map[key]].nil?
212
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
213
+ end
214
+ end
215
+
216
+ self
217
+ end
218
+
219
+ # Deserializes the data based on type
220
+ # @param string type Data type
221
+ # @param string value Value to be deserialized
222
+ # @return [Object] Deserialized data
223
+ def _deserialize(type, value)
224
+ case type.to_sym
225
+ when :Time
226
+ Time.parse(value)
227
+ when :Date
228
+ Date.parse(value)
229
+ when :String
230
+ value
231
+ when :Integer
232
+ value.to_i
233
+ when :Float
234
+ value.to_f
235
+ when :Boolean
236
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
237
+ true
238
+ else
239
+ false
240
+ end
241
+ when :Object
242
+ # generic object (usually a Hash), return directly
243
+ value
244
+ when /\AArray<(?<inner_type>.+)>\z/
245
+ inner_type = Regexp.last_match[:inner_type]
246
+ value.map { |v| _deserialize(inner_type, v) }
247
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
248
+ k_type = Regexp.last_match[:k_type]
249
+ v_type = Regexp.last_match[:v_type]
250
+ {}.tap do |hash|
251
+ value.each do |k, v|
252
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
253
+ end
254
+ end
255
+ else # model
256
+ # models (e.g. Pet) or oneOf
257
+ klass = MergeATSClient.const_get(type)
258
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
259
+ end
260
+ end
261
+
262
+ # Returns the string representation of the object
263
+ # @return [String] String presentation of the object
264
+ def to_s
265
+ to_hash.to_s
266
+ end
267
+
268
+ # to_body is an alias to to_hash (backward compatibility)
269
+ # @return [Hash] Returns the object in the form of hash
270
+ def to_body
271
+ to_hash
272
+ end
273
+
274
+ # Returns the object in the form of hash
275
+ # @return [Hash] Returns the object in the form of hash
276
+ def to_hash
277
+ hash = {}
278
+ self.class.attribute_map.each_pair do |attr, param|
279
+ value = self.send(attr)
280
+ if value.nil?
281
+ is_nullable = self.class.openapi_nullable.include?(attr)
282
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
283
+ end
284
+
285
+ hash[param] = _to_hash(value)
286
+ end
287
+ hash
288
+ end
289
+
290
+ # Outputs non-array value in the form of hash
291
+ # For object, use to_hash. Otherwise, just return the value
292
+ # @param [Object] value Any valid value
293
+ # @return [Hash] Returns the value in the form of hash
294
+ def _to_hash(value)
295
+ if value.is_a?(Array)
296
+ value.compact.map { |v| _to_hash(v) }
297
+ elsif value.is_a?(Hash)
298
+ {}.tap do |hash|
299
+ value.each { |k, v| hash[k] = _to_hash(v) }
300
+ end
301
+ elsif value.respond_to? :to_hash
302
+ value.to_hash
303
+ else
304
+ value
305
+ end
306
+ end
307
+
308
+ end
309
+
310
+ end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #Merge ATS API
3
+
4
+ #The unified API for building rich integrations with multiple Applicant Tracking System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MergeATSClient
17
+ class AccountDetailsAndActionsStatusEnum
18
+ COMPLETE = "COMPLETE".freeze
19
+ INCOMPLETE = "INCOMPLETE".freeze
20
+ RELINK_NEEDED = "RELINK_NEEDED".freeze
21
+
22
+ # Builds the enum from string
23
+ # @param [String] The enum value in the form of the string
24
+ # @return [String] The enum value
25
+ def self.build_from_hash(value)
26
+ new.build_from_hash(value)
27
+ end
28
+
29
+ # Builds the enum from string
30
+ # @param [String] The enum value in the form of the string
31
+ # @return [String] The enum value
32
+ def build_from_hash(value)
33
+ value
34
+ end
35
+ end
36
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -18,42 +18,20 @@ module MergeATSClient
18
18
  # Company name.
19
19
  attr_accessor :name
20
20
 
21
- # Category or categories this integration belongs to.
21
+ # Category or categories this integration belongs to. Multiple categories should be comma separated.<br/><br>Example: For [ats, hris], enter <i>ats,hris</i>
22
22
  attr_accessor :categories
23
23
 
24
- # Company logo in rectangular shape.
24
+ # Company logo in rectangular shape. <b>Upload an image with a clear background.</b>
25
25
  attr_accessor :image
26
26
 
27
- # Company logo in square shape.
27
+ # Company logo in square shape. <b>Upload an image with a white background.</b>
28
28
  attr_accessor :square_image
29
29
 
30
- # The color of this integration used for buttons and text throughout the app and landing pages.
30
+ # The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>
31
31
  attr_accessor :color
32
32
 
33
33
  attr_accessor :slug
34
34
 
35
- class EnumAttributeValidator
36
- attr_reader :datatype
37
- attr_reader :allowable_values
38
-
39
- def initialize(datatype, allowable_values)
40
- @allowable_values = allowable_values.map do |value|
41
- case datatype.to_s
42
- when /Integer/i
43
- value.to_i
44
- when /Float/i
45
- value.to_f
46
- else
47
- value
48
- end
49
- end
50
- end
51
-
52
- def valid?(value)
53
- !value || allowable_values.include?(value)
54
- end
55
- end
56
-
57
35
  # Attribute mapping from ruby-style variable name to JSON key.
58
36
  def self.attribute_map
59
37
  {
@@ -75,7 +53,7 @@ module MergeATSClient
75
53
  def self.openapi_types
76
54
  {
77
55
  :'name' => :'String',
78
- :'categories' => :'Array<String>',
56
+ :'categories' => :'Array<CategoriesEnum>',
79
57
  :'image' => :'String',
80
58
  :'square_image' => :'String',
81
59
  :'color' => :'String',
@@ -242,7 +220,7 @@ module MergeATSClient
242
220
  when :Date
243
221
  Date.parse(value)
244
222
  when :String
245
- value.to_s
223
+ value
246
224
  when :Integer
247
225
  value.to_i
248
226
  when :Float
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -154,7 +154,7 @@ module MergeATSClient
154
154
  when :Date
155
155
  Date.parse(value)
156
156
  when :String
157
- value.to_s
157
+ value
158
158
  when :Integer
159
159
  value.to_i
160
160
  when :Float
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -14,14 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Activity Object ### Description The `Activity` object is used to represent an activity performed by a user. ### Usage Example Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities.
17
+ # # The Activity Object ### Description The `Activity` object is used to represent an activity performed by a user. ### Usage Example Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities.
18
18
  class Activity
19
19
  attr_accessor :id
20
20
 
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The user the performed the action.
25
24
  attr_accessor :user
26
25
 
27
26
  # When the third party's activity was created.
@@ -41,6 +40,9 @@ module MergeATSClient
41
40
 
42
41
  attr_accessor :remote_data
43
42
 
43
+ # Indicates whether or not this object has been deleted on the third-party.
44
+ attr_accessor :remote_was_deleted
45
+
44
46
  # Attribute mapping from ruby-style variable name to JSON key.
45
47
  def self.attribute_map
46
48
  {
@@ -52,7 +54,8 @@ module MergeATSClient
52
54
  :'subject' => :'subject',
53
55
  :'body' => :'body',
54
56
  :'visibility' => :'visibility',
55
- :'remote_data' => :'remote_data'
57
+ :'remote_data' => :'remote_data',
58
+ :'remote_was_deleted' => :'remote_was_deleted'
56
59
  }
57
60
  end
58
61
 
@@ -72,7 +75,8 @@ module MergeATSClient
72
75
  :'subject' => :'String',
73
76
  :'body' => :'String',
74
77
  :'visibility' => :'VisibilityEnum',
75
- :'remote_data' => :'Array<RemoteData>'
78
+ :'remote_data' => :'Array<RemoteData>',
79
+ :'remote_was_deleted' => :'Boolean'
76
80
  }
77
81
  end
78
82
 
@@ -86,7 +90,7 @@ module MergeATSClient
86
90
  :'subject',
87
91
  :'body',
88
92
  :'visibility',
89
- :'remote_data'
93
+ :'remote_data',
90
94
  ])
91
95
  end
92
96
 
@@ -142,6 +146,10 @@ module MergeATSClient
142
146
  self.remote_data = value
143
147
  end
144
148
  end
149
+
150
+ if attributes.key?(:'remote_was_deleted')
151
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
152
+ end
145
153
  end
146
154
 
147
155
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,7 +178,8 @@ module MergeATSClient
170
178
  subject == o.subject &&
171
179
  body == o.body &&
172
180
  visibility == o.visibility &&
173
- remote_data == o.remote_data
181
+ remote_data == o.remote_data &&
182
+ remote_was_deleted == o.remote_was_deleted
174
183
  end
175
184
 
176
185
  # @see the `==` method
@@ -182,7 +191,7 @@ module MergeATSClient
182
191
  # Calculates hash code according to all attributes.
183
192
  # @return [Integer] Hash code
184
193
  def hash
185
- [id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, remote_data].hash
194
+ [id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, remote_data, remote_was_deleted].hash
186
195
  end
187
196
 
188
197
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -14,17 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Application Object ### Description The `Application` object is used to represent an Application for a job position. ### Usage Example Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications.
17
+ # # The Application Object ### Description The `Application` object is used to represent an Application for a job position. This is separate from the Candidate object, although some systems may only allow a Candidate to have one Application. Please note: Application objects are constructed if the object does not exist in the remote system. ### Usage Example Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications.
18
18
  class Application
19
19
  attr_accessor :id
20
20
 
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The candidate applying.
25
24
  attr_accessor :candidate
26
25
 
27
- # The job being applied for.
28
26
  attr_accessor :job
29
27
 
30
28
  # When the application was submitted.
@@ -36,17 +34,19 @@ module MergeATSClient
36
34
  # The application's source.
37
35
  attr_accessor :source
38
36
 
39
- # The user credited for this application.
40
37
  attr_accessor :credited_to
41
38
 
42
- # The application's current stage.
43
39
  attr_accessor :current_stage
44
40
 
45
- # The application's reason for rejection.
46
41
  attr_accessor :reject_reason
47
42
 
48
43
  attr_accessor :remote_data
49
44
 
45
+ # Custom fields configured for a given model.
46
+ attr_accessor :custom_fields
47
+
48
+ attr_accessor :remote_was_deleted
49
+
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
@@ -60,7 +60,9 @@ module MergeATSClient
60
60
  :'credited_to' => :'credited_to',
61
61
  :'current_stage' => :'current_stage',
62
62
  :'reject_reason' => :'reject_reason',
63
- :'remote_data' => :'remote_data'
63
+ :'remote_data' => :'remote_data',
64
+ :'custom_fields' => :'custom_fields',
65
+ :'remote_was_deleted' => :'remote_was_deleted'
64
66
  }
65
67
  end
66
68
 
@@ -82,7 +84,9 @@ module MergeATSClient
82
84
  :'credited_to' => :'String',
83
85
  :'current_stage' => :'String',
84
86
  :'reject_reason' => :'String',
85
- :'remote_data' => :'Array<RemoteData>'
87
+ :'remote_data' => :'Array<RemoteData>',
88
+ :'custom_fields' => :'Hash<String, AnyType>',
89
+ :'remote_was_deleted' => :'Boolean'
86
90
  }
87
91
  end
88
92
 
@@ -98,7 +102,8 @@ module MergeATSClient
98
102
  :'credited_to',
99
103
  :'current_stage',
100
104
  :'reject_reason',
101
- :'remote_data'
105
+ :'remote_data',
106
+ :'custom_fields',
102
107
  ])
103
108
  end
104
109
 
@@ -162,6 +167,16 @@ module MergeATSClient
162
167
  self.remote_data = value
163
168
  end
164
169
  end
170
+
171
+ if attributes.key?(:'custom_fields')
172
+ if (value = attributes[:'custom_fields']).is_a?(Hash)
173
+ self.custom_fields = value
174
+ end
175
+ end
176
+
177
+ if attributes.key?(:'remote_was_deleted')
178
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
179
+ end
165
180
  end
166
181
 
167
182
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -192,7 +207,9 @@ module MergeATSClient
192
207
  credited_to == o.credited_to &&
193
208
  current_stage == o.current_stage &&
194
209
  reject_reason == o.reject_reason &&
195
- remote_data == o.remote_data
210
+ remote_data == o.remote_data &&
211
+ custom_fields == o.custom_fields &&
212
+ remote_was_deleted == o.remote_was_deleted
196
213
  end
197
214
 
198
215
  # @see the `==` method
@@ -204,7 +221,7 @@ module MergeATSClient
204
221
  # Calculates hash code according to all attributes.
205
222
  # @return [Integer] Hash code
206
223
  def hash
207
- [id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_data].hash
224
+ [id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_data, custom_fields, remote_was_deleted].hash
208
225
  end
209
226
 
210
227
  # Builds the object from hash