stackone_client 0.2.30 → 0.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d3720277cedbdb4ec7cd4b613b76963d49d1a8b9be33fdcde8732ada5f7cec4
4
- data.tar.gz: 77ddd4bfe9c9ed0876c0a0759f6c384fbfc0400cd55e86536734205749b259a5
3
+ metadata.gz: 4f6e65d2f035a2cd08998a5d0a0567d5c932d03a75d0fae0a681bc79578ef3c5
4
+ data.tar.gz: d121ab32a8f3fd4de564b4c2e5018ccd009799b730d58a0eb1eeebba4cc7aa39
5
5
  SHA512:
6
- metadata.gz: b34aea123e43760a03a40e58cf8a5dba38c1131453bdef30d7e1b284766b52bb90c191ca841487a8c4f21c0c2816077a806bc20761e4a1f9953178f44318821c
7
- data.tar.gz: bad5d42b2dc39594c80a5665d212bcbb4a0e6d190ec9894da3abaa2f599c14535763a1eb66b5302911cc4871fe957b5ac96b5d70e45a6246285d04692034ffed
6
+ metadata.gz: 79bafe1a3c7422d5fbc45aca206476906193e7e6287028ca1d652cd43716a39b8e1e5ec76f1544325fc8e1d79a6b52201906acae291c43a60e61a83481735089
7
+ data.tar.gz: f1b69bf6136321f021e88b9619f56a174f7b89dbc341965dd35c42b4ecb70786219582ca7af683ce1e21ecdc6e960a87fd1719fa4f78fa858a91ebfd6d8d8c0e
@@ -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'
@@ -14,6 +14,7 @@ module StackOne
14
14
  TEAM = new('team')
15
15
  DEPARTMENT = new('department')
16
16
  GROUP = new('group')
17
+ ORGANIZATION = new('organization')
17
18
  UNMAPPED_VALUE = new('unmapped_value')
18
19
  end
19
20
  end
@@ -14,6 +14,7 @@ module StackOne
14
14
  TEAM = new('team')
15
15
  DEPARTMENT = new('department')
16
16
  GROUP = new('group')
17
+ ORGANIZATION = new('organization')
17
18
  UNMAPPED_VALUE = new('unmapped_value')
18
19
  end
19
20
  end
@@ -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.30'
42
- @gen_version = '2.354.2'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.30 2.354.2 1.0.0 stackone_client'
41
+ @sdk_version = '0.2.31'
42
+ @gen_version = '2.359.6'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.31 2.359.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.30
4
+ version: 0.2.31
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-01 00:00:00.000000000 Z
11
+ date: 2024-07-08 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