stackone_client 0.2.24 → 0.2.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/models/shared/atsdocumentapimodel.rb +11 -3
  3. data/lib/stack_one/models/shared/atsdocumentapimodel_schemas_value.rb +32 -0
  4. data/lib/stack_one/models/shared/atsdocumentapimodel_type.rb +2 -2
  5. data/lib/stack_one/models/shared/atsdocumentapimodel_value.rb +1210 -13
  6. data/lib/stack_one/models/shared/content.rb +2 -2
  7. data/lib/stack_one/models/shared/content_file_format.rb +27 -0
  8. data/lib/stack_one/models/shared/document.rb +11 -3
  9. data/lib/stack_one/models/shared/file_format.rb +2 -2
  10. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_file_format.rb +27 -0
  11. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_document_value.rb +1227 -0
  12. data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +11 -3
  13. data/lib/stack_one/models/shared/hrisdocumentapimodel_file_format.rb +27 -0
  14. data/lib/stack_one/models/shared/hrisdocumentapimodel_schemas_type_value.rb +41 -0
  15. data/lib/stack_one/models/shared/hrisdocumentapimodel_schemas_value.rb +1210 -23
  16. data/lib/stack_one/models/shared/hrisdocumentapimodel_type.rb +2 -2
  17. data/lib/stack_one/models/shared/hrisdocumentapimodel_value.rb +1 -0
  18. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_value.rb +1 -0
  19. data/lib/stack_one/models/shared/workeligibility_document.rb +11 -3
  20. data/lib/stack_one/models/shared/workeligibility_file_format.rb +27 -0
  21. data/lib/stack_one/models/shared/workeligibility_schemas_document_value.rb +1227 -0
  22. data/lib/stack_one/models/shared.rb +9 -1
  23. data/lib/stack_one/sdkconfiguration.rb +3 -3
  24. metadata +10 -2
@@ -12,14 +12,14 @@ module StackOne
12
12
  extend T::Sig
13
13
 
14
14
  # The file format of the file
15
- field :file_format, T.nilable(::StackOne::Shared::FileFormat), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
15
+ field :file_format, T.nilable(::StackOne::Shared::ContentFileFormat), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
16
16
  # Unified download URL for retrieving file content.
17
17
  field :unified_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_url') } }
18
18
  # URL where the file content is located
19
19
  field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
20
20
 
21
21
 
22
- sig { params(file_format: T.nilable(::StackOne::Shared::FileFormat), unified_url: T.nilable(::String), url: T.nilable(::String)).void }
22
+ sig { params(file_format: T.nilable(::StackOne::Shared::ContentFileFormat), unified_url: T.nilable(::String), url: T.nilable(::String)).void }
23
23
  def initialize(file_format: nil, unified_url: nil, url: nil)
24
24
  @file_format = file_format
25
25
  @unified_url = unified_url
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # The file format of the file
11
+ class ContentFileFormat < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The file format of the file, expressed as a file extension
17
+ field :value, T.nilable(::StackOne::Shared::ContentValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::ContentValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::ContentValue)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
24
+ end
25
+ end
26
+ end
27
+ end
@@ -13,10 +13,14 @@ module StackOne
13
13
 
14
14
  # The category of the file
15
15
  field :category, T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
- # The content of the file
16
+ # The content of the file. Deprecated, use `url` and `file_format` one level up instead
17
+ #
18
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
17
19
  field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
18
20
  # The creation date of the file
19
21
  field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
22
+ # The file format of the file
23
+ field :file_format, T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoFileFormat), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
20
24
  # Unique identifier
21
25
  field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
22
26
  # The name of the file
@@ -25,19 +29,23 @@ module StackOne
25
29
  field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
26
30
  # Provider's unique identifier
27
31
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
32
+ # URL where the file content is located
33
+ field :remote_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_url') } }
28
34
  # The update date of the file
29
35
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
30
36
 
31
37
 
32
- sig { params(category: T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoCategory), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
33
- def initialize(category: nil, contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, updated_at: nil)
38
+ sig { params(category: T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoCategory), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoFileFormat), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), remote_url: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
39
+ def initialize(category: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, path: nil, remote_id: nil, remote_url: nil, updated_at: nil)
34
40
  @category = category
35
41
  @contents = contents
36
42
  @created_at = created_at
43
+ @file_format = file_format
37
44
  @id = id
38
45
  @name = name
39
46
  @path = path
40
47
  @remote_id = remote_id
48
+ @remote_url = remote_url
41
49
  @updated_at = updated_at
42
50
  end
43
51
  end
@@ -14,10 +14,10 @@ module StackOne
14
14
 
15
15
  field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
16
  # The file format of the file, expressed as a file extension
17
- field :value, T.nilable(::StackOne::Shared::ContentValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::ContentValue, true) } }
17
+ field :value, T.nilable(::StackOne::Shared::AtsDocumentApiModelValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::AtsDocumentApiModelValue, true) } }
18
18
 
19
19
 
20
- sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::ContentValue)).void }
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::AtsDocumentApiModelValue)).void }
21
21
  def initialize(source_value: nil, value: nil)
22
22
  @source_value = source_value
23
23
  @value = value
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # The file format of the file
11
+ class HrisCreateWorkEligibilityRequestDtoFileFormat < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The file format of the file, expressed as a file extension
17
+ field :value, T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoSchemasDocumentValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoSchemasDocumentValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoSchemasDocumentValue)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
24
+ end
25
+ end
26
+ end
27
+ end