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
data/lib/stack_one/lms.rb CHANGED
@@ -19,25 +19,19 @@ module StackOne
19
19
  end
20
20
 
21
21
 
22
- sig { params(lms_create_completion_request_dto: ::StackOne::Shared::LmsCreateCompletionRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::LmsCreateCompletionResponse) }
23
- def create_completion(lms_create_completion_request_dto, id, x_account_id)
24
- # create_completion - Create User Completion
25
- request = ::StackOne::Operations::LmsCreateCompletionRequest.new(
22
+ sig { params(lms_batch_upsert_content_request_dto: ::StackOne::Shared::LmsBatchUpsertContentRequestDto, x_account_id: ::String).returns(::StackOne::Operations::LmsBatchUpsertContentResponse) }
23
+ def batch_upsert_content(lms_batch_upsert_content_request_dto, x_account_id)
24
+ # batch_upsert_content - Batch Upsert Content
25
+ request = ::StackOne::Operations::LmsBatchUpsertContentRequest.new(
26
26
 
27
- lms_create_completion_request_dto: lms_create_completion_request_dto,
28
- id: id,
27
+ lms_batch_upsert_content_request_dto: lms_batch_upsert_content_request_dto,
29
28
  x_account_id: x_account_id
30
29
  )
31
30
  url, params = @sdk_configuration.get_server_details
32
31
  base_url = Utils.template_url(url, params)
33
- url = Utils.generate_url(
34
- ::StackOne::Operations::LmsCreateCompletionRequest,
35
- base_url,
36
- '/unified/lms/users/{id}/completions',
37
- request
38
- )
32
+ url = "#{base_url}/unified/lms/content/batch"
39
33
  headers = Utils.get_headers(request)
40
- req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_completion_request_dto, :json)
34
+ req_content_type, data, form = Utils.serialize_request_body(request, :lms_batch_upsert_content_request_dto, :json)
41
35
  headers['content-type'] = req_content_type
42
36
  raise StandardError, 'request body is required' if data.nil? && form.nil?
43
37
  headers['Accept'] = 'application/json'
@@ -57,13 +51,13 @@ module StackOne
57
51
 
58
52
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
59
53
 
60
- res = ::StackOne::Operations::LmsCreateCompletionResponse.new(
54
+ res = ::StackOne::Operations::LmsBatchUpsertContentResponse.new(
61
55
  status_code: r.status, content_type: content_type, raw_response: r
62
56
  )
63
- if r.status == 201
57
+ if r.status == 202
64
58
  if Utils.match_content_type(content_type, 'application/json')
65
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
66
- res.create_result = out
59
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BatchResultApiModel)
60
+ res.batch_result_api_model = out
67
61
  end
68
62
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
69
63
  end
@@ -117,15 +111,67 @@ module StackOne
117
111
  end
118
112
 
119
113
 
114
+ sig { params(lms_create_completion_request_dto: ::StackOne::Shared::LmsCreateCompletionRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::LmsCreateUserCompletionResponse) }
115
+ def create_user_completion(lms_create_completion_request_dto, id, x_account_id)
116
+ # create_user_completion - Create User Completion
117
+ request = ::StackOne::Operations::LmsCreateUserCompletionRequest.new(
118
+
119
+ lms_create_completion_request_dto: lms_create_completion_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::LmsCreateUserCompletionRequest,
127
+ base_url,
128
+ '/unified/lms/users/{id}/completions',
129
+ request
130
+ )
131
+ headers = Utils.get_headers(request)
132
+ req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_completion_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::LmsCreateUserCompletionResponse.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::CreateResult)
158
+ res.create_result = out
159
+ end
160
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
161
+ end
162
+ res
163
+ end
164
+
165
+
120
166
  sig { params(request: T.nilable(::StackOne::Operations::LmsGetAssignmentRequest)).returns(::StackOne::Operations::LmsGetAssignmentResponse) }
121
167
  def get_assignment(request)
122
- # get_assignment - Get User Assignment
168
+ # get_assignment - Get Assignment
123
169
  url, params = @sdk_configuration.get_server_details
124
170
  base_url = Utils.template_url(url, params)
125
171
  url = Utils.generate_url(
126
172
  ::StackOne::Operations::LmsGetAssignmentRequest,
127
173
  base_url,
128
- '/unified/lms/users/{id}/assignments/{subResourceId}',
174
+ '/unified/lms/assignments/{id}',
129
175
  request
130
176
  )
131
177
  headers = Utils.get_headers(request)
@@ -193,6 +239,44 @@ module StackOne
193
239
  end
194
240
 
195
241
 
242
+ sig { params(request: T.nilable(::StackOne::Operations::LmsGetCompletionRequest)).returns(::StackOne::Operations::LmsGetCompletionResponse) }
243
+ def get_completion(request)
244
+ # get_completion - Get Completion
245
+ url, params = @sdk_configuration.get_server_details
246
+ base_url = Utils.template_url(url, params)
247
+ url = Utils.generate_url(
248
+ ::StackOne::Operations::LmsGetCompletionRequest,
249
+ base_url,
250
+ '/unified/lms/completions/{id}',
251
+ request
252
+ )
253
+ headers = Utils.get_headers(request)
254
+ query_params = Utils.get_query_params(::StackOne::Operations::LmsGetCompletionRequest, request)
255
+ headers['Accept'] = 'application/json'
256
+ headers['user-agent'] = @sdk_configuration.user_agent
257
+
258
+ r = @sdk_configuration.client.get(url) do |req|
259
+ req.headers = headers
260
+ req.params = query_params
261
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
262
+ end
263
+
264
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
265
+
266
+ res = ::StackOne::Operations::LmsGetCompletionResponse.new(
267
+ status_code: r.status, content_type: content_type, raw_response: r
268
+ )
269
+ if r.status == 200
270
+ if Utils.match_content_type(content_type, 'application/json')
271
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompletionResult)
272
+ res.completion_result = out
273
+ end
274
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
275
+ end
276
+ res
277
+ end
278
+
279
+
196
280
  sig { params(request: T.nilable(::StackOne::Operations::LmsGetContentRequest)).returns(::StackOne::Operations::LmsGetContentResponse) }
197
281
  def get_content(request)
198
282
  # get_content - Get Content
@@ -269,6 +353,44 @@ module StackOne
269
353
  end
270
354
 
271
355
 
356
+ sig { params(request: T.nilable(::StackOne::Operations::LmsGetSkillRequest)).returns(::StackOne::Operations::LmsGetSkillResponse) }
357
+ def get_skill(request)
358
+ # get_skill - Get Skill
359
+ url, params = @sdk_configuration.get_server_details
360
+ base_url = Utils.template_url(url, params)
361
+ url = Utils.generate_url(
362
+ ::StackOne::Operations::LmsGetSkillRequest,
363
+ base_url,
364
+ '/unified/lms/skills/{id}',
365
+ request
366
+ )
367
+ headers = Utils.get_headers(request)
368
+ query_params = Utils.get_query_params(::StackOne::Operations::LmsGetSkillRequest, request)
369
+ headers['Accept'] = 'application/json'
370
+ headers['user-agent'] = @sdk_configuration.user_agent
371
+
372
+ r = @sdk_configuration.client.get(url) do |req|
373
+ req.headers = headers
374
+ req.params = query_params
375
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
376
+ end
377
+
378
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
379
+
380
+ res = ::StackOne::Operations::LmsGetSkillResponse.new(
381
+ status_code: r.status, content_type: content_type, raw_response: r
382
+ )
383
+ if r.status == 200
384
+ if Utils.match_content_type(content_type, 'application/json')
385
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::SkillResult)
386
+ res.skill_result = out
387
+ end
388
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
389
+ end
390
+ res
391
+ end
392
+
393
+
272
394
  sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserRequest)).returns(::StackOne::Operations::LmsGetUserResponse) }
273
395
  def get_user(request)
274
396
  # get_user - Get User
@@ -307,18 +429,89 @@ module StackOne
307
429
  end
308
430
 
309
431
 
310
- sig { params(request: T.nilable(::StackOne::Operations::LmsListAssignmentsRequest)).returns(::StackOne::Operations::LmsListAssignmentsResponse) }
311
- def list_assignments(request)
312
- # list_assignments - List User Assignments
432
+ sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserAssignmentRequest)).returns(::StackOne::Operations::LmsGetUserAssignmentResponse) }
433
+ def get_user_assignment(request)
434
+ # get_user_assignment - Get User Assignment
313
435
  url, params = @sdk_configuration.get_server_details
314
436
  base_url = Utils.template_url(url, params)
315
437
  url = Utils.generate_url(
316
- ::StackOne::Operations::LmsListAssignmentsRequest,
438
+ ::StackOne::Operations::LmsGetUserAssignmentRequest,
317
439
  base_url,
318
- '/unified/lms/users/{id}/assignments',
440
+ '/unified/lms/users/{id}/assignments/{subResourceId}',
441
+ request
442
+ )
443
+ headers = Utils.get_headers(request)
444
+ query_params = Utils.get_query_params(::StackOne::Operations::LmsGetUserAssignmentRequest, request)
445
+ headers['Accept'] = 'application/json'
446
+ headers['user-agent'] = @sdk_configuration.user_agent
447
+
448
+ r = @sdk_configuration.client.get(url) do |req|
449
+ req.headers = headers
450
+ req.params = query_params
451
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
452
+ end
453
+
454
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
455
+
456
+ res = ::StackOne::Operations::LmsGetUserAssignmentResponse.new(
457
+ status_code: r.status, content_type: content_type, raw_response: r
458
+ )
459
+ if r.status == 200
460
+ if Utils.match_content_type(content_type, 'application/json')
461
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssignmentResult)
462
+ res.assignment_result = out
463
+ end
464
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
465
+ end
466
+ res
467
+ end
468
+
469
+
470
+ sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserCompletionRequest)).returns(::StackOne::Operations::LmsGetUserCompletionResponse) }
471
+ def get_user_completion(request)
472
+ # get_user_completion - Get User Completion
473
+ url, params = @sdk_configuration.get_server_details
474
+ base_url = Utils.template_url(url, params)
475
+ url = Utils.generate_url(
476
+ ::StackOne::Operations::LmsGetUserCompletionRequest,
477
+ base_url,
478
+ '/unified/lms/users/{id}/completions/{subResourceId}',
319
479
  request
320
480
  )
321
481
  headers = Utils.get_headers(request)
482
+ query_params = Utils.get_query_params(::StackOne::Operations::LmsGetUserCompletionRequest, request)
483
+ headers['Accept'] = 'application/json'
484
+ headers['user-agent'] = @sdk_configuration.user_agent
485
+
486
+ r = @sdk_configuration.client.get(url) do |req|
487
+ req.headers = headers
488
+ req.params = query_params
489
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
490
+ end
491
+
492
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
493
+
494
+ res = ::StackOne::Operations::LmsGetUserCompletionResponse.new(
495
+ status_code: r.status, content_type: content_type, raw_response: r
496
+ )
497
+ if r.status == 200
498
+ if Utils.match_content_type(content_type, 'application/json')
499
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompletionResult)
500
+ res.completion_result = out
501
+ end
502
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
503
+ end
504
+ res
505
+ end
506
+
507
+
508
+ sig { params(request: T.nilable(::StackOne::Operations::LmsListAssignmentsRequest)).returns(::StackOne::Operations::LmsListAssignmentsResponse) }
509
+ def list_assignments(request)
510
+ # list_assignments - List Assignments
511
+ url, params = @sdk_configuration.get_server_details
512
+ base_url = Utils.template_url(url, params)
513
+ url = "#{base_url}/unified/lms/assignments"
514
+ headers = Utils.get_headers(request)
322
515
  query_params = Utils.get_query_params(::StackOne::Operations::LmsListAssignmentsRequest, request)
323
516
  headers['Accept'] = 'application/json'
324
517
  headers['user-agent'] = @sdk_configuration.user_agent
@@ -380,15 +573,10 @@ module StackOne
380
573
 
381
574
  sig { params(request: T.nilable(::StackOne::Operations::LmsListCompletionsRequest)).returns(::StackOne::Operations::LmsListCompletionsResponse) }
382
575
  def list_completions(request)
383
- # list_completions - List User Completions
576
+ # list_completions - List Completions
384
577
  url, params = @sdk_configuration.get_server_details
385
578
  base_url = Utils.template_url(url, params)
386
- url = Utils.generate_url(
387
- ::StackOne::Operations::LmsListCompletionsRequest,
388
- base_url,
389
- '/unified/lms/users/{id}/completions',
390
- request
391
- )
579
+ url = "#{base_url}/unified/lms/completions"
392
580
  headers = Utils.get_headers(request)
393
581
  query_params = Utils.get_query_params(::StackOne::Operations::LmsListCompletionsRequest, request)
394
582
  headers['Accept'] = 'application/json'
@@ -482,6 +670,115 @@ module StackOne
482
670
  end
483
671
 
484
672
 
673
+ sig { params(request: T.nilable(::StackOne::Operations::LmsListSkillsRequest)).returns(::StackOne::Operations::LmsListSkillsResponse) }
674
+ def list_skills(request)
675
+ # list_skills - List Skills
676
+ url, params = @sdk_configuration.get_server_details
677
+ base_url = Utils.template_url(url, params)
678
+ url = "#{base_url}/unified/lms/skills"
679
+ headers = Utils.get_headers(request)
680
+ query_params = Utils.get_query_params(::StackOne::Operations::LmsListSkillsRequest, 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::LmsListSkillsResponse.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::SkillsPaginated)
698
+ res.skills_paginated = 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::LmsListUserAssignmentsRequest)).returns(::StackOne::Operations::LmsListUserAssignmentsResponse) }
707
+ def list_user_assignments(request)
708
+ # list_user_assignments - List User Assignments
709
+ url, params = @sdk_configuration.get_server_details
710
+ base_url = Utils.template_url(url, params)
711
+ url = Utils.generate_url(
712
+ ::StackOne::Operations::LmsListUserAssignmentsRequest,
713
+ base_url,
714
+ '/unified/lms/users/{id}/assignments',
715
+ request
716
+ )
717
+ headers = Utils.get_headers(request)
718
+ query_params = Utils.get_query_params(::StackOne::Operations::LmsListUserAssignmentsRequest, 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::LmsListUserAssignmentsResponse.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::AssignmentsPaginated)
736
+ res.assignments_paginated = 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::LmsListUserCompletionsRequest)).returns(::StackOne::Operations::LmsListUserCompletionsResponse) }
745
+ def list_user_completions(request)
746
+ # list_user_completions - List User Completions
747
+ url, params = @sdk_configuration.get_server_details
748
+ base_url = Utils.template_url(url, params)
749
+ url = Utils.generate_url(
750
+ ::StackOne::Operations::LmsListUserCompletionsRequest,
751
+ base_url,
752
+ '/unified/lms/users/{id}/completions',
753
+ request
754
+ )
755
+ headers = Utils.get_headers(request)
756
+ query_params = Utils.get_query_params(::StackOne::Operations::LmsListUserCompletionsRequest, 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::LmsListUserCompletionsResponse.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::CompletionsPaginated)
774
+ res.completions_paginated = out
775
+ end
776
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
777
+ end
778
+ res
779
+ end
780
+
781
+
485
782
  sig { params(request: T.nilable(::StackOne::Operations::LmsListUsersRequest)).returns(::StackOne::Operations::LmsListUsersResponse) }
486
783
  def list_users(request)
487
784
  # list_users - List Users
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+ # Filter parameters that allow greater customisation of the list response
11
+ class AtsGetJobCustomFieldDefinitionQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Use a string with a date to only select results updated after that given date
15
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
16
+
17
+
18
+ sig { params(updated_after: T.nilable(::String)).void }
19
+ def initialize(updated_after: nil)
20
+ @updated_after = updated_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,60 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsGetJobCustomFieldDefinitionRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+ # The account identifier
17
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
+ # Filter parameters that allow greater customisation of the list response
21
+ field :filter, T.nilable(::StackOne::Operations::AtsGetJobCustomFieldDefinitionQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
22
+ # The unified cursor
23
+ field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
24
+ # The page number of the results to fetch
25
+ #
26
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
27
+ field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
28
+ # The number of results per page
29
+ field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
30
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
31
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
32
+ # Indicates that the raw request result is returned
33
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
34
+ # The sync token to select the only updated results
35
+ #
36
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
37
+ field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
38
+ # Use a string with a date to only select results updated after that given date
39
+ #
40
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
41
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
42
+
43
+
44
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsGetJobCustomFieldDefinitionQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
45
+ def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
46
+ @id = id
47
+ @x_account_id = x_account_id
48
+ @fields_ = fields_
49
+ @filter = filter
50
+ @next_ = next_
51
+ @page = page
52
+ @page_size = page_size
53
+ @proxy = proxy
54
+ @raw = raw
55
+ @sync_token = sync_token
56
+ @updated_after = updated_after
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsGetJobCustomFieldDefinitionResponse < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # The job custom field definition was retrieved.
21
+ field :custom_field_definition_result_api_model, T.nilable(::StackOne::Shared::CustomFieldDefinitionResultApiModel)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, custom_field_definition_result_api_model: T.nilable(::StackOne::Shared::CustomFieldDefinitionResultApiModel)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, custom_field_definition_result_api_model: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @custom_field_definition_result_api_model = custom_field_definition_result_api_model
30
+ end
31
+ end
32
+ end
33
+ end
@@ -19,18 +19,21 @@ module StackOne
19
19
  field :expand, T.nilable(::String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } }
20
20
  # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
21
21
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
22
+ # The comma separated list of fields that will be included in the response
23
+ field :include, T.nilable(::String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
22
24
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
23
25
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
24
26
  # Indicates that the raw request result is returned
25
27
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
26
28
 
27
29
 
28
- sig { params(id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
29
- def initialize(id: nil, x_account_id: nil, expand: nil, fields_: nil, proxy: nil, raw: nil)
30
+ sig { params(id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), include: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
31
+ def initialize(id: nil, x_account_id: nil, expand: nil, fields_: nil, include: nil, proxy: nil, raw: nil)
30
32
  @id = id
31
33
  @x_account_id = x_account_id
32
34
  @expand = expand
33
35
  @fields_ = fields_
36
+ @include = include
34
37
  @proxy = proxy
35
38
  @raw = raw
36
39
  end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+ # Filter parameters that allow greater customisation of the list response
11
+ class AtsListJobCustomFieldDefinitionsQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Use a string with a date to only select results updated after that given date
15
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
16
+
17
+
18
+ sig { params(updated_after: T.nilable(::String)).void }
19
+ def initialize(updated_after: nil)
20
+ @updated_after = updated_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,57 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsListJobCustomFieldDefinitionsRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The account identifier
15
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
16
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
17
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
18
+ # Filter parameters that allow greater customisation of the list response
19
+ field :filter, T.nilable(::StackOne::Operations::AtsListJobCustomFieldDefinitionsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
20
+ # The unified cursor
21
+ field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
22
+ # The page number of the results to fetch
23
+ #
24
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
25
+ field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
26
+ # The number of results per page
27
+ field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
28
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
29
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
30
+ # Indicates that the raw request result is returned
31
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
32
+ # The sync token to select the only updated results
33
+ #
34
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
35
+ field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
36
+ # Use a string with a date to only select results updated after that given date
37
+ #
38
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
39
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
+
41
+
42
+ sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListJobCustomFieldDefinitionsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
43
+ def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
44
+ @x_account_id = x_account_id
45
+ @fields_ = fields_
46
+ @filter = filter
47
+ @next_ = next_
48
+ @page = page
49
+ @page_size = page_size
50
+ @proxy = proxy
51
+ @raw = raw
52
+ @sync_token = sync_token
53
+ @updated_after = updated_after
54
+ end
55
+ end
56
+ end
57
+ end