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.
- checksums.yaml +4 -4
- data/lib/stack_one/accounts.rb +4 -4
- data/lib/stack_one/ats.rb +78 -2
- data/lib/stack_one/hris.rb +76 -0
- data/lib/stack_one/lms.rb +175 -22
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +60 -0
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_assessments_request_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_result_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +60 -0
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb +5 -2
- data/lib/stack_one/models/operations/hris_get_employee_employment_request.rb +42 -0
- data/lib/stack_one/models/operations/hris_get_employee_employment_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_employments_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_employee_employments_request.rb +58 -0
- data/lib/stack_one/models/operations/hris_list_employee_employments_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_create_completion_request.rb +5 -2
- data/lib/stack_one/models/operations/lms_get_assignment_request.rb +39 -0
- data/lib/stack_one/models/operations/{lms_get_completion_response.rb → lms_get_assignment_response.rb} +6 -6
- data/lib/stack_one/models/operations/{lms_get_completion_request.rb → lms_get_course_request.rb} +2 -2
- data/lib/stack_one/models/operations/lms_get_course_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/lms_list_assignments_request.rb +55 -0
- data/lib/stack_one/models/operations/lms_list_assignments_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_list_completions_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/lms_list_completions_request.rb +55 -0
- data/lib/stack_one/models/operations/lms_list_completions_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_list_courses_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/lms_list_courses_request.rb +52 -0
- data/lib/stack_one/models/operations/lms_list_courses_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_update_account_request.rb +4 -4
- data/lib/stack_one/models/operations.rb +26 -4
- data/lib/stack_one/models/shared/{contactscustomfields_type.rb → active.rb} +4 -4
- data/lib/stack_one/models/shared/applicationcustomfields.rb +2 -11
- data/lib/stack_one/models/shared/assessmentsresults.rb +7 -7
- data/lib/stack_one/models/shared/assessmentsresults_candidate.rb +8 -5
- data/lib/stack_one/models/shared/assessmentsresults_content_type.rb +2 -2
- data/lib/stack_one/models/shared/{employeecustomfields_value.rb → assessmentsresults_schemas_value.rb} +3 -7
- data/lib/stack_one/models/shared/assessmentsresults_value.rb +5 -3
- data/lib/stack_one/models/shared/assignment.rb +54 -0
- data/lib/stack_one/models/shared/{completionresult.rb → assignmentresult.rb} +3 -3
- data/lib/stack_one/models/shared/assignmentspaginated.rb +30 -0
- data/lib/stack_one/models/shared/{employeecustomfields_type.rb → assignmentstatusenum.rb} +4 -4
- data/lib/stack_one/models/shared/atsdocumentapimodel.rb +5 -2
- data/lib/stack_one/models/shared/campaign.rb +2 -2
- data/lib/stack_one/models/shared/candidatecustomfields.rb +2 -11
- data/lib/stack_one/models/shared/channelsenum.rb +2 -2
- data/lib/stack_one/models/shared/channelsenum_value.rb +24 -0
- data/lib/stack_one/models/shared/completion.rb +4 -10
- data/lib/stack_one/models/shared/{candidatecustomfields_type.rb → completion_result.rb} +4 -4
- data/lib/stack_one/models/shared/completionspaginated.rb +30 -0
- data/lib/stack_one/models/shared/contactscustomfields.rb +2 -11
- data/lib/stack_one/models/shared/contentblock_schemas_value.rb +3 -0
- data/lib/stack_one/models/shared/contentblock_value.rb +3 -1
- data/lib/stack_one/models/shared/course.rb +72 -0
- data/lib/stack_one/models/shared/course_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/{applicationcustomfields_type.rb → course_type.rb} +4 -4
- data/lib/stack_one/models/shared/course_value.rb +19 -0
- data/lib/stack_one/models/shared/coursepaginated.rb +33 -0
- data/lib/stack_one/models/shared/courseresult.rb +27 -0
- data/lib/stack_one/models/shared/customfielddefinition_value.rb +5 -0
- data/lib/stack_one/models/shared/customfielddefinitionresultapimodel.rb +27 -0
- data/lib/stack_one/models/shared/customfielddefinitionspaginated.rb +2 -2
- data/lib/stack_one/models/shared/document.rb +5 -2
- data/lib/stack_one/models/shared/employeecustomfields.rb +2 -11
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +5 -2
- data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +5 -2
- data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/iamuser_avatar.rb +5 -2
- data/lib/stack_one/models/shared/job.rb +3 -3
- data/lib/stack_one/models/shared/jobposting_content.rb +5 -2
- data/lib/stack_one/models/shared/{patchaccountdto.rb → label.rb} +1 -1
- data/lib/stack_one/models/shared/linkedaccount.rb +2 -2
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +2 -11
- data/lib/stack_one/models/shared/patchaccountexternaldto.rb +51 -0
- data/lib/stack_one/models/shared/patchaccountexternaldto_credentials.rb +20 -0
- data/lib/stack_one/models/shared/patchaccountexternaldto_setup_information.rb +20 -0
- data/lib/stack_one/models/shared/result.rb +5 -5
- data/lib/stack_one/models/shared/secrets.rb +20 -0
- data/lib/stack_one/models/shared/skills.rb +33 -0
- data/lib/stack_one/models/shared/status.rb +14 -9
- data/lib/stack_one/models/shared/statusreason.rb +30 -0
- data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/value.rb +4 -8
- data/lib/stack_one/models/shared/workeligibility_document.rb +5 -2
- data/lib/stack_one/models/shared.rb +34 -23
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +49 -16
- data/lib/stack_one/models/shared/applicationcustomfields_value.rb +0 -23
- data/lib/stack_one/models/shared/campaign_status.rb +0 -27
- data/lib/stack_one/models/shared/candidatecustomfields_value.rb +0 -23
- data/lib/stack_one/models/shared/contactscustomfields_value.rb +0 -23
- data/lib/stack_one/models/shared/user.rb +0 -42
@@ -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 AssignmentsPaginated < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, T::Array[::StackOne::Shared::Assignment], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
18
|
+
|
19
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(data: T::Array[::StackOne::Shared::Assignment], next_: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
23
|
+
def initialize(data: nil, next_: nil, raw: nil)
|
24
|
+
@data = data
|
25
|
+
@next_ = next_
|
26
|
+
@raw = raw
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -7,17 +7,17 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
|
11
|
-
class
|
10
|
+
|
11
|
+
class AssignmentStatusEnum < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
17
|
+
field :value, T.nilable(::StackOne::Shared::Value), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::Value, true) } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::Value)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|
@@ -13,6 +13,8 @@ module StackOne
|
|
13
13
|
|
14
14
|
# The category of the the document
|
15
15
|
field :category, T.nilable(::StackOne::Shared::AtsDocumentApiModelCategory), { '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::AtsDocumentApiModelCategory), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::FileFormat), 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::AtsDocumentApiModelType), 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::AtsDocumentApiModelCategory), category_id: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::FileFormat), 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::AtsDocumentApiModelType), 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
|
@@ -36,14 +36,14 @@ module StackOne
|
|
36
36
|
# The schedule type
|
37
37
|
field :schedule_type, T.nilable(::StackOne::Shared::ScheduleType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('schedule_type') } }
|
38
38
|
# Status of the Campaign
|
39
|
-
field :status, T.nilable(::StackOne::Shared::
|
39
|
+
field :status, T.nilable(::StackOne::Shared::Status), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
40
40
|
|
41
41
|
field :tags, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tags') } }
|
42
42
|
# The updated_at date
|
43
43
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(archived: T.nilable(::Object), channels: T.nilable(T::Array[::StackOne::Shared::ChannelsEnum]), created_at: T.nilable(::DateTime), description: T.nilable(::String), draft: T.nilable(::Object), first_sent_at: T.nilable(::DateTime), id: T.nilable(::String), last_sent_at: T.nilable(::DateTime), messages: T.nilable(T::Array[::StackOne::Shared::Message]), name: T.nilable(::String), remote_id: T.nilable(::String), schedule_type: T.nilable(::StackOne::Shared::ScheduleType), status: T.nilable(::StackOne::Shared::
|
46
|
+
sig { params(archived: T.nilable(::Object), channels: T.nilable(T::Array[::StackOne::Shared::ChannelsEnum]), created_at: T.nilable(::DateTime), description: T.nilable(::String), draft: T.nilable(::Object), first_sent_at: T.nilable(::DateTime), id: T.nilable(::String), last_sent_at: T.nilable(::DateTime), messages: T.nilable(T::Array[::StackOne::Shared::Message]), name: T.nilable(::String), remote_id: T.nilable(::String), schedule_type: T.nilable(::StackOne::Shared::ScheduleType), status: T.nilable(::StackOne::Shared::Status), tags: T.nilable(T::Array[::String]), updated_at: T.nilable(::DateTime)).void }
|
47
47
|
def initialize(archived: nil, channels: nil, created_at: nil, description: nil, draft: nil, first_sent_at: nil, id: nil, last_sent_at: nil, messages: nil, name: nil, remote_id: nil, schedule_type: nil, status: nil, tags: nil, updated_at: nil)
|
48
48
|
@archived = archived
|
49
49
|
@channels = channels
|
@@ -11,35 +11,26 @@ module StackOne
|
|
11
11
|
class CandidateCustomFields < ::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::CandidateCustomFieldsType), { '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(
|
35
|
-
def initialize(
|
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
|
@@ -14,10 +14,10 @@ module StackOne
|
|
14
14
|
# The source value of the Channels.
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
# The Channels of the campaign.
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
17
|
+
field :value, T.nilable(::StackOne::Shared::ChannelsEnumValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::ChannelsEnumValue, true) } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::ChannelsEnumValue)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|
@@ -0,0 +1,24 @@
|
|
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
|
+
# ChannelsEnumValue - The Channels of the campaign.
|
11
|
+
class ChannelsEnumValue < T::Enum
|
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')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -21,22 +21,18 @@ module StackOne
|
|
21
21
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
22
22
|
# Value to pass through to the provider
|
23
23
|
field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
|
24
|
-
# Provider's unique identifier of the
|
24
|
+
# Provider's unique identifier of the completion
|
25
25
|
field :remote_content_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_content_id') } }
|
26
26
|
# Provider's unique identifier of the content
|
27
27
|
field :remote_external_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_external_id') } }
|
28
28
|
# Provider's unique identifier
|
29
29
|
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
30
|
-
# Provider's unique identifier of the user
|
31
|
-
field :remote_user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_user_id') } }
|
32
30
|
# The result of the completion
|
33
|
-
field :result, T.nilable(::StackOne::Shared::
|
34
|
-
# The user ID associated with this completion
|
35
|
-
field :user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } }
|
31
|
+
field :result, T.nilable(::StackOne::Shared::CompletionResult), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('result') } }
|
36
32
|
|
37
33
|
|
38
|
-
sig { params(completed_at: T.nilable(::String), content_id: T.nilable(::String), external_id: T.nilable(::String), id: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), remote_content_id: T.nilable(::String), remote_external_id: T.nilable(::String), remote_id: T.nilable(::String),
|
39
|
-
def initialize(completed_at: nil, content_id: nil, external_id: nil, id: nil, passthrough: nil, remote_content_id: nil, remote_external_id: nil, remote_id: nil,
|
34
|
+
sig { params(completed_at: T.nilable(::String), content_id: T.nilable(::String), external_id: T.nilable(::String), id: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), remote_content_id: T.nilable(::String), remote_external_id: T.nilable(::String), remote_id: T.nilable(::String), result: T.nilable(::StackOne::Shared::CompletionResult)).void }
|
35
|
+
def initialize(completed_at: nil, content_id: nil, external_id: nil, id: nil, passthrough: nil, remote_content_id: nil, remote_external_id: nil, remote_id: nil, result: nil)
|
40
36
|
@completed_at = completed_at
|
41
37
|
@content_id = content_id
|
42
38
|
@external_id = external_id
|
@@ -45,9 +41,7 @@ module StackOne
|
|
45
41
|
@remote_content_id = remote_content_id
|
46
42
|
@remote_external_id = remote_external_id
|
47
43
|
@remote_id = remote_id
|
48
|
-
@remote_user_id = remote_user_id
|
49
44
|
@result = result
|
50
|
-
@user_id = user_id
|
51
45
|
end
|
52
46
|
end
|
53
47
|
end
|
@@ -7,17 +7,17 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
# The
|
11
|
-
class
|
10
|
+
# The result of the completion
|
11
|
+
class CompletionResult < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
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) } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CompletionValue)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|
@@ -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 CompletionsPaginated < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, T::Array[::StackOne::Shared::Completion], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
18
|
+
|
19
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(data: T::Array[::StackOne::Shared::Completion], next_: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
23
|
+
def initialize(data: nil, next_: nil, raw: nil)
|
24
|
+
@data = data
|
25
|
+
@next_ = next_
|
26
|
+
@raw = raw
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -11,35 +11,26 @@ module StackOne
|
|
11
11
|
class ContactsCustomFields < ::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::ContactsCustomFieldsType), { '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(
|
35
|
-
def initialize(
|
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
|
@@ -0,0 +1,72 @@
|
|
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 Course < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Whether the course is active and available for users.
|
15
|
+
field :active, T.nilable(::StackOne::Shared::Active), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
16
|
+
# The categories associated with this course
|
17
|
+
field :categories, T.nilable(T::Array[::StackOne::Shared::Category]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
|
18
|
+
# The child ID/IDs associated with this course
|
19
|
+
field :content_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content_ids') } }
|
20
|
+
# The media type for the course
|
21
|
+
field :course_type, T.nilable(::StackOne::Shared::CourseType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('course_type') } }
|
22
|
+
# The URL of the thumbnail image associated with the course.
|
23
|
+
field :cover_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('cover_url') } }
|
24
|
+
# The date on which the course was created.
|
25
|
+
field :created_at, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at') } }
|
26
|
+
# The description of the course
|
27
|
+
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
28
|
+
# The duration of the course following the ISO8601 standard. If duration_unit is applicable we will derive this from the smallest unit given in the duration string
|
29
|
+
field :duration, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
|
30
|
+
# The external ID associated with this course
|
31
|
+
field :external_reference, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('external_reference') } }
|
32
|
+
# The ID associated with this course
|
33
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
34
|
+
# The languages associated with this course
|
35
|
+
field :languages, T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('languages') } }
|
36
|
+
# Provider's unique identifier of the child content IDs associated with this course
|
37
|
+
field :remote_content_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_content_ids') } }
|
38
|
+
# Provider's unique identifier
|
39
|
+
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
40
|
+
# The skills associated with this course
|
41
|
+
field :skills, T.nilable(T::Array[::StackOne::Shared::Skills]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('skills') } }
|
42
|
+
# The title of the course
|
43
|
+
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
|
44
|
+
# The date on which the course was last updated.
|
45
|
+
field :updated_at, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at') } }
|
46
|
+
# The redirect URL of the course.
|
47
|
+
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
48
|
+
|
49
|
+
|
50
|
+
sig { params(active: T.nilable(::StackOne::Shared::Active), categories: T.nilable(T::Array[::StackOne::Shared::Category]), content_ids: T.nilable(T::Array[::String]), course_type: T.nilable(::StackOne::Shared::CourseType), cover_url: T.nilable(::String), created_at: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), id: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), remote_content_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), skills: T.nilable(T::Array[::StackOne::Shared::Skills]), title: T.nilable(::String), updated_at: T.nilable(::String), url: T.nilable(::String)).void }
|
51
|
+
def initialize(active: nil, categories: nil, content_ids: nil, course_type: nil, cover_url: nil, created_at: nil, description: nil, duration: nil, external_reference: nil, id: nil, languages: nil, remote_content_ids: nil, remote_id: nil, skills: nil, title: nil, updated_at: nil, url: nil)
|
52
|
+
@active = active
|
53
|
+
@categories = categories
|
54
|
+
@content_ids = content_ids
|
55
|
+
@course_type = course_type
|
56
|
+
@cover_url = cover_url
|
57
|
+
@created_at = created_at
|
58
|
+
@description = description
|
59
|
+
@duration = duration
|
60
|
+
@external_reference = external_reference
|
61
|
+
@id = id
|
62
|
+
@languages = languages
|
63
|
+
@remote_content_ids = remote_content_ids
|
64
|
+
@remote_id = remote_id
|
65
|
+
@skills = skills
|
66
|
+
@title = title
|
67
|
+
@updated_at = updated_at
|
68
|
+
@url = url
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
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 CourseSchemasValue < T::Enum
|
12
|
+
enums do
|
13
|
+
VIDEO = new('video')
|
14
|
+
QUIZ = new('quiz')
|
15
|
+
DOCUMENT = new('document')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -7,17 +7,17 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
# The type
|
11
|
-
class
|
10
|
+
# The media type for the course
|
11
|
+
class CourseType < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
17
|
+
field :value, T.nilable(::StackOne::Shared::CourseSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CourseSchemasValue, true) } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CourseSchemasValue)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|
@@ -0,0 +1,19 @@
|
|
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 CourseValue < T::Enum
|
12
|
+
enums do
|
13
|
+
ACTIVE = new('ACTIVE')
|
14
|
+
INACTIVE = new('INACTIVE')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
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 CoursePaginated < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, T::Array[::StackOne::Shared::Course], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
18
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
19
|
+
field :next_page, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
|
20
|
+
|
21
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(data: T::Array[::StackOne::Shared::Course], next_: T.nilable(::String), next_page: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
25
|
+
def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
|
26
|
+
@data = data
|
27
|
+
@next_ = next_
|
28
|
+
@next_page = next_page
|
29
|
+
@raw = raw
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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 CourseResult < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, ::StackOne::Shared::Course, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(data: ::StackOne::Shared::Course, raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
21
|
+
def initialize(data: nil, raw: nil)
|
22
|
+
@data = data
|
23
|
+
@raw = raw
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -16,6 +16,11 @@ module StackOne
|
|
16
16
|
LIST = new('list')
|
17
17
|
CHECKBOX = new('checkbox')
|
18
18
|
TEXT = new('text')
|
19
|
+
BOOLEAN = new('boolean')
|
20
|
+
SINGLE_SELECT = new('single_select')
|
21
|
+
MULTI_SELECT = new('multi_select')
|
22
|
+
URL = new('url')
|
23
|
+
OTHER = new('other')
|
19
24
|
end
|
20
25
|
end
|
21
26
|
|
@@ -0,0 +1,27 @@
|
|
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 CustomFieldDefinitionResultApiModel < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, ::StackOne::Shared::CustomFieldDefinition, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(data: ::StackOne::Shared::CustomFieldDefinition, raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
21
|
+
def initialize(data: nil, raw: nil)
|
22
|
+
@data = data
|
23
|
+
@raw = raw
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -18,10 +18,10 @@ module StackOne
|
|
18
18
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
19
19
|
field :next_page, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
|
20
20
|
|
21
|
-
field :raw, T.nilable(T::Array[::StackOne::Shared::
|
21
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
22
22
|
|
23
23
|
|
24
|
-
sig { params(data: T::Array[::StackOne::Shared::CustomFieldDefinition], next_: T.nilable(::String), next_page: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::
|
24
|
+
sig { params(data: T::Array[::StackOne::Shared::CustomFieldDefinition], next_: T.nilable(::String), next_page: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
25
25
|
def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
|
26
26
|
@data = data
|
27
27
|
@next_ = next_
|
@@ -13,6 +13,8 @@ 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 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::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)
|
40
|
+
sig { params(category: T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoCategory), category_id: T.nilable(::String), 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 }
|
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
|