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 LmsGetUserResponse < ::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 user with the given identifier was retrieved.
21
+ field :user_result, T.nilable(::StackOne::Shared::UserResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, user_result: T.nilable(::StackOne::Shared::UserResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, user_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @user_result = user_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 LmsListAssignmentsQueryParamFilter < ::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,55 @@
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 LmsListAssignmentsRequest < ::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::LmsListAssignmentsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', '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': 'form', '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
+ # Use a string with a date to only select results updated after that given date
35
+ #
36
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
37
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
38
+
39
+
40
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListAssignmentsQueryParamFilter), 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 }
41
+ def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
42
+ @id = id
43
+ @x_account_id = x_account_id
44
+ @fields_ = fields_
45
+ @filter = filter
46
+ @next_ = next_
47
+ @page = page
48
+ @page_size = page_size
49
+ @proxy = proxy
50
+ @raw = raw
51
+ @updated_after = updated_after
52
+ end
53
+ end
54
+ end
55
+ 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 LmsListAssignmentsResponse < ::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 assignments related to the employee with the given identifier were retrieved.
21
+ field :assignments_paginated, T.nilable(::StackOne::Shared::AssignmentsPaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, assignments_paginated: T.nilable(::StackOne::Shared::AssignmentsPaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, assignments_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @assignments_paginated = assignments_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 LmsListCompletionsQueryParamFilter < ::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,55 @@
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 LmsListCompletionsRequest < ::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::LmsListCompletionsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', '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': 'form', '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
+ # Use a string with a date to only select results updated after that given date
35
+ #
36
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
37
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
38
+
39
+
40
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListCompletionsQueryParamFilter), 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 }
41
+ def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
42
+ @id = id
43
+ @x_account_id = x_account_id
44
+ @fields_ = fields_
45
+ @filter = filter
46
+ @next_ = next_
47
+ @page = page
48
+ @page_size = page_size
49
+ @proxy = proxy
50
+ @raw = raw
51
+ @updated_after = updated_after
52
+ end
53
+ end
54
+ end
55
+ 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 LmsListCompletionsResponse < ::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 completions with for the users with the given identifier were retrieved.
21
+ field :completions_paginated, T.nilable(::StackOne::Shared::CompletionsPaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, completions_paginated: T.nilable(::StackOne::Shared::CompletionsPaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, completions_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @completions_paginated = completions_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 LmsListCoursesQueryParamFilter < ::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 LmsListCoursesRequest < ::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::LmsListCoursesQueryParamFilter), { '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::LmsListCoursesQueryParamFilter), 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 LmsListCoursesResponse < ::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 courses was retrieved.
21
+ field :course_paginated, T.nilable(::StackOne::Shared::CoursePaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, course_paginated: T.nilable(::StackOne::Shared::CoursePaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, course_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @course_paginated = course_paginated
30
+ end
31
+ end
32
+ end
33
+ 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
+ # LMS Users Filter
11
+ class LmsListUsersQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Filter to select users by email
15
+ field :email, T.nilable(::String), { 'query_param': { 'field_name': 'email' } }
16
+ # Use a string with a date to only select results updated after that given date
17
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
18
+
19
+
20
+ sig { params(email: T.nilable(::String), updated_after: T.nilable(::String)).void }
21
+ def initialize(email: nil, updated_after: nil)
22
+ @email = email
23
+ @updated_after = updated_after
24
+ end
25
+ end
26
+ end
27
+ 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 LmsListUsersRequest < ::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
+ # LMS Users Filter
19
+ field :filter, T.nilable(::StackOne::Operations::LmsListUsersQueryParamFilter), { '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::LmsListUsersQueryParamFilter), 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 LmsListUsersResponse < ::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 users was retrieved.
21
+ field :users_paginated, T.nilable(::StackOne::Shared::UsersPaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, users_paginated: T.nilable(::StackOne::Shared::UsersPaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, users_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @users_paginated = users_paginated
30
+ end
31
+ end
32
+ end
33
+ end
@@ -14,13 +14,13 @@ module StackOne
14
14
 
15
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
16
 
17
- field :patch_account_dto, ::StackOne::Shared::PatchAccountDto, { 'request': { 'media_type': 'application/json' } }
17
+ field :patch_account_external_dto, ::StackOne::Shared::PatchAccountExternalDto, { 'request': { 'media_type': 'application/json' } }
18
18
 
19
19
 
20
- sig { params(id: ::String, patch_account_dto: ::StackOne::Shared::PatchAccountDto).void }
21
- def initialize(id: nil, patch_account_dto: nil)
20
+ sig { params(id: ::String, patch_account_external_dto: ::StackOne::Shared::PatchAccountExternalDto).void }
21
+ def initialize(id: nil, patch_account_external_dto: nil)
22
22
  @id = id
23
- @patch_account_dto = patch_account_dto
23
+ @patch_account_external_dto = patch_account_external_dto
24
24
  end
25
25
  end
26
26
  end
@@ -33,6 +33,9 @@ module StackOne
33
33
  autoload :AtsDownloadApplicationDocumentResponse, 'stack_one/models/operations/ats_download_application_document_response.rb'
34
34
  autoload :AtsGetApplicationRequest, 'stack_one/models/operations/ats_get_application_request.rb'
35
35
  autoload :AtsGetApplicationResponse, 'stack_one/models/operations/ats_get_application_response.rb'
36
+ autoload :Filter, 'stack_one/models/operations/filter.rb'
37
+ autoload :AtsGetApplicationCustomFieldDefinitionRequest, 'stack_one/models/operations/ats_get_application_custom_field_definition_request.rb'
38
+ autoload :AtsGetApplicationCustomFieldDefinitionResponse, 'stack_one/models/operations/ats_get_application_custom_field_definition_response.rb'
36
39
  autoload :AtsGetApplicationDocumentRequest, 'stack_one/models/operations/ats_get_application_document_request.rb'
37
40
  autoload :AtsGetApplicationDocumentResponse, 'stack_one/models/operations/ats_get_application_document_response.rb'
38
41
  autoload :AtsGetApplicationOfferRequest, 'stack_one/models/operations/ats_get_application_offer_request.rb'
@@ -49,6 +52,9 @@ module StackOne
49
52
  autoload :AtsGetAssessmentsResultResponse, 'stack_one/models/operations/ats_get_assessments_result_response.rb'
50
53
  autoload :AtsGetCandidateRequest, 'stack_one/models/operations/ats_get_candidate_request.rb'
51
54
  autoload :AtsGetCandidateResponse, 'stack_one/models/operations/ats_get_candidate_response.rb'
55
+ autoload :QueryParamFilter, 'stack_one/models/operations/queryparam_filter.rb'
56
+ autoload :AtsGetCandidateCustomFieldDefinitionRequest, 'stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb'
57
+ autoload :AtsGetCandidateCustomFieldDefinitionResponse, 'stack_one/models/operations/ats_get_candidate_custom_field_definition_response.rb'
52
58
  autoload :AtsGetCandidateNoteRequest, 'stack_one/models/operations/ats_get_candidate_note_request.rb'
53
59
  autoload :AtsGetCandidateNoteResponse, 'stack_one/models/operations/ats_get_candidate_note_response.rb'
54
60
  autoload :AtsGetDepartmentRequest, 'stack_one/models/operations/ats_get_department_request.rb'
@@ -71,10 +77,10 @@ module StackOne
71
77
  autoload :AtsGetRejectedReasonResponse, 'stack_one/models/operations/ats_get_rejected_reason_response.rb'
72
78
  autoload :AtsGetUserRequest, 'stack_one/models/operations/ats_get_user_request.rb'
73
79
  autoload :AtsGetUserResponse, 'stack_one/models/operations/ats_get_user_response.rb'
74
- autoload :Filter, 'stack_one/models/operations/filter.rb'
80
+ autoload :AtsListApplicationCustomFieldDefinitionsQueryParamFilter, 'stack_one/models/operations/ats_list_application_custom_field_definitions_queryparam_filter.rb'
75
81
  autoload :AtsListApplicationCustomFieldDefinitionsRequest, 'stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb'
76
82
  autoload :AtsListApplicationCustomFieldDefinitionsResponse, 'stack_one/models/operations/ats_list_application_custom_field_definitions_response.rb'
77
- autoload :QueryParamFilter, 'stack_one/models/operations/queryparam_filter.rb'
83
+ autoload :AtsListApplicationDocumentsQueryParamFilter, 'stack_one/models/operations/ats_list_application_documents_queryparam_filter.rb'
78
84
  autoload :AtsListApplicationDocumentsRequest, 'stack_one/models/operations/ats_list_application_documents_request.rb'
79
85
  autoload :AtsListApplicationDocumentsResponse, 'stack_one/models/operations/ats_list_application_documents_response.rb'
80
86
  autoload :AtsListApplicationScorecardsQueryParamFilter, 'stack_one/models/operations/ats_list_application_scorecards_queryparam_filter.rb'
@@ -178,6 +184,8 @@ module StackOne
178
184
  autoload :HrisGetEmployeeDocumentResponse, 'stack_one/models/operations/hris_get_employee_document_response.rb'
179
185
  autoload :HrisGetEmployeeDocumentCategoryRequest, 'stack_one/models/operations/hris_get_employee_document_category_request.rb'
180
186
  autoload :HrisGetEmployeeDocumentCategoryResponse, 'stack_one/models/operations/hris_get_employee_document_category_response.rb'
187
+ autoload :HrisGetEmployeeEmploymentRequest, 'stack_one/models/operations/hris_get_employee_employment_request.rb'
188
+ autoload :HrisGetEmployeeEmploymentResponse, 'stack_one/models/operations/hris_get_employee_employment_response.rb'
181
189
  autoload :HrisGetEmployeesTimeOffRequestRequest, 'stack_one/models/operations/hris_get_employees_time_off_request_request.rb'
182
190
  autoload :HrisGetEmployeesTimeOffRequestResponse, 'stack_one/models/operations/hris_get_employees_time_off_request_response.rb'
183
191
  autoload :HrisGetEmployeesWorkEligibilityRequest, 'stack_one/models/operations/hris_get_employees_work_eligibility_request.rb'
@@ -207,6 +215,9 @@ module StackOne
207
215
  autoload :HrisListEmployeeDocumentsQueryParamFilter, 'stack_one/models/operations/hris_list_employee_documents_queryparam_filter.rb'
208
216
  autoload :HrisListEmployeeDocumentsRequest, 'stack_one/models/operations/hris_list_employee_documents_request.rb'
209
217
  autoload :HrisListEmployeeDocumentsResponse, 'stack_one/models/operations/hris_list_employee_documents_response.rb'
218
+ autoload :HrisListEmployeeEmploymentsQueryParamFilter, 'stack_one/models/operations/hris_list_employee_employments_queryparam_filter.rb'
219
+ autoload :HrisListEmployeeEmploymentsRequest, 'stack_one/models/operations/hris_list_employee_employments_request.rb'
220
+ autoload :HrisListEmployeeEmploymentsResponse, 'stack_one/models/operations/hris_list_employee_employments_response.rb'
210
221
  autoload :HrisListEmployeeTimeOffRequestsQueryParamFilter, 'stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rb'
211
222
  autoload :HrisListEmployeeTimeOffRequestsRequest, 'stack_one/models/operations/hris_list_employee_time_off_requests_request.rb'
212
223
  autoload :HrisListEmployeeTimeOffRequestsResponse, 'stack_one/models/operations/hris_list_employee_time_off_requests_response.rb'
@@ -263,18 +274,34 @@ module StackOne
263
274
  autoload :LmsCreateCompletionResponse, 'stack_one/models/operations/lms_create_completion_response.rb'
264
275
  autoload :LmsCreateContentRequest, 'stack_one/models/operations/lms_create_content_request.rb'
265
276
  autoload :LmsCreateContentResponse, 'stack_one/models/operations/lms_create_content_response.rb'
277
+ autoload :LmsGetAssignmentRequest, 'stack_one/models/operations/lms_get_assignment_request.rb'
278
+ autoload :LmsGetAssignmentResponse, 'stack_one/models/operations/lms_get_assignment_response.rb'
266
279
  autoload :LmsGetCategoryRequest, 'stack_one/models/operations/lms_get_category_request.rb'
267
280
  autoload :LmsGetCategoryResponse, 'stack_one/models/operations/lms_get_category_response.rb'
268
- autoload :LmsGetCompletionRequest, 'stack_one/models/operations/lms_get_completion_request.rb'
269
- autoload :LmsGetCompletionResponse, 'stack_one/models/operations/lms_get_completion_response.rb'
270
281
  autoload :LmsGetContentRequest, 'stack_one/models/operations/lms_get_content_request.rb'
271
282
  autoload :LmsGetContentResponse, 'stack_one/models/operations/lms_get_content_response.rb'
283
+ autoload :LmsGetCourseRequest, 'stack_one/models/operations/lms_get_course_request.rb'
284
+ autoload :LmsGetCourseResponse, 'stack_one/models/operations/lms_get_course_response.rb'
285
+ autoload :LmsGetUserRequest, 'stack_one/models/operations/lms_get_user_request.rb'
286
+ autoload :LmsGetUserResponse, 'stack_one/models/operations/lms_get_user_response.rb'
287
+ autoload :LmsListAssignmentsQueryParamFilter, 'stack_one/models/operations/lms_list_assignments_queryparam_filter.rb'
288
+ autoload :LmsListAssignmentsRequest, 'stack_one/models/operations/lms_list_assignments_request.rb'
289
+ autoload :LmsListAssignmentsResponse, 'stack_one/models/operations/lms_list_assignments_response.rb'
272
290
  autoload :LmsListCategoriesQueryParamFilter, 'stack_one/models/operations/lms_list_categories_queryparam_filter.rb'
273
291
  autoload :LmsListCategoriesRequest, 'stack_one/models/operations/lms_list_categories_request.rb'
274
292
  autoload :LmsListCategoriesResponse, 'stack_one/models/operations/lms_list_categories_response.rb'
293
+ autoload :LmsListCompletionsQueryParamFilter, 'stack_one/models/operations/lms_list_completions_queryparam_filter.rb'
294
+ autoload :LmsListCompletionsRequest, 'stack_one/models/operations/lms_list_completions_request.rb'
295
+ autoload :LmsListCompletionsResponse, 'stack_one/models/operations/lms_list_completions_response.rb'
275
296
  autoload :LmsListContentQueryParamFilter, 'stack_one/models/operations/lms_list_content_queryparam_filter.rb'
276
297
  autoload :LmsListContentRequest, 'stack_one/models/operations/lms_list_content_request.rb'
277
298
  autoload :LmsListContentResponse, 'stack_one/models/operations/lms_list_content_response.rb'
299
+ autoload :LmsListCoursesQueryParamFilter, 'stack_one/models/operations/lms_list_courses_queryparam_filter.rb'
300
+ autoload :LmsListCoursesRequest, 'stack_one/models/operations/lms_list_courses_request.rb'
301
+ autoload :LmsListCoursesResponse, 'stack_one/models/operations/lms_list_courses_response.rb'
302
+ autoload :LmsListUsersQueryParamFilter, 'stack_one/models/operations/lms_list_users_queryparam_filter.rb'
303
+ autoload :LmsListUsersRequest, 'stack_one/models/operations/lms_list_users_request.rb'
304
+ autoload :LmsListUsersResponse, 'stack_one/models/operations/lms_list_users_response.rb'
278
305
  autoload :LmsUpdateContentRequest, 'stack_one/models/operations/lms_update_content_request.rb'
279
306
  autoload :LmsUpdateContentResponse, 'stack_one/models/operations/lms_update_content_response.rb'
280
307
  autoload :LmsUpsertContentRequest, 'stack_one/models/operations/lms_upsert_content_request.rb'
@@ -7,17 +7,17 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
- # The type of the custom field.
11
- class ContactsCustomFieldsType < ::StackOne::Utils::FieldAugmented
10
+ # Whether the course is active and available for users.
11
+ class Active < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
15
15
  field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
16
 
17
- field :value, T.nilable(::StackOne::Shared::ContactsCustomFieldsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::ContactsCustomFieldsValue, true) } }
17
+ field :value, T.nilable(::StackOne::Shared::CourseValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CourseValue, true) } }
18
18
 
19
19
 
20
- sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::ContactsCustomFieldsValue)).void }
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CourseValue)).void }
21
21
  def initialize(source_value: nil, value: nil)
22
22
  @source_value = source_value
23
23
  @value = value