stackone_client 0.3.0 → 0.3.2

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 (119) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/hris.rb +142 -0
  3. data/lib/stack_one/lms.rb +21 -62
  4. data/lib/stack_one/marketing.rb +18 -18
  5. data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +2 -7
  6. data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +2 -7
  7. data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_request.rb +2 -7
  8. data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb +2 -7
  9. data/lib/stack_one/models/operations/ats_list_candidate_custom_field_definitions_request.rb +2 -7
  10. data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_request.rb +2 -7
  11. data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_request.rb +2 -7
  12. data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_request.rb +2 -7
  13. data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_queryparam_filter.rb +24 -0
  14. data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_request.rb +55 -0
  15. data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_response.rb +33 -0
  16. data/lib/stack_one/models/operations/hris_get_time_off_type_request.rb +36 -0
  17. data/lib/stack_one/models/operations/{lms_delete_content_response.rb → hris_get_time_off_type_response.rb} +6 -6
  18. data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_queryparam_filter.rb +24 -0
  19. data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_request.rb +52 -0
  20. data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_response.rb +33 -0
  21. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rb +6 -3
  22. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +1 -1
  23. data/lib/stack_one/models/operations/hris_list_employees_queryparam_filter.rb +5 -2
  24. data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rb +6 -3
  25. data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +1 -1
  26. data/lib/stack_one/models/operations/hris_list_time_off_types_queryparam_filter.rb +24 -0
  27. data/lib/stack_one/models/operations/hris_list_time_off_types_request.rb +52 -0
  28. data/lib/stack_one/models/operations/hris_list_time_off_types_response.rb +33 -0
  29. data/lib/stack_one/models/operations/lms_create_collection_request.rb +27 -0
  30. data/lib/stack_one/models/operations/{lms_create_content_response.rb → lms_create_collection_response.rb} +2 -2
  31. data/lib/stack_one/models/operations/lms_update_collection_request.rb +30 -0
  32. data/lib/stack_one/models/operations/{lms_update_content_response.rb → lms_update_collection_response.rb} +2 -2
  33. data/lib/stack_one/models/operations/lms_upsert_content_response.rb +4 -4
  34. data/lib/stack_one/models/operations/lms_upsert_course_response.rb +4 -4
  35. data/lib/stack_one/models/operations/marketing_get_content_block_response.rb +4 -4
  36. data/lib/stack_one/models/operations/marketing_get_email_template_response.rb +4 -4
  37. data/lib/stack_one/models/operations/marketing_get_in_app_template_response.rb +4 -4
  38. data/lib/stack_one/models/operations/marketing_get_push_template_response.rb +4 -4
  39. data/lib/stack_one/models/operations/marketing_get_sms_template_response.rb +4 -4
  40. data/lib/stack_one/models/operations/marketing_list_email_templates_response.rb +4 -4
  41. data/lib/stack_one/models/operations/marketing_list_in_app_templates_response.rb +4 -4
  42. data/lib/stack_one/models/operations/marketing_list_push_templates_response.rb +4 -4
  43. data/lib/stack_one/models/operations/marketing_list_sms_templates_response.rb +4 -4
  44. data/lib/stack_one/models/operations.rb +15 -6
  45. data/lib/stack_one/models/shared/assessmentspackages_value.rb +3 -0
  46. data/lib/stack_one/models/shared/assignment.rb +4 -0
  47. data/lib/stack_one/models/shared/atscreateapplicationrequestdto_candidate.rb +2 -2
  48. data/lib/stack_one/models/shared/atscreatecandidaterequestdto.rb +2 -2
  49. data/lib/stack_one/models/shared/atscreatejobrequestdto.rb +2 -2
  50. data/lib/stack_one/models/shared/atsupdatecandidaterequestdto.rb +2 -2
  51. data/lib/stack_one/models/shared/atsupdatejobrequestdto.rb +2 -2
  52. data/lib/stack_one/models/shared/candidate.rb +2 -2
  53. data/lib/stack_one/models/shared/completion.rb +14 -0
  54. data/lib/stack_one/models/shared/contact.rb +2 -2
  55. data/lib/stack_one/models/shared/contentblockresult.rb +27 -0
  56. data/lib/stack_one/models/shared/course.rb +6 -9
  57. data/lib/stack_one/models/shared/createmessage_value.rb +16 -8
  58. data/lib/stack_one/models/shared/createresultdataapimodel.rb +2 -5
  59. data/lib/stack_one/models/shared/crmcreatecontactrequestdto.rb +2 -2
  60. data/lib/stack_one/models/shared/{jobcustomfields.rb → customfields.rb} +1 -1
  61. data/lib/stack_one/models/shared/emailmessages_message_type.rb +1 -1
  62. data/lib/stack_one/models/shared/emailmessages_value.rb +16 -8
  63. data/lib/stack_one/models/shared/emailtemplate.rb +36 -0
  64. data/lib/stack_one/models/shared/emailtemplateresult.rb +27 -0
  65. data/lib/stack_one/models/shared/emailtemplatespaginated.rb +33 -0
  66. data/lib/stack_one/models/shared/employee.rb +2 -2
  67. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +2 -2
  68. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_type.rb +4 -4
  69. data/lib/stack_one/models/shared/inappmessages_message_type.rb +1 -1
  70. data/lib/stack_one/models/shared/inappmessages_value.rb +16 -8
  71. data/lib/stack_one/models/shared/inapptemplate.rb +36 -0
  72. data/lib/stack_one/models/shared/inapptemplateresult.rb +27 -0
  73. data/lib/stack_one/models/shared/inapptemplatespaginated.rb +33 -0
  74. data/lib/stack_one/models/shared/job.rb +2 -2
  75. data/lib/stack_one/models/shared/jobpostingcontentsection_value.rb +3 -0
  76. data/lib/stack_one/models/shared/{contentlanguageenum.rb → languageenum.rb} +3 -3
  77. data/lib/stack_one/models/shared/{contentlanguageenum_value.rb → languageenum_value.rb} +2 -2
  78. data/lib/stack_one/models/shared/lmscreatecollectionrequestdto.rb +51 -0
  79. data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +14 -2
  80. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +4 -7
  81. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_content_type.rb +2 -2
  82. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_value.rb +3 -2
  83. data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +5 -14
  84. data/lib/stack_one/models/shared/message_message_type.rb +1 -1
  85. data/lib/stack_one/models/shared/message_type.rb +1 -1
  86. data/lib/stack_one/models/shared/message_value.rb +16 -8
  87. data/lib/stack_one/models/shared/pushmessages_message_type.rb +1 -1
  88. data/lib/stack_one/models/shared/pushmessages_value.rb +16 -8
  89. data/lib/stack_one/models/shared/pushtemplate.rb +36 -0
  90. data/lib/stack_one/models/shared/pushtemplateresult.rb +27 -0
  91. data/lib/stack_one/models/shared/pushtemplatespaginated.rb +33 -0
  92. data/lib/stack_one/models/shared/smsmessages_message_type.rb +1 -1
  93. data/lib/stack_one/models/shared/smsmessages_value.rb +16 -8
  94. data/lib/stack_one/models/shared/smstemplate.rb +36 -0
  95. data/lib/stack_one/models/shared/smstemplateresult.rb +27 -0
  96. data/lib/stack_one/models/shared/smstemplatespaginated.rb +33 -0
  97. data/lib/stack_one/models/shared/{deleteresult.rb → upsertresult.rb} +6 -3
  98. data/lib/stack_one/models/shared/upsertresultdataexternalreferencemodel.rb +30 -0
  99. data/lib/stack_one/models/shared/workeligibility_type.rb +4 -4
  100. data/lib/stack_one/models/shared.rb +23 -22
  101. data/lib/stack_one/sdkconfiguration.rb +3 -3
  102. metadata +36 -26
  103. data/lib/stack_one/models/operations/lms_create_content_request.rb +0 -27
  104. data/lib/stack_one/models/operations/lms_delete_content_request.rb +0 -27
  105. data/lib/stack_one/models/operations/lms_update_content_request.rb +0 -30
  106. data/lib/stack_one/models/shared/candidatecustomfields.rb +0 -39
  107. data/lib/stack_one/models/shared/contactscustomfields.rb +0 -39
  108. data/lib/stack_one/models/shared/content_launch_method.rb +0 -27
  109. data/lib/stack_one/models/shared/course_type.rb +0 -27
  110. data/lib/stack_one/models/shared/course_value.rb +0 -19
  111. data/lib/stack_one/models/shared/employeecustomfields.rb +0 -39
  112. data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +0 -66
  113. data/lib/stack_one/models/shared/lmscreatecontentrequestdto_content_type.rb +0 -27
  114. data/lib/stack_one/models/shared/lmscreatecontentrequestdto_schemas_value.rb +0 -19
  115. data/lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb +0 -18
  116. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_content_launch_method.rb +0 -27
  117. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_schemas_value.rb +0 -19
  118. data/lib/stack_one/models/shared/lmsupsertcourserequestdto_course_type.rb +0 -27
  119. data/lib/stack_one/models/shared/lmsupsertcourserequestdto_value.rb +0 -19
@@ -29,18 +29,14 @@ module StackOne
29
29
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
30
30
  # Indicates that the raw request result is returned
31
31
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
32
- # The sync token to select the only updated results
33
- #
34
- # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
35
- field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
36
32
  # Use a string with a date to only select results updated after that given date
37
33
  #
38
34
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
39
35
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
36
 
41
37
 
42
- sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::CrmListContactCustomFieldDefinitionsQueryParamFilter), 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
- 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)
38
+ sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::CrmListContactCustomFieldDefinitionsQueryParamFilter), 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)
44
40
  @x_account_id = x_account_id
45
41
  @fields_ = fields_
46
42
  @filter = filter
@@ -49,7 +45,6 @@ module StackOne
49
45
  @page_size = page_size
50
46
  @proxy = proxy
51
47
  @raw = raw
52
- @sync_token = sync_token
53
48
  @updated_after = updated_after
54
49
  end
55
50
  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 HrisGetEmployeeCustomFieldDefinitionQueryParamFilter < ::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 HrisGetEmployeeCustomFieldDefinitionRequest < ::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::HrisGetEmployeeCustomFieldDefinitionQueryParamFilter), { '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
+ # 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::HrisGetEmployeeCustomFieldDefinitionQueryParamFilter), 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 HrisGetEmployeeCustomFieldDefinitionResponse < ::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 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,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 HrisGetTimeOffTypeRequest < ::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
@@ -8,7 +8,7 @@ module StackOne
8
8
  module Operations
9
9
 
10
10
 
11
- class LmsDeleteContentResponse < ::StackOne::Utils::FieldAugmented
11
+ class HrisGetTimeOffTypeResponse < ::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 content was deleted successfully.
21
- field :delete_result, T.nilable(::StackOne::Shared::DeleteResult)
20
+ # The time off type with the given identifier was retrieved.
21
+ field :reference_result, T.nilable(::StackOne::Shared::ReferenceResult)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, delete_result: T.nilable(::StackOne::Shared::DeleteResult)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, delete_result: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, reference_result: T.nilable(::StackOne::Shared::ReferenceResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, reference_result: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @delete_result = delete_result
29
+ @reference_result = reference_result
30
30
  end
31
31
  end
32
32
  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 HrisListEmployeeCustomFieldDefinitionsQueryParamFilter < ::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 HrisListEmployeeCustomFieldDefinitionsRequest < ::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::HrisListEmployeeCustomFieldDefinitionsQueryParamFilter), { '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::HrisListEmployeeCustomFieldDefinitionsQueryParamFilter), 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 HrisListEmployeeCustomFieldDefinitionsResponse < ::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 custom field definitions was retrieved.
21
+ field :custom_field_definitions_paginated, T.nilable(::StackOne::Shared::CustomFieldDefinitionsPaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, custom_field_definitions_paginated: T.nilable(::StackOne::Shared::CustomFieldDefinitionsPaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, custom_field_definitions_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @custom_field_definitions_paginated = custom_field_definitions_paginated
30
+ end
31
+ end
32
+ end
33
+ end
@@ -7,16 +7,19 @@
7
7
  module StackOne
8
8
  module Operations
9
9
 
10
- # Filter parameters that allow greater customisation of the list response
10
+ # HRIS Time Off filters
11
11
  class HrisListEmployeeTimeOffRequestsQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # List of time off type ids to filter by.
15
+ field :type, T.nilable(T::Array[::String]), { 'query_param': { 'field_name': 'type' } }
14
16
  # Use a string with a date to only select results updated after that given date
15
17
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
16
18
 
17
19
 
18
- sig { params(updated_after: T.nilable(::String)).void }
19
- def initialize(updated_after: nil)
20
+ sig { params(type: T.nilable(T::Array[::String]), updated_after: T.nilable(::String)).void }
21
+ def initialize(type: nil, updated_after: nil)
22
+ @type = type
20
23
  @updated_after = updated_after
21
24
  end
22
25
  end
@@ -17,7 +17,7 @@ module StackOne
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
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
- # Filter parameters that allow greater customisation of the list response
20
+ # HRIS Time Off filters
21
21
  field :filter, T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsQueryParamFilter), { '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 } }
@@ -11,14 +11,17 @@ module StackOne
11
11
  class HrisListEmployeesQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # Filter to select employees by email
15
+ field :email, T.nilable(::String), { 'query_param': { 'field_name': 'email' } }
14
16
  # Filter to select employees by employee_number
15
17
  field :employee_number, T.nilable(::String), { 'query_param': { 'field_name': 'employee_number' } }
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(employee_number: T.nilable(::String), updated_after: T.nilable(::String)).void }
21
- def initialize(employee_number: nil, updated_after: nil)
22
+ sig { params(email: T.nilable(::String), employee_number: T.nilable(::String), updated_after: T.nilable(::String)).void }
23
+ def initialize(email: nil, employee_number: nil, updated_after: nil)
24
+ @email = email
22
25
  @employee_number = employee_number
23
26
  @updated_after = updated_after
24
27
  end
@@ -7,16 +7,19 @@
7
7
  module StackOne
8
8
  module Operations
9
9
 
10
- # Filter parameters that allow greater customisation of the list response
10
+ # HRIS Time Off filters
11
11
  class HrisListTimeOffRequestsQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # List of time off type ids to filter by.
15
+ field :type, T.nilable(T::Array[::String]), { 'query_param': { 'field_name': 'type' } }
14
16
  # Use a string with a date to only select results updated after that given date
15
17
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
16
18
 
17
19
 
18
- sig { params(updated_after: T.nilable(::String)).void }
19
- def initialize(updated_after: nil)
20
+ sig { params(type: T.nilable(T::Array[::String]), updated_after: T.nilable(::String)).void }
21
+ def initialize(type: nil, updated_after: nil)
22
+ @type = type
20
23
  @updated_after = updated_after
21
24
  end
22
25
  end
@@ -15,7 +15,7 @@ module StackOne
15
15
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
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
- # Filter parameters that allow greater customisation of the list response
18
+ # HRIS Time Off filters
19
19
  field :filter, T.nilable(::StackOne::Operations::HrisListTimeOffRequestsQueryParamFilter), { '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 } }
@@ -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 HrisListTimeOffTypesQueryParamFilter < ::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 HrisListTimeOffTypesRequest < ::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::HrisListTimeOffTypesQueryParamFilter), { '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::HrisListTimeOffTypesQueryParamFilter), 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 HrisListTimeOffTypesResponse < ::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 time off types was retrieved.
21
+ field :reference_paginated, T.nilable(::StackOne::Shared::ReferencePaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, reference_paginated: T.nilable(::StackOne::Shared::ReferencePaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, reference_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @reference_paginated = reference_paginated
30
+ end
31
+ end
32
+ end
33
+ end
@@ -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 LmsCreateCollectionRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :lms_create_collection_request_dto, ::StackOne::Shared::LmsCreateCollectionRequestDto, { '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(lms_create_collection_request_dto: ::StackOne::Shared::LmsCreateCollectionRequestDto, x_account_id: ::String).void }
21
+ def initialize(lms_create_collection_request_dto: nil, x_account_id: nil)
22
+ @lms_create_collection_request_dto = lms_create_collection_request_dto
23
+ @x_account_id = x_account_id
24
+ end
25
+ end
26
+ end
27
+ end
@@ -8,7 +8,7 @@ module StackOne
8
8
  module Operations
9
9
 
10
10
 
11
- class LmsCreateContentResponse < ::StackOne::Utils::FieldAugmented
11
+ class LmsCreateCollectionResponse < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -17,7 +17,7 @@ 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 content was created successfully.
20
+ # The collection was created successfully.
21
21
  field :create_result, T.nilable(::StackOne::Shared::CreateResult)
22
22
 
23
23
 
@@ -0,0 +1,30 @@
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 LmsUpdateCollectionRequest < ::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 :lms_create_collection_request_dto, ::StackOne::Shared::LmsCreateCollectionRequestDto, { 'request': { 'media_type': 'application/json' } }
18
+ # The account identifier
19
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
+
21
+
22
+ sig { params(id: ::String, lms_create_collection_request_dto: ::StackOne::Shared::LmsCreateCollectionRequestDto, x_account_id: ::String).void }
23
+ def initialize(id: nil, lms_create_collection_request_dto: nil, x_account_id: nil)
24
+ @id = id
25
+ @lms_create_collection_request_dto = lms_create_collection_request_dto
26
+ @x_account_id = x_account_id
27
+ end
28
+ end
29
+ end
30
+ end
@@ -8,7 +8,7 @@ module StackOne
8
8
  module Operations
9
9
 
10
10
 
11
- class LmsUpdateContentResponse < ::StackOne::Utils::FieldAugmented
11
+ class LmsUpdateCollectionResponse < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -17,7 +17,7 @@ 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 content was updated successfully.
20
+ # The collection was updated successfully.
21
21
  field :update_result, T.nilable(::StackOne::Shared::UpdateResult)
22
22
 
23
23