stackone_client 0.3.2 → 0.3.3

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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/ats.rb +228 -2
  3. data/lib/stack_one/connect_sessions.rb +2 -2
  4. data/lib/stack_one/models/operations/ats_create_background_check_package_request.rb +27 -0
  5. data/lib/stack_one/models/operations/ats_create_background_check_package_response.rb +33 -0
  6. data/lib/stack_one/models/operations/ats_get_assessments_request_response.rb +4 -4
  7. data/lib/stack_one/models/operations/ats_get_background_check_package_request.rb +36 -0
  8. data/lib/stack_one/models/operations/ats_get_background_check_package_response.rb +33 -0
  9. data/lib/stack_one/models/operations/ats_get_background_check_request_request.rb +36 -0
  10. data/lib/stack_one/models/operations/ats_get_background_check_request_response.rb +33 -0
  11. data/lib/stack_one/models/operations/ats_get_background_check_result_request.rb +36 -0
  12. data/lib/stack_one/models/operations/ats_get_background_check_result_response.rb +33 -0
  13. data/lib/stack_one/models/operations/ats_list_background_check_packages_queryparam_filter.rb +24 -0
  14. data/lib/stack_one/models/operations/ats_list_background_check_packages_request.rb +52 -0
  15. data/lib/stack_one/models/operations/ats_list_background_check_packages_response.rb +33 -0
  16. data/lib/stack_one/models/operations/ats_list_background_check_request_queryparam_filter.rb +24 -0
  17. data/lib/stack_one/models/operations/ats_list_background_check_request_request.rb +52 -0
  18. data/lib/stack_one/models/operations/ats_list_background_check_request_response.rb +33 -0
  19. data/lib/stack_one/models/operations/stackone_create_connect_session_response.rb +5 -5
  20. data/lib/stack_one/models/operations.rb +14 -0
  21. data/lib/stack_one/models/shared/application.rb +2 -2
  22. data/lib/stack_one/models/shared/{attachments.rb → assessmentsattachment.rb} +3 -3
  23. data/lib/stack_one/models/shared/{assessmentsresults_content_type.rb → assessmentsattachment_content_type.rb} +3 -3
  24. data/lib/stack_one/models/shared/{assessmentsresults_schemas_value.rb → assessmentsattachment_value.rb} +2 -2
  25. data/lib/stack_one/models/shared/assessmentsorder.rb +45 -0
  26. data/lib/stack_one/models/shared/assessmentsorder_application.rb +30 -0
  27. data/lib/stack_one/models/shared/assessmentsorder_application_status.rb +27 -0
  28. data/lib/stack_one/models/shared/assessmentsorder_candidate.rb +39 -0
  29. data/lib/stack_one/models/shared/assessmentsorder_job.rb +33 -0
  30. data/lib/stack_one/models/shared/assessmentsorder_schemas_value.rb +22 -0
  31. data/lib/stack_one/models/shared/assessmentsorder_type.rb +27 -0
  32. data/lib/stack_one/models/shared/assessmentsorder_value.rb +36 -0
  33. data/lib/stack_one/models/shared/assessmentsorderresult.rb +27 -0
  34. data/lib/stack_one/models/shared/assessmentspackages.rb +3 -3
  35. data/lib/stack_one/models/shared/assessmentspackages_type.rb +1 -1
  36. data/lib/stack_one/models/shared/assessmentspackagestestapimodel.rb +33 -0
  37. data/lib/stack_one/models/shared/assessmentspackagestestapimodel_type.rb +27 -0
  38. data/lib/stack_one/models/shared/assessmentspackagestestapimodel_value.rb +22 -0
  39. data/lib/stack_one/models/shared/assessmentsrequestsjobhiringteamapimodel.rb +36 -0
  40. data/lib/stack_one/models/shared/assessmentsresults.rb +9 -12
  41. data/lib/stack_one/models/shared/assessmentsresults_value.rb +1 -1
  42. data/lib/stack_one/models/shared/atscreatebackgroundcheckpackagesrequestdto.rb +33 -0
  43. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +2 -2
  44. data/lib/stack_one/models/shared/backgroundcheckorder.rb +45 -0
  45. data/lib/stack_one/models/shared/backgroundcheckorder_application.rb +30 -0
  46. data/lib/stack_one/models/shared/backgroundcheckorder_application_status.rb +27 -0
  47. data/lib/stack_one/models/shared/backgroundcheckorder_candidate.rb +39 -0
  48. data/lib/stack_one/models/shared/backgroundcheckorder_job.rb +33 -0
  49. data/lib/stack_one/models/shared/backgroundcheckorder_package.rb +33 -0
  50. data/lib/stack_one/models/shared/backgroundcheckorder_requester.rb +30 -0
  51. data/lib/stack_one/models/shared/backgroundcheckorder_value.rb +36 -0
  52. data/lib/stack_one/models/shared/backgroundcheckorderpaginated.rb +33 -0
  53. data/lib/stack_one/models/shared/backgroundcheckorderresult.rb +27 -0
  54. data/lib/stack_one/models/shared/backgroundcheckpackage.rb +36 -0
  55. data/lib/stack_one/models/shared/backgroundcheckpackagepaginated.rb +33 -0
  56. data/lib/stack_one/models/shared/backgroundcheckpackageresult.rb +27 -0
  57. data/lib/stack_one/models/shared/backgroundcheckresultsresult.rb +48 -0
  58. data/lib/stack_one/models/shared/backgroundcheckresultsresult_candidate.rb +27 -0
  59. data/lib/stack_one/models/shared/backgroundcheckresultsresult_result.rb +27 -0
  60. data/lib/stack_one/models/shared/backgroundcheckresultsresult_value.rb +20 -0
  61. data/lib/stack_one/models/shared/{connectsessiontoken.rb → connectsessiontokenauthlink.rb} +7 -4
  62. data/lib/stack_one/models/shared/{connectsessiontoken_categories.rb → connectsessiontokenauthlink_categories.rb} +1 -1
  63. data/lib/stack_one/models/shared/course.rb +5 -2
  64. data/lib/stack_one/models/shared/createassessmentspackages.rb +30 -0
  65. data/lib/stack_one/models/shared/createassessmentspackages_type.rb +27 -0
  66. data/lib/stack_one/models/shared/createassessmentspackages_value.rb +22 -0
  67. data/lib/stack_one/models/shared/package.rb +33 -0
  68. data/lib/stack_one/models/shared/requester.rb +30 -0
  69. data/lib/stack_one/models/shared/result.rb +2 -2
  70. data/lib/stack_one/models/shared.rb +41 -6
  71. data/lib/stack_one/sdkconfiguration.rb +3 -3
  72. metadata +57 -8
  73. data/lib/stack_one/models/shared/applicationcustomfields.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3323ce63ef9949e4278a94d7670c582dc51daf4080066203ce8d67c1d9f140f9
4
- data.tar.gz: 8edced1fa7ae1568ef37336d16ba097c9d23021b3fb32a940176fd41708114f9
3
+ metadata.gz: 4823c1e2800f1d841501a1455290a4eba8a47209e75d620d2269516e540f82d9
4
+ data.tar.gz: 1d3e547401ea6286d7a0cab7f36dc85b766dfd817051b207c96734d2e63c59de
5
5
  SHA512:
6
- metadata.gz: 5a69af05cdd6c93584387dd8c53162c00e5063a6a641707d1fa8bb5722ba8915f81b85a1a32d458c792616055d24d2a704c6355b2511ef0f227fd5160ecf5cd2
7
- data.tar.gz: 2745e85399531db25f8135508e0a76d6a03a4493a524b5816e39316aa74373030af696bcad8d7d96cd41f3f04b6ce496112b1eab7e48c91ff7c003300f532480
6
+ metadata.gz: 27526304bfc1e773c176add8dac8aa11506fdd85ccce68a2f0831437d752590e5ba103737f29dd1a66e2b6f5457f331680412e636aea4e57be2761e3578e402d
7
+ data.tar.gz: 27898e8c1196a250b5f4f6ca569d9befb87c12bdfc71991cc8bfd5a1d25b7fc9a929b9f69b4528061eedff246a2720b20d3aeb4775d0fde5fed5c216b0e9e4ba
data/lib/stack_one/ats.rb CHANGED
@@ -65,6 +65,52 @@ module StackOne
65
65
  end
66
66
 
67
67
 
68
+ sig { params(ats_create_background_check_packages_request_dto: ::StackOne::Shared::AtsCreateBackgroundCheckPackagesRequestDto, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateBackgroundCheckPackageResponse) }
69
+ def create_background_check_package(ats_create_background_check_packages_request_dto, x_account_id)
70
+ # create_background_check_package - Create Background Check Package
71
+ request = ::StackOne::Operations::AtsCreateBackgroundCheckPackageRequest.new(
72
+
73
+ ats_create_background_check_packages_request_dto: ats_create_background_check_packages_request_dto,
74
+ x_account_id: x_account_id
75
+ )
76
+ url, params = @sdk_configuration.get_server_details
77
+ base_url = Utils.template_url(url, params)
78
+ url = "#{base_url}/unified/ats/background-checks/packages"
79
+ headers = Utils.get_headers(request)
80
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_create_background_check_packages_request_dto, :json)
81
+ headers['content-type'] = req_content_type
82
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
83
+ headers['Accept'] = 'application/json'
84
+ headers['user-agent'] = @sdk_configuration.user_agent
85
+
86
+ r = @sdk_configuration.client.post(url) do |req|
87
+ req.headers = headers
88
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
89
+ if form
90
+ req.body = Utils.encode_form(form)
91
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
92
+ req.body = URI.encode_www_form(data)
93
+ else
94
+ req.body = data
95
+ end
96
+ end
97
+
98
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
99
+
100
+ res = ::StackOne::Operations::AtsCreateBackgroundCheckPackageResponse.new(
101
+ status_code: r.status, content_type: content_type, raw_response: r
102
+ )
103
+ if r.status == 201
104
+ if Utils.match_content_type(content_type, 'application/json')
105
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
106
+ res.create_result = out
107
+ end
108
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
109
+ end
110
+ res
111
+ end
112
+
113
+
68
114
  sig { params(ats_create_candidate_request_dto: ::StackOne::Shared::AtsCreateCandidateRequestDto, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateCandidateResponse) }
69
115
  def create_candidate(ats_create_candidate_request_dto, x_account_id)
70
116
  # create_candidate - Create Candidate
@@ -593,8 +639,8 @@ module StackOne
593
639
  )
594
640
  if r.status == 200
595
641
  if Utils.match_content_type(content_type, 'application/json')
596
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssessmentsResultsResult)
597
- res.assessments_results_result = out
642
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssessmentsOrderResult)
643
+ res.assessments_order_result = out
598
644
  end
599
645
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
600
646
  end
@@ -640,6 +686,120 @@ module StackOne
640
686
  end
641
687
 
642
688
 
689
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetBackgroundCheckPackageRequest)).returns(::StackOne::Operations::AtsGetBackgroundCheckPackageResponse) }
690
+ def get_background_check_package(request)
691
+ # get_background_check_package - Get Background Check Package
692
+ url, params = @sdk_configuration.get_server_details
693
+ base_url = Utils.template_url(url, params)
694
+ url = Utils.generate_url(
695
+ ::StackOne::Operations::AtsGetBackgroundCheckPackageRequest,
696
+ base_url,
697
+ '/unified/ats/background-checks/packages/{id}',
698
+ request
699
+ )
700
+ headers = Utils.get_headers(request)
701
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetBackgroundCheckPackageRequest, request)
702
+ headers['Accept'] = 'application/json'
703
+ headers['user-agent'] = @sdk_configuration.user_agent
704
+
705
+ r = @sdk_configuration.client.get(url) do |req|
706
+ req.headers = headers
707
+ req.params = query_params
708
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
709
+ end
710
+
711
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
712
+
713
+ res = ::StackOne::Operations::AtsGetBackgroundCheckPackageResponse.new(
714
+ status_code: r.status, content_type: content_type, raw_response: r
715
+ )
716
+ if r.status == 200
717
+ if Utils.match_content_type(content_type, 'application/json')
718
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckPackageResult)
719
+ res.background_check_package_result = out
720
+ end
721
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
722
+ end
723
+ res
724
+ end
725
+
726
+
727
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetBackgroundCheckRequestRequest)).returns(::StackOne::Operations::AtsGetBackgroundCheckRequestResponse) }
728
+ def get_background_check_request(request)
729
+ # get_background_check_request - Get Background Check Request
730
+ url, params = @sdk_configuration.get_server_details
731
+ base_url = Utils.template_url(url, params)
732
+ url = Utils.generate_url(
733
+ ::StackOne::Operations::AtsGetBackgroundCheckRequestRequest,
734
+ base_url,
735
+ '/unified/ats/background-checks/orders/{id}',
736
+ request
737
+ )
738
+ headers = Utils.get_headers(request)
739
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetBackgroundCheckRequestRequest, request)
740
+ headers['Accept'] = 'application/json'
741
+ headers['user-agent'] = @sdk_configuration.user_agent
742
+
743
+ r = @sdk_configuration.client.get(url) do |req|
744
+ req.headers = headers
745
+ req.params = query_params
746
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
747
+ end
748
+
749
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
750
+
751
+ res = ::StackOne::Operations::AtsGetBackgroundCheckRequestResponse.new(
752
+ status_code: r.status, content_type: content_type, raw_response: r
753
+ )
754
+ if r.status == 200
755
+ if Utils.match_content_type(content_type, 'application/json')
756
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckOrderResult)
757
+ res.background_check_order_result = out
758
+ end
759
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
760
+ end
761
+ res
762
+ end
763
+
764
+
765
+ sig { params(request: T.nilable(::StackOne::Operations::AtsGetBackgroundCheckResultRequest)).returns(::StackOne::Operations::AtsGetBackgroundCheckResultResponse) }
766
+ def get_background_check_result(request)
767
+ # get_background_check_result - Get Background Check Results
768
+ url, params = @sdk_configuration.get_server_details
769
+ base_url = Utils.template_url(url, params)
770
+ url = Utils.generate_url(
771
+ ::StackOne::Operations::AtsGetBackgroundCheckResultRequest,
772
+ base_url,
773
+ '/unified/ats/background-checks/orders/{id}/results',
774
+ request
775
+ )
776
+ headers = Utils.get_headers(request)
777
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsGetBackgroundCheckResultRequest, request)
778
+ headers['Accept'] = 'application/json'
779
+ headers['user-agent'] = @sdk_configuration.user_agent
780
+
781
+ r = @sdk_configuration.client.get(url) do |req|
782
+ req.headers = headers
783
+ req.params = query_params
784
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
785
+ end
786
+
787
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
788
+
789
+ res = ::StackOne::Operations::AtsGetBackgroundCheckResultResponse.new(
790
+ status_code: r.status, content_type: content_type, raw_response: r
791
+ )
792
+ if r.status == 200
793
+ if Utils.match_content_type(content_type, 'application/json')
794
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckResultsResult)
795
+ res.background_check_results_result = out
796
+ end
797
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
798
+ end
799
+ res
800
+ end
801
+
802
+
643
803
  sig { params(request: T.nilable(::StackOne::Operations::AtsGetCandidateRequest)).returns(::StackOne::Operations::AtsGetCandidateResponse) }
644
804
  def get_candidate(request)
645
805
  # get_candidate - Get Candidate
@@ -1423,6 +1583,72 @@ module StackOne
1423
1583
  end
1424
1584
 
1425
1585
 
1586
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListBackgroundCheckPackagesRequest)).returns(::StackOne::Operations::AtsListBackgroundCheckPackagesResponse) }
1587
+ def list_background_check_packages(request)
1588
+ # list_background_check_packages - List Background Check Packages
1589
+ url, params = @sdk_configuration.get_server_details
1590
+ base_url = Utils.template_url(url, params)
1591
+ url = "#{base_url}/unified/ats/background-checks/packages"
1592
+ headers = Utils.get_headers(request)
1593
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListBackgroundCheckPackagesRequest, request)
1594
+ headers['Accept'] = 'application/json'
1595
+ headers['user-agent'] = @sdk_configuration.user_agent
1596
+
1597
+ r = @sdk_configuration.client.get(url) do |req|
1598
+ req.headers = headers
1599
+ req.params = query_params
1600
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1601
+ end
1602
+
1603
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1604
+
1605
+ res = ::StackOne::Operations::AtsListBackgroundCheckPackagesResponse.new(
1606
+ status_code: r.status, content_type: content_type, raw_response: r
1607
+ )
1608
+ if r.status == 200
1609
+ if Utils.match_content_type(content_type, 'application/json')
1610
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckPackagePaginated)
1611
+ res.background_check_package_paginated = out
1612
+ end
1613
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1614
+ end
1615
+ res
1616
+ end
1617
+
1618
+
1619
+ sig { params(request: T.nilable(::StackOne::Operations::AtsListBackgroundCheckRequestRequest)).returns(::StackOne::Operations::AtsListBackgroundCheckRequestResponse) }
1620
+ def list_background_check_request(request)
1621
+ # list_background_check_request - List Background Check Request
1622
+ url, params = @sdk_configuration.get_server_details
1623
+ base_url = Utils.template_url(url, params)
1624
+ url = "#{base_url}/unified/ats/background-checks/orders"
1625
+ headers = Utils.get_headers(request)
1626
+ query_params = Utils.get_query_params(::StackOne::Operations::AtsListBackgroundCheckRequestRequest, request)
1627
+ headers['Accept'] = 'application/json'
1628
+ headers['user-agent'] = @sdk_configuration.user_agent
1629
+
1630
+ r = @sdk_configuration.client.get(url) do |req|
1631
+ req.headers = headers
1632
+ req.params = query_params
1633
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1634
+ end
1635
+
1636
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1637
+
1638
+ res = ::StackOne::Operations::AtsListBackgroundCheckRequestResponse.new(
1639
+ status_code: r.status, content_type: content_type, raw_response: r
1640
+ )
1641
+ if r.status == 200
1642
+ if Utils.match_content_type(content_type, 'application/json')
1643
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckOrderPaginated)
1644
+ res.background_check_order_paginated = out
1645
+ end
1646
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1647
+ end
1648
+ res
1649
+ end
1650
+
1651
+
1426
1652
  sig { params(request: T.nilable(::StackOne::Operations::AtsListCandidateCustomFieldDefinitionsRequest)).returns(::StackOne::Operations::AtsListCandidateCustomFieldDefinitionsResponse) }
1427
1653
  def list_candidate_custom_field_definitions(request)
1428
1654
  # list_candidate_custom_field_definitions - List Candidate Custom Field Definitions
@@ -92,8 +92,8 @@ module StackOne
92
92
  )
93
93
  if r.status == 201
94
94
  if Utils.match_content_type(content_type, 'application/json')
95
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ConnectSessionToken)
96
- res.connect_session_token = out
95
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ConnectSessionTokenAuthLink)
96
+ res.connect_session_token_auth_link = out
97
97
  end
98
98
  elsif [400, 403, 429, 500, 501].include?(r.status)
99
99
  end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsCreateBackgroundCheckPackageRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :ats_create_background_check_packages_request_dto, ::StackOne::Shared::AtsCreateBackgroundCheckPackagesRequestDto, { 'request': { 'media_type': 'application/json' } }
16
+ # The account identifier
17
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
+
19
+
20
+ sig { params(ats_create_background_check_packages_request_dto: ::StackOne::Shared::AtsCreateBackgroundCheckPackagesRequestDto, x_account_id: ::String).void }
21
+ def initialize(ats_create_background_check_packages_request_dto: nil, x_account_id: nil)
22
+ @ats_create_background_check_packages_request_dto = ats_create_background_check_packages_request_dto
23
+ @x_account_id = x_account_id
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsCreateBackgroundCheckPackageResponse < ::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
+ # Record created successfully.
21
+ field :create_result, T.nilable(::StackOne::Shared::CreateResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, create_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @create_result = create_result
30
+ end
31
+ end
32
+ end
33
+ end
@@ -18,15 +18,15 @@ module StackOne
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # The assessments order with the given identifier was retrieved.
21
- field :assessments_results_result, T.nilable(::StackOne::Shared::AssessmentsResultsResult)
21
+ field :assessments_order_result, T.nilable(::StackOne::Shared::AssessmentsOrderResult)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, assessments_results_result: T.nilable(::StackOne::Shared::AssessmentsResultsResult)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, assessments_results_result: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, assessments_order_result: T.nilable(::StackOne::Shared::AssessmentsOrderResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, assessments_order_result: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @assessments_results_result = assessments_results_result
29
+ @assessments_order_result = assessments_order_result
30
30
  end
31
31
  end
32
32
  end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsGetBackgroundCheckPackageRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+ # The account identifier
17
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
21
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
22
+ # Indicates that the raw request result is returned
23
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
24
+
25
+
26
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
27
+ def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
28
+ @id = id
29
+ @x_account_id = x_account_id
30
+ @fields_ = fields_
31
+ @proxy = proxy
32
+ @raw = raw
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsGetBackgroundCheckPackageResponse < ::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 background check package with the given identifier was retrieved.
21
+ field :background_check_package_result, T.nilable(::StackOne::Shared::BackgroundCheckPackageResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, background_check_package_result: T.nilable(::StackOne::Shared::BackgroundCheckPackageResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, background_check_package_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @background_check_package_result = background_check_package_result
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsGetBackgroundCheckRequestRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+ # The account identifier
17
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
21
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
22
+ # Indicates that the raw request result is returned
23
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
24
+
25
+
26
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
27
+ def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
28
+ @id = id
29
+ @x_account_id = x_account_id
30
+ @fields_ = fields_
31
+ @proxy = proxy
32
+ @raw = raw
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsGetBackgroundCheckRequestResponse < ::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 background check order with the given identifier was retrieved.
21
+ field :background_check_order_result, T.nilable(::StackOne::Shared::BackgroundCheckOrderResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, background_check_order_result: T.nilable(::StackOne::Shared::BackgroundCheckOrderResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, background_check_order_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @background_check_order_result = background_check_order_result
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsGetBackgroundCheckResultRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+ # The account identifier
17
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
21
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
22
+ # Indicates that the raw request result is returned
23
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
24
+
25
+
26
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
27
+ def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
28
+ @id = id
29
+ @x_account_id = x_account_id
30
+ @fields_ = fields_
31
+ @proxy = proxy
32
+ @raw = raw
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsGetBackgroundCheckResultResponse < ::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 background check result with the given identifier was retrieved.
21
+ field :background_check_results_result, T.nilable(::StackOne::Shared::BackgroundCheckResultsResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, background_check_results_result: T.nilable(::StackOne::Shared::BackgroundCheckResultsResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, background_check_results_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @background_check_results_result = background_check_results_result
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+ # Filter parameters that allow greater customisation of the list response
11
+ class AtsListBackgroundCheckPackagesQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Use a string with a date to only select results updated after that given date
15
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
16
+
17
+
18
+ sig { params(updated_after: T.nilable(::String)).void }
19
+ def initialize(updated_after: nil)
20
+ @updated_after = updated_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,52 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsListBackgroundCheckPackagesRequest < ::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::AtsListBackgroundCheckPackagesQueryParamFilter), { '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::AtsListBackgroundCheckPackagesQueryParamFilter), 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