stackone_client 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stack_one/accounts.rb +1 -1
- data/lib/stack_one/ats.rb +276 -0
- data/lib/stack_one/connect_sessions.rb +1 -1
- data/lib/stack_one/connectors.rb +1 -1
- data/lib/stack_one/hris.rb +812 -265
- data/lib/stack_one/lms.rb +291 -1441
- data/lib/stack_one/models/operations/ats_list_application_changes_queryparam_filter.rb +37 -0
- data/lib/stack_one/models/operations/ats_list_application_changes_request.rb +61 -0
- data/lib/stack_one/models/operations/{lms_batch_upsert_course_response.rb → ats_list_application_changes_response.rb} +7 -7
- data/lib/stack_one/models/operations/change_type.rb +22 -0
- data/lib/stack_one/models/operations/hris_get_position_request.rb +49 -0
- data/lib/stack_one/models/operations/{lms_update_collection_response.rb → hris_get_position_response.rb} +7 -7
- data/lib/stack_one/models/operations/hris_list_positions_queryparam_filter.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_positions_request.rb +73 -0
- data/lib/stack_one/models/operations/{lms_upsert_course_response.rb → hris_list_positions_response.rb} +7 -7
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_status.rb +21 -0
- data/lib/stack_one/models/operations/queryparam_status.rb +5 -4
- data/lib/stack_one/models/operations.rb +10 -8
- data/lib/stack_one/models/shared/active.rb +1 -1
- data/lib/stack_one/models/shared/actor.rb +37 -0
- data/lib/stack_one/models/shared/applicationchanges.rb +57 -0
- data/lib/stack_one/models/shared/{customfielddefinition_schemas_4.rb → applicationchanges_4.rb} +1 -1
- data/lib/stack_one/models/shared/applicationchanges_source_value.rb +28 -0
- data/lib/stack_one/models/shared/applicationchanges_value.rb +22 -0
- data/lib/stack_one/models/shared/applicationchangesdatamodel.rb +41 -0
- data/lib/stack_one/models/shared/applicationchangesdatamodel_4.rb +28 -0
- data/lib/stack_one/models/shared/applicationchangesdatamodel_application_status.rb +37 -0
- data/lib/stack_one/models/shared/applicationchangesdatamodel_source_value.rb +28 -0
- data/lib/stack_one/models/shared/applicationchangesdatamodel_value.rb +38 -0
- data/lib/stack_one/models/shared/applicationchangespaginated.rb +41 -0
- data/lib/stack_one/models/shared/categories.rb +1 -0
- data/lib/stack_one/models/shared/category.rb +2 -2
- data/lib/stack_one/models/shared/category_2.rb +20 -0
- data/lib/stack_one/models/shared/change_type.rb +37 -0
- data/lib/stack_one/models/shared/connectorsmeta_category.rb +1 -0
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +1 -0
- data/lib/stack_one/models/shared/course.rb +2 -2
- data/lib/stack_one/models/shared/course_2.rb +20 -0
- data/lib/stack_one/models/shared/course_active.rb +28 -0
- data/lib/stack_one/models/shared/customfielddefinition.rb +2 -2
- data/lib/stack_one/models/shared/customfielddefinition_type.rb +2 -2
- data/lib/stack_one/models/shared/customfieldoption.rb +37 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_2.rb +20 -0
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_active.rb +28 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_2.rb +20 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_active.rb +28 -0
- data/lib/stack_one/models/shared/lmsuser.rb +2 -2
- data/lib/stack_one/models/shared/lmsuser_2.rb +20 -0
- data/lib/stack_one/models/shared/lmsuser_active.rb +28 -0
- data/lib/stack_one/models/shared/position.rb +69 -0
- data/lib/stack_one/models/shared/{options.rb → position_4.rb} +1 -1
- data/lib/stack_one/models/shared/position_source_value.rb +28 -0
- data/lib/stack_one/models/shared/position_status.rb +37 -0
- data/lib/stack_one/models/shared/position_value.rb +22 -0
- data/lib/stack_one/models/shared/positionresult.rb +37 -0
- data/lib/stack_one/models/shared/positionspaginated.rb +45 -0
- data/lib/stack_one/models/shared/reference_active.rb +28 -0
- data/lib/stack_one/models/shared/skills.rb +2 -2
- data/lib/stack_one/models/shared/skills_2.rb +20 -0
- data/lib/stack_one/models/shared/skills_active.rb +28 -0
- data/lib/stack_one/models/shared/timeoff.rb +6 -2
- data/lib/stack_one/models/shared.rb +32 -6
- data/lib/stack_one/proxy.rb +1 -1
- data/lib/stack_one/request_logs.rb +1 -1
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +44 -16
- data/lib/stack_one/models/operations/lms_batch_upsert_course_request.rb +0 -37
- data/lib/stack_one/models/operations/lms_create_collection_request.rb +0 -37
- data/lib/stack_one/models/operations/lms_create_collection_response.rb +0 -49
- data/lib/stack_one/models/operations/lms_update_collection_request.rb +0 -41
- data/lib/stack_one/models/operations/lms_upsert_course_request.rb +0 -37
- data/lib/stack_one/models/shared/createcontentapimodel.rb +0 -53
- data/lib/stack_one/models/shared/lmsbatchupsertcourserequestdto.rb +0 -33
- data/lib/stack_one/models/shared/lmscreatecollectionrequestdto.rb +0 -69
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +0 -81
data/lib/stack_one/hris.rb
CHANGED
@@ -7303,19 +7303,19 @@ module StackOne
|
|
7303
7303
|
end
|
7304
7304
|
|
7305
7305
|
|
7306
|
-
sig { params(request: T.nilable(Models::Operations::
|
7307
|
-
def
|
7308
|
-
#
|
7306
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetPositionRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetPositionResponse) }
|
7307
|
+
def get_position(request, retries = nil, timeout_ms = nil)
|
7308
|
+
# get_position - Get Position
|
7309
7309
|
url, params = @sdk_configuration.get_server_details
|
7310
7310
|
base_url = Utils.template_url(url, params)
|
7311
7311
|
url = Utils.generate_url(
|
7312
|
-
Models::Operations::
|
7312
|
+
Models::Operations::HrisGetPositionRequest,
|
7313
7313
|
base_url,
|
7314
|
-
'/unified/hris/
|
7314
|
+
'/unified/hris/positions/{id}',
|
7315
7315
|
request
|
7316
7316
|
)
|
7317
7317
|
headers = Utils.get_headers(request)
|
7318
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7318
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetPositionRequest, request)
|
7319
7319
|
headers['Accept'] = 'application/json'
|
7320
7320
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7321
7321
|
retries ||= @sdk_configuration.retry_config
|
@@ -7343,7 +7343,7 @@ module StackOne
|
|
7343
7343
|
hook_ctx = SDKHooks::HookContext.new(
|
7344
7344
|
base_url: base_url,
|
7345
7345
|
oauth2_scopes: [],
|
7346
|
-
operation_id: '
|
7346
|
+
operation_id: 'hris_get_position',
|
7347
7347
|
security_source: @sdk_configuration.security_source
|
7348
7348
|
)
|
7349
7349
|
|
@@ -7400,12 +7400,12 @@ module StackOne
|
|
7400
7400
|
),
|
7401
7401
|
response: http_response
|
7402
7402
|
)
|
7403
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7404
|
-
response = Models::Operations::
|
7403
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::PositionResult)
|
7404
|
+
response = Models::Operations::HrisGetPositionResponse.new(
|
7405
7405
|
status_code: http_response.status,
|
7406
7406
|
content_type: content_type,
|
7407
7407
|
raw_response: http_response,
|
7408
|
-
|
7408
|
+
position_result: obj
|
7409
7409
|
)
|
7410
7410
|
|
7411
7411
|
return response
|
@@ -7579,19 +7579,19 @@ module StackOne
|
|
7579
7579
|
end
|
7580
7580
|
|
7581
7581
|
|
7582
|
-
sig { params(request: T.nilable(Models::Operations::
|
7583
|
-
def
|
7584
|
-
#
|
7582
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTeamGroupRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTeamGroupResponse) }
|
7583
|
+
def get_team_group(request, retries = nil, timeout_ms = nil)
|
7584
|
+
# get_team_group - Get Team Group
|
7585
7585
|
url, params = @sdk_configuration.get_server_details
|
7586
7586
|
base_url = Utils.template_url(url, params)
|
7587
7587
|
url = Utils.generate_url(
|
7588
|
-
Models::Operations::
|
7588
|
+
Models::Operations::HrisGetTeamGroupRequest,
|
7589
7589
|
base_url,
|
7590
|
-
'/unified/hris/
|
7590
|
+
'/unified/hris/groups/teams/{id}',
|
7591
7591
|
request
|
7592
7592
|
)
|
7593
7593
|
headers = Utils.get_headers(request)
|
7594
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7594
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTeamGroupRequest, request)
|
7595
7595
|
headers['Accept'] = 'application/json'
|
7596
7596
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7597
7597
|
retries ||= @sdk_configuration.retry_config
|
@@ -7619,7 +7619,7 @@ module StackOne
|
|
7619
7619
|
hook_ctx = SDKHooks::HookContext.new(
|
7620
7620
|
base_url: base_url,
|
7621
7621
|
oauth2_scopes: [],
|
7622
|
-
operation_id: '
|
7622
|
+
operation_id: 'hris_get_team_group',
|
7623
7623
|
security_source: @sdk_configuration.security_source
|
7624
7624
|
)
|
7625
7625
|
|
@@ -7676,12 +7676,12 @@ module StackOne
|
|
7676
7676
|
),
|
7677
7677
|
response: http_response
|
7678
7678
|
)
|
7679
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7680
|
-
response = Models::Operations::
|
7679
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISTeamsResult)
|
7680
|
+
response = Models::Operations::HrisGetTeamGroupResponse.new(
|
7681
7681
|
status_code: http_response.status,
|
7682
7682
|
content_type: content_type,
|
7683
7683
|
raw_response: http_response,
|
7684
|
-
|
7684
|
+
hris_teams_result: obj
|
7685
7685
|
)
|
7686
7686
|
|
7687
7687
|
return response
|
@@ -7855,19 +7855,19 @@ module StackOne
|
|
7855
7855
|
end
|
7856
7856
|
|
7857
7857
|
|
7858
|
-
sig { params(request: T.nilable(Models::Operations::
|
7859
|
-
def
|
7860
|
-
#
|
7858
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTimeEntriesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeEntriesResponse) }
|
7859
|
+
def get_time_entries(request, retries = nil, timeout_ms = nil)
|
7860
|
+
# get_time_entries - Get Time Entry
|
7861
7861
|
url, params = @sdk_configuration.get_server_details
|
7862
7862
|
base_url = Utils.template_url(url, params)
|
7863
7863
|
url = Utils.generate_url(
|
7864
|
-
Models::Operations::
|
7864
|
+
Models::Operations::HrisGetTimeEntriesRequest,
|
7865
7865
|
base_url,
|
7866
|
-
'/unified/hris/
|
7866
|
+
'/unified/hris/time_entries/{id}',
|
7867
7867
|
request
|
7868
7868
|
)
|
7869
7869
|
headers = Utils.get_headers(request)
|
7870
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7870
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeEntriesRequest, request)
|
7871
7871
|
headers['Accept'] = 'application/json'
|
7872
7872
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7873
7873
|
retries ||= @sdk_configuration.retry_config
|
@@ -7895,7 +7895,7 @@ module StackOne
|
|
7895
7895
|
hook_ctx = SDKHooks::HookContext.new(
|
7896
7896
|
base_url: base_url,
|
7897
7897
|
oauth2_scopes: [],
|
7898
|
-
operation_id: '
|
7898
|
+
operation_id: 'hris_get_time_entries',
|
7899
7899
|
security_source: @sdk_configuration.security_source
|
7900
7900
|
)
|
7901
7901
|
|
@@ -7952,12 +7952,12 @@ module StackOne
|
|
7952
7952
|
),
|
7953
7953
|
response: http_response
|
7954
7954
|
)
|
7955
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7956
|
-
response = Models::Operations::
|
7955
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeEntriesResult)
|
7956
|
+
response = Models::Operations::HrisGetTimeEntriesResponse.new(
|
7957
7957
|
status_code: http_response.status,
|
7958
7958
|
content_type: content_type,
|
7959
7959
|
raw_response: http_response,
|
7960
|
-
|
7960
|
+
time_entries_result: obj
|
7961
7961
|
)
|
7962
7962
|
|
7963
7963
|
return response
|
@@ -8131,19 +8131,19 @@ module StackOne
|
|
8131
8131
|
end
|
8132
8132
|
|
8133
8133
|
|
8134
|
-
sig { params(request: T.nilable(Models::Operations::
|
8135
|
-
def
|
8136
|
-
#
|
8134
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTimeOffPolicyRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffPolicyResponse) }
|
8135
|
+
def get_time_off_policy(request, retries = nil, timeout_ms = nil)
|
8136
|
+
# get_time_off_policy - Get Time Off Policy
|
8137
8137
|
url, params = @sdk_configuration.get_server_details
|
8138
8138
|
base_url = Utils.template_url(url, params)
|
8139
8139
|
url = Utils.generate_url(
|
8140
|
-
Models::Operations::
|
8140
|
+
Models::Operations::HrisGetTimeOffPolicyRequest,
|
8141
8141
|
base_url,
|
8142
|
-
'/unified/hris/
|
8142
|
+
'/unified/hris/time_off_policies/{id}',
|
8143
8143
|
request
|
8144
8144
|
)
|
8145
8145
|
headers = Utils.get_headers(request)
|
8146
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8146
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffPolicyRequest, request)
|
8147
8147
|
headers['Accept'] = 'application/json'
|
8148
8148
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8149
8149
|
retries ||= @sdk_configuration.retry_config
|
@@ -8171,7 +8171,7 @@ module StackOne
|
|
8171
8171
|
hook_ctx = SDKHooks::HookContext.new(
|
8172
8172
|
base_url: base_url,
|
8173
8173
|
oauth2_scopes: [],
|
8174
|
-
operation_id: '
|
8174
|
+
operation_id: 'hris_get_time_off_policy',
|
8175
8175
|
security_source: @sdk_configuration.security_source
|
8176
8176
|
)
|
8177
8177
|
|
@@ -8228,12 +8228,12 @@ module StackOne
|
|
8228
8228
|
),
|
8229
8229
|
response: http_response
|
8230
8230
|
)
|
8231
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8232
|
-
response = Models::Operations::
|
8231
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffPolicyResult)
|
8232
|
+
response = Models::Operations::HrisGetTimeOffPolicyResponse.new(
|
8233
8233
|
status_code: http_response.status,
|
8234
8234
|
content_type: content_type,
|
8235
8235
|
raw_response: http_response,
|
8236
|
-
|
8236
|
+
time_off_policy_result: obj
|
8237
8237
|
)
|
8238
8238
|
|
8239
8239
|
return response
|
@@ -8407,21 +8407,19 @@ module StackOne
|
|
8407
8407
|
end
|
8408
8408
|
|
8409
8409
|
|
8410
|
-
sig { params(request: T.nilable(Models::Operations::
|
8411
|
-
def
|
8412
|
-
#
|
8413
|
-
#
|
8414
|
-
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
8410
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTimeOffRequestRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffRequestResponse) }
|
8411
|
+
def get_time_off_request(request, retries = nil, timeout_ms = nil)
|
8412
|
+
# get_time_off_request - Get time off request
|
8415
8413
|
url, params = @sdk_configuration.get_server_details
|
8416
8414
|
base_url = Utils.template_url(url, params)
|
8417
8415
|
url = Utils.generate_url(
|
8418
|
-
Models::Operations::
|
8416
|
+
Models::Operations::HrisGetTimeOffRequestRequest,
|
8419
8417
|
base_url,
|
8420
|
-
'/unified/hris/
|
8418
|
+
'/unified/hris/time_off/{id}',
|
8421
8419
|
request
|
8422
8420
|
)
|
8423
8421
|
headers = Utils.get_headers(request)
|
8424
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8422
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffRequestRequest, request)
|
8425
8423
|
headers['Accept'] = 'application/json'
|
8426
8424
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8427
8425
|
retries ||= @sdk_configuration.retry_config
|
@@ -8449,7 +8447,7 @@ module StackOne
|
|
8449
8447
|
hook_ctx = SDKHooks::HookContext.new(
|
8450
8448
|
base_url: base_url,
|
8451
8449
|
oauth2_scopes: [],
|
8452
|
-
operation_id: '
|
8450
|
+
operation_id: 'hris_get_time_off_request',
|
8453
8451
|
security_source: @sdk_configuration.security_source
|
8454
8452
|
)
|
8455
8453
|
|
@@ -8506,12 +8504,12 @@ module StackOne
|
|
8506
8504
|
),
|
8507
8505
|
response: http_response
|
8508
8506
|
)
|
8509
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8510
|
-
response = Models::Operations::
|
8507
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffResult)
|
8508
|
+
response = Models::Operations::HrisGetTimeOffRequestResponse.new(
|
8511
8509
|
status_code: http_response.status,
|
8512
8510
|
content_type: content_type,
|
8513
8511
|
raw_response: http_response,
|
8514
|
-
|
8512
|
+
time_off_result: obj
|
8515
8513
|
)
|
8516
8514
|
|
8517
8515
|
return response
|
@@ -8685,35 +8683,21 @@ module StackOne
|
|
8685
8683
|
end
|
8686
8684
|
|
8687
8685
|
|
8688
|
-
sig { params(
|
8689
|
-
def
|
8690
|
-
#
|
8691
|
-
|
8692
|
-
|
8693
|
-
hris_invite_employee_request_dto: hris_invite_employee_request_dto,
|
8694
|
-
id: id,
|
8695
|
-
x_account_id: x_account_id
|
8696
|
-
)
|
8686
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTimeOffTypeRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffTypeResponse) }
|
8687
|
+
def get_time_off_type(request, retries = nil, timeout_ms = nil)
|
8688
|
+
# get_time_off_type - Get time off type
|
8689
|
+
#
|
8690
|
+
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
8697
8691
|
url, params = @sdk_configuration.get_server_details
|
8698
8692
|
base_url = Utils.template_url(url, params)
|
8699
8693
|
url = Utils.generate_url(
|
8700
|
-
Models::Operations::
|
8694
|
+
Models::Operations::HrisGetTimeOffTypeRequest,
|
8701
8695
|
base_url,
|
8702
|
-
'/unified/hris/
|
8696
|
+
'/unified/hris/time_off_types/{id}',
|
8703
8697
|
request
|
8704
8698
|
)
|
8705
8699
|
headers = Utils.get_headers(request)
|
8706
|
-
|
8707
|
-
headers['content-type'] = req_content_type
|
8708
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
8709
|
-
|
8710
|
-
if form
|
8711
|
-
body = Utils.encode_form(form)
|
8712
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
8713
|
-
body = URI.encode_www_form(data)
|
8714
|
-
else
|
8715
|
-
body = data
|
8716
|
-
end
|
8700
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffTypeRequest, request)
|
8717
8701
|
headers['Accept'] = 'application/json'
|
8718
8702
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8719
8703
|
retries ||= @sdk_configuration.retry_config
|
@@ -8741,7 +8725,7 @@ module StackOne
|
|
8741
8725
|
hook_ctx = SDKHooks::HookContext.new(
|
8742
8726
|
base_url: base_url,
|
8743
8727
|
oauth2_scopes: [],
|
8744
|
-
operation_id: '
|
8728
|
+
operation_id: 'hris_get_time_off_type',
|
8745
8729
|
security_source: @sdk_configuration.security_source
|
8746
8730
|
)
|
8747
8731
|
|
@@ -8750,10 +8734,10 @@ module StackOne
|
|
8750
8734
|
|
8751
8735
|
|
8752
8736
|
begin
|
8753
|
-
http_response = connection.
|
8754
|
-
req.body = body
|
8737
|
+
http_response = connection.get(url) do |req|
|
8755
8738
|
req.headers.merge!(headers)
|
8756
8739
|
req.options.timeout = timeout unless timeout.nil?
|
8740
|
+
req.params = query_params
|
8757
8741
|
Utils.configure_request_security(req, security)
|
8758
8742
|
|
8759
8743
|
@sdk_configuration.hooks.before_request(
|
@@ -8798,12 +8782,12 @@ module StackOne
|
|
8798
8782
|
),
|
8799
8783
|
response: http_response
|
8800
8784
|
)
|
8801
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8802
|
-
response = Models::Operations::
|
8785
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ReferenceResult)
|
8786
|
+
response = Models::Operations::HrisGetTimeOffTypeResponse.new(
|
8803
8787
|
status_code: http_response.status,
|
8804
8788
|
content_type: content_type,
|
8805
8789
|
raw_response: http_response,
|
8806
|
-
|
8790
|
+
reference_result: obj
|
8807
8791
|
)
|
8808
8792
|
|
8809
8793
|
return response
|
@@ -8977,14 +8961,35 @@ module StackOne
|
|
8977
8961
|
end
|
8978
8962
|
|
8979
8963
|
|
8980
|
-
sig { params(
|
8981
|
-
def
|
8982
|
-
#
|
8964
|
+
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) }
|
8965
|
+
def invite_employee(hris_invite_employee_request_dto, id, x_account_id, retries = nil, timeout_ms = nil)
|
8966
|
+
# invite_employee - Invite Employee
|
8967
|
+
request = Models::Operations::HrisInviteEmployeeRequest.new(
|
8968
|
+
|
8969
|
+
hris_invite_employee_request_dto: hris_invite_employee_request_dto,
|
8970
|
+
id: id,
|
8971
|
+
x_account_id: x_account_id
|
8972
|
+
)
|
8983
8973
|
url, params = @sdk_configuration.get_server_details
|
8984
8974
|
base_url = Utils.template_url(url, params)
|
8985
|
-
url =
|
8975
|
+
url = Utils.generate_url(
|
8976
|
+
Models::Operations::HrisInviteEmployeeRequest,
|
8977
|
+
base_url,
|
8978
|
+
'/unified/hris/employees/{id}/invite',
|
8979
|
+
request
|
8980
|
+
)
|
8986
8981
|
headers = Utils.get_headers(request)
|
8987
|
-
|
8982
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :hris_invite_employee_request_dto, :json)
|
8983
|
+
headers['content-type'] = req_content_type
|
8984
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
8985
|
+
|
8986
|
+
if form
|
8987
|
+
body = Utils.encode_form(form)
|
8988
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
8989
|
+
body = URI.encode_www_form(data)
|
8990
|
+
else
|
8991
|
+
body = data
|
8992
|
+
end
|
8988
8993
|
headers['Accept'] = 'application/json'
|
8989
8994
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8990
8995
|
retries ||= @sdk_configuration.retry_config
|
@@ -9012,7 +9017,7 @@ module StackOne
|
|
9012
9017
|
hook_ctx = SDKHooks::HookContext.new(
|
9013
9018
|
base_url: base_url,
|
9014
9019
|
oauth2_scopes: [],
|
9015
|
-
operation_id: '
|
9020
|
+
operation_id: 'hris_invite_employee',
|
9016
9021
|
security_source: @sdk_configuration.security_source
|
9017
9022
|
)
|
9018
9023
|
|
@@ -9021,10 +9026,10 @@ module StackOne
|
|
9021
9026
|
|
9022
9027
|
|
9023
9028
|
begin
|
9024
|
-
http_response = connection.
|
9029
|
+
http_response = connection.post(url) do |req|
|
9030
|
+
req.body = body
|
9025
9031
|
req.headers.merge!(headers)
|
9026
9032
|
req.options.timeout = timeout unless timeout.nil?
|
9027
|
-
req.params = query_params
|
9028
9033
|
Utils.configure_request_security(req, security)
|
9029
9034
|
|
9030
9035
|
@sdk_configuration.hooks.before_request(
|
@@ -9069,12 +9074,12 @@ module StackOne
|
|
9069
9074
|
),
|
9070
9075
|
response: http_response
|
9071
9076
|
)
|
9072
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9073
|
-
response = Models::Operations::
|
9077
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::InviteEmployeeResult)
|
9078
|
+
response = Models::Operations::HrisInviteEmployeeResponse.new(
|
9074
9079
|
status_code: http_response.status,
|
9075
9080
|
content_type: content_type,
|
9076
9081
|
raw_response: http_response,
|
9077
|
-
|
9082
|
+
invite_employee_result: obj
|
9078
9083
|
)
|
9079
9084
|
|
9080
9085
|
return response
|
@@ -9248,14 +9253,14 @@ module StackOne
|
|
9248
9253
|
end
|
9249
9254
|
|
9250
9255
|
|
9251
|
-
sig { params(request: T.nilable(Models::Operations::
|
9252
|
-
def
|
9253
|
-
#
|
9256
|
+
sig { params(request: T.nilable(Models::Operations::HrisListBenefitsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListBenefitsResponse) }
|
9257
|
+
def list_benefits(request, retries = nil, timeout_ms = nil)
|
9258
|
+
# list_benefits - List benefits
|
9254
9259
|
url, params = @sdk_configuration.get_server_details
|
9255
9260
|
base_url = Utils.template_url(url, params)
|
9256
|
-
url = "#{base_url}/unified/hris/
|
9261
|
+
url = "#{base_url}/unified/hris/benefits"
|
9257
9262
|
headers = Utils.get_headers(request)
|
9258
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9263
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListBenefitsRequest, request)
|
9259
9264
|
headers['Accept'] = 'application/json'
|
9260
9265
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9261
9266
|
retries ||= @sdk_configuration.retry_config
|
@@ -9283,7 +9288,7 @@ module StackOne
|
|
9283
9288
|
hook_ctx = SDKHooks::HookContext.new(
|
9284
9289
|
base_url: base_url,
|
9285
9290
|
oauth2_scopes: [],
|
9286
|
-
operation_id: '
|
9291
|
+
operation_id: 'hris_list_benefits',
|
9287
9292
|
security_source: @sdk_configuration.security_source
|
9288
9293
|
)
|
9289
9294
|
|
@@ -9340,12 +9345,12 @@ module StackOne
|
|
9340
9345
|
),
|
9341
9346
|
response: http_response
|
9342
9347
|
)
|
9343
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9344
|
-
response = Models::Operations::
|
9348
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISBenefitsPaginated)
|
9349
|
+
response = Models::Operations::HrisListBenefitsResponse.new(
|
9345
9350
|
status_code: http_response.status,
|
9346
9351
|
content_type: content_type,
|
9347
9352
|
raw_response: http_response,
|
9348
|
-
|
9353
|
+
hris_benefits_paginated: obj
|
9349
9354
|
)
|
9350
9355
|
|
9351
9356
|
return response
|
@@ -9519,14 +9524,14 @@ module StackOne
|
|
9519
9524
|
end
|
9520
9525
|
|
9521
9526
|
|
9522
|
-
sig { params(request: T.nilable(Models::Operations::
|
9523
|
-
def
|
9524
|
-
#
|
9527
|
+
sig { params(request: T.nilable(Models::Operations::HrisListCompaniesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListCompaniesResponse) }
|
9528
|
+
def list_companies(request, retries = nil, timeout_ms = nil)
|
9529
|
+
# list_companies - List Companies
|
9525
9530
|
url, params = @sdk_configuration.get_server_details
|
9526
9531
|
base_url = Utils.template_url(url, params)
|
9527
|
-
url = "#{base_url}/unified/hris/
|
9532
|
+
url = "#{base_url}/unified/hris/companies"
|
9528
9533
|
headers = Utils.get_headers(request)
|
9529
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9534
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListCompaniesRequest, request)
|
9530
9535
|
headers['Accept'] = 'application/json'
|
9531
9536
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9532
9537
|
retries ||= @sdk_configuration.retry_config
|
@@ -9554,7 +9559,7 @@ module StackOne
|
|
9554
9559
|
hook_ctx = SDKHooks::HookContext.new(
|
9555
9560
|
base_url: base_url,
|
9556
9561
|
oauth2_scopes: [],
|
9557
|
-
operation_id: '
|
9562
|
+
operation_id: 'hris_list_companies',
|
9558
9563
|
security_source: @sdk_configuration.security_source
|
9559
9564
|
)
|
9560
9565
|
|
@@ -9611,12 +9616,12 @@ module StackOne
|
|
9611
9616
|
),
|
9612
9617
|
response: http_response
|
9613
9618
|
)
|
9614
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9615
|
-
response = Models::Operations::
|
9619
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CompaniesPaginated)
|
9620
|
+
response = Models::Operations::HrisListCompaniesResponse.new(
|
9616
9621
|
status_code: http_response.status,
|
9617
9622
|
content_type: content_type,
|
9618
9623
|
raw_response: http_response,
|
9619
|
-
|
9624
|
+
companies_paginated: obj
|
9620
9625
|
)
|
9621
9626
|
|
9622
9627
|
return response
|
@@ -9790,14 +9795,14 @@ module StackOne
|
|
9790
9795
|
end
|
9791
9796
|
|
9792
9797
|
|
9793
|
-
sig { params(request: T.nilable(Models::Operations::
|
9794
|
-
def
|
9795
|
-
#
|
9798
|
+
sig { params(request: T.nilable(Models::Operations::HrisListCostCenterGroupsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListCostCenterGroupsResponse) }
|
9799
|
+
def list_cost_center_groups(request, retries = nil, timeout_ms = nil)
|
9800
|
+
# list_cost_center_groups - List Cost Center Groups
|
9796
9801
|
url, params = @sdk_configuration.get_server_details
|
9797
9802
|
base_url = Utils.template_url(url, params)
|
9798
|
-
url = "#{base_url}/unified/hris/groups/
|
9803
|
+
url = "#{base_url}/unified/hris/groups/cost_centers"
|
9799
9804
|
headers = Utils.get_headers(request)
|
9800
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9805
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListCostCenterGroupsRequest, request)
|
9801
9806
|
headers['Accept'] = 'application/json'
|
9802
9807
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9803
9808
|
retries ||= @sdk_configuration.retry_config
|
@@ -9825,7 +9830,7 @@ module StackOne
|
|
9825
9830
|
hook_ctx = SDKHooks::HookContext.new(
|
9826
9831
|
base_url: base_url,
|
9827
9832
|
oauth2_scopes: [],
|
9828
|
-
operation_id: '
|
9833
|
+
operation_id: 'hris_list_cost_center_groups',
|
9829
9834
|
security_source: @sdk_configuration.security_source
|
9830
9835
|
)
|
9831
9836
|
|
@@ -9882,12 +9887,12 @@ module StackOne
|
|
9882
9887
|
),
|
9883
9888
|
response: http_response
|
9884
9889
|
)
|
9885
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9886
|
-
response = Models::Operations::
|
9890
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISCostCenterPaginated)
|
9891
|
+
response = Models::Operations::HrisListCostCenterGroupsResponse.new(
|
9887
9892
|
status_code: http_response.status,
|
9888
9893
|
content_type: content_type,
|
9889
9894
|
raw_response: http_response,
|
9890
|
-
|
9895
|
+
hris_cost_center_paginated: obj
|
9891
9896
|
)
|
9892
9897
|
|
9893
9898
|
return response
|
@@ -10061,14 +10066,14 @@ module StackOne
|
|
10061
10066
|
end
|
10062
10067
|
|
10063
10068
|
|
10064
|
-
sig { params(request: T.nilable(Models::Operations::
|
10065
|
-
def
|
10066
|
-
#
|
10069
|
+
sig { params(request: T.nilable(Models::Operations::HrisListDepartmentGroupsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListDepartmentGroupsResponse) }
|
10070
|
+
def list_department_groups(request, retries = nil, timeout_ms = nil)
|
10071
|
+
# list_department_groups - List Department Groups
|
10067
10072
|
url, params = @sdk_configuration.get_server_details
|
10068
10073
|
base_url = Utils.template_url(url, params)
|
10069
|
-
url = "#{base_url}/unified/hris/
|
10074
|
+
url = "#{base_url}/unified/hris/groups/departments"
|
10070
10075
|
headers = Utils.get_headers(request)
|
10071
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10076
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListDepartmentGroupsRequest, request)
|
10072
10077
|
headers['Accept'] = 'application/json'
|
10073
10078
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10074
10079
|
retries ||= @sdk_configuration.retry_config
|
@@ -10096,7 +10101,7 @@ module StackOne
|
|
10096
10101
|
hook_ctx = SDKHooks::HookContext.new(
|
10097
10102
|
base_url: base_url,
|
10098
10103
|
oauth2_scopes: [],
|
10099
|
-
operation_id: '
|
10104
|
+
operation_id: 'hris_list_department_groups',
|
10100
10105
|
security_source: @sdk_configuration.security_source
|
10101
10106
|
)
|
10102
10107
|
|
@@ -10153,12 +10158,12 @@ module StackOne
|
|
10153
10158
|
),
|
10154
10159
|
response: http_response
|
10155
10160
|
)
|
10156
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10157
|
-
response = Models::Operations::
|
10161
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISDepartmentsPaginated)
|
10162
|
+
response = Models::Operations::HrisListDepartmentGroupsResponse.new(
|
10158
10163
|
status_code: http_response.status,
|
10159
10164
|
content_type: content_type,
|
10160
10165
|
raw_response: http_response,
|
10161
|
-
|
10166
|
+
hris_departments_paginated: obj
|
10162
10167
|
)
|
10163
10168
|
|
10164
10169
|
return response
|
@@ -10332,14 +10337,561 @@ module StackOne
|
|
10332
10337
|
end
|
10333
10338
|
|
10334
10339
|
|
10335
|
-
sig { params(request: T.nilable(Models::Operations::
|
10336
|
-
def
|
10337
|
-
#
|
10340
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeCategoriesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeCategoriesResponse) }
|
10341
|
+
def list_employee_categories(request, retries = nil, timeout_ms = nil)
|
10342
|
+
# list_employee_categories - List Employee Document Categories
|
10338
10343
|
url, params = @sdk_configuration.get_server_details
|
10339
10344
|
base_url = Utils.template_url(url, params)
|
10340
|
-
url = "#{base_url}/unified/hris/
|
10345
|
+
url = "#{base_url}/unified/hris/documents/employee_categories"
|
10346
|
+
headers = Utils.get_headers(request)
|
10347
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeCategoriesRequest, request)
|
10348
|
+
headers['Accept'] = 'application/json'
|
10349
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
10350
|
+
retries ||= @sdk_configuration.retry_config
|
10351
|
+
retries ||= Utils::RetryConfig.new(
|
10352
|
+
backoff: Utils::BackoffStrategy.new(
|
10353
|
+
exponent: 1.5,
|
10354
|
+
initial_interval: 500,
|
10355
|
+
max_elapsed_time: 3_600_000,
|
10356
|
+
max_interval: 60_000
|
10357
|
+
),
|
10358
|
+
retry_connection_errors: true,
|
10359
|
+
strategy: 'backoff'
|
10360
|
+
)
|
10361
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
10362
|
+
retry_options[:retry_statuses] = [429, 408]
|
10363
|
+
|
10364
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
10365
|
+
|
10366
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
10367
|
+
timeout ||= @sdk_configuration.timeout
|
10368
|
+
|
10369
|
+
connection = @sdk_configuration.client.dup
|
10370
|
+
connection.request :retry, retry_options
|
10371
|
+
|
10372
|
+
hook_ctx = SDKHooks::HookContext.new(
|
10373
|
+
base_url: base_url,
|
10374
|
+
oauth2_scopes: [],
|
10375
|
+
operation_id: 'hris_list_employee_categories',
|
10376
|
+
security_source: @sdk_configuration.security_source
|
10377
|
+
)
|
10378
|
+
|
10379
|
+
error = T.let(nil, T.nilable(StandardError))
|
10380
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
10381
|
+
|
10382
|
+
|
10383
|
+
begin
|
10384
|
+
http_response = connection.get(url) do |req|
|
10385
|
+
req.headers.merge!(headers)
|
10386
|
+
req.options.timeout = timeout unless timeout.nil?
|
10387
|
+
req.params = query_params
|
10388
|
+
Utils.configure_request_security(req, security)
|
10389
|
+
|
10390
|
+
@sdk_configuration.hooks.before_request(
|
10391
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
10392
|
+
hook_ctx: hook_ctx
|
10393
|
+
),
|
10394
|
+
request: req
|
10395
|
+
)
|
10396
|
+
end
|
10397
|
+
rescue StandardError => e
|
10398
|
+
error = e
|
10399
|
+
ensure
|
10400
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
10401
|
+
http_response = @sdk_configuration.hooks.after_error(
|
10402
|
+
error: error,
|
10403
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
10404
|
+
hook_ctx: hook_ctx
|
10405
|
+
),
|
10406
|
+
response: http_response
|
10407
|
+
)
|
10408
|
+
else
|
10409
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10410
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10411
|
+
hook_ctx: hook_ctx
|
10412
|
+
),
|
10413
|
+
response: http_response
|
10414
|
+
)
|
10415
|
+
end
|
10416
|
+
|
10417
|
+
if http_response.nil?
|
10418
|
+
raise error if !error.nil?
|
10419
|
+
raise 'no response'
|
10420
|
+
end
|
10421
|
+
end
|
10422
|
+
|
10423
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
10424
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
10425
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10426
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10427
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10428
|
+
hook_ctx: hook_ctx
|
10429
|
+
),
|
10430
|
+
response: http_response
|
10431
|
+
)
|
10432
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ReferencePaginated)
|
10433
|
+
response = Models::Operations::HrisListEmployeeCategoriesResponse.new(
|
10434
|
+
status_code: http_response.status,
|
10435
|
+
content_type: content_type,
|
10436
|
+
raw_response: http_response,
|
10437
|
+
reference_paginated: obj
|
10438
|
+
)
|
10439
|
+
|
10440
|
+
return response
|
10441
|
+
else
|
10442
|
+
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'
|
10443
|
+
end
|
10444
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
10445
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10446
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10447
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10448
|
+
hook_ctx: hook_ctx
|
10449
|
+
),
|
10450
|
+
response: http_response
|
10451
|
+
)
|
10452
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
10453
|
+
throw obj
|
10454
|
+
else
|
10455
|
+
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'
|
10456
|
+
end
|
10457
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
10458
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10459
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10460
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10461
|
+
hook_ctx: hook_ctx
|
10462
|
+
),
|
10463
|
+
response: http_response
|
10464
|
+
)
|
10465
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
10466
|
+
throw obj
|
10467
|
+
else
|
10468
|
+
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'
|
10469
|
+
end
|
10470
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
10471
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10472
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10473
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10474
|
+
hook_ctx: hook_ctx
|
10475
|
+
),
|
10476
|
+
response: http_response
|
10477
|
+
)
|
10478
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
10479
|
+
throw obj
|
10480
|
+
else
|
10481
|
+
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'
|
10482
|
+
end
|
10483
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
10484
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10485
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10486
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10487
|
+
hook_ctx: hook_ctx
|
10488
|
+
),
|
10489
|
+
response: http_response
|
10490
|
+
)
|
10491
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
10492
|
+
throw obj
|
10493
|
+
else
|
10494
|
+
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'
|
10495
|
+
end
|
10496
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
10497
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10498
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10499
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10500
|
+
hook_ctx: hook_ctx
|
10501
|
+
),
|
10502
|
+
response: http_response
|
10503
|
+
)
|
10504
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
10505
|
+
throw obj
|
10506
|
+
else
|
10507
|
+
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'
|
10508
|
+
end
|
10509
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
10510
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10511
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10512
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10513
|
+
hook_ctx: hook_ctx
|
10514
|
+
),
|
10515
|
+
response: http_response
|
10516
|
+
)
|
10517
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
10518
|
+
throw obj
|
10519
|
+
else
|
10520
|
+
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'
|
10521
|
+
end
|
10522
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
10523
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10524
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10525
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10526
|
+
hook_ctx: hook_ctx
|
10527
|
+
),
|
10528
|
+
response: http_response
|
10529
|
+
)
|
10530
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
10531
|
+
throw obj
|
10532
|
+
else
|
10533
|
+
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'
|
10534
|
+
end
|
10535
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
10536
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10537
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10538
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10539
|
+
hook_ctx: hook_ctx
|
10540
|
+
),
|
10541
|
+
response: http_response
|
10542
|
+
)
|
10543
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
10544
|
+
throw obj
|
10545
|
+
else
|
10546
|
+
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'
|
10547
|
+
end
|
10548
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
10549
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10550
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10551
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10552
|
+
hook_ctx: hook_ctx
|
10553
|
+
),
|
10554
|
+
response: http_response
|
10555
|
+
)
|
10556
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
10557
|
+
throw obj
|
10558
|
+
else
|
10559
|
+
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'
|
10560
|
+
end
|
10561
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
10562
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10563
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10564
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10565
|
+
hook_ctx: hook_ctx
|
10566
|
+
),
|
10567
|
+
response: http_response
|
10568
|
+
)
|
10569
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
10570
|
+
throw obj
|
10571
|
+
else
|
10572
|
+
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'
|
10573
|
+
end
|
10574
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
10575
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10576
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10577
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10578
|
+
hook_ctx: hook_ctx
|
10579
|
+
),
|
10580
|
+
response: http_response
|
10581
|
+
)
|
10582
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
10583
|
+
throw obj
|
10584
|
+
else
|
10585
|
+
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'
|
10586
|
+
end
|
10587
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
10588
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10589
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10590
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10591
|
+
hook_ctx: hook_ctx
|
10592
|
+
),
|
10593
|
+
response: http_response
|
10594
|
+
)
|
10595
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
10596
|
+
throw obj
|
10597
|
+
else
|
10598
|
+
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'
|
10599
|
+
end
|
10600
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
10601
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10602
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
10603
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10604
|
+
else
|
10605
|
+
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'
|
10606
|
+
|
10607
|
+
end
|
10608
|
+
end
|
10609
|
+
|
10610
|
+
|
10611
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeCustomFieldDefinitionsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
10612
|
+
def list_employee_custom_field_definitions(request, retries = nil, timeout_ms = nil)
|
10613
|
+
# list_employee_custom_field_definitions - List employee Custom Field Definitions
|
10614
|
+
url, params = @sdk_configuration.get_server_details
|
10615
|
+
base_url = Utils.template_url(url, params)
|
10616
|
+
url = "#{base_url}/unified/hris/custom_field_definitions/employees"
|
10617
|
+
headers = Utils.get_headers(request)
|
10618
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeCustomFieldDefinitionsRequest, request)
|
10619
|
+
headers['Accept'] = 'application/json'
|
10620
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
10621
|
+
retries ||= @sdk_configuration.retry_config
|
10622
|
+
retries ||= Utils::RetryConfig.new(
|
10623
|
+
backoff: Utils::BackoffStrategy.new(
|
10624
|
+
exponent: 1.5,
|
10625
|
+
initial_interval: 500,
|
10626
|
+
max_elapsed_time: 3_600_000,
|
10627
|
+
max_interval: 60_000
|
10628
|
+
),
|
10629
|
+
retry_connection_errors: true,
|
10630
|
+
strategy: 'backoff'
|
10631
|
+
)
|
10632
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
10633
|
+
retry_options[:retry_statuses] = [429, 408]
|
10634
|
+
|
10635
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
10636
|
+
|
10637
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
10638
|
+
timeout ||= @sdk_configuration.timeout
|
10639
|
+
|
10640
|
+
connection = @sdk_configuration.client.dup
|
10641
|
+
connection.request :retry, retry_options
|
10642
|
+
|
10643
|
+
hook_ctx = SDKHooks::HookContext.new(
|
10644
|
+
base_url: base_url,
|
10645
|
+
oauth2_scopes: [],
|
10646
|
+
operation_id: 'hris_list_employee_custom_field_definitions',
|
10647
|
+
security_source: @sdk_configuration.security_source
|
10648
|
+
)
|
10649
|
+
|
10650
|
+
error = T.let(nil, T.nilable(StandardError))
|
10651
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
10652
|
+
|
10653
|
+
|
10654
|
+
begin
|
10655
|
+
http_response = connection.get(url) do |req|
|
10656
|
+
req.headers.merge!(headers)
|
10657
|
+
req.options.timeout = timeout unless timeout.nil?
|
10658
|
+
req.params = query_params
|
10659
|
+
Utils.configure_request_security(req, security)
|
10660
|
+
|
10661
|
+
@sdk_configuration.hooks.before_request(
|
10662
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
10663
|
+
hook_ctx: hook_ctx
|
10664
|
+
),
|
10665
|
+
request: req
|
10666
|
+
)
|
10667
|
+
end
|
10668
|
+
rescue StandardError => e
|
10669
|
+
error = e
|
10670
|
+
ensure
|
10671
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
10672
|
+
http_response = @sdk_configuration.hooks.after_error(
|
10673
|
+
error: error,
|
10674
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
10675
|
+
hook_ctx: hook_ctx
|
10676
|
+
),
|
10677
|
+
response: http_response
|
10678
|
+
)
|
10679
|
+
else
|
10680
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10681
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10682
|
+
hook_ctx: hook_ctx
|
10683
|
+
),
|
10684
|
+
response: http_response
|
10685
|
+
)
|
10686
|
+
end
|
10687
|
+
|
10688
|
+
if http_response.nil?
|
10689
|
+
raise error if !error.nil?
|
10690
|
+
raise 'no response'
|
10691
|
+
end
|
10692
|
+
end
|
10693
|
+
|
10694
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
10695
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
10696
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10697
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10698
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10699
|
+
hook_ctx: hook_ctx
|
10700
|
+
),
|
10701
|
+
response: http_response
|
10702
|
+
)
|
10703
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CustomFieldDefinitionsPaginated)
|
10704
|
+
response = Models::Operations::HrisListEmployeeCustomFieldDefinitionsResponse.new(
|
10705
|
+
status_code: http_response.status,
|
10706
|
+
content_type: content_type,
|
10707
|
+
raw_response: http_response,
|
10708
|
+
custom_field_definitions_paginated: obj
|
10709
|
+
)
|
10710
|
+
|
10711
|
+
return response
|
10712
|
+
else
|
10713
|
+
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'
|
10714
|
+
end
|
10715
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
10716
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10717
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10718
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10719
|
+
hook_ctx: hook_ctx
|
10720
|
+
),
|
10721
|
+
response: http_response
|
10722
|
+
)
|
10723
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
10724
|
+
throw obj
|
10725
|
+
else
|
10726
|
+
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'
|
10727
|
+
end
|
10728
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
10729
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10730
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10731
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10732
|
+
hook_ctx: hook_ctx
|
10733
|
+
),
|
10734
|
+
response: http_response
|
10735
|
+
)
|
10736
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
10737
|
+
throw obj
|
10738
|
+
else
|
10739
|
+
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'
|
10740
|
+
end
|
10741
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
10742
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10743
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10744
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10745
|
+
hook_ctx: hook_ctx
|
10746
|
+
),
|
10747
|
+
response: http_response
|
10748
|
+
)
|
10749
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
10750
|
+
throw obj
|
10751
|
+
else
|
10752
|
+
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'
|
10753
|
+
end
|
10754
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
10755
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10756
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10757
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10758
|
+
hook_ctx: hook_ctx
|
10759
|
+
),
|
10760
|
+
response: http_response
|
10761
|
+
)
|
10762
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
10763
|
+
throw obj
|
10764
|
+
else
|
10765
|
+
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'
|
10766
|
+
end
|
10767
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
10768
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10769
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10770
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10771
|
+
hook_ctx: hook_ctx
|
10772
|
+
),
|
10773
|
+
response: http_response
|
10774
|
+
)
|
10775
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
10776
|
+
throw obj
|
10777
|
+
else
|
10778
|
+
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'
|
10779
|
+
end
|
10780
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
10781
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10782
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10783
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10784
|
+
hook_ctx: hook_ctx
|
10785
|
+
),
|
10786
|
+
response: http_response
|
10787
|
+
)
|
10788
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
10789
|
+
throw obj
|
10790
|
+
else
|
10791
|
+
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'
|
10792
|
+
end
|
10793
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
10794
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10795
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10796
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10797
|
+
hook_ctx: hook_ctx
|
10798
|
+
),
|
10799
|
+
response: http_response
|
10800
|
+
)
|
10801
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
10802
|
+
throw obj
|
10803
|
+
else
|
10804
|
+
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'
|
10805
|
+
end
|
10806
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
10807
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10808
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10809
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10810
|
+
hook_ctx: hook_ctx
|
10811
|
+
),
|
10812
|
+
response: http_response
|
10813
|
+
)
|
10814
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
10815
|
+
throw obj
|
10816
|
+
else
|
10817
|
+
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'
|
10818
|
+
end
|
10819
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
10820
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10821
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10822
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10823
|
+
hook_ctx: hook_ctx
|
10824
|
+
),
|
10825
|
+
response: http_response
|
10826
|
+
)
|
10827
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
10828
|
+
throw obj
|
10829
|
+
else
|
10830
|
+
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'
|
10831
|
+
end
|
10832
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
10833
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10834
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10835
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10836
|
+
hook_ctx: hook_ctx
|
10837
|
+
),
|
10838
|
+
response: http_response
|
10839
|
+
)
|
10840
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
10841
|
+
throw obj
|
10842
|
+
else
|
10843
|
+
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'
|
10844
|
+
end
|
10845
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
10846
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10847
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10848
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10849
|
+
hook_ctx: hook_ctx
|
10850
|
+
),
|
10851
|
+
response: http_response
|
10852
|
+
)
|
10853
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
10854
|
+
throw obj
|
10855
|
+
else
|
10856
|
+
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'
|
10857
|
+
end
|
10858
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
10859
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10860
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10861
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10862
|
+
hook_ctx: hook_ctx
|
10863
|
+
),
|
10864
|
+
response: http_response
|
10865
|
+
)
|
10866
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
10867
|
+
throw obj
|
10868
|
+
else
|
10869
|
+
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'
|
10870
|
+
end
|
10871
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
10872
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10873
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
10874
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10875
|
+
else
|
10876
|
+
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'
|
10877
|
+
|
10878
|
+
end
|
10879
|
+
end
|
10880
|
+
|
10881
|
+
|
10882
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeDocumentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeDocumentsResponse) }
|
10883
|
+
def list_employee_documents(request, retries = nil, timeout_ms = nil)
|
10884
|
+
# list_employee_documents - List Employee Documents
|
10885
|
+
url, params = @sdk_configuration.get_server_details
|
10886
|
+
base_url = Utils.template_url(url, params)
|
10887
|
+
url = Utils.generate_url(
|
10888
|
+
Models::Operations::HrisListEmployeeDocumentsRequest,
|
10889
|
+
base_url,
|
10890
|
+
'/unified/hris/employees/{id}/documents',
|
10891
|
+
request
|
10892
|
+
)
|
10341
10893
|
headers = Utils.get_headers(request)
|
10342
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10894
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeDocumentsRequest, request)
|
10343
10895
|
headers['Accept'] = 'application/json'
|
10344
10896
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10345
10897
|
retries ||= @sdk_configuration.retry_config
|
@@ -10367,7 +10919,7 @@ module StackOne
|
|
10367
10919
|
hook_ctx = SDKHooks::HookContext.new(
|
10368
10920
|
base_url: base_url,
|
10369
10921
|
oauth2_scopes: [],
|
10370
|
-
operation_id: '
|
10922
|
+
operation_id: 'hris_list_employee_documents',
|
10371
10923
|
security_source: @sdk_configuration.security_source
|
10372
10924
|
)
|
10373
10925
|
|
@@ -10424,12 +10976,12 @@ module StackOne
|
|
10424
10976
|
),
|
10425
10977
|
response: http_response
|
10426
10978
|
)
|
10427
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10428
|
-
response = Models::Operations::
|
10979
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HrisDocumentsPaginated)
|
10980
|
+
response = Models::Operations::HrisListEmployeeDocumentsResponse.new(
|
10429
10981
|
status_code: http_response.status,
|
10430
10982
|
content_type: content_type,
|
10431
10983
|
raw_response: http_response,
|
10432
|
-
|
10984
|
+
hris_documents_paginated: obj
|
10433
10985
|
)
|
10434
10986
|
|
10435
10987
|
return response
|
@@ -10603,19 +11155,19 @@ module StackOne
|
|
10603
11155
|
end
|
10604
11156
|
|
10605
11157
|
|
10606
|
-
sig { params(request: T.nilable(Models::Operations::
|
10607
|
-
def
|
10608
|
-
#
|
11158
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeEmploymentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeEmploymentsResponse) }
|
11159
|
+
def list_employee_employments(request, retries = nil, timeout_ms = nil)
|
11160
|
+
# list_employee_employments - List Employee Employments
|
10609
11161
|
url, params = @sdk_configuration.get_server_details
|
10610
11162
|
base_url = Utils.template_url(url, params)
|
10611
11163
|
url = Utils.generate_url(
|
10612
|
-
Models::Operations::
|
11164
|
+
Models::Operations::HrisListEmployeeEmploymentsRequest,
|
10613
11165
|
base_url,
|
10614
|
-
'/unified/hris/employees/{id}/
|
11166
|
+
'/unified/hris/employees/{id}/employments',
|
10615
11167
|
request
|
10616
11168
|
)
|
10617
11169
|
headers = Utils.get_headers(request)
|
10618
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11170
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeEmploymentsRequest, request)
|
10619
11171
|
headers['Accept'] = 'application/json'
|
10620
11172
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10621
11173
|
retries ||= @sdk_configuration.retry_config
|
@@ -10643,7 +11195,7 @@ module StackOne
|
|
10643
11195
|
hook_ctx = SDKHooks::HookContext.new(
|
10644
11196
|
base_url: base_url,
|
10645
11197
|
oauth2_scopes: [],
|
10646
|
-
operation_id: '
|
11198
|
+
operation_id: 'hris_list_employee_employments',
|
10647
11199
|
security_source: @sdk_configuration.security_source
|
10648
11200
|
)
|
10649
11201
|
|
@@ -10700,12 +11252,12 @@ module StackOne
|
|
10700
11252
|
),
|
10701
11253
|
response: http_response
|
10702
11254
|
)
|
10703
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10704
|
-
response = Models::Operations::
|
11255
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::EmploymentsPaginated)
|
11256
|
+
response = Models::Operations::HrisListEmployeeEmploymentsResponse.new(
|
10705
11257
|
status_code: http_response.status,
|
10706
11258
|
content_type: content_type,
|
10707
11259
|
raw_response: http_response,
|
10708
|
-
|
11260
|
+
employments_paginated: obj
|
10709
11261
|
)
|
10710
11262
|
|
10711
11263
|
return response
|
@@ -10879,19 +11431,19 @@ module StackOne
|
|
10879
11431
|
end
|
10880
11432
|
|
10881
11433
|
|
10882
|
-
sig { params(request: T.nilable(Models::Operations::
|
10883
|
-
def
|
10884
|
-
#
|
11434
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeSkillsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeSkillsResponse) }
|
11435
|
+
def list_employee_skills(request, retries = nil, timeout_ms = nil)
|
11436
|
+
# list_employee_skills - List Employee Skills
|
10885
11437
|
url, params = @sdk_configuration.get_server_details
|
10886
11438
|
base_url = Utils.template_url(url, params)
|
10887
11439
|
url = Utils.generate_url(
|
10888
|
-
Models::Operations::
|
11440
|
+
Models::Operations::HrisListEmployeeSkillsRequest,
|
10889
11441
|
base_url,
|
10890
|
-
'/unified/hris/employees/{id}/
|
11442
|
+
'/unified/hris/employees/{id}/skills',
|
10891
11443
|
request
|
10892
11444
|
)
|
10893
11445
|
headers = Utils.get_headers(request)
|
10894
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11446
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeSkillsRequest, request)
|
10895
11447
|
headers['Accept'] = 'application/json'
|
10896
11448
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10897
11449
|
retries ||= @sdk_configuration.retry_config
|
@@ -10919,7 +11471,7 @@ module StackOne
|
|
10919
11471
|
hook_ctx = SDKHooks::HookContext.new(
|
10920
11472
|
base_url: base_url,
|
10921
11473
|
oauth2_scopes: [],
|
10922
|
-
operation_id: '
|
11474
|
+
operation_id: 'hris_list_employee_skills',
|
10923
11475
|
security_source: @sdk_configuration.security_source
|
10924
11476
|
)
|
10925
11477
|
|
@@ -10976,12 +11528,12 @@ module StackOne
|
|
10976
11528
|
),
|
10977
11529
|
response: http_response
|
10978
11530
|
)
|
10979
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10980
|
-
response = Models::Operations::
|
11531
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::EntitySkillsPaginated)
|
11532
|
+
response = Models::Operations::HrisListEmployeeSkillsResponse.new(
|
10981
11533
|
status_code: http_response.status,
|
10982
11534
|
content_type: content_type,
|
10983
11535
|
raw_response: http_response,
|
10984
|
-
|
11536
|
+
entity_skills_paginated: obj
|
10985
11537
|
)
|
10986
11538
|
|
10987
11539
|
return response
|
@@ -11155,19 +11707,19 @@ module StackOne
|
|
11155
11707
|
end
|
11156
11708
|
|
11157
11709
|
|
11158
|
-
sig { params(request: T.nilable(Models::Operations::
|
11159
|
-
def
|
11160
|
-
#
|
11710
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeTasksRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeTasksResponse) }
|
11711
|
+
def list_employee_tasks(request, retries = nil, timeout_ms = nil)
|
11712
|
+
# list_employee_tasks - List Employee Tasks
|
11161
11713
|
url, params = @sdk_configuration.get_server_details
|
11162
11714
|
base_url = Utils.template_url(url, params)
|
11163
11715
|
url = Utils.generate_url(
|
11164
|
-
Models::Operations::
|
11716
|
+
Models::Operations::HrisListEmployeeTasksRequest,
|
11165
11717
|
base_url,
|
11166
|
-
'/unified/hris/employees/{id}/
|
11718
|
+
'/unified/hris/employees/{id}/tasks',
|
11167
11719
|
request
|
11168
11720
|
)
|
11169
11721
|
headers = Utils.get_headers(request)
|
11170
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11722
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeTasksRequest, request)
|
11171
11723
|
headers['Accept'] = 'application/json'
|
11172
11724
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11173
11725
|
retries ||= @sdk_configuration.retry_config
|
@@ -11195,7 +11747,7 @@ module StackOne
|
|
11195
11747
|
hook_ctx = SDKHooks::HookContext.new(
|
11196
11748
|
base_url: base_url,
|
11197
11749
|
oauth2_scopes: [],
|
11198
|
-
operation_id: '
|
11750
|
+
operation_id: 'hris_list_employee_tasks',
|
11199
11751
|
security_source: @sdk_configuration.security_source
|
11200
11752
|
)
|
11201
11753
|
|
@@ -11252,12 +11804,12 @@ module StackOne
|
|
11252
11804
|
),
|
11253
11805
|
response: http_response
|
11254
11806
|
)
|
11255
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11256
|
-
response = Models::Operations::
|
11807
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TasksPaginated)
|
11808
|
+
response = Models::Operations::HrisListEmployeeTasksResponse.new(
|
11257
11809
|
status_code: http_response.status,
|
11258
11810
|
content_type: content_type,
|
11259
11811
|
raw_response: http_response,
|
11260
|
-
|
11812
|
+
tasks_paginated: obj
|
11261
11813
|
)
|
11262
11814
|
|
11263
11815
|
return response
|
@@ -11431,19 +11983,19 @@ module StackOne
|
|
11431
11983
|
end
|
11432
11984
|
|
11433
11985
|
|
11434
|
-
sig { params(request: T.nilable(Models::Operations::
|
11435
|
-
def
|
11436
|
-
#
|
11986
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeTimeOffBalancesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeTimeOffBalancesResponse) }
|
11987
|
+
def list_employee_time_off_balances(request, retries = nil, timeout_ms = nil)
|
11988
|
+
# list_employee_time_off_balances - List Employee Time Off Balances
|
11437
11989
|
url, params = @sdk_configuration.get_server_details
|
11438
11990
|
base_url = Utils.template_url(url, params)
|
11439
11991
|
url = Utils.generate_url(
|
11440
|
-
Models::Operations::
|
11992
|
+
Models::Operations::HrisListEmployeeTimeOffBalancesRequest,
|
11441
11993
|
base_url,
|
11442
|
-
'/unified/hris/employees/{id}/
|
11994
|
+
'/unified/hris/employees/{id}/time_off_balances',
|
11443
11995
|
request
|
11444
11996
|
)
|
11445
11997
|
headers = Utils.get_headers(request)
|
11446
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11998
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeTimeOffBalancesRequest, request)
|
11447
11999
|
headers['Accept'] = 'application/json'
|
11448
12000
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11449
12001
|
retries ||= @sdk_configuration.retry_config
|
@@ -11471,7 +12023,7 @@ module StackOne
|
|
11471
12023
|
hook_ctx = SDKHooks::HookContext.new(
|
11472
12024
|
base_url: base_url,
|
11473
12025
|
oauth2_scopes: [],
|
11474
|
-
operation_id: '
|
12026
|
+
operation_id: 'hris_list_employee_time_off_balances',
|
11475
12027
|
security_source: @sdk_configuration.security_source
|
11476
12028
|
)
|
11477
12029
|
|
@@ -11528,12 +12080,12 @@ module StackOne
|
|
11528
12080
|
),
|
11529
12081
|
response: http_response
|
11530
12082
|
)
|
11531
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11532
|
-
response = Models::Operations::
|
12083
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffBalancesPaginated)
|
12084
|
+
response = Models::Operations::HrisListEmployeeTimeOffBalancesResponse.new(
|
11533
12085
|
status_code: http_response.status,
|
11534
12086
|
content_type: content_type,
|
11535
12087
|
raw_response: http_response,
|
11536
|
-
|
12088
|
+
time_off_balances_paginated: obj
|
11537
12089
|
)
|
11538
12090
|
|
11539
12091
|
return response
|
@@ -11707,19 +12259,19 @@ module StackOne
|
|
11707
12259
|
end
|
11708
12260
|
|
11709
12261
|
|
11710
|
-
sig { params(request: T.nilable(Models::Operations::
|
11711
|
-
def
|
11712
|
-
#
|
12262
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeTimeOffPoliciesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeTimeOffPoliciesResponse) }
|
12263
|
+
def list_employee_time_off_policies(request, retries = nil, timeout_ms = nil)
|
12264
|
+
# list_employee_time_off_policies - List Assigned Time Off Policies
|
11713
12265
|
url, params = @sdk_configuration.get_server_details
|
11714
12266
|
base_url = Utils.template_url(url, params)
|
11715
12267
|
url = Utils.generate_url(
|
11716
|
-
Models::Operations::
|
12268
|
+
Models::Operations::HrisListEmployeeTimeOffPoliciesRequest,
|
11717
12269
|
base_url,
|
11718
|
-
'/unified/hris/employees/{id}/
|
12270
|
+
'/unified/hris/employees/{id}/time_off_policies',
|
11719
12271
|
request
|
11720
12272
|
)
|
11721
12273
|
headers = Utils.get_headers(request)
|
11722
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12274
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeTimeOffPoliciesRequest, request)
|
11723
12275
|
headers['Accept'] = 'application/json'
|
11724
12276
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11725
12277
|
retries ||= @sdk_configuration.retry_config
|
@@ -11747,7 +12299,7 @@ module StackOne
|
|
11747
12299
|
hook_ctx = SDKHooks::HookContext.new(
|
11748
12300
|
base_url: base_url,
|
11749
12301
|
oauth2_scopes: [],
|
11750
|
-
operation_id: '
|
12302
|
+
operation_id: 'hris_list_employee_time_off_policies',
|
11751
12303
|
security_source: @sdk_configuration.security_source
|
11752
12304
|
)
|
11753
12305
|
|
@@ -11804,12 +12356,12 @@ module StackOne
|
|
11804
12356
|
),
|
11805
12357
|
response: http_response
|
11806
12358
|
)
|
11807
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11808
|
-
response = Models::Operations::
|
12359
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffPoliciesPaginated)
|
12360
|
+
response = Models::Operations::HrisListEmployeeTimeOffPoliciesResponse.new(
|
11809
12361
|
status_code: http_response.status,
|
11810
12362
|
content_type: content_type,
|
11811
12363
|
raw_response: http_response,
|
11812
|
-
|
12364
|
+
time_off_policies_paginated: obj
|
11813
12365
|
)
|
11814
12366
|
|
11815
12367
|
return response
|
@@ -11983,19 +12535,19 @@ module StackOne
|
|
11983
12535
|
end
|
11984
12536
|
|
11985
12537
|
|
11986
|
-
sig { params(request: T.nilable(Models::Operations::
|
11987
|
-
def
|
11988
|
-
#
|
12538
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeTimeOffRequestsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeTimeOffRequestsResponse) }
|
12539
|
+
def list_employee_time_off_requests(request, retries = nil, timeout_ms = nil)
|
12540
|
+
# list_employee_time_off_requests - List Employee Time Off Requests
|
11989
12541
|
url, params = @sdk_configuration.get_server_details
|
11990
12542
|
base_url = Utils.template_url(url, params)
|
11991
12543
|
url = Utils.generate_url(
|
11992
|
-
Models::Operations::
|
12544
|
+
Models::Operations::HrisListEmployeeTimeOffRequestsRequest,
|
11993
12545
|
base_url,
|
11994
|
-
'/unified/hris/employees/{id}/
|
12546
|
+
'/unified/hris/employees/{id}/time_off',
|
11995
12547
|
request
|
11996
12548
|
)
|
11997
12549
|
headers = Utils.get_headers(request)
|
11998
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12550
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeTimeOffRequestsRequest, request)
|
11999
12551
|
headers['Accept'] = 'application/json'
|
12000
12552
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12001
12553
|
retries ||= @sdk_configuration.retry_config
|
@@ -12023,7 +12575,7 @@ module StackOne
|
|
12023
12575
|
hook_ctx = SDKHooks::HookContext.new(
|
12024
12576
|
base_url: base_url,
|
12025
12577
|
oauth2_scopes: [],
|
12026
|
-
operation_id: '
|
12578
|
+
operation_id: 'hris_list_employee_time_off_requests',
|
12027
12579
|
security_source: @sdk_configuration.security_source
|
12028
12580
|
)
|
12029
12581
|
|
@@ -12080,12 +12632,12 @@ module StackOne
|
|
12080
12632
|
),
|
12081
12633
|
response: http_response
|
12082
12634
|
)
|
12083
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
12084
|
-
response = Models::Operations::
|
12635
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffPaginated)
|
12636
|
+
response = Models::Operations::HrisListEmployeeTimeOffRequestsResponse.new(
|
12085
12637
|
status_code: http_response.status,
|
12086
12638
|
content_type: content_type,
|
12087
12639
|
raw_response: http_response,
|
12088
|
-
|
12640
|
+
time_off_paginated: obj
|
12089
12641
|
)
|
12090
12642
|
|
12091
12643
|
return response
|
@@ -12259,19 +12811,19 @@ module StackOne
|
|
12259
12811
|
end
|
12260
12812
|
|
12261
12813
|
|
12262
|
-
sig { params(request: T.nilable(Models::Operations::
|
12263
|
-
def
|
12264
|
-
#
|
12814
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeWorkEligibilityRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeWorkEligibilityResponse) }
|
12815
|
+
def list_employee_work_eligibility(request, retries = nil, timeout_ms = nil)
|
12816
|
+
# list_employee_work_eligibility - List Employee Work Eligibility
|
12265
12817
|
url, params = @sdk_configuration.get_server_details
|
12266
12818
|
base_url = Utils.template_url(url, params)
|
12267
12819
|
url = Utils.generate_url(
|
12268
|
-
Models::Operations::
|
12820
|
+
Models::Operations::HrisListEmployeeWorkEligibilityRequest,
|
12269
12821
|
base_url,
|
12270
|
-
'/unified/hris/employees/{id}/
|
12822
|
+
'/unified/hris/employees/{id}/work_eligibility',
|
12271
12823
|
request
|
12272
12824
|
)
|
12273
12825
|
headers = Utils.get_headers(request)
|
12274
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12826
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeWorkEligibilityRequest, request)
|
12275
12827
|
headers['Accept'] = 'application/json'
|
12276
12828
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12277
12829
|
retries ||= @sdk_configuration.retry_config
|
@@ -12299,7 +12851,7 @@ module StackOne
|
|
12299
12851
|
hook_ctx = SDKHooks::HookContext.new(
|
12300
12852
|
base_url: base_url,
|
12301
12853
|
oauth2_scopes: [],
|
12302
|
-
operation_id: '
|
12854
|
+
operation_id: 'hris_list_employee_work_eligibility',
|
12303
12855
|
security_source: @sdk_configuration.security_source
|
12304
12856
|
)
|
12305
12857
|
|
@@ -12356,12 +12908,12 @@ module StackOne
|
|
12356
12908
|
),
|
12357
12909
|
response: http_response
|
12358
12910
|
)
|
12359
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
12360
|
-
response = Models::Operations::
|
12911
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::WorkEligibilityPaginated)
|
12912
|
+
response = Models::Operations::HrisListEmployeeWorkEligibilityResponse.new(
|
12361
12913
|
status_code: http_response.status,
|
12362
12914
|
content_type: content_type,
|
12363
12915
|
raw_response: http_response,
|
12364
|
-
|
12916
|
+
work_eligibility_paginated: obj
|
12365
12917
|
)
|
12366
12918
|
|
12367
12919
|
return response
|
@@ -12535,19 +13087,14 @@ module StackOne
|
|
12535
13087
|
end
|
12536
13088
|
|
12537
13089
|
|
12538
|
-
sig { params(request: T.nilable(Models::Operations::
|
12539
|
-
def
|
12540
|
-
#
|
13090
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeesResponse) }
|
13091
|
+
def list_employees(request, retries = nil, timeout_ms = nil)
|
13092
|
+
# list_employees - List Employees
|
12541
13093
|
url, params = @sdk_configuration.get_server_details
|
12542
13094
|
base_url = Utils.template_url(url, params)
|
12543
|
-
url =
|
12544
|
-
Models::Operations::HrisListEmployeeWorkEligibilityRequest,
|
12545
|
-
base_url,
|
12546
|
-
'/unified/hris/employees/{id}/work_eligibility',
|
12547
|
-
request
|
12548
|
-
)
|
13095
|
+
url = "#{base_url}/unified/hris/employees"
|
12549
13096
|
headers = Utils.get_headers(request)
|
12550
|
-
query_params = Utils.get_query_params(Models::Operations::
|
13097
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeesRequest, request)
|
12551
13098
|
headers['Accept'] = 'application/json'
|
12552
13099
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12553
13100
|
retries ||= @sdk_configuration.retry_config
|
@@ -12575,7 +13122,7 @@ module StackOne
|
|
12575
13122
|
hook_ctx = SDKHooks::HookContext.new(
|
12576
13123
|
base_url: base_url,
|
12577
13124
|
oauth2_scopes: [],
|
12578
|
-
operation_id: '
|
13125
|
+
operation_id: 'hris_list_employees',
|
12579
13126
|
security_source: @sdk_configuration.security_source
|
12580
13127
|
)
|
12581
13128
|
|
@@ -12632,12 +13179,12 @@ module StackOne
|
|
12632
13179
|
),
|
12633
13180
|
response: http_response
|
12634
13181
|
)
|
12635
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
12636
|
-
response = Models::Operations::
|
13182
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::EmployeesPaginated)
|
13183
|
+
response = Models::Operations::HrisListEmployeesResponse.new(
|
12637
13184
|
status_code: http_response.status,
|
12638
13185
|
content_type: content_type,
|
12639
13186
|
raw_response: http_response,
|
12640
|
-
|
13187
|
+
employees_paginated: obj
|
12641
13188
|
)
|
12642
13189
|
|
12643
13190
|
return response
|
@@ -12811,14 +13358,14 @@ module StackOne
|
|
12811
13358
|
end
|
12812
13359
|
|
12813
13360
|
|
12814
|
-
sig { params(request: T.nilable(Models::Operations::
|
12815
|
-
def
|
12816
|
-
#
|
13361
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmploymentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmploymentsResponse) }
|
13362
|
+
def list_employments(request, retries = nil, timeout_ms = nil)
|
13363
|
+
# list_employments - List Employments
|
12817
13364
|
url, params = @sdk_configuration.get_server_details
|
12818
13365
|
base_url = Utils.template_url(url, params)
|
12819
|
-
url = "#{base_url}/unified/hris/
|
13366
|
+
url = "#{base_url}/unified/hris/employments"
|
12820
13367
|
headers = Utils.get_headers(request)
|
12821
|
-
query_params = Utils.get_query_params(Models::Operations::
|
13368
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmploymentsRequest, request)
|
12822
13369
|
headers['Accept'] = 'application/json'
|
12823
13370
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12824
13371
|
retries ||= @sdk_configuration.retry_config
|
@@ -12846,7 +13393,7 @@ module StackOne
|
|
12846
13393
|
hook_ctx = SDKHooks::HookContext.new(
|
12847
13394
|
base_url: base_url,
|
12848
13395
|
oauth2_scopes: [],
|
12849
|
-
operation_id: '
|
13396
|
+
operation_id: 'hris_list_employments',
|
12850
13397
|
security_source: @sdk_configuration.security_source
|
12851
13398
|
)
|
12852
13399
|
|
@@ -12903,12 +13450,12 @@ module StackOne
|
|
12903
13450
|
),
|
12904
13451
|
response: http_response
|
12905
13452
|
)
|
12906
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
12907
|
-
response = Models::Operations::
|
13453
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::EmploymentsPaginated)
|
13454
|
+
response = Models::Operations::HrisListEmploymentsResponse.new(
|
12908
13455
|
status_code: http_response.status,
|
12909
13456
|
content_type: content_type,
|
12910
13457
|
raw_response: http_response,
|
12911
|
-
|
13458
|
+
employments_paginated: obj
|
12912
13459
|
)
|
12913
13460
|
|
12914
13461
|
return response
|
@@ -13082,14 +13629,14 @@ module StackOne
|
|
13082
13629
|
end
|
13083
13630
|
|
13084
13631
|
|
13085
|
-
sig { params(request: T.nilable(Models::Operations::
|
13086
|
-
def
|
13087
|
-
#
|
13632
|
+
sig { params(request: T.nilable(Models::Operations::HrisListGroupsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListGroupsResponse) }
|
13633
|
+
def list_groups(request, retries = nil, timeout_ms = nil)
|
13634
|
+
# list_groups - List Groups
|
13088
13635
|
url, params = @sdk_configuration.get_server_details
|
13089
13636
|
base_url = Utils.template_url(url, params)
|
13090
|
-
url = "#{base_url}/unified/hris/
|
13637
|
+
url = "#{base_url}/unified/hris/groups"
|
13091
13638
|
headers = Utils.get_headers(request)
|
13092
|
-
query_params = Utils.get_query_params(Models::Operations::
|
13639
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListGroupsRequest, request)
|
13093
13640
|
headers['Accept'] = 'application/json'
|
13094
13641
|
headers['user-agent'] = @sdk_configuration.user_agent
|
13095
13642
|
retries ||= @sdk_configuration.retry_config
|
@@ -13117,7 +13664,7 @@ module StackOne
|
|
13117
13664
|
hook_ctx = SDKHooks::HookContext.new(
|
13118
13665
|
base_url: base_url,
|
13119
13666
|
oauth2_scopes: [],
|
13120
|
-
operation_id: '
|
13667
|
+
operation_id: 'hris_list_groups',
|
13121
13668
|
security_source: @sdk_configuration.security_source
|
13122
13669
|
)
|
13123
13670
|
|
@@ -13174,12 +13721,12 @@ module StackOne
|
|
13174
13721
|
),
|
13175
13722
|
response: http_response
|
13176
13723
|
)
|
13177
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
13178
|
-
response = Models::Operations::
|
13724
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISGroupsPaginated)
|
13725
|
+
response = Models::Operations::HrisListGroupsResponse.new(
|
13179
13726
|
status_code: http_response.status,
|
13180
13727
|
content_type: content_type,
|
13181
13728
|
raw_response: http_response,
|
13182
|
-
|
13729
|
+
hris_groups_paginated: obj
|
13183
13730
|
)
|
13184
13731
|
|
13185
13732
|
return response
|
@@ -13353,14 +13900,14 @@ module StackOne
|
|
13353
13900
|
end
|
13354
13901
|
|
13355
13902
|
|
13356
|
-
sig { params(request: T.nilable(Models::Operations::
|
13357
|
-
def
|
13358
|
-
#
|
13903
|
+
sig { params(request: T.nilable(Models::Operations::HrisListJobsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListJobsResponse) }
|
13904
|
+
def list_jobs(request, retries = nil, timeout_ms = nil)
|
13905
|
+
# list_jobs - List Jobs
|
13359
13906
|
url, params = @sdk_configuration.get_server_details
|
13360
13907
|
base_url = Utils.template_url(url, params)
|
13361
|
-
url = "#{base_url}/unified/hris/
|
13908
|
+
url = "#{base_url}/unified/hris/jobs"
|
13362
13909
|
headers = Utils.get_headers(request)
|
13363
|
-
query_params = Utils.get_query_params(Models::Operations::
|
13910
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListJobsRequest, request)
|
13364
13911
|
headers['Accept'] = 'application/json'
|
13365
13912
|
headers['user-agent'] = @sdk_configuration.user_agent
|
13366
13913
|
retries ||= @sdk_configuration.retry_config
|
@@ -13388,7 +13935,7 @@ module StackOne
|
|
13388
13935
|
hook_ctx = SDKHooks::HookContext.new(
|
13389
13936
|
base_url: base_url,
|
13390
13937
|
oauth2_scopes: [],
|
13391
|
-
operation_id: '
|
13938
|
+
operation_id: 'hris_list_jobs',
|
13392
13939
|
security_source: @sdk_configuration.security_source
|
13393
13940
|
)
|
13394
13941
|
|
@@ -13445,12 +13992,12 @@ module StackOne
|
|
13445
13992
|
),
|
13446
13993
|
response: http_response
|
13447
13994
|
)
|
13448
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
13449
|
-
response = Models::Operations::
|
13995
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::JobsPaginated)
|
13996
|
+
response = Models::Operations::HrisListJobsResponse.new(
|
13450
13997
|
status_code: http_response.status,
|
13451
13998
|
content_type: content_type,
|
13452
13999
|
raw_response: http_response,
|
13453
|
-
|
14000
|
+
jobs_paginated: obj
|
13454
14001
|
)
|
13455
14002
|
|
13456
14003
|
return response
|
@@ -13624,14 +14171,14 @@ module StackOne
|
|
13624
14171
|
end
|
13625
14172
|
|
13626
14173
|
|
13627
|
-
sig { params(request: T.nilable(Models::Operations::
|
13628
|
-
def
|
13629
|
-
#
|
14174
|
+
sig { params(request: T.nilable(Models::Operations::HrisListLocationsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListLocationsResponse) }
|
14175
|
+
def list_locations(request, retries = nil, timeout_ms = nil)
|
14176
|
+
# list_locations - List Work Locations
|
13630
14177
|
url, params = @sdk_configuration.get_server_details
|
13631
14178
|
base_url = Utils.template_url(url, params)
|
13632
|
-
url = "#{base_url}/unified/hris/
|
14179
|
+
url = "#{base_url}/unified/hris/locations"
|
13633
14180
|
headers = Utils.get_headers(request)
|
13634
|
-
query_params = Utils.get_query_params(Models::Operations::
|
14181
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListLocationsRequest, request)
|
13635
14182
|
headers['Accept'] = 'application/json'
|
13636
14183
|
headers['user-agent'] = @sdk_configuration.user_agent
|
13637
14184
|
retries ||= @sdk_configuration.retry_config
|
@@ -13659,7 +14206,7 @@ module StackOne
|
|
13659
14206
|
hook_ctx = SDKHooks::HookContext.new(
|
13660
14207
|
base_url: base_url,
|
13661
14208
|
oauth2_scopes: [],
|
13662
|
-
operation_id: '
|
14209
|
+
operation_id: 'hris_list_locations',
|
13663
14210
|
security_source: @sdk_configuration.security_source
|
13664
14211
|
)
|
13665
14212
|
|
@@ -13716,12 +14263,12 @@ module StackOne
|
|
13716
14263
|
),
|
13717
14264
|
response: http_response
|
13718
14265
|
)
|
13719
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
13720
|
-
response = Models::Operations::
|
14266
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISLocationsPaginated)
|
14267
|
+
response = Models::Operations::HrisListLocationsResponse.new(
|
13721
14268
|
status_code: http_response.status,
|
13722
14269
|
content_type: content_type,
|
13723
14270
|
raw_response: http_response,
|
13724
|
-
|
14271
|
+
hris_locations_paginated: obj
|
13725
14272
|
)
|
13726
14273
|
|
13727
14274
|
return response
|
@@ -13895,14 +14442,14 @@ module StackOne
|
|
13895
14442
|
end
|
13896
14443
|
|
13897
14444
|
|
13898
|
-
sig { params(request: T.nilable(Models::Operations::
|
13899
|
-
def
|
13900
|
-
#
|
14445
|
+
sig { params(request: T.nilable(Models::Operations::HrisListPositionsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListPositionsResponse) }
|
14446
|
+
def list_positions(request, retries = nil, timeout_ms = nil)
|
14447
|
+
# list_positions - List Positions
|
13901
14448
|
url, params = @sdk_configuration.get_server_details
|
13902
14449
|
base_url = Utils.template_url(url, params)
|
13903
|
-
url = "#{base_url}/unified/hris/
|
14450
|
+
url = "#{base_url}/unified/hris/positions"
|
13904
14451
|
headers = Utils.get_headers(request)
|
13905
|
-
query_params = Utils.get_query_params(Models::Operations::
|
14452
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListPositionsRequest, request)
|
13906
14453
|
headers['Accept'] = 'application/json'
|
13907
14454
|
headers['user-agent'] = @sdk_configuration.user_agent
|
13908
14455
|
retries ||= @sdk_configuration.retry_config
|
@@ -13930,7 +14477,7 @@ module StackOne
|
|
13930
14477
|
hook_ctx = SDKHooks::HookContext.new(
|
13931
14478
|
base_url: base_url,
|
13932
14479
|
oauth2_scopes: [],
|
13933
|
-
operation_id: '
|
14480
|
+
operation_id: 'hris_list_positions',
|
13934
14481
|
security_source: @sdk_configuration.security_source
|
13935
14482
|
)
|
13936
14483
|
|
@@ -13987,12 +14534,12 @@ module StackOne
|
|
13987
14534
|
),
|
13988
14535
|
response: http_response
|
13989
14536
|
)
|
13990
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
13991
|
-
response = Models::Operations::
|
14537
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::PositionsPaginated)
|
14538
|
+
response = Models::Operations::HrisListPositionsResponse.new(
|
13992
14539
|
status_code: http_response.status,
|
13993
14540
|
content_type: content_type,
|
13994
14541
|
raw_response: http_response,
|
13995
|
-
|
14542
|
+
positions_paginated: obj
|
13996
14543
|
)
|
13997
14544
|
|
13998
14545
|
return response
|