stackone_client 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (452) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/accounts.rb +5 -5
  3. data/lib/stack_one/ats.rb +1400 -0
  4. data/lib/stack_one/connect_sessions.rb +2 -2
  5. data/lib/stack_one/connectors.rb +2 -2
  6. data/lib/stack_one/crm.rb +332 -0
  7. data/lib/stack_one/hris.rb +317 -19
  8. data/lib/stack_one/marketing.rb +599 -0
  9. data/lib/stack_one/models/operations/ats_create_application_request.rb +27 -0
  10. data/lib/stack_one/models/operations/ats_create_application_response.rb +33 -0
  11. data/lib/stack_one/models/operations/ats_create_candidate_note_request.rb +30 -0
  12. data/lib/stack_one/models/operations/ats_create_candidate_note_response.rb +33 -0
  13. data/lib/stack_one/models/operations/ats_create_candidate_request.rb +27 -0
  14. data/lib/stack_one/models/operations/ats_create_candidate_response.rb +33 -0
  15. data/lib/stack_one/models/operations/ats_create_offer_request.rb +27 -0
  16. data/lib/stack_one/models/operations/ats_create_offer_response.rb +33 -0
  17. data/lib/stack_one/models/operations/ats_get_application_document_request.rb +58 -0
  18. data/lib/stack_one/models/operations/ats_get_application_document_response.rb +33 -0
  19. data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +20 -0
  20. data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +58 -0
  21. data/lib/stack_one/models/operations/ats_get_application_offer_response.rb +33 -0
  22. data/lib/stack_one/models/operations/ats_get_application_request.rb +58 -0
  23. data/lib/stack_one/models/operations/ats_get_application_response.rb +33 -0
  24. data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +20 -0
  25. data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +58 -0
  26. data/lib/stack_one/models/operations/ats_get_application_scorecard_response.rb +33 -0
  27. data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +20 -0
  28. data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +58 -0
  29. data/lib/stack_one/models/operations/ats_get_candidate_note_response.rb +33 -0
  30. data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +20 -0
  31. data/lib/stack_one/models/operations/ats_get_candidate_request.rb +55 -0
  32. data/lib/stack_one/models/operations/ats_get_candidate_response.rb +33 -0
  33. data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +20 -0
  34. data/lib/stack_one/models/operations/ats_get_department_request.rb +55 -0
  35. data/lib/stack_one/models/operations/ats_get_department_response.rb +33 -0
  36. data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +20 -0
  37. data/lib/stack_one/models/operations/ats_get_interview_request.rb +55 -0
  38. data/lib/stack_one/models/operations/ats_get_interview_response.rb +33 -0
  39. data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +20 -0
  40. data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +55 -0
  41. data/lib/stack_one/models/operations/ats_get_interview_stage_response.rb +33 -0
  42. data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +20 -0
  43. data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +58 -0
  44. data/lib/stack_one/models/operations/ats_get_job_posting_response.rb +33 -0
  45. data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +20 -0
  46. data/lib/stack_one/models/operations/ats_get_job_request.rb +58 -0
  47. data/lib/stack_one/models/operations/ats_get_job_response.rb +33 -0
  48. data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +20 -0
  49. data/lib/stack_one/models/operations/ats_get_location_request.rb +55 -0
  50. data/lib/stack_one/models/operations/ats_get_location_response.rb +33 -0
  51. data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +20 -0
  52. data/lib/stack_one/models/operations/ats_get_offer_request.rb +55 -0
  53. data/lib/stack_one/models/operations/ats_get_offer_response.rb +33 -0
  54. data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +20 -0
  55. data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +55 -0
  56. data/lib/stack_one/models/operations/ats_get_rejected_reason_response.rb +33 -0
  57. data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +20 -0
  58. data/lib/stack_one/models/operations/ats_get_user_request.rb +55 -0
  59. data/lib/stack_one/models/operations/ats_get_user_response.rb +33 -0
  60. data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +20 -0
  61. data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +55 -0
  62. data/lib/stack_one/models/operations/ats_list_application_documents_response.rb +33 -0
  63. data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +20 -0
  64. data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +55 -0
  65. data/lib/stack_one/models/operations/ats_list_application_scorecards_response.rb +33 -0
  66. data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +20 -0
  67. data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +55 -0
  68. data/lib/stack_one/models/operations/ats_list_applications_offers_response.rb +33 -0
  69. data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +20 -0
  70. data/lib/stack_one/models/operations/ats_list_applications_request.rb +55 -0
  71. data/lib/stack_one/models/operations/ats_list_applications_response.rb +33 -0
  72. data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +20 -0
  73. data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +55 -0
  74. data/lib/stack_one/models/operations/ats_list_candidate_notes_response.rb +33 -0
  75. data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +20 -0
  76. data/lib/stack_one/models/operations/ats_list_candidates_request.rb +52 -0
  77. data/lib/stack_one/models/operations/ats_list_candidates_response.rb +33 -0
  78. data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +20 -0
  79. data/lib/stack_one/models/operations/ats_list_departments_request.rb +52 -0
  80. data/lib/stack_one/models/operations/ats_list_departments_response.rb +33 -0
  81. data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +20 -0
  82. data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +52 -0
  83. data/lib/stack_one/models/operations/ats_list_interview_stages_response.rb +33 -0
  84. data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +20 -0
  85. data/lib/stack_one/models/operations/ats_list_interviews_request.rb +52 -0
  86. data/lib/stack_one/models/operations/ats_list_interviews_response.rb +33 -0
  87. data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +20 -0
  88. data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +55 -0
  89. data/lib/stack_one/models/operations/ats_list_job_postings_response.rb +33 -0
  90. data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +20 -0
  91. data/lib/stack_one/models/operations/ats_list_jobs_request.rb +55 -0
  92. data/lib/stack_one/models/operations/ats_list_jobs_response.rb +33 -0
  93. data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +20 -0
  94. data/lib/stack_one/models/operations/ats_list_locations_request.rb +52 -0
  95. data/lib/stack_one/models/operations/ats_list_locations_response.rb +33 -0
  96. data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +20 -0
  97. data/lib/stack_one/models/operations/ats_list_offers_request.rb +52 -0
  98. data/lib/stack_one/models/operations/ats_list_offers_response.rb +33 -0
  99. data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +20 -0
  100. data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +52 -0
  101. data/lib/stack_one/models/operations/ats_list_rejected_reasons_response.rb +33 -0
  102. data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +20 -0
  103. data/lib/stack_one/models/operations/ats_list_users_request.rb +52 -0
  104. data/lib/stack_one/models/operations/ats_list_users_response.rb +33 -0
  105. data/lib/stack_one/models/operations/ats_update_application_request.rb +30 -0
  106. data/lib/stack_one/models/operations/ats_update_application_response.rb +33 -0
  107. data/lib/stack_one/models/operations/ats_update_candidate_request.rb +30 -0
  108. data/lib/stack_one/models/operations/ats_update_candidate_response.rb +33 -0
  109. data/lib/stack_one/models/operations/crm_create_contact_request.rb +27 -0
  110. data/lib/stack_one/models/operations/crm_create_contact_response.rb +33 -0
  111. data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +20 -0
  112. data/lib/stack_one/models/operations/crm_get_account_request.rb +50 -0
  113. data/lib/stack_one/models/operations/crm_get_account_response.rb +33 -0
  114. data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +20 -0
  115. data/lib/stack_one/models/operations/crm_get_contact_request.rb +50 -0
  116. data/lib/stack_one/models/operations/crm_get_contact_response.rb +33 -0
  117. data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +20 -0
  118. data/lib/stack_one/models/operations/crm_get_list_request.rb +50 -0
  119. data/lib/stack_one/models/operations/crm_get_list_response.rb +33 -0
  120. data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +20 -0
  121. data/lib/stack_one/models/operations/crm_list_accounts_request.rb +47 -0
  122. data/lib/stack_one/models/operations/crm_list_accounts_response.rb +33 -0
  123. data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +20 -0
  124. data/lib/stack_one/models/operations/crm_list_contacts_request.rb +47 -0
  125. data/lib/stack_one/models/operations/crm_list_contacts_response.rb +33 -0
  126. data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +20 -0
  127. data/lib/stack_one/models/operations/crm_list_lists_request.rb +47 -0
  128. data/lib/stack_one/models/operations/crm_list_lists_response.rb +33 -0
  129. data/lib/stack_one/models/operations/crm_update_contact_request.rb +30 -0
  130. data/lib/stack_one/models/operations/crm_update_contact_response.rb +33 -0
  131. data/lib/stack_one/models/operations/hris_create_employee_document_request.rb +30 -0
  132. data/lib/stack_one/models/operations/hris_create_employee_document_response.rb +33 -0
  133. data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_request.rb +30 -0
  134. data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_response.rb +33 -0
  135. data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +20 -0
  136. data/lib/stack_one/models/operations/hris_get_benefit_request.rb +50 -0
  137. data/lib/stack_one/models/operations/hris_get_benefit_response.rb +33 -0
  138. data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +20 -0
  139. data/lib/stack_one/models/operations/hris_get_company_request.rb +3 -3
  140. data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +1 -1
  141. data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +1 -1
  142. data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +20 -0
  143. data/lib/stack_one/models/operations/hris_get_employee_request.rb +3 -3
  144. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +1 -1
  145. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +1 -1
  146. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_queryparam_proxy.rb +20 -0
  147. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +53 -0
  148. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_response.rb +33 -0
  149. data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +1 -1
  150. data/lib/stack_one/models/operations/hris_get_employment_request.rb +1 -1
  151. data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +1 -1
  152. data/lib/stack_one/models/operations/hris_get_location_request.rb +1 -1
  153. data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +1 -1
  154. data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +1 -1
  155. data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +20 -0
  156. data/lib/stack_one/models/operations/hris_list_benefits_request.rb +47 -0
  157. data/lib/stack_one/models/operations/hris_list_benefits_response.rb +33 -0
  158. data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +1 -1
  159. data/lib/stack_one/models/operations/hris_list_companies_request.rb +1 -1
  160. data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +1 -1
  161. data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +1 -1
  162. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +1 -1
  163. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +1 -1
  164. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_queryparam_proxy.rb +20 -0
  165. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +50 -0
  166. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_response.rb +33 -0
  167. data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +1 -1
  168. data/lib/stack_one/models/operations/hris_list_employees_request.rb +1 -1
  169. data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +1 -1
  170. data/lib/stack_one/models/operations/hris_list_employments_request.rb +1 -1
  171. data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +1 -1
  172. data/lib/stack_one/models/operations/hris_list_locations_request.rb +1 -1
  173. data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +1 -1
  174. data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +1 -1
  175. data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_request.rb +33 -0
  176. data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_response.rb +30 -0
  177. data/lib/stack_one/models/operations/marketing_create_email_template_request.rb +27 -0
  178. data/lib/stack_one/models/operations/marketing_create_email_template_response.rb +33 -0
  179. data/lib/stack_one/models/operations/marketing_create_omni_channel_template_request.rb +27 -0
  180. data/lib/stack_one/models/operations/marketing_create_omni_channel_template_response.rb +33 -0
  181. data/lib/stack_one/models/operations/marketing_create_push_template_request.rb +27 -0
  182. data/lib/stack_one/models/operations/marketing_create_push_template_response.rb +33 -0
  183. data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +20 -0
  184. data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +50 -0
  185. data/lib/stack_one/models/operations/marketing_get_campaign_response.rb +33 -0
  186. data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +20 -0
  187. data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +50 -0
  188. data/lib/stack_one/models/operations/marketing_get_email_template_response.rb +33 -0
  189. data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +20 -0
  190. data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +50 -0
  191. data/lib/stack_one/models/operations/marketing_get_omni_channel_template_response.rb +33 -0
  192. data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +20 -0
  193. data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +50 -0
  194. data/lib/stack_one/models/operations/marketing_get_push_template_response.rb +33 -0
  195. data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +20 -0
  196. data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +47 -0
  197. data/lib/stack_one/models/operations/marketing_list_campaigns_response.rb +33 -0
  198. data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +20 -0
  199. data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +47 -0
  200. data/lib/stack_one/models/operations/marketing_list_email_templates_response.rb +33 -0
  201. data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +20 -0
  202. data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +47 -0
  203. data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_response.rb +33 -0
  204. data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +20 -0
  205. data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +47 -0
  206. data/lib/stack_one/models/operations/marketing_list_push_templates_response.rb +33 -0
  207. data/lib/stack_one/models/operations/marketing_update_email_template_request.rb +30 -0
  208. data/lib/stack_one/models/operations/marketing_update_email_template_response.rb +33 -0
  209. data/lib/stack_one/models/operations/marketing_update_omni_channel_template_request.rb +30 -0
  210. data/lib/stack_one/models/operations/marketing_update_omni_channel_template_response.rb +33 -0
  211. data/lib/stack_one/models/operations/marketing_update_push_template_request.rb +30 -0
  212. data/lib/stack_one/models/operations/marketing_update_push_template_response.rb +33 -0
  213. data/lib/stack_one/models/operations/proxy.rb +1 -1
  214. data/lib/stack_one/models/operations/queryparam_proxy.rb +1 -1
  215. data/lib/stack_one/models/operations.rb +180 -2
  216. data/lib/stack_one/models/shared/account.rb +54 -0
  217. data/lib/stack_one/models/shared/accountaddress.rb +42 -0
  218. data/lib/stack_one/models/shared/accountaddress_schemas_value.rb +265 -0
  219. data/lib/stack_one/models/shared/accountaddress_value.rb +20 -0
  220. data/lib/stack_one/models/shared/accountresult.rb +27 -0
  221. data/lib/stack_one/models/shared/accountspaginated.rb +33 -0
  222. data/lib/stack_one/models/shared/answer.rb +30 -0
  223. data/lib/stack_one/models/shared/answer_value.rb +26 -0
  224. data/lib/stack_one/models/shared/application.rb +77 -0
  225. data/lib/stack_one/models/shared/application_candidate.rb +30 -0
  226. data/lib/stack_one/models/shared/application_interview_stage.rb +36 -0
  227. data/lib/stack_one/models/shared/application_status.rb +27 -0
  228. data/lib/stack_one/models/shared/application_value.rb +32 -0
  229. data/lib/stack_one/models/shared/applicationattachment.rb +33 -0
  230. data/lib/stack_one/models/shared/applicationattachment_value.rb +19 -0
  231. data/lib/stack_one/models/shared/applicationresult.rb +27 -0
  232. data/lib/stack_one/models/shared/applicationspaginated.rb +33 -0
  233. data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +44 -0
  234. data/lib/stack_one/models/shared/atscreateapplicationrequestdto_application_status.rb +27 -0
  235. data/lib/stack_one/models/shared/atscreateapplicationrequestdto_candidate.rb +30 -0
  236. data/lib/stack_one/models/shared/atscreateapplicationrequestdto_value.rb +32 -0
  237. data/lib/stack_one/models/shared/atscreatecandidaterequestdto.rb +47 -0
  238. data/lib/stack_one/models/shared/atscreatenotesrequestdto.rb +30 -0
  239. data/lib/stack_one/models/shared/atscreatenotesrequestdto_value.rb +19 -0
  240. data/lib/stack_one/models/shared/atscreateofferrequestdto.rb +39 -0
  241. data/lib/stack_one/models/shared/atscreateofferrequestdto_value.rb +25 -0
  242. data/lib/stack_one/models/shared/atslocation.rb +27 -0
  243. data/lib/stack_one/models/shared/atslocationresult.rb +27 -0
  244. data/lib/stack_one/models/shared/atslocationspaginated.rb +33 -0
  245. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +47 -0
  246. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_application_status.rb +27 -0
  247. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_candidate.rb +30 -0
  248. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +32 -0
  249. data/lib/stack_one/models/shared/atsupdatecandidatesrequestdto.rb +50 -0
  250. data/lib/stack_one/models/shared/benefit_type.rb +27 -0
  251. data/lib/stack_one/models/shared/campaign.rb +63 -0
  252. data/lib/stack_one/models/shared/campaign_schemas_value.rb +20 -0
  253. data/lib/stack_one/models/shared/campaign_value.rb +22 -0
  254. data/lib/stack_one/models/shared/campaignresult.rb +27 -0
  255. data/lib/stack_one/models/shared/campaignspaginated.rb +33 -0
  256. data/lib/stack_one/models/shared/candidate.rb +68 -0
  257. data/lib/stack_one/models/shared/candidateemail.rb +27 -0
  258. data/lib/stack_one/models/shared/candidateresult.rb +27 -0
  259. data/lib/stack_one/models/shared/candidatespaginated.rb +33 -0
  260. data/lib/stack_one/models/shared/categories.rb +1 -0
  261. data/lib/stack_one/models/shared/category.rb +1 -0
  262. data/lib/stack_one/models/shared/channelsenum.rb +27 -0
  263. data/lib/stack_one/models/shared/company.rb +3 -3
  264. data/lib/stack_one/models/shared/confidential.rb +19 -0
  265. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
  266. data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +1 -0
  267. data/lib/stack_one/models/shared/contact.rb +51 -0
  268. data/lib/stack_one/models/shared/contactresult.rb +27 -0
  269. data/lib/stack_one/models/shared/contactspaginated.rb +33 -0
  270. data/lib/stack_one/models/shared/content_type.rb +27 -0
  271. data/lib/stack_one/models/shared/country.rb +4 -4
  272. data/lib/stack_one/models/shared/countrycodeenum.rb +2 -2
  273. data/lib/stack_one/models/shared/countrycodeenum_value.rb +266 -0
  274. data/lib/stack_one/models/shared/createcandidatenoteresult.rb +30 -0
  275. data/lib/stack_one/models/shared/createdocumentresult.rb +30 -0
  276. data/lib/stack_one/models/shared/createofferresult.rb +30 -0
  277. data/lib/stack_one/models/shared/createresult.rb +30 -0
  278. data/lib/stack_one/models/shared/createtemplateresult.rb +30 -0
  279. data/lib/stack_one/models/shared/createworkeligibilityresult.rb +30 -0
  280. data/lib/stack_one/models/shared/crmcreatecontactrequestdto.rb +42 -0
  281. data/lib/stack_one/models/shared/department.rb +27 -0
  282. data/lib/stack_one/models/shared/departmentresult.rb +27 -0
  283. data/lib/stack_one/models/shared/departmentspaginated.rb +33 -0
  284. data/lib/stack_one/models/shared/documentapimodel.rb +2 -2
  285. data/lib/stack_one/models/shared/documentapimodel_type.rb +27 -0
  286. data/lib/stack_one/models/shared/documentapimodel_value.rb +7 -14
  287. data/lib/stack_one/models/shared/emailmessages.rb +33 -0
  288. data/lib/stack_one/models/shared/emailmessages_value.rb +20 -0
  289. data/lib/stack_one/models/shared/employee.rb +8 -5
  290. data/lib/stack_one/models/shared/employee_company.rb +36 -0
  291. data/lib/stack_one/models/shared/employee_country.rb +2 -2
  292. data/lib/stack_one/models/shared/employee_location_type.rb +4 -4
  293. data/lib/stack_one/models/shared/employee_schemas_country.rb +2 -2
  294. data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +1 -3
  295. data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +1 -1
  296. data/lib/stack_one/models/shared/employee_schemas_location_type.rb +4 -4
  297. data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +1 -1
  298. data/lib/stack_one/models/shared/employment_employment_type.rb +2 -2
  299. data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +1 -3
  300. data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +2 -1
  301. data/lib/stack_one/models/shared/employment_schemas_value.rb +1 -3
  302. data/lib/stack_one/models/shared/employment_type.rb +2 -2
  303. data/lib/stack_one/models/shared/field.rb +36 -0
  304. data/lib/stack_one/models/shared/field_type.rb +29 -0
  305. data/lib/stack_one/models/shared/fileformatenum_value.rb +1203 -11
  306. data/lib/stack_one/models/shared/home_location.rb +3 -3
  307. data/lib/stack_one/models/shared/hrisbenefit.rb +42 -0
  308. data/lib/stack_one/models/shared/hrisbenefit_value.rb +22 -0
  309. data/lib/stack_one/models/shared/hrisbenefitresult.rb +27 -0
  310. data/lib/stack_one/models/shared/hrisbenefitspaginated.rb +33 -0
  311. data/lib/stack_one/models/shared/hriscreatedocumentrequestdto.rb +33 -0
  312. data/lib/stack_one/models/shared/hriscreatedocumentrequestdto_type.rb +27 -0
  313. data/lib/stack_one/models/shared/hriscreatedocumentrequestdto_value.rb +28 -0
  314. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
  315. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +2 -2
  316. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +1 -3
  317. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +2 -2
  318. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +8 -0
  319. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_status.rb +27 -0
  320. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +3 -0
  321. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto.rb +42 -0
  322. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_value.rb +22 -0
  323. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_type.rb +27 -0
  324. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_value.rb +266 -0
  325. data/lib/stack_one/models/shared/hrislocation.rb +3 -3
  326. data/lib/stack_one/models/shared/hrislocation_country.rb +27 -0
  327. data/lib/stack_one/models/shared/hrislocation_location_type.rb +27 -0
  328. data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +1 -1
  329. data/lib/stack_one/models/shared/internal.rb +19 -0
  330. data/lib/stack_one/models/shared/interview.rb +60 -0
  331. data/lib/stack_one/models/shared/interview_interview_stage.rb +36 -0
  332. data/lib/stack_one/models/shared/interview_status.rb +27 -0
  333. data/lib/stack_one/models/shared/interview_value.rb +23 -0
  334. data/lib/stack_one/models/shared/interviewer.rb +36 -0
  335. data/lib/stack_one/models/shared/interviewpart.rb +39 -0
  336. data/lib/stack_one/models/shared/interviewspaginated.rb +33 -0
  337. data/lib/stack_one/models/shared/interviewsresult.rb +27 -0
  338. data/lib/stack_one/models/shared/interviewstage.rb +36 -0
  339. data/lib/stack_one/models/shared/interviewstageresult.rb +27 -0
  340. data/lib/stack_one/models/shared/interviewstagespaginated.rb +33 -0
  341. data/lib/stack_one/models/shared/issued_by.rb +27 -0
  342. data/lib/stack_one/models/shared/job.rb +57 -0
  343. data/lib/stack_one/models/shared/{response.rb → job_schemas_status.rb} +1 -1
  344. data/lib/stack_one/models/shared/job_status.rb +27 -0
  345. data/lib/stack_one/models/shared/job_value.rb +25 -0
  346. data/lib/stack_one/models/shared/jobhiringteam.rb +36 -0
  347. data/lib/stack_one/models/shared/jobposting.rb +66 -0
  348. data/lib/stack_one/models/shared/jobposting_content.rb +27 -0
  349. data/lib/stack_one/models/shared/jobposting_employment_contract_type.rb +27 -0
  350. data/lib/stack_one/models/shared/jobposting_employment_type.rb +27 -0
  351. data/lib/stack_one/models/shared/jobposting_schemas_status_value.rb +22 -0
  352. data/lib/stack_one/models/shared/jobposting_schemas_value.rb +33 -0
  353. data/lib/stack_one/models/shared/jobposting_status.rb +27 -0
  354. data/lib/stack_one/models/shared/jobposting_value.rb +21 -0
  355. data/lib/stack_one/models/shared/jobpostingcompensation.rb +45 -0
  356. data/lib/stack_one/models/shared/jobpostingcompensation_pay_frequency.rb +27 -0
  357. data/lib/stack_one/models/shared/jobpostingcompensation_pay_period.rb +27 -0
  358. data/lib/stack_one/models/shared/jobpostingcompensation_schemas_type_value.rb +24 -0
  359. data/lib/stack_one/models/shared/jobpostingcompensation_schemas_value.rb +27 -0
  360. data/lib/stack_one/models/shared/jobpostingcompensation_type.rb +27 -0
  361. data/lib/stack_one/models/shared/jobpostingcompensation_value.rb +31 -0
  362. data/lib/stack_one/models/shared/jobpostinglocation.rb +27 -0
  363. data/lib/stack_one/models/shared/jobpostingquestionnaire.rb +33 -0
  364. data/lib/stack_one/models/shared/jobpostingresult.rb +27 -0
  365. data/lib/stack_one/models/shared/jobpostingspaginated.rb +33 -0
  366. data/lib/stack_one/models/shared/jobresult.rb +27 -0
  367. data/lib/stack_one/models/shared/jobspaginated.rb +33 -0
  368. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
  369. data/lib/stack_one/models/shared/list.rb +39 -0
  370. data/lib/stack_one/models/shared/list_type.rb +27 -0
  371. data/lib/stack_one/models/shared/list_value.rb +20 -0
  372. data/lib/stack_one/models/shared/listresult.rb +27 -0
  373. data/lib/stack_one/models/shared/listspaginated.rb +33 -0
  374. data/lib/stack_one/models/shared/location_type.rb +4 -4
  375. data/lib/stack_one/models/shared/marketingcreateemailtemplaterequestdto.rb +33 -0
  376. data/lib/stack_one/models/shared/marketingcreatepushtemplaterequestdto.rb +33 -0
  377. data/lib/stack_one/models/shared/marketingcreatetemplaterequestdto.rb +33 -0
  378. data/lib/stack_one/models/shared/message.rb +33 -0
  379. data/lib/stack_one/models/shared/message_content.rb +36 -0
  380. data/lib/stack_one/models/shared/message_message_type.rb +27 -0
  381. data/lib/stack_one/models/shared/message_type.rb +27 -0
  382. data/lib/stack_one/models/shared/message_value.rb +20 -0
  383. data/lib/stack_one/models/shared/note.rb +42 -0
  384. data/lib/stack_one/models/shared/note_value.rb +19 -0
  385. data/lib/stack_one/models/shared/note_visibility.rb +27 -0
  386. data/lib/stack_one/models/shared/notecontentapimodel.rb +24 -0
  387. data/lib/stack_one/models/shared/noteresult.rb +27 -0
  388. data/lib/stack_one/models/shared/notespaginated.rb +33 -0
  389. data/lib/stack_one/models/shared/offer.rb +48 -0
  390. data/lib/stack_one/models/shared/offer_offer_status.rb +27 -0
  391. data/lib/stack_one/models/shared/offer_status.rb +27 -0
  392. data/lib/stack_one/models/shared/offer_value.rb +25 -0
  393. data/lib/stack_one/models/shared/offerhistory.rb +36 -0
  394. data/lib/stack_one/models/shared/offerspaginated.rb +33 -0
  395. data/lib/stack_one/models/shared/offersresult.rb +27 -0
  396. data/lib/stack_one/models/shared/overall_recommendation.rb +23 -0
  397. data/lib/stack_one/models/shared/pay_frequency.rb +2 -2
  398. data/lib/stack_one/models/shared/pay_period.rb +2 -2
  399. data/lib/stack_one/models/shared/phonenumber.rb +27 -0
  400. data/lib/stack_one/models/shared/phonenumber_type.rb +23 -0
  401. data/lib/stack_one/models/shared/pushmessages.rb +33 -0
  402. data/lib/stack_one/models/shared/pushmessages_message_content.rb +24 -0
  403. data/lib/stack_one/models/shared/pushmessages_message_type.rb +27 -0
  404. data/lib/stack_one/models/shared/pushmessages_value.rb +20 -0
  405. data/lib/stack_one/models/shared/question.rb +39 -0
  406. data/lib/stack_one/models/shared/question_type.rb +27 -0
  407. data/lib/stack_one/models/shared/question_value.rb +26 -0
  408. data/lib/stack_one/models/shared/questionmultiplechoiceanswers.rb +27 -0
  409. data/lib/stack_one/models/shared/questionnaire.rb +27 -0
  410. data/lib/stack_one/models/shared/rawresponse.rb +2 -2
  411. data/lib/stack_one/models/shared/rejected_reason_type.rb +27 -0
  412. data/lib/stack_one/models/shared/rejectedreason.rb +33 -0
  413. data/lib/stack_one/models/shared/rejectedreason_value.rb +22 -0
  414. data/lib/stack_one/models/shared/rejectedreasonresult.rb +27 -0
  415. data/lib/stack_one/models/shared/rejectedreasonspaginated.rb +33 -0
  416. data/lib/stack_one/models/shared/resultlink.rb +27 -0
  417. data/lib/stack_one/models/shared/schedule_type.rb +27 -0
  418. data/lib/stack_one/models/shared/scorecard.rb +51 -0
  419. data/lib/stack_one/models/shared/scorecardsection.rb +30 -0
  420. data/lib/stack_one/models/shared/scorecardspaginated.rb +33 -0
  421. data/lib/stack_one/models/shared/sociallink.rb +27 -0
  422. data/lib/stack_one/models/shared/status.rb +5 -5
  423. data/lib/stack_one/models/shared/template.rb +36 -0
  424. data/lib/stack_one/models/shared/templateresult.rb +27 -0
  425. data/lib/stack_one/models/shared/templatespaginated.rb +33 -0
  426. data/lib/stack_one/models/shared/timeoff_schemas_value.rb +8 -0
  427. data/lib/stack_one/models/shared/timeoff_value.rb +3 -0
  428. data/lib/stack_one/models/shared/type.rb +5 -5
  429. data/lib/stack_one/models/shared/updateresult.rb +30 -0
  430. data/lib/stack_one/models/shared/user.rb +39 -0
  431. data/lib/stack_one/models/shared/userresult.rb +27 -0
  432. data/lib/stack_one/models/shared/userspaginated.rb +33 -0
  433. data/lib/stack_one/models/shared/value.rb +7 -249
  434. data/lib/stack_one/models/shared/visibility.rb +27 -0
  435. data/lib/stack_one/models/shared/work_location.rb +3 -3
  436. data/lib/stack_one/models/shared/workeligibility.rb +8 -5
  437. data/lib/stack_one/models/shared/workeligibility_document.rb +39 -0
  438. data/lib/stack_one/models/shared/workeligibility_issued_by.rb +27 -0
  439. data/lib/stack_one/models/shared/workeligibility_schemas_value.rb +22 -0
  440. data/lib/stack_one/models/shared/workeligibility_type.rb +2 -2
  441. data/lib/stack_one/models/shared/workeligibility_value.rb +250 -6
  442. data/lib/stack_one/models/shared/workeligibilitypaginated.rb +33 -0
  443. data/lib/stack_one/models/shared/workeligibilityresult.rb +27 -0
  444. data/lib/stack_one/models/shared.rb +203 -22
  445. data/lib/stack_one/proxy.rb +1 -1
  446. data/lib/stack_one/sdkconfiguration.rb +10 -11
  447. data/lib/stack_one/stackone.rb +25 -21
  448. data/lib/stack_one/utils/metadata_fields.rb +8 -12
  449. data/lib/stack_one/utils/t.rb +59 -0
  450. data/lib/stack_one/utils/utils.rb +8 -13
  451. data/lib/stackone_client.rb +8 -3
  452. metadata +370 -7
@@ -0,0 +1,1400 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'faraday'
7
+ require 'faraday/multipart'
8
+ require 'sorbet-runtime'
9
+
10
+ module StackOne
11
+ extend T::Sig
12
+ class Ats
13
+ extend T::Sig
14
+
15
+
16
+ sig { params(sdk_config: SDKConfiguration).void }
17
+ def initialize(sdk_config)
18
+ @sdk_configuration = sdk_config
19
+ end
20
+
21
+
22
+ sig { params(ats_create_application_request_dto: ::StackOne::Shared::AtsCreateApplicationRequestDto, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateApplicationResponse) }
23
+ def create_application(ats_create_application_request_dto, x_account_id)
24
+ # create_application - Create Application
25
+ request = ::StackOne::Operations::AtsCreateApplicationRequest.new(
26
+
27
+ ats_create_application_request_dto: ats_create_application_request_dto,
28
+ x_account_id: x_account_id
29
+ )
30
+ url, params = @sdk_configuration.get_server_details
31
+ base_url = Utils.template_url(url, params)
32
+ url = "#{base_url}/unified/ats/applications"
33
+ headers = Utils.get_headers(request)
34
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_create_application_request_dto, :json)
35
+ headers['content-type'] = req_content_type
36
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
37
+ headers['Accept'] = 'application/json'
38
+ headers['user-agent'] = @sdk_configuration.user_agent
39
+
40
+ r = @sdk_configuration.client.post(url) do |req|
41
+ req.headers = headers
42
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
43
+ if form
44
+ req.body = Utils.encode_form(form)
45
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
46
+ req.body = URI.encode_www_form(data)
47
+ else
48
+ req.body = data
49
+ end
50
+ end
51
+
52
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
53
+
54
+ res = ::StackOne::Operations::AtsCreateApplicationResponse.new(
55
+ status_code: r.status, content_type: content_type, raw_response: r
56
+ )
57
+ if r.status == 201
58
+ if Utils.match_content_type(content_type, 'application/json')
59
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
60
+ res.create_result = out
61
+ end
62
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
63
+ end
64
+ res
65
+ end
66
+
67
+
68
+ sig { params(ats_create_candidate_request_dto: ::StackOne::Shared::AtsCreateCandidateRequestDto, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateCandidateResponse) }
69
+ def create_candidate(ats_create_candidate_request_dto, x_account_id)
70
+ # create_candidate - Create Candidate (early access)
71
+ request = ::StackOne::Operations::AtsCreateCandidateRequest.new(
72
+
73
+ ats_create_candidate_request_dto: ats_create_candidate_request_dto,
74
+ x_account_id: x_account_id
75
+ )
76
+ url, params = @sdk_configuration.get_server_details
77
+ base_url = Utils.template_url(url, params)
78
+ url = "#{base_url}/unified/ats/candidates"
79
+ headers = Utils.get_headers(request)
80
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_create_candidate_request_dto, :json)
81
+ headers['content-type'] = req_content_type
82
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
83
+ headers['Accept'] = 'application/json'
84
+ headers['user-agent'] = @sdk_configuration.user_agent
85
+
86
+ r = @sdk_configuration.client.post(url) do |req|
87
+ req.headers = headers
88
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
89
+ if form
90
+ req.body = Utils.encode_form(form)
91
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
92
+ req.body = URI.encode_www_form(data)
93
+ else
94
+ req.body = data
95
+ end
96
+ end
97
+
98
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
99
+
100
+ res = ::StackOne::Operations::AtsCreateCandidateResponse.new(
101
+ status_code: r.status, content_type: content_type, raw_response: r
102
+ )
103
+ if r.status == 200
104
+ if Utils.match_content_type(content_type, 'application/json')
105
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CandidateResult)
106
+ res.candidate_result = out
107
+ end
108
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
109
+ end
110
+ res
111
+ end
112
+
113
+
114
+ sig { params(ats_create_notes_request_dto: ::StackOne::Shared::AtsCreateNotesRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateCandidateNoteResponse) }
115
+ def create_candidate_note(ats_create_notes_request_dto, id, x_account_id)
116
+ # create_candidate_note - Create Candidate Note
117
+ request = ::StackOne::Operations::AtsCreateCandidateNoteRequest.new(
118
+
119
+ ats_create_notes_request_dto: ats_create_notes_request_dto,
120
+ id: id,
121
+ x_account_id: x_account_id
122
+ )
123
+ url, params = @sdk_configuration.get_server_details
124
+ base_url = Utils.template_url(url, params)
125
+ url = Utils.generate_url(
126
+ ::StackOne::Operations::AtsCreateCandidateNoteRequest,
127
+ base_url,
128
+ '/unified/ats/candidates/{id}/notes',
129
+ request
130
+ )
131
+ headers = Utils.get_headers(request)
132
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_create_notes_request_dto, :json)
133
+ headers['content-type'] = req_content_type
134
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
135
+ headers['Accept'] = 'application/json'
136
+ headers['user-agent'] = @sdk_configuration.user_agent
137
+
138
+ r = @sdk_configuration.client.post(url) do |req|
139
+ req.headers = headers
140
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
141
+ if form
142
+ req.body = Utils.encode_form(form)
143
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
144
+ req.body = URI.encode_www_form(data)
145
+ else
146
+ req.body = data
147
+ end
148
+ end
149
+
150
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
151
+
152
+ res = ::StackOne::Operations::AtsCreateCandidateNoteResponse.new(
153
+ status_code: r.status, content_type: content_type, raw_response: r
154
+ )
155
+ if r.status == 201
156
+ if Utils.match_content_type(content_type, 'application/json')
157
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateCandidateNoteResult)
158
+ res.create_candidate_note_result = out
159
+ end
160
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
161
+ end
162
+ res
163
+ end
164
+
165
+
166
+ sig { params(ats_create_offer_request_dto: ::StackOne::Shared::AtsCreateOfferRequestDto, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateOfferResponse) }
167
+ def create_offer(ats_create_offer_request_dto, x_account_id)
168
+ # create_offer - Creates an offer
169
+ request = ::StackOne::Operations::AtsCreateOfferRequest.new(
170
+
171
+ ats_create_offer_request_dto: ats_create_offer_request_dto,
172
+ x_account_id: x_account_id
173
+ )
174
+ url, params = @sdk_configuration.get_server_details
175
+ base_url = Utils.template_url(url, params)
176
+ url = "#{base_url}/unified/ats/offers"
177
+ headers = Utils.get_headers(request)
178
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_create_offer_request_dto, :json)
179
+ headers['content-type'] = req_content_type
180
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
181
+ headers['Accept'] = 'application/json'
182
+ headers['user-agent'] = @sdk_configuration.user_agent
183
+
184
+ r = @sdk_configuration.client.post(url) do |req|
185
+ req.headers = headers
186
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
187
+ if form
188
+ req.body = Utils.encode_form(form)
189
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
190
+ req.body = URI.encode_www_form(data)
191
+ else
192
+ req.body = data
193
+ end
194
+ end
195
+
196
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
197
+
198
+ res = ::StackOne::Operations::AtsCreateOfferResponse.new(
199
+ status_code: r.status, content_type: content_type, raw_response: r
200
+ )
201
+ if r.status == 200
202
+ if Utils.match_content_type(content_type, 'application/json')
203
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateOfferResult)
204
+ res.create_offer_result = out
205
+ end
206
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
207
+ end
208
+ res
209
+ end
210
+
211
+
212
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetApplicationRequest)).returns(::StackOne::Operations::AtsGetApplicationResponse) }
213
+ def get_application(request)
214
+ # get_application - Get Application
215
+ url, params = @sdk_configuration.get_server_details
216
+ base_url = Utils.template_url(url, params)
217
+ url = Utils.generate_url(
218
+ ::StackOne::Operations::AtsGetApplicationRequest,
219
+ base_url,
220
+ '/unified/ats/applications/{id}',
221
+ request
222
+ )
223
+ headers = Utils.get_headers(request)
224
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetApplicationRequest, request)
225
+ headers['Accept'] = 'application/json'
226
+ headers['user-agent'] = @sdk_configuration.user_agent
227
+
228
+ r = @sdk_configuration.client.get(url) do |req|
229
+ req.headers = headers
230
+ req.params = query_params
231
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
232
+ end
233
+
234
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
235
+
236
+ res = ::StackOne::Operations::AtsGetApplicationResponse.new(
237
+ status_code: r.status, content_type: content_type, raw_response: r
238
+ )
239
+ if r.status == 200
240
+ if Utils.match_content_type(content_type, 'application/json')
241
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ApplicationResult)
242
+ res.application_result = out
243
+ end
244
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
245
+ end
246
+ res
247
+ end
248
+
249
+
250
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetApplicationDocumentRequest)).returns(::StackOne::Operations::AtsGetApplicationDocumentResponse) }
251
+ def get_application_document(request)
252
+ # get_application_document - Get Application Document
253
+ url, params = @sdk_configuration.get_server_details
254
+ base_url = Utils.template_url(url, params)
255
+ url = Utils.generate_url(
256
+ ::StackOne::Operations::AtsGetApplicationDocumentRequest,
257
+ base_url,
258
+ '/unified/ats/applications/{id}/documents/{subResourceId}',
259
+ request
260
+ )
261
+ headers = Utils.get_headers(request)
262
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetApplicationDocumentRequest, request)
263
+ headers['Accept'] = 'application/json'
264
+ headers['user-agent'] = @sdk_configuration.user_agent
265
+
266
+ r = @sdk_configuration.client.get(url) do |req|
267
+ req.headers = headers
268
+ req.params = query_params
269
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
270
+ end
271
+
272
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
273
+
274
+ res = ::StackOne::Operations::AtsGetApplicationDocumentResponse.new(
275
+ status_code: r.status, content_type: content_type, raw_response: r
276
+ )
277
+ if r.status == 200
278
+ if Utils.match_content_type(content_type, 'application/json')
279
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DocumentResult)
280
+ res.document_result = out
281
+ end
282
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
283
+ end
284
+ res
285
+ end
286
+
287
+
288
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetApplicationOfferRequest)).returns(::StackOne::Operations::AtsGetApplicationOfferResponse) }
289
+ def get_application_offer(request)
290
+ # get_application_offer - Get Application Offer
291
+ url, params = @sdk_configuration.get_server_details
292
+ base_url = Utils.template_url(url, params)
293
+ url = Utils.generate_url(
294
+ ::StackOne::Operations::AtsGetApplicationOfferRequest,
295
+ base_url,
296
+ '/unified/ats/applications/{id}/offers/{subResourceId}',
297
+ request
298
+ )
299
+ headers = Utils.get_headers(request)
300
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetApplicationOfferRequest, request)
301
+ headers['Accept'] = 'application/json'
302
+ headers['user-agent'] = @sdk_configuration.user_agent
303
+
304
+ r = @sdk_configuration.client.get(url) do |req|
305
+ req.headers = headers
306
+ req.params = query_params
307
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
308
+ end
309
+
310
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
311
+
312
+ res = ::StackOne::Operations::AtsGetApplicationOfferResponse.new(
313
+ status_code: r.status, content_type: content_type, raw_response: r
314
+ )
315
+ if r.status == 200
316
+ if Utils.match_content_type(content_type, 'application/json')
317
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersResult)
318
+ res.offers_result = out
319
+ end
320
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
321
+ end
322
+ res
323
+ end
324
+
325
+
326
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetApplicationScorecardRequest)).returns(::StackOne::Operations::AtsGetApplicationScorecardResponse) }
327
+ def get_application_scorecard(request)
328
+ # get_application_scorecard - Get Application Scorecard
329
+ url, params = @sdk_configuration.get_server_details
330
+ base_url = Utils.template_url(url, params)
331
+ url = Utils.generate_url(
332
+ ::StackOne::Operations::AtsGetApplicationScorecardRequest,
333
+ base_url,
334
+ '/unified/ats/applications/{id}/scorecards/{subResourceId}',
335
+ request
336
+ )
337
+ headers = Utils.get_headers(request)
338
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetApplicationScorecardRequest, request)
339
+ headers['Accept'] = 'application/json'
340
+ headers['user-agent'] = @sdk_configuration.user_agent
341
+
342
+ r = @sdk_configuration.client.get(url) do |req|
343
+ req.headers = headers
344
+ req.params = query_params
345
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
346
+ end
347
+
348
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
349
+
350
+ res = ::StackOne::Operations::AtsGetApplicationScorecardResponse.new(
351
+ status_code: r.status, content_type: content_type, raw_response: r
352
+ )
353
+ if r.status == 200
354
+ if Utils.match_content_type(content_type, 'application/json')
355
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersResult)
356
+ res.offers_result = out
357
+ end
358
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
359
+ end
360
+ res
361
+ end
362
+
363
+
364
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetCandidateRequest)).returns(::StackOne::Operations::AtsGetCandidateResponse) }
365
+ def get_candidate(request)
366
+ # get_candidate - Get Candidate
367
+ url, params = @sdk_configuration.get_server_details
368
+ base_url = Utils.template_url(url, params)
369
+ url = Utils.generate_url(
370
+ ::StackOne::Operations::AtsGetCandidateRequest,
371
+ base_url,
372
+ '/unified/ats/candidates/{id}',
373
+ request
374
+ )
375
+ headers = Utils.get_headers(request)
376
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetCandidateRequest, request)
377
+ headers['Accept'] = 'application/json'
378
+ headers['user-agent'] = @sdk_configuration.user_agent
379
+
380
+ r = @sdk_configuration.client.get(url) do |req|
381
+ req.headers = headers
382
+ req.params = query_params
383
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
384
+ end
385
+
386
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
387
+
388
+ res = ::StackOne::Operations::AtsGetCandidateResponse.new(
389
+ status_code: r.status, content_type: content_type, raw_response: r
390
+ )
391
+ if r.status == 200
392
+ if Utils.match_content_type(content_type, 'application/json')
393
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CandidateResult)
394
+ res.candidate_result = out
395
+ end
396
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
397
+ end
398
+ res
399
+ end
400
+
401
+
402
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetCandidateNoteRequest)).returns(::StackOne::Operations::AtsGetCandidateNoteResponse) }
403
+ def get_candidate_note(request)
404
+ # get_candidate_note - Get Candidate Note
405
+ url, params = @sdk_configuration.get_server_details
406
+ base_url = Utils.template_url(url, params)
407
+ url = Utils.generate_url(
408
+ ::StackOne::Operations::AtsGetCandidateNoteRequest,
409
+ base_url,
410
+ '/unified/ats/candidates/{id}/notes/{subResourceId}',
411
+ request
412
+ )
413
+ headers = Utils.get_headers(request)
414
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetCandidateNoteRequest, request)
415
+ headers['Accept'] = 'application/json'
416
+ headers['user-agent'] = @sdk_configuration.user_agent
417
+
418
+ r = @sdk_configuration.client.get(url) do |req|
419
+ req.headers = headers
420
+ req.params = query_params
421
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
422
+ end
423
+
424
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
425
+
426
+ res = ::StackOne::Operations::AtsGetCandidateNoteResponse.new(
427
+ status_code: r.status, content_type: content_type, raw_response: r
428
+ )
429
+ if r.status == 200
430
+ if Utils.match_content_type(content_type, 'application/json')
431
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::NoteResult)
432
+ res.note_result = out
433
+ end
434
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
435
+ end
436
+ res
437
+ end
438
+
439
+
440
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetDepartmentRequest)).returns(::StackOne::Operations::AtsGetDepartmentResponse) }
441
+ def get_department(request)
442
+ # get_department - Get Department
443
+ url, params = @sdk_configuration.get_server_details
444
+ base_url = Utils.template_url(url, params)
445
+ url = Utils.generate_url(
446
+ ::StackOne::Operations::AtsGetDepartmentRequest,
447
+ base_url,
448
+ '/unified/ats/departments/{id}',
449
+ request
450
+ )
451
+ headers = Utils.get_headers(request)
452
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetDepartmentRequest, request)
453
+ headers['Accept'] = 'application/json'
454
+ headers['user-agent'] = @sdk_configuration.user_agent
455
+
456
+ r = @sdk_configuration.client.get(url) do |req|
457
+ req.headers = headers
458
+ req.params = query_params
459
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
460
+ end
461
+
462
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
463
+
464
+ res = ::StackOne::Operations::AtsGetDepartmentResponse.new(
465
+ status_code: r.status, content_type: content_type, raw_response: r
466
+ )
467
+ if r.status == 200
468
+ if Utils.match_content_type(content_type, 'application/json')
469
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DepartmentResult)
470
+ res.department_result = out
471
+ end
472
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
473
+ end
474
+ res
475
+ end
476
+
477
+
478
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetInterviewRequest)).returns(::StackOne::Operations::AtsGetInterviewResponse) }
479
+ def get_interview(request)
480
+ # get_interview - Get Interview
481
+ url, params = @sdk_configuration.get_server_details
482
+ base_url = Utils.template_url(url, params)
483
+ url = Utils.generate_url(
484
+ ::StackOne::Operations::AtsGetInterviewRequest,
485
+ base_url,
486
+ '/unified/ats/interviews/{id}',
487
+ request
488
+ )
489
+ headers = Utils.get_headers(request)
490
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetInterviewRequest, request)
491
+ headers['Accept'] = 'application/json'
492
+ headers['user-agent'] = @sdk_configuration.user_agent
493
+
494
+ r = @sdk_configuration.client.get(url) do |req|
495
+ req.headers = headers
496
+ req.params = query_params
497
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
498
+ end
499
+
500
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
501
+
502
+ res = ::StackOne::Operations::AtsGetInterviewResponse.new(
503
+ status_code: r.status, content_type: content_type, raw_response: r
504
+ )
505
+ if r.status == 200
506
+ if Utils.match_content_type(content_type, 'application/json')
507
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InterviewsResult)
508
+ res.interviews_result = out
509
+ end
510
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
511
+ end
512
+ res
513
+ end
514
+
515
+
516
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetInterviewStageRequest)).returns(::StackOne::Operations::AtsGetInterviewStageResponse) }
517
+ def get_interview_stage(request)
518
+ # get_interview_stage - Get Interview Stage
519
+ url, params = @sdk_configuration.get_server_details
520
+ base_url = Utils.template_url(url, params)
521
+ url = Utils.generate_url(
522
+ ::StackOne::Operations::AtsGetInterviewStageRequest,
523
+ base_url,
524
+ '/unified/ats/interview_stages/{id}',
525
+ request
526
+ )
527
+ headers = Utils.get_headers(request)
528
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetInterviewStageRequest, request)
529
+ headers['Accept'] = 'application/json'
530
+ headers['user-agent'] = @sdk_configuration.user_agent
531
+
532
+ r = @sdk_configuration.client.get(url) do |req|
533
+ req.headers = headers
534
+ req.params = query_params
535
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
536
+ end
537
+
538
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
539
+
540
+ res = ::StackOne::Operations::AtsGetInterviewStageResponse.new(
541
+ status_code: r.status, content_type: content_type, raw_response: r
542
+ )
543
+ if r.status == 200
544
+ if Utils.match_content_type(content_type, 'application/json')
545
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InterviewStageResult)
546
+ res.interview_stage_result = out
547
+ end
548
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
549
+ end
550
+ res
551
+ end
552
+
553
+
554
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetJobRequest)).returns(::StackOne::Operations::AtsGetJobResponse) }
555
+ def get_job(request)
556
+ # get_job - Get Job
557
+ url, params = @sdk_configuration.get_server_details
558
+ base_url = Utils.template_url(url, params)
559
+ url = Utils.generate_url(
560
+ ::StackOne::Operations::AtsGetJobRequest,
561
+ base_url,
562
+ '/unified/ats/jobs/{id}',
563
+ request
564
+ )
565
+ headers = Utils.get_headers(request)
566
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetJobRequest, request)
567
+ headers['Accept'] = 'application/json'
568
+ headers['user-agent'] = @sdk_configuration.user_agent
569
+
570
+ r = @sdk_configuration.client.get(url) do |req|
571
+ req.headers = headers
572
+ req.params = query_params
573
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
574
+ end
575
+
576
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
577
+
578
+ res = ::StackOne::Operations::AtsGetJobResponse.new(
579
+ status_code: r.status, content_type: content_type, raw_response: r
580
+ )
581
+ if r.status == 200
582
+ if Utils.match_content_type(content_type, 'application/json')
583
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobResult)
584
+ res.job_result = out
585
+ end
586
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
587
+ end
588
+ res
589
+ end
590
+
591
+
592
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetJobPostingRequest)).returns(::StackOne::Operations::AtsGetJobPostingResponse) }
593
+ def get_job_posting(request)
594
+ # get_job_posting - Get Job Posting
595
+ url, params = @sdk_configuration.get_server_details
596
+ base_url = Utils.template_url(url, params)
597
+ url = Utils.generate_url(
598
+ ::StackOne::Operations::AtsGetJobPostingRequest,
599
+ base_url,
600
+ '/unified/ats/job_postings/{id}',
601
+ request
602
+ )
603
+ headers = Utils.get_headers(request)
604
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetJobPostingRequest, request)
605
+ headers['Accept'] = 'application/json'
606
+ headers['user-agent'] = @sdk_configuration.user_agent
607
+
608
+ r = @sdk_configuration.client.get(url) do |req|
609
+ req.headers = headers
610
+ req.params = query_params
611
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
612
+ end
613
+
614
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
615
+
616
+ res = ::StackOne::Operations::AtsGetJobPostingResponse.new(
617
+ status_code: r.status, content_type: content_type, raw_response: r
618
+ )
619
+ if r.status == 200
620
+ if Utils.match_content_type(content_type, 'application/json')
621
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobPostingResult)
622
+ res.job_posting_result = out
623
+ end
624
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
625
+ end
626
+ res
627
+ end
628
+
629
+
630
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetLocationRequest)).returns(::StackOne::Operations::AtsGetLocationResponse) }
631
+ def get_location(request)
632
+ # get_location - Get Location
633
+ url, params = @sdk_configuration.get_server_details
634
+ base_url = Utils.template_url(url, params)
635
+ url = Utils.generate_url(
636
+ ::StackOne::Operations::AtsGetLocationRequest,
637
+ base_url,
638
+ '/unified/ats/locations/{id}',
639
+ request
640
+ )
641
+ headers = Utils.get_headers(request)
642
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetLocationRequest, request)
643
+ headers['Accept'] = 'application/json'
644
+ headers['user-agent'] = @sdk_configuration.user_agent
645
+
646
+ r = @sdk_configuration.client.get(url) do |req|
647
+ req.headers = headers
648
+ req.params = query_params
649
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
650
+ end
651
+
652
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
653
+
654
+ res = ::StackOne::Operations::AtsGetLocationResponse.new(
655
+ status_code: r.status, content_type: content_type, raw_response: r
656
+ )
657
+ if r.status == 200
658
+ if Utils.match_content_type(content_type, 'application/json')
659
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ATSLocationResult)
660
+ res.ats_location_result = out
661
+ end
662
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
663
+ end
664
+ res
665
+ end
666
+
667
+
668
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetOfferRequest)).returns(::StackOne::Operations::AtsGetOfferResponse) }
669
+ def get_offer(request)
670
+ # get_offer - Get Offer
671
+ url, params = @sdk_configuration.get_server_details
672
+ base_url = Utils.template_url(url, params)
673
+ url = Utils.generate_url(
674
+ ::StackOne::Operations::AtsGetOfferRequest,
675
+ base_url,
676
+ '/unified/ats/offers/{id}',
677
+ request
678
+ )
679
+ headers = Utils.get_headers(request)
680
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetOfferRequest, request)
681
+ headers['Accept'] = 'application/json'
682
+ headers['user-agent'] = @sdk_configuration.user_agent
683
+
684
+ r = @sdk_configuration.client.get(url) do |req|
685
+ req.headers = headers
686
+ req.params = query_params
687
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
688
+ end
689
+
690
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
691
+
692
+ res = ::StackOne::Operations::AtsGetOfferResponse.new(
693
+ status_code: r.status, content_type: content_type, raw_response: r
694
+ )
695
+ if r.status == 200
696
+ if Utils.match_content_type(content_type, 'application/json')
697
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersResult)
698
+ res.offers_result = out
699
+ end
700
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
701
+ end
702
+ res
703
+ end
704
+
705
+
706
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetRejectedReasonRequest)).returns(::StackOne::Operations::AtsGetRejectedReasonResponse) }
707
+ def get_rejected_reason(request)
708
+ # get_rejected_reason - Get Rejected Reason
709
+ url, params = @sdk_configuration.get_server_details
710
+ base_url = Utils.template_url(url, params)
711
+ url = Utils.generate_url(
712
+ ::StackOne::Operations::AtsGetRejectedReasonRequest,
713
+ base_url,
714
+ '/unified/ats/rejected_reasons/{id}',
715
+ request
716
+ )
717
+ headers = Utils.get_headers(request)
718
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetRejectedReasonRequest, request)
719
+ headers['Accept'] = 'application/json'
720
+ headers['user-agent'] = @sdk_configuration.user_agent
721
+
722
+ r = @sdk_configuration.client.get(url) do |req|
723
+ req.headers = headers
724
+ req.params = query_params
725
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
726
+ end
727
+
728
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
729
+
730
+ res = ::StackOne::Operations::AtsGetRejectedReasonResponse.new(
731
+ status_code: r.status, content_type: content_type, raw_response: r
732
+ )
733
+ if r.status == 200
734
+ if Utils.match_content_type(content_type, 'application/json')
735
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::RejectedReasonResult)
736
+ res.rejected_reason_result = out
737
+ end
738
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
739
+ end
740
+ res
741
+ end
742
+
743
+
744
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetUserRequest)).returns(::StackOne::Operations::AtsGetUserResponse) }
745
+ def get_user(request)
746
+ # get_user - Get User
747
+ url, params = @sdk_configuration.get_server_details
748
+ base_url = Utils.template_url(url, params)
749
+ url = Utils.generate_url(
750
+ ::StackOne::Operations::AtsGetUserRequest,
751
+ base_url,
752
+ '/unified/ats/users/{id}',
753
+ request
754
+ )
755
+ headers = Utils.get_headers(request)
756
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetUserRequest, request)
757
+ headers['Accept'] = 'application/json'
758
+ headers['user-agent'] = @sdk_configuration.user_agent
759
+
760
+ r = @sdk_configuration.client.get(url) do |req|
761
+ req.headers = headers
762
+ req.params = query_params
763
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
764
+ end
765
+
766
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
767
+
768
+ res = ::StackOne::Operations::AtsGetUserResponse.new(
769
+ status_code: r.status, content_type: content_type, raw_response: r
770
+ )
771
+ if r.status == 200
772
+ if Utils.match_content_type(content_type, 'application/json')
773
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UserResult)
774
+ res.user_result = out
775
+ end
776
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
777
+ end
778
+ res
779
+ end
780
+
781
+
782
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListApplicationDocumentsRequest)).returns(::StackOne::Operations::AtsListApplicationDocumentsResponse) }
783
+ def list_application_documents(request)
784
+ # list_application_documents - List Application Documents
785
+ url, params = @sdk_configuration.get_server_details
786
+ base_url = Utils.template_url(url, params)
787
+ url = Utils.generate_url(
788
+ ::StackOne::Operations::AtsListApplicationDocumentsRequest,
789
+ base_url,
790
+ '/unified/ats/applications/{id}/documents',
791
+ request
792
+ )
793
+ headers = Utils.get_headers(request)
794
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListApplicationDocumentsRequest, request)
795
+ headers['Accept'] = 'application/json'
796
+ headers['user-agent'] = @sdk_configuration.user_agent
797
+
798
+ r = @sdk_configuration.client.get(url) do |req|
799
+ req.headers = headers
800
+ req.params = query_params
801
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
802
+ end
803
+
804
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
805
+
806
+ res = ::StackOne::Operations::AtsListApplicationDocumentsResponse.new(
807
+ status_code: r.status, content_type: content_type, raw_response: r
808
+ )
809
+ if r.status == 200
810
+ if Utils.match_content_type(content_type, 'application/json')
811
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DocumentsPaginated)
812
+ res.documents_paginated = out
813
+ end
814
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
815
+ end
816
+ res
817
+ end
818
+
819
+
820
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListApplicationScorecardsRequest)).returns(::StackOne::Operations::AtsListApplicationScorecardsResponse) }
821
+ def list_application_scorecards(request)
822
+ # list_application_scorecards - List Application Scorecards
823
+ url, params = @sdk_configuration.get_server_details
824
+ base_url = Utils.template_url(url, params)
825
+ url = Utils.generate_url(
826
+ ::StackOne::Operations::AtsListApplicationScorecardsRequest,
827
+ base_url,
828
+ '/unified/ats/applications/{id}/scorecards',
829
+ request
830
+ )
831
+ headers = Utils.get_headers(request)
832
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListApplicationScorecardsRequest, request)
833
+ headers['Accept'] = 'application/json'
834
+ headers['user-agent'] = @sdk_configuration.user_agent
835
+
836
+ r = @sdk_configuration.client.get(url) do |req|
837
+ req.headers = headers
838
+ req.params = query_params
839
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
840
+ end
841
+
842
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
843
+
844
+ res = ::StackOne::Operations::AtsListApplicationScorecardsResponse.new(
845
+ status_code: r.status, content_type: content_type, raw_response: r
846
+ )
847
+ if r.status == 200
848
+ if Utils.match_content_type(content_type, 'application/json')
849
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ScorecardsPaginated)
850
+ res.scorecards_paginated = out
851
+ end
852
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
853
+ end
854
+ res
855
+ end
856
+
857
+
858
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListApplicationsRequest)).returns(::StackOne::Operations::AtsListApplicationsResponse) }
859
+ def list_applications(request)
860
+ # list_applications - List Applications
861
+ url, params = @sdk_configuration.get_server_details
862
+ base_url = Utils.template_url(url, params)
863
+ url = "#{base_url}/unified/ats/applications"
864
+ headers = Utils.get_headers(request)
865
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListApplicationsRequest, request)
866
+ headers['Accept'] = 'application/json'
867
+ headers['user-agent'] = @sdk_configuration.user_agent
868
+
869
+ r = @sdk_configuration.client.get(url) do |req|
870
+ req.headers = headers
871
+ req.params = query_params
872
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
873
+ end
874
+
875
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
876
+
877
+ res = ::StackOne::Operations::AtsListApplicationsResponse.new(
878
+ status_code: r.status, content_type: content_type, raw_response: r
879
+ )
880
+ if r.status == 200
881
+ if Utils.match_content_type(content_type, 'application/json')
882
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ApplicationsPaginated)
883
+ res.applications_paginated = out
884
+ end
885
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
886
+ end
887
+ res
888
+ end
889
+
890
+
891
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListApplicationsOffersRequest)).returns(::StackOne::Operations::AtsListApplicationsOffersResponse) }
892
+ def list_applications_offers(request)
893
+ # list_applications_offers - List Application Offers
894
+ url, params = @sdk_configuration.get_server_details
895
+ base_url = Utils.template_url(url, params)
896
+ url = Utils.generate_url(
897
+ ::StackOne::Operations::AtsListApplicationsOffersRequest,
898
+ base_url,
899
+ '/unified/ats/applications/{id}/offers',
900
+ request
901
+ )
902
+ headers = Utils.get_headers(request)
903
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListApplicationsOffersRequest, request)
904
+ headers['Accept'] = 'application/json'
905
+ headers['user-agent'] = @sdk_configuration.user_agent
906
+
907
+ r = @sdk_configuration.client.get(url) do |req|
908
+ req.headers = headers
909
+ req.params = query_params
910
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
911
+ end
912
+
913
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
914
+
915
+ res = ::StackOne::Operations::AtsListApplicationsOffersResponse.new(
916
+ status_code: r.status, content_type: content_type, raw_response: r
917
+ )
918
+ if r.status == 200
919
+ if Utils.match_content_type(content_type, 'application/json')
920
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersPaginated)
921
+ res.offers_paginated = out
922
+ end
923
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
924
+ end
925
+ res
926
+ end
927
+
928
+
929
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListCandidateNotesRequest)).returns(::StackOne::Operations::AtsListCandidateNotesResponse) }
930
+ def list_candidate_notes(request)
931
+ # list_candidate_notes - List Candidate Notes
932
+ url, params = @sdk_configuration.get_server_details
933
+ base_url = Utils.template_url(url, params)
934
+ url = Utils.generate_url(
935
+ ::StackOne::Operations::AtsListCandidateNotesRequest,
936
+ base_url,
937
+ '/unified/ats/candidates/{id}/notes',
938
+ request
939
+ )
940
+ headers = Utils.get_headers(request)
941
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListCandidateNotesRequest, request)
942
+ headers['Accept'] = 'application/json'
943
+ headers['user-agent'] = @sdk_configuration.user_agent
944
+
945
+ r = @sdk_configuration.client.get(url) do |req|
946
+ req.headers = headers
947
+ req.params = query_params
948
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
949
+ end
950
+
951
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
952
+
953
+ res = ::StackOne::Operations::AtsListCandidateNotesResponse.new(
954
+ status_code: r.status, content_type: content_type, raw_response: r
955
+ )
956
+ if r.status == 200
957
+ if Utils.match_content_type(content_type, 'application/json')
958
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::NotesPaginated)
959
+ res.notes_paginated = out
960
+ end
961
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
962
+ end
963
+ res
964
+ end
965
+
966
+
967
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListCandidatesRequest)).returns(::StackOne::Operations::AtsListCandidatesResponse) }
968
+ def list_candidates(request)
969
+ # list_candidates - List Candidates
970
+ url, params = @sdk_configuration.get_server_details
971
+ base_url = Utils.template_url(url, params)
972
+ url = "#{base_url}/unified/ats/candidates"
973
+ headers = Utils.get_headers(request)
974
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListCandidatesRequest, request)
975
+ headers['Accept'] = 'application/json'
976
+ headers['user-agent'] = @sdk_configuration.user_agent
977
+
978
+ r = @sdk_configuration.client.get(url) do |req|
979
+ req.headers = headers
980
+ req.params = query_params
981
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
982
+ end
983
+
984
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
985
+
986
+ res = ::StackOne::Operations::AtsListCandidatesResponse.new(
987
+ status_code: r.status, content_type: content_type, raw_response: r
988
+ )
989
+ if r.status == 200
990
+ if Utils.match_content_type(content_type, 'application/json')
991
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CandidatesPaginated)
992
+ res.candidates_paginated = out
993
+ end
994
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
995
+ end
996
+ res
997
+ end
998
+
999
+
1000
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListDepartmentsRequest)).returns(::StackOne::Operations::AtsListDepartmentsResponse) }
1001
+ def list_departments(request)
1002
+ # list_departments - List Departments
1003
+ url, params = @sdk_configuration.get_server_details
1004
+ base_url = Utils.template_url(url, params)
1005
+ url = "#{base_url}/unified/ats/departments"
1006
+ headers = Utils.get_headers(request)
1007
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListDepartmentsRequest, request)
1008
+ headers['Accept'] = 'application/json'
1009
+ headers['user-agent'] = @sdk_configuration.user_agent
1010
+
1011
+ r = @sdk_configuration.client.get(url) do |req|
1012
+ req.headers = headers
1013
+ req.params = query_params
1014
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1015
+ end
1016
+
1017
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1018
+
1019
+ res = ::StackOne::Operations::AtsListDepartmentsResponse.new(
1020
+ status_code: r.status, content_type: content_type, raw_response: r
1021
+ )
1022
+ if r.status == 200
1023
+ if Utils.match_content_type(content_type, 'application/json')
1024
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DepartmentsPaginated)
1025
+ res.departments_paginated = out
1026
+ end
1027
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1028
+ end
1029
+ res
1030
+ end
1031
+
1032
+
1033
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListInterviewStagesRequest)).returns(::StackOne::Operations::AtsListInterviewStagesResponse) }
1034
+ def list_interview_stages(request)
1035
+ # list_interview_stages - List Interview Stages
1036
+ url, params = @sdk_configuration.get_server_details
1037
+ base_url = Utils.template_url(url, params)
1038
+ url = "#{base_url}/unified/ats/interview_stages"
1039
+ headers = Utils.get_headers(request)
1040
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListInterviewStagesRequest, request)
1041
+ headers['Accept'] = 'application/json'
1042
+ headers['user-agent'] = @sdk_configuration.user_agent
1043
+
1044
+ r = @sdk_configuration.client.get(url) do |req|
1045
+ req.headers = headers
1046
+ req.params = query_params
1047
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1048
+ end
1049
+
1050
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1051
+
1052
+ res = ::StackOne::Operations::AtsListInterviewStagesResponse.new(
1053
+ status_code: r.status, content_type: content_type, raw_response: r
1054
+ )
1055
+ if r.status == 200
1056
+ if Utils.match_content_type(content_type, 'application/json')
1057
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InterviewStagesPaginated)
1058
+ res.interview_stages_paginated = out
1059
+ end
1060
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1061
+ end
1062
+ res
1063
+ end
1064
+
1065
+
1066
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListInterviewsRequest)).returns(::StackOne::Operations::AtsListInterviewsResponse) }
1067
+ def list_interviews(request)
1068
+ # list_interviews - List Interviews
1069
+ url, params = @sdk_configuration.get_server_details
1070
+ base_url = Utils.template_url(url, params)
1071
+ url = "#{base_url}/unified/ats/interviews"
1072
+ headers = Utils.get_headers(request)
1073
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListInterviewsRequest, request)
1074
+ headers['Accept'] = 'application/json'
1075
+ headers['user-agent'] = @sdk_configuration.user_agent
1076
+
1077
+ r = @sdk_configuration.client.get(url) do |req|
1078
+ req.headers = headers
1079
+ req.params = query_params
1080
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1081
+ end
1082
+
1083
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1084
+
1085
+ res = ::StackOne::Operations::AtsListInterviewsResponse.new(
1086
+ status_code: r.status, content_type: content_type, raw_response: r
1087
+ )
1088
+ if r.status == 200
1089
+ if Utils.match_content_type(content_type, 'application/json')
1090
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InterviewsPaginated)
1091
+ res.interviews_paginated = out
1092
+ end
1093
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1094
+ end
1095
+ res
1096
+ end
1097
+
1098
+
1099
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListJobPostingsRequest)).returns(::StackOne::Operations::AtsListJobPostingsResponse) }
1100
+ def list_job_postings(request)
1101
+ # list_job_postings - List Job Postings
1102
+ url, params = @sdk_configuration.get_server_details
1103
+ base_url = Utils.template_url(url, params)
1104
+ url = "#{base_url}/unified/ats/job_postings"
1105
+ headers = Utils.get_headers(request)
1106
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListJobPostingsRequest, request)
1107
+ headers['Accept'] = 'application/json'
1108
+ headers['user-agent'] = @sdk_configuration.user_agent
1109
+
1110
+ r = @sdk_configuration.client.get(url) do |req|
1111
+ req.headers = headers
1112
+ req.params = query_params
1113
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1114
+ end
1115
+
1116
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1117
+
1118
+ res = ::StackOne::Operations::AtsListJobPostingsResponse.new(
1119
+ status_code: r.status, content_type: content_type, raw_response: r
1120
+ )
1121
+ if r.status == 200
1122
+ if Utils.match_content_type(content_type, 'application/json')
1123
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobPostingsPaginated)
1124
+ res.job_postings_paginated = out
1125
+ end
1126
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1127
+ end
1128
+ res
1129
+ end
1130
+
1131
+
1132
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListJobsRequest)).returns(::StackOne::Operations::AtsListJobsResponse) }
1133
+ def list_jobs(request)
1134
+ # list_jobs - List Jobs
1135
+ url, params = @sdk_configuration.get_server_details
1136
+ base_url = Utils.template_url(url, params)
1137
+ url = "#{base_url}/unified/ats/jobs"
1138
+ headers = Utils.get_headers(request)
1139
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListJobsRequest, request)
1140
+ headers['Accept'] = 'application/json'
1141
+ headers['user-agent'] = @sdk_configuration.user_agent
1142
+
1143
+ r = @sdk_configuration.client.get(url) do |req|
1144
+ req.headers = headers
1145
+ req.params = query_params
1146
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1147
+ end
1148
+
1149
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1150
+
1151
+ res = ::StackOne::Operations::AtsListJobsResponse.new(
1152
+ status_code: r.status, content_type: content_type, raw_response: r
1153
+ )
1154
+ if r.status == 200
1155
+ if Utils.match_content_type(content_type, 'application/json')
1156
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobsPaginated)
1157
+ res.jobs_paginated = out
1158
+ end
1159
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1160
+ end
1161
+ res
1162
+ end
1163
+
1164
+
1165
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListLocationsRequest)).returns(::StackOne::Operations::AtsListLocationsResponse) }
1166
+ def list_locations(request)
1167
+ # list_locations - List locations
1168
+ url, params = @sdk_configuration.get_server_details
1169
+ base_url = Utils.template_url(url, params)
1170
+ url = "#{base_url}/unified/ats/locations"
1171
+ headers = Utils.get_headers(request)
1172
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListLocationsRequest, request)
1173
+ headers['Accept'] = 'application/json'
1174
+ headers['user-agent'] = @sdk_configuration.user_agent
1175
+
1176
+ r = @sdk_configuration.client.get(url) do |req|
1177
+ req.headers = headers
1178
+ req.params = query_params
1179
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1180
+ end
1181
+
1182
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1183
+
1184
+ res = ::StackOne::Operations::AtsListLocationsResponse.new(
1185
+ status_code: r.status, content_type: content_type, raw_response: r
1186
+ )
1187
+ if r.status == 200
1188
+ if Utils.match_content_type(content_type, 'application/json')
1189
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ATSLocationsPaginated)
1190
+ res.ats_locations_paginated = out
1191
+ end
1192
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1193
+ end
1194
+ res
1195
+ end
1196
+
1197
+
1198
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListOffersRequest)).returns(::StackOne::Operations::AtsListOffersResponse) }
1199
+ def list_offers(request)
1200
+ # list_offers - List Offers
1201
+ url, params = @sdk_configuration.get_server_details
1202
+ base_url = Utils.template_url(url, params)
1203
+ url = "#{base_url}/unified/ats/offers"
1204
+ headers = Utils.get_headers(request)
1205
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListOffersRequest, request)
1206
+ headers['Accept'] = 'application/json'
1207
+ headers['user-agent'] = @sdk_configuration.user_agent
1208
+
1209
+ r = @sdk_configuration.client.get(url) do |req|
1210
+ req.headers = headers
1211
+ req.params = query_params
1212
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1213
+ end
1214
+
1215
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1216
+
1217
+ res = ::StackOne::Operations::AtsListOffersResponse.new(
1218
+ status_code: r.status, content_type: content_type, raw_response: r
1219
+ )
1220
+ if r.status == 200
1221
+ if Utils.match_content_type(content_type, 'application/json')
1222
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersPaginated)
1223
+ res.offers_paginated = out
1224
+ end
1225
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1226
+ end
1227
+ res
1228
+ end
1229
+
1230
+
1231
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListRejectedReasonsRequest)).returns(::StackOne::Operations::AtsListRejectedReasonsResponse) }
1232
+ def list_rejected_reasons(request)
1233
+ # list_rejected_reasons - List Rejected Reasons
1234
+ url, params = @sdk_configuration.get_server_details
1235
+ base_url = Utils.template_url(url, params)
1236
+ url = "#{base_url}/unified/ats/rejected_reasons"
1237
+ headers = Utils.get_headers(request)
1238
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListRejectedReasonsRequest, request)
1239
+ headers['Accept'] = 'application/json'
1240
+ headers['user-agent'] = @sdk_configuration.user_agent
1241
+
1242
+ r = @sdk_configuration.client.get(url) do |req|
1243
+ req.headers = headers
1244
+ req.params = query_params
1245
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1246
+ end
1247
+
1248
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1249
+
1250
+ res = ::StackOne::Operations::AtsListRejectedReasonsResponse.new(
1251
+ status_code: r.status, content_type: content_type, raw_response: r
1252
+ )
1253
+ if r.status == 200
1254
+ if Utils.match_content_type(content_type, 'application/json')
1255
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::RejectedReasonsPaginated)
1256
+ res.rejected_reasons_paginated = out
1257
+ end
1258
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1259
+ end
1260
+ res
1261
+ end
1262
+
1263
+
1264
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListUsersRequest)).returns(::StackOne::Operations::AtsListUsersResponse) }
1265
+ def list_users(request)
1266
+ # list_users - List Users
1267
+ url, params = @sdk_configuration.get_server_details
1268
+ base_url = Utils.template_url(url, params)
1269
+ url = "#{base_url}/unified/ats/users"
1270
+ headers = Utils.get_headers(request)
1271
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListUsersRequest, request)
1272
+ headers['Accept'] = 'application/json'
1273
+ headers['user-agent'] = @sdk_configuration.user_agent
1274
+
1275
+ r = @sdk_configuration.client.get(url) do |req|
1276
+ req.headers = headers
1277
+ req.params = query_params
1278
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1279
+ end
1280
+
1281
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1282
+
1283
+ res = ::StackOne::Operations::AtsListUsersResponse.new(
1284
+ status_code: r.status, content_type: content_type, raw_response: r
1285
+ )
1286
+ if r.status == 200
1287
+ if Utils.match_content_type(content_type, 'application/json')
1288
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UsersPaginated)
1289
+ res.users_paginated = out
1290
+ end
1291
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1292
+ end
1293
+ res
1294
+ end
1295
+
1296
+
1297
+ sig { params(ats_update_application_request_dto: ::StackOne::Shared::AtsUpdateApplicationRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateApplicationResponse) }
1298
+ def update_application(ats_update_application_request_dto, id, x_account_id)
1299
+ # update_application - Update Application
1300
+ request = ::StackOne::Operations::AtsUpdateApplicationRequest.new(
1301
+
1302
+ ats_update_application_request_dto: ats_update_application_request_dto,
1303
+ id: id,
1304
+ x_account_id: x_account_id
1305
+ )
1306
+ url, params = @sdk_configuration.get_server_details
1307
+ base_url = Utils.template_url(url, params)
1308
+ url = Utils.generate_url(
1309
+ ::StackOne::Operations::AtsUpdateApplicationRequest,
1310
+ base_url,
1311
+ '/unified/ats/applications/{id}',
1312
+ request
1313
+ )
1314
+ headers = Utils.get_headers(request)
1315
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_update_application_request_dto, :json)
1316
+ headers['content-type'] = req_content_type
1317
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
1318
+ headers['Accept'] = 'application/json'
1319
+ headers['user-agent'] = @sdk_configuration.user_agent
1320
+
1321
+ r = @sdk_configuration.client.patch(url) do |req|
1322
+ req.headers = headers
1323
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1324
+ if form
1325
+ req.body = Utils.encode_form(form)
1326
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1327
+ req.body = URI.encode_www_form(data)
1328
+ else
1329
+ req.body = data
1330
+ end
1331
+ end
1332
+
1333
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1334
+
1335
+ res = ::StackOne::Operations::AtsUpdateApplicationResponse.new(
1336
+ status_code: r.status, content_type: content_type, raw_response: r
1337
+ )
1338
+ if r.status == 200
1339
+ if Utils.match_content_type(content_type, 'application/json')
1340
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpdateResult)
1341
+ res.update_result = out
1342
+ end
1343
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1344
+ end
1345
+ res
1346
+ end
1347
+
1348
+
1349
+ sig { params(ats_update_candidates_request_dto: ::StackOne::Shared::AtsUpdateCandidatesRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateCandidateResponse) }
1350
+ def update_candidate(ats_update_candidates_request_dto, id, x_account_id)
1351
+ # update_candidate - Update Candidate (early access)
1352
+ request = ::StackOne::Operations::AtsUpdateCandidateRequest.new(
1353
+
1354
+ ats_update_candidates_request_dto: ats_update_candidates_request_dto,
1355
+ id: id,
1356
+ x_account_id: x_account_id
1357
+ )
1358
+ url, params = @sdk_configuration.get_server_details
1359
+ base_url = Utils.template_url(url, params)
1360
+ url = Utils.generate_url(
1361
+ ::StackOne::Operations::AtsUpdateCandidateRequest,
1362
+ base_url,
1363
+ '/unified/ats/candidates/{id}',
1364
+ request
1365
+ )
1366
+ headers = Utils.get_headers(request)
1367
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_update_candidates_request_dto, :json)
1368
+ headers['content-type'] = req_content_type
1369
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
1370
+ headers['Accept'] = 'application/json'
1371
+ headers['user-agent'] = @sdk_configuration.user_agent
1372
+
1373
+ r = @sdk_configuration.client.patch(url) do |req|
1374
+ req.headers = headers
1375
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1376
+ if form
1377
+ req.body = Utils.encode_form(form)
1378
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1379
+ req.body = URI.encode_www_form(data)
1380
+ else
1381
+ req.body = data
1382
+ end
1383
+ end
1384
+
1385
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1386
+
1387
+ res = ::StackOne::Operations::AtsUpdateCandidateResponse.new(
1388
+ status_code: r.status, content_type: content_type, raw_response: r
1389
+ )
1390
+ if r.status == 200
1391
+ if Utils.match_content_type(content_type, 'application/json')
1392
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CandidateResult)
1393
+ res.candidate_result = out
1394
+ end
1395
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1396
+ end
1397
+ res
1398
+ end
1399
+ end
1400
+ end