stackone_client 0.2.44 → 0.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stack_one/crm.rb +71 -0
- data/lib/stack_one/lms.rb +41 -0
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_request.rb +60 -0
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_request.rb +57 -0
- data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_delete_content_request.rb +27 -0
- data/lib/stack_one/models/operations/lms_delete_content_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_filter.rb +9 -3
- data/lib/stack_one/models/operations/lms_list_assignments_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_list_completions_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/lms_list_completions_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_list_user_assignments_queryparam_filter.rb +9 -3
- data/lib/stack_one/models/operations/lms_list_user_assignments_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_list_user_completions_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/lms_list_user_completions_request.rb +1 -1
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +5 -2
- data/lib/stack_one/models/operations.rb +8 -0
- data/lib/stack_one/models/shared/assignment.rb +23 -2
- data/lib/stack_one/models/shared/atsdocumentapimodel_value.rb +1 -0
- data/lib/stack_one/models/shared/content_launch_method.rb +27 -0
- data/lib/stack_one/models/shared/content_value.rb +1 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +5 -2
- data/lib/stack_one/models/shared/crmcreatecontactrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/deleteresult.rb +30 -0
- data/lib/stack_one/models/shared/employment.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_document_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisdocumentapimodel_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_schemas_file_format_value.rb +1 -0
- data/lib/stack_one/models/shared/iamuser_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/learningobjecttypeenum.rb +27 -0
- data/lib/stack_one/models/shared/learningobjecttypeenum_value.rb +19 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +6 -3
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_content_type.rb +2 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_schemas_value.rb +19 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb +2 -3
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +6 -3
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_content_launch_method.rb +27 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_content_type.rb +2 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_schemas_value.rb +19 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_value.rb +2 -3
- data/lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto_type.rb +27 -0
- data/lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto_value.rb +20 -0
- data/lib/stack_one/models/shared/unifieduploadrequestdto_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/workeligibility_schemas_document_value.rb +1 -0
- data/lib/stack_one/models/shared.rb +9 -0
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +19 -2
@@ -19,29 +19,50 @@ module StackOne
|
|
19
19
|
field :due_date, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('due_date') } }
|
20
20
|
# The ID associated with this assignment
|
21
21
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
22
|
+
# The learning_object_external_reference associated with this assignment
|
23
|
+
field :learning_object_external_reference, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_external_reference') } }
|
24
|
+
# The learning_object_id associated with this assignment
|
25
|
+
field :learning_object_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_id') } }
|
26
|
+
# The learning object type of the assignment
|
27
|
+
field :learning_object_type, T.nilable(T::Array[::StackOne::Shared::LearningObjectTypeEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_type') } }
|
28
|
+
# The progress associated with this assigment
|
29
|
+
field :progress, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('progress') } }
|
22
30
|
# Provider's unique identifier of the course related to the assignment
|
23
31
|
field :remote_course_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_course_id') } }
|
24
32
|
# Provider's unique identifier
|
25
33
|
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
34
|
+
# Provider's unique identifier of the learning object related to the assignment
|
35
|
+
field :remote_learning_object_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_learning_object_id') } }
|
36
|
+
# Provider's unique identifier of the user related to the assignment
|
37
|
+
field :remote_user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_user_id') } }
|
26
38
|
# The status of the assignment
|
27
39
|
field :status, T.nilable(T::Array[::StackOne::Shared::AssignmentStatusEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
28
40
|
# Custom Unified Fields configured in your StackOne project
|
29
41
|
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
30
42
|
# The date the assignment was last updated
|
31
43
|
field :updated_at, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at') } }
|
44
|
+
# The user ID associated with this assignment
|
45
|
+
field :user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } }
|
32
46
|
|
33
47
|
|
34
|
-
sig { params(course_id: T.nilable(::String), created_at: T.nilable(::String), due_date: T.nilable(::String), id: T.nilable(::String), remote_course_id: T.nilable(::String), remote_id: T.nilable(::String), status: T.nilable(T::Array[::StackOne::Shared::AssignmentStatusEnum]), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::String)).void }
|
35
|
-
def initialize(course_id: nil, created_at: nil, due_date: nil, id: nil, remote_course_id: nil, remote_id: nil, status: nil, unified_custom_fields: nil, updated_at: nil)
|
48
|
+
sig { params(course_id: T.nilable(::String), created_at: T.nilable(::String), due_date: T.nilable(::String), id: T.nilable(::String), learning_object_external_reference: T.nilable(::String), learning_object_id: T.nilable(::String), learning_object_type: T.nilable(T::Array[::StackOne::Shared::LearningObjectTypeEnum]), progress: T.nilable(::Float), remote_course_id: T.nilable(::String), remote_id: T.nilable(::String), remote_learning_object_id: T.nilable(::String), remote_user_id: T.nilable(::String), status: T.nilable(T::Array[::StackOne::Shared::AssignmentStatusEnum]), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::String), user_id: T.nilable(::String)).void }
|
49
|
+
def initialize(course_id: nil, created_at: nil, due_date: nil, id: nil, learning_object_external_reference: nil, learning_object_id: nil, learning_object_type: nil, progress: nil, remote_course_id: nil, remote_id: nil, remote_learning_object_id: nil, remote_user_id: nil, status: nil, unified_custom_fields: nil, updated_at: nil, user_id: nil)
|
36
50
|
@course_id = course_id
|
37
51
|
@created_at = created_at
|
38
52
|
@due_date = due_date
|
39
53
|
@id = id
|
54
|
+
@learning_object_external_reference = learning_object_external_reference
|
55
|
+
@learning_object_id = learning_object_id
|
56
|
+
@learning_object_type = learning_object_type
|
57
|
+
@progress = progress
|
40
58
|
@remote_course_id = remote_course_id
|
41
59
|
@remote_id = remote_id
|
60
|
+
@remote_learning_object_id = remote_learning_object_id
|
61
|
+
@remote_user_id = remote_user_id
|
42
62
|
@status = status
|
43
63
|
@unified_custom_fields = unified_custom_fields
|
44
64
|
@updated_at = updated_at
|
65
|
+
@user_id = user_id
|
45
66
|
end
|
46
67
|
end
|
47
68
|
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
|
+
# The content launch method associated with this content
|
11
|
+
class ContentLaunchMethod < ::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::LmsCreateContentRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::LmsCreateContentRequestDtoValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::LmsCreateContentRequestDtoValue)).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
|
@@ -31,12 +31,14 @@ module StackOne
|
|
31
31
|
field :pay_period, T.nilable(::StackOne::Shared::PayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
|
32
32
|
# The pay rate for the employee
|
33
33
|
field :pay_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_rate') } }
|
34
|
+
# The time worked for the employee in ISO 8601 duration format
|
35
|
+
field :time_worked, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('time_worked') } }
|
34
36
|
# Custom Unified Fields configured in your StackOne project
|
35
37
|
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
36
38
|
|
37
39
|
|
38
|
-
sig { params(effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_type: T.nilable(::StackOne::Shared::EmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::PayFrequency), pay_period: T.nilable(::StackOne::Shared::PayPeriod), pay_rate: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
39
|
-
def initialize(effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, unified_custom_fields: nil)
|
40
|
+
sig { params(effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_type: T.nilable(::StackOne::Shared::EmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::PayFrequency), pay_period: T.nilable(::StackOne::Shared::PayPeriod), pay_rate: T.nilable(::String), time_worked: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
41
|
+
def initialize(effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, time_worked: nil, unified_custom_fields: nil)
|
40
42
|
@effective_date = effective_date
|
41
43
|
@employee_id = employee_id
|
42
44
|
@employment_contract_type = employment_contract_type
|
@@ -47,6 +49,7 @@ module StackOne
|
|
47
49
|
@pay_frequency = pay_frequency
|
48
50
|
@pay_period = pay_period
|
49
51
|
@pay_rate = pay_rate
|
52
|
+
@time_worked = time_worked
|
50
53
|
@unified_custom_fields = unified_custom_fields
|
51
54
|
end
|
52
55
|
end
|
@@ -15,6 +15,8 @@ module StackOne
|
|
15
15
|
field :account_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_ids') } }
|
16
16
|
# The contact company name
|
17
17
|
field :company_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_name') } }
|
18
|
+
# Contact custom fields
|
19
|
+
field :custom_fields, T.nilable(T::Array[::StackOne::Shared::ContactsCustomFields]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_fields') } }
|
18
20
|
# List of associated deal IDs
|
19
21
|
field :deal_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('deal_ids') } }
|
20
22
|
# List of contact email addresses
|
@@ -29,10 +31,11 @@ module StackOne
|
|
29
31
|
field :phone_numbers, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_numbers') } }
|
30
32
|
|
31
33
|
|
32
|
-
sig { params(account_ids: T.nilable(T::Array[::String]), company_name: T.nilable(::String), deal_ids: T.nilable(T::Array[::String]), emails: T.nilable(T::Array[::String]), first_name: T.nilable(::String), last_name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), phone_numbers: T.nilable(T::Array[::String])).void }
|
33
|
-
def initialize(account_ids: nil, company_name: nil, deal_ids: nil, emails: nil, first_name: nil, last_name: nil, passthrough: nil, phone_numbers: nil)
|
34
|
+
sig { params(account_ids: T.nilable(T::Array[::String]), company_name: T.nilable(::String), custom_fields: T.nilable(T::Array[::StackOne::Shared::ContactsCustomFields]), deal_ids: T.nilable(T::Array[::String]), emails: T.nilable(T::Array[::String]), first_name: T.nilable(::String), last_name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), phone_numbers: T.nilable(T::Array[::String])).void }
|
35
|
+
def initialize(account_ids: nil, company_name: nil, custom_fields: nil, deal_ids: nil, emails: nil, first_name: nil, last_name: nil, passthrough: nil, phone_numbers: nil)
|
34
36
|
@account_ids = account_ids
|
35
37
|
@company_name = company_name
|
38
|
+
@custom_fields = custom_fields
|
36
39
|
@deal_ids = deal_ids
|
37
40
|
@emails = emails
|
38
41
|
@first_name = first_name
|
@@ -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 DeleteResult < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :message, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
|
16
|
+
|
17
|
+
field :status_code, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
|
18
|
+
|
19
|
+
field :timestamp, ::DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(message: ::String, status_code: ::Float, timestamp: ::DateTime).void }
|
23
|
+
def initialize(message: nil, status_code: nil, timestamp: nil)
|
24
|
+
@message = message
|
25
|
+
@status_code = status_code
|
26
|
+
@timestamp = timestamp
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -37,14 +37,16 @@ module StackOne
|
|
37
37
|
field :remote_employee_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_employee_id') } }
|
38
38
|
# Provider's unique identifier
|
39
39
|
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
40
|
+
# The time worked for the employee in ISO 8601 duration format
|
41
|
+
field :time_worked, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('time_worked') } }
|
40
42
|
# Custom Unified Fields configured in your StackOne project
|
41
43
|
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
42
44
|
# The updated_at date
|
43
45
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
44
46
|
|
45
47
|
|
46
|
-
sig { params(created_at: T.nilable(::DateTime), effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentEmploymentContractType), employment_type: T.nilable(::StackOne::Shared::EmploymentEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::EmploymentPayFrequency), pay_period: T.nilable(::StackOne::Shared::EmploymentPayPeriod), pay_rate: T.nilable(::String), remote_employee_id: T.nilable(::String), remote_id: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
47
|
-
def initialize(created_at: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, remote_employee_id: nil, remote_id: nil, unified_custom_fields: nil, updated_at: nil)
|
48
|
+
sig { params(created_at: T.nilable(::DateTime), effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentEmploymentContractType), employment_type: T.nilable(::StackOne::Shared::EmploymentEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::EmploymentPayFrequency), pay_period: T.nilable(::StackOne::Shared::EmploymentPayPeriod), pay_rate: T.nilable(::String), remote_employee_id: T.nilable(::String), remote_id: T.nilable(::String), time_worked: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
49
|
+
def initialize(created_at: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, remote_employee_id: nil, remote_id: nil, time_worked: nil, unified_custom_fields: nil, updated_at: nil)
|
48
50
|
@created_at = created_at
|
49
51
|
@effective_date = effective_date
|
50
52
|
@employee_id = employee_id
|
@@ -58,6 +60,7 @@ module StackOne
|
|
58
60
|
@pay_rate = pay_rate
|
59
61
|
@remote_employee_id = remote_employee_id
|
60
62
|
@remote_id = remote_id
|
63
|
+
@time_worked = time_worked
|
61
64
|
@unified_custom_fields = unified_custom_fields
|
62
65
|
@updated_at = updated_at
|
63
66
|
end
|
@@ -33,12 +33,14 @@ module StackOne
|
|
33
33
|
field :pay_period, T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoPayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
|
34
34
|
# The pay rate for the employee
|
35
35
|
field :pay_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_rate') } }
|
36
|
+
# The time worked for the employee in ISO 8601 duration format
|
37
|
+
field :time_worked, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('time_worked') } }
|
36
38
|
# Custom Unified Fields configured in your StackOne project
|
37
39
|
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
38
40
|
|
39
41
|
|
40
|
-
sig { params(effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentContractType), employment_type: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoPayFrequency), pay_period: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoPayPeriod), pay_rate: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
41
|
-
def initialize(effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, passthrough: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, unified_custom_fields: nil)
|
42
|
+
sig { params(effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentContractType), employment_type: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoPayFrequency), pay_period: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoPayPeriod), pay_rate: T.nilable(::String), time_worked: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
43
|
+
def initialize(effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, passthrough: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, time_worked: nil, unified_custom_fields: nil)
|
42
44
|
@effective_date = effective_date
|
43
45
|
@employee_id = employee_id
|
44
46
|
@employment_contract_type = employment_contract_type
|
@@ -50,6 +52,7 @@ module StackOne
|
|
50
52
|
@pay_frequency = pay_frequency
|
51
53
|
@pay_period = pay_period
|
52
54
|
@pay_rate = pay_rate
|
55
|
+
@time_worked = time_worked
|
53
56
|
@unified_custom_fields = unified_custom_fields
|
54
57
|
end
|
55
58
|
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 LearningObjectTypeEnum < ::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::LearningObjectTypeEnumValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::LearningObjectTypeEnumValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::LearningObjectTypeEnumValue)).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,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 LearningObjectTypeEnumValue < T::Enum
|
12
|
+
enums do
|
13
|
+
CONTENT = new('content')
|
14
|
+
COURSE = new('course')
|
15
|
+
COLLECTION = new('collection')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -15,6 +15,8 @@ module StackOne
|
|
15
15
|
field :active, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
16
16
|
# The categories associated with this content
|
17
17
|
field :categories, T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
|
18
|
+
# The content launch method associated with this content
|
19
|
+
field :content_launch_method, T.nilable(::StackOne::Shared::ContentLaunchMethod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content_launch_method') } }
|
18
20
|
# The type of content
|
19
21
|
field :content_type, T.nilable(::StackOne::Shared::LmsCreateContentRequestDtoContentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content_type') } }
|
20
22
|
# The external URL of the content
|
@@ -25,7 +27,7 @@ module StackOne
|
|
25
27
|
field :cover_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('cover_url') } }
|
26
28
|
# The description of the content
|
27
29
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
28
|
-
# The duration of the content following the ISO8601 standard. If duration_unit is applicable we will derive this from the smallest unit given in the duration string
|
30
|
+
# The duration of the content following the ISO8601 standard. If duration_unit is applicable we will derive this from the smallest unit given in the duration string or the minimum unit accepted by the provider.
|
29
31
|
field :duration, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
|
30
32
|
# The external ID associated with this content
|
31
33
|
field :external_reference, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('external_reference') } }
|
@@ -39,10 +41,11 @@ module StackOne
|
|
39
41
|
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
40
42
|
|
41
43
|
|
42
|
-
sig { params(active: T.nilable(::Object), categories: T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), content_type: T.nilable(::StackOne::Shared::LmsCreateContentRequestDtoContentType), content_url: T.nilable(::String), course_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), order: T.nilable(::Float), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
43
|
-
def initialize(active: nil, categories: nil, content_type: nil, content_url: nil, course_ids: nil, cover_url: nil, description: nil, duration: nil, external_reference: nil, languages: nil, order: nil, title: nil, unified_custom_fields: nil)
|
44
|
+
sig { params(active: T.nilable(::Object), categories: T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), content_launch_method: T.nilable(::StackOne::Shared::ContentLaunchMethod), content_type: T.nilable(::StackOne::Shared::LmsCreateContentRequestDtoContentType), content_url: T.nilable(::String), course_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), order: T.nilable(::Float), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
45
|
+
def initialize(active: nil, categories: nil, content_launch_method: nil, content_type: nil, content_url: nil, course_ids: nil, cover_url: nil, description: nil, duration: nil, external_reference: nil, languages: nil, order: nil, title: nil, unified_custom_fields: nil)
|
44
46
|
@active = active
|
45
47
|
@categories = categories
|
48
|
+
@content_launch_method = content_launch_method
|
46
49
|
@content_type = content_type
|
47
50
|
@content_url = content_url
|
48
51
|
@course_ids = course_ids
|
@@ -14,10 +14,10 @@ module StackOne
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
17
|
+
field :value, T.nilable(::StackOne::Shared::LmsCreateContentRequestDtoSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::LmsCreateContentRequestDtoSchemasValue, 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::LmsCreateContentRequestDtoSchemasValue)).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 LmsCreateContentRequestDtoSchemasValue < T::Enum
|
12
|
+
enums do
|
13
|
+
VIDEO = new('video')
|
14
|
+
QUIZ = new('quiz')
|
15
|
+
DOCUMENT = new('document')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -15,6 +15,8 @@ module StackOne
|
|
15
15
|
field :active, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
16
16
|
# The categories associated with this content
|
17
17
|
field :categories, T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
|
18
|
+
# The content launch method associated with this content
|
19
|
+
field :content_launch_method, T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentLaunchMethod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content_launch_method') } }
|
18
20
|
# The type of content
|
19
21
|
field :content_type, T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content_type') } }
|
20
22
|
# The external URL of the content
|
@@ -25,7 +27,7 @@ module StackOne
|
|
25
27
|
field :cover_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('cover_url') } }
|
26
28
|
# The description of the content
|
27
29
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
28
|
-
# The duration of the content following the ISO8601 standard. If duration_unit is applicable we will derive this from the smallest unit given in the duration string
|
30
|
+
# The duration of the content following the ISO8601 standard. If duration_unit is applicable we will derive this from the smallest unit given in the duration string or the minimum unit accepted by the provider.
|
29
31
|
field :duration, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
|
30
32
|
# The external ID associated with this content
|
31
33
|
field :external_reference, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('external_reference') } }
|
@@ -39,10 +41,11 @@ module StackOne
|
|
39
41
|
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
40
42
|
|
41
43
|
|
42
|
-
sig { params(active: T.nilable(::Object), categories: T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), content_type: T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentType), content_url: T.nilable(::String), course_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), order: T.nilable(::Float), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
43
|
-
def initialize(active: nil, categories: nil, content_type: nil, content_url: nil, course_ids: nil, cover_url: nil, description: nil, duration: nil, external_reference: nil, languages: nil, order: nil, title: nil, unified_custom_fields: nil)
|
44
|
+
sig { params(active: T.nilable(::Object), categories: T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), content_launch_method: T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentLaunchMethod), content_type: T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentType), content_url: T.nilable(::String), course_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), order: T.nilable(::Float), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
45
|
+
def initialize(active: nil, categories: nil, content_launch_method: nil, content_type: nil, content_url: nil, course_ids: nil, cover_url: nil, description: nil, duration: nil, external_reference: nil, languages: nil, order: nil, title: nil, unified_custom_fields: nil)
|
44
46
|
@active = active
|
45
47
|
@categories = categories
|
48
|
+
@content_launch_method = content_launch_method
|
46
49
|
@content_type = content_type
|
47
50
|
@content_url = content_url
|
48
51
|
@course_ids = course_ids
|
@@ -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
|
+
# The content launch method associated with this content
|
11
|
+
class LmsUpsertContentRequestDtoContentLaunchMethod < ::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::LmsUpsertContentRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::LmsUpsertContentRequestDtoValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoValue)).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
|
@@ -14,10 +14,10 @@ module StackOne
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
17
|
+
field :value, T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::LmsUpsertContentRequestDtoSchemasValue, 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::LmsUpsertContentRequestDtoSchemasValue)).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 LmsUpsertContentRequestDtoSchemasValue < T::Enum
|
12
|
+
enums do
|
13
|
+
VIDEO = new('video')
|
14
|
+
QUIZ = new('quiz')
|
15
|
+
DOCUMENT = new('document')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -19,14 +19,17 @@ module StackOne
|
|
19
19
|
field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
|
20
20
|
|
21
21
|
field :tags, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tags') } }
|
22
|
+
# Stackone enum identifying the type of content block.
|
23
|
+
field :type, T.nilable(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
22
24
|
|
23
25
|
|
24
|
-
sig { params(content: T.nilable(::String), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), tags: T.nilable(T::Array[::String])).void }
|
25
|
-
def initialize(content: nil, name: nil, passthrough: nil, tags: nil)
|
26
|
+
sig { params(content: T.nilable(::String), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), tags: T.nilable(T::Array[::String]), type: T.nilable(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoType)).void }
|
27
|
+
def initialize(content: nil, name: nil, passthrough: nil, tags: nil, type: nil)
|
26
28
|
@content = content
|
27
29
|
@name = name
|
28
30
|
@passthrough = passthrough
|
29
31
|
@tags = tags
|
32
|
+
@type = type
|
30
33
|
end
|
31
34
|
end
|
32
35
|
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
|
+
# Stackone enum identifying the type of content block.
|
11
|
+
class MarketingCreateContentBlocksRequestDtoType < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The source value of the type.
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# The type of the content blocks.
|
17
|
+
field :value, T.nilable(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoValue)).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,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
|
+
# MarketingCreateContentBlocksRequestDtoValue - The type of the content blocks.
|
11
|
+
class MarketingCreateContentBlocksRequestDtoValue < T::Enum
|
12
|
+
enums do
|
13
|
+
TEXT = new('text')
|
14
|
+
HTML = new('html')
|
15
|
+
IMAGE = new('image')
|
16
|
+
CODE_SNIPPET = new('code-snippet')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|