stackone_client 0.2.35 → 0.2.37

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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/accounts.rb +4 -4
  3. data/lib/stack_one/ats.rb +78 -2
  4. data/lib/stack_one/hris.rb +76 -0
  5. data/lib/stack_one/lms.rb +246 -22
  6. data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +60 -0
  7. data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_response.rb +33 -0
  8. data/lib/stack_one/models/operations/ats_get_assessments_request_request.rb +1 -1
  9. data/lib/stack_one/models/operations/ats_get_assessments_result_request.rb +1 -1
  10. data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +60 -0
  11. data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_response.rb +33 -0
  12. data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_queryparam_filter.rb +24 -0
  13. data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb +2 -2
  14. data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_filter.rb +24 -0
  15. data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +2 -2
  16. data/lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb +5 -2
  17. data/lib/stack_one/models/operations/hris_get_employee_employment_request.rb +42 -0
  18. data/lib/stack_one/models/operations/hris_get_employee_employment_response.rb +33 -0
  19. data/lib/stack_one/models/operations/hris_list_employee_employments_queryparam_filter.rb +24 -0
  20. data/lib/stack_one/models/operations/hris_list_employee_employments_request.rb +58 -0
  21. data/lib/stack_one/models/operations/hris_list_employee_employments_response.rb +33 -0
  22. data/lib/stack_one/models/operations/lms_create_completion_request.rb +5 -2
  23. data/lib/stack_one/models/operations/lms_get_assignment_request.rb +39 -0
  24. data/lib/stack_one/models/operations/{lms_get_completion_response.rb → lms_get_assignment_response.rb} +6 -6
  25. data/lib/stack_one/models/operations/lms_get_course_request.rb +36 -0
  26. data/lib/stack_one/models/operations/lms_get_course_response.rb +33 -0
  27. data/lib/stack_one/models/operations/{lms_get_completion_request.rb → lms_get_user_request.rb} +2 -2
  28. data/lib/stack_one/models/operations/lms_get_user_response.rb +33 -0
  29. data/lib/stack_one/models/operations/lms_list_assignments_queryparam_filter.rb +24 -0
  30. data/lib/stack_one/models/operations/lms_list_assignments_request.rb +55 -0
  31. data/lib/stack_one/models/operations/lms_list_assignments_response.rb +33 -0
  32. data/lib/stack_one/models/operations/lms_list_completions_queryparam_filter.rb +24 -0
  33. data/lib/stack_one/models/operations/lms_list_completions_request.rb +55 -0
  34. data/lib/stack_one/models/operations/lms_list_completions_response.rb +33 -0
  35. data/lib/stack_one/models/operations/lms_list_courses_queryparam_filter.rb +24 -0
  36. data/lib/stack_one/models/operations/lms_list_courses_request.rb +52 -0
  37. data/lib/stack_one/models/operations/lms_list_courses_response.rb +33 -0
  38. data/lib/stack_one/models/operations/lms_list_users_queryparam_filter.rb +27 -0
  39. data/lib/stack_one/models/operations/lms_list_users_request.rb +52 -0
  40. data/lib/stack_one/models/operations/lms_list_users_response.rb +33 -0
  41. data/lib/stack_one/models/operations/stackone_update_account_request.rb +4 -4
  42. data/lib/stack_one/models/operations.rb +31 -4
  43. data/lib/stack_one/models/shared/{contactscustomfields_type.rb → active.rb} +4 -4
  44. data/lib/stack_one/models/shared/applicationcustomfields.rb +2 -11
  45. data/lib/stack_one/models/shared/assessmentsresults.rb +7 -7
  46. data/lib/stack_one/models/shared/assessmentsresults_candidate.rb +8 -5
  47. data/lib/stack_one/models/shared/assessmentsresults_content_type.rb +2 -2
  48. data/lib/stack_one/models/shared/{employeecustomfields_value.rb → assessmentsresults_schemas_value.rb} +3 -7
  49. data/lib/stack_one/models/shared/assessmentsresults_value.rb +5 -3
  50. data/lib/stack_one/models/shared/assignment.rb +54 -0
  51. data/lib/stack_one/models/shared/{completionresult.rb → assignmentresult.rb} +3 -3
  52. data/lib/stack_one/models/shared/assignmentspaginated.rb +30 -0
  53. data/lib/stack_one/models/shared/{employeecustomfields_type.rb → assignmentstatusenum.rb} +4 -4
  54. data/lib/stack_one/models/shared/atsdocumentapimodel.rb +5 -2
  55. data/lib/stack_one/models/shared/campaign.rb +2 -2
  56. data/lib/stack_one/models/shared/candidatecustomfields.rb +2 -11
  57. data/lib/stack_one/models/shared/channelsenum.rb +2 -2
  58. data/lib/stack_one/models/shared/channelsenum_value.rb +24 -0
  59. data/lib/stack_one/models/shared/completion.rb +4 -10
  60. data/lib/stack_one/models/shared/{candidatecustomfields_type.rb → completion_result.rb} +4 -4
  61. data/lib/stack_one/models/shared/completionspaginated.rb +30 -0
  62. data/lib/stack_one/models/shared/contactscustomfields.rb +2 -11
  63. data/lib/stack_one/models/shared/contentblock_schemas_value.rb +3 -0
  64. data/lib/stack_one/models/shared/contentblock_value.rb +3 -1
  65. data/lib/stack_one/models/shared/course.rb +72 -0
  66. data/lib/stack_one/models/shared/course_schemas_value.rb +20 -0
  67. data/lib/stack_one/models/shared/{applicationcustomfields_type.rb → course_type.rb} +4 -4
  68. data/lib/stack_one/models/shared/course_value.rb +19 -0
  69. data/lib/stack_one/models/shared/coursepaginated.rb +33 -0
  70. data/lib/stack_one/models/shared/courseresult.rb +27 -0
  71. data/lib/stack_one/models/shared/customfielddefinition_value.rb +5 -0
  72. data/lib/stack_one/models/shared/customfielddefinitionresultapimodel.rb +27 -0
  73. data/lib/stack_one/models/shared/customfielddefinitionspaginated.rb +2 -2
  74. data/lib/stack_one/models/shared/document.rb +5 -2
  75. data/lib/stack_one/models/shared/employeecustomfields.rb +2 -11
  76. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +5 -2
  77. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +5 -2
  78. data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +5 -2
  79. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto.rb +5 -2
  80. data/lib/stack_one/models/shared/iamuser_avatar.rb +5 -2
  81. data/lib/stack_one/models/shared/job.rb +3 -3
  82. data/lib/stack_one/models/shared/jobposting_content.rb +5 -2
  83. data/lib/stack_one/models/shared/{patchaccountdto.rb → label.rb} +1 -1
  84. data/lib/stack_one/models/shared/linkedaccount.rb +2 -2
  85. data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +2 -11
  86. data/lib/stack_one/models/shared/{user.rb → lmsuser.rb} +10 -10
  87. data/lib/stack_one/models/shared/patchaccountexternaldto.rb +51 -0
  88. data/lib/stack_one/models/shared/patchaccountexternaldto_credentials.rb +20 -0
  89. data/lib/stack_one/models/shared/patchaccountexternaldto_setup_information.rb +20 -0
  90. data/lib/stack_one/models/shared/result.rb +5 -5
  91. data/lib/stack_one/models/shared/secrets.rb +20 -0
  92. data/lib/stack_one/models/shared/skills.rb +33 -0
  93. data/lib/stack_one/models/shared/status.rb +14 -9
  94. data/lib/stack_one/models/shared/statusreason.rb +30 -0
  95. data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +5 -2
  96. data/lib/stack_one/models/shared/userresult.rb +2 -2
  97. data/lib/stack_one/models/shared/userspaginated.rb +3 -6
  98. data/lib/stack_one/models/shared/value.rb +4 -8
  99. data/lib/stack_one/models/shared/workeligibility_document.rb +5 -2
  100. data/lib/stack_one/models/shared.rb +35 -24
  101. data/lib/stack_one/sdkconfiguration.rb +3 -3
  102. metadata +55 -17
  103. data/lib/stack_one/models/shared/applicationcustomfields_value.rb +0 -23
  104. data/lib/stack_one/models/shared/campaign_status.rb +0 -27
  105. data/lib/stack_one/models/shared/candidatecustomfields_value.rb +0 -23
  106. data/lib/stack_one/models/shared/contactscustomfields_value.rb +0 -23
  107. data/lib/stack_one/models/shared/lmscreatecompletionrequestdto_user.rb +0 -42
@@ -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 AtsGetApplicationCustomFieldDefinitionResponse < ::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 application custom field definition was retrieved.
21
+ field :custom_field_definition_result_api_model, T.nilable(::StackOne::Shared::CustomFieldDefinitionResultApiModel)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, custom_field_definition_result_api_model: T.nilable(::StackOne::Shared::CustomFieldDefinitionResultApiModel)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, custom_field_definition_result_api_model: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @custom_field_definition_result_api_model = custom_field_definition_result_api_model
30
+ end
31
+ end
32
+ end
33
+ end
@@ -15,7 +15,7 @@ module StackOne
15
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
16
  # The account identifier
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
19
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
20
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
21
21
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
@@ -15,7 +15,7 @@ module StackOne
15
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
16
  # The account identifier
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
19
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
20
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
21
21
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
@@ -0,0 +1,60 @@
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 AtsGetCandidateCustomFieldDefinitionRequest < ::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
+ # Filter parameters that allow greater customisation of the list response
21
+ field :filter, T.nilable(::StackOne::Operations::QueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
22
+ # The unified cursor
23
+ field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
24
+ # The page number of the results to fetch
25
+ #
26
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
27
+ field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
28
+ # The number of results per page
29
+ field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
30
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
31
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
32
+ # Indicates that the raw request result is returned
33
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
34
+ # The sync token to select the only updated results
35
+ #
36
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
37
+ field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
38
+ # Use a string with a date to only select results updated after that given date
39
+ #
40
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
41
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
42
+
43
+
44
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::QueryParamFilter), 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), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
45
+ def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
46
+ @id = id
47
+ @x_account_id = x_account_id
48
+ @fields_ = fields_
49
+ @filter = filter
50
+ @next_ = next_
51
+ @page = page
52
+ @page_size = page_size
53
+ @proxy = proxy
54
+ @raw = raw
55
+ @sync_token = sync_token
56
+ @updated_after = updated_after
57
+ end
58
+ end
59
+ end
60
+ 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 AtsGetCandidateCustomFieldDefinitionResponse < ::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 candidate custom field definition was retrieved.
21
+ field :custom_field_definition_result_api_model, T.nilable(::StackOne::Shared::CustomFieldDefinitionResultApiModel)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, custom_field_definition_result_api_model: T.nilable(::StackOne::Shared::CustomFieldDefinitionResultApiModel)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, custom_field_definition_result_api_model: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @custom_field_definition_result_api_model = custom_field_definition_result_api_model
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 AtsListApplicationCustomFieldDefinitionsQueryParamFilter < ::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
@@ -16,7 +16,7 @@ module StackOne
16
16
  # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
17
17
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
18
18
  # Filter parameters that allow greater customisation of the list response
19
- field :filter, T.nilable(::StackOne::Operations::Filter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
19
+ field :filter, T.nilable(::StackOne::Operations::AtsListApplicationCustomFieldDefinitionsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
20
20
  # The unified cursor
21
21
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
22
22
  # The page number of the results to fetch
@@ -39,7 +39,7 @@ module StackOne
39
39
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
40
 
41
41
 
42
- sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::Filter), 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), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
42
+ sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListApplicationCustomFieldDefinitionsQueryParamFilter), 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), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
43
43
  def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
44
44
  @x_account_id = x_account_id
45
45
  @fields_ = fields_
@@ -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 AtsListApplicationDocumentsQueryParamFilter < ::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
@@ -18,7 +18,7 @@ module StackOne
18
18
  # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
19
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
20
  # Filter parameters that allow greater customisation of the list response
21
- field :filter, T.nilable(::StackOne::Operations::QueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
21
+ field :filter, T.nilable(::StackOne::Operations::AtsListApplicationDocumentsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
22
22
  # The unified cursor
23
23
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
24
24
  # The page number of the results to fetch
@@ -41,7 +41,7 @@ module StackOne
41
41
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
42
42
 
43
43
 
44
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::QueryParamFilter), 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), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
44
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListApplicationDocumentsQueryParamFilter), 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), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
45
45
  def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
46
46
  @id = id
47
47
  @x_account_id = x_account_id
@@ -13,13 +13,16 @@ module StackOne
13
13
 
14
14
  # Filter to select applications by job_id
15
15
  field :job_id, T.nilable(::String), { 'query_param': { 'field_name': 'job_id' } }
16
+ # Filter to select applications by stage and sub-stage
17
+ field :stage, T.nilable(::String), { 'query_param': { 'field_name': 'stage' } }
16
18
  # Use a string with a date to only select results updated after that given date
17
19
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
18
20
 
19
21
 
20
- sig { params(job_id: T.nilable(::String), updated_after: T.nilable(::String)).void }
21
- def initialize(job_id: nil, updated_after: nil)
22
+ sig { params(job_id: T.nilable(::String), stage: T.nilable(::String), updated_after: T.nilable(::String)).void }
23
+ def initialize(job_id: nil, stage: nil, updated_after: nil)
22
24
  @job_id = job_id
25
+ @stage = stage
23
26
  @updated_after = updated_after
24
27
  end
25
28
  end
@@ -0,0 +1,42 @@
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 HrisGetEmployeeEmploymentRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+
17
+ field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
18
+ # The account identifier
19
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
+ # The comma separated list of fields that will be expanded in the response
21
+ field :expand, T.nilable(::String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } }
22
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
23
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
24
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
25
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
26
+ # Indicates that the raw request result is returned
27
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
28
+
29
+
30
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
31
+ def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, expand: nil, fields_: nil, proxy: nil, raw: nil)
32
+ @id = id
33
+ @sub_resource_id = sub_resource_id
34
+ @x_account_id = x_account_id
35
+ @expand = expand
36
+ @fields_ = fields_
37
+ @proxy = proxy
38
+ @raw = raw
39
+ end
40
+ end
41
+ end
42
+ 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 HrisGetEmployeeEmploymentResponse < ::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 Employment with the given identifier was retrieved.
21
+ field :employment_result, T.nilable(::StackOne::Shared::EmploymentResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, employment_result: T.nilable(::StackOne::Shared::EmploymentResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, employment_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @employment_result = employment_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 HrisListEmployeeEmploymentsQueryParamFilter < ::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,58 @@
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 HrisListEmployeeEmploymentsRequest < ::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 expanded in the response
19
+ field :expand, T.nilable(::String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } }
20
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
21
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
22
+ # Filter parameters that allow greater customisation of the list response
23
+ field :filter, T.nilable(::StackOne::Operations::HrisListEmployeeEmploymentsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
24
+ # The unified cursor
25
+ field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
26
+ # The page number of the results to fetch
27
+ #
28
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
29
+ field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
30
+ # The number of results per page
31
+ field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
32
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
33
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
34
+ # Indicates that the raw request result is returned
35
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
36
+ # Use a string with a date to only select results updated after that given date
37
+ #
38
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
39
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
+
41
+
42
+ sig { params(id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::HrisListEmployeeEmploymentsQueryParamFilter), 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 }
43
+ def initialize(id: nil, x_account_id: nil, expand: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
44
+ @id = id
45
+ @x_account_id = x_account_id
46
+ @expand = expand
47
+ @fields_ = fields_
48
+ @filter = filter
49
+ @next_ = next_
50
+ @page = page
51
+ @page_size = page_size
52
+ @proxy = proxy
53
+ @raw = raw
54
+ @updated_after = updated_after
55
+ end
56
+ end
57
+ end
58
+ 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 HrisListEmployeeEmploymentsResponse < ::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 Employments was retrieved.
21
+ field :employments_paginated, T.nilable(::StackOne::Shared::EmploymentsPaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, employments_paginated: T.nilable(::StackOne::Shared::EmploymentsPaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, employments_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @employments_paginated = employments_paginated
30
+ end
31
+ end
32
+ end
33
+ end
@@ -12,13 +12,16 @@ module StackOne
12
12
  extend T::Sig
13
13
 
14
14
 
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+
15
17
  field :lms_create_completion_request_dto, ::StackOne::Shared::LmsCreateCompletionRequestDto, { 'request': { 'media_type': 'application/json' } }
16
18
  # The account identifier
17
19
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
20
 
19
21
 
20
- sig { params(lms_create_completion_request_dto: ::StackOne::Shared::LmsCreateCompletionRequestDto, x_account_id: ::String).void }
21
- def initialize(lms_create_completion_request_dto: nil, x_account_id: nil)
22
+ sig { params(id: ::String, lms_create_completion_request_dto: ::StackOne::Shared::LmsCreateCompletionRequestDto, x_account_id: ::String).void }
23
+ def initialize(id: nil, lms_create_completion_request_dto: nil, x_account_id: nil)
24
+ @id = id
22
25
  @lms_create_completion_request_dto = lms_create_completion_request_dto
23
26
  @x_account_id = x_account_id
24
27
  end
@@ -0,0 +1,39 @@
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 LmsGetAssignmentRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+
17
+ field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
18
+ # The account identifier
19
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
+ # The comma separated list of fields to return in the response (if empty, all fields are returned)
21
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
22
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
23
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
24
+ # Indicates that the raw request result is returned
25
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
26
+
27
+
28
+ sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
29
+ def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
30
+ @id = id
31
+ @sub_resource_id = sub_resource_id
32
+ @x_account_id = x_account_id
33
+ @fields_ = fields_
34
+ @proxy = proxy
35
+ @raw = raw
36
+ end
37
+ end
38
+ end
39
+ end
@@ -8,7 +8,7 @@ module StackOne
8
8
  module Operations
9
9
 
10
10
 
11
- class LmsGetCompletionResponse < ::StackOne::Utils::FieldAugmented
11
+ class LmsGetAssignmentResponse < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -17,16 +17,16 @@ module StackOne
17
17
  field :raw_response, ::Faraday::Response
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
- # The completion with the given identifier was retrieved.
21
- field :completion_result, T.nilable(::StackOne::Shared::CompletionResult)
20
+ # The assignments with the given identifier was retrieved.
21
+ field :assignment_result, T.nilable(::StackOne::Shared::AssignmentResult)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, completion_result: T.nilable(::StackOne::Shared::CompletionResult)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, completion_result: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, assignment_result: T.nilable(::StackOne::Shared::AssignmentResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, assignment_result: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @completion_result = completion_result
29
+ @assignment_result = assignment_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 LmsGetCourseRequest < ::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': 'form', '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 LmsGetCourseResponse < ::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 course with the given identifier was retrieved.
21
+ field :course_result, T.nilable(::StackOne::Shared::CourseResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, course_result: T.nilable(::StackOne::Shared::CourseResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, course_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @course_result = course_result
30
+ end
31
+ end
32
+ end
33
+ end
@@ -8,14 +8,14 @@ module StackOne
8
8
  module Operations
9
9
 
10
10
 
11
- class LmsGetCompletionRequest < ::StackOne::Utils::FieldAugmented
11
+ class LmsGetUserRequest < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
15
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
16
  # The account identifier
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
18
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
19
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
20
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
21
21
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }