merge_ats_client 1.0.4 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +40 -18
- data/docs/AccountDetails.md +13 -7
- data/docs/AccountDetailsAndActions.md +6 -0
- data/docs/AccountDetailsAndActionsIntegration.md +1 -1
- data/docs/AccountDetailsApi.md +10 -7
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/ActivitiesApi.md +11 -5
- data/docs/Activity.md +4 -2
- data/docs/Application.md +8 -6
- data/docs/ApplicationEndpointRequest.md +20 -0
- data/docs/ApplicationRequest.md +12 -6
- data/docs/ApplicationResponse.md +24 -0
- data/docs/ApplicationsApi.md +180 -18
- data/docs/Attachment.md +3 -1
- data/docs/AttachmentEndpointRequest.md +20 -0
- data/docs/AttachmentRequest.md +5 -1
- data/docs/AttachmentResponse.md +24 -0
- data/docs/AttachmentsApi.md +98 -16
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/Candidate.md +3 -1
- data/docs/CandidateEndpointRequest.md +20 -0
- data/docs/CandidateRequest.md +7 -1
- data/docs/CandidateResponse.md +24 -0
- data/docs/CandidatesApi.md +168 -22
- data/docs/DataPassthroughRequest.md +6 -2
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/Department.md +3 -1
- data/docs/DepartmentsApi.md +6 -4
- data/docs/EEOC.md +4 -2
- data/docs/EeocsApi.md +11 -5
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +10 -6
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/GenerateKeyApi.md +2 -2
- data/docs/IgnoreCommonModel.md +20 -0
- data/docs/IgnoreCommonModelRequest.md +20 -0
- data/docs/InterviewsApi.md +11 -85
- data/docs/IssuesApi.md +18 -10
- data/docs/Job.md +7 -1
- data/docs/JobInterviewStage.md +4 -2
- data/docs/JobInterviewStagesApi.md +8 -6
- data/docs/JobsApi.md +13 -6
- data/docs/LinkToken.md +3 -1
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +24 -22
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Offer.md +5 -3
- data/docs/OffersApi.md +11 -5
- data/docs/Office.md +3 -1
- data/docs/OfficesApi.md +6 -4
- data/docs/PassthroughApi.md +2 -2
- data/docs/ReasonEnum.md +15 -0
- data/docs/RegenerateKeyApi.md +2 -2
- data/docs/RejectReason.md +3 -1
- data/docs/RejectReasonsApi.md +6 -4
- data/docs/RemoteResponse.md +5 -1
- data/docs/RemoteUser.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/ScheduledInterview.md +6 -4
- data/docs/Scorecard.md +6 -4
- data/docs/ScorecardsApi.md +11 -85
- data/docs/SyncStatus.md +2 -2
- data/docs/SyncStatusApi.md +3 -75
- data/docs/Tag.md +3 -1
- data/docs/TagsApi.md +4 -2
- data/docs/UpdateApplicationStageRequest.md +20 -0
- data/docs/UsersApi.md +11 -85
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/lib/merge_ats_client/api/account_details_api.rb +10 -3
- data/lib/merge_ats_client/api/activities_api.rb +17 -0
- data/lib/merge_ats_client/api/applications_api.rb +164 -15
- data/lib/merge_ats_client/api/attachments_api.rb +108 -15
- data/lib/merge_ats_client/api/candidates_api.rb +156 -21
- data/lib/merge_ats_client/api/departments_api.rb +3 -0
- data/lib/merge_ats_client/api/eeocs_api.rb +17 -0
- data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ats_client/api/interviews_api.rb +17 -76
- data/lib/merge_ats_client/api/issues_api.rb +22 -10
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +5 -2
- data/lib/merge_ats_client/api/jobs_api.rb +20 -3
- data/lib/merge_ats_client/api/linked_accounts_api.rb +24 -21
- data/lib/merge_ats_client/api/offers_api.rb +17 -0
- data/lib/merge_ats_client/api/offices_api.rb +3 -0
- data/lib/merge_ats_client/api/reject_reasons_api.rb +3 -0
- data/lib/merge_ats_client/api/scorecards_api.rb +17 -76
- data/lib/merge_ats_client/api/sync_status_api.rb +4 -66
- data/lib/merge_ats_client/api/tags_api.rb +3 -0
- data/lib/merge_ats_client/api/users_api.rb +17 -76
- data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ats_client/configuration.rb +6 -4
- data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_details.rb +33 -4
- data/lib/merge_ats_client/models/account_details_and_actions.rb +35 -1
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +4 -2
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_integration.rb +2 -24
- data/lib/merge_ats_client/models/account_token.rb +1 -1
- data/lib/merge_ats_client/models/activity.rb +16 -7
- data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/application.rb +15 -11
- data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/application_request.rb +56 -12
- data/lib/merge_ats_client/models/application_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment.rb +15 -6
- data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/attachment_request.rb +31 -7
- data/lib/merge_ats_client/models/attachment_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -9
- data/lib/merge_ats_client/models/available_actions.rb +1 -1
- data/lib/merge_ats_client/models/candidate.rb +15 -6
- data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → candidate_endpoint_request.rb} +29 -16
- data/lib/merge_ats_client/models/candidate_request.rb +56 -7
- data/lib/merge_ats_client/models/candidate_response.rb +266 -0
- data/lib/merge_ats_client/models/categories_enum.rb +19 -7
- data/lib/merge_ats_client/models/category_enum.rb +19 -7
- data/lib/merge_ats_client/models/data_passthrough_request.rb +79 -7
- data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
- data/lib/merge_ats_client/models/department.rb +17 -7
- data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/eeoc.rb +16 -7
- data/lib/merge_ats_client/models/email_address.rb +2 -2
- data/lib/merge_ats_client/models/email_address_request.rb +2 -2
- data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/encoding_enum.rb +46 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +163 -27
- data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/gender_enum.rb +17 -7
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +20 -1
- data/lib/merge_ats_client/models/ignore_common_model.rb +247 -0
- data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_ats_client/models/issue.rb +2 -2
- data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/job.rb +39 -6
- data/lib/merge_ats_client/models/job_interview_stage.rb +17 -7
- data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/link_token.rb +14 -5
- data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ats_client/models/{scorecard_request.rb → meta_response.rb} +45 -70
- data/lib/merge_ats_client/models/method_enum.rb +17 -7
- data/lib/merge_ats_client/models/model_operation.rb +1 -1
- data/lib/merge_ats_client/models/{scheduled_interview_request.rb → multipart_form_field_request.rb} +115 -106
- data/lib/merge_ats_client/models/offer.rb +16 -8
- data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/office.rb +17 -7
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
- data/lib/merge_ats_client/models/paginated_activity_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_application_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_department_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_issue_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_offer_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_office_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_tag_list.rb +1 -1
- data/lib/merge_ats_client/models/phone_number.rb +2 -2
- data/lib/merge_ats_client/models/phone_number_request.rb +2 -2
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/race_enum.rb +17 -7
- data/lib/merge_ats_client/models/reason_enum.rb +46 -0
- data/lib/merge_ats_client/models/reject_reason.rb +17 -7
- data/lib/merge_ats_client/models/remote_data.rb +1 -1
- data/lib/merge_ats_client/models/remote_key.rb +1 -1
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +20 -1
- data/lib/merge_ats_client/models/remote_response.rb +24 -10
- data/lib/merge_ats_client/models/remote_user.rb +17 -7
- data/lib/merge_ats_client/models/request_format_enum.rb +18 -7
- data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +16 -9
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/scorecard.rb +16 -9
- data/lib/merge_ats_client/models/sync_status.rb +1 -11
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +19 -9
- data/lib/merge_ats_client/models/tag.rb +17 -7
- data/lib/merge_ats_client/models/update_application_stage_request.rb +244 -0
- data/lib/merge_ats_client/models/url.rb +2 -2
- data/lib/merge_ats_client/models/url_request.rb +2 -2
- data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
- data/lib/merge_ats_client/models/{remote_data_request.rb → validation_problem_source.rb} +14 -25
- data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
- data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_ats_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +24 -4
- data/spec/api/account_details_api_spec.rb +1 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/activities_api_spec.rb +6 -1
- data/spec/api/applications_api_spec.rb +46 -1
- data/spec/api/attachments_api_spec.rb +33 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/candidates_api_spec.rb +44 -1
- data/spec/api/departments_api_spec.rb +4 -1
- data/spec/api/eeocs_api_spec.rb +6 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/interviews_api_spec.rb +6 -1
- data/spec/api/issues_api_spec.rb +9 -5
- data/spec/api/job_interview_stages_api_spec.rb +4 -1
- data/spec/api/jobs_api_spec.rb +8 -1
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +11 -10
- data/spec/api/offers_api_spec.rb +6 -1
- data/spec/api/offices_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -2
- data/spec/api/regenerate_key_api_spec.rb +3 -5
- data/spec/api/reject_reasons_api_spec.rb +4 -1
- data/spec/api/scorecards_api_spec.rb +6 -1
- data/spec/api/sync_status_api_spec.rb +8 -5
- data/spec/api/tags_api_spec.rb +3 -1
- data/spec/api/users_api_spec.rb +7 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/models/access_role_enum_spec.rb +1 -1
- data/spec/models/account_details_and_actions_spec.rb +18 -0
- data/spec/models/account_details_spec.rb +18 -0
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/activity_spec.rb +13 -1
- data/spec/models/activity_type_enum_spec.rb +1 -1
- data/spec/models/application_endpoint_request_spec.rb +40 -0
- data/spec/models/application_request_spec.rb +25 -1
- data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
- data/spec/models/application_spec.rb +19 -7
- data/spec/models/attachment_endpoint_request_spec.rb +40 -0
- data/spec/models/attachment_request_spec.rb +12 -0
- data/spec/models/attachment_response_spec.rb +52 -0
- data/spec/models/attachment_spec.rb +25 -1
- data/spec/models/available_actions_spec.rb +1 -1
- data/spec/models/candidate_endpoint_request_spec.rb +40 -0
- data/spec/models/candidate_request_spec.rb +37 -1
- data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
- data/spec/models/candidate_spec.rb +19 -1
- data/spec/models/data_passthrough_request_spec.rb +19 -1
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/department_spec.rb +13 -1
- data/spec/models/disability_status_enum_spec.rb +1 -1
- data/spec/models/eeoc_spec.rb +13 -1
- data/spec/models/email_address_request_spec.rb +1 -1
- data/spec/models/email_address_spec.rb +1 -1
- data/spec/models/email_address_type_enum_spec.rb +1 -1
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +19 -5
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/ignore_common_model_request_spec.rb +40 -0
- data/spec/models/ignore_common_model_spec.rb +40 -0
- data/spec/models/job_interview_stage_spec.rb +13 -1
- data/spec/models/job_spec.rb +37 -1
- data/spec/models/job_status_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +7 -1
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
- data/spec/models/offer_spec.rb +13 -1
- data/spec/models/offer_status_enum_spec.rb +1 -1
- data/spec/models/office_spec.rb +13 -1
- data/spec/models/overall_recommendation_enum_spec.rb +1 -1
- data/spec/models/paginated_activity_list_spec.rb +1 -1
- data/spec/models/paginated_application_list_spec.rb +1 -1
- data/spec/models/paginated_attachment_list_spec.rb +1 -1
- data/spec/models/paginated_candidate_list_spec.rb +1 -1
- data/spec/models/paginated_department_list_spec.rb +1 -1
- data/spec/models/paginated_eeoc_list_spec.rb +1 -1
- data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
- data/spec/models/paginated_job_list_spec.rb +1 -1
- data/spec/models/paginated_offer_list_spec.rb +1 -1
- data/spec/models/paginated_office_list_spec.rb +1 -1
- data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
- data/spec/models/paginated_remote_user_list_spec.rb +1 -1
- data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
- data/spec/models/paginated_scorecard_list_spec.rb +1 -1
- data/spec/models/paginated_tag_list_spec.rb +1 -1
- data/spec/models/phone_number_request_spec.rb +1 -1
- data/spec/models/phone_number_spec.rb +1 -1
- data/spec/models/phone_number_type_enum_spec.rb +1 -1
- data/spec/models/race_enum_spec.rb +1 -1
- data/spec/models/reason_enum_spec.rb +28 -0
- data/spec/models/reject_reason_spec.rb +13 -1
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +13 -1
- data/spec/models/remote_user_spec.rb +13 -1
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/scheduled_interview_spec.rb +13 -1
- data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
- data/spec/models/scorecard_spec.rb +13 -1
- data/spec/models/sync_status_spec.rb +1 -1
- data/spec/models/tag_spec.rb +13 -1
- data/spec/models/update_application_stage_request_spec.rb +40 -0
- data/spec/models/url_request_spec.rb +1 -1
- data/spec/models/url_spec.rb +1 -1
- data/spec/models/url_type_enum_spec.rb +1 -1
- data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
- data/spec/models/veteran_status_enum_spec.rb +1 -1
- data/spec/models/visibility_enum_spec.rb +1 -1
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- metadata +186 -123
- data/config.json +0 -2
- data/docs/DataPassthrough.md +0 -24
- data/docs/EndUserDetails.md +0 -24
- data/docs/PatchedApplicationRequest.md +0 -34
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/docs/RemoteUserRequest.md +0 -30
- data/docs/ScheduledInterviewRequest.md +0 -38
- data/docs/ScorecardRequest.md +0 -30
- data/lib/merge_ats_client/models/patched_application_request.rb +0 -309
- data/lib/merge_ats_client/models/remote_user_request.rb +0 -302
- data/merge_ats_client-1.0.3.gem +0 -0
- data/spec/models/patched_application_request_spec.rb +0 -82
- data/spec/models/scheduled_interview_request_spec.rb +0 -94
- data/spec/models/scorecard_request_spec.rb +0 -70
- data/test_ats.rb +0 -22
- data/test_signature.rb +0 -32
@@ -21,24 +21,24 @@ module MergeATSClient
|
|
21
21
|
end
|
22
22
|
# Creates an `Attachment` object with the given values.
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
|
-
# @param
|
24
|
+
# @param attachment_endpoint_request [AttachmentEndpointRequest]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
26
27
|
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
27
|
-
# @
|
28
|
-
|
29
|
-
|
30
|
-
data, _status_code, _headers = attachments_create_with_http_info(x_account_token, remote_user_id, opts)
|
28
|
+
# @return [AttachmentResponse]
|
29
|
+
def attachments_create(x_account_token, attachment_endpoint_request, opts = {})
|
30
|
+
data, _status_code, _headers = attachments_create_with_http_info(x_account_token, attachment_endpoint_request, opts)
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
34
34
|
# Creates an `Attachment` object with the given values.
|
35
35
|
# @param x_account_token [String] Token identifying the end user.
|
36
|
-
# @param
|
36
|
+
# @param attachment_endpoint_request [AttachmentEndpointRequest]
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
38
39
|
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
39
|
-
# @
|
40
|
-
|
41
|
-
def attachments_create_with_http_info(x_account_token, remote_user_id, opts = {})
|
40
|
+
# @return [Array<(AttachmentResponse, Integer, Hash)>] AttachmentResponse data, response status code and response headers
|
41
|
+
def attachments_create_with_http_info(x_account_token, attachment_endpoint_request, opts = {})
|
42
42
|
if @api_client.config.debugging
|
43
43
|
@api_client.config.logger.debug 'Calling API: AttachmentsApi.attachments_create ...'
|
44
44
|
end
|
@@ -46,16 +46,16 @@ module MergeATSClient
|
|
46
46
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
47
47
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AttachmentsApi.attachments_create"
|
48
48
|
end
|
49
|
-
# verify the required parameter '
|
50
|
-
if @api_client.config.client_side_validation &&
|
51
|
-
fail ArgumentError, "Missing the required parameter '
|
49
|
+
# verify the required parameter 'attachment_endpoint_request' is set
|
50
|
+
if @api_client.config.client_side_validation && attachment_endpoint_request.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'attachment_endpoint_request' when calling AttachmentsApi.attachments_create"
|
52
52
|
end
|
53
53
|
# resource path
|
54
54
|
local_var_path = '/attachments'
|
55
55
|
|
56
56
|
# query parameters
|
57
57
|
query_params = opts[:query_params] || {}
|
58
|
-
query_params[:'
|
58
|
+
query_params[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
|
59
59
|
query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
|
60
60
|
|
61
61
|
# header parameters
|
@@ -70,10 +70,10 @@ module MergeATSClient
|
|
70
70
|
form_params = opts[:form_params] || {}
|
71
71
|
|
72
72
|
# http body (model)
|
73
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
73
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attachment_endpoint_request)
|
74
74
|
|
75
75
|
# return_type
|
76
|
-
return_type = opts[:debug_return_type] || '
|
76
|
+
return_type = opts[:debug_return_type] || 'AttachmentResponse'
|
77
77
|
|
78
78
|
# auth_names
|
79
79
|
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
@@ -102,10 +102,13 @@ module MergeATSClient
|
|
102
102
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
103
103
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
104
104
|
# @option opts [String] :cursor The pagination cursor value.
|
105
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
106
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
105
107
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
106
108
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
107
109
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
108
110
|
# @option opts [Integer] :page_size Number of results to return per page.
|
111
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
109
112
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
110
113
|
# @return [PaginatedAttachmentList]
|
111
114
|
def attachments_list(x_account_token, opts = {})
|
@@ -120,10 +123,13 @@ module MergeATSClient
|
|
120
123
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
121
124
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
122
125
|
# @option opts [String] :cursor The pagination cursor value.
|
126
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
127
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
123
128
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
124
129
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
125
130
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
126
131
|
# @option opts [Integer] :page_size Number of results to return per page.
|
132
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
127
133
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
128
134
|
# @return [Array<(PaginatedAttachmentList, Integer, Hash)>] PaginatedAttachmentList data, response status code and response headers
|
129
135
|
def attachments_list_with_http_info(x_account_token, opts = {})
|
@@ -134,6 +140,14 @@ module MergeATSClient
|
|
134
140
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
135
141
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AttachmentsApi.attachments_list"
|
136
142
|
end
|
143
|
+
allowable_values = ["candidate"]
|
144
|
+
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
145
|
+
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
146
|
+
end
|
147
|
+
allowable_values = ["attachment_type"]
|
148
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
149
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
150
|
+
end
|
137
151
|
# resource path
|
138
152
|
local_var_path = '/attachments'
|
139
153
|
|
@@ -143,10 +157,13 @@ module MergeATSClient
|
|
143
157
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
144
158
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
145
159
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
160
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
161
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
146
162
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
147
163
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
148
164
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
149
165
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
166
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
150
167
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
151
168
|
|
152
169
|
# header parameters
|
@@ -184,11 +201,75 @@ module MergeATSClient
|
|
184
201
|
return data, status_code, headers
|
185
202
|
end
|
186
203
|
|
204
|
+
# Returns metadata for `Attachment` POSTs.
|
205
|
+
# @param x_account_token [String] Token identifying the end user.
|
206
|
+
# @param [Hash] opts the optional parameters
|
207
|
+
# @return [MetaResponse]
|
208
|
+
def attachments_meta_post_retrieve(x_account_token, opts = {})
|
209
|
+
data, _status_code, _headers = attachments_meta_post_retrieve_with_http_info(x_account_token, opts)
|
210
|
+
data
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns metadata for `Attachment` POSTs.
|
214
|
+
# @param x_account_token [String] Token identifying the end user.
|
215
|
+
# @param [Hash] opts the optional parameters
|
216
|
+
# @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
|
217
|
+
def attachments_meta_post_retrieve_with_http_info(x_account_token, opts = {})
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug 'Calling API: AttachmentsApi.attachments_meta_post_retrieve ...'
|
220
|
+
end
|
221
|
+
# verify the required parameter 'x_account_token' is set
|
222
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
223
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AttachmentsApi.attachments_meta_post_retrieve"
|
224
|
+
end
|
225
|
+
# resource path
|
226
|
+
local_var_path = '/attachments/meta/post'
|
227
|
+
|
228
|
+
# query parameters
|
229
|
+
query_params = opts[:query_params] || {}
|
230
|
+
|
231
|
+
# header parameters
|
232
|
+
header_params = opts[:header_params] || {}
|
233
|
+
# HTTP header 'Accept' (if needed)
|
234
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
235
|
+
header_params[:'X-Account-Token'] = x_account_token
|
236
|
+
|
237
|
+
# form parameters
|
238
|
+
form_params = opts[:form_params] || {}
|
239
|
+
|
240
|
+
# http body (model)
|
241
|
+
post_body = opts[:debug_body]
|
242
|
+
|
243
|
+
# return_type
|
244
|
+
return_type = opts[:debug_return_type] || 'MetaResponse'
|
245
|
+
|
246
|
+
# auth_names
|
247
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
248
|
+
|
249
|
+
new_options = opts.merge(
|
250
|
+
:operation => :"AttachmentsApi.attachments_meta_post_retrieve",
|
251
|
+
:header_params => header_params,
|
252
|
+
:query_params => query_params,
|
253
|
+
:form_params => form_params,
|
254
|
+
:body => post_body,
|
255
|
+
:auth_names => auth_names,
|
256
|
+
:return_type => return_type
|
257
|
+
)
|
258
|
+
|
259
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
260
|
+
if @api_client.config.debugging
|
261
|
+
@api_client.config.logger.debug "API called: AttachmentsApi#attachments_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
262
|
+
end
|
263
|
+
return data, status_code, headers
|
264
|
+
end
|
265
|
+
|
187
266
|
# Returns an `Attachment` object with the given `id`.
|
188
267
|
# @param x_account_token [String] Token identifying the end user.
|
189
268
|
# @param id [String]
|
190
269
|
# @param [Hash] opts the optional parameters
|
270
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
191
271
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
272
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
192
273
|
# @return [Attachment]
|
193
274
|
def attachments_retrieve(x_account_token, id, opts = {})
|
194
275
|
data, _status_code, _headers = attachments_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -199,7 +280,9 @@ module MergeATSClient
|
|
199
280
|
# @param x_account_token [String] Token identifying the end user.
|
200
281
|
# @param id [String]
|
201
282
|
# @param [Hash] opts the optional parameters
|
283
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
202
284
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
285
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
203
286
|
# @return [Array<(Attachment, Integer, Hash)>] Attachment data, response status code and response headers
|
204
287
|
def attachments_retrieve_with_http_info(x_account_token, id, opts = {})
|
205
288
|
if @api_client.config.debugging
|
@@ -213,12 +296,22 @@ module MergeATSClient
|
|
213
296
|
if @api_client.config.client_side_validation && id.nil?
|
214
297
|
fail ArgumentError, "Missing the required parameter 'id' when calling AttachmentsApi.attachments_retrieve"
|
215
298
|
end
|
299
|
+
allowable_values = ["candidate"]
|
300
|
+
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
301
|
+
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
302
|
+
end
|
303
|
+
allowable_values = ["attachment_type"]
|
304
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
305
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
306
|
+
end
|
216
307
|
# resource path
|
217
308
|
local_var_path = '/attachments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
218
309
|
|
219
310
|
# query parameters
|
220
311
|
query_params = opts[:query_params] || {}
|
312
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
221
313
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
314
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
222
315
|
|
223
316
|
# header parameters
|
224
317
|
header_params = opts[:header_params] || {}
|
@@ -21,24 +21,24 @@ module MergeATSClient
|
|
21
21
|
end
|
22
22
|
# Creates a `Candidate` object with the given values.
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
|
-
# @param
|
24
|
+
# @param candidate_endpoint_request [CandidateEndpointRequest]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
26
27
|
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
27
|
-
# @
|
28
|
-
|
29
|
-
|
30
|
-
data, _status_code, _headers = candidates_create_with_http_info(x_account_token, remote_user_id, opts)
|
28
|
+
# @return [CandidateResponse]
|
29
|
+
def candidates_create(x_account_token, candidate_endpoint_request, opts = {})
|
30
|
+
data, _status_code, _headers = candidates_create_with_http_info(x_account_token, candidate_endpoint_request, opts)
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
34
34
|
# Creates a `Candidate` object with the given values.
|
35
35
|
# @param x_account_token [String] Token identifying the end user.
|
36
|
-
# @param
|
36
|
+
# @param candidate_endpoint_request [CandidateEndpointRequest]
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
38
39
|
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
39
|
-
# @
|
40
|
-
|
41
|
-
def candidates_create_with_http_info(x_account_token, remote_user_id, opts = {})
|
40
|
+
# @return [Array<(CandidateResponse, Integer, Hash)>] CandidateResponse data, response status code and response headers
|
41
|
+
def candidates_create_with_http_info(x_account_token, candidate_endpoint_request, opts = {})
|
42
42
|
if @api_client.config.debugging
|
43
43
|
@api_client.config.logger.debug 'Calling API: CandidatesApi.candidates_create ...'
|
44
44
|
end
|
@@ -46,16 +46,16 @@ module MergeATSClient
|
|
46
46
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
47
47
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CandidatesApi.candidates_create"
|
48
48
|
end
|
49
|
-
# verify the required parameter '
|
50
|
-
if @api_client.config.client_side_validation &&
|
51
|
-
fail ArgumentError, "Missing the required parameter '
|
49
|
+
# verify the required parameter 'candidate_endpoint_request' is set
|
50
|
+
if @api_client.config.client_side_validation && candidate_endpoint_request.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'candidate_endpoint_request' when calling CandidatesApi.candidates_create"
|
52
52
|
end
|
53
53
|
# resource path
|
54
54
|
local_var_path = '/candidates'
|
55
55
|
|
56
56
|
# query parameters
|
57
57
|
query_params = opts[:query_params] || {}
|
58
|
-
query_params[:'
|
58
|
+
query_params[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
|
59
59
|
query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
|
60
60
|
|
61
61
|
# header parameters
|
@@ -70,10 +70,10 @@ module MergeATSClient
|
|
70
70
|
form_params = opts[:form_params] || {}
|
71
71
|
|
72
72
|
# http body (model)
|
73
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
73
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(candidate_endpoint_request)
|
74
74
|
|
75
75
|
# return_type
|
76
|
-
return_type = opts[:debug_return_type] || '
|
76
|
+
return_type = opts[:debug_return_type] || 'CandidateResponse'
|
77
77
|
|
78
78
|
# auth_names
|
79
79
|
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
@@ -95,22 +95,97 @@ module MergeATSClient
|
|
95
95
|
return data, status_code, headers
|
96
96
|
end
|
97
97
|
|
98
|
+
# Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The \"reason\" and \"message\" fields in the request body will be stored for audit purposes.
|
99
|
+
# @param x_account_token [String] Token identifying the end user.
|
100
|
+
# @param model_id [String]
|
101
|
+
# @param ignore_common_model_request [IgnoreCommonModelRequest]
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [IgnoreCommonModel]
|
104
|
+
def candidates_ignore_create(x_account_token, model_id, ignore_common_model_request, opts = {})
|
105
|
+
data, _status_code, _headers = candidates_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts)
|
106
|
+
data
|
107
|
+
end
|
108
|
+
|
109
|
+
# Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The \"reason\" and \"message\" fields in the request body will be stored for audit purposes.
|
110
|
+
# @param x_account_token [String] Token identifying the end user.
|
111
|
+
# @param model_id [String]
|
112
|
+
# @param ignore_common_model_request [IgnoreCommonModelRequest]
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @return [Array<(IgnoreCommonModel, Integer, Hash)>] IgnoreCommonModel data, response status code and response headers
|
115
|
+
def candidates_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts = {})
|
116
|
+
if @api_client.config.debugging
|
117
|
+
@api_client.config.logger.debug 'Calling API: CandidatesApi.candidates_ignore_create ...'
|
118
|
+
end
|
119
|
+
# verify the required parameter 'x_account_token' is set
|
120
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CandidatesApi.candidates_ignore_create"
|
122
|
+
end
|
123
|
+
# verify the required parameter 'model_id' is set
|
124
|
+
if @api_client.config.client_side_validation && model_id.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'model_id' when calling CandidatesApi.candidates_ignore_create"
|
126
|
+
end
|
127
|
+
# verify the required parameter 'ignore_common_model_request' is set
|
128
|
+
if @api_client.config.client_side_validation && ignore_common_model_request.nil?
|
129
|
+
fail ArgumentError, "Missing the required parameter 'ignore_common_model_request' when calling CandidatesApi.candidates_ignore_create"
|
130
|
+
end
|
131
|
+
# resource path
|
132
|
+
local_var_path = '/candidates/ignore/{model_id}'.sub('{' + 'model_id' + '}', CGI.escape(model_id.to_s))
|
133
|
+
|
134
|
+
# query parameters
|
135
|
+
query_params = opts[:query_params] || {}
|
136
|
+
|
137
|
+
# header parameters
|
138
|
+
header_params = opts[:header_params] || {}
|
139
|
+
# HTTP header 'Accept' (if needed)
|
140
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
141
|
+
# HTTP header 'Content-Type'
|
142
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
143
|
+
header_params[:'X-Account-Token'] = x_account_token
|
144
|
+
|
145
|
+
# form parameters
|
146
|
+
form_params = opts[:form_params] || {}
|
147
|
+
|
148
|
+
# http body (model)
|
149
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(ignore_common_model_request)
|
150
|
+
|
151
|
+
# return_type
|
152
|
+
return_type = opts[:debug_return_type] || 'IgnoreCommonModel'
|
153
|
+
|
154
|
+
# auth_names
|
155
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
156
|
+
|
157
|
+
new_options = opts.merge(
|
158
|
+
:operation => :"CandidatesApi.candidates_ignore_create",
|
159
|
+
:header_params => header_params,
|
160
|
+
:query_params => query_params,
|
161
|
+
:form_params => form_params,
|
162
|
+
:body => post_body,
|
163
|
+
:auth_names => auth_names,
|
164
|
+
:return_type => return_type
|
165
|
+
)
|
166
|
+
|
167
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
168
|
+
if @api_client.config.debugging
|
169
|
+
@api_client.config.logger.debug "API called: CandidatesApi#candidates_ignore_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
170
|
+
end
|
171
|
+
return data, status_code, headers
|
172
|
+
end
|
173
|
+
|
98
174
|
# Returns a list of `Candidate` objects.
|
99
175
|
# @param x_account_token [String] Token identifying the end user.
|
100
176
|
# @param [Hash] opts the optional parameters
|
101
177
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
102
178
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
103
179
|
# @option opts [String] :cursor The pagination cursor value.
|
104
|
-
# @option opts [String] :email_address If provided, will only return candidates with this email_address.
|
105
180
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
106
181
|
# @option opts [String] :first_name If provided, will only return candidates with this first name.
|
182
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
107
183
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
108
184
|
# @option opts [String] :last_name If provided, will only return candidates with this last name.
|
109
185
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
110
186
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
111
187
|
# @option opts [Integer] :page_size Number of results to return per page.
|
112
188
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
113
|
-
# @option opts [String] :tag If provided, will only return candidates with this tag.
|
114
189
|
# @return [PaginatedCandidateList]
|
115
190
|
def candidates_list(x_account_token, opts = {})
|
116
191
|
data, _status_code, _headers = candidates_list_with_http_info(x_account_token, opts)
|
@@ -123,16 +198,15 @@ module MergeATSClient
|
|
123
198
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
124
199
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
125
200
|
# @option opts [String] :cursor The pagination cursor value.
|
126
|
-
# @option opts [String] :email_address If provided, will only return candidates with this email_address.
|
127
201
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
128
202
|
# @option opts [String] :first_name If provided, will only return candidates with this first name.
|
203
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
129
204
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
130
205
|
# @option opts [String] :last_name If provided, will only return candidates with this last name.
|
131
206
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
132
207
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
133
208
|
# @option opts [Integer] :page_size Number of results to return per page.
|
134
209
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
135
|
-
# @option opts [String] :tag If provided, will only return candidates with this tag.
|
136
210
|
# @return [Array<(PaginatedCandidateList, Integer, Hash)>] PaginatedCandidateList data, response status code and response headers
|
137
211
|
def candidates_list_with_http_info(x_account_token, opts = {})
|
138
212
|
if @api_client.config.debugging
|
@@ -154,16 +228,15 @@ module MergeATSClient
|
|
154
228
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
155
229
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
156
230
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
157
|
-
query_params[:'email_address'] = opts[:'email_address'] if !opts[:'email_address'].nil?
|
158
231
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
159
232
|
query_params[:'first_name'] = opts[:'first_name'] if !opts[:'first_name'].nil?
|
233
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
160
234
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
161
235
|
query_params[:'last_name'] = opts[:'last_name'] if !opts[:'last_name'].nil?
|
162
236
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
163
237
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
164
238
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
165
239
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
166
|
-
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
167
240
|
|
168
241
|
# header parameters
|
169
242
|
header_params = opts[:header_params] || {}
|
@@ -200,6 +273,68 @@ module MergeATSClient
|
|
200
273
|
return data, status_code, headers
|
201
274
|
end
|
202
275
|
|
276
|
+
# Returns metadata for `Candidate` POSTs.
|
277
|
+
# @param x_account_token [String] Token identifying the end user.
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [MetaResponse]
|
280
|
+
def candidates_meta_post_retrieve(x_account_token, opts = {})
|
281
|
+
data, _status_code, _headers = candidates_meta_post_retrieve_with_http_info(x_account_token, opts)
|
282
|
+
data
|
283
|
+
end
|
284
|
+
|
285
|
+
# Returns metadata for `Candidate` POSTs.
|
286
|
+
# @param x_account_token [String] Token identifying the end user.
|
287
|
+
# @param [Hash] opts the optional parameters
|
288
|
+
# @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
|
289
|
+
def candidates_meta_post_retrieve_with_http_info(x_account_token, opts = {})
|
290
|
+
if @api_client.config.debugging
|
291
|
+
@api_client.config.logger.debug 'Calling API: CandidatesApi.candidates_meta_post_retrieve ...'
|
292
|
+
end
|
293
|
+
# verify the required parameter 'x_account_token' is set
|
294
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CandidatesApi.candidates_meta_post_retrieve"
|
296
|
+
end
|
297
|
+
# resource path
|
298
|
+
local_var_path = '/candidates/meta/post'
|
299
|
+
|
300
|
+
# query parameters
|
301
|
+
query_params = opts[:query_params] || {}
|
302
|
+
|
303
|
+
# header parameters
|
304
|
+
header_params = opts[:header_params] || {}
|
305
|
+
# HTTP header 'Accept' (if needed)
|
306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
307
|
+
header_params[:'X-Account-Token'] = x_account_token
|
308
|
+
|
309
|
+
# form parameters
|
310
|
+
form_params = opts[:form_params] || {}
|
311
|
+
|
312
|
+
# http body (model)
|
313
|
+
post_body = opts[:debug_body]
|
314
|
+
|
315
|
+
# return_type
|
316
|
+
return_type = opts[:debug_return_type] || 'MetaResponse'
|
317
|
+
|
318
|
+
# auth_names
|
319
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
320
|
+
|
321
|
+
new_options = opts.merge(
|
322
|
+
:operation => :"CandidatesApi.candidates_meta_post_retrieve",
|
323
|
+
:header_params => header_params,
|
324
|
+
:query_params => query_params,
|
325
|
+
:form_params => form_params,
|
326
|
+
:body => post_body,
|
327
|
+
:auth_names => auth_names,
|
328
|
+
:return_type => return_type
|
329
|
+
)
|
330
|
+
|
331
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
332
|
+
if @api_client.config.debugging
|
333
|
+
@api_client.config.logger.debug "API called: CandidatesApi#candidates_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
334
|
+
end
|
335
|
+
return data, status_code, headers
|
336
|
+
end
|
337
|
+
|
203
338
|
# Returns a `Candidate` object with the given `id`.
|
204
339
|
# @param x_account_token [String] Token identifying the end user.
|
205
340
|
# @param id [String]
|
@@ -25,6 +25,7 @@ module MergeATSClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
28
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
29
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
30
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -42,6 +43,7 @@ module MergeATSClient
|
|
42
43
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
43
44
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
44
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -64,6 +66,7 @@ module MergeATSClient
|
|
64
66
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
65
67
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
66
68
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
69
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
67
70
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
68
71
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
69
72
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
@@ -27,10 +27,12 @@ module MergeATSClient
|
|
27
27
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
28
28
|
# @option opts [String] :cursor The pagination cursor value.
|
29
29
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
30
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
30
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
31
32
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
32
33
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
33
34
|
# @option opts [Integer] :page_size Number of results to return per page.
|
35
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
34
36
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
35
37
|
# @return [PaginatedEEOCList]
|
36
38
|
def eeocs_list(x_account_token, opts = {})
|
@@ -46,10 +48,12 @@ module MergeATSClient
|
|
46
48
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
47
49
|
# @option opts [String] :cursor The pagination cursor value.
|
48
50
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
51
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
49
52
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
50
53
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
51
54
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
52
55
|
# @option opts [Integer] :page_size Number of results to return per page.
|
56
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
53
57
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
54
58
|
# @return [Array<(PaginatedEEOCList, Integer, Hash)>] PaginatedEEOCList data, response status code and response headers
|
55
59
|
def eeocs_list_with_http_info(x_account_token, opts = {})
|
@@ -64,6 +68,10 @@ module MergeATSClient
|
|
64
68
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
65
69
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
66
70
|
end
|
71
|
+
allowable_values = ["disability_status", "disability_status,gender", "disability_status,gender,race", "disability_status,gender,race,veteran_status", "disability_status,gender,veteran_status", "disability_status,race", "disability_status,race,veteran_status", "disability_status,veteran_status", "gender", "gender,race", "gender,race,veteran_status", "gender,veteran_status", "race", "race,veteran_status", "veteran_status"]
|
72
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
73
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
74
|
+
end
|
67
75
|
# resource path
|
68
76
|
local_var_path = '/eeocs'
|
69
77
|
|
@@ -74,10 +82,12 @@ module MergeATSClient
|
|
74
82
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
75
83
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
76
84
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
85
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
77
86
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
78
87
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
79
88
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
80
89
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
90
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
81
91
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
82
92
|
|
83
93
|
# header parameters
|
@@ -121,6 +131,7 @@ module MergeATSClient
|
|
121
131
|
# @param [Hash] opts the optional parameters
|
122
132
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
123
133
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
134
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
124
135
|
# @return [EEOC]
|
125
136
|
def eeocs_retrieve(x_account_token, id, opts = {})
|
126
137
|
data, _status_code, _headers = eeocs_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -133,6 +144,7 @@ module MergeATSClient
|
|
133
144
|
# @param [Hash] opts the optional parameters
|
134
145
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
135
146
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
147
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
136
148
|
# @return [Array<(EEOC, Integer, Hash)>] EEOC data, response status code and response headers
|
137
149
|
def eeocs_retrieve_with_http_info(x_account_token, id, opts = {})
|
138
150
|
if @api_client.config.debugging
|
@@ -150,6 +162,10 @@ module MergeATSClient
|
|
150
162
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
151
163
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
152
164
|
end
|
165
|
+
allowable_values = ["disability_status", "disability_status,gender", "disability_status,gender,race", "disability_status,gender,race,veteran_status", "disability_status,gender,veteran_status", "disability_status,race", "disability_status,race,veteran_status", "disability_status,veteran_status", "gender", "gender,race", "gender,race,veteran_status", "gender,veteran_status", "race", "race,veteran_status", "veteran_status"]
|
166
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
167
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
168
|
+
end
|
153
169
|
# resource path
|
154
170
|
local_var_path = '/eeocs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
155
171
|
|
@@ -157,6 +173,7 @@ module MergeATSClient
|
|
157
173
|
query_params = opts[:query_params] || {}
|
158
174
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
159
175
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
176
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
160
177
|
|
161
178
|
# header parameters
|
162
179
|
header_params = opts[:header_params] || {}
|