merge_ats_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -3
  3. data/docs/AccountToken.md +3 -1
  4. data/docs/ApplicationsApi.md +0 -82
  5. data/docs/Attachment.md +2 -0
  6. data/docs/AttachmentRequest.md +26 -0
  7. data/docs/AttachmentTypeEnum.md +15 -0
  8. data/docs/AttachmentsApi.md +80 -0
  9. data/docs/AvailableActions.md +1 -1
  10. data/docs/Candidate.md +2 -2
  11. data/docs/CandidateRequest.md +5 -1
  12. data/docs/InterviewsApi.md +80 -0
  13. data/docs/JobsApi.md +3 -1
  14. data/docs/ModelOperation.md +3 -1
  15. data/docs/PaginatedSyncStatusList.md +22 -0
  16. data/docs/RemoteUserRequest.md +30 -0
  17. data/docs/ScheduledInterviewRequest.md +38 -0
  18. data/docs/ScorecardRequest.md +30 -0
  19. data/docs/ScorecardsApi.md +80 -0
  20. data/docs/SyncStatus.md +1 -1
  21. data/docs/SyncStatusApi.md +89 -11
  22. data/docs/SyncStatusStatusEnum.md +15 -0
  23. data/docs/UsersApi.md +81 -0
  24. data/lib/merge_ats_client/api/applications_api.rb +0 -82
  25. data/lib/merge_ats_client/api/attachments_api.rb +76 -0
  26. data/lib/merge_ats_client/api/interviews_api.rb +76 -0
  27. data/lib/merge_ats_client/api/jobs_api.rb +7 -0
  28. data/lib/merge_ats_client/api/scorecards_api.rb +76 -0
  29. data/lib/merge_ats_client/api/sync_status_api.rb +78 -10
  30. data/lib/merge_ats_client/api/users_api.rb +79 -0
  31. data/lib/merge_ats_client/api_client.rb +1 -1
  32. data/lib/merge_ats_client/models/account_token.rb +18 -4
  33. data/lib/merge_ats_client/models/activity.rb +1 -1
  34. data/lib/merge_ats_client/models/application.rb +1 -1
  35. data/lib/merge_ats_client/models/attachment.rb +13 -2
  36. data/lib/merge_ats_client/models/attachment_request.rb +279 -0
  37. data/lib/merge_ats_client/models/attachment_type_enum.rb +39 -0
  38. data/lib/merge_ats_client/models/candidate.rb +1 -1
  39. data/lib/merge_ats_client/models/candidate_request.rb +26 -4
  40. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  41. data/lib/merge_ats_client/models/eeoc.rb +1 -1
  42. data/lib/merge_ats_client/models/end_user_details_request.rb +1 -5
  43. data/lib/merge_ats_client/models/job.rb +1 -1
  44. data/lib/merge_ats_client/models/job_interview_stage.rb +1 -1
  45. data/lib/merge_ats_client/models/model_operation.rb +20 -4
  46. data/lib/merge_ats_client/models/offer.rb +1 -1
  47. data/lib/merge_ats_client/models/paginated_sync_status_list.rb +240 -0
  48. data/lib/merge_ats_client/models/remote_user_request.rb +302 -0
  49. data/lib/merge_ats_client/models/scheduled_interview.rb +1 -1
  50. data/lib/merge_ats_client/models/scheduled_interview_request.rb +331 -0
  51. data/lib/merge_ats_client/models/scorecard.rb +1 -1
  52. data/lib/merge_ats_client/models/scorecard_request.rb +287 -0
  53. data/lib/merge_ats_client/models/sync_status.rb +1 -1
  54. data/lib/merge_ats_client/models/sync_status_status_enum.rb +37 -0
  55. data/lib/merge_ats_client/version.rb +2 -2
  56. data/lib/merge_ats_client.rb +7 -3
  57. data/spec/api/delete_account_api_spec.rb +46 -0
  58. data/spec/api/generate_key_api_spec.rb +46 -0
  59. data/spec/api/issues_api_spec.rb +65 -0
  60. data/spec/models/attachment_request_spec.rb +58 -0
  61. data/spec/models/attachment_type_enum_spec.rb +28 -0
  62. data/spec/models/generate_remote_key_request_spec.rb +1 -1
  63. data/spec/models/issue_spec.rb +70 -0
  64. data/spec/models/issue_status_enum_spec.rb +28 -0
  65. data/spec/models/paginated_issue_list_spec.rb +46 -0
  66. data/spec/models/paginated_sync_status_list_spec.rb +46 -0
  67. data/spec/models/remote_data_request_spec.rb +40 -0
  68. data/spec/models/remote_user_request_spec.rb +70 -0
  69. data/spec/models/scheduled_interview_request_spec.rb +94 -0
  70. data/spec/models/scorecard_request_spec.rb +70 -0
  71. data/spec/models/sync_status_status_enum_spec.rb +28 -0
  72. data/test_ats.rb +13 -13
  73. data/test_signature.rb +2 -2
  74. metadata +44 -3
  75. data/merge_ats_client-1.0.0.gem +0 -0
@@ -4,10 +4,90 @@ All URIs are relative to *https://api.merge.dev/api/ats/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**scorecards_create**](ScorecardsApi.md#scorecards_create) | **POST** /scorecards | |
7
8
  | [**scorecards_list**](ScorecardsApi.md#scorecards_list) | **GET** /scorecards | |
8
9
  | [**scorecards_retrieve**](ScorecardsApi.md#scorecards_retrieve) | **GET** /scorecards/{id} | |
9
10
 
10
11
 
12
+ ## scorecards_create
13
+
14
+ > <Scorecard> scorecards_create(x_account_token, remote_user_id, opts)
15
+
16
+
17
+
18
+ Creates a `Scorecard` object with the given values.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'merge_ats_client'
25
+ # setup authorization
26
+ MergeATSClient.configure do |config|
27
+ # Configure API key authorization: tokenAuth
28
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = MergeATSClient::ScorecardsApi.new
34
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
35
+ remote_user_id = 'remote_user_id_example' # String | The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
36
+ opts = {
37
+ run_async: true, # Boolean | Whether or not third-party updates should be run asynchronously.
38
+ scorecard_request: MergeATSClient::ScorecardRequest.new # ScorecardRequest |
39
+ }
40
+
41
+ begin
42
+
43
+ result = api_instance.scorecards_create(x_account_token, remote_user_id, opts)
44
+ p result
45
+ rescue MergeATSClient::ApiError => e
46
+ puts "Error when calling ScorecardsApi->scorecards_create: #{e}"
47
+ end
48
+ ```
49
+
50
+ #### Using the scorecards_create_with_http_info variant
51
+
52
+ This returns an Array which contains the response data, status code and headers.
53
+
54
+ > <Array(<Scorecard>, Integer, Hash)> scorecards_create_with_http_info(x_account_token, remote_user_id, opts)
55
+
56
+ ```ruby
57
+ begin
58
+
59
+ data, status_code, headers = api_instance.scorecards_create_with_http_info(x_account_token, remote_user_id, opts)
60
+ p status_code # => 2xx
61
+ p headers # => { ... }
62
+ p data # => <Scorecard>
63
+ rescue MergeATSClient::ApiError => e
64
+ puts "Error when calling ScorecardsApi->scorecards_create_with_http_info: #{e}"
65
+ end
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+ | Name | Type | Description | Notes |
71
+ | ---- | ---- | ----------- | ----- |
72
+ | **x_account_token** | **String** | Token identifying the end user. | |
73
+ | **remote_user_id** | **String** | The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table. | |
74
+ | **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
75
+ | **scorecard_request** | [**ScorecardRequest**](ScorecardRequest.md) | | [optional] |
76
+
77
+ ### Return type
78
+
79
+ [**Scorecard**](Scorecard.md)
80
+
81
+ ### Authorization
82
+
83
+ [tokenAuth](../README.md#tokenAuth)
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
88
+ - **Accept**: application/json
89
+
90
+
11
91
  ## scorecards_list
12
92
 
13
93
  > <PaginatedScorecardList> scorecards_list(x_account_token, opts)
data/docs/SyncStatus.md CHANGED
@@ -8,7 +8,7 @@
8
8
  | **model_id** | **String** | | |
9
9
  | **last_sync_start** | **Time** | | |
10
10
  | **next_sync_start** | **Time** | | |
11
- | **status** | **String** | | |
11
+ | **status** | [**SyncStatusStatusEnum**](SyncStatusStatusEnum.md) | | |
12
12
  | **is_initial_sync** | **Boolean** | | |
13
13
 
14
14
  ## Example
@@ -4,12 +4,13 @@ All URIs are relative to *https://api.merge.dev/api/ats/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**sync_status_retrieve**](SyncStatusApi.md#sync_status_retrieve) | **GET** /sync-status | |
7
+ | [**sync_status_list**](SyncStatusApi.md#sync_status_list) | **GET** /sync-status | |
8
+ | [**sync_status_resync_create**](SyncStatusApi.md#sync_status_resync_create) | **POST** /sync-status/resync | |
8
9
 
9
10
 
10
- ## sync_status_retrieve
11
+ ## sync_status_list
11
12
 
12
- > <SyncStatus> sync_status_retrieve(x_account_token)
13
+ > <PaginatedSyncStatusList> sync_status_list(x_account_token, opts)
13
14
 
14
15
 
15
16
 
@@ -23,38 +24,115 @@ require 'merge_ats_client'
23
24
  # setup authorization
24
25
  MergeATSClient.configure do |config|
25
26
  # Configure API key authorization: tokenAuth
26
- config.api_key['Authorization'] = 'YOUR API KEY'
27
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
27
28
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
- # config.api_key_prefix['Authorization'] = 'Bearer'
29
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
29
30
  end
30
31
 
31
32
  api_instance = MergeATSClient::SyncStatusApi.new
32
33
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
34
+ opts = {
35
+ cursor: 56, # Integer | The pagination cursor value.
36
+ page_size: 56 # Integer | Number of results to return per page.
37
+ }
33
38
 
34
39
  begin
35
40
 
36
- result = api_instance.sync_status_retrieve(x_account_token)
41
+ result = api_instance.sync_status_list(x_account_token, opts)
37
42
  p result
38
43
  rescue MergeATSClient::ApiError => e
39
- puts "Error when calling SyncStatusApi->sync_status_retrieve: #{e}"
44
+ puts "Error when calling SyncStatusApi->sync_status_list: #{e}"
40
45
  end
41
46
  ```
42
47
 
43
- #### Using the sync_status_retrieve_with_http_info variant
48
+ #### Using the sync_status_list_with_http_info variant
44
49
 
45
50
  This returns an Array which contains the response data, status code and headers.
46
51
 
47
- > <Array(<SyncStatus>, Integer, Hash)> sync_status_retrieve_with_http_info(x_account_token)
52
+ > <Array(<PaginatedSyncStatusList>, Integer, Hash)> sync_status_list_with_http_info(x_account_token, opts)
48
53
 
49
54
  ```ruby
50
55
  begin
51
56
 
52
- data, status_code, headers = api_instance.sync_status_retrieve_with_http_info(x_account_token)
57
+ data, status_code, headers = api_instance.sync_status_list_with_http_info(x_account_token, opts)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => <PaginatedSyncStatusList>
61
+ rescue MergeATSClient::ApiError => e
62
+ puts "Error when calling SyncStatusApi->sync_status_list_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **x_account_token** | **String** | Token identifying the end user. | |
71
+ | **cursor** | **Integer** | The pagination cursor value. | [optional] |
72
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
73
+
74
+ ### Return type
75
+
76
+ [**PaginatedSyncStatusList**](PaginatedSyncStatusList.md)
77
+
78
+ ### Authorization
79
+
80
+ [tokenAuth](../README.md#tokenAuth)
81
+
82
+ ### HTTP request headers
83
+
84
+ - **Content-Type**: Not defined
85
+ - **Accept**: application/json
86
+
87
+
88
+ ## sync_status_resync_create
89
+
90
+ > <SyncStatus> sync_status_resync_create(x_account_token)
91
+
92
+
93
+
94
+ Force resync of all models.
95
+
96
+ ### Examples
97
+
98
+ ```ruby
99
+ require 'time'
100
+ require 'merge_ats_client'
101
+ # setup authorization
102
+ MergeATSClient.configure do |config|
103
+ # Configure API key authorization: tokenAuth
104
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
105
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
106
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
107
+ end
108
+
109
+ api_instance = MergeATSClient::SyncStatusApi.new
110
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
111
+
112
+ begin
113
+
114
+ result = api_instance.sync_status_resync_create(x_account_token)
115
+ p result
116
+ rescue MergeATSClient::ApiError => e
117
+ puts "Error when calling SyncStatusApi->sync_status_resync_create: #{e}"
118
+ end
119
+ ```
120
+
121
+ #### Using the sync_status_resync_create_with_http_info variant
122
+
123
+ This returns an Array which contains the response data, status code and headers.
124
+
125
+ > <Array(<SyncStatus>, Integer, Hash)> sync_status_resync_create_with_http_info(x_account_token)
126
+
127
+ ```ruby
128
+ begin
129
+
130
+ data, status_code, headers = api_instance.sync_status_resync_create_with_http_info(x_account_token)
53
131
  p status_code # => 2xx
54
132
  p headers # => { ... }
55
133
  p data # => <SyncStatus>
56
134
  rescue MergeATSClient::ApiError => e
57
- puts "Error when calling SyncStatusApi->sync_status_retrieve_with_http_info: #{e}"
135
+ puts "Error when calling SyncStatusApi->sync_status_resync_create_with_http_info: #{e}"
58
136
  end
59
137
  ```
60
138
 
@@ -0,0 +1,15 @@
1
+ # MergeATSClient::SyncStatusStatusEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'merge_ats_client'
12
+
13
+ instance = MergeATSClient::SyncStatusStatusEnum.new()
14
+ ```
15
+
data/docs/UsersApi.md CHANGED
@@ -4,10 +4,90 @@ All URIs are relative to *https://api.merge.dev/api/ats/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**users_create**](UsersApi.md#users_create) | **POST** /users | |
7
8
  | [**users_list**](UsersApi.md#users_list) | **GET** /users | |
8
9
  | [**users_retrieve**](UsersApi.md#users_retrieve) | **GET** /users/{id} | |
9
10
 
10
11
 
12
+ ## users_create
13
+
14
+ > <RemoteUser> users_create(x_account_token, remote_user_id, opts)
15
+
16
+
17
+
18
+ Creates a `RemoteUser` object with the given values.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'merge_ats_client'
25
+ # setup authorization
26
+ MergeATSClient.configure do |config|
27
+ # Configure API key authorization: tokenAuth
28
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = MergeATSClient::UsersApi.new
34
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
35
+ remote_user_id = 'remote_user_id_example' # String | The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
36
+ opts = {
37
+ run_async: true, # Boolean | Whether or not third-party updates should be run asynchronously.
38
+ remote_user_request: MergeATSClient::RemoteUserRequest.new # RemoteUserRequest |
39
+ }
40
+
41
+ begin
42
+
43
+ result = api_instance.users_create(x_account_token, remote_user_id, opts)
44
+ p result
45
+ rescue MergeATSClient::ApiError => e
46
+ puts "Error when calling UsersApi->users_create: #{e}"
47
+ end
48
+ ```
49
+
50
+ #### Using the users_create_with_http_info variant
51
+
52
+ This returns an Array which contains the response data, status code and headers.
53
+
54
+ > <Array(<RemoteUser>, Integer, Hash)> users_create_with_http_info(x_account_token, remote_user_id, opts)
55
+
56
+ ```ruby
57
+ begin
58
+
59
+ data, status_code, headers = api_instance.users_create_with_http_info(x_account_token, remote_user_id, opts)
60
+ p status_code # => 2xx
61
+ p headers # => { ... }
62
+ p data # => <RemoteUser>
63
+ rescue MergeATSClient::ApiError => e
64
+ puts "Error when calling UsersApi->users_create_with_http_info: #{e}"
65
+ end
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+ | Name | Type | Description | Notes |
71
+ | ---- | ---- | ----------- | ----- |
72
+ | **x_account_token** | **String** | Token identifying the end user. | |
73
+ | **remote_user_id** | **String** | The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table. | |
74
+ | **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
75
+ | **remote_user_request** | [**RemoteUserRequest**](RemoteUserRequest.md) | | [optional] |
76
+
77
+ ### Return type
78
+
79
+ [**RemoteUser**](RemoteUser.md)
80
+
81
+ ### Authorization
82
+
83
+ [tokenAuth](../README.md#tokenAuth)
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
88
+ - **Accept**: application/json
89
+
90
+
11
91
  ## users_list
12
92
 
13
93
  > <PaginatedRemoteUserList> users_list(x_account_token, opts)
@@ -77,6 +157,7 @@ end
77
157
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
78
158
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
79
159
  | **cursor** | **String** | The pagination cursor value. | [optional] |
160
+ | **email** | [**String**](.md) | If provided, will only return remote users with the given email address | [optional] |
80
161
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
81
162
  | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
82
163
  | **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
@@ -203,88 +203,6 @@ module MergeATSClient
203
203
  return data, status_code, headers
204
204
  end
205
205
 
206
- # Updates an `Application` object with the given `id`.
207
- # @param x_account_token [String] Token identifying the end user.
208
- # @param id [String]
209
- # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
210
- # @param [Hash] opts the optional parameters
211
- # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
212
- # @option opts [PatchedApplicationRequest] :patched_application_request
213
- # @return [Application]
214
- def applications_partial_update(x_account_token, id, remote_user_id, opts = {})
215
- data, _status_code, _headers = applications_partial_update_with_http_info(x_account_token, id, remote_user_id, opts)
216
- data
217
- end
218
-
219
- # Updates an &#x60;Application&#x60; object with the given &#x60;id&#x60;.
220
- # @param x_account_token [String] Token identifying the end user.
221
- # @param id [String]
222
- # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
223
- # @param [Hash] opts the optional parameters
224
- # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
225
- # @option opts [PatchedApplicationRequest] :patched_application_request
226
- # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
227
- def applications_partial_update_with_http_info(x_account_token, id, remote_user_id, opts = {})
228
- if @api_client.config.debugging
229
- @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_partial_update ...'
230
- end
231
- # verify the required parameter 'x_account_token' is set
232
- if @api_client.config.client_side_validation && x_account_token.nil?
233
- fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ApplicationsApi.applications_partial_update"
234
- end
235
- # verify the required parameter 'id' is set
236
- if @api_client.config.client_side_validation && id.nil?
237
- fail ArgumentError, "Missing the required parameter 'id' when calling ApplicationsApi.applications_partial_update"
238
- end
239
- # verify the required parameter 'remote_user_id' is set
240
- if @api_client.config.client_side_validation && remote_user_id.nil?
241
- fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling ApplicationsApi.applications_partial_update"
242
- end
243
- # resource path
244
- local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
245
-
246
- # query parameters
247
- query_params = opts[:query_params] || {}
248
- query_params[:'remote_user_id'] = remote_user_id
249
- query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
250
-
251
- # header parameters
252
- header_params = opts[:header_params] || {}
253
- # HTTP header 'Accept' (if needed)
254
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
255
- # HTTP header 'Content-Type'
256
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
257
- header_params[:'X-Account-Token'] = x_account_token
258
-
259
- # form parameters
260
- form_params = opts[:form_params] || {}
261
-
262
- # http body (model)
263
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_application_request'])
264
-
265
- # return_type
266
- return_type = opts[:debug_return_type] || 'Application'
267
-
268
- # auth_names
269
- auth_names = opts[:debug_auth_names] || ['tokenAuth']
270
-
271
- new_options = opts.merge(
272
- :operation => :"ApplicationsApi.applications_partial_update",
273
- :header_params => header_params,
274
- :query_params => query_params,
275
- :form_params => form_params,
276
- :body => post_body,
277
- :auth_names => auth_names,
278
- :return_type => return_type
279
- )
280
-
281
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
282
- if @api_client.config.debugging
283
- @api_client.config.logger.debug "API called: ApplicationsApi#applications_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
284
- end
285
- return data, status_code, headers
286
- end
287
-
288
206
  # Returns an `Application` object with the given `id`.
289
207
  # @param x_account_token [String] Token identifying the end user.
290
208
  # @param id [String]
@@ -19,6 +19,82 @@ module MergeATSClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Creates an `Attachment` object with the given values.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
27
+ # @option opts [AttachmentRequest] :attachment_request
28
+ # @return [Attachment]
29
+ def attachments_create(x_account_token, remote_user_id, opts = {})
30
+ data, _status_code, _headers = attachments_create_with_http_info(x_account_token, remote_user_id, opts)
31
+ data
32
+ end
33
+
34
+ # Creates an &#x60;Attachment&#x60; object with the given values.
35
+ # @param x_account_token [String] Token identifying the end user.
36
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
39
+ # @option opts [AttachmentRequest] :attachment_request
40
+ # @return [Array<(Attachment, Integer, Hash)>] Attachment data, response status code and response headers
41
+ def attachments_create_with_http_info(x_account_token, remote_user_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: AttachmentsApi.attachments_create ...'
44
+ end
45
+ # verify the required parameter 'x_account_token' is set
46
+ if @api_client.config.client_side_validation && x_account_token.nil?
47
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AttachmentsApi.attachments_create"
48
+ end
49
+ # verify the required parameter 'remote_user_id' is set
50
+ if @api_client.config.client_side_validation && remote_user_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling AttachmentsApi.attachments_create"
52
+ end
53
+ # resource path
54
+ local_var_path = '/attachments'
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'remote_user_id'] = remote_user_id
59
+ query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
67
+ header_params[:'X-Account-Token'] = x_account_token
68
+
69
+ # form parameters
70
+ form_params = opts[:form_params] || {}
71
+
72
+ # http body (model)
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'attachment_request'])
74
+
75
+ # return_type
76
+ return_type = opts[:debug_return_type] || 'Attachment'
77
+
78
+ # auth_names
79
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
80
+
81
+ new_options = opts.merge(
82
+ :operation => :"AttachmentsApi.attachments_create",
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => return_type
89
+ )
90
+
91
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: AttachmentsApi#attachments_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+
22
98
  # Returns a list of `Attachment` objects.
23
99
  # @param x_account_token [String] Token identifying the end user.
24
100
  # @param [Hash] opts the optional parameters
@@ -19,6 +19,82 @@ module MergeATSClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Creates a `ScheduledInterview` object with the given values.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
27
+ # @option opts [ScheduledInterviewRequest] :scheduled_interview_request
28
+ # @return [ScheduledInterview]
29
+ def interviews_create(x_account_token, remote_user_id, opts = {})
30
+ data, _status_code, _headers = interviews_create_with_http_info(x_account_token, remote_user_id, opts)
31
+ data
32
+ end
33
+
34
+ # Creates a &#x60;ScheduledInterview&#x60; object with the given values.
35
+ # @param x_account_token [String] Token identifying the end user.
36
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
39
+ # @option opts [ScheduledInterviewRequest] :scheduled_interview_request
40
+ # @return [Array<(ScheduledInterview, Integer, Hash)>] ScheduledInterview data, response status code and response headers
41
+ def interviews_create_with_http_info(x_account_token, remote_user_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: InterviewsApi.interviews_create ...'
44
+ end
45
+ # verify the required parameter 'x_account_token' is set
46
+ if @api_client.config.client_side_validation && x_account_token.nil?
47
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling InterviewsApi.interviews_create"
48
+ end
49
+ # verify the required parameter 'remote_user_id' is set
50
+ if @api_client.config.client_side_validation && remote_user_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling InterviewsApi.interviews_create"
52
+ end
53
+ # resource path
54
+ local_var_path = '/interviews'
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'remote_user_id'] = remote_user_id
59
+ query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
67
+ header_params[:'X-Account-Token'] = x_account_token
68
+
69
+ # form parameters
70
+ form_params = opts[:form_params] || {}
71
+
72
+ # http body (model)
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'scheduled_interview_request'])
74
+
75
+ # return_type
76
+ return_type = opts[:debug_return_type] || 'ScheduledInterview'
77
+
78
+ # auth_names
79
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
80
+
81
+ new_options = opts.merge(
82
+ :operation => :"InterviewsApi.interviews_create",
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => return_type
89
+ )
90
+
91
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: InterviewsApi#interviews_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+
22
98
  # Returns a list of `ScheduledInterview` objects.
23
99
  # @param x_account_token [String] Token identifying the end user.
24
100
  # @param [Hash] opts the optional parameters
@@ -31,6 +31,7 @@ module MergeATSClient
31
31
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
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
+ # @option opts [String] :status If provided, will only return jobs with this status. Options: (&#39;OPEN&#39;, &#39;CLOSED&#39;, &#39;DRAFT&#39;, &#39;ARCHIVED&#39;, &#39;PENDING&#39;)
34
35
  # @return [PaginatedJobList]
35
36
  def jobs_list(x_account_token, opts = {})
36
37
  data, _status_code, _headers = jobs_list_with_http_info(x_account_token, opts)
@@ -49,6 +50,7 @@ module MergeATSClient
49
50
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
50
51
  # @option opts [Integer] :page_size Number of results to return per page.
51
52
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
53
+ # @option opts [String] :status If provided, will only return jobs with this status. Options: (&#39;OPEN&#39;, &#39;CLOSED&#39;, &#39;DRAFT&#39;, &#39;ARCHIVED&#39;, &#39;PENDING&#39;)
52
54
  # @return [Array<(PaginatedJobList, Integer, Hash)>] PaginatedJobList data, response status code and response headers
53
55
  def jobs_list_with_http_info(x_account_token, opts = {})
54
56
  if @api_client.config.debugging
@@ -62,6 +64,10 @@ module MergeATSClient
62
64
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
63
65
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
64
66
  end
67
+ allowable_values = ["OPEN", "CLOSED", "DRAFT", "ARCHIVED", "PENDING", "", "null"]
68
+ if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
69
+ fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
70
+ end
65
71
  # resource path
66
72
  local_var_path = '/jobs'
67
73
 
@@ -76,6 +82,7 @@ module MergeATSClient
76
82
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
77
83
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
78
84
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
85
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
79
86
 
80
87
  # header parameters
81
88
  header_params = opts[:header_params] || {}