stackone_client 0.2.29 → 0.2.31
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 +71 -0
- data/lib/stack_one/hris.rb +71 -0
- data/lib/stack_one/models/operations/ats_get_assessments_package_request.rb +36 -0
- data/lib/stack_one/models/operations/ats_get_assessments_package_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_assessments_packages_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/ats_list_assessments_packages_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_assessments_packages_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_job_request.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_job_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_jobs_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_jobs_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_jobs_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +10 -0
- data/lib/stack_one/models/shared/assessmentspackages.rb +36 -0
- data/lib/stack_one/models/shared/assessmentspackages_type.rb +27 -0
- data/lib/stack_one/models/shared/assessmentspackages_value.rb +22 -0
- data/lib/stack_one/models/shared/assessmentspackagespaginated.rb +33 -0
- data/lib/stack_one/models/shared/assessmentspackagesresult.rb +27 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +1 -3
- data/lib/stack_one/models/shared/campaign.rb +3 -3
- data/lib/stack_one/models/shared/employee.rb +5 -2
- data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +1 -0
- data/lib/stack_one/models/shared/employee_schemas_groups_value.rb +1 -0
- data/lib/stack_one/models/shared/employee_schemas_national_identity_number_value.rb +22 -0
- data/lib/stack_one/models/shared/employee_schemas_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +1 -0
- data/lib/stack_one/models/shared/employment_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/field.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +1 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +3 -3
- data/lib/stack_one/models/shared/hrisgroup_value.rb +1 -0
- data/lib/stack_one/models/shared/jobposting_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_value.rb +1 -0
- data/lib/stack_one/models/shared/jobpostingquestionnaire.rb +2 -2
- data/lib/stack_one/models/shared/national_identity_number.rb +27 -0
- data/lib/stack_one/models/shared/question.rb +2 -2
- data/lib/stack_one/models/shared/reference.rb +5 -2
- data/lib/stack_one/models/shared/timeoff.rb +3 -3
- data/lib/stack_one/models/shared.rb +8 -0
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +20 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f6e65d2f035a2cd08998a5d0a0567d5c932d03a75d0fae0a681bc79578ef3c5
|
4
|
+
data.tar.gz: d121ab32a8f3fd4de564b4c2e5018ccd009799b730d58a0eb1eeebba4cc7aa39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79bafe1a3c7422d5fbc45aca206476906193e7e6287028ca1d652cd43716a39b8e1e5ec76f1544325fc8e1d79a6b52201906acae291c43a60e61a83481735089
|
7
|
+
data.tar.gz: f1b69bf6136321f021e88b9619f56a174f7b89dbc341965dd35c42b4ecb70786219582ca7af683ce1e21ecdc6e960a87fd1719fa4f78fa858a91ebfd6d8d8c0e
|
data/lib/stack_one/ats.rb
CHANGED
@@ -404,6 +404,44 @@ module StackOne
|
|
404
404
|
end
|
405
405
|
|
406
406
|
|
407
|
+
sig { params(request: T.nilable(::StackOne::Operations::AtsGetAssessmentsPackageRequest)).returns(::StackOne::Operations::AtsGetAssessmentsPackageResponse) }
|
408
|
+
def get_assessments_package(request)
|
409
|
+
# get_assessments_package - Get Assessments Package
|
410
|
+
url, params = @sdk_configuration.get_server_details
|
411
|
+
base_url = Utils.template_url(url, params)
|
412
|
+
url = Utils.generate_url(
|
413
|
+
::StackOne::Operations::AtsGetAssessmentsPackageRequest,
|
414
|
+
base_url,
|
415
|
+
'/unified/ats/assessments/packages/{id}',
|
416
|
+
request
|
417
|
+
)
|
418
|
+
headers = Utils.get_headers(request)
|
419
|
+
query_params = Utils.get_query_params(::StackOne::Operations::AtsGetAssessmentsPackageRequest, request)
|
420
|
+
headers['Accept'] = 'application/json'
|
421
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
422
|
+
|
423
|
+
r = @sdk_configuration.client.get(url) do |req|
|
424
|
+
req.headers = headers
|
425
|
+
req.params = query_params
|
426
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
427
|
+
end
|
428
|
+
|
429
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
430
|
+
|
431
|
+
res = ::StackOne::Operations::AtsGetAssessmentsPackageResponse.new(
|
432
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
433
|
+
)
|
434
|
+
if r.status == 200
|
435
|
+
if Utils.match_content_type(content_type, 'application/json')
|
436
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssessmentsPackagesResult)
|
437
|
+
res.assessments_packages_result = out
|
438
|
+
end
|
439
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
440
|
+
end
|
441
|
+
res
|
442
|
+
end
|
443
|
+
|
444
|
+
|
407
445
|
sig { params(request: T.nilable(::StackOne::Operations::AtsGetCandidateRequest)).returns(::StackOne::Operations::AtsGetCandidateResponse) }
|
408
446
|
def get_candidate(request)
|
409
447
|
# get_candidate - Get Candidate
|
@@ -1007,6 +1045,39 @@ module StackOne
|
|
1007
1045
|
end
|
1008
1046
|
|
1009
1047
|
|
1048
|
+
sig { params(request: T.nilable(::StackOne::Operations::AtsListAssessmentsPackagesRequest)).returns(::StackOne::Operations::AtsListAssessmentsPackagesResponse) }
|
1049
|
+
def list_assessments_packages(request)
|
1050
|
+
# list_assessments_packages - List Assessments Packages
|
1051
|
+
url, params = @sdk_configuration.get_server_details
|
1052
|
+
base_url = Utils.template_url(url, params)
|
1053
|
+
url = "#{base_url}/unified/ats/assessments/packages"
|
1054
|
+
headers = Utils.get_headers(request)
|
1055
|
+
query_params = Utils.get_query_params(::StackOne::Operations::AtsListAssessmentsPackagesRequest, request)
|
1056
|
+
headers['Accept'] = 'application/json'
|
1057
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1058
|
+
|
1059
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1060
|
+
req.headers = headers
|
1061
|
+
req.params = query_params
|
1062
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1066
|
+
|
1067
|
+
res = ::StackOne::Operations::AtsListAssessmentsPackagesResponse.new(
|
1068
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1069
|
+
)
|
1070
|
+
if r.status == 200
|
1071
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1072
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssessmentsPackagesPaginated)
|
1073
|
+
res.assessments_packages_paginated = out
|
1074
|
+
end
|
1075
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1076
|
+
end
|
1077
|
+
res
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
|
1010
1081
|
sig { params(request: T.nilable(::StackOne::Operations::AtsListCandidateNotesRequest)).returns(::StackOne::Operations::AtsListCandidateNotesResponse) }
|
1011
1082
|
def list_candidate_notes(request)
|
1012
1083
|
# list_candidate_notes - List Candidate Notes
|
data/lib/stack_one/hris.rb
CHANGED
@@ -600,6 +600,44 @@ module StackOne
|
|
600
600
|
end
|
601
601
|
|
602
602
|
|
603
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetJobRequest)).returns(::StackOne::Operations::HrisGetJobResponse) }
|
604
|
+
def get_job(request)
|
605
|
+
# get_job - Get Job
|
606
|
+
url, params = @sdk_configuration.get_server_details
|
607
|
+
base_url = Utils.template_url(url, params)
|
608
|
+
url = Utils.generate_url(
|
609
|
+
::StackOne::Operations::HrisGetJobRequest,
|
610
|
+
base_url,
|
611
|
+
'/unified/hris/jobs/{id}',
|
612
|
+
request
|
613
|
+
)
|
614
|
+
headers = Utils.get_headers(request)
|
615
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetJobRequest, request)
|
616
|
+
headers['Accept'] = 'application/json'
|
617
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
618
|
+
|
619
|
+
r = @sdk_configuration.client.get(url) do |req|
|
620
|
+
req.headers = headers
|
621
|
+
req.params = query_params
|
622
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
623
|
+
end
|
624
|
+
|
625
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
626
|
+
|
627
|
+
res = ::StackOne::Operations::HrisGetJobResponse.new(
|
628
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
629
|
+
)
|
630
|
+
if r.status == 200
|
631
|
+
if Utils.match_content_type(content_type, 'application/json')
|
632
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobResult)
|
633
|
+
res.job_result = out
|
634
|
+
end
|
635
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
636
|
+
end
|
637
|
+
res
|
638
|
+
end
|
639
|
+
|
640
|
+
|
603
641
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(::StackOne::Operations::HrisGetLocationResponse) }
|
604
642
|
def get_location(request)
|
605
643
|
# get_location - Get Location
|
@@ -988,6 +1026,39 @@ module StackOne
|
|
988
1026
|
end
|
989
1027
|
|
990
1028
|
|
1029
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListJobsRequest)).returns(::StackOne::Operations::HrisListJobsResponse) }
|
1030
|
+
def list_jobs(request)
|
1031
|
+
# list_jobs - List Jobs
|
1032
|
+
url, params = @sdk_configuration.get_server_details
|
1033
|
+
base_url = Utils.template_url(url, params)
|
1034
|
+
url = "#{base_url}/unified/hris/jobs"
|
1035
|
+
headers = Utils.get_headers(request)
|
1036
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListJobsRequest, request)
|
1037
|
+
headers['Accept'] = 'application/json'
|
1038
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1039
|
+
|
1040
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1041
|
+
req.headers = headers
|
1042
|
+
req.params = query_params
|
1043
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1047
|
+
|
1048
|
+
res = ::StackOne::Operations::HrisListJobsResponse.new(
|
1049
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1050
|
+
)
|
1051
|
+
if r.status == 200
|
1052
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1053
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobsPaginated)
|
1054
|
+
res.jobs_paginated = out
|
1055
|
+
end
|
1056
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1057
|
+
end
|
1058
|
+
res
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
|
991
1062
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(::StackOne::Operations::HrisListLocationsResponse) }
|
992
1063
|
def list_locations(request)
|
993
1064
|
# list_locations - List locations
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsGetAssessmentsPackageRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
19
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
22
|
+
# Indicates that the raw request result is returned
|
23
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
28
|
+
@id = id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
@fields_ = fields_
|
31
|
+
@proxy = proxy
|
32
|
+
@raw = raw
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsGetAssessmentsPackageResponse < ::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 assessments package with the given identifier was retrieved.
|
21
|
+
field :assessments_packages_result, T.nilable(::StackOne::Shared::AssessmentsPackagesResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, assessments_packages_result: T.nilable(::StackOne::Shared::AssessmentsPackagesResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, assessments_packages_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@assessments_packages_result = assessments_packages_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class AtsListAssessmentsPackagesQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Use a string with a date to only select results updated after that given date
|
15
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
+
def initialize(updated_after: nil)
|
20
|
+
@updated_after = updated_after
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsListAssessmentsPackagesRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The account identifier
|
15
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
17
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
|
+
# Filter parameters that allow greater customisation of the list response
|
19
|
+
field :filter, T.nilable(::StackOne::Operations::AtsListAssessmentsPackagesQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
20
|
+
# The unified cursor
|
21
|
+
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
22
|
+
# The page number 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.
|
25
|
+
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
26
|
+
# The number of results per page
|
27
|
+
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
28
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
29
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
|
+
# Indicates that the raw request result is returned
|
31
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
+
# Use a string with a date to only select results updated after that given date
|
33
|
+
#
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
36
|
+
|
37
|
+
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListAssessmentsPackagesQueryParamFilter), 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)
|
40
|
+
@x_account_id = x_account_id
|
41
|
+
@fields_ = fields_
|
42
|
+
@filter = filter
|
43
|
+
@next_ = next_
|
44
|
+
@page = page
|
45
|
+
@page_size = page_size
|
46
|
+
@proxy = proxy
|
47
|
+
@raw = raw
|
48
|
+
@updated_after = updated_after
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsListAssessmentsPackagesResponse < ::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 list of assessments packages was retrieved.
|
21
|
+
field :assessments_packages_paginated, T.nilable(::StackOne::Shared::AssessmentsPackagesPaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, assessments_packages_paginated: T.nilable(::StackOne::Shared::AssessmentsPackagesPaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, assessments_packages_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@assessments_packages_paginated = assessments_packages_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -7,16 +7,19 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
#
|
10
|
+
# ATS Candidate Filter
|
11
11
|
class AtsListCandidatesQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# Filter to select candidates by email
|
15
|
+
field :email, T.nilable(::String), { 'query_param': { 'field_name': 'email' } }
|
14
16
|
# Use a string with a date to only select results updated after that given date
|
15
17
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
18
|
|
17
19
|
|
18
|
-
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
-
def initialize(updated_after: nil)
|
20
|
+
sig { params(email: T.nilable(::String), updated_after: T.nilable(::String)).void }
|
21
|
+
def initialize(email: nil, updated_after: nil)
|
22
|
+
@email = email
|
20
23
|
@updated_after = updated_after
|
21
24
|
end
|
22
25
|
end
|
@@ -15,7 +15,7 @@ module StackOne
|
|
15
15
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
16
16
|
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
17
17
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
|
-
#
|
18
|
+
# ATS Candidate Filter
|
19
19
|
field :filter, T.nilable(::StackOne::Operations::AtsListCandidatesQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
20
20
|
# The unified cursor
|
21
21
|
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetJobRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
22
|
+
# Indicates that the raw request result is returned
|
23
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
28
|
+
@id = id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
@fields_ = fields_
|
31
|
+
@proxy = proxy
|
32
|
+
@raw = raw
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetJobResponse < ::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 with the given identifier was retrieved.
|
21
|
+
field :job_result, T.nilable(::StackOne::Shared::JobResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, job_result: T.nilable(::StackOne::Shared::JobResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, job_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@job_result = job_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class HrisListJobsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Use a string with a date to only select results updated after that given date
|
15
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
+
def initialize(updated_after: nil)
|
20
|
+
@updated_after = updated_after
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListJobsRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The account identifier
|
15
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
17
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
|
+
# Filter parameters that allow greater customisation of the list response
|
19
|
+
field :filter, T.nilable(::StackOne::Operations::HrisListJobsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
20
|
+
# The unified cursor
|
21
|
+
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
22
|
+
# The page number 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.
|
25
|
+
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
26
|
+
# The number of results per page
|
27
|
+
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
28
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
29
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
|
+
# Indicates that the raw request result is returned
|
31
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
+
# Use a string with a date to only select results updated after that given date
|
33
|
+
#
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
36
|
+
|
37
|
+
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::HrisListJobsQueryParamFilter), 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)
|
40
|
+
@x_account_id = x_account_id
|
41
|
+
@fields_ = fields_
|
42
|
+
@filter = filter
|
43
|
+
@next_ = next_
|
44
|
+
@page = page
|
45
|
+
@page_size = page_size
|
46
|
+
@proxy = proxy
|
47
|
+
@raw = raw
|
48
|
+
@updated_after = updated_after
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListJobsResponse < ::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 list of jobs was retrieved.
|
21
|
+
field :jobs_paginated, T.nilable(::StackOne::Shared::JobsPaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, jobs_paginated: T.nilable(::StackOne::Shared::JobsPaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, jobs_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@jobs_paginated = jobs_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -39,6 +39,8 @@ module StackOne
|
|
39
39
|
autoload :AtsGetApplicationOfferResponse, 'stack_one/models/operations/ats_get_application_offer_response.rb'
|
40
40
|
autoload :AtsGetApplicationScorecardRequest, 'stack_one/models/operations/ats_get_application_scorecard_request.rb'
|
41
41
|
autoload :AtsGetApplicationScorecardResponse, 'stack_one/models/operations/ats_get_application_scorecard_response.rb'
|
42
|
+
autoload :AtsGetAssessmentsPackageRequest, 'stack_one/models/operations/ats_get_assessments_package_request.rb'
|
43
|
+
autoload :AtsGetAssessmentsPackageResponse, 'stack_one/models/operations/ats_get_assessments_package_response.rb'
|
42
44
|
autoload :AtsGetCandidateRequest, 'stack_one/models/operations/ats_get_candidate_request.rb'
|
43
45
|
autoload :AtsGetCandidateResponse, 'stack_one/models/operations/ats_get_candidate_response.rb'
|
44
46
|
autoload :AtsGetCandidateNoteRequest, 'stack_one/models/operations/ats_get_candidate_note_request.rb'
|
@@ -75,6 +77,9 @@ module StackOne
|
|
75
77
|
autoload :AtsListApplicationsOffersQueryParamFilter, 'stack_one/models/operations/ats_list_applications_offers_queryparam_filter.rb'
|
76
78
|
autoload :AtsListApplicationsOffersRequest, 'stack_one/models/operations/ats_list_applications_offers_request.rb'
|
77
79
|
autoload :AtsListApplicationsOffersResponse, 'stack_one/models/operations/ats_list_applications_offers_response.rb'
|
80
|
+
autoload :AtsListAssessmentsPackagesQueryParamFilter, 'stack_one/models/operations/ats_list_assessments_packages_queryparam_filter.rb'
|
81
|
+
autoload :AtsListAssessmentsPackagesRequest, 'stack_one/models/operations/ats_list_assessments_packages_request.rb'
|
82
|
+
autoload :AtsListAssessmentsPackagesResponse, 'stack_one/models/operations/ats_list_assessments_packages_response.rb'
|
78
83
|
autoload :AtsListCandidateNotesQueryParamFilter, 'stack_one/models/operations/ats_list_candidate_notes_queryparam_filter.rb'
|
79
84
|
autoload :AtsListCandidateNotesRequest, 'stack_one/models/operations/ats_list_candidate_notes_request.rb'
|
80
85
|
autoload :AtsListCandidateNotesResponse, 'stack_one/models/operations/ats_list_candidate_notes_response.rb'
|
@@ -164,6 +169,8 @@ module StackOne
|
|
164
169
|
autoload :HrisGetEmploymentResponse, 'stack_one/models/operations/hris_get_employment_response.rb'
|
165
170
|
autoload :HrisGetGroupRequest, 'stack_one/models/operations/hris_get_group_request.rb'
|
166
171
|
autoload :HrisGetGroupResponse, 'stack_one/models/operations/hris_get_group_response.rb'
|
172
|
+
autoload :HrisGetJobRequest, 'stack_one/models/operations/hris_get_job_request.rb'
|
173
|
+
autoload :HrisGetJobResponse, 'stack_one/models/operations/hris_get_job_response.rb'
|
167
174
|
autoload :HrisGetLocationRequest, 'stack_one/models/operations/hris_get_location_request.rb'
|
168
175
|
autoload :HrisGetLocationResponse, 'stack_one/models/operations/hris_get_location_response.rb'
|
169
176
|
autoload :HrisGetTimeOffRequestRequest, 'stack_one/models/operations/hris_get_time_off_request_request.rb'
|
@@ -195,6 +202,9 @@ module StackOne
|
|
195
202
|
autoload :HrisListGroupsQueryParamFilter, 'stack_one/models/operations/hris_list_groups_queryparam_filter.rb'
|
196
203
|
autoload :HrisListGroupsRequest, 'stack_one/models/operations/hris_list_groups_request.rb'
|
197
204
|
autoload :HrisListGroupsResponse, 'stack_one/models/operations/hris_list_groups_response.rb'
|
205
|
+
autoload :HrisListJobsQueryParamFilter, 'stack_one/models/operations/hris_list_jobs_queryparam_filter.rb'
|
206
|
+
autoload :HrisListJobsRequest, 'stack_one/models/operations/hris_list_jobs_request.rb'
|
207
|
+
autoload :HrisListJobsResponse, 'stack_one/models/operations/hris_list_jobs_response.rb'
|
198
208
|
autoload :HrisListLocationsQueryParamFilter, 'stack_one/models/operations/hris_list_locations_queryparam_filter.rb'
|
199
209
|
autoload :HrisListLocationsRequest, 'stack_one/models/operations/hris_list_locations_request.rb'
|
200
210
|
autoload :HrisListLocationsResponse, 'stack_one/models/operations/hris_list_locations_response.rb'
|