stackone_client 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/ats.rb +52 -0
  3. data/lib/stack_one/hris.rb +4 -4
  4. data/lib/stack_one/models/operations/ats_upload_application_document_request.rb +30 -0
  5. data/lib/stack_one/models/operations/ats_upload_application_document_response.rb +33 -0
  6. data/lib/stack_one/models/operations/crm_get_contact_request.rb +5 -2
  7. data/lib/stack_one/models/operations/crm_list_contacts_request.rb +5 -2
  8. data/lib/stack_one/models/operations/hris_upload_employee_document_request.rb +5 -5
  9. data/lib/stack_one/models/operations.rb +2 -0
  10. data/lib/stack_one/models/shared/application.rb +5 -2
  11. data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +5 -2
  12. data/lib/stack_one/models/shared/atsdocumentapimodel.rb +5 -3
  13. data/lib/stack_one/models/shared/atsdocumentapimodel_type.rb +3 -1
  14. data/lib/stack_one/models/shared/atsdocumentapimodel_value.rb +1 -1
  15. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +8 -2
  16. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_application_status.rb +27 -0
  17. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +37 -0
  18. data/lib/stack_one/models/shared/category.rb +14 -11
  19. data/lib/stack_one/models/shared/confidential.rb +14 -6
  20. data/lib/stack_one/models/shared/connectorsmeta.rb +2 -2
  21. data/lib/stack_one/models/shared/connectorsmeta_category.rb +24 -0
  22. data/lib/stack_one/models/shared/contact.rb +5 -2
  23. data/lib/stack_one/models/shared/contactscustomfields.rb +45 -0
  24. data/lib/stack_one/models/shared/contactscustomfields_type.rb +27 -0
  25. data/lib/stack_one/models/shared/contactscustomfields_value.rb +23 -0
  26. data/lib/stack_one/models/shared/content.rb +1 -1
  27. data/lib/stack_one/models/shared/content_value.rb +1 -1
  28. data/lib/stack_one/models/shared/document.rb +2 -2
  29. data/lib/stack_one/models/shared/file_format.rb +1 -1
  30. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_category.rb +27 -0
  31. data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +5 -3
  32. data/lib/stack_one/models/shared/hrisdocumentapimodel_category.rb +27 -0
  33. data/lib/stack_one/models/shared/hrisdocumentapimodel_schemas_value.rb +40 -0
  34. data/lib/stack_one/models/shared/hrisdocumentapimodel_type.rb +5 -3
  35. data/lib/stack_one/models/shared/hrisdocumentapimodel_value.rb +4 -1
  36. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto.rb +39 -0
  37. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_category.rb +27 -0
  38. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_file_format.rb +27 -0
  39. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_schemas_file_format_value.rb +1227 -0
  40. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_schemas_value.rb +19 -0
  41. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_value.rb +40 -0
  42. data/lib/stack_one/models/shared/job.rb +2 -2
  43. data/lib/stack_one/models/shared/job_confidential.rb +19 -0
  44. data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +3 -3
  45. data/lib/stack_one/models/shared/unifieduploadrequestdto_category.rb +27 -0
  46. data/lib/stack_one/models/shared/unifieduploadrequestdto_confidential.rb +1 -1
  47. data/lib/stack_one/models/shared/unifieduploadrequestdto_file_format.rb +1 -1
  48. data/lib/stack_one/models/shared/unifieduploadrequestdto_schemas_value.rb +1 -1
  49. data/lib/stack_one/models/shared/unifieduploadrequestdto_value.rb +1 -1
  50. data/lib/stack_one/models/shared/workeligibility_category.rb +27 -0
  51. data/lib/stack_one/models/shared/workeligibility_document.rb +2 -2
  52. data/lib/stack_one/models/shared.rb +29 -11
  53. data/lib/stack_one/sdkconfiguration.rb +3 -3
  54. metadata +22 -2
@@ -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 type of the custom field.
11
+ class ContactsCustomFieldsType < ::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
+
17
+ field :value, T.nilable(::StackOne::Shared::ContactsCustomFieldsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::ContactsCustomFieldsValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::ContactsCustomFieldsValue)).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
@@ -0,0 +1,23 @@
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
+
11
+ class ContactsCustomFieldsValue < T::Enum
12
+ enums do
13
+ DATE = new('date')
14
+ FLOAT = new('float')
15
+ INTEGER = new('integer')
16
+ LIST = new('list')
17
+ TEXT = new('text')
18
+ UNMAPPED_VALUE = new('unmapped_value')
19
+ end
20
+ end
21
+
22
+ end
23
+ end
@@ -13,7 +13,7 @@ module StackOne
13
13
 
14
14
  # The file format of the file
15
15
  field :file_format, T.nilable(::StackOne::Shared::FileFormat), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
16
- # Unified URL where the file content is located
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') } }
@@ -7,7 +7,7 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
-
10
+ # ContentValue - The file format of the file, expressed as a file extension
11
11
  class ContentValue < T::Enum
12
12
  enums do
13
13
  UNMAPPED_VALUE = new('unmapped_value')
@@ -12,7 +12,7 @@ module StackOne
12
12
  extend T::Sig
13
13
 
14
14
  # The category of the file
15
- field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
15
+ field :category, T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
16
  # The content of the file
17
17
  field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
18
18
  # The creation date of the file
@@ -29,7 +29,7 @@ module StackOne
29
29
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
30
30
 
31
31
 
32
- sig { params(category: T.nilable(::String), 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 }
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
33
  def initialize(category: nil, contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, updated_at: nil)
34
34
  @category = category
35
35
  @contents = contents
@@ -13,7 +13,7 @@ module StackOne
13
13
 
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
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
18
 
19
19
 
@@ -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 category of the file
11
+ class HrisCreateWorkEligibilityRequestDtoCategory < ::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 category of the file
17
+ field :value, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::String)).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
@@ -11,8 +11,8 @@ module StackOne
11
11
  class HrisDocumentApiModel < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
- # The category of the file
15
- field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
14
+ # The category of the the document
15
+ field :category, T.nilable(::StackOne::Shared::HrisDocumentApiModelCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
16
  # The content of the file
17
17
  field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
18
18
  # The creation date of the file
@@ -26,12 +26,14 @@ module StackOne
26
26
  # Provider's unique identifier
27
27
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
28
28
  # The content type of the document
29
+ #
30
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
29
31
  field :type, T.nilable(::StackOne::Shared::HrisDocumentApiModelType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
30
32
  # The update date of the file
31
33
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
32
34
 
33
35
 
34
- sig { params(category: T.nilable(::String), 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), type: T.nilable(::StackOne::Shared::HrisDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
36
+ sig { params(category: T.nilable(::StackOne::Shared::HrisDocumentApiModelCategory), 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), type: T.nilable(::StackOne::Shared::HrisDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
35
37
  def initialize(category: nil, contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, type: nil, updated_at: nil)
36
38
  @category = category
37
39
  @contents = contents
@@ -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 category of the the document
11
+ class HrisDocumentApiModelCategory < ::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 category of the file
17
+ field :value, T.nilable(::StackOne::Shared::HrisDocumentApiModelValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisDocumentApiModelValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisDocumentApiModelValue)).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
@@ -0,0 +1,40 @@
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
+ # HrisDocumentApiModelSchemasValue - The category of the file
11
+ class HrisDocumentApiModelSchemasValue < T::Enum
12
+ enums do
13
+ APPLICATION = new('application')
14
+ ACADEMIC = new('academic')
15
+ CONTRACT = new('contract')
16
+ CERTIFICATES = new('certificates')
17
+ VISA = new('visa')
18
+ PASSPORT = new('passport')
19
+ DRIVER_LICENSE = new('driver_license')
20
+ PAYSLIP = new('payslip')
21
+ PAYROLL = new('payroll')
22
+ APPRAISAL = new('appraisal')
23
+ RESUME = new('resume')
24
+ POLICY = new('policy')
25
+ OFFER_LETTER = new('offer_letter')
26
+ POLICY_AGREEMENT = new('policy_agreement')
27
+ HOME_ADDRESS = new('home_address')
28
+ NATIONAL_ID = new('national_id')
29
+ CONFIDENTIAL = new('confidential')
30
+ SIGNED = new('signed')
31
+ SHARED = new('shared')
32
+ OTHER = new('other')
33
+ BENEFIT = new('benefit')
34
+ ID_VERIFICATION = new('id_verification')
35
+ UNMAPPED_VALUE = new('unmapped_value')
36
+ end
37
+ end
38
+
39
+ end
40
+ end
@@ -8,16 +8,18 @@ module StackOne
8
8
  module Shared
9
9
 
10
10
  # The content type of the document
11
+ #
12
+ # @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
11
13
  class HrisDocumentApiModelType < ::StackOne::Utils::FieldAugmented
12
14
  extend T::Sig
13
15
 
14
16
 
15
17
  field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
18
+ # The category of the file
19
+ field :value, T.nilable(::StackOne::Shared::HrisDocumentApiModelSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisDocumentApiModelSchemasValue, true) } }
16
20
 
17
- field :value, T.nilable(::StackOne::Shared::HrisDocumentApiModelValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisDocumentApiModelValue, true) } }
18
21
 
19
-
20
- sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisDocumentApiModelValue)).void }
22
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisDocumentApiModelSchemasValue)).void }
21
23
  def initialize(source_value: nil, value: nil)
22
24
  @source_value = source_value
23
25
  @value = value
@@ -7,7 +7,7 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
-
10
+ # HrisDocumentApiModelValue - The category of the file
11
11
  class HrisDocumentApiModelValue < T::Enum
12
12
  enums do
13
13
  APPLICATION = new('application')
@@ -26,6 +26,9 @@ module StackOne
26
26
  POLICY_AGREEMENT = new('policy_agreement')
27
27
  HOME_ADDRESS = new('home_address')
28
28
  NATIONAL_ID = new('national_id')
29
+ CONFIDENTIAL = new('confidential')
30
+ SIGNED = new('signed')
31
+ SHARED = new('shared')
29
32
  OTHER = new('other')
30
33
  BENEFIT = new('benefit')
31
34
  ID_VERIFICATION = new('id_verification')
@@ -0,0 +1,39 @@
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
+
11
+ class HrisDocumentsUploadRequestDto < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The category to be associated with the file to be uploaded. Id will take precedence over name.
15
+ field :category, T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
+ # The confidentiality level of the file to be uploaded
17
+ field :confidential, T.nilable(::StackOne::Shared::Confidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential') } }
18
+ # The base64 encoded content of the file to upload
19
+ field :content, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content') } }
20
+ # The file format of the file
21
+ field :file_format, T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoFileFormat), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
22
+ # The filename of the file to upload
23
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
24
+ # The path for the file to be uploaded to
25
+ field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
26
+
27
+
28
+ sig { params(category: T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoCategory), confidential: T.nilable(::StackOne::Shared::Confidential), content: T.nilable(::String), file_format: T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoFileFormat), name: T.nilable(::String), path: T.nilable(::String)).void }
29
+ def initialize(category: nil, confidential: nil, content: nil, file_format: nil, name: nil, path: nil)
30
+ @category = category
31
+ @confidential = confidential
32
+ @content = content
33
+ @file_format = file_format
34
+ @name = name
35
+ @path = path
36
+ end
37
+ end
38
+ end
39
+ end
@@ -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 category to be associated with the file to be uploaded. Id will take precedence over name.
11
+ class HrisDocumentsUploadRequestDtoCategory < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The provider specific category for associating uploaded files, if provided, the value will be ignored.
15
+ field :source_value, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The category name to associate with the file
17
+ field :value, T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisDocumentsUploadRequestDtoValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::String), value: T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoValue)).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
@@ -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 HrisDocumentsUploadRequestDtoFileFormat < ::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::HrisDocumentsUploadRequestDtoSchemasFileFormatValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisDocumentsUploadRequestDtoSchemasFileFormatValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoSchemasFileFormatValue)).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