stackone_client 0.2.29 → 0.2.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_one/ats.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.rb +5 -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_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/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 +15 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d3720277cedbdb4ec7cd4b613b76963d49d1a8b9be33fdcde8732ada5f7cec4
|
4
|
+
data.tar.gz: 77ddd4bfe9c9ed0876c0a0759f6c384fbfc0400cd55e86536734205749b259a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b34aea123e43760a03a40e58cf8a5dba38c1131453bdef30d7e1b284766b52bb90c191ca841487a8c4f21c0c2816077a806bc20761e4a1f9953178f44318821c
|
7
|
+
data.tar.gz: bad5d42b2dc39594c80a5665d212bcbb4a0e6d190ec9894da3abaa2f599c14535763a1eb66b5302911cc4871fe957b5ac96b5d70e45a6246285d04692034ffed
|
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
|
@@ -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 } }
|
@@ -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'
|
@@ -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 Shared
|
9
|
+
|
10
|
+
|
11
|
+
class AssessmentsPackages < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Assessment description
|
15
|
+
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
16
|
+
# Unique identifier
|
17
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
18
|
+
# Assessment name
|
19
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
20
|
+
# Provider's unique identifier
|
21
|
+
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
22
|
+
|
23
|
+
field :type, T.nilable(::StackOne::Shared::AssessmentsPackagesType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(description: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::AssessmentsPackagesType)).void }
|
27
|
+
def initialize(description: nil, id: nil, name: nil, remote_id: nil, type: nil)
|
28
|
+
@description = description
|
29
|
+
@id = id
|
30
|
+
@name = name
|
31
|
+
@remote_id = remote_id
|
32
|
+
@type = type
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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 Shared
|
9
|
+
|
10
|
+
|
11
|
+
class AssessmentsPackagesType < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The source value of the assessment type.
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# The type of the assessment.
|
17
|
+
field :value, T.nilable(::StackOne::Shared::AssessmentsPackagesValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::AssessmentsPackagesValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::AssessmentsPackagesValue)).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,22 @@
|
|
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 Shared
|
9
|
+
|
10
|
+
# AssessmentsPackagesValue - The type of the assessment.
|
11
|
+
class AssessmentsPackagesValue < T::Enum
|
12
|
+
enums do
|
13
|
+
VIDEO_INTERVIEW = new('video_interview')
|
14
|
+
BEHAVIORAL_ASSESSMENT = new('behavioral_assessment')
|
15
|
+
BACKGROUND_CHECK = new('background_check')
|
16
|
+
REFERENCE_CHECK = new('reference_check')
|
17
|
+
SKILL_TEST = new('skill_test')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
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 Shared
|
9
|
+
|
10
|
+
|
11
|
+
class AssessmentsPackagesPaginated < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, T::Array[::StackOne::Shared::AssessmentsPackages], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
18
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
19
|
+
field :next_page, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
|
20
|
+
|
21
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(data: T::Array[::StackOne::Shared::AssessmentsPackages], next_: T.nilable(::String), next_page: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
25
|
+
def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
|
26
|
+
@data = data
|
27
|
+
@next_ = next_
|
28
|
+
@next_page = next_page
|
29
|
+
@raw = raw
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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 Shared
|
9
|
+
|
10
|
+
|
11
|
+
class AssessmentsPackagesResult < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, ::StackOne::Shared::AssessmentsPackages, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(data: ::StackOne::Shared::AssessmentsPackages, raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
21
|
+
def initialize(data: nil, raw: nil)
|
22
|
+
@data = data
|
23
|
+
@raw = raw
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -17,9 +17,7 @@ module StackOne
|
|
17
17
|
field :interview_stage_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage_id') } }
|
18
18
|
# Value to pass through to the provider
|
19
19
|
field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
|
20
|
-
# Unique identifier of the rejection reason
|
21
|
-
#
|
22
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
20
|
+
# Unique identifier of the rejection reason
|
23
21
|
field :rejected_reason_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('rejected_reason_id') } }
|
24
22
|
|
25
23
|
field :source, T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoSource), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source') } }
|
@@ -12,7 +12,7 @@ module StackOne
|
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
|
-
field :archived, T.nilable(
|
15
|
+
field :archived, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('archived') } }
|
16
16
|
# channels of the Campaign
|
17
17
|
field :channels, T.nilable(T::Array[::StackOne::Shared::ChannelsEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('channels') } }
|
18
18
|
# The created_at date
|
@@ -20,7 +20,7 @@ module StackOne
|
|
20
20
|
|
21
21
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
22
22
|
|
23
|
-
field :draft, T.nilable(
|
23
|
+
field :draft, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('draft') } }
|
24
24
|
# The first_sent_at date
|
25
25
|
field :first_sent_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_sent_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
26
26
|
# Unique identifier
|
@@ -43,7 +43,7 @@ module StackOne
|
|
43
43
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(archived: T.nilable(
|
46
|
+
sig { params(archived: T.nilable(::Object), channels: T.nilable(T::Array[::StackOne::Shared::ChannelsEnum]), created_at: T.nilable(::DateTime), description: T.nilable(::String), draft: T.nilable(::Object), first_sent_at: T.nilable(::DateTime), id: T.nilable(::String), last_sent_at: T.nilable(::DateTime), messages: T.nilable(T::Array[::StackOne::Shared::Message]), name: T.nilable(::String), remote_id: T.nilable(::String), schedule_type: T.nilable(::StackOne::Shared::ScheduleType), status: T.nilable(::StackOne::Shared::Status), tags: T.nilable(T::Array[::String]), updated_at: T.nilable(::DateTime)).void }
|
47
47
|
def initialize(archived: nil, channels: nil, created_at: nil, description: nil, draft: nil, first_sent_at: nil, id: nil, last_sent_at: nil, messages: nil, name: nil, remote_id: nil, schedule_type: nil, status: nil, tags: nil, updated_at: nil)
|
48
48
|
@archived = archived
|
49
49
|
@channels = channels
|
@@ -73,6 +73,8 @@ module StackOne
|
|
73
73
|
field :marital_status, T.nilable(::StackOne::Shared::MaritalStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('marital_status') } }
|
74
74
|
# The employee name
|
75
75
|
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
76
|
+
# The national identity number
|
77
|
+
field :national_identity_number, T.nilable(::StackOne::Shared::NationalIdentityNumber), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('national_identity_number') } }
|
76
78
|
# The employee personal email
|
77
79
|
field :personal_email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('personal_email') } }
|
78
80
|
# The employee personal phone number
|
@@ -101,8 +103,8 @@ module StackOne
|
|
101
103
|
field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
|
102
104
|
|
103
105
|
|
104
|
-
sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), groups: T.nilable(::StackOne::Shared::Groups), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::PreferredLanguage), remote_id: T.nilable(::String), remote_manager_id: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
|
105
|
-
def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, groups: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, remote_manager_id: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
|
106
|
+
sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), groups: T.nilable(::StackOne::Shared::Groups), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), national_identity_number: T.nilable(::StackOne::Shared::NationalIdentityNumber), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::PreferredLanguage), remote_id: T.nilable(::String), remote_manager_id: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
|
107
|
+
def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, groups: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, national_identity_number: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, remote_manager_id: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
|
106
108
|
@avatar = avatar
|
107
109
|
@avatar_url = avatar_url
|
108
110
|
@benefits = benefits
|
@@ -134,6 +136,7 @@ module StackOne
|
|
134
136
|
@manager_id = manager_id
|
135
137
|
@marital_status = marital_status
|
136
138
|
@name = name
|
139
|
+
@national_identity_number = national_identity_number
|
137
140
|
@personal_email = personal_email
|
138
141
|
@personal_phone_number = personal_phone_number
|
139
142
|
@preferred_language = preferred_language
|
@@ -0,0 +1,22 @@
|
|
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 Shared
|
9
|
+
|
10
|
+
# EmployeeSchemasNationalIdentityNumberValue - The type of the national identity number
|
11
|
+
class EmployeeSchemasNationalIdentityNumberValue < T::Enum
|
12
|
+
enums do
|
13
|
+
SSN = new('ssn')
|
14
|
+
NIN = new('nin')
|
15
|
+
SIN = new('sin')
|
16
|
+
OTHER = new('other')
|
17
|
+
UNKNOWN = new('unknown')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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 Shared
|
9
|
+
|
10
|
+
|
11
|
+
class EmployeeSchemasType < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# The type of the national identity number
|
17
|
+
field :value, T.nilable(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue)).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
|
@@ -18,14 +18,14 @@ module StackOne
|
|
18
18
|
# Provider's unique identifier
|
19
19
|
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
20
20
|
# Indicates if the field is required
|
21
|
-
field :required, T.nilable(
|
21
|
+
field :required, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('required') } }
|
22
22
|
# The type of the field
|
23
23
|
field :type, T.nilable(::StackOne::Shared::FieldType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::StackOne::Shared::FieldType, true) } }
|
24
24
|
# The possible values for the field
|
25
25
|
field :values, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('values') } }
|
26
26
|
|
27
27
|
|
28
|
-
sig { params(id: T.nilable(::String), label: T.nilable(::String), remote_id: T.nilable(::String), required: T.nilable(
|
28
|
+
sig { params(id: T.nilable(::String), label: T.nilable(::String), remote_id: T.nilable(::String), required: T.nilable(::Object), type: T.nilable(::StackOne::Shared::FieldType), values: T.nilable(T::Array[::String])).void }
|
29
29
|
def initialize(id: nil, label: nil, remote_id: nil, required: nil, type: nil, values: nil)
|
30
30
|
@id = id
|
31
31
|
@label = label
|
@@ -18,20 +18,20 @@ module StackOne
|
|
18
18
|
# The end date of the time off request
|
19
19
|
field :end_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
20
20
|
# True if the end of the time off request ends half way through the day
|
21
|
-
field :end_half_day, T.nilable(
|
21
|
+
field :end_half_day, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_half_day') } }
|
22
22
|
# Value to pass through to the provider
|
23
23
|
field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
|
24
24
|
# The start date of the time off request
|
25
25
|
field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
26
26
|
# True if the start of the time off request begins half way through the day
|
27
|
-
field :start_half_day, T.nilable(
|
27
|
+
field :start_half_day, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_half_day') } }
|
28
28
|
# The status of the time off request
|
29
29
|
field :status, T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
30
30
|
# The type of the time off request
|
31
31
|
field :type, T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
32
32
|
|
33
33
|
|
34
|
-
sig { params(approver_id: T.nilable(::String), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), end_half_day: T.nilable(
|
34
|
+
sig { params(approver_id: T.nilable(::String), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), end_half_day: T.nilable(::Object), passthrough: T.nilable(T::Hash[Symbol, ::Object]), start_date: T.nilable(::DateTime), start_half_day: T.nilable(::Object), status: T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoStatus), type: T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoType)).void }
|
35
35
|
def initialize(approver_id: nil, employee_id: nil, end_date: nil, end_half_day: nil, passthrough: nil, start_date: nil, start_half_day: nil, status: nil, type: nil)
|
36
36
|
@approver_id = approver_id
|
37
37
|
@employee_id = employee_id
|
@@ -14,7 +14,7 @@ module StackOne
|
|
14
14
|
# Unique identifier
|
15
15
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
16
|
|
17
|
-
field :internal, T.nilable(
|
17
|
+
field :internal, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('internal') } }
|
18
18
|
|
19
19
|
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
20
20
|
|
@@ -23,7 +23,7 @@ module StackOne
|
|
23
23
|
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
24
24
|
|
25
25
|
|
26
|
-
sig { params(id: T.nilable(::String), internal: T.nilable(
|
26
|
+
sig { params(id: T.nilable(::String), internal: T.nilable(::Object), name: T.nilable(::String), questions: T.nilable(T::Array[::StackOne::Shared::Question]), remote_id: T.nilable(::String)).void }
|
27
27
|
def initialize(id: nil, internal: nil, name: nil, questions: nil, remote_id: nil)
|
28
28
|
@id = id
|
29
29
|
@internal = internal
|
@@ -0,0 +1,27 @@
|
|
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 Shared
|
9
|
+
|
10
|
+
# The national identity number
|
11
|
+
class NationalIdentityNumber < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :type, T.nilable(::StackOne::Shared::EmployeeSchemasType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
16
|
+
|
17
|
+
field :value, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(type: T.nilable(::StackOne::Shared::EmployeeSchemasType), value: T.nilable(::String)).void }
|
21
|
+
def initialize(type: nil, value: nil)
|
22
|
+
@type = type
|
23
|
+
@value = value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -20,14 +20,14 @@ module StackOne
|
|
20
20
|
# Provider's unique identifier
|
21
21
|
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
22
22
|
|
23
|
-
field :required, T.nilable(
|
23
|
+
field :required, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('required') } }
|
24
24
|
|
25
25
|
field :text, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('text') } }
|
26
26
|
|
27
27
|
field :type, T.nilable(::StackOne::Shared::QuestionType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
28
28
|
|
29
29
|
|
30
|
-
sig { params(id: T.nilable(::String), multiple_choice_answers: T.nilable(T::Array[::StackOne::Shared::QuestionMultipleChoiceAnswers]), name: T.nilable(::String), remote_id: T.nilable(::String), required: T.nilable(
|
30
|
+
sig { params(id: T.nilable(::String), multiple_choice_answers: T.nilable(T::Array[::StackOne::Shared::QuestionMultipleChoiceAnswers]), name: T.nilable(::String), remote_id: T.nilable(::String), required: T.nilable(::Object), text: T.nilable(::String), type: T.nilable(::StackOne::Shared::QuestionType)).void }
|
31
31
|
def initialize(id: nil, multiple_choice_answers: nil, name: nil, remote_id: nil, required: nil, text: nil, type: nil)
|
32
32
|
@id = id
|
33
33
|
@multiple_choice_answers = multiple_choice_answers
|
@@ -11,6 +11,8 @@ module StackOne
|
|
11
11
|
class Reference < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# The reference status
|
15
|
+
field :active, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
14
16
|
# The reference id
|
15
17
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
18
|
# The reference name
|
@@ -19,8 +21,9 @@ module StackOne
|
|
19
21
|
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
20
22
|
|
21
23
|
|
22
|
-
sig { params(id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String)).void }
|
23
|
-
def initialize(id: nil, name: nil, remote_id: nil)
|
24
|
+
sig { params(active: T.nilable(::Object), id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String)).void }
|
25
|
+
def initialize(active: nil, id: nil, name: nil, remote_id: nil)
|
26
|
+
@active = active
|
24
27
|
@id = id
|
25
28
|
@name = name
|
26
29
|
@remote_id = remote_id
|
@@ -22,7 +22,7 @@ module StackOne
|
|
22
22
|
# The end date of the time off request
|
23
23
|
field :end_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
24
24
|
# True if the end of the time off request ends half way through the day
|
25
|
-
field :end_half_day, T.nilable(
|
25
|
+
field :end_half_day, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_half_day') } }
|
26
26
|
# Unique identifier
|
27
27
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
28
28
|
# Provider's unique identifier of the approver
|
@@ -34,7 +34,7 @@ module StackOne
|
|
34
34
|
# The start date of the time off request
|
35
35
|
field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
36
36
|
# True if the start of the time off request begins half way through the day
|
37
|
-
field :start_half_day, T.nilable(
|
37
|
+
field :start_half_day, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_half_day') } }
|
38
38
|
# The status of the time off request
|
39
39
|
field :status, T.nilable(::StackOne::Shared::TimeOffStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
40
40
|
# The type of the time off request
|
@@ -43,7 +43,7 @@ module StackOne
|
|
43
43
|
field :updated_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(approver_id: T.nilable(::String), created_date: T.nilable(::DateTime), duration: T.nilable(::String), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), end_half_day: T.nilable(
|
46
|
+
sig { params(approver_id: T.nilable(::String), created_date: T.nilable(::DateTime), duration: T.nilable(::String), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), end_half_day: T.nilable(::Object), id: T.nilable(::String), remote_approver_id: T.nilable(::String), remote_employee_id: T.nilable(::String), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), start_half_day: T.nilable(::Object), status: T.nilable(::StackOne::Shared::TimeOffStatus), type: T.nilable(::StackOne::Shared::TimeOffType), updated_date: T.nilable(::DateTime)).void }
|
47
47
|
def initialize(approver_id: nil, created_date: nil, duration: nil, employee_id: nil, end_date: nil, end_half_day: nil, id: nil, remote_approver_id: nil, remote_employee_id: nil, remote_id: nil, start_date: nil, start_half_day: nil, status: nil, type: nil, updated_date: nil)
|
48
48
|
@approver_id = approver_id
|
49
49
|
@created_date = created_date
|
@@ -83,6 +83,10 @@ module StackOne
|
|
83
83
|
autoload :ScorecardSection, 'stack_one/models/shared/scorecardsection.rb'
|
84
84
|
autoload :FieldType, 'stack_one/models/shared/field_type.rb'
|
85
85
|
autoload :Field, 'stack_one/models/shared/field.rb'
|
86
|
+
autoload :AssessmentsPackagesResult, 'stack_one/models/shared/assessmentspackagesresult.rb'
|
87
|
+
autoload :AssessmentsPackagesValue, 'stack_one/models/shared/assessmentspackages_value.rb'
|
88
|
+
autoload :AssessmentsPackagesType, 'stack_one/models/shared/assessmentspackages_type.rb'
|
89
|
+
autoload :AssessmentsPackages, 'stack_one/models/shared/assessmentspackages.rb'
|
86
90
|
autoload :CandidateResult, 'stack_one/models/shared/candidateresult.rb'
|
87
91
|
autoload :Candidate, 'stack_one/models/shared/candidate.rb'
|
88
92
|
autoload :NoteResult, 'stack_one/models/shared/noteresult.rb'
|
@@ -145,6 +149,7 @@ module StackOne
|
|
145
149
|
autoload :ScorecardsPaginated, 'stack_one/models/shared/scorecardspaginated.rb'
|
146
150
|
autoload :ApplicationsPaginated, 'stack_one/models/shared/applicationspaginated.rb'
|
147
151
|
autoload :OffersPaginated, 'stack_one/models/shared/offerspaginated.rb'
|
152
|
+
autoload :AssessmentsPackagesPaginated, 'stack_one/models/shared/assessmentspackagespaginated.rb'
|
148
153
|
autoload :NotesPaginated, 'stack_one/models/shared/notespaginated.rb'
|
149
154
|
autoload :CandidatesPaginated, 'stack_one/models/shared/candidatespaginated.rb'
|
150
155
|
autoload :DepartmentsPaginated, 'stack_one/models/shared/departmentspaginated.rb'
|
@@ -271,6 +276,9 @@ module StackOne
|
|
271
276
|
autoload :JobDescription, 'stack_one/models/shared/job_description.rb'
|
272
277
|
autoload :EmployeeSchemasMaritalStatusValue, 'stack_one/models/shared/employee_schemas_marital_status_value.rb'
|
273
278
|
autoload :MaritalStatus, 'stack_one/models/shared/marital_status.rb'
|
279
|
+
autoload :EmployeeSchemasNationalIdentityNumberValue, 'stack_one/models/shared/employee_schemas_national_identity_number_value.rb'
|
280
|
+
autoload :EmployeeSchemasType, 'stack_one/models/shared/employee_schemas_type.rb'
|
281
|
+
autoload :NationalIdentityNumber, 'stack_one/models/shared/national_identity_number.rb'
|
274
282
|
autoload :EmployeeSchemasPreferredLanguageValue, 'stack_one/models/shared/employee_schemas_preferred_language_value.rb'
|
275
283
|
autoload :PreferredLanguage, 'stack_one/models/shared/preferred_language.rb'
|
276
284
|
autoload :EmployeeSchemasWorkLocationValue, 'stack_one/models/shared/employee_schemas_work_location_value.rb'
|
@@ -38,9 +38,9 @@ module StackOne
|
|
38
38
|
@security = security
|
39
39
|
@language = 'ruby'
|
40
40
|
@openapi_doc_version = '1.0.0'
|
41
|
-
@sdk_version = '0.2.
|
42
|
-
@gen_version = '2.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.
|
41
|
+
@sdk_version = '0.2.30'
|
42
|
+
@gen_version = '2.354.2'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.30 2.354.2 1.0.0 stackone_client'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackone_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StackOne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -168,6 +168,8 @@ files:
|
|
168
168
|
- lib/stack_one/models/operations/ats_get_application_response.rb
|
169
169
|
- lib/stack_one/models/operations/ats_get_application_scorecard_request.rb
|
170
170
|
- lib/stack_one/models/operations/ats_get_application_scorecard_response.rb
|
171
|
+
- lib/stack_one/models/operations/ats_get_assessments_package_request.rb
|
172
|
+
- lib/stack_one/models/operations/ats_get_assessments_package_response.rb
|
171
173
|
- lib/stack_one/models/operations/ats_get_candidate_note_request.rb
|
172
174
|
- lib/stack_one/models/operations/ats_get_candidate_note_response.rb
|
173
175
|
- lib/stack_one/models/operations/ats_get_candidate_request.rb
|
@@ -202,6 +204,9 @@ files:
|
|
202
204
|
- lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb
|
203
205
|
- lib/stack_one/models/operations/ats_list_applications_request.rb
|
204
206
|
- lib/stack_one/models/operations/ats_list_applications_response.rb
|
207
|
+
- lib/stack_one/models/operations/ats_list_assessments_packages_queryparam_filter.rb
|
208
|
+
- lib/stack_one/models/operations/ats_list_assessments_packages_request.rb
|
209
|
+
- lib/stack_one/models/operations/ats_list_assessments_packages_response.rb
|
205
210
|
- lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_filter.rb
|
206
211
|
- lib/stack_one/models/operations/ats_list_candidate_notes_request.rb
|
207
212
|
- lib/stack_one/models/operations/ats_list_candidate_notes_response.rb
|
@@ -406,6 +411,11 @@ files:
|
|
406
411
|
- lib/stack_one/models/shared/applicationattachment_value.rb
|
407
412
|
- lib/stack_one/models/shared/applicationresult.rb
|
408
413
|
- lib/stack_one/models/shared/applicationspaginated.rb
|
414
|
+
- lib/stack_one/models/shared/assessmentspackages.rb
|
415
|
+
- lib/stack_one/models/shared/assessmentspackages_type.rb
|
416
|
+
- lib/stack_one/models/shared/assessmentspackages_value.rb
|
417
|
+
- lib/stack_one/models/shared/assessmentspackagespaginated.rb
|
418
|
+
- lib/stack_one/models/shared/assessmentspackagesresult.rb
|
409
419
|
- lib/stack_one/models/shared/atscreateapplicationrequestdto.rb
|
410
420
|
- lib/stack_one/models/shared/atscreateapplicationrequestdto_application_status.rb
|
411
421
|
- lib/stack_one/models/shared/atscreateapplicationrequestdto_candidate.rb
|
@@ -493,7 +503,9 @@ files:
|
|
493
503
|
- lib/stack_one/models/shared/employee_schemas_home_location_value.rb
|
494
504
|
- lib/stack_one/models/shared/employee_schemas_location_type.rb
|
495
505
|
- lib/stack_one/models/shared/employee_schemas_marital_status_value.rb
|
506
|
+
- lib/stack_one/models/shared/employee_schemas_national_identity_number_value.rb
|
496
507
|
- lib/stack_one/models/shared/employee_schemas_preferred_language_value.rb
|
508
|
+
- lib/stack_one/models/shared/employee_schemas_type.rb
|
497
509
|
- lib/stack_one/models/shared/employee_schemas_value.rb
|
498
510
|
- lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb
|
499
511
|
- lib/stack_one/models/shared/employee_schemas_work_location_value.rb
|
@@ -657,6 +669,7 @@ files:
|
|
657
669
|
- lib/stack_one/models/shared/message_value.rb
|
658
670
|
- lib/stack_one/models/shared/metadata.rb
|
659
671
|
- lib/stack_one/models/shared/method.rb
|
672
|
+
- lib/stack_one/models/shared/national_identity_number.rb
|
660
673
|
- lib/stack_one/models/shared/note.rb
|
661
674
|
- lib/stack_one/models/shared/note_value.rb
|
662
675
|
- lib/stack_one/models/shared/note_visibility.rb
|