stackone_client 0.21.0 → 0.25.0
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.
- checksums.yaml +4 -4
- data/lib/stack_one/accounts.rb +1 -1
- data/lib/stack_one/ats.rb +128 -675
- data/lib/stack_one/connect_sessions.rb +1 -1
- data/lib/stack_one/connectors.rb +1 -1
- data/lib/stack_one/hris.rb +812 -265
- data/lib/stack_one/lms.rb +291 -1441
- data/lib/stack_one/models/operations/ats_list_application_changes_queryparam_filter.rb +37 -0
- data/lib/stack_one/models/operations/{ats_get_background_check_request_request.rb → ats_list_application_changes_request.rb} +16 -4
- data/lib/stack_one/models/operations/{ats_get_background_check_request_response.rb → ats_list_application_changes_response.rb} +7 -7
- data/lib/stack_one/models/operations/change_type.rb +22 -0
- data/lib/stack_one/models/operations/{ats_get_assessments_request_request.rb → hris_get_position_request.rb} +3 -3
- data/lib/stack_one/models/operations/{lms_create_collection_response.rb → hris_get_position_response.rb} +7 -7
- data/lib/stack_one/models/operations/{ats_list_background_check_request_queryparam_filter.rb → hris_list_positions_queryparam_filter.rb} +1 -1
- data/lib/stack_one/models/operations/{ats_list_background_check_request_request.rb → hris_list_positions_request.rb} +10 -6
- data/lib/stack_one/models/operations/{lms_upsert_course_response.rb → hris_list_positions_response.rb} +7 -7
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_status.rb +21 -0
- data/lib/stack_one/models/operations/queryparam_status.rb +5 -4
- data/lib/stack_one/models/operations.rb +10 -15
- data/lib/stack_one/models/shared/active.rb +1 -1
- data/lib/stack_one/models/shared/{assessmentorder_package.rb → actor.rb} +4 -12
- data/lib/stack_one/models/shared/applicationchanges.rb +57 -0
- data/lib/stack_one/models/shared/{assessmentorder_4.rb → applicationchanges_4.rb} +1 -1
- data/lib/stack_one/models/shared/applicationchanges_source_value.rb +28 -0
- data/lib/stack_one/models/shared/applicationchanges_value.rb +22 -0
- data/lib/stack_one/models/shared/applicationchangesdatamodel.rb +41 -0
- data/lib/stack_one/models/shared/{backgroundcheckorder_4.rb → applicationchangesdatamodel_4.rb} +1 -1
- data/lib/stack_one/models/shared/{assessmentorder_application_status.rb → applicationchangesdatamodel_application_status.rb} +4 -4
- data/lib/stack_one/models/shared/{backgroundcheckorder_source_value.rb → applicationchangesdatamodel_source_value.rb} +1 -1
- data/lib/stack_one/models/shared/{assessmentorder_value.rb → applicationchangesdatamodel_value.rb} +2 -2
- data/lib/stack_one/models/shared/{backgroundcheckorderresult.rb → applicationchangespaginated.rb} +8 -4
- data/lib/stack_one/models/shared/atscreatebackgroundcheckorderrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/categories.rb +1 -0
- data/lib/stack_one/models/shared/category.rb +2 -2
- data/lib/stack_one/models/shared/category_2.rb +20 -0
- data/lib/stack_one/models/shared/change_type.rb +37 -0
- data/lib/stack_one/models/shared/completion.rb +6 -2
- data/lib/stack_one/models/shared/connectorsmeta_category.rb +1 -0
- data/lib/stack_one/models/shared/connectsession.rb +6 -2
- data/lib/stack_one/models/shared/connectsession_type.rb +21 -0
- data/lib/stack_one/models/shared/connectsessioncreate.rb +6 -2
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
- data/lib/stack_one/models/shared/connectsessioncreate_type.rb +20 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink.rb +6 -2
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +1 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_type.rb +21 -0
- data/lib/stack_one/models/shared/course.rb +2 -2
- data/lib/stack_one/models/shared/course_2.rb +20 -0
- data/lib/stack_one/models/shared/course_active.rb +28 -0
- data/lib/stack_one/models/shared/customfielddefinition.rb +2 -2
- data/lib/stack_one/models/shared/customfielddefinition_type.rb +2 -2
- data/lib/stack_one/models/shared/customfieldoption.rb +37 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/linkedaccount.rb +6 -2
- data/lib/stack_one/models/shared/linkedaccount_type.rb +21 -0
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_2.rb +20 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_active.rb +28 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_2.rb +20 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_active.rb +28 -0
- data/lib/stack_one/models/shared/lmsuser.rb +2 -2
- data/lib/stack_one/models/shared/lmsuser_2.rb +20 -0
- data/lib/stack_one/models/shared/{customfielddefinition_schemas_4.rb → lmsuser_active.rb} +2 -2
- data/lib/stack_one/models/shared/patchaccountexternaldto.rb +6 -2
- data/lib/stack_one/models/shared/patchaccountexternaldto_type.rb +20 -0
- data/lib/stack_one/models/shared/position.rb +69 -0
- data/lib/stack_one/models/shared/{options.rb → position_4.rb} +1 -1
- data/lib/stack_one/models/shared/position_source_value.rb +28 -0
- data/lib/stack_one/models/shared/{backgroundcheckorder_application_status.rb → position_status.rb} +7 -7
- data/lib/stack_one/models/shared/position_value.rb +22 -0
- data/lib/stack_one/models/shared/{assessmentorderresult.rb → positionresult.rb} +3 -3
- data/lib/stack_one/models/shared/{backgroundcheckorderpaginated.rb → positionspaginated.rb} +3 -3
- data/lib/stack_one/models/shared/reference_active.rb +28 -0
- data/lib/stack_one/models/shared/skills.rb +2 -2
- data/lib/stack_one/models/shared/skills_2.rb +20 -0
- data/lib/stack_one/models/shared/{assessmentorder_source_value.rb → skills_active.rb} +2 -2
- data/lib/stack_one/models/shared/timeoff.rb +6 -2
- data/lib/stack_one/models/shared.rb +37 -29
- data/lib/stack_one/proxy.rb +1 -1
- data/lib/stack_one/request_logs.rb +1 -1
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +49 -46
- data/lib/stack_one/models/operations/ats_get_assessments_request_response.rb +0 -49
- data/lib/stack_one/models/operations/ats_list_background_check_request_response.rb +0 -49
- data/lib/stack_one/models/operations/lms_batch_upsert_course_request.rb +0 -37
- data/lib/stack_one/models/operations/lms_batch_upsert_course_response.rb +0 -49
- data/lib/stack_one/models/operations/lms_create_collection_request.rb +0 -37
- data/lib/stack_one/models/operations/lms_update_collection_request.rb +0 -41
- data/lib/stack_one/models/operations/lms_update_collection_response.rb +0 -49
- data/lib/stack_one/models/operations/lms_upsert_course_request.rb +0 -37
- data/lib/stack_one/models/shared/assessmentorder.rb +0 -61
- data/lib/stack_one/models/shared/assessmentorder_application.rb +0 -45
- data/lib/stack_one/models/shared/assessmentorder_candidate.rb +0 -57
- data/lib/stack_one/models/shared/assessmentorder_job.rb +0 -49
- data/lib/stack_one/models/shared/atscreatebackgroundcheckorderrequestdto_requester.rb +0 -53
- data/lib/stack_one/models/shared/backgroundcheckorder.rb +0 -61
- data/lib/stack_one/models/shared/backgroundcheckorder_application.rb +0 -45
- data/lib/stack_one/models/shared/backgroundcheckorder_candidate.rb +0 -57
- data/lib/stack_one/models/shared/backgroundcheckorder_job.rb +0 -49
- data/lib/stack_one/models/shared/backgroundcheckorder_package.rb +0 -49
- data/lib/stack_one/models/shared/backgroundcheckorder_requester.rb +0 -53
- data/lib/stack_one/models/shared/backgroundcheckorder_value.rb +0 -38
- data/lib/stack_one/models/shared/createcontentapimodel.rb +0 -53
- data/lib/stack_one/models/shared/lmsbatchupsertcourserequestdto.rb +0 -33
- data/lib/stack_one/models/shared/lmscreatecollectionrequestdto.rb +0 -69
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +0 -81
data/lib/stack_one/ats.rb
CHANGED
@@ -4798,571 +4798,19 @@ module StackOne
|
|
4798
4798
|
end
|
4799
4799
|
|
4800
4800
|
|
4801
|
-
sig { params(request: T.nilable(Models::Operations::
|
4802
|
-
def
|
4803
|
-
#
|
4804
|
-
url, params = @sdk_configuration.get_server_details
|
4805
|
-
base_url = Utils.template_url(url, params)
|
4806
|
-
url = Utils.generate_url(
|
4807
|
-
Models::Operations::AtsGetAssessmentsRequestRequest,
|
4808
|
-
base_url,
|
4809
|
-
'/unified/ats/assessments/orders/{id}',
|
4810
|
-
request
|
4811
|
-
)
|
4812
|
-
headers = Utils.get_headers(request)
|
4813
|
-
query_params = Utils.get_query_params(Models::Operations::AtsGetAssessmentsRequestRequest, request)
|
4814
|
-
headers['Accept'] = 'application/json'
|
4815
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
4816
|
-
retries ||= @sdk_configuration.retry_config
|
4817
|
-
retries ||= Utils::RetryConfig.new(
|
4818
|
-
backoff: Utils::BackoffStrategy.new(
|
4819
|
-
exponent: 1.5,
|
4820
|
-
initial_interval: 500,
|
4821
|
-
max_elapsed_time: 3_600_000,
|
4822
|
-
max_interval: 60_000
|
4823
|
-
),
|
4824
|
-
retry_connection_errors: true,
|
4825
|
-
strategy: 'backoff'
|
4826
|
-
)
|
4827
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
4828
|
-
retry_options[:retry_statuses] = [429, 408]
|
4829
|
-
|
4830
|
-
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
4831
|
-
|
4832
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
4833
|
-
timeout ||= @sdk_configuration.timeout
|
4834
|
-
|
4835
|
-
connection = @sdk_configuration.client.dup
|
4836
|
-
connection.request :retry, retry_options
|
4837
|
-
|
4838
|
-
hook_ctx = SDKHooks::HookContext.new(
|
4839
|
-
base_url: base_url,
|
4840
|
-
oauth2_scopes: [],
|
4841
|
-
operation_id: 'ats_get_assessments_request',
|
4842
|
-
security_source: @sdk_configuration.security_source
|
4843
|
-
)
|
4844
|
-
|
4845
|
-
error = T.let(nil, T.nilable(StandardError))
|
4846
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
4847
|
-
|
4848
|
-
|
4849
|
-
begin
|
4850
|
-
http_response = connection.get(url) do |req|
|
4851
|
-
req.headers.merge!(headers)
|
4852
|
-
req.options.timeout = timeout unless timeout.nil?
|
4853
|
-
req.params = query_params
|
4854
|
-
Utils.configure_request_security(req, security)
|
4855
|
-
|
4856
|
-
@sdk_configuration.hooks.before_request(
|
4857
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
4858
|
-
hook_ctx: hook_ctx
|
4859
|
-
),
|
4860
|
-
request: req
|
4861
|
-
)
|
4862
|
-
end
|
4863
|
-
rescue StandardError => e
|
4864
|
-
error = e
|
4865
|
-
ensure
|
4866
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
4867
|
-
http_response = @sdk_configuration.hooks.after_error(
|
4868
|
-
error: error,
|
4869
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
4870
|
-
hook_ctx: hook_ctx
|
4871
|
-
),
|
4872
|
-
response: http_response
|
4873
|
-
)
|
4874
|
-
else
|
4875
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4876
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4877
|
-
hook_ctx: hook_ctx
|
4878
|
-
),
|
4879
|
-
response: http_response
|
4880
|
-
)
|
4881
|
-
end
|
4882
|
-
|
4883
|
-
if http_response.nil?
|
4884
|
-
raise error if !error.nil?
|
4885
|
-
raise 'no response'
|
4886
|
-
end
|
4887
|
-
end
|
4888
|
-
|
4889
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
4890
|
-
if Utils.match_status_code(http_response.status, ['200'])
|
4891
|
-
if Utils.match_content_type(content_type, 'application/json')
|
4892
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4893
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4894
|
-
hook_ctx: hook_ctx
|
4895
|
-
),
|
4896
|
-
response: http_response
|
4897
|
-
)
|
4898
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AssessmentOrderResult)
|
4899
|
-
response = Models::Operations::AtsGetAssessmentsRequestResponse.new(
|
4900
|
-
status_code: http_response.status,
|
4901
|
-
content_type: content_type,
|
4902
|
-
raw_response: http_response,
|
4903
|
-
assessment_order_result: obj
|
4904
|
-
)
|
4905
|
-
|
4906
|
-
return response
|
4907
|
-
else
|
4908
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
4909
|
-
end
|
4910
|
-
elsif Utils.match_status_code(http_response.status, ['400'])
|
4911
|
-
if Utils.match_content_type(content_type, 'application/json')
|
4912
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4913
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4914
|
-
hook_ctx: hook_ctx
|
4915
|
-
),
|
4916
|
-
response: http_response
|
4917
|
-
)
|
4918
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
4919
|
-
throw obj
|
4920
|
-
else
|
4921
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
4922
|
-
end
|
4923
|
-
elsif Utils.match_status_code(http_response.status, ['401'])
|
4924
|
-
if Utils.match_content_type(content_type, 'application/json')
|
4925
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4926
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4927
|
-
hook_ctx: hook_ctx
|
4928
|
-
),
|
4929
|
-
response: http_response
|
4930
|
-
)
|
4931
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
4932
|
-
throw obj
|
4933
|
-
else
|
4934
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
4935
|
-
end
|
4936
|
-
elsif Utils.match_status_code(http_response.status, ['403'])
|
4937
|
-
if Utils.match_content_type(content_type, 'application/json')
|
4938
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4939
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4940
|
-
hook_ctx: hook_ctx
|
4941
|
-
),
|
4942
|
-
response: http_response
|
4943
|
-
)
|
4944
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
4945
|
-
throw obj
|
4946
|
-
else
|
4947
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
4948
|
-
end
|
4949
|
-
elsif Utils.match_status_code(http_response.status, ['404'])
|
4950
|
-
if Utils.match_content_type(content_type, 'application/json')
|
4951
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4952
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4953
|
-
hook_ctx: hook_ctx
|
4954
|
-
),
|
4955
|
-
response: http_response
|
4956
|
-
)
|
4957
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
4958
|
-
throw obj
|
4959
|
-
else
|
4960
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
4961
|
-
end
|
4962
|
-
elsif Utils.match_status_code(http_response.status, ['408'])
|
4963
|
-
if Utils.match_content_type(content_type, 'application/json')
|
4964
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4965
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4966
|
-
hook_ctx: hook_ctx
|
4967
|
-
),
|
4968
|
-
response: http_response
|
4969
|
-
)
|
4970
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
4971
|
-
throw obj
|
4972
|
-
else
|
4973
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
4974
|
-
end
|
4975
|
-
elsif Utils.match_status_code(http_response.status, ['409'])
|
4976
|
-
if Utils.match_content_type(content_type, 'application/json')
|
4977
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4978
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4979
|
-
hook_ctx: hook_ctx
|
4980
|
-
),
|
4981
|
-
response: http_response
|
4982
|
-
)
|
4983
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
4984
|
-
throw obj
|
4985
|
-
else
|
4986
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
4987
|
-
end
|
4988
|
-
elsif Utils.match_status_code(http_response.status, ['412'])
|
4989
|
-
if Utils.match_content_type(content_type, 'application/json')
|
4990
|
-
http_response = @sdk_configuration.hooks.after_success(
|
4991
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
4992
|
-
hook_ctx: hook_ctx
|
4993
|
-
),
|
4994
|
-
response: http_response
|
4995
|
-
)
|
4996
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
4997
|
-
throw obj
|
4998
|
-
else
|
4999
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5000
|
-
end
|
5001
|
-
elsif Utils.match_status_code(http_response.status, ['422'])
|
5002
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5003
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5004
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5005
|
-
hook_ctx: hook_ctx
|
5006
|
-
),
|
5007
|
-
response: http_response
|
5008
|
-
)
|
5009
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
5010
|
-
throw obj
|
5011
|
-
else
|
5012
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5013
|
-
end
|
5014
|
-
elsif Utils.match_status_code(http_response.status, ['429'])
|
5015
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5016
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5017
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5018
|
-
hook_ctx: hook_ctx
|
5019
|
-
),
|
5020
|
-
response: http_response
|
5021
|
-
)
|
5022
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
5023
|
-
throw obj
|
5024
|
-
else
|
5025
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5026
|
-
end
|
5027
|
-
elsif Utils.match_status_code(http_response.status, ['500'])
|
5028
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5029
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5030
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5031
|
-
hook_ctx: hook_ctx
|
5032
|
-
),
|
5033
|
-
response: http_response
|
5034
|
-
)
|
5035
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
5036
|
-
throw obj
|
5037
|
-
else
|
5038
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5039
|
-
end
|
5040
|
-
elsif Utils.match_status_code(http_response.status, ['501'])
|
5041
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5042
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5043
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5044
|
-
hook_ctx: hook_ctx
|
5045
|
-
),
|
5046
|
-
response: http_response
|
5047
|
-
)
|
5048
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
5049
|
-
throw obj
|
5050
|
-
else
|
5051
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5052
|
-
end
|
5053
|
-
elsif Utils.match_status_code(http_response.status, ['502'])
|
5054
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5055
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5056
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5057
|
-
hook_ctx: hook_ctx
|
5058
|
-
),
|
5059
|
-
response: http_response
|
5060
|
-
)
|
5061
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
5062
|
-
throw obj
|
5063
|
-
else
|
5064
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5065
|
-
end
|
5066
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
5067
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
5068
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
5069
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
5070
|
-
else
|
5071
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
5072
|
-
|
5073
|
-
end
|
5074
|
-
end
|
5075
|
-
|
5076
|
-
|
5077
|
-
sig { params(request: T.nilable(Models::Operations::AtsGetAssessmentsResultRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetAssessmentsResultResponse) }
|
5078
|
-
def get_assessments_result(request, retries = nil, timeout_ms = nil)
|
5079
|
-
# get_assessments_result - Get Assessments Results
|
5080
|
-
url, params = @sdk_configuration.get_server_details
|
5081
|
-
base_url = Utils.template_url(url, params)
|
5082
|
-
url = Utils.generate_url(
|
5083
|
-
Models::Operations::AtsGetAssessmentsResultRequest,
|
5084
|
-
base_url,
|
5085
|
-
'/unified/ats/assessments/orders/{id}/results',
|
5086
|
-
request
|
5087
|
-
)
|
5088
|
-
headers = Utils.get_headers(request)
|
5089
|
-
query_params = Utils.get_query_params(Models::Operations::AtsGetAssessmentsResultRequest, request)
|
5090
|
-
headers['Accept'] = 'application/json'
|
5091
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
5092
|
-
retries ||= @sdk_configuration.retry_config
|
5093
|
-
retries ||= Utils::RetryConfig.new(
|
5094
|
-
backoff: Utils::BackoffStrategy.new(
|
5095
|
-
exponent: 1.5,
|
5096
|
-
initial_interval: 500,
|
5097
|
-
max_elapsed_time: 3_600_000,
|
5098
|
-
max_interval: 60_000
|
5099
|
-
),
|
5100
|
-
retry_connection_errors: true,
|
5101
|
-
strategy: 'backoff'
|
5102
|
-
)
|
5103
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
5104
|
-
retry_options[:retry_statuses] = [429, 408]
|
5105
|
-
|
5106
|
-
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
5107
|
-
|
5108
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
5109
|
-
timeout ||= @sdk_configuration.timeout
|
5110
|
-
|
5111
|
-
connection = @sdk_configuration.client.dup
|
5112
|
-
connection.request :retry, retry_options
|
5113
|
-
|
5114
|
-
hook_ctx = SDKHooks::HookContext.new(
|
5115
|
-
base_url: base_url,
|
5116
|
-
oauth2_scopes: [],
|
5117
|
-
operation_id: 'ats_get_assessments_result',
|
5118
|
-
security_source: @sdk_configuration.security_source
|
5119
|
-
)
|
5120
|
-
|
5121
|
-
error = T.let(nil, T.nilable(StandardError))
|
5122
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
5123
|
-
|
5124
|
-
|
5125
|
-
begin
|
5126
|
-
http_response = connection.get(url) do |req|
|
5127
|
-
req.headers.merge!(headers)
|
5128
|
-
req.options.timeout = timeout unless timeout.nil?
|
5129
|
-
req.params = query_params
|
5130
|
-
Utils.configure_request_security(req, security)
|
5131
|
-
|
5132
|
-
@sdk_configuration.hooks.before_request(
|
5133
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
5134
|
-
hook_ctx: hook_ctx
|
5135
|
-
),
|
5136
|
-
request: req
|
5137
|
-
)
|
5138
|
-
end
|
5139
|
-
rescue StandardError => e
|
5140
|
-
error = e
|
5141
|
-
ensure
|
5142
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
5143
|
-
http_response = @sdk_configuration.hooks.after_error(
|
5144
|
-
error: error,
|
5145
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
5146
|
-
hook_ctx: hook_ctx
|
5147
|
-
),
|
5148
|
-
response: http_response
|
5149
|
-
)
|
5150
|
-
else
|
5151
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5152
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5153
|
-
hook_ctx: hook_ctx
|
5154
|
-
),
|
5155
|
-
response: http_response
|
5156
|
-
)
|
5157
|
-
end
|
5158
|
-
|
5159
|
-
if http_response.nil?
|
5160
|
-
raise error if !error.nil?
|
5161
|
-
raise 'no response'
|
5162
|
-
end
|
5163
|
-
end
|
5164
|
-
|
5165
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
5166
|
-
if Utils.match_status_code(http_response.status, ['200'])
|
5167
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5168
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5169
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5170
|
-
hook_ctx: hook_ctx
|
5171
|
-
),
|
5172
|
-
response: http_response
|
5173
|
-
)
|
5174
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AssessmentResultsResult)
|
5175
|
-
response = Models::Operations::AtsGetAssessmentsResultResponse.new(
|
5176
|
-
status_code: http_response.status,
|
5177
|
-
content_type: content_type,
|
5178
|
-
raw_response: http_response,
|
5179
|
-
assessment_results_result: obj
|
5180
|
-
)
|
5181
|
-
|
5182
|
-
return response
|
5183
|
-
else
|
5184
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5185
|
-
end
|
5186
|
-
elsif Utils.match_status_code(http_response.status, ['400'])
|
5187
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5188
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5189
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5190
|
-
hook_ctx: hook_ctx
|
5191
|
-
),
|
5192
|
-
response: http_response
|
5193
|
-
)
|
5194
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
5195
|
-
throw obj
|
5196
|
-
else
|
5197
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5198
|
-
end
|
5199
|
-
elsif Utils.match_status_code(http_response.status, ['401'])
|
5200
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5201
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5202
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5203
|
-
hook_ctx: hook_ctx
|
5204
|
-
),
|
5205
|
-
response: http_response
|
5206
|
-
)
|
5207
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
5208
|
-
throw obj
|
5209
|
-
else
|
5210
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5211
|
-
end
|
5212
|
-
elsif Utils.match_status_code(http_response.status, ['403'])
|
5213
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5214
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5215
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5216
|
-
hook_ctx: hook_ctx
|
5217
|
-
),
|
5218
|
-
response: http_response
|
5219
|
-
)
|
5220
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
5221
|
-
throw obj
|
5222
|
-
else
|
5223
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5224
|
-
end
|
5225
|
-
elsif Utils.match_status_code(http_response.status, ['404'])
|
5226
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5227
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5228
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5229
|
-
hook_ctx: hook_ctx
|
5230
|
-
),
|
5231
|
-
response: http_response
|
5232
|
-
)
|
5233
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
5234
|
-
throw obj
|
5235
|
-
else
|
5236
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5237
|
-
end
|
5238
|
-
elsif Utils.match_status_code(http_response.status, ['408'])
|
5239
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5240
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5241
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5242
|
-
hook_ctx: hook_ctx
|
5243
|
-
),
|
5244
|
-
response: http_response
|
5245
|
-
)
|
5246
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
5247
|
-
throw obj
|
5248
|
-
else
|
5249
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5250
|
-
end
|
5251
|
-
elsif Utils.match_status_code(http_response.status, ['409'])
|
5252
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5253
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5254
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5255
|
-
hook_ctx: hook_ctx
|
5256
|
-
),
|
5257
|
-
response: http_response
|
5258
|
-
)
|
5259
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
5260
|
-
throw obj
|
5261
|
-
else
|
5262
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5263
|
-
end
|
5264
|
-
elsif Utils.match_status_code(http_response.status, ['412'])
|
5265
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5266
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5267
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5268
|
-
hook_ctx: hook_ctx
|
5269
|
-
),
|
5270
|
-
response: http_response
|
5271
|
-
)
|
5272
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
5273
|
-
throw obj
|
5274
|
-
else
|
5275
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5276
|
-
end
|
5277
|
-
elsif Utils.match_status_code(http_response.status, ['422'])
|
5278
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5279
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5280
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5281
|
-
hook_ctx: hook_ctx
|
5282
|
-
),
|
5283
|
-
response: http_response
|
5284
|
-
)
|
5285
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
5286
|
-
throw obj
|
5287
|
-
else
|
5288
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5289
|
-
end
|
5290
|
-
elsif Utils.match_status_code(http_response.status, ['429'])
|
5291
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5292
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5293
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5294
|
-
hook_ctx: hook_ctx
|
5295
|
-
),
|
5296
|
-
response: http_response
|
5297
|
-
)
|
5298
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
5299
|
-
throw obj
|
5300
|
-
else
|
5301
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5302
|
-
end
|
5303
|
-
elsif Utils.match_status_code(http_response.status, ['500'])
|
5304
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5305
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5306
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5307
|
-
hook_ctx: hook_ctx
|
5308
|
-
),
|
5309
|
-
response: http_response
|
5310
|
-
)
|
5311
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
5312
|
-
throw obj
|
5313
|
-
else
|
5314
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5315
|
-
end
|
5316
|
-
elsif Utils.match_status_code(http_response.status, ['501'])
|
5317
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5318
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5319
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5320
|
-
hook_ctx: hook_ctx
|
5321
|
-
),
|
5322
|
-
response: http_response
|
5323
|
-
)
|
5324
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
5325
|
-
throw obj
|
5326
|
-
else
|
5327
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5328
|
-
end
|
5329
|
-
elsif Utils.match_status_code(http_response.status, ['502'])
|
5330
|
-
if Utils.match_content_type(content_type, 'application/json')
|
5331
|
-
http_response = @sdk_configuration.hooks.after_success(
|
5332
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
5333
|
-
hook_ctx: hook_ctx
|
5334
|
-
),
|
5335
|
-
response: http_response
|
5336
|
-
)
|
5337
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
5338
|
-
throw obj
|
5339
|
-
else
|
5340
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
5341
|
-
end
|
5342
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
5343
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
5344
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
5345
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
5346
|
-
else
|
5347
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
5348
|
-
|
5349
|
-
end
|
5350
|
-
end
|
5351
|
-
|
5352
|
-
|
5353
|
-
sig { params(request: T.nilable(Models::Operations::AtsGetBackgroundCheckPackageRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetBackgroundCheckPackageResponse) }
|
5354
|
-
def get_background_check_package(request, retries = nil, timeout_ms = nil)
|
5355
|
-
# get_background_check_package - Get Background Check Package
|
4801
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetAssessmentsResultRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetAssessmentsResultResponse) }
|
4802
|
+
def get_assessments_result(request, retries = nil, timeout_ms = nil)
|
4803
|
+
# get_assessments_result - Get Assessments Results
|
5356
4804
|
url, params = @sdk_configuration.get_server_details
|
5357
4805
|
base_url = Utils.template_url(url, params)
|
5358
4806
|
url = Utils.generate_url(
|
5359
|
-
Models::Operations::
|
4807
|
+
Models::Operations::AtsGetAssessmentsResultRequest,
|
5360
4808
|
base_url,
|
5361
|
-
'/unified/ats/
|
4809
|
+
'/unified/ats/assessments/orders/{id}/results',
|
5362
4810
|
request
|
5363
4811
|
)
|
5364
4812
|
headers = Utils.get_headers(request)
|
5365
|
-
query_params = Utils.get_query_params(Models::Operations::
|
4813
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetAssessmentsResultRequest, request)
|
5366
4814
|
headers['Accept'] = 'application/json'
|
5367
4815
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5368
4816
|
retries ||= @sdk_configuration.retry_config
|
@@ -5390,7 +4838,7 @@ module StackOne
|
|
5390
4838
|
hook_ctx = SDKHooks::HookContext.new(
|
5391
4839
|
base_url: base_url,
|
5392
4840
|
oauth2_scopes: [],
|
5393
|
-
operation_id: '
|
4841
|
+
operation_id: 'ats_get_assessments_result',
|
5394
4842
|
security_source: @sdk_configuration.security_source
|
5395
4843
|
)
|
5396
4844
|
|
@@ -5447,12 +4895,12 @@ module StackOne
|
|
5447
4895
|
),
|
5448
4896
|
response: http_response
|
5449
4897
|
)
|
5450
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
5451
|
-
response = Models::Operations::
|
4898
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AssessmentResultsResult)
|
4899
|
+
response = Models::Operations::AtsGetAssessmentsResultResponse.new(
|
5452
4900
|
status_code: http_response.status,
|
5453
4901
|
content_type: content_type,
|
5454
4902
|
raw_response: http_response,
|
5455
|
-
|
4903
|
+
assessment_results_result: obj
|
5456
4904
|
)
|
5457
4905
|
|
5458
4906
|
return response
|
@@ -5626,19 +5074,19 @@ module StackOne
|
|
5626
5074
|
end
|
5627
5075
|
|
5628
5076
|
|
5629
|
-
sig { params(request: T.nilable(Models::Operations::
|
5630
|
-
def
|
5631
|
-
#
|
5077
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetBackgroundCheckPackageRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetBackgroundCheckPackageResponse) }
|
5078
|
+
def get_background_check_package(request, retries = nil, timeout_ms = nil)
|
5079
|
+
# get_background_check_package - Get Background Check Package
|
5632
5080
|
url, params = @sdk_configuration.get_server_details
|
5633
5081
|
base_url = Utils.template_url(url, params)
|
5634
5082
|
url = Utils.generate_url(
|
5635
|
-
Models::Operations::
|
5083
|
+
Models::Operations::AtsGetBackgroundCheckPackageRequest,
|
5636
5084
|
base_url,
|
5637
|
-
'/unified/ats/background_checks/
|
5085
|
+
'/unified/ats/background_checks/packages/{id}',
|
5638
5086
|
request
|
5639
5087
|
)
|
5640
5088
|
headers = Utils.get_headers(request)
|
5641
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5089
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetBackgroundCheckPackageRequest, request)
|
5642
5090
|
headers['Accept'] = 'application/json'
|
5643
5091
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5644
5092
|
retries ||= @sdk_configuration.retry_config
|
@@ -5666,7 +5114,7 @@ module StackOne
|
|
5666
5114
|
hook_ctx = SDKHooks::HookContext.new(
|
5667
5115
|
base_url: base_url,
|
5668
5116
|
oauth2_scopes: [],
|
5669
|
-
operation_id: '
|
5117
|
+
operation_id: 'ats_get_background_check_package',
|
5670
5118
|
security_source: @sdk_configuration.security_source
|
5671
5119
|
)
|
5672
5120
|
|
@@ -5723,12 +5171,12 @@ module StackOne
|
|
5723
5171
|
),
|
5724
5172
|
response: http_response
|
5725
5173
|
)
|
5726
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
5727
|
-
response = Models::Operations::
|
5174
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::BackgroundCheckPackageResult)
|
5175
|
+
response = Models::Operations::AtsGetBackgroundCheckPackageResponse.new(
|
5728
5176
|
status_code: http_response.status,
|
5729
5177
|
content_type: content_type,
|
5730
5178
|
raw_response: http_response,
|
5731
|
-
|
5179
|
+
background_check_package_result: obj
|
5732
5180
|
)
|
5733
5181
|
|
5734
5182
|
return response
|
@@ -10042,14 +9490,19 @@ module StackOne
|
|
10042
9490
|
end
|
10043
9491
|
|
10044
9492
|
|
10045
|
-
sig { params(request: T.nilable(Models::Operations::
|
10046
|
-
def
|
10047
|
-
#
|
9493
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationChangesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationChangesResponse) }
|
9494
|
+
def list_application_changes(request, retries = nil, timeout_ms = nil)
|
9495
|
+
# list_application_changes - List Application Changes
|
10048
9496
|
url, params = @sdk_configuration.get_server_details
|
10049
9497
|
base_url = Utils.template_url(url, params)
|
10050
|
-
url =
|
9498
|
+
url = Utils.generate_url(
|
9499
|
+
Models::Operations::AtsListApplicationChangesRequest,
|
9500
|
+
base_url,
|
9501
|
+
'/unified/ats/applications/{id}/changes',
|
9502
|
+
request
|
9503
|
+
)
|
10051
9504
|
headers = Utils.get_headers(request)
|
10052
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9505
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationChangesRequest, request)
|
10053
9506
|
headers['Accept'] = 'application/json'
|
10054
9507
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10055
9508
|
retries ||= @sdk_configuration.retry_config
|
@@ -10077,7 +9530,7 @@ module StackOne
|
|
10077
9530
|
hook_ctx = SDKHooks::HookContext.new(
|
10078
9531
|
base_url: base_url,
|
10079
9532
|
oauth2_scopes: [],
|
10080
|
-
operation_id: '
|
9533
|
+
operation_id: 'ats_list_application_changes',
|
10081
9534
|
security_source: @sdk_configuration.security_source
|
10082
9535
|
)
|
10083
9536
|
|
@@ -10134,12 +9587,12 @@ module StackOne
|
|
10134
9587
|
),
|
10135
9588
|
response: http_response
|
10136
9589
|
)
|
10137
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10138
|
-
response = Models::Operations::
|
9590
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ApplicationChangesPaginated)
|
9591
|
+
response = Models::Operations::AtsListApplicationChangesResponse.new(
|
10139
9592
|
status_code: http_response.status,
|
10140
9593
|
content_type: content_type,
|
10141
9594
|
raw_response: http_response,
|
10142
|
-
|
9595
|
+
application_changes_paginated: obj
|
10143
9596
|
)
|
10144
9597
|
|
10145
9598
|
return response
|
@@ -10313,19 +9766,14 @@ module StackOne
|
|
10313
9766
|
end
|
10314
9767
|
|
10315
9768
|
|
10316
|
-
sig { params(request: T.nilable(Models::Operations::
|
10317
|
-
def
|
10318
|
-
#
|
9769
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse) }
|
9770
|
+
def list_application_custom_field_definitions(request, retries = nil, timeout_ms = nil)
|
9771
|
+
# list_application_custom_field_definitions - List Application Custom Field Definitions
|
10319
9772
|
url, params = @sdk_configuration.get_server_details
|
10320
9773
|
base_url = Utils.template_url(url, params)
|
10321
|
-
url =
|
10322
|
-
Models::Operations::AtsListApplicationDocumentsRequest,
|
10323
|
-
base_url,
|
10324
|
-
'/unified/ats/applications/{id}/documents',
|
10325
|
-
request
|
10326
|
-
)
|
9774
|
+
url = "#{base_url}/unified/ats/custom_field_definitions/applications"
|
10327
9775
|
headers = Utils.get_headers(request)
|
10328
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9776
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest, request)
|
10329
9777
|
headers['Accept'] = 'application/json'
|
10330
9778
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10331
9779
|
retries ||= @sdk_configuration.retry_config
|
@@ -10353,7 +9801,7 @@ module StackOne
|
|
10353
9801
|
hook_ctx = SDKHooks::HookContext.new(
|
10354
9802
|
base_url: base_url,
|
10355
9803
|
oauth2_scopes: [],
|
10356
|
-
operation_id: '
|
9804
|
+
operation_id: 'ats_list_application_custom_field_definitions',
|
10357
9805
|
security_source: @sdk_configuration.security_source
|
10358
9806
|
)
|
10359
9807
|
|
@@ -10410,12 +9858,12 @@ module StackOne
|
|
10410
9858
|
),
|
10411
9859
|
response: http_response
|
10412
9860
|
)
|
10413
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10414
|
-
response = Models::Operations::
|
9861
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CustomFieldDefinitionsPaginated)
|
9862
|
+
response = Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse.new(
|
10415
9863
|
status_code: http_response.status,
|
10416
9864
|
content_type: content_type,
|
10417
9865
|
raw_response: http_response,
|
10418
|
-
|
9866
|
+
custom_field_definitions_paginated: obj
|
10419
9867
|
)
|
10420
9868
|
|
10421
9869
|
return response
|
@@ -10589,19 +10037,19 @@ module StackOne
|
|
10589
10037
|
end
|
10590
10038
|
|
10591
10039
|
|
10592
|
-
sig { params(request: T.nilable(Models::Operations::
|
10593
|
-
def
|
10594
|
-
#
|
10040
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationDocumentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationDocumentsResponse) }
|
10041
|
+
def list_application_documents(request, retries = nil, timeout_ms = nil)
|
10042
|
+
# list_application_documents - List Application Documents
|
10595
10043
|
url, params = @sdk_configuration.get_server_details
|
10596
10044
|
base_url = Utils.template_url(url, params)
|
10597
10045
|
url = Utils.generate_url(
|
10598
|
-
Models::Operations::
|
10046
|
+
Models::Operations::AtsListApplicationDocumentsRequest,
|
10599
10047
|
base_url,
|
10600
|
-
'/unified/ats/applications/{id}/
|
10048
|
+
'/unified/ats/applications/{id}/documents',
|
10601
10049
|
request
|
10602
10050
|
)
|
10603
10051
|
headers = Utils.get_headers(request)
|
10604
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10052
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationDocumentsRequest, request)
|
10605
10053
|
headers['Accept'] = 'application/json'
|
10606
10054
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10607
10055
|
retries ||= @sdk_configuration.retry_config
|
@@ -10629,7 +10077,7 @@ module StackOne
|
|
10629
10077
|
hook_ctx = SDKHooks::HookContext.new(
|
10630
10078
|
base_url: base_url,
|
10631
10079
|
oauth2_scopes: [],
|
10632
|
-
operation_id: '
|
10080
|
+
operation_id: 'ats_list_application_documents',
|
10633
10081
|
security_source: @sdk_configuration.security_source
|
10634
10082
|
)
|
10635
10083
|
|
@@ -10686,12 +10134,12 @@ module StackOne
|
|
10686
10134
|
),
|
10687
10135
|
response: http_response
|
10688
10136
|
)
|
10689
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10690
|
-
response = Models::Operations::
|
10137
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AtsDocumentsPaginated)
|
10138
|
+
response = Models::Operations::AtsListApplicationDocumentsResponse.new(
|
10691
10139
|
status_code: http_response.status,
|
10692
10140
|
content_type: content_type,
|
10693
10141
|
raw_response: http_response,
|
10694
|
-
|
10142
|
+
ats_documents_paginated: obj
|
10695
10143
|
)
|
10696
10144
|
|
10697
10145
|
return response
|
@@ -10865,19 +10313,19 @@ module StackOne
|
|
10865
10313
|
end
|
10866
10314
|
|
10867
10315
|
|
10868
|
-
sig { params(request: T.nilable(Models::Operations::
|
10869
|
-
def
|
10870
|
-
#
|
10316
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationNotesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationNotesResponse) }
|
10317
|
+
def list_application_notes(request, retries = nil, timeout_ms = nil)
|
10318
|
+
# list_application_notes - List Application Notes
|
10871
10319
|
url, params = @sdk_configuration.get_server_details
|
10872
10320
|
base_url = Utils.template_url(url, params)
|
10873
10321
|
url = Utils.generate_url(
|
10874
|
-
Models::Operations::
|
10322
|
+
Models::Operations::AtsListApplicationNotesRequest,
|
10875
10323
|
base_url,
|
10876
|
-
'/unified/ats/applications/{id}/
|
10324
|
+
'/unified/ats/applications/{id}/notes',
|
10877
10325
|
request
|
10878
10326
|
)
|
10879
10327
|
headers = Utils.get_headers(request)
|
10880
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10328
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationNotesRequest, request)
|
10881
10329
|
headers['Accept'] = 'application/json'
|
10882
10330
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10883
10331
|
retries ||= @sdk_configuration.retry_config
|
@@ -10905,7 +10353,7 @@ module StackOne
|
|
10905
10353
|
hook_ctx = SDKHooks::HookContext.new(
|
10906
10354
|
base_url: base_url,
|
10907
10355
|
oauth2_scopes: [],
|
10908
|
-
operation_id: '
|
10356
|
+
operation_id: 'ats_list_application_notes',
|
10909
10357
|
security_source: @sdk_configuration.security_source
|
10910
10358
|
)
|
10911
10359
|
|
@@ -10962,12 +10410,12 @@ module StackOne
|
|
10962
10410
|
),
|
10963
10411
|
response: http_response
|
10964
10412
|
)
|
10965
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10966
|
-
response = Models::Operations::
|
10413
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::NotesPaginated)
|
10414
|
+
response = Models::Operations::AtsListApplicationNotesResponse.new(
|
10967
10415
|
status_code: http_response.status,
|
10968
10416
|
content_type: content_type,
|
10969
10417
|
raw_response: http_response,
|
10970
|
-
|
10418
|
+
notes_paginated: obj
|
10971
10419
|
)
|
10972
10420
|
|
10973
10421
|
return response
|
@@ -11141,14 +10589,19 @@ module StackOne
|
|
11141
10589
|
end
|
11142
10590
|
|
11143
10591
|
|
11144
|
-
sig { params(request: T.nilable(Models::Operations::
|
11145
|
-
def
|
11146
|
-
#
|
10592
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationScorecardsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationScorecardsResponse) }
|
10593
|
+
def list_application_scorecards(request, retries = nil, timeout_ms = nil)
|
10594
|
+
# list_application_scorecards - List Application Scorecards
|
11147
10595
|
url, params = @sdk_configuration.get_server_details
|
11148
10596
|
base_url = Utils.template_url(url, params)
|
11149
|
-
url =
|
10597
|
+
url = Utils.generate_url(
|
10598
|
+
Models::Operations::AtsListApplicationScorecardsRequest,
|
10599
|
+
base_url,
|
10600
|
+
'/unified/ats/applications/{id}/scorecards',
|
10601
|
+
request
|
10602
|
+
)
|
11150
10603
|
headers = Utils.get_headers(request)
|
11151
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10604
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationScorecardsRequest, request)
|
11152
10605
|
headers['Accept'] = 'application/json'
|
11153
10606
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11154
10607
|
retries ||= @sdk_configuration.retry_config
|
@@ -11176,7 +10629,7 @@ module StackOne
|
|
11176
10629
|
hook_ctx = SDKHooks::HookContext.new(
|
11177
10630
|
base_url: base_url,
|
11178
10631
|
oauth2_scopes: [],
|
11179
|
-
operation_id: '
|
10632
|
+
operation_id: 'ats_list_application_scorecards',
|
11180
10633
|
security_source: @sdk_configuration.security_source
|
11181
10634
|
)
|
11182
10635
|
|
@@ -11233,12 +10686,12 @@ module StackOne
|
|
11233
10686
|
),
|
11234
10687
|
response: http_response
|
11235
10688
|
)
|
11236
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11237
|
-
response = Models::Operations::
|
10689
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ScorecardsPaginated)
|
10690
|
+
response = Models::Operations::AtsListApplicationScorecardsResponse.new(
|
11238
10691
|
status_code: http_response.status,
|
11239
10692
|
content_type: content_type,
|
11240
10693
|
raw_response: http_response,
|
11241
|
-
|
10694
|
+
scorecards_paginated: obj
|
11242
10695
|
)
|
11243
10696
|
|
11244
10697
|
return response
|
@@ -11412,19 +10865,14 @@ module StackOne
|
|
11412
10865
|
end
|
11413
10866
|
|
11414
10867
|
|
11415
|
-
sig { params(request: T.nilable(Models::Operations::
|
11416
|
-
def
|
11417
|
-
#
|
10868
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationsResponse) }
|
10869
|
+
def list_applications(request, retries = nil, timeout_ms = nil)
|
10870
|
+
# list_applications - List Applications
|
11418
10871
|
url, params = @sdk_configuration.get_server_details
|
11419
10872
|
base_url = Utils.template_url(url, params)
|
11420
|
-
url =
|
11421
|
-
Models::Operations::AtsListApplicationsOffersRequest,
|
11422
|
-
base_url,
|
11423
|
-
'/unified/ats/applications/{id}/offers',
|
11424
|
-
request
|
11425
|
-
)
|
10873
|
+
url = "#{base_url}/unified/ats/applications"
|
11426
10874
|
headers = Utils.get_headers(request)
|
11427
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10875
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationsRequest, request)
|
11428
10876
|
headers['Accept'] = 'application/json'
|
11429
10877
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11430
10878
|
retries ||= @sdk_configuration.retry_config
|
@@ -11452,7 +10900,7 @@ module StackOne
|
|
11452
10900
|
hook_ctx = SDKHooks::HookContext.new(
|
11453
10901
|
base_url: base_url,
|
11454
10902
|
oauth2_scopes: [],
|
11455
|
-
operation_id: '
|
10903
|
+
operation_id: 'ats_list_applications',
|
11456
10904
|
security_source: @sdk_configuration.security_source
|
11457
10905
|
)
|
11458
10906
|
|
@@ -11509,12 +10957,12 @@ module StackOne
|
|
11509
10957
|
),
|
11510
10958
|
response: http_response
|
11511
10959
|
)
|
11512
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11513
|
-
response = Models::Operations::
|
10960
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ApplicationsPaginated)
|
10961
|
+
response = Models::Operations::AtsListApplicationsResponse.new(
|
11514
10962
|
status_code: http_response.status,
|
11515
10963
|
content_type: content_type,
|
11516
10964
|
raw_response: http_response,
|
11517
|
-
|
10965
|
+
applications_paginated: obj
|
11518
10966
|
)
|
11519
10967
|
|
11520
10968
|
return response
|
@@ -11688,19 +11136,19 @@ module StackOne
|
|
11688
11136
|
end
|
11689
11137
|
|
11690
11138
|
|
11691
|
-
sig { params(request: T.nilable(Models::Operations::
|
11692
|
-
def
|
11693
|
-
#
|
11139
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationsOffersRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationsOffersResponse) }
|
11140
|
+
def list_applications_offers(request, retries = nil, timeout_ms = nil)
|
11141
|
+
# list_applications_offers - List Application Offers
|
11694
11142
|
url, params = @sdk_configuration.get_server_details
|
11695
11143
|
base_url = Utils.template_url(url, params)
|
11696
11144
|
url = Utils.generate_url(
|
11697
|
-
Models::Operations::
|
11145
|
+
Models::Operations::AtsListApplicationsOffersRequest,
|
11698
11146
|
base_url,
|
11699
|
-
'/unified/ats/applications/{id}/
|
11147
|
+
'/unified/ats/applications/{id}/offers',
|
11700
11148
|
request
|
11701
11149
|
)
|
11702
11150
|
headers = Utils.get_headers(request)
|
11703
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11151
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationsOffersRequest, request)
|
11704
11152
|
headers['Accept'] = 'application/json'
|
11705
11153
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11706
11154
|
retries ||= @sdk_configuration.retry_config
|
@@ -11728,7 +11176,7 @@ module StackOne
|
|
11728
11176
|
hook_ctx = SDKHooks::HookContext.new(
|
11729
11177
|
base_url: base_url,
|
11730
11178
|
oauth2_scopes: [],
|
11731
|
-
operation_id: '
|
11179
|
+
operation_id: 'ats_list_applications_offers',
|
11732
11180
|
security_source: @sdk_configuration.security_source
|
11733
11181
|
)
|
11734
11182
|
|
@@ -11785,12 +11233,12 @@ module StackOne
|
|
11785
11233
|
),
|
11786
11234
|
response: http_response
|
11787
11235
|
)
|
11788
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11789
|
-
response = Models::Operations::
|
11236
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::OffersPaginated)
|
11237
|
+
response = Models::Operations::AtsListApplicationsOffersResponse.new(
|
11790
11238
|
status_code: http_response.status,
|
11791
11239
|
content_type: content_type,
|
11792
11240
|
raw_response: http_response,
|
11793
|
-
|
11241
|
+
offers_paginated: obj
|
11794
11242
|
)
|
11795
11243
|
|
11796
11244
|
return response
|
@@ -11964,14 +11412,19 @@ module StackOne
|
|
11964
11412
|
end
|
11965
11413
|
|
11966
11414
|
|
11967
|
-
sig { params(request: T.nilable(Models::Operations::
|
11968
|
-
def
|
11969
|
-
#
|
11415
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationsScheduledInterviewsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationsScheduledInterviewsResponse) }
|
11416
|
+
def list_applications_scheduled_interviews(request, retries = nil, timeout_ms = nil)
|
11417
|
+
# list_applications_scheduled_interviews - List Applications scheduled interviews
|
11970
11418
|
url, params = @sdk_configuration.get_server_details
|
11971
11419
|
base_url = Utils.template_url(url, params)
|
11972
|
-
url =
|
11420
|
+
url = Utils.generate_url(
|
11421
|
+
Models::Operations::AtsListApplicationsScheduledInterviewsRequest,
|
11422
|
+
base_url,
|
11423
|
+
'/unified/ats/applications/{id}/scheduled_interviews',
|
11424
|
+
request
|
11425
|
+
)
|
11973
11426
|
headers = Utils.get_headers(request)
|
11974
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11427
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationsScheduledInterviewsRequest, request)
|
11975
11428
|
headers['Accept'] = 'application/json'
|
11976
11429
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11977
11430
|
retries ||= @sdk_configuration.retry_config
|
@@ -11999,7 +11452,7 @@ module StackOne
|
|
11999
11452
|
hook_ctx = SDKHooks::HookContext.new(
|
12000
11453
|
base_url: base_url,
|
12001
11454
|
oauth2_scopes: [],
|
12002
|
-
operation_id: '
|
11455
|
+
operation_id: 'ats_list_applications_scheduled_interviews',
|
12003
11456
|
security_source: @sdk_configuration.security_source
|
12004
11457
|
)
|
12005
11458
|
|
@@ -12056,12 +11509,12 @@ module StackOne
|
|
12056
11509
|
),
|
12057
11510
|
response: http_response
|
12058
11511
|
)
|
12059
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
12060
|
-
response = Models::Operations::
|
11512
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ScheduledInterviewsPaginated)
|
11513
|
+
response = Models::Operations::AtsListApplicationsScheduledInterviewsResponse.new(
|
12061
11514
|
status_code: http_response.status,
|
12062
11515
|
content_type: content_type,
|
12063
11516
|
raw_response: http_response,
|
12064
|
-
|
11517
|
+
scheduled_interviews_paginated: obj
|
12065
11518
|
)
|
12066
11519
|
|
12067
11520
|
return response
|
@@ -12235,14 +11688,14 @@ module StackOne
|
|
12235
11688
|
end
|
12236
11689
|
|
12237
11690
|
|
12238
|
-
sig { params(request: T.nilable(Models::Operations::
|
12239
|
-
def
|
12240
|
-
#
|
11691
|
+
sig { params(request: T.nilable(Models::Operations::AtsListAssessmentsPackagesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListAssessmentsPackagesResponse) }
|
11692
|
+
def list_assessments_packages(request, retries = nil, timeout_ms = nil)
|
11693
|
+
# list_assessments_packages - List Assessments Packages
|
12241
11694
|
url, params = @sdk_configuration.get_server_details
|
12242
11695
|
base_url = Utils.template_url(url, params)
|
12243
|
-
url = "#{base_url}/unified/ats/
|
11696
|
+
url = "#{base_url}/unified/ats/assessments/packages"
|
12244
11697
|
headers = Utils.get_headers(request)
|
12245
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11698
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListAssessmentsPackagesRequest, request)
|
12246
11699
|
headers['Accept'] = 'application/json'
|
12247
11700
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12248
11701
|
retries ||= @sdk_configuration.retry_config
|
@@ -12270,7 +11723,7 @@ module StackOne
|
|
12270
11723
|
hook_ctx = SDKHooks::HookContext.new(
|
12271
11724
|
base_url: base_url,
|
12272
11725
|
oauth2_scopes: [],
|
12273
|
-
operation_id: '
|
11726
|
+
operation_id: 'ats_list_assessments_packages',
|
12274
11727
|
security_source: @sdk_configuration.security_source
|
12275
11728
|
)
|
12276
11729
|
|
@@ -12327,12 +11780,12 @@ module StackOne
|
|
12327
11780
|
),
|
12328
11781
|
response: http_response
|
12329
11782
|
)
|
12330
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
12331
|
-
response = Models::Operations::
|
11783
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AssessmentPackagePaginated)
|
11784
|
+
response = Models::Operations::AtsListAssessmentsPackagesResponse.new(
|
12332
11785
|
status_code: http_response.status,
|
12333
11786
|
content_type: content_type,
|
12334
11787
|
raw_response: http_response,
|
12335
|
-
|
11788
|
+
assessment_package_paginated: obj
|
12336
11789
|
)
|
12337
11790
|
|
12338
11791
|
return response
|
@@ -12506,14 +11959,14 @@ module StackOne
|
|
12506
11959
|
end
|
12507
11960
|
|
12508
11961
|
|
12509
|
-
sig { params(request: T.nilable(Models::Operations::
|
12510
|
-
def
|
12511
|
-
#
|
11962
|
+
sig { params(request: T.nilable(Models::Operations::AtsListBackgroundCheckPackagesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListBackgroundCheckPackagesResponse) }
|
11963
|
+
def list_background_check_packages(request, retries = nil, timeout_ms = nil)
|
11964
|
+
# list_background_check_packages - List Background Check Packages
|
12512
11965
|
url, params = @sdk_configuration.get_server_details
|
12513
11966
|
base_url = Utils.template_url(url, params)
|
12514
|
-
url = "#{base_url}/unified/ats/background_checks/
|
11967
|
+
url = "#{base_url}/unified/ats/background_checks/packages"
|
12515
11968
|
headers = Utils.get_headers(request)
|
12516
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11969
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListBackgroundCheckPackagesRequest, request)
|
12517
11970
|
headers['Accept'] = 'application/json'
|
12518
11971
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12519
11972
|
retries ||= @sdk_configuration.retry_config
|
@@ -12541,7 +11994,7 @@ module StackOne
|
|
12541
11994
|
hook_ctx = SDKHooks::HookContext.new(
|
12542
11995
|
base_url: base_url,
|
12543
11996
|
oauth2_scopes: [],
|
12544
|
-
operation_id: '
|
11997
|
+
operation_id: 'ats_list_background_check_packages',
|
12545
11998
|
security_source: @sdk_configuration.security_source
|
12546
11999
|
)
|
12547
12000
|
|
@@ -12598,12 +12051,12 @@ module StackOne
|
|
12598
12051
|
),
|
12599
12052
|
response: http_response
|
12600
12053
|
)
|
12601
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
12602
|
-
response = Models::Operations::
|
12054
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::BackgroundCheckPackagePaginated)
|
12055
|
+
response = Models::Operations::AtsListBackgroundCheckPackagesResponse.new(
|
12603
12056
|
status_code: http_response.status,
|
12604
12057
|
content_type: content_type,
|
12605
12058
|
raw_response: http_response,
|
12606
|
-
|
12059
|
+
background_check_package_paginated: obj
|
12607
12060
|
)
|
12608
12061
|
|
12609
12062
|
return response
|