stackone_client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/{stackone → stack_one}/accounts.rb +32 -26
- data/lib/{stackone → stack_one}/connect_sessions.rb +10 -7
- data/lib/{stackone → stack_one}/connectors.rb +15 -12
- data/lib/{stackone → stack_one}/hris.rb +109 -89
- data/lib/stack_one/models/operations/hris_create_employee_request.rb +27 -0
- data/lib/stack_one/models/operations/hris_create_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_employee_time_off_request_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_time_off_request_request.rb +27 -0
- data/lib/stack_one/models/operations/hris_create_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_company_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_company_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +56 -0
- data/lib/stack_one/models/operations/hris_get_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_employment_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_location_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_location_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_companies_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_list_employees_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_employments_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_locations_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_update_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_time_off_request_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_update_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/proxy.rb +20 -0
- data/lib/stack_one/models/operations/queryparam_proxy.rb +20 -0
- data/lib/{stackone/models/operations/stackone_authenticate_connect_session.rb → stack_one/models/operations/stackone_authenticate_connect_session_response.rb} +6 -8
- data/lib/{stackone/models/operations/stackone_create_connect_session.rb → stack_one/models/operations/stackone_create_connect_session_response.rb} +6 -8
- data/lib/stack_one/models/operations/stackone_delete_account_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_delete_account.rb → stack_one/models/operations/stackone_delete_account_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_account_meta_info_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_get_account_meta_info.rb → stack_one/models/operations/stackone_get_account_meta_info_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_account_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_get_account.rb → stack_one/models/operations/stackone_get_account_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_connector_meta_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_get_connector_meta_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_list_connectors_meta_request.rb +24 -0
- data/lib/stack_one/models/operations/stackone_list_connectors_meta_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_proxy_request_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_proxy_request_response.rb +30 -0
- data/lib/stack_one/models/operations/stackone_update_account_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_update_account_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +79 -0
- data/lib/stack_one/models/shared/avatar.rb +27 -0
- data/lib/stack_one/models/shared/body.rb +20 -0
- data/lib/stack_one/models/shared/categories.rb +23 -0
- data/lib/stack_one/models/shared/category.rb +23 -0
- data/lib/stack_one/models/shared/companiespaginated.rb +33 -0
- data/lib/stack_one/models/shared/company.rb +36 -0
- data/lib/stack_one/models/shared/companyresult.rb +27 -0
- data/lib/stack_one/models/shared/connectorsmeta.rb +39 -0
- data/lib/stack_one/models/shared/connectsession.rb +54 -0
- data/lib/{stackone → stack_one}/models/shared/connectsessionauthenticate.rb +3 -4
- data/lib/stack_one/models/shared/connectsessioncreate.rb +51 -0
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +23 -0
- data/lib/stack_one/models/shared/connectsessiontoken.rb +57 -0
- data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +23 -0
- data/lib/{stackone → stack_one}/models/shared/content.rb +4 -6
- data/lib/{stackone → stack_one}/models/shared/costcenters.rb +4 -5
- data/lib/stack_one/models/shared/country.rb +27 -0
- data/lib/stack_one/models/shared/countrycodeenum.rb +27 -0
- data/lib/stack_one/models/shared/createemployeeresult.rb +30 -0
- data/lib/stack_one/models/shared/createtimeoffresult.rb +30 -0
- data/lib/stack_one/models/shared/credentials.rb +20 -0
- data/lib/stack_one/models/shared/document.rb +39 -0
- data/lib/stack_one/models/shared/documentapimodel.rb +42 -0
- data/lib/stack_one/models/shared/documentapimodel_value.rb +28 -0
- data/lib/stack_one/models/shared/documentresult.rb +27 -0
- data/lib/stack_one/models/shared/documentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/employee.rb +135 -0
- data/lib/stack_one/models/shared/employee_country.rb +27 -0
- data/lib/stack_one/models/shared/employee_location_type.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_country.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/employee_schemas_ethnicity_value.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_gender_value.rb +24 -0
- data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +20 -0
- data/lib/stack_one/models/shared/employee_schemas_home_location_value.rb +266 -0
- data/lib/stack_one/models/shared/employee_schemas_location_type.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_marital_status_value.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_value.rb +24 -0
- data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +20 -0
- data/lib/stack_one/models/shared/employee_schemas_work_location_value.rb +266 -0
- data/lib/stack_one/models/shared/employee_value.rb +21 -0
- data/lib/stack_one/models/shared/employeecustomfields.rb +42 -0
- data/lib/stack_one/models/shared/employeecustomfields_schemas_value.rb +23 -0
- data/lib/stack_one/models/shared/employeecustomfields_type.rb +27 -0
- data/lib/stack_one/models/shared/employeecustomfields_value.rb +20 -0
- data/lib/stack_one/models/shared/employeeresult.rb +27 -0
- data/lib/stack_one/models/shared/employeespaginated.rb +33 -0
- data/lib/stack_one/models/shared/employment.rb +57 -0
- data/lib/stack_one/models/shared/employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +33 -0
- data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +26 -0
- data/lib/stack_one/models/shared/employment_schemas_value.rb +33 -0
- data/lib/stack_one/models/shared/employment_status.rb +27 -0
- data/lib/stack_one/models/shared/employment_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_value.rb +21 -0
- data/lib/stack_one/models/shared/employmentresult.rb +27 -0
- data/lib/stack_one/models/shared/employmentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/ethnicity.rb +27 -0
- data/lib/stack_one/models/shared/fileformatenum.rb +27 -0
- data/lib/stack_one/models/shared/fileformatenum_value.rb +34 -0
- data/lib/stack_one/models/shared/gender.rb +27 -0
- data/lib/stack_one/models/shared/headers.rb +20 -0
- data/lib/stack_one/models/shared/home_location.rb +60 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +117 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_avatar.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_country.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_ethnicity.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_gender.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_marital_status.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_gender_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +3841 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_value.rb +266 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_marital_status_value.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +3841 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb +266 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_value.rb +21 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +45 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +39 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +19 -0
- data/lib/stack_one/models/shared/hrislocation.rb +60 -0
- data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +20 -0
- data/lib/{stackone/models/shared/hrislocation.rb → stack_one/models/shared/hrislocation_value.rb} +1 -96
- data/lib/stack_one/models/shared/hrislocationresult.rb +27 -0
- data/lib/stack_one/models/shared/hrislocationspaginated.rb +33 -0
- data/lib/stack_one/models/shared/images.rb +27 -0
- data/lib/stack_one/models/shared/job_description.rb +24 -0
- data/lib/stack_one/models/shared/linkedaccount.rb +54 -0
- data/lib/stack_one/models/shared/linkedaccountmeta.rb +30 -0
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +23 -0
- data/lib/stack_one/models/shared/location_type.rb +27 -0
- data/lib/stack_one/models/shared/marital_status.rb +27 -0
- data/lib/stack_one/models/shared/metadata.rb +20 -0
- data/lib/stack_one/models/shared/method.rb +22 -0
- data/lib/{stackone → stack_one}/models/shared/patchaccountdto.rb +1 -2
- data/lib/stack_one/models/shared/pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/pay_period.rb +27 -0
- data/lib/stack_one/models/shared/proxyrequestbody.rb +36 -0
- data/lib/stack_one/models/shared/rawresponse.rb +33 -0
- data/lib/stack_one/models/shared/resources.rb +24 -0
- data/lib/stack_one/models/shared/response.rb +20 -0
- data/lib/stack_one/models/shared/security.rb +27 -0
- data/lib/stack_one/models/shared/setup_information.rb +20 -0
- data/lib/stack_one/models/shared/state.rb +27 -0
- data/lib/stack_one/models/shared/status.rb +27 -0
- data/lib/stack_one/models/shared/timeoff.rb +48 -0
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/timeoff_status.rb +27 -0
- data/lib/stack_one/models/shared/timeoff_type.rb +27 -0
- data/lib/stack_one/models/shared/timeoff_value.rb +19 -0
- data/lib/stack_one/models/shared/timeoffpaginated.rb +33 -0
- data/lib/stack_one/models/shared/timeoffresult.rb +27 -0
- data/lib/stack_one/models/shared/type.rb +27 -0
- data/lib/{stackone/models/shared/countrycodeenum.rb → stack_one/models/shared/value.rb} +1 -19
- data/lib/stack_one/models/shared/work_location.rb +60 -0
- data/lib/stack_one/models/shared/workeligibility.rb +42 -0
- data/lib/stack_one/models/shared/workeligibility_type.rb +27 -0
- data/lib/stack_one/models/shared/workeligibility_value.rb +22 -0
- data/lib/stack_one/models/shared.rb +139 -0
- data/lib/{stackone → stack_one}/proxy.rb +6 -4
- data/lib/{stackone → stack_one}/sdkconfiguration.rb +4 -4
- data/lib/{stackone/sdk.rb → stack_one/stackone.rb} +1 -1
- data/lib/stackone_client.rb +11 -79
- metadata +213 -80
- data/lib/stackone/models/operations/hris_create_employee.rb +0 -53
- data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +0 -56
- data/lib/stackone/models/operations/hris_create_time_off_request.rb +0 -53
- data/lib/stackone/models/operations/hris_get_company.rb +0 -88
- data/lib/stackone/models/operations/hris_get_employee.rb +0 -94
- data/lib/stackone/models/operations/hris_get_employee_document.rb +0 -91
- data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +0 -91
- data/lib/stackone/models/operations/hris_get_employment.rb +0 -88
- data/lib/stackone/models/operations/hris_get_location.rb +0 -88
- data/lib/stackone/models/operations/hris_get_time_off_request.rb +0 -88
- data/lib/stackone/models/operations/hris_list_companies.rb +0 -85
- data/lib/stackone/models/operations/hris_list_employee_documents.rb +0 -88
- data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +0 -88
- data/lib/stackone/models/operations/hris_list_employees.rb +0 -91
- data/lib/stackone/models/operations/hris_list_employments.rb +0 -85
- data/lib/stackone/models/operations/hris_list_locations.rb +0 -85
- data/lib/stackone/models/operations/hris_list_time_off_requests.rb +0 -85
- data/lib/stackone/models/operations/hris_update_employee.rb +0 -56
- data/lib/stackone/models/operations/hris_update_time_off_request.rb +0 -56
- data/lib/stackone/models/operations/stackone_get_connector_meta.rb +0 -52
- data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +0 -48
- data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +0 -51
- data/lib/stackone/models/operations/stackone_proxy_request.rb +0 -49
- data/lib/stackone/models/operations/stackone_update_account.rb +0 -53
- data/lib/stackone/models/shared/companiespaginated.rb +0 -34
- data/lib/stackone/models/shared/company.rb +0 -37
- data/lib/stackone/models/shared/companyresult.rb +0 -29
- data/lib/stackone/models/shared/connectorsmeta.rb +0 -84
- data/lib/stackone/models/shared/connectsession.rb +0 -68
- data/lib/stackone/models/shared/connectsessioncreate.rb +0 -75
- data/lib/stackone/models/shared/connectsessiontoken.rb +0 -71
- data/lib/stackone/models/shared/createemployeeresult.rb +0 -31
- data/lib/stackone/models/shared/createtimeoffresult.rb +0 -31
- data/lib/stackone/models/shared/documentapimodel.rb +0 -44
- data/lib/stackone/models/shared/documentresult.rb +0 -29
- data/lib/stackone/models/shared/documentspaginated.rb +0 -34
- data/lib/stackone/models/shared/documenttypeenum.rb +0 -40
- data/lib/stackone/models/shared/employee.rb +0 -1065
- data/lib/stackone/models/shared/employeecustomfields.rb +0 -83
- data/lib/stackone/models/shared/employeeresult.rb +0 -29
- data/lib/stackone/models/shared/employeespaginated.rb +0 -34
- data/lib/stackone/models/shared/employment.rb +0 -199
- data/lib/stackone/models/shared/employmentresult.rb +0 -29
- data/lib/stackone/models/shared/employmentspaginated.rb +0 -34
- data/lib/stackone/models/shared/fileformatenum.rb +0 -52
- data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +0 -8645
- data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +0 -93
- data/lib/stackone/models/shared/hrislocationresult.rb +0 -29
- data/lib/stackone/models/shared/hrislocationspaginated.rb +0 -34
- data/lib/stackone/models/shared/linkedaccount.rb +0 -75
- data/lib/stackone/models/shared/linkedaccountmeta.rb +0 -44
- data/lib/stackone/models/shared/proxyrequestbody.rb +0 -69
- data/lib/stackone/models/shared/rawresponse.rb +0 -44
- data/lib/stackone/models/shared/security.rb +0 -28
- data/lib/stackone/models/shared/timeoff.rb +0 -102
- data/lib/stackone/models/shared/timeoffpaginated.rb +0 -34
- data/lib/stackone/models/shared/timeoffresult.rb +0 -29
- data/lib/stackone/models/shared/workeligibility.rb +0 -101
- /data/lib/{stackone → stack_one}/utils/metadata_fields.rb +0 -0
- /data/lib/{stackone → stack_one}/utils/utils.rb +0 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class TimeOffSchemasValue < T::Enum
|
12
|
+
enums do
|
13
|
+
SICK = new('sick')
|
14
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
15
|
+
VACATION = new('vacation')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The status of the time off request
|
11
|
+
class TimeOffStatus < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
|
17
|
+
field :value, T.nilable(::StackOne::Shared::TimeOffValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::TimeOffValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::TimeOffValue)).void }
|
21
|
+
def initialize(source_value: nil, value: nil)
|
22
|
+
@source_value = source_value
|
23
|
+
@value = value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The type of the time off request
|
11
|
+
class TimeOffType < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
|
17
|
+
field :value, T.nilable(::StackOne::Shared::TimeOffSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::TimeOffSchemasValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::TimeOffSchemasValue)).void }
|
21
|
+
def initialize(source_value: nil, value: nil)
|
22
|
+
@source_value = source_value
|
23
|
+
@value = value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class TimeOffValue < T::Enum
|
12
|
+
enums do
|
13
|
+
APPROVED = new('approved')
|
14
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class TimeOffPaginated < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, T::Array[::StackOne::Shared::TimeOff], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
18
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
19
|
+
field :next_page, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
|
20
|
+
|
21
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(data: T::Array[::StackOne::Shared::TimeOff], next_: T.nilable(::String), next_page: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
25
|
+
def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
|
26
|
+
@data = data
|
27
|
+
@next_ = next_
|
28
|
+
@next_page = next_page
|
29
|
+
@raw = raw
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class TimeOffResult < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, ::StackOne::Shared::TimeOff, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(data: ::StackOne::Shared::TimeOff, raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
21
|
+
def initialize(data: nil, raw: nil)
|
22
|
+
@data = data
|
23
|
+
@raw = raw
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The content type of the document
|
11
|
+
class Type < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
|
17
|
+
field :value, T.nilable(::StackOne::Shared::DocumentApiModelValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::DocumentApiModelValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::DocumentApiModelValue)).void }
|
21
|
+
def initialize(source_value: nil, value: nil)
|
22
|
+
@source_value = source_value
|
23
|
+
@value = value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -3,11 +3,10 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module StackOne
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
# Value - The ISO3166-1 Alpha2 Code of the Country
|
12
11
|
class Value < T::Enum
|
13
12
|
enums do
|
@@ -263,22 +262,5 @@ module StackOne
|
|
263
262
|
end
|
264
263
|
end
|
265
264
|
|
266
|
-
|
267
|
-
|
268
|
-
class CountryCodeEnum < ::StackOne::Utils::FieldAugmented
|
269
|
-
extend T::Sig
|
270
|
-
|
271
|
-
|
272
|
-
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
273
|
-
# The ISO3166-1 Alpha2 Code of the Country
|
274
|
-
field :value, T.nilable(Shared::Value), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::Value, true) } }
|
275
|
-
|
276
|
-
|
277
|
-
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::Value)).void }
|
278
|
-
def initialize(source_value: nil, value: nil)
|
279
|
-
@source_value = source_value
|
280
|
-
@value = value
|
281
|
-
end
|
282
|
-
end
|
283
265
|
end
|
284
266
|
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The employee work location
|
11
|
+
class WorkLocation < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The city where the location is situated
|
15
|
+
field :city, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
|
16
|
+
# The country code
|
17
|
+
field :country, T.nilable(::StackOne::Shared::EmployeeCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
|
18
|
+
# The created_at date
|
19
|
+
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
20
|
+
# The employee ID
|
21
|
+
field :employee_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
22
|
+
# The unique ID of the location
|
23
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
24
|
+
# The location type
|
25
|
+
field :location_type, T.nilable(::StackOne::Shared::EmployeeLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
|
26
|
+
# The name of the location
|
27
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
28
|
+
# The phone number of the location
|
29
|
+
field :phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
|
30
|
+
# The state where the location is situated
|
31
|
+
field :state, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
|
32
|
+
# The first line of the address
|
33
|
+
field :street_1, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
|
34
|
+
# The second line of the address
|
35
|
+
field :street_2, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
|
36
|
+
# The updated_at date
|
37
|
+
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
38
|
+
# The ZIP code/Postal code of the location
|
39
|
+
field :zip_code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(city: T.nilable(::String), country: T.nilable(::StackOne::Shared::EmployeeCountry), created_at: T.nilable(::DateTime), employee_id: T.nilable(::String), id: T.nilable(::String), location_type: T.nilable(::StackOne::Shared::EmployeeLocationType), name: T.nilable(::String), phone_number: T.nilable(::String), state: T.nilable(::String), street_1: T.nilable(::String), street_2: T.nilable(::String), updated_at: T.nilable(::DateTime), zip_code: T.nilable(::String)).void }
|
43
|
+
def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, updated_at: nil, zip_code: nil)
|
44
|
+
@city = city
|
45
|
+
@country = country
|
46
|
+
@created_at = created_at
|
47
|
+
@employee_id = employee_id
|
48
|
+
@id = id
|
49
|
+
@location_type = location_type
|
50
|
+
@name = name
|
51
|
+
@phone_number = phone_number
|
52
|
+
@state = state
|
53
|
+
@street_1 = street_1
|
54
|
+
@street_2 = street_2
|
55
|
+
@updated_at = updated_at
|
56
|
+
@zip_code = zip_code
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class WorkEligibility < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :document, T.nilable(::StackOne::Shared::Document), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('document') } }
|
16
|
+
|
17
|
+
field :issued_by, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('issued_by') } }
|
18
|
+
|
19
|
+
field :number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('number') } }
|
20
|
+
|
21
|
+
field :sub_type, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_type') } }
|
22
|
+
|
23
|
+
field :type, T.nilable(::StackOne::Shared::WorkEligibilityType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
24
|
+
|
25
|
+
field :valid_from, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('valid_from'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
26
|
+
|
27
|
+
field :valid_to, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('valid_to'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
28
|
+
|
29
|
+
|
30
|
+
sig { params(document: T.nilable(::StackOne::Shared::Document), issued_by: T.nilable(::String), number: T.nilable(::String), sub_type: T.nilable(::String), type: T.nilable(::StackOne::Shared::WorkEligibilityType), valid_from: T.nilable(::DateTime), valid_to: T.nilable(::DateTime)).void }
|
31
|
+
def initialize(document: nil, issued_by: nil, number: nil, sub_type: nil, type: nil, valid_from: nil, valid_to: nil)
|
32
|
+
@document = document
|
33
|
+
@issued_by = issued_by
|
34
|
+
@number = number
|
35
|
+
@sub_type = sub_type
|
36
|
+
@type = type
|
37
|
+
@valid_from = valid_from
|
38
|
+
@valid_to = valid_to
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class WorkEligibilityType < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :source_type, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } }
|
16
|
+
|
17
|
+
field :value, T.nilable(::StackOne::Shared::WorkEligibilityValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::WorkEligibilityValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_type: T.nilable(::Object), value: T.nilable(::StackOne::Shared::WorkEligibilityValue)).void }
|
21
|
+
def initialize(source_type: nil, value: nil)
|
22
|
+
@source_type = source_type
|
23
|
+
@value = value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class WorkEligibilityValue < T::Enum
|
12
|
+
enums do
|
13
|
+
VISA = new('visa')
|
14
|
+
PASSPORT = new('passport')
|
15
|
+
DRIVER_LICENSE = new('driver_license')
|
16
|
+
BIRTH_CERTIFICATE = new('birth_certificate')
|
17
|
+
OTHER = new('other')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
module StackOne
|
7
|
+
module Shared
|
8
|
+
autoload :Credentials, 'stack_one/models/shared/credentials.rb'
|
9
|
+
autoload :SetupInformation, 'stack_one/models/shared/setup_information.rb'
|
10
|
+
autoload :LinkedAccount, 'stack_one/models/shared/linkedaccount.rb'
|
11
|
+
autoload :LinkedAccountMetaCategory, 'stack_one/models/shared/linkedaccountmeta_category.rb'
|
12
|
+
autoload :LinkedAccountMeta, 'stack_one/models/shared/linkedaccountmeta.rb'
|
13
|
+
autoload :PatchAccountDto, 'stack_one/models/shared/patchaccountdto.rb'
|
14
|
+
autoload :Categories, 'stack_one/models/shared/categories.rb'
|
15
|
+
autoload :ConnectSession, 'stack_one/models/shared/connectsession.rb'
|
16
|
+
autoload :ConnectSessionAuthenticate, 'stack_one/models/shared/connectsessionauthenticate.rb'
|
17
|
+
autoload :ConnectSessionTokenCategories, 'stack_one/models/shared/connectsessiontoken_categories.rb'
|
18
|
+
autoload :ConnectSessionToken, 'stack_one/models/shared/connectsessiontoken.rb'
|
19
|
+
autoload :ConnectSessionCreateCategories, 'stack_one/models/shared/connectsessioncreate_categories.rb'
|
20
|
+
autoload :Metadata, 'stack_one/models/shared/metadata.rb'
|
21
|
+
autoload :ConnectSessionCreate, 'stack_one/models/shared/connectsessioncreate.rb'
|
22
|
+
autoload :Category, 'stack_one/models/shared/category.rb'
|
23
|
+
autoload :Images, 'stack_one/models/shared/images.rb'
|
24
|
+
autoload :Resources, 'stack_one/models/shared/resources.rb'
|
25
|
+
autoload :ConnectorsMeta, 'stack_one/models/shared/connectorsmeta.rb'
|
26
|
+
autoload :CreateEmployeeResult, 'stack_one/models/shared/createemployeeresult.rb'
|
27
|
+
autoload :HrisCreateEmployeeRequestDtoAvatar, 'stack_one/models/shared/hriscreateemployeerequestdto_avatar.rb'
|
28
|
+
autoload :HrisCreateEmployeeRequestDtoValue, 'stack_one/models/shared/hriscreateemployeerequestdto_value.rb'
|
29
|
+
autoload :HrisCreateEmployeeRequestDtoEmploymentContractType, 'stack_one/models/shared/hriscreateemployeerequestdto_employment_contract_type.rb'
|
30
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_value.rb'
|
31
|
+
autoload :HrisCreateEmployeeRequestDtoEmploymentStatus, 'stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb'
|
32
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb'
|
33
|
+
autoload :HrisCreateEmployeeRequestDtoEmploymentType, 'stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb'
|
34
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasEthnicityValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb'
|
35
|
+
autoload :HrisCreateEmployeeRequestDtoEthnicity, 'stack_one/models/shared/hriscreateemployeerequestdto_ethnicity.rb'
|
36
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasGenderValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_gender_value.rb'
|
37
|
+
autoload :HrisCreateEmployeeRequestDtoGender, 'stack_one/models/shared/hriscreateemployeerequestdto_gender.rb'
|
38
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasHomeLocationValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_value.rb'
|
39
|
+
autoload :HrisCreateEmployeeRequestDtoCountry, 'stack_one/models/shared/hriscreateemployeerequestdto_country.rb'
|
40
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb'
|
41
|
+
autoload :State, 'stack_one/models/shared/state.rb'
|
42
|
+
autoload :HrisCreateEmployeeRequestDtoHomeLocation, 'stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb'
|
43
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasMaritalStatusValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_marital_status_value.rb'
|
44
|
+
autoload :HrisCreateEmployeeRequestDtoMaritalStatus, 'stack_one/models/shared/hriscreateemployeerequestdto_marital_status.rb'
|
45
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasWorkLocationValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb'
|
46
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasCountry, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb'
|
47
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb'
|
48
|
+
autoload :HrisCreateEmployeeRequestDtoState, 'stack_one/models/shared/hriscreateemployeerequestdto_state.rb'
|
49
|
+
autoload :HrisCreateEmployeeRequestDtoWorkLocation, 'stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb'
|
50
|
+
autoload :HrisCreateEmployeeRequestDto, 'stack_one/models/shared/hriscreateemployeerequestdto.rb'
|
51
|
+
autoload :EmploymentValue, 'stack_one/models/shared/employment_value.rb'
|
52
|
+
autoload :EmploymentEmploymentContractType, 'stack_one/models/shared/employment_employment_contract_type.rb'
|
53
|
+
autoload :EmploymentSchemasValue, 'stack_one/models/shared/employment_schemas_value.rb'
|
54
|
+
autoload :EmploymentEmploymentType, 'stack_one/models/shared/employment_employment_type.rb'
|
55
|
+
autoload :EmploymentSchemasPayFrequencyValue, 'stack_one/models/shared/employment_schemas_pay_frequency_value.rb'
|
56
|
+
autoload :PayFrequency, 'stack_one/models/shared/pay_frequency.rb'
|
57
|
+
autoload :EmploymentSchemasPayPeriodValue, 'stack_one/models/shared/employment_schemas_pay_period_value.rb'
|
58
|
+
autoload :PayPeriod, 'stack_one/models/shared/pay_period.rb'
|
59
|
+
autoload :Employment, 'stack_one/models/shared/employment.rb'
|
60
|
+
autoload :EmployeeCustomFieldsSchemasValue, 'stack_one/models/shared/employeecustomfields_schemas_value.rb'
|
61
|
+
autoload :EmployeeCustomFieldsType, 'stack_one/models/shared/employeecustomfields_type.rb'
|
62
|
+
autoload :EmployeeCustomFieldsValue, 'stack_one/models/shared/employeecustomfields_value.rb'
|
63
|
+
autoload :EmployeeCustomFields, 'stack_one/models/shared/employeecustomfields.rb'
|
64
|
+
autoload :Value, 'stack_one/models/shared/value.rb'
|
65
|
+
autoload :CountryCodeEnum, 'stack_one/models/shared/countrycodeenum.rb'
|
66
|
+
autoload :CreateTimeOffResult, 'stack_one/models/shared/createtimeoffresult.rb'
|
67
|
+
autoload :HrisCreateTimeOffRequestDtoValue, 'stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb'
|
68
|
+
autoload :Status, 'stack_one/models/shared/status.rb'
|
69
|
+
autoload :HrisCreateTimeOffRequestDtoSchemasValue, 'stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb'
|
70
|
+
autoload :HrisCreateTimeOffRequestDtoType, 'stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb'
|
71
|
+
autoload :HrisCreateTimeOffRequestDto, 'stack_one/models/shared/hriscreatetimeoffrequestdto.rb'
|
72
|
+
autoload :CompanyResult, 'stack_one/models/shared/companyresult.rb'
|
73
|
+
autoload :Response, 'stack_one/models/shared/response.rb'
|
74
|
+
autoload :RawResponse, 'stack_one/models/shared/rawresponse.rb'
|
75
|
+
autoload :Company, 'stack_one/models/shared/company.rb'
|
76
|
+
autoload :EmployeeResult, 'stack_one/models/shared/employeeresult.rb'
|
77
|
+
autoload :Avatar, 'stack_one/models/shared/avatar.rb'
|
78
|
+
autoload :EmployeeValue, 'stack_one/models/shared/employee_value.rb'
|
79
|
+
autoload :EmploymentContractType, 'stack_one/models/shared/employment_contract_type.rb'
|
80
|
+
autoload :EmployeeSchemasValue, 'stack_one/models/shared/employee_schemas_value.rb'
|
81
|
+
autoload :EmploymentStatus, 'stack_one/models/shared/employment_status.rb'
|
82
|
+
autoload :EmployeeSchemasEmploymentTypeValue, 'stack_one/models/shared/employee_schemas_employment_type_value.rb'
|
83
|
+
autoload :EmploymentType, 'stack_one/models/shared/employment_type.rb'
|
84
|
+
autoload :EmployeeSchemasEthnicityValue, 'stack_one/models/shared/employee_schemas_ethnicity_value.rb'
|
85
|
+
autoload :Ethnicity, 'stack_one/models/shared/ethnicity.rb'
|
86
|
+
autoload :EmployeeSchemasGenderValue, 'stack_one/models/shared/employee_schemas_gender_value.rb'
|
87
|
+
autoload :Gender, 'stack_one/models/shared/gender.rb'
|
88
|
+
autoload :EmployeeSchemasHomeLocationValue, 'stack_one/models/shared/employee_schemas_home_location_value.rb'
|
89
|
+
autoload :EmployeeSchemasCountry, 'stack_one/models/shared/employee_schemas_country.rb'
|
90
|
+
autoload :EmployeeSchemasHomeLocationLocationTypeValue, 'stack_one/models/shared/employee_schemas_home_location_location_type_value.rb'
|
91
|
+
autoload :EmployeeSchemasLocationType, 'stack_one/models/shared/employee_schemas_location_type.rb'
|
92
|
+
autoload :HomeLocation, 'stack_one/models/shared/home_location.rb'
|
93
|
+
autoload :JobDescription, 'stack_one/models/shared/job_description.rb'
|
94
|
+
autoload :EmployeeSchemasMaritalStatusValue, 'stack_one/models/shared/employee_schemas_marital_status_value.rb'
|
95
|
+
autoload :MaritalStatus, 'stack_one/models/shared/marital_status.rb'
|
96
|
+
autoload :EmployeeSchemasWorkLocationValue, 'stack_one/models/shared/employee_schemas_work_location_value.rb'
|
97
|
+
autoload :EmployeeCountry, 'stack_one/models/shared/employee_country.rb'
|
98
|
+
autoload :EmployeeSchemasWorkLocationLocationTypeValue, 'stack_one/models/shared/employee_schemas_work_location_location_type_value.rb'
|
99
|
+
autoload :EmployeeLocationType, 'stack_one/models/shared/employee_location_type.rb'
|
100
|
+
autoload :WorkLocation, 'stack_one/models/shared/work_location.rb'
|
101
|
+
autoload :Employee, 'stack_one/models/shared/employee.rb'
|
102
|
+
autoload :Document, 'stack_one/models/shared/document.rb'
|
103
|
+
autoload :WorkEligibilityValue, 'stack_one/models/shared/workeligibility_value.rb'
|
104
|
+
autoload :WorkEligibilityType, 'stack_one/models/shared/workeligibility_type.rb'
|
105
|
+
autoload :WorkEligibility, 'stack_one/models/shared/workeligibility.rb'
|
106
|
+
autoload :Content, 'stack_one/models/shared/content.rb'
|
107
|
+
autoload :FileFormatEnumValue, 'stack_one/models/shared/fileformatenum_value.rb'
|
108
|
+
autoload :FileFormatEnum, 'stack_one/models/shared/fileformatenum.rb'
|
109
|
+
autoload :CostCenters, 'stack_one/models/shared/costcenters.rb'
|
110
|
+
autoload :DocumentResult, 'stack_one/models/shared/documentresult.rb'
|
111
|
+
autoload :DocumentApiModelValue, 'stack_one/models/shared/documentapimodel_value.rb'
|
112
|
+
autoload :Type, 'stack_one/models/shared/type.rb'
|
113
|
+
autoload :DocumentApiModel, 'stack_one/models/shared/documentapimodel.rb'
|
114
|
+
autoload :TimeOffResult, 'stack_one/models/shared/timeoffresult.rb'
|
115
|
+
autoload :TimeOffValue, 'stack_one/models/shared/timeoff_value.rb'
|
116
|
+
autoload :TimeOffStatus, 'stack_one/models/shared/timeoff_status.rb'
|
117
|
+
autoload :TimeOffSchemasValue, 'stack_one/models/shared/timeoff_schemas_value.rb'
|
118
|
+
autoload :TimeOffType, 'stack_one/models/shared/timeoff_type.rb'
|
119
|
+
autoload :TimeOff, 'stack_one/models/shared/timeoff.rb'
|
120
|
+
autoload :EmploymentResult, 'stack_one/models/shared/employmentresult.rb'
|
121
|
+
autoload :HRISLocationResult, 'stack_one/models/shared/hrislocationresult.rb'
|
122
|
+
autoload :HRISLocationValue, 'stack_one/models/shared/hrislocation_value.rb'
|
123
|
+
autoload :Country, 'stack_one/models/shared/country.rb'
|
124
|
+
autoload :HRISLocationSchemasValue, 'stack_one/models/shared/hrislocation_schemas_value.rb'
|
125
|
+
autoload :LocationType, 'stack_one/models/shared/location_type.rb'
|
126
|
+
autoload :HRISLocation, 'stack_one/models/shared/hrislocation.rb'
|
127
|
+
autoload :CompaniesPaginated, 'stack_one/models/shared/companiespaginated.rb'
|
128
|
+
autoload :DocumentsPaginated, 'stack_one/models/shared/documentspaginated.rb'
|
129
|
+
autoload :TimeOffPaginated, 'stack_one/models/shared/timeoffpaginated.rb'
|
130
|
+
autoload :EmployeesPaginated, 'stack_one/models/shared/employeespaginated.rb'
|
131
|
+
autoload :EmploymentsPaginated, 'stack_one/models/shared/employmentspaginated.rb'
|
132
|
+
autoload :HRISLocationsPaginated, 'stack_one/models/shared/hrislocationspaginated.rb'
|
133
|
+
autoload :Body, 'stack_one/models/shared/body.rb'
|
134
|
+
autoload :Headers, 'stack_one/models/shared/headers.rb'
|
135
|
+
autoload :Method, 'stack_one/models/shared/method.rb'
|
136
|
+
autoload :ProxyRequestBody, 'stack_one/models/shared/proxyrequestbody.rb'
|
137
|
+
autoload :Security, 'stack_one/models/shared/security.rb'
|
138
|
+
end
|
139
|
+
end
|
@@ -10,17 +10,19 @@ require 'sorbet-runtime'
|
|
10
10
|
module StackOne
|
11
11
|
extend T::Sig
|
12
12
|
class Proxy
|
13
|
-
|
14
13
|
extend T::Sig
|
14
|
+
|
15
|
+
|
15
16
|
sig { params(sdk_config: SDKConfiguration).void }
|
16
17
|
def initialize(sdk_config)
|
17
18
|
@sdk_configuration = sdk_config
|
18
19
|
end
|
19
20
|
|
20
|
-
|
21
|
+
|
22
|
+
sig { params(proxy_request_body: ::StackOne::Shared::ProxyRequestBody, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
21
23
|
def proxy_request(proxy_request_body, x_account_id)
|
22
24
|
# proxy_request - Proxy Request
|
23
|
-
request = Operations::StackoneProxyRequestRequest.new(
|
25
|
+
request = ::StackOne::Operations::StackoneProxyRequestRequest.new(
|
24
26
|
|
25
27
|
proxy_request_body: proxy_request_body,
|
26
28
|
x_account_id: x_account_id
|
@@ -49,7 +51,7 @@ module StackOne
|
|
49
51
|
|
50
52
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
51
53
|
|
52
|
-
res = Operations::StackoneProxyRequestResponse.new(
|
54
|
+
res = ::StackOne::Operations::StackoneProxyRequestResponse.new(
|
53
55
|
status_code: r.status, content_type: content_type, raw_response: r
|
54
56
|
)
|
55
57
|
|
@@ -22,7 +22,6 @@ module StackOne
|
|
22
22
|
field :client, T.nilable(Faraday::Connection)
|
23
23
|
field :security, Shared::Security
|
24
24
|
field :server_url, T.nilable(String)
|
25
|
-
field :server, T.nilable(String)
|
26
25
|
field :language, String
|
27
26
|
field :openapi_doc_version, String
|
28
27
|
field :sdk_version, String
|
@@ -33,12 +32,13 @@ module StackOne
|
|
33
32
|
sig { params(client: Faraday::Connection, security: T.nilable(Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer)).void }
|
34
33
|
def initialize(client, security, server_url, server_idx)
|
35
34
|
@client = client
|
35
|
+
@server_url = server_url
|
36
36
|
@server_idx = server_idx.nil? ? 0 : server_idx
|
37
37
|
@language = 'ruby'
|
38
38
|
@openapi_doc_version = '1.0.0'
|
39
|
-
@sdk_version = '0.1.
|
40
|
-
@gen_version = '2.
|
41
|
-
@user_agent = 'speakeasy-sdk/ruby 0.1.
|
39
|
+
@sdk_version = '0.1.1'
|
40
|
+
@gen_version = '2.250.2'
|
41
|
+
@user_agent = 'speakeasy-sdk/ruby 0.1.1 2.250.2 1.0.0 stackone_client'
|
42
42
|
end
|
43
43
|
|
44
44
|
sig { returns([String, T::Hash[Symbol, String]]) }
|