stackone_client 0.27.0 → 0.29.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/ats.rb +786 -239
  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.rb +11 -0
  16. data/lib/stack_one/models/shared/approval_status.rb +37 -0
  17. data/lib/stack_one/models/shared/data.rb +81 -0
  18. data/lib/stack_one/models/shared/hrisshift.rb +81 -0
  19. data/lib/stack_one/models/shared/hrisshift_4.rb +28 -0
  20. data/lib/stack_one/models/shared/hrisshift_schemas_4.rb +28 -0
  21. data/lib/stack_one/models/shared/hrisshift_schemas_source_value.rb +28 -0
  22. data/lib/stack_one/models/shared/hrisshift_schemas_value.rb +23 -0
  23. data/lib/stack_one/models/shared/hrisshift_source_value.rb +28 -0
  24. data/lib/stack_one/models/shared/hrisshift_status.rb +37 -0
  25. data/lib/stack_one/models/shared/hrisshift_value.rb +22 -0
  26. data/lib/stack_one/models/shared/hrisshiftresult.rb +37 -0
  27. data/lib/stack_one/models/shared/hrisshiftresult_4.rb +28 -0
  28. data/lib/stack_one/models/shared/hrisshiftresult_approval_status.rb +37 -0
  29. data/lib/stack_one/models/shared/hrisshiftresult_schemas_4.rb +28 -0
  30. data/lib/stack_one/models/shared/hrisshiftresult_schemas_source_value.rb +28 -0
  31. data/lib/stack_one/models/shared/hrisshiftresult_schemas_value.rb +23 -0
  32. data/lib/stack_one/models/shared/hrisshiftresult_source_value.rb +28 -0
  33. data/lib/stack_one/models/shared/hrisshiftresult_status.rb +37 -0
  34. data/lib/stack_one/models/shared/hrisshiftresult_value.rb +22 -0
  35. data/lib/stack_one/models/shared/hrisshiftspaginated.rb +41 -0
  36. data/lib/stack_one/models/shared/shiftbreak.rb +57 -0
  37. data/lib/stack_one/models/shared.rb +21 -0
  38. data/lib/stack_one/sdkconfiguration.rb +2 -2
  39. metadata +34 -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
@@ -27,6 +27,8 @@ module StackOne
27
27
  autoload :AtsGetApplicationCustomFieldDefinitionQueryParamFilter, 'stack_one/models/operations/ats_get_application_custom_field_definition_queryparam_filter.rb'
28
28
  autoload :AtsGetApplicationCustomFieldDefinitionRequest, 'stack_one/models/operations/ats_get_application_custom_field_definition_request.rb'
29
29
  autoload :AtsGetApplicationCustomFieldDefinitionResponse, 'stack_one/models/operations/ats_get_application_custom_field_definition_response.rb'
30
+ autoload :AtsGetApplicationDocumentCategoryRequest, 'stack_one/models/operations/ats_get_application_document_category_request.rb'
31
+ autoload :AtsGetApplicationDocumentCategoryResponse, 'stack_one/models/operations/ats_get_application_document_category_response.rb'
30
32
  autoload :AtsGetApplicationDocumentRequest, 'stack_one/models/operations/ats_get_application_document_request.rb'
31
33
  autoload :AtsGetApplicationDocumentResponse, 'stack_one/models/operations/ats_get_application_document_response.rb'
32
34
  autoload :AtsGetApplicationNoteRequest, 'stack_one/models/operations/ats_get_application_note_request.rb'
@@ -83,6 +85,9 @@ module StackOne
83
85
  autoload :AtsListApplicationCustomFieldDefinitionsQueryParamFilter, 'stack_one/models/operations/ats_list_application_custom_field_definitions_queryparam_filter.rb'
84
86
  autoload :AtsListApplicationCustomFieldDefinitionsRequest, 'stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb'
85
87
  autoload :AtsListApplicationCustomFieldDefinitionsResponse, 'stack_one/models/operations/ats_list_application_custom_field_definitions_response.rb'
88
+ autoload :AtsListApplicationDocumentCategoriesQueryParamFilter, 'stack_one/models/operations/ats_list_application_document_categories_queryparam_filter.rb'
89
+ autoload :AtsListApplicationDocumentCategoriesRequest, 'stack_one/models/operations/ats_list_application_document_categories_request.rb'
90
+ autoload :AtsListApplicationDocumentCategoriesResponse, 'stack_one/models/operations/ats_list_application_document_categories_response.rb'
86
91
  autoload :AtsListApplicationDocumentsQueryParamFilter, 'stack_one/models/operations/ats_list_application_documents_queryparam_filter.rb'
87
92
  autoload :AtsListApplicationDocumentsRequest, 'stack_one/models/operations/ats_list_application_documents_request.rb'
88
93
  autoload :AtsListApplicationDocumentsResponse, 'stack_one/models/operations/ats_list_application_documents_response.rb'
@@ -259,6 +264,8 @@ module StackOne
259
264
  autoload :HrisGetLocationResponse, 'stack_one/models/operations/hris_get_location_response.rb'
260
265
  autoload :HrisGetPositionRequest, 'stack_one/models/operations/hris_get_position_request.rb'
261
266
  autoload :HrisGetPositionResponse, 'stack_one/models/operations/hris_get_position_response.rb'
267
+ autoload :HrisGetShiftRequest, 'stack_one/models/operations/hris_get_shift_request.rb'
268
+ autoload :HrisGetShiftResponse, 'stack_one/models/operations/hris_get_shift_response.rb'
262
269
  autoload :HrisGetTaskRequest, 'stack_one/models/operations/hris_get_task_request.rb'
263
270
  autoload :HrisGetTaskResponse, 'stack_one/models/operations/hris_get_task_response.rb'
264
271
  autoload :HrisGetTeamGroupRequest, 'stack_one/models/operations/hris_get_team_group_request.rb'
@@ -339,6 +346,10 @@ module StackOne
339
346
  autoload :HrisListPositionsQueryParamFilter, 'stack_one/models/operations/hris_list_positions_queryparam_filter.rb'
340
347
  autoload :HrisListPositionsRequest, 'stack_one/models/operations/hris_list_positions_request.rb'
341
348
  autoload :HrisListPositionsResponse, 'stack_one/models/operations/hris_list_positions_response.rb'
349
+ autoload :HrisListShiftsQueryParamFilter, 'stack_one/models/operations/hris_list_shifts_queryparam_filter.rb'
350
+ autoload :HrisListShiftsQueryParamStatus, 'stack_one/models/operations/hris_list_shifts_queryparam_status.rb'
351
+ autoload :HrisListShiftsRequest, 'stack_one/models/operations/hris_list_shifts_request.rb'
352
+ autoload :HrisListShiftsResponse, 'stack_one/models/operations/hris_list_shifts_response.rb'
342
353
  autoload :HrisListTasksQueryParamFilter, 'stack_one/models/operations/hris_list_tasks_queryparam_filter.rb'
343
354
  autoload :HrisListTasksRequest, 'stack_one/models/operations/hris_list_tasks_request.rb'
344
355
  autoload :HrisListTasksResponse, 'stack_one/models/operations/hris_list_tasks_response.rb'
@@ -0,0 +1,37 @@
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 Shared
10
+
11
+ # The approval status of the shift
12
+ class ApprovalStatus
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :source_value, T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HrisShift4, T::Array[::Object])), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
18
+ # The approval status of the shift
19
+ field :value, T.nilable(Models::Shared::HrisShiftValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::HrisShiftValue, true) } }
20
+
21
+
22
+ sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HrisShift4, T::Array[::Object])), value: T.nilable(Models::Shared::HrisShiftValue)).void }
23
+ def initialize(source_value: nil, value: nil)
24
+ @source_value = source_value
25
+ @value = value
26
+ end
27
+
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @source_value == other.source_value
31
+ return false unless @value == other.value
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end