stackone_client 0.27.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/ats.rb +788 -241
  3. data/lib/stack_one/hris.rb +847 -300
  4. data/lib/stack_one/models/operations/ats_get_application_document_category_request.rb +49 -0
  5. data/lib/stack_one/models/operations/ats_get_application_document_category_response.rb +49 -0
  6. data/lib/stack_one/models/operations/ats_list_application_document_categories_queryparam_filter.rb +33 -0
  7. data/lib/stack_one/models/operations/ats_list_application_document_categories_request.rb +69 -0
  8. data/lib/stack_one/models/operations/ats_list_application_document_categories_response.rb +49 -0
  9. data/lib/stack_one/models/operations/hris_get_shift_request.rb +49 -0
  10. data/lib/stack_one/models/operations/hris_get_shift_response.rb +49 -0
  11. data/lib/stack_one/models/operations/hris_list_shifts_queryparam_filter.rb +49 -0
  12. data/lib/stack_one/models/operations/hris_list_shifts_queryparam_status.rb +23 -0
  13. data/lib/stack_one/models/operations/hris_list_shifts_request.rb +69 -0
  14. data/lib/stack_one/models/operations/hris_list_shifts_response.rb +49 -0
  15. data/lib/stack_one/models/operations/queryparam_filter.rb +26 -18
  16. data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb +23 -0
  17. data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb +20 -0
  18. data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb +23 -0
  19. data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb +20 -0
  20. data/lib/stack_one/models/operations/stackone_list_platform_logs_request.rb +49 -0
  21. data/lib/stack_one/models/operations/stackone_list_platform_logs_response.rb +49 -0
  22. data/lib/stack_one/models/operations/stackone_list_step_logs_queryparam_filter.rb +81 -0
  23. data/lib/stack_one/models/operations/stackone_list_step_logs_request.rb +2 -2
  24. data/lib/stack_one/models/operations.rb +18 -0
  25. data/lib/stack_one/models/shared/approval_status.rb +37 -0
  26. data/lib/stack_one/models/shared/authormodel.rb +37 -0
  27. data/lib/stack_one/models/shared/course.rb +6 -2
  28. data/lib/stack_one/models/shared/data.rb +81 -0
  29. data/lib/stack_one/models/shared/hrisshift.rb +81 -0
  30. data/lib/stack_one/models/shared/hrisshift_4.rb +28 -0
  31. data/lib/stack_one/models/shared/hrisshift_schemas_4.rb +28 -0
  32. data/lib/stack_one/models/shared/hrisshift_schemas_source_value.rb +28 -0
  33. data/lib/stack_one/models/shared/hrisshift_schemas_value.rb +23 -0
  34. data/lib/stack_one/models/shared/hrisshift_source_value.rb +28 -0
  35. data/lib/stack_one/models/shared/hrisshift_status.rb +37 -0
  36. data/lib/stack_one/models/shared/hrisshift_value.rb +22 -0
  37. data/lib/stack_one/models/shared/hrisshiftresult.rb +37 -0
  38. data/lib/stack_one/models/shared/hrisshiftresult_4.rb +28 -0
  39. data/lib/stack_one/models/shared/hrisshiftresult_approval_status.rb +37 -0
  40. data/lib/stack_one/models/shared/hrisshiftresult_schemas_4.rb +28 -0
  41. data/lib/stack_one/models/shared/hrisshiftresult_schemas_source_value.rb +28 -0
  42. data/lib/stack_one/models/shared/hrisshiftresult_schemas_value.rb +23 -0
  43. data/lib/stack_one/models/shared/hrisshiftresult_source_value.rb +28 -0
  44. data/lib/stack_one/models/shared/hrisshiftresult_status.rb +37 -0
  45. data/lib/stack_one/models/shared/hrisshiftresult_value.rb +22 -0
  46. data/lib/stack_one/models/shared/hrisshiftspaginated.rb +41 -0
  47. data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +6 -2
  48. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +6 -2
  49. data/lib/stack_one/models/shared/platformlog.rb +113 -0
  50. data/lib/stack_one/models/shared/platformlogspaginated.rb +37 -0
  51. data/lib/stack_one/models/shared/shiftbreak.rb +57 -0
  52. data/lib/stack_one/models/shared/steplog.rb +6 -2
  53. data/lib/stack_one/models/shared/unifiedlogs.rb +6 -2
  54. data/lib/stack_one/models/shared/unifiedlogspartial.rb +6 -2
  55. data/lib/stack_one/models/shared.rb +24 -0
  56. data/lib/stack_one/request_logs.rb +258 -0
  57. data/lib/stack_one/sdkconfiguration.rb +2 -2
  58. metadata +44 -2
@@ -0,0 +1,49 @@
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 Models
9
+ module Operations
10
+
11
+
12
+ class AtsGetApplicationDocumentCategoryRequest
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :id, ::String, { 'path_param': { 'field_name': 'id', '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 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
+ # 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 should be returned in addition to the mapped result (default value is false)
25
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
26
+
27
+
28
+ 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 }
29
+ def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
30
+ @id = id
31
+ @x_account_id = x_account_id
32
+ @fields_ = fields_
33
+ @proxy = proxy
34
+ @raw = raw
35
+ end
36
+
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @id == other.id
40
+ return false unless @x_account_id == other.x_account_id
41
+ return false unless @fields_ == other.fields_
42
+ return false unless @proxy == other.proxy
43
+ return false unless @raw == other.raw
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,49 @@
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 Models
9
+ module Operations
10
+
11
+
12
+ class AtsGetApplicationDocumentCategoryResponse
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # HTTP response content type for this operation
17
+ field :content_type, ::String
18
+
19
+ field :headers, T::Hash[Symbol, T::Array[::String]]
20
+ # Raw HTTP response; suitable for custom response parsing
21
+ field :raw_response, ::Faraday::Response
22
+ # HTTP response status code for this operation
23
+ field :status_code, ::Integer
24
+ # The application document category with the given identifier was retrieved.
25
+ field :reference_result, T.nilable(Models::Shared::ReferenceResult)
26
+
27
+
28
+ sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], raw_response: ::Faraday::Response, status_code: ::Integer, reference_result: T.nilable(Models::Shared::ReferenceResult)).void }
29
+ def initialize(content_type: nil, headers: nil, raw_response: nil, status_code: nil, reference_result: nil)
30
+ @content_type = content_type
31
+ @headers = headers
32
+ @raw_response = raw_response
33
+ @status_code = status_code
34
+ @reference_result = reference_result
35
+ end
36
+
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @content_type == other.content_type
40
+ return false unless @headers == other.headers
41
+ return false unless @raw_response == other.raw_response
42
+ return false unless @status_code == other.status_code
43
+ return false unless @reference_result == other.reference_result
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ 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 Models
9
+ module Operations
10
+
11
+ # Filter parameters that allow greater customisation of the list response
12
+ class AtsListApplicationDocumentCategoriesQueryParamFilter
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
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(updated_after: T.nilable(::String)).void }
21
+ def initialize(updated_after: nil)
22
+ @updated_after = updated_after
23
+ end
24
+
25
+ def ==(other)
26
+ return false unless other.is_a? self.class
27
+ return false unless @updated_after == other.updated_after
28
+ true
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,69 @@
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 Models
9
+ module Operations
10
+
11
+
12
+ class AtsListApplicationDocumentCategoriesRequest
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
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(Models::Operations::AtsListApplicationDocumentCategoriesQueryParamFilter), { '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 (default value is 25)
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 should be returned in addition to the mapped result (default value is false)
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(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(Models::Operations::AtsListApplicationDocumentCategoriesQueryParamFilter), 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(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
42
+ @x_account_id = x_account_id
43
+ @fields_ = fields_
44
+ @filter = filter
45
+ @next_ = next_
46
+ @page = page
47
+ @page_size = page_size
48
+ @proxy = proxy
49
+ @raw = raw
50
+ @updated_after = updated_after
51
+ end
52
+
53
+ def ==(other)
54
+ return false unless other.is_a? self.class
55
+ return false unless @x_account_id == other.x_account_id
56
+ return false unless @fields_ == other.fields_
57
+ return false unless @filter == other.filter
58
+ return false unless @next_ == other.next_
59
+ return false unless @page == other.page
60
+ return false unless @page_size == other.page_size
61
+ return false unless @proxy == other.proxy
62
+ return false unless @raw == other.raw
63
+ return false unless @updated_after == other.updated_after
64
+ true
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,49 @@
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 Models
9
+ module Operations
10
+
11
+
12
+ class AtsListApplicationDocumentCategoriesResponse
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # HTTP response content type for this operation
17
+ field :content_type, ::String
18
+
19
+ field :headers, T::Hash[Symbol, T::Array[::String]]
20
+ # Raw HTTP response; suitable for custom response parsing
21
+ field :raw_response, ::Faraday::Response
22
+ # HTTP response status code for this operation
23
+ field :status_code, ::Integer
24
+ # The list of application document categories were retrieved.
25
+ field :reference_paginated, T.nilable(Models::Shared::ReferencePaginated)
26
+
27
+
28
+ sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], raw_response: ::Faraday::Response, status_code: ::Integer, reference_paginated: T.nilable(Models::Shared::ReferencePaginated)).void }
29
+ def initialize(content_type: nil, headers: nil, raw_response: nil, status_code: nil, reference_paginated: nil)
30
+ @content_type = content_type
31
+ @headers = headers
32
+ @raw_response = raw_response
33
+ @status_code = status_code
34
+ @reference_paginated = reference_paginated
35
+ end
36
+
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @content_type == other.content_type
40
+ return false unless @headers == other.headers
41
+ return false unless @raw_response == other.raw_response
42
+ return false unless @status_code == other.status_code
43
+ return false unless @reference_paginated == other.reference_paginated
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,49 @@
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 Models
9
+ module Operations
10
+
11
+
12
+ class HrisGetShiftRequest
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :id, ::String, { 'path_param': { 'field_name': 'id', '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 should be returned in addition to the mapped result (default value is false)
25
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
26
+
27
+
28
+ 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 }
29
+ def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
30
+ @id = id
31
+ @x_account_id = x_account_id
32
+ @fields_ = fields_
33
+ @proxy = proxy
34
+ @raw = raw
35
+ end
36
+
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @id == other.id
40
+ return false unless @x_account_id == other.x_account_id
41
+ return false unless @fields_ == other.fields_
42
+ return false unless @proxy == other.proxy
43
+ return false unless @raw == other.raw
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,49 @@
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 Models
9
+ module Operations
10
+
11
+
12
+ class HrisGetShiftResponse
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # HTTP response content type for this operation
17
+ field :content_type, ::String
18
+
19
+ field :headers, T::Hash[Symbol, T::Array[::String]]
20
+ # Raw HTTP response; suitable for custom response parsing
21
+ field :raw_response, ::Faraday::Response
22
+ # HTTP response status code for this operation
23
+ field :status_code, ::Integer
24
+ # The shift with the given identifier was retrieved.
25
+ field :hris_shift_result, T.nilable(Models::Shared::HrisShiftResult)
26
+
27
+
28
+ sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], raw_response: ::Faraday::Response, status_code: ::Integer, hris_shift_result: T.nilable(Models::Shared::HrisShiftResult)).void }
29
+ def initialize(content_type: nil, headers: nil, raw_response: nil, status_code: nil, hris_shift_result: nil)
30
+ @content_type = content_type
31
+ @headers = headers
32
+ @raw_response = raw_response
33
+ @status_code = status_code
34
+ @hris_shift_result = hris_shift_result
35
+ end
36
+
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @content_type == other.content_type
40
+ return false unless @headers == other.headers
41
+ return false unless @raw_response == other.raw_response
42
+ return false unless @status_code == other.status_code
43
+ return false unless @hris_shift_result == other.hris_shift_result
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,49 @@
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 Models
9
+ module Operations
10
+
11
+ # HRIS Shifts filters
12
+ class HrisListShiftsQueryParamFilter
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # Filter to select shifts by employee ID
17
+ field :employee_id, T.nilable(::String), { 'query_param': { 'field_name': 'employee_id' } }
18
+ # Filter shifts that end before this date
19
+ field :ends_before, T.nilable(::DateTime), { 'query_param': { 'field_name': 'ends_before' } }
20
+ # Filter shifts that start after this date
21
+ field :starts_after, T.nilable(::DateTime), { 'query_param': { 'field_name': 'starts_after' } }
22
+ # Filter to select shifts by status
23
+ field :status, T.nilable(Models::Operations::HrisListShiftsQueryParamStatus), { 'query_param': { 'field_name': 'status' } }
24
+ # Use a string with a date to only select results updated after that given date
25
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
26
+
27
+
28
+ sig { params(employee_id: T.nilable(::String), ends_before: T.nilable(::DateTime), starts_after: T.nilable(::DateTime), status: T.nilable(Models::Operations::HrisListShiftsQueryParamStatus), updated_after: T.nilable(::String)).void }
29
+ def initialize(employee_id: nil, ends_before: nil, starts_after: nil, status: nil, updated_after: nil)
30
+ @employee_id = employee_id
31
+ @ends_before = ends_before
32
+ @starts_after = starts_after
33
+ @status = status
34
+ @updated_after = updated_after
35
+ end
36
+
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @employee_id == other.employee_id
40
+ return false unless @ends_before == other.ends_before
41
+ return false unless @starts_after == other.starts_after
42
+ return false unless @status == other.status
43
+ return false unless @updated_after == other.updated_after
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,23 @@
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 Models
9
+ module Operations
10
+
11
+ # HrisListShiftsQueryParamStatus - Filter to select shifts by status
12
+ class HrisListShiftsQueryParamStatus < T::Enum
13
+ enums do
14
+ DRAFT = new('draft')
15
+ PUBLISHED = new('published')
16
+ CONFIRMED = new('confirmed')
17
+ CANCELLED = new('cancelled')
18
+ UNMAPPED_VALUE = new('unmapped_value')
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,69 @@
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 Models
9
+ module Operations
10
+
11
+
12
+ class HrisListShiftsRequest
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
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 to return 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
+ # HRIS Shifts filters
21
+ field :filter, T.nilable(Models::Operations::HrisListShiftsQueryParamFilter), { '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 (default value is 25)
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 should be returned in addition to the mapped result (default value is false)
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(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(Models::Operations::HrisListShiftsQueryParamFilter), 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(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
42
+ @x_account_id = x_account_id
43
+ @fields_ = fields_
44
+ @filter = filter
45
+ @next_ = next_
46
+ @page = page
47
+ @page_size = page_size
48
+ @proxy = proxy
49
+ @raw = raw
50
+ @updated_after = updated_after
51
+ end
52
+
53
+ def ==(other)
54
+ return false unless other.is_a? self.class
55
+ return false unless @x_account_id == other.x_account_id
56
+ return false unless @fields_ == other.fields_
57
+ return false unless @filter == other.filter
58
+ return false unless @next_ == other.next_
59
+ return false unless @page == other.page
60
+ return false unless @page_size == other.page_size
61
+ return false unless @proxy == other.proxy
62
+ return false unless @raw == other.raw
63
+ return false unless @updated_after == other.updated_after
64
+ true
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,49 @@
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 Models
9
+ module Operations
10
+
11
+
12
+ class HrisListShiftsResponse
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # HTTP response content type for this operation
17
+ field :content_type, ::String
18
+
19
+ field :headers, T::Hash[Symbol, T::Array[::String]]
20
+ # Raw HTTP response; suitable for custom response parsing
21
+ field :raw_response, ::Faraday::Response
22
+ # HTTP response status code for this operation
23
+ field :status_code, ::Integer
24
+ # The list of shifts was retrieved.
25
+ field :hris_shifts_paginated, T.nilable(Models::Shared::HrisShiftsPaginated)
26
+
27
+
28
+ sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], raw_response: ::Faraday::Response, status_code: ::Integer, hris_shifts_paginated: T.nilable(Models::Shared::HrisShiftsPaginated)).void }
29
+ def initialize(content_type: nil, headers: nil, raw_response: nil, status_code: nil, hris_shifts_paginated: nil)
30
+ @content_type = content_type
31
+ @headers = headers
32
+ @raw_response = raw_response
33
+ @status_code = status_code
34
+ @hris_shifts_paginated = hris_shifts_paginated
35
+ end
36
+
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @content_type == other.content_type
40
+ return false unless @headers == other.headers
41
+ return false unless @raw_response == other.raw_response
42
+ return false unless @status_code == other.status_code
43
+ return false unless @hris_shifts_paginated == other.hris_shifts_paginated
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -17,44 +17,50 @@ module StackOne
17
17
  field :account_ids, T.nilable(::String), { 'query_param': { 'field_name': 'account_ids' } }
18
18
  # A comma-separated list of actions to filter the results by.
19
19
  field :actions, T.nilable(::String), { 'query_param': { 'field_name': 'actions' } }
20
- # A comma-separated list of child resources to filter the results by.
21
- field :child_resources, T.nilable(::String), { 'query_param': { 'field_name': 'child_resources' } }
20
+ # A comma-separated list of categories to filter the results by.
21
+ field :categories, T.nilable(::String), { 'query_param': { 'field_name': 'categories' } }
22
22
  # A ISO8601 date string to filter the results by end_date.
23
23
  field :end_date, T.nilable(::String), { 'query_param': { 'field_name': 'end_date' } }
24
24
  # A comma-separated list of HTTP methods to filter the results by.
25
25
  field :http_methods, T.nilable(::String), { 'query_param': { 'field_name': 'http_methods' } }
26
- # A comma-separated list of provider keys to filter the results by.
27
- field :providers, T.nilable(::String), { 'query_param': { 'field_name': 'providers' } }
26
+ # The field to order the results by.
27
+ field :order_by, T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy), { 'query_param': { 'field_name': 'order_by' } }
28
+ # The direction to order the results by.
29
+ field :order_direction, T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection), { 'query_param': { 'field_name': 'order_direction' } }
28
30
  # A comma-separated list of request IDs to filter the results by.
29
31
  field :request_ids, T.nilable(::String), { 'query_param': { 'field_name': 'request_ids' } }
30
32
  # A comma-separated list of resources to filter the results by.
31
33
  field :resources, T.nilable(::String), { 'query_param': { 'field_name': 'resources' } }
32
- # A comma-separated list of services to filter the results by.
33
- field :services, T.nilable(::String), { 'query_param': { 'field_name': 'services' } }
34
+ # A comma-separated list of source IDs to filter the results by.
35
+ field :source_ids, T.nilable(::String), { 'query_param': { 'field_name': 'source_ids' } }
36
+ # A comma-separated list of source types to filter the results by.
37
+ field :source_types, T.nilable(::String), { 'query_param': { 'field_name': 'source_types' } }
38
+ # A comma-separated list of source values to filter the results by.
39
+ field :source_values, T.nilable(::String), { 'query_param': { 'field_name': 'source_values' } }
34
40
  # A ISO8601 date string to filter the results by start_date.
35
41
  field :start_date, T.nilable(::String), { 'query_param': { 'field_name': 'start_date' } }
36
42
  # A comma-separated list of status codes to filter the results by.
37
43
  field :status_codes, T.nilable(::String), { 'query_param': { 'field_name': 'status_codes' } }
38
- # A comma-separated list of sub resources to filter the results by.
39
- field :sub_resources, T.nilable(::String), { 'query_param': { 'field_name': 'sub_resources' } }
40
44
  # A boolean value to filter the results by success or failure.
41
45
  field :success, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'success' } }
42
46
 
43
47
 
44
- sig { params(account_ids: T.nilable(::String), actions: T.nilable(::String), child_resources: T.nilable(::String), end_date: T.nilable(::String), http_methods: T.nilable(::String), providers: T.nilable(::String), request_ids: T.nilable(::String), resources: T.nilable(::String), services: T.nilable(::String), start_date: T.nilable(::String), status_codes: T.nilable(::String), sub_resources: T.nilable(::String), success: T.nilable(T::Boolean)).void }
45
- def initialize(account_ids: nil, actions: nil, child_resources: nil, end_date: nil, http_methods: nil, providers: nil, request_ids: nil, resources: nil, services: nil, start_date: nil, status_codes: nil, sub_resources: nil, success: nil)
48
+ sig { params(account_ids: T.nilable(::String), actions: T.nilable(::String), categories: T.nilable(::String), end_date: T.nilable(::String), http_methods: T.nilable(::String), order_by: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy), order_direction: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection), request_ids: T.nilable(::String), resources: T.nilable(::String), source_ids: T.nilable(::String), source_types: T.nilable(::String), source_values: T.nilable(::String), start_date: T.nilable(::String), status_codes: T.nilable(::String), success: T.nilable(T::Boolean)).void }
49
+ def initialize(account_ids: nil, actions: nil, categories: nil, end_date: nil, http_methods: nil, order_by: nil, order_direction: nil, request_ids: nil, resources: nil, source_ids: nil, source_types: nil, source_values: nil, start_date: nil, status_codes: nil, success: nil)
46
50
  @account_ids = account_ids
47
51
  @actions = actions
48
- @child_resources = child_resources
52
+ @categories = categories
49
53
  @end_date = end_date
50
54
  @http_methods = http_methods
51
- @providers = providers
55
+ @order_by = order_by
56
+ @order_direction = order_direction
52
57
  @request_ids = request_ids
53
58
  @resources = resources
54
- @services = services
59
+ @source_ids = source_ids
60
+ @source_types = source_types
61
+ @source_values = source_values
55
62
  @start_date = start_date
56
63
  @status_codes = status_codes
57
- @sub_resources = sub_resources
58
64
  @success = success
59
65
  end
60
66
 
@@ -62,16 +68,18 @@ module StackOne
62
68
  return false unless other.is_a? self.class
63
69
  return false unless @account_ids == other.account_ids
64
70
  return false unless @actions == other.actions
65
- return false unless @child_resources == other.child_resources
71
+ return false unless @categories == other.categories
66
72
  return false unless @end_date == other.end_date
67
73
  return false unless @http_methods == other.http_methods
68
- return false unless @providers == other.providers
74
+ return false unless @order_by == other.order_by
75
+ return false unless @order_direction == other.order_direction
69
76
  return false unless @request_ids == other.request_ids
70
77
  return false unless @resources == other.resources
71
- return false unless @services == other.services
78
+ return false unless @source_ids == other.source_ids
79
+ return false unless @source_types == other.source_types
80
+ return false unless @source_values == other.source_values
72
81
  return false unless @start_date == other.start_date
73
82
  return false unless @status_codes == other.status_codes
74
- return false unless @sub_resources == other.sub_resources
75
83
  return false unless @success == other.success
76
84
  true
77
85
  end
@@ -0,0 +1,23 @@
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 Models
9
+ module Operations
10
+
11
+ # StackoneListPlatformLogsQueryParamOrderBy - The field to order the results by.
12
+ class StackoneListPlatformLogsQueryParamOrderBy < T::Enum
13
+ enums do
14
+ PROVIDER = new('provider')
15
+ SERVICE = new('service')
16
+ STATUS = new('status')
17
+ EVENT_DATETIME = new('eventDatetime')
18
+ DURATION = new('duration')
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end