merge_ats_client 2.0.1 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +16 -0
  3. data/README.md +186 -167
  4. data/docs/AccountIntegration.md +6 -2
  5. data/docs/ActivitiesApi.md +164 -8
  6. data/docs/Activity.md +12 -6
  7. data/docs/ActivityEndpointRequest.md +20 -0
  8. data/docs/ActivityRequest.md +32 -0
  9. data/docs/ActivityResponse.md +24 -0
  10. data/docs/Application.md +12 -10
  11. data/docs/ApplicationRequest.md +5 -9
  12. data/docs/ApplicationsApi.md +4 -4
  13. data/docs/Attachment.md +8 -4
  14. data/docs/AttachmentRequest.md +1 -3
  15. data/docs/AttachmentsApi.md +13 -9
  16. data/docs/Candidate.md +8 -6
  17. data/docs/CandidateRequest.md +1 -9
  18. data/docs/CandidatesApi.md +16 -13
  19. data/docs/CommonModelScopesBodyRequest.md +22 -0
  20. data/docs/ConditionSchema.md +30 -0
  21. data/docs/ConditionTypeEnum.md +15 -0
  22. data/docs/DataPassthroughRequest.md +1 -1
  23. data/docs/Department.md +7 -3
  24. data/docs/DepartmentsApi.md +4 -4
  25. data/docs/EEOC.md +12 -8
  26. data/docs/EeocsApi.md +13 -9
  27. data/docs/EmailAddress.md +4 -2
  28. data/docs/EmailAddressRequest.md +6 -2
  29. data/docs/EnabledActionsEnum.md +15 -0
  30. data/docs/EndUserDetailsRequest.md +5 -3
  31. data/docs/ForceResyncApi.md +1 -1
  32. data/docs/InterviewsApi.md +165 -9
  33. data/docs/Issue.md +10 -8
  34. data/docs/IssuesApi.md +6 -6
  35. data/docs/Job.md +8 -4
  36. data/docs/JobInterviewStage.md +10 -4
  37. data/docs/JobInterviewStagesApi.md +4 -4
  38. data/docs/JobsApi.md +16 -10
  39. data/docs/LinkToken.md +1 -1
  40. data/docs/LinkedAccountCondition.md +28 -0
  41. data/docs/LinkedAccountConditionRequest.md +22 -0
  42. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  43. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  44. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  45. data/docs/LinkedAccountsApi.md +2 -2
  46. data/docs/MetaResponse.md +2 -0
  47. data/docs/MultipartFormFieldRequest.md +1 -1
  48. data/docs/Offer.md +10 -6
  49. data/docs/OffersApi.md +13 -9
  50. data/docs/Office.md +7 -3
  51. data/docs/OfficesApi.md +4 -4
  52. data/docs/OperatorSchema.md +20 -0
  53. data/docs/PaginatedConditionSchemaList.md +22 -0
  54. data/docs/PhoneNumber.md +4 -2
  55. data/docs/PhoneNumberRequest.md +6 -2
  56. data/docs/RejectReason.md +7 -3
  57. data/docs/RejectReasonsApi.md +4 -4
  58. data/docs/RemoteUser.md +8 -4
  59. data/docs/ScheduledInterview.md +11 -7
  60. data/docs/ScheduledInterviewEndpointRequest.md +20 -0
  61. data/docs/ScheduledInterviewRequest.md +36 -0
  62. data/docs/ScheduledInterviewResponse.md +24 -0
  63. data/docs/Scorecard.md +11 -7
  64. data/docs/ScorecardsApi.md +13 -9
  65. data/docs/SelectiveSyncApi.md +233 -0
  66. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  67. data/docs/SyncStatus.md +3 -1
  68. data/docs/SyncStatusApi.md +1 -1
  69. data/docs/Tag.md +7 -3
  70. data/docs/TagsApi.md +4 -4
  71. data/docs/Url.md +4 -2
  72. data/docs/UrlRequest.md +6 -2
  73. data/docs/UsersApi.md +13 -9
  74. data/lib/merge_ats_client/api/activities_api.rb +160 -8
  75. data/lib/merge_ats_client/api/applications_api.rb +4 -4
  76. data/lib/merge_ats_client/api/attachments_api.rb +22 -8
  77. data/lib/merge_ats_client/api/candidates_api.rb +15 -11
  78. data/lib/merge_ats_client/api/departments_api.rb +4 -4
  79. data/lib/merge_ats_client/api/eeocs_api.rb +22 -8
  80. data/lib/merge_ats_client/api/force_resync_api.rb +2 -2
  81. data/lib/merge_ats_client/api/interviews_api.rb +160 -8
  82. data/lib/merge_ats_client/api/issues_api.rb +6 -6
  83. data/lib/merge_ats_client/api/job_interview_stages_api.rb +4 -4
  84. data/lib/merge_ats_client/api/jobs_api.rb +27 -10
  85. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -3
  86. data/lib/merge_ats_client/api/offers_api.rb +22 -8
  87. data/lib/merge_ats_client/api/offices_api.rb +4 -4
  88. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -4
  89. data/lib/merge_ats_client/api/scorecards_api.rb +22 -8
  90. data/lib/merge_ats_client/api/selective_sync_api.rb +225 -0
  91. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  92. data/lib/merge_ats_client/api/tags_api.rb +4 -4
  93. data/lib/merge_ats_client/api/users_api.rb +22 -8
  94. data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
  95. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +1 -1
  96. data/lib/merge_ats_client/models/account_integration.rb +30 -8
  97. data/lib/merge_ats_client/models/activity.rb +50 -16
  98. data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
  99. data/lib/merge_ats_client/models/activity_request.rb +300 -0
  100. data/lib/merge_ats_client/models/activity_response.rb +266 -0
  101. data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
  102. data/lib/merge_ats_client/models/application.rb +40 -26
  103. data/lib/merge_ats_client/models/application_request.rb +7 -26
  104. data/lib/merge_ats_client/models/attachment.rb +38 -16
  105. data/lib/merge_ats_client/models/attachment_request.rb +3 -14
  106. data/lib/merge_ats_client/models/attachment_type_enum.rb +1 -1
  107. data/lib/merge_ats_client/models/candidate.rb +36 -27
  108. data/lib/merge_ats_client/models/candidate_request.rb +3 -49
  109. data/lib/merge_ats_client/models/categories_enum.rb +4 -2
  110. data/lib/merge_ats_client/models/category_enum.rb +4 -2
  111. data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
  112. data/lib/merge_ats_client/models/condition_schema.rb +298 -0
  113. data/lib/merge_ats_client/models/condition_type_enum.rb +50 -0
  114. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  115. data/lib/merge_ats_client/models/department.rb +36 -14
  116. data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
  117. data/lib/merge_ats_client/models/eeoc.rb +42 -19
  118. data/lib/merge_ats_client/models/email_address.rb +16 -6
  119. data/lib/merge_ats_client/models/email_address_request.rb +30 -6
  120. data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
  121. data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
  122. data/lib/merge_ats_client/models/encoding_enum.rb +1 -1
  123. data/lib/merge_ats_client/models/end_user_details_request.rb +20 -7
  124. data/lib/merge_ats_client/models/gender_enum.rb +1 -1
  125. data/lib/merge_ats_client/models/issue.rb +16 -4
  126. data/lib/merge_ats_client/models/job.rb +38 -16
  127. data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
  128. data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
  129. data/lib/merge_ats_client/models/link_token.rb +0 -5
  130. data/lib/merge_ats_client/models/linked_account_condition.rb +282 -0
  131. data/lib/merge_ats_client/models/linked_account_condition_request.rb +269 -0
  132. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration.rb +221 -0
  133. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  134. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  135. data/lib/merge_ats_client/models/meta_response.rb +12 -1
  136. data/lib/merge_ats_client/models/method_enum.rb +1 -1
  137. data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
  138. data/lib/merge_ats_client/models/offer.rb +40 -16
  139. data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
  140. data/lib/merge_ats_client/models/office.rb +37 -15
  141. data/lib/merge_ats_client/models/operator_schema.rb +229 -0
  142. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
  143. data/lib/merge_ats_client/models/paginated_condition_schema_list.rb +240 -0
  144. data/lib/merge_ats_client/models/phone_number.rb +16 -6
  145. data/lib/merge_ats_client/models/phone_number_request.rb +30 -6
  146. data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
  147. data/lib/merge_ats_client/models/race_enum.rb +1 -1
  148. data/lib/merge_ats_client/models/reason_enum.rb +1 -1
  149. data/lib/merge_ats_client/models/reject_reason.rb +37 -15
  150. data/lib/merge_ats_client/models/remote_user.rb +38 -16
  151. data/lib/merge_ats_client/models/request_format_enum.rb +1 -1
  152. data/lib/merge_ats_client/models/response_type_enum.rb +1 -1
  153. data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
  154. data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
  155. data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
  156. data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
  157. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
  158. data/lib/merge_ats_client/models/scorecard.rb +41 -16
  159. data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  160. data/lib/merge_ats_client/models/sync_status.rb +13 -4
  161. data/lib/merge_ats_client/models/sync_status_status_enum.rb +3 -2
  162. data/lib/merge_ats_client/models/tag.rb +36 -14
  163. data/lib/merge_ats_client/models/url.rb +17 -7
  164. data/lib/merge_ats_client/models/url_request.rb +31 -7
  165. data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
  166. data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
  167. data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
  168. data/lib/merge_ats_client/version.rb +1 -1
  169. data/lib/merge_ats_client.rb +19 -1
  170. data/spec/api/activities_api_spec.rb +31 -4
  171. data/spec/api/applications_api_spec.rb +2 -2
  172. data/spec/api/attachments_api_spec.rb +6 -4
  173. data/spec/api/candidates_api_spec.rb +5 -3
  174. data/spec/api/departments_api_spec.rb +2 -2
  175. data/spec/api/eeocs_api_spec.rb +6 -4
  176. data/spec/api/force_resync_api_spec.rb +1 -1
  177. data/spec/api/interviews_api_spec.rb +31 -4
  178. data/spec/api/issues_api_spec.rb +3 -3
  179. data/spec/api/job_interview_stages_api_spec.rb +2 -2
  180. data/spec/api/jobs_api_spec.rb +8 -5
  181. data/spec/api/linked_accounts_api_spec.rb +1 -1
  182. data/spec/api/offers_api_spec.rb +6 -4
  183. data/spec/api/offices_api_spec.rb +2 -2
  184. data/spec/api/reject_reasons_api_spec.rb +2 -2
  185. data/spec/api/scorecards_api_spec.rb +6 -4
  186. data/spec/api/selective_sync_api_spec.rb +72 -0
  187. data/spec/api/sync_status_api_spec.rb +1 -1
  188. data/spec/api/tags_api_spec.rb +2 -2
  189. data/spec/api/users_api_spec.rb +6 -4
  190. data/spec/models/account_integration_spec.rb +12 -0
  191. data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
  192. data/spec/models/activity_request_spec.rb +76 -0
  193. data/spec/models/activity_response_spec.rb +52 -0
  194. data/spec/models/activity_spec.rb +19 -1
  195. data/spec/models/application_request_spec.rb +0 -12
  196. data/spec/models/application_spec.rb +9 -3
  197. data/spec/models/attachment_request_spec.rb +0 -6
  198. data/spec/models/attachment_spec.rb +14 -2
  199. data/spec/models/candidate_request_spec.rb +0 -24
  200. data/spec/models/candidate_spec.rb +9 -3
  201. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  202. data/spec/models/condition_schema_spec.rb +70 -0
  203. data/spec/models/condition_type_enum_spec.rb +28 -0
  204. data/spec/models/department_spec.rb +14 -2
  205. data/spec/models/eeoc_spec.rb +14 -2
  206. data/spec/models/email_address_request_spec.rb +12 -0
  207. data/spec/models/email_address_spec.rb +6 -0
  208. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  209. data/spec/models/end_user_details_request_spec.rb +6 -0
  210. data/spec/models/issue_spec.rb +6 -0
  211. data/spec/models/job_interview_stage_spec.rb +19 -1
  212. data/spec/models/job_spec.rb +14 -2
  213. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  214. data/spec/models/linked_account_condition_spec.rb +64 -0
  215. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  216. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  217. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  218. data/spec/models/meta_response_spec.rb +6 -0
  219. data/spec/models/offer_spec.rb +14 -2
  220. data/spec/models/office_spec.rb +14 -2
  221. data/spec/models/{remote_data_request_spec.rb → operator_schema_spec.rb} +8 -8
  222. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  223. data/spec/models/phone_number_request_spec.rb +12 -0
  224. data/spec/models/phone_number_spec.rb +6 -0
  225. data/spec/models/reject_reason_spec.rb +14 -2
  226. data/spec/models/remote_user_spec.rb +14 -2
  227. data/spec/models/scheduled_interview_endpoint_request_spec.rb +40 -0
  228. data/spec/models/scheduled_interview_request_spec.rb +88 -0
  229. data/spec/models/scheduled_interview_response_spec.rb +52 -0
  230. data/spec/models/scheduled_interview_spec.rb +14 -2
  231. data/spec/models/scorecard_spec.rb +14 -2
  232. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  233. data/spec/models/sync_status_spec.rb +6 -0
  234. data/spec/models/tag_spec.rb +14 -2
  235. data/spec/models/url_request_spec.rb +12 -0
  236. data/spec/models/url_spec.rb +6 -0
  237. metadata +182 -109
@@ -30,11 +30,12 @@ module MergeATSClient
30
30
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
31
31
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
32
32
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
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.
33
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
34
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
35
35
  # @option opts [Integer] :page_size Number of results to return per page.
36
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
36
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
37
37
  # @option opts [String] :remote_id The API provider's ID for the given object.
38
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
38
39
  # @return [PaginatedOfferList]
39
40
  def offers_list(x_account_token, opts = {})
40
41
  data, _status_code, _headers = offers_list_with_http_info(x_account_token, opts)
@@ -52,11 +53,12 @@ module MergeATSClient
52
53
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
53
54
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
54
55
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
55
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
56
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
56
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
57
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
57
58
  # @option opts [Integer] :page_size Number of results to return per page.
58
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
59
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
59
60
  # @option opts [String] :remote_id The API provider's ID for the given object.
61
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
60
62
  # @return [Array<(PaginatedOfferList, Integer, Hash)>] PaginatedOfferList data, response status code and response headers
61
63
  def offers_list_with_http_info(x_account_token, opts = {})
62
64
  if @api_client.config.debugging
@@ -74,6 +76,10 @@ module MergeATSClient
74
76
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
75
77
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
76
78
  end
79
+ allowable_values = ["status"]
80
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
81
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
82
+ end
77
83
  # resource path
78
84
  local_var_path = '/offers'
79
85
 
@@ -92,6 +98,7 @@ module MergeATSClient
92
98
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
93
99
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
94
100
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
101
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
95
102
 
96
103
  # header parameters
97
104
  header_params = opts[:header_params] || {}
@@ -134,7 +141,8 @@ module MergeATSClient
134
141
  # @param [Hash] opts the optional parameters
135
142
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
136
143
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
137
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
144
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
145
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
138
146
  # @return [Offer]
139
147
  def offers_retrieve(x_account_token, id, opts = {})
140
148
  data, _status_code, _headers = offers_retrieve_with_http_info(x_account_token, id, opts)
@@ -147,7 +155,8 @@ module MergeATSClient
147
155
  # @param [Hash] opts the optional parameters
148
156
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
149
157
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
150
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
158
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
159
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
151
160
  # @return [Array<(Offer, Integer, Hash)>] Offer data, response status code and response headers
152
161
  def offers_retrieve_with_http_info(x_account_token, id, opts = {})
153
162
  if @api_client.config.debugging
@@ -169,6 +178,10 @@ module MergeATSClient
169
178
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
170
179
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
171
180
  end
181
+ allowable_values = ["status"]
182
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
183
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
184
+ end
172
185
  # resource path
173
186
  local_var_path = '/offers/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
174
187
 
@@ -177,6 +190,7 @@ module MergeATSClient
177
190
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
178
191
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
179
192
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
193
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
180
194
 
181
195
  # header parameters
182
196
  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 [PaginatedOfficeList]
@@ -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<(PaginatedOfficeList, Integer, Hash)>] PaginatedOfficeList data, response status code and response headers
@@ -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 [PaginatedRejectReasonList]
@@ -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<(PaginatedRejectReasonList, Integer, Hash)>] PaginatedRejectReasonList data, response status code and response headers
@@ -31,11 +31,12 @@ module MergeATSClient
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
32
  # @option opts [String] :interview_id If provided, will only return scorecards for this interview.
33
33
  # @option opts [String] :interviewer_id If provided, will only return scorecards for this interviewer.
34
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
35
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
34
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
35
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
36
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.
37
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
38
38
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
39
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
39
40
  # @return [PaginatedScorecardList]
40
41
  def scorecards_list(x_account_token, opts = {})
41
42
  data, _status_code, _headers = scorecards_list_with_http_info(x_account_token, opts)
@@ -54,11 +55,12 @@ module MergeATSClient
54
55
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
55
56
  # @option opts [String] :interview_id If provided, will only return scorecards for this interview.
56
57
  # @option opts [String] :interviewer_id If provided, will only return scorecards for this interviewer.
57
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
58
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
58
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
59
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
59
60
  # @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.
61
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
61
62
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
63
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
62
64
  # @return [Array<(PaginatedScorecardList, Integer, Hash)>] PaginatedScorecardList data, response status code and response headers
63
65
  def scorecards_list_with_http_info(x_account_token, opts = {})
64
66
  if @api_client.config.debugging
@@ -76,6 +78,10 @@ module MergeATSClient
76
78
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
77
79
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
78
80
  end
81
+ allowable_values = ["overall_recommendation"]
82
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
83
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
84
+ end
79
85
  # resource path
80
86
  local_var_path = '/scorecards'
81
87
 
@@ -95,6 +101,7 @@ module MergeATSClient
95
101
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
96
102
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
97
103
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
104
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
98
105
 
99
106
  # header parameters
100
107
  header_params = opts[:header_params] || {}
@@ -137,7 +144,8 @@ module MergeATSClient
137
144
  # @param [Hash] opts the optional parameters
138
145
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
139
146
  # @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.
147
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
148
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
141
149
  # @return [Scorecard]
142
150
  def scorecards_retrieve(x_account_token, id, opts = {})
143
151
  data, _status_code, _headers = scorecards_retrieve_with_http_info(x_account_token, id, opts)
@@ -150,7 +158,8 @@ module MergeATSClient
150
158
  # @param [Hash] opts the optional parameters
151
159
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
152
160
  # @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.
161
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
162
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
154
163
  # @return [Array<(Scorecard, Integer, Hash)>] Scorecard data, response status code and response headers
155
164
  def scorecards_retrieve_with_http_info(x_account_token, id, opts = {})
156
165
  if @api_client.config.debugging
@@ -172,6 +181,10 @@ module MergeATSClient
172
181
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
173
182
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
174
183
  end
184
+ allowable_values = ["overall_recommendation"]
185
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
186
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
187
+ end
175
188
  # resource path
176
189
  local_var_path = '/scorecards/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
177
190
 
@@ -180,6 +193,7 @@ module MergeATSClient
180
193
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
181
194
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
182
195
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
196
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
183
197
 
184
198
  # header parameters
185
199
  header_params = opts[:header_params] || {}
@@ -0,0 +1,225 @@
1
+ =begin
2
+ #Merge ATS API
3
+
4
+ #The unified API for building rich integrations with multiple Applicant Tracking System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MergeATSClient
16
+ class SelectiveSyncApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get a linked account's selective syncs.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [Array<LinkedAccountSelectiveSyncConfiguration>]
26
+ def selective_sync_configurations_list(x_account_token, opts = {})
27
+ data, _status_code, _headers = selective_sync_configurations_list_with_http_info(x_account_token, opts)
28
+ data
29
+ end
30
+
31
+ # Get a linked account&#39;s selective syncs.
32
+ # @param x_account_token [String] Token identifying the end user.
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(Array<LinkedAccountSelectiveSyncConfiguration>, Integer, Hash)>] Array<LinkedAccountSelectiveSyncConfiguration> data, response status code and response headers
35
+ def selective_sync_configurations_list_with_http_info(x_account_token, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: SelectiveSyncApi.selective_sync_configurations_list ...'
38
+ end
39
+ # verify the required parameter 'x_account_token' is set
40
+ if @api_client.config.client_side_validation && x_account_token.nil?
41
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SelectiveSyncApi.selective_sync_configurations_list"
42
+ end
43
+ # resource path
44
+ local_var_path = '/selective-sync/configurations'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ header_params[:'X-Account-Token'] = x_account_token
54
+
55
+ # form parameters
56
+ form_params = opts[:form_params] || {}
57
+
58
+ # http body (model)
59
+ post_body = opts[:debug_body]
60
+
61
+ # return_type
62
+ return_type = opts[:debug_return_type] || 'Array<LinkedAccountSelectiveSyncConfiguration>'
63
+
64
+ # auth_names
65
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
66
+
67
+ new_options = opts.merge(
68
+ :operation => :"SelectiveSyncApi.selective_sync_configurations_list",
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: SelectiveSyncApi#selective_sync_configurations_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
84
+ # Replace a linked account's selective syncs.
85
+ # @param x_account_token [String] Token identifying the end user.
86
+ # @param linked_account_selective_sync_configuration_list_request [LinkedAccountSelectiveSyncConfigurationListRequest]
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [Array<LinkedAccountSelectiveSyncConfiguration>]
89
+ def selective_sync_configurations_update(x_account_token, linked_account_selective_sync_configuration_list_request, opts = {})
90
+ data, _status_code, _headers = selective_sync_configurations_update_with_http_info(x_account_token, linked_account_selective_sync_configuration_list_request, opts)
91
+ data
92
+ end
93
+
94
+ # Replace a linked account&#39;s selective syncs.
95
+ # @param x_account_token [String] Token identifying the end user.
96
+ # @param linked_account_selective_sync_configuration_list_request [LinkedAccountSelectiveSyncConfigurationListRequest]
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(Array<LinkedAccountSelectiveSyncConfiguration>, Integer, Hash)>] Array<LinkedAccountSelectiveSyncConfiguration> data, response status code and response headers
99
+ def selective_sync_configurations_update_with_http_info(x_account_token, linked_account_selective_sync_configuration_list_request, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: SelectiveSyncApi.selective_sync_configurations_update ...'
102
+ end
103
+ # verify the required parameter 'x_account_token' is set
104
+ if @api_client.config.client_side_validation && x_account_token.nil?
105
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SelectiveSyncApi.selective_sync_configurations_update"
106
+ end
107
+ # verify the required parameter 'linked_account_selective_sync_configuration_list_request' is set
108
+ if @api_client.config.client_side_validation && linked_account_selective_sync_configuration_list_request.nil?
109
+ fail ArgumentError, "Missing the required parameter 'linked_account_selective_sync_configuration_list_request' when calling SelectiveSyncApi.selective_sync_configurations_update"
110
+ end
111
+ # resource path
112
+ local_var_path = '/selective-sync/configurations'
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
+ # HTTP header 'Content-Type'
122
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
123
+ header_params[:'X-Account-Token'] = x_account_token
124
+
125
+ # form parameters
126
+ form_params = opts[:form_params] || {}
127
+
128
+ # http body (model)
129
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(linked_account_selective_sync_configuration_list_request)
130
+
131
+ # return_type
132
+ return_type = opts[:debug_return_type] || 'Array<LinkedAccountSelectiveSyncConfiguration>'
133
+
134
+ # auth_names
135
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
136
+
137
+ new_options = opts.merge(
138
+ :operation => :"SelectiveSyncApi.selective_sync_configurations_update",
139
+ :header_params => header_params,
140
+ :query_params => query_params,
141
+ :form_params => form_params,
142
+ :body => post_body,
143
+ :auth_names => auth_names,
144
+ :return_type => return_type
145
+ )
146
+
147
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: SelectiveSyncApi#selective_sync_configurations_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+
154
+ # Get metadata for the conditions available to a linked account.
155
+ # @param x_account_token [String] Token identifying the end user.
156
+ # @param [Hash] opts the optional parameters
157
+ # @option opts [String] :common_model
158
+ # @option opts [String] :cursor The pagination cursor value.
159
+ # @option opts [Integer] :page_size Number of results to return per page.
160
+ # @return [PaginatedConditionSchemaList]
161
+ def selective_sync_meta_list(x_account_token, opts = {})
162
+ data, _status_code, _headers = selective_sync_meta_list_with_http_info(x_account_token, opts)
163
+ data
164
+ end
165
+
166
+ # Get metadata for the conditions available to a linked account.
167
+ # @param x_account_token [String] Token identifying the end user.
168
+ # @param [Hash] opts the optional parameters
169
+ # @option opts [String] :common_model
170
+ # @option opts [String] :cursor The pagination cursor value.
171
+ # @option opts [Integer] :page_size Number of results to return per page.
172
+ # @return [Array<(PaginatedConditionSchemaList, Integer, Hash)>] PaginatedConditionSchemaList data, response status code and response headers
173
+ def selective_sync_meta_list_with_http_info(x_account_token, opts = {})
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug 'Calling API: SelectiveSyncApi.selective_sync_meta_list ...'
176
+ end
177
+ # verify the required parameter 'x_account_token' is set
178
+ if @api_client.config.client_side_validation && x_account_token.nil?
179
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SelectiveSyncApi.selective_sync_meta_list"
180
+ end
181
+ # resource path
182
+ local_var_path = '/selective-sync/meta'
183
+
184
+ # query parameters
185
+ query_params = opts[:query_params] || {}
186
+ query_params[:'common_model'] = opts[:'common_model'] if !opts[:'common_model'].nil?
187
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
188
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
189
+
190
+ # header parameters
191
+ header_params = opts[:header_params] || {}
192
+ # HTTP header 'Accept' (if needed)
193
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
194
+ header_params[:'X-Account-Token'] = x_account_token
195
+
196
+ # form parameters
197
+ form_params = opts[:form_params] || {}
198
+
199
+ # http body (model)
200
+ post_body = opts[:debug_body]
201
+
202
+ # return_type
203
+ return_type = opts[:debug_return_type] || 'PaginatedConditionSchemaList'
204
+
205
+ # auth_names
206
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
207
+
208
+ new_options = opts.merge(
209
+ :operation => :"SelectiveSyncApi.selective_sync_meta_list",
210
+ :header_params => header_params,
211
+ :query_params => query_params,
212
+ :form_params => form_params,
213
+ :body => post_body,
214
+ :auth_names => auth_names,
215
+ :return_type => return_type
216
+ )
217
+
218
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
219
+ if @api_client.config.debugging
220
+ @api_client.config.logger.debug "API called: SelectiveSyncApi#selective_sync_meta_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
221
+ end
222
+ return data, status_code, headers
223
+ end
224
+ end
225
+ end
@@ -19,7 +19,7 @@ module MergeATSClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
22
+ # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :cursor The pagination cursor value.
@@ -30,7 +30,7 @@ module MergeATSClient
30
30
  data
31
31
  end
32
32
 
33
- # Get syncing status. Possible values: &#x60;DISABLED&#x60;, &#x60;DONE&#x60;, &#x60;FAILED&#x60;, &#x60;PAUSED&#x60;, &#x60;SYNCING&#x60;
33
+ # Get syncing status. Possible values: &#x60;DISABLED&#x60;, &#x60;DONE&#x60;, &#x60;FAILED&#x60;, &#x60;PARTIALLY_SYNCED&#x60;, &#x60;PAUSED&#x60;, &#x60;SYNCING&#x60;
34
34
  # @param x_account_token [String] Token identifying the end user.
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @option opts [String] :cursor The pagination cursor value.
@@ -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 [PaginatedTagList]
@@ -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<(PaginatedTagList, Integer, Hash)>] PaginatedTagList data, response status code and response headers
@@ -28,11 +28,12 @@ module MergeATSClient
28
28
  # @option opts [String] :email If provided, will only return remote users with the given email address
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
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
32
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
31
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
32
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
33
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.
34
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
35
35
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
36
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
36
37
  # @return [PaginatedRemoteUserList]
37
38
  def users_list(x_account_token, opts = {})
38
39
  data, _status_code, _headers = users_list_with_http_info(x_account_token, opts)
@@ -48,11 +49,12 @@ module MergeATSClient
48
49
  # @option opts [String] :email If provided, will only return remote users with the given email address
49
50
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
50
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
51
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
52
- # @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.
53
54
  # @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.
55
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
55
56
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
57
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
56
58
  # @return [Array<(PaginatedRemoteUserList, Integer, Hash)>] PaginatedRemoteUserList data, response status code and response headers
57
59
  def users_list_with_http_info(x_account_token, opts = {})
58
60
  if @api_client.config.debugging
@@ -66,6 +68,10 @@ module MergeATSClient
66
68
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
67
69
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
68
70
  end
71
+ allowable_values = ["access_role"]
72
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
73
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
74
+ end
69
75
  # resource path
70
76
  local_var_path = '/users'
71
77
 
@@ -82,6 +88,7 @@ module MergeATSClient
82
88
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
83
89
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
84
90
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
91
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
85
92
 
86
93
  # header parameters
87
94
  header_params = opts[:header_params] || {}
@@ -123,7 +130,8 @@ module MergeATSClient
123
130
  # @param id [String]
124
131
  # @param [Hash] opts the optional parameters
125
132
  # @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.
133
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
134
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
127
135
  # @return [RemoteUser]
128
136
  def users_retrieve(x_account_token, id, opts = {})
129
137
  data, _status_code, _headers = users_retrieve_with_http_info(x_account_token, id, opts)
@@ -135,7 +143,8 @@ module MergeATSClient
135
143
  # @param id [String]
136
144
  # @param [Hash] opts the optional parameters
137
145
  # @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.
146
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
147
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
139
148
  # @return [Array<(RemoteUser, Integer, Hash)>] RemoteUser data, response status code and response headers
140
149
  def users_retrieve_with_http_info(x_account_token, id, opts = {})
141
150
  if @api_client.config.debugging
@@ -153,6 +162,10 @@ module MergeATSClient
153
162
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
154
163
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
155
164
  end
165
+ allowable_values = ["access_role"]
166
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
167
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
168
+ end
156
169
  # resource path
157
170
  local_var_path = '/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
158
171
 
@@ -160,6 +173,7 @@ module MergeATSClient
160
173
  query_params = opts[:query_params] || {}
161
174
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
162
175
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
176
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
163
177
 
164
178
  # header parameters
165
179
  header_params = opts[:header_params] || {}
@@ -41,7 +41,7 @@ module MergeATSClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ AccessRoleEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -39,7 +39,7 @@ module MergeATSClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ AccountDetailsAndActionsStatusEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45