stackone_client 0.3.2 → 0.4.0

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/accounts.rb +5 -0
  3. data/lib/stack_one/ats.rb +290 -3
  4. data/lib/stack_one/connect_sessions.rb +4 -2
  5. data/lib/stack_one/connectors.rb +2 -0
  6. data/lib/stack_one/crm.rb +10 -0
  7. data/lib/stack_one/hris.rb +46 -2
  8. data/lib/stack_one/iam.rb +8 -0
  9. data/lib/stack_one/lms.rb +25 -0
  10. data/lib/stack_one/marketing.rb +26 -0
  11. data/lib/stack_one/models/operations/ats_create_background_check_package_request.rb +27 -0
  12. data/lib/stack_one/models/operations/ats_create_background_check_package_response.rb +33 -0
  13. data/lib/stack_one/models/operations/ats_get_assessments_request_response.rb +4 -4
  14. data/lib/stack_one/models/operations/ats_get_background_check_package_request.rb +36 -0
  15. data/lib/stack_one/models/operations/ats_get_background_check_package_response.rb +33 -0
  16. data/lib/stack_one/models/operations/ats_get_background_check_request_request.rb +36 -0
  17. data/lib/stack_one/models/operations/ats_get_background_check_request_response.rb +33 -0
  18. data/lib/stack_one/models/operations/ats_get_background_check_result_request.rb +36 -0
  19. data/lib/stack_one/models/operations/ats_get_background_check_result_response.rb +33 -0
  20. data/lib/stack_one/models/operations/ats_list_background_check_packages_queryparam_filter.rb +24 -0
  21. data/lib/stack_one/models/operations/ats_list_background_check_packages_request.rb +52 -0
  22. data/lib/stack_one/models/operations/ats_list_background_check_packages_response.rb +33 -0
  23. data/lib/stack_one/models/operations/ats_list_background_check_request_queryparam_filter.rb +24 -0
  24. data/lib/stack_one/models/operations/ats_list_background_check_request_request.rb +52 -0
  25. data/lib/stack_one/models/operations/ats_list_background_check_request_response.rb +33 -0
  26. data/lib/stack_one/models/operations/stackone_create_connect_session_response.rb +5 -5
  27. data/lib/stack_one/models/operations.rb +14 -0
  28. data/lib/stack_one/models/shared/application.rb +2 -2
  29. data/lib/stack_one/models/shared/{attachments.rb → assessmentsattachment.rb} +3 -3
  30. data/lib/stack_one/models/shared/{assessmentsresults_content_type.rb → assessmentsattachment_content_type.rb} +3 -3
  31. data/lib/stack_one/models/shared/{assessmentsresults_schemas_value.rb → assessmentsattachment_value.rb} +2 -2
  32. data/lib/stack_one/models/shared/assessmentsorder.rb +45 -0
  33. data/lib/stack_one/models/shared/assessmentsorder_application.rb +30 -0
  34. data/lib/stack_one/models/shared/assessmentsorder_application_status.rb +27 -0
  35. data/lib/stack_one/models/shared/assessmentsorder_candidate.rb +39 -0
  36. data/lib/stack_one/models/shared/assessmentsorder_job.rb +33 -0
  37. data/lib/stack_one/models/shared/assessmentsorder_schemas_value.rb +22 -0
  38. data/lib/stack_one/models/shared/assessmentsorder_type.rb +27 -0
  39. data/lib/stack_one/models/shared/assessmentsorder_value.rb +36 -0
  40. data/lib/stack_one/models/shared/assessmentsorderresult.rb +27 -0
  41. data/lib/stack_one/models/shared/assessmentspackages.rb +3 -3
  42. data/lib/stack_one/models/shared/assessmentspackages_type.rb +1 -1
  43. data/lib/stack_one/models/shared/assessmentspackagestestapimodel.rb +33 -0
  44. data/lib/stack_one/models/shared/assessmentspackagestestapimodel_type.rb +27 -0
  45. data/lib/stack_one/models/shared/assessmentspackagestestapimodel_value.rb +22 -0
  46. data/lib/stack_one/models/shared/assessmentsrequestsjobhiringteamapimodel.rb +36 -0
  47. data/lib/stack_one/models/shared/assessmentsresults.rb +9 -12
  48. data/lib/stack_one/models/shared/assessmentsresults_value.rb +1 -1
  49. data/lib/stack_one/models/shared/atscreatebackgroundcheckpackagesrequestdto.rb +33 -0
  50. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +2 -2
  51. data/lib/stack_one/models/shared/backgroundcheckorder.rb +45 -0
  52. data/lib/stack_one/models/shared/backgroundcheckorder_application.rb +30 -0
  53. data/lib/stack_one/models/shared/backgroundcheckorder_application_status.rb +27 -0
  54. data/lib/stack_one/models/shared/backgroundcheckorder_candidate.rb +39 -0
  55. data/lib/stack_one/models/shared/backgroundcheckorder_job.rb +33 -0
  56. data/lib/stack_one/models/shared/backgroundcheckorder_package.rb +33 -0
  57. data/lib/stack_one/models/shared/backgroundcheckorder_requester.rb +30 -0
  58. data/lib/stack_one/models/shared/backgroundcheckorder_value.rb +36 -0
  59. data/lib/stack_one/models/shared/backgroundcheckorderpaginated.rb +33 -0
  60. data/lib/stack_one/models/shared/backgroundcheckorderresult.rb +27 -0
  61. data/lib/stack_one/models/shared/backgroundcheckpackage.rb +36 -0
  62. data/lib/stack_one/models/shared/backgroundcheckpackagepaginated.rb +33 -0
  63. data/lib/stack_one/models/shared/backgroundcheckpackageresult.rb +27 -0
  64. data/lib/stack_one/models/shared/backgroundcheckresultsresult.rb +48 -0
  65. data/lib/stack_one/models/shared/backgroundcheckresultsresult_candidate.rb +27 -0
  66. data/lib/stack_one/models/shared/backgroundcheckresultsresult_result.rb +27 -0
  67. data/lib/stack_one/models/shared/backgroundcheckresultsresult_value.rb +20 -0
  68. data/lib/stack_one/models/shared/categories.rb +1 -1
  69. data/lib/stack_one/models/shared/condition_type.rb +27 -0
  70. data/lib/stack_one/models/shared/connectorsmeta_category.rb +1 -1
  71. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -1
  72. data/lib/stack_one/models/shared/{connectsessiontoken.rb → connectsessiontokenauthlink.rb} +7 -4
  73. data/lib/stack_one/models/shared/{connectsessiontoken_categories.rb → connectsessiontokenauthlink_categories.rb} +2 -2
  74. data/lib/stack_one/models/shared/course.rb +5 -2
  75. data/lib/stack_one/models/shared/createassessmentspackages.rb +30 -0
  76. data/lib/stack_one/models/shared/createassessmentspackages_type.rb +27 -0
  77. data/lib/stack_one/models/shared/createassessmentspackages_value.rb +22 -0
  78. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -1
  79. data/lib/stack_one/models/shared/package.rb +33 -0
  80. data/lib/stack_one/models/shared/parent_question.rb +33 -0
  81. data/lib/stack_one/models/shared/pushmessages_message_content.rb +8 -2
  82. data/lib/stack_one/models/shared/question.rb +5 -2
  83. data/lib/stack_one/models/shared/question_schemas_value.rb +18 -0
  84. data/lib/stack_one/models/shared/requester.rb +30 -0
  85. data/lib/stack_one/models/shared/result.rb +2 -2
  86. data/lib/stack_one/models/shared.rb +44 -6
  87. data/lib/stack_one/proxy.rb +1 -1
  88. data/lib/stack_one/sdkconfiguration.rb +3 -3
  89. data/lib/stack_one/webhooks.rb +1 -0
  90. metadata +62 -10
  91. data/lib/stack_one/models/shared/applicationcustomfields.rb +0 -39
@@ -61,6 +61,7 @@ module StackOne
61
61
  end
62
62
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
63
63
  end
64
+
64
65
  res
65
66
  end
66
67
 
@@ -107,6 +108,7 @@ module StackOne
107
108
  end
108
109
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
109
110
  end
111
+
110
112
  res
111
113
  end
112
114
 
@@ -153,6 +155,7 @@ module StackOne
153
155
  end
154
156
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
155
157
  end
158
+
156
159
  res
157
160
  end
158
161
 
@@ -201,6 +204,7 @@ module StackOne
201
204
  end
202
205
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
203
206
  end
207
+
204
208
  res
205
209
  end
206
210
 
@@ -247,6 +251,7 @@ module StackOne
247
251
  end
248
252
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
249
253
  end
254
+
250
255
  res
251
256
  end
252
257
 
@@ -293,6 +298,7 @@ module StackOne
293
298
  end
294
299
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
295
300
  end
301
+
296
302
  res
297
303
  end
298
304
 
@@ -331,6 +337,7 @@ module StackOne
331
337
  end
332
338
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
333
339
  end
340
+
334
341
  res
335
342
  end
336
343
 
@@ -369,6 +376,7 @@ module StackOne
369
376
  end
370
377
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
371
378
  end
379
+
372
380
  res
373
381
  end
374
382
 
@@ -407,6 +415,7 @@ module StackOne
407
415
  end
408
416
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
409
417
  end
418
+
410
419
  res
411
420
  end
412
421
 
@@ -445,6 +454,7 @@ module StackOne
445
454
  end
446
455
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
447
456
  end
457
+
448
458
  res
449
459
  end
450
460
 
@@ -485,6 +495,7 @@ module StackOne
485
495
  end
486
496
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
487
497
  end
498
+
488
499
  res
489
500
  end
490
501
 
@@ -523,6 +534,7 @@ module StackOne
523
534
  end
524
535
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
525
536
  end
537
+
526
538
  res
527
539
  end
528
540
 
@@ -561,6 +573,7 @@ module StackOne
561
573
  end
562
574
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
563
575
  end
576
+
564
577
  res
565
578
  end
566
579
 
@@ -594,6 +607,7 @@ module StackOne
594
607
  end
595
608
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
596
609
  end
610
+
597
611
  res
598
612
  end
599
613
 
@@ -627,6 +641,7 @@ module StackOne
627
641
  end
628
642
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
629
643
  end
644
+
630
645
  res
631
646
  end
632
647
 
@@ -660,6 +675,7 @@ module StackOne
660
675
  end
661
676
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
662
677
  end
678
+
663
679
  res
664
680
  end
665
681
 
@@ -693,6 +709,7 @@ module StackOne
693
709
  end
694
710
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
695
711
  end
712
+
696
713
  res
697
714
  end
698
715
 
@@ -728,6 +745,7 @@ module StackOne
728
745
  end
729
746
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
730
747
  end
748
+
731
749
  res
732
750
  end
733
751
 
@@ -761,6 +779,7 @@ module StackOne
761
779
  end
762
780
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
763
781
  end
782
+
764
783
  res
765
784
  end
766
785
 
@@ -794,6 +813,7 @@ module StackOne
794
813
  end
795
814
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
796
815
  end
816
+
797
817
  res
798
818
  end
799
819
 
@@ -846,6 +866,7 @@ module StackOne
846
866
  end
847
867
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
848
868
  end
869
+
849
870
  res
850
871
  end
851
872
 
@@ -898,6 +919,7 @@ module StackOne
898
919
  end
899
920
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
900
921
  end
922
+
901
923
  res
902
924
  end
903
925
 
@@ -950,6 +972,7 @@ module StackOne
950
972
  end
951
973
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
952
974
  end
975
+
953
976
  res
954
977
  end
955
978
 
@@ -1004,6 +1027,7 @@ module StackOne
1004
1027
  end
1005
1028
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1006
1029
  end
1030
+
1007
1031
  res
1008
1032
  end
1009
1033
 
@@ -1056,6 +1080,7 @@ module StackOne
1056
1080
  end
1057
1081
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1058
1082
  end
1083
+
1059
1084
  res
1060
1085
  end
1061
1086
 
@@ -1108,6 +1133,7 @@ module StackOne
1108
1133
  end
1109
1134
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1110
1135
  end
1136
+
1111
1137
  res
1112
1138
  end
1113
1139
  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
@@ -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 AtsListBackgroundCheckPackagesResponse < ::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 background check packages was retrieved.
21
+ field :background_check_package_paginated, T.nilable(::StackOne::Shared::BackgroundCheckPackagePaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, background_check_package_paginated: T.nilable(::StackOne::Shared::BackgroundCheckPackagePaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, background_check_package_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @background_check_package_paginated = background_check_package_paginated
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 AtsListBackgroundCheckRequestQueryParamFilter < ::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