stackone_client 0.2.37 → 0.2.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/ats.rb +176 -1
  3. data/lib/stack_one/hris.rb +53 -1
  4. data/lib/stack_one/lms.rb +328 -31
  5. data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_queryparam_filter.rb +24 -0
  6. data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_request.rb +60 -0
  7. data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_response.rb +33 -0
  8. data/lib/stack_one/models/operations/ats_get_job_request.rb +5 -2
  9. data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_queryparam_filter.rb +24 -0
  10. data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_request.rb +57 -0
  11. data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_response.rb +33 -0
  12. data/lib/stack_one/models/operations/ats_list_jobs_request.rb +5 -2
  13. data/lib/stack_one/models/operations/ats_move_application_request.rb +30 -0
  14. data/lib/stack_one/models/operations/ats_move_application_response.rb +33 -0
  15. data/lib/stack_one/models/operations/ats_reject_application_request.rb +30 -0
  16. data/lib/stack_one/models/operations/ats_reject_application_response.rb +33 -0
  17. data/lib/stack_one/models/operations/hris_batch_upload_employee_document_request.rb +30 -0
  18. data/lib/stack_one/models/operations/hris_batch_upload_employee_document_response.rb +33 -0
  19. data/lib/stack_one/models/operations/lms_batch_upsert_content_request.rb +27 -0
  20. data/lib/stack_one/models/operations/lms_batch_upsert_content_response.rb +33 -0
  21. data/lib/stack_one/models/operations/{lms_create_completion_request.rb → lms_create_user_completion_request.rb} +1 -1
  22. data/lib/stack_one/models/operations/{lms_create_completion_response.rb → lms_create_user_completion_response.rb} +1 -1
  23. data/lib/stack_one/models/operations/lms_get_assignment_request.rb +2 -5
  24. data/lib/stack_one/models/operations/lms_get_assignment_response.rb +1 -1
  25. data/lib/stack_one/models/operations/lms_get_completion_request.rb +36 -0
  26. data/lib/stack_one/models/operations/lms_get_completion_response.rb +33 -0
  27. data/lib/stack_one/models/operations/lms_get_skill_request.rb +36 -0
  28. data/lib/stack_one/models/operations/lms_get_skill_response.rb +33 -0
  29. data/lib/stack_one/models/operations/lms_get_user_assignment_request.rb +39 -0
  30. data/lib/stack_one/models/operations/lms_get_user_assignment_response.rb +33 -0
  31. data/lib/stack_one/models/operations/lms_get_user_completion_request.rb +39 -0
  32. data/lib/stack_one/models/operations/lms_get_user_completion_response.rb +33 -0
  33. data/lib/stack_one/models/operations/lms_list_assignments_request.rb +8 -5
  34. data/lib/stack_one/models/operations/lms_list_assignments_response.rb +1 -1
  35. data/lib/stack_one/models/operations/lms_list_completions_request.rb +10 -7
  36. data/lib/stack_one/models/operations/lms_list_completions_response.rb +1 -1
  37. data/lib/stack_one/models/operations/lms_list_skills_queryparam_filter.rb +24 -0
  38. data/lib/stack_one/models/operations/lms_list_skills_request.rb +52 -0
  39. data/lib/stack_one/models/operations/lms_list_skills_response.rb +33 -0
  40. data/lib/stack_one/models/operations/lms_list_user_assignments_queryparam_filter.rb +24 -0
  41. data/lib/stack_one/models/operations/lms_list_user_assignments_request.rb +61 -0
  42. data/lib/stack_one/models/operations/lms_list_user_assignments_response.rb +33 -0
  43. data/lib/stack_one/models/operations/lms_list_user_completions_queryparam_filter.rb +24 -0
  44. data/lib/stack_one/models/operations/lms_list_user_completions_request.rb +61 -0
  45. data/lib/stack_one/models/operations/lms_list_user_completions_response.rb +33 -0
  46. data/lib/stack_one/models/operations.rb +33 -2
  47. data/lib/stack_one/models/shared/account.rb +5 -2
  48. data/lib/stack_one/models/shared/accountaddress_schemas_value.rb +0 -1
  49. data/lib/stack_one/models/shared/accountaddress_value.rb +0 -1
  50. data/lib/stack_one/models/shared/answer_value.rb +0 -1
  51. data/lib/stack_one/models/shared/application.rb +5 -2
  52. data/lib/stack_one/models/shared/application_interview_stage.rb +5 -2
  53. data/lib/stack_one/models/shared/application_value.rb +0 -1
  54. data/lib/stack_one/models/shared/applicationattachment_value.rb +0 -1
  55. data/lib/stack_one/models/shared/assessmentspackages_type.rb +2 -2
  56. data/lib/stack_one/models/shared/assessmentspackages_value.rb +4 -7
  57. data/lib/stack_one/models/shared/assessmentsresults_schemas_value.rb +0 -1
  58. data/lib/stack_one/models/shared/assessmentsresults_value.rb +0 -1
  59. data/lib/stack_one/models/shared/assignment.rb +5 -11
  60. data/lib/stack_one/models/shared/atscreateapplicationrequestdto_candidate.rb +5 -2
  61. data/lib/stack_one/models/shared/atscreateapplicationrequestdto_value.rb +0 -1
  62. data/lib/stack_one/models/shared/atscreatecandidaterequestdto.rb +5 -2
  63. data/lib/stack_one/models/shared/atscreatenotesrequestdto_value.rb +0 -1
  64. data/lib/stack_one/models/shared/atscreateofferrequestdto_value.rb +0 -1
  65. data/lib/stack_one/models/shared/atsdocumentapimodel.rb +5 -2
  66. data/lib/stack_one/models/shared/atsdocumentapimodel_schemas_value.rb +0 -1
  67. data/lib/stack_one/models/shared/atsdocumentapimodel_value.rb +0 -1
  68. data/lib/stack_one/models/shared/atslocation.rb +5 -2
  69. data/lib/stack_one/models/shared/atsmoveapplicationrequestdto.rb +27 -0
  70. data/lib/stack_one/models/shared/atsrejectapplicationrequestdto.rb +27 -0
  71. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +0 -1
  72. data/lib/stack_one/models/shared/atsupdatecandidaterequestdto.rb +5 -2
  73. data/lib/stack_one/models/shared/batchresultapimodel.rb +33 -0
  74. data/lib/stack_one/models/shared/campaign_schemas_value.rb +0 -1
  75. data/lib/stack_one/models/shared/campaign_value.rb +0 -1
  76. data/lib/stack_one/models/shared/candidate.rb +5 -2
  77. data/lib/stack_one/models/shared/categories.rb +0 -1
  78. data/lib/stack_one/models/shared/category.rb +5 -2
  79. data/lib/stack_one/models/shared/channelsenum_value.rb +0 -1
  80. data/lib/stack_one/models/shared/company.rb +5 -2
  81. data/lib/stack_one/models/shared/completion.rb +9 -6
  82. data/lib/stack_one/models/shared/{completion_result.rb → completion_schemas_result.rb} +1 -1
  83. data/lib/stack_one/models/shared/completion_value.rb +0 -1
  84. data/lib/stack_one/models/shared/completionresult.rb +27 -0
  85. data/lib/stack_one/models/shared/connectorsmeta_category.rb +0 -1
  86. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +0 -1
  87. data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +0 -1
  88. data/lib/stack_one/models/shared/contact.rb +5 -2
  89. data/lib/stack_one/models/shared/content_value.rb +0 -1
  90. data/lib/stack_one/models/shared/contentblock_schemas_value.rb +0 -1
  91. data/lib/stack_one/models/shared/contentblock_value.rb +0 -1
  92. data/lib/stack_one/models/shared/contentlanguageenum_value.rb +0 -1
  93. data/lib/stack_one/models/shared/countrycodeenum_value.rb +0 -1
  94. data/lib/stack_one/models/shared/course.rb +5 -2
  95. data/lib/stack_one/models/shared/course_schemas_value.rb +0 -1
  96. data/lib/stack_one/models/shared/course_value.rb +0 -1
  97. data/lib/stack_one/models/shared/createcategoriesapimodel.rb +5 -2
  98. data/lib/stack_one/models/shared/createresultdataapimodel.rb +5 -2
  99. data/lib/stack_one/models/shared/customfielddefinition_value.rb +0 -1
  100. data/lib/stack_one/models/shared/department.rb +5 -2
  101. data/lib/stack_one/models/shared/employee.rb +11 -2
  102. data/lib/stack_one/models/shared/employee_company.rb +5 -2
  103. data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +0 -1
  104. data/lib/stack_one/models/shared/employee_schemas_ethnicity_value.rb +0 -1
  105. data/lib/stack_one/models/shared/employee_schemas_gender_value.rb +0 -1
  106. data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +0 -1
  107. data/lib/stack_one/models/shared/employee_schemas_home_location_value.rb +0 -1
  108. data/lib/stack_one/models/shared/employee_schemas_marital_status_value.rb +0 -1
  109. data/lib/stack_one/models/shared/employee_schemas_national_identity_number_value.rb +0 -1
  110. data/lib/stack_one/models/shared/employee_schemas_preferred_language_value.rb +0 -1
  111. data/lib/stack_one/models/shared/employee_schemas_value.rb +0 -1
  112. data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +0 -1
  113. data/lib/stack_one/models/shared/employee_schemas_work_location_value.rb +0 -1
  114. data/lib/stack_one/models/shared/employee_value.rb +0 -1
  115. data/lib/stack_one/models/shared/employment.rb +5 -2
  116. data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +0 -1
  117. data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +0 -1
  118. data/lib/stack_one/models/shared/employment_schemas_value.rb +0 -1
  119. data/lib/stack_one/models/shared/employment_value.rb +0 -1
  120. data/lib/stack_one/models/shared/field_type.rb +0 -1
  121. data/lib/stack_one/models/shared/home_location.rb +5 -2
  122. data/lib/stack_one/models/shared/hrisbatchdocumentuploadrequestdto.rb +24 -0
  123. data/lib/stack_one/models/shared/hrisbenefit_value.rb +0 -1
  124. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +8 -2
  125. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_national_identity_number.rb +27 -0
  126. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +0 -1
  127. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb +0 -1
  128. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_gender_value.rb +0 -1
  129. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +0 -1
  130. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_value.rb +0 -1
  131. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_marital_status_value.rb +0 -1
  132. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_value.rb +21 -0
  133. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_preferred_language_value.rb +0 -1
  134. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_value.rb +0 -1
  135. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +0 -1
  136. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb +0 -1
  137. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_type.rb +27 -0
  138. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_value.rb +0 -1
  139. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +0 -1
  140. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +0 -1
  141. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_document_value.rb +0 -1
  142. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_value.rb +0 -1
  143. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_value.rb +0 -1
  144. data/lib/stack_one/models/shared/hrisdepartment.rb +5 -2
  145. data/lib/stack_one/models/shared/hrisdepartment_value.rb +0 -1
  146. data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +5 -2
  147. data/lib/stack_one/models/shared/hrisdocumentapimodel_schemas_type_value.rb +0 -1
  148. data/lib/stack_one/models/shared/hrisdocumentapimodel_schemas_value.rb +0 -1
  149. data/lib/stack_one/models/shared/hrisdocumentapimodel_value.rb +0 -1
  150. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_schemas_file_format_value.rb +0 -1
  151. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_schemas_value.rb +0 -1
  152. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_value.rb +0 -1
  153. data/lib/stack_one/models/shared/hrisgroup.rb +5 -2
  154. data/lib/stack_one/models/shared/hrisgroup_value.rb +0 -1
  155. data/lib/stack_one/models/shared/hrislocation.rb +5 -2
  156. data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +0 -1
  157. data/lib/stack_one/models/shared/hrislocation_value.rb +0 -1
  158. data/lib/stack_one/models/shared/iamgroup_value.rb +0 -1
  159. data/lib/stack_one/models/shared/iammfatypeenum_value.rb +0 -1
  160. data/lib/stack_one/models/shared/iampermission_value.rb +0 -1
  161. data/lib/stack_one/models/shared/iamresource_value.rb +0 -1
  162. data/lib/stack_one/models/shared/iamrole_value.rb +0 -1
  163. data/lib/stack_one/models/shared/iamuser.rb +5 -2
  164. data/lib/stack_one/models/shared/iamuser_schemas_value.rb +0 -1
  165. data/lib/stack_one/models/shared/iamuser_value.rb +0 -1
  166. data/lib/stack_one/models/shared/internal.rb +0 -1
  167. data/lib/stack_one/models/shared/interview.rb +5 -2
  168. data/lib/stack_one/models/shared/interview_interview_stage.rb +5 -2
  169. data/lib/stack_one/models/shared/interview_value.rb +0 -1
  170. data/lib/stack_one/models/shared/interviewpart_value.rb +0 -1
  171. data/lib/stack_one/models/shared/interviewstage.rb +5 -2
  172. data/lib/stack_one/models/shared/job.rb +8 -2
  173. data/lib/stack_one/models/shared/job_confidential.rb +0 -1
  174. data/lib/stack_one/models/shared/job_value.rb +0 -1
  175. data/lib/stack_one/models/shared/jobcustomfields.rb +39 -0
  176. data/lib/stack_one/models/shared/jobposting.rb +5 -2
  177. data/lib/stack_one/models/shared/jobposting_content.rb +4 -4
  178. data/lib/stack_one/models/shared/jobposting_schemas_status_value.rb +0 -1
  179. data/lib/stack_one/models/shared/jobposting_schemas_value.rb +0 -1
  180. data/lib/stack_one/models/shared/jobposting_value.rb +0 -1
  181. data/lib/stack_one/models/shared/jobpostingcompensation_schemas_type_value.rb +0 -1
  182. data/lib/stack_one/models/shared/jobpostingcompensation_schemas_value.rb +0 -1
  183. data/lib/stack_one/models/shared/jobpostingcompensation_value.rb +0 -1
  184. data/lib/stack_one/models/shared/jobpostingcontentsection.rb +36 -0
  185. data/lib/stack_one/models/shared/jobpostingcontentsection_type.rb +27 -0
  186. data/lib/stack_one/models/shared/jobpostingcontentsection_value.rb +19 -0
  187. data/lib/stack_one/models/shared/linkedaccount_status.rb +0 -1
  188. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +0 -1
  189. data/lib/stack_one/models/shared/list.rb +5 -2
  190. data/lib/stack_one/models/shared/list_value.rb +0 -1
  191. data/lib/stack_one/models/shared/lmsbatchupsertcontentrequestdto.rb +24 -0
  192. data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +5 -2
  193. data/lib/stack_one/models/shared/lmscreatecompletionrequestdto_value.rb +0 -1
  194. data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +5 -2
  195. data/lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb +0 -1
  196. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +5 -2
  197. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_value.rb +0 -1
  198. data/lib/stack_one/models/shared/lmsuser.rb +8 -2
  199. data/lib/stack_one/models/shared/method.rb +0 -1
  200. data/lib/stack_one/models/shared/moveapplicationresult.rb +33 -0
  201. data/lib/stack_one/models/shared/note.rb +5 -2
  202. data/lib/stack_one/models/shared/note_value.rb +0 -1
  203. data/lib/stack_one/models/shared/offer.rb +5 -2
  204. data/lib/stack_one/models/shared/offer_value.rb +0 -1
  205. data/lib/stack_one/models/shared/overall_recommendation.rb +0 -1
  206. data/lib/stack_one/models/shared/phonenumber_type.rb +0 -1
  207. data/lib/stack_one/models/shared/question_value.rb +0 -1
  208. data/lib/stack_one/models/shared/rejectapplicationresult.rb +33 -0
  209. data/lib/stack_one/models/shared/rejectedreason.rb +5 -2
  210. data/lib/stack_one/models/shared/rejectedreason_value.rb +0 -1
  211. data/lib/stack_one/models/shared/scheduledinterview_interview_stage.rb +5 -2
  212. data/lib/stack_one/models/shared/scheduledinterview_value.rb +0 -1
  213. data/lib/stack_one/models/shared/skillresult.rb +27 -0
  214. data/lib/stack_one/models/shared/skills.rb +3 -3
  215. data/lib/stack_one/models/shared/skillspaginated.rb +30 -0
  216. data/lib/stack_one/models/shared/timeoff_schemas_value.rb +0 -1
  217. data/lib/stack_one/models/shared/timeoff_value.rb +0 -1
  218. data/lib/stack_one/models/shared/unifieduploadrequestdto_schemas_value.rb +0 -1
  219. data/lib/stack_one/models/shared/unifieduploadrequestdto_value.rb +0 -1
  220. data/lib/stack_one/models/shared/value.rb +0 -1
  221. data/lib/stack_one/models/shared/work_location.rb +5 -2
  222. data/lib/stack_one/models/shared/workeligibility_schemas_document_value.rb +0 -1
  223. data/lib/stack_one/models/shared/workeligibility_schemas_value.rb +0 -1
  224. data/lib/stack_one/models/shared/workeligibility_value.rb +0 -1
  225. data/lib/stack_one/models/shared.rb +36 -19
  226. data/lib/stack_one/sdkconfiguration.rb +3 -3
  227. metadata +53 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8ecd1f5127b9e9c3441aedcddce0a30689bc16e481d0299e05e3a2d5c6329e0
4
- data.tar.gz: 44ea17c971f60192ce58fe3b6ef3b3d49a086626ac80707e97add5769cb6512d
3
+ metadata.gz: eb06b9e6845c9d9a4d7b000da724125363b744fba5f15a8d8c39329f39950028
4
+ data.tar.gz: 9db6d77794c246d112bb796fb1c52192fd135a5baaa04b4782dc5165e32f48e4
5
5
  SHA512:
6
- metadata.gz: a0028a3ecb6e648d1f21f71c8cedfa2e961fbdacd13e1b9d1905034a132f20de9cd0a6e8c8de8bfa37f4c6c546b1d726fab07f309dda76cda16ca4df632912bb
7
- data.tar.gz: 37f9269e70215aa32d07937aa590a6e3676c5ab5e20d3cede1078cc805f274546193c1cc1431676e51025553644c13ffd1e248f2c80b7f88d80552b82ed549d8
6
+ metadata.gz: fc791bfd3cce99b7067ad5d276fafdd0175289a5a33647ae87e2a6314ca3dae33e5a723e0981f1fc2221820650d0bf922401a203ef5568ac845ee9f656d25412
7
+ data.tar.gz: 5337f498d4cc54cb91a8a06ae5167d8aca04ad29583b264d82e959ad19474c817499868a6bcd7a8f92dbb68375355c5c19478d3d51de33660bb29a0f2f93f958
data/lib/stack_one/ats.rb CHANGED
@@ -860,6 +860,44 @@ module StackOne
860
860
  end
861
861
 
862
862
 
863
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetJobCustomFieldDefinitionRequest)).returns(::StackOne::Operations::AtsGetJobCustomFieldDefinitionResponse) }
864
+ def get_job_custom_field_definition(request)
865
+ # get_job_custom_field_definition - Get Job Custom Field Definition
866
+ url, params = @sdk_configuration.get_server_details
867
+ base_url = Utils.template_url(url, params)
868
+ url = Utils.generate_url(
869
+ ::StackOne::Operations::AtsGetJobCustomFieldDefinitionRequest,
870
+ base_url,
871
+ '/unified/ats/custom_field_definitions/jobs/{id}',
872
+ request
873
+ )
874
+ headers = Utils.get_headers(request)
875
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetJobCustomFieldDefinitionRequest, request)
876
+ headers['Accept'] = 'application/json'
877
+ headers['user-agent'] = @sdk_configuration.user_agent
878
+
879
+ r = @sdk_configuration.client.get(url) do |req|
880
+ req.headers = headers
881
+ req.params = query_params
882
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
883
+ end
884
+
885
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
886
+
887
+ res = ::StackOne::Operations::AtsGetJobCustomFieldDefinitionResponse.new(
888
+ status_code: r.status, content_type: content_type, raw_response: r
889
+ )
890
+ if r.status == 200
891
+ if Utils.match_content_type(content_type, 'application/json')
892
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionResultApiModel)
893
+ res.custom_field_definition_result_api_model = out
894
+ end
895
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
896
+ end
897
+ res
898
+ end
899
+
900
+
863
901
  sig { params(request: T.nilable(::StackOne::Operations::AtsGetJobPostingRequest)).returns(::StackOne::Operations::AtsGetJobPostingResponse) }
864
902
  def get_job_posting(request)
865
903
  # get_job_posting - Get Job Posting
@@ -1542,6 +1580,39 @@ module StackOne
1542
1580
  end
1543
1581
 
1544
1582
 
1583
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListJobCustomFieldDefinitionsRequest)).returns(::StackOne::Operations::AtsListJobCustomFieldDefinitionsResponse) }
1584
+ def list_job_custom_field_definitions(request)
1585
+ # list_job_custom_field_definitions - List Job Custom Field Definitions
1586
+ url, params = @sdk_configuration.get_server_details
1587
+ base_url = Utils.template_url(url, params)
1588
+ url = "#{base_url}/unified/ats/custom_field_definitions/jobs"
1589
+ headers = Utils.get_headers(request)
1590
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListJobCustomFieldDefinitionsRequest, request)
1591
+ headers['Accept'] = 'application/json'
1592
+ headers['user-agent'] = @sdk_configuration.user_agent
1593
+
1594
+ r = @sdk_configuration.client.get(url) do |req|
1595
+ req.headers = headers
1596
+ req.params = query_params
1597
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1598
+ end
1599
+
1600
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1601
+
1602
+ res = ::StackOne::Operations::AtsListJobCustomFieldDefinitionsResponse.new(
1603
+ status_code: r.status, content_type: content_type, raw_response: r
1604
+ )
1605
+ if r.status == 200
1606
+ if Utils.match_content_type(content_type, 'application/json')
1607
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionsPaginated)
1608
+ res.custom_field_definitions_paginated = out
1609
+ end
1610
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1611
+ end
1612
+ res
1613
+ end
1614
+
1615
+
1545
1616
  sig { params(request: T.nilable(::StackOne::Operations::AtsListJobPostingsRequest)).returns(::StackOne::Operations::AtsListJobPostingsResponse) }
1546
1617
  def list_job_postings(request)
1547
1618
  # list_job_postings - List Job Postings
@@ -1773,6 +1844,110 @@ module StackOne
1773
1844
  end
1774
1845
 
1775
1846
 
1847
+ sig { params(ats_move_application_request_dto: ::StackOne::Shared::AtsMoveApplicationRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsMoveApplicationResponse) }
1848
+ def move_application(ats_move_application_request_dto, id, x_account_id)
1849
+ # move_application - Move Application
1850
+ request = ::StackOne::Operations::AtsMoveApplicationRequest.new(
1851
+
1852
+ ats_move_application_request_dto: ats_move_application_request_dto,
1853
+ id: id,
1854
+ x_account_id: x_account_id
1855
+ )
1856
+ url, params = @sdk_configuration.get_server_details
1857
+ base_url = Utils.template_url(url, params)
1858
+ url = Utils.generate_url(
1859
+ ::StackOne::Operations::AtsMoveApplicationRequest,
1860
+ base_url,
1861
+ '/unified/ats/applications/{id}/move',
1862
+ request
1863
+ )
1864
+ headers = Utils.get_headers(request)
1865
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_move_application_request_dto, :json)
1866
+ headers['content-type'] = req_content_type
1867
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
1868
+ headers['Accept'] = 'application/json'
1869
+ headers['user-agent'] = @sdk_configuration.user_agent
1870
+
1871
+ r = @sdk_configuration.client.post(url) do |req|
1872
+ req.headers = headers
1873
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1874
+ if form
1875
+ req.body = Utils.encode_form(form)
1876
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1877
+ req.body = URI.encode_www_form(data)
1878
+ else
1879
+ req.body = data
1880
+ end
1881
+ end
1882
+
1883
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1884
+
1885
+ res = ::StackOne::Operations::AtsMoveApplicationResponse.new(
1886
+ status_code: r.status, content_type: content_type, raw_response: r
1887
+ )
1888
+ if r.status == 200
1889
+ if Utils.match_content_type(content_type, 'application/json')
1890
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::MoveApplicationResult)
1891
+ res.move_application_result = out
1892
+ end
1893
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1894
+ end
1895
+ res
1896
+ end
1897
+
1898
+
1899
+ sig { params(ats_reject_application_request_dto: ::StackOne::Shared::AtsRejectApplicationRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsRejectApplicationResponse) }
1900
+ def reject_application(ats_reject_application_request_dto, id, x_account_id)
1901
+ # reject_application - Reject Application
1902
+ request = ::StackOne::Operations::AtsRejectApplicationRequest.new(
1903
+
1904
+ ats_reject_application_request_dto: ats_reject_application_request_dto,
1905
+ id: id,
1906
+ x_account_id: x_account_id
1907
+ )
1908
+ url, params = @sdk_configuration.get_server_details
1909
+ base_url = Utils.template_url(url, params)
1910
+ url = Utils.generate_url(
1911
+ ::StackOne::Operations::AtsRejectApplicationRequest,
1912
+ base_url,
1913
+ '/unified/ats/applications/{id}/reject',
1914
+ request
1915
+ )
1916
+ headers = Utils.get_headers(request)
1917
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_reject_application_request_dto, :json)
1918
+ headers['content-type'] = req_content_type
1919
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
1920
+ headers['Accept'] = 'application/json'
1921
+ headers['user-agent'] = @sdk_configuration.user_agent
1922
+
1923
+ r = @sdk_configuration.client.post(url) do |req|
1924
+ req.headers = headers
1925
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1926
+ if form
1927
+ req.body = Utils.encode_form(form)
1928
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1929
+ req.body = URI.encode_www_form(data)
1930
+ else
1931
+ req.body = data
1932
+ end
1933
+ end
1934
+
1935
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1936
+
1937
+ res = ::StackOne::Operations::AtsRejectApplicationResponse.new(
1938
+ status_code: r.status, content_type: content_type, raw_response: r
1939
+ )
1940
+ if r.status == 200
1941
+ if Utils.match_content_type(content_type, 'application/json')
1942
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::RejectApplicationResult)
1943
+ res.reject_application_result = out
1944
+ end
1945
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1946
+ end
1947
+ res
1948
+ end
1949
+
1950
+
1776
1951
  sig { params(ats_update_application_request_dto: ::StackOne::Shared::AtsUpdateApplicationRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateApplicationResponse) }
1777
1952
  def update_application(ats_update_application_request_dto, id, x_account_id)
1778
1953
  # update_application - Update an Application
@@ -1918,7 +2093,7 @@ module StackOne
1918
2093
  res = ::StackOne::Operations::AtsUploadApplicationDocumentResponse.new(
1919
2094
  status_code: r.status, content_type: content_type, raw_response: r
1920
2095
  )
1921
- if r.status == 200
2096
+ if r.status == 201
1922
2097
  if Utils.match_content_type(content_type, 'application/json')
1923
2098
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WriteResultApiModel)
1924
2099
  res.write_result_api_model = out
@@ -19,6 +19,58 @@ module StackOne
19
19
  end
20
20
 
21
21
 
22
+ sig { params(hris_batch_document_upload_request_dto: ::StackOne::Shared::HrisBatchDocumentUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisBatchUploadEmployeeDocumentResponse) }
23
+ def batch_upload_employee_document(hris_batch_document_upload_request_dto, id, x_account_id)
24
+ # batch_upload_employee_document - Batch Upload Employee Document
25
+ request = ::StackOne::Operations::HrisBatchUploadEmployeeDocumentRequest.new(
26
+
27
+ hris_batch_document_upload_request_dto: hris_batch_document_upload_request_dto,
28
+ id: id,
29
+ x_account_id: x_account_id
30
+ )
31
+ url, params = @sdk_configuration.get_server_details
32
+ base_url = Utils.template_url(url, params)
33
+ url = Utils.generate_url(
34
+ ::StackOne::Operations::HrisBatchUploadEmployeeDocumentRequest,
35
+ base_url,
36
+ '/unified/hris/employees/{id}/documents/upload/batch',
37
+ request
38
+ )
39
+ headers = Utils.get_headers(request)
40
+ req_content_type, data, form = Utils.serialize_request_body(request, :hris_batch_document_upload_request_dto, :json)
41
+ headers['content-type'] = req_content_type
42
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
43
+ headers['Accept'] = 'application/json'
44
+ headers['user-agent'] = @sdk_configuration.user_agent
45
+
46
+ r = @sdk_configuration.client.post(url) do |req|
47
+ req.headers = headers
48
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
49
+ if form
50
+ req.body = Utils.encode_form(form)
51
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
52
+ req.body = URI.encode_www_form(data)
53
+ else
54
+ req.body = data
55
+ end
56
+ end
57
+
58
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
59
+
60
+ res = ::StackOne::Operations::HrisBatchUploadEmployeeDocumentResponse.new(
61
+ status_code: r.status, content_type: content_type, raw_response: r
62
+ )
63
+ if r.status == 202
64
+ if Utils.match_content_type(content_type, 'application/json')
65
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BatchResultApiModel)
66
+ res.batch_result_api_model = out
67
+ end
68
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
69
+ end
70
+ res
71
+ end
72
+
73
+
22
74
  sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeResponse) }
23
75
  def create_employee(hris_create_employee_request_dto, x_account_id)
24
76
  # create_employee - Creates an employee
@@ -1464,7 +1516,7 @@ module StackOne
1464
1516
  res = ::StackOne::Operations::HrisUploadEmployeeDocumentResponse.new(
1465
1517
  status_code: r.status, content_type: content_type, raw_response: r
1466
1518
  )
1467
- if r.status == 200
1519
+ if r.status == 201
1468
1520
  if Utils.match_content_type(content_type, 'application/json')
1469
1521
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WriteResultApiModel)
1470
1522
  res.write_result_api_model = out