stackone_client 0.37.0 → 0.37.1
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/accounting.rb +1 -1
- data/lib/stack_one/hris.rb +926 -311
- data/lib/stack_one/models/operations/hris_get_employee_shift_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employee_shift_request.rbi +23 -0
- data/lib/stack_one/models/operations/hris_get_employee_shift_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_get_employee_shift_response.rbi +21 -0
- data/lib/stack_one/models/operations/hris_list_employee_shifts_queryparam_filter.rb +45 -0
- data/lib/stack_one/models/operations/hris_list_employee_shifts_queryparam_filter.rbi +19 -0
- data/lib/stack_one/models/operations/hris_list_employee_shifts_request.rb +73 -0
- data/lib/stack_one/models/operations/hris_list_employee_shifts_request.rbi +31 -0
- data/lib/stack_one/models/operations/hris_list_employee_shifts_response.rb +61 -0
- data/lib/stack_one/models/operations/hris_list_employee_shifts_response.rbi +21 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rb +10 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rbi +4 -0
- data/lib/stack_one/models/operations/hris_list_positions_queryparam_status.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_positions_queryparam_status.rbi +11 -0
- data/lib/stack_one/models/operations/hris_list_positions_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_shifts_queryparam_filter.rb +2 -6
- data/lib/stack_one/models/operations/hris_list_shifts_queryparam_filter.rbi +0 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rb +10 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rbi +4 -0
- data/lib/stack_one/models/operations/queryparam_status.rb +5 -4
- data/lib/stack_one/models/operations.rb +6 -0
- data/lib/stack_one/models/shared/actionmetaitem.rb +10 -6
- data/lib/stack_one/models/shared/actionmetaitem.rbi +4 -2
- data/lib/stack_one/models/shared/actionsrpcrequestdto.rb +18 -6
- data/lib/stack_one/models/shared/actionsrpcrequestdto.rbi +8 -2
- data/lib/stack_one/models/shared/employee.rb +0 -2
- data/lib/stack_one/models/shared/messagingmessage.rb +2 -2
- data/lib/stack_one/models/shared/messagingmessageresult_data.rb +2 -2
- data/lib/stack_one/models/shared.rb +0 -1
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +14 -4
- data/lib/stack_one/models/shared/input.rb +0 -41
- data/lib/stack_one/models/shared/input.rbi +0 -17
data/lib/stack_one/hris.rb
CHANGED
@@ -6299,20 +6299,20 @@ module StackOne
|
|
6299
6299
|
end
|
6300
6300
|
|
6301
6301
|
|
6302
|
-
sig { params(request: Models::Operations::
|
6303
|
-
def
|
6304
|
-
#
|
6302
|
+
sig { params(request: Models::Operations::HrisGetEmployeeShiftRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeeShiftResponse) }
|
6303
|
+
def get_employee_shift(request:, retries: nil, timeout_ms: nil)
|
6304
|
+
# get_employee_shift - Get Employee Shift
|
6305
6305
|
url, params = @sdk_configuration.get_server_details
|
6306
6306
|
base_url = Utils.template_url(url, params)
|
6307
6307
|
url = Utils.generate_url(
|
6308
|
-
Models::Operations::
|
6308
|
+
Models::Operations::HrisGetEmployeeShiftRequest,
|
6309
6309
|
base_url,
|
6310
|
-
'/unified/hris/employees/{id}/
|
6310
|
+
'/unified/hris/employees/{id}/shifts/{subResourceId}',
|
6311
6311
|
request
|
6312
6312
|
)
|
6313
6313
|
headers = Utils.get_headers(request)
|
6314
6314
|
headers = T.cast(headers, T::Hash[String, String])
|
6315
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6315
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeeShiftRequest, request, nil)
|
6316
6316
|
headers['Accept'] = 'application/json'
|
6317
6317
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6318
6318
|
retries ||= @sdk_configuration.retry_config
|
@@ -6342,7 +6342,7 @@ module StackOne
|
|
6342
6342
|
config: @sdk_configuration,
|
6343
6343
|
base_url: base_url,
|
6344
6344
|
oauth2_scopes: [],
|
6345
|
-
operation_id: '
|
6345
|
+
operation_id: 'hris_get_employee_shift',
|
6346
6346
|
security_source: @sdk_configuration.security_source
|
6347
6347
|
)
|
6348
6348
|
|
@@ -6400,13 +6400,13 @@ module StackOne
|
|
6400
6400
|
response: http_response
|
6401
6401
|
)
|
6402
6402
|
response_data = http_response.env.response_body
|
6403
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6404
|
-
response = Models::Operations::
|
6403
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HrisShiftResult)
|
6404
|
+
response = Models::Operations::HrisGetEmployeeShiftResponse.new(
|
6405
6405
|
status_code: http_response.status,
|
6406
6406
|
content_type: content_type,
|
6407
6407
|
raw_response: http_response,
|
6408
6408
|
headers: {},
|
6409
|
-
|
6409
|
+
hris_shift_result: T.unsafe(obj)
|
6410
6410
|
)
|
6411
6411
|
|
6412
6412
|
return response
|
@@ -6592,20 +6592,20 @@ module StackOne
|
|
6592
6592
|
end
|
6593
6593
|
|
6594
6594
|
|
6595
|
-
sig { params(request: Models::Operations::
|
6596
|
-
def
|
6597
|
-
#
|
6595
|
+
sig { params(request: Models::Operations::HrisGetEmployeeSkillRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeeSkillResponse) }
|
6596
|
+
def get_employee_skill(request:, retries: nil, timeout_ms: nil)
|
6597
|
+
# get_employee_skill - Get Employee Skill
|
6598
6598
|
url, params = @sdk_configuration.get_server_details
|
6599
6599
|
base_url = Utils.template_url(url, params)
|
6600
6600
|
url = Utils.generate_url(
|
6601
|
-
Models::Operations::
|
6601
|
+
Models::Operations::HrisGetEmployeeSkillRequest,
|
6602
6602
|
base_url,
|
6603
|
-
'/unified/hris/employees/{id}/
|
6603
|
+
'/unified/hris/employees/{id}/skills/{subResourceId}',
|
6604
6604
|
request
|
6605
6605
|
)
|
6606
6606
|
headers = Utils.get_headers(request)
|
6607
6607
|
headers = T.cast(headers, T::Hash[String, String])
|
6608
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6608
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeeSkillRequest, request, nil)
|
6609
6609
|
headers['Accept'] = 'application/json'
|
6610
6610
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6611
6611
|
retries ||= @sdk_configuration.retry_config
|
@@ -6635,7 +6635,7 @@ module StackOne
|
|
6635
6635
|
config: @sdk_configuration,
|
6636
6636
|
base_url: base_url,
|
6637
6637
|
oauth2_scopes: [],
|
6638
|
-
operation_id: '
|
6638
|
+
operation_id: 'hris_get_employee_skill',
|
6639
6639
|
security_source: @sdk_configuration.security_source
|
6640
6640
|
)
|
6641
6641
|
|
@@ -6693,13 +6693,13 @@ module StackOne
|
|
6693
6693
|
response: http_response
|
6694
6694
|
)
|
6695
6695
|
response_data = http_response.env.response_body
|
6696
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6697
|
-
response = Models::Operations::
|
6696
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::EntitySkillResult)
|
6697
|
+
response = Models::Operations::HrisGetEmployeeSkillResponse.new(
|
6698
6698
|
status_code: http_response.status,
|
6699
6699
|
content_type: content_type,
|
6700
6700
|
raw_response: http_response,
|
6701
6701
|
headers: {},
|
6702
|
-
|
6702
|
+
entity_skill_result: T.unsafe(obj)
|
6703
6703
|
)
|
6704
6704
|
|
6705
6705
|
return response
|
@@ -6885,20 +6885,20 @@ module StackOne
|
|
6885
6885
|
end
|
6886
6886
|
|
6887
6887
|
|
6888
|
-
sig { params(request: Models::Operations::
|
6889
|
-
def
|
6890
|
-
#
|
6888
|
+
sig { params(request: Models::Operations::HrisGetEmployeeTaskRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeeTaskResponse) }
|
6889
|
+
def get_employee_task(request:, retries: nil, timeout_ms: nil)
|
6890
|
+
# get_employee_task - Get Employee Task
|
6891
6891
|
url, params = @sdk_configuration.get_server_details
|
6892
6892
|
base_url = Utils.template_url(url, params)
|
6893
6893
|
url = Utils.generate_url(
|
6894
|
-
Models::Operations::
|
6894
|
+
Models::Operations::HrisGetEmployeeTaskRequest,
|
6895
6895
|
base_url,
|
6896
|
-
'/unified/hris/employees/{id}/
|
6896
|
+
'/unified/hris/employees/{id}/tasks/{subResourceId}',
|
6897
6897
|
request
|
6898
6898
|
)
|
6899
6899
|
headers = Utils.get_headers(request)
|
6900
6900
|
headers = T.cast(headers, T::Hash[String, String])
|
6901
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6901
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeeTaskRequest, request, nil)
|
6902
6902
|
headers['Accept'] = 'application/json'
|
6903
6903
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6904
6904
|
retries ||= @sdk_configuration.retry_config
|
@@ -6928,7 +6928,7 @@ module StackOne
|
|
6928
6928
|
config: @sdk_configuration,
|
6929
6929
|
base_url: base_url,
|
6930
6930
|
oauth2_scopes: [],
|
6931
|
-
operation_id: '
|
6931
|
+
operation_id: 'hris_get_employee_task',
|
6932
6932
|
security_source: @sdk_configuration.security_source
|
6933
6933
|
)
|
6934
6934
|
|
@@ -6986,13 +6986,13 @@ module StackOne
|
|
6986
6986
|
response: http_response
|
6987
6987
|
)
|
6988
6988
|
response_data = http_response.env.response_body
|
6989
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6990
|
-
response = Models::Operations::
|
6989
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TaskResult)
|
6990
|
+
response = Models::Operations::HrisGetEmployeeTaskResponse.new(
|
6991
6991
|
status_code: http_response.status,
|
6992
6992
|
content_type: content_type,
|
6993
6993
|
raw_response: http_response,
|
6994
6994
|
headers: {},
|
6995
|
-
|
6995
|
+
task_result: T.unsafe(obj)
|
6996
6996
|
)
|
6997
6997
|
|
6998
6998
|
return response
|
@@ -7178,20 +7178,20 @@ module StackOne
|
|
7178
7178
|
end
|
7179
7179
|
|
7180
7180
|
|
7181
|
-
sig { params(request: Models::Operations::
|
7182
|
-
def
|
7183
|
-
#
|
7181
|
+
sig { params(request: Models::Operations::HrisGetEmployeeTimeOffBalanceRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeeTimeOffBalanceResponse) }
|
7182
|
+
def get_employee_time_off_balance(request:, retries: nil, timeout_ms: nil)
|
7183
|
+
# get_employee_time_off_balance - Get Employee Time Off Balance
|
7184
7184
|
url, params = @sdk_configuration.get_server_details
|
7185
7185
|
base_url = Utils.template_url(url, params)
|
7186
7186
|
url = Utils.generate_url(
|
7187
|
-
Models::Operations::
|
7187
|
+
Models::Operations::HrisGetEmployeeTimeOffBalanceRequest,
|
7188
7188
|
base_url,
|
7189
|
-
'/unified/hris/employees/{id}/
|
7189
|
+
'/unified/hris/employees/{id}/time_off_balances/{subResourceId}',
|
7190
7190
|
request
|
7191
7191
|
)
|
7192
7192
|
headers = Utils.get_headers(request)
|
7193
7193
|
headers = T.cast(headers, T::Hash[String, String])
|
7194
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7194
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeeTimeOffBalanceRequest, request, nil)
|
7195
7195
|
headers['Accept'] = 'application/json'
|
7196
7196
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7197
7197
|
retries ||= @sdk_configuration.retry_config
|
@@ -7221,7 +7221,7 @@ module StackOne
|
|
7221
7221
|
config: @sdk_configuration,
|
7222
7222
|
base_url: base_url,
|
7223
7223
|
oauth2_scopes: [],
|
7224
|
-
operation_id: '
|
7224
|
+
operation_id: 'hris_get_employee_time_off_balance',
|
7225
7225
|
security_source: @sdk_configuration.security_source
|
7226
7226
|
)
|
7227
7227
|
|
@@ -7279,13 +7279,13 @@ module StackOne
|
|
7279
7279
|
response: http_response
|
7280
7280
|
)
|
7281
7281
|
response_data = http_response.env.response_body
|
7282
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7283
|
-
response = Models::Operations::
|
7282
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TimeOffBalanceResult)
|
7283
|
+
response = Models::Operations::HrisGetEmployeeTimeOffBalanceResponse.new(
|
7284
7284
|
status_code: http_response.status,
|
7285
7285
|
content_type: content_type,
|
7286
7286
|
raw_response: http_response,
|
7287
7287
|
headers: {},
|
7288
|
-
|
7288
|
+
time_off_balance_result: T.unsafe(obj)
|
7289
7289
|
)
|
7290
7290
|
|
7291
7291
|
return response
|
@@ -7471,20 +7471,20 @@ module StackOne
|
|
7471
7471
|
end
|
7472
7472
|
|
7473
7473
|
|
7474
|
-
sig { params(request: Models::Operations::
|
7475
|
-
def
|
7476
|
-
#
|
7474
|
+
sig { params(request: Models::Operations::HrisGetEmployeesTimeOffRequestRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeesTimeOffRequestResponse) }
|
7475
|
+
def get_employees_time_off_request(request:, retries: nil, timeout_ms: nil)
|
7476
|
+
# get_employees_time_off_request - Get Employees Time Off Request
|
7477
7477
|
url, params = @sdk_configuration.get_server_details
|
7478
7478
|
base_url = Utils.template_url(url, params)
|
7479
7479
|
url = Utils.generate_url(
|
7480
|
-
Models::Operations::
|
7480
|
+
Models::Operations::HrisGetEmployeesTimeOffRequestRequest,
|
7481
7481
|
base_url,
|
7482
|
-
'/unified/hris/employees/{id}/
|
7482
|
+
'/unified/hris/employees/{id}/time_off/{subResourceId}',
|
7483
7483
|
request
|
7484
7484
|
)
|
7485
7485
|
headers = Utils.get_headers(request)
|
7486
7486
|
headers = T.cast(headers, T::Hash[String, String])
|
7487
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7487
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeesTimeOffRequestRequest, request, nil)
|
7488
7488
|
headers['Accept'] = 'application/json'
|
7489
7489
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7490
7490
|
retries ||= @sdk_configuration.retry_config
|
@@ -7514,7 +7514,7 @@ module StackOne
|
|
7514
7514
|
config: @sdk_configuration,
|
7515
7515
|
base_url: base_url,
|
7516
7516
|
oauth2_scopes: [],
|
7517
|
-
operation_id: '
|
7517
|
+
operation_id: 'hris_get_employees_time_off_request',
|
7518
7518
|
security_source: @sdk_configuration.security_source
|
7519
7519
|
)
|
7520
7520
|
|
@@ -7572,13 +7572,13 @@ module StackOne
|
|
7572
7572
|
response: http_response
|
7573
7573
|
)
|
7574
7574
|
response_data = http_response.env.response_body
|
7575
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7576
|
-
response = Models::Operations::
|
7575
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TimeOffResult)
|
7576
|
+
response = Models::Operations::HrisGetEmployeesTimeOffRequestResponse.new(
|
7577
7577
|
status_code: http_response.status,
|
7578
7578
|
content_type: content_type,
|
7579
7579
|
raw_response: http_response,
|
7580
7580
|
headers: {},
|
7581
|
-
|
7581
|
+
time_off_result: T.unsafe(obj)
|
7582
7582
|
)
|
7583
7583
|
|
7584
7584
|
return response
|
@@ -7764,20 +7764,20 @@ module StackOne
|
|
7764
7764
|
end
|
7765
7765
|
|
7766
7766
|
|
7767
|
-
sig { params(request: Models::Operations::
|
7768
|
-
def
|
7769
|
-
#
|
7767
|
+
sig { params(request: Models::Operations::HrisGetEmployeesWorkEligibilityRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeesWorkEligibilityResponse) }
|
7768
|
+
def get_employees_work_eligibility(request:, retries: nil, timeout_ms: nil)
|
7769
|
+
# get_employees_work_eligibility - Get Employees Work Eligibility
|
7770
7770
|
url, params = @sdk_configuration.get_server_details
|
7771
7771
|
base_url = Utils.template_url(url, params)
|
7772
7772
|
url = Utils.generate_url(
|
7773
|
-
Models::Operations::
|
7773
|
+
Models::Operations::HrisGetEmployeesWorkEligibilityRequest,
|
7774
7774
|
base_url,
|
7775
|
-
'/unified/hris/
|
7775
|
+
'/unified/hris/employees/{id}/work_eligibility/{subResourceId}',
|
7776
7776
|
request
|
7777
7777
|
)
|
7778
7778
|
headers = Utils.get_headers(request)
|
7779
7779
|
headers = T.cast(headers, T::Hash[String, String])
|
7780
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7780
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeesWorkEligibilityRequest, request, nil)
|
7781
7781
|
headers['Accept'] = 'application/json'
|
7782
7782
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7783
7783
|
retries ||= @sdk_configuration.retry_config
|
@@ -7807,7 +7807,7 @@ module StackOne
|
|
7807
7807
|
config: @sdk_configuration,
|
7808
7808
|
base_url: base_url,
|
7809
7809
|
oauth2_scopes: [],
|
7810
|
-
operation_id: '
|
7810
|
+
operation_id: 'hris_get_employees_work_eligibility',
|
7811
7811
|
security_source: @sdk_configuration.security_source
|
7812
7812
|
)
|
7813
7813
|
|
@@ -7865,13 +7865,13 @@ module StackOne
|
|
7865
7865
|
response: http_response
|
7866
7866
|
)
|
7867
7867
|
response_data = http_response.env.response_body
|
7868
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7869
|
-
response = Models::Operations::
|
7868
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::WorkEligibilityResult)
|
7869
|
+
response = Models::Operations::HrisGetEmployeesWorkEligibilityResponse.new(
|
7870
7870
|
status_code: http_response.status,
|
7871
7871
|
content_type: content_type,
|
7872
7872
|
raw_response: http_response,
|
7873
7873
|
headers: {},
|
7874
|
-
|
7874
|
+
work_eligibility_result: T.unsafe(obj)
|
7875
7875
|
)
|
7876
7876
|
|
7877
7877
|
return response
|
@@ -8057,20 +8057,20 @@ module StackOne
|
|
8057
8057
|
end
|
8058
8058
|
|
8059
8059
|
|
8060
|
-
sig { params(request: Models::Operations::
|
8061
|
-
def
|
8062
|
-
#
|
8060
|
+
sig { params(request: Models::Operations::HrisGetEmploymentRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmploymentResponse) }
|
8061
|
+
def get_employment(request:, retries: nil, timeout_ms: nil)
|
8062
|
+
# get_employment - Get Employment
|
8063
8063
|
url, params = @sdk_configuration.get_server_details
|
8064
8064
|
base_url = Utils.template_url(url, params)
|
8065
8065
|
url = Utils.generate_url(
|
8066
|
-
Models::Operations::
|
8066
|
+
Models::Operations::HrisGetEmploymentRequest,
|
8067
8067
|
base_url,
|
8068
|
-
'/unified/hris/
|
8068
|
+
'/unified/hris/employments/{id}',
|
8069
8069
|
request
|
8070
8070
|
)
|
8071
8071
|
headers = Utils.get_headers(request)
|
8072
8072
|
headers = T.cast(headers, T::Hash[String, String])
|
8073
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8073
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmploymentRequest, request, nil)
|
8074
8074
|
headers['Accept'] = 'application/json'
|
8075
8075
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8076
8076
|
retries ||= @sdk_configuration.retry_config
|
@@ -8100,7 +8100,7 @@ module StackOne
|
|
8100
8100
|
config: @sdk_configuration,
|
8101
8101
|
base_url: base_url,
|
8102
8102
|
oauth2_scopes: [],
|
8103
|
-
operation_id: '
|
8103
|
+
operation_id: 'hris_get_employment',
|
8104
8104
|
security_source: @sdk_configuration.security_source
|
8105
8105
|
)
|
8106
8106
|
|
@@ -8158,13 +8158,13 @@ module StackOne
|
|
8158
8158
|
response: http_response
|
8159
8159
|
)
|
8160
8160
|
response_data = http_response.env.response_body
|
8161
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8162
|
-
response = Models::Operations::
|
8161
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::EmploymentResult)
|
8162
|
+
response = Models::Operations::HrisGetEmploymentResponse.new(
|
8163
8163
|
status_code: http_response.status,
|
8164
8164
|
content_type: content_type,
|
8165
8165
|
raw_response: http_response,
|
8166
8166
|
headers: {},
|
8167
|
-
|
8167
|
+
employment_result: T.unsafe(obj)
|
8168
8168
|
)
|
8169
8169
|
|
8170
8170
|
return response
|
@@ -8350,20 +8350,20 @@ module StackOne
|
|
8350
8350
|
end
|
8351
8351
|
|
8352
8352
|
|
8353
|
-
sig { params(request: Models::Operations::
|
8354
|
-
def
|
8355
|
-
#
|
8353
|
+
sig { params(request: Models::Operations::HrisGetGroupRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetGroupResponse) }
|
8354
|
+
def get_group(request:, retries: nil, timeout_ms: nil)
|
8355
|
+
# get_group - Get Group
|
8356
8356
|
url, params = @sdk_configuration.get_server_details
|
8357
8357
|
base_url = Utils.template_url(url, params)
|
8358
8358
|
url = Utils.generate_url(
|
8359
|
-
Models::Operations::
|
8359
|
+
Models::Operations::HrisGetGroupRequest,
|
8360
8360
|
base_url,
|
8361
|
-
'/unified/hris/
|
8361
|
+
'/unified/hris/groups/{id}',
|
8362
8362
|
request
|
8363
8363
|
)
|
8364
8364
|
headers = Utils.get_headers(request)
|
8365
8365
|
headers = T.cast(headers, T::Hash[String, String])
|
8366
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8366
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetGroupRequest, request, nil)
|
8367
8367
|
headers['Accept'] = 'application/json'
|
8368
8368
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8369
8369
|
retries ||= @sdk_configuration.retry_config
|
@@ -8393,7 +8393,7 @@ module StackOne
|
|
8393
8393
|
config: @sdk_configuration,
|
8394
8394
|
base_url: base_url,
|
8395
8395
|
oauth2_scopes: [],
|
8396
|
-
operation_id: '
|
8396
|
+
operation_id: 'hris_get_group',
|
8397
8397
|
security_source: @sdk_configuration.security_source
|
8398
8398
|
)
|
8399
8399
|
|
@@ -8451,13 +8451,13 @@ module StackOne
|
|
8451
8451
|
response: http_response
|
8452
8452
|
)
|
8453
8453
|
response_data = http_response.env.response_body
|
8454
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8455
|
-
response = Models::Operations::
|
8454
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HRISGroupsResult)
|
8455
|
+
response = Models::Operations::HrisGetGroupResponse.new(
|
8456
8456
|
status_code: http_response.status,
|
8457
8457
|
content_type: content_type,
|
8458
8458
|
raw_response: http_response,
|
8459
8459
|
headers: {},
|
8460
|
-
|
8460
|
+
hris_groups_result: T.unsafe(obj)
|
8461
8461
|
)
|
8462
8462
|
|
8463
8463
|
return response
|
@@ -8643,20 +8643,20 @@ module StackOne
|
|
8643
8643
|
end
|
8644
8644
|
|
8645
8645
|
|
8646
|
-
sig { params(request: Models::Operations::
|
8647
|
-
def
|
8648
|
-
#
|
8646
|
+
sig { params(request: Models::Operations::HrisGetJobRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetJobResponse) }
|
8647
|
+
def get_job(request:, retries: nil, timeout_ms: nil)
|
8648
|
+
# get_job - Get Job
|
8649
8649
|
url, params = @sdk_configuration.get_server_details
|
8650
8650
|
base_url = Utils.template_url(url, params)
|
8651
8651
|
url = Utils.generate_url(
|
8652
|
-
Models::Operations::
|
8652
|
+
Models::Operations::HrisGetJobRequest,
|
8653
8653
|
base_url,
|
8654
|
-
'/unified/hris/
|
8654
|
+
'/unified/hris/jobs/{id}',
|
8655
8655
|
request
|
8656
8656
|
)
|
8657
8657
|
headers = Utils.get_headers(request)
|
8658
8658
|
headers = T.cast(headers, T::Hash[String, String])
|
8659
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8659
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetJobRequest, request, nil)
|
8660
8660
|
headers['Accept'] = 'application/json'
|
8661
8661
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8662
8662
|
retries ||= @sdk_configuration.retry_config
|
@@ -8686,7 +8686,7 @@ module StackOne
|
|
8686
8686
|
config: @sdk_configuration,
|
8687
8687
|
base_url: base_url,
|
8688
8688
|
oauth2_scopes: [],
|
8689
|
-
operation_id: '
|
8689
|
+
operation_id: 'hris_get_job',
|
8690
8690
|
security_source: @sdk_configuration.security_source
|
8691
8691
|
)
|
8692
8692
|
|
@@ -8744,13 +8744,13 @@ module StackOne
|
|
8744
8744
|
response: http_response
|
8745
8745
|
)
|
8746
8746
|
response_data = http_response.env.response_body
|
8747
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8748
|
-
response = Models::Operations::
|
8747
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HrisJobResult)
|
8748
|
+
response = Models::Operations::HrisGetJobResponse.new(
|
8749
8749
|
status_code: http_response.status,
|
8750
8750
|
content_type: content_type,
|
8751
8751
|
raw_response: http_response,
|
8752
8752
|
headers: {},
|
8753
|
-
|
8753
|
+
hris_job_result: T.unsafe(obj)
|
8754
8754
|
)
|
8755
8755
|
|
8756
8756
|
return response
|
@@ -8936,20 +8936,20 @@ module StackOne
|
|
8936
8936
|
end
|
8937
8937
|
|
8938
8938
|
|
8939
|
-
sig { params(request: Models::Operations::
|
8940
|
-
def
|
8941
|
-
#
|
8939
|
+
sig { params(request: Models::Operations::HrisGetLocationRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetLocationResponse) }
|
8940
|
+
def get_location(request:, retries: nil, timeout_ms: nil)
|
8941
|
+
# get_location - Get Work Location
|
8942
8942
|
url, params = @sdk_configuration.get_server_details
|
8943
8943
|
base_url = Utils.template_url(url, params)
|
8944
8944
|
url = Utils.generate_url(
|
8945
|
-
Models::Operations::
|
8945
|
+
Models::Operations::HrisGetLocationRequest,
|
8946
8946
|
base_url,
|
8947
|
-
'/unified/hris/
|
8947
|
+
'/unified/hris/locations/{id}',
|
8948
8948
|
request
|
8949
8949
|
)
|
8950
8950
|
headers = Utils.get_headers(request)
|
8951
8951
|
headers = T.cast(headers, T::Hash[String, String])
|
8952
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8952
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetLocationRequest, request, nil)
|
8953
8953
|
headers['Accept'] = 'application/json'
|
8954
8954
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8955
8955
|
retries ||= @sdk_configuration.retry_config
|
@@ -8979,7 +8979,7 @@ module StackOne
|
|
8979
8979
|
config: @sdk_configuration,
|
8980
8980
|
base_url: base_url,
|
8981
8981
|
oauth2_scopes: [],
|
8982
|
-
operation_id: '
|
8982
|
+
operation_id: 'hris_get_location',
|
8983
8983
|
security_source: @sdk_configuration.security_source
|
8984
8984
|
)
|
8985
8985
|
|
@@ -9037,13 +9037,13 @@ module StackOne
|
|
9037
9037
|
response: http_response
|
9038
9038
|
)
|
9039
9039
|
response_data = http_response.env.response_body
|
9040
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9041
|
-
response = Models::Operations::
|
9040
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HRISLocationResult)
|
9041
|
+
response = Models::Operations::HrisGetLocationResponse.new(
|
9042
9042
|
status_code: http_response.status,
|
9043
9043
|
content_type: content_type,
|
9044
9044
|
raw_response: http_response,
|
9045
9045
|
headers: {},
|
9046
|
-
|
9046
|
+
hris_location_result: T.unsafe(obj)
|
9047
9047
|
)
|
9048
9048
|
|
9049
9049
|
return response
|
@@ -9229,20 +9229,20 @@ module StackOne
|
|
9229
9229
|
end
|
9230
9230
|
|
9231
9231
|
|
9232
|
-
sig { params(request: Models::Operations::
|
9233
|
-
def
|
9234
|
-
#
|
9232
|
+
sig { params(request: Models::Operations::HrisGetPositionRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetPositionResponse) }
|
9233
|
+
def get_position(request:, retries: nil, timeout_ms: nil)
|
9234
|
+
# get_position - Get Position
|
9235
9235
|
url, params = @sdk_configuration.get_server_details
|
9236
9236
|
base_url = Utils.template_url(url, params)
|
9237
9237
|
url = Utils.generate_url(
|
9238
|
-
Models::Operations::
|
9238
|
+
Models::Operations::HrisGetPositionRequest,
|
9239
9239
|
base_url,
|
9240
|
-
'/unified/hris/
|
9240
|
+
'/unified/hris/positions/{id}',
|
9241
9241
|
request
|
9242
9242
|
)
|
9243
9243
|
headers = Utils.get_headers(request)
|
9244
9244
|
headers = T.cast(headers, T::Hash[String, String])
|
9245
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9245
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetPositionRequest, request, nil)
|
9246
9246
|
headers['Accept'] = 'application/json'
|
9247
9247
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9248
9248
|
retries ||= @sdk_configuration.retry_config
|
@@ -9272,7 +9272,7 @@ module StackOne
|
|
9272
9272
|
config: @sdk_configuration,
|
9273
9273
|
base_url: base_url,
|
9274
9274
|
oauth2_scopes: [],
|
9275
|
-
operation_id: '
|
9275
|
+
operation_id: 'hris_get_position',
|
9276
9276
|
security_source: @sdk_configuration.security_source
|
9277
9277
|
)
|
9278
9278
|
|
@@ -9330,13 +9330,13 @@ module StackOne
|
|
9330
9330
|
response: http_response
|
9331
9331
|
)
|
9332
9332
|
response_data = http_response.env.response_body
|
9333
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9334
|
-
response = Models::Operations::
|
9333
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::PositionResult)
|
9334
|
+
response = Models::Operations::HrisGetPositionResponse.new(
|
9335
9335
|
status_code: http_response.status,
|
9336
9336
|
content_type: content_type,
|
9337
9337
|
raw_response: http_response,
|
9338
9338
|
headers: {},
|
9339
|
-
|
9339
|
+
position_result: T.unsafe(obj)
|
9340
9340
|
)
|
9341
9341
|
|
9342
9342
|
return response
|
@@ -9522,20 +9522,20 @@ module StackOne
|
|
9522
9522
|
end
|
9523
9523
|
|
9524
9524
|
|
9525
|
-
sig { params(request: Models::Operations::
|
9526
|
-
def
|
9527
|
-
#
|
9525
|
+
sig { params(request: Models::Operations::HrisGetShiftRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetShiftResponse) }
|
9526
|
+
def get_shift(request:, retries: nil, timeout_ms: nil)
|
9527
|
+
# get_shift - Get Shift
|
9528
9528
|
url, params = @sdk_configuration.get_server_details
|
9529
9529
|
base_url = Utils.template_url(url, params)
|
9530
9530
|
url = Utils.generate_url(
|
9531
|
-
Models::Operations::
|
9531
|
+
Models::Operations::HrisGetShiftRequest,
|
9532
9532
|
base_url,
|
9533
|
-
'/unified/hris/
|
9533
|
+
'/unified/hris/shifts/{id}',
|
9534
9534
|
request
|
9535
9535
|
)
|
9536
9536
|
headers = Utils.get_headers(request)
|
9537
9537
|
headers = T.cast(headers, T::Hash[String, String])
|
9538
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9538
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetShiftRequest, request, nil)
|
9539
9539
|
headers['Accept'] = 'application/json'
|
9540
9540
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9541
9541
|
retries ||= @sdk_configuration.retry_config
|
@@ -9565,7 +9565,7 @@ module StackOne
|
|
9565
9565
|
config: @sdk_configuration,
|
9566
9566
|
base_url: base_url,
|
9567
9567
|
oauth2_scopes: [],
|
9568
|
-
operation_id: '
|
9568
|
+
operation_id: 'hris_get_shift',
|
9569
9569
|
security_source: @sdk_configuration.security_source
|
9570
9570
|
)
|
9571
9571
|
|
@@ -9623,13 +9623,13 @@ module StackOne
|
|
9623
9623
|
response: http_response
|
9624
9624
|
)
|
9625
9625
|
response_data = http_response.env.response_body
|
9626
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9627
|
-
response = Models::Operations::
|
9626
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HrisShiftResult)
|
9627
|
+
response = Models::Operations::HrisGetShiftResponse.new(
|
9628
9628
|
status_code: http_response.status,
|
9629
9629
|
content_type: content_type,
|
9630
9630
|
raw_response: http_response,
|
9631
9631
|
headers: {},
|
9632
|
-
|
9632
|
+
hris_shift_result: T.unsafe(obj)
|
9633
9633
|
)
|
9634
9634
|
|
9635
9635
|
return response
|
@@ -9815,20 +9815,20 @@ module StackOne
|
|
9815
9815
|
end
|
9816
9816
|
|
9817
9817
|
|
9818
|
-
sig { params(request: Models::Operations::
|
9819
|
-
def
|
9820
|
-
#
|
9818
|
+
sig { params(request: Models::Operations::HrisGetTaskRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTaskResponse) }
|
9819
|
+
def get_task(request:, retries: nil, timeout_ms: nil)
|
9820
|
+
# get_task - Get Task
|
9821
9821
|
url, params = @sdk_configuration.get_server_details
|
9822
9822
|
base_url = Utils.template_url(url, params)
|
9823
9823
|
url = Utils.generate_url(
|
9824
|
-
Models::Operations::
|
9824
|
+
Models::Operations::HrisGetTaskRequest,
|
9825
9825
|
base_url,
|
9826
|
-
'/unified/hris/
|
9826
|
+
'/unified/hris/tasks/{id}',
|
9827
9827
|
request
|
9828
9828
|
)
|
9829
9829
|
headers = Utils.get_headers(request)
|
9830
9830
|
headers = T.cast(headers, T::Hash[String, String])
|
9831
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9831
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTaskRequest, request, nil)
|
9832
9832
|
headers['Accept'] = 'application/json'
|
9833
9833
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9834
9834
|
retries ||= @sdk_configuration.retry_config
|
@@ -9858,7 +9858,7 @@ module StackOne
|
|
9858
9858
|
config: @sdk_configuration,
|
9859
9859
|
base_url: base_url,
|
9860
9860
|
oauth2_scopes: [],
|
9861
|
-
operation_id: '
|
9861
|
+
operation_id: 'hris_get_task',
|
9862
9862
|
security_source: @sdk_configuration.security_source
|
9863
9863
|
)
|
9864
9864
|
|
@@ -9916,13 +9916,13 @@ module StackOne
|
|
9916
9916
|
response: http_response
|
9917
9917
|
)
|
9918
9918
|
response_data = http_response.env.response_body
|
9919
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9920
|
-
response = Models::Operations::
|
9919
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TaskResult)
|
9920
|
+
response = Models::Operations::HrisGetTaskResponse.new(
|
9921
9921
|
status_code: http_response.status,
|
9922
9922
|
content_type: content_type,
|
9923
9923
|
raw_response: http_response,
|
9924
9924
|
headers: {},
|
9925
|
-
|
9925
|
+
task_result: T.unsafe(obj)
|
9926
9926
|
)
|
9927
9927
|
|
9928
9928
|
return response
|
@@ -10108,20 +10108,20 @@ module StackOne
|
|
10108
10108
|
end
|
10109
10109
|
|
10110
10110
|
|
10111
|
-
sig { params(request: Models::Operations::
|
10112
|
-
def
|
10113
|
-
#
|
10114
|
-
url, params = @sdk_configuration.get_server_details
|
10111
|
+
sig { params(request: Models::Operations::HrisGetTeamGroupRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTeamGroupResponse) }
|
10112
|
+
def get_team_group(request:, retries: nil, timeout_ms: nil)
|
10113
|
+
# get_team_group - Get Team Group
|
10114
|
+
url, params = @sdk_configuration.get_server_details
|
10115
10115
|
base_url = Utils.template_url(url, params)
|
10116
10116
|
url = Utils.generate_url(
|
10117
|
-
Models::Operations::
|
10117
|
+
Models::Operations::HrisGetTeamGroupRequest,
|
10118
10118
|
base_url,
|
10119
|
-
'/unified/hris/
|
10119
|
+
'/unified/hris/groups/teams/{id}',
|
10120
10120
|
request
|
10121
10121
|
)
|
10122
10122
|
headers = Utils.get_headers(request)
|
10123
10123
|
headers = T.cast(headers, T::Hash[String, String])
|
10124
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10124
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTeamGroupRequest, request, nil)
|
10125
10125
|
headers['Accept'] = 'application/json'
|
10126
10126
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10127
10127
|
retries ||= @sdk_configuration.retry_config
|
@@ -10151,7 +10151,7 @@ module StackOne
|
|
10151
10151
|
config: @sdk_configuration,
|
10152
10152
|
base_url: base_url,
|
10153
10153
|
oauth2_scopes: [],
|
10154
|
-
operation_id: '
|
10154
|
+
operation_id: 'hris_get_team_group',
|
10155
10155
|
security_source: @sdk_configuration.security_source
|
10156
10156
|
)
|
10157
10157
|
|
@@ -10209,13 +10209,13 @@ module StackOne
|
|
10209
10209
|
response: http_response
|
10210
10210
|
)
|
10211
10211
|
response_data = http_response.env.response_body
|
10212
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10213
|
-
response = Models::Operations::
|
10212
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HRISTeamsResult)
|
10213
|
+
response = Models::Operations::HrisGetTeamGroupResponse.new(
|
10214
10214
|
status_code: http_response.status,
|
10215
10215
|
content_type: content_type,
|
10216
10216
|
raw_response: http_response,
|
10217
10217
|
headers: {},
|
10218
|
-
|
10218
|
+
hris_teams_result: T.unsafe(obj)
|
10219
10219
|
)
|
10220
10220
|
|
10221
10221
|
return response
|
@@ -10401,20 +10401,20 @@ module StackOne
|
|
10401
10401
|
end
|
10402
10402
|
|
10403
10403
|
|
10404
|
-
sig { params(request: Models::Operations::
|
10405
|
-
def
|
10406
|
-
#
|
10404
|
+
sig { params(request: Models::Operations::HrisGetTimeEntriesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeEntriesResponse) }
|
10405
|
+
def get_time_entries(request:, retries: nil, timeout_ms: nil)
|
10406
|
+
# get_time_entries - Get Time Entry
|
10407
10407
|
url, params = @sdk_configuration.get_server_details
|
10408
10408
|
base_url = Utils.template_url(url, params)
|
10409
10409
|
url = Utils.generate_url(
|
10410
|
-
Models::Operations::
|
10410
|
+
Models::Operations::HrisGetTimeEntriesRequest,
|
10411
10411
|
base_url,
|
10412
|
-
'/unified/hris/
|
10412
|
+
'/unified/hris/time_entries/{id}',
|
10413
10413
|
request
|
10414
10414
|
)
|
10415
10415
|
headers = Utils.get_headers(request)
|
10416
10416
|
headers = T.cast(headers, T::Hash[String, String])
|
10417
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10417
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeEntriesRequest, request, nil)
|
10418
10418
|
headers['Accept'] = 'application/json'
|
10419
10419
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10420
10420
|
retries ||= @sdk_configuration.retry_config
|
@@ -10444,7 +10444,7 @@ module StackOne
|
|
10444
10444
|
config: @sdk_configuration,
|
10445
10445
|
base_url: base_url,
|
10446
10446
|
oauth2_scopes: [],
|
10447
|
-
operation_id: '
|
10447
|
+
operation_id: 'hris_get_time_entries',
|
10448
10448
|
security_source: @sdk_configuration.security_source
|
10449
10449
|
)
|
10450
10450
|
|
@@ -10502,13 +10502,13 @@ module StackOne
|
|
10502
10502
|
response: http_response
|
10503
10503
|
)
|
10504
10504
|
response_data = http_response.env.response_body
|
10505
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10506
|
-
response = Models::Operations::
|
10505
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TimeEntriesResult)
|
10506
|
+
response = Models::Operations::HrisGetTimeEntriesResponse.new(
|
10507
10507
|
status_code: http_response.status,
|
10508
10508
|
content_type: content_type,
|
10509
10509
|
raw_response: http_response,
|
10510
10510
|
headers: {},
|
10511
|
-
|
10511
|
+
time_entries_result: T.unsafe(obj)
|
10512
10512
|
)
|
10513
10513
|
|
10514
10514
|
return response
|
@@ -10694,20 +10694,20 @@ module StackOne
|
|
10694
10694
|
end
|
10695
10695
|
|
10696
10696
|
|
10697
|
-
sig { params(request: Models::Operations::
|
10698
|
-
def
|
10699
|
-
#
|
10697
|
+
sig { params(request: Models::Operations::HrisGetTimeOffPolicyRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffPolicyResponse) }
|
10698
|
+
def get_time_off_policy(request:, retries: nil, timeout_ms: nil)
|
10699
|
+
# get_time_off_policy - Get Time Off Policy
|
10700
10700
|
url, params = @sdk_configuration.get_server_details
|
10701
10701
|
base_url = Utils.template_url(url, params)
|
10702
10702
|
url = Utils.generate_url(
|
10703
|
-
Models::Operations::
|
10703
|
+
Models::Operations::HrisGetTimeOffPolicyRequest,
|
10704
10704
|
base_url,
|
10705
|
-
'/unified/hris/
|
10705
|
+
'/unified/hris/time_off_policies/{id}',
|
10706
10706
|
request
|
10707
10707
|
)
|
10708
10708
|
headers = Utils.get_headers(request)
|
10709
10709
|
headers = T.cast(headers, T::Hash[String, String])
|
10710
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10710
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffPolicyRequest, request, nil)
|
10711
10711
|
headers['Accept'] = 'application/json'
|
10712
10712
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10713
10713
|
retries ||= @sdk_configuration.retry_config
|
@@ -10737,7 +10737,7 @@ module StackOne
|
|
10737
10737
|
config: @sdk_configuration,
|
10738
10738
|
base_url: base_url,
|
10739
10739
|
oauth2_scopes: [],
|
10740
|
-
operation_id: '
|
10740
|
+
operation_id: 'hris_get_time_off_policy',
|
10741
10741
|
security_source: @sdk_configuration.security_source
|
10742
10742
|
)
|
10743
10743
|
|
@@ -10795,13 +10795,13 @@ module StackOne
|
|
10795
10795
|
response: http_response
|
10796
10796
|
)
|
10797
10797
|
response_data = http_response.env.response_body
|
10798
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10799
|
-
response = Models::Operations::
|
10798
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TimeOffPolicyResult)
|
10799
|
+
response = Models::Operations::HrisGetTimeOffPolicyResponse.new(
|
10800
10800
|
status_code: http_response.status,
|
10801
10801
|
content_type: content_type,
|
10802
10802
|
raw_response: http_response,
|
10803
10803
|
headers: {},
|
10804
|
-
|
10804
|
+
time_off_policy_result: T.unsafe(obj)
|
10805
10805
|
)
|
10806
10806
|
|
10807
10807
|
return response
|
@@ -10987,22 +10987,20 @@ module StackOne
|
|
10987
10987
|
end
|
10988
10988
|
|
10989
10989
|
|
10990
|
-
sig { params(request: Models::Operations::
|
10991
|
-
def
|
10992
|
-
#
|
10993
|
-
#
|
10994
|
-
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
10990
|
+
sig { params(request: Models::Operations::HrisGetTimeOffRequestRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffRequestResponse) }
|
10991
|
+
def get_time_off_request(request:, retries: nil, timeout_ms: nil)
|
10992
|
+
# get_time_off_request - Get time off request
|
10995
10993
|
url, params = @sdk_configuration.get_server_details
|
10996
10994
|
base_url = Utils.template_url(url, params)
|
10997
10995
|
url = Utils.generate_url(
|
10998
|
-
Models::Operations::
|
10996
|
+
Models::Operations::HrisGetTimeOffRequestRequest,
|
10999
10997
|
base_url,
|
11000
|
-
'/unified/hris/
|
10998
|
+
'/unified/hris/time_off/{id}',
|
11001
10999
|
request
|
11002
11000
|
)
|
11003
11001
|
headers = Utils.get_headers(request)
|
11004
11002
|
headers = T.cast(headers, T::Hash[String, String])
|
11005
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11003
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffRequestRequest, request, nil)
|
11006
11004
|
headers['Accept'] = 'application/json'
|
11007
11005
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11008
11006
|
retries ||= @sdk_configuration.retry_config
|
@@ -11032,7 +11030,7 @@ module StackOne
|
|
11032
11030
|
config: @sdk_configuration,
|
11033
11031
|
base_url: base_url,
|
11034
11032
|
oauth2_scopes: [],
|
11035
|
-
operation_id: '
|
11033
|
+
operation_id: 'hris_get_time_off_request',
|
11036
11034
|
security_source: @sdk_configuration.security_source
|
11037
11035
|
)
|
11038
11036
|
|
@@ -11090,13 +11088,13 @@ module StackOne
|
|
11090
11088
|
response: http_response
|
11091
11089
|
)
|
11092
11090
|
response_data = http_response.env.response_body
|
11093
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11094
|
-
response = Models::Operations::
|
11091
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TimeOffResult)
|
11092
|
+
response = Models::Operations::HrisGetTimeOffRequestResponse.new(
|
11095
11093
|
status_code: http_response.status,
|
11096
11094
|
content_type: content_type,
|
11097
11095
|
raw_response: http_response,
|
11098
11096
|
headers: {},
|
11099
|
-
|
11097
|
+
time_off_result: T.unsafe(obj)
|
11100
11098
|
)
|
11101
11099
|
|
11102
11100
|
return response
|
@@ -11282,35 +11280,22 @@ module StackOne
|
|
11282
11280
|
end
|
11283
11281
|
|
11284
11282
|
|
11285
|
-
sig { params(
|
11286
|
-
def
|
11287
|
-
#
|
11288
|
-
|
11289
|
-
|
11290
|
-
id: id,
|
11291
|
-
x_account_id: x_account_id
|
11292
|
-
)
|
11283
|
+
sig { params(request: Models::Operations::HrisGetTimeOffTypeRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffTypeResponse) }
|
11284
|
+
def get_time_off_type(request:, retries: nil, timeout_ms: nil)
|
11285
|
+
# get_time_off_type - Get time off type
|
11286
|
+
#
|
11287
|
+
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
11293
11288
|
url, params = @sdk_configuration.get_server_details
|
11294
11289
|
base_url = Utils.template_url(url, params)
|
11295
11290
|
url = Utils.generate_url(
|
11296
|
-
Models::Operations::
|
11291
|
+
Models::Operations::HrisGetTimeOffTypeRequest,
|
11297
11292
|
base_url,
|
11298
|
-
'/unified/hris/
|
11293
|
+
'/unified/hris/time_off_types/{id}',
|
11299
11294
|
request
|
11300
11295
|
)
|
11301
11296
|
headers = Utils.get_headers(request)
|
11302
11297
|
headers = T.cast(headers, T::Hash[String, String])
|
11303
|
-
|
11304
|
-
headers['content-type'] = req_content_type
|
11305
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
11306
|
-
|
11307
|
-
if form
|
11308
|
-
body = Utils.encode_form(form)
|
11309
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
11310
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
11311
|
-
else
|
11312
|
-
body = data
|
11313
|
-
end
|
11298
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffTypeRequest, request, nil)
|
11314
11299
|
headers['Accept'] = 'application/json'
|
11315
11300
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11316
11301
|
retries ||= @sdk_configuration.retry_config
|
@@ -11340,7 +11325,603 @@ module StackOne
|
|
11340
11325
|
config: @sdk_configuration,
|
11341
11326
|
base_url: base_url,
|
11342
11327
|
oauth2_scopes: [],
|
11343
|
-
operation_id: '
|
11328
|
+
operation_id: 'hris_get_time_off_type',
|
11329
|
+
security_source: @sdk_configuration.security_source
|
11330
|
+
)
|
11331
|
+
|
11332
|
+
error = T.let(nil, T.nilable(StandardError))
|
11333
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
11334
|
+
|
11335
|
+
|
11336
|
+
begin
|
11337
|
+
http_response = T.must(connection).get(url) do |req|
|
11338
|
+
req.headers.merge!(headers)
|
11339
|
+
req.options.timeout = timeout unless timeout.nil?
|
11340
|
+
req.params = query_params
|
11341
|
+
Utils.configure_request_security(req, security)
|
11342
|
+
|
11343
|
+
@sdk_configuration.hooks.before_request(
|
11344
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
11345
|
+
hook_ctx: hook_ctx
|
11346
|
+
),
|
11347
|
+
request: req
|
11348
|
+
)
|
11349
|
+
end
|
11350
|
+
rescue StandardError => e
|
11351
|
+
error = e
|
11352
|
+
ensure
|
11353
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
11354
|
+
http_response = @sdk_configuration.hooks.after_error(
|
11355
|
+
error: error,
|
11356
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
11357
|
+
hook_ctx: hook_ctx
|
11358
|
+
),
|
11359
|
+
response: http_response
|
11360
|
+
)
|
11361
|
+
else
|
11362
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11363
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11364
|
+
hook_ctx: hook_ctx
|
11365
|
+
),
|
11366
|
+
response: http_response
|
11367
|
+
)
|
11368
|
+
end
|
11369
|
+
|
11370
|
+
if http_response.nil?
|
11371
|
+
raise error if !error.nil?
|
11372
|
+
raise 'no response'
|
11373
|
+
end
|
11374
|
+
end
|
11375
|
+
|
11376
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
11377
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
11378
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11379
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11380
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11381
|
+
hook_ctx: hook_ctx
|
11382
|
+
),
|
11383
|
+
response: http_response
|
11384
|
+
)
|
11385
|
+
response_data = http_response.env.response_body
|
11386
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ReferenceResult)
|
11387
|
+
response = Models::Operations::HrisGetTimeOffTypeResponse.new(
|
11388
|
+
status_code: http_response.status,
|
11389
|
+
content_type: content_type,
|
11390
|
+
raw_response: http_response,
|
11391
|
+
headers: {},
|
11392
|
+
reference_result: T.unsafe(obj)
|
11393
|
+
)
|
11394
|
+
|
11395
|
+
return response
|
11396
|
+
else
|
11397
|
+
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'
|
11398
|
+
end
|
11399
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
11400
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11401
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11402
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11403
|
+
hook_ctx: hook_ctx
|
11404
|
+
),
|
11405
|
+
response: http_response
|
11406
|
+
)
|
11407
|
+
response_data = http_response.env.response_body
|
11408
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestResponse)
|
11409
|
+
raise obj
|
11410
|
+
else
|
11411
|
+
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'
|
11412
|
+
end
|
11413
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
11414
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11415
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11416
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11417
|
+
hook_ctx: hook_ctx
|
11418
|
+
),
|
11419
|
+
response: http_response
|
11420
|
+
)
|
11421
|
+
response_data = http_response.env.response_body
|
11422
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnauthorizedResponse)
|
11423
|
+
raise obj
|
11424
|
+
else
|
11425
|
+
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'
|
11426
|
+
end
|
11427
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
11428
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11429
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11430
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11431
|
+
hook_ctx: hook_ctx
|
11432
|
+
),
|
11433
|
+
response: http_response
|
11434
|
+
)
|
11435
|
+
response_data = http_response.env.response_body
|
11436
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ForbiddenResponse)
|
11437
|
+
raise obj
|
11438
|
+
else
|
11439
|
+
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'
|
11440
|
+
end
|
11441
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
11442
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11443
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11444
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11445
|
+
hook_ctx: hook_ctx
|
11446
|
+
),
|
11447
|
+
response: http_response
|
11448
|
+
)
|
11449
|
+
response_data = http_response.env.response_body
|
11450
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundResponse)
|
11451
|
+
raise obj
|
11452
|
+
else
|
11453
|
+
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'
|
11454
|
+
end
|
11455
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
11456
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11457
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11458
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11459
|
+
hook_ctx: hook_ctx
|
11460
|
+
),
|
11461
|
+
response: http_response
|
11462
|
+
)
|
11463
|
+
response_data = http_response.env.response_body
|
11464
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RequestTimedOutResponse)
|
11465
|
+
raise obj
|
11466
|
+
else
|
11467
|
+
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'
|
11468
|
+
end
|
11469
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
11470
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11471
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11472
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11473
|
+
hook_ctx: hook_ctx
|
11474
|
+
),
|
11475
|
+
response: http_response
|
11476
|
+
)
|
11477
|
+
response_data = http_response.env.response_body
|
11478
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictResponse)
|
11479
|
+
raise obj
|
11480
|
+
else
|
11481
|
+
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'
|
11482
|
+
end
|
11483
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
11484
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11485
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11486
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11487
|
+
hook_ctx: hook_ctx
|
11488
|
+
),
|
11489
|
+
response: http_response
|
11490
|
+
)
|
11491
|
+
response_data = http_response.env.response_body
|
11492
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PreconditionFailedResponse)
|
11493
|
+
raise obj
|
11494
|
+
else
|
11495
|
+
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'
|
11496
|
+
end
|
11497
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
11498
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11499
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11500
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11501
|
+
hook_ctx: hook_ctx
|
11502
|
+
),
|
11503
|
+
response: http_response
|
11504
|
+
)
|
11505
|
+
response_data = http_response.env.response_body
|
11506
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntityResponse)
|
11507
|
+
raise obj
|
11508
|
+
else
|
11509
|
+
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'
|
11510
|
+
end
|
11511
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
11512
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11513
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11514
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11515
|
+
hook_ctx: hook_ctx
|
11516
|
+
),
|
11517
|
+
response: http_response
|
11518
|
+
)
|
11519
|
+
response_data = http_response.env.response_body
|
11520
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::TooManyRequestsResponse)
|
11521
|
+
raise obj
|
11522
|
+
else
|
11523
|
+
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'
|
11524
|
+
end
|
11525
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
11526
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11527
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11528
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11529
|
+
hook_ctx: hook_ctx
|
11530
|
+
),
|
11531
|
+
response: http_response
|
11532
|
+
)
|
11533
|
+
response_data = http_response.env.response_body
|
11534
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerErrorResponse)
|
11535
|
+
raise obj
|
11536
|
+
else
|
11537
|
+
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'
|
11538
|
+
end
|
11539
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
11540
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11541
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11542
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11543
|
+
hook_ctx: hook_ctx
|
11544
|
+
),
|
11545
|
+
response: http_response
|
11546
|
+
)
|
11547
|
+
response_data = http_response.env.response_body
|
11548
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotImplementedResponse)
|
11549
|
+
raise obj
|
11550
|
+
else
|
11551
|
+
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'
|
11552
|
+
end
|
11553
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
11554
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11555
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11556
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11557
|
+
hook_ctx: hook_ctx
|
11558
|
+
),
|
11559
|
+
response: http_response
|
11560
|
+
)
|
11561
|
+
response_data = http_response.env.response_body
|
11562
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadGatewayResponse)
|
11563
|
+
raise obj
|
11564
|
+
else
|
11565
|
+
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'
|
11566
|
+
end
|
11567
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
11568
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
11569
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
11570
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
11571
|
+
else
|
11572
|
+
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'
|
11573
|
+
|
11574
|
+
end
|
11575
|
+
end
|
11576
|
+
|
11577
|
+
|
11578
|
+
sig { params(hris_invite_employee_request_dto: Models::Shared::HrisInviteEmployeeRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisInviteEmployeeResponse) }
|
11579
|
+
def invite_employee(hris_invite_employee_request_dto:, id:, x_account_id:, retries: nil, timeout_ms: nil)
|
11580
|
+
# invite_employee - Invite Employee
|
11581
|
+
request = Models::Operations::HrisInviteEmployeeRequest.new(
|
11582
|
+
hris_invite_employee_request_dto: hris_invite_employee_request_dto,
|
11583
|
+
id: id,
|
11584
|
+
x_account_id: x_account_id
|
11585
|
+
)
|
11586
|
+
url, params = @sdk_configuration.get_server_details
|
11587
|
+
base_url = Utils.template_url(url, params)
|
11588
|
+
url = Utils.generate_url(
|
11589
|
+
Models::Operations::HrisInviteEmployeeRequest,
|
11590
|
+
base_url,
|
11591
|
+
'/unified/hris/employees/{id}/invite',
|
11592
|
+
request
|
11593
|
+
)
|
11594
|
+
headers = Utils.get_headers(request)
|
11595
|
+
headers = T.cast(headers, T::Hash[String, String])
|
11596
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :hris_invite_employee_request_dto, :json)
|
11597
|
+
headers['content-type'] = req_content_type
|
11598
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
11599
|
+
|
11600
|
+
if form
|
11601
|
+
body = Utils.encode_form(form)
|
11602
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
11603
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
11604
|
+
else
|
11605
|
+
body = data
|
11606
|
+
end
|
11607
|
+
headers['Accept'] = 'application/json'
|
11608
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
11609
|
+
retries ||= @sdk_configuration.retry_config
|
11610
|
+
retries ||= Utils::RetryConfig.new(
|
11611
|
+
backoff: Utils::BackoffStrategy.new(
|
11612
|
+
exponent: 1.5,
|
11613
|
+
initial_interval: 500,
|
11614
|
+
max_elapsed_time: 3_600_000,
|
11615
|
+
max_interval: 60_000
|
11616
|
+
),
|
11617
|
+
retry_connection_errors: true,
|
11618
|
+
strategy: 'backoff'
|
11619
|
+
)
|
11620
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
11621
|
+
retry_options[:retry_statuses] = [429, 408]
|
11622
|
+
|
11623
|
+
security = @sdk_configuration.security_source&.call
|
11624
|
+
|
11625
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
11626
|
+
timeout ||= @sdk_configuration.timeout
|
11627
|
+
|
11628
|
+
|
11629
|
+
connection = @sdk_configuration.client.dup
|
11630
|
+
connection.request :retry, retry_options
|
11631
|
+
|
11632
|
+
hook_ctx = SDKHooks::HookContext.new(
|
11633
|
+
config: @sdk_configuration,
|
11634
|
+
base_url: base_url,
|
11635
|
+
oauth2_scopes: [],
|
11636
|
+
operation_id: 'hris_invite_employee',
|
11637
|
+
security_source: @sdk_configuration.security_source
|
11638
|
+
)
|
11639
|
+
|
11640
|
+
error = T.let(nil, T.nilable(StandardError))
|
11641
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
11642
|
+
|
11643
|
+
|
11644
|
+
begin
|
11645
|
+
http_response = T.must(connection).post(url) do |req|
|
11646
|
+
req.body = body
|
11647
|
+
req.headers.merge!(headers)
|
11648
|
+
req.options.timeout = timeout unless timeout.nil?
|
11649
|
+
Utils.configure_request_security(req, security)
|
11650
|
+
|
11651
|
+
@sdk_configuration.hooks.before_request(
|
11652
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
11653
|
+
hook_ctx: hook_ctx
|
11654
|
+
),
|
11655
|
+
request: req
|
11656
|
+
)
|
11657
|
+
end
|
11658
|
+
rescue StandardError => e
|
11659
|
+
error = e
|
11660
|
+
ensure
|
11661
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
11662
|
+
http_response = @sdk_configuration.hooks.after_error(
|
11663
|
+
error: error,
|
11664
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
11665
|
+
hook_ctx: hook_ctx
|
11666
|
+
),
|
11667
|
+
response: http_response
|
11668
|
+
)
|
11669
|
+
else
|
11670
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11671
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11672
|
+
hook_ctx: hook_ctx
|
11673
|
+
),
|
11674
|
+
response: http_response
|
11675
|
+
)
|
11676
|
+
end
|
11677
|
+
|
11678
|
+
if http_response.nil?
|
11679
|
+
raise error if !error.nil?
|
11680
|
+
raise 'no response'
|
11681
|
+
end
|
11682
|
+
end
|
11683
|
+
|
11684
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
11685
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
11686
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11687
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11688
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11689
|
+
hook_ctx: hook_ctx
|
11690
|
+
),
|
11691
|
+
response: http_response
|
11692
|
+
)
|
11693
|
+
response_data = http_response.env.response_body
|
11694
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InviteEmployeeResult)
|
11695
|
+
response = Models::Operations::HrisInviteEmployeeResponse.new(
|
11696
|
+
status_code: http_response.status,
|
11697
|
+
content_type: content_type,
|
11698
|
+
raw_response: http_response,
|
11699
|
+
headers: {},
|
11700
|
+
invite_employee_result: T.unsafe(obj)
|
11701
|
+
)
|
11702
|
+
|
11703
|
+
return response
|
11704
|
+
else
|
11705
|
+
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'
|
11706
|
+
end
|
11707
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
11708
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11709
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11710
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11711
|
+
hook_ctx: hook_ctx
|
11712
|
+
),
|
11713
|
+
response: http_response
|
11714
|
+
)
|
11715
|
+
response_data = http_response.env.response_body
|
11716
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestResponse)
|
11717
|
+
raise obj
|
11718
|
+
else
|
11719
|
+
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'
|
11720
|
+
end
|
11721
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
11722
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11723
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11724
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11725
|
+
hook_ctx: hook_ctx
|
11726
|
+
),
|
11727
|
+
response: http_response
|
11728
|
+
)
|
11729
|
+
response_data = http_response.env.response_body
|
11730
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnauthorizedResponse)
|
11731
|
+
raise obj
|
11732
|
+
else
|
11733
|
+
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'
|
11734
|
+
end
|
11735
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
11736
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11737
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11738
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11739
|
+
hook_ctx: hook_ctx
|
11740
|
+
),
|
11741
|
+
response: http_response
|
11742
|
+
)
|
11743
|
+
response_data = http_response.env.response_body
|
11744
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ForbiddenResponse)
|
11745
|
+
raise obj
|
11746
|
+
else
|
11747
|
+
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'
|
11748
|
+
end
|
11749
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
11750
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11751
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11752
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11753
|
+
hook_ctx: hook_ctx
|
11754
|
+
),
|
11755
|
+
response: http_response
|
11756
|
+
)
|
11757
|
+
response_data = http_response.env.response_body
|
11758
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundResponse)
|
11759
|
+
raise obj
|
11760
|
+
else
|
11761
|
+
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'
|
11762
|
+
end
|
11763
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
11764
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11765
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11766
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11767
|
+
hook_ctx: hook_ctx
|
11768
|
+
),
|
11769
|
+
response: http_response
|
11770
|
+
)
|
11771
|
+
response_data = http_response.env.response_body
|
11772
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RequestTimedOutResponse)
|
11773
|
+
raise obj
|
11774
|
+
else
|
11775
|
+
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'
|
11776
|
+
end
|
11777
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
11778
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11779
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11780
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11781
|
+
hook_ctx: hook_ctx
|
11782
|
+
),
|
11783
|
+
response: http_response
|
11784
|
+
)
|
11785
|
+
response_data = http_response.env.response_body
|
11786
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictResponse)
|
11787
|
+
raise obj
|
11788
|
+
else
|
11789
|
+
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'
|
11790
|
+
end
|
11791
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
11792
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11793
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11794
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11795
|
+
hook_ctx: hook_ctx
|
11796
|
+
),
|
11797
|
+
response: http_response
|
11798
|
+
)
|
11799
|
+
response_data = http_response.env.response_body
|
11800
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PreconditionFailedResponse)
|
11801
|
+
raise obj
|
11802
|
+
else
|
11803
|
+
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'
|
11804
|
+
end
|
11805
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
11806
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11807
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11808
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11809
|
+
hook_ctx: hook_ctx
|
11810
|
+
),
|
11811
|
+
response: http_response
|
11812
|
+
)
|
11813
|
+
response_data = http_response.env.response_body
|
11814
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntityResponse)
|
11815
|
+
raise obj
|
11816
|
+
else
|
11817
|
+
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'
|
11818
|
+
end
|
11819
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
11820
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11821
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11822
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11823
|
+
hook_ctx: hook_ctx
|
11824
|
+
),
|
11825
|
+
response: http_response
|
11826
|
+
)
|
11827
|
+
response_data = http_response.env.response_body
|
11828
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::TooManyRequestsResponse)
|
11829
|
+
raise obj
|
11830
|
+
else
|
11831
|
+
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'
|
11832
|
+
end
|
11833
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
11834
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11835
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11836
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11837
|
+
hook_ctx: hook_ctx
|
11838
|
+
),
|
11839
|
+
response: http_response
|
11840
|
+
)
|
11841
|
+
response_data = http_response.env.response_body
|
11842
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerErrorResponse)
|
11843
|
+
raise obj
|
11844
|
+
else
|
11845
|
+
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'
|
11846
|
+
end
|
11847
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
11848
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11849
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11850
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11851
|
+
hook_ctx: hook_ctx
|
11852
|
+
),
|
11853
|
+
response: http_response
|
11854
|
+
)
|
11855
|
+
response_data = http_response.env.response_body
|
11856
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotImplementedResponse)
|
11857
|
+
raise obj
|
11858
|
+
else
|
11859
|
+
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'
|
11860
|
+
end
|
11861
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
11862
|
+
if Utils.match_content_type(content_type, 'application/json')
|
11863
|
+
http_response = @sdk_configuration.hooks.after_success(
|
11864
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11865
|
+
hook_ctx: hook_ctx
|
11866
|
+
),
|
11867
|
+
response: http_response
|
11868
|
+
)
|
11869
|
+
response_data = http_response.env.response_body
|
11870
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadGatewayResponse)
|
11871
|
+
raise obj
|
11872
|
+
else
|
11873
|
+
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'
|
11874
|
+
end
|
11875
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
11876
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
11877
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
11878
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
11879
|
+
else
|
11880
|
+
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'
|
11881
|
+
|
11882
|
+
end
|
11883
|
+
end
|
11884
|
+
|
11885
|
+
|
11886
|
+
sig { params(request: Models::Operations::HrisListBenefitsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListBenefitsResponse) }
|
11887
|
+
def list_benefits(request:, retries: nil, timeout_ms: nil)
|
11888
|
+
# list_benefits - List benefits
|
11889
|
+
url, params = @sdk_configuration.get_server_details
|
11890
|
+
base_url = Utils.template_url(url, params)
|
11891
|
+
url = "#{base_url}/unified/hris/benefits"
|
11892
|
+
headers = Utils.get_headers(request)
|
11893
|
+
headers = T.cast(headers, T::Hash[String, String])
|
11894
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListBenefitsRequest, request, nil)
|
11895
|
+
headers['Accept'] = 'application/json'
|
11896
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
11897
|
+
retries ||= @sdk_configuration.retry_config
|
11898
|
+
retries ||= Utils::RetryConfig.new(
|
11899
|
+
backoff: Utils::BackoffStrategy.new(
|
11900
|
+
exponent: 1.5,
|
11901
|
+
initial_interval: 500,
|
11902
|
+
max_elapsed_time: 3_600_000,
|
11903
|
+
max_interval: 60_000
|
11904
|
+
),
|
11905
|
+
retry_connection_errors: true,
|
11906
|
+
strategy: 'backoff'
|
11907
|
+
)
|
11908
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
11909
|
+
retry_options[:retry_statuses] = [429, 408]
|
11910
|
+
|
11911
|
+
security = @sdk_configuration.security_source&.call
|
11912
|
+
|
11913
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
11914
|
+
timeout ||= @sdk_configuration.timeout
|
11915
|
+
|
11916
|
+
|
11917
|
+
connection = @sdk_configuration.client.dup
|
11918
|
+
connection.request :retry, retry_options
|
11919
|
+
|
11920
|
+
hook_ctx = SDKHooks::HookContext.new(
|
11921
|
+
config: @sdk_configuration,
|
11922
|
+
base_url: base_url,
|
11923
|
+
oauth2_scopes: [],
|
11924
|
+
operation_id: 'hris_list_benefits',
|
11344
11925
|
security_source: @sdk_configuration.security_source
|
11345
11926
|
)
|
11346
11927
|
|
@@ -11349,10 +11930,10 @@ module StackOne
|
|
11349
11930
|
|
11350
11931
|
|
11351
11932
|
begin
|
11352
|
-
http_response = T.must(connection).
|
11353
|
-
req.body = body
|
11933
|
+
http_response = T.must(connection).get(url) do |req|
|
11354
11934
|
req.headers.merge!(headers)
|
11355
11935
|
req.options.timeout = timeout unless timeout.nil?
|
11936
|
+
req.params = query_params
|
11356
11937
|
Utils.configure_request_security(req, security)
|
11357
11938
|
|
11358
11939
|
@sdk_configuration.hooks.before_request(
|
@@ -11398,14 +11979,42 @@ module StackOne
|
|
11398
11979
|
response: http_response
|
11399
11980
|
)
|
11400
11981
|
response_data = http_response.env.response_body
|
11401
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11402
|
-
response = Models::Operations::
|
11982
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HRISBenefitsPaginated)
|
11983
|
+
response = Models::Operations::HrisListBenefitsResponse.new(
|
11403
11984
|
status_code: http_response.status,
|
11404
11985
|
content_type: content_type,
|
11405
11986
|
raw_response: http_response,
|
11406
11987
|
headers: {},
|
11407
|
-
|
11988
|
+
hris_benefits_paginated: T.unsafe(obj)
|
11408
11989
|
)
|
11990
|
+
sdk = self
|
11991
|
+
|
11992
|
+
response.next_page = proc do
|
11993
|
+
next_cursor = Janeway.enum_for('$.next', JSON.parse(response_data)).search
|
11994
|
+
if next_cursor.nil?
|
11995
|
+
next nil
|
11996
|
+
else
|
11997
|
+
next_cursor = next_cursor[0]
|
11998
|
+
if next_cursor.nil?
|
11999
|
+
next nil
|
12000
|
+
end
|
12001
|
+
end
|
12002
|
+
|
12003
|
+
sdk.list_benefits(
|
12004
|
+
request: Models::Operations::HrisListBenefitsRequest.new(
|
12005
|
+
fields_: request.fields_,
|
12006
|
+
filter: request.filter,
|
12007
|
+
next_: next_cursor,
|
12008
|
+
page: request.page,
|
12009
|
+
page_size: request.page_size,
|
12010
|
+
proxy: request.proxy,
|
12011
|
+
raw: request.raw,
|
12012
|
+
updated_after: request.updated_after,
|
12013
|
+
x_account_id: request.x_account_id
|
12014
|
+
)
|
12015
|
+
)
|
12016
|
+
end
|
12017
|
+
|
11409
12018
|
|
11410
12019
|
return response
|
11411
12020
|
else
|
@@ -11590,15 +12199,15 @@ module StackOne
|
|
11590
12199
|
end
|
11591
12200
|
|
11592
12201
|
|
11593
|
-
sig { params(request: Models::Operations::
|
11594
|
-
def
|
11595
|
-
#
|
12202
|
+
sig { params(request: Models::Operations::HrisListCompaniesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListCompaniesResponse) }
|
12203
|
+
def list_companies(request:, retries: nil, timeout_ms: nil)
|
12204
|
+
# list_companies - List Companies
|
11596
12205
|
url, params = @sdk_configuration.get_server_details
|
11597
12206
|
base_url = Utils.template_url(url, params)
|
11598
|
-
url = "#{base_url}/unified/hris/
|
12207
|
+
url = "#{base_url}/unified/hris/companies"
|
11599
12208
|
headers = Utils.get_headers(request)
|
11600
12209
|
headers = T.cast(headers, T::Hash[String, String])
|
11601
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12210
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListCompaniesRequest, request, nil)
|
11602
12211
|
headers['Accept'] = 'application/json'
|
11603
12212
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11604
12213
|
retries ||= @sdk_configuration.retry_config
|
@@ -11628,7 +12237,7 @@ module StackOne
|
|
11628
12237
|
config: @sdk_configuration,
|
11629
12238
|
base_url: base_url,
|
11630
12239
|
oauth2_scopes: [],
|
11631
|
-
operation_id: '
|
12240
|
+
operation_id: 'hris_list_companies',
|
11632
12241
|
security_source: @sdk_configuration.security_source
|
11633
12242
|
)
|
11634
12243
|
|
@@ -11686,13 +12295,13 @@ module StackOne
|
|
11686
12295
|
response: http_response
|
11687
12296
|
)
|
11688
12297
|
response_data = http_response.env.response_body
|
11689
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11690
|
-
response = Models::Operations::
|
12298
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CompaniesPaginated)
|
12299
|
+
response = Models::Operations::HrisListCompaniesResponse.new(
|
11691
12300
|
status_code: http_response.status,
|
11692
12301
|
content_type: content_type,
|
11693
12302
|
raw_response: http_response,
|
11694
12303
|
headers: {},
|
11695
|
-
|
12304
|
+
companies_paginated: T.unsafe(obj)
|
11696
12305
|
)
|
11697
12306
|
sdk = self
|
11698
12307
|
|
@@ -11707,8 +12316,8 @@ module StackOne
|
|
11707
12316
|
end
|
11708
12317
|
end
|
11709
12318
|
|
11710
|
-
sdk.
|
11711
|
-
request: Models::Operations::
|
12319
|
+
sdk.list_companies(
|
12320
|
+
request: Models::Operations::HrisListCompaniesRequest.new(
|
11712
12321
|
fields_: request.fields_,
|
11713
12322
|
filter: request.filter,
|
11714
12323
|
next_: next_cursor,
|
@@ -11906,15 +12515,15 @@ module StackOne
|
|
11906
12515
|
end
|
11907
12516
|
|
11908
12517
|
|
11909
|
-
sig { params(request: Models::Operations::
|
11910
|
-
def
|
11911
|
-
#
|
12518
|
+
sig { params(request: Models::Operations::HrisListCompaniesGroupsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListCompaniesGroupsResponse) }
|
12519
|
+
def list_companies_groups(request:, retries: nil, timeout_ms: nil)
|
12520
|
+
# list_companies_groups - List Companies Groups
|
11912
12521
|
url, params = @sdk_configuration.get_server_details
|
11913
12522
|
base_url = Utils.template_url(url, params)
|
11914
|
-
url = "#{base_url}/unified/hris/companies"
|
12523
|
+
url = "#{base_url}/unified/hris/groups/companies"
|
11915
12524
|
headers = Utils.get_headers(request)
|
11916
12525
|
headers = T.cast(headers, T::Hash[String, String])
|
11917
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12526
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListCompaniesGroupsRequest, request, nil)
|
11918
12527
|
headers['Accept'] = 'application/json'
|
11919
12528
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11920
12529
|
retries ||= @sdk_configuration.retry_config
|
@@ -11944,7 +12553,7 @@ module StackOne
|
|
11944
12553
|
config: @sdk_configuration,
|
11945
12554
|
base_url: base_url,
|
11946
12555
|
oauth2_scopes: [],
|
11947
|
-
operation_id: '
|
12556
|
+
operation_id: 'hris_list_companies_groups',
|
11948
12557
|
security_source: @sdk_configuration.security_source
|
11949
12558
|
)
|
11950
12559
|
|
@@ -12003,7 +12612,7 @@ module StackOne
|
|
12003
12612
|
)
|
12004
12613
|
response_data = http_response.env.response_body
|
12005
12614
|
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CompaniesPaginated)
|
12006
|
-
response = Models::Operations::
|
12615
|
+
response = Models::Operations::HrisListCompaniesGroupsResponse.new(
|
12007
12616
|
status_code: http_response.status,
|
12008
12617
|
content_type: content_type,
|
12009
12618
|
raw_response: http_response,
|
@@ -12023,8 +12632,8 @@ module StackOne
|
|
12023
12632
|
end
|
12024
12633
|
end
|
12025
12634
|
|
12026
|
-
sdk.
|
12027
|
-
request: Models::Operations::
|
12635
|
+
sdk.list_companies_groups(
|
12636
|
+
request: Models::Operations::HrisListCompaniesGroupsRequest.new(
|
12028
12637
|
fields_: request.fields_,
|
12029
12638
|
filter: request.filter,
|
12030
12639
|
next_: next_cursor,
|
@@ -12222,15 +12831,15 @@ module StackOne
|
|
12222
12831
|
end
|
12223
12832
|
|
12224
12833
|
|
12225
|
-
sig { params(request: Models::Operations::
|
12226
|
-
def
|
12227
|
-
#
|
12834
|
+
sig { params(request: Models::Operations::HrisListCostCenterGroupsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListCostCenterGroupsResponse) }
|
12835
|
+
def list_cost_center_groups(request:, retries: nil, timeout_ms: nil)
|
12836
|
+
# list_cost_center_groups - List Cost Center Groups
|
12228
12837
|
url, params = @sdk_configuration.get_server_details
|
12229
12838
|
base_url = Utils.template_url(url, params)
|
12230
|
-
url = "#{base_url}/unified/hris/groups/
|
12839
|
+
url = "#{base_url}/unified/hris/groups/cost_centers"
|
12231
12840
|
headers = Utils.get_headers(request)
|
12232
12841
|
headers = T.cast(headers, T::Hash[String, String])
|
12233
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12842
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListCostCenterGroupsRequest, request, nil)
|
12234
12843
|
headers['Accept'] = 'application/json'
|
12235
12844
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12236
12845
|
retries ||= @sdk_configuration.retry_config
|
@@ -12260,7 +12869,7 @@ module StackOne
|
|
12260
12869
|
config: @sdk_configuration,
|
12261
12870
|
base_url: base_url,
|
12262
12871
|
oauth2_scopes: [],
|
12263
|
-
operation_id: '
|
12872
|
+
operation_id: 'hris_list_cost_center_groups',
|
12264
12873
|
security_source: @sdk_configuration.security_source
|
12265
12874
|
)
|
12266
12875
|
|
@@ -12318,13 +12927,13 @@ module StackOne
|
|
12318
12927
|
response: http_response
|
12319
12928
|
)
|
12320
12929
|
response_data = http_response.env.response_body
|
12321
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
12322
|
-
response = Models::Operations::
|
12930
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HRISCostCenterPaginated)
|
12931
|
+
response = Models::Operations::HrisListCostCenterGroupsResponse.new(
|
12323
12932
|
status_code: http_response.status,
|
12324
12933
|
content_type: content_type,
|
12325
12934
|
raw_response: http_response,
|
12326
12935
|
headers: {},
|
12327
|
-
|
12936
|
+
hris_cost_center_paginated: T.unsafe(obj)
|
12328
12937
|
)
|
12329
12938
|
sdk = self
|
12330
12939
|
|
@@ -12339,8 +12948,8 @@ module StackOne
|
|
12339
12948
|
end
|
12340
12949
|
end
|
12341
12950
|
|
12342
|
-
sdk.
|
12343
|
-
request: Models::Operations::
|
12951
|
+
sdk.list_cost_center_groups(
|
12952
|
+
request: Models::Operations::HrisListCostCenterGroupsRequest.new(
|
12344
12953
|
fields_: request.fields_,
|
12345
12954
|
filter: request.filter,
|
12346
12955
|
next_: next_cursor,
|
@@ -12538,15 +13147,15 @@ module StackOne
|
|
12538
13147
|
end
|
12539
13148
|
|
12540
13149
|
|
12541
|
-
sig { params(request: Models::Operations::
|
12542
|
-
def
|
12543
|
-
#
|
13150
|
+
sig { params(request: Models::Operations::HrisListDepartmentGroupsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListDepartmentGroupsResponse) }
|
13151
|
+
def list_department_groups(request:, retries: nil, timeout_ms: nil)
|
13152
|
+
# list_department_groups - List Department Groups
|
12544
13153
|
url, params = @sdk_configuration.get_server_details
|
12545
13154
|
base_url = Utils.template_url(url, params)
|
12546
|
-
url = "#{base_url}/unified/hris/groups/
|
13155
|
+
url = "#{base_url}/unified/hris/groups/departments"
|
12547
13156
|
headers = Utils.get_headers(request)
|
12548
13157
|
headers = T.cast(headers, T::Hash[String, String])
|
12549
|
-
query_params = Utils.get_query_params(Models::Operations::
|
13158
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListDepartmentGroupsRequest, request, nil)
|
12550
13159
|
headers['Accept'] = 'application/json'
|
12551
13160
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12552
13161
|
retries ||= @sdk_configuration.retry_config
|
@@ -12576,7 +13185,7 @@ module StackOne
|
|
12576
13185
|
config: @sdk_configuration,
|
12577
13186
|
base_url: base_url,
|
12578
13187
|
oauth2_scopes: [],
|
12579
|
-
operation_id: '
|
13188
|
+
operation_id: 'hris_list_department_groups',
|
12580
13189
|
security_source: @sdk_configuration.security_source
|
12581
13190
|
)
|
12582
13191
|
|
@@ -12634,13 +13243,13 @@ module StackOne
|
|
12634
13243
|
response: http_response
|
12635
13244
|
)
|
12636
13245
|
response_data = http_response.env.response_body
|
12637
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
12638
|
-
response = Models::Operations::
|
13246
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HRISDepartmentsPaginated)
|
13247
|
+
response = Models::Operations::HrisListDepartmentGroupsResponse.new(
|
12639
13248
|
status_code: http_response.status,
|
12640
13249
|
content_type: content_type,
|
12641
13250
|
raw_response: http_response,
|
12642
13251
|
headers: {},
|
12643
|
-
|
13252
|
+
hris_departments_paginated: T.unsafe(obj)
|
12644
13253
|
)
|
12645
13254
|
sdk = self
|
12646
13255
|
|
@@ -12655,8 +13264,8 @@ module StackOne
|
|
12655
13264
|
end
|
12656
13265
|
end
|
12657
13266
|
|
12658
|
-
sdk.
|
12659
|
-
request: Models::Operations::
|
13267
|
+
sdk.list_department_groups(
|
13268
|
+
request: Models::Operations::HrisListDepartmentGroupsRequest.new(
|
12660
13269
|
fields_: request.fields_,
|
12661
13270
|
filter: request.filter,
|
12662
13271
|
next_: next_cursor,
|
@@ -12854,15 +13463,15 @@ module StackOne
|
|
12854
13463
|
end
|
12855
13464
|
|
12856
13465
|
|
12857
|
-
sig { params(request: Models::Operations::
|
12858
|
-
def
|
12859
|
-
#
|
13466
|
+
sig { params(request: Models::Operations::HrisListDivisionGroupsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListDivisionGroupsResponse) }
|
13467
|
+
def list_division_groups(request:, retries: nil, timeout_ms: nil)
|
13468
|
+
# list_division_groups - List Division Groups
|
12860
13469
|
url, params = @sdk_configuration.get_server_details
|
12861
13470
|
base_url = Utils.template_url(url, params)
|
12862
|
-
url = "#{base_url}/unified/hris/groups/
|
13471
|
+
url = "#{base_url}/unified/hris/groups/divisions"
|
12863
13472
|
headers = Utils.get_headers(request)
|
12864
13473
|
headers = T.cast(headers, T::Hash[String, String])
|
12865
|
-
query_params = Utils.get_query_params(Models::Operations::
|
13474
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListDivisionGroupsRequest, request, nil)
|
12866
13475
|
headers['Accept'] = 'application/json'
|
12867
13476
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12868
13477
|
retries ||= @sdk_configuration.retry_config
|
@@ -12892,7 +13501,7 @@ module StackOne
|
|
12892
13501
|
config: @sdk_configuration,
|
12893
13502
|
base_url: base_url,
|
12894
13503
|
oauth2_scopes: [],
|
12895
|
-
operation_id: '
|
13504
|
+
operation_id: 'hris_list_division_groups',
|
12896
13505
|
security_source: @sdk_configuration.security_source
|
12897
13506
|
)
|
12898
13507
|
|
@@ -12950,13 +13559,13 @@ module StackOne
|
|
12950
13559
|
response: http_response
|
12951
13560
|
)
|
12952
13561
|
response_data = http_response.env.response_body
|
12953
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
12954
|
-
response = Models::Operations::
|
13562
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HRISDivisionsPaginated)
|
13563
|
+
response = Models::Operations::HrisListDivisionGroupsResponse.new(
|
12955
13564
|
status_code: http_response.status,
|
12956
13565
|
content_type: content_type,
|
12957
13566
|
raw_response: http_response,
|
12958
13567
|
headers: {},
|
12959
|
-
|
13568
|
+
hris_divisions_paginated: T.unsafe(obj)
|
12960
13569
|
)
|
12961
13570
|
sdk = self
|
12962
13571
|
|
@@ -12971,8 +13580,8 @@ module StackOne
|
|
12971
13580
|
end
|
12972
13581
|
end
|
12973
13582
|
|
12974
|
-
sdk.
|
12975
|
-
request: Models::Operations::
|
13583
|
+
sdk.list_division_groups(
|
13584
|
+
request: Models::Operations::HrisListDivisionGroupsRequest.new(
|
12976
13585
|
fields_: request.fields_,
|
12977
13586
|
filter: request.filter,
|
12978
13587
|
next_: next_cursor,
|
@@ -13170,15 +13779,15 @@ module StackOne
|
|
13170
13779
|
end
|
13171
13780
|
|
13172
13781
|
|
13173
|
-
sig { params(request: Models::Operations::
|
13174
|
-
def
|
13175
|
-
#
|
13782
|
+
sig { params(request: Models::Operations::HrisListEmployeeCategoriesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeCategoriesResponse) }
|
13783
|
+
def list_employee_categories(request:, retries: nil, timeout_ms: nil)
|
13784
|
+
# list_employee_categories - List Employee Document Categories
|
13176
13785
|
url, params = @sdk_configuration.get_server_details
|
13177
13786
|
base_url = Utils.template_url(url, params)
|
13178
|
-
url = "#{base_url}/unified/hris/
|
13787
|
+
url = "#{base_url}/unified/hris/documents/employee_categories"
|
13179
13788
|
headers = Utils.get_headers(request)
|
13180
13789
|
headers = T.cast(headers, T::Hash[String, String])
|
13181
|
-
query_params = Utils.get_query_params(Models::Operations::
|
13790
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeCategoriesRequest, request, nil)
|
13182
13791
|
headers['Accept'] = 'application/json'
|
13183
13792
|
headers['user-agent'] = @sdk_configuration.user_agent
|
13184
13793
|
retries ||= @sdk_configuration.retry_config
|
@@ -13208,7 +13817,7 @@ module StackOne
|
|
13208
13817
|
config: @sdk_configuration,
|
13209
13818
|
base_url: base_url,
|
13210
13819
|
oauth2_scopes: [],
|
13211
|
-
operation_id: '
|
13820
|
+
operation_id: 'hris_list_employee_categories',
|
13212
13821
|
security_source: @sdk_configuration.security_source
|
13213
13822
|
)
|
13214
13823
|
|
@@ -13266,13 +13875,13 @@ module StackOne
|
|
13266
13875
|
response: http_response
|
13267
13876
|
)
|
13268
13877
|
response_data = http_response.env.response_body
|
13269
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
13270
|
-
response = Models::Operations::
|
13878
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ReferencePaginated)
|
13879
|
+
response = Models::Operations::HrisListEmployeeCategoriesResponse.new(
|
13271
13880
|
status_code: http_response.status,
|
13272
13881
|
content_type: content_type,
|
13273
13882
|
raw_response: http_response,
|
13274
13883
|
headers: {},
|
13275
|
-
|
13884
|
+
reference_paginated: T.unsafe(obj)
|
13276
13885
|
)
|
13277
13886
|
sdk = self
|
13278
13887
|
|
@@ -13287,8 +13896,8 @@ module StackOne
|
|
13287
13896
|
end
|
13288
13897
|
end
|
13289
13898
|
|
13290
|
-
sdk.
|
13291
|
-
request: Models::Operations::
|
13899
|
+
sdk.list_employee_categories(
|
13900
|
+
request: Models::Operations::HrisListEmployeeCategoriesRequest.new(
|
13292
13901
|
fields_: request.fields_,
|
13293
13902
|
filter: request.filter,
|
13294
13903
|
next_: next_cursor,
|
@@ -13486,15 +14095,15 @@ module StackOne
|
|
13486
14095
|
end
|
13487
14096
|
|
13488
14097
|
|
13489
|
-
sig { params(request: Models::Operations::
|
13490
|
-
def
|
13491
|
-
#
|
14098
|
+
sig { params(request: Models::Operations::HrisListEmployeeCustomFieldDefinitionsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
14099
|
+
def list_employee_custom_field_definitions(request:, retries: nil, timeout_ms: nil)
|
14100
|
+
# list_employee_custom_field_definitions - List employee Custom Field Definitions
|
13492
14101
|
url, params = @sdk_configuration.get_server_details
|
13493
14102
|
base_url = Utils.template_url(url, params)
|
13494
|
-
url = "#{base_url}/unified/hris/
|
14103
|
+
url = "#{base_url}/unified/hris/custom_field_definitions/employees"
|
13495
14104
|
headers = Utils.get_headers(request)
|
13496
14105
|
headers = T.cast(headers, T::Hash[String, String])
|
13497
|
-
query_params = Utils.get_query_params(Models::Operations::
|
14106
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeCustomFieldDefinitionsRequest, request, nil)
|
13498
14107
|
headers['Accept'] = 'application/json'
|
13499
14108
|
headers['user-agent'] = @sdk_configuration.user_agent
|
13500
14109
|
retries ||= @sdk_configuration.retry_config
|
@@ -13524,7 +14133,7 @@ module StackOne
|
|
13524
14133
|
config: @sdk_configuration,
|
13525
14134
|
base_url: base_url,
|
13526
14135
|
oauth2_scopes: [],
|
13527
|
-
operation_id: '
|
14136
|
+
operation_id: 'hris_list_employee_custom_field_definitions',
|
13528
14137
|
security_source: @sdk_configuration.security_source
|
13529
14138
|
)
|
13530
14139
|
|
@@ -13582,13 +14191,13 @@ module StackOne
|
|
13582
14191
|
response: http_response
|
13583
14192
|
)
|
13584
14193
|
response_data = http_response.env.response_body
|
13585
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
13586
|
-
response = Models::Operations::
|
14194
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CustomFieldDefinitionsPaginated)
|
14195
|
+
response = Models::Operations::HrisListEmployeeCustomFieldDefinitionsResponse.new(
|
13587
14196
|
status_code: http_response.status,
|
13588
14197
|
content_type: content_type,
|
13589
14198
|
raw_response: http_response,
|
13590
14199
|
headers: {},
|
13591
|
-
|
14200
|
+
custom_field_definitions_paginated: T.unsafe(obj)
|
13592
14201
|
)
|
13593
14202
|
sdk = self
|
13594
14203
|
|
@@ -13603,8 +14212,8 @@ module StackOne
|
|
13603
14212
|
end
|
13604
14213
|
end
|
13605
14214
|
|
13606
|
-
sdk.
|
13607
|
-
request: Models::Operations::
|
14215
|
+
sdk.list_employee_custom_field_definitions(
|
14216
|
+
request: Models::Operations::HrisListEmployeeCustomFieldDefinitionsRequest.new(
|
13608
14217
|
fields_: request.fields_,
|
13609
14218
|
filter: request.filter,
|
13610
14219
|
next_: next_cursor,
|
@@ -13802,15 +14411,20 @@ module StackOne
|
|
13802
14411
|
end
|
13803
14412
|
|
13804
14413
|
|
13805
|
-
sig { params(request: Models::Operations::
|
13806
|
-
def
|
13807
|
-
#
|
14414
|
+
sig { params(request: Models::Operations::HrisListEmployeeDocumentsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeDocumentsResponse) }
|
14415
|
+
def list_employee_documents(request:, retries: nil, timeout_ms: nil)
|
14416
|
+
# list_employee_documents - List Employee Documents
|
13808
14417
|
url, params = @sdk_configuration.get_server_details
|
13809
14418
|
base_url = Utils.template_url(url, params)
|
13810
|
-
url =
|
14419
|
+
url = Utils.generate_url(
|
14420
|
+
Models::Operations::HrisListEmployeeDocumentsRequest,
|
14421
|
+
base_url,
|
14422
|
+
'/unified/hris/employees/{id}/documents',
|
14423
|
+
request
|
14424
|
+
)
|
13811
14425
|
headers = Utils.get_headers(request)
|
13812
14426
|
headers = T.cast(headers, T::Hash[String, String])
|
13813
|
-
query_params = Utils.get_query_params(Models::Operations::
|
14427
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeDocumentsRequest, request, nil)
|
13814
14428
|
headers['Accept'] = 'application/json'
|
13815
14429
|
headers['user-agent'] = @sdk_configuration.user_agent
|
13816
14430
|
retries ||= @sdk_configuration.retry_config
|
@@ -13840,7 +14454,7 @@ module StackOne
|
|
13840
14454
|
config: @sdk_configuration,
|
13841
14455
|
base_url: base_url,
|
13842
14456
|
oauth2_scopes: [],
|
13843
|
-
operation_id: '
|
14457
|
+
operation_id: 'hris_list_employee_documents',
|
13844
14458
|
security_source: @sdk_configuration.security_source
|
13845
14459
|
)
|
13846
14460
|
|
@@ -13898,13 +14512,13 @@ module StackOne
|
|
13898
14512
|
response: http_response
|
13899
14513
|
)
|
13900
14514
|
response_data = http_response.env.response_body
|
13901
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
13902
|
-
response = Models::Operations::
|
14515
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HrisDocumentsPaginated)
|
14516
|
+
response = Models::Operations::HrisListEmployeeDocumentsResponse.new(
|
13903
14517
|
status_code: http_response.status,
|
13904
14518
|
content_type: content_type,
|
13905
14519
|
raw_response: http_response,
|
13906
14520
|
headers: {},
|
13907
|
-
|
14521
|
+
hris_documents_paginated: T.unsafe(obj)
|
13908
14522
|
)
|
13909
14523
|
sdk = self
|
13910
14524
|
|
@@ -13919,10 +14533,11 @@ module StackOne
|
|
13919
14533
|
end
|
13920
14534
|
end
|
13921
14535
|
|
13922
|
-
sdk.
|
13923
|
-
request: Models::Operations::
|
14536
|
+
sdk.list_employee_documents(
|
14537
|
+
request: Models::Operations::HrisListEmployeeDocumentsRequest.new(
|
13924
14538
|
fields_: request.fields_,
|
13925
14539
|
filter: request.filter,
|
14540
|
+
id: request.id,
|
13926
14541
|
next_: next_cursor,
|
13927
14542
|
page: request.page,
|
13928
14543
|
page_size: request.page_size,
|
@@ -14118,20 +14733,20 @@ module StackOne
|
|
14118
14733
|
end
|
14119
14734
|
|
14120
14735
|
|
14121
|
-
sig { params(request: Models::Operations::
|
14122
|
-
def
|
14123
|
-
#
|
14736
|
+
sig { params(request: Models::Operations::HrisListEmployeeEmploymentsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeEmploymentsResponse) }
|
14737
|
+
def list_employee_employments(request:, retries: nil, timeout_ms: nil)
|
14738
|
+
# list_employee_employments - List Employee Employments
|
14124
14739
|
url, params = @sdk_configuration.get_server_details
|
14125
14740
|
base_url = Utils.template_url(url, params)
|
14126
14741
|
url = Utils.generate_url(
|
14127
|
-
Models::Operations::
|
14742
|
+
Models::Operations::HrisListEmployeeEmploymentsRequest,
|
14128
14743
|
base_url,
|
14129
|
-
'/unified/hris/employees/{id}/
|
14744
|
+
'/unified/hris/employees/{id}/employments',
|
14130
14745
|
request
|
14131
14746
|
)
|
14132
14747
|
headers = Utils.get_headers(request)
|
14133
14748
|
headers = T.cast(headers, T::Hash[String, String])
|
14134
|
-
query_params = Utils.get_query_params(Models::Operations::
|
14749
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeEmploymentsRequest, request, nil)
|
14135
14750
|
headers['Accept'] = 'application/json'
|
14136
14751
|
headers['user-agent'] = @sdk_configuration.user_agent
|
14137
14752
|
retries ||= @sdk_configuration.retry_config
|
@@ -14161,7 +14776,7 @@ module StackOne
|
|
14161
14776
|
config: @sdk_configuration,
|
14162
14777
|
base_url: base_url,
|
14163
14778
|
oauth2_scopes: [],
|
14164
|
-
operation_id: '
|
14779
|
+
operation_id: 'hris_list_employee_employments',
|
14165
14780
|
security_source: @sdk_configuration.security_source
|
14166
14781
|
)
|
14167
14782
|
|
@@ -14219,13 +14834,13 @@ module StackOne
|
|
14219
14834
|
response: http_response
|
14220
14835
|
)
|
14221
14836
|
response_data = http_response.env.response_body
|
14222
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
14223
|
-
response = Models::Operations::
|
14837
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::EmploymentsPaginated)
|
14838
|
+
response = Models::Operations::HrisListEmployeeEmploymentsResponse.new(
|
14224
14839
|
status_code: http_response.status,
|
14225
14840
|
content_type: content_type,
|
14226
14841
|
raw_response: http_response,
|
14227
14842
|
headers: {},
|
14228
|
-
|
14843
|
+
employments_paginated: T.unsafe(obj)
|
14229
14844
|
)
|
14230
14845
|
sdk = self
|
14231
14846
|
|
@@ -14240,8 +14855,9 @@ module StackOne
|
|
14240
14855
|
end
|
14241
14856
|
end
|
14242
14857
|
|
14243
|
-
sdk.
|
14244
|
-
request: Models::Operations::
|
14858
|
+
sdk.list_employee_employments(
|
14859
|
+
request: Models::Operations::HrisListEmployeeEmploymentsRequest.new(
|
14860
|
+
expand: request.expand,
|
14245
14861
|
fields_: request.fields_,
|
14246
14862
|
filter: request.filter,
|
14247
14863
|
id: request.id,
|
@@ -14440,20 +15056,20 @@ module StackOne
|
|
14440
15056
|
end
|
14441
15057
|
|
14442
15058
|
|
14443
|
-
sig { params(request: Models::Operations::
|
14444
|
-
def
|
14445
|
-
#
|
15059
|
+
sig { params(request: Models::Operations::HrisListEmployeeShiftsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeShiftsResponse) }
|
15060
|
+
def list_employee_shifts(request:, retries: nil, timeout_ms: nil)
|
15061
|
+
# list_employee_shifts - List Employee Shifts
|
14446
15062
|
url, params = @sdk_configuration.get_server_details
|
14447
15063
|
base_url = Utils.template_url(url, params)
|
14448
15064
|
url = Utils.generate_url(
|
14449
|
-
Models::Operations::
|
15065
|
+
Models::Operations::HrisListEmployeeShiftsRequest,
|
14450
15066
|
base_url,
|
14451
|
-
'/unified/hris/employees/{id}/
|
15067
|
+
'/unified/hris/employees/{id}/shifts',
|
14452
15068
|
request
|
14453
15069
|
)
|
14454
15070
|
headers = Utils.get_headers(request)
|
14455
15071
|
headers = T.cast(headers, T::Hash[String, String])
|
14456
|
-
query_params = Utils.get_query_params(Models::Operations::
|
15072
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeShiftsRequest, request, nil)
|
14457
15073
|
headers['Accept'] = 'application/json'
|
14458
15074
|
headers['user-agent'] = @sdk_configuration.user_agent
|
14459
15075
|
retries ||= @sdk_configuration.retry_config
|
@@ -14483,7 +15099,7 @@ module StackOne
|
|
14483
15099
|
config: @sdk_configuration,
|
14484
15100
|
base_url: base_url,
|
14485
15101
|
oauth2_scopes: [],
|
14486
|
-
operation_id: '
|
15102
|
+
operation_id: 'hris_list_employee_shifts',
|
14487
15103
|
security_source: @sdk_configuration.security_source
|
14488
15104
|
)
|
14489
15105
|
|
@@ -14541,13 +15157,13 @@ module StackOne
|
|
14541
15157
|
response: http_response
|
14542
15158
|
)
|
14543
15159
|
response_data = http_response.env.response_body
|
14544
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
14545
|
-
response = Models::Operations::
|
15160
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::HrisShiftsPaginated)
|
15161
|
+
response = Models::Operations::HrisListEmployeeShiftsResponse.new(
|
14546
15162
|
status_code: http_response.status,
|
14547
15163
|
content_type: content_type,
|
14548
15164
|
raw_response: http_response,
|
14549
15165
|
headers: {},
|
14550
|
-
|
15166
|
+
hris_shifts_paginated: T.unsafe(obj)
|
14551
15167
|
)
|
14552
15168
|
sdk = self
|
14553
15169
|
|
@@ -14562,9 +15178,8 @@ module StackOne
|
|
14562
15178
|
end
|
14563
15179
|
end
|
14564
15180
|
|
14565
|
-
sdk.
|
14566
|
-
request: Models::Operations::
|
14567
|
-
expand: request.expand,
|
15181
|
+
sdk.list_employee_shifts(
|
15182
|
+
request: Models::Operations::HrisListEmployeeShiftsRequest.new(
|
14568
15183
|
fields_: request.fields_,
|
14569
15184
|
filter: request.filter,
|
14570
15185
|
id: request.id,
|