stackone_client 0.2.26 → 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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/ats.rb +71 -0
  3. data/lib/stack_one/hris.rb +71 -0
  4. data/lib/stack_one/models/operations/ats_get_list_request.rb +36 -0
  5. data/lib/stack_one/models/operations/ats_get_list_response.rb +33 -0
  6. data/lib/stack_one/models/operations/ats_list_lists_queryparam_filter.rb +24 -0
  7. data/lib/stack_one/models/operations/ats_list_lists_request.rb +52 -0
  8. data/lib/stack_one/models/operations/ats_list_lists_response.rb +33 -0
  9. data/lib/stack_one/models/operations/hris_get_employee_document_category_request.rb +36 -0
  10. data/lib/stack_one/models/operations/hris_get_employee_document_category_response.rb +33 -0
  11. data/lib/stack_one/models/operations/hris_list_employee_categories_queryparam_filter.rb +24 -0
  12. data/lib/stack_one/models/operations/hris_list_employee_categories_request.rb +52 -0
  13. data/lib/stack_one/models/operations/hris_list_employee_categories_response.rb +33 -0
  14. data/lib/stack_one/models/operations.rb +10 -0
  15. data/lib/stack_one/models/shared/account.rb +5 -2
  16. data/lib/stack_one/models/shared/application.rb +20 -2
  17. data/lib/stack_one/models/shared/candidate.rb +5 -2
  18. data/lib/stack_one/models/shared/contact.rb +8 -2
  19. data/lib/stack_one/models/shared/contactscustomfields.rb +5 -2
  20. data/lib/stack_one/models/shared/employee.rb +5 -2
  21. data/lib/stack_one/models/shared/employeecustomfields.rb +5 -2
  22. data/lib/stack_one/models/shared/employment.rb +5 -2
  23. data/lib/stack_one/models/shared/groups.rb +5 -2
  24. data/lib/stack_one/models/shared/home_location.rb +5 -2
  25. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
  26. data/lib/stack_one/models/shared/hrisgroup.rb +5 -2
  27. data/lib/stack_one/models/shared/hrislocation.rb +5 -2
  28. data/lib/stack_one/models/shared/interview.rb +11 -2
  29. data/lib/stack_one/models/shared/interviewpart.rb +5 -2
  30. data/lib/stack_one/models/shared/job.rb +8 -2
  31. data/lib/stack_one/models/shared/jobhiringteam.rb +5 -2
  32. data/lib/stack_one/models/shared/jobposting.rb +5 -2
  33. data/lib/stack_one/models/shared/list.rb +2 -2
  34. data/lib/stack_one/models/shared/listitem.rb +27 -0
  35. data/lib/stack_one/models/shared/note.rb +5 -2
  36. data/lib/stack_one/models/shared/offer.rb +5 -2
  37. data/lib/stack_one/models/shared/reference.rb +30 -0
  38. data/lib/stack_one/models/shared/referencepaginated.rb +33 -0
  39. data/lib/stack_one/models/shared/referenceresult.rb +27 -0
  40. data/lib/stack_one/models/shared/scorecard.rb +14 -2
  41. data/lib/stack_one/models/shared/timeoff.rb +8 -2
  42. data/lib/stack_one/models/shared/work_location.rb +5 -2
  43. data/lib/stack_one/models/shared.rb +9 -5
  44. data/lib/stack_one/sdkconfiguration.rb +3 -3
  45. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebd8a8b9ddac796818a58dab1c0b74141300e009b1bc5aa7506c1bc6ba4b568e
4
- data.tar.gz: ce258982a3e6d4747573e2065a6c410b530e8cee7fac4f18895fc4b39820a9a6
3
+ metadata.gz: 451575c5c2030cafdd9f96ed880842ccb40f39bb642ee91f56460ce063ed6080
4
+ data.tar.gz: c99773af1420cd5232d5640843772d4613fcabea37a12311c1a7f8b98849119c
5
5
  SHA512:
6
- metadata.gz: 2cb6f8d43a86db2a81114b99bf912edc3907f5d063cf90bbbf9411545c3022754a42a0c1a8d2b434b43bd3254a3624c25d2b602874edb53dbac31e7b9a733640
7
- data.tar.gz: 0752b3236c121406fbc58c9c9e8c2e15602066e843bfcbd4730f3d64a9b971be513de63fc964691d40e991440291f28b9dd4861cbbff479caa5f2b6924371555
6
+ metadata.gz: 89a83fa7a1ca8c38783c98b1f6663b14352d39c5ea36612921d5abf0312e5c14b9ec9d1ab647b505f66463b3a35e2f6bc4e32c46f2b91518cf8fe6e68a7eefa0
7
+ data.tar.gz: ec7a44f5b6b7bda92314e63f3c58173c6d6d826d0d8f87ba52f5819c2d248ab8ae14a07fb71d6ce94edccb7d53a0907a5ed1c66fe3ba4e29603e9f9d4adffd99
data/lib/stack_one/ats.rb CHANGED
@@ -670,6 +670,44 @@ module StackOne
670
670
  end
671
671
 
672
672
 
673
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetListRequest)).returns(::StackOne::Operations::AtsGetListResponse) }
674
+ def get_list(request)
675
+ # get_list - Get List
676
+ url, params = @sdk_configuration.get_server_details
677
+ base_url = Utils.template_url(url, params)
678
+ url = Utils.generate_url(
679
+ ::StackOne::Operations::AtsGetListRequest,
680
+ base_url,
681
+ '/unified/ats/lists/{id}',
682
+ request
683
+ )
684
+ headers = Utils.get_headers(request)
685
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetListRequest, request)
686
+ headers['Accept'] = 'application/json'
687
+ headers['user-agent'] = @sdk_configuration.user_agent
688
+
689
+ r = @sdk_configuration.client.get(url) do |req|
690
+ req.headers = headers
691
+ req.params = query_params
692
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
693
+ end
694
+
695
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
696
+
697
+ res = ::StackOne::Operations::AtsGetListResponse.new(
698
+ status_code: r.status, content_type: content_type, raw_response: r
699
+ )
700
+ if r.status == 200
701
+ if Utils.match_content_type(content_type, 'application/json')
702
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ListResult)
703
+ res.list_result = out
704
+ end
705
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
706
+ end
707
+ res
708
+ end
709
+
710
+
673
711
  sig { params(request: T.nilable(::StackOne::Operations::AtsGetLocationRequest)).returns(::StackOne::Operations::AtsGetLocationResponse) }
674
712
  def get_location(request)
675
713
  # get_location - Get Location
@@ -1205,6 +1243,39 @@ module StackOne
1205
1243
  end
1206
1244
 
1207
1245
 
1246
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListListsRequest)).returns(::StackOne::Operations::AtsListListsResponse) }
1247
+ def list_lists(request)
1248
+ # list_lists - Get all Lists
1249
+ url, params = @sdk_configuration.get_server_details
1250
+ base_url = Utils.template_url(url, params)
1251
+ url = "#{base_url}/unified/ats/lists"
1252
+ headers = Utils.get_headers(request)
1253
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListListsRequest, request)
1254
+ headers['Accept'] = 'application/json'
1255
+ headers['user-agent'] = @sdk_configuration.user_agent
1256
+
1257
+ r = @sdk_configuration.client.get(url) do |req|
1258
+ req.headers = headers
1259
+ req.params = query_params
1260
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1261
+ end
1262
+
1263
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1264
+
1265
+ res = ::StackOne::Operations::AtsListListsResponse.new(
1266
+ status_code: r.status, content_type: content_type, raw_response: r
1267
+ )
1268
+ if r.status == 200
1269
+ if Utils.match_content_type(content_type, 'application/json')
1270
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ListsPaginated)
1271
+ res.lists_paginated = out
1272
+ end
1273
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1274
+ end
1275
+ res
1276
+ end
1277
+
1278
+
1208
1279
  sig { params(request: T.nilable(::StackOne::Operations::AtsListLocationsRequest)).returns(::StackOne::Operations::AtsListLocationsResponse) }
1209
1280
  def list_locations(request)
1210
1281
  # list_locations - List locations
@@ -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 AtsGetListRequest < ::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 AtsGetListResponse < ::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 with the given identifier was retrieved.
21
+ field :list_result, T.nilable(::StackOne::Shared::ListResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, list_result: T.nilable(::StackOne::Shared::ListResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, list_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @list_result = list_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 AtsListListsQueryParamFilter < ::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 AtsListListsRequest < ::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::AtsListListsQueryParamFilter), { '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::AtsListListsQueryParamFilter), 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 AtsListListsResponse < ::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 collection of lists was retrieved.
21
+ field :lists_paginated, T.nilable(::StackOne::Shared::ListsPaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, lists_paginated: T.nilable(::StackOne::Shared::ListsPaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, lists_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @lists_paginated = lists_paginated
30
+ end
31
+ end
32
+ end
33
+ end
@@ -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
@@ -53,6 +53,8 @@ module StackOne
53
53
  autoload :AtsGetJobResponse, 'stack_one/models/operations/ats_get_job_response.rb'
54
54
  autoload :AtsGetJobPostingRequest, 'stack_one/models/operations/ats_get_job_posting_request.rb'
55
55
  autoload :AtsGetJobPostingResponse, 'stack_one/models/operations/ats_get_job_posting_response.rb'
56
+ autoload :AtsGetListRequest, 'stack_one/models/operations/ats_get_list_request.rb'
57
+ autoload :AtsGetListResponse, 'stack_one/models/operations/ats_get_list_response.rb'
56
58
  autoload :AtsGetLocationRequest, 'stack_one/models/operations/ats_get_location_request.rb'
57
59
  autoload :AtsGetLocationResponse, 'stack_one/models/operations/ats_get_location_response.rb'
58
60
  autoload :AtsGetOfferRequest, 'stack_one/models/operations/ats_get_offer_request.rb'
@@ -94,6 +96,9 @@ module StackOne
94
96
  autoload :AtsListJobsQueryParamFilter, 'stack_one/models/operations/ats_list_jobs_queryparam_filter.rb'
95
97
  autoload :AtsListJobsRequest, 'stack_one/models/operations/ats_list_jobs_request.rb'
96
98
  autoload :AtsListJobsResponse, 'stack_one/models/operations/ats_list_jobs_response.rb'
99
+ autoload :AtsListListsQueryParamFilter, 'stack_one/models/operations/ats_list_lists_queryparam_filter.rb'
100
+ autoload :AtsListListsRequest, 'stack_one/models/operations/ats_list_lists_request.rb'
101
+ autoload :AtsListListsResponse, 'stack_one/models/operations/ats_list_lists_response.rb'
97
102
  autoload :AtsListLocationsQueryParamFilter, 'stack_one/models/operations/ats_list_locations_queryparam_filter.rb'
98
103
  autoload :AtsListLocationsRequest, 'stack_one/models/operations/ats_list_locations_request.rb'
99
104
  autoload :AtsListLocationsResponse, 'stack_one/models/operations/ats_list_locations_response.rb'
@@ -149,6 +154,8 @@ module StackOne
149
154
  autoload :HrisGetEmployeeResponse, 'stack_one/models/operations/hris_get_employee_response.rb'
150
155
  autoload :HrisGetEmployeeDocumentRequest, 'stack_one/models/operations/hris_get_employee_document_request.rb'
151
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'
152
159
  autoload :HrisGetEmployeesTimeOffRequestRequest, 'stack_one/models/operations/hris_get_employees_time_off_request_request.rb'
153
160
  autoload :HrisGetEmployeesTimeOffRequestResponse, 'stack_one/models/operations/hris_get_employees_time_off_request_response.rb'
154
161
  autoload :HrisGetEmployeesWorkEligibilityRequest, 'stack_one/models/operations/hris_get_employees_work_eligibility_request.rb'
@@ -167,6 +174,9 @@ module StackOne
167
174
  autoload :HrisListCompaniesQueryParamFilter, 'stack_one/models/operations/hris_list_companies_queryparam_filter.rb'
168
175
  autoload :HrisListCompaniesRequest, 'stack_one/models/operations/hris_list_companies_request.rb'
169
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'
170
180
  autoload :HrisListEmployeeDocumentsQueryParamFilter, 'stack_one/models/operations/hris_list_employee_documents_queryparam_filter.rb'
171
181
  autoload :HrisListEmployeeDocumentsRequest, 'stack_one/models/operations/hris_list_employee_documents_request.rb'
172
182
  autoload :HrisListEmployeeDocumentsResponse, 'stack_one/models/operations/hris_list_employee_documents_response.rb'
@@ -31,14 +31,16 @@ module StackOne
31
31
  field :phone_numbers, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_numbers') } }
32
32
  # Provider's unique identifier
33
33
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
34
+ # Provider's unique identifier of the owner
35
+ field :remote_owner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_owner_id') } }
34
36
  # Timestamp when the account was last updated
35
37
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
36
38
 
37
39
  field :website, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('website') } }
38
40
 
39
41
 
40
- sig { params(addresses: T.nilable(T::Array[::StackOne::Shared::AccountAddress]), annual_revenue: T.nilable(::String), created_at: T.nilable(::DateTime), description: T.nilable(::String), id: T.nilable(::String), industries: T.nilable(T::Array[::String]), name: T.nilable(::String), owner_id: T.nilable(::String), phone_numbers: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), updated_at: T.nilable(::DateTime), website: T.nilable(::String)).void }
41
- def initialize(addresses: nil, annual_revenue: nil, created_at: nil, description: nil, id: nil, industries: nil, name: nil, owner_id: nil, phone_numbers: nil, remote_id: nil, updated_at: nil, website: nil)
42
+ sig { params(addresses: T.nilable(T::Array[::StackOne::Shared::AccountAddress]), annual_revenue: T.nilable(::String), created_at: T.nilable(::DateTime), description: T.nilable(::String), id: T.nilable(::String), industries: T.nilable(T::Array[::String]), name: T.nilable(::String), owner_id: T.nilable(::String), phone_numbers: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), remote_owner_id: T.nilable(::String), updated_at: T.nilable(::DateTime), website: T.nilable(::String)).void }
43
+ def initialize(addresses: nil, annual_revenue: nil, created_at: nil, description: nil, id: nil, industries: nil, name: nil, owner_id: nil, phone_numbers: nil, remote_id: nil, remote_owner_id: nil, updated_at: nil, website: nil)
42
44
  @addresses = addresses
43
45
  @annual_revenue = annual_revenue
44
46
  @created_at = created_at
@@ -49,6 +51,7 @@ module StackOne
49
51
  @owner_id = owner_id
50
52
  @phone_numbers = phone_numbers
51
53
  @remote_id = remote_id
54
+ @remote_owner_id = remote_owner_id
52
55
  @updated_at = updated_at
53
56
  @website = website
54
57
  end