stackone_client 0.2.43 → 0.2.45
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/hris.rb +176 -0
- data/lib/stack_one/lms.rb +41 -0
- data/lib/stack_one/models/operations/create_request.rb +30 -0
- data/lib/stack_one/models/operations/create_response.rb +33 -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/hris_create_employee_employment_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_employment_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_cost_center_group_request.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_cost_center_group_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_employment_request.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_employment_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 +6 -3
- data/lib/stack_one/models/operations/lms_list_assignments_request.rb +3 -9
- data/lib/stack_one/models/operations/lms_list_user_assignments_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/lms_list_user_assignments_request.rb +3 -9
- data/lib/stack_one/models/operations.rb +19 -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 -8
- data/lib/stack_one/models/shared/createevent.rb +27 -0
- data/lib/stack_one/models/shared/createeventresponse.rb +33 -0
- 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/employee_schemas_country.rb +2 -2
- data/lib/stack_one/models/shared/employee_schemas_national_identity_number_type_value.rb +128 -0
- data/lib/stack_one/models/shared/employee_schemas_national_identity_number_value.rb +250 -6
- data/lib/stack_one/models/shared/employee_schemas_work_location_country.rb +27 -0
- data/lib/stack_one/models/shared/employee_type.rb +2 -2
- data/lib/stack_one/models/shared/employment.rb +5 -2
- data/lib/stack_one/models/shared/hriscostcenter.rb +48 -0
- data/lib/stack_one/models/shared/hriscostcenter_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscostcenter_value.rb +23 -0
- data/lib/stack_one/models/shared/hriscostcenterpaginated.rb +33 -0
- data/lib/stack_one/models/shared/hriscostcenterresult.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_national_identity_number.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_type_value.rb +128 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_value.rb +250 -6
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_country.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_type.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +60 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_pay_frequency_value.rb +31 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_value.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_value.rb +20 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +5 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_document_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisdepartment.rb +6 -3
- 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/hrisgroup.rb +6 -3
- data/lib/stack_one/models/shared/hrisgroup_value.rb +1 -0
- data/lib/stack_one/models/shared/iamgroup_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/national_identity_number.rb +5 -2
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +5 -0
- data/lib/stack_one/models/shared/unifieduploadrequestdto_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/work_location.rb +2 -2
- data/lib/stack_one/models/shared/workeligibility_schemas_document_value.rb +1 -0
- data/lib/stack_one/models/shared.rb +39 -12
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/stackone.rb +2 -1
- data/lib/stack_one/webhooks.rb +73 -0
- data/lib/stackone_client.rb +1 -0
- metadata +49 -2
@@ -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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisCreateEmployeeEmploymentRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :hris_create_employment_request_dto, ::StackOne::Shared::HrisCreateEmploymentRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The account identifier
|
19
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, x_account_id: ::String).void }
|
23
|
+
def initialize(hris_create_employment_request_dto: nil, id: nil, x_account_id: nil)
|
24
|
+
@hris_create_employment_request_dto = hris_create_employment_request_dto
|
25
|
+
@id = id
|
26
|
+
@x_account_id = x_account_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisCreateEmployeeEmploymentResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The employee employment was created successfully.
|
21
|
+
field :employment_result, T.nilable(::StackOne::Shared::EmploymentResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, employment_result: T.nilable(::StackOne::Shared::EmploymentResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, employment_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@employment_result = employment_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetCostCenterGroupRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
22
|
+
# Indicates that the raw request result is returned
|
23
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
28
|
+
@id = id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
@fields_ = fields_
|
31
|
+
@proxy = proxy
|
32
|
+
@raw = raw
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetCostCenterGroupResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The cost center group with the given identifier was retrieved.
|
21
|
+
field :hris_cost_center_result, T.nilable(::StackOne::Shared::HRISCostCenterResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_cost_center_result: T.nilable(::StackOne::Shared::HRISCostCenterResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_cost_center_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@hris_cost_center_result = hris_cost_center_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -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 Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class HrisListCostCenterGroupsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Use a string with a date to only select results updated after that given date
|
15
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
+
def initialize(updated_after: nil)
|
20
|
+
@updated_after = updated_after
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,52 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListCostCenterGroupsRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The account identifier
|
15
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
17
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
|
+
# Filter parameters that allow greater customisation of the list response
|
19
|
+
field :filter, T.nilable(::StackOne::Operations::HrisListCostCenterGroupsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
20
|
+
# The unified cursor
|
21
|
+
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
22
|
+
# The page number of the results to fetch
|
23
|
+
#
|
24
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
25
|
+
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
26
|
+
# The number of results per page
|
27
|
+
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
28
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
29
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
|
+
# Indicates that the raw request result is returned
|
31
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
+
# Use a string with a date to only select results updated after that given date
|
33
|
+
#
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
36
|
+
|
37
|
+
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::HrisListCostCenterGroupsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
40
|
+
@x_account_id = x_account_id
|
41
|
+
@fields_ = fields_
|
42
|
+
@filter = filter
|
43
|
+
@next_ = next_
|
44
|
+
@page = page
|
45
|
+
@page_size = page_size
|
46
|
+
@proxy = proxy
|
47
|
+
@raw = raw
|
48
|
+
@updated_after = updated_after
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListCostCenterGroupsResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The list of cost center groups was retrieved.
|
21
|
+
field :hris_cost_center_paginated, T.nilable(::StackOne::Shared::HRISCostCenterPaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_cost_center_paginated: T.nilable(::StackOne::Shared::HRISCostCenterPaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_cost_center_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@hris_cost_center_paginated = hris_cost_center_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisUpdateEmployeeEmploymentRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :hris_create_employment_request_dto, ::StackOne::Shared::HrisCreateEmploymentRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
|
20
|
+
# The account identifier
|
21
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).void }
|
25
|
+
def initialize(hris_create_employment_request_dto: nil, id: nil, sub_resource_id: nil, x_account_id: nil)
|
26
|
+
@hris_create_employment_request_dto = hris_create_employment_request_dto
|
27
|
+
@id = id
|
28
|
+
@sub_resource_id = sub_resource_id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisUpdateEmployeeEmploymentResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The employee employment was updated successfully.
|
21
|
+
field :employment_result, T.nilable(::StackOne::Shared::EmploymentResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, employment_result: T.nilable(::StackOne::Shared::EmploymentResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, employment_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@employment_result = employment_result
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class LmsDeleteContentRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(id: ::String, x_account_id: ::String).void }
|
21
|
+
def initialize(id: nil, x_account_id: nil)
|
22
|
+
@id = id
|
23
|
+
@x_account_id = x_account_id
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class LmsDeleteContentResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The content was deleted successfully.
|
21
|
+
field :delete_result, T.nilable(::StackOne::Shared::DeleteResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, delete_result: T.nilable(::StackOne::Shared::DeleteResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, delete_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@delete_result = delete_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -7,16 +7,19 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
#
|
10
|
+
# LMS Assignment Filter
|
11
11
|
class LmsListAssignmentsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# Filter to select assignment by completed status
|
15
|
+
field :completed, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'completed' } }
|
14
16
|
# Use a string with a date to only select results updated after that given date
|
15
17
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
18
|
|
17
19
|
|
18
|
-
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
-
def initialize(updated_after: nil)
|
20
|
+
sig { params(completed: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
21
|
+
def initialize(completed: nil, updated_after: nil)
|
22
|
+
@completed = completed
|
20
23
|
@updated_after = updated_after
|
21
24
|
end
|
22
25
|
end
|
@@ -15,7 +15,7 @@ module StackOne
|
|
15
15
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
16
16
|
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
17
17
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
|
-
#
|
18
|
+
# LMS Assignment Filter
|
19
19
|
field :filter, T.nilable(::StackOne::Operations::LmsListAssignmentsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', 'explode': true } }
|
20
20
|
# The unified cursor
|
21
21
|
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
@@ -29,18 +29,14 @@ module StackOne
|
|
29
29
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
30
30
|
# Indicates that the raw request result is returned
|
31
31
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
-
# Provider's unique identifier of the user related to the assignment
|
33
|
-
field :remote_user_id, T.nilable(::String), { 'query_param': { 'field_name': 'remote_user_id', 'style': 'form', 'explode': true } }
|
34
32
|
# Use a string with a date to only select results updated after that given date
|
35
33
|
#
|
36
34
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
37
35
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
38
|
-
# The user ID associated with this assignment
|
39
|
-
field :user_id, T.nilable(::String), { 'query_param': { 'field_name': 'user_id', 'style': 'form', 'explode': true } }
|
40
36
|
|
41
37
|
|
42
|
-
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListAssignmentsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean),
|
43
|
-
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListAssignmentsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
44
40
|
@x_account_id = x_account_id
|
45
41
|
@fields_ = fields_
|
46
42
|
@filter = filter
|
@@ -49,9 +45,7 @@ module StackOne
|
|
49
45
|
@page_size = page_size
|
50
46
|
@proxy = proxy
|
51
47
|
@raw = raw
|
52
|
-
@remote_user_id = remote_user_id
|
53
48
|
@updated_after = updated_after
|
54
|
-
@user_id = user_id
|
55
49
|
end
|
56
50
|
end
|
57
51
|
end
|
@@ -7,16 +7,19 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
#
|
10
|
+
# LMS Assignment Filter
|
11
11
|
class LmsListUserAssignmentsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# Filter to select assignment by completed status
|
15
|
+
field :completed, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'completed' } }
|
14
16
|
# Use a string with a date to only select results updated after that given date
|
15
17
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
18
|
|
17
19
|
|
18
|
-
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
-
def initialize(updated_after: nil)
|
20
|
+
sig { params(completed: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
21
|
+
def initialize(completed: nil, updated_after: nil)
|
22
|
+
@completed = completed
|
20
23
|
@updated_after = updated_after
|
21
24
|
end
|
22
25
|
end
|
@@ -17,7 +17,7 @@ module StackOne
|
|
17
17
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
18
|
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
19
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
-
#
|
20
|
+
# LMS Assignment Filter
|
21
21
|
field :filter, T.nilable(::StackOne::Operations::LmsListUserAssignmentsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', 'explode': true } }
|
22
22
|
# The unified cursor
|
23
23
|
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
@@ -31,18 +31,14 @@ module StackOne
|
|
31
31
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
34
|
-
# Provider's unique identifier of the user related to the assignment
|
35
|
-
field :remote_user_id, T.nilable(::String), { 'query_param': { 'field_name': 'remote_user_id', 'style': 'form', 'explode': true } }
|
36
34
|
# Use a string with a date to only select results updated after that given date
|
37
35
|
#
|
38
36
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
39
37
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
40
|
-
# The user ID associated with this assignment
|
41
|
-
field :user_id, T.nilable(::String), { 'query_param': { 'field_name': 'user_id', 'style': 'form', 'explode': true } }
|
42
38
|
|
43
39
|
|
44
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListUserAssignmentsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean),
|
45
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
40
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListUserAssignmentsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
41
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
46
42
|
@id = id
|
47
43
|
@x_account_id = x_account_id
|
48
44
|
@fields_ = fields_
|
@@ -52,9 +48,7 @@ module StackOne
|
|
52
48
|
@page_size = page_size
|
53
49
|
@proxy = proxy
|
54
50
|
@raw = raw
|
55
|
-
@remote_user_id = remote_user_id
|
56
51
|
@updated_after = updated_after
|
57
|
-
@user_id = user_id
|
58
52
|
end
|
59
53
|
end
|
60
54
|
end
|
@@ -163,11 +163,17 @@ module StackOne
|
|
163
163
|
autoload :CrmGetAccountResponse, 'stack_one/models/operations/crm_get_account_response.rb'
|
164
164
|
autoload :CrmGetContactRequest, 'stack_one/models/operations/crm_get_contact_request.rb'
|
165
165
|
autoload :CrmGetContactResponse, 'stack_one/models/operations/crm_get_contact_response.rb'
|
166
|
+
autoload :CrmGetContactCustomFieldDefinitionQueryParamFilter, 'stack_one/models/operations/crm_get_contact_custom_field_definition_queryparam_filter.rb'
|
167
|
+
autoload :CrmGetContactCustomFieldDefinitionRequest, 'stack_one/models/operations/crm_get_contact_custom_field_definition_request.rb'
|
168
|
+
autoload :CrmGetContactCustomFieldDefinitionResponse, 'stack_one/models/operations/crm_get_contact_custom_field_definition_response.rb'
|
166
169
|
autoload :CrmGetListRequest, 'stack_one/models/operations/crm_get_list_request.rb'
|
167
170
|
autoload :CrmGetListResponse, 'stack_one/models/operations/crm_get_list_response.rb'
|
168
171
|
autoload :CrmListAccountsQueryParamFilter, 'stack_one/models/operations/crm_list_accounts_queryparam_filter.rb'
|
169
172
|
autoload :CrmListAccountsRequest, 'stack_one/models/operations/crm_list_accounts_request.rb'
|
170
173
|
autoload :CrmListAccountsResponse, 'stack_one/models/operations/crm_list_accounts_response.rb'
|
174
|
+
autoload :CrmListContactCustomFieldDefinitionsQueryParamFilter, 'stack_one/models/operations/crm_list_contact_custom_field_definitions_queryparam_filter.rb'
|
175
|
+
autoload :CrmListContactCustomFieldDefinitionsRequest, 'stack_one/models/operations/crm_list_contact_custom_field_definitions_request.rb'
|
176
|
+
autoload :CrmListContactCustomFieldDefinitionsResponse, 'stack_one/models/operations/crm_list_contact_custom_field_definitions_response.rb'
|
171
177
|
autoload :CrmListContactsQueryParamFilter, 'stack_one/models/operations/crm_list_contacts_queryparam_filter.rb'
|
172
178
|
autoload :CrmListContactsRequest, 'stack_one/models/operations/crm_list_contacts_request.rb'
|
173
179
|
autoload :CrmListContactsResponse, 'stack_one/models/operations/crm_list_contacts_response.rb'
|
@@ -180,6 +186,8 @@ module StackOne
|
|
180
186
|
autoload :HrisBatchUploadEmployeeDocumentResponse, 'stack_one/models/operations/hris_batch_upload_employee_document_response.rb'
|
181
187
|
autoload :HrisCreateEmployeeRequest, 'stack_one/models/operations/hris_create_employee_request.rb'
|
182
188
|
autoload :HrisCreateEmployeeResponse, 'stack_one/models/operations/hris_create_employee_response.rb'
|
189
|
+
autoload :HrisCreateEmployeeEmploymentRequest, 'stack_one/models/operations/hris_create_employee_employment_request.rb'
|
190
|
+
autoload :HrisCreateEmployeeEmploymentResponse, 'stack_one/models/operations/hris_create_employee_employment_response.rb'
|
183
191
|
autoload :HrisCreateEmployeeTimeOffRequestRequest, 'stack_one/models/operations/hris_create_employee_time_off_request_request.rb'
|
184
192
|
autoload :HrisCreateEmployeeTimeOffRequestResponse, 'stack_one/models/operations/hris_create_employee_time_off_request_response.rb'
|
185
193
|
autoload :HrisCreateEmployeeWorkEligibilityRequestRequest, 'stack_one/models/operations/hris_create_employee_work_eligibility_request_request.rb'
|
@@ -192,6 +200,8 @@ module StackOne
|
|
192
200
|
autoload :HrisGetBenefitResponse, 'stack_one/models/operations/hris_get_benefit_response.rb'
|
193
201
|
autoload :HrisGetCompanyRequest, 'stack_one/models/operations/hris_get_company_request.rb'
|
194
202
|
autoload :HrisGetCompanyResponse, 'stack_one/models/operations/hris_get_company_response.rb'
|
203
|
+
autoload :HrisGetCostCenterGroupRequest, 'stack_one/models/operations/hris_get_cost_center_group_request.rb'
|
204
|
+
autoload :HrisGetCostCenterGroupResponse, 'stack_one/models/operations/hris_get_cost_center_group_response.rb'
|
195
205
|
autoload :HrisGetDepartmentGroupRequest, 'stack_one/models/operations/hris_get_department_group_request.rb'
|
196
206
|
autoload :HrisGetDepartmentGroupResponse, 'stack_one/models/operations/hris_get_department_group_response.rb'
|
197
207
|
autoload :HrisGetEmployeeRequest, 'stack_one/models/operations/hris_get_employee_request.rb'
|
@@ -222,6 +232,9 @@ module StackOne
|
|
222
232
|
autoload :HrisListCompaniesQueryParamFilter, 'stack_one/models/operations/hris_list_companies_queryparam_filter.rb'
|
223
233
|
autoload :HrisListCompaniesRequest, 'stack_one/models/operations/hris_list_companies_request.rb'
|
224
234
|
autoload :HrisListCompaniesResponse, 'stack_one/models/operations/hris_list_companies_response.rb'
|
235
|
+
autoload :HrisListCostCenterGroupsQueryParamFilter, 'stack_one/models/operations/hris_list_cost_center_groups_queryparam_filter.rb'
|
236
|
+
autoload :HrisListCostCenterGroupsRequest, 'stack_one/models/operations/hris_list_cost_center_groups_request.rb'
|
237
|
+
autoload :HrisListCostCenterGroupsResponse, 'stack_one/models/operations/hris_list_cost_center_groups_response.rb'
|
225
238
|
autoload :HrisListDepartmentGroupsQueryParamFilter, 'stack_one/models/operations/hris_list_department_groups_queryparam_filter.rb'
|
226
239
|
autoload :HrisListDepartmentGroupsRequest, 'stack_one/models/operations/hris_list_department_groups_request.rb'
|
227
240
|
autoload :HrisListDepartmentGroupsResponse, 'stack_one/models/operations/hris_list_department_groups_response.rb'
|
@@ -260,6 +273,8 @@ module StackOne
|
|
260
273
|
autoload :HrisListTimeOffRequestsResponse, 'stack_one/models/operations/hris_list_time_off_requests_response.rb'
|
261
274
|
autoload :HrisUpdateEmployeeRequest, 'stack_one/models/operations/hris_update_employee_request.rb'
|
262
275
|
autoload :HrisUpdateEmployeeResponse, 'stack_one/models/operations/hris_update_employee_response.rb'
|
276
|
+
autoload :HrisUpdateEmployeeEmploymentRequest, 'stack_one/models/operations/hris_update_employee_employment_request.rb'
|
277
|
+
autoload :HrisUpdateEmployeeEmploymentResponse, 'stack_one/models/operations/hris_update_employee_employment_response.rb'
|
263
278
|
autoload :HrisUpdateEmployeeWorkEligibilityRequestRequest, 'stack_one/models/operations/hris_update_employee_work_eligibility_request_request.rb'
|
264
279
|
autoload :HrisUpdateEmployeeWorkEligibilityRequestResponse, 'stack_one/models/operations/hris_update_employee_work_eligibility_request_response.rb'
|
265
280
|
autoload :HrisUpdateTimeOffRequestRequest, 'stack_one/models/operations/hris_update_time_off_request_request.rb'
|
@@ -292,6 +307,8 @@ module StackOne
|
|
292
307
|
autoload :LmsCreateContentResponse, 'stack_one/models/operations/lms_create_content_response.rb'
|
293
308
|
autoload :LmsCreateUserCompletionRequest, 'stack_one/models/operations/lms_create_user_completion_request.rb'
|
294
309
|
autoload :LmsCreateUserCompletionResponse, 'stack_one/models/operations/lms_create_user_completion_response.rb'
|
310
|
+
autoload :LmsDeleteContentRequest, 'stack_one/models/operations/lms_delete_content_request.rb'
|
311
|
+
autoload :LmsDeleteContentResponse, 'stack_one/models/operations/lms_delete_content_response.rb'
|
295
312
|
autoload :LmsGetAssignmentRequest, 'stack_one/models/operations/lms_get_assignment_request.rb'
|
296
313
|
autoload :LmsGetAssignmentResponse, 'stack_one/models/operations/lms_get_assignment_response.rb'
|
297
314
|
autoload :LmsGetCategoryRequest, 'stack_one/models/operations/lms_get_category_request.rb'
|
@@ -402,5 +419,7 @@ module StackOne
|
|
402
419
|
autoload :MarketingUpdateSmsTemplateResponse, 'stack_one/models/operations/marketing_update_sms_template_response.rb'
|
403
420
|
autoload :StackoneProxyRequestRequest, 'stack_one/models/operations/stackone_proxy_request_request.rb'
|
404
421
|
autoload :StackoneProxyRequestResponse, 'stack_one/models/operations/stackone_proxy_request_response.rb'
|
422
|
+
autoload :CreateRequest, 'stack_one/models/operations/create_request.rb'
|
423
|
+
autoload :CreateResponse, 'stack_one/models/operations/create_response.rb'
|
405
424
|
end
|
406
425
|
end
|
@@ -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
|