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