merge_ats_client 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +16 -0
  3. data/README.md +20 -6
  4. data/docs/AccountDetails.md +3 -1
  5. data/docs/AccountDetailsAndActions.md +2 -0
  6. data/docs/ActivitiesApi.md +7 -3
  7. data/docs/Activity.md +1 -1
  8. data/docs/ApplicationsApi.md +84 -2
  9. data/docs/AttachmentsApi.md +7 -3
  10. data/docs/CandidatesApi.md +2 -2
  11. data/docs/ConditionSchema.md +30 -0
  12. data/docs/ConditionTypeEnum.md +15 -0
  13. data/docs/DataPassthroughRequest.md +3 -1
  14. data/docs/Department.md +1 -1
  15. data/docs/DepartmentsApi.md +2 -2
  16. data/docs/EEOC.md +1 -1
  17. data/docs/EeocsApi.md +7 -3
  18. data/docs/EmailAddressRequest.md +5 -1
  19. data/docs/EndUserDetailsRequest.md +9 -7
  20. data/docs/InterviewsApi.md +7 -3
  21. data/docs/Job.md +4 -2
  22. data/docs/JobInterviewStage.md +2 -2
  23. data/docs/JobInterviewStagesApi.md +2 -2
  24. data/docs/JobsApi.md +7 -3
  25. data/docs/LinkToken.md +3 -1
  26. data/docs/LinkedAccountCondition.md +28 -0
  27. data/docs/LinkedAccountConditionRequest.md +22 -0
  28. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  29. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  30. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  31. data/docs/LinkedAccountsApi.md +2 -0
  32. data/docs/Offer.md +1 -1
  33. data/docs/OffersApi.md +7 -3
  34. data/docs/Office.md +1 -1
  35. data/docs/OfficesApi.md +2 -2
  36. data/docs/OperatorSchema.md +20 -0
  37. data/docs/PaginatedConditionSchemaList.md +22 -0
  38. data/docs/PhoneNumberRequest.md +5 -1
  39. data/docs/RejectReason.md +1 -1
  40. data/docs/RejectReasonsApi.md +2 -2
  41. data/docs/RemoteResponse.md +5 -1
  42. data/docs/RemoteUser.md +1 -1
  43. data/docs/ResponseTypeEnum.md +15 -0
  44. data/docs/ScheduledInterview.md +1 -1
  45. data/docs/Scorecard.md +1 -1
  46. data/docs/ScorecardsApi.md +7 -3
  47. data/docs/SelectiveSyncApi.md +233 -0
  48. data/docs/SyncStatus.md +2 -2
  49. data/docs/SyncStatusApi.md +1 -1
  50. data/docs/Tag.md +1 -1
  51. data/docs/TagsApi.md +2 -2
  52. data/docs/UpdateApplicationStageRequest.md +20 -0
  53. data/docs/UrlRequest.md +5 -1
  54. data/docs/UsersApi.md +7 -3
  55. data/lib/merge_ats_client/api/activities_api.rb +16 -2
  56. data/lib/merge_ats_client/api/applications_api.rb +80 -2
  57. data/lib/merge_ats_client/api/attachments_api.rb +16 -2
  58. data/lib/merge_ats_client/api/candidates_api.rb +2 -2
  59. data/lib/merge_ats_client/api/departments_api.rb +2 -2
  60. data/lib/merge_ats_client/api/eeocs_api.rb +16 -2
  61. data/lib/merge_ats_client/api/interviews_api.rb +16 -2
  62. data/lib/merge_ats_client/api/job_interview_stages_api.rb +2 -2
  63. data/lib/merge_ats_client/api/jobs_api.rb +16 -2
  64. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -0
  65. data/lib/merge_ats_client/api/offers_api.rb +16 -2
  66. data/lib/merge_ats_client/api/offices_api.rb +2 -2
  67. data/lib/merge_ats_client/api/reject_reasons_api.rb +2 -2
  68. data/lib/merge_ats_client/api/scorecards_api.rb +16 -2
  69. data/lib/merge_ats_client/api/selective_sync_api.rb +225 -0
  70. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  71. data/lib/merge_ats_client/api/tags_api.rb +2 -2
  72. data/lib/merge_ats_client/api/users_api.rb +16 -2
  73. data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
  74. data/lib/merge_ats_client/models/account_details.rb +15 -4
  75. data/lib/merge_ats_client/models/account_details_and_actions.rb +12 -1
  76. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
  77. data/lib/merge_ats_client/models/activity.rb +1 -1
  78. data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
  79. data/lib/merge_ats_client/models/application.rb +1 -1
  80. data/lib/merge_ats_client/models/application_request.rb +3 -3
  81. data/lib/merge_ats_client/models/attachment_request.rb +2 -2
  82. data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -7
  83. data/lib/merge_ats_client/models/candidate.rb +1 -1
  84. data/lib/merge_ats_client/models/candidate_request.rb +3 -3
  85. data/lib/merge_ats_client/models/categories_enum.rb +17 -7
  86. data/lib/merge_ats_client/models/category_enum.rb +17 -7
  87. data/lib/merge_ats_client/models/condition_schema.rb +297 -0
  88. data/lib/merge_ats_client/models/condition_type_enum.rb +50 -0
  89. data/lib/merge_ats_client/models/data_passthrough_request.rb +15 -6
  90. data/lib/merge_ats_client/models/department.rb +1 -1
  91. data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
  92. data/lib/merge_ats_client/models/eeoc.rb +1 -1
  93. data/lib/merge_ats_client/models/email_address_request.rb +29 -5
  94. data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
  95. data/lib/merge_ats_client/models/encoding_enum.rb +18 -7
  96. data/lib/merge_ats_client/models/end_user_details_request.rb +28 -11
  97. data/lib/merge_ats_client/models/gender_enum.rb +17 -7
  98. data/lib/merge_ats_client/models/issue.rb +1 -1
  99. data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
  100. data/lib/merge_ats_client/models/job.rb +14 -3
  101. data/lib/merge_ats_client/models/job_interview_stage.rb +3 -2
  102. data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
  103. data/lib/merge_ats_client/models/link_token.rb +13 -4
  104. data/lib/merge_ats_client/models/linked_account_condition.rb +282 -0
  105. data/lib/merge_ats_client/models/linked_account_condition_request.rb +269 -0
  106. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration.rb +221 -0
  107. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  108. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  109. data/lib/merge_ats_client/models/meta_response.rb +1 -1
  110. data/lib/merge_ats_client/models/method_enum.rb +17 -7
  111. data/lib/merge_ats_client/models/offer.rb +1 -1
  112. data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
  113. data/lib/merge_ats_client/models/office.rb +1 -1
  114. data/lib/merge_ats_client/models/operator_schema.rb +229 -0
  115. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
  116. data/lib/merge_ats_client/models/{remote_data_request.rb → paginated_condition_schema_list.rb} +28 -41
  117. data/lib/merge_ats_client/models/phone_number_request.rb +29 -5
  118. data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
  119. data/lib/merge_ats_client/models/race_enum.rb +17 -7
  120. data/lib/merge_ats_client/models/reason_enum.rb +17 -7
  121. data/lib/merge_ats_client/models/reject_reason.rb +1 -1
  122. data/lib/merge_ats_client/models/remote_response.rb +23 -9
  123. data/lib/merge_ats_client/models/remote_user.rb +1 -1
  124. data/lib/merge_ats_client/models/request_format_enum.rb +17 -7
  125. data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
  126. data/lib/merge_ats_client/models/scheduled_interview.rb +2 -2
  127. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
  128. data/lib/merge_ats_client/models/scorecard.rb +2 -2
  129. data/lib/merge_ats_client/models/sync_status.rb +0 -10
  130. data/lib/merge_ats_client/models/sync_status_status_enum.rb +18 -7
  131. data/lib/merge_ats_client/models/tag.rb +2 -2
  132. data/lib/merge_ats_client/models/update_application_stage_request.rb +244 -0
  133. data/lib/merge_ats_client/models/url.rb +1 -1
  134. data/lib/merge_ats_client/models/url_request.rb +30 -6
  135. data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
  136. data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
  137. data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
  138. data/lib/merge_ats_client/version.rb +1 -1
  139. data/lib/merge_ats_client.rb +12 -1
  140. data/spec/api/activities_api_spec.rb +3 -1
  141. data/spec/api/applications_api_spec.rb +16 -1
  142. data/spec/api/attachments_api_spec.rb +3 -1
  143. data/spec/api/candidates_api_spec.rb +1 -1
  144. data/spec/api/departments_api_spec.rb +1 -1
  145. data/spec/api/eeocs_api_spec.rb +3 -1
  146. data/spec/api/interviews_api_spec.rb +3 -1
  147. data/spec/api/job_interview_stages_api_spec.rb +1 -1
  148. data/spec/api/jobs_api_spec.rb +3 -1
  149. data/spec/api/linked_accounts_api_spec.rb +1 -0
  150. data/spec/api/offers_api_spec.rb +3 -1
  151. data/spec/api/offices_api_spec.rb +1 -1
  152. data/spec/api/reject_reasons_api_spec.rb +1 -1
  153. data/spec/api/scorecards_api_spec.rb +3 -1
  154. data/spec/api/selective_sync_api_spec.rb +72 -0
  155. data/spec/api/sync_status_api_spec.rb +1 -1
  156. data/spec/api/tags_api_spec.rb +1 -1
  157. data/spec/api/users_api_spec.rb +3 -1
  158. data/spec/models/account_details_and_actions_spec.rb +6 -0
  159. data/spec/models/account_details_spec.rb +6 -0
  160. data/spec/models/condition_schema_spec.rb +70 -0
  161. data/spec/models/condition_type_enum_spec.rb +28 -0
  162. data/spec/models/data_passthrough_request_spec.rb +6 -0
  163. data/spec/models/email_address_request_spec.rb +12 -0
  164. data/spec/models/end_user_details_request_spec.rb +6 -0
  165. data/spec/models/job_spec.rb +6 -0
  166. data/spec/models/link_token_spec.rb +6 -0
  167. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  168. data/spec/models/linked_account_condition_spec.rb +64 -0
  169. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  170. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  171. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  172. data/spec/models/operator_schema_spec.rb +40 -0
  173. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  174. data/spec/models/phone_number_request_spec.rb +12 -0
  175. data/spec/models/remote_response_spec.rb +12 -0
  176. data/spec/models/response_type_enum_spec.rb +28 -0
  177. data/spec/models/update_application_stage_request_spec.rb +40 -0
  178. data/spec/models/url_request_spec.rb +12 -0
  179. metadata +153 -105
@@ -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 [Integer] :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 [Integer] :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`, `SYNCING`
22
+ # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
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;SYNCING&#x60;
33
+ # Get syncing status. Possible values: &#x60;DISABLED&#x60;, &#x60;DONE&#x60;, &#x60;FAILED&#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.
@@ -25,7 +25,7 @@ module MergeATSClient
25
25
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
26
26
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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
30
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
31
31
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -43,7 +43,7 @@ module MergeATSClient
43
43
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
44
44
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
45
45
  # @option opts [String] :cursor The pagination cursor value.
46
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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
48
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
49
49
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -26,11 +26,12 @@ module MergeATSClient
26
26
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
28
  # @option opts [String] :email If provided, will only return remote users with the given email address
29
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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 [Time] :modified_after If provided, will only return objects modified after this datetime.
32
32
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
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
35
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
35
36
  # @return [PaginatedRemoteUserList]
36
37
  def users_list(x_account_token, opts = {})
@@ -45,11 +46,12 @@ module MergeATSClient
45
46
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
46
47
  # @option opts [String] :cursor The pagination cursor value.
47
48
  # @option opts [String] :email If provided, will only return remote users with the given email address
48
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
49
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
49
50
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
50
51
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
51
52
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
52
53
  # @option opts [Integer] :page_size Number of results to return per page.
54
+ # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
53
55
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
54
56
  # @return [Array<(PaginatedRemoteUserList, Integer, Hash)>] PaginatedRemoteUserList data, response status code and response headers
55
57
  def users_list_with_http_info(x_account_token, opts = {})
@@ -60,6 +62,10 @@ module MergeATSClient
60
62
  if @api_client.config.client_side_validation && x_account_token.nil?
61
63
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling UsersApi.users_list"
62
64
  end
65
+ allowable_values = ["access_role"]
66
+ if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
67
+ fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
68
+ end
63
69
  # resource path
64
70
  local_var_path = '/users'
65
71
 
@@ -74,6 +80,7 @@ module MergeATSClient
74
80
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
75
81
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
76
82
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
83
+ query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
77
84
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
78
85
 
79
86
  # header parameters
@@ -116,6 +123,7 @@ module MergeATSClient
116
123
  # @param id [String]
117
124
  # @param [Hash] opts the optional parameters
118
125
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
126
+ # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
119
127
  # @return [RemoteUser]
120
128
  def users_retrieve(x_account_token, id, opts = {})
121
129
  data, _status_code, _headers = users_retrieve_with_http_info(x_account_token, id, opts)
@@ -127,6 +135,7 @@ module MergeATSClient
127
135
  # @param id [String]
128
136
  # @param [Hash] opts the optional parameters
129
137
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
138
+ # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
130
139
  # @return [Array<(RemoteUser, Integer, Hash)>] RemoteUser data, response status code and response headers
131
140
  def users_retrieve_with_http_info(x_account_token, id, opts = {})
132
141
  if @api_client.config.debugging
@@ -140,12 +149,17 @@ module MergeATSClient
140
149
  if @api_client.config.client_side_validation && id.nil?
141
150
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_retrieve"
142
151
  end
152
+ allowable_values = ["access_role"]
153
+ if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
154
+ fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
155
+ end
143
156
  # resource path
144
157
  local_var_path = '/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
145
158
 
146
159
  # query parameters
147
160
  query_params = opts[:query_params] || {}
148
161
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
162
+ query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
149
163
 
150
164
  # header parameters
151
165
  header_params = opts[:header_params] || {}
@@ -21,18 +21,28 @@ module MergeATSClient
21
21
  LIMITED_TEAM_MEMBER = "LIMITED_TEAM_MEMBER".freeze
22
22
  INTERVIEWER = "INTERVIEWER".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["SUPER_ADMIN", "ADMIN", "TEAM_MEMBER", "LIMITED_TEAM_MEMBER", "INTERVIEWER", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ AccessRoleEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -33,6 +33,9 @@ module MergeATSClient
33
33
 
34
34
  attr_accessor :webhook_listener_url
35
35
 
36
+ # Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.
37
+ attr_accessor :is_duplicate
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -44,7 +47,8 @@ module MergeATSClient
44
47
  :'end_user_organization_name' => :'end_user_organization_name',
45
48
  :'end_user_email_address' => :'end_user_email_address',
46
49
  :'status' => :'status',
47
- :'webhook_listener_url' => :'webhook_listener_url'
50
+ :'webhook_listener_url' => :'webhook_listener_url',
51
+ :'is_duplicate' => :'is_duplicate'
48
52
  }
49
53
  end
50
54
 
@@ -64,7 +68,8 @@ module MergeATSClient
64
68
  :'end_user_organization_name' => :'String',
65
69
  :'end_user_email_address' => :'String',
66
70
  :'status' => :'String',
67
- :'webhook_listener_url' => :'String'
71
+ :'webhook_listener_url' => :'String',
72
+ :'is_duplicate' => :'Boolean'
68
73
  }
69
74
  end
70
75
 
@@ -72,6 +77,7 @@ module MergeATSClient
72
77
  def self.openapi_nullable
73
78
  Set.new([
74
79
  :'category',
80
+ :'is_duplicate'
75
81
  ])
76
82
  end
77
83
 
@@ -125,6 +131,10 @@ module MergeATSClient
125
131
  if attributes.key?(:'webhook_listener_url')
126
132
  self.webhook_listener_url = attributes[:'webhook_listener_url']
127
133
  end
134
+
135
+ if attributes.key?(:'is_duplicate')
136
+ self.is_duplicate = attributes[:'is_duplicate']
137
+ end
128
138
  end
129
139
 
130
140
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -153,7 +163,8 @@ module MergeATSClient
153
163
  end_user_organization_name == o.end_user_organization_name &&
154
164
  end_user_email_address == o.end_user_email_address &&
155
165
  status == o.status &&
156
- webhook_listener_url == o.webhook_listener_url
166
+ webhook_listener_url == o.webhook_listener_url &&
167
+ is_duplicate == o.is_duplicate
157
168
  end
158
169
 
159
170
  # @see the `==` method
@@ -165,7 +176,7 @@ module MergeATSClient
165
176
  # Calculates hash code according to all attributes.
166
177
  # @return [Integer] Hash code
167
178
  def hash
168
- [id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url].hash
179
+ [id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url, is_duplicate].hash
169
180
  end
170
181
 
171
182
  # Builds the object from hash
@@ -32,6 +32,9 @@ module MergeATSClient
32
32
 
33
33
  attr_accessor :webhook_listener_url
34
34
 
35
+ # Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.
36
+ attr_accessor :is_duplicate
37
+
35
38
  attr_accessor :integration
36
39
 
37
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,6 +48,7 @@ module MergeATSClient
45
48
  :'end_user_organization_name' => :'end_user_organization_name',
46
49
  :'end_user_email_address' => :'end_user_email_address',
47
50
  :'webhook_listener_url' => :'webhook_listener_url',
51
+ :'is_duplicate' => :'is_duplicate',
48
52
  :'integration' => :'integration'
49
53
  }
50
54
  end
@@ -65,6 +69,7 @@ module MergeATSClient
65
69
  :'end_user_organization_name' => :'String',
66
70
  :'end_user_email_address' => :'String',
67
71
  :'webhook_listener_url' => :'String',
72
+ :'is_duplicate' => :'Boolean',
68
73
  :'integration' => :'AccountDetailsAndActionsIntegration'
69
74
  }
70
75
  end
@@ -72,6 +77,7 @@ module MergeATSClient
72
77
  # List of attributes with nullable: true
73
78
  def self.openapi_nullable
74
79
  Set.new([
80
+ :'is_duplicate',
75
81
  ])
76
82
  end
77
83
 
@@ -122,6 +128,10 @@ module MergeATSClient
122
128
  self.webhook_listener_url = attributes[:'webhook_listener_url']
123
129
  end
124
130
 
131
+ if attributes.key?(:'is_duplicate')
132
+ self.is_duplicate = attributes[:'is_duplicate']
133
+ end
134
+
125
135
  if attributes.key?(:'integration')
126
136
  self.integration = attributes[:'integration']
127
137
  end
@@ -178,6 +188,7 @@ module MergeATSClient
178
188
  end_user_organization_name == o.end_user_organization_name &&
179
189
  end_user_email_address == o.end_user_email_address &&
180
190
  webhook_listener_url == o.webhook_listener_url &&
191
+ is_duplicate == o.is_duplicate &&
181
192
  integration == o.integration
182
193
  end
183
194
 
@@ -190,7 +201,7 @@ module MergeATSClient
190
201
  # Calculates hash code according to all attributes.
191
202
  # @return [Integer] Hash code
192
203
  def hash
193
- [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, integration].hash
204
+ [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, is_duplicate, integration].hash
194
205
  end
195
206
 
196
207
  # Builds the object from hash
@@ -19,18 +19,28 @@ module MergeATSClient
19
19
  INCOMPLETE = "INCOMPLETE".freeze
20
20
  RELINK_NEEDED = "RELINK_NEEDED".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ AccountDetailsAndActionsStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -40,7 +40,7 @@ module MergeATSClient
40
40
 
41
41
  attr_accessor :remote_data
42
42
 
43
- # Indicates whether or not this object has been deleted on the third-party.
43
+ # Indicates whether or not this object has been deleted by third party webhooks.
44
44
  attr_accessor :remote_was_deleted
45
45
 
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,18 +19,28 @@ module MergeATSClient
19
19
  EMAIL = "EMAIL".freeze
20
20
  OTHER = "OTHER".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["NOTE", "EMAIL", "OTHER", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ ActivityTypeEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -85,7 +85,7 @@ module MergeATSClient
85
85
  :'current_stage' => :'String',
86
86
  :'reject_reason' => :'String',
87
87
  :'remote_data' => :'Array<RemoteData>',
88
- :'custom_fields' => :'Hash<String, AnyType>',
88
+ :'custom_fields' => :'Hash<String, Object>',
89
89
  :'remote_was_deleted' => :'Boolean'
90
90
  }
91
91
  end
@@ -83,10 +83,10 @@ module MergeATSClient
83
83
  :'credited_to' => :'String',
84
84
  :'current_stage' => :'String',
85
85
  :'reject_reason' => :'String',
86
- :'custom_fields' => :'Hash<String, AnyType>',
86
+ :'custom_fields' => :'Hash<String, Object>',
87
87
  :'remote_template_id' => :'String',
88
- :'integration_params' => :'Hash<String, AnyType>',
89
- :'linked_account_params' => :'Hash<String, AnyType>'
88
+ :'integration_params' => :'Hash<String, Object>',
89
+ :'linked_account_params' => :'Hash<String, Object>'
90
90
  }
91
91
  end
92
92
 
@@ -60,8 +60,8 @@ module MergeATSClient
60
60
  :'file_url' => :'String',
61
61
  :'candidate' => :'String',
62
62
  :'attachment_type' => :'AttachmentTypeEnum',
63
- :'integration_params' => :'Hash<String, AnyType>',
64
- :'linked_account_params' => :'Hash<String, AnyType>'
63
+ :'integration_params' => :'Hash<String, Object>',
64
+ :'linked_account_params' => :'Hash<String, Object>'
65
65
  }
66
66
  end
67
67
 
@@ -20,18 +20,28 @@ module MergeATSClient
20
20
  OFFER_LETTER = "OFFER_LETTER".freeze
21
21
  OTHER = "OTHER".freeze
22
22
 
23
- # Builds the enum from string
24
- # @param [String] The enum value in the form of the string
25
- # @return [String] The enum value
26
- def self.build_from_hash(value)
27
- new.build_from_hash(value)
28
- end
23
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
24
+
25
+ attr_accessor :value
26
+ attr_accessor :raw_value
29
27
 
30
28
  # Builds the enum from string
31
29
  # @param [String] The enum value in the form of the string
32
30
  # @return [String] The enum value
33
31
  def build_from_hash(value)
34
- value
32
+ @raw_value = value
33
+ if ["RESUME", "COVER_LETTER", "OFFER_LETTER", "OTHER", ].include? value
34
+ @value = value
35
+ else
36
+ @value = MERGE_NONSTANDARD_VALUE
37
+ end
38
+
39
+ self
40
+ end
41
+
42
+ def self.build_from_hash(value)
43
+ AttachmentTypeEnum.new.build_from_hash(value)
35
44
  end
36
45
  end
46
+
37
47
  end