stackone_client 0.36.0 → 0.37.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/actions.rb +627 -0
- data/lib/stack_one/ats.rb +1541 -333
- data/lib/stack_one/documents.rb +1 -1
- data/lib/stack_one/hris.rb +61 -59
- data/lib/stack_one/mcp.rb +852 -0
- data/lib/stack_one/messaging.rb +1 -1
- data/lib/stack_one/models/operations/ats_download_application_document_response.rb +13 -5
- data/lib/stack_one/models/operations/ats_download_application_document_response.rbi +6 -2
- data/lib/stack_one/models/operations/ats_get_application_stage_request.rb +49 -0
- data/lib/stack_one/models/operations/ats_get_application_stage_request.rbi +21 -0
- data/lib/stack_one/models/operations/ats_get_application_stage_response.rb +49 -0
- data/lib/stack_one/models/operations/ats_get_application_stage_response.rbi +21 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_queryparam_filter.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_queryparam_filter.rbi +13 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_request.rb +75 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_request.rbi +31 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_response.rb +61 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_response.rbi +21 -0
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb +1 -1
- data/lib/stack_one/models/operations/documents_download_file_response.rb +6 -6
- data/lib/stack_one/models/operations/documents_download_file_response.rbi +2 -2
- data/lib/stack_one/models/operations/filter.rb +11 -71
- data/lib/stack_one/models/operations/filter.rbi +4 -34
- data/lib/stack_one/models/operations/hris_download_employee_document_response.rb +12 -152
- data/lib/stack_one/models/operations/hris_download_employee_document_response.rbi +6 -76
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rb +6 -6
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rbi +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rb +6 -6
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rbi +2 -2
- data/lib/stack_one/models/operations/include.rb +2 -3
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_status.rb +1 -0
- data/lib/stack_one/models/operations/lms_list_user_assignments_queryparam_status.rb +1 -0
- data/lib/stack_one/models/operations/messaging_download_messaging_attachment_response.rb +6 -6
- data/lib/stack_one/models/operations/messaging_download_messaging_attachment_response.rbi +2 -2
- data/lib/stack_one/models/operations/queryparam_filter.rb +20 -8
- data/lib/stack_one/models/operations/queryparam_filter.rbi +8 -2
- data/lib/stack_one/models/operations/queryparam_include.rb +1 -0
- data/lib/stack_one/models/operations/stackone_get_log_request.rb +2 -2
- data/lib/stack_one/models/operations/stackone_list_actions_meta_request.rb +55 -0
- data/lib/stack_one/models/operations/stackone_list_actions_meta_request.rbi +23 -0
- data/lib/stack_one/models/operations/stackone_list_actions_meta_response.rb +61 -0
- data/lib/stack_one/models/operations/stackone_list_actions_meta_response.rbi +21 -0
- data/lib/stack_one/models/operations/stackone_list_logs_queryparam_include.rb +21 -0
- data/lib/stack_one/models/operations/stackone_list_logs_queryparam_include.rbi +11 -0
- data/lib/stack_one/models/operations/stackone_list_logs_request.rb +3 -3
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rb +89 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rbi +41 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_request.rb +2 -2
- data/lib/stack_one/models/operations/stackone_mcp_delete_request.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_response.rb +45 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_response.rbi +19 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_security.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_security.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_request.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_request.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_response.rb +45 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_response.rbi +19 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_security.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_security.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_request.rb +41 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_request.rbi +17 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_response.rb +45 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_response.rbi +19 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_security.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_security.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_rpc_action_response.rb +49 -0
- data/lib/stack_one/models/operations/stackone_rpc_action_response.rbi +21 -0
- data/lib/stack_one/models/operations/ticketing_download_ticketing_attachment_response.rb +6 -6
- data/lib/stack_one/models/operations/ticketing_download_ticketing_attachment_response.rbi +2 -2
- data/lib/stack_one/models/operations.rb +19 -0
- data/lib/stack_one/models/shared/actionmetaitem.rb +53 -0
- data/lib/stack_one/models/shared/actionmetaitem.rbi +23 -0
- data/lib/stack_one/models/shared/actionsmeta.rb +57 -0
- data/lib/stack_one/models/shared/actionsmeta.rbi +25 -0
- data/lib/stack_one/models/shared/actionsmetapaginated.rb +37 -0
- data/lib/stack_one/models/shared/actionsmetapaginated.rbi +15 -0
- data/lib/stack_one/models/shared/actionsrpcrequestdto.rb +37 -0
- data/lib/stack_one/models/shared/actionsrpcrequestdto.rbi +15 -0
- data/lib/stack_one/models/shared/actionsrpcresponse.rb +37 -0
- data/lib/stack_one/models/shared/actionsrpcresponse.rbi +15 -0
- data/lib/stack_one/models/shared/actionsrpcresponse_2.rb +28 -0
- data/lib/stack_one/models/shared/actionsrpcresponse_2.rbi +11 -0
- data/lib/stack_one/models/shared/actionsrpcresponse_data.rb +28 -0
- data/lib/stack_one/models/shared/actionsrpcresponse_data.rbi +11 -0
- data/lib/stack_one/models/shared/atsdocumentapimodel.rb +2 -6
- data/lib/stack_one/models/shared/atsdocumentapimodel.rbi +0 -2
- data/lib/stack_one/models/shared/authenticationmetaitem.rb +41 -0
- data/lib/stack_one/models/shared/authenticationmetaitem.rbi +17 -0
- data/lib/stack_one/models/shared/contract_type.rb +2 -2
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +10 -2
- data/lib/stack_one/models/shared/createemploymentapimodel.rbi +4 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_4.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_value.rb +37 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_type.rb +45 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_type.rbi +19 -0
- data/lib/stack_one/models/shared/customfieldoption.rb +2 -2
- data/lib/stack_one/models/shared/customfieldoption_4.rb +28 -0
- data/lib/stack_one/models/shared/customfieldoption_4.rbi +11 -0
- data/lib/stack_one/models/shared/customfieldoption_value.rb +28 -0
- data/lib/stack_one/models/shared/customfieldoption_value.rbi +11 -0
- data/lib/stack_one/models/shared/customfields.rb +2 -2
- data/lib/stack_one/models/shared/document.rb +2 -6
- data/lib/stack_one/models/shared/document.rbi +0 -2
- data/lib/stack_one/models/shared/downloadapimodel.rb +37 -0
- data/lib/stack_one/models/shared/downloadapimodel.rbi +15 -0
- data/lib/stack_one/models/shared/downloadheadersapimodel.rb +53 -0
- data/lib/stack_one/models/shared/downloadheadersapimodel.rbi +23 -0
- data/lib/stack_one/models/shared/employment.rb +2 -2
- data/lib/stack_one/models/shared/employment_schemas_contract_type.rb +20 -12
- data/lib/stack_one/models/shared/employment_schemas_contract_type.rbi +8 -4
- data/lib/stack_one/models/shared/employment_schemas_contract_type_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/employment_schemas_contract_type_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/file.rb +2 -6
- data/lib/stack_one/models/shared/file.rbi +0 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_contract_type.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_contract_type.rbi +19 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +10 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rbi +4 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_national_identity_number.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_value.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_type.rb +20 -12
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_type.rbi +8 -4
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +10 -2
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rbi +4 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_contract_type.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_contract_type.rbi +19 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_value.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_type.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_type.rbi +19 -0
- data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +2 -6
- data/lib/stack_one/models/shared/hrisdocumentapimodel.rbi +0 -2
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_contract_type.rb +45 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_contract_type.rbi +19 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +10 -2
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rbi +4 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_national_identity_number.rb +2 -2
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_value.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_type.rb +20 -12
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_type.rbi +8 -4
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto.rb +10 -2
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto.rbi +4 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_contract_type.rb +45 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_contract_type.rbi +19 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_value.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_type.rb +45 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_type.rbi +19 -0
- data/lib/stack_one/models/shared/iamuser_avatar.rb +2 -6
- data/lib/stack_one/models/shared/iamuser_avatar.rbi +0 -2
- data/lib/stack_one/models/shared/id.rb +28 -0
- data/lib/stack_one/models/shared/id.rbi +11 -0
- data/lib/stack_one/models/shared/input.rb +41 -0
- data/lib/stack_one/models/shared/input.rbi +17 -0
- data/lib/stack_one/models/shared/jobpostingcompensation.rb +12 -12
- data/lib/stack_one/models/shared/jobpostingcompensation.rbi +6 -6
- data/lib/stack_one/models/shared/jsonrpcmessagedto.rb +45 -0
- data/lib/stack_one/models/shared/jsonrpcmessagedto.rbi +19 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_value.rb +5 -0
- data/lib/stack_one/models/shared/one.rb +28 -0
- data/lib/stack_one/models/shared/one.rbi +11 -0
- data/lib/stack_one/models/shared/params.rb +28 -0
- data/lib/stack_one/models/shared/params.rbi +11 -0
- data/lib/stack_one/models/shared/proxyrequestbody.rb +1 -1
- data/lib/stack_one/models/shared/schemebasic.rb +37 -0
- data/lib/stack_one/models/shared/schemebasic.rbi +15 -0
- data/lib/stack_one/models/shared/security.rb +4 -4
- data/lib/stack_one/models/shared/timeoff.rb +10 -10
- data/lib/stack_one/models/shared/timeoff.rbi +4 -4
- data/lib/stack_one/models/shared/workeligibility_document.rb +2 -6
- data/lib/stack_one/models/shared/workeligibility_document.rbi +0 -2
- data/lib/stack_one/models/shared.rb +68 -0
- data/lib/stack_one/request_logs.rb +1 -1
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/stackone.rb +3 -1
- data/lib/stack_one/ticketing.rb +1 -1
- data/lib/stackone_client.rb +2 -0
- metadata +178 -2
data/lib/stack_one/ats.rb
CHANGED
@@ -2475,7 +2475,7 @@ module StackOne
|
|
2475
2475
|
headers = Utils.get_headers(request)
|
2476
2476
|
headers = T.cast(headers, T::Hash[String, String])
|
2477
2477
|
query_params = Utils.get_query_params(Models::Operations::AtsDownloadApplicationDocumentRequest, request, nil)
|
2478
|
-
headers['Accept'] = 'application/octet-stream'
|
2478
|
+
headers['Accept'] = 'application/json;q=1, text/csv;q=0.97, text/plain;q=0.95, application/gzip;q=0.92, application/msword;q=0.89, application/octet-stream;q=0.87, application/pdf;q=0.84, application/rtf;q=0.82, application/vnd.ms-excel;q=0.79, application/vnd.ms-outlook;q=0.76, application/vnd.ms-powerpoint;q=0.74, application/vnd.oasis.opendocument.presentation;q=0.71, application/vnd.oasis.opendocument.spreadsheet;q=0.68, application/vnd.oasis.opendocument.text;q=0.66, application/vnd.openxmlformats-officedocument.presentationml.presentation;q=0.63, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;q=0.61, application/vnd.openxmlformats-officedocument.wordprocessingml.document;q=0.58, application/x-7z-compressed;q=0.55, application/x-rar-compressed;q=0.53, application/xml;q=0.50, application/zip;q=0.47, audio/mp4;q=0.45, audio/mpeg;q=0.42, audio/wav;q=0.39, image/bmp;q=0.37, image/gif;q=0.34, image/heic;q=0.32, image/jpeg;q=0.29, image/png;q=0.26, image/tiff;q=0.24, image/webp;q=0.21, message/rfc822;q=0.18, text/html;q=0.16, text/rtf;q=0.13, video/avi;q=0.11, video/mp4;q=0.08, video/quicktime;q=0.05, video/webm;q=0'
|
2479
2479
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2480
2480
|
retries ||= @sdk_configuration.retry_config
|
2481
2481
|
retries ||= Utils::RetryConfig.new(
|
@@ -2554,7 +2554,7 @@ module StackOne
|
|
2554
2554
|
|
2555
2555
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
2556
2556
|
if Utils.match_status_code(http_response.status, ['200'])
|
2557
|
-
if Utils.match_content_type(content_type, 'application/
|
2557
|
+
if Utils.match_content_type(content_type, 'application/gzip')
|
2558
2558
|
http_response = @sdk_configuration.hooks.after_success(
|
2559
2559
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2560
2560
|
hook_ctx: hook_ctx
|
@@ -2568,8 +2568,1188 @@ module StackOne
|
|
2568
2568
|
content_type: content_type,
|
2569
2569
|
raw_response: http_response,
|
2570
2570
|
headers: {},
|
2571
|
-
|
2571
|
+
body: T.unsafe(obj)
|
2572
2572
|
)
|
2573
|
+
elsif Utils.match_content_type(content_type, 'application/msword')
|
2574
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2575
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2576
|
+
hook_ctx: hook_ctx
|
2577
|
+
),
|
2578
|
+
response: http_response
|
2579
|
+
)
|
2580
|
+
obj = http_response.env.body
|
2581
|
+
|
2582
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2583
|
+
status_code: http_response.status,
|
2584
|
+
content_type: content_type,
|
2585
|
+
raw_response: http_response,
|
2586
|
+
headers: {},
|
2587
|
+
body: T.unsafe(obj)
|
2588
|
+
)
|
2589
|
+
elsif Utils.match_content_type(content_type, 'application/octet-stream')
|
2590
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2591
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2592
|
+
hook_ctx: hook_ctx
|
2593
|
+
),
|
2594
|
+
response: http_response
|
2595
|
+
)
|
2596
|
+
obj = http_response.env.body
|
2597
|
+
|
2598
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2599
|
+
status_code: http_response.status,
|
2600
|
+
content_type: content_type,
|
2601
|
+
raw_response: http_response,
|
2602
|
+
headers: {},
|
2603
|
+
body: T.unsafe(obj)
|
2604
|
+
)
|
2605
|
+
elsif Utils.match_content_type(content_type, 'application/pdf')
|
2606
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2607
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2608
|
+
hook_ctx: hook_ctx
|
2609
|
+
),
|
2610
|
+
response: http_response
|
2611
|
+
)
|
2612
|
+
obj = http_response.env.body
|
2613
|
+
|
2614
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2615
|
+
status_code: http_response.status,
|
2616
|
+
content_type: content_type,
|
2617
|
+
raw_response: http_response,
|
2618
|
+
headers: {},
|
2619
|
+
body: T.unsafe(obj)
|
2620
|
+
)
|
2621
|
+
elsif Utils.match_content_type(content_type, 'application/rtf')
|
2622
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2623
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2624
|
+
hook_ctx: hook_ctx
|
2625
|
+
),
|
2626
|
+
response: http_response
|
2627
|
+
)
|
2628
|
+
obj = http_response.env.body
|
2629
|
+
|
2630
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2631
|
+
status_code: http_response.status,
|
2632
|
+
content_type: content_type,
|
2633
|
+
raw_response: http_response,
|
2634
|
+
headers: {},
|
2635
|
+
body: T.unsafe(obj)
|
2636
|
+
)
|
2637
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.ms-excel')
|
2638
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2639
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2640
|
+
hook_ctx: hook_ctx
|
2641
|
+
),
|
2642
|
+
response: http_response
|
2643
|
+
)
|
2644
|
+
obj = http_response.env.body
|
2645
|
+
|
2646
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2647
|
+
status_code: http_response.status,
|
2648
|
+
content_type: content_type,
|
2649
|
+
raw_response: http_response,
|
2650
|
+
headers: {},
|
2651
|
+
body: T.unsafe(obj)
|
2652
|
+
)
|
2653
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.ms-outlook')
|
2654
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2655
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2656
|
+
hook_ctx: hook_ctx
|
2657
|
+
),
|
2658
|
+
response: http_response
|
2659
|
+
)
|
2660
|
+
obj = http_response.env.body
|
2661
|
+
|
2662
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2663
|
+
status_code: http_response.status,
|
2664
|
+
content_type: content_type,
|
2665
|
+
raw_response: http_response,
|
2666
|
+
headers: {},
|
2667
|
+
body: T.unsafe(obj)
|
2668
|
+
)
|
2669
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.ms-powerpoint')
|
2670
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2671
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2672
|
+
hook_ctx: hook_ctx
|
2673
|
+
),
|
2674
|
+
response: http_response
|
2675
|
+
)
|
2676
|
+
obj = http_response.env.body
|
2677
|
+
|
2678
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2679
|
+
status_code: http_response.status,
|
2680
|
+
content_type: content_type,
|
2681
|
+
raw_response: http_response,
|
2682
|
+
headers: {},
|
2683
|
+
body: T.unsafe(obj)
|
2684
|
+
)
|
2685
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.oasis.opendocument.presentation')
|
2686
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2687
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2688
|
+
hook_ctx: hook_ctx
|
2689
|
+
),
|
2690
|
+
response: http_response
|
2691
|
+
)
|
2692
|
+
obj = http_response.env.body
|
2693
|
+
|
2694
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2695
|
+
status_code: http_response.status,
|
2696
|
+
content_type: content_type,
|
2697
|
+
raw_response: http_response,
|
2698
|
+
headers: {},
|
2699
|
+
body: T.unsafe(obj)
|
2700
|
+
)
|
2701
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.oasis.opendocument.spreadsheet')
|
2702
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2703
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2704
|
+
hook_ctx: hook_ctx
|
2705
|
+
),
|
2706
|
+
response: http_response
|
2707
|
+
)
|
2708
|
+
obj = http_response.env.body
|
2709
|
+
|
2710
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2711
|
+
status_code: http_response.status,
|
2712
|
+
content_type: content_type,
|
2713
|
+
raw_response: http_response,
|
2714
|
+
headers: {},
|
2715
|
+
body: T.unsafe(obj)
|
2716
|
+
)
|
2717
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.oasis.opendocument.text')
|
2718
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2719
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2720
|
+
hook_ctx: hook_ctx
|
2721
|
+
),
|
2722
|
+
response: http_response
|
2723
|
+
)
|
2724
|
+
obj = http_response.env.body
|
2725
|
+
|
2726
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2727
|
+
status_code: http_response.status,
|
2728
|
+
content_type: content_type,
|
2729
|
+
raw_response: http_response,
|
2730
|
+
headers: {},
|
2731
|
+
body: T.unsafe(obj)
|
2732
|
+
)
|
2733
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.openxmlformats-officedocument.presentationml.presentation')
|
2734
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2735
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2736
|
+
hook_ctx: hook_ctx
|
2737
|
+
),
|
2738
|
+
response: http_response
|
2739
|
+
)
|
2740
|
+
obj = http_response.env.body
|
2741
|
+
|
2742
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2743
|
+
status_code: http_response.status,
|
2744
|
+
content_type: content_type,
|
2745
|
+
raw_response: http_response,
|
2746
|
+
headers: {},
|
2747
|
+
body: T.unsafe(obj)
|
2748
|
+
)
|
2749
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
|
2750
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2751
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2752
|
+
hook_ctx: hook_ctx
|
2753
|
+
),
|
2754
|
+
response: http_response
|
2755
|
+
)
|
2756
|
+
obj = http_response.env.body
|
2757
|
+
|
2758
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2759
|
+
status_code: http_response.status,
|
2760
|
+
content_type: content_type,
|
2761
|
+
raw_response: http_response,
|
2762
|
+
headers: {},
|
2763
|
+
body: T.unsafe(obj)
|
2764
|
+
)
|
2765
|
+
elsif Utils.match_content_type(content_type, 'application/vnd.openxmlformats-officedocument.wordprocessingml.document')
|
2766
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2767
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2768
|
+
hook_ctx: hook_ctx
|
2769
|
+
),
|
2770
|
+
response: http_response
|
2771
|
+
)
|
2772
|
+
obj = http_response.env.body
|
2773
|
+
|
2774
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2775
|
+
status_code: http_response.status,
|
2776
|
+
content_type: content_type,
|
2777
|
+
raw_response: http_response,
|
2778
|
+
headers: {},
|
2779
|
+
body: T.unsafe(obj)
|
2780
|
+
)
|
2781
|
+
elsif Utils.match_content_type(content_type, 'application/x-7z-compressed')
|
2782
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2783
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2784
|
+
hook_ctx: hook_ctx
|
2785
|
+
),
|
2786
|
+
response: http_response
|
2787
|
+
)
|
2788
|
+
obj = http_response.env.body
|
2789
|
+
|
2790
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2791
|
+
status_code: http_response.status,
|
2792
|
+
content_type: content_type,
|
2793
|
+
raw_response: http_response,
|
2794
|
+
headers: {},
|
2795
|
+
body: T.unsafe(obj)
|
2796
|
+
)
|
2797
|
+
elsif Utils.match_content_type(content_type, 'application/x-rar-compressed')
|
2798
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2799
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2800
|
+
hook_ctx: hook_ctx
|
2801
|
+
),
|
2802
|
+
response: http_response
|
2803
|
+
)
|
2804
|
+
obj = http_response.env.body
|
2805
|
+
|
2806
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2807
|
+
status_code: http_response.status,
|
2808
|
+
content_type: content_type,
|
2809
|
+
raw_response: http_response,
|
2810
|
+
headers: {},
|
2811
|
+
body: T.unsafe(obj)
|
2812
|
+
)
|
2813
|
+
elsif Utils.match_content_type(content_type, 'application/xml')
|
2814
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2815
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2816
|
+
hook_ctx: hook_ctx
|
2817
|
+
),
|
2818
|
+
response: http_response
|
2819
|
+
)
|
2820
|
+
obj = http_response.env.body
|
2821
|
+
|
2822
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2823
|
+
status_code: http_response.status,
|
2824
|
+
content_type: content_type,
|
2825
|
+
raw_response: http_response,
|
2826
|
+
headers: {},
|
2827
|
+
body: T.unsafe(obj)
|
2828
|
+
)
|
2829
|
+
elsif Utils.match_content_type(content_type, 'application/zip')
|
2830
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2831
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2832
|
+
hook_ctx: hook_ctx
|
2833
|
+
),
|
2834
|
+
response: http_response
|
2835
|
+
)
|
2836
|
+
obj = http_response.env.body
|
2837
|
+
|
2838
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2839
|
+
status_code: http_response.status,
|
2840
|
+
content_type: content_type,
|
2841
|
+
raw_response: http_response,
|
2842
|
+
headers: {},
|
2843
|
+
body: T.unsafe(obj)
|
2844
|
+
)
|
2845
|
+
elsif Utils.match_content_type(content_type, 'audio/mp4')
|
2846
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2847
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2848
|
+
hook_ctx: hook_ctx
|
2849
|
+
),
|
2850
|
+
response: http_response
|
2851
|
+
)
|
2852
|
+
obj = http_response.env.body
|
2853
|
+
|
2854
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2855
|
+
status_code: http_response.status,
|
2856
|
+
content_type: content_type,
|
2857
|
+
raw_response: http_response,
|
2858
|
+
headers: {},
|
2859
|
+
body: T.unsafe(obj)
|
2860
|
+
)
|
2861
|
+
elsif Utils.match_content_type(content_type, 'audio/mpeg')
|
2862
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2863
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2864
|
+
hook_ctx: hook_ctx
|
2865
|
+
),
|
2866
|
+
response: http_response
|
2867
|
+
)
|
2868
|
+
obj = http_response.env.body
|
2869
|
+
|
2870
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2871
|
+
status_code: http_response.status,
|
2872
|
+
content_type: content_type,
|
2873
|
+
raw_response: http_response,
|
2874
|
+
headers: {},
|
2875
|
+
body: T.unsafe(obj)
|
2876
|
+
)
|
2877
|
+
elsif Utils.match_content_type(content_type, 'audio/wav')
|
2878
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2879
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2880
|
+
hook_ctx: hook_ctx
|
2881
|
+
),
|
2882
|
+
response: http_response
|
2883
|
+
)
|
2884
|
+
obj = http_response.env.body
|
2885
|
+
|
2886
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2887
|
+
status_code: http_response.status,
|
2888
|
+
content_type: content_type,
|
2889
|
+
raw_response: http_response,
|
2890
|
+
headers: {},
|
2891
|
+
body: T.unsafe(obj)
|
2892
|
+
)
|
2893
|
+
elsif Utils.match_content_type(content_type, 'image/bmp')
|
2894
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2895
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2896
|
+
hook_ctx: hook_ctx
|
2897
|
+
),
|
2898
|
+
response: http_response
|
2899
|
+
)
|
2900
|
+
obj = http_response.env.body
|
2901
|
+
|
2902
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2903
|
+
status_code: http_response.status,
|
2904
|
+
content_type: content_type,
|
2905
|
+
raw_response: http_response,
|
2906
|
+
headers: {},
|
2907
|
+
body: T.unsafe(obj)
|
2908
|
+
)
|
2909
|
+
elsif Utils.match_content_type(content_type, 'image/gif')
|
2910
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2911
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2912
|
+
hook_ctx: hook_ctx
|
2913
|
+
),
|
2914
|
+
response: http_response
|
2915
|
+
)
|
2916
|
+
obj = http_response.env.body
|
2917
|
+
|
2918
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2919
|
+
status_code: http_response.status,
|
2920
|
+
content_type: content_type,
|
2921
|
+
raw_response: http_response,
|
2922
|
+
headers: {},
|
2923
|
+
body: T.unsafe(obj)
|
2924
|
+
)
|
2925
|
+
elsif Utils.match_content_type(content_type, 'image/heic')
|
2926
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2927
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2928
|
+
hook_ctx: hook_ctx
|
2929
|
+
),
|
2930
|
+
response: http_response
|
2931
|
+
)
|
2932
|
+
obj = http_response.env.body
|
2933
|
+
|
2934
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2935
|
+
status_code: http_response.status,
|
2936
|
+
content_type: content_type,
|
2937
|
+
raw_response: http_response,
|
2938
|
+
headers: {},
|
2939
|
+
body: T.unsafe(obj)
|
2940
|
+
)
|
2941
|
+
elsif Utils.match_content_type(content_type, 'image/jpeg')
|
2942
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2943
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2944
|
+
hook_ctx: hook_ctx
|
2945
|
+
),
|
2946
|
+
response: http_response
|
2947
|
+
)
|
2948
|
+
obj = http_response.env.body
|
2949
|
+
|
2950
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2951
|
+
status_code: http_response.status,
|
2952
|
+
content_type: content_type,
|
2953
|
+
raw_response: http_response,
|
2954
|
+
headers: {},
|
2955
|
+
body: T.unsafe(obj)
|
2956
|
+
)
|
2957
|
+
elsif Utils.match_content_type(content_type, 'image/png')
|
2958
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2959
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2960
|
+
hook_ctx: hook_ctx
|
2961
|
+
),
|
2962
|
+
response: http_response
|
2963
|
+
)
|
2964
|
+
obj = http_response.env.body
|
2965
|
+
|
2966
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2967
|
+
status_code: http_response.status,
|
2968
|
+
content_type: content_type,
|
2969
|
+
raw_response: http_response,
|
2970
|
+
headers: {},
|
2971
|
+
body: T.unsafe(obj)
|
2972
|
+
)
|
2973
|
+
elsif Utils.match_content_type(content_type, 'image/tiff')
|
2974
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2975
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2976
|
+
hook_ctx: hook_ctx
|
2977
|
+
),
|
2978
|
+
response: http_response
|
2979
|
+
)
|
2980
|
+
obj = http_response.env.body
|
2981
|
+
|
2982
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2983
|
+
status_code: http_response.status,
|
2984
|
+
content_type: content_type,
|
2985
|
+
raw_response: http_response,
|
2986
|
+
headers: {},
|
2987
|
+
body: T.unsafe(obj)
|
2988
|
+
)
|
2989
|
+
elsif Utils.match_content_type(content_type, 'image/webp')
|
2990
|
+
http_response = @sdk_configuration.hooks.after_success(
|
2991
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2992
|
+
hook_ctx: hook_ctx
|
2993
|
+
),
|
2994
|
+
response: http_response
|
2995
|
+
)
|
2996
|
+
obj = http_response.env.body
|
2997
|
+
|
2998
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
2999
|
+
status_code: http_response.status,
|
3000
|
+
content_type: content_type,
|
3001
|
+
raw_response: http_response,
|
3002
|
+
headers: {},
|
3003
|
+
body: T.unsafe(obj)
|
3004
|
+
)
|
3005
|
+
elsif Utils.match_content_type(content_type, 'message/rfc822')
|
3006
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3007
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3008
|
+
hook_ctx: hook_ctx
|
3009
|
+
),
|
3010
|
+
response: http_response
|
3011
|
+
)
|
3012
|
+
obj = http_response.env.body
|
3013
|
+
|
3014
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3015
|
+
status_code: http_response.status,
|
3016
|
+
content_type: content_type,
|
3017
|
+
raw_response: http_response,
|
3018
|
+
headers: {},
|
3019
|
+
body: T.unsafe(obj)
|
3020
|
+
)
|
3021
|
+
elsif Utils.match_content_type(content_type, 'text/csv')
|
3022
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3023
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3024
|
+
hook_ctx: hook_ctx
|
3025
|
+
),
|
3026
|
+
response: http_response
|
3027
|
+
)
|
3028
|
+
obj = http_response.env.body
|
3029
|
+
|
3030
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3031
|
+
status_code: http_response.status,
|
3032
|
+
content_type: content_type,
|
3033
|
+
raw_response: http_response,
|
3034
|
+
headers: {},
|
3035
|
+
body: T.unsafe(obj)
|
3036
|
+
)
|
3037
|
+
elsif Utils.match_content_type(content_type, 'text/html')
|
3038
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3039
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3040
|
+
hook_ctx: hook_ctx
|
3041
|
+
),
|
3042
|
+
response: http_response
|
3043
|
+
)
|
3044
|
+
obj = http_response.env.body
|
3045
|
+
|
3046
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3047
|
+
status_code: http_response.status,
|
3048
|
+
content_type: content_type,
|
3049
|
+
raw_response: http_response,
|
3050
|
+
headers: {},
|
3051
|
+
body: T.unsafe(obj)
|
3052
|
+
)
|
3053
|
+
elsif Utils.match_content_type(content_type, 'text/rtf')
|
3054
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3055
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3056
|
+
hook_ctx: hook_ctx
|
3057
|
+
),
|
3058
|
+
response: http_response
|
3059
|
+
)
|
3060
|
+
obj = http_response.env.body
|
3061
|
+
|
3062
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3063
|
+
status_code: http_response.status,
|
3064
|
+
content_type: content_type,
|
3065
|
+
raw_response: http_response,
|
3066
|
+
headers: {},
|
3067
|
+
body: T.unsafe(obj)
|
3068
|
+
)
|
3069
|
+
elsif Utils.match_content_type(content_type, 'video/avi')
|
3070
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3071
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3072
|
+
hook_ctx: hook_ctx
|
3073
|
+
),
|
3074
|
+
response: http_response
|
3075
|
+
)
|
3076
|
+
obj = http_response.env.body
|
3077
|
+
|
3078
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3079
|
+
status_code: http_response.status,
|
3080
|
+
content_type: content_type,
|
3081
|
+
raw_response: http_response,
|
3082
|
+
headers: {},
|
3083
|
+
body: T.unsafe(obj)
|
3084
|
+
)
|
3085
|
+
elsif Utils.match_content_type(content_type, 'video/mp4')
|
3086
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3087
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3088
|
+
hook_ctx: hook_ctx
|
3089
|
+
),
|
3090
|
+
response: http_response
|
3091
|
+
)
|
3092
|
+
obj = http_response.env.body
|
3093
|
+
|
3094
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3095
|
+
status_code: http_response.status,
|
3096
|
+
content_type: content_type,
|
3097
|
+
raw_response: http_response,
|
3098
|
+
headers: {},
|
3099
|
+
body: T.unsafe(obj)
|
3100
|
+
)
|
3101
|
+
elsif Utils.match_content_type(content_type, 'video/quicktime')
|
3102
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3103
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3104
|
+
hook_ctx: hook_ctx
|
3105
|
+
),
|
3106
|
+
response: http_response
|
3107
|
+
)
|
3108
|
+
obj = http_response.env.body
|
3109
|
+
|
3110
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3111
|
+
status_code: http_response.status,
|
3112
|
+
content_type: content_type,
|
3113
|
+
raw_response: http_response,
|
3114
|
+
headers: {},
|
3115
|
+
body: T.unsafe(obj)
|
3116
|
+
)
|
3117
|
+
elsif Utils.match_content_type(content_type, 'video/webm')
|
3118
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3119
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3120
|
+
hook_ctx: hook_ctx
|
3121
|
+
),
|
3122
|
+
response: http_response
|
3123
|
+
)
|
3124
|
+
obj = http_response.env.body
|
3125
|
+
|
3126
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3127
|
+
status_code: http_response.status,
|
3128
|
+
content_type: content_type,
|
3129
|
+
raw_response: http_response,
|
3130
|
+
headers: {},
|
3131
|
+
body: T.unsafe(obj)
|
3132
|
+
)
|
3133
|
+
elsif Utils.match_content_type(content_type, 'application/json')
|
3134
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3135
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3136
|
+
hook_ctx: hook_ctx
|
3137
|
+
),
|
3138
|
+
response: http_response
|
3139
|
+
)
|
3140
|
+
response_data = http_response.env.response_body
|
3141
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::DownloadApiModel)
|
3142
|
+
response = Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3143
|
+
status_code: http_response.status,
|
3144
|
+
content_type: content_type,
|
3145
|
+
raw_response: http_response,
|
3146
|
+
headers: {},
|
3147
|
+
download_api_model: T.unsafe(obj)
|
3148
|
+
)
|
3149
|
+
|
3150
|
+
return response
|
3151
|
+
elsif Utils.match_content_type(content_type, 'text/plain')
|
3152
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3153
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3154
|
+
hook_ctx: hook_ctx
|
3155
|
+
),
|
3156
|
+
response: http_response
|
3157
|
+
)
|
3158
|
+
obj = http_response.env.body
|
3159
|
+
|
3160
|
+
return Models::Operations::AtsDownloadApplicationDocumentResponse.new(
|
3161
|
+
status_code: http_response.status,
|
3162
|
+
content_type: content_type,
|
3163
|
+
raw_response: http_response,
|
3164
|
+
headers: {},
|
3165
|
+
download_api_model1: T.unsafe(obj)
|
3166
|
+
)
|
3167
|
+
else
|
3168
|
+
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'
|
3169
|
+
end
|
3170
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
3171
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3172
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3173
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3174
|
+
hook_ctx: hook_ctx
|
3175
|
+
),
|
3176
|
+
response: http_response
|
3177
|
+
)
|
3178
|
+
response_data = http_response.env.response_body
|
3179
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestResponse)
|
3180
|
+
raise obj
|
3181
|
+
else
|
3182
|
+
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'
|
3183
|
+
end
|
3184
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
3185
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3186
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3187
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3188
|
+
hook_ctx: hook_ctx
|
3189
|
+
),
|
3190
|
+
response: http_response
|
3191
|
+
)
|
3192
|
+
response_data = http_response.env.response_body
|
3193
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnauthorizedResponse)
|
3194
|
+
raise obj
|
3195
|
+
else
|
3196
|
+
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'
|
3197
|
+
end
|
3198
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
3199
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3200
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3201
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3202
|
+
hook_ctx: hook_ctx
|
3203
|
+
),
|
3204
|
+
response: http_response
|
3205
|
+
)
|
3206
|
+
response_data = http_response.env.response_body
|
3207
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ForbiddenResponse)
|
3208
|
+
raise obj
|
3209
|
+
else
|
3210
|
+
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'
|
3211
|
+
end
|
3212
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
3213
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3214
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3215
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3216
|
+
hook_ctx: hook_ctx
|
3217
|
+
),
|
3218
|
+
response: http_response
|
3219
|
+
)
|
3220
|
+
response_data = http_response.env.response_body
|
3221
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundResponse)
|
3222
|
+
raise obj
|
3223
|
+
else
|
3224
|
+
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'
|
3225
|
+
end
|
3226
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
3227
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3228
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3229
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3230
|
+
hook_ctx: hook_ctx
|
3231
|
+
),
|
3232
|
+
response: http_response
|
3233
|
+
)
|
3234
|
+
response_data = http_response.env.response_body
|
3235
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RequestTimedOutResponse)
|
3236
|
+
raise obj
|
3237
|
+
else
|
3238
|
+
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'
|
3239
|
+
end
|
3240
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
3241
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3242
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3243
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3244
|
+
hook_ctx: hook_ctx
|
3245
|
+
),
|
3246
|
+
response: http_response
|
3247
|
+
)
|
3248
|
+
response_data = http_response.env.response_body
|
3249
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictResponse)
|
3250
|
+
raise obj
|
3251
|
+
else
|
3252
|
+
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'
|
3253
|
+
end
|
3254
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
3255
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3256
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3257
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3258
|
+
hook_ctx: hook_ctx
|
3259
|
+
),
|
3260
|
+
response: http_response
|
3261
|
+
)
|
3262
|
+
response_data = http_response.env.response_body
|
3263
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PreconditionFailedResponse)
|
3264
|
+
raise obj
|
3265
|
+
else
|
3266
|
+
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'
|
3267
|
+
end
|
3268
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
3269
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3270
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3271
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3272
|
+
hook_ctx: hook_ctx
|
3273
|
+
),
|
3274
|
+
response: http_response
|
3275
|
+
)
|
3276
|
+
response_data = http_response.env.response_body
|
3277
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntityResponse)
|
3278
|
+
raise obj
|
3279
|
+
else
|
3280
|
+
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'
|
3281
|
+
end
|
3282
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
3283
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3284
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3285
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3286
|
+
hook_ctx: hook_ctx
|
3287
|
+
),
|
3288
|
+
response: http_response
|
3289
|
+
)
|
3290
|
+
response_data = http_response.env.response_body
|
3291
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::TooManyRequestsResponse)
|
3292
|
+
raise obj
|
3293
|
+
else
|
3294
|
+
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'
|
3295
|
+
end
|
3296
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
3297
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3298
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3299
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3300
|
+
hook_ctx: hook_ctx
|
3301
|
+
),
|
3302
|
+
response: http_response
|
3303
|
+
)
|
3304
|
+
response_data = http_response.env.response_body
|
3305
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerErrorResponse)
|
3306
|
+
raise obj
|
3307
|
+
else
|
3308
|
+
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'
|
3309
|
+
end
|
3310
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
3311
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3312
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3313
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3314
|
+
hook_ctx: hook_ctx
|
3315
|
+
),
|
3316
|
+
response: http_response
|
3317
|
+
)
|
3318
|
+
response_data = http_response.env.response_body
|
3319
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotImplementedResponse)
|
3320
|
+
raise obj
|
3321
|
+
else
|
3322
|
+
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'
|
3323
|
+
end
|
3324
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
3325
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3326
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3327
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3328
|
+
hook_ctx: hook_ctx
|
3329
|
+
),
|
3330
|
+
response: http_response
|
3331
|
+
)
|
3332
|
+
response_data = http_response.env.response_body
|
3333
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadGatewayResponse)
|
3334
|
+
raise obj
|
3335
|
+
else
|
3336
|
+
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'
|
3337
|
+
end
|
3338
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
3339
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
3340
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
3341
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
3342
|
+
else
|
3343
|
+
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'
|
3344
|
+
|
3345
|
+
end
|
3346
|
+
end
|
3347
|
+
|
3348
|
+
|
3349
|
+
sig { params(request: Models::Operations::AtsGetApplicationRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationResponse) }
|
3350
|
+
def get_application(request:, retries: nil, timeout_ms: nil)
|
3351
|
+
# get_application - Get Application
|
3352
|
+
url, params = @sdk_configuration.get_server_details
|
3353
|
+
base_url = Utils.template_url(url, params)
|
3354
|
+
url = Utils.generate_url(
|
3355
|
+
Models::Operations::AtsGetApplicationRequest,
|
3356
|
+
base_url,
|
3357
|
+
'/unified/ats/applications/{id}',
|
3358
|
+
request
|
3359
|
+
)
|
3360
|
+
headers = Utils.get_headers(request)
|
3361
|
+
headers = T.cast(headers, T::Hash[String, String])
|
3362
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationRequest, request, nil)
|
3363
|
+
headers['Accept'] = 'application/json'
|
3364
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
3365
|
+
retries ||= @sdk_configuration.retry_config
|
3366
|
+
retries ||= Utils::RetryConfig.new(
|
3367
|
+
backoff: Utils::BackoffStrategy.new(
|
3368
|
+
exponent: 1.5,
|
3369
|
+
initial_interval: 500,
|
3370
|
+
max_elapsed_time: 3_600_000,
|
3371
|
+
max_interval: 60_000
|
3372
|
+
),
|
3373
|
+
retry_connection_errors: true,
|
3374
|
+
strategy: 'backoff'
|
3375
|
+
)
|
3376
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3377
|
+
retry_options[:retry_statuses] = [429, 408]
|
3378
|
+
|
3379
|
+
security = @sdk_configuration.security_source&.call
|
3380
|
+
|
3381
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
3382
|
+
timeout ||= @sdk_configuration.timeout
|
3383
|
+
|
3384
|
+
|
3385
|
+
connection = @sdk_configuration.client.dup
|
3386
|
+
connection.request :retry, retry_options
|
3387
|
+
|
3388
|
+
hook_ctx = SDKHooks::HookContext.new(
|
3389
|
+
config: @sdk_configuration,
|
3390
|
+
base_url: base_url,
|
3391
|
+
oauth2_scopes: [],
|
3392
|
+
operation_id: 'ats_get_application',
|
3393
|
+
security_source: @sdk_configuration.security_source
|
3394
|
+
)
|
3395
|
+
|
3396
|
+
error = T.let(nil, T.nilable(StandardError))
|
3397
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
3398
|
+
|
3399
|
+
|
3400
|
+
begin
|
3401
|
+
http_response = T.must(connection).get(url) do |req|
|
3402
|
+
req.headers.merge!(headers)
|
3403
|
+
req.options.timeout = timeout unless timeout.nil?
|
3404
|
+
req.params = query_params
|
3405
|
+
Utils.configure_request_security(req, security)
|
3406
|
+
|
3407
|
+
@sdk_configuration.hooks.before_request(
|
3408
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
3409
|
+
hook_ctx: hook_ctx
|
3410
|
+
),
|
3411
|
+
request: req
|
3412
|
+
)
|
3413
|
+
end
|
3414
|
+
rescue StandardError => e
|
3415
|
+
error = e
|
3416
|
+
ensure
|
3417
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
3418
|
+
http_response = @sdk_configuration.hooks.after_error(
|
3419
|
+
error: error,
|
3420
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
3421
|
+
hook_ctx: hook_ctx
|
3422
|
+
),
|
3423
|
+
response: http_response
|
3424
|
+
)
|
3425
|
+
else
|
3426
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3427
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3428
|
+
hook_ctx: hook_ctx
|
3429
|
+
),
|
3430
|
+
response: http_response
|
3431
|
+
)
|
3432
|
+
end
|
3433
|
+
|
3434
|
+
if http_response.nil?
|
3435
|
+
raise error if !error.nil?
|
3436
|
+
raise 'no response'
|
3437
|
+
end
|
3438
|
+
end
|
3439
|
+
|
3440
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
3441
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
3442
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3443
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3444
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3445
|
+
hook_ctx: hook_ctx
|
3446
|
+
),
|
3447
|
+
response: http_response
|
3448
|
+
)
|
3449
|
+
response_data = http_response.env.response_body
|
3450
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ApplicationResult)
|
3451
|
+
response = Models::Operations::AtsGetApplicationResponse.new(
|
3452
|
+
status_code: http_response.status,
|
3453
|
+
content_type: content_type,
|
3454
|
+
raw_response: http_response,
|
3455
|
+
headers: {},
|
3456
|
+
application_result: T.unsafe(obj)
|
3457
|
+
)
|
3458
|
+
|
3459
|
+
return response
|
3460
|
+
else
|
3461
|
+
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'
|
3462
|
+
end
|
3463
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
3464
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3465
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3466
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3467
|
+
hook_ctx: hook_ctx
|
3468
|
+
),
|
3469
|
+
response: http_response
|
3470
|
+
)
|
3471
|
+
response_data = http_response.env.response_body
|
3472
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestResponse)
|
3473
|
+
raise obj
|
3474
|
+
else
|
3475
|
+
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'
|
3476
|
+
end
|
3477
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
3478
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3479
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3480
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3481
|
+
hook_ctx: hook_ctx
|
3482
|
+
),
|
3483
|
+
response: http_response
|
3484
|
+
)
|
3485
|
+
response_data = http_response.env.response_body
|
3486
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnauthorizedResponse)
|
3487
|
+
raise obj
|
3488
|
+
else
|
3489
|
+
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'
|
3490
|
+
end
|
3491
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
3492
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3493
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3494
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3495
|
+
hook_ctx: hook_ctx
|
3496
|
+
),
|
3497
|
+
response: http_response
|
3498
|
+
)
|
3499
|
+
response_data = http_response.env.response_body
|
3500
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ForbiddenResponse)
|
3501
|
+
raise obj
|
3502
|
+
else
|
3503
|
+
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'
|
3504
|
+
end
|
3505
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
3506
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3507
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3508
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3509
|
+
hook_ctx: hook_ctx
|
3510
|
+
),
|
3511
|
+
response: http_response
|
3512
|
+
)
|
3513
|
+
response_data = http_response.env.response_body
|
3514
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundResponse)
|
3515
|
+
raise obj
|
3516
|
+
else
|
3517
|
+
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'
|
3518
|
+
end
|
3519
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
3520
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3521
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3522
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3523
|
+
hook_ctx: hook_ctx
|
3524
|
+
),
|
3525
|
+
response: http_response
|
3526
|
+
)
|
3527
|
+
response_data = http_response.env.response_body
|
3528
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RequestTimedOutResponse)
|
3529
|
+
raise obj
|
3530
|
+
else
|
3531
|
+
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'
|
3532
|
+
end
|
3533
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
3534
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3535
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3536
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3537
|
+
hook_ctx: hook_ctx
|
3538
|
+
),
|
3539
|
+
response: http_response
|
3540
|
+
)
|
3541
|
+
response_data = http_response.env.response_body
|
3542
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictResponse)
|
3543
|
+
raise obj
|
3544
|
+
else
|
3545
|
+
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'
|
3546
|
+
end
|
3547
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
3548
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3549
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3550
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3551
|
+
hook_ctx: hook_ctx
|
3552
|
+
),
|
3553
|
+
response: http_response
|
3554
|
+
)
|
3555
|
+
response_data = http_response.env.response_body
|
3556
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PreconditionFailedResponse)
|
3557
|
+
raise obj
|
3558
|
+
else
|
3559
|
+
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'
|
3560
|
+
end
|
3561
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
3562
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3563
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3564
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3565
|
+
hook_ctx: hook_ctx
|
3566
|
+
),
|
3567
|
+
response: http_response
|
3568
|
+
)
|
3569
|
+
response_data = http_response.env.response_body
|
3570
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntityResponse)
|
3571
|
+
raise obj
|
3572
|
+
else
|
3573
|
+
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'
|
3574
|
+
end
|
3575
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
3576
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3577
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3578
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3579
|
+
hook_ctx: hook_ctx
|
3580
|
+
),
|
3581
|
+
response: http_response
|
3582
|
+
)
|
3583
|
+
response_data = http_response.env.response_body
|
3584
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::TooManyRequestsResponse)
|
3585
|
+
raise obj
|
3586
|
+
else
|
3587
|
+
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'
|
3588
|
+
end
|
3589
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
3590
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3591
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3592
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3593
|
+
hook_ctx: hook_ctx
|
3594
|
+
),
|
3595
|
+
response: http_response
|
3596
|
+
)
|
3597
|
+
response_data = http_response.env.response_body
|
3598
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerErrorResponse)
|
3599
|
+
raise obj
|
3600
|
+
else
|
3601
|
+
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'
|
3602
|
+
end
|
3603
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
3604
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3605
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3606
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3607
|
+
hook_ctx: hook_ctx
|
3608
|
+
),
|
3609
|
+
response: http_response
|
3610
|
+
)
|
3611
|
+
response_data = http_response.env.response_body
|
3612
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotImplementedResponse)
|
3613
|
+
raise obj
|
3614
|
+
else
|
3615
|
+
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'
|
3616
|
+
end
|
3617
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
3618
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3619
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3620
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3621
|
+
hook_ctx: hook_ctx
|
3622
|
+
),
|
3623
|
+
response: http_response
|
3624
|
+
)
|
3625
|
+
response_data = http_response.env.response_body
|
3626
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadGatewayResponse)
|
3627
|
+
raise obj
|
3628
|
+
else
|
3629
|
+
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'
|
3630
|
+
end
|
3631
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
3632
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
3633
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
3634
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
3635
|
+
else
|
3636
|
+
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'
|
3637
|
+
|
3638
|
+
end
|
3639
|
+
end
|
3640
|
+
|
3641
|
+
|
3642
|
+
sig { params(request: Models::Operations::AtsGetApplicationCustomFieldDefinitionRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationCustomFieldDefinitionResponse) }
|
3643
|
+
def get_application_custom_field_definition(request:, retries: nil, timeout_ms: nil)
|
3644
|
+
# get_application_custom_field_definition - Get Application Custom Field Definition
|
3645
|
+
url, params = @sdk_configuration.get_server_details
|
3646
|
+
base_url = Utils.template_url(url, params)
|
3647
|
+
url = Utils.generate_url(
|
3648
|
+
Models::Operations::AtsGetApplicationCustomFieldDefinitionRequest,
|
3649
|
+
base_url,
|
3650
|
+
'/unified/ats/custom_field_definitions/applications/{id}',
|
3651
|
+
request
|
3652
|
+
)
|
3653
|
+
headers = Utils.get_headers(request)
|
3654
|
+
headers = T.cast(headers, T::Hash[String, String])
|
3655
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationCustomFieldDefinitionRequest, request, nil)
|
3656
|
+
headers['Accept'] = 'application/json'
|
3657
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
3658
|
+
retries ||= @sdk_configuration.retry_config
|
3659
|
+
retries ||= Utils::RetryConfig.new(
|
3660
|
+
backoff: Utils::BackoffStrategy.new(
|
3661
|
+
exponent: 1.5,
|
3662
|
+
initial_interval: 500,
|
3663
|
+
max_elapsed_time: 3_600_000,
|
3664
|
+
max_interval: 60_000
|
3665
|
+
),
|
3666
|
+
retry_connection_errors: true,
|
3667
|
+
strategy: 'backoff'
|
3668
|
+
)
|
3669
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3670
|
+
retry_options[:retry_statuses] = [429, 408]
|
3671
|
+
|
3672
|
+
security = @sdk_configuration.security_source&.call
|
3673
|
+
|
3674
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
3675
|
+
timeout ||= @sdk_configuration.timeout
|
3676
|
+
|
3677
|
+
|
3678
|
+
connection = @sdk_configuration.client.dup
|
3679
|
+
connection.request :retry, retry_options
|
3680
|
+
|
3681
|
+
hook_ctx = SDKHooks::HookContext.new(
|
3682
|
+
config: @sdk_configuration,
|
3683
|
+
base_url: base_url,
|
3684
|
+
oauth2_scopes: [],
|
3685
|
+
operation_id: 'ats_get_application_custom_field_definition',
|
3686
|
+
security_source: @sdk_configuration.security_source
|
3687
|
+
)
|
3688
|
+
|
3689
|
+
error = T.let(nil, T.nilable(StandardError))
|
3690
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
3691
|
+
|
3692
|
+
|
3693
|
+
begin
|
3694
|
+
http_response = T.must(connection).get(url) do |req|
|
3695
|
+
req.headers.merge!(headers)
|
3696
|
+
req.options.timeout = timeout unless timeout.nil?
|
3697
|
+
req.params = query_params
|
3698
|
+
Utils.configure_request_security(req, security)
|
3699
|
+
|
3700
|
+
@sdk_configuration.hooks.before_request(
|
3701
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
3702
|
+
hook_ctx: hook_ctx
|
3703
|
+
),
|
3704
|
+
request: req
|
3705
|
+
)
|
3706
|
+
end
|
3707
|
+
rescue StandardError => e
|
3708
|
+
error = e
|
3709
|
+
ensure
|
3710
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
3711
|
+
http_response = @sdk_configuration.hooks.after_error(
|
3712
|
+
error: error,
|
3713
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
3714
|
+
hook_ctx: hook_ctx
|
3715
|
+
),
|
3716
|
+
response: http_response
|
3717
|
+
)
|
3718
|
+
else
|
3719
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3720
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3721
|
+
hook_ctx: hook_ctx
|
3722
|
+
),
|
3723
|
+
response: http_response
|
3724
|
+
)
|
3725
|
+
end
|
3726
|
+
|
3727
|
+
if http_response.nil?
|
3728
|
+
raise error if !error.nil?
|
3729
|
+
raise 'no response'
|
3730
|
+
end
|
3731
|
+
end
|
3732
|
+
|
3733
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
3734
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
3735
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3736
|
+
http_response = @sdk_configuration.hooks.after_success(
|
3737
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
3738
|
+
hook_ctx: hook_ctx
|
3739
|
+
),
|
3740
|
+
response: http_response
|
3741
|
+
)
|
3742
|
+
response_data = http_response.env.response_body
|
3743
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CustomFieldDefinitionResultApiModel)
|
3744
|
+
response = Models::Operations::AtsGetApplicationCustomFieldDefinitionResponse.new(
|
3745
|
+
status_code: http_response.status,
|
3746
|
+
content_type: content_type,
|
3747
|
+
raw_response: http_response,
|
3748
|
+
headers: {},
|
3749
|
+
custom_field_definition_result_api_model: T.unsafe(obj)
|
3750
|
+
)
|
3751
|
+
|
3752
|
+
return response
|
2573
3753
|
else
|
2574
3754
|
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'
|
2575
3755
|
end
|
@@ -2752,20 +3932,20 @@ module StackOne
|
|
2752
3932
|
end
|
2753
3933
|
|
2754
3934
|
|
2755
|
-
sig { params(request: Models::Operations::
|
2756
|
-
def
|
2757
|
-
#
|
3935
|
+
sig { params(request: Models::Operations::AtsGetApplicationDocumentRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationDocumentResponse) }
|
3936
|
+
def get_application_document(request:, retries: nil, timeout_ms: nil)
|
3937
|
+
# get_application_document - Get Application Document
|
2758
3938
|
url, params = @sdk_configuration.get_server_details
|
2759
3939
|
base_url = Utils.template_url(url, params)
|
2760
3940
|
url = Utils.generate_url(
|
2761
|
-
Models::Operations::
|
3941
|
+
Models::Operations::AtsGetApplicationDocumentRequest,
|
2762
3942
|
base_url,
|
2763
|
-
'/unified/ats/applications/{id}',
|
3943
|
+
'/unified/ats/applications/{id}/documents/{subResourceId}',
|
2764
3944
|
request
|
2765
3945
|
)
|
2766
3946
|
headers = Utils.get_headers(request)
|
2767
3947
|
headers = T.cast(headers, T::Hash[String, String])
|
2768
|
-
query_params = Utils.get_query_params(Models::Operations::
|
3948
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationDocumentRequest, request, nil)
|
2769
3949
|
headers['Accept'] = 'application/json'
|
2770
3950
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2771
3951
|
retries ||= @sdk_configuration.retry_config
|
@@ -2795,7 +3975,7 @@ module StackOne
|
|
2795
3975
|
config: @sdk_configuration,
|
2796
3976
|
base_url: base_url,
|
2797
3977
|
oauth2_scopes: [],
|
2798
|
-
operation_id: '
|
3978
|
+
operation_id: 'ats_get_application_document',
|
2799
3979
|
security_source: @sdk_configuration.security_source
|
2800
3980
|
)
|
2801
3981
|
|
@@ -2853,13 +4033,13 @@ module StackOne
|
|
2853
4033
|
response: http_response
|
2854
4034
|
)
|
2855
4035
|
response_data = http_response.env.response_body
|
2856
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
2857
|
-
response = Models::Operations::
|
4036
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AtsDocumentResult)
|
4037
|
+
response = Models::Operations::AtsGetApplicationDocumentResponse.new(
|
2858
4038
|
status_code: http_response.status,
|
2859
4039
|
content_type: content_type,
|
2860
4040
|
raw_response: http_response,
|
2861
4041
|
headers: {},
|
2862
|
-
|
4042
|
+
ats_document_result: T.unsafe(obj)
|
2863
4043
|
)
|
2864
4044
|
|
2865
4045
|
return response
|
@@ -3045,20 +4225,20 @@ module StackOne
|
|
3045
4225
|
end
|
3046
4226
|
|
3047
4227
|
|
3048
|
-
sig { params(request: Models::Operations::
|
3049
|
-
def
|
3050
|
-
#
|
4228
|
+
sig { params(request: Models::Operations::AtsGetApplicationDocumentCategoryRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationDocumentCategoryResponse) }
|
4229
|
+
def get_application_document_category(request:, retries: nil, timeout_ms: nil)
|
4230
|
+
# get_application_document_category - Get Application Document Category
|
3051
4231
|
url, params = @sdk_configuration.get_server_details
|
3052
4232
|
base_url = Utils.template_url(url, params)
|
3053
4233
|
url = Utils.generate_url(
|
3054
|
-
Models::Operations::
|
4234
|
+
Models::Operations::AtsGetApplicationDocumentCategoryRequest,
|
3055
4235
|
base_url,
|
3056
|
-
'/unified/ats/
|
4236
|
+
'/unified/ats/documents/application_categories/{id}',
|
3057
4237
|
request
|
3058
4238
|
)
|
3059
4239
|
headers = Utils.get_headers(request)
|
3060
4240
|
headers = T.cast(headers, T::Hash[String, String])
|
3061
|
-
query_params = Utils.get_query_params(Models::Operations::
|
4241
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationDocumentCategoryRequest, request, nil)
|
3062
4242
|
headers['Accept'] = 'application/json'
|
3063
4243
|
headers['user-agent'] = @sdk_configuration.user_agent
|
3064
4244
|
retries ||= @sdk_configuration.retry_config
|
@@ -3088,7 +4268,7 @@ module StackOne
|
|
3088
4268
|
config: @sdk_configuration,
|
3089
4269
|
base_url: base_url,
|
3090
4270
|
oauth2_scopes: [],
|
3091
|
-
operation_id: '
|
4271
|
+
operation_id: 'ats_get_application_document_category',
|
3092
4272
|
security_source: @sdk_configuration.security_source
|
3093
4273
|
)
|
3094
4274
|
|
@@ -3146,13 +4326,13 @@ module StackOne
|
|
3146
4326
|
response: http_response
|
3147
4327
|
)
|
3148
4328
|
response_data = http_response.env.response_body
|
3149
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
3150
|
-
response = Models::Operations::
|
4329
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ReferenceResult)
|
4330
|
+
response = Models::Operations::AtsGetApplicationDocumentCategoryResponse.new(
|
3151
4331
|
status_code: http_response.status,
|
3152
4332
|
content_type: content_type,
|
3153
4333
|
raw_response: http_response,
|
3154
4334
|
headers: {},
|
3155
|
-
|
4335
|
+
reference_result: T.unsafe(obj)
|
3156
4336
|
)
|
3157
4337
|
|
3158
4338
|
return response
|
@@ -3338,20 +4518,20 @@ module StackOne
|
|
3338
4518
|
end
|
3339
4519
|
|
3340
4520
|
|
3341
|
-
sig { params(request: Models::Operations::
|
3342
|
-
def
|
3343
|
-
#
|
4521
|
+
sig { params(request: Models::Operations::AtsGetApplicationNoteRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationNoteResponse) }
|
4522
|
+
def get_application_note(request:, retries: nil, timeout_ms: nil)
|
4523
|
+
# get_application_note - Get Application Note
|
3344
4524
|
url, params = @sdk_configuration.get_server_details
|
3345
4525
|
base_url = Utils.template_url(url, params)
|
3346
4526
|
url = Utils.generate_url(
|
3347
|
-
Models::Operations::
|
4527
|
+
Models::Operations::AtsGetApplicationNoteRequest,
|
3348
4528
|
base_url,
|
3349
|
-
'/unified/ats/applications/{id}/
|
4529
|
+
'/unified/ats/applications/{id}/notes/{subResourceId}',
|
3350
4530
|
request
|
3351
4531
|
)
|
3352
4532
|
headers = Utils.get_headers(request)
|
3353
4533
|
headers = T.cast(headers, T::Hash[String, String])
|
3354
|
-
query_params = Utils.get_query_params(Models::Operations::
|
4534
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationNoteRequest, request, nil)
|
3355
4535
|
headers['Accept'] = 'application/json'
|
3356
4536
|
headers['user-agent'] = @sdk_configuration.user_agent
|
3357
4537
|
retries ||= @sdk_configuration.retry_config
|
@@ -3381,7 +4561,7 @@ module StackOne
|
|
3381
4561
|
config: @sdk_configuration,
|
3382
4562
|
base_url: base_url,
|
3383
4563
|
oauth2_scopes: [],
|
3384
|
-
operation_id: '
|
4564
|
+
operation_id: 'ats_get_application_note',
|
3385
4565
|
security_source: @sdk_configuration.security_source
|
3386
4566
|
)
|
3387
4567
|
|
@@ -3439,13 +4619,13 @@ module StackOne
|
|
3439
4619
|
response: http_response
|
3440
4620
|
)
|
3441
4621
|
response_data = http_response.env.response_body
|
3442
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
3443
|
-
response = Models::Operations::
|
4622
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::NoteResult)
|
4623
|
+
response = Models::Operations::AtsGetApplicationNoteResponse.new(
|
3444
4624
|
status_code: http_response.status,
|
3445
4625
|
content_type: content_type,
|
3446
4626
|
raw_response: http_response,
|
3447
4627
|
headers: {},
|
3448
|
-
|
4628
|
+
note_result: T.unsafe(obj)
|
3449
4629
|
)
|
3450
4630
|
|
3451
4631
|
return response
|
@@ -3631,20 +4811,20 @@ module StackOne
|
|
3631
4811
|
end
|
3632
4812
|
|
3633
4813
|
|
3634
|
-
sig { params(request: Models::Operations::
|
3635
|
-
def
|
3636
|
-
#
|
4814
|
+
sig { params(request: Models::Operations::AtsGetApplicationOfferRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationOfferResponse) }
|
4815
|
+
def get_application_offer(request:, retries: nil, timeout_ms: nil)
|
4816
|
+
# get_application_offer - Get Application Offer
|
3637
4817
|
url, params = @sdk_configuration.get_server_details
|
3638
4818
|
base_url = Utils.template_url(url, params)
|
3639
4819
|
url = Utils.generate_url(
|
3640
|
-
Models::Operations::
|
4820
|
+
Models::Operations::AtsGetApplicationOfferRequest,
|
3641
4821
|
base_url,
|
3642
|
-
'/unified/ats/
|
4822
|
+
'/unified/ats/applications/{id}/offers/{subResourceId}',
|
3643
4823
|
request
|
3644
4824
|
)
|
3645
4825
|
headers = Utils.get_headers(request)
|
3646
4826
|
headers = T.cast(headers, T::Hash[String, String])
|
3647
|
-
query_params = Utils.get_query_params(Models::Operations::
|
4827
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationOfferRequest, request, nil)
|
3648
4828
|
headers['Accept'] = 'application/json'
|
3649
4829
|
headers['user-agent'] = @sdk_configuration.user_agent
|
3650
4830
|
retries ||= @sdk_configuration.retry_config
|
@@ -3674,7 +4854,7 @@ module StackOne
|
|
3674
4854
|
config: @sdk_configuration,
|
3675
4855
|
base_url: base_url,
|
3676
4856
|
oauth2_scopes: [],
|
3677
|
-
operation_id: '
|
4857
|
+
operation_id: 'ats_get_application_offer',
|
3678
4858
|
security_source: @sdk_configuration.security_source
|
3679
4859
|
)
|
3680
4860
|
|
@@ -3732,13 +4912,13 @@ module StackOne
|
|
3732
4912
|
response: http_response
|
3733
4913
|
)
|
3734
4914
|
response_data = http_response.env.response_body
|
3735
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
3736
|
-
response = Models::Operations::
|
4915
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::OffersResult)
|
4916
|
+
response = Models::Operations::AtsGetApplicationOfferResponse.new(
|
3737
4917
|
status_code: http_response.status,
|
3738
4918
|
content_type: content_type,
|
3739
4919
|
raw_response: http_response,
|
3740
4920
|
headers: {},
|
3741
|
-
|
4921
|
+
offers_result: T.unsafe(obj)
|
3742
4922
|
)
|
3743
4923
|
|
3744
4924
|
return response
|
@@ -3924,20 +5104,20 @@ module StackOne
|
|
3924
5104
|
end
|
3925
5105
|
|
3926
5106
|
|
3927
|
-
sig { params(request: Models::Operations::
|
3928
|
-
def
|
3929
|
-
#
|
5107
|
+
sig { params(request: Models::Operations::AtsGetApplicationScheduledInterviewRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationScheduledInterviewResponse) }
|
5108
|
+
def get_application_scheduled_interview(request:, retries: nil, timeout_ms: nil)
|
5109
|
+
# get_application_scheduled_interview - Get Applications scheduled interview
|
3930
5110
|
url, params = @sdk_configuration.get_server_details
|
3931
5111
|
base_url = Utils.template_url(url, params)
|
3932
5112
|
url = Utils.generate_url(
|
3933
|
-
Models::Operations::
|
5113
|
+
Models::Operations::AtsGetApplicationScheduledInterviewRequest,
|
3934
5114
|
base_url,
|
3935
|
-
'/unified/ats/applications/{id}/
|
5115
|
+
'/unified/ats/applications/{id}/scheduled_interviews/{subResourceId}',
|
3936
5116
|
request
|
3937
5117
|
)
|
3938
5118
|
headers = Utils.get_headers(request)
|
3939
5119
|
headers = T.cast(headers, T::Hash[String, String])
|
3940
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5120
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationScheduledInterviewRequest, request, nil)
|
3941
5121
|
headers['Accept'] = 'application/json'
|
3942
5122
|
headers['user-agent'] = @sdk_configuration.user_agent
|
3943
5123
|
retries ||= @sdk_configuration.retry_config
|
@@ -3967,7 +5147,7 @@ module StackOne
|
|
3967
5147
|
config: @sdk_configuration,
|
3968
5148
|
base_url: base_url,
|
3969
5149
|
oauth2_scopes: [],
|
3970
|
-
operation_id: '
|
5150
|
+
operation_id: 'ats_get_application_scheduled_interview',
|
3971
5151
|
security_source: @sdk_configuration.security_source
|
3972
5152
|
)
|
3973
5153
|
|
@@ -4025,13 +5205,13 @@ module StackOne
|
|
4025
5205
|
response: http_response
|
4026
5206
|
)
|
4027
5207
|
response_data = http_response.env.response_body
|
4028
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
4029
|
-
response = Models::Operations::
|
5208
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ScheduledInterviewsResult)
|
5209
|
+
response = Models::Operations::AtsGetApplicationScheduledInterviewResponse.new(
|
4030
5210
|
status_code: http_response.status,
|
4031
5211
|
content_type: content_type,
|
4032
5212
|
raw_response: http_response,
|
4033
5213
|
headers: {},
|
4034
|
-
|
5214
|
+
scheduled_interviews_result: T.unsafe(obj)
|
4035
5215
|
)
|
4036
5216
|
|
4037
5217
|
return response
|
@@ -4217,20 +5397,20 @@ module StackOne
|
|
4217
5397
|
end
|
4218
5398
|
|
4219
5399
|
|
4220
|
-
sig { params(request: Models::Operations::
|
4221
|
-
def
|
4222
|
-
#
|
5400
|
+
sig { params(request: Models::Operations::AtsGetApplicationScorecardRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationScorecardResponse) }
|
5401
|
+
def get_application_scorecard(request:, retries: nil, timeout_ms: nil)
|
5402
|
+
# get_application_scorecard - Get Application Scorecard
|
4223
5403
|
url, params = @sdk_configuration.get_server_details
|
4224
5404
|
base_url = Utils.template_url(url, params)
|
4225
5405
|
url = Utils.generate_url(
|
4226
|
-
Models::Operations::
|
5406
|
+
Models::Operations::AtsGetApplicationScorecardRequest,
|
4227
5407
|
base_url,
|
4228
|
-
'/unified/ats/applications/{id}/
|
5408
|
+
'/unified/ats/applications/{id}/scorecards/{subResourceId}',
|
4229
5409
|
request
|
4230
5410
|
)
|
4231
5411
|
headers = Utils.get_headers(request)
|
4232
5412
|
headers = T.cast(headers, T::Hash[String, String])
|
4233
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5413
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationScorecardRequest, request, nil)
|
4234
5414
|
headers['Accept'] = 'application/json'
|
4235
5415
|
headers['user-agent'] = @sdk_configuration.user_agent
|
4236
5416
|
retries ||= @sdk_configuration.retry_config
|
@@ -4260,7 +5440,7 @@ module StackOne
|
|
4260
5440
|
config: @sdk_configuration,
|
4261
5441
|
base_url: base_url,
|
4262
5442
|
oauth2_scopes: [],
|
4263
|
-
operation_id: '
|
5443
|
+
operation_id: 'ats_get_application_scorecard',
|
4264
5444
|
security_source: @sdk_configuration.security_source
|
4265
5445
|
)
|
4266
5446
|
|
@@ -4318,13 +5498,13 @@ module StackOne
|
|
4318
5498
|
response: http_response
|
4319
5499
|
)
|
4320
5500
|
response_data = http_response.env.response_body
|
4321
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
4322
|
-
response = Models::Operations::
|
5501
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ScorecardsResult)
|
5502
|
+
response = Models::Operations::AtsGetApplicationScorecardResponse.new(
|
4323
5503
|
status_code: http_response.status,
|
4324
5504
|
content_type: content_type,
|
4325
5505
|
raw_response: http_response,
|
4326
5506
|
headers: {},
|
4327
|
-
|
5507
|
+
scorecards_result: T.unsafe(obj)
|
4328
5508
|
)
|
4329
5509
|
|
4330
5510
|
return response
|
@@ -4510,20 +5690,20 @@ module StackOne
|
|
4510
5690
|
end
|
4511
5691
|
|
4512
5692
|
|
4513
|
-
sig { params(request: Models::Operations::
|
4514
|
-
def
|
4515
|
-
#
|
5693
|
+
sig { params(request: Models::Operations::AtsGetApplicationStageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationStageResponse) }
|
5694
|
+
def get_application_stage(request:, retries: nil, timeout_ms: nil)
|
5695
|
+
# get_application_stage - Get Application Stage
|
4516
5696
|
url, params = @sdk_configuration.get_server_details
|
4517
5697
|
base_url = Utils.template_url(url, params)
|
4518
5698
|
url = Utils.generate_url(
|
4519
|
-
Models::Operations::
|
5699
|
+
Models::Operations::AtsGetApplicationStageRequest,
|
4520
5700
|
base_url,
|
4521
|
-
'/unified/ats/
|
5701
|
+
'/unified/ats/application_stages/{id}',
|
4522
5702
|
request
|
4523
5703
|
)
|
4524
5704
|
headers = Utils.get_headers(request)
|
4525
5705
|
headers = T.cast(headers, T::Hash[String, String])
|
4526
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5706
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationStageRequest, request, nil)
|
4527
5707
|
headers['Accept'] = 'application/json'
|
4528
5708
|
headers['user-agent'] = @sdk_configuration.user_agent
|
4529
5709
|
retries ||= @sdk_configuration.retry_config
|
@@ -4553,7 +5733,7 @@ module StackOne
|
|
4553
5733
|
config: @sdk_configuration,
|
4554
5734
|
base_url: base_url,
|
4555
5735
|
oauth2_scopes: [],
|
4556
|
-
operation_id: '
|
5736
|
+
operation_id: 'ats_get_application_stage',
|
4557
5737
|
security_source: @sdk_configuration.security_source
|
4558
5738
|
)
|
4559
5739
|
|
@@ -4611,13 +5791,13 @@ module StackOne
|
|
4611
5791
|
response: http_response
|
4612
5792
|
)
|
4613
5793
|
response_data = http_response.env.response_body
|
4614
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
4615
|
-
response = Models::Operations::
|
5794
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InterviewStageResult)
|
5795
|
+
response = Models::Operations::AtsGetApplicationStageResponse.new(
|
4616
5796
|
status_code: http_response.status,
|
4617
5797
|
content_type: content_type,
|
4618
5798
|
raw_response: http_response,
|
4619
5799
|
headers: {},
|
4620
|
-
|
5800
|
+
interview_stage_result: T.unsafe(obj)
|
4621
5801
|
)
|
4622
5802
|
|
4623
5803
|
return response
|
@@ -4803,20 +5983,20 @@ module StackOne
|
|
4803
5983
|
end
|
4804
5984
|
|
4805
5985
|
|
4806
|
-
sig { params(request: Models::Operations::
|
4807
|
-
def
|
4808
|
-
#
|
5986
|
+
sig { params(request: Models::Operations::AtsGetAssessmentsPackageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetAssessmentsPackageResponse) }
|
5987
|
+
def get_assessments_package(request:, retries: nil, timeout_ms: nil)
|
5988
|
+
# get_assessments_package - Get Assessments Package
|
4809
5989
|
url, params = @sdk_configuration.get_server_details
|
4810
5990
|
base_url = Utils.template_url(url, params)
|
4811
5991
|
url = Utils.generate_url(
|
4812
|
-
Models::Operations::
|
5992
|
+
Models::Operations::AtsGetAssessmentsPackageRequest,
|
4813
5993
|
base_url,
|
4814
|
-
'/unified/ats/
|
5994
|
+
'/unified/ats/assessments/packages/{id}',
|
4815
5995
|
request
|
4816
5996
|
)
|
4817
5997
|
headers = Utils.get_headers(request)
|
4818
5998
|
headers = T.cast(headers, T::Hash[String, String])
|
4819
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5999
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetAssessmentsPackageRequest, request, nil)
|
4820
6000
|
headers['Accept'] = 'application/json'
|
4821
6001
|
headers['user-agent'] = @sdk_configuration.user_agent
|
4822
6002
|
retries ||= @sdk_configuration.retry_config
|
@@ -4846,7 +6026,7 @@ module StackOne
|
|
4846
6026
|
config: @sdk_configuration,
|
4847
6027
|
base_url: base_url,
|
4848
6028
|
oauth2_scopes: [],
|
4849
|
-
operation_id: '
|
6029
|
+
operation_id: 'ats_get_assessments_package',
|
4850
6030
|
security_source: @sdk_configuration.security_source
|
4851
6031
|
)
|
4852
6032
|
|
@@ -4904,13 +6084,13 @@ module StackOne
|
|
4904
6084
|
response: http_response
|
4905
6085
|
)
|
4906
6086
|
response_data = http_response.env.response_body
|
4907
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
4908
|
-
response = Models::Operations::
|
6087
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AssessmentPackageResult)
|
6088
|
+
response = Models::Operations::AtsGetAssessmentsPackageResponse.new(
|
4909
6089
|
status_code: http_response.status,
|
4910
6090
|
content_type: content_type,
|
4911
6091
|
raw_response: http_response,
|
4912
6092
|
headers: {},
|
4913
|
-
|
6093
|
+
assessment_package_result: T.unsafe(obj)
|
4914
6094
|
)
|
4915
6095
|
|
4916
6096
|
return response
|
@@ -5096,20 +6276,20 @@ module StackOne
|
|
5096
6276
|
end
|
5097
6277
|
|
5098
6278
|
|
5099
|
-
sig { params(request: Models::Operations::
|
5100
|
-
def
|
5101
|
-
#
|
6279
|
+
sig { params(request: Models::Operations::AtsGetBackgroundCheckPackageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetBackgroundCheckPackageResponse) }
|
6280
|
+
def get_background_check_package(request:, retries: nil, timeout_ms: nil)
|
6281
|
+
# get_background_check_package - Get Background Check Package
|
5102
6282
|
url, params = @sdk_configuration.get_server_details
|
5103
6283
|
base_url = Utils.template_url(url, params)
|
5104
6284
|
url = Utils.generate_url(
|
5105
|
-
Models::Operations::
|
6285
|
+
Models::Operations::AtsGetBackgroundCheckPackageRequest,
|
5106
6286
|
base_url,
|
5107
|
-
'/unified/ats/
|
6287
|
+
'/unified/ats/background_checks/packages/{id}',
|
5108
6288
|
request
|
5109
6289
|
)
|
5110
6290
|
headers = Utils.get_headers(request)
|
5111
6291
|
headers = T.cast(headers, T::Hash[String, String])
|
5112
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6292
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetBackgroundCheckPackageRequest, request, nil)
|
5113
6293
|
headers['Accept'] = 'application/json'
|
5114
6294
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5115
6295
|
retries ||= @sdk_configuration.retry_config
|
@@ -5139,7 +6319,7 @@ module StackOne
|
|
5139
6319
|
config: @sdk_configuration,
|
5140
6320
|
base_url: base_url,
|
5141
6321
|
oauth2_scopes: [],
|
5142
|
-
operation_id: '
|
6322
|
+
operation_id: 'ats_get_background_check_package',
|
5143
6323
|
security_source: @sdk_configuration.security_source
|
5144
6324
|
)
|
5145
6325
|
|
@@ -5197,13 +6377,13 @@ module StackOne
|
|
5197
6377
|
response: http_response
|
5198
6378
|
)
|
5199
6379
|
response_data = http_response.env.response_body
|
5200
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
5201
|
-
response = Models::Operations::
|
6380
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::BackgroundCheckPackageResult)
|
6381
|
+
response = Models::Operations::AtsGetBackgroundCheckPackageResponse.new(
|
5202
6382
|
status_code: http_response.status,
|
5203
6383
|
content_type: content_type,
|
5204
6384
|
raw_response: http_response,
|
5205
6385
|
headers: {},
|
5206
|
-
|
6386
|
+
background_check_package_result: T.unsafe(obj)
|
5207
6387
|
)
|
5208
6388
|
|
5209
6389
|
return response
|
@@ -5389,20 +6569,20 @@ module StackOne
|
|
5389
6569
|
end
|
5390
6570
|
|
5391
6571
|
|
5392
|
-
sig { params(request: Models::Operations::
|
5393
|
-
def
|
5394
|
-
#
|
6572
|
+
sig { params(request: Models::Operations::AtsGetCandidateRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateResponse) }
|
6573
|
+
def get_candidate(request:, retries: nil, timeout_ms: nil)
|
6574
|
+
# get_candidate - Get Candidate
|
5395
6575
|
url, params = @sdk_configuration.get_server_details
|
5396
6576
|
base_url = Utils.template_url(url, params)
|
5397
6577
|
url = Utils.generate_url(
|
5398
|
-
Models::Operations::
|
6578
|
+
Models::Operations::AtsGetCandidateRequest,
|
5399
6579
|
base_url,
|
5400
|
-
'/unified/ats/
|
6580
|
+
'/unified/ats/candidates/{id}',
|
5401
6581
|
request
|
5402
6582
|
)
|
5403
6583
|
headers = Utils.get_headers(request)
|
5404
6584
|
headers = T.cast(headers, T::Hash[String, String])
|
5405
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6585
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateRequest, request, nil)
|
5406
6586
|
headers['Accept'] = 'application/json'
|
5407
6587
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5408
6588
|
retries ||= @sdk_configuration.retry_config
|
@@ -5432,7 +6612,7 @@ module StackOne
|
|
5432
6612
|
config: @sdk_configuration,
|
5433
6613
|
base_url: base_url,
|
5434
6614
|
oauth2_scopes: [],
|
5435
|
-
operation_id: '
|
6615
|
+
operation_id: 'ats_get_candidate',
|
5436
6616
|
security_source: @sdk_configuration.security_source
|
5437
6617
|
)
|
5438
6618
|
|
@@ -5490,13 +6670,13 @@ module StackOne
|
|
5490
6670
|
response: http_response
|
5491
6671
|
)
|
5492
6672
|
response_data = http_response.env.response_body
|
5493
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
5494
|
-
response = Models::Operations::
|
6673
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CandidateResult)
|
6674
|
+
response = Models::Operations::AtsGetCandidateResponse.new(
|
5495
6675
|
status_code: http_response.status,
|
5496
6676
|
content_type: content_type,
|
5497
6677
|
raw_response: http_response,
|
5498
6678
|
headers: {},
|
5499
|
-
|
6679
|
+
candidate_result: T.unsafe(obj)
|
5500
6680
|
)
|
5501
6681
|
|
5502
6682
|
return response
|
@@ -5682,20 +6862,20 @@ module StackOne
|
|
5682
6862
|
end
|
5683
6863
|
|
5684
6864
|
|
5685
|
-
sig { params(request: Models::Operations::
|
5686
|
-
def
|
5687
|
-
#
|
6865
|
+
sig { params(request: Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateCustomFieldDefinitionResponse) }
|
6866
|
+
def get_candidate_custom_field_definition(request:, retries: nil, timeout_ms: nil)
|
6867
|
+
# get_candidate_custom_field_definition - Get Candidate Custom Field Definition
|
5688
6868
|
url, params = @sdk_configuration.get_server_details
|
5689
6869
|
base_url = Utils.template_url(url, params)
|
5690
6870
|
url = Utils.generate_url(
|
5691
|
-
Models::Operations::
|
6871
|
+
Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest,
|
5692
6872
|
base_url,
|
5693
|
-
'/unified/ats/candidates/{id}',
|
6873
|
+
'/unified/ats/custom_field_definitions/candidates/{id}',
|
5694
6874
|
request
|
5695
6875
|
)
|
5696
6876
|
headers = Utils.get_headers(request)
|
5697
6877
|
headers = T.cast(headers, T::Hash[String, String])
|
5698
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6878
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest, request, nil)
|
5699
6879
|
headers['Accept'] = 'application/json'
|
5700
6880
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5701
6881
|
retries ||= @sdk_configuration.retry_config
|
@@ -5725,7 +6905,7 @@ module StackOne
|
|
5725
6905
|
config: @sdk_configuration,
|
5726
6906
|
base_url: base_url,
|
5727
6907
|
oauth2_scopes: [],
|
5728
|
-
operation_id: '
|
6908
|
+
operation_id: 'ats_get_candidate_custom_field_definition',
|
5729
6909
|
security_source: @sdk_configuration.security_source
|
5730
6910
|
)
|
5731
6911
|
|
@@ -5783,13 +6963,13 @@ module StackOne
|
|
5783
6963
|
response: http_response
|
5784
6964
|
)
|
5785
6965
|
response_data = http_response.env.response_body
|
5786
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
5787
|
-
response = Models::Operations::
|
6966
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CustomFieldDefinitionResultApiModel)
|
6967
|
+
response = Models::Operations::AtsGetCandidateCustomFieldDefinitionResponse.new(
|
5788
6968
|
status_code: http_response.status,
|
5789
6969
|
content_type: content_type,
|
5790
6970
|
raw_response: http_response,
|
5791
6971
|
headers: {},
|
5792
|
-
|
6972
|
+
custom_field_definition_result_api_model: T.unsafe(obj)
|
5793
6973
|
)
|
5794
6974
|
|
5795
6975
|
return response
|
@@ -5975,20 +7155,20 @@ module StackOne
|
|
5975
7155
|
end
|
5976
7156
|
|
5977
7157
|
|
5978
|
-
sig { params(request: Models::Operations::
|
5979
|
-
def
|
5980
|
-
#
|
7158
|
+
sig { params(request: Models::Operations::AtsGetCandidateNoteRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateNoteResponse) }
|
7159
|
+
def get_candidate_note(request:, retries: nil, timeout_ms: nil)
|
7160
|
+
# get_candidate_note - Get Candidate Note
|
5981
7161
|
url, params = @sdk_configuration.get_server_details
|
5982
7162
|
base_url = Utils.template_url(url, params)
|
5983
7163
|
url = Utils.generate_url(
|
5984
|
-
Models::Operations::
|
7164
|
+
Models::Operations::AtsGetCandidateNoteRequest,
|
5985
7165
|
base_url,
|
5986
|
-
'/unified/ats/
|
7166
|
+
'/unified/ats/candidates/{id}/notes/{subResourceId}',
|
5987
7167
|
request
|
5988
7168
|
)
|
5989
7169
|
headers = Utils.get_headers(request)
|
5990
7170
|
headers = T.cast(headers, T::Hash[String, String])
|
5991
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7171
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateNoteRequest, request, nil)
|
5992
7172
|
headers['Accept'] = 'application/json'
|
5993
7173
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5994
7174
|
retries ||= @sdk_configuration.retry_config
|
@@ -6018,7 +7198,7 @@ module StackOne
|
|
6018
7198
|
config: @sdk_configuration,
|
6019
7199
|
base_url: base_url,
|
6020
7200
|
oauth2_scopes: [],
|
6021
|
-
operation_id: '
|
7201
|
+
operation_id: 'ats_get_candidate_note',
|
6022
7202
|
security_source: @sdk_configuration.security_source
|
6023
7203
|
)
|
6024
7204
|
|
@@ -6076,13 +7256,13 @@ module StackOne
|
|
6076
7256
|
response: http_response
|
6077
7257
|
)
|
6078
7258
|
response_data = http_response.env.response_body
|
6079
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6080
|
-
response = Models::Operations::
|
7259
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::NoteResult)
|
7260
|
+
response = Models::Operations::AtsGetCandidateNoteResponse.new(
|
6081
7261
|
status_code: http_response.status,
|
6082
7262
|
content_type: content_type,
|
6083
7263
|
raw_response: http_response,
|
6084
7264
|
headers: {},
|
6085
|
-
|
7265
|
+
note_result: T.unsafe(obj)
|
6086
7266
|
)
|
6087
7267
|
|
6088
7268
|
return response
|
@@ -6268,20 +7448,20 @@ module StackOne
|
|
6268
7448
|
end
|
6269
7449
|
|
6270
7450
|
|
6271
|
-
sig { params(request: Models::Operations::
|
6272
|
-
def
|
6273
|
-
#
|
7451
|
+
sig { params(request: Models::Operations::AtsGetDepartmentRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetDepartmentResponse) }
|
7452
|
+
def get_department(request:, retries: nil, timeout_ms: nil)
|
7453
|
+
# get_department - Get Department
|
6274
7454
|
url, params = @sdk_configuration.get_server_details
|
6275
7455
|
base_url = Utils.template_url(url, params)
|
6276
7456
|
url = Utils.generate_url(
|
6277
|
-
Models::Operations::
|
7457
|
+
Models::Operations::AtsGetDepartmentRequest,
|
6278
7458
|
base_url,
|
6279
|
-
'/unified/ats/
|
7459
|
+
'/unified/ats/departments/{id}',
|
6280
7460
|
request
|
6281
7461
|
)
|
6282
7462
|
headers = Utils.get_headers(request)
|
6283
7463
|
headers = T.cast(headers, T::Hash[String, String])
|
6284
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7464
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetDepartmentRequest, request, nil)
|
6285
7465
|
headers['Accept'] = 'application/json'
|
6286
7466
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6287
7467
|
retries ||= @sdk_configuration.retry_config
|
@@ -6311,7 +7491,7 @@ module StackOne
|
|
6311
7491
|
config: @sdk_configuration,
|
6312
7492
|
base_url: base_url,
|
6313
7493
|
oauth2_scopes: [],
|
6314
|
-
operation_id: '
|
7494
|
+
operation_id: 'ats_get_department',
|
6315
7495
|
security_source: @sdk_configuration.security_source
|
6316
7496
|
)
|
6317
7497
|
|
@@ -6369,13 +7549,13 @@ module StackOne
|
|
6369
7549
|
response: http_response
|
6370
7550
|
)
|
6371
7551
|
response_data = http_response.env.response_body
|
6372
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6373
|
-
response = Models::Operations::
|
7552
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::DepartmentResult)
|
7553
|
+
response = Models::Operations::AtsGetDepartmentResponse.new(
|
6374
7554
|
status_code: http_response.status,
|
6375
7555
|
content_type: content_type,
|
6376
7556
|
raw_response: http_response,
|
6377
7557
|
headers: {},
|
6378
|
-
|
7558
|
+
department_result: T.unsafe(obj)
|
6379
7559
|
)
|
6380
7560
|
|
6381
7561
|
return response
|
@@ -6561,20 +7741,20 @@ module StackOne
|
|
6561
7741
|
end
|
6562
7742
|
|
6563
7743
|
|
6564
|
-
sig { params(request: Models::Operations::
|
6565
|
-
def
|
6566
|
-
#
|
7744
|
+
sig { params(request: Models::Operations::AtsGetInterviewRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetInterviewResponse) }
|
7745
|
+
def get_interview(request:, retries: nil, timeout_ms: nil)
|
7746
|
+
# get_interview - Get Interview
|
6567
7747
|
url, params = @sdk_configuration.get_server_details
|
6568
7748
|
base_url = Utils.template_url(url, params)
|
6569
7749
|
url = Utils.generate_url(
|
6570
|
-
Models::Operations::
|
7750
|
+
Models::Operations::AtsGetInterviewRequest,
|
6571
7751
|
base_url,
|
6572
|
-
'/unified/ats/
|
7752
|
+
'/unified/ats/interviews/{id}',
|
6573
7753
|
request
|
6574
7754
|
)
|
6575
7755
|
headers = Utils.get_headers(request)
|
6576
7756
|
headers = T.cast(headers, T::Hash[String, String])
|
6577
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7757
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetInterviewRequest, request, nil)
|
6578
7758
|
headers['Accept'] = 'application/json'
|
6579
7759
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6580
7760
|
retries ||= @sdk_configuration.retry_config
|
@@ -6604,7 +7784,7 @@ module StackOne
|
|
6604
7784
|
config: @sdk_configuration,
|
6605
7785
|
base_url: base_url,
|
6606
7786
|
oauth2_scopes: [],
|
6607
|
-
operation_id: '
|
7787
|
+
operation_id: 'ats_get_interview',
|
6608
7788
|
security_source: @sdk_configuration.security_source
|
6609
7789
|
)
|
6610
7790
|
|
@@ -6662,13 +7842,13 @@ module StackOne
|
|
6662
7842
|
response: http_response
|
6663
7843
|
)
|
6664
7844
|
response_data = http_response.env.response_body
|
6665
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6666
|
-
response = Models::Operations::
|
7845
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InterviewsResult)
|
7846
|
+
response = Models::Operations::AtsGetInterviewResponse.new(
|
6667
7847
|
status_code: http_response.status,
|
6668
7848
|
content_type: content_type,
|
6669
7849
|
raw_response: http_response,
|
6670
7850
|
headers: {},
|
6671
|
-
|
7851
|
+
interviews_result: T.unsafe(obj)
|
6672
7852
|
)
|
6673
7853
|
|
6674
7854
|
return response
|
@@ -6854,20 +8034,22 @@ module StackOne
|
|
6854
8034
|
end
|
6855
8035
|
|
6856
8036
|
|
6857
|
-
sig { params(request: Models::Operations::
|
6858
|
-
def
|
6859
|
-
#
|
8037
|
+
sig { params(request: Models::Operations::AtsGetInterviewStageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetInterviewStageResponse) }
|
8038
|
+
def get_interview_stage(request:, retries: nil, timeout_ms: nil)
|
8039
|
+
# get_interview_stage - Get Interview Stage
|
8040
|
+
#
|
8041
|
+
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
6860
8042
|
url, params = @sdk_configuration.get_server_details
|
6861
8043
|
base_url = Utils.template_url(url, params)
|
6862
8044
|
url = Utils.generate_url(
|
6863
|
-
Models::Operations::
|
8045
|
+
Models::Operations::AtsGetInterviewStageRequest,
|
6864
8046
|
base_url,
|
6865
|
-
'/unified/ats/
|
8047
|
+
'/unified/ats/interview_stages/{id}',
|
6866
8048
|
request
|
6867
8049
|
)
|
6868
8050
|
headers = Utils.get_headers(request)
|
6869
8051
|
headers = T.cast(headers, T::Hash[String, String])
|
6870
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8052
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetInterviewStageRequest, request, nil)
|
6871
8053
|
headers['Accept'] = 'application/json'
|
6872
8054
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6873
8055
|
retries ||= @sdk_configuration.retry_config
|
@@ -6897,7 +8079,7 @@ module StackOne
|
|
6897
8079
|
config: @sdk_configuration,
|
6898
8080
|
base_url: base_url,
|
6899
8081
|
oauth2_scopes: [],
|
6900
|
-
operation_id: '
|
8082
|
+
operation_id: 'ats_get_interview_stage',
|
6901
8083
|
security_source: @sdk_configuration.security_source
|
6902
8084
|
)
|
6903
8085
|
|
@@ -6955,13 +8137,13 @@ module StackOne
|
|
6955
8137
|
response: http_response
|
6956
8138
|
)
|
6957
8139
|
response_data = http_response.env.response_body
|
6958
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6959
|
-
response = Models::Operations::
|
8140
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InterviewStageResult)
|
8141
|
+
response = Models::Operations::AtsGetInterviewStageResponse.new(
|
6960
8142
|
status_code: http_response.status,
|
6961
8143
|
content_type: content_type,
|
6962
8144
|
raw_response: http_response,
|
6963
8145
|
headers: {},
|
6964
|
-
|
8146
|
+
interview_stage_result: T.unsafe(obj)
|
6965
8147
|
)
|
6966
8148
|
|
6967
8149
|
return response
|
@@ -7147,20 +8329,20 @@ module StackOne
|
|
7147
8329
|
end
|
7148
8330
|
|
7149
8331
|
|
7150
|
-
sig { params(request: Models::Operations::
|
7151
|
-
def
|
7152
|
-
#
|
8332
|
+
sig { params(request: Models::Operations::AtsGetJobRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobResponse) }
|
8333
|
+
def get_job(request:, retries: nil, timeout_ms: nil)
|
8334
|
+
# get_job - Get Job
|
7153
8335
|
url, params = @sdk_configuration.get_server_details
|
7154
8336
|
base_url = Utils.template_url(url, params)
|
7155
8337
|
url = Utils.generate_url(
|
7156
|
-
Models::Operations::
|
8338
|
+
Models::Operations::AtsGetJobRequest,
|
7157
8339
|
base_url,
|
7158
|
-
'/unified/ats/
|
8340
|
+
'/unified/ats/jobs/{id}',
|
7159
8341
|
request
|
7160
8342
|
)
|
7161
8343
|
headers = Utils.get_headers(request)
|
7162
8344
|
headers = T.cast(headers, T::Hash[String, String])
|
7163
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8345
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobRequest, request, nil)
|
7164
8346
|
headers['Accept'] = 'application/json'
|
7165
8347
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7166
8348
|
retries ||= @sdk_configuration.retry_config
|
@@ -7190,7 +8372,7 @@ module StackOne
|
|
7190
8372
|
config: @sdk_configuration,
|
7191
8373
|
base_url: base_url,
|
7192
8374
|
oauth2_scopes: [],
|
7193
|
-
operation_id: '
|
8375
|
+
operation_id: 'ats_get_job',
|
7194
8376
|
security_source: @sdk_configuration.security_source
|
7195
8377
|
)
|
7196
8378
|
|
@@ -7248,13 +8430,13 @@ module StackOne
|
|
7248
8430
|
response: http_response
|
7249
8431
|
)
|
7250
8432
|
response_data = http_response.env.response_body
|
7251
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7252
|
-
response = Models::Operations::
|
8433
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AtsJobResult)
|
8434
|
+
response = Models::Operations::AtsGetJobResponse.new(
|
7253
8435
|
status_code: http_response.status,
|
7254
8436
|
content_type: content_type,
|
7255
8437
|
raw_response: http_response,
|
7256
8438
|
headers: {},
|
7257
|
-
|
8439
|
+
ats_job_result: T.unsafe(obj)
|
7258
8440
|
)
|
7259
8441
|
|
7260
8442
|
return response
|
@@ -7440,20 +8622,20 @@ module StackOne
|
|
7440
8622
|
end
|
7441
8623
|
|
7442
8624
|
|
7443
|
-
sig { params(request: Models::Operations::
|
7444
|
-
def
|
7445
|
-
#
|
8625
|
+
sig { params(request: Models::Operations::AtsGetJobApplicationStageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobApplicationStageResponse) }
|
8626
|
+
def get_job_application_stage(request:, retries: nil, timeout_ms: nil)
|
8627
|
+
# get_job_application_stage - Get Job Application Stage
|
7446
8628
|
url, params = @sdk_configuration.get_server_details
|
7447
8629
|
base_url = Utils.template_url(url, params)
|
7448
8630
|
url = Utils.generate_url(
|
7449
|
-
Models::Operations::
|
8631
|
+
Models::Operations::AtsGetJobApplicationStageRequest,
|
7450
8632
|
base_url,
|
7451
|
-
'/unified/ats/jobs/{id}',
|
8633
|
+
'/unified/ats/jobs/{id}/application_stages/{subResourceId}',
|
7452
8634
|
request
|
7453
8635
|
)
|
7454
8636
|
headers = Utils.get_headers(request)
|
7455
8637
|
headers = T.cast(headers, T::Hash[String, String])
|
7456
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8638
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobApplicationStageRequest, request, nil)
|
7457
8639
|
headers['Accept'] = 'application/json'
|
7458
8640
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7459
8641
|
retries ||= @sdk_configuration.retry_config
|
@@ -7483,7 +8665,7 @@ module StackOne
|
|
7483
8665
|
config: @sdk_configuration,
|
7484
8666
|
base_url: base_url,
|
7485
8667
|
oauth2_scopes: [],
|
7486
|
-
operation_id: '
|
8668
|
+
operation_id: 'ats_get_job_application_stage',
|
7487
8669
|
security_source: @sdk_configuration.security_source
|
7488
8670
|
)
|
7489
8671
|
|
@@ -7541,13 +8723,13 @@ module StackOne
|
|
7541
8723
|
response: http_response
|
7542
8724
|
)
|
7543
8725
|
response_data = http_response.env.response_body
|
7544
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7545
|
-
response = Models::Operations::
|
8726
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ApplicationStageResult)
|
8727
|
+
response = Models::Operations::AtsGetJobApplicationStageResponse.new(
|
7546
8728
|
status_code: http_response.status,
|
7547
8729
|
content_type: content_type,
|
7548
8730
|
raw_response: http_response,
|
7549
8731
|
headers: {},
|
7550
|
-
|
8732
|
+
application_stage_result: T.unsafe(obj)
|
7551
8733
|
)
|
7552
8734
|
|
7553
8735
|
return response
|
@@ -7733,20 +8915,20 @@ module StackOne
|
|
7733
8915
|
end
|
7734
8916
|
|
7735
8917
|
|
7736
|
-
sig { params(request: Models::Operations::
|
7737
|
-
def
|
7738
|
-
#
|
8918
|
+
sig { params(request: Models::Operations::AtsGetJobCustomFieldDefinitionRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobCustomFieldDefinitionResponse) }
|
8919
|
+
def get_job_custom_field_definition(request:, retries: nil, timeout_ms: nil)
|
8920
|
+
# get_job_custom_field_definition - Get Job Custom Field Definition
|
7739
8921
|
url, params = @sdk_configuration.get_server_details
|
7740
8922
|
base_url = Utils.template_url(url, params)
|
7741
8923
|
url = Utils.generate_url(
|
7742
|
-
Models::Operations::
|
8924
|
+
Models::Operations::AtsGetJobCustomFieldDefinitionRequest,
|
7743
8925
|
base_url,
|
7744
|
-
'/unified/ats/jobs/{id}
|
8926
|
+
'/unified/ats/custom_field_definitions/jobs/{id}',
|
7745
8927
|
request
|
7746
8928
|
)
|
7747
8929
|
headers = Utils.get_headers(request)
|
7748
8930
|
headers = T.cast(headers, T::Hash[String, String])
|
7749
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8931
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobCustomFieldDefinitionRequest, request, nil)
|
7750
8932
|
headers['Accept'] = 'application/json'
|
7751
8933
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7752
8934
|
retries ||= @sdk_configuration.retry_config
|
@@ -7776,7 +8958,7 @@ module StackOne
|
|
7776
8958
|
config: @sdk_configuration,
|
7777
8959
|
base_url: base_url,
|
7778
8960
|
oauth2_scopes: [],
|
7779
|
-
operation_id: '
|
8961
|
+
operation_id: 'ats_get_job_custom_field_definition',
|
7780
8962
|
security_source: @sdk_configuration.security_source
|
7781
8963
|
)
|
7782
8964
|
|
@@ -7834,13 +9016,13 @@ module StackOne
|
|
7834
9016
|
response: http_response
|
7835
9017
|
)
|
7836
9018
|
response_data = http_response.env.response_body
|
7837
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7838
|
-
response = Models::Operations::
|
9019
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CustomFieldDefinitionResultApiModel)
|
9020
|
+
response = Models::Operations::AtsGetJobCustomFieldDefinitionResponse.new(
|
7839
9021
|
status_code: http_response.status,
|
7840
9022
|
content_type: content_type,
|
7841
9023
|
raw_response: http_response,
|
7842
9024
|
headers: {},
|
7843
|
-
|
9025
|
+
custom_field_definition_result_api_model: T.unsafe(obj)
|
7844
9026
|
)
|
7845
9027
|
|
7846
9028
|
return response
|
@@ -8026,20 +9208,20 @@ module StackOne
|
|
8026
9208
|
end
|
8027
9209
|
|
8028
9210
|
|
8029
|
-
sig { params(request: Models::Operations::
|
8030
|
-
def
|
8031
|
-
#
|
9211
|
+
sig { params(request: Models::Operations::AtsGetJobPostingRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobPostingResponse) }
|
9212
|
+
def get_job_posting(request:, retries: nil, timeout_ms: nil)
|
9213
|
+
# get_job_posting - Get Job Posting
|
8032
9214
|
url, params = @sdk_configuration.get_server_details
|
8033
9215
|
base_url = Utils.template_url(url, params)
|
8034
9216
|
url = Utils.generate_url(
|
8035
|
-
Models::Operations::
|
9217
|
+
Models::Operations::AtsGetJobPostingRequest,
|
8036
9218
|
base_url,
|
8037
|
-
'/unified/ats/
|
9219
|
+
'/unified/ats/job_postings/{id}',
|
8038
9220
|
request
|
8039
9221
|
)
|
8040
9222
|
headers = Utils.get_headers(request)
|
8041
9223
|
headers = T.cast(headers, T::Hash[String, String])
|
8042
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9224
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobPostingRequest, request, nil)
|
8043
9225
|
headers['Accept'] = 'application/json'
|
8044
9226
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8045
9227
|
retries ||= @sdk_configuration.retry_config
|
@@ -8069,7 +9251,7 @@ module StackOne
|
|
8069
9251
|
config: @sdk_configuration,
|
8070
9252
|
base_url: base_url,
|
8071
9253
|
oauth2_scopes: [],
|
8072
|
-
operation_id: '
|
9254
|
+
operation_id: 'ats_get_job_posting',
|
8073
9255
|
security_source: @sdk_configuration.security_source
|
8074
9256
|
)
|
8075
9257
|
|
@@ -8127,13 +9309,13 @@ module StackOne
|
|
8127
9309
|
response: http_response
|
8128
9310
|
)
|
8129
9311
|
response_data = http_response.env.response_body
|
8130
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8131
|
-
response = Models::Operations::
|
9312
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::JobPostingResult)
|
9313
|
+
response = Models::Operations::AtsGetJobPostingResponse.new(
|
8132
9314
|
status_code: http_response.status,
|
8133
9315
|
content_type: content_type,
|
8134
9316
|
raw_response: http_response,
|
8135
9317
|
headers: {},
|
8136
|
-
|
9318
|
+
job_posting_result: T.unsafe(obj)
|
8137
9319
|
)
|
8138
9320
|
|
8139
9321
|
return response
|
@@ -8319,20 +9501,20 @@ module StackOne
|
|
8319
9501
|
end
|
8320
9502
|
|
8321
9503
|
|
8322
|
-
sig { params(request: Models::Operations::
|
8323
|
-
def
|
8324
|
-
#
|
9504
|
+
sig { params(request: Models::Operations::AtsGetListRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetListResponse) }
|
9505
|
+
def get_list(request:, retries: nil, timeout_ms: nil)
|
9506
|
+
# get_list - Get List
|
8325
9507
|
url, params = @sdk_configuration.get_server_details
|
8326
9508
|
base_url = Utils.template_url(url, params)
|
8327
9509
|
url = Utils.generate_url(
|
8328
|
-
Models::Operations::
|
9510
|
+
Models::Operations::AtsGetListRequest,
|
8329
9511
|
base_url,
|
8330
|
-
'/unified/ats/
|
9512
|
+
'/unified/ats/lists/{id}',
|
8331
9513
|
request
|
8332
9514
|
)
|
8333
9515
|
headers = Utils.get_headers(request)
|
8334
9516
|
headers = T.cast(headers, T::Hash[String, String])
|
8335
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9517
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetListRequest, request, nil)
|
8336
9518
|
headers['Accept'] = 'application/json'
|
8337
9519
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8338
9520
|
retries ||= @sdk_configuration.retry_config
|
@@ -8362,7 +9544,7 @@ module StackOne
|
|
8362
9544
|
config: @sdk_configuration,
|
8363
9545
|
base_url: base_url,
|
8364
9546
|
oauth2_scopes: [],
|
8365
|
-
operation_id: '
|
9547
|
+
operation_id: 'ats_get_list',
|
8366
9548
|
security_source: @sdk_configuration.security_source
|
8367
9549
|
)
|
8368
9550
|
|
@@ -8420,13 +9602,13 @@ module StackOne
|
|
8420
9602
|
response: http_response
|
8421
9603
|
)
|
8422
9604
|
response_data = http_response.env.response_body
|
8423
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8424
|
-
response = Models::Operations::
|
9605
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ListResult)
|
9606
|
+
response = Models::Operations::AtsGetListResponse.new(
|
8425
9607
|
status_code: http_response.status,
|
8426
9608
|
content_type: content_type,
|
8427
9609
|
raw_response: http_response,
|
8428
9610
|
headers: {},
|
8429
|
-
|
9611
|
+
list_result: T.unsafe(obj)
|
8430
9612
|
)
|
8431
9613
|
|
8432
9614
|
return response
|
@@ -8612,20 +9794,20 @@ module StackOne
|
|
8612
9794
|
end
|
8613
9795
|
|
8614
9796
|
|
8615
|
-
sig { params(request: Models::Operations::
|
8616
|
-
def
|
8617
|
-
#
|
9797
|
+
sig { params(request: Models::Operations::AtsGetLocationRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetLocationResponse) }
|
9798
|
+
def get_location(request:, retries: nil, timeout_ms: nil)
|
9799
|
+
# get_location - Get Location
|
8618
9800
|
url, params = @sdk_configuration.get_server_details
|
8619
9801
|
base_url = Utils.template_url(url, params)
|
8620
9802
|
url = Utils.generate_url(
|
8621
|
-
Models::Operations::
|
9803
|
+
Models::Operations::AtsGetLocationRequest,
|
8622
9804
|
base_url,
|
8623
|
-
'/unified/ats/
|
9805
|
+
'/unified/ats/locations/{id}',
|
8624
9806
|
request
|
8625
9807
|
)
|
8626
9808
|
headers = Utils.get_headers(request)
|
8627
9809
|
headers = T.cast(headers, T::Hash[String, String])
|
8628
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9810
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetLocationRequest, request, nil)
|
8629
9811
|
headers['Accept'] = 'application/json'
|
8630
9812
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8631
9813
|
retries ||= @sdk_configuration.retry_config
|
@@ -8655,7 +9837,7 @@ module StackOne
|
|
8655
9837
|
config: @sdk_configuration,
|
8656
9838
|
base_url: base_url,
|
8657
9839
|
oauth2_scopes: [],
|
8658
|
-
operation_id: '
|
9840
|
+
operation_id: 'ats_get_location',
|
8659
9841
|
security_source: @sdk_configuration.security_source
|
8660
9842
|
)
|
8661
9843
|
|
@@ -8713,13 +9895,13 @@ module StackOne
|
|
8713
9895
|
response: http_response
|
8714
9896
|
)
|
8715
9897
|
response_data = http_response.env.response_body
|
8716
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8717
|
-
response = Models::Operations::
|
9898
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ATSLocationResult)
|
9899
|
+
response = Models::Operations::AtsGetLocationResponse.new(
|
8718
9900
|
status_code: http_response.status,
|
8719
9901
|
content_type: content_type,
|
8720
9902
|
raw_response: http_response,
|
8721
9903
|
headers: {},
|
8722
|
-
|
9904
|
+
ats_location_result: T.unsafe(obj)
|
8723
9905
|
)
|
8724
9906
|
|
8725
9907
|
return response
|
@@ -8905,20 +10087,20 @@ module StackOne
|
|
8905
10087
|
end
|
8906
10088
|
|
8907
10089
|
|
8908
|
-
sig { params(request: Models::Operations::
|
8909
|
-
def
|
8910
|
-
#
|
10090
|
+
sig { params(request: Models::Operations::AtsGetOfferRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetOfferResponse) }
|
10091
|
+
def get_offer(request:, retries: nil, timeout_ms: nil)
|
10092
|
+
# get_offer - Get Offer
|
8911
10093
|
url, params = @sdk_configuration.get_server_details
|
8912
10094
|
base_url = Utils.template_url(url, params)
|
8913
10095
|
url = Utils.generate_url(
|
8914
|
-
Models::Operations::
|
10096
|
+
Models::Operations::AtsGetOfferRequest,
|
8915
10097
|
base_url,
|
8916
|
-
'/unified/ats/
|
10098
|
+
'/unified/ats/offers/{id}',
|
8917
10099
|
request
|
8918
10100
|
)
|
8919
10101
|
headers = Utils.get_headers(request)
|
8920
10102
|
headers = T.cast(headers, T::Hash[String, String])
|
8921
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10103
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetOfferRequest, request, nil)
|
8922
10104
|
headers['Accept'] = 'application/json'
|
8923
10105
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8924
10106
|
retries ||= @sdk_configuration.retry_config
|
@@ -8948,7 +10130,7 @@ module StackOne
|
|
8948
10130
|
config: @sdk_configuration,
|
8949
10131
|
base_url: base_url,
|
8950
10132
|
oauth2_scopes: [],
|
8951
|
-
operation_id: '
|
10133
|
+
operation_id: 'ats_get_offer',
|
8952
10134
|
security_source: @sdk_configuration.security_source
|
8953
10135
|
)
|
8954
10136
|
|
@@ -9006,13 +10188,13 @@ module StackOne
|
|
9006
10188
|
response: http_response
|
9007
10189
|
)
|
9008
10190
|
response_data = http_response.env.response_body
|
9009
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9010
|
-
response = Models::Operations::
|
10191
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::OffersResult)
|
10192
|
+
response = Models::Operations::AtsGetOfferResponse.new(
|
9011
10193
|
status_code: http_response.status,
|
9012
10194
|
content_type: content_type,
|
9013
10195
|
raw_response: http_response,
|
9014
10196
|
headers: {},
|
9015
|
-
|
10197
|
+
offers_result: T.unsafe(obj)
|
9016
10198
|
)
|
9017
10199
|
|
9018
10200
|
return response
|
@@ -9198,20 +10380,20 @@ module StackOne
|
|
9198
10380
|
end
|
9199
10381
|
|
9200
10382
|
|
9201
|
-
sig { params(request: Models::Operations::
|
9202
|
-
def
|
9203
|
-
#
|
10383
|
+
sig { params(request: Models::Operations::AtsGetRejectedReasonRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetRejectedReasonResponse) }
|
10384
|
+
def get_rejected_reason(request:, retries: nil, timeout_ms: nil)
|
10385
|
+
# get_rejected_reason - Get Rejected Reason
|
9204
10386
|
url, params = @sdk_configuration.get_server_details
|
9205
10387
|
base_url = Utils.template_url(url, params)
|
9206
10388
|
url = Utils.generate_url(
|
9207
|
-
Models::Operations::
|
10389
|
+
Models::Operations::AtsGetRejectedReasonRequest,
|
9208
10390
|
base_url,
|
9209
|
-
'/unified/ats/
|
10391
|
+
'/unified/ats/rejected_reasons/{id}',
|
9210
10392
|
request
|
9211
10393
|
)
|
9212
10394
|
headers = Utils.get_headers(request)
|
9213
10395
|
headers = T.cast(headers, T::Hash[String, String])
|
9214
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10396
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetRejectedReasonRequest, request, nil)
|
9215
10397
|
headers['Accept'] = 'application/json'
|
9216
10398
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9217
10399
|
retries ||= @sdk_configuration.retry_config
|
@@ -9241,7 +10423,7 @@ module StackOne
|
|
9241
10423
|
config: @sdk_configuration,
|
9242
10424
|
base_url: base_url,
|
9243
10425
|
oauth2_scopes: [],
|
9244
|
-
operation_id: '
|
10426
|
+
operation_id: 'ats_get_rejected_reason',
|
9245
10427
|
security_source: @sdk_configuration.security_source
|
9246
10428
|
)
|
9247
10429
|
|
@@ -9299,13 +10481,13 @@ module StackOne
|
|
9299
10481
|
response: http_response
|
9300
10482
|
)
|
9301
10483
|
response_data = http_response.env.response_body
|
9302
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9303
|
-
response = Models::Operations::
|
10484
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::RejectedReasonResult)
|
10485
|
+
response = Models::Operations::AtsGetRejectedReasonResponse.new(
|
9304
10486
|
status_code: http_response.status,
|
9305
10487
|
content_type: content_type,
|
9306
10488
|
raw_response: http_response,
|
9307
10489
|
headers: {},
|
9308
|
-
|
10490
|
+
rejected_reason_result: T.unsafe(obj)
|
9309
10491
|
)
|
9310
10492
|
|
9311
10493
|
return response
|
@@ -9491,20 +10673,20 @@ module StackOne
|
|
9491
10673
|
end
|
9492
10674
|
|
9493
10675
|
|
9494
|
-
sig { params(request: Models::Operations::
|
9495
|
-
def
|
9496
|
-
#
|
10676
|
+
sig { params(request: Models::Operations::AtsGetUserRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetUserResponse) }
|
10677
|
+
def get_user(request:, retries: nil, timeout_ms: nil)
|
10678
|
+
# get_user - Get User
|
9497
10679
|
url, params = @sdk_configuration.get_server_details
|
9498
10680
|
base_url = Utils.template_url(url, params)
|
9499
10681
|
url = Utils.generate_url(
|
9500
|
-
Models::Operations::
|
10682
|
+
Models::Operations::AtsGetUserRequest,
|
9501
10683
|
base_url,
|
9502
|
-
'/unified/ats/
|
10684
|
+
'/unified/ats/users/{id}',
|
9503
10685
|
request
|
9504
10686
|
)
|
9505
10687
|
headers = Utils.get_headers(request)
|
9506
10688
|
headers = T.cast(headers, T::Hash[String, String])
|
9507
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10689
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetUserRequest, request, nil)
|
9508
10690
|
headers['Accept'] = 'application/json'
|
9509
10691
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9510
10692
|
retries ||= @sdk_configuration.retry_config
|
@@ -9534,7 +10716,7 @@ module StackOne
|
|
9534
10716
|
config: @sdk_configuration,
|
9535
10717
|
base_url: base_url,
|
9536
10718
|
oauth2_scopes: [],
|
9537
|
-
operation_id: '
|
10719
|
+
operation_id: 'ats_get_user',
|
9538
10720
|
security_source: @sdk_configuration.security_source
|
9539
10721
|
)
|
9540
10722
|
|
@@ -9592,13 +10774,13 @@ module StackOne
|
|
9592
10774
|
response: http_response
|
9593
10775
|
)
|
9594
10776
|
response_data = http_response.env.response_body
|
9595
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9596
|
-
response = Models::Operations::
|
10777
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::UserResult)
|
10778
|
+
response = Models::Operations::AtsGetUserResponse.new(
|
9597
10779
|
status_code: http_response.status,
|
9598
10780
|
content_type: content_type,
|
9599
10781
|
raw_response: http_response,
|
9600
10782
|
headers: {},
|
9601
|
-
|
10783
|
+
user_result: T.unsafe(obj)
|
9602
10784
|
)
|
9603
10785
|
|
9604
10786
|
return response
|
@@ -9784,20 +10966,20 @@ module StackOne
|
|
9784
10966
|
end
|
9785
10967
|
|
9786
10968
|
|
9787
|
-
sig { params(request: Models::Operations::
|
9788
|
-
def
|
9789
|
-
#
|
10969
|
+
sig { params(request: Models::Operations::AtsListApplicationChangesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationChangesResponse) }
|
10970
|
+
def list_application_changes(request:, retries: nil, timeout_ms: nil)
|
10971
|
+
# list_application_changes - List Application Changes
|
9790
10972
|
url, params = @sdk_configuration.get_server_details
|
9791
10973
|
base_url = Utils.template_url(url, params)
|
9792
10974
|
url = Utils.generate_url(
|
9793
|
-
Models::Operations::
|
10975
|
+
Models::Operations::AtsListApplicationChangesRequest,
|
9794
10976
|
base_url,
|
9795
|
-
'/unified/ats/
|
10977
|
+
'/unified/ats/applications/{id}/changes',
|
9796
10978
|
request
|
9797
10979
|
)
|
9798
10980
|
headers = Utils.get_headers(request)
|
9799
10981
|
headers = T.cast(headers, T::Hash[String, String])
|
9800
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10982
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationChangesRequest, request, nil)
|
9801
10983
|
headers['Accept'] = 'application/json'
|
9802
10984
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9803
10985
|
retries ||= @sdk_configuration.retry_config
|
@@ -9827,7 +11009,7 @@ module StackOne
|
|
9827
11009
|
config: @sdk_configuration,
|
9828
11010
|
base_url: base_url,
|
9829
11011
|
oauth2_scopes: [],
|
9830
|
-
operation_id: '
|
11012
|
+
operation_id: 'ats_list_application_changes',
|
9831
11013
|
security_source: @sdk_configuration.security_source
|
9832
11014
|
)
|
9833
11015
|
|
@@ -9885,14 +11067,41 @@ module StackOne
|
|
9885
11067
|
response: http_response
|
9886
11068
|
)
|
9887
11069
|
response_data = http_response.env.response_body
|
9888
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9889
|
-
response = Models::Operations::
|
11070
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ApplicationChangesPaginated)
|
11071
|
+
response = Models::Operations::AtsListApplicationChangesResponse.new(
|
9890
11072
|
status_code: http_response.status,
|
9891
11073
|
content_type: content_type,
|
9892
11074
|
raw_response: http_response,
|
9893
11075
|
headers: {},
|
9894
|
-
|
11076
|
+
application_changes_paginated: T.unsafe(obj)
|
9895
11077
|
)
|
11078
|
+
sdk = self
|
11079
|
+
|
11080
|
+
response.next_page = proc do
|
11081
|
+
next_cursor = Janeway.enum_for('$.next', JSON.parse(response_data)).search
|
11082
|
+
if next_cursor.nil?
|
11083
|
+
next nil
|
11084
|
+
else
|
11085
|
+
next_cursor = next_cursor[0]
|
11086
|
+
if next_cursor.nil?
|
11087
|
+
next nil
|
11088
|
+
end
|
11089
|
+
end
|
11090
|
+
|
11091
|
+
sdk.list_application_changes(
|
11092
|
+
request: Models::Operations::AtsListApplicationChangesRequest.new(
|
11093
|
+
fields_: request.fields_,
|
11094
|
+
filter: request.filter,
|
11095
|
+
id: request.id,
|
11096
|
+
next_: next_cursor,
|
11097
|
+
page_size: request.page_size,
|
11098
|
+
proxy: request.proxy,
|
11099
|
+
raw: request.raw,
|
11100
|
+
x_account_id: request.x_account_id
|
11101
|
+
)
|
11102
|
+
)
|
11103
|
+
end
|
11104
|
+
|
9896
11105
|
|
9897
11106
|
return response
|
9898
11107
|
else
|
@@ -10077,20 +11286,15 @@ module StackOne
|
|
10077
11286
|
end
|
10078
11287
|
|
10079
11288
|
|
10080
|
-
sig { params(request: Models::Operations::
|
10081
|
-
def
|
10082
|
-
#
|
11289
|
+
sig { params(request: Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse) }
|
11290
|
+
def list_application_custom_field_definitions(request:, retries: nil, timeout_ms: nil)
|
11291
|
+
# list_application_custom_field_definitions - List Application Custom Field Definitions
|
10083
11292
|
url, params = @sdk_configuration.get_server_details
|
10084
11293
|
base_url = Utils.template_url(url, params)
|
10085
|
-
url =
|
10086
|
-
Models::Operations::AtsListApplicationChangesRequest,
|
10087
|
-
base_url,
|
10088
|
-
'/unified/ats/applications/{id}/changes',
|
10089
|
-
request
|
10090
|
-
)
|
11294
|
+
url = "#{base_url}/unified/ats/custom_field_definitions/applications"
|
10091
11295
|
headers = Utils.get_headers(request)
|
10092
11296
|
headers = T.cast(headers, T::Hash[String, String])
|
10093
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11297
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest, request, nil)
|
10094
11298
|
headers['Accept'] = 'application/json'
|
10095
11299
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10096
11300
|
retries ||= @sdk_configuration.retry_config
|
@@ -10120,7 +11324,7 @@ module StackOne
|
|
10120
11324
|
config: @sdk_configuration,
|
10121
11325
|
base_url: base_url,
|
10122
11326
|
oauth2_scopes: [],
|
10123
|
-
operation_id: '
|
11327
|
+
operation_id: 'ats_list_application_custom_field_definitions',
|
10124
11328
|
security_source: @sdk_configuration.security_source
|
10125
11329
|
)
|
10126
11330
|
|
@@ -10178,13 +11382,13 @@ module StackOne
|
|
10178
11382
|
response: http_response
|
10179
11383
|
)
|
10180
11384
|
response_data = http_response.env.response_body
|
10181
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10182
|
-
response = Models::Operations::
|
11385
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CustomFieldDefinitionsPaginated)
|
11386
|
+
response = Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse.new(
|
10183
11387
|
status_code: http_response.status,
|
10184
11388
|
content_type: content_type,
|
10185
11389
|
raw_response: http_response,
|
10186
11390
|
headers: {},
|
10187
|
-
|
11391
|
+
custom_field_definitions_paginated: T.unsafe(obj)
|
10188
11392
|
)
|
10189
11393
|
sdk = self
|
10190
11394
|
|
@@ -10199,15 +11403,16 @@ module StackOne
|
|
10199
11403
|
end
|
10200
11404
|
end
|
10201
11405
|
|
10202
|
-
sdk.
|
10203
|
-
request: Models::Operations::
|
11406
|
+
sdk.list_application_custom_field_definitions(
|
11407
|
+
request: Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest.new(
|
10204
11408
|
fields_: request.fields_,
|
10205
11409
|
filter: request.filter,
|
10206
|
-
id: request.id,
|
10207
11410
|
next_: next_cursor,
|
11411
|
+
page: request.page,
|
10208
11412
|
page_size: request.page_size,
|
10209
11413
|
proxy: request.proxy,
|
10210
11414
|
raw: request.raw,
|
11415
|
+
updated_after: request.updated_after,
|
10211
11416
|
x_account_id: request.x_account_id
|
10212
11417
|
)
|
10213
11418
|
)
|
@@ -10397,15 +11602,15 @@ module StackOne
|
|
10397
11602
|
end
|
10398
11603
|
|
10399
11604
|
|
10400
|
-
sig { params(request: Models::Operations::
|
10401
|
-
def
|
10402
|
-
#
|
11605
|
+
sig { params(request: Models::Operations::AtsListApplicationDocumentCategoriesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationDocumentCategoriesResponse) }
|
11606
|
+
def list_application_document_categories(request:, retries: nil, timeout_ms: nil)
|
11607
|
+
# list_application_document_categories - List Application Document Categories
|
10403
11608
|
url, params = @sdk_configuration.get_server_details
|
10404
11609
|
base_url = Utils.template_url(url, params)
|
10405
|
-
url = "#{base_url}/unified/ats/
|
11610
|
+
url = "#{base_url}/unified/ats/documents/application_categories"
|
10406
11611
|
headers = Utils.get_headers(request)
|
10407
11612
|
headers = T.cast(headers, T::Hash[String, String])
|
10408
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11613
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationDocumentCategoriesRequest, request, nil)
|
10409
11614
|
headers['Accept'] = 'application/json'
|
10410
11615
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10411
11616
|
retries ||= @sdk_configuration.retry_config
|
@@ -10435,7 +11640,7 @@ module StackOne
|
|
10435
11640
|
config: @sdk_configuration,
|
10436
11641
|
base_url: base_url,
|
10437
11642
|
oauth2_scopes: [],
|
10438
|
-
operation_id: '
|
11643
|
+
operation_id: 'ats_list_application_document_categories',
|
10439
11644
|
security_source: @sdk_configuration.security_source
|
10440
11645
|
)
|
10441
11646
|
|
@@ -10493,13 +11698,13 @@ module StackOne
|
|
10493
11698
|
response: http_response
|
10494
11699
|
)
|
10495
11700
|
response_data = http_response.env.response_body
|
10496
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10497
|
-
response = Models::Operations::
|
11701
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ReferencePaginated)
|
11702
|
+
response = Models::Operations::AtsListApplicationDocumentCategoriesResponse.new(
|
10498
11703
|
status_code: http_response.status,
|
10499
11704
|
content_type: content_type,
|
10500
11705
|
raw_response: http_response,
|
10501
11706
|
headers: {},
|
10502
|
-
|
11707
|
+
reference_paginated: T.unsafe(obj)
|
10503
11708
|
)
|
10504
11709
|
sdk = self
|
10505
11710
|
|
@@ -10514,8 +11719,8 @@ module StackOne
|
|
10514
11719
|
end
|
10515
11720
|
end
|
10516
11721
|
|
10517
|
-
sdk.
|
10518
|
-
request: Models::Operations::
|
11722
|
+
sdk.list_application_document_categories(
|
11723
|
+
request: Models::Operations::AtsListApplicationDocumentCategoriesRequest.new(
|
10519
11724
|
fields_: request.fields_,
|
10520
11725
|
filter: request.filter,
|
10521
11726
|
next_: next_cursor,
|
@@ -10713,15 +11918,20 @@ module StackOne
|
|
10713
11918
|
end
|
10714
11919
|
|
10715
11920
|
|
10716
|
-
sig { params(request: Models::Operations::
|
10717
|
-
def
|
10718
|
-
#
|
11921
|
+
sig { params(request: Models::Operations::AtsListApplicationDocumentsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationDocumentsResponse) }
|
11922
|
+
def list_application_documents(request:, retries: nil, timeout_ms: nil)
|
11923
|
+
# list_application_documents - List Application Documents
|
10719
11924
|
url, params = @sdk_configuration.get_server_details
|
10720
11925
|
base_url = Utils.template_url(url, params)
|
10721
|
-
url =
|
11926
|
+
url = Utils.generate_url(
|
11927
|
+
Models::Operations::AtsListApplicationDocumentsRequest,
|
11928
|
+
base_url,
|
11929
|
+
'/unified/ats/applications/{id}/documents',
|
11930
|
+
request
|
11931
|
+
)
|
10722
11932
|
headers = Utils.get_headers(request)
|
10723
11933
|
headers = T.cast(headers, T::Hash[String, String])
|
10724
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11934
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationDocumentsRequest, request, nil)
|
10725
11935
|
headers['Accept'] = 'application/json'
|
10726
11936
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10727
11937
|
retries ||= @sdk_configuration.retry_config
|
@@ -10751,7 +11961,7 @@ module StackOne
|
|
10751
11961
|
config: @sdk_configuration,
|
10752
11962
|
base_url: base_url,
|
10753
11963
|
oauth2_scopes: [],
|
10754
|
-
operation_id: '
|
11964
|
+
operation_id: 'ats_list_application_documents',
|
10755
11965
|
security_source: @sdk_configuration.security_source
|
10756
11966
|
)
|
10757
11967
|
|
@@ -10809,13 +12019,13 @@ module StackOne
|
|
10809
12019
|
response: http_response
|
10810
12020
|
)
|
10811
12021
|
response_data = http_response.env.response_body
|
10812
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10813
|
-
response = Models::Operations::
|
12022
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AtsDocumentsPaginated)
|
12023
|
+
response = Models::Operations::AtsListApplicationDocumentsResponse.new(
|
10814
12024
|
status_code: http_response.status,
|
10815
12025
|
content_type: content_type,
|
10816
12026
|
raw_response: http_response,
|
10817
12027
|
headers: {},
|
10818
|
-
|
12028
|
+
ats_documents_paginated: T.unsafe(obj)
|
10819
12029
|
)
|
10820
12030
|
sdk = self
|
10821
12031
|
|
@@ -10830,15 +12040,17 @@ module StackOne
|
|
10830
12040
|
end
|
10831
12041
|
end
|
10832
12042
|
|
10833
|
-
sdk.
|
10834
|
-
request: Models::Operations::
|
12043
|
+
sdk.list_application_documents(
|
12044
|
+
request: Models::Operations::AtsListApplicationDocumentsRequest.new(
|
10835
12045
|
fields_: request.fields_,
|
10836
12046
|
filter: request.filter,
|
12047
|
+
id: request.id,
|
10837
12048
|
next_: next_cursor,
|
10838
12049
|
page: request.page,
|
10839
12050
|
page_size: request.page_size,
|
10840
12051
|
proxy: request.proxy,
|
10841
12052
|
raw: request.raw,
|
12053
|
+
sync_token: request.sync_token,
|
10842
12054
|
updated_after: request.updated_after,
|
10843
12055
|
x_account_id: request.x_account_id
|
10844
12056
|
)
|
@@ -11029,20 +12241,20 @@ module StackOne
|
|
11029
12241
|
end
|
11030
12242
|
|
11031
12243
|
|
11032
|
-
sig { params(request: Models::Operations::
|
11033
|
-
def
|
11034
|
-
#
|
12244
|
+
sig { params(request: Models::Operations::AtsListApplicationNotesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationNotesResponse) }
|
12245
|
+
def list_application_notes(request:, retries: nil, timeout_ms: nil)
|
12246
|
+
# list_application_notes - List Application Notes
|
11035
12247
|
url, params = @sdk_configuration.get_server_details
|
11036
12248
|
base_url = Utils.template_url(url, params)
|
11037
12249
|
url = Utils.generate_url(
|
11038
|
-
Models::Operations::
|
12250
|
+
Models::Operations::AtsListApplicationNotesRequest,
|
11039
12251
|
base_url,
|
11040
|
-
'/unified/ats/applications/{id}/
|
12252
|
+
'/unified/ats/applications/{id}/notes',
|
11041
12253
|
request
|
11042
12254
|
)
|
11043
12255
|
headers = Utils.get_headers(request)
|
11044
12256
|
headers = T.cast(headers, T::Hash[String, String])
|
11045
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12257
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationNotesRequest, request, nil)
|
11046
12258
|
headers['Accept'] = 'application/json'
|
11047
12259
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11048
12260
|
retries ||= @sdk_configuration.retry_config
|
@@ -11072,7 +12284,7 @@ module StackOne
|
|
11072
12284
|
config: @sdk_configuration,
|
11073
12285
|
base_url: base_url,
|
11074
12286
|
oauth2_scopes: [],
|
11075
|
-
operation_id: '
|
12287
|
+
operation_id: 'ats_list_application_notes',
|
11076
12288
|
security_source: @sdk_configuration.security_source
|
11077
12289
|
)
|
11078
12290
|
|
@@ -11130,13 +12342,13 @@ module StackOne
|
|
11130
12342
|
response: http_response
|
11131
12343
|
)
|
11132
12344
|
response_data = http_response.env.response_body
|
11133
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11134
|
-
response = Models::Operations::
|
12345
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::NotesPaginated)
|
12346
|
+
response = Models::Operations::AtsListApplicationNotesResponse.new(
|
11135
12347
|
status_code: http_response.status,
|
11136
12348
|
content_type: content_type,
|
11137
12349
|
raw_response: http_response,
|
11138
12350
|
headers: {},
|
11139
|
-
|
12351
|
+
notes_paginated: T.unsafe(obj)
|
11140
12352
|
)
|
11141
12353
|
sdk = self
|
11142
12354
|
|
@@ -11151,8 +12363,8 @@ module StackOne
|
|
11151
12363
|
end
|
11152
12364
|
end
|
11153
12365
|
|
11154
|
-
sdk.
|
11155
|
-
request: Models::Operations::
|
12366
|
+
sdk.list_application_notes(
|
12367
|
+
request: Models::Operations::AtsListApplicationNotesRequest.new(
|
11156
12368
|
fields_: request.fields_,
|
11157
12369
|
filter: request.filter,
|
11158
12370
|
id: request.id,
|
@@ -11352,20 +12564,20 @@ module StackOne
|
|
11352
12564
|
end
|
11353
12565
|
|
11354
12566
|
|
11355
|
-
sig { params(request: Models::Operations::
|
11356
|
-
def
|
11357
|
-
#
|
12567
|
+
sig { params(request: Models::Operations::AtsListApplicationScorecardsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationScorecardsResponse) }
|
12568
|
+
def list_application_scorecards(request:, retries: nil, timeout_ms: nil)
|
12569
|
+
# list_application_scorecards - List Application Scorecards
|
11358
12570
|
url, params = @sdk_configuration.get_server_details
|
11359
12571
|
base_url = Utils.template_url(url, params)
|
11360
12572
|
url = Utils.generate_url(
|
11361
|
-
Models::Operations::
|
12573
|
+
Models::Operations::AtsListApplicationScorecardsRequest,
|
11362
12574
|
base_url,
|
11363
|
-
'/unified/ats/applications/{id}/
|
12575
|
+
'/unified/ats/applications/{id}/scorecards',
|
11364
12576
|
request
|
11365
12577
|
)
|
11366
12578
|
headers = Utils.get_headers(request)
|
11367
12579
|
headers = T.cast(headers, T::Hash[String, String])
|
11368
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12580
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationScorecardsRequest, request, nil)
|
11369
12581
|
headers['Accept'] = 'application/json'
|
11370
12582
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11371
12583
|
retries ||= @sdk_configuration.retry_config
|
@@ -11395,7 +12607,7 @@ module StackOne
|
|
11395
12607
|
config: @sdk_configuration,
|
11396
12608
|
base_url: base_url,
|
11397
12609
|
oauth2_scopes: [],
|
11398
|
-
operation_id: '
|
12610
|
+
operation_id: 'ats_list_application_scorecards',
|
11399
12611
|
security_source: @sdk_configuration.security_source
|
11400
12612
|
)
|
11401
12613
|
|
@@ -11453,13 +12665,13 @@ module StackOne
|
|
11453
12665
|
response: http_response
|
11454
12666
|
)
|
11455
12667
|
response_data = http_response.env.response_body
|
11456
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11457
|
-
response = Models::Operations::
|
12668
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ScorecardsPaginated)
|
12669
|
+
response = Models::Operations::AtsListApplicationScorecardsResponse.new(
|
11458
12670
|
status_code: http_response.status,
|
11459
12671
|
content_type: content_type,
|
11460
12672
|
raw_response: http_response,
|
11461
12673
|
headers: {},
|
11462
|
-
|
12674
|
+
scorecards_paginated: T.unsafe(obj)
|
11463
12675
|
)
|
11464
12676
|
sdk = self
|
11465
12677
|
|
@@ -11474,8 +12686,8 @@ module StackOne
|
|
11474
12686
|
end
|
11475
12687
|
end
|
11476
12688
|
|
11477
|
-
sdk.
|
11478
|
-
request: Models::Operations::
|
12689
|
+
sdk.list_application_scorecards(
|
12690
|
+
request: Models::Operations::AtsListApplicationScorecardsRequest.new(
|
11479
12691
|
fields_: request.fields_,
|
11480
12692
|
filter: request.filter,
|
11481
12693
|
id: request.id,
|
@@ -11675,20 +12887,15 @@ module StackOne
|
|
11675
12887
|
end
|
11676
12888
|
|
11677
12889
|
|
11678
|
-
sig { params(request: Models::Operations::
|
11679
|
-
def
|
11680
|
-
#
|
12890
|
+
sig { params(request: Models::Operations::AtsListApplicationStagesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationStagesResponse) }
|
12891
|
+
def list_application_stages(request:, retries: nil, timeout_ms: nil)
|
12892
|
+
# list_application_stages - List Application Stages
|
11681
12893
|
url, params = @sdk_configuration.get_server_details
|
11682
12894
|
base_url = Utils.template_url(url, params)
|
11683
|
-
url =
|
11684
|
-
Models::Operations::AtsListApplicationScorecardsRequest,
|
11685
|
-
base_url,
|
11686
|
-
'/unified/ats/applications/{id}/scorecards',
|
11687
|
-
request
|
11688
|
-
)
|
12895
|
+
url = "#{base_url}/unified/ats/application_stages"
|
11689
12896
|
headers = Utils.get_headers(request)
|
11690
12897
|
headers = T.cast(headers, T::Hash[String, String])
|
11691
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12898
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationStagesRequest, request, nil)
|
11692
12899
|
headers['Accept'] = 'application/json'
|
11693
12900
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11694
12901
|
retries ||= @sdk_configuration.retry_config
|
@@ -11718,7 +12925,7 @@ module StackOne
|
|
11718
12925
|
config: @sdk_configuration,
|
11719
12926
|
base_url: base_url,
|
11720
12927
|
oauth2_scopes: [],
|
11721
|
-
operation_id: '
|
12928
|
+
operation_id: 'ats_list_application_stages',
|
11722
12929
|
security_source: @sdk_configuration.security_source
|
11723
12930
|
)
|
11724
12931
|
|
@@ -11776,13 +12983,13 @@ module StackOne
|
|
11776
12983
|
response: http_response
|
11777
12984
|
)
|
11778
12985
|
response_data = http_response.env.response_body
|
11779
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11780
|
-
response = Models::Operations::
|
12986
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InterviewStagesPaginated)
|
12987
|
+
response = Models::Operations::AtsListApplicationStagesResponse.new(
|
11781
12988
|
status_code: http_response.status,
|
11782
12989
|
content_type: content_type,
|
11783
12990
|
raw_response: http_response,
|
11784
12991
|
headers: {},
|
11785
|
-
|
12992
|
+
interview_stages_paginated: T.unsafe(obj)
|
11786
12993
|
)
|
11787
12994
|
sdk = self
|
11788
12995
|
|
@@ -11797,11 +13004,10 @@ module StackOne
|
|
11797
13004
|
end
|
11798
13005
|
end
|
11799
13006
|
|
11800
|
-
sdk.
|
11801
|
-
request: Models::Operations::
|
13007
|
+
sdk.list_application_stages(
|
13008
|
+
request: Models::Operations::AtsListApplicationStagesRequest.new(
|
11802
13009
|
fields_: request.fields_,
|
11803
13010
|
filter: request.filter,
|
11804
|
-
id: request.id,
|
11805
13011
|
next_: next_cursor,
|
11806
13012
|
page: request.page,
|
11807
13013
|
page_size: request.page_size,
|
@@ -14873,6 +16079,8 @@ module StackOne
|
|
14873
16079
|
sig { params(request: Models::Operations::AtsListInterviewStagesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListInterviewStagesResponse) }
|
14874
16080
|
def list_interview_stages(request:, retries: nil, timeout_ms: nil)
|
14875
16081
|
# list_interview_stages - List Interview Stages
|
16082
|
+
#
|
16083
|
+
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
14876
16084
|
url, params = @sdk_configuration.get_server_details
|
14877
16085
|
base_url = Utils.template_url(url, params)
|
14878
16086
|
url = "#{base_url}/unified/ats/interview_stages"
|