stackone_client 0.2.30 → 0.2.32
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_job_request.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_job_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_jobs_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_jobs_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_jobs_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +5 -0
- data/lib/stack_one/models/shared/employee_schemas_groups_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisdocumentapimodel_schemas_type_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisdocumentapimodel_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisgroup_value.rb +1 -0
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a9abca61fcc5e7425d37ad1bd59d0bdb3f0756bd9a292eeea4653e0cce147b7
|
4
|
+
data.tar.gz: 27b4ecd7fcf198ed4083a0c85d849ec4c574f5c69dc41697e9e3b305adbb8dc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08f520279227107497d7e72836a17caa32454fae008649818305df83ece07b2700c16a7373350ed37435d653323fa8f542902f92905337b668c08937c2a1b1bb'
|
7
|
+
data.tar.gz: 3d46ee56774bad3892e998a72a96fa30de5aadeeb6cd5fb00310ca9b0df7ab0ff36064574b49077e15a2229ec878aa9d7b75f10369ba53f0623698147ab9f626
|
data/lib/stack_one/hris.rb
CHANGED
@@ -600,6 +600,44 @@ module StackOne
|
|
600
600
|
end
|
601
601
|
|
602
602
|
|
603
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetJobRequest)).returns(::StackOne::Operations::HrisGetJobResponse) }
|
604
|
+
def get_job(request)
|
605
|
+
# get_job - Get Job
|
606
|
+
url, params = @sdk_configuration.get_server_details
|
607
|
+
base_url = Utils.template_url(url, params)
|
608
|
+
url = Utils.generate_url(
|
609
|
+
::StackOne::Operations::HrisGetJobRequest,
|
610
|
+
base_url,
|
611
|
+
'/unified/hris/jobs/{id}',
|
612
|
+
request
|
613
|
+
)
|
614
|
+
headers = Utils.get_headers(request)
|
615
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetJobRequest, request)
|
616
|
+
headers['Accept'] = 'application/json'
|
617
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
618
|
+
|
619
|
+
r = @sdk_configuration.client.get(url) do |req|
|
620
|
+
req.headers = headers
|
621
|
+
req.params = query_params
|
622
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
623
|
+
end
|
624
|
+
|
625
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
626
|
+
|
627
|
+
res = ::StackOne::Operations::HrisGetJobResponse.new(
|
628
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
629
|
+
)
|
630
|
+
if r.status == 200
|
631
|
+
if Utils.match_content_type(content_type, 'application/json')
|
632
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobResult)
|
633
|
+
res.job_result = out
|
634
|
+
end
|
635
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
636
|
+
end
|
637
|
+
res
|
638
|
+
end
|
639
|
+
|
640
|
+
|
603
641
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(::StackOne::Operations::HrisGetLocationResponse) }
|
604
642
|
def get_location(request)
|
605
643
|
# get_location - Get Location
|
@@ -988,6 +1026,39 @@ module StackOne
|
|
988
1026
|
end
|
989
1027
|
|
990
1028
|
|
1029
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListJobsRequest)).returns(::StackOne::Operations::HrisListJobsResponse) }
|
1030
|
+
def list_jobs(request)
|
1031
|
+
# list_jobs - List Jobs
|
1032
|
+
url, params = @sdk_configuration.get_server_details
|
1033
|
+
base_url = Utils.template_url(url, params)
|
1034
|
+
url = "#{base_url}/unified/hris/jobs"
|
1035
|
+
headers = Utils.get_headers(request)
|
1036
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListJobsRequest, request)
|
1037
|
+
headers['Accept'] = 'application/json'
|
1038
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1039
|
+
|
1040
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1041
|
+
req.headers = headers
|
1042
|
+
req.params = query_params
|
1043
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1047
|
+
|
1048
|
+
res = ::StackOne::Operations::HrisListJobsResponse.new(
|
1049
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1050
|
+
)
|
1051
|
+
if r.status == 200
|
1052
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1053
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobsPaginated)
|
1054
|
+
res.jobs_paginated = out
|
1055
|
+
end
|
1056
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1057
|
+
end
|
1058
|
+
res
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
|
991
1062
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(::StackOne::Operations::HrisListLocationsResponse) }
|
992
1063
|
def list_locations(request)
|
993
1064
|
# list_locations - List locations
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetJobRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
22
|
+
# Indicates that the raw request result is returned
|
23
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
28
|
+
@id = id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
@fields_ = fields_
|
31
|
+
@proxy = proxy
|
32
|
+
@raw = raw
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetJobResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The job with the given identifier was retrieved.
|
21
|
+
field :job_result, T.nilable(::StackOne::Shared::JobResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, job_result: T.nilable(::StackOne::Shared::JobResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, job_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@job_result = job_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class HrisListJobsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Use a string with a date to only select results updated after that given date
|
15
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
+
def initialize(updated_after: nil)
|
20
|
+
@updated_after = updated_after
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListJobsRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The account identifier
|
15
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
17
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
|
+
# Filter parameters that allow greater customisation of the list response
|
19
|
+
field :filter, T.nilable(::StackOne::Operations::HrisListJobsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
20
|
+
# The unified cursor
|
21
|
+
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
22
|
+
# The page number of the results to fetch
|
23
|
+
#
|
24
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
25
|
+
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
26
|
+
# The number of results per page
|
27
|
+
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
28
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
29
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
|
+
# Indicates that the raw request result is returned
|
31
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
+
# Use a string with a date to only select results updated after that given date
|
33
|
+
#
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
36
|
+
|
37
|
+
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::HrisListJobsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
40
|
+
@x_account_id = x_account_id
|
41
|
+
@fields_ = fields_
|
42
|
+
@filter = filter
|
43
|
+
@next_ = next_
|
44
|
+
@page = page
|
45
|
+
@page_size = page_size
|
46
|
+
@proxy = proxy
|
47
|
+
@raw = raw
|
48
|
+
@updated_after = updated_after
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListJobsResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The list of jobs was retrieved.
|
21
|
+
field :jobs_paginated, T.nilable(::StackOne::Shared::JobsPaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, jobs_paginated: T.nilable(::StackOne::Shared::JobsPaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, jobs_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@jobs_paginated = jobs_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -169,6 +169,8 @@ module StackOne
|
|
169
169
|
autoload :HrisGetEmploymentResponse, 'stack_one/models/operations/hris_get_employment_response.rb'
|
170
170
|
autoload :HrisGetGroupRequest, 'stack_one/models/operations/hris_get_group_request.rb'
|
171
171
|
autoload :HrisGetGroupResponse, 'stack_one/models/operations/hris_get_group_response.rb'
|
172
|
+
autoload :HrisGetJobRequest, 'stack_one/models/operations/hris_get_job_request.rb'
|
173
|
+
autoload :HrisGetJobResponse, 'stack_one/models/operations/hris_get_job_response.rb'
|
172
174
|
autoload :HrisGetLocationRequest, 'stack_one/models/operations/hris_get_location_request.rb'
|
173
175
|
autoload :HrisGetLocationResponse, 'stack_one/models/operations/hris_get_location_response.rb'
|
174
176
|
autoload :HrisGetTimeOffRequestRequest, 'stack_one/models/operations/hris_get_time_off_request_request.rb'
|
@@ -200,6 +202,9 @@ module StackOne
|
|
200
202
|
autoload :HrisListGroupsQueryParamFilter, 'stack_one/models/operations/hris_list_groups_queryparam_filter.rb'
|
201
203
|
autoload :HrisListGroupsRequest, 'stack_one/models/operations/hris_list_groups_request.rb'
|
202
204
|
autoload :HrisListGroupsResponse, 'stack_one/models/operations/hris_list_groups_response.rb'
|
205
|
+
autoload :HrisListJobsQueryParamFilter, 'stack_one/models/operations/hris_list_jobs_queryparam_filter.rb'
|
206
|
+
autoload :HrisListJobsRequest, 'stack_one/models/operations/hris_list_jobs_request.rb'
|
207
|
+
autoload :HrisListJobsResponse, 'stack_one/models/operations/hris_list_jobs_response.rb'
|
203
208
|
autoload :HrisListLocationsQueryParamFilter, 'stack_one/models/operations/hris_list_locations_queryparam_filter.rb'
|
204
209
|
autoload :HrisListLocationsRequest, 'stack_one/models/operations/hris_list_locations_request.rb'
|
205
210
|
autoload :HrisListLocationsResponse, 'stack_one/models/operations/hris_list_locations_response.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.32'
|
42
|
+
@gen_version = '2.370.2'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.32 2.370.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.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StackOne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -297,6 +297,8 @@ files:
|
|
297
297
|
- lib/stack_one/models/operations/hris_get_employment_response.rb
|
298
298
|
- lib/stack_one/models/operations/hris_get_group_request.rb
|
299
299
|
- lib/stack_one/models/operations/hris_get_group_response.rb
|
300
|
+
- lib/stack_one/models/operations/hris_get_job_request.rb
|
301
|
+
- lib/stack_one/models/operations/hris_get_job_response.rb
|
300
302
|
- lib/stack_one/models/operations/hris_get_location_request.rb
|
301
303
|
- lib/stack_one/models/operations/hris_get_location_response.rb
|
302
304
|
- lib/stack_one/models/operations/hris_get_time_off_request_request.rb
|
@@ -328,6 +330,9 @@ files:
|
|
328
330
|
- lib/stack_one/models/operations/hris_list_groups_queryparam_filter.rb
|
329
331
|
- lib/stack_one/models/operations/hris_list_groups_request.rb
|
330
332
|
- lib/stack_one/models/operations/hris_list_groups_response.rb
|
333
|
+
- lib/stack_one/models/operations/hris_list_jobs_queryparam_filter.rb
|
334
|
+
- lib/stack_one/models/operations/hris_list_jobs_request.rb
|
335
|
+
- lib/stack_one/models/operations/hris_list_jobs_response.rb
|
331
336
|
- lib/stack_one/models/operations/hris_list_locations_queryparam_filter.rb
|
332
337
|
- lib/stack_one/models/operations/hris_list_locations_request.rb
|
333
338
|
- lib/stack_one/models/operations/hris_list_locations_response.rb
|