merge_ats_client 1.0.4 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +40 -18
- data/docs/AccountDetails.md +13 -7
- data/docs/AccountDetailsAndActions.md +6 -0
- data/docs/AccountDetailsAndActionsIntegration.md +1 -1
- data/docs/AccountDetailsApi.md +10 -7
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/ActivitiesApi.md +11 -5
- data/docs/Activity.md +4 -2
- data/docs/Application.md +8 -6
- data/docs/ApplicationEndpointRequest.md +20 -0
- data/docs/ApplicationRequest.md +12 -6
- data/docs/ApplicationResponse.md +24 -0
- data/docs/ApplicationsApi.md +180 -18
- data/docs/Attachment.md +3 -1
- data/docs/AttachmentEndpointRequest.md +20 -0
- data/docs/AttachmentRequest.md +5 -1
- data/docs/AttachmentResponse.md +24 -0
- data/docs/AttachmentsApi.md +98 -16
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/Candidate.md +3 -1
- data/docs/CandidateEndpointRequest.md +20 -0
- data/docs/CandidateRequest.md +7 -1
- data/docs/CandidateResponse.md +24 -0
- data/docs/CandidatesApi.md +168 -22
- data/docs/DataPassthroughRequest.md +6 -2
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/Department.md +3 -1
- data/docs/DepartmentsApi.md +6 -4
- data/docs/EEOC.md +4 -2
- data/docs/EeocsApi.md +11 -5
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +10 -6
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/GenerateKeyApi.md +2 -2
- data/docs/IgnoreCommonModel.md +20 -0
- data/docs/IgnoreCommonModelRequest.md +20 -0
- data/docs/InterviewsApi.md +11 -85
- data/docs/IssuesApi.md +18 -10
- data/docs/Job.md +7 -1
- data/docs/JobInterviewStage.md +4 -2
- data/docs/JobInterviewStagesApi.md +8 -6
- data/docs/JobsApi.md +13 -6
- data/docs/LinkToken.md +3 -1
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +24 -22
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Offer.md +5 -3
- data/docs/OffersApi.md +11 -5
- data/docs/Office.md +3 -1
- data/docs/OfficesApi.md +6 -4
- data/docs/PassthroughApi.md +2 -2
- data/docs/ReasonEnum.md +15 -0
- data/docs/RegenerateKeyApi.md +2 -2
- data/docs/RejectReason.md +3 -1
- data/docs/RejectReasonsApi.md +6 -4
- data/docs/RemoteResponse.md +5 -1
- data/docs/RemoteUser.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/ScheduledInterview.md +6 -4
- data/docs/Scorecard.md +6 -4
- data/docs/ScorecardsApi.md +11 -85
- data/docs/SyncStatus.md +2 -2
- data/docs/SyncStatusApi.md +3 -75
- data/docs/Tag.md +3 -1
- data/docs/TagsApi.md +4 -2
- data/docs/UpdateApplicationStageRequest.md +20 -0
- data/docs/UsersApi.md +11 -85
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/lib/merge_ats_client/api/account_details_api.rb +10 -3
- data/lib/merge_ats_client/api/activities_api.rb +17 -0
- data/lib/merge_ats_client/api/applications_api.rb +164 -15
- data/lib/merge_ats_client/api/attachments_api.rb +108 -15
- data/lib/merge_ats_client/api/candidates_api.rb +156 -21
- data/lib/merge_ats_client/api/departments_api.rb +3 -0
- data/lib/merge_ats_client/api/eeocs_api.rb +17 -0
- data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ats_client/api/interviews_api.rb +17 -76
- data/lib/merge_ats_client/api/issues_api.rb +22 -10
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +5 -2
- data/lib/merge_ats_client/api/jobs_api.rb +20 -3
- data/lib/merge_ats_client/api/linked_accounts_api.rb +24 -21
- data/lib/merge_ats_client/api/offers_api.rb +17 -0
- data/lib/merge_ats_client/api/offices_api.rb +3 -0
- data/lib/merge_ats_client/api/reject_reasons_api.rb +3 -0
- data/lib/merge_ats_client/api/scorecards_api.rb +17 -76
- data/lib/merge_ats_client/api/sync_status_api.rb +4 -66
- data/lib/merge_ats_client/api/tags_api.rb +3 -0
- data/lib/merge_ats_client/api/users_api.rb +17 -76
- data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ats_client/configuration.rb +6 -4
- data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_details.rb +33 -4
- data/lib/merge_ats_client/models/account_details_and_actions.rb +35 -1
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +4 -2
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_integration.rb +2 -24
- data/lib/merge_ats_client/models/account_token.rb +1 -1
- data/lib/merge_ats_client/models/activity.rb +16 -7
- data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/application.rb +15 -11
- data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/application_request.rb +56 -12
- data/lib/merge_ats_client/models/application_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment.rb +15 -6
- data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/attachment_request.rb +31 -7
- data/lib/merge_ats_client/models/attachment_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -9
- data/lib/merge_ats_client/models/available_actions.rb +1 -1
- data/lib/merge_ats_client/models/candidate.rb +15 -6
- data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → candidate_endpoint_request.rb} +29 -16
- data/lib/merge_ats_client/models/candidate_request.rb +56 -7
- data/lib/merge_ats_client/models/candidate_response.rb +266 -0
- data/lib/merge_ats_client/models/categories_enum.rb +19 -7
- data/lib/merge_ats_client/models/category_enum.rb +19 -7
- data/lib/merge_ats_client/models/data_passthrough_request.rb +79 -7
- data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
- data/lib/merge_ats_client/models/department.rb +17 -7
- data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/eeoc.rb +16 -7
- data/lib/merge_ats_client/models/email_address.rb +2 -2
- data/lib/merge_ats_client/models/email_address_request.rb +2 -2
- data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/encoding_enum.rb +46 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +163 -27
- data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/gender_enum.rb +17 -7
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +20 -1
- data/lib/merge_ats_client/models/ignore_common_model.rb +247 -0
- data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_ats_client/models/issue.rb +2 -2
- data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/job.rb +39 -6
- data/lib/merge_ats_client/models/job_interview_stage.rb +17 -7
- data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/link_token.rb +14 -5
- data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ats_client/models/{scorecard_request.rb → meta_response.rb} +45 -70
- data/lib/merge_ats_client/models/method_enum.rb +17 -7
- data/lib/merge_ats_client/models/model_operation.rb +1 -1
- data/lib/merge_ats_client/models/{scheduled_interview_request.rb → multipart_form_field_request.rb} +115 -106
- data/lib/merge_ats_client/models/offer.rb +16 -8
- data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/office.rb +17 -7
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
- data/lib/merge_ats_client/models/paginated_activity_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_application_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_department_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_issue_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_offer_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_office_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_tag_list.rb +1 -1
- data/lib/merge_ats_client/models/phone_number.rb +2 -2
- data/lib/merge_ats_client/models/phone_number_request.rb +2 -2
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/race_enum.rb +17 -7
- data/lib/merge_ats_client/models/reason_enum.rb +46 -0
- data/lib/merge_ats_client/models/reject_reason.rb +17 -7
- data/lib/merge_ats_client/models/remote_data.rb +1 -1
- data/lib/merge_ats_client/models/remote_key.rb +1 -1
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +20 -1
- data/lib/merge_ats_client/models/remote_response.rb +24 -10
- data/lib/merge_ats_client/models/remote_user.rb +17 -7
- data/lib/merge_ats_client/models/request_format_enum.rb +18 -7
- data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +16 -9
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/scorecard.rb +16 -9
- data/lib/merge_ats_client/models/sync_status.rb +1 -11
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +19 -9
- data/lib/merge_ats_client/models/tag.rb +17 -7
- data/lib/merge_ats_client/models/update_application_stage_request.rb +244 -0
- data/lib/merge_ats_client/models/url.rb +2 -2
- data/lib/merge_ats_client/models/url_request.rb +2 -2
- data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
- data/lib/merge_ats_client/models/{remote_data_request.rb → validation_problem_source.rb} +14 -25
- data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
- data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_ats_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +24 -4
- data/spec/api/account_details_api_spec.rb +1 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/activities_api_spec.rb +6 -1
- data/spec/api/applications_api_spec.rb +46 -1
- data/spec/api/attachments_api_spec.rb +33 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/candidates_api_spec.rb +44 -1
- data/spec/api/departments_api_spec.rb +4 -1
- data/spec/api/eeocs_api_spec.rb +6 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/interviews_api_spec.rb +6 -1
- data/spec/api/issues_api_spec.rb +9 -5
- data/spec/api/job_interview_stages_api_spec.rb +4 -1
- data/spec/api/jobs_api_spec.rb +8 -1
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +11 -10
- data/spec/api/offers_api_spec.rb +6 -1
- data/spec/api/offices_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -2
- data/spec/api/regenerate_key_api_spec.rb +3 -5
- data/spec/api/reject_reasons_api_spec.rb +4 -1
- data/spec/api/scorecards_api_spec.rb +6 -1
- data/spec/api/sync_status_api_spec.rb +8 -5
- data/spec/api/tags_api_spec.rb +3 -1
- data/spec/api/users_api_spec.rb +7 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/models/access_role_enum_spec.rb +1 -1
- data/spec/models/account_details_and_actions_spec.rb +18 -0
- data/spec/models/account_details_spec.rb +18 -0
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/activity_spec.rb +13 -1
- data/spec/models/activity_type_enum_spec.rb +1 -1
- data/spec/models/application_endpoint_request_spec.rb +40 -0
- data/spec/models/application_request_spec.rb +25 -1
- data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
- data/spec/models/application_spec.rb +19 -7
- data/spec/models/attachment_endpoint_request_spec.rb +40 -0
- data/spec/models/attachment_request_spec.rb +12 -0
- data/spec/models/attachment_response_spec.rb +52 -0
- data/spec/models/attachment_spec.rb +25 -1
- data/spec/models/available_actions_spec.rb +1 -1
- data/spec/models/candidate_endpoint_request_spec.rb +40 -0
- data/spec/models/candidate_request_spec.rb +37 -1
- data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
- data/spec/models/candidate_spec.rb +19 -1
- data/spec/models/data_passthrough_request_spec.rb +19 -1
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/department_spec.rb +13 -1
- data/spec/models/disability_status_enum_spec.rb +1 -1
- data/spec/models/eeoc_spec.rb +13 -1
- data/spec/models/email_address_request_spec.rb +1 -1
- data/spec/models/email_address_spec.rb +1 -1
- data/spec/models/email_address_type_enum_spec.rb +1 -1
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +19 -5
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/ignore_common_model_request_spec.rb +40 -0
- data/spec/models/ignore_common_model_spec.rb +40 -0
- data/spec/models/job_interview_stage_spec.rb +13 -1
- data/spec/models/job_spec.rb +37 -1
- data/spec/models/job_status_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +7 -1
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
- data/spec/models/offer_spec.rb +13 -1
- data/spec/models/offer_status_enum_spec.rb +1 -1
- data/spec/models/office_spec.rb +13 -1
- data/spec/models/overall_recommendation_enum_spec.rb +1 -1
- data/spec/models/paginated_activity_list_spec.rb +1 -1
- data/spec/models/paginated_application_list_spec.rb +1 -1
- data/spec/models/paginated_attachment_list_spec.rb +1 -1
- data/spec/models/paginated_candidate_list_spec.rb +1 -1
- data/spec/models/paginated_department_list_spec.rb +1 -1
- data/spec/models/paginated_eeoc_list_spec.rb +1 -1
- data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
- data/spec/models/paginated_job_list_spec.rb +1 -1
- data/spec/models/paginated_offer_list_spec.rb +1 -1
- data/spec/models/paginated_office_list_spec.rb +1 -1
- data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
- data/spec/models/paginated_remote_user_list_spec.rb +1 -1
- data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
- data/spec/models/paginated_scorecard_list_spec.rb +1 -1
- data/spec/models/paginated_tag_list_spec.rb +1 -1
- data/spec/models/phone_number_request_spec.rb +1 -1
- data/spec/models/phone_number_spec.rb +1 -1
- data/spec/models/phone_number_type_enum_spec.rb +1 -1
- data/spec/models/race_enum_spec.rb +1 -1
- data/spec/models/reason_enum_spec.rb +28 -0
- data/spec/models/reject_reason_spec.rb +13 -1
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +13 -1
- data/spec/models/remote_user_spec.rb +13 -1
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/scheduled_interview_spec.rb +13 -1
- data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
- data/spec/models/scorecard_spec.rb +13 -1
- data/spec/models/sync_status_spec.rb +1 -1
- data/spec/models/tag_spec.rb +13 -1
- data/spec/models/update_application_stage_request_spec.rb +40 -0
- data/spec/models/url_request_spec.rb +1 -1
- data/spec/models/url_spec.rb +1 -1
- data/spec/models/url_type_enum_spec.rb +1 -1
- data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
- data/spec/models/veteran_status_enum_spec.rb +1 -1
- data/spec/models/visibility_enum_spec.rb +1 -1
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- metadata +186 -123
- data/config.json +0 -2
- data/docs/DataPassthrough.md +0 -24
- data/docs/EndUserDetails.md +0 -24
- data/docs/PatchedApplicationRequest.md +0 -34
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/docs/RemoteUserRequest.md +0 -30
- data/docs/ScheduledInterviewRequest.md +0 -38
- data/docs/ScorecardRequest.md +0 -30
- data/lib/merge_ats_client/models/patched_application_request.rb +0 -309
- data/lib/merge_ats_client/models/remote_user_request.rb +0 -302
- data/merge_ats_client-1.0.3.gem +0 -0
- data/spec/models/patched_application_request_spec.rb +0 -82
- data/spec/models/scheduled_interview_request_spec.rb +0 -94
- data/spec/models/scorecard_request_spec.rb +0 -70
- data/test_ats.rb +0 -22
- data/test_signature.rb +0 -32
@@ -25,6 +25,7 @@ module MergeATSClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
28
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
29
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
30
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -42,6 +43,7 @@ module MergeATSClient
|
|
42
43
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
43
44
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
44
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -64,6 +66,7 @@ module MergeATSClient
|
|
64
66
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
65
67
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
66
68
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
69
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
67
70
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
68
71
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
69
72
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
@@ -25,6 +25,7 @@ module MergeATSClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
28
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
29
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
30
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -42,6 +43,7 @@ module MergeATSClient
|
|
42
43
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
43
44
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
44
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -64,6 +66,7 @@ module MergeATSClient
|
|
64
66
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
65
67
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
66
68
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
69
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
67
70
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
68
71
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
69
72
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
@@ -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 `Scorecard` 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 [ScorecardRequest] :scorecard_request
|
28
|
-
# @return [Scorecard]
|
29
|
-
def scorecards_create(x_account_token, remote_user_id, opts = {})
|
30
|
-
data, _status_code, _headers = scorecards_create_with_http_info(x_account_token, remote_user_id, opts)
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
# Creates a `Scorecard` 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 [ScorecardRequest] :scorecard_request
|
40
|
-
# @return [Array<(Scorecard, Integer, Hash)>] Scorecard data, response status code and response headers
|
41
|
-
def scorecards_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: ScorecardsApi.scorecards_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 ScorecardsApi.scorecards_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 ScorecardsApi.scorecards_create"
|
52
|
-
end
|
53
|
-
# resource path
|
54
|
-
local_var_path = '/scorecards'
|
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[:'scorecard_request'])
|
74
|
-
|
75
|
-
# return_type
|
76
|
-
return_type = opts[:debug_return_type] || 'Scorecard'
|
77
|
-
|
78
|
-
# auth_names
|
79
|
-
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
80
|
-
|
81
|
-
new_options = opts.merge(
|
82
|
-
:operation => :"ScorecardsApi.scorecards_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: ScorecardsApi#scorecards_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 `Scorecard` objects.
|
99
23
|
# @param x_account_token [String] Token identifying the end user.
|
100
24
|
# @param [Hash] opts the optional parameters
|
@@ -103,12 +27,14 @@ 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 marked as deleted by third party webhooks.
|
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] :interview_id If provided, will only return scorecards for this interview.
|
108
33
|
# @option opts [String] :interviewer_id If provided, will only return scorecards for this interviewer.
|
109
34
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
110
35
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
111
36
|
# @option opts [Integer] :page_size Number of results to return per page.
|
37
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
112
38
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
113
39
|
# @return [PaginatedScorecardList]
|
114
40
|
def scorecards_list(x_account_token, opts = {})
|
@@ -124,12 +50,14 @@ module MergeATSClient
|
|
124
50
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
125
51
|
# @option opts [String] :cursor The pagination cursor value.
|
126
52
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
53
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
127
54
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
128
55
|
# @option opts [String] :interview_id If provided, will only return scorecards for this interview.
|
129
56
|
# @option opts [String] :interviewer_id If provided, will only return scorecards for this interviewer.
|
130
57
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
131
58
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
132
59
|
# @option opts [Integer] :page_size Number of results to return per page.
|
60
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
133
61
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
134
62
|
# @return [Array<(PaginatedScorecardList, Integer, Hash)>] PaginatedScorecardList data, response status code and response headers
|
135
63
|
def scorecards_list_with_http_info(x_account_token, opts = {})
|
@@ -144,6 +72,10 @@ module MergeATSClient
|
|
144
72
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
145
73
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
146
74
|
end
|
75
|
+
allowable_values = ["overall_recommendation"]
|
76
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
77
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
78
|
+
end
|
147
79
|
# resource path
|
148
80
|
local_var_path = '/scorecards'
|
149
81
|
|
@@ -154,12 +86,14 @@ module MergeATSClient
|
|
154
86
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
155
87
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
156
88
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
89
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
157
90
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
158
91
|
query_params[:'interview_id'] = opts[:'interview_id'] if !opts[:'interview_id'].nil?
|
159
92
|
query_params[:'interviewer_id'] = opts[:'interviewer_id'] if !opts[:'interviewer_id'].nil?
|
160
93
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
161
94
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
162
95
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
96
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
163
97
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
164
98
|
|
165
99
|
# header parameters
|
@@ -203,6 +137,7 @@ module MergeATSClient
|
|
203
137
|
# @param [Hash] opts the optional parameters
|
204
138
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
205
139
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
140
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
206
141
|
# @return [Scorecard]
|
207
142
|
def scorecards_retrieve(x_account_token, id, opts = {})
|
208
143
|
data, _status_code, _headers = scorecards_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -215,6 +150,7 @@ module MergeATSClient
|
|
215
150
|
# @param [Hash] opts the optional parameters
|
216
151
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
217
152
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
153
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
218
154
|
# @return [Array<(Scorecard, Integer, Hash)>] Scorecard data, response status code and response headers
|
219
155
|
def scorecards_retrieve_with_http_info(x_account_token, id, opts = {})
|
220
156
|
if @api_client.config.debugging
|
@@ -232,6 +168,10 @@ module MergeATSClient
|
|
232
168
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
233
169
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
234
170
|
end
|
171
|
+
allowable_values = ["overall_recommendation"]
|
172
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
173
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
174
|
+
end
|
235
175
|
# resource path
|
236
176
|
local_var_path = '/scorecards/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
237
177
|
|
@@ -239,6 +179,7 @@ module MergeATSClient
|
|
239
179
|
query_params = opts[:query_params] || {}
|
240
180
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
241
181
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
182
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
242
183
|
|
243
184
|
# header parameters
|
244
185
|
header_params = opts[:header_params] || {}
|
@@ -19,10 +19,10 @@ module MergeATSClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Get syncing status.
|
22
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [
|
25
|
+
# @option opts [String] :cursor The pagination cursor value.
|
26
26
|
# @option opts [Integer] :page_size Number of results to return per page.
|
27
27
|
# @return [PaginatedSyncStatusList]
|
28
28
|
def sync_status_list(x_account_token, opts = {})
|
@@ -30,10 +30,10 @@ module MergeATSClient
|
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
|
-
# Get syncing status.
|
33
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
34
34
|
# @param x_account_token [String] Token identifying the end user.
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [
|
36
|
+
# @option opts [String] :cursor The pagination cursor value.
|
37
37
|
# @option opts [Integer] :page_size Number of results to return per page.
|
38
38
|
# @return [Array<(PaginatedSyncStatusList, Integer, Hash)>] PaginatedSyncStatusList data, response status code and response headers
|
39
39
|
def sync_status_list_with_http_info(x_account_token, opts = {})
|
@@ -86,67 +86,5 @@ module MergeATSClient
|
|
86
86
|
end
|
87
87
|
return data, status_code, headers
|
88
88
|
end
|
89
|
-
|
90
|
-
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
91
|
-
# @param x_account_token [String] Token identifying the end user.
|
92
|
-
# @param [Hash] opts the optional parameters
|
93
|
-
# @return [SyncStatus]
|
94
|
-
def sync_status_resync_create(x_account_token, opts = {})
|
95
|
-
data, _status_code, _headers = sync_status_resync_create_with_http_info(x_account_token, opts)
|
96
|
-
data
|
97
|
-
end
|
98
|
-
|
99
|
-
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
100
|
-
# @param x_account_token [String] Token identifying the end user.
|
101
|
-
# @param [Hash] opts the optional parameters
|
102
|
-
# @return [Array<(SyncStatus, Integer, Hash)>] SyncStatus data, response status code and response headers
|
103
|
-
def sync_status_resync_create_with_http_info(x_account_token, opts = {})
|
104
|
-
if @api_client.config.debugging
|
105
|
-
@api_client.config.logger.debug 'Calling API: SyncStatusApi.sync_status_resync_create ...'
|
106
|
-
end
|
107
|
-
# verify the required parameter 'x_account_token' is set
|
108
|
-
if @api_client.config.client_side_validation && x_account_token.nil?
|
109
|
-
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SyncStatusApi.sync_status_resync_create"
|
110
|
-
end
|
111
|
-
# resource path
|
112
|
-
local_var_path = '/sync-status/resync'
|
113
|
-
|
114
|
-
# query parameters
|
115
|
-
query_params = opts[:query_params] || {}
|
116
|
-
|
117
|
-
# header parameters
|
118
|
-
header_params = opts[:header_params] || {}
|
119
|
-
# HTTP header 'Accept' (if needed)
|
120
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
|
-
header_params[:'X-Account-Token'] = x_account_token
|
122
|
-
|
123
|
-
# form parameters
|
124
|
-
form_params = opts[:form_params] || {}
|
125
|
-
|
126
|
-
# http body (model)
|
127
|
-
post_body = opts[:debug_body]
|
128
|
-
|
129
|
-
# return_type
|
130
|
-
return_type = opts[:debug_return_type] || 'SyncStatus'
|
131
|
-
|
132
|
-
# auth_names
|
133
|
-
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
134
|
-
|
135
|
-
new_options = opts.merge(
|
136
|
-
:operation => :"SyncStatusApi.sync_status_resync_create",
|
137
|
-
:header_params => header_params,
|
138
|
-
:query_params => query_params,
|
139
|
-
:form_params => form_params,
|
140
|
-
:body => post_body,
|
141
|
-
:auth_names => auth_names,
|
142
|
-
:return_type => return_type
|
143
|
-
)
|
144
|
-
|
145
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
146
|
-
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug "API called: SyncStatusApi#sync_status_resync_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
148
|
-
end
|
149
|
-
return data, status_code, headers
|
150
|
-
end
|
151
89
|
end
|
152
90
|
end
|
@@ -25,6 +25,7 @@ module MergeATSClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
28
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
29
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
30
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -42,6 +43,7 @@ module MergeATSClient
|
|
42
43
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
43
44
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
44
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -64,6 +66,7 @@ module MergeATSClient
|
|
64
66
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
65
67
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
66
68
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
69
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
67
70
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
68
71
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
69
72
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
@@ -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 `RemoteUser` 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 [RemoteUserRequest] :remote_user_request
|
28
|
-
# @return [RemoteUser]
|
29
|
-
def users_create(x_account_token, remote_user_id, opts = {})
|
30
|
-
data, _status_code, _headers = users_create_with_http_info(x_account_token, remote_user_id, opts)
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
# Creates a `RemoteUser` 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 [RemoteUserRequest] :remote_user_request
|
40
|
-
# @return [Array<(RemoteUser, Integer, Hash)>] RemoteUser data, response status code and response headers
|
41
|
-
def users_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: UsersApi.users_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 UsersApi.users_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 UsersApi.users_create"
|
52
|
-
end
|
53
|
-
# resource path
|
54
|
-
local_var_path = '/users'
|
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[:'remote_user_request'])
|
74
|
-
|
75
|
-
# return_type
|
76
|
-
return_type = opts[:debug_return_type] || 'RemoteUser'
|
77
|
-
|
78
|
-
# auth_names
|
79
|
-
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
80
|
-
|
81
|
-
new_options = opts.merge(
|
82
|
-
:operation => :"UsersApi.users_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: UsersApi#users_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 `RemoteUser` objects.
|
99
23
|
# @param x_account_token [String] Token identifying the end user.
|
100
24
|
# @param [Hash] opts the optional parameters
|
@@ -102,10 +26,12 @@ module MergeATSClient
|
|
102
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
103
27
|
# @option opts [String] :cursor The pagination cursor value.
|
104
28
|
# @option opts [String] :email If provided, will only return remote users with the given email address
|
29
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
105
30
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
106
31
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
107
32
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
108
33
|
# @option opts [Integer] :page_size Number of results to return per page.
|
34
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
109
35
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
110
36
|
# @return [PaginatedRemoteUserList]
|
111
37
|
def users_list(x_account_token, opts = {})
|
@@ -120,10 +46,12 @@ module MergeATSClient
|
|
120
46
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
121
47
|
# @option opts [String] :cursor The pagination cursor value.
|
122
48
|
# @option opts [String] :email If provided, will only return remote users with the given email address
|
49
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
123
50
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
124
51
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
125
52
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
126
53
|
# @option opts [Integer] :page_size Number of results to return per page.
|
54
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
127
55
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
128
56
|
# @return [Array<(PaginatedRemoteUserList, Integer, Hash)>] PaginatedRemoteUserList data, response status code and response headers
|
129
57
|
def users_list_with_http_info(x_account_token, opts = {})
|
@@ -134,6 +62,10 @@ module MergeATSClient
|
|
134
62
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
135
63
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling UsersApi.users_list"
|
136
64
|
end
|
65
|
+
allowable_values = ["access_role"]
|
66
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
67
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
68
|
+
end
|
137
69
|
# resource path
|
138
70
|
local_var_path = '/users'
|
139
71
|
|
@@ -143,10 +75,12 @@ module MergeATSClient
|
|
143
75
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
144
76
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
145
77
|
query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
|
78
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
146
79
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
147
80
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
148
81
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
149
82
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
83
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
150
84
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
151
85
|
|
152
86
|
# header parameters
|
@@ -189,6 +123,7 @@ module MergeATSClient
|
|
189
123
|
# @param id [String]
|
190
124
|
# @param [Hash] opts the optional parameters
|
191
125
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
126
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
192
127
|
# @return [RemoteUser]
|
193
128
|
def users_retrieve(x_account_token, id, opts = {})
|
194
129
|
data, _status_code, _headers = users_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -200,6 +135,7 @@ module MergeATSClient
|
|
200
135
|
# @param id [String]
|
201
136
|
# @param [Hash] opts the optional parameters
|
202
137
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
138
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
203
139
|
# @return [Array<(RemoteUser, Integer, Hash)>] RemoteUser data, response status code and response headers
|
204
140
|
def users_retrieve_with_http_info(x_account_token, id, opts = {})
|
205
141
|
if @api_client.config.debugging
|
@@ -213,12 +149,17 @@ module MergeATSClient
|
|
213
149
|
if @api_client.config.client_side_validation && id.nil?
|
214
150
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_retrieve"
|
215
151
|
end
|
152
|
+
allowable_values = ["access_role"]
|
153
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
154
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
155
|
+
end
|
216
156
|
# resource path
|
217
157
|
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
218
158
|
|
219
159
|
# query parameters
|
220
160
|
query_params = opts[:query_params] || {}
|
221
161
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
162
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
222
163
|
|
223
164
|
# header parameters
|
224
165
|
header_params = opts[:header_params] || {}
|