stackone_client 0.2.27 → 0.2.28
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 +71 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_category_request.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_category_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_categories_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_employee_categories_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_employee_categories_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +5 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
- data/lib/stack_one/models/shared/list.rb +2 -2
- data/lib/stack_one/models/shared/listitem.rb +27 -0
- data/lib/stack_one/models/shared/reference.rb +30 -0
- data/lib/stack_one/models/shared/referencepaginated.rb +33 -0
- data/lib/stack_one/models/shared/referenceresult.rb +27 -0
- data/lib/stack_one/models/shared.rb +4 -0
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 451575c5c2030cafdd9f96ed880842ccb40f39bb642ee91f56460ce063ed6080
|
4
|
+
data.tar.gz: c99773af1420cd5232d5640843772d4613fcabea37a12311c1a7f8b98849119c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89a83fa7a1ca8c38783c98b1f6663b14352d39c5ea36612921d5abf0312e5c14b9ec9d1ab647b505f66463b3a35e2f6bc4e32c46f2b91518cf8fe6e68a7eefa0
|
7
|
+
data.tar.gz: ec7a44f5b6b7bda92314e63f3c58173c6d6d826d0d8f87ba52f5819c2d248ab8ae14a07fb71d6ce94edccb7d53a0907a5ed1c66fe3ba4e29603e9f9d4adffd99
|
data/lib/stack_one/hris.rb
CHANGED
@@ -410,6 +410,44 @@ module StackOne
|
|
410
410
|
end
|
411
411
|
|
412
412
|
|
413
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentCategoryResponse) }
|
414
|
+
def get_employee_document_category(request)
|
415
|
+
# get_employee_document_category - Get Employee Document Category
|
416
|
+
url, params = @sdk_configuration.get_server_details
|
417
|
+
base_url = Utils.template_url(url, params)
|
418
|
+
url = Utils.generate_url(
|
419
|
+
::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest,
|
420
|
+
base_url,
|
421
|
+
'/unified/hris/documents/employee_categories/{id}',
|
422
|
+
request
|
423
|
+
)
|
424
|
+
headers = Utils.get_headers(request)
|
425
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest, request)
|
426
|
+
headers['Accept'] = 'application/json'
|
427
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
428
|
+
|
429
|
+
r = @sdk_configuration.client.get(url) do |req|
|
430
|
+
req.headers = headers
|
431
|
+
req.params = query_params
|
432
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
433
|
+
end
|
434
|
+
|
435
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
436
|
+
|
437
|
+
res = ::StackOne::Operations::HrisGetEmployeeDocumentCategoryResponse.new(
|
438
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
439
|
+
)
|
440
|
+
if r.status == 200
|
441
|
+
if Utils.match_content_type(content_type, 'application/json')
|
442
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferenceResult)
|
443
|
+
res.reference_result = out
|
444
|
+
end
|
445
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
446
|
+
end
|
447
|
+
res
|
448
|
+
end
|
449
|
+
|
450
|
+
|
413
451
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetEmployeesTimeOffRequestResponse) }
|
414
452
|
def get_employees_time_off_request(request)
|
415
453
|
# get_employees_time_off_request - Get Employees Time Off Request
|
@@ -704,6 +742,39 @@ module StackOne
|
|
704
742
|
end
|
705
743
|
|
706
744
|
|
745
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCategoriesRequest)).returns(::StackOne::Operations::HrisListEmployeeCategoriesResponse) }
|
746
|
+
def list_employee_categories(request)
|
747
|
+
# list_employee_categories - List Employee Document Categories
|
748
|
+
url, params = @sdk_configuration.get_server_details
|
749
|
+
base_url = Utils.template_url(url, params)
|
750
|
+
url = "#{base_url}/unified/hris/documents/employee_categories"
|
751
|
+
headers = Utils.get_headers(request)
|
752
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeCategoriesRequest, request)
|
753
|
+
headers['Accept'] = 'application/json'
|
754
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
755
|
+
|
756
|
+
r = @sdk_configuration.client.get(url) do |req|
|
757
|
+
req.headers = headers
|
758
|
+
req.params = query_params
|
759
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
760
|
+
end
|
761
|
+
|
762
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
763
|
+
|
764
|
+
res = ::StackOne::Operations::HrisListEmployeeCategoriesResponse.new(
|
765
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
766
|
+
)
|
767
|
+
if r.status == 200
|
768
|
+
if Utils.match_content_type(content_type, 'application/json')
|
769
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferencePaginated)
|
770
|
+
res.reference_paginated = out
|
771
|
+
end
|
772
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
773
|
+
end
|
774
|
+
res
|
775
|
+
end
|
776
|
+
|
777
|
+
|
707
778
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
|
708
779
|
def list_employee_documents(request)
|
709
780
|
# list_employee_documents - List Employee Documents
|
@@ -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 HrisGetEmployeeDocumentCategoryRequest < ::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 HrisGetEmployeeDocumentCategoryResponse < ::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 document category 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://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 HrisListEmployeeCategoriesQueryParamFilter < ::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 HrisListEmployeeCategoriesRequest < ::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::HrisListEmployeeCategoriesQueryParamFilter), { '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::HrisListEmployeeCategoriesQueryParamFilter), 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 HrisListEmployeeCategoriesResponse < ::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 document categories were retrieved.
|
21
|
+
field :reference_paginated, T.nilable(::StackOne::Shared::ReferencePaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, reference_paginated: T.nilable(::StackOne::Shared::ReferencePaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, reference_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@reference_paginated = reference_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -154,6 +154,8 @@ module StackOne
|
|
154
154
|
autoload :HrisGetEmployeeResponse, 'stack_one/models/operations/hris_get_employee_response.rb'
|
155
155
|
autoload :HrisGetEmployeeDocumentRequest, 'stack_one/models/operations/hris_get_employee_document_request.rb'
|
156
156
|
autoload :HrisGetEmployeeDocumentResponse, 'stack_one/models/operations/hris_get_employee_document_response.rb'
|
157
|
+
autoload :HrisGetEmployeeDocumentCategoryRequest, 'stack_one/models/operations/hris_get_employee_document_category_request.rb'
|
158
|
+
autoload :HrisGetEmployeeDocumentCategoryResponse, 'stack_one/models/operations/hris_get_employee_document_category_response.rb'
|
157
159
|
autoload :HrisGetEmployeesTimeOffRequestRequest, 'stack_one/models/operations/hris_get_employees_time_off_request_request.rb'
|
158
160
|
autoload :HrisGetEmployeesTimeOffRequestResponse, 'stack_one/models/operations/hris_get_employees_time_off_request_response.rb'
|
159
161
|
autoload :HrisGetEmployeesWorkEligibilityRequest, 'stack_one/models/operations/hris_get_employees_work_eligibility_request.rb'
|
@@ -172,6 +174,9 @@ module StackOne
|
|
172
174
|
autoload :HrisListCompaniesQueryParamFilter, 'stack_one/models/operations/hris_list_companies_queryparam_filter.rb'
|
173
175
|
autoload :HrisListCompaniesRequest, 'stack_one/models/operations/hris_list_companies_request.rb'
|
174
176
|
autoload :HrisListCompaniesResponse, 'stack_one/models/operations/hris_list_companies_response.rb'
|
177
|
+
autoload :HrisListEmployeeCategoriesQueryParamFilter, 'stack_one/models/operations/hris_list_employee_categories_queryparam_filter.rb'
|
178
|
+
autoload :HrisListEmployeeCategoriesRequest, 'stack_one/models/operations/hris_list_employee_categories_request.rb'
|
179
|
+
autoload :HrisListEmployeeCategoriesResponse, 'stack_one/models/operations/hris_list_employee_categories_response.rb'
|
175
180
|
autoload :HrisListEmployeeDocumentsQueryParamFilter, 'stack_one/models/operations/hris_list_employee_documents_queryparam_filter.rb'
|
176
181
|
autoload :HrisListEmployeeDocumentsRequest, 'stack_one/models/operations/hris_list_employee_documents_request.rb'
|
177
182
|
autoload :HrisListEmployeeDocumentsResponse, 'stack_one/models/operations/hris_list_employee_documents_response.rb'
|
@@ -49,6 +49,8 @@ module StackOne
|
|
49
49
|
field :hire_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hire_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
50
50
|
# The employee home location
|
51
51
|
field :home_location, T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoHomeLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('home_location') } }
|
52
|
+
# The employee job id
|
53
|
+
field :job_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_id') } }
|
52
54
|
# The employee job title
|
53
55
|
field :job_title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_title') } }
|
54
56
|
# The employee last name
|
@@ -83,8 +85,8 @@ module StackOne
|
|
83
85
|
field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
|
84
86
|
|
85
87
|
|
86
|
-
sig { params(avatar: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoAvatar), 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_name: T.nilable(::String), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentContractType), employment_status: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentStatus), employment_type: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEthnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoGender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoHomeLocation), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoMaritalStatus), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoPreferredLanguage), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoWorkLocation), work_phone_number: T.nilable(::String)).void }
|
87
|
-
def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company_name: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, passthrough: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, start_date: nil, tenure: nil, termination_date: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
|
88
|
+
sig { params(avatar: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoAvatar), 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_name: T.nilable(::String), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentContractType), employment_status: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentStatus), employment_type: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEthnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoGender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoHomeLocation), job_id: T.nilable(::String), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoMaritalStatus), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoPreferredLanguage), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoWorkLocation), work_phone_number: T.nilable(::String)).void }
|
89
|
+
def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company_name: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, job_id: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, passthrough: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, start_date: nil, tenure: nil, termination_date: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
|
88
90
|
@avatar = avatar
|
89
91
|
@avatar_url = avatar_url
|
90
92
|
@benefits = benefits
|
@@ -104,6 +106,7 @@ module StackOne
|
|
104
106
|
@gender = gender
|
105
107
|
@hire_date = hire_date
|
106
108
|
@home_location = home_location
|
109
|
+
@job_id = job_id
|
107
110
|
@job_title = job_title
|
108
111
|
@last_name = last_name
|
109
112
|
@manager_id = manager_id
|
@@ -16,7 +16,7 @@ module StackOne
|
|
16
16
|
# Unique identifier
|
17
17
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
18
18
|
|
19
|
-
field :items, T.nilable(T::Array[::
|
19
|
+
field :items, T.nilable(T::Array[::StackOne::Shared::ListItem]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('items') } }
|
20
20
|
|
21
21
|
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
22
22
|
# Provider's unique identifier
|
@@ -27,7 +27,7 @@ module StackOne
|
|
27
27
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
28
28
|
|
29
29
|
|
30
|
-
sig { params(created_at: T.nilable(::DateTime), id: T.nilable(::String), items: T.nilable(T::Array[::
|
30
|
+
sig { params(created_at: T.nilable(::DateTime), id: T.nilable(::String), items: T.nilable(T::Array[::StackOne::Shared::ListItem]), name: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::ListType), updated_at: T.nilable(::DateTime)).void }
|
31
31
|
def initialize(created_at: nil, id: nil, items: nil, name: nil, remote_id: nil, type: nil, updated_at: nil)
|
32
32
|
@created_at = created_at
|
33
33
|
@id = id
|
@@ -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 ListItem < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Unique identifier
|
15
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
|
+
# Provider's unique identifier
|
17
|
+
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(id: T.nilable(::String), remote_id: T.nilable(::String)).void }
|
21
|
+
def initialize(id: nil, remote_id: nil)
|
22
|
+
@id = id
|
23
|
+
@remote_id = remote_id
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,30 @@
|
|
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 Reference < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The reference id
|
15
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
|
+
# The reference name
|
17
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
18
|
+
# Provider's unique identifier
|
19
|
+
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
20
|
+
|
21
|
+
|
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
|
+
@id = id
|
25
|
+
@name = name
|
26
|
+
@remote_id = remote_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
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 ReferencePaginated < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, T::Array[::StackOne::Shared::Reference], { '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::Reference], 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 ReferenceResult < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, ::StackOne::Shared::Reference, { '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::Reference, 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
|
@@ -135,6 +135,7 @@ module StackOne
|
|
135
135
|
autoload :ListValue, 'stack_one/models/shared/list_value.rb'
|
136
136
|
autoload :ListType, 'stack_one/models/shared/list_type.rb'
|
137
137
|
autoload :List, 'stack_one/models/shared/list.rb'
|
138
|
+
autoload :ListItem, 'stack_one/models/shared/listitem.rb'
|
138
139
|
autoload :ATSLocationResult, 'stack_one/models/shared/atslocationresult.rb'
|
139
140
|
autoload :ATSLocation, 'stack_one/models/shared/atslocation.rb'
|
140
141
|
autoload :RejectedReasonResult, 'stack_one/models/shared/rejectedreasonresult.rb'
|
@@ -287,6 +288,8 @@ module StackOne
|
|
287
288
|
autoload :HrisDocumentApiModelSchemasTypeValue, 'stack_one/models/shared/hrisdocumentapimodel_schemas_type_value.rb'
|
288
289
|
autoload :HrisDocumentApiModelType, 'stack_one/models/shared/hrisdocumentapimodel_type.rb'
|
289
290
|
autoload :HrisDocumentApiModel, 'stack_one/models/shared/hrisdocumentapimodel.rb'
|
291
|
+
autoload :ReferenceResult, 'stack_one/models/shared/referenceresult.rb'
|
292
|
+
autoload :Reference, 'stack_one/models/shared/reference.rb'
|
290
293
|
autoload :TimeOffResult, 'stack_one/models/shared/timeoffresult.rb'
|
291
294
|
autoload :TimeOffValue, 'stack_one/models/shared/timeoff_value.rb'
|
292
295
|
autoload :TimeOffStatus, 'stack_one/models/shared/timeoff_status.rb'
|
@@ -316,6 +319,7 @@ module StackOne
|
|
316
319
|
autoload :HRISLocation, 'stack_one/models/shared/hrislocation.rb'
|
317
320
|
autoload :HRISBenefitsPaginated, 'stack_one/models/shared/hrisbenefitspaginated.rb'
|
318
321
|
autoload :CompaniesPaginated, 'stack_one/models/shared/companiespaginated.rb'
|
322
|
+
autoload :ReferencePaginated, 'stack_one/models/shared/referencepaginated.rb'
|
319
323
|
autoload :HrisDocumentsPaginated, 'stack_one/models/shared/hrisdocumentspaginated.rb'
|
320
324
|
autoload :TimeOffPaginated, 'stack_one/models/shared/timeoffpaginated.rb'
|
321
325
|
autoload :WorkEligibilityPaginated, 'stack_one/models/shared/workeligibilitypaginated.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.28'
|
42
|
+
@gen_version = '2.342.6'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.28 2.342.6 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.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StackOne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -278,6 +278,8 @@ files:
|
|
278
278
|
- lib/stack_one/models/operations/hris_get_benefit_response.rb
|
279
279
|
- lib/stack_one/models/operations/hris_get_company_request.rb
|
280
280
|
- lib/stack_one/models/operations/hris_get_company_response.rb
|
281
|
+
- lib/stack_one/models/operations/hris_get_employee_document_category_request.rb
|
282
|
+
- lib/stack_one/models/operations/hris_get_employee_document_category_response.rb
|
281
283
|
- lib/stack_one/models/operations/hris_get_employee_document_request.rb
|
282
284
|
- lib/stack_one/models/operations/hris_get_employee_document_response.rb
|
283
285
|
- lib/stack_one/models/operations/hris_get_employee_request.rb
|
@@ -300,6 +302,9 @@ files:
|
|
300
302
|
- lib/stack_one/models/operations/hris_list_companies_queryparam_filter.rb
|
301
303
|
- lib/stack_one/models/operations/hris_list_companies_request.rb
|
302
304
|
- lib/stack_one/models/operations/hris_list_companies_response.rb
|
305
|
+
- lib/stack_one/models/operations/hris_list_employee_categories_queryparam_filter.rb
|
306
|
+
- lib/stack_one/models/operations/hris_list_employee_categories_request.rb
|
307
|
+
- lib/stack_one/models/operations/hris_list_employee_categories_response.rb
|
303
308
|
- lib/stack_one/models/operations/hris_list_employee_documents_queryparam_filter.rb
|
304
309
|
- lib/stack_one/models/operations/hris_list_employee_documents_request.rb
|
305
310
|
- lib/stack_one/models/operations/hris_list_employee_documents_response.rb
|
@@ -637,6 +642,7 @@ files:
|
|
637
642
|
- lib/stack_one/models/shared/list.rb
|
638
643
|
- lib/stack_one/models/shared/list_type.rb
|
639
644
|
- lib/stack_one/models/shared/list_value.rb
|
645
|
+
- lib/stack_one/models/shared/listitem.rb
|
640
646
|
- lib/stack_one/models/shared/listresult.rb
|
641
647
|
- lib/stack_one/models/shared/listspaginated.rb
|
642
648
|
- lib/stack_one/models/shared/location_type.rb
|
@@ -684,6 +690,9 @@ files:
|
|
684
690
|
- lib/stack_one/models/shared/questionnaire.rb
|
685
691
|
- lib/stack_one/models/shared/raw.rb
|
686
692
|
- lib/stack_one/models/shared/rawresponse.rb
|
693
|
+
- lib/stack_one/models/shared/reference.rb
|
694
|
+
- lib/stack_one/models/shared/referencepaginated.rb
|
695
|
+
- lib/stack_one/models/shared/referenceresult.rb
|
687
696
|
- lib/stack_one/models/shared/rejected_reason_type.rb
|
688
697
|
- lib/stack_one/models/shared/rejectedreason.rb
|
689
698
|
- lib/stack_one/models/shared/rejectedreason_value.rb
|