stackone_client 0.19.0 → 0.21.0
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/lms.rb +292 -0
- data/lib/stack_one/models/operations/lms_update_content_request.rb +41 -0
- data/lib/stack_one/models/operations/lms_update_content_response.rb +49 -0
- data/lib/stack_one/models/operations/queryparam_type.rb +6 -1
- data/lib/stack_one/models/operations/type.rb +6 -1
- data/lib/stack_one/models/operations.rb +2 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +6 -1
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +111 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_4.rb +28 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_content_type.rb +37 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_source_value.rb +28 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb +24 -0
- data/lib/stack_one/models/shared/rawresponse.rb +2 -2
- data/lib/stack_one/models/shared/response.rb +3 -24
- data/lib/stack_one/models/shared/steplog.rb +2 -2
- data/lib/stack_one/models/shared/steplog_response.rb +49 -0
- data/lib/stack_one/models/shared/timeoff_schemas_policy_type_value.rb +16 -4
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +6 -1
- data/lib/stack_one/models/shared/timeoffbalances_schemas_policy_value.rb +16 -4
- data/lib/stack_one/models/shared/timeoffpolicies_schemas_value.rb +16 -4
- data/lib/stack_one/models/shared.rb +6 -0
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c89996c027b4eeea4a92889117770616a54d70bf293cd3ad5d9b680e367c054d
|
4
|
+
data.tar.gz: 570d75d68bd550d24672f4cc93138940d9ca7ea832c15f7bbdd34c27da5d1b1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33e395c9099cd9f86d99cc849a38d458e36e1f9f628d9d16fa83f20807da0a2d1bbb0bf7904f8f5b3f8c524a80a09543c0401fcb0a231c320811c5835f165483
|
7
|
+
data.tar.gz: aa08072560337e3aa53349a7401e09e7a8bcc856a97cb8544a2f70d6cfc95b3b9a82183c7353bbd11463418066800a8a4c165c367d03337fb3fbce00a2afbfa2
|
data/lib/stack_one/lms.rb
CHANGED
@@ -6981,6 +6981,298 @@ module StackOne
|
|
6981
6981
|
end
|
6982
6982
|
|
6983
6983
|
|
6984
|
+
sig { params(lms_create_content_request_dto: Models::Shared::LmsCreateContentRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::LmsUpdateContentResponse) }
|
6985
|
+
def update_content(lms_create_content_request_dto, id, x_account_id, retries = nil, timeout_ms = nil)
|
6986
|
+
# update_content - Update Content
|
6987
|
+
request = Models::Operations::LmsUpdateContentRequest.new(
|
6988
|
+
|
6989
|
+
lms_create_content_request_dto: lms_create_content_request_dto,
|
6990
|
+
id: id,
|
6991
|
+
x_account_id: x_account_id
|
6992
|
+
)
|
6993
|
+
url, params = @sdk_configuration.get_server_details
|
6994
|
+
base_url = Utils.template_url(url, params)
|
6995
|
+
url = Utils.generate_url(
|
6996
|
+
Models::Operations::LmsUpdateContentRequest,
|
6997
|
+
base_url,
|
6998
|
+
'/unified/lms/content/{id}',
|
6999
|
+
request
|
7000
|
+
)
|
7001
|
+
headers = Utils.get_headers(request)
|
7002
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_content_request_dto, :json)
|
7003
|
+
headers['content-type'] = req_content_type
|
7004
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
7005
|
+
|
7006
|
+
if form
|
7007
|
+
body = Utils.encode_form(form)
|
7008
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
7009
|
+
body = URI.encode_www_form(data)
|
7010
|
+
else
|
7011
|
+
body = data
|
7012
|
+
end
|
7013
|
+
headers['Accept'] = 'application/json'
|
7014
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
7015
|
+
retries ||= @sdk_configuration.retry_config
|
7016
|
+
retries ||= Utils::RetryConfig.new(
|
7017
|
+
backoff: Utils::BackoffStrategy.new(
|
7018
|
+
exponent: 1.5,
|
7019
|
+
initial_interval: 500,
|
7020
|
+
max_elapsed_time: 3_600_000,
|
7021
|
+
max_interval: 60_000
|
7022
|
+
),
|
7023
|
+
retry_connection_errors: true,
|
7024
|
+
strategy: 'backoff'
|
7025
|
+
)
|
7026
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
7027
|
+
retry_options[:retry_statuses] = [429, 408]
|
7028
|
+
|
7029
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
7030
|
+
|
7031
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
7032
|
+
timeout ||= @sdk_configuration.timeout
|
7033
|
+
|
7034
|
+
connection = @sdk_configuration.client.dup
|
7035
|
+
connection.request :retry, retry_options
|
7036
|
+
|
7037
|
+
hook_ctx = SDKHooks::HookContext.new(
|
7038
|
+
base_url: base_url,
|
7039
|
+
oauth2_scopes: [],
|
7040
|
+
operation_id: 'lms_update_content',
|
7041
|
+
security_source: @sdk_configuration.security_source
|
7042
|
+
)
|
7043
|
+
|
7044
|
+
error = T.let(nil, T.nilable(StandardError))
|
7045
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
7046
|
+
|
7047
|
+
|
7048
|
+
begin
|
7049
|
+
http_response = connection.patch(url) do |req|
|
7050
|
+
req.body = body
|
7051
|
+
req.headers.merge!(headers)
|
7052
|
+
req.options.timeout = timeout unless timeout.nil?
|
7053
|
+
Utils.configure_request_security(req, security)
|
7054
|
+
|
7055
|
+
@sdk_configuration.hooks.before_request(
|
7056
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
7057
|
+
hook_ctx: hook_ctx
|
7058
|
+
),
|
7059
|
+
request: req
|
7060
|
+
)
|
7061
|
+
end
|
7062
|
+
rescue StandardError => e
|
7063
|
+
error = e
|
7064
|
+
ensure
|
7065
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
7066
|
+
http_response = @sdk_configuration.hooks.after_error(
|
7067
|
+
error: error,
|
7068
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
7069
|
+
hook_ctx: hook_ctx
|
7070
|
+
),
|
7071
|
+
response: http_response
|
7072
|
+
)
|
7073
|
+
else
|
7074
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7075
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7076
|
+
hook_ctx: hook_ctx
|
7077
|
+
),
|
7078
|
+
response: http_response
|
7079
|
+
)
|
7080
|
+
end
|
7081
|
+
|
7082
|
+
if http_response.nil?
|
7083
|
+
raise error if !error.nil?
|
7084
|
+
raise 'no response'
|
7085
|
+
end
|
7086
|
+
end
|
7087
|
+
|
7088
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
7089
|
+
if Utils.match_status_code(http_response.status, ['201'])
|
7090
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7091
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7092
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7093
|
+
hook_ctx: hook_ctx
|
7094
|
+
),
|
7095
|
+
response: http_response
|
7096
|
+
)
|
7097
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::UpdateResult)
|
7098
|
+
response = Models::Operations::LmsUpdateContentResponse.new(
|
7099
|
+
status_code: http_response.status,
|
7100
|
+
content_type: content_type,
|
7101
|
+
raw_response: http_response,
|
7102
|
+
update_result: obj
|
7103
|
+
)
|
7104
|
+
|
7105
|
+
return response
|
7106
|
+
else
|
7107
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7108
|
+
end
|
7109
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
7110
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7111
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7112
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7113
|
+
hook_ctx: hook_ctx
|
7114
|
+
),
|
7115
|
+
response: http_response
|
7116
|
+
)
|
7117
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
7118
|
+
throw obj
|
7119
|
+
else
|
7120
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7121
|
+
end
|
7122
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
7123
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7124
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7125
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7126
|
+
hook_ctx: hook_ctx
|
7127
|
+
),
|
7128
|
+
response: http_response
|
7129
|
+
)
|
7130
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
7131
|
+
throw obj
|
7132
|
+
else
|
7133
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7134
|
+
end
|
7135
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
7136
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7137
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7138
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7139
|
+
hook_ctx: hook_ctx
|
7140
|
+
),
|
7141
|
+
response: http_response
|
7142
|
+
)
|
7143
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
7144
|
+
throw obj
|
7145
|
+
else
|
7146
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7147
|
+
end
|
7148
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
7149
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7150
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7151
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7152
|
+
hook_ctx: hook_ctx
|
7153
|
+
),
|
7154
|
+
response: http_response
|
7155
|
+
)
|
7156
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
7157
|
+
throw obj
|
7158
|
+
else
|
7159
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7160
|
+
end
|
7161
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
7162
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7163
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7164
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7165
|
+
hook_ctx: hook_ctx
|
7166
|
+
),
|
7167
|
+
response: http_response
|
7168
|
+
)
|
7169
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
7170
|
+
throw obj
|
7171
|
+
else
|
7172
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7173
|
+
end
|
7174
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
7175
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7176
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7177
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7178
|
+
hook_ctx: hook_ctx
|
7179
|
+
),
|
7180
|
+
response: http_response
|
7181
|
+
)
|
7182
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
7183
|
+
throw obj
|
7184
|
+
else
|
7185
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7186
|
+
end
|
7187
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
7188
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7189
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7190
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7191
|
+
hook_ctx: hook_ctx
|
7192
|
+
),
|
7193
|
+
response: http_response
|
7194
|
+
)
|
7195
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
7196
|
+
throw obj
|
7197
|
+
else
|
7198
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7199
|
+
end
|
7200
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
7201
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7202
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7203
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7204
|
+
hook_ctx: hook_ctx
|
7205
|
+
),
|
7206
|
+
response: http_response
|
7207
|
+
)
|
7208
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
7209
|
+
throw obj
|
7210
|
+
else
|
7211
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7212
|
+
end
|
7213
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
7214
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7215
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7216
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7217
|
+
hook_ctx: hook_ctx
|
7218
|
+
),
|
7219
|
+
response: http_response
|
7220
|
+
)
|
7221
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
7222
|
+
throw obj
|
7223
|
+
else
|
7224
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7225
|
+
end
|
7226
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
7227
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7228
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7229
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7230
|
+
hook_ctx: hook_ctx
|
7231
|
+
),
|
7232
|
+
response: http_response
|
7233
|
+
)
|
7234
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
7235
|
+
throw obj
|
7236
|
+
else
|
7237
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7238
|
+
end
|
7239
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
7240
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7241
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7242
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7243
|
+
hook_ctx: hook_ctx
|
7244
|
+
),
|
7245
|
+
response: http_response
|
7246
|
+
)
|
7247
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
7248
|
+
throw obj
|
7249
|
+
else
|
7250
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7251
|
+
end
|
7252
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
7253
|
+
if Utils.match_content_type(content_type, 'application/json')
|
7254
|
+
http_response = @sdk_configuration.hooks.after_success(
|
7255
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
7256
|
+
hook_ctx: hook_ctx
|
7257
|
+
),
|
7258
|
+
response: http_response
|
7259
|
+
)
|
7260
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
7261
|
+
throw obj
|
7262
|
+
else
|
7263
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
7264
|
+
end
|
7265
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
7266
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
7267
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
7268
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
7269
|
+
else
|
7270
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
7271
|
+
|
7272
|
+
end
|
7273
|
+
end
|
7274
|
+
|
7275
|
+
|
6984
7276
|
sig { params(lms_upsert_content_request_dto: Models::Shared::LmsUpsertContentRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::LmsUpsertContentResponse) }
|
6985
7277
|
def upsert_content(lms_upsert_content_request_dto, x_account_id, retries = nil, timeout_ms = nil)
|
6986
7278
|
# upsert_content - Upsert Content
|
@@ -0,0 +1,41 @@
|
|
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 Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class LmsUpdateContentRequest
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
|
17
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
field :lms_create_content_request_dto, Models::Shared::LmsCreateContentRequestDto, { 'request': { 'media_type': 'application/json' } }
|
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(id: ::String, lms_create_content_request_dto: Models::Shared::LmsCreateContentRequestDto, x_account_id: ::String).void }
|
25
|
+
def initialize(id: nil, lms_create_content_request_dto: nil, x_account_id: nil)
|
26
|
+
@id = id
|
27
|
+
@lms_create_content_request_dto = lms_create_content_request_dto
|
28
|
+
@x_account_id = x_account_id
|
29
|
+
end
|
30
|
+
|
31
|
+
def ==(other)
|
32
|
+
return false unless other.is_a? self.class
|
33
|
+
return false unless @id == other.id
|
34
|
+
return false unless @lms_create_content_request_dto == other.lms_create_content_request_dto
|
35
|
+
return false unless @x_account_id == other.x_account_id
|
36
|
+
true
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,49 @@
|
|
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 Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class LmsUpdateContentResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# HTTP response content type for this operation
|
17
|
+
field :content_type, ::String
|
18
|
+
|
19
|
+
field :headers, T::Hash[Symbol, T::Array[::String]]
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
21
|
+
field :raw_response, ::Faraday::Response
|
22
|
+
# HTTP response status code for this operation
|
23
|
+
field :status_code, ::Integer
|
24
|
+
# The content was updated successfully.
|
25
|
+
field :update_result, T.nilable(Models::Shared::UpdateResult)
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], raw_response: ::Faraday::Response, status_code: ::Integer, update_result: T.nilable(Models::Shared::UpdateResult)).void }
|
29
|
+
def initialize(content_type: nil, headers: nil, raw_response: nil, status_code: nil, update_result: nil)
|
30
|
+
@content_type = content_type
|
31
|
+
@headers = headers
|
32
|
+
@raw_response = raw_response
|
33
|
+
@status_code = status_code
|
34
|
+
@update_result = update_result
|
35
|
+
end
|
36
|
+
|
37
|
+
def ==(other)
|
38
|
+
return false unless other.is_a? self.class
|
39
|
+
return false unless @content_type == other.content_type
|
40
|
+
return false unless @headers == other.headers
|
41
|
+
return false unless @raw_response == other.raw_response
|
42
|
+
return false unless @status_code == other.status_code
|
43
|
+
return false unless @update_result == other.update_result
|
44
|
+
true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -25,9 +25,14 @@ module StackOne
|
|
25
25
|
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
26
|
MATERNITY_LEAVE = new('maternity_leave')
|
27
27
|
JURY_DUTY = new('jury_duty')
|
28
|
-
BEREAVEMENT_LEAVE = new('bereavement_leave')
|
29
28
|
SABBATICAL = new('sabbatical')
|
30
29
|
ACCIDENT = new('accident')
|
30
|
+
PAID = new('paid')
|
31
|
+
UNPAID = new('unpaid')
|
32
|
+
HOLIDAY = new('holiday')
|
33
|
+
PERSONAL = new('personal')
|
34
|
+
IN_LIEU = new('in_lieu')
|
35
|
+
BEREAVEMENT = new('bereavement')
|
31
36
|
end
|
32
37
|
end
|
33
38
|
end
|
@@ -25,9 +25,14 @@ module StackOne
|
|
25
25
|
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
26
|
MATERNITY_LEAVE = new('maternity_leave')
|
27
27
|
JURY_DUTY = new('jury_duty')
|
28
|
-
BEREAVEMENT_LEAVE = new('bereavement_leave')
|
29
28
|
SABBATICAL = new('sabbatical')
|
30
29
|
ACCIDENT = new('accident')
|
30
|
+
PAID = new('paid')
|
31
|
+
UNPAID = new('unpaid')
|
32
|
+
HOLIDAY = new('holiday')
|
33
|
+
PERSONAL = new('personal')
|
34
|
+
IN_LIEU = new('in_lieu')
|
35
|
+
BEREAVEMENT = new('bereavement')
|
31
36
|
end
|
32
37
|
end
|
33
38
|
end
|
@@ -436,6 +436,8 @@ module StackOne
|
|
436
436
|
autoload :LmsListUsersResponse, 'stack_one/models/operations/lms_list_users_response.rb'
|
437
437
|
autoload :LmsUpdateCollectionRequest, 'stack_one/models/operations/lms_update_collection_request.rb'
|
438
438
|
autoload :LmsUpdateCollectionResponse, 'stack_one/models/operations/lms_update_collection_response.rb'
|
439
|
+
autoload :LmsUpdateContentRequest, 'stack_one/models/operations/lms_update_content_request.rb'
|
440
|
+
autoload :LmsUpdateContentResponse, 'stack_one/models/operations/lms_update_content_response.rb'
|
439
441
|
autoload :LmsUpsertContentRequest, 'stack_one/models/operations/lms_upsert_content_request.rb'
|
440
442
|
autoload :LmsUpsertContentResponse, 'stack_one/models/operations/lms_upsert_content_response.rb'
|
441
443
|
autoload :LmsUpsertCourseRequest, 'stack_one/models/operations/lms_upsert_course_request.rb'
|
@@ -19,6 +19,8 @@ module StackOne
|
|
19
19
|
field :candidate, T.nilable(Models::Shared::AtsCreateApplicationRequestDtoCandidate), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate') } }
|
20
20
|
# Unique identifier of the candidate. Provide this OR candidate, but not both.
|
21
21
|
field :candidate_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate_id') } }
|
22
|
+
# Document Properties. Providing this attempts to upload files with the application.
|
23
|
+
field :documents, T.nilable(T::Array[Models::Shared::UnifiedUploadRequestDto]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('documents') } }
|
22
24
|
# Unique identifier of the job
|
23
25
|
field :job_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_id') } }
|
24
26
|
# Unique identifier of the job posting that is associated with application
|
@@ -33,11 +35,12 @@ module StackOne
|
|
33
35
|
field :source, T.nilable(Models::Shared::AtsCreateApplicationRequestDtoSource), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source') } }
|
34
36
|
|
35
37
|
|
36
|
-
sig { params(application_status: T.nilable(Models::Shared::AtsCreateApplicationRequestDtoApplicationStatus), candidate: T.nilable(Models::Shared::AtsCreateApplicationRequestDtoCandidate), candidate_id: T.nilable(::String), job_id: T.nilable(::String), job_posting_id: T.nilable(::String), location_id: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), questionnaires: T.nilable(T::Array[Models::Shared::CreateQuestionnaire]), source: T.nilable(Models::Shared::AtsCreateApplicationRequestDtoSource)).void }
|
37
|
-
def initialize(application_status: nil, candidate: nil, candidate_id: nil, job_id: nil, job_posting_id: nil, location_id: nil, passthrough: nil, questionnaires: nil, source: nil)
|
38
|
+
sig { params(application_status: T.nilable(Models::Shared::AtsCreateApplicationRequestDtoApplicationStatus), candidate: T.nilable(Models::Shared::AtsCreateApplicationRequestDtoCandidate), candidate_id: T.nilable(::String), documents: T.nilable(T::Array[Models::Shared::UnifiedUploadRequestDto]), job_id: T.nilable(::String), job_posting_id: T.nilable(::String), location_id: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), questionnaires: T.nilable(T::Array[Models::Shared::CreateQuestionnaire]), source: T.nilable(Models::Shared::AtsCreateApplicationRequestDtoSource)).void }
|
39
|
+
def initialize(application_status: nil, candidate: nil, candidate_id: nil, documents: nil, job_id: nil, job_posting_id: nil, location_id: nil, passthrough: nil, questionnaires: nil, source: nil)
|
38
40
|
@application_status = application_status
|
39
41
|
@candidate = candidate
|
40
42
|
@candidate_id = candidate_id
|
43
|
+
@documents = documents
|
41
44
|
@job_id = job_id
|
42
45
|
@job_posting_id = job_posting_id
|
43
46
|
@location_id = location_id
|
@@ -51,6 +54,7 @@ module StackOne
|
|
51
54
|
return false unless @application_status == other.application_status
|
52
55
|
return false unless @candidate == other.candidate
|
53
56
|
return false unless @candidate_id == other.candidate_id
|
57
|
+
return false unless @documents == other.documents
|
54
58
|
return false unless @job_id == other.job_id
|
55
59
|
return false unless @job_posting_id == other.job_posting_id
|
56
60
|
return false unless @location_id == other.location_id
|
@@ -25,9 +25,14 @@ module StackOne
|
|
25
25
|
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
26
|
MATERNITY_LEAVE = new('maternity_leave')
|
27
27
|
JURY_DUTY = new('jury_duty')
|
28
|
-
BEREAVEMENT_LEAVE = new('bereavement_leave')
|
29
28
|
SABBATICAL = new('sabbatical')
|
30
29
|
ACCIDENT = new('accident')
|
30
|
+
PAID = new('paid')
|
31
|
+
UNPAID = new('unpaid')
|
32
|
+
HOLIDAY = new('holiday')
|
33
|
+
PERSONAL = new('personal')
|
34
|
+
IN_LIEU = new('in_lieu')
|
35
|
+
BEREAVEMENT = new('bereavement')
|
31
36
|
end
|
32
37
|
end
|
33
38
|
end
|
@@ -0,0 +1,111 @@
|
|
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 Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class LmsCreateContentRequestDto
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# Whether the content is active and available for users.
|
17
|
+
field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
18
|
+
# The additional_data associated with this content
|
19
|
+
field :additional_data, T.nilable(T::Array[Models::Shared::AdditionalData]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('additional_data') } }
|
20
|
+
# The categories associated with this content
|
21
|
+
field :categories, T.nilable(T::Array[Models::Shared::CreateCategoriesApiModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
|
22
|
+
# The type of content
|
23
|
+
field :content_type, T.nilable(Models::Shared::LmsCreateContentRequestDtoContentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content_type') } }
|
24
|
+
# The external URL of the content
|
25
|
+
field :content_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content_url') } }
|
26
|
+
# The URL of the thumbnail image associated with the content.
|
27
|
+
field :cover_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('cover_url') } }
|
28
|
+
# The date on which the content was created.
|
29
|
+
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
30
|
+
# The description of the content
|
31
|
+
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
32
|
+
# 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.
|
33
|
+
field :duration, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
|
34
|
+
# The external ID associated with this content
|
35
|
+
field :external_reference, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('external_reference') } }
|
36
|
+
# The languages associated with this content
|
37
|
+
field :languages, T.nilable(T::Array[Models::Shared::LanguageEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('languages') } }
|
38
|
+
# The localization data for this content
|
39
|
+
field :localizations, T.nilable(T::Array[Models::Shared::LocalizationModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('localizations') } }
|
40
|
+
# The mobile friendly URL of the content
|
41
|
+
field :mobile_launch_content_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('mobile_launch_content_url') } }
|
42
|
+
# The order of the individual content within a content grouping. This is not applicable for pushing individual content.
|
43
|
+
field :order, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } }
|
44
|
+
# A short description or summary for the content
|
45
|
+
#
|
46
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
47
|
+
field :short_description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('short_description') } }
|
48
|
+
# The skills associated with this content
|
49
|
+
field :skills, T.nilable(T::Array[Models::Shared::CreateSkillsApiModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('skills') } }
|
50
|
+
# A list of tags associated with the content
|
51
|
+
field :tags, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tags') } }
|
52
|
+
# The title of the content
|
53
|
+
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
|
54
|
+
# Custom Unified Fields configured in your StackOne project
|
55
|
+
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
56
|
+
# The date on which the content was last updated.
|
57
|
+
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
58
|
+
|
59
|
+
|
60
|
+
sig { params(active: T.nilable(T::Boolean), additional_data: T.nilable(T::Array[Models::Shared::AdditionalData]), categories: T.nilable(T::Array[Models::Shared::CreateCategoriesApiModel]), content_type: T.nilable(Models::Shared::LmsCreateContentRequestDtoContentType), content_url: T.nilable(::String), cover_url: T.nilable(::String), created_at: T.nilable(::DateTime), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[Models::Shared::LanguageEnum]), localizations: T.nilable(T::Array[Models::Shared::LocalizationModel]), mobile_launch_content_url: T.nilable(::String), order: T.nilable(::Float), short_description: T.nilable(::String), skills: T.nilable(T::Array[Models::Shared::CreateSkillsApiModel]), tags: T.nilable(T::Array[::String]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
61
|
+
def initialize(active: nil, additional_data: nil, categories: nil, content_type: nil, content_url: nil, cover_url: nil, created_at: nil, description: nil, duration: nil, external_reference: nil, languages: nil, localizations: nil, mobile_launch_content_url: nil, order: nil, short_description: nil, skills: nil, tags: nil, title: nil, unified_custom_fields: nil, updated_at: nil)
|
62
|
+
@active = active
|
63
|
+
@additional_data = additional_data
|
64
|
+
@categories = categories
|
65
|
+
@content_type = content_type
|
66
|
+
@content_url = content_url
|
67
|
+
@cover_url = cover_url
|
68
|
+
@created_at = created_at
|
69
|
+
@description = description
|
70
|
+
@duration = duration
|
71
|
+
@external_reference = external_reference
|
72
|
+
@languages = languages
|
73
|
+
@localizations = localizations
|
74
|
+
@mobile_launch_content_url = mobile_launch_content_url
|
75
|
+
@order = order
|
76
|
+
@short_description = short_description
|
77
|
+
@skills = skills
|
78
|
+
@tags = tags
|
79
|
+
@title = title
|
80
|
+
@unified_custom_fields = unified_custom_fields
|
81
|
+
@updated_at = updated_at
|
82
|
+
end
|
83
|
+
|
84
|
+
def ==(other)
|
85
|
+
return false unless other.is_a? self.class
|
86
|
+
return false unless @active == other.active
|
87
|
+
return false unless @additional_data == other.additional_data
|
88
|
+
return false unless @categories == other.categories
|
89
|
+
return false unless @content_type == other.content_type
|
90
|
+
return false unless @content_url == other.content_url
|
91
|
+
return false unless @cover_url == other.cover_url
|
92
|
+
return false unless @created_at == other.created_at
|
93
|
+
return false unless @description == other.description
|
94
|
+
return false unless @duration == other.duration
|
95
|
+
return false unless @external_reference == other.external_reference
|
96
|
+
return false unless @languages == other.languages
|
97
|
+
return false unless @localizations == other.localizations
|
98
|
+
return false unless @mobile_launch_content_url == other.mobile_launch_content_url
|
99
|
+
return false unless @order == other.order
|
100
|
+
return false unless @short_description == other.short_description
|
101
|
+
return false unless @skills == other.skills
|
102
|
+
return false unless @tags == other.tags
|
103
|
+
return false unless @title == other.title
|
104
|
+
return false unless @unified_custom_fields == other.unified_custom_fields
|
105
|
+
return false unless @updated_at == other.updated_at
|
106
|
+
true
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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 Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class LmsCreateContentRequestDto4
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
def initialize; end
|
20
|
+
|
21
|
+
def ==(other)
|
22
|
+
return false unless other.is_a? self.class
|
23
|
+
true
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,37 @@
|
|
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 Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
# The type of content
|
12
|
+
class LmsCreateContentRequestDtoContentType
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
|
17
|
+
field :source_value, T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::LmsCreateContentRequestDto4, T::Array[::Object])), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
18
|
+
|
19
|
+
field :value, T.nilable(Models::Shared::LmsCreateContentRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::LmsCreateContentRequestDtoValue, true) } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::LmsCreateContentRequestDto4, T::Array[::Object])), value: T.nilable(Models::Shared::LmsCreateContentRequestDtoValue)).void }
|
23
|
+
def initialize(source_value: nil, value: nil)
|
24
|
+
@source_value = source_value
|
25
|
+
@value = value
|
26
|
+
end
|
27
|
+
|
28
|
+
def ==(other)
|
29
|
+
return false unless other.is_a? self.class
|
30
|
+
return false unless @source_value == other.source_value
|
31
|
+
return false unless @value == other.value
|
32
|
+
true
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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 Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class LmsCreateContentRequestDtoSourceValue
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
def initialize; end
|
20
|
+
|
21
|
+
def ==(other)
|
22
|
+
return false unless other.is_a? self.class
|
23
|
+
true
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
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 Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class LmsCreateContentRequestDtoValue < T::Enum
|
13
|
+
enums do
|
14
|
+
VIDEO = new('video')
|
15
|
+
QUIZ = new('quiz')
|
16
|
+
DOCUMENT = new('document')
|
17
|
+
AUDIO = new('audio')
|
18
|
+
ARTICLE = new('article')
|
19
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -20,10 +20,10 @@ module StackOne
|
|
20
20
|
|
21
21
|
field :body, T.nilable(T.any(::String, T::Hash[Symbol, ::Object], T::Array[::Integer])), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
|
22
22
|
|
23
|
-
field :response, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('response') } }
|
23
|
+
field :response, T.nilable(T.any(T::Hash[Symbol, ::Object], T::Array[::Object], ::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('response') } }
|
24
24
|
|
25
25
|
|
26
|
-
sig { params(method: ::String, url: ::String, body: T.nilable(T.any(::String, T::Hash[Symbol, ::Object], T::Array[::Integer])), response: T.nilable(T::Hash[Symbol, ::Object])).void }
|
26
|
+
sig { params(method: ::String, url: ::String, body: T.nilable(T.any(::String, T::Hash[Symbol, ::Object], T::Array[::Integer])), response: T.nilable(T.any(T::Hash[Symbol, ::Object], T::Array[::Object], ::String))).void }
|
27
27
|
def initialize(method: nil, url: nil, body: nil, response: nil)
|
28
28
|
@method = method
|
29
29
|
@url = url
|
@@ -8,39 +8,18 @@ module StackOne
|
|
8
8
|
module Models
|
9
9
|
module Shared
|
10
10
|
|
11
|
-
|
11
|
+
|
12
12
|
class Response
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
16
|
|
17
|
-
field :body, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
|
18
|
-
# The custom mapping errors
|
19
|
-
field :custom_mapping_errors, T.nilable(T::Array[Models::Shared::CustomMappingError]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_mapping_errors') } }
|
20
|
-
|
21
|
-
field :headers, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('headers') } }
|
22
|
-
# The provider errors
|
23
|
-
field :provider_errors, T.nilable(T::Array[Models::Shared::ProviderError]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider_errors') } }
|
24
|
-
# The response status code
|
25
|
-
field :status_code, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status_code') } }
|
26
17
|
|
27
|
-
|
28
|
-
|
29
|
-
def initialize(body: nil, custom_mapping_errors: nil, headers: nil, provider_errors: nil, status_code: nil)
|
30
|
-
@body = body
|
31
|
-
@custom_mapping_errors = custom_mapping_errors
|
32
|
-
@headers = headers
|
33
|
-
@provider_errors = provider_errors
|
34
|
-
@status_code = status_code
|
35
|
-
end
|
18
|
+
|
19
|
+
def initialize; end
|
36
20
|
|
37
21
|
def ==(other)
|
38
22
|
return false unless other.is_a? self.class
|
39
|
-
return false unless @body == other.body
|
40
|
-
return false unless @custom_mapping_errors == other.custom_mapping_errors
|
41
|
-
return false unless @headers == other.headers
|
42
|
-
return false unless @provider_errors == other.provider_errors
|
43
|
-
return false unless @status_code == other.status_code
|
44
23
|
true
|
45
24
|
end
|
46
25
|
end
|
@@ -42,7 +42,7 @@ module StackOne
|
|
42
42
|
# The requested resource
|
43
43
|
field :resource, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resource') } }
|
44
44
|
# The advanced log response data
|
45
|
-
field :response, T.nilable(Models::Shared::
|
45
|
+
field :response, T.nilable(Models::Shared::StepLogResponse), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('response') } }
|
46
46
|
# The requested service
|
47
47
|
field :service, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } }
|
48
48
|
# The request start time ISO8601 date string
|
@@ -57,7 +57,7 @@ module StackOne
|
|
57
57
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
58
58
|
|
59
59
|
|
60
|
-
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), http_method: T.nilable(::String), id: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::Request), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::
|
60
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), http_method: T.nilable(::String), id: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::Request), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::StepLogResponse), service: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
61
61
|
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, http_method: nil, id: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
|
62
62
|
@account_id = account_id
|
63
63
|
@action = action
|
@@ -0,0 +1,49 @@
|
|
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 Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
# The advanced log response data
|
12
|
+
class StepLogResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
|
17
|
+
field :body, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
|
18
|
+
# The custom mapping errors
|
19
|
+
field :custom_mapping_errors, T.nilable(T::Array[Models::Shared::CustomMappingError]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_mapping_errors') } }
|
20
|
+
|
21
|
+
field :headers, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('headers') } }
|
22
|
+
# The provider errors
|
23
|
+
field :provider_errors, T.nilable(T::Array[Models::Shared::ProviderError]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider_errors') } }
|
24
|
+
# The response status code
|
25
|
+
field :status_code, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status_code') } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(body: T.nilable(::Object), custom_mapping_errors: T.nilable(T::Array[Models::Shared::CustomMappingError]), headers: T.nilable(T::Hash[Symbol, ::Object]), provider_errors: T.nilable(T::Array[Models::Shared::ProviderError]), status_code: T.nilable(::Float)).void }
|
29
|
+
def initialize(body: nil, custom_mapping_errors: nil, headers: nil, provider_errors: nil, status_code: nil)
|
30
|
+
@body = body
|
31
|
+
@custom_mapping_errors = custom_mapping_errors
|
32
|
+
@headers = headers
|
33
|
+
@provider_errors = provider_errors
|
34
|
+
@status_code = status_code
|
35
|
+
end
|
36
|
+
|
37
|
+
def ==(other)
|
38
|
+
return false unless other.is_a? self.class
|
39
|
+
return false unless @body == other.body
|
40
|
+
return false unless @custom_mapping_errors == other.custom_mapping_errors
|
41
|
+
return false unless @headers == other.headers
|
42
|
+
return false unless @provider_errors == other.provider_errors
|
43
|
+
return false unless @status_code == other.status_code
|
44
|
+
true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -11,16 +11,28 @@ module StackOne
|
|
11
11
|
# TimeOffSchemasPolicyTypeValue - The unified value for the type of the time off policy. If the provider does not specify this unit, the value will be set to unmapped_value
|
12
12
|
class TimeOffSchemasPolicyTypeValue < T::Enum
|
13
13
|
enums do
|
14
|
+
SICK = new('sick')
|
15
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
16
|
+
VACATION = new('vacation')
|
17
|
+
LONG_TERM_DISABILITY = new('long_term_disability')
|
18
|
+
SHORT_TERM_DISABILITY = new('short_term_disability')
|
19
|
+
ABSENT = new('absent')
|
20
|
+
COMP_TIME = new('comp_time')
|
21
|
+
TRAINING = new('training')
|
22
|
+
ANNUAL_LEAVE = new('annual_leave')
|
23
|
+
LEAVE_OF_ABSENCE = new('leave_of_absence')
|
24
|
+
BREAK = new('break')
|
25
|
+
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
|
+
MATERNITY_LEAVE = new('maternity_leave')
|
27
|
+
JURY_DUTY = new('jury_duty')
|
28
|
+
SABBATICAL = new('sabbatical')
|
29
|
+
ACCIDENT = new('accident')
|
14
30
|
PAID = new('paid')
|
15
31
|
UNPAID = new('unpaid')
|
16
32
|
HOLIDAY = new('holiday')
|
17
|
-
VACATION = new('vacation')
|
18
|
-
SICK = new('sick')
|
19
33
|
PERSONAL = new('personal')
|
20
34
|
IN_LIEU = new('in_lieu')
|
21
35
|
BEREAVEMENT = new('bereavement')
|
22
|
-
JURY_DUTY = new('jury_duty')
|
23
|
-
UNMAPPED_VALUE = new('unmapped_value')
|
24
36
|
end
|
25
37
|
end
|
26
38
|
end
|
@@ -25,9 +25,14 @@ module StackOne
|
|
25
25
|
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
26
|
MATERNITY_LEAVE = new('maternity_leave')
|
27
27
|
JURY_DUTY = new('jury_duty')
|
28
|
-
BEREAVEMENT_LEAVE = new('bereavement_leave')
|
29
28
|
SABBATICAL = new('sabbatical')
|
30
29
|
ACCIDENT = new('accident')
|
30
|
+
PAID = new('paid')
|
31
|
+
UNPAID = new('unpaid')
|
32
|
+
HOLIDAY = new('holiday')
|
33
|
+
PERSONAL = new('personal')
|
34
|
+
IN_LIEU = new('in_lieu')
|
35
|
+
BEREAVEMENT = new('bereavement')
|
31
36
|
end
|
32
37
|
end
|
33
38
|
end
|
@@ -11,16 +11,28 @@ module StackOne
|
|
11
11
|
# TimeOffBalancesSchemasPolicyValue - The unified value for the type of the time off policy. If the provider does not specify this unit, the value will be set to unmapped_value
|
12
12
|
class TimeOffBalancesSchemasPolicyValue < T::Enum
|
13
13
|
enums do
|
14
|
+
SICK = new('sick')
|
15
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
16
|
+
VACATION = new('vacation')
|
17
|
+
LONG_TERM_DISABILITY = new('long_term_disability')
|
18
|
+
SHORT_TERM_DISABILITY = new('short_term_disability')
|
19
|
+
ABSENT = new('absent')
|
20
|
+
COMP_TIME = new('comp_time')
|
21
|
+
TRAINING = new('training')
|
22
|
+
ANNUAL_LEAVE = new('annual_leave')
|
23
|
+
LEAVE_OF_ABSENCE = new('leave_of_absence')
|
24
|
+
BREAK = new('break')
|
25
|
+
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
|
+
MATERNITY_LEAVE = new('maternity_leave')
|
27
|
+
JURY_DUTY = new('jury_duty')
|
28
|
+
SABBATICAL = new('sabbatical')
|
29
|
+
ACCIDENT = new('accident')
|
14
30
|
PAID = new('paid')
|
15
31
|
UNPAID = new('unpaid')
|
16
32
|
HOLIDAY = new('holiday')
|
17
|
-
VACATION = new('vacation')
|
18
|
-
SICK = new('sick')
|
19
33
|
PERSONAL = new('personal')
|
20
34
|
IN_LIEU = new('in_lieu')
|
21
35
|
BEREAVEMENT = new('bereavement')
|
22
|
-
JURY_DUTY = new('jury_duty')
|
23
|
-
UNMAPPED_VALUE = new('unmapped_value')
|
24
36
|
end
|
25
37
|
end
|
26
38
|
end
|
@@ -11,16 +11,28 @@ module StackOne
|
|
11
11
|
# TimeOffPoliciesSchemasValue - The unified value for the type of the time off policy. If the provider does not specify this unit, the value will be set to unmapped_value
|
12
12
|
class TimeOffPoliciesSchemasValue < T::Enum
|
13
13
|
enums do
|
14
|
+
SICK = new('sick')
|
15
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
16
|
+
VACATION = new('vacation')
|
17
|
+
LONG_TERM_DISABILITY = new('long_term_disability')
|
18
|
+
SHORT_TERM_DISABILITY = new('short_term_disability')
|
19
|
+
ABSENT = new('absent')
|
20
|
+
COMP_TIME = new('comp_time')
|
21
|
+
TRAINING = new('training')
|
22
|
+
ANNUAL_LEAVE = new('annual_leave')
|
23
|
+
LEAVE_OF_ABSENCE = new('leave_of_absence')
|
24
|
+
BREAK = new('break')
|
25
|
+
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
|
+
MATERNITY_LEAVE = new('maternity_leave')
|
27
|
+
JURY_DUTY = new('jury_duty')
|
28
|
+
SABBATICAL = new('sabbatical')
|
29
|
+
ACCIDENT = new('accident')
|
14
30
|
PAID = new('paid')
|
15
31
|
UNPAID = new('unpaid')
|
16
32
|
HOLIDAY = new('holiday')
|
17
|
-
VACATION = new('vacation')
|
18
|
-
SICK = new('sick')
|
19
33
|
PERSONAL = new('personal')
|
20
34
|
IN_LIEU = new('in_lieu')
|
21
35
|
BEREAVEMENT = new('bereavement')
|
22
|
-
JURY_DUTY = new('jury_duty')
|
23
|
-
UNMAPPED_VALUE = new('unmapped_value')
|
24
36
|
end
|
25
37
|
end
|
26
38
|
end
|
@@ -950,6 +950,11 @@ module StackOne
|
|
950
950
|
autoload :LmsCreateCompletionRequestDtoResult, 'stack_one/models/shared/lmscreatecompletionrequestdto_result.rb'
|
951
951
|
autoload :LmsCreateCompletionRequestDtoSourceValue, 'stack_one/models/shared/lmscreatecompletionrequestdto_source_value.rb'
|
952
952
|
autoload :LmsCreateCompletionRequestDtoValue, 'stack_one/models/shared/lmscreatecompletionrequestdto_value.rb'
|
953
|
+
autoload :LmsCreateContentRequestDto, 'stack_one/models/shared/lmscreatecontentrequestdto.rb'
|
954
|
+
autoload :LmsCreateContentRequestDto4, 'stack_one/models/shared/lmscreatecontentrequestdto_4.rb'
|
955
|
+
autoload :LmsCreateContentRequestDtoContentType, 'stack_one/models/shared/lmscreatecontentrequestdto_content_type.rb'
|
956
|
+
autoload :LmsCreateContentRequestDtoSourceValue, 'stack_one/models/shared/lmscreatecontentrequestdto_source_value.rb'
|
957
|
+
autoload :LmsCreateContentRequestDtoValue, 'stack_one/models/shared/lmscreatecontentrequestdto_value.rb'
|
953
958
|
autoload :LmsUpsertContentRequestDto, 'stack_one/models/shared/lmsupsertcontentrequestdto.rb'
|
954
959
|
autoload :LmsUpsertContentRequestDto4, 'stack_one/models/shared/lmsupsertcontentrequestdto_4.rb'
|
955
960
|
autoload :LmsUpsertContentRequestDtoContentType, 'stack_one/models/shared/lmsupsertcontentrequestdto_content_type.rb'
|
@@ -1095,6 +1100,7 @@ module StackOne
|
|
1095
1100
|
autoload :StatusReason, 'stack_one/models/shared/statusreason.rb'
|
1096
1101
|
autoload :StepLog, 'stack_one/models/shared/steplog.rb'
|
1097
1102
|
autoload :StepLogPartial, 'stack_one/models/shared/steplogpartial.rb'
|
1103
|
+
autoload :StepLogResponse, 'stack_one/models/shared/steplog_response.rb'
|
1098
1104
|
autoload :StepLogsPaginated, 'stack_one/models/shared/steplogspaginated.rb'
|
1099
1105
|
autoload :Task, 'stack_one/models/shared/task.rb'
|
1100
1106
|
autoload :TaskCommentApiModel, 'stack_one/models/shared/taskcommentapimodel.rb'
|
@@ -63,9 +63,9 @@ module StackOne
|
|
63
63
|
end
|
64
64
|
@language = 'ruby'
|
65
65
|
@openapi_doc_version = '1.0.0'
|
66
|
-
@sdk_version = '0.
|
66
|
+
@sdk_version = '0.21.0'
|
67
67
|
@gen_version = '2.570.4'
|
68
|
-
@user_agent = 'speakeasy-sdk/ruby 0.
|
68
|
+
@user_agent = 'speakeasy-sdk/ruby 0.21.0 2.570.4 1.0.0 stackone_client'
|
69
69
|
end
|
70
70
|
|
71
71
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackone_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StackOne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -644,6 +644,8 @@ files:
|
|
644
644
|
- lib/stack_one/models/operations/lms_list_users_response.rb
|
645
645
|
- lib/stack_one/models/operations/lms_update_collection_request.rb
|
646
646
|
- lib/stack_one/models/operations/lms_update_collection_response.rb
|
647
|
+
- lib/stack_one/models/operations/lms_update_content_request.rb
|
648
|
+
- lib/stack_one/models/operations/lms_update_content_response.rb
|
647
649
|
- lib/stack_one/models/operations/lms_upsert_content_request.rb
|
648
650
|
- lib/stack_one/models/operations/lms_upsert_content_response.rb
|
649
651
|
- lib/stack_one/models/operations/lms_upsert_course_request.rb
|
@@ -1730,6 +1732,11 @@ files:
|
|
1730
1732
|
- lib/stack_one/models/shared/lmscreatecompletionrequestdto_result.rb
|
1731
1733
|
- lib/stack_one/models/shared/lmscreatecompletionrequestdto_source_value.rb
|
1732
1734
|
- lib/stack_one/models/shared/lmscreatecompletionrequestdto_value.rb
|
1735
|
+
- lib/stack_one/models/shared/lmscreatecontentrequestdto.rb
|
1736
|
+
- lib/stack_one/models/shared/lmscreatecontentrequestdto_4.rb
|
1737
|
+
- lib/stack_one/models/shared/lmscreatecontentrequestdto_content_type.rb
|
1738
|
+
- lib/stack_one/models/shared/lmscreatecontentrequestdto_source_value.rb
|
1739
|
+
- lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb
|
1733
1740
|
- lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb
|
1734
1741
|
- lib/stack_one/models/shared/lmsupsertcontentrequestdto_4.rb
|
1735
1742
|
- lib/stack_one/models/shared/lmsupsertcontentrequestdto_content_type.rb
|
@@ -1911,6 +1918,7 @@ files:
|
|
1911
1918
|
- lib/stack_one/models/shared/status.rb
|
1912
1919
|
- lib/stack_one/models/shared/statusreason.rb
|
1913
1920
|
- lib/stack_one/models/shared/steplog.rb
|
1921
|
+
- lib/stack_one/models/shared/steplog_response.rb
|
1914
1922
|
- lib/stack_one/models/shared/steplogpartial.rb
|
1915
1923
|
- lib/stack_one/models/shared/steplogspaginated.rb
|
1916
1924
|
- lib/stack_one/models/shared/task.rb
|