stackone_client 0.17.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/hris.rb +589 -1171
  3. data/lib/stack_one/lms.rb +292 -0
  4. data/lib/stack_one/models/operations/{hris_update_time_off_request_request.rb → lms_update_content_request.rb} +7 -7
  5. data/lib/stack_one/models/operations/{hris_update_time_off_request_response.rb → lms_update_content_response.rb} +7 -7
  6. data/lib/stack_one/models/operations/queryparam_type.rb +6 -1
  7. data/lib/stack_one/models/operations/type.rb +6 -1
  8. data/lib/stack_one/models/operations.rb +2 -4
  9. data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +6 -2
  10. data/lib/stack_one/models/shared/employee_schemas_preferred_language_value.rb +20 -0
  11. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_preferred_language_value.rb +20 -0
  12. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +6 -10
  13. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +6 -1
  14. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_preferred_language_value.rb +20 -0
  15. data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +111 -0
  16. data/lib/stack_one/models/shared/lmscreatecontentrequestdto_4.rb +28 -0
  17. data/lib/stack_one/models/shared/lmscreatecontentrequestdto_content_type.rb +37 -0
  18. data/lib/stack_one/models/shared/lmscreatecontentrequestdto_source_value.rb +28 -0
  19. data/lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb +24 -0
  20. data/lib/stack_one/models/shared/rawresponse.rb +2 -2
  21. data/lib/stack_one/models/shared/response.rb +3 -24
  22. data/lib/stack_one/models/shared/steplog.rb +2 -2
  23. data/lib/stack_one/models/shared/steplog_response.rb +49 -0
  24. data/lib/stack_one/models/shared/timeoff.rb +5 -5
  25. data/lib/stack_one/models/shared/timeoff_schemas_policy_type_value.rb +16 -4
  26. data/lib/stack_one/models/shared/timeoff_schemas_value.rb +6 -1
  27. data/lib/stack_one/models/shared/timeoffbalances_schemas_policy_value.rb +16 -4
  28. data/lib/stack_one/models/shared/timeoffpolicies_schemas_value.rb +16 -4
  29. data/lib/stack_one/models/shared.rb +6 -0
  30. data/lib/stack_one/sdkconfiguration.rb +2 -2
  31. metadata +10 -6
  32. data/lib/stack_one/models/operations/hris_create_time_off_request_request.rb +0 -37
  33. data/lib/stack_one/models/operations/hris_create_time_off_request_response.rb +0 -49
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
@@ -9,29 +9,29 @@ module StackOne
9
9
  module Operations
10
10
 
11
11
 
12
- class HrisUpdateTimeOffRequestRequest
12
+ class LmsUpdateContentRequest
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
16
 
17
- field :hris_create_time_off_request_dto, Models::Shared::HrisCreateTimeOffRequestDto, { 'request': { 'media_type': 'application/json' } }
18
-
19
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
20
  # The account identifier
21
21
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
22
22
 
23
23
 
24
- sig { params(hris_create_time_off_request_dto: Models::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).void }
25
- def initialize(hris_create_time_off_request_dto: nil, id: nil, x_account_id: nil)
26
- @hris_create_time_off_request_dto = hris_create_time_off_request_dto
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)
27
26
  @id = id
27
+ @lms_create_content_request_dto = lms_create_content_request_dto
28
28
  @x_account_id = x_account_id
29
29
  end
30
30
 
31
31
  def ==(other)
32
32
  return false unless other.is_a? self.class
33
- return false unless @hris_create_time_off_request_dto == other.hris_create_time_off_request_dto
34
33
  return false unless @id == other.id
34
+ return false unless @lms_create_content_request_dto == other.lms_create_content_request_dto
35
35
  return false unless @x_account_id == other.x_account_id
36
36
  true
37
37
  end
@@ -9,7 +9,7 @@ module StackOne
9
9
  module Operations
10
10
 
11
11
 
12
- class HrisUpdateTimeOffRequestResponse
12
+ class LmsUpdateContentResponse
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -21,17 +21,17 @@ module StackOne
21
21
  field :raw_response, ::Faraday::Response
22
22
  # HTTP response status code for this operation
23
23
  field :status_code, ::Integer
24
- # Record updated successfully
25
- field :create_result, T.nilable(Models::Shared::CreateResult)
24
+ # The content was updated successfully.
25
+ field :update_result, T.nilable(Models::Shared::UpdateResult)
26
26
 
27
27
 
28
- sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(Models::Shared::CreateResult)).void }
29
- def initialize(content_type: nil, headers: nil, raw_response: nil, status_code: nil, create_result: nil)
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
30
  @content_type = content_type
31
31
  @headers = headers
32
32
  @raw_response = raw_response
33
33
  @status_code = status_code
34
- @create_result = create_result
34
+ @update_result = update_result
35
35
  end
36
36
 
37
37
  def ==(other)
@@ -40,7 +40,7 @@ module StackOne
40
40
  return false unless @headers == other.headers
41
41
  return false unless @raw_response == other.raw_response
42
42
  return false unless @status_code == other.status_code
43
- return false unless @create_result == other.create_result
43
+ return false unless @update_result == other.update_result
44
44
  true
45
45
  end
46
46
  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
@@ -217,8 +217,6 @@ module StackOne
217
217
  autoload :HrisCreateEmployeeTimeOffRequestResponse, 'stack_one/models/operations/hris_create_employee_time_off_request_response.rb'
218
218
  autoload :HrisCreateEmployeeWorkEligibilityRequestRequest, 'stack_one/models/operations/hris_create_employee_work_eligibility_request_request.rb'
219
219
  autoload :HrisCreateEmployeeWorkEligibilityRequestResponse, 'stack_one/models/operations/hris_create_employee_work_eligibility_request_response.rb'
220
- autoload :HrisCreateTimeOffRequestRequest, 'stack_one/models/operations/hris_create_time_off_request_request.rb'
221
- autoload :HrisCreateTimeOffRequestResponse, 'stack_one/models/operations/hris_create_time_off_request_response.rb'
222
220
  autoload :HrisDownloadEmployeeDocumentRequest, 'stack_one/models/operations/hris_download_employee_document_request.rb'
223
221
  autoload :HrisDownloadEmployeeDocumentResponse, 'stack_one/models/operations/hris_download_employee_document_response.rb'
224
222
  autoload :HrisGetBenefitRequest, 'stack_one/models/operations/hris_get_benefit_request.rb'
@@ -350,8 +348,6 @@ module StackOne
350
348
  autoload :HrisUpdateEmployeeTimeOffRequestResponse, 'stack_one/models/operations/hris_update_employee_time_off_request_response.rb'
351
349
  autoload :HrisUpdateEmployeeWorkEligibilityRequestRequest, 'stack_one/models/operations/hris_update_employee_work_eligibility_request_request.rb'
352
350
  autoload :HrisUpdateEmployeeWorkEligibilityRequestResponse, 'stack_one/models/operations/hris_update_employee_work_eligibility_request_response.rb'
353
- autoload :HrisUpdateTimeOffRequestRequest, 'stack_one/models/operations/hris_update_time_off_request_request.rb'
354
- autoload :HrisUpdateTimeOffRequestResponse, 'stack_one/models/operations/hris_update_time_off_request_response.rb'
355
351
  autoload :HrisUploadEmployeeDocumentRequest, 'stack_one/models/operations/hris_upload_employee_document_request.rb'
356
352
  autoload :HrisUploadEmployeeDocumentResponse, 'stack_one/models/operations/hris_upload_employee_document_response.rb'
357
353
  autoload :IamDeleteUserRequest, 'stack_one/models/operations/iam_delete_user_request.rb'
@@ -440,6 +436,8 @@ module StackOne
440
436
  autoload :LmsListUsersResponse, 'stack_one/models/operations/lms_list_users_response.rb'
441
437
  autoload :LmsUpdateCollectionRequest, 'stack_one/models/operations/lms_update_collection_request.rb'
442
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'
443
441
  autoload :LmsUpsertContentRequest, 'stack_one/models/operations/lms_upsert_content_request.rb'
444
442
  autoload :LmsUpsertContentResponse, 'stack_one/models/operations/lms_upsert_content_response.rb'
445
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
@@ -26,6 +26,7 @@ module StackOne
26
26
  CAT = new('cat')
27
27
  CHA = new('cha')
28
28
  CES = new('ces')
29
+ DAN = new('dan')
29
30
  DEU = new('deu')
30
31
  DIV = new('div')
31
32
  DZO = new('dzo')
@@ -42,6 +43,7 @@ module StackOne
42
43
  FRA = new('fra')
43
44
  GLE = new('gle')
44
45
  GRN = new('grn')
46
+ GUJ = new('guj')
45
47
  GLV = new('glv')
46
48
  HEB = new('heb')
47
49
  HIN = new('hin')
@@ -72,6 +74,8 @@ module StackOne
72
74
  MAH = new('mah')
73
75
  MRI = new('mri')
74
76
  MKD = new('mkd')
77
+ MON = new('mon')
78
+ MAR = new('mar')
75
79
  MSA = new('msa')
76
80
  MLT = new('mlt')
77
81
  MYA = new('mya')
@@ -86,15 +90,18 @@ module StackOne
86
90
  POL = new('pol')
87
91
  PUS = new('pus')
88
92
  POR = new('por')
93
+ QUE = new('que')
89
94
  RAR = new('rar')
90
95
  ROH = new('roh')
91
96
  RUP = new('rup')
92
97
  RON = new('ron')
93
98
  RUS = new('rus')
94
99
  KIN = new('kin')
100
+ SME = new('sme')
95
101
  SAG = new('sag')
96
102
  SIN = new('sin')
97
103
  SLK = new('slk')
104
+ SLV = new('slv')
98
105
  SMO = new('smo')
99
106
  SNA = new('sna')
100
107
  SOM = new('som')
@@ -104,11 +111,24 @@ module StackOne
104
111
  SWE = new('swe')
105
112
  SWA = new('swa')
106
113
  TAM = new('tam')
114
+ TEL = new('tel')
107
115
  TGK = new('tgk')
108
116
  THA = new('tha')
109
117
  TIR = new('tir')
110
118
  TIG = new('tig')
119
+ TUK = new('tuk')
120
+ TSN = new('tsn')
121
+ TON = new('ton')
122
+ TUR = new('tur')
123
+ TSO = new('tso')
124
+ UKR = new('ukr')
125
+ URD = new('urd')
126
+ UZB = new('uzb')
127
+ VEN = new('ven')
128
+ VIE = new('vie')
129
+ XHO = new('xho')
111
130
  ZHO = new('zho')
131
+ ZUL = new('zul')
112
132
  UNMAPPED_VALUE = new('unmapped_value')
113
133
  end
114
134
  end
@@ -26,6 +26,7 @@ module StackOne
26
26
  CAT = new('cat')
27
27
  CHA = new('cha')
28
28
  CES = new('ces')
29
+ DAN = new('dan')
29
30
  DEU = new('deu')
30
31
  DIV = new('div')
31
32
  DZO = new('dzo')
@@ -42,6 +43,7 @@ module StackOne
42
43
  FRA = new('fra')
43
44
  GLE = new('gle')
44
45
  GRN = new('grn')
46
+ GUJ = new('guj')
45
47
  GLV = new('glv')
46
48
  HEB = new('heb')
47
49
  HIN = new('hin')
@@ -72,6 +74,8 @@ module StackOne
72
74
  MAH = new('mah')
73
75
  MRI = new('mri')
74
76
  MKD = new('mkd')
77
+ MON = new('mon')
78
+ MAR = new('mar')
75
79
  MSA = new('msa')
76
80
  MLT = new('mlt')
77
81
  MYA = new('mya')
@@ -86,15 +90,18 @@ module StackOne
86
90
  POL = new('pol')
87
91
  PUS = new('pus')
88
92
  POR = new('por')
93
+ QUE = new('que')
89
94
  RAR = new('rar')
90
95
  ROH = new('roh')
91
96
  RUP = new('rup')
92
97
  RON = new('ron')
93
98
  RUS = new('rus')
94
99
  KIN = new('kin')
100
+ SME = new('sme')
95
101
  SAG = new('sag')
96
102
  SIN = new('sin')
97
103
  SLK = new('slk')
104
+ SLV = new('slv')
98
105
  SMO = new('smo')
99
106
  SNA = new('sna')
100
107
  SOM = new('som')
@@ -104,11 +111,24 @@ module StackOne
104
111
  SWE = new('swe')
105
112
  SWA = new('swa')
106
113
  TAM = new('tam')
114
+ TEL = new('tel')
107
115
  TGK = new('tgk')
108
116
  THA = new('tha')
109
117
  TIR = new('tir')
110
118
  TIG = new('tig')
119
+ TUK = new('tuk')
120
+ TSN = new('tsn')
121
+ TON = new('ton')
122
+ TUR = new('tur')
123
+ TSO = new('tso')
124
+ UKR = new('ukr')
125
+ URD = new('urd')
126
+ UZB = new('uzb')
127
+ VEN = new('ven')
128
+ VIE = new('vie')
129
+ XHO = new('xho')
111
130
  ZHO = new('zho')
131
+ ZUL = new('zul')
112
132
  UNMAPPED_VALUE = new('unmapped_value')
113
133
  end
114
134
  end
@@ -15,18 +15,16 @@ module StackOne
15
15
 
16
16
  # The approver ID
17
17
  field :approver_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('approver_id') } }
18
- # The employee ID
19
- field :employee_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
20
- # Inclusive end date of the time off request (the time off includes this day).
21
- field :end_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
18
+ # Inclusive end date of the time off request (ISO8601 date-time without timezone). The time off includes this day
19
+ field :end_date, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date') } }
22
20
  # True if the end of the time off request ends half way through the day
23
21
  field :end_half_day, T.nilable(T.any(T::Boolean, Models::Shared::HrisCreateTimeOffRequestDto2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_half_day') } }
24
22
  # Value to pass through to the provider
25
23
  field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
26
24
 
27
25
  field :reason, T.nilable(Models::Shared::HrisCreateTimeOffRequestDtoReason), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('reason') } }
28
- # The start date of the time off request
29
- field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
26
+ # The start date of the time off request (ISO8601 date-time without timezone)
27
+ field :start_date, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date') } }
30
28
  # True if the start of the time off request begins half way through the day
31
29
  field :start_half_day, T.nilable(T.any(T::Boolean, Models::Shared::HrisCreateTimeOffRequestDtoSchemas2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_half_day') } }
32
30
  # The status of the time off request
@@ -39,10 +37,9 @@ module StackOne
39
37
  field :type, T.nilable(Models::Shared::HrisCreateTimeOffRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
40
38
 
41
39
 
42
- sig { params(approver_id: T.nilable(::String), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), end_half_day: T.nilable(T.any(T::Boolean, Models::Shared::HrisCreateTimeOffRequestDto2)), passthrough: T.nilable(T::Hash[Symbol, ::Object]), reason: T.nilable(Models::Shared::HrisCreateTimeOffRequestDtoReason), start_date: T.nilable(::DateTime), start_half_day: T.nilable(T.any(T::Boolean, Models::Shared::HrisCreateTimeOffRequestDtoSchemas2)), status: T.nilable(Models::Shared::HrisCreateTimeOffRequestDtoStatus), time_off_policy_id: T.nilable(::String), type: T.nilable(Models::Shared::HrisCreateTimeOffRequestDtoType)).void }
43
- def initialize(approver_id: nil, employee_id: nil, end_date: nil, end_half_day: nil, passthrough: nil, reason: nil, start_date: nil, start_half_day: nil, status: nil, time_off_policy_id: nil, type: nil)
40
+ sig { params(approver_id: T.nilable(::String), end_date: T.nilable(::String), end_half_day: T.nilable(T.any(T::Boolean, Models::Shared::HrisCreateTimeOffRequestDto2)), passthrough: T.nilable(T::Hash[Symbol, ::Object]), reason: T.nilable(Models::Shared::HrisCreateTimeOffRequestDtoReason), start_date: T.nilable(::String), start_half_day: T.nilable(T.any(T::Boolean, Models::Shared::HrisCreateTimeOffRequestDtoSchemas2)), status: T.nilable(Models::Shared::HrisCreateTimeOffRequestDtoStatus), time_off_policy_id: T.nilable(::String), type: T.nilable(Models::Shared::HrisCreateTimeOffRequestDtoType)).void }
41
+ def initialize(approver_id: nil, end_date: nil, end_half_day: nil, passthrough: nil, reason: nil, start_date: nil, start_half_day: nil, status: nil, time_off_policy_id: nil, type: nil)
44
42
  @approver_id = approver_id
45
- @employee_id = employee_id
46
43
  @end_date = end_date
47
44
  @end_half_day = end_half_day
48
45
  @passthrough = passthrough
@@ -57,7 +54,6 @@ module StackOne
57
54
  def ==(other)
58
55
  return false unless other.is_a? self.class
59
56
  return false unless @approver_id == other.approver_id
60
- return false unless @employee_id == other.employee_id
61
57
  return false unless @end_date == other.end_date
62
58
  return false unless @end_half_day == other.end_half_day
63
59
  return false unless @passthrough == other.passthrough