stackone_client 0.2.36 → 0.2.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/accounts.rb +4 -4
  3. data/lib/stack_one/ats.rb +78 -2
  4. data/lib/stack_one/hris.rb +76 -0
  5. data/lib/stack_one/lms.rb +175 -22
  6. data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +60 -0
  7. data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_response.rb +33 -0
  8. data/lib/stack_one/models/operations/ats_get_assessments_request_request.rb +1 -1
  9. data/lib/stack_one/models/operations/ats_get_assessments_result_request.rb +1 -1
  10. data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +60 -0
  11. data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_response.rb +33 -0
  12. data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_queryparam_filter.rb +24 -0
  13. data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb +2 -2
  14. data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_filter.rb +24 -0
  15. data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +2 -2
  16. data/lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb +5 -2
  17. data/lib/stack_one/models/operations/hris_get_employee_employment_request.rb +42 -0
  18. data/lib/stack_one/models/operations/hris_get_employee_employment_response.rb +33 -0
  19. data/lib/stack_one/models/operations/hris_list_employee_employments_queryparam_filter.rb +24 -0
  20. data/lib/stack_one/models/operations/hris_list_employee_employments_request.rb +58 -0
  21. data/lib/stack_one/models/operations/hris_list_employee_employments_response.rb +33 -0
  22. data/lib/stack_one/models/operations/lms_create_completion_request.rb +5 -2
  23. data/lib/stack_one/models/operations/lms_get_assignment_request.rb +39 -0
  24. data/lib/stack_one/models/operations/{lms_get_completion_response.rb → lms_get_assignment_response.rb} +6 -6
  25. data/lib/stack_one/models/operations/{lms_get_completion_request.rb → lms_get_course_request.rb} +2 -2
  26. data/lib/stack_one/models/operations/lms_get_course_response.rb +33 -0
  27. data/lib/stack_one/models/operations/lms_list_assignments_queryparam_filter.rb +24 -0
  28. data/lib/stack_one/models/operations/lms_list_assignments_request.rb +55 -0
  29. data/lib/stack_one/models/operations/lms_list_assignments_response.rb +33 -0
  30. data/lib/stack_one/models/operations/lms_list_completions_queryparam_filter.rb +24 -0
  31. data/lib/stack_one/models/operations/lms_list_completions_request.rb +55 -0
  32. data/lib/stack_one/models/operations/lms_list_completions_response.rb +33 -0
  33. data/lib/stack_one/models/operations/lms_list_courses_queryparam_filter.rb +24 -0
  34. data/lib/stack_one/models/operations/lms_list_courses_request.rb +52 -0
  35. data/lib/stack_one/models/operations/lms_list_courses_response.rb +33 -0
  36. data/lib/stack_one/models/operations/stackone_update_account_request.rb +4 -4
  37. data/lib/stack_one/models/operations.rb +26 -4
  38. data/lib/stack_one/models/shared/{contactscustomfields_type.rb → active.rb} +4 -4
  39. data/lib/stack_one/models/shared/applicationcustomfields.rb +2 -11
  40. data/lib/stack_one/models/shared/assessmentsresults.rb +7 -7
  41. data/lib/stack_one/models/shared/assessmentsresults_candidate.rb +8 -5
  42. data/lib/stack_one/models/shared/assessmentsresults_content_type.rb +2 -2
  43. data/lib/stack_one/models/shared/{employeecustomfields_value.rb → assessmentsresults_schemas_value.rb} +3 -7
  44. data/lib/stack_one/models/shared/assessmentsresults_value.rb +5 -3
  45. data/lib/stack_one/models/shared/assignment.rb +54 -0
  46. data/lib/stack_one/models/shared/{completionresult.rb → assignmentresult.rb} +3 -3
  47. data/lib/stack_one/models/shared/assignmentspaginated.rb +30 -0
  48. data/lib/stack_one/models/shared/{employeecustomfields_type.rb → assignmentstatusenum.rb} +4 -4
  49. data/lib/stack_one/models/shared/atsdocumentapimodel.rb +5 -2
  50. data/lib/stack_one/models/shared/campaign.rb +2 -2
  51. data/lib/stack_one/models/shared/candidatecustomfields.rb +2 -11
  52. data/lib/stack_one/models/shared/channelsenum.rb +2 -2
  53. data/lib/stack_one/models/shared/channelsenum_value.rb +24 -0
  54. data/lib/stack_one/models/shared/completion.rb +4 -10
  55. data/lib/stack_one/models/shared/{candidatecustomfields_type.rb → completion_result.rb} +4 -4
  56. data/lib/stack_one/models/shared/completionspaginated.rb +30 -0
  57. data/lib/stack_one/models/shared/contactscustomfields.rb +2 -11
  58. data/lib/stack_one/models/shared/contentblock_schemas_value.rb +3 -0
  59. data/lib/stack_one/models/shared/contentblock_value.rb +3 -1
  60. data/lib/stack_one/models/shared/course.rb +72 -0
  61. data/lib/stack_one/models/shared/course_schemas_value.rb +20 -0
  62. data/lib/stack_one/models/shared/{applicationcustomfields_type.rb → course_type.rb} +4 -4
  63. data/lib/stack_one/models/shared/course_value.rb +19 -0
  64. data/lib/stack_one/models/shared/coursepaginated.rb +33 -0
  65. data/lib/stack_one/models/shared/courseresult.rb +27 -0
  66. data/lib/stack_one/models/shared/customfielddefinition_value.rb +5 -0
  67. data/lib/stack_one/models/shared/customfielddefinitionresultapimodel.rb +27 -0
  68. data/lib/stack_one/models/shared/customfielddefinitionspaginated.rb +2 -2
  69. data/lib/stack_one/models/shared/document.rb +5 -2
  70. data/lib/stack_one/models/shared/employeecustomfields.rb +2 -11
  71. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +5 -2
  72. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +5 -2
  73. data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +5 -2
  74. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto.rb +5 -2
  75. data/lib/stack_one/models/shared/iamuser_avatar.rb +5 -2
  76. data/lib/stack_one/models/shared/job.rb +3 -3
  77. data/lib/stack_one/models/shared/jobposting_content.rb +5 -2
  78. data/lib/stack_one/models/shared/{patchaccountdto.rb → label.rb} +1 -1
  79. data/lib/stack_one/models/shared/linkedaccount.rb +2 -2
  80. data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +2 -11
  81. data/lib/stack_one/models/shared/patchaccountexternaldto.rb +51 -0
  82. data/lib/stack_one/models/shared/patchaccountexternaldto_credentials.rb +20 -0
  83. data/lib/stack_one/models/shared/patchaccountexternaldto_setup_information.rb +20 -0
  84. data/lib/stack_one/models/shared/result.rb +5 -5
  85. data/lib/stack_one/models/shared/secrets.rb +20 -0
  86. data/lib/stack_one/models/shared/skills.rb +33 -0
  87. data/lib/stack_one/models/shared/status.rb +14 -9
  88. data/lib/stack_one/models/shared/statusreason.rb +30 -0
  89. data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +5 -2
  90. data/lib/stack_one/models/shared/value.rb +4 -8
  91. data/lib/stack_one/models/shared/workeligibility_document.rb +5 -2
  92. data/lib/stack_one/models/shared.rb +34 -23
  93. data/lib/stack_one/sdkconfiguration.rb +3 -3
  94. metadata +49 -16
  95. data/lib/stack_one/models/shared/applicationcustomfields_value.rb +0 -23
  96. data/lib/stack_one/models/shared/campaign_status.rb +0 -27
  97. data/lib/stack_one/models/shared/candidatecustomfields_value.rb +0 -23
  98. data/lib/stack_one/models/shared/contactscustomfields_value.rb +0 -23
  99. data/lib/stack_one/models/shared/user.rb +0 -42
@@ -11,35 +11,26 @@ module StackOne
11
11
  class EmployeeCustomFields < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
- # The description of the custom field.
15
- field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
16
14
  # Unique identifier
17
15
  field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
18
16
  # The name of the custom field.
19
17
  field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
20
- # An array of possible options for the custom field.
21
- field :options, T.nilable(T::Array[::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('options') } }
22
18
  # Provider's unique identifier
23
19
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
24
20
  # Provider's unique identifier for the value of the custom field.
25
21
  field :remote_value_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_value_id') } }
26
- # The type of the custom field.
27
- field :type, T.nilable(::StackOne::Shared::EmployeeCustomFieldsType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
28
22
  # The value associated with the custom field.
29
23
  field :value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
30
24
  # The unique identifier for the value of the custom field.
31
25
  field :value_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value_id') } }
32
26
 
33
27
 
34
- sig { params(description: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), options: T.nilable(T::Array[::Object]), remote_id: T.nilable(::String), remote_value_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::EmployeeCustomFieldsType), value: T.nilable(::Object), value_id: T.nilable(::String)).void }
35
- def initialize(description: nil, id: nil, name: nil, options: nil, remote_id: nil, remote_value_id: nil, type: nil, value: nil, value_id: nil)
36
- @description = description
28
+ sig { params(id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String), remote_value_id: T.nilable(::String), value: T.nilable(::Object), value_id: T.nilable(::String)).void }
29
+ def initialize(id: nil, name: nil, remote_id: nil, remote_value_id: nil, value: nil, value_id: nil)
37
30
  @id = id
38
31
  @name = name
39
- @options = options
40
32
  @remote_id = remote_id
41
33
  @remote_value_id = remote_value_id
42
- @type = type
43
34
  @value = value
44
35
  @value_id = value_id
45
36
  end
@@ -15,6 +15,8 @@ module StackOne
15
15
  field :city, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
16
16
  # The country code
17
17
  field :country, T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
18
+ # Unique identifier
19
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
18
20
  # The name of the location
19
21
  field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
20
22
  # Value to pass through to the provider
@@ -31,10 +33,11 @@ module StackOne
31
33
  field :zip_code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
32
34
 
33
35
 
34
- sig { params(city: T.nilable(::String), country: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoCountry), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), phone_number: T.nilable(::String), state: T.nilable(::StackOne::Shared::State), street_1: T.nilable(::String), street_2: T.nilable(::String), zip_code: T.nilable(::String)).void }
35
- def initialize(city: nil, country: nil, name: nil, passthrough: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil)
36
+ sig { params(city: T.nilable(::String), country: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoCountry), id: T.nilable(::String), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), phone_number: T.nilable(::String), state: T.nilable(::StackOne::Shared::State), street_1: T.nilable(::String), street_2: T.nilable(::String), zip_code: T.nilable(::String)).void }
37
+ def initialize(city: nil, country: nil, id: nil, name: nil, passthrough: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil)
36
38
  @city = city
37
39
  @country = country
40
+ @id = id
38
41
  @name = name
39
42
  @passthrough = passthrough
40
43
  @phone_number = phone_number
@@ -15,6 +15,8 @@ module StackOne
15
15
  field :city, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
16
16
  # The country code
17
17
  field :country, T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
18
+ # Unique identifier
19
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
18
20
  # The name of the location
19
21
  field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
20
22
  # Value to pass through to the provider
@@ -31,10 +33,11 @@ module StackOne
31
33
  field :zip_code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
32
34
 
33
35
 
34
- sig { params(city: T.nilable(::String), country: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasCountry), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), phone_number: T.nilable(::String), state: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoState), street_1: T.nilable(::String), street_2: T.nilable(::String), zip_code: T.nilable(::String)).void }
35
- def initialize(city: nil, country: nil, name: nil, passthrough: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil)
36
+ sig { params(city: T.nilable(::String), country: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasCountry), id: T.nilable(::String), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), phone_number: T.nilable(::String), state: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoState), street_1: T.nilable(::String), street_2: T.nilable(::String), zip_code: T.nilable(::String)).void }
37
+ def initialize(city: nil, country: nil, id: nil, name: nil, passthrough: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil)
36
38
  @city = city
37
39
  @country = country
40
+ @id = id
38
41
  @name = name
39
42
  @passthrough = passthrough
40
43
  @phone_number = phone_number
@@ -13,6 +13,8 @@ module StackOne
13
13
 
14
14
  # The category of the the document
15
15
  field :category, T.nilable(::StackOne::Shared::HrisDocumentApiModelCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
+ # The categoryId of the documents
17
+ field :category_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category_id') } }
16
18
  # The content of the file. Deprecated, use `url` and `file_format` one level up instead
17
19
  #
18
20
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
@@ -39,9 +41,10 @@ module StackOne
39
41
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
40
42
 
41
43
 
42
- sig { params(category: T.nilable(::StackOne::Shared::HrisDocumentApiModelCategory), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::HrisDocumentApiModelFileFormat), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), remote_url: T.nilable(::String), type: T.nilable(::StackOne::Shared::HrisDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
43
- def initialize(category: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, path: nil, remote_id: nil, remote_url: nil, type: nil, updated_at: nil)
44
+ sig { params(category: T.nilable(::StackOne::Shared::HrisDocumentApiModelCategory), category_id: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::HrisDocumentApiModelFileFormat), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), remote_url: T.nilable(::String), type: T.nilable(::StackOne::Shared::HrisDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
45
+ def initialize(category: nil, category_id: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, path: nil, remote_id: nil, remote_url: nil, type: nil, updated_at: nil)
44
46
  @category = category
47
+ @category_id = category_id
45
48
  @contents = contents
46
49
  @created_at = created_at
47
50
  @file_format = file_format
@@ -13,6 +13,8 @@ module StackOne
13
13
 
14
14
  # The category to be associated with the file to be uploaded. Id will take precedence over name.
15
15
  field :category, T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
+ # The categoryId of the documents
17
+ field :category_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category_id') } }
16
18
  # The confidentiality level of the file to be uploaded
17
19
  field :confidential, T.nilable(::StackOne::Shared::Confidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential') } }
18
20
  # The base64 encoded content of the file to upload
@@ -25,9 +27,10 @@ module StackOne
25
27
  field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
26
28
 
27
29
 
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
+ sig { params(category: T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoCategory), category_id: T.nilable(::String), 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 }
31
+ def initialize(category: nil, category_id: nil, confidential: nil, content: nil, file_format: nil, name: nil, path: nil)
30
32
  @category = category
33
+ @category_id = category_id
31
34
  @confidential = confidential
32
35
  @content = content
33
36
  @file_format = file_format
@@ -13,6 +13,8 @@ module StackOne
13
13
 
14
14
  # The category of the file
15
15
  field :category, T.nilable(::StackOne::Shared::IamUserCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
+ # The categoryId of the documents
17
+ field :category_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category_id') } }
16
18
  # The content of the file. Deprecated, use `url` and `file_format` one level up instead
17
19
  #
18
20
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
@@ -35,9 +37,10 @@ module StackOne
35
37
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
36
38
 
37
39
 
38
- sig { params(category: T.nilable(::StackOne::Shared::IamUserCategory), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::IamUserFileFormat), 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)
40
+ sig { params(category: T.nilable(::StackOne::Shared::IamUserCategory), category_id: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::IamUserFileFormat), 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 }
41
+ def initialize(category: nil, category_id: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, path: nil, remote_id: nil, remote_url: nil, updated_at: nil)
40
42
  @category = category
43
+ @category_id = category_id
41
44
  @contents = contents
42
45
  @created_at = created_at
43
46
  @file_format = file_format
@@ -30,11 +30,11 @@ module StackOne
30
30
  # Location ids of the job
31
31
  field :location_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_ids') } }
32
32
  # Provider's department ids of the job
33
- field :remote_department_ids, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_department_ids') } }
33
+ field :remote_department_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_department_ids') } }
34
34
  # Provider's unique identifier
35
35
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
36
36
  # Provider's location ids of the job
37
- field :remote_location_ids, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_location_ids') } }
37
+ field :remote_location_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_location_ids') } }
38
38
  # Status of the job
39
39
  #
40
40
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
@@ -45,7 +45,7 @@ module StackOne
45
45
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
46
46
 
47
47
 
48
- sig { params(code: T.nilable(::String), confidential: T.nilable(::StackOne::Shared::JobConfidential), created_at: T.nilable(::DateTime), department_ids: T.nilable(T::Array[::String]), hiring_team: T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), id: T.nilable(::String), interview_stages: T.nilable(T::Array[::StackOne::Shared::InterviewStage]), job_status: T.nilable(::StackOne::Shared::JobStatus), location_ids: T.nilable(T::Array[::String]), remote_department_ids: T.nilable(::String), remote_id: T.nilable(::String), remote_location_ids: T.nilable(::String), status: T.nilable(::String), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
48
+ sig { params(code: T.nilable(::String), confidential: T.nilable(::StackOne::Shared::JobConfidential), created_at: T.nilable(::DateTime), department_ids: T.nilable(T::Array[::String]), hiring_team: T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), id: T.nilable(::String), interview_stages: T.nilable(T::Array[::StackOne::Shared::InterviewStage]), job_status: T.nilable(::StackOne::Shared::JobStatus), location_ids: T.nilable(T::Array[::String]), remote_department_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), remote_location_ids: T.nilable(T::Array[::String]), status: T.nilable(::String), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
49
49
  def initialize(code: nil, confidential: nil, created_at: nil, department_ids: nil, hiring_team: nil, id: nil, interview_stages: nil, job_status: nil, location_ids: nil, remote_department_ids: nil, remote_id: nil, remote_location_ids: nil, status: nil, title: nil, updated_at: nil)
50
50
  @code = code
51
51
  @confidential = confidential
@@ -16,11 +16,14 @@ module StackOne
16
16
 
17
17
  field :plain, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('plain') } }
18
18
 
19
+ field :section, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('section') } }
19
20
 
20
- sig { params(html: T.nilable(::String), plain: T.nilable(::String)).void }
21
- def initialize(html: nil, plain: nil)
21
+
22
+ sig { params(html: T.nilable(::String), plain: T.nilable(::String), section: T.nilable(T::Array[::String])).void }
23
+ def initialize(html: nil, plain: nil, section: nil)
22
24
  @html = html
23
25
  @plain = plain
26
+ @section = section
24
27
  end
25
28
  end
26
29
  end
@@ -8,7 +8,7 @@ module StackOne
8
8
  module Shared
9
9
 
10
10
 
11
- class PatchAccountDto < ::StackOne::Utils::FieldAugmented
11
+ class Label < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
@@ -34,10 +34,10 @@ module StackOne
34
34
 
35
35
  field :setup_information, T.nilable(::StackOne::Shared::SetupInformation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('setup_information') } }
36
36
 
37
- field :status_reasons, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status_reasons') } }
37
+ field :status_reasons, T.nilable(T::Array[::StackOne::Shared::StatusReason]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status_reasons') } }
38
38
 
39
39
 
40
- sig { params(created_at: ::DateTime, id: ::String, origin_owner_id: ::String, origin_owner_name: ::String, provider: ::String, status: ::StackOne::Shared::LinkedAccountStatus, updated_at: ::DateTime, credentials: T.nilable(::StackOne::Shared::Credentials), label: T.nilable(::String), origin_username: T.nilable(::String), setup_information: T.nilable(::StackOne::Shared::SetupInformation), status_reasons: T.nilable(T::Array[::String])).void }
40
+ sig { params(created_at: ::DateTime, id: ::String, origin_owner_id: ::String, origin_owner_name: ::String, provider: ::String, status: ::StackOne::Shared::LinkedAccountStatus, updated_at: ::DateTime, credentials: T.nilable(::StackOne::Shared::Credentials), label: T.nilable(::String), origin_username: T.nilable(::String), setup_information: T.nilable(::StackOne::Shared::SetupInformation), status_reasons: T.nilable(T::Array[::StackOne::Shared::StatusReason])).void }
41
41
  def initialize(created_at: nil, id: nil, origin_owner_id: nil, origin_owner_name: nil, provider: nil, status: nil, updated_at: nil, credentials: nil, label: nil, origin_username: nil, setup_information: nil, status_reasons: nil)
42
42
  @created_at = created_at
43
43
  @id = id
@@ -15,30 +15,21 @@ module StackOne
15
15
  field :completed_at, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('completed_at') } }
16
16
  # The content ID associated with this completion
17
17
  field :content_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content_id') } }
18
- # The comma separated list of fields that will be expanded in the response
19
- field :expand, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('expand') } }
20
18
  # The external ID associated with this completion
21
19
  field :external_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('external_id') } }
22
20
  # Value to pass through to the provider
23
21
  field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
24
22
  # The result of the completion
25
23
  field :result, T.nilable(::StackOne::Shared::LmsCreateCompletionRequestDtoResult), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('result') } }
26
- # The user associated with this completion
27
- field :user, T.nilable(::StackOne::Shared::User), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user') } }
28
- # The user ID associated with this completion
29
- field :user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } }
30
24
 
31
25
 
32
- sig { params(completed_at: T.nilable(::String), content_id: T.nilable(::String), expand: T.nilable(::String), external_id: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), result: T.nilable(::StackOne::Shared::LmsCreateCompletionRequestDtoResult), user: T.nilable(::StackOne::Shared::User), user_id: T.nilable(::String)).void }
33
- def initialize(completed_at: nil, content_id: nil, expand: nil, external_id: nil, passthrough: nil, result: nil, user: nil, user_id: nil)
26
+ sig { params(completed_at: T.nilable(::String), content_id: T.nilable(::String), external_id: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), result: T.nilable(::StackOne::Shared::LmsCreateCompletionRequestDtoResult)).void }
27
+ def initialize(completed_at: nil, content_id: nil, external_id: nil, passthrough: nil, result: nil)
34
28
  @completed_at = completed_at
35
29
  @content_id = content_id
36
- @expand = expand
37
30
  @external_id = external_id
38
31
  @passthrough = passthrough
39
32
  @result = result
40
- @user = user
41
- @user_id = user_id
42
33
  end
43
34
  end
44
35
  end
@@ -0,0 +1,51 @@
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 Shared
9
+
10
+
11
+ class PatchAccountExternalDto < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :authentication_config_key, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('authentication_config_key') } }
16
+
17
+ field :credentials, T.nilable(::StackOne::Shared::PatchAccountExternalDtoCredentials), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('credentials') } }
18
+
19
+ field :environment, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('environment') } }
20
+
21
+ field :label, T.nilable(::StackOne::Shared::Label), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
22
+
23
+ field :origin_owner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } }
24
+
25
+ field :origin_owner_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } }
26
+
27
+ field :origin_username, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } }
28
+
29
+ field :provider, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
30
+
31
+ field :secrets, T.nilable(::StackOne::Shared::Secrets), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('secrets') } }
32
+
33
+ field :setup_information, T.nilable(::StackOne::Shared::PatchAccountExternalDtoSetupInformation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('setup_information') } }
34
+
35
+
36
+ sig { params(authentication_config_key: T.nilable(::String), credentials: T.nilable(::StackOne::Shared::PatchAccountExternalDtoCredentials), environment: T.nilable(::String), label: T.nilable(::StackOne::Shared::Label), origin_owner_id: T.nilable(::String), origin_owner_name: T.nilable(::String), origin_username: T.nilable(::String), provider: T.nilable(::String), secrets: T.nilable(::StackOne::Shared::Secrets), setup_information: T.nilable(::StackOne::Shared::PatchAccountExternalDtoSetupInformation)).void }
37
+ def initialize(authentication_config_key: nil, credentials: nil, environment: nil, label: nil, origin_owner_id: nil, origin_owner_name: nil, origin_username: nil, provider: nil, secrets: nil, setup_information: nil)
38
+ @authentication_config_key = authentication_config_key
39
+ @credentials = credentials
40
+ @environment = environment
41
+ @label = label
42
+ @origin_owner_id = origin_owner_id
43
+ @origin_owner_name = origin_owner_name
44
+ @origin_username = origin_username
45
+ @provider = provider
46
+ @secrets = secrets
47
+ @setup_information = setup_information
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,20 @@
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 Shared
9
+
10
+
11
+ class PatchAccountExternalDtoCredentials < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+
16
+
17
+ def initialize; end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
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 Shared
9
+
10
+
11
+ class PatchAccountExternalDtoSetupInformation < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+
16
+
17
+ def initialize; end
18
+ end
19
+ end
20
+ end
@@ -7,17 +7,17 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
- # The result of the completion
10
+
11
11
  class Result < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
-
14
+ # The source value of the assessment result.
15
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::CompletionValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CompletionValue, true) } }
16
+ # The result of the assessment.
17
+ field :value, T.nilable(::StackOne::Shared::AssessmentsResultsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::AssessmentsResultsValue, true) } }
18
18
 
19
19
 
20
- sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CompletionValue)).void }
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::AssessmentsResultsValue)).void }
21
21
  def initialize(source_value: nil, value: nil)
22
22
  @source_value = source_value
23
23
  @value = value
@@ -0,0 +1,20 @@
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 Shared
9
+
10
+
11
+ class Secrets < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+
16
+
17
+ def initialize; end
18
+ end
19
+ end
20
+ 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 Shared
9
+
10
+
11
+ class Skills < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Whether the category is active and therefore available for use
15
+ field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
16
+ # The ID associated with this category
17
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
18
+ # The name associated with this category
19
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
20
+ # Provider's unique identifier
21
+ field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
22
+
23
+
24
+ sig { params(active: T.nilable(T::Boolean), id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String)).void }
25
+ def initialize(active: nil, id: nil, name: nil, remote_id: nil)
26
+ @active = active
27
+ @id = id
28
+ @name = name
29
+ @remote_id = remote_id
30
+ end
31
+ end
32
+ end
33
+ end
@@ -7,16 +7,21 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
- # Status - The status of the candidates assessment.
11
- class Status < T::Enum
12
- enums do
13
- IN_PROGRESS = new('in_progress')
14
- PENDING = new('pending')
15
- COMPLETED = new('completed')
16
- REJECTED = new('rejected')
17
- EXPIRED = new('expired')
10
+ # Status of the Campaign
11
+ class Status < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The source value of the Status.
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The Status of the campaign.
17
+ field :value, T.nilable(::StackOne::Shared::CampaignSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CampaignSchemasValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CampaignSchemasValue)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
18
24
  end
19
25
  end
20
-
21
26
  end
22
27
  end
@@ -0,0 +1,30 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class StatusReason < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :timestamp, ::DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+
17
+ field :code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('code') } }
18
+
19
+ field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
20
+
21
+
22
+ sig { params(timestamp: ::DateTime, code: T.nilable(::String), description: T.nilable(::String)).void }
23
+ def initialize(timestamp: nil, code: nil, description: nil)
24
+ @timestamp = timestamp
25
+ @code = code
26
+ @description = description
27
+ end
28
+ end
29
+ end
30
+ end
@@ -13,6 +13,8 @@ module StackOne
13
13
 
14
14
  # The category object for associating uploaded files. If both an ID and a name are provided, the ID takes precedence.
15
15
  field :category, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
+ # The categoryId of the documents
17
+ field :category_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category_id') } }
16
18
  # The confidentiality level of the file to be uploaded
17
19
  field :confidential, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoConfidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential') } }
18
20
  # The base64 encoded content of the file to upload
@@ -25,9 +27,10 @@ module StackOne
25
27
  field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
26
28
 
27
29
 
28
- sig { params(category: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoCategory), confidential: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoConfidential), content: T.nilable(::String), file_format: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoFileFormat), 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
+ sig { params(category: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoCategory), category_id: T.nilable(::String), confidential: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoConfidential), content: T.nilable(::String), file_format: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoFileFormat), name: T.nilable(::String), path: T.nilable(::String)).void }
31
+ def initialize(category: nil, category_id: nil, confidential: nil, content: nil, file_format: nil, name: nil, path: nil)
30
32
  @category = category
33
+ @category_id = category_id
31
34
  @confidential = confidential
32
35
  @content = content
33
36
  @file_format = file_format
@@ -7,16 +7,12 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
- # Value - The Channels of the campaign.
10
+
11
11
  class Value < T::Enum
12
12
  enums do
13
- EMAIL = new('email')
14
- SMS = new('sms')
15
- WEB_PUSH = new('web_push')
16
- IOS_PUSH = new('ios_push')
17
- ANDROID_PUSH = new('android_push')
18
- UNKNOWN = new('unknown')
19
- UNMAPPED_VALUE = new('unmapped_value')
13
+ PENDING = new('pending')
14
+ IN_PROGRESS = new('in_progress')
15
+ COMPLETED = new('completed')
20
16
  end
21
17
  end
22
18
 
@@ -13,6 +13,8 @@ module StackOne
13
13
 
14
14
  # The category of the file
15
15
  field :category, T.nilable(::StackOne::Shared::WorkEligibilityCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
+ # The categoryId of the documents
17
+ field :category_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category_id') } }
16
18
  # The content of the file. Deprecated, use `url` and `file_format` one level up instead
17
19
  #
18
20
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
@@ -35,9 +37,10 @@ module StackOne
35
37
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
36
38
 
37
39
 
38
- sig { params(category: T.nilable(::StackOne::Shared::WorkEligibilityCategory), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::WorkEligibilityFileFormat), 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)
40
+ sig { params(category: T.nilable(::StackOne::Shared::WorkEligibilityCategory), category_id: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::WorkEligibilityFileFormat), 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 }
41
+ def initialize(category: nil, category_id: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, path: nil, remote_id: nil, remote_url: nil, updated_at: nil)
40
42
  @category = category
43
+ @category_id = category_id
41
44
  @contents = contents
42
45
  @created_at = created_at
43
46
  @file_format = file_format