stackone_client 0.2.38 → 0.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stack_one/ats.rb +98 -0
- data/lib/stack_one/models/operations/ats_create_job_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_create_job_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_update_job_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_update_job_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_list_completions_request.rb +2 -8
- data/lib/stack_one/models/operations/lms_list_user_completions_request.rb +2 -8
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +2 -0
- data/lib/stack_one/models/operations.rb +4 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto_source.rb +2 -5
- data/lib/stack_one/models/shared/atscreatejobrequestdto.rb +59 -0
- data/lib/stack_one/models/shared/atscreatejobrequestdto_value.rb +25 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_source.rb +2 -5
- data/lib/stack_one/models/shared/atsupdatejobrequestdto.rb +59 -0
- data/lib/stack_one/models/shared/atsupdatejobrequestdto_confidential.rb +18 -0
- data/lib/stack_one/models/shared/atsupdatejobrequestdto_job_status.rb +27 -0
- data/lib/stack_one/models/shared/atsupdatejobrequestdto_value.rb +25 -0
- data/lib/stack_one/models/shared/benefit_type.rb +2 -2
- data/lib/stack_one/models/shared/completion.rb +14 -2
- data/lib/stack_one/models/shared/confidential.rb +5 -14
- data/lib/stack_one/models/shared/createanswer.rb +30 -0
- data/lib/stack_one/models/shared/createanswer_type.rb +27 -0
- data/lib/stack_one/models/shared/createanswer_value.rb +25 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +60 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_pay_frequency_value.rb +31 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_value.rb +33 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_value.rb +20 -0
- data/lib/stack_one/models/shared/createhrisbenefit.rb +42 -0
- data/lib/stack_one/models/shared/createhrisbenefit_value.rb +21 -0
- data/lib/stack_one/models/shared/createmessage.rb +33 -0
- data/lib/stack_one/models/shared/createmessage_value.rb +20 -0
- data/lib/stack_one/models/shared/createquestionnaire.rb +27 -0
- data/lib/stack_one/models/shared/emailmessages.rb +2 -2
- data/lib/stack_one/models/shared/emailmessages_message_type.rb +27 -0
- data/lib/stack_one/models/shared/employee.rb +3 -3
- data/lib/stack_one/models/shared/employee_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/employee_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/employment.rb +3 -3
- data/lib/stack_one/models/shared/employment_contract_type.rb +2 -2
- data/lib/stack_one/models/shared/employment_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/employment_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/employment_type.rb +3 -3
- data/lib/stack_one/models/shared/hrisbenefit.rb +2 -2
- data/lib/stack_one/models/shared/hrisbenefit_benefit_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +3 -3
- data/lib/stack_one/models/shared/hrisdepartment_value.rb +4 -0
- data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_confidential.rb +27 -0
- data/lib/stack_one/models/shared/iammfatypeenum_value.rb +5 -0
- data/lib/stack_one/models/shared/job.rb +2 -2
- data/lib/stack_one/models/shared/job_job_status.rb +27 -0
- data/lib/stack_one/models/shared/job_status.rb +2 -2
- data/lib/stack_one/models/shared/level.rb +27 -0
- data/lib/stack_one/models/shared/lmsuser.rb +5 -2
- data/lib/stack_one/models/shared/marketingcreatetemplaterequestdto.rb +2 -2
- data/lib/stack_one/models/shared/message_type.rb +3 -3
- data/lib/stack_one/models/shared/pay_frequency.rb +2 -2
- data/lib/stack_one/models/shared/pay_period.rb +2 -2
- data/lib/stack_one/models/shared/skills.rb +5 -2
- data/lib/stack_one/models/shared/skills_value.rb +18 -0
- data/lib/stack_one/models/shared.rb +53 -24
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +35 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14a53b01df9d1f9e7b03b69da06f7a49b44d89c1761b5e7efac2d7862e9ff6b1
|
4
|
+
data.tar.gz: 7b9a311233c9a1ce1a83946ea6998fae933f24f9855e6f8c9686a17da7e80c3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a1d62874ae1dae0662bfb1bf4c0b3a8207b0ecd37920e19587399adb2d19833fdd1cf18db804d88a7e7f2a4a3618a3709c4170930aea3bdc07f90694040f53
|
7
|
+
data.tar.gz: a0a0ec80720142fac97d3a70f4a4acca8770c90c15c80629a0368a112ee66dedee4f757d2543eadf9ec8bf866e35cd76f50f3dcfd6b8436c3cf24ba7f7bc958d
|
data/lib/stack_one/ats.rb
CHANGED
@@ -163,6 +163,52 @@ module StackOne
|
|
163
163
|
end
|
164
164
|
|
165
165
|
|
166
|
+
sig { params(ats_create_job_request_dto: ::StackOne::Shared::AtsCreateJobRequestDto, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateJobResponse) }
|
167
|
+
def create_job(ats_create_job_request_dto, x_account_id)
|
168
|
+
# create_job - Create Job
|
169
|
+
request = ::StackOne::Operations::AtsCreateJobRequest.new(
|
170
|
+
|
171
|
+
ats_create_job_request_dto: ats_create_job_request_dto,
|
172
|
+
x_account_id: x_account_id
|
173
|
+
)
|
174
|
+
url, params = @sdk_configuration.get_server_details
|
175
|
+
base_url = Utils.template_url(url, params)
|
176
|
+
url = "#{base_url}/unified/ats/jobs"
|
177
|
+
headers = Utils.get_headers(request)
|
178
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :ats_create_job_request_dto, :json)
|
179
|
+
headers['content-type'] = req_content_type
|
180
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
181
|
+
headers['Accept'] = 'application/json'
|
182
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
183
|
+
|
184
|
+
r = @sdk_configuration.client.post(url) do |req|
|
185
|
+
req.headers = headers
|
186
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
187
|
+
if form
|
188
|
+
req.body = Utils.encode_form(form)
|
189
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
190
|
+
req.body = URI.encode_www_form(data)
|
191
|
+
else
|
192
|
+
req.body = data
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
197
|
+
|
198
|
+
res = ::StackOne::Operations::AtsCreateJobResponse.new(
|
199
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
200
|
+
)
|
201
|
+
if r.status == 200
|
202
|
+
if Utils.match_content_type(content_type, 'application/json')
|
203
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
204
|
+
res.create_result = out
|
205
|
+
end
|
206
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
207
|
+
end
|
208
|
+
res
|
209
|
+
end
|
210
|
+
|
211
|
+
|
166
212
|
sig { params(ats_create_offer_request_dto: ::StackOne::Shared::AtsCreateOfferRequestDto, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateOfferResponse) }
|
167
213
|
def create_offer(ats_create_offer_request_dto, x_account_id)
|
168
214
|
# create_offer - Creates an offer
|
@@ -2052,6 +2098,58 @@ module StackOne
|
|
2052
2098
|
end
|
2053
2099
|
|
2054
2100
|
|
2101
|
+
sig { params(ats_update_job_request_dto: ::StackOne::Shared::AtsUpdateJobRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateJobResponse) }
|
2102
|
+
def update_job(ats_update_job_request_dto, id, x_account_id)
|
2103
|
+
# update_job - Update Job
|
2104
|
+
request = ::StackOne::Operations::AtsUpdateJobRequest.new(
|
2105
|
+
|
2106
|
+
ats_update_job_request_dto: ats_update_job_request_dto,
|
2107
|
+
id: id,
|
2108
|
+
x_account_id: x_account_id
|
2109
|
+
)
|
2110
|
+
url, params = @sdk_configuration.get_server_details
|
2111
|
+
base_url = Utils.template_url(url, params)
|
2112
|
+
url = Utils.generate_url(
|
2113
|
+
::StackOne::Operations::AtsUpdateJobRequest,
|
2114
|
+
base_url,
|
2115
|
+
'/unified/ats/jobs/{id}',
|
2116
|
+
request
|
2117
|
+
)
|
2118
|
+
headers = Utils.get_headers(request)
|
2119
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :ats_update_job_request_dto, :json)
|
2120
|
+
headers['content-type'] = req_content_type
|
2121
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2122
|
+
headers['Accept'] = 'application/json'
|
2123
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
2124
|
+
|
2125
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
2126
|
+
req.headers = headers
|
2127
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
2128
|
+
if form
|
2129
|
+
req.body = Utils.encode_form(form)
|
2130
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
2131
|
+
req.body = URI.encode_www_form(data)
|
2132
|
+
else
|
2133
|
+
req.body = data
|
2134
|
+
end
|
2135
|
+
end
|
2136
|
+
|
2137
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
2138
|
+
|
2139
|
+
res = ::StackOne::Operations::AtsUpdateJobResponse.new(
|
2140
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
2141
|
+
)
|
2142
|
+
if r.status == 200
|
2143
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2144
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
2145
|
+
res.create_result = out
|
2146
|
+
end
|
2147
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
2148
|
+
end
|
2149
|
+
res
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
|
2055
2153
|
sig { params(unified_upload_request_dto: ::StackOne::Shared::UnifiedUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUploadApplicationDocumentResponse) }
|
2056
2154
|
def upload_application_document(unified_upload_request_dto, id, x_account_id)
|
2057
2155
|
# upload_application_document - Upload Application Document
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsCreateJobRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :ats_create_job_request_dto, ::StackOne::Shared::AtsCreateJobRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(ats_create_job_request_dto: ::StackOne::Shared::AtsCreateJobRequestDto, x_account_id: ::String).void }
|
21
|
+
def initialize(ats_create_job_request_dto: nil, x_account_id: nil)
|
22
|
+
@ats_create_job_request_dto = ats_create_job_request_dto
|
23
|
+
@x_account_id = x_account_id
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsCreateJobResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The job was successfully created.
|
21
|
+
field :create_result, T.nilable(::StackOne::Shared::CreateResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@create_result = create_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsUpdateJobRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :ats_update_job_request_dto, ::StackOne::Shared::AtsUpdateJobRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The account identifier
|
19
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(ats_update_job_request_dto: ::StackOne::Shared::AtsUpdateJobRequestDto, id: ::String, x_account_id: ::String).void }
|
23
|
+
def initialize(ats_update_job_request_dto: nil, id: nil, x_account_id: nil)
|
24
|
+
@ats_update_job_request_dto = ats_update_job_request_dto
|
25
|
+
@id = id
|
26
|
+
@x_account_id = x_account_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsUpdateJobResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The job was successfully updated.
|
21
|
+
field :create_result, T.nilable(::StackOne::Shared::CreateResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@create_result = create_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -29,18 +29,14 @@ module StackOne
|
|
29
29
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
30
|
# Indicates that the raw request result is returned
|
31
31
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
-
# Provider's unique identifier of the user
|
33
|
-
field :remote_user_id, T.nilable(::String), { 'query_param': { 'field_name': 'remote_user_id', 'style': 'form', 'explode': true } }
|
34
32
|
# Use a string with a date to only select results updated after that given date
|
35
33
|
#
|
36
34
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
37
35
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
38
|
-
# The user ID associated with this completion
|
39
|
-
field :user_id, T.nilable(::String), { 'query_param': { 'field_name': 'user_id', 'style': 'form', 'explode': true } }
|
40
36
|
|
41
37
|
|
42
|
-
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListCompletionsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean),
|
43
|
-
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListCompletionsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
44
40
|
@x_account_id = x_account_id
|
45
41
|
@fields_ = fields_
|
46
42
|
@filter = filter
|
@@ -49,9 +45,7 @@ module StackOne
|
|
49
45
|
@page_size = page_size
|
50
46
|
@proxy = proxy
|
51
47
|
@raw = raw
|
52
|
-
@remote_user_id = remote_user_id
|
53
48
|
@updated_after = updated_after
|
54
|
-
@user_id = user_id
|
55
49
|
end
|
56
50
|
end
|
57
51
|
end
|
@@ -31,18 +31,14 @@ module StackOne
|
|
31
31
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
34
|
-
# Provider's unique identifier of the user
|
35
|
-
field :remote_user_id, T.nilable(::String), { 'query_param': { 'field_name': 'remote_user_id', 'style': 'form', 'explode': true } }
|
36
34
|
# Use a string with a date to only select results updated after that given date
|
37
35
|
#
|
38
36
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
39
37
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
40
|
-
# The user ID associated with this completion
|
41
|
-
field :user_id, T.nilable(::String), { 'query_param': { 'field_name': 'user_id', 'style': 'form', 'explode': true } }
|
42
38
|
|
43
39
|
|
44
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListUserCompletionsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean),
|
45
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
40
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListUserCompletionsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
41
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
46
42
|
@id = id
|
47
43
|
@x_account_id = x_account_id
|
48
44
|
@fields_ = fields_
|
@@ -52,9 +48,7 @@ module StackOne
|
|
52
48
|
@page_size = page_size
|
53
49
|
@proxy = proxy
|
54
50
|
@raw = raw
|
55
|
-
@remote_user_id = remote_user_id
|
56
51
|
@updated_after = updated_after
|
57
|
-
@user_id = user_id
|
58
52
|
end
|
59
53
|
end
|
60
54
|
end
|
@@ -20,6 +20,8 @@ module StackOne
|
|
20
20
|
# The number of results per page
|
21
21
|
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
22
22
|
# The provider of the results to fetch
|
23
|
+
#
|
24
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
23
25
|
field :provider, T.nilable(::String), { 'query_param': { 'field_name': 'provider', 'style': 'form', 'explode': true } }
|
24
26
|
# The providers list of the results to fetch
|
25
27
|
field :providers, T.nilable(T::Array[::String]), { 'query_param': { 'field_name': 'providers', 'style': 'form', 'explode': true } }
|
@@ -27,6 +27,8 @@ module StackOne
|
|
27
27
|
autoload :AtsCreateCandidateResponse, 'stack_one/models/operations/ats_create_candidate_response.rb'
|
28
28
|
autoload :AtsCreateCandidateNoteRequest, 'stack_one/models/operations/ats_create_candidate_note_request.rb'
|
29
29
|
autoload :AtsCreateCandidateNoteResponse, 'stack_one/models/operations/ats_create_candidate_note_response.rb'
|
30
|
+
autoload :AtsCreateJobRequest, 'stack_one/models/operations/ats_create_job_request.rb'
|
31
|
+
autoload :AtsCreateJobResponse, 'stack_one/models/operations/ats_create_job_response.rb'
|
30
32
|
autoload :AtsCreateOfferRequest, 'stack_one/models/operations/ats_create_offer_request.rb'
|
31
33
|
autoload :AtsCreateOfferResponse, 'stack_one/models/operations/ats_create_offer_response.rb'
|
32
34
|
autoload :AtsDownloadApplicationDocumentRequest, 'stack_one/models/operations/ats_download_application_document_request.rb'
|
@@ -151,6 +153,8 @@ module StackOne
|
|
151
153
|
autoload :AtsUpdateApplicationResponse, 'stack_one/models/operations/ats_update_application_response.rb'
|
152
154
|
autoload :AtsUpdateCandidateRequest, 'stack_one/models/operations/ats_update_candidate_request.rb'
|
153
155
|
autoload :AtsUpdateCandidateResponse, 'stack_one/models/operations/ats_update_candidate_response.rb'
|
156
|
+
autoload :AtsUpdateJobRequest, 'stack_one/models/operations/ats_update_job_request.rb'
|
157
|
+
autoload :AtsUpdateJobResponse, 'stack_one/models/operations/ats_update_job_response.rb'
|
154
158
|
autoload :AtsUploadApplicationDocumentRequest, 'stack_one/models/operations/ats_upload_application_document_request.rb'
|
155
159
|
autoload :AtsUploadApplicationDocumentResponse, 'stack_one/models/operations/ats_upload_application_document_response.rb'
|
156
160
|
autoload :CrmCreateContactRequest, 'stack_one/models/operations/crm_create_contact_request.rb'
|
@@ -24,12 +24,12 @@ module StackOne
|
|
24
24
|
# Value to pass through to the provider
|
25
25
|
field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
|
26
26
|
# Questionnaires associated with the application
|
27
|
-
field :questionnaires, T.nilable(T::Array[::StackOne::Shared::
|
27
|
+
field :questionnaires, T.nilable(T::Array[::StackOne::Shared::CreateQuestionnaire]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('questionnaires') } }
|
28
28
|
|
29
29
|
field :source, T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoSource), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source') } }
|
30
30
|
|
31
31
|
|
32
|
-
sig { params(application_status: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoApplicationStatus), candidate: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoCandidate), candidate_id: T.nilable(::String), job_id: T.nilable(::String), location_id: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), questionnaires: T.nilable(T::Array[::StackOne::Shared::
|
32
|
+
sig { params(application_status: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoApplicationStatus), candidate: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoCandidate), candidate_id: T.nilable(::String), job_id: T.nilable(::String), location_id: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), questionnaires: T.nilable(T::Array[::StackOne::Shared::CreateQuestionnaire]), source: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoSource)).void }
|
33
33
|
def initialize(application_status: nil, candidate: nil, candidate_id: nil, job_id: nil, location_id: nil, passthrough: nil, questionnaires: nil, source: nil)
|
34
34
|
@application_status = application_status
|
35
35
|
@candidate = candidate
|
@@ -15,15 +15,12 @@ module StackOne
|
|
15
15
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
16
|
# The source of the application
|
17
17
|
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
18
|
-
# Provider's unique identifier
|
19
|
-
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(id: T.nilable(::String), name: T.nilable(::String)
|
23
|
-
def initialize(id: nil, name: nil
|
20
|
+
sig { params(id: T.nilable(::String), name: T.nilable(::String)).void }
|
21
|
+
def initialize(id: nil, name: nil)
|
24
22
|
@id = id
|
25
23
|
@name = name
|
26
|
-
@remote_id = remote_id
|
27
24
|
end
|
28
25
|
end
|
29
26
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class AtsCreateJobRequestDto < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Code of the job
|
15
|
+
field :code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('code') } }
|
16
|
+
# Confidential status of the job
|
17
|
+
field :confidential, T.nilable(::StackOne::Shared::Confidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential'), 'decoder': Utils.enum_from_string(::StackOne::Shared::Confidential, true) } }
|
18
|
+
# The job custom fields
|
19
|
+
field :custom_fields, T.nilable(T::Array[::StackOne::Shared::JobCustomFields]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_fields') } }
|
20
|
+
# Department ids of the job
|
21
|
+
field :department_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department_ids') } }
|
22
|
+
# Hiring team for the job.
|
23
|
+
field :hiring_team, T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hiring_team') } }
|
24
|
+
# Interview stages for the job.
|
25
|
+
field :interview_stages, T.nilable(T::Array[::StackOne::Shared::InterviewStage]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stages') } }
|
26
|
+
# Status of the job
|
27
|
+
field :job_status, T.nilable(::StackOne::Shared::JobStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_status') } }
|
28
|
+
# Location ids of the job
|
29
|
+
field :location_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_ids') } }
|
30
|
+
# Value to pass through to the provider
|
31
|
+
field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
|
32
|
+
# Status of the job
|
33
|
+
#
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
+
field :status, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
36
|
+
# Title of the job
|
37
|
+
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
|
38
|
+
# Custom Unified Fields configured in your StackOne project
|
39
|
+
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(code: T.nilable(::String), confidential: T.nilable(::StackOne::Shared::Confidential), custom_fields: T.nilable(T::Array[::StackOne::Shared::JobCustomFields]), department_ids: T.nilable(T::Array[::String]), hiring_team: T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), interview_stages: T.nilable(T::Array[::StackOne::Shared::InterviewStage]), job_status: T.nilable(::StackOne::Shared::JobStatus), location_ids: T.nilable(T::Array[::String]), passthrough: T.nilable(T::Hash[Symbol, ::Object]), status: T.nilable(::String), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
43
|
+
def initialize(code: nil, confidential: nil, custom_fields: nil, department_ids: nil, hiring_team: nil, interview_stages: nil, job_status: nil, location_ids: nil, passthrough: nil, status: nil, title: nil, unified_custom_fields: nil)
|
44
|
+
@code = code
|
45
|
+
@confidential = confidential
|
46
|
+
@custom_fields = custom_fields
|
47
|
+
@department_ids = department_ids
|
48
|
+
@hiring_team = hiring_team
|
49
|
+
@interview_stages = interview_stages
|
50
|
+
@job_status = job_status
|
51
|
+
@location_ids = location_ids
|
52
|
+
@passthrough = passthrough
|
53
|
+
@status = status
|
54
|
+
@title = title
|
55
|
+
@unified_custom_fields = unified_custom_fields
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# AtsCreateJobRequestDtoValue - The status of the job.
|
11
|
+
class AtsCreateJobRequestDtoValue < T::Enum
|
12
|
+
enums do
|
13
|
+
PUBLISHED = new('published')
|
14
|
+
DRAFT = new('draft')
|
15
|
+
PENDING = new('pending')
|
16
|
+
INTERNAL = new('internal')
|
17
|
+
ARCHIVED = new('archived')
|
18
|
+
CLOSED = new('closed')
|
19
|
+
OPEN = new('open')
|
20
|
+
DELETED = new('deleted')
|
21
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -15,15 +15,12 @@ module StackOne
|
|
15
15
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
16
|
# The source of the application
|
17
17
|
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
18
|
-
# Provider's unique identifier
|
19
|
-
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(id: T.nilable(::String), name: T.nilable(::String)
|
23
|
-
def initialize(id: nil, name: nil
|
20
|
+
sig { params(id: T.nilable(::String), name: T.nilable(::String)).void }
|
21
|
+
def initialize(id: nil, name: nil)
|
24
22
|
@id = id
|
25
23
|
@name = name
|
26
|
-
@remote_id = remote_id
|
27
24
|
end
|
28
25
|
end
|
29
26
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class AtsUpdateJobRequestDto < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Code of the job
|
15
|
+
field :code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('code') } }
|
16
|
+
# Confidential status of the job
|
17
|
+
field :confidential, T.nilable(::StackOne::Shared::AtsUpdateJobRequestDtoConfidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential'), 'decoder': Utils.enum_from_string(::StackOne::Shared::AtsUpdateJobRequestDtoConfidential, true) } }
|
18
|
+
# The job custom fields
|
19
|
+
field :custom_fields, T.nilable(T::Array[::StackOne::Shared::JobCustomFields]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_fields') } }
|
20
|
+
# Department ids of the job
|
21
|
+
field :department_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department_ids') } }
|
22
|
+
# Hiring team for the job.
|
23
|
+
field :hiring_team, T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hiring_team') } }
|
24
|
+
# Interview stages for the job.
|
25
|
+
field :interview_stages, T.nilable(T::Array[::StackOne::Shared::InterviewStage]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stages') } }
|
26
|
+
# Status of the job
|
27
|
+
field :job_status, T.nilable(::StackOne::Shared::AtsUpdateJobRequestDtoJobStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_status') } }
|
28
|
+
# Location ids of the job
|
29
|
+
field :location_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_ids') } }
|
30
|
+
# Value to pass through to the provider
|
31
|
+
field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
|
32
|
+
# Status of the job
|
33
|
+
#
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
+
field :status, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
36
|
+
# Title of the job
|
37
|
+
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
|
38
|
+
# Custom Unified Fields configured in your StackOne project
|
39
|
+
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(code: T.nilable(::String), confidential: T.nilable(::StackOne::Shared::AtsUpdateJobRequestDtoConfidential), custom_fields: T.nilable(T::Array[::StackOne::Shared::JobCustomFields]), department_ids: T.nilable(T::Array[::String]), hiring_team: T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), interview_stages: T.nilable(T::Array[::StackOne::Shared::InterviewStage]), job_status: T.nilable(::StackOne::Shared::AtsUpdateJobRequestDtoJobStatus), location_ids: T.nilable(T::Array[::String]), passthrough: T.nilable(T::Hash[Symbol, ::Object]), status: T.nilable(::String), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
43
|
+
def initialize(code: nil, confidential: nil, custom_fields: nil, department_ids: nil, hiring_team: nil, interview_stages: nil, job_status: nil, location_ids: nil, passthrough: nil, status: nil, title: nil, unified_custom_fields: nil)
|
44
|
+
@code = code
|
45
|
+
@confidential = confidential
|
46
|
+
@custom_fields = custom_fields
|
47
|
+
@department_ids = department_ids
|
48
|
+
@hiring_team = hiring_team
|
49
|
+
@interview_stages = interview_stages
|
50
|
+
@job_status = job_status
|
51
|
+
@location_ids = location_ids
|
52
|
+
@passthrough = passthrough
|
53
|
+
@status = status
|
54
|
+
@title = title
|
55
|
+
@unified_custom_fields = unified_custom_fields
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# AtsUpdateJobRequestDtoConfidential - Confidential status of the job
|
11
|
+
class AtsUpdateJobRequestDtoConfidential < T::Enum
|
12
|
+
enums do
|
13
|
+
TRUE = new('true')
|
14
|
+
FALSE = new('false')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# Status of the job
|
11
|
+
class AtsUpdateJobRequestDtoJobStatus < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The source value of the job status.
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# The status of the job.
|
17
|
+
field :value, T.nilable(::StackOne::Shared::AtsUpdateJobRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::AtsUpdateJobRequestDtoValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::AtsUpdateJobRequestDtoValue)).void }
|
21
|
+
def initialize(source_value: nil, value: nil)
|
22
|
+
@source_value = source_value
|
23
|
+
@value = value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# AtsUpdateJobRequestDtoValue - The status of the job.
|
11
|
+
class AtsUpdateJobRequestDtoValue < T::Enum
|
12
|
+
enums do
|
13
|
+
PUBLISHED = new('published')
|
14
|
+
DRAFT = new('draft')
|
15
|
+
PENDING = new('pending')
|
16
|
+
INTERNAL = new('internal')
|
17
|
+
ARCHIVED = new('archived')
|
18
|
+
CLOSED = new('closed')
|
19
|
+
OPEN = new('open')
|
20
|
+
DELETED = new('deleted')
|
21
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -14,10 +14,10 @@ module StackOne
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
# The type of the benefit
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
17
|
+
field :value, T.nilable(::StackOne::Shared::CreateHRISBenefitValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CreateHRISBenefitValue, true) } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CreateHRISBenefitValue)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|