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
@@ -19,7 +19,7 @@ module StackOne
19
19
  end
20
20
 
21
21
 
22
- sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String).returns(Utils::FieldAugmented) }
22
+ sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeResponse) }
23
23
  def create_employee(hris_create_employee_request_dto, x_account_id)
24
24
  # create_employee - Creates an employee
25
25
  request = ::StackOne::Operations::HrisCreateEmployeeRequest.new(
@@ -65,7 +65,59 @@ module StackOne
65
65
  end
66
66
 
67
67
 
68
- sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
68
+ sig { params(hris_create_document_request_dto: ::StackOne::Shared::HrisCreateDocumentRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeDocumentResponse) }
69
+ def create_employee_document(hris_create_document_request_dto, id, x_account_id)
70
+ # create_employee_document - Create Employee Document
71
+ request = ::StackOne::Operations::HrisCreateEmployeeDocumentRequest.new(
72
+
73
+ hris_create_document_request_dto: hris_create_document_request_dto,
74
+ id: id,
75
+ x_account_id: x_account_id
76
+ )
77
+ url, params = @sdk_configuration.get_server_details
78
+ base_url = Utils.template_url(url, params)
79
+ url = Utils.generate_url(
80
+ ::StackOne::Operations::HrisCreateEmployeeDocumentRequest,
81
+ base_url,
82
+ '/unified/hris/employees/{id}/documents',
83
+ request
84
+ )
85
+ headers = Utils.get_headers(request)
86
+ req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_document_request_dto, :json)
87
+ headers['content-type'] = req_content_type
88
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
89
+ headers['Accept'] = 'application/json'
90
+ headers['user-agent'] = @sdk_configuration.user_agent
91
+
92
+ r = @sdk_configuration.client.post(url) do |req|
93
+ req.headers = headers
94
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
95
+ if form
96
+ req.body = Utils.encode_form(form)
97
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
98
+ req.body = URI.encode_www_form(data)
99
+ else
100
+ req.body = data
101
+ end
102
+ end
103
+
104
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
105
+
106
+ res = ::StackOne::Operations::HrisCreateEmployeeDocumentResponse.new(
107
+ status_code: r.status, content_type: content_type, raw_response: r
108
+ )
109
+ if r.status == 201
110
+ if Utils.match_content_type(content_type, 'application/json')
111
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateDocumentResult)
112
+ res.create_document_result = out
113
+ end
114
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
115
+ end
116
+ res
117
+ end
118
+
119
+
120
+ sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse) }
69
121
  def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
70
122
  # create_employee_time_off_request - Create Employee Time Off Request
71
123
  request = ::StackOne::Operations::HrisCreateEmployeeTimeOffRequestRequest.new(
@@ -117,7 +169,59 @@ module StackOne
117
169
  end
118
170
 
119
171
 
120
- sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, x_account_id: ::String).returns(Utils::FieldAugmented) }
172
+ sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestResponse) }
173
+ def create_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, x_account_id)
174
+ # create_employee_work_eligibility_request - Create Employee Work Eligibility Request
175
+ request = ::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestRequest.new(
176
+
177
+ hris_create_work_eligibility_request_dto: hris_create_work_eligibility_request_dto,
178
+ id: id,
179
+ x_account_id: x_account_id
180
+ )
181
+ url, params = @sdk_configuration.get_server_details
182
+ base_url = Utils.template_url(url, params)
183
+ url = Utils.generate_url(
184
+ ::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestRequest,
185
+ base_url,
186
+ '/unified/hris/employees/{id}/work_eligibility',
187
+ request
188
+ )
189
+ headers = Utils.get_headers(request)
190
+ req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_work_eligibility_request_dto, :json)
191
+ headers['content-type'] = req_content_type
192
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
193
+ headers['Accept'] = 'application/json'
194
+ headers['user-agent'] = @sdk_configuration.user_agent
195
+
196
+ r = @sdk_configuration.client.post(url) do |req|
197
+ req.headers = headers
198
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
199
+ if form
200
+ req.body = Utils.encode_form(form)
201
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
202
+ req.body = URI.encode_www_form(data)
203
+ else
204
+ req.body = data
205
+ end
206
+ end
207
+
208
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
209
+
210
+ res = ::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestResponse.new(
211
+ status_code: r.status, content_type: content_type, raw_response: r
212
+ )
213
+ if r.status == 201
214
+ if Utils.match_content_type(content_type, 'application/json')
215
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateWorkEligibilityResult)
216
+ res.create_work_eligibility_result = out
217
+ end
218
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
219
+ end
220
+ res
221
+ end
222
+
223
+
224
+ sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateTimeOffRequestResponse) }
121
225
  def create_time_off_request(hris_create_time_off_request_dto, x_account_id)
122
226
  # create_time_off_request - Creates a time off request
123
227
  request = ::StackOne::Operations::HrisCreateTimeOffRequestRequest.new(
@@ -163,7 +267,45 @@ module StackOne
163
267
  end
164
268
 
165
269
 
166
- sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest)).returns(Utils::FieldAugmented) }
270
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest)).returns(::StackOne::Operations::HrisGetBenefitResponse) }
271
+ def get_benefit(request)
272
+ # get_benefit - Get Benefit
273
+ url, params = @sdk_configuration.get_server_details
274
+ base_url = Utils.template_url(url, params)
275
+ url = Utils.generate_url(
276
+ ::StackOne::Operations::HrisGetBenefitRequest,
277
+ base_url,
278
+ '/unified/hris/benefits/{id}',
279
+ request
280
+ )
281
+ headers = Utils.get_headers(request)
282
+ query_params = Utils.get_query_params(::StackOne::Operations::HrisGetBenefitRequest, request)
283
+ headers['Accept'] = 'application/json'
284
+ headers['user-agent'] = @sdk_configuration.user_agent
285
+
286
+ r = @sdk_configuration.client.get(url) do |req|
287
+ req.headers = headers
288
+ req.params = query_params
289
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
290
+ end
291
+
292
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
293
+
294
+ res = ::StackOne::Operations::HrisGetBenefitResponse.new(
295
+ status_code: r.status, content_type: content_type, raw_response: r
296
+ )
297
+ if r.status == 200
298
+ if Utils.match_content_type(content_type, 'application/json')
299
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISBenefitResult)
300
+ res.hris_benefit_result = out
301
+ end
302
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
303
+ end
304
+ res
305
+ end
306
+
307
+
308
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest)).returns(::StackOne::Operations::HrisGetCompanyResponse) }
167
309
  def get_company(request)
168
310
  # get_company - Get Company
169
311
  url, params = @sdk_configuration.get_server_details
@@ -201,7 +343,7 @@ module StackOne
201
343
  end
202
344
 
203
345
 
204
- sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest)).returns(Utils::FieldAugmented) }
346
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest)).returns(::StackOne::Operations::HrisGetEmployeeResponse) }
205
347
  def get_employee(request)
206
348
  # get_employee - Get Employee
207
349
  url, params = @sdk_configuration.get_server_details
@@ -239,7 +381,7 @@ module StackOne
239
381
  end
240
382
 
241
383
 
242
- sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(Utils::FieldAugmented) }
384
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentResponse) }
243
385
  def get_employee_document(request)
244
386
  # get_employee_document - Get Employee Document
245
387
  url, params = @sdk_configuration.get_server_details
@@ -277,7 +419,7 @@ module StackOne
277
419
  end
278
420
 
279
421
 
280
- sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest)).returns(Utils::FieldAugmented) }
422
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetEmployeesTimeOffRequestResponse) }
281
423
  def get_employees_time_off_request(request)
282
424
  # get_employees_time_off_request - Get Employees Time Off Request
283
425
  url, params = @sdk_configuration.get_server_details
@@ -315,7 +457,45 @@ module StackOne
315
457
  end
316
458
 
317
459
 
318
- sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmploymentRequest)).returns(Utils::FieldAugmented) }
460
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest)).returns(::StackOne::Operations::HrisGetEmployeesWorkEligibilityResponse) }
461
+ def get_employees_work_eligibility(request)
462
+ # get_employees_work_eligibility - Get Employees Work Eligibility
463
+ url, params = @sdk_configuration.get_server_details
464
+ base_url = Utils.template_url(url, params)
465
+ url = Utils.generate_url(
466
+ ::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest,
467
+ base_url,
468
+ '/unified/hris/employees/{id}/work_eligibility/{subResourceId}',
469
+ request
470
+ )
471
+ headers = Utils.get_headers(request)
472
+ query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest, request)
473
+ headers['Accept'] = 'application/json'
474
+ headers['user-agent'] = @sdk_configuration.user_agent
475
+
476
+ r = @sdk_configuration.client.get(url) do |req|
477
+ req.headers = headers
478
+ req.params = query_params
479
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
480
+ end
481
+
482
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
483
+
484
+ res = ::StackOne::Operations::HrisGetEmployeesWorkEligibilityResponse.new(
485
+ status_code: r.status, content_type: content_type, raw_response: r
486
+ )
487
+ if r.status == 200
488
+ if Utils.match_content_type(content_type, 'application/json')
489
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WorkEligibilityResult)
490
+ res.work_eligibility_result = out
491
+ end
492
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
493
+ end
494
+ res
495
+ end
496
+
497
+
498
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmploymentRequest)).returns(::StackOne::Operations::HrisGetEmploymentResponse) }
319
499
  def get_employment(request)
320
500
  # get_employment - Get Employment
321
501
  url, params = @sdk_configuration.get_server_details
@@ -353,7 +533,7 @@ module StackOne
353
533
  end
354
534
 
355
535
 
356
- sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(Utils::FieldAugmented) }
536
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(::StackOne::Operations::HrisGetLocationResponse) }
357
537
  def get_location(request)
358
538
  # get_location - Get Location
359
539
  url, params = @sdk_configuration.get_server_details
@@ -391,7 +571,7 @@ module StackOne
391
571
  end
392
572
 
393
573
 
394
- sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest)).returns(Utils::FieldAugmented) }
574
+ sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetTimeOffRequestResponse) }
395
575
  def get_time_off_request(request)
396
576
  # get_time_off_request - Get time off request
397
577
  url, params = @sdk_configuration.get_server_details
@@ -429,7 +609,40 @@ module StackOne
429
609
  end
430
610
 
431
611
 
432
- sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest)).returns(Utils::FieldAugmented) }
612
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest)).returns(::StackOne::Operations::HrisListBenefitsResponse) }
613
+ def list_benefits(request)
614
+ # list_benefits - List benefits
615
+ url, params = @sdk_configuration.get_server_details
616
+ base_url = Utils.template_url(url, params)
617
+ url = "#{base_url}/unified/hris/benefits"
618
+ headers = Utils.get_headers(request)
619
+ query_params = Utils.get_query_params(::StackOne::Operations::HrisListBenefitsRequest, request)
620
+ headers['Accept'] = 'application/json'
621
+ headers['user-agent'] = @sdk_configuration.user_agent
622
+
623
+ r = @sdk_configuration.client.get(url) do |req|
624
+ req.headers = headers
625
+ req.params = query_params
626
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
627
+ end
628
+
629
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
630
+
631
+ res = ::StackOne::Operations::HrisListBenefitsResponse.new(
632
+ status_code: r.status, content_type: content_type, raw_response: r
633
+ )
634
+ if r.status == 200
635
+ if Utils.match_content_type(content_type, 'application/json')
636
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISBenefitsPaginated)
637
+ res.hris_benefits_paginated = out
638
+ end
639
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
640
+ end
641
+ res
642
+ end
643
+
644
+
645
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest)).returns(::StackOne::Operations::HrisListCompaniesResponse) }
433
646
  def list_companies(request)
434
647
  # list_companies - List Companies
435
648
  url, params = @sdk_configuration.get_server_details
@@ -462,7 +675,7 @@ module StackOne
462
675
  end
463
676
 
464
677
 
465
- sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(Utils::FieldAugmented) }
678
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
466
679
  def list_employee_documents(request)
467
680
  # list_employee_documents - List Employee Documents
468
681
  url, params = @sdk_configuration.get_server_details
@@ -500,7 +713,7 @@ module StackOne
500
713
  end
501
714
 
502
715
 
503
- sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest)).returns(Utils::FieldAugmented) }
716
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest)).returns(::StackOne::Operations::HrisListEmployeeTimeOffRequestsResponse) }
504
717
  def list_employee_time_off_requests(request)
505
718
  # list_employee_time_off_requests - List Employee Time Off Requests
506
719
  url, params = @sdk_configuration.get_server_details
@@ -538,7 +751,45 @@ module StackOne
538
751
  end
539
752
 
540
753
 
541
- sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeesRequest)).returns(Utils::FieldAugmented) }
754
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest)).returns(::StackOne::Operations::HrisListEmployeeWorkEligibilityResponse) }
755
+ def list_employee_work_eligibility(request)
756
+ # list_employee_work_eligibility - List Employee Work Eligibility
757
+ url, params = @sdk_configuration.get_server_details
758
+ base_url = Utils.template_url(url, params)
759
+ url = Utils.generate_url(
760
+ ::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest,
761
+ base_url,
762
+ '/unified/hris/employees/{id}/work_eligibility',
763
+ request
764
+ )
765
+ headers = Utils.get_headers(request)
766
+ query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest, request)
767
+ headers['Accept'] = 'application/json'
768
+ headers['user-agent'] = @sdk_configuration.user_agent
769
+
770
+ r = @sdk_configuration.client.get(url) do |req|
771
+ req.headers = headers
772
+ req.params = query_params
773
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
774
+ end
775
+
776
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
777
+
778
+ res = ::StackOne::Operations::HrisListEmployeeWorkEligibilityResponse.new(
779
+ status_code: r.status, content_type: content_type, raw_response: r
780
+ )
781
+ if r.status == 200
782
+ if Utils.match_content_type(content_type, 'application/json')
783
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WorkEligibilityPaginated)
784
+ res.work_eligibility_paginated = out
785
+ end
786
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
787
+ end
788
+ res
789
+ end
790
+
791
+
792
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeesRequest)).returns(::StackOne::Operations::HrisListEmployeesResponse) }
542
793
  def list_employees(request)
543
794
  # list_employees - List Employees
544
795
  url, params = @sdk_configuration.get_server_details
@@ -571,7 +822,7 @@ module StackOne
571
822
  end
572
823
 
573
824
 
574
- sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest)).returns(Utils::FieldAugmented) }
825
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest)).returns(::StackOne::Operations::HrisListEmploymentsResponse) }
575
826
  def list_employments(request)
576
827
  # list_employments - List Employments
577
828
  url, params = @sdk_configuration.get_server_details
@@ -604,7 +855,7 @@ module StackOne
604
855
  end
605
856
 
606
857
 
607
- sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(Utils::FieldAugmented) }
858
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(::StackOne::Operations::HrisListLocationsResponse) }
608
859
  def list_locations(request)
609
860
  # list_locations - List locations
610
861
  url, params = @sdk_configuration.get_server_details
@@ -637,7 +888,7 @@ module StackOne
637
888
  end
638
889
 
639
890
 
640
- sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest)).returns(Utils::FieldAugmented) }
891
+ sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest)).returns(::StackOne::Operations::HrisListTimeOffRequestsResponse) }
641
892
  def list_time_off_requests(request)
642
893
  # list_time_off_requests - List time off requests
643
894
  url, params = @sdk_configuration.get_server_details
@@ -670,7 +921,7 @@ module StackOne
670
921
  end
671
922
 
672
923
 
673
- sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
924
+ sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeResponse) }
674
925
  def update_employee(hris_create_employee_request_dto, id, x_account_id)
675
926
  # update_employee - Updates an employee
676
927
  request = ::StackOne::Operations::HrisUpdateEmployeeRequest.new(
@@ -722,7 +973,54 @@ module StackOne
722
973
  end
723
974
 
724
975
 
725
- sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
976
+ sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse) }
977
+ def update_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, sub_resource_id, x_account_id)
978
+ # update_employee_work_eligibility_request - Update Employee Work Eligibility Request
979
+ request = ::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestRequest.new(
980
+
981
+ hris_create_work_eligibility_request_dto: hris_create_work_eligibility_request_dto,
982
+ id: id,
983
+ sub_resource_id: sub_resource_id,
984
+ x_account_id: x_account_id
985
+ )
986
+ url, params = @sdk_configuration.get_server_details
987
+ base_url = Utils.template_url(url, params)
988
+ url = Utils.generate_url(
989
+ ::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestRequest,
990
+ base_url,
991
+ '/unified/hris/employees/{id}/work_eligibility/{subResourceId}',
992
+ request
993
+ )
994
+ headers = Utils.get_headers(request)
995
+ req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_work_eligibility_request_dto, :json)
996
+ headers['content-type'] = req_content_type
997
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
998
+ headers['Accept'] = '*/*'
999
+ headers['user-agent'] = @sdk_configuration.user_agent
1000
+
1001
+ r = @sdk_configuration.client.patch(url) do |req|
1002
+ req.headers = headers
1003
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1004
+ if form
1005
+ req.body = Utils.encode_form(form)
1006
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1007
+ req.body = URI.encode_www_form(data)
1008
+ else
1009
+ req.body = data
1010
+ end
1011
+ end
1012
+
1013
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1014
+
1015
+ res = ::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse.new(
1016
+ status_code: r.status, content_type: content_type, raw_response: r
1017
+ )
1018
+
1019
+ res
1020
+ end
1021
+
1022
+
1023
+ sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateTimeOffRequestResponse) }
726
1024
  def update_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
727
1025
  # update_time_off_request - Update time off request
728
1026
  request = ::StackOne::Operations::HrisUpdateTimeOffRequestRequest.new(