stackone_client 0.3.1 → 0.3.2
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/hris.rb +142 -0
- data/lib/stack_one/lms.rb +4 -4
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_request.rb +55 -0
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_time_off_type_request.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_time_off_type_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_filter.rb +5 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_time_off_types_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_time_off_types_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_time_off_types_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_upsert_content_response.rb +4 -4
- data/lib/stack_one/models/operations/lms_upsert_course_response.rb +4 -4
- data/lib/stack_one/models/operations.rb +11 -0
- data/lib/stack_one/models/shared/assessmentspackages_value.rb +3 -0
- data/lib/stack_one/models/shared/assignment.rb +4 -0
- data/lib/stack_one/models/shared/completion.rb +14 -0
- data/lib/stack_one/models/shared/createresultdataapimodel.rb +2 -5
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_type.rb +4 -4
- data/lib/stack_one/models/shared/jobpostingcontentsection_value.rb +3 -0
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +14 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +2 -5
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_content_type.rb +2 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_value.rb +3 -2
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +2 -8
- data/lib/stack_one/models/shared/upsertresult.rb +33 -0
- data/lib/stack_one/models/shared/upsertresultdataexternalreferencemodel.rb +30 -0
- data/lib/stack_one/models/shared/workeligibility_type.rb +4 -4
- data/lib/stack_one/models/shared.rb +2 -2
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +15 -4
- data/lib/stack_one/models/shared/content_launch_method.rb +0 -27
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_schemas_value.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3323ce63ef9949e4278a94d7670c582dc51daf4080066203ce8d67c1d9f140f9
|
4
|
+
data.tar.gz: 8edced1fa7ae1568ef37336d16ba097c9d23021b3fb32a940176fd41708114f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a69af05cdd6c93584387dd8c53162c00e5063a6a641707d1fa8bb5722ba8915f81b85a1a32d458c792616055d24d2a704c6355b2511ef0f227fd5160ecf5cd2
|
7
|
+
data.tar.gz: 2745e85399531db25f8135508e0a76d6a03a4493a524b5816e39316aa74373030af696bcad8d7d96cd41f3f04b6ce496112b1eab7e48c91ff7c003300f532480
|
data/lib/stack_one/hris.rb
CHANGED
@@ -552,6 +552,44 @@ module StackOne
|
|
552
552
|
end
|
553
553
|
|
554
554
|
|
555
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest)).returns(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionResponse) }
|
556
|
+
def get_employee_custom_field_definition(request)
|
557
|
+
# get_employee_custom_field_definition - Get employee Custom Field Definition
|
558
|
+
url, params = @sdk_configuration.get_server_details
|
559
|
+
base_url = Utils.template_url(url, params)
|
560
|
+
url = Utils.generate_url(
|
561
|
+
::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest,
|
562
|
+
base_url,
|
563
|
+
'/unified/hris/custom_field_definitions/employees/{id}',
|
564
|
+
request
|
565
|
+
)
|
566
|
+
headers = Utils.get_headers(request)
|
567
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest, request)
|
568
|
+
headers['Accept'] = 'application/json'
|
569
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
570
|
+
|
571
|
+
r = @sdk_configuration.client.get(url) do |req|
|
572
|
+
req.headers = headers
|
573
|
+
req.params = query_params
|
574
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
575
|
+
end
|
576
|
+
|
577
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
578
|
+
|
579
|
+
res = ::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionResponse.new(
|
580
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
581
|
+
)
|
582
|
+
if r.status == 200
|
583
|
+
if Utils.match_content_type(content_type, 'application/json')
|
584
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionResultApiModel)
|
585
|
+
res.custom_field_definition_result_api_model = out
|
586
|
+
end
|
587
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
588
|
+
end
|
589
|
+
res
|
590
|
+
end
|
591
|
+
|
592
|
+
|
555
593
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentResponse) }
|
556
594
|
def get_employee_document(request)
|
557
595
|
# get_employee_document - Get Employee Document
|
@@ -932,6 +970,44 @@ module StackOne
|
|
932
970
|
end
|
933
971
|
|
934
972
|
|
973
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffTypeRequest)).returns(::StackOne::Operations::HrisGetTimeOffTypeResponse) }
|
974
|
+
def get_time_off_type(request)
|
975
|
+
# get_time_off_type - Get time off type
|
976
|
+
url, params = @sdk_configuration.get_server_details
|
977
|
+
base_url = Utils.template_url(url, params)
|
978
|
+
url = Utils.generate_url(
|
979
|
+
::StackOne::Operations::HrisGetTimeOffTypeRequest,
|
980
|
+
base_url,
|
981
|
+
'/unified/hris/time_off_types/{id}',
|
982
|
+
request
|
983
|
+
)
|
984
|
+
headers = Utils.get_headers(request)
|
985
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffTypeRequest, request)
|
986
|
+
headers['Accept'] = 'application/json'
|
987
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
988
|
+
|
989
|
+
r = @sdk_configuration.client.get(url) do |req|
|
990
|
+
req.headers = headers
|
991
|
+
req.params = query_params
|
992
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
993
|
+
end
|
994
|
+
|
995
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
996
|
+
|
997
|
+
res = ::StackOne::Operations::HrisGetTimeOffTypeResponse.new(
|
998
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
999
|
+
)
|
1000
|
+
if r.status == 200
|
1001
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1002
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferenceResult)
|
1003
|
+
res.reference_result = out
|
1004
|
+
end
|
1005
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1006
|
+
end
|
1007
|
+
res
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
|
935
1011
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest)).returns(::StackOne::Operations::HrisListBenefitsResponse) }
|
936
1012
|
def list_benefits(request)
|
937
1013
|
# list_benefits - List benefits
|
@@ -1097,6 +1173,39 @@ module StackOne
|
|
1097
1173
|
end
|
1098
1174
|
|
1099
1175
|
|
1176
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest)).returns(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
1177
|
+
def list_employee_custom_field_definitions(request)
|
1178
|
+
# list_employee_custom_field_definitions - List employee Custom Field Definitions
|
1179
|
+
url, params = @sdk_configuration.get_server_details
|
1180
|
+
base_url = Utils.template_url(url, params)
|
1181
|
+
url = "#{base_url}/unified/hris/custom_field_definitions/employees"
|
1182
|
+
headers = Utils.get_headers(request)
|
1183
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest, request)
|
1184
|
+
headers['Accept'] = 'application/json'
|
1185
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1186
|
+
|
1187
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1188
|
+
req.headers = headers
|
1189
|
+
req.params = query_params
|
1190
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1194
|
+
|
1195
|
+
res = ::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsResponse.new(
|
1196
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1197
|
+
)
|
1198
|
+
if r.status == 200
|
1199
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1200
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionsPaginated)
|
1201
|
+
res.custom_field_definitions_paginated = out
|
1202
|
+
end
|
1203
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1204
|
+
end
|
1205
|
+
res
|
1206
|
+
end
|
1207
|
+
|
1208
|
+
|
1100
1209
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
|
1101
1210
|
def list_employee_documents(request)
|
1102
1211
|
# list_employee_documents - List Employee Documents
|
@@ -1447,6 +1556,39 @@ module StackOne
|
|
1447
1556
|
end
|
1448
1557
|
|
1449
1558
|
|
1559
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffTypesRequest)).returns(::StackOne::Operations::HrisListTimeOffTypesResponse) }
|
1560
|
+
def list_time_off_types(request)
|
1561
|
+
# list_time_off_types - List time off types
|
1562
|
+
url, params = @sdk_configuration.get_server_details
|
1563
|
+
base_url = Utils.template_url(url, params)
|
1564
|
+
url = "#{base_url}/unified/hris/time_off_types"
|
1565
|
+
headers = Utils.get_headers(request)
|
1566
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffTypesRequest, request)
|
1567
|
+
headers['Accept'] = 'application/json'
|
1568
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1569
|
+
|
1570
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1571
|
+
req.headers = headers
|
1572
|
+
req.params = query_params
|
1573
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1577
|
+
|
1578
|
+
res = ::StackOne::Operations::HrisListTimeOffTypesResponse.new(
|
1579
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1580
|
+
)
|
1581
|
+
if r.status == 200
|
1582
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1583
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferencePaginated)
|
1584
|
+
res.reference_paginated = out
|
1585
|
+
end
|
1586
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1587
|
+
end
|
1588
|
+
res
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
|
1450
1592
|
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeResponse) }
|
1451
1593
|
def update_employee(hris_create_employee_request_dto, id, x_account_id)
|
1452
1594
|
# update_employee - Updates an employee
|
data/lib/stack_one/lms.rb
CHANGED
@@ -947,8 +947,8 @@ module StackOne
|
|
947
947
|
)
|
948
948
|
if r.status == 201
|
949
949
|
if Utils.match_content_type(content_type, 'application/json')
|
950
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
951
|
-
res.
|
950
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpsertResult)
|
951
|
+
res.upsert_result = out
|
952
952
|
end
|
953
953
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
954
954
|
end
|
@@ -993,8 +993,8 @@ module StackOne
|
|
993
993
|
)
|
994
994
|
if r.status == 201
|
995
995
|
if Utils.match_content_type(content_type, 'application/json')
|
996
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
997
|
-
res.
|
996
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpsertResult)
|
997
|
+
res.upsert_result = out
|
998
998
|
end
|
999
999
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1000
1000
|
end
|
data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_queryparam_filter.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class HrisGetEmployeeCustomFieldDefinitionQueryParamFilter < ::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,55 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetEmployeeCustomFieldDefinitionRequest < ::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
|
+
# Filter parameters that allow greater customisation of the list response
|
21
|
+
field :filter, T.nilable(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
22
|
+
# The unified cursor
|
23
|
+
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
24
|
+
# The page number of the results to fetch
|
25
|
+
#
|
26
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
27
|
+
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
28
|
+
# The number of results per page
|
29
|
+
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
30
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
31
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
32
|
+
# Indicates that the raw request result is returned
|
33
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
34
|
+
# Use a string with a date to only select results updated after that given date
|
35
|
+
#
|
36
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
37
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
41
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
42
|
+
@id = id
|
43
|
+
@x_account_id = x_account_id
|
44
|
+
@fields_ = fields_
|
45
|
+
@filter = filter
|
46
|
+
@next_ = next_
|
47
|
+
@page = page
|
48
|
+
@page_size = page_size
|
49
|
+
@proxy = proxy
|
50
|
+
@raw = raw
|
51
|
+
@updated_after = updated_after
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetEmployeeCustomFieldDefinitionResponse < ::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 employee custom field definition was retrieved.
|
21
|
+
field :custom_field_definition_result_api_model, T.nilable(::StackOne::Shared::CustomFieldDefinitionResultApiModel)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, custom_field_definition_result_api_model: T.nilable(::StackOne::Shared::CustomFieldDefinitionResultApiModel)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, custom_field_definition_result_api_model: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@custom_field_definition_result_api_model = custom_field_definition_result_api_model
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetTimeOffTypeRequest < ::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://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetTimeOffTypeResponse < ::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 time off type with the given identifier was retrieved.
|
21
|
+
field :reference_result, T.nilable(::StackOne::Shared::ReferenceResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, reference_result: T.nilable(::StackOne::Shared::ReferenceResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, reference_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@reference_result = reference_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class HrisListEmployeeCustomFieldDefinitionsQueryParamFilter < ::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://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListEmployeeCustomFieldDefinitionsRequest < ::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::HrisListEmployeeCustomFieldDefinitionsQueryParamFilter), { '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::HrisListEmployeeCustomFieldDefinitionsQueryParamFilter), 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://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListEmployeeCustomFieldDefinitionsResponse < ::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 employee custom field definitions was retrieved.
|
21
|
+
field :custom_field_definitions_paginated, T.nilable(::StackOne::Shared::CustomFieldDefinitionsPaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, custom_field_definitions_paginated: T.nilable(::StackOne::Shared::CustomFieldDefinitionsPaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, custom_field_definitions_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@custom_field_definitions_paginated = custom_field_definitions_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rb
CHANGED
@@ -7,16 +7,19 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
#
|
10
|
+
# HRIS Time Off filters
|
11
11
|
class HrisListEmployeeTimeOffRequestsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# List of time off type ids to filter by.
|
15
|
+
field :type, T.nilable(T::Array[::String]), { 'query_param': { 'field_name': 'type' } }
|
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(type: T.nilable(T::Array[::String]), updated_after: T.nilable(::String)).void }
|
21
|
+
def initialize(type: nil, updated_after: nil)
|
22
|
+
@type = type
|
20
23
|
@updated_after = updated_after
|
21
24
|
end
|
22
25
|
end
|
@@ -17,7 +17,7 @@ module StackOne
|
|
17
17
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
18
|
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
19
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
-
#
|
20
|
+
# HRIS Time Off filters
|
21
21
|
field :filter, T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
22
22
|
# The unified cursor
|
23
23
|
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
@@ -11,14 +11,17 @@ module StackOne
|
|
11
11
|
class HrisListEmployeesQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# Filter to select employees by email
|
15
|
+
field :email, T.nilable(::String), { 'query_param': { 'field_name': 'email' } }
|
14
16
|
# Filter to select employees by employee_number
|
15
17
|
field :employee_number, T.nilable(::String), { 'query_param': { 'field_name': 'employee_number' } }
|
16
18
|
# Use a string with a date to only select results updated after that given date
|
17
19
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
18
20
|
|
19
21
|
|
20
|
-
sig { params(employee_number: T.nilable(::String), updated_after: T.nilable(::String)).void }
|
21
|
-
def initialize(employee_number: nil, updated_after: nil)
|
22
|
+
sig { params(email: T.nilable(::String), employee_number: T.nilable(::String), updated_after: T.nilable(::String)).void }
|
23
|
+
def initialize(email: nil, employee_number: nil, updated_after: nil)
|
24
|
+
@email = email
|
22
25
|
@employee_number = employee_number
|
23
26
|
@updated_after = updated_after
|
24
27
|
end
|
@@ -7,16 +7,19 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
#
|
10
|
+
# HRIS Time Off filters
|
11
11
|
class HrisListTimeOffRequestsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# List of time off type ids to filter by.
|
15
|
+
field :type, T.nilable(T::Array[::String]), { 'query_param': { 'field_name': 'type' } }
|
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(type: T.nilable(T::Array[::String]), updated_after: T.nilable(::String)).void }
|
21
|
+
def initialize(type: nil, updated_after: nil)
|
22
|
+
@type = type
|
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
|
+
# HRIS Time Off filters
|
19
19
|
field :filter, T.nilable(::StackOne::Operations::HrisListTimeOffRequestsQueryParamFilter), { '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,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class HrisListTimeOffTypesQueryParamFilter < ::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
|