stackone_client 0.2.4 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/accounts.rb +2 -9
  3. data/lib/stack_one/ats.rb +44 -1
  4. data/lib/stack_one/hris.rb +93 -0
  5. data/lib/stack_one/models/operations/ats_download_application_document_request.rb +33 -0
  6. data/lib/stack_one/models/operations/ats_download_application_document_response.rb +33 -0
  7. data/lib/stack_one/models/operations/ats_get_application_document_request.rb +4 -23
  8. data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +4 -23
  9. data/lib/stack_one/models/operations/ats_get_application_request.rb +4 -23
  10. data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +4 -23
  11. data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +4 -23
  12. data/lib/stack_one/models/operations/ats_get_candidate_request.rb +4 -23
  13. data/lib/stack_one/models/operations/ats_get_department_request.rb +4 -23
  14. data/lib/stack_one/models/operations/ats_get_interview_request.rb +4 -23
  15. data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +4 -23
  16. data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +4 -23
  17. data/lib/stack_one/models/operations/ats_get_job_request.rb +4 -23
  18. data/lib/stack_one/models/operations/ats_get_location_request.rb +4 -23
  19. data/lib/stack_one/models/operations/ats_get_offer_request.rb +4 -23
  20. data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +4 -23
  21. data/lib/stack_one/models/operations/ats_get_user_request.rb +4 -23
  22. data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +3 -3
  23. data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +3 -3
  24. data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +3 -3
  25. data/lib/stack_one/models/operations/ats_list_applications_request.rb +3 -3
  26. data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +3 -3
  27. data/lib/stack_one/models/operations/ats_list_candidates_request.rb +3 -3
  28. data/lib/stack_one/models/operations/ats_list_departments_request.rb +3 -3
  29. data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +3 -3
  30. data/lib/stack_one/models/operations/ats_list_interviews_request.rb +3 -3
  31. data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +3 -3
  32. data/lib/stack_one/models/operations/ats_list_jobs_request.rb +3 -3
  33. data/lib/stack_one/models/operations/ats_list_locations_request.rb +3 -3
  34. data/lib/stack_one/models/operations/ats_list_offers_request.rb +3 -3
  35. data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +3 -3
  36. data/lib/stack_one/models/operations/ats_list_users_request.rb +3 -3
  37. data/lib/stack_one/models/operations/crm_get_account_request.rb +2 -2
  38. data/lib/stack_one/models/operations/crm_get_contact_request.rb +2 -2
  39. data/lib/stack_one/models/operations/crm_get_list_request.rb +2 -2
  40. data/lib/stack_one/models/operations/crm_list_accounts_request.rb +2 -2
  41. data/lib/stack_one/models/operations/crm_list_contacts_request.rb +2 -2
  42. data/lib/stack_one/models/operations/crm_list_lists_request.rb +2 -2
  43. data/lib/stack_one/models/operations/hris_download_employee_document_request.rb +33 -0
  44. data/lib/stack_one/models/operations/hris_download_employee_document_response.rb +33 -0
  45. data/lib/stack_one/models/operations/hris_get_benefit_request.rb +2 -2
  46. data/lib/stack_one/models/operations/hris_get_company_request.rb +2 -2
  47. data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +2 -2
  48. data/lib/stack_one/models/operations/hris_get_employee_request.rb +2 -2
  49. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +2 -2
  50. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +2 -2
  51. data/lib/stack_one/models/operations/hris_get_employment_request.rb +2 -2
  52. data/lib/stack_one/models/operations/hris_get_location_request.rb +2 -2
  53. data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +2 -2
  54. data/lib/stack_one/models/operations/hris_list_benefits_request.rb +2 -2
  55. data/lib/stack_one/models/operations/hris_list_companies_request.rb +2 -2
  56. data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +2 -2
  57. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +2 -2
  58. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +2 -2
  59. data/lib/stack_one/models/operations/hris_list_employees_request.rb +2 -2
  60. data/lib/stack_one/models/operations/hris_list_employments_request.rb +2 -2
  61. data/lib/stack_one/models/operations/hris_list_locations_request.rb +2 -2
  62. data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +2 -2
  63. data/lib/stack_one/models/operations/hris_upload_employee_document_request.rb +30 -0
  64. data/lib/stack_one/models/operations/hris_upload_employee_document_response.rb +33 -0
  65. data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +2 -2
  66. data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +2 -2
  67. data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +2 -2
  68. data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +2 -2
  69. data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +2 -2
  70. data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +2 -2
  71. data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +2 -2
  72. data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +2 -2
  73. data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +8 -2
  74. data/lib/stack_one/models/operations.rb +6 -62
  75. data/lib/stack_one/models/shared/account.rb +8 -8
  76. data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +5 -10
  77. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +5 -28
  78. data/lib/stack_one/models/shared/content.rb +6 -3
  79. data/lib/stack_one/models/shared/{fileformatenum_value.rb → content_value.rb} +1 -1
  80. data/lib/stack_one/models/shared/employee.rb +5 -2
  81. data/lib/stack_one/models/shared/employee_schemas_preferred_language_value.rb +115 -0
  82. data/lib/stack_one/models/shared/{fileformatenum.rb → file_format.rb} +4 -4
  83. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
  84. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_preferred_language.rb +27 -0
  85. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_preferred_language_value.rb +115 -0
  86. data/lib/stack_one/models/shared/job.rb +3 -3
  87. data/lib/stack_one/models/shared/list.rb +8 -8
  88. data/lib/stack_one/models/shared/note.rb +5 -5
  89. data/lib/stack_one/models/shared/notecontentapimodel.rb +2 -2
  90. data/lib/stack_one/models/shared/preferred_language.rb +27 -0
  91. data/lib/stack_one/models/shared/resultlink.rb +5 -5
  92. data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +59 -0
  93. data/lib/stack_one/models/shared/unifieduploadrequestdto_confidential.rb +27 -0
  94. data/lib/stack_one/models/shared/{atsupdateapplicationrequestdto_application_status.rb → unifieduploadrequestdto_file_format.rb} +6 -6
  95. data/lib/stack_one/models/shared/unifieduploadrequestdto_schemas_value.rb +1226 -0
  96. data/lib/stack_one/models/shared/{job_schemas_status.rb → unifieduploadrequestdto_value.rb} +6 -7
  97. data/lib/stack_one/models/shared/user.rb +6 -6
  98. data/lib/stack_one/models/shared/userresult.rb +2 -2
  99. data/lib/stack_one/models/shared/userspaginated.rb +5 -5
  100. data/lib/stack_one/models/shared.rb +14 -9
  101. data/lib/stack_one/sdkconfiguration.rb +3 -3
  102. metadata +19 -70
  103. data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +0 -20
  104. data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +0 -20
  105. data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +0 -20
  106. data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +0 -20
  107. data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +0 -20
  108. data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +0 -20
  109. data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +0 -20
  110. data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +0 -20
  111. data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +0 -20
  112. data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +0 -20
  113. data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +0 -20
  114. data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +0 -20
  115. data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +0 -20
  116. data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +0 -20
  117. data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +0 -20
  118. data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +0 -20
  119. data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +0 -20
  120. data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +0 -20
  121. data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +0 -20
  122. data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +0 -20
  123. data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +0 -20
  124. data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +0 -20
  125. data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +0 -20
  126. data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +0 -20
  127. data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +0 -20
  128. data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +0 -20
  129. data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +0 -20
  130. data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +0 -20
  131. data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +0 -20
  132. data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +0 -20
  133. data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +0 -20
  134. data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +0 -20
  135. data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +0 -20
  136. data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +0 -20
  137. data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +0 -20
  138. data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +0 -20
  139. data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +0 -20
  140. data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +0 -20
  141. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +0 -20
  142. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_queryparam_proxy.rb +0 -20
  143. data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +0 -20
  144. data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +0 -20
  145. data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +0 -20
  146. data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +0 -20
  147. data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +0 -20
  148. data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +0 -20
  149. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +0 -20
  150. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_queryparam_proxy.rb +0 -20
  151. data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +0 -20
  152. data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +0 -20
  153. data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +0 -20
  154. data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +0 -20
  155. data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +0 -20
  156. data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +0 -20
  157. data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +0 -20
  158. data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +0 -20
  159. data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +0 -20
  160. data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +0 -20
  161. data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +0 -20
  162. data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +0 -20
  163. data/lib/stack_one/models/operations/proxy.rb +0 -20
  164. data/lib/stack_one/models/operations/queryparam_proxy.rb +0 -20
  165. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_candidate.rb +0 -30
  166. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +0 -32
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d1ab84716b45955e96605277ed3f7d9c1ab9cb1fd6a75670036263915f351da
4
- data.tar.gz: 1cef9bbe7c09b5c93ac04f307af7c02a71485852ef9c205f0213383f6d5f36cf
3
+ metadata.gz: aabe8abf79f3151c8a0749321f389b77959b486b4da285d2cd93baec06000223
4
+ data.tar.gz: 36886287dde7d2a89c5051d5d679d5b3718a43bd3d7f6d1a021202d0b9478355
5
5
  SHA512:
6
- metadata.gz: 9add2247ffd83c1abc2a82f029935bdec703ed60ff062d5af1ae4610f82ce5ffe30c5e8788f7d855e22ead4fd0e48454ae3d3d234b1f813348a03e1503434f3b
7
- data.tar.gz: 7cc8ad2fa3e349df52a9f1d26041e285c9c23287772ea27c538213a4dd7cc6f3b6b0386d6ec3d3399d2abd6dd96a83d85c56983a1fee51d2cc5261295d9b224c
6
+ metadata.gz: 76877cd3d90b042b78903d7c8c94c7bb86b6dc0bd9526b741516c22628f129e1ec1477be7f9b0d22c3ea6308ca2d7ca68f5e7d0640195090136583c1ace7ea27
7
+ data.tar.gz: f35c01e5d0c7eab4f3f831205f298229d05c5e9ee4aa8182fd7e21f34c9dea64fbbc38e019a5f3f78abe6f3698ffaabf6f3b0651fb3ec265883c56f319161d68
@@ -139,16 +139,9 @@ module StackOne
139
139
  end
140
140
 
141
141
 
142
- sig { params(origin_owner_id: T.nilable(::String), page: T.nilable(::Float), page_size: T.nilable(::Float), provider: T.nilable(::String)).returns(::StackOne::Operations::StackoneListLinkedAccountsResponse) }
143
- def list_linked_accounts(origin_owner_id = nil, page = nil, page_size = nil, provider = nil)
142
+ sig { params(request: T.nilable(::StackOne::Operations::StackoneListLinkedAccountsRequest)).returns(::StackOne::Operations::StackoneListLinkedAccountsResponse) }
143
+ def list_linked_accounts(request)
144
144
  # list_linked_accounts - List Accounts
145
- request = ::StackOne::Operations::StackoneListLinkedAccountsRequest.new(
146
-
147
- origin_owner_id: origin_owner_id,
148
- page: page,
149
- page_size: page_size,
150
- provider: provider
151
- )
152
145
  url, params = @sdk_configuration.get_server_details
153
146
  base_url = Utils.template_url(url, params)
154
147
  url = "#{base_url}/accounts"
data/lib/stack_one/ats.rb CHANGED
@@ -209,6 +209,49 @@ module StackOne
209
209
  end
210
210
 
211
211
 
212
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String)).returns(::StackOne::Operations::AtsDownloadApplicationDocumentResponse) }
213
+ def download_application_document(id, sub_resource_id, x_account_id, format = nil)
214
+ # download_application_document - Download Application Document
215
+ request = ::StackOne::Operations::AtsDownloadApplicationDocumentRequest.new(
216
+
217
+ id: id,
218
+ sub_resource_id: sub_resource_id,
219
+ x_account_id: x_account_id,
220
+ format: format
221
+ )
222
+ url, params = @sdk_configuration.get_server_details
223
+ base_url = Utils.template_url(url, params)
224
+ url = Utils.generate_url(
225
+ ::StackOne::Operations::AtsDownloadApplicationDocumentRequest,
226
+ base_url,
227
+ '/unified/ats/applications/{id}/documents/{subResourceId}/download',
228
+ request
229
+ )
230
+ headers = Utils.get_headers(request)
231
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsDownloadApplicationDocumentRequest, request)
232
+ headers['Accept'] = 'application/octet-stream'
233
+ headers['user-agent'] = @sdk_configuration.user_agent
234
+
235
+ r = @sdk_configuration.client.get(url) do |req|
236
+ req.headers = headers
237
+ req.params = query_params
238
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
239
+ end
240
+
241
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
242
+
243
+ res = ::StackOne::Operations::AtsDownloadApplicationDocumentResponse.new(
244
+ status_code: r.status, content_type: content_type, raw_response: r
245
+ )
246
+ if r.status == 200
247
+ res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
248
+
249
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
250
+ end
251
+ res
252
+ end
253
+
254
+
212
255
  sig { params(request: T.nilable(::StackOne::Operations::AtsGetApplicationRequest)).returns(::StackOne::Operations::AtsGetApplicationResponse) }
213
256
  def get_application(request)
214
257
  # get_application - Get Application
@@ -1296,7 +1339,7 @@ module StackOne
1296
1339
 
1297
1340
  sig { params(ats_update_application_request_dto: ::StackOne::Shared::AtsUpdateApplicationRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateApplicationResponse) }
1298
1341
  def update_application(ats_update_application_request_dto, id, x_account_id)
1299
- # update_application - Update Application
1342
+ # update_application - Update an Application
1300
1343
  request = ::StackOne::Operations::AtsUpdateApplicationRequest.new(
1301
1344
 
1302
1345
  ats_update_application_request_dto: ats_update_application_request_dto,
@@ -267,6 +267,49 @@ module StackOne
267
267
  end
268
268
 
269
269
 
270
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String)).returns(::StackOne::Operations::HrisDownloadEmployeeDocumentResponse) }
271
+ def download_employee_document(id, sub_resource_id, x_account_id, format = nil)
272
+ # download_employee_document - Download Employee Document
273
+ request = ::StackOne::Operations::HrisDownloadEmployeeDocumentRequest.new(
274
+
275
+ id: id,
276
+ sub_resource_id: sub_resource_id,
277
+ x_account_id: x_account_id,
278
+ format: format
279
+ )
280
+ url, params = @sdk_configuration.get_server_details
281
+ base_url = Utils.template_url(url, params)
282
+ url = Utils.generate_url(
283
+ ::StackOne::Operations::HrisDownloadEmployeeDocumentRequest,
284
+ base_url,
285
+ '/unified/hris/employees/{id}/documents/{subResourceId}/download',
286
+ request
287
+ )
288
+ headers = Utils.get_headers(request)
289
+ query_params = Utils.get_query_params(::StackOne::Operations::HrisDownloadEmployeeDocumentRequest, request)
290
+ headers['Accept'] = 'application/octet-stream'
291
+ headers['user-agent'] = @sdk_configuration.user_agent
292
+
293
+ r = @sdk_configuration.client.get(url) do |req|
294
+ req.headers = headers
295
+ req.params = query_params
296
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
297
+ end
298
+
299
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
300
+
301
+ res = ::StackOne::Operations::HrisDownloadEmployeeDocumentResponse.new(
302
+ status_code: r.status, content_type: content_type, raw_response: r
303
+ )
304
+ if r.status == 200
305
+ res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
306
+
307
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
308
+ end
309
+ res
310
+ end
311
+
312
+
270
313
  sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest)).returns(::StackOne::Operations::HrisGetBenefitResponse) }
271
314
  def get_benefit(request)
272
315
  # get_benefit - Get Benefit
@@ -1070,5 +1113,55 @@ module StackOne
1070
1113
  end
1071
1114
  res
1072
1115
  end
1116
+
1117
+
1118
+ sig { params(unified_upload_request_dto: ::StackOne::Shared::UnifiedUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
1119
+ def upload_employee_document(unified_upload_request_dto, id, x_account_id)
1120
+ # upload_employee_document - Upload Employee Document
1121
+ request = ::StackOne::Operations::HrisUploadEmployeeDocumentRequest.new(
1122
+
1123
+ unified_upload_request_dto: unified_upload_request_dto,
1124
+ id: id,
1125
+ x_account_id: x_account_id
1126
+ )
1127
+ url, params = @sdk_configuration.get_server_details
1128
+ base_url = Utils.template_url(url, params)
1129
+ url = Utils.generate_url(
1130
+ ::StackOne::Operations::HrisUploadEmployeeDocumentRequest,
1131
+ base_url,
1132
+ '/unified/hris/employees/{id}/documents/upload',
1133
+ request
1134
+ )
1135
+ headers = Utils.get_headers(request)
1136
+ req_content_type, data, form = Utils.serialize_request_body(request, :unified_upload_request_dto, :json)
1137
+ headers['content-type'] = req_content_type
1138
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
1139
+ headers['Accept'] = 'application/json'
1140
+ headers['user-agent'] = @sdk_configuration.user_agent
1141
+
1142
+ r = @sdk_configuration.client.post(url) do |req|
1143
+ req.headers = headers
1144
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1145
+ if form
1146
+ req.body = Utils.encode_form(form)
1147
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1148
+ req.body = URI.encode_www_form(data)
1149
+ else
1150
+ req.body = data
1151
+ end
1152
+ end
1153
+
1154
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1155
+
1156
+ res = ::StackOne::Operations::HrisUploadEmployeeDocumentResponse.new(
1157
+ status_code: r.status, content_type: content_type, raw_response: r
1158
+ )
1159
+ if r.status == 200
1160
+ res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
1161
+
1162
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1163
+ end
1164
+ res
1165
+ end
1073
1166
  end
1074
1167
  end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsDownloadApplicationDocumentRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+
17
+ field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
18
+ # The account identifier
19
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
+ # The format to download the file in
21
+ field :format, T.nilable(::String), { 'query_param': { 'field_name': 'format', 'style': 'form', 'explode': true } }
22
+
23
+
24
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String)).void }
25
+ def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, format: nil)
26
+ @id = id
27
+ @sub_resource_id = sub_resource_id
28
+ @x_account_id = x_account_id
29
+ @format = format
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsDownloadApplicationDocumentResponse < ::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 document related to the application with the given identifiers was retrieved.
21
+ field :bytes, T.nilable(::String)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bytes: T.nilable(::String)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, bytes: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @bytes = bytes
30
+ end
31
+ end
32
+ end
33
+ end
@@ -17,41 +17,22 @@ module StackOne
17
17
  field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
18
18
  # The account identifier
19
19
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
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 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
22
  # 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(::StackOne::Operations::QueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
23
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
32
24
  # Indicates that the raw request result is returned
33
25
  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
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
26
 
41
27
 
42
- sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(::StackOne::Operations::QueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
43
- def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
28
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
29
+ def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
44
30
  @id = id
45
31
  @sub_resource_id = sub_resource_id
46
32
  @x_account_id = x_account_id
47
33
  @fields_ = fields_
48
- @next_ = next_
49
- @page = page
50
- @page_size = page_size
51
34
  @proxy = proxy
52
35
  @raw = raw
53
- @sync_token = sync_token
54
- @updated_after = updated_after
55
36
  end
56
37
  end
57
38
  end
@@ -17,41 +17,22 @@ module StackOne
17
17
  field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
18
18
  # The account identifier
19
19
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
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 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
22
  # 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(::StackOne::Operations::AtsGetApplicationOfferQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
23
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
32
24
  # Indicates that the raw request result is returned
33
25
  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
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
26
 
41
27
 
42
- sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(::StackOne::Operations::AtsGetApplicationOfferQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
43
- def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
28
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
29
+ def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
44
30
  @id = id
45
31
  @sub_resource_id = sub_resource_id
46
32
  @x_account_id = x_account_id
47
33
  @fields_ = fields_
48
- @next_ = next_
49
- @page = page
50
- @page_size = page_size
51
34
  @proxy = proxy
52
35
  @raw = raw
53
- @sync_token = sync_token
54
- @updated_after = updated_after
55
36
  end
56
37
  end
57
38
  end
@@ -17,41 +17,22 @@ module StackOne
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
18
  # The comma separated list of fields that will be expanded in the response
19
19
  field :expand, T.nilable(::String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } }
20
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
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 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
22
  # 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(::StackOne::Operations::Proxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
23
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
32
24
  # Indicates that the raw request result is returned
33
25
  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
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
26
 
41
27
 
42
- sig { params(id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(::StackOne::Operations::Proxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
43
- def initialize(id: nil, x_account_id: nil, expand: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
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)
44
30
  @id = id
45
31
  @x_account_id = x_account_id
46
32
  @expand = expand
47
33
  @fields_ = fields_
48
- @next_ = next_
49
- @page = page
50
- @page_size = page_size
51
34
  @proxy = proxy
52
35
  @raw = raw
53
- @sync_token = sync_token
54
- @updated_after = updated_after
55
36
  end
56
37
  end
57
38
  end
@@ -17,41 +17,22 @@ module StackOne
17
17
  field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
18
18
  # The account identifier
19
19
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
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 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
22
  # 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(::StackOne::Operations::AtsGetApplicationScorecardQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
23
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
32
24
  # Indicates that the raw request result is returned
33
25
  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
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
26
 
41
27
 
42
- sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(::StackOne::Operations::AtsGetApplicationScorecardQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
43
- def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
28
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
29
+ def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
44
30
  @id = id
45
31
  @sub_resource_id = sub_resource_id
46
32
  @x_account_id = x_account_id
47
33
  @fields_ = fields_
48
- @next_ = next_
49
- @page = page
50
- @page_size = page_size
51
34
  @proxy = proxy
52
35
  @raw = raw
53
- @sync_token = sync_token
54
- @updated_after = updated_after
55
36
  end
56
37
  end
57
38
  end
@@ -17,41 +17,22 @@ module StackOne
17
17
  field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
18
18
  # The account identifier
19
19
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
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 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
22
  # 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(::StackOne::Operations::AtsGetCandidateNoteQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
23
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
32
24
  # Indicates that the raw request result is returned
33
25
  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
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
26
 
41
27
 
42
- sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(::StackOne::Operations::AtsGetCandidateNoteQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
43
- def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
28
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
29
+ def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
44
30
  @id = id
45
31
  @sub_resource_id = sub_resource_id
46
32
  @x_account_id = x_account_id
47
33
  @fields_ = fields_
48
- @next_ = next_
49
- @page = page
50
- @page_size = page_size
51
34
  @proxy = proxy
52
35
  @raw = raw
53
- @sync_token = sync_token
54
- @updated_after = updated_after
55
36
  end
56
37
  end
57
38
  end
@@ -15,40 +15,21 @@ module StackOne
15
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
16
  # The account identifier
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
19
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', '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
20
  # 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(::StackOne::Operations::AtsGetCandidateQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
21
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
30
22
  # Indicates that the raw request result is returned
31
23
  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
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
38
24
 
39
25
 
40
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(::StackOne::Operations::AtsGetCandidateQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
41
- def initialize(id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
26
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
27
+ def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
42
28
  @id = id
43
29
  @x_account_id = x_account_id
44
30
  @fields_ = fields_
45
- @next_ = next_
46
- @page = page
47
- @page_size = page_size
48
31
  @proxy = proxy
49
32
  @raw = raw
50
- @sync_token = sync_token
51
- @updated_after = updated_after
52
33
  end
53
34
  end
54
35
  end
@@ -15,40 +15,21 @@ module StackOne
15
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
16
  # The account identifier
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
19
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', '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
20
  # 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(::StackOne::Operations::AtsGetDepartmentQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
21
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
30
22
  # Indicates that the raw request result is returned
31
23
  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
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
38
24
 
39
25
 
40
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(::StackOne::Operations::AtsGetDepartmentQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
41
- def initialize(id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
26
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
27
+ def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
42
28
  @id = id
43
29
  @x_account_id = x_account_id
44
30
  @fields_ = fields_
45
- @next_ = next_
46
- @page = page
47
- @page_size = page_size
48
31
  @proxy = proxy
49
32
  @raw = raw
50
- @sync_token = sync_token
51
- @updated_after = updated_after
52
33
  end
53
34
  end
54
35
  end