merge_ats_client 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +53 -17
- data/docs/AccountDetails.md +34 -0
- data/docs/AccountDetailsAndActions.md +34 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +79 -0
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/ActivitiesApi.md +6 -4
- data/docs/Activity.md +7 -5
- data/docs/Application.md +12 -8
- data/docs/ApplicationEndpointRequest.md +20 -0
- data/docs/ApplicationRequest.md +16 -8
- data/docs/ApplicationResponse.md +24 -0
- data/docs/ApplicationsApi.md +98 -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 +93 -15
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/Candidate.md +11 -7
- data/docs/CandidateEndpointRequest.md +20 -0
- data/docs/CandidateRequest.md +15 -7
- data/docs/CandidateResponse.md +24 -0
- data/docs/CandidatesApi.md +171 -17
- data/docs/CategoriesEnum.md +15 -0
- data/docs/CategoryEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +8 -4
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/DeleteAccountApi.md +78 -0
- data/docs/Department.md +3 -1
- data/docs/DepartmentsApi.md +6 -4
- data/docs/EEOC.md +5 -3
- data/docs/EeocsApi.md +6 -4
- data/docs/EmailAddress.md +1 -1
- data/docs/EmailAddressRequest.md +1 -1
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +5 -3
- 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 +6 -84
- data/docs/Issue.md +30 -0
- data/docs/IssueStatusEnum.md +15 -0
- data/docs/IssuesApi.md +177 -0
- data/docs/Job.md +13 -7
- data/docs/JobInterviewStage.md +4 -2
- data/docs/JobInterviewStagesApi.md +8 -6
- data/docs/JobsApi.md +9 -5
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Offer.md +9 -7
- data/docs/OffersApi.md +6 -4
- data/docs/Office.md +3 -1
- data/docs/OfficesApi.md +6 -4
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedIssueList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- 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/RemoteUser.md +4 -2
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/ScheduledInterview.md +11 -9
- data/docs/Scorecard.md +8 -6
- data/docs/ScorecardsApi.md +6 -84
- data/docs/SyncStatusApi.md +3 -75
- data/docs/Tag.md +3 -1
- data/docs/TagsApi.md +4 -2
- data/docs/UsersApi.md +7 -84
- 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 +84 -0
- data/lib/merge_ats_client/api/account_token_api.rb +1 -1
- data/lib/merge_ats_client/api/activities_api.rb +4 -1
- data/lib/merge_ats_client/api/applications_api.rb +87 -16
- data/lib/merge_ats_client/api/attachments_api.rb +95 -16
- data/lib/merge_ats_client/api/available_actions_api.rb +1 -1
- data/lib/merge_ats_client/api/candidates_api.rb +163 -16
- data/lib/merge_ats_client/api/delete_account_api.rb +82 -0
- data/lib/merge_ats_client/api/departments_api.rb +4 -1
- data/lib/merge_ats_client/api/eeocs_api.rb +4 -1
- data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ats_client/api/generate_key_api.rb +1 -1
- data/lib/merge_ats_client/api/interviews_api.rb +4 -77
- data/lib/merge_ats_client/api/issues_api.rb +181 -0
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +6 -3
- data/lib/merge_ats_client/api/jobs_api.rb +10 -4
- data/lib/merge_ats_client/api/link_token_api.rb +1 -1
- data/lib/merge_ats_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_ats_client/api/offers_api.rb +4 -1
- data/lib/merge_ats_client/api/offices_api.rb +4 -1
- data/lib/merge_ats_client/api/passthrough_api.rb +1 -1
- data/lib/merge_ats_client/api/regenerate_key_api.rb +1 -1
- data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -1
- data/lib/merge_ats_client/api/scorecards_api.rb +4 -77
- data/lib/merge_ats_client/api/sync_status_api.rb +5 -67
- data/lib/merge_ats_client/api/tags_api.rb +4 -1
- data/lib/merge_ats_client/api/users_api.rb +4 -77
- data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ats_client/api_client.rb +1 -1
- data/lib/merge_ats_client/api_error.rb +1 -1
- data/lib/merge_ats_client/configuration.rb +7 -5
- data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
- data/lib/merge_ats_client/models/{end_user_details.rb → account_details.rb} +68 -66
- data/lib/merge_ats_client/models/{scheduled_interview_request.rb → account_details_and_actions.rb} +85 -100
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/account_integration.rb +7 -29
- data/lib/merge_ats_client/models/account_token.rb +2 -2
- data/lib/merge_ats_client/models/activity.rb +17 -8
- data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/application.rb +29 -12
- data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/application_request.rb +70 -13
- data/lib/merge_ats_client/models/application_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment.rb +16 -7
- 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 +0 -2
- data/lib/merge_ats_client/models/available_actions.rb +2 -2
- data/lib/merge_ats_client/models/candidate.rb +32 -7
- data/lib/merge_ats_client/models/candidate_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/candidate_request.rb +72 -7
- data/lib/merge_ats_client/models/candidate_response.rb +266 -0
- data/lib/merge_ats_client/models/categories_enum.rb +38 -0
- data/lib/merge_ats_client/models/category_enum.rb +38 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +81 -10
- 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 +18 -8
- data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/eeoc.rb +17 -8
- data/lib/merge_ats_client/models/email_address.rb +3 -3
- data/lib/merge_ats_client/models/email_address_request.rb +3 -3
- data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/encoding_enum.rb +35 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +148 -29
- data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/gender_enum.rb +1 -1
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +21 -2
- data/lib/merge_ats_client/models/{remote_user_request.rb → ignore_common_model.rb} +30 -85
- data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_ats_client/models/{scorecard_request.rb → issue.rb} +56 -62
- data/lib/merge_ats_client/models/issue_status_enum.rb +35 -0
- data/lib/merge_ats_client/models/job.rb +43 -7
- data/lib/merge_ats_client/models/job_interview_stage.rb +17 -8
- data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/link_token.rb +2 -2
- data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ats_client/models/meta_response.rb +262 -0
- data/lib/merge_ats_client/models/method_enum.rb +1 -1
- data/lib/merge_ats_client/models/model_operation.rb +2 -2
- data/lib/merge_ats_client/models/{patched_application_request.rb → multipart_form_field_request.rb} +120 -88
- data/lib/merge_ats_client/models/offer.rb +17 -9
- data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/office.rb +18 -8
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
- data/lib/merge_ats_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_activity_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_application_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_department_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_issue_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_job_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_offer_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_office_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_tag_list.rb +2 -2
- data/lib/merge_ats_client/models/phone_number.rb +3 -3
- data/lib/merge_ats_client/models/phone_number_request.rb +3 -3
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/race_enum.rb +1 -1
- data/lib/merge_ats_client/models/reason_enum.rb +36 -0
- data/lib/merge_ats_client/models/reject_reason.rb +18 -8
- data/lib/merge_ats_client/models/remote_data.rb +2 -2
- data/lib/merge_ats_client/models/remote_data_request.rb +21 -2
- data/lib/merge_ats_client/models/remote_key.rb +2 -2
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +21 -2
- data/lib/merge_ats_client/models/remote_response.rb +2 -2
- data/lib/merge_ats_client/models/remote_user.rb +18 -8
- data/lib/merge_ats_client/models/request_format_enum.rb +36 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +18 -10
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/scorecard.rb +17 -10
- data/lib/merge_ats_client/models/sync_status.rb +2 -2
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -2
- data/lib/merge_ats_client/models/tag.rb +18 -8
- data/lib/merge_ats_client/models/url.rb +8 -8
- data/lib/merge_ats_client/models/url_request.rb +8 -8
- data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → validation_problem_source.rb} +15 -16
- data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
- 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/webhook_receiver_request.rb +280 -0
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +38 -4
- data/merge_ats_client.gemspec +1 -1
- data/spec/api/account_details_api_spec.rb +46 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/activities_api_spec.rb +4 -1
- data/spec/api/applications_api_spec.rb +31 -1
- data/spec/api/attachments_api_spec.rb +31 -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 +4 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/interviews_api_spec.rb +4 -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 +6 -1
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api/offers_api_spec.rb +4 -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 +4 -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 +5 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/access_role_enum_spec.rb +1 -1
- data/spec/models/{scorecard_request_spec.rb → account_details_and_actions_integration_spec.rb} +19 -13
- data/spec/models/{scheduled_interview_request_spec.rb → account_details_and_actions_spec.rb} +15 -27
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/{patched_application_request_spec.rb → account_details_spec.rb} +16 -16
- 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/categories_enum_spec.rb +28 -0
- data/spec/models/category_enum_spec.rb +28 -0
- data/spec/models/data_passthrough_request_spec.rb +13 -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 +13 -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 +31 -1
- data/spec/models/job_status_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +1 -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_account_details_and_actions_list_spec.rb +46 -0
- 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 +1 -1
- data/spec/models/remote_user_spec.rb +13 -1
- data/spec/models/request_format_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/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
- data/spec/spec_helper.rb +1 -1
- metadata +220 -113
- 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/test_ats.rb +0 -22
- data/test_signature.rb +0 -32
@@ -0,0 +1,84 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge ATS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Applicant Tracking System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeATSClient
|
16
|
+
class ForceResyncApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Array<SyncStatus>]
|
26
|
+
def sync_status_resync_create(x_account_token, opts = {})
|
27
|
+
data, _status_code, _headers = sync_status_resync_create_with_http_info(x_account_token, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
32
|
+
# @param x_account_token [String] Token identifying the end user.
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(Array<SyncStatus>, Integer, Hash)>] Array<SyncStatus> data, response status code and response headers
|
35
|
+
def sync_status_resync_create_with_http_info(x_account_token, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: ForceResyncApi.sync_status_resync_create ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'x_account_token' is set
|
40
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ForceResyncApi.sync_status_resync_create"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/sync-status/resync'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
header_params[:'X-Account-Token'] = x_account_token
|
54
|
+
|
55
|
+
# form parameters
|
56
|
+
form_params = opts[:form_params] || {}
|
57
|
+
|
58
|
+
# http body (model)
|
59
|
+
post_body = opts[:debug_body]
|
60
|
+
|
61
|
+
# return_type
|
62
|
+
return_type = opts[:debug_return_type] || 'Array<SyncStatus>'
|
63
|
+
|
64
|
+
# auth_names
|
65
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
66
|
+
|
67
|
+
new_options = opts.merge(
|
68
|
+
:operation => :"ForceResyncApi.sync_status_resync_create",
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: ForceResyncApi#sync_status_resync_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,82 +19,6 @@ module MergeATSClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Creates a `ScheduledInterview` object with the given values.
|
23
|
-
# @param x_account_token [String] Token identifying the end user.
|
24
|
-
# @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
27
|
-
# @option opts [ScheduledInterviewRequest] :scheduled_interview_request
|
28
|
-
# @return [ScheduledInterview]
|
29
|
-
def interviews_create(x_account_token, remote_user_id, opts = {})
|
30
|
-
data, _status_code, _headers = interviews_create_with_http_info(x_account_token, remote_user_id, opts)
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
# Creates a `ScheduledInterview` object with the given values.
|
35
|
-
# @param x_account_token [String] Token identifying the end user.
|
36
|
-
# @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
39
|
-
# @option opts [ScheduledInterviewRequest] :scheduled_interview_request
|
40
|
-
# @return [Array<(ScheduledInterview, Integer, Hash)>] ScheduledInterview data, response status code and response headers
|
41
|
-
def interviews_create_with_http_info(x_account_token, remote_user_id, opts = {})
|
42
|
-
if @api_client.config.debugging
|
43
|
-
@api_client.config.logger.debug 'Calling API: InterviewsApi.interviews_create ...'
|
44
|
-
end
|
45
|
-
# verify the required parameter 'x_account_token' is set
|
46
|
-
if @api_client.config.client_side_validation && x_account_token.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling InterviewsApi.interviews_create"
|
48
|
-
end
|
49
|
-
# verify the required parameter 'remote_user_id' is set
|
50
|
-
if @api_client.config.client_side_validation && remote_user_id.nil?
|
51
|
-
fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling InterviewsApi.interviews_create"
|
52
|
-
end
|
53
|
-
# resource path
|
54
|
-
local_var_path = '/interviews'
|
55
|
-
|
56
|
-
# query parameters
|
57
|
-
query_params = opts[:query_params] || {}
|
58
|
-
query_params[:'remote_user_id'] = remote_user_id
|
59
|
-
query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
|
60
|
-
|
61
|
-
# header parameters
|
62
|
-
header_params = opts[:header_params] || {}
|
63
|
-
# HTTP header 'Accept' (if needed)
|
64
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
-
# HTTP header 'Content-Type'
|
66
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
67
|
-
header_params[:'X-Account-Token'] = x_account_token
|
68
|
-
|
69
|
-
# form parameters
|
70
|
-
form_params = opts[:form_params] || {}
|
71
|
-
|
72
|
-
# http body (model)
|
73
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'scheduled_interview_request'])
|
74
|
-
|
75
|
-
# return_type
|
76
|
-
return_type = opts[:debug_return_type] || 'ScheduledInterview'
|
77
|
-
|
78
|
-
# auth_names
|
79
|
-
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
80
|
-
|
81
|
-
new_options = opts.merge(
|
82
|
-
:operation => :"InterviewsApi.interviews_create",
|
83
|
-
:header_params => header_params,
|
84
|
-
:query_params => query_params,
|
85
|
-
:form_params => form_params,
|
86
|
-
:body => post_body,
|
87
|
-
:auth_names => auth_names,
|
88
|
-
:return_type => return_type
|
89
|
-
)
|
90
|
-
|
91
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
92
|
-
if @api_client.config.debugging
|
93
|
-
@api_client.config.logger.debug "API called: InterviewsApi#interviews_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
94
|
-
end
|
95
|
-
return data, status_code, headers
|
96
|
-
end
|
97
|
-
|
98
22
|
# Returns a list of `ScheduledInterview` objects.
|
99
23
|
# @param x_account_token [String] Token identifying the end user.
|
100
24
|
# @param [Hash] opts the optional parameters
|
@@ -103,6 +27,7 @@ module MergeATSClient
|
|
103
27
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
104
28
|
# @option opts [String] :cursor The pagination cursor value.
|
105
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 deleted in the third-party service.
|
106
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
107
32
|
# @option opts [String] :job_interview_stage_id If provided, will only return interviews at this stage.
|
108
33
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
@@ -124,6 +49,7 @@ module MergeATSClient
|
|
124
49
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
125
50
|
# @option opts [String] :cursor The pagination cursor value.
|
126
51
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
52
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
127
53
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
128
54
|
# @option opts [String] :job_interview_stage_id If provided, will only return interviews at this stage.
|
129
55
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
@@ -154,6 +80,7 @@ module MergeATSClient
|
|
154
80
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
155
81
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
156
82
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
83
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
157
84
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
158
85
|
query_params[:'job_interview_stage_id'] = opts[:'job_interview_stage_id'] if !opts[:'job_interview_stage_id'].nil?
|
159
86
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
@@ -0,0 +1,181 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge ATS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Applicant Tracking System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeATSClient
|
16
|
+
class IssuesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Gets issues.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :account_token
|
25
|
+
# @option opts [String] :cursor The pagination cursor value.
|
26
|
+
# @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
|
27
|
+
# @option opts [String] :end_user_organization_name
|
28
|
+
# @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
29
|
+
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
30
|
+
# @option opts [String] :include_muted If True, will include muted issues
|
31
|
+
# @option opts [String] :integration_name
|
32
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
33
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
34
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
35
|
+
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
36
|
+
# @option opts [String] :status
|
37
|
+
# @return [PaginatedIssueList]
|
38
|
+
def issues_list(opts = {})
|
39
|
+
data, _status_code, _headers = issues_list_with_http_info(opts)
|
40
|
+
data
|
41
|
+
end
|
42
|
+
|
43
|
+
# Gets issues.
|
44
|
+
# @param [Hash] opts the optional parameters
|
45
|
+
# @option opts [String] :account_token
|
46
|
+
# @option opts [String] :cursor The pagination cursor value.
|
47
|
+
# @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
|
48
|
+
# @option opts [String] :end_user_organization_name
|
49
|
+
# @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
50
|
+
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
51
|
+
# @option opts [String] :include_muted If True, will include muted issues
|
52
|
+
# @option opts [String] :integration_name
|
53
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
54
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
55
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
56
|
+
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
57
|
+
# @option opts [String] :status
|
58
|
+
# @return [Array<(PaginatedIssueList, Integer, Hash)>] PaginatedIssueList data, response status code and response headers
|
59
|
+
def issues_list_with_http_info(opts = {})
|
60
|
+
if @api_client.config.debugging
|
61
|
+
@api_client.config.logger.debug 'Calling API: IssuesApi.issues_list ...'
|
62
|
+
end
|
63
|
+
allowable_values = ["ONGOING", "RESOLVED"]
|
64
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
65
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
66
|
+
end
|
67
|
+
# resource path
|
68
|
+
local_var_path = '/issues'
|
69
|
+
|
70
|
+
# query parameters
|
71
|
+
query_params = opts[:query_params] || {}
|
72
|
+
query_params[:'account_token'] = opts[:'account_token'] if !opts[:'account_token'].nil?
|
73
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
74
|
+
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
75
|
+
query_params[:'end_user_organization_name'] = opts[:'end_user_organization_name'] if !opts[:'end_user_organization_name'].nil?
|
76
|
+
query_params[:'first_incident_time_after'] = opts[:'first_incident_time_after'] if !opts[:'first_incident_time_after'].nil?
|
77
|
+
query_params[:'first_incident_time_before'] = opts[:'first_incident_time_before'] if !opts[:'first_incident_time_before'].nil?
|
78
|
+
query_params[:'include_muted'] = opts[:'include_muted'] if !opts[:'include_muted'].nil?
|
79
|
+
query_params[:'integration_name'] = opts[:'integration_name'] if !opts[:'integration_name'].nil?
|
80
|
+
query_params[:'last_incident_time_after'] = opts[:'last_incident_time_after'] if !opts[:'last_incident_time_after'].nil?
|
81
|
+
query_params[:'last_incident_time_before'] = opts[:'last_incident_time_before'] if !opts[:'last_incident_time_before'].nil?
|
82
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
83
|
+
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
84
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
85
|
+
|
86
|
+
# header parameters
|
87
|
+
header_params = opts[:header_params] || {}
|
88
|
+
# HTTP header 'Accept' (if needed)
|
89
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
90
|
+
|
91
|
+
# form parameters
|
92
|
+
form_params = opts[:form_params] || {}
|
93
|
+
|
94
|
+
# http body (model)
|
95
|
+
post_body = opts[:debug_body]
|
96
|
+
|
97
|
+
# return_type
|
98
|
+
return_type = opts[:debug_return_type] || 'PaginatedIssueList'
|
99
|
+
|
100
|
+
# auth_names
|
101
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
102
|
+
|
103
|
+
new_options = opts.merge(
|
104
|
+
:operation => :"IssuesApi.issues_list",
|
105
|
+
:header_params => header_params,
|
106
|
+
:query_params => query_params,
|
107
|
+
:form_params => form_params,
|
108
|
+
:body => post_body,
|
109
|
+
:auth_names => auth_names,
|
110
|
+
:return_type => return_type
|
111
|
+
)
|
112
|
+
|
113
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug "API called: IssuesApi#issues_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
116
|
+
end
|
117
|
+
return data, status_code, headers
|
118
|
+
end
|
119
|
+
|
120
|
+
# Get a specific issue.
|
121
|
+
# @param id [String]
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @return [Issue]
|
124
|
+
def issues_retrieve(id, opts = {})
|
125
|
+
data, _status_code, _headers = issues_retrieve_with_http_info(id, opts)
|
126
|
+
data
|
127
|
+
end
|
128
|
+
|
129
|
+
# Get a specific issue.
|
130
|
+
# @param id [String]
|
131
|
+
# @param [Hash] opts the optional parameters
|
132
|
+
# @return [Array<(Issue, Integer, Hash)>] Issue data, response status code and response headers
|
133
|
+
def issues_retrieve_with_http_info(id, opts = {})
|
134
|
+
if @api_client.config.debugging
|
135
|
+
@api_client.config.logger.debug 'Calling API: IssuesApi.issues_retrieve ...'
|
136
|
+
end
|
137
|
+
# verify the required parameter 'id' is set
|
138
|
+
if @api_client.config.client_side_validation && id.nil?
|
139
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling IssuesApi.issues_retrieve"
|
140
|
+
end
|
141
|
+
# resource path
|
142
|
+
local_var_path = '/issues/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
143
|
+
|
144
|
+
# query parameters
|
145
|
+
query_params = opts[:query_params] || {}
|
146
|
+
|
147
|
+
# header parameters
|
148
|
+
header_params = opts[:header_params] || {}
|
149
|
+
# HTTP header 'Accept' (if needed)
|
150
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
151
|
+
|
152
|
+
# form parameters
|
153
|
+
form_params = opts[:form_params] || {}
|
154
|
+
|
155
|
+
# http body (model)
|
156
|
+
post_body = opts[:debug_body]
|
157
|
+
|
158
|
+
# return_type
|
159
|
+
return_type = opts[:debug_return_type] || 'Issue'
|
160
|
+
|
161
|
+
# auth_names
|
162
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
163
|
+
|
164
|
+
new_options = opts.merge(
|
165
|
+
:operation => :"IssuesApi.issues_retrieve",
|
166
|
+
:header_params => header_params,
|
167
|
+
:query_params => query_params,
|
168
|
+
:form_params => form_params,
|
169
|
+
:body => post_body,
|
170
|
+
:auth_names => auth_names,
|
171
|
+
:return_type => return_type
|
172
|
+
)
|
173
|
+
|
174
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
175
|
+
if @api_client.config.debugging
|
176
|
+
@api_client.config.logger.debug "API called: IssuesApi#issues_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
177
|
+
end
|
178
|
+
return data, status_code, headers
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,6 +26,7 @@ module MergeATSClient
|
|
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
28
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
29
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
29
30
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
30
31
|
# @option opts [String] :job_id If provided, will only return interview stages for this job.
|
31
32
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
@@ -45,6 +46,7 @@ module MergeATSClient
|
|
45
46
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
46
47
|
# @option opts [String] :cursor The pagination cursor value.
|
47
48
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
49
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
48
50
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
49
51
|
# @option opts [String] :job_id If provided, will only return interview stages for this job.
|
50
52
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
@@ -60,7 +62,7 @@ module MergeATSClient
|
|
60
62
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
61
63
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling JobInterviewStagesApi.job_interview_stages_list"
|
62
64
|
end
|
63
|
-
allowable_values = ["
|
65
|
+
allowable_values = ["job"]
|
64
66
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
65
67
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
66
68
|
end
|
@@ -73,6 +75,7 @@ module MergeATSClient
|
|
73
75
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
74
76
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
75
77
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
78
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
76
79
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
77
80
|
query_params[:'job_id'] = opts[:'job_id'] if !opts[:'job_id'].nil?
|
78
81
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
@@ -146,7 +149,7 @@ module MergeATSClient
|
|
146
149
|
if @api_client.config.client_side_validation && id.nil?
|
147
150
|
fail ArgumentError, "Missing the required parameter 'id' when calling JobInterviewStagesApi.job_interview_stages_retrieve"
|
148
151
|
end
|
149
|
-
allowable_values = ["
|
152
|
+
allowable_values = ["job"]
|
150
153
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
151
154
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
152
155
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,10 +22,12 @@ module MergeATSClient
|
|
22
22
|
# Returns a list of `Job` objects.
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :code If provided, will only return jobs with this code.
|
25
26
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
27
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
28
|
# @option opts [String] :cursor The pagination cursor value.
|
28
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 deleted in the third-party service.
|
29
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
30
32
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
31
33
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -41,10 +43,12 @@ module MergeATSClient
|
|
41
43
|
# Returns a list of `Job` objects.
|
42
44
|
# @param x_account_token [String] Token identifying the end user.
|
43
45
|
# @param [Hash] opts the optional parameters
|
46
|
+
# @option opts [String] :code If provided, will only return jobs with this code.
|
44
47
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
45
48
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
46
49
|
# @option opts [String] :cursor The pagination cursor value.
|
47
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 deleted in the third-party service.
|
48
52
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
49
53
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
50
54
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -60,11 +64,11 @@ module MergeATSClient
|
|
60
64
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
61
65
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling JobsApi.jobs_list"
|
62
66
|
end
|
63
|
-
allowable_values = ["departments", "departments,hiring_managers", "departments,offices", "departments,offices,hiring_managers", "hiring_managers", "offices", "offices,hiring_managers"]
|
67
|
+
allowable_values = ["departments", "departments,hiring_managers", "departments,hiring_managers,recruiters", "departments,offices", "departments,offices,hiring_managers", "departments,offices,hiring_managers,recruiters", "departments,offices,recruiters", "departments,recruiters", "hiring_managers", "hiring_managers,recruiters", "offices", "offices,hiring_managers", "offices,hiring_managers,recruiters", "offices,recruiters", "recruiters"]
|
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
|
67
|
-
allowable_values = ["
|
71
|
+
allowable_values = ["ARCHIVED", "CLOSED", "DRAFT", "OPEN", "PENDING"]
|
68
72
|
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
69
73
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
70
74
|
end
|
@@ -73,10 +77,12 @@ module MergeATSClient
|
|
73
77
|
|
74
78
|
# query parameters
|
75
79
|
query_params = opts[:query_params] || {}
|
80
|
+
query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
|
76
81
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
77
82
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
78
83
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
79
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?
|
80
86
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
81
87
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
82
88
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
@@ -150,7 +156,7 @@ module MergeATSClient
|
|
150
156
|
if @api_client.config.client_side_validation && id.nil?
|
151
157
|
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.jobs_retrieve"
|
152
158
|
end
|
153
|
-
allowable_values = ["departments", "departments,hiring_managers", "departments,offices", "departments,offices,hiring_managers", "hiring_managers", "offices", "offices,hiring_managers"]
|
159
|
+
allowable_values = ["departments", "departments,hiring_managers", "departments,hiring_managers,recruiters", "departments,offices", "departments,offices,hiring_managers", "departments,offices,hiring_managers,recruiters", "departments,offices,recruiters", "departments,recruiters", "hiring_managers", "hiring_managers,recruiters", "offices", "offices,hiring_managers", "offices,hiring_managers,recruiters", "offices,recruiters", "recruiters"]
|
154
160
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
155
161
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
156
162
|
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge ATS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Applicant Tracking System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeATSClient
|
16
|
+
class LinkedAccountsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List linked accounts for your organization.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :category
|
25
|
+
# @option opts [String] :cursor The pagination cursor value.
|
26
|
+
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
27
|
+
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
28
|
+
# @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
|
29
|
+
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
30
|
+
# @option opts [String] :id
|
31
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
32
|
+
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
33
|
+
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
34
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
35
|
+
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
36
|
+
# @return [PaginatedAccountDetailsAndActionsList]
|
37
|
+
def linked_accounts_list(opts = {})
|
38
|
+
data, _status_code, _headers = linked_accounts_list_with_http_info(opts)
|
39
|
+
data
|
40
|
+
end
|
41
|
+
|
42
|
+
# List linked accounts for your organization.
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @option opts [String] :category
|
45
|
+
# @option opts [String] :cursor The pagination cursor value.
|
46
|
+
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
47
|
+
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
48
|
+
# @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
|
49
|
+
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
50
|
+
# @option opts [String] :id
|
51
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
52
|
+
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
53
|
+
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
54
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
55
|
+
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
56
|
+
# @return [Array<(PaginatedAccountDetailsAndActionsList, Integer, Hash)>] PaginatedAccountDetailsAndActionsList data, response status code and response headers
|
57
|
+
def linked_accounts_list_with_http_info(opts = {})
|
58
|
+
if @api_client.config.debugging
|
59
|
+
@api_client.config.logger.debug 'Calling API: LinkedAccountsApi.linked_accounts_list ...'
|
60
|
+
end
|
61
|
+
allowable_values = ["accounting", "ats", "crm", "hris", "ticketing"]
|
62
|
+
if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
|
63
|
+
fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
|
64
|
+
end
|
65
|
+
# resource path
|
66
|
+
local_var_path = '/linked-accounts'
|
67
|
+
|
68
|
+
# query parameters
|
69
|
+
query_params = opts[:query_params] || {}
|
70
|
+
query_params[:'category'] = opts[:'category'] if !opts[:'category'].nil?
|
71
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
72
|
+
query_params[:'end_user_email_address'] = opts[:'end_user_email_address'] if !opts[:'end_user_email_address'].nil?
|
73
|
+
query_params[:'end_user_organization_name'] = opts[:'end_user_organization_name'] if !opts[:'end_user_organization_name'].nil?
|
74
|
+
query_params[:'end_user_origin_id'] = opts[:'end_user_origin_id'] if !opts[:'end_user_origin_id'].nil?
|
75
|
+
query_params[:'end_user_origin_ids'] = opts[:'end_user_origin_ids'] if !opts[:'end_user_origin_ids'].nil?
|
76
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
77
|
+
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
|
78
|
+
query_params[:'integration_name'] = opts[:'integration_name'] if !opts[:'integration_name'].nil?
|
79
|
+
query_params[:'is_test_account'] = opts[:'is_test_account'] if !opts[:'is_test_account'].nil?
|
80
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
81
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
82
|
+
|
83
|
+
# header parameters
|
84
|
+
header_params = opts[:header_params] || {}
|
85
|
+
# HTTP header 'Accept' (if needed)
|
86
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
87
|
+
|
88
|
+
# form parameters
|
89
|
+
form_params = opts[:form_params] || {}
|
90
|
+
|
91
|
+
# http body (model)
|
92
|
+
post_body = opts[:debug_body]
|
93
|
+
|
94
|
+
# return_type
|
95
|
+
return_type = opts[:debug_return_type] || 'PaginatedAccountDetailsAndActionsList'
|
96
|
+
|
97
|
+
# auth_names
|
98
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
99
|
+
|
100
|
+
new_options = opts.merge(
|
101
|
+
:operation => :"LinkedAccountsApi.linked_accounts_list",
|
102
|
+
:header_params => header_params,
|
103
|
+
:query_params => query_params,
|
104
|
+
:form_params => form_params,
|
105
|
+
:body => post_body,
|
106
|
+
:auth_names => auth_names,
|
107
|
+
:return_type => return_type
|
108
|
+
)
|
109
|
+
|
110
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
111
|
+
if @api_client.config.debugging
|
112
|
+
@api_client.config.logger.debug "API called: LinkedAccountsApi#linked_accounts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
113
|
+
end
|
114
|
+
return data, status_code, headers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|