merge_ats_client 3.0.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +186 -179
  3. data/docs/AccountIntegration.md +6 -2
  4. data/docs/ActivitiesApi.md +164 -8
  5. data/docs/Activity.md +12 -6
  6. data/docs/ActivityEndpointRequest.md +20 -0
  7. data/docs/ActivityRequest.md +32 -0
  8. data/docs/ActivityResponse.md +24 -0
  9. data/docs/Application.md +12 -10
  10. data/docs/ApplicationRequest.md +5 -9
  11. data/docs/ApplicationsApi.md +4 -4
  12. data/docs/Attachment.md +8 -4
  13. data/docs/AttachmentRequest.md +1 -3
  14. data/docs/AttachmentsApi.md +13 -9
  15. data/docs/Candidate.md +8 -6
  16. data/docs/CandidateRequest.md +1 -9
  17. data/docs/CandidatesApi.md +16 -13
  18. data/docs/CommonModelScopesBodyRequest.md +22 -0
  19. data/docs/ConditionSchema.md +1 -1
  20. data/docs/DataPassthroughRequest.md +1 -1
  21. data/docs/Department.md +7 -3
  22. data/docs/DepartmentsApi.md +4 -4
  23. data/docs/EEOC.md +12 -8
  24. data/docs/EeocsApi.md +13 -9
  25. data/docs/EmailAddress.md +4 -2
  26. data/docs/EmailAddressRequest.md +1 -1
  27. data/docs/EnabledActionsEnum.md +15 -0
  28. data/docs/EndUserDetailsRequest.md +3 -1
  29. data/docs/ForceResyncApi.md +1 -1
  30. data/docs/InterviewsApi.md +165 -9
  31. data/docs/Issue.md +10 -8
  32. data/docs/IssuesApi.md +6 -6
  33. data/docs/Job.md +8 -4
  34. data/docs/JobInterviewStage.md +10 -4
  35. data/docs/JobInterviewStagesApi.md +4 -4
  36. data/docs/JobsApi.md +16 -10
  37. data/docs/LinkToken.md +1 -1
  38. data/docs/LinkedAccountsApi.md +2 -2
  39. data/docs/MetaResponse.md +2 -0
  40. data/docs/MultipartFormFieldRequest.md +1 -1
  41. data/docs/Offer.md +10 -6
  42. data/docs/OffersApi.md +13 -9
  43. data/docs/Office.md +7 -3
  44. data/docs/OfficesApi.md +4 -4
  45. data/docs/PaginatedConditionSchemaList.md +2 -2
  46. data/docs/PhoneNumber.md +4 -2
  47. data/docs/PhoneNumberRequest.md +1 -1
  48. data/docs/RejectReason.md +7 -3
  49. data/docs/RejectReasonsApi.md +4 -4
  50. data/docs/RemoteUser.md +8 -4
  51. data/docs/ScheduledInterview.md +11 -7
  52. data/docs/ScheduledInterviewEndpointRequest.md +20 -0
  53. data/docs/ScheduledInterviewRequest.md +36 -0
  54. data/docs/ScheduledInterviewResponse.md +24 -0
  55. data/docs/Scorecard.md +11 -7
  56. data/docs/ScorecardsApi.md +13 -9
  57. data/docs/SelectiveSyncApi.md +2 -2
  58. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  59. data/docs/SyncStatus.md +3 -1
  60. data/docs/SyncStatusApi.md +1 -1
  61. data/docs/Tag.md +7 -3
  62. data/docs/TagsApi.md +4 -4
  63. data/docs/Url.md +4 -2
  64. data/docs/UrlRequest.md +1 -1
  65. data/docs/UsersApi.md +13 -9
  66. data/lib/merge_ats_client/api/activities_api.rb +160 -8
  67. data/lib/merge_ats_client/api/applications_api.rb +4 -4
  68. data/lib/merge_ats_client/api/attachments_api.rb +22 -8
  69. data/lib/merge_ats_client/api/candidates_api.rb +15 -11
  70. data/lib/merge_ats_client/api/departments_api.rb +4 -4
  71. data/lib/merge_ats_client/api/eeocs_api.rb +22 -8
  72. data/lib/merge_ats_client/api/force_resync_api.rb +2 -2
  73. data/lib/merge_ats_client/api/interviews_api.rb +160 -8
  74. data/lib/merge_ats_client/api/issues_api.rb +6 -6
  75. data/lib/merge_ats_client/api/job_interview_stages_api.rb +4 -4
  76. data/lib/merge_ats_client/api/jobs_api.rb +27 -10
  77. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -3
  78. data/lib/merge_ats_client/api/offers_api.rb +22 -8
  79. data/lib/merge_ats_client/api/offices_api.rb +4 -4
  80. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -4
  81. data/lib/merge_ats_client/api/scorecards_api.rb +22 -8
  82. data/lib/merge_ats_client/api/selective_sync_api.rb +2 -2
  83. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  84. data/lib/merge_ats_client/api/tags_api.rb +4 -4
  85. data/lib/merge_ats_client/api/users_api.rb +22 -8
  86. data/lib/merge_ats_client/models/account_integration.rb +30 -8
  87. data/lib/merge_ats_client/models/activity.rb +50 -16
  88. data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
  89. data/lib/merge_ats_client/models/activity_request.rb +300 -0
  90. data/lib/merge_ats_client/models/activity_response.rb +266 -0
  91. data/lib/merge_ats_client/models/application.rb +40 -26
  92. data/lib/merge_ats_client/models/application_request.rb +7 -26
  93. data/lib/merge_ats_client/models/attachment.rb +38 -16
  94. data/lib/merge_ats_client/models/attachment_request.rb +3 -14
  95. data/lib/merge_ats_client/models/candidate.rb +36 -27
  96. data/lib/merge_ats_client/models/candidate_request.rb +3 -49
  97. data/lib/merge_ats_client/models/categories_enum.rb +3 -1
  98. data/lib/merge_ats_client/models/category_enum.rb +3 -1
  99. data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
  100. data/lib/merge_ats_client/models/condition_schema.rb +1 -0
  101. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  102. data/lib/merge_ats_client/models/department.rb +36 -14
  103. data/lib/merge_ats_client/models/eeoc.rb +42 -19
  104. data/lib/merge_ats_client/models/email_address.rb +16 -6
  105. data/lib/merge_ats_client/models/email_address_request.rb +1 -1
  106. data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
  107. data/lib/merge_ats_client/models/end_user_details_request.rb +18 -5
  108. data/lib/merge_ats_client/models/issue.rb +16 -4
  109. data/lib/merge_ats_client/models/job.rb +38 -16
  110. data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
  111. data/lib/merge_ats_client/models/link_token.rb +0 -5
  112. data/lib/merge_ats_client/models/meta_response.rb +12 -1
  113. data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
  114. data/lib/merge_ats_client/models/offer.rb +40 -16
  115. data/lib/merge_ats_client/models/office.rb +37 -15
  116. data/lib/merge_ats_client/models/phone_number.rb +16 -6
  117. data/lib/merge_ats_client/models/phone_number_request.rb +1 -1
  118. data/lib/merge_ats_client/models/reject_reason.rb +37 -15
  119. data/lib/merge_ats_client/models/remote_user.rb +38 -16
  120. data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
  121. data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
  122. data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
  123. data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
  124. data/lib/merge_ats_client/models/scorecard.rb +41 -16
  125. data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  126. data/lib/merge_ats_client/models/sync_status.rb +13 -4
  127. data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -1
  128. data/lib/merge_ats_client/models/tag.rb +36 -14
  129. data/lib/merge_ats_client/models/url.rb +16 -6
  130. data/lib/merge_ats_client/models/url_request.rb +1 -1
  131. data/lib/merge_ats_client/version.rb +1 -1
  132. data/lib/merge_ats_client.rb +9 -1
  133. data/spec/api/activities_api_spec.rb +31 -4
  134. data/spec/api/applications_api_spec.rb +2 -2
  135. data/spec/api/attachments_api_spec.rb +6 -4
  136. data/spec/api/candidates_api_spec.rb +5 -3
  137. data/spec/api/departments_api_spec.rb +2 -2
  138. data/spec/api/eeocs_api_spec.rb +6 -4
  139. data/spec/api/force_resync_api_spec.rb +1 -1
  140. data/spec/api/interviews_api_spec.rb +31 -4
  141. data/spec/api/issues_api_spec.rb +3 -3
  142. data/spec/api/job_interview_stages_api_spec.rb +2 -2
  143. data/spec/api/jobs_api_spec.rb +8 -5
  144. data/spec/api/linked_accounts_api_spec.rb +1 -1
  145. data/spec/api/offers_api_spec.rb +6 -4
  146. data/spec/api/offices_api_spec.rb +2 -2
  147. data/spec/api/reject_reasons_api_spec.rb +2 -2
  148. data/spec/api/scorecards_api_spec.rb +6 -4
  149. data/spec/api/selective_sync_api_spec.rb +1 -1
  150. data/spec/api/sync_status_api_spec.rb +1 -1
  151. data/spec/api/tags_api_spec.rb +2 -2
  152. data/spec/api/users_api_spec.rb +6 -4
  153. data/spec/models/account_integration_spec.rb +12 -0
  154. data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
  155. data/spec/models/activity_request_spec.rb +76 -0
  156. data/spec/models/activity_response_spec.rb +52 -0
  157. data/spec/models/activity_spec.rb +19 -1
  158. data/spec/models/application_request_spec.rb +0 -12
  159. data/spec/models/application_spec.rb +9 -3
  160. data/spec/models/attachment_request_spec.rb +0 -6
  161. data/spec/models/attachment_spec.rb +14 -2
  162. data/spec/models/candidate_request_spec.rb +0 -24
  163. data/spec/models/candidate_spec.rb +9 -3
  164. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  165. data/spec/models/department_spec.rb +14 -2
  166. data/spec/models/eeoc_spec.rb +14 -2
  167. data/spec/models/email_address_spec.rb +6 -0
  168. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  169. data/spec/models/end_user_details_request_spec.rb +6 -0
  170. data/spec/models/issue_spec.rb +6 -0
  171. data/spec/models/job_interview_stage_spec.rb +19 -1
  172. data/spec/models/job_spec.rb +14 -2
  173. data/spec/models/meta_response_spec.rb +6 -0
  174. data/spec/models/offer_spec.rb +14 -2
  175. data/spec/models/office_spec.rb +14 -2
  176. data/spec/models/phone_number_spec.rb +6 -0
  177. data/spec/models/reject_reason_spec.rb +14 -2
  178. data/spec/models/remote_user_spec.rb +14 -2
  179. data/spec/models/{remote_data_request_spec.rb → scheduled_interview_endpoint_request_spec.rb} +8 -8
  180. data/spec/models/scheduled_interview_request_spec.rb +88 -0
  181. data/spec/models/scheduled_interview_response_spec.rb +52 -0
  182. data/spec/models/scheduled_interview_spec.rb +14 -2
  183. data/spec/models/scorecard_spec.rb +14 -2
  184. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  185. data/spec/models/sync_status_spec.rb +6 -0
  186. data/spec/models/tag_spec.rb +14 -2
  187. data/spec/models/url_spec.rb +6 -0
  188. metadata +156 -124
@@ -105,11 +105,12 @@ module MergeATSClient
105
105
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
106
106
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
107
107
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
108
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
109
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
108
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
109
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
110
110
  # @option opts [Integer] :page_size Number of results to return per page.
111
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
111
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
112
112
  # @option opts [String] :remote_id The API provider's ID for the given object.
113
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
113
114
  # @return [PaginatedAttachmentList]
114
115
  def attachments_list(x_account_token, opts = {})
115
116
  data, _status_code, _headers = attachments_list_with_http_info(x_account_token, opts)
@@ -126,11 +127,12 @@ module MergeATSClient
126
127
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
127
128
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
128
129
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
129
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
130
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
130
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
131
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
131
132
  # @option opts [Integer] :page_size Number of results to return per page.
132
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
133
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
133
134
  # @option opts [String] :remote_id The API provider's ID for the given object.
135
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
134
136
  # @return [Array<(PaginatedAttachmentList, Integer, Hash)>] PaginatedAttachmentList data, response status code and response headers
135
137
  def attachments_list_with_http_info(x_account_token, opts = {})
136
138
  if @api_client.config.debugging
@@ -148,6 +150,10 @@ module MergeATSClient
148
150
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
149
151
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
150
152
  end
153
+ allowable_values = ["attachment_type"]
154
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
155
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
156
+ end
151
157
  # resource path
152
158
  local_var_path = '/attachments'
153
159
 
@@ -165,6 +171,7 @@ module MergeATSClient
165
171
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
166
172
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
167
173
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
174
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
168
175
 
169
176
  # header parameters
170
177
  header_params = opts[:header_params] || {}
@@ -269,7 +276,8 @@ module MergeATSClient
269
276
  # @param [Hash] opts the optional parameters
270
277
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
271
278
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
272
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
279
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
280
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
273
281
  # @return [Attachment]
274
282
  def attachments_retrieve(x_account_token, id, opts = {})
275
283
  data, _status_code, _headers = attachments_retrieve_with_http_info(x_account_token, id, opts)
@@ -282,7 +290,8 @@ module MergeATSClient
282
290
  # @param [Hash] opts the optional parameters
283
291
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
284
292
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
285
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
293
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
294
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
286
295
  # @return [Array<(Attachment, Integer, Hash)>] Attachment data, response status code and response headers
287
296
  def attachments_retrieve_with_http_info(x_account_token, id, opts = {})
288
297
  if @api_client.config.debugging
@@ -304,6 +313,10 @@ module MergeATSClient
304
313
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
305
314
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
306
315
  end
316
+ allowable_values = ["attachment_type"]
317
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
318
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
319
+ end
307
320
  # resource path
308
321
  local_var_path = '/attachments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
309
322
 
@@ -312,6 +325,7 @@ module MergeATSClient
312
325
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
313
326
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
314
327
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
328
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
315
329
 
316
330
  # header parameters
317
331
  header_params = opts[:header_params] || {}
@@ -100,10 +100,10 @@ module MergeATSClient
100
100
  # @param model_id [String]
101
101
  # @param ignore_common_model_request [IgnoreCommonModelRequest]
102
102
  # @param [Hash] opts the optional parameters
103
- # @return [IgnoreCommonModel]
103
+ # @return [nil]
104
104
  def candidates_ignore_create(x_account_token, model_id, ignore_common_model_request, opts = {})
105
- data, _status_code, _headers = candidates_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts)
106
- data
105
+ candidates_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts)
106
+ nil
107
107
  end
108
108
 
109
109
  # Ignores a specific row based on the &#x60;model_id&#x60; in the url. These records will have their properties set to null, and will not be updated in future syncs. The \&quot;reason\&quot; and \&quot;message\&quot; fields in the request body will be stored for audit purposes.
@@ -111,7 +111,7 @@ module MergeATSClient
111
111
  # @param model_id [String]
112
112
  # @param ignore_common_model_request [IgnoreCommonModelRequest]
113
113
  # @param [Hash] opts the optional parameters
114
- # @return [Array<(IgnoreCommonModel, Integer, Hash)>] IgnoreCommonModel data, response status code and response headers
114
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
115
115
  def candidates_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts = {})
116
116
  if @api_client.config.debugging
117
117
  @api_client.config.logger.debug 'Calling API: CandidatesApi.candidates_ignore_create ...'
@@ -136,8 +136,6 @@ module MergeATSClient
136
136
 
137
137
  # header parameters
138
138
  header_params = opts[:header_params] || {}
139
- # HTTP header 'Accept' (if needed)
140
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
141
139
  # HTTP header 'Content-Type'
142
140
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
143
141
  header_params[:'X-Account-Token'] = x_account_token
@@ -149,7 +147,7 @@ module MergeATSClient
149
147
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ignore_common_model_request)
150
148
 
151
149
  # return_type
152
- return_type = opts[:debug_return_type] || 'IgnoreCommonModel'
150
+ return_type = opts[:debug_return_type]
153
151
 
154
152
  # auth_names
155
153
  auth_names = opts[:debug_auth_names] || ['tokenAuth']
@@ -177,15 +175,17 @@ module MergeATSClient
177
175
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
178
176
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
179
177
  # @option opts [String] :cursor The pagination cursor value.
178
+ # @option opts [String] :email_addresses If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas.
180
179
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
181
180
  # @option opts [String] :first_name If provided, will only return candidates with this first name.
182
181
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
183
182
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
184
183
  # @option opts [String] :last_name If provided, will only return candidates with this last name.
185
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
186
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
184
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
185
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
187
186
  # @option opts [Integer] :page_size Number of results to return per page.
188
187
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
188
+ # @option opts [String] :tags If provided, will only return candidates with these tags; multiple tags can be separated by commas.
189
189
  # @return [PaginatedCandidateList]
190
190
  def candidates_list(x_account_token, opts = {})
191
191
  data, _status_code, _headers = candidates_list_with_http_info(x_account_token, opts)
@@ -198,15 +198,17 @@ module MergeATSClient
198
198
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
199
199
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
200
200
  # @option opts [String] :cursor The pagination cursor value.
201
+ # @option opts [String] :email_addresses If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas.
201
202
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
202
203
  # @option opts [String] :first_name If provided, will only return candidates with this first name.
203
204
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
204
205
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
205
206
  # @option opts [String] :last_name If provided, will only return candidates with this last name.
206
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
207
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
207
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
208
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
208
209
  # @option opts [Integer] :page_size Number of results to return per page.
209
210
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
211
+ # @option opts [String] :tags If provided, will only return candidates with these tags; multiple tags can be separated by commas.
210
212
  # @return [Array<(PaginatedCandidateList, Integer, Hash)>] PaginatedCandidateList data, response status code and response headers
211
213
  def candidates_list_with_http_info(x_account_token, opts = {})
212
214
  if @api_client.config.debugging
@@ -228,6 +230,7 @@ module MergeATSClient
228
230
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
229
231
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
230
232
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
233
+ query_params[:'email_addresses'] = opts[:'email_addresses'] if !opts[:'email_addresses'].nil?
231
234
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
232
235
  query_params[:'first_name'] = opts[:'first_name'] if !opts[:'first_name'].nil?
233
236
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
@@ -237,6 +240,7 @@ module MergeATSClient
237
240
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
238
241
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
239
242
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
243
+ query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
240
244
 
241
245
  # header parameters
242
246
  header_params = opts[:header_params] || {}
@@ -27,8 +27,8 @@ module MergeATSClient
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
28
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
29
29
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
30
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
31
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
30
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
31
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
32
32
  # @option opts [Integer] :page_size Number of results to return per page.
33
33
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
34
34
  # @return [PaginatedDepartmentList]
@@ -45,8 +45,8 @@ module MergeATSClient
45
45
  # @option opts [String] :cursor The pagination cursor value.
46
46
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
47
47
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
48
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
49
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
48
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
49
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
50
50
  # @option opts [Integer] :page_size Number of results to return per page.
51
51
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
52
52
  # @return [Array<(PaginatedDepartmentList, Integer, Hash)>] PaginatedDepartmentList data, response status code and response headers
@@ -29,11 +29,12 @@ module MergeATSClient
29
29
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
31
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
33
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
35
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
36
36
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
37
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
37
38
  # @return [PaginatedEEOCList]
38
39
  def eeocs_list(x_account_token, opts = {})
39
40
  data, _status_code, _headers = eeocs_list_with_http_info(x_account_token, opts)
@@ -50,11 +51,12 @@ module MergeATSClient
50
51
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
51
52
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
52
53
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
53
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
54
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
54
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
55
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
55
56
  # @option opts [Integer] :page_size Number of results to return per page.
56
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
57
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
57
58
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
59
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
58
60
  # @return [Array<(PaginatedEEOCList, Integer, Hash)>] PaginatedEEOCList data, response status code and response headers
59
61
  def eeocs_list_with_http_info(x_account_token, opts = {})
60
62
  if @api_client.config.debugging
@@ -72,6 +74,10 @@ module MergeATSClient
72
74
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
73
75
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
74
76
  end
77
+ allowable_values = ["disability_status", "disability_status,gender", "disability_status,gender,race", "disability_status,gender,race,veteran_status", "disability_status,gender,veteran_status", "disability_status,race", "disability_status,race,veteran_status", "disability_status,veteran_status", "gender", "gender,race", "gender,race,veteran_status", "gender,veteran_status", "race", "race,veteran_status", "veteran_status"]
78
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
79
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
80
+ end
75
81
  # resource path
76
82
  local_var_path = '/eeocs'
77
83
 
@@ -89,6 +95,7 @@ module MergeATSClient
89
95
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
90
96
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
91
97
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
98
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
92
99
 
93
100
  # header parameters
94
101
  header_params = opts[:header_params] || {}
@@ -131,7 +138,8 @@ module MergeATSClient
131
138
  # @param [Hash] opts the optional parameters
132
139
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
133
140
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
134
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
141
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
142
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
135
143
  # @return [EEOC]
136
144
  def eeocs_retrieve(x_account_token, id, opts = {})
137
145
  data, _status_code, _headers = eeocs_retrieve_with_http_info(x_account_token, id, opts)
@@ -144,7 +152,8 @@ module MergeATSClient
144
152
  # @param [Hash] opts the optional parameters
145
153
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
146
154
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
147
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
155
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
156
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
148
157
  # @return [Array<(EEOC, Integer, Hash)>] EEOC data, response status code and response headers
149
158
  def eeocs_retrieve_with_http_info(x_account_token, id, opts = {})
150
159
  if @api_client.config.debugging
@@ -166,6 +175,10 @@ module MergeATSClient
166
175
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
167
176
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
168
177
  end
178
+ allowable_values = ["disability_status", "disability_status,gender", "disability_status,gender,race", "disability_status,gender,race,veteran_status", "disability_status,gender,veteran_status", "disability_status,race", "disability_status,race,veteran_status", "disability_status,veteran_status", "gender", "gender,race", "gender,race,veteran_status", "gender,veteran_status", "race", "race,veteran_status", "veteran_status"]
179
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
180
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
181
+ end
169
182
  # resource path
170
183
  local_var_path = '/eeocs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
171
184
 
@@ -174,6 +187,7 @@ module MergeATSClient
174
187
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
175
188
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
176
189
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
190
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
177
191
 
178
192
  # header parameters
179
193
  header_params = opts[:header_params] || {}
@@ -19,7 +19,7 @@ module MergeATSClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
22
+ # Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API for monthly, quarterly, and highest sync frequency customers on the Core, Professional, or Enterprise plans. Doing so will consume a sync credit for the relevant linked account.
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [Array<SyncStatus>]
@@ -28,7 +28,7 @@ module MergeATSClient
28
28
  data
29
29
  end
30
30
 
31
- # Force re-sync of all models. This is only available for organizations on Merge&#39;s Grow and Expand plans.
31
+ # Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API for monthly, quarterly, and highest sync frequency customers on the Core, Professional, or Enterprise plans. Doing so will consume a sync credit for the relevant linked account.
32
32
  # @param x_account_token [String] Token identifying the end user.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(Array<SyncStatus>, Integer, Hash)>] Array<SyncStatus> data, response status code and response headers
@@ -19,6 +19,82 @@ 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 scheduled_interview_endpoint_request [ScheduledInterviewEndpointRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
27
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
28
+ # @return [ScheduledInterviewResponse]
29
+ def interviews_create(x_account_token, scheduled_interview_endpoint_request, opts = {})
30
+ data, _status_code, _headers = interviews_create_with_http_info(x_account_token, scheduled_interview_endpoint_request, opts)
31
+ data
32
+ end
33
+
34
+ # Creates a &#x60;ScheduledInterview&#x60; object with the given values.
35
+ # @param x_account_token [String] Token identifying the end user.
36
+ # @param scheduled_interview_endpoint_request [ScheduledInterviewEndpointRequest]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
39
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
40
+ # @return [Array<(ScheduledInterviewResponse, Integer, Hash)>] ScheduledInterviewResponse data, response status code and response headers
41
+ def interviews_create_with_http_info(x_account_token, scheduled_interview_endpoint_request, 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 'scheduled_interview_endpoint_request' is set
50
+ if @api_client.config.client_side_validation && scheduled_interview_endpoint_request.nil?
51
+ fail ArgumentError, "Missing the required parameter 'scheduled_interview_endpoint_request' 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[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
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(scheduled_interview_endpoint_request)
74
+
75
+ # return_type
76
+ return_type = opts[:debug_return_type] || 'ScheduledInterviewResponse'
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
+
22
98
  # Returns a list of `ScheduledInterview` objects.
23
99
  # @param x_account_token [String] Token identifying the end user.
24
100
  # @param [Hash] opts the optional parameters
@@ -30,12 +106,13 @@ module MergeATSClient
30
106
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
31
107
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
108
  # @option opts [String] :job_interview_stage_id If provided, will only return interviews at this stage.
33
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
34
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
109
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
110
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
35
111
  # @option opts [String] :organizer_id If provided, will only return interviews organized by this user.
36
112
  # @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.
113
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
38
114
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
115
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
39
116
  # @return [PaginatedScheduledInterviewList]
40
117
  def interviews_list(x_account_token, opts = {})
41
118
  data, _status_code, _headers = interviews_list_with_http_info(x_account_token, opts)
@@ -53,12 +130,13 @@ module MergeATSClient
53
130
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
54
131
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
55
132
  # @option opts [String] :job_interview_stage_id If provided, will only return interviews at this stage.
56
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
57
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
133
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
134
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
58
135
  # @option opts [String] :organizer_id If provided, will only return interviews organized by this user.
59
136
  # @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.
137
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
61
138
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
139
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
62
140
  # @return [Array<(PaginatedScheduledInterviewList, Integer, Hash)>] PaginatedScheduledInterviewList data, response status code and response headers
63
141
  def interviews_list_with_http_info(x_account_token, opts = {})
64
142
  if @api_client.config.debugging
@@ -76,6 +154,10 @@ module MergeATSClient
76
154
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
77
155
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
78
156
  end
157
+ allowable_values = ["status"]
158
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
159
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
160
+ end
79
161
  # resource path
80
162
  local_var_path = '/interviews'
81
163
 
@@ -95,6 +177,7 @@ module MergeATSClient
95
177
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
96
178
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
97
179
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
180
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
98
181
 
99
182
  # header parameters
100
183
  header_params = opts[:header_params] || {}
@@ -131,13 +214,76 @@ module MergeATSClient
131
214
  return data, status_code, headers
132
215
  end
133
216
 
217
+ # Returns metadata for `ScheduledInterview` POSTs.
218
+ # @param x_account_token [String] Token identifying the end user.
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [MetaResponse]
221
+ def interviews_meta_post_retrieve(x_account_token, opts = {})
222
+ data, _status_code, _headers = interviews_meta_post_retrieve_with_http_info(x_account_token, opts)
223
+ data
224
+ end
225
+
226
+ # Returns metadata for &#x60;ScheduledInterview&#x60; POSTs.
227
+ # @param x_account_token [String] Token identifying the end user.
228
+ # @param [Hash] opts the optional parameters
229
+ # @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
230
+ def interviews_meta_post_retrieve_with_http_info(x_account_token, opts = {})
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug 'Calling API: InterviewsApi.interviews_meta_post_retrieve ...'
233
+ end
234
+ # verify the required parameter 'x_account_token' is set
235
+ if @api_client.config.client_side_validation && x_account_token.nil?
236
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling InterviewsApi.interviews_meta_post_retrieve"
237
+ end
238
+ # resource path
239
+ local_var_path = '/interviews/meta/post'
240
+
241
+ # query parameters
242
+ query_params = opts[:query_params] || {}
243
+
244
+ # header parameters
245
+ header_params = opts[:header_params] || {}
246
+ # HTTP header 'Accept' (if needed)
247
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
248
+ header_params[:'X-Account-Token'] = x_account_token
249
+
250
+ # form parameters
251
+ form_params = opts[:form_params] || {}
252
+
253
+ # http body (model)
254
+ post_body = opts[:debug_body]
255
+
256
+ # return_type
257
+ return_type = opts[:debug_return_type] || 'MetaResponse'
258
+
259
+ # auth_names
260
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
261
+
262
+ new_options = opts.merge(
263
+ :operation => :"InterviewsApi.interviews_meta_post_retrieve",
264
+ :header_params => header_params,
265
+ :query_params => query_params,
266
+ :form_params => form_params,
267
+ :body => post_body,
268
+ :auth_names => auth_names,
269
+ :return_type => return_type
270
+ )
271
+
272
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
273
+ if @api_client.config.debugging
274
+ @api_client.config.logger.debug "API called: InterviewsApi#interviews_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
275
+ end
276
+ return data, status_code, headers
277
+ end
278
+
134
279
  # Returns a `ScheduledInterview` object with the given `id`.
135
280
  # @param x_account_token [String] Token identifying the end user.
136
281
  # @param id [String]
137
282
  # @param [Hash] opts the optional parameters
138
283
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
139
284
  # @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.
285
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
286
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
141
287
  # @return [ScheduledInterview]
142
288
  def interviews_retrieve(x_account_token, id, opts = {})
143
289
  data, _status_code, _headers = interviews_retrieve_with_http_info(x_account_token, id, opts)
@@ -150,7 +296,8 @@ module MergeATSClient
150
296
  # @param [Hash] opts the optional parameters
151
297
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
152
298
  # @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.
299
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
300
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
154
301
  # @return [Array<(ScheduledInterview, Integer, Hash)>] ScheduledInterview data, response status code and response headers
155
302
  def interviews_retrieve_with_http_info(x_account_token, id, opts = {})
156
303
  if @api_client.config.debugging
@@ -172,6 +319,10 @@ module MergeATSClient
172
319
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
173
320
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
174
321
  end
322
+ allowable_values = ["status"]
323
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
324
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
325
+ end
175
326
  # resource path
176
327
  local_var_path = '/interviews/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
177
328
 
@@ -180,6 +331,7 @@ module MergeATSClient
180
331
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
181
332
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
182
333
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
334
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
183
335
 
184
336
  # header parameters
185
337
  header_params = opts[:header_params] || {}
@@ -29,11 +29,11 @@ module MergeATSClient
29
29
  # @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
30
30
  # @option opts [String] :include_muted If True, will include muted issues
31
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.
32
+ # @option opts [Time] :last_incident_time_after If provided, will only return issues whose last incident time was after this datetime.
33
+ # @option opts [Time] :last_incident_time_before If provided, will only return issues whose last incident time was before this datetime.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
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
36
+ # @option opts [String] :status Status of the issue. Options: (&#39;ONGOING&#39;, &#39;RESOLVED&#39;) * &#x60;ONGOING&#x60; - ONGOING * &#x60;RESOLVED&#x60; - RESOLVED
37
37
  # @return [PaginatedIssueList]
38
38
  def issues_list(opts = {})
39
39
  data, _status_code, _headers = issues_list_with_http_info(opts)
@@ -50,11 +50,11 @@ module MergeATSClient
50
50
  # @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
51
51
  # @option opts [String] :include_muted If True, will include muted issues
52
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.
53
+ # @option opts [Time] :last_incident_time_after If provided, will only return issues whose last incident time was after this datetime.
54
+ # @option opts [Time] :last_incident_time_before If provided, will only return issues whose last incident time was before this datetime.
55
55
  # @option opts [Integer] :page_size Number of results to return per page.
56
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
57
+ # @option opts [String] :status Status of the issue. Options: (&#39;ONGOING&#39;, &#39;RESOLVED&#39;) * &#x60;ONGOING&#x60; - ONGOING * &#x60;RESOLVED&#x60; - RESOLVED
58
58
  # @return [Array<(PaginatedIssueList, Integer, Hash)>] PaginatedIssueList data, response status code and response headers
59
59
  def issues_list_with_http_info(opts = {})
60
60
  if @api_client.config.debugging
@@ -29,8 +29,8 @@ module MergeATSClient
29
29
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
30
30
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
31
31
  # @option opts [String] :job_id If provided, will only return interview stages for this job.
32
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
33
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
35
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
36
36
  # @return [PaginatedJobInterviewStageList]
@@ -49,8 +49,8 @@ module MergeATSClient
49
49
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
50
50
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
51
51
  # @option opts [String] :job_id If provided, will only return interview stages for this job.
52
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
53
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
52
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
53
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
54
54
  # @option opts [Integer] :page_size Number of results to return per page.
55
55
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
56
56
  # @return [Array<(PaginatedJobInterviewStageList, Integer, Hash)>] PaginatedJobInterviewStageList data, response status code and response headers