merge_ats_client 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +208 -0
- data/Rakefile +10 -0
- data/config.json +2 -0
- data/docs/AccessRoleEnum.md +15 -0
- data/docs/AccountIntegration.md +28 -0
- data/docs/AccountToken.md +18 -0
- data/docs/AccountTokenApi.md +79 -0
- data/docs/ActivitiesApi.md +181 -0
- data/docs/Activity.md +34 -0
- data/docs/ActivityTypeEnum.md +15 -0
- data/docs/Application.md +38 -0
- data/docs/ApplicationRequest.md +34 -0
- data/docs/ApplicationsApi.md +351 -0
- data/docs/Attachment.md +28 -0
- data/docs/AttachmentsApi.md +177 -0
- data/docs/AvailableActions.md +22 -0
- data/docs/AvailableActionsApi.md +79 -0
- data/docs/Candidate.md +54 -0
- data/docs/CandidateRequest.md +46 -0
- data/docs/CandidatesApi.md +259 -0
- data/docs/DataPassthrough.md +24 -0
- data/docs/DataPassthroughRequest.md +26 -0
- data/docs/Department.md +24 -0
- data/docs/DepartmentsApi.md +175 -0
- data/docs/DisabilityStatusEnum.md +15 -0
- data/docs/EEOC.md +34 -0
- data/docs/EeocsApi.md +181 -0
- data/docs/EmailAddress.md +20 -0
- data/docs/EmailAddressRequest.md +20 -0
- data/docs/EmailAddressTypeEnum.md +15 -0
- data/docs/EndUserDetails.md +24 -0
- data/docs/EndUserDetailsRequest.md +26 -0
- data/docs/GenderEnum.md +15 -0
- data/docs/GenerateKeyApi.md +79 -0
- data/docs/GenerateRemoteKeyRequest.md +18 -0
- data/docs/InterviewsApi.md +185 -0
- data/docs/Job.md +40 -0
- data/docs/JobInterviewStage.md +26 -0
- data/docs/JobInterviewStagesApi.md +181 -0
- data/docs/JobStatusEnum.md +15 -0
- data/docs/JobsApi.md +179 -0
- data/docs/LinkToken.md +20 -0
- data/docs/LinkTokenApi.md +79 -0
- data/docs/MethodEnum.md +15 -0
- data/docs/ModelOperation.md +22 -0
- data/docs/Offer.md +36 -0
- data/docs/OfferStatusEnum.md +15 -0
- data/docs/OffersApi.md +183 -0
- data/docs/Office.md +26 -0
- data/docs/OfficesApi.md +175 -0
- data/docs/OverallRecommendationEnum.md +15 -0
- data/docs/PaginatedActivityList.md +22 -0
- data/docs/PaginatedApplicationList.md +22 -0
- data/docs/PaginatedAttachmentList.md +22 -0
- data/docs/PaginatedCandidateList.md +22 -0
- data/docs/PaginatedDepartmentList.md +22 -0
- data/docs/PaginatedEEOCList.md +22 -0
- data/docs/PaginatedJobInterviewStageList.md +22 -0
- data/docs/PaginatedJobList.md +22 -0
- data/docs/PaginatedOfferList.md +22 -0
- data/docs/PaginatedOfficeList.md +22 -0
- data/docs/PaginatedRejectReasonList.md +22 -0
- data/docs/PaginatedRemoteUserList.md +22 -0
- data/docs/PaginatedScheduledInterviewList.md +22 -0
- data/docs/PaginatedScorecardList.md +22 -0
- data/docs/PaginatedTagList.md +22 -0
- data/docs/PassthroughApi.md +81 -0
- data/docs/PatchedApplicationRequest.md +34 -0
- data/docs/PhoneNumber.md +20 -0
- data/docs/PhoneNumberRequest.md +20 -0
- data/docs/PhoneNumberTypeEnum.md +15 -0
- data/docs/RaceEnum.md +15 -0
- data/docs/RegenerateKeyApi.md +79 -0
- data/docs/RejectReason.md +24 -0
- data/docs/RejectReasonsApi.md +175 -0
- data/docs/RemoteData.md +20 -0
- data/docs/RemoteDataRequest.md +20 -0
- data/docs/RemoteKey.md +20 -0
- data/docs/RemoteKeyForRegeneration.md +18 -0
- data/docs/RemoteKeyForRegenerationRequest.md +18 -0
- data/docs/RemoteResponse.md +26 -0
- data/docs/RemoteUser.md +34 -0
- data/docs/ScheduledInterview.md +42 -0
- data/docs/ScheduledInterviewStatusEnum.md +15 -0
- data/docs/Scorecard.md +34 -0
- data/docs/ScorecardsApi.md +185 -0
- data/docs/SyncStatus.md +28 -0
- data/docs/SyncStatusApi.md +79 -0
- data/docs/Tag.md +22 -0
- data/docs/TagsApi.md +97 -0
- data/docs/Url.md +20 -0
- data/docs/UrlRequest.md +20 -0
- data/docs/UrlTypeEnum.md +15 -0
- data/docs/UsersApi.md +175 -0
- data/docs/VeteranStatusEnum.md +15 -0
- data/docs/VisibilityEnum.md +15 -0
- data/git_push.sh +58 -0
- data/lib/merge_ats_client.rb +131 -0
- data/lib/merge_ats_client/api/account_token_api.rb +83 -0
- data/lib/merge_ats_client/api/activities_api.rb +196 -0
- data/lib/merge_ats_client/api/applications_api.rb +366 -0
- data/lib/merge_ats_client/api/attachments_api.rb +182 -0
- data/lib/merge_ats_client/api/available_actions_api.rb +84 -0
- data/lib/merge_ats_client/api/candidates_api.rb +269 -0
- data/lib/merge_ats_client/api/departments_api.rb +179 -0
- data/lib/merge_ats_client/api/eeocs_api.rb +196 -0
- data/lib/merge_ats_client/api/generate_key_api.rb +85 -0
- data/lib/merge_ats_client/api/interviews_api.rb +202 -0
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +196 -0
- data/lib/merge_ats_client/api/jobs_api.rb +193 -0
- data/lib/merge_ats_client/api/link_token_api.rb +85 -0
- data/lib/merge_ats_client/api/offers_api.rb +199 -0
- data/lib/merge_ats_client/api/offices_api.rb +179 -0
- data/lib/merge_ats_client/api/passthrough_api.rb +92 -0
- data/lib/merge_ats_client/api/regenerate_key_api.rb +85 -0
- data/lib/merge_ats_client/api/reject_reasons_api.rb +179 -0
- data/lib/merge_ats_client/api/scorecards_api.rb +202 -0
- data/lib/merge_ats_client/api/sync_status_api.rb +84 -0
- data/lib/merge_ats_client/api/tags_api.rb +108 -0
- data/lib/merge_ats_client/api/users_api.rb +179 -0
- data/lib/merge_ats_client/api_client.rb +390 -0
- data/lib/merge_ats_client/api_error.rb +57 -0
- data/lib/merge_ats_client/configuration.rb +279 -0
- data/lib/merge_ats_client/models/access_role_enum.rb +38 -0
- data/lib/merge_ats_client/models/account_integration.rb +325 -0
- data/lib/merge_ats_client/models/account_token.rb +223 -0
- data/lib/merge_ats_client/models/activity.rb +308 -0
- data/lib/merge_ats_client/models/activity_type_enum.rb +36 -0
- data/lib/merge_ats_client/models/application.rb +330 -0
- data/lib/merge_ats_client/models/application_request.rb +309 -0
- data/lib/merge_ats_client/models/attachment.rb +289 -0
- data/lib/merge_ats_client/models/available_actions.rb +249 -0
- data/lib/merge_ats_client/models/candidate.rb +420 -0
- data/lib/merge_ats_client/models/candidate_request.rb +377 -0
- data/lib/merge_ats_client/models/data_passthrough.rb +262 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +271 -0
- data/lib/merge_ats_client/models/department.rb +253 -0
- data/lib/merge_ats_client/models/disability_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/eeoc.rb +308 -0
- data/lib/merge_ats_client/models/email_address.rb +247 -0
- data/lib/merge_ats_client/models/email_address_request.rb +247 -0
- data/lib/merge_ats_client/models/email_address_type_enum.rb +36 -0
- data/lib/merge_ats_client/models/end_user_details.rb +289 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +298 -0
- data/lib/merge_ats_client/models/gender_enum.rb +38 -0
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +224 -0
- data/lib/merge_ats_client/models/job.rb +341 -0
- data/lib/merge_ats_client/models/job_interview_stage.rb +264 -0
- data/lib/merge_ats_client/models/job_status_enum.rb +38 -0
- data/lib/merge_ats_client/models/link_token.rb +237 -0
- data/lib/merge_ats_client/models/method_enum.rb +40 -0
- data/lib/merge_ats_client/models/model_operation.rb +256 -0
- data/lib/merge_ats_client/models/offer.rb +319 -0
- data/lib/merge_ats_client/models/offer_status_enum.rb +42 -0
- data/lib/merge_ats_client/models/office.rb +264 -0
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +38 -0
- data/lib/merge_ats_client/models/paginated_activity_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_application_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_department_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_job_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_offer_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_office_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_tag_list.rb +240 -0
- data/lib/merge_ats_client/models/patched_application_request.rb +309 -0
- data/lib/merge_ats_client/models/phone_number.rb +232 -0
- data/lib/merge_ats_client/models/phone_number_request.rb +232 -0
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +38 -0
- data/lib/merge_ats_client/models/race_enum.rb +41 -0
- data/lib/merge_ats_client/models/reject_reason.rb +253 -0
- data/lib/merge_ats_client/models/remote_data.rb +234 -0
- data/lib/merge_ats_client/models/remote_data_request.rb +234 -0
- data/lib/merge_ats_client/models/remote_key.rb +238 -0
- data/lib/merge_ats_client/models/remote_key_for_regeneration.rb +224 -0
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +224 -0
- data/lib/merge_ats_client/models/remote_response.rb +279 -0
- data/lib/merge_ats_client/models/remote_user.rb +323 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +352 -0
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/scorecard.rb +308 -0
- data/lib/merge_ats_client/models/sync_status.rb +294 -0
- data/lib/merge_ats_client/models/tag.rb +244 -0
- data/lib/merge_ats_client/models/url.rb +247 -0
- data/lib/merge_ats_client/models/url_request.rb +247 -0
- data/lib/merge_ats_client/models/url_type_enum.rb +39 -0
- data/lib/merge_ats_client/models/veteran_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/visibility_enum.rb +36 -0
- data/lib/merge_ats_client/version.rb +15 -0
- data/merge_ats_client-1.0.0.gem +0 -0
- data/merge_ats_client.gemspec +38 -0
- data/pull_request_template.md +22 -0
- data/spec/api/account_token_api_spec.rb +46 -0
- data/spec/api/activities_api_spec.rb +68 -0
- data/spec/api/applications_api_spec.rb +72 -0
- data/spec/api/attachments_api_spec.rb +66 -0
- data/spec/api/available_actions_api_spec.rb +46 -0
- data/spec/api/candidates_api_spec.rb +67 -0
- data/spec/api/departments_api_spec.rb +65 -0
- data/spec/api/eeocs_api_spec.rb +68 -0
- data/spec/api/interviews_api_spec.rb +70 -0
- data/spec/api/job_interview_stages_api_spec.rb +68 -0
- data/spec/api/jobs_api_spec.rb +67 -0
- data/spec/api/link_token_api_spec.rb +46 -0
- data/spec/api/offers_api_spec.rb +69 -0
- data/spec/api/offices_api_spec.rb +65 -0
- data/spec/api/passthrough_api_spec.rb +47 -0
- data/spec/api/regenerate_key_api_spec.rb +48 -0
- data/spec/api/reject_reasons_api_spec.rb +65 -0
- data/spec/api/scorecards_api_spec.rb +70 -0
- data/spec/api/sync_status_api_spec.rb +45 -0
- data/spec/api/tags_api_spec.rb +53 -0
- data/spec/api/users_api_spec.rb +65 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/access_role_enum_spec.rb +28 -0
- data/spec/models/account_integration_spec.rb +58 -0
- data/spec/models/account_token_spec.rb +34 -0
- data/spec/models/activity_spec.rb +76 -0
- data/spec/models/activity_type_enum_spec.rb +28 -0
- data/spec/models/application_request_spec.rb +82 -0
- data/spec/models/application_spec.rb +94 -0
- data/spec/models/attachment_spec.rb +52 -0
- data/spec/models/available_actions_spec.rb +46 -0
- data/spec/models/candidate_request_spec.rb +118 -0
- data/spec/models/candidate_spec.rb +136 -0
- data/spec/models/data_passthrough_request_spec.rb +58 -0
- data/spec/models/data_passthrough_spec.rb +52 -0
- data/spec/models/department_spec.rb +46 -0
- data/spec/models/disability_status_enum_spec.rb +28 -0
- data/spec/models/eeoc_spec.rb +76 -0
- data/spec/models/email_address_request_spec.rb +40 -0
- data/spec/models/email_address_spec.rb +40 -0
- data/spec/models/email_address_type_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +56 -0
- data/spec/models/end_user_details_spec.rb +56 -0
- data/spec/models/gender_enum_spec.rb +28 -0
- data/spec/models/generate_remote_key_request_spec.rb +34 -0
- data/spec/models/job_interview_stage_spec.rb +52 -0
- data/spec/models/job_spec.rb +88 -0
- data/spec/models/job_status_enum_spec.rb +28 -0
- data/spec/models/link_token_spec.rb +40 -0
- data/spec/models/method_enum_spec.rb +28 -0
- data/spec/models/model_operation_spec.rb +40 -0
- data/spec/models/offer_spec.rb +82 -0
- data/spec/models/offer_status_enum_spec.rb +28 -0
- data/spec/models/office_spec.rb +52 -0
- data/spec/models/overall_recommendation_enum_spec.rb +28 -0
- data/spec/models/paginated_activity_list_spec.rb +46 -0
- data/spec/models/paginated_application_list_spec.rb +46 -0
- data/spec/models/paginated_attachment_list_spec.rb +46 -0
- data/spec/models/paginated_candidate_list_spec.rb +46 -0
- data/spec/models/paginated_department_list_spec.rb +46 -0
- data/spec/models/paginated_eeoc_list_spec.rb +46 -0
- data/spec/models/paginated_job_interview_stage_list_spec.rb +46 -0
- data/spec/models/paginated_job_list_spec.rb +46 -0
- data/spec/models/paginated_offer_list_spec.rb +46 -0
- data/spec/models/paginated_office_list_spec.rb +46 -0
- data/spec/models/paginated_reject_reason_list_spec.rb +46 -0
- data/spec/models/paginated_remote_user_list_spec.rb +46 -0
- data/spec/models/paginated_scheduled_interview_list_spec.rb +46 -0
- data/spec/models/paginated_scorecard_list_spec.rb +46 -0
- data/spec/models/paginated_tag_list_spec.rb +46 -0
- data/spec/models/patched_application_request_spec.rb +82 -0
- data/spec/models/phone_number_request_spec.rb +40 -0
- data/spec/models/phone_number_spec.rb +40 -0
- data/spec/models/phone_number_type_enum_spec.rb +28 -0
- data/spec/models/race_enum_spec.rb +28 -0
- data/spec/models/reject_reason_spec.rb +46 -0
- data/spec/models/remote_data_spec.rb +40 -0
- data/spec/models/remote_key_for_regeneration_request_spec.rb +34 -0
- data/spec/models/remote_key_for_regeneration_spec.rb +34 -0
- data/spec/models/remote_key_spec.rb +40 -0
- data/spec/models/remote_response_spec.rb +58 -0
- data/spec/models/remote_user_spec.rb +76 -0
- data/spec/models/scheduled_interview_spec.rb +100 -0
- data/spec/models/scheduled_interview_status_enum_spec.rb +28 -0
- data/spec/models/scorecard_spec.rb +76 -0
- data/spec/models/sync_status_spec.rb +64 -0
- data/spec/models/tag_spec.rb +40 -0
- data/spec/models/url_request_spec.rb +40 -0
- data/spec/models/url_spec.rb +40 -0
- data/spec/models/url_type_enum_spec.rb +28 -0
- data/spec/models/veteran_status_enum_spec.rb +28 -0
- data/spec/models/visibility_enum_spec.rb +28 -0
- data/spec/spec_helper.rb +111 -0
- data/test_ats.rb +22 -0
- data/test_signature.rb +32 -0
- metadata +473 -0
@@ -0,0 +1,179 @@
|
|
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.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeATSClient
|
16
|
+
class DepartmentsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Returns a list of `Department` objects.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
|
+
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
|
+
# @option opts [String] :cursor The pagination cursor value.
|
28
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
29
|
+
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
30
|
+
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
31
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
32
|
+
# @option opts [String] :remote_id The API provider's ID for the given object.
|
33
|
+
# @return [PaginatedDepartmentList]
|
34
|
+
def departments_list(x_account_token, opts = {})
|
35
|
+
data, _status_code, _headers = departments_list_with_http_info(x_account_token, opts)
|
36
|
+
data
|
37
|
+
end
|
38
|
+
|
39
|
+
# Returns a list of `Department` objects.
|
40
|
+
# @param x_account_token [String] Token identifying the end user.
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
43
|
+
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
44
|
+
# @option opts [String] :cursor The pagination cursor value.
|
45
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
|
+
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
|
+
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
48
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
49
|
+
# @option opts [String] :remote_id The API provider's ID for the given object.
|
50
|
+
# @return [Array<(PaginatedDepartmentList, Integer, Hash)>] PaginatedDepartmentList data, response status code and response headers
|
51
|
+
def departments_list_with_http_info(x_account_token, opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug 'Calling API: DepartmentsApi.departments_list ...'
|
54
|
+
end
|
55
|
+
# verify the required parameter 'x_account_token' is set
|
56
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling DepartmentsApi.departments_list"
|
58
|
+
end
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/departments'
|
61
|
+
|
62
|
+
# query parameters
|
63
|
+
query_params = opts[:query_params] || {}
|
64
|
+
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
65
|
+
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
66
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
67
|
+
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
68
|
+
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
69
|
+
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
70
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
71
|
+
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
72
|
+
|
73
|
+
# header parameters
|
74
|
+
header_params = opts[:header_params] || {}
|
75
|
+
# HTTP header 'Accept' (if needed)
|
76
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
77
|
+
header_params[:'X-Account-Token'] = x_account_token
|
78
|
+
|
79
|
+
# form parameters
|
80
|
+
form_params = opts[:form_params] || {}
|
81
|
+
|
82
|
+
# http body (model)
|
83
|
+
post_body = opts[:debug_body]
|
84
|
+
|
85
|
+
# return_type
|
86
|
+
return_type = opts[:debug_return_type] || 'PaginatedDepartmentList'
|
87
|
+
|
88
|
+
# auth_names
|
89
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
90
|
+
|
91
|
+
new_options = opts.merge(
|
92
|
+
:operation => :"DepartmentsApi.departments_list",
|
93
|
+
:header_params => header_params,
|
94
|
+
:query_params => query_params,
|
95
|
+
:form_params => form_params,
|
96
|
+
:body => post_body,
|
97
|
+
:auth_names => auth_names,
|
98
|
+
:return_type => return_type
|
99
|
+
)
|
100
|
+
|
101
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug "API called: DepartmentsApi#departments_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
104
|
+
end
|
105
|
+
return data, status_code, headers
|
106
|
+
end
|
107
|
+
|
108
|
+
# Returns a `Department` object with the given `id`.
|
109
|
+
# @param x_account_token [String] Token identifying the end user.
|
110
|
+
# @param id [String]
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
113
|
+
# @return [Department]
|
114
|
+
def departments_retrieve(x_account_token, id, opts = {})
|
115
|
+
data, _status_code, _headers = departments_retrieve_with_http_info(x_account_token, id, opts)
|
116
|
+
data
|
117
|
+
end
|
118
|
+
|
119
|
+
# Returns a `Department` object with the given `id`.
|
120
|
+
# @param x_account_token [String] Token identifying the end user.
|
121
|
+
# @param id [String]
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
124
|
+
# @return [Array<(Department, Integer, Hash)>] Department data, response status code and response headers
|
125
|
+
def departments_retrieve_with_http_info(x_account_token, id, opts = {})
|
126
|
+
if @api_client.config.debugging
|
127
|
+
@api_client.config.logger.debug 'Calling API: DepartmentsApi.departments_retrieve ...'
|
128
|
+
end
|
129
|
+
# verify the required parameter 'x_account_token' is set
|
130
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
131
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling DepartmentsApi.departments_retrieve"
|
132
|
+
end
|
133
|
+
# verify the required parameter 'id' is set
|
134
|
+
if @api_client.config.client_side_validation && id.nil?
|
135
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DepartmentsApi.departments_retrieve"
|
136
|
+
end
|
137
|
+
# resource path
|
138
|
+
local_var_path = '/departments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
139
|
+
|
140
|
+
# query parameters
|
141
|
+
query_params = opts[:query_params] || {}
|
142
|
+
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
143
|
+
|
144
|
+
# header parameters
|
145
|
+
header_params = opts[:header_params] || {}
|
146
|
+
# HTTP header 'Accept' (if needed)
|
147
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
148
|
+
header_params[:'X-Account-Token'] = x_account_token
|
149
|
+
|
150
|
+
# form parameters
|
151
|
+
form_params = opts[:form_params] || {}
|
152
|
+
|
153
|
+
# http body (model)
|
154
|
+
post_body = opts[:debug_body]
|
155
|
+
|
156
|
+
# return_type
|
157
|
+
return_type = opts[:debug_return_type] || 'Department'
|
158
|
+
|
159
|
+
# auth_names
|
160
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
161
|
+
|
162
|
+
new_options = opts.merge(
|
163
|
+
:operation => :"DepartmentsApi.departments_retrieve",
|
164
|
+
:header_params => header_params,
|
165
|
+
:query_params => query_params,
|
166
|
+
:form_params => form_params,
|
167
|
+
:body => post_body,
|
168
|
+
:auth_names => auth_names,
|
169
|
+
:return_type => return_type
|
170
|
+
)
|
171
|
+
|
172
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
173
|
+
if @api_client.config.debugging
|
174
|
+
@api_client.config.logger.debug "API called: DepartmentsApi#departments_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
175
|
+
end
|
176
|
+
return data, status_code, headers
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
@@ -0,0 +1,196 @@
|
|
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.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeATSClient
|
16
|
+
class EeocsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Returns a list of `EEOC` objects.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :candidate_id If provided, will only return EEOC info for this candidate.
|
26
|
+
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
27
|
+
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
28
|
+
# @option opts [String] :cursor The pagination cursor value.
|
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_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
31
|
+
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
32
|
+
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
33
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
34
|
+
# @option opts [String] :remote_id The API provider's ID for the given object.
|
35
|
+
# @return [PaginatedEEOCList]
|
36
|
+
def eeocs_list(x_account_token, opts = {})
|
37
|
+
data, _status_code, _headers = eeocs_list_with_http_info(x_account_token, opts)
|
38
|
+
data
|
39
|
+
end
|
40
|
+
|
41
|
+
# Returns a list of `EEOC` objects.
|
42
|
+
# @param x_account_token [String] Token identifying the end user.
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @option opts [String] :candidate_id If provided, will only return EEOC info for this candidate.
|
45
|
+
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
46
|
+
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
47
|
+
# @option opts [String] :cursor The pagination cursor value.
|
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_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
50
|
+
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
51
|
+
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
52
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
53
|
+
# @option opts [String] :remote_id The API provider's ID for the given object.
|
54
|
+
# @return [Array<(PaginatedEEOCList, Integer, Hash)>] PaginatedEEOCList data, response status code and response headers
|
55
|
+
def eeocs_list_with_http_info(x_account_token, opts = {})
|
56
|
+
if @api_client.config.debugging
|
57
|
+
@api_client.config.logger.debug 'Calling API: EeocsApi.eeocs_list ...'
|
58
|
+
end
|
59
|
+
# verify the required parameter 'x_account_token' is set
|
60
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
61
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EeocsApi.eeocs_list"
|
62
|
+
end
|
63
|
+
allowable_values = ["candidate"]
|
64
|
+
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
65
|
+
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
66
|
+
end
|
67
|
+
# resource path
|
68
|
+
local_var_path = '/eeocs'
|
69
|
+
|
70
|
+
# query parameters
|
71
|
+
query_params = opts[:query_params] || {}
|
72
|
+
query_params[:'candidate_id'] = opts[:'candidate_id'] if !opts[:'candidate_id'].nil?
|
73
|
+
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
74
|
+
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
75
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
76
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
77
|
+
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
78
|
+
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
79
|
+
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
80
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
81
|
+
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].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
|
+
header_params[:'X-Account-Token'] = x_account_token
|
88
|
+
|
89
|
+
# form parameters
|
90
|
+
form_params = opts[:form_params] || {}
|
91
|
+
|
92
|
+
# http body (model)
|
93
|
+
post_body = opts[:debug_body]
|
94
|
+
|
95
|
+
# return_type
|
96
|
+
return_type = opts[:debug_return_type] || 'PaginatedEEOCList'
|
97
|
+
|
98
|
+
# auth_names
|
99
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
100
|
+
|
101
|
+
new_options = opts.merge(
|
102
|
+
:operation => :"EeocsApi.eeocs_list",
|
103
|
+
:header_params => header_params,
|
104
|
+
:query_params => query_params,
|
105
|
+
:form_params => form_params,
|
106
|
+
:body => post_body,
|
107
|
+
:auth_names => auth_names,
|
108
|
+
:return_type => return_type
|
109
|
+
)
|
110
|
+
|
111
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
112
|
+
if @api_client.config.debugging
|
113
|
+
@api_client.config.logger.debug "API called: EeocsApi#eeocs_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
114
|
+
end
|
115
|
+
return data, status_code, headers
|
116
|
+
end
|
117
|
+
|
118
|
+
# Returns an `EEOC` object with the given `id`.
|
119
|
+
# @param x_account_token [String] Token identifying the end user.
|
120
|
+
# @param id [String]
|
121
|
+
# @param [Hash] opts the optional parameters
|
122
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
123
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
124
|
+
# @return [EEOC]
|
125
|
+
def eeocs_retrieve(x_account_token, id, opts = {})
|
126
|
+
data, _status_code, _headers = eeocs_retrieve_with_http_info(x_account_token, id, opts)
|
127
|
+
data
|
128
|
+
end
|
129
|
+
|
130
|
+
# Returns an `EEOC` object with the given `id`.
|
131
|
+
# @param x_account_token [String] Token identifying the end user.
|
132
|
+
# @param id [String]
|
133
|
+
# @param [Hash] opts the optional parameters
|
134
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
135
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
136
|
+
# @return [Array<(EEOC, Integer, Hash)>] EEOC data, response status code and response headers
|
137
|
+
def eeocs_retrieve_with_http_info(x_account_token, id, opts = {})
|
138
|
+
if @api_client.config.debugging
|
139
|
+
@api_client.config.logger.debug 'Calling API: EeocsApi.eeocs_retrieve ...'
|
140
|
+
end
|
141
|
+
# verify the required parameter 'x_account_token' is set
|
142
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
143
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EeocsApi.eeocs_retrieve"
|
144
|
+
end
|
145
|
+
# verify the required parameter 'id' is set
|
146
|
+
if @api_client.config.client_side_validation && id.nil?
|
147
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling EeocsApi.eeocs_retrieve"
|
148
|
+
end
|
149
|
+
allowable_values = ["candidate"]
|
150
|
+
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
151
|
+
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
152
|
+
end
|
153
|
+
# resource path
|
154
|
+
local_var_path = '/eeocs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
155
|
+
|
156
|
+
# query parameters
|
157
|
+
query_params = opts[:query_params] || {}
|
158
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
159
|
+
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
160
|
+
|
161
|
+
# header parameters
|
162
|
+
header_params = opts[:header_params] || {}
|
163
|
+
# HTTP header 'Accept' (if needed)
|
164
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
165
|
+
header_params[:'X-Account-Token'] = x_account_token
|
166
|
+
|
167
|
+
# form parameters
|
168
|
+
form_params = opts[:form_params] || {}
|
169
|
+
|
170
|
+
# http body (model)
|
171
|
+
post_body = opts[:debug_body]
|
172
|
+
|
173
|
+
# return_type
|
174
|
+
return_type = opts[:debug_return_type] || 'EEOC'
|
175
|
+
|
176
|
+
# auth_names
|
177
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
178
|
+
|
179
|
+
new_options = opts.merge(
|
180
|
+
:operation => :"EeocsApi.eeocs_retrieve",
|
181
|
+
:header_params => header_params,
|
182
|
+
:query_params => query_params,
|
183
|
+
:form_params => form_params,
|
184
|
+
:body => post_body,
|
185
|
+
:auth_names => auth_names,
|
186
|
+
:return_type => return_type
|
187
|
+
)
|
188
|
+
|
189
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
190
|
+
if @api_client.config.debugging
|
191
|
+
@api_client.config.logger.debug "API called: EeocsApi#eeocs_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
192
|
+
end
|
193
|
+
return data, status_code, headers
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
@@ -0,0 +1,85 @@
|
|
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.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeATSClient
|
16
|
+
class GenerateKeyApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a remote key.
|
23
|
+
# @param generate_remote_key_request [GenerateRemoteKeyRequest]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [RemoteKey]
|
26
|
+
def generate_key_create(generate_remote_key_request, opts = {})
|
27
|
+
data, _status_code, _headers = generate_key_create_with_http_info(generate_remote_key_request, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Create a remote key.
|
32
|
+
# @param generate_remote_key_request [GenerateRemoteKeyRequest]
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(RemoteKey, Integer, Hash)>] RemoteKey data, response status code and response headers
|
35
|
+
def generate_key_create_with_http_info(generate_remote_key_request, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: GenerateKeyApi.generate_key_create ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'generate_remote_key_request' is set
|
40
|
+
if @api_client.config.client_side_validation && generate_remote_key_request.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'generate_remote_key_request' when calling GenerateKeyApi.generate_key_create"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/generate-key'
|
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
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(generate_remote_key_request)
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:debug_return_type] || 'RemoteKey'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:operation => :"GenerateKeyApi.generate_key_create",
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: GenerateKeyApi#generate_key_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|