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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daf71f95538e83e8977f9e6f8e7249770a8ea4b3d06ae3bb27a86bb51f40c8f0
|
4
|
+
data.tar.gz: cf36b4c0ec6befd9c5e0ec96c96198da1e5b0e801df9a5a1d42321fe42725f92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bc7a9782f359894f637b6f3cee2f043aed5f5490c083b98a29ccb1ff68f85eb05dcb0540c1d570cf0ee2db9a8f3aec37c400f9066eba112603f1651fb57a38f
|
7
|
+
data.tar.gz: ae06252cb16d3c938e9b21ae2c69d00040035b53c9ad9c69b6aba78c583100bc19cbc8863a6c24c9850ea9dce4ecd4c00f63b7a70bed96d699c9df23e071784f
|
@@ -10,24 +10,26 @@ require 'sorbet-runtime'
|
|
10
10
|
module StackOne
|
11
11
|
extend T::Sig
|
12
12
|
class Accounts
|
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(id: ::String).returns(Utils::FieldAugmented) }
|
21
23
|
def delete_account(id)
|
22
24
|
# delete_account - Delete Account
|
23
|
-
request = Operations::StackoneDeleteAccountRequest.new(
|
25
|
+
request = ::StackOne::Operations::StackoneDeleteAccountRequest.new(
|
24
26
|
|
25
27
|
id: id
|
26
28
|
)
|
27
29
|
url, params = @sdk_configuration.get_server_details
|
28
30
|
base_url = Utils.template_url(url, params)
|
29
31
|
url = Utils.generate_url(
|
30
|
-
Operations::StackoneDeleteAccountRequest,
|
32
|
+
::StackOne::Operations::StackoneDeleteAccountRequest,
|
31
33
|
base_url,
|
32
34
|
'/accounts/{id}',
|
33
35
|
request
|
@@ -43,12 +45,12 @@ module StackOne
|
|
43
45
|
|
44
46
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
45
47
|
|
46
|
-
res = Operations::StackoneDeleteAccountResponse.new(
|
48
|
+
res = ::StackOne::Operations::StackoneDeleteAccountResponse.new(
|
47
49
|
status_code: r.status, content_type: content_type, raw_response: r
|
48
50
|
)
|
49
51
|
if r.status == 200
|
50
52
|
if Utils.match_content_type(content_type, 'application/json')
|
51
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::LinkedAccount)
|
53
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::LinkedAccount)
|
52
54
|
res.linked_account = out
|
53
55
|
end
|
54
56
|
elsif [400, 403, 404, 429, 500, 501].include?(r.status)
|
@@ -56,17 +58,18 @@ module StackOne
|
|
56
58
|
res
|
57
59
|
end
|
58
60
|
|
59
|
-
|
61
|
+
|
62
|
+
sig { params(id: ::String).returns(Utils::FieldAugmented) }
|
60
63
|
def get_account(id)
|
61
64
|
# get_account - Get Account
|
62
|
-
request = Operations::StackoneGetAccountRequest.new(
|
65
|
+
request = ::StackOne::Operations::StackoneGetAccountRequest.new(
|
63
66
|
|
64
67
|
id: id
|
65
68
|
)
|
66
69
|
url, params = @sdk_configuration.get_server_details
|
67
70
|
base_url = Utils.template_url(url, params)
|
68
71
|
url = Utils.generate_url(
|
69
|
-
Operations::StackoneGetAccountRequest,
|
72
|
+
::StackOne::Operations::StackoneGetAccountRequest,
|
70
73
|
base_url,
|
71
74
|
'/accounts/{id}',
|
72
75
|
request
|
@@ -82,12 +85,12 @@ module StackOne
|
|
82
85
|
|
83
86
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
84
87
|
|
85
|
-
res = Operations::StackoneGetAccountResponse.new(
|
88
|
+
res = ::StackOne::Operations::StackoneGetAccountResponse.new(
|
86
89
|
status_code: r.status, content_type: content_type, raw_response: r
|
87
90
|
)
|
88
91
|
if r.status == 200
|
89
92
|
if Utils.match_content_type(content_type, 'application/json')
|
90
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::LinkedAccount)
|
93
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::LinkedAccount)
|
91
94
|
res.linked_account = out
|
92
95
|
end
|
93
96
|
elsif [400, 403, 429, 500, 501].include?(r.status)
|
@@ -95,17 +98,18 @@ module StackOne
|
|
95
98
|
res
|
96
99
|
end
|
97
100
|
|
98
|
-
|
101
|
+
|
102
|
+
sig { params(id: ::String).returns(Utils::FieldAugmented) }
|
99
103
|
def get_account_meta_info(id)
|
100
104
|
# get_account_meta_info - Get meta information of the account
|
101
|
-
request = Operations::StackoneGetAccountMetaInfoRequest.new(
|
105
|
+
request = ::StackOne::Operations::StackoneGetAccountMetaInfoRequest.new(
|
102
106
|
|
103
107
|
id: id
|
104
108
|
)
|
105
109
|
url, params = @sdk_configuration.get_server_details
|
106
110
|
base_url = Utils.template_url(url, params)
|
107
111
|
url = Utils.generate_url(
|
108
|
-
Operations::StackoneGetAccountMetaInfoRequest,
|
112
|
+
::StackOne::Operations::StackoneGetAccountMetaInfoRequest,
|
109
113
|
base_url,
|
110
114
|
'/accounts/{id}/meta',
|
111
115
|
request
|
@@ -121,12 +125,12 @@ module StackOne
|
|
121
125
|
|
122
126
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
123
127
|
|
124
|
-
res = Operations::StackoneGetAccountMetaInfoResponse.new(
|
128
|
+
res = ::StackOne::Operations::StackoneGetAccountMetaInfoResponse.new(
|
125
129
|
status_code: r.status, content_type: content_type, raw_response: r
|
126
130
|
)
|
127
131
|
if r.status == 200
|
128
132
|
if Utils.match_content_type(content_type, 'application/json')
|
129
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::LinkedAccountMeta)
|
133
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::LinkedAccountMeta)
|
130
134
|
res.linked_account_meta = out
|
131
135
|
end
|
132
136
|
elsif [400, 403, 404, 429, 500, 501].include?(r.status)
|
@@ -134,10 +138,11 @@ module StackOne
|
|
134
138
|
res
|
135
139
|
end
|
136
140
|
|
137
|
-
|
141
|
+
|
142
|
+
sig { params(origin_owner_id: T.nilable(::String), provider: T.nilable(::String)).returns(Utils::FieldAugmented) }
|
138
143
|
def list_linked_accounts(origin_owner_id = nil, provider = nil)
|
139
144
|
# list_linked_accounts - List Accounts
|
140
|
-
request = Operations::StackoneListLinkedAccountsRequest.new(
|
145
|
+
request = ::StackOne::Operations::StackoneListLinkedAccountsRequest.new(
|
141
146
|
|
142
147
|
origin_owner_id: origin_owner_id,
|
143
148
|
provider: provider
|
@@ -146,7 +151,7 @@ module StackOne
|
|
146
151
|
base_url = Utils.template_url(url, params)
|
147
152
|
url = "#{base_url}/accounts"
|
148
153
|
headers = {}
|
149
|
-
query_params = Utils.get_query_params(Operations::StackoneListLinkedAccountsRequest, request)
|
154
|
+
query_params = Utils.get_query_params(::StackOne::Operations::StackoneListLinkedAccountsRequest, request)
|
150
155
|
headers['Accept'] = 'application/json'
|
151
156
|
headers['user-agent'] = @sdk_configuration.user_agent
|
152
157
|
|
@@ -158,12 +163,12 @@ module StackOne
|
|
158
163
|
|
159
164
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
160
165
|
|
161
|
-
res = Operations::StackoneListLinkedAccountsResponse.new(
|
166
|
+
res = ::StackOne::Operations::StackoneListLinkedAccountsResponse.new(
|
162
167
|
status_code: r.status, content_type: content_type, raw_response: r
|
163
168
|
)
|
164
169
|
if r.status == 200
|
165
170
|
if Utils.match_content_type(content_type, 'application/json')
|
166
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::LinkedAccount])
|
171
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::StackOne::Shared::LinkedAccount])
|
167
172
|
res.linked_accounts = out
|
168
173
|
end
|
169
174
|
elsif [400, 403, 429, 500, 501].include?(r.status)
|
@@ -171,10 +176,11 @@ module StackOne
|
|
171
176
|
res
|
172
177
|
end
|
173
178
|
|
174
|
-
|
179
|
+
|
180
|
+
sig { params(patch_account_dto: ::StackOne::Shared::PatchAccountDto, id: ::String).returns(Utils::FieldAugmented) }
|
175
181
|
def update_account(patch_account_dto, id)
|
176
182
|
# update_account - Update Account
|
177
|
-
request = Operations::StackoneUpdateAccountRequest.new(
|
183
|
+
request = ::StackOne::Operations::StackoneUpdateAccountRequest.new(
|
178
184
|
|
179
185
|
patch_account_dto: patch_account_dto,
|
180
186
|
id: id
|
@@ -182,7 +188,7 @@ module StackOne
|
|
182
188
|
url, params = @sdk_configuration.get_server_details
|
183
189
|
base_url = Utils.template_url(url, params)
|
184
190
|
url = Utils.generate_url(
|
185
|
-
Operations::StackoneUpdateAccountRequest,
|
191
|
+
::StackOne::Operations::StackoneUpdateAccountRequest,
|
186
192
|
base_url,
|
187
193
|
'/accounts/{id}',
|
188
194
|
request
|
@@ -208,12 +214,12 @@ module StackOne
|
|
208
214
|
|
209
215
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
210
216
|
|
211
|
-
res = Operations::StackoneUpdateAccountResponse.new(
|
217
|
+
res = ::StackOne::Operations::StackoneUpdateAccountResponse.new(
|
212
218
|
status_code: r.status, content_type: content_type, raw_response: r
|
213
219
|
)
|
214
220
|
if r.status == 200
|
215
221
|
if Utils.match_content_type(content_type, 'application/json')
|
216
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::LinkedAccount)
|
222
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::LinkedAccount)
|
217
223
|
res.linked_account = out
|
218
224
|
end
|
219
225
|
elsif [400, 403, 429, 500, 501].include?(r.status)
|
@@ -10,14 +10,16 @@ require 'sorbet-runtime'
|
|
10
10
|
module StackOne
|
11
11
|
extend T::Sig
|
12
12
|
class ConnectSessions
|
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(request: ::StackOne::Shared::ConnectSessionAuthenticate).returns(Utils::FieldAugmented) }
|
21
23
|
def authenticate_connect_session(request)
|
22
24
|
# authenticate_connect_session - Authenticate Connect Session
|
23
25
|
url, params = @sdk_configuration.get_server_details
|
@@ -44,12 +46,12 @@ module StackOne
|
|
44
46
|
|
45
47
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
46
48
|
|
47
|
-
res = Operations::StackoneAuthenticateConnectSessionResponse.new(
|
49
|
+
res = ::StackOne::Operations::StackoneAuthenticateConnectSessionResponse.new(
|
48
50
|
status_code: r.status, content_type: content_type, raw_response: r
|
49
51
|
)
|
50
52
|
if r.status == 201
|
51
53
|
if Utils.match_content_type(content_type, 'application/json')
|
52
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::ConnectSession)
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ConnectSession)
|
53
55
|
res.connect_session = out
|
54
56
|
end
|
55
57
|
elsif [400, 403, 429, 500, 501].include?(r.status)
|
@@ -57,7 +59,8 @@ module StackOne
|
|
57
59
|
res
|
58
60
|
end
|
59
61
|
|
60
|
-
|
62
|
+
|
63
|
+
sig { params(request: ::StackOne::Shared::ConnectSessionCreate).returns(Utils::FieldAugmented) }
|
61
64
|
def create_connect_session(request)
|
62
65
|
# create_connect_session - Create Connect Session
|
63
66
|
url, params = @sdk_configuration.get_server_details
|
@@ -84,12 +87,12 @@ module StackOne
|
|
84
87
|
|
85
88
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
86
89
|
|
87
|
-
res = Operations::StackoneCreateConnectSessionResponse.new(
|
90
|
+
res = ::StackOne::Operations::StackoneCreateConnectSessionResponse.new(
|
88
91
|
status_code: r.status, content_type: content_type, raw_response: r
|
89
92
|
)
|
90
93
|
if r.status == 201
|
91
94
|
if Utils.match_content_type(content_type, 'application/json')
|
92
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::ConnectSessionToken)
|
95
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ConnectSessionToken)
|
93
96
|
res.connect_session_token = out
|
94
97
|
end
|
95
98
|
elsif [400, 403, 429, 500, 501].include?(r.status)
|
@@ -10,17 +10,19 @@ require 'sorbet-runtime'
|
|
10
10
|
module StackOne
|
11
11
|
extend T::Sig
|
12
12
|
class Connectors
|
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(provider: ::String, include: T.nilable(::String)).returns(Utils::FieldAugmented) }
|
21
23
|
def get_connector_meta(provider, include = nil)
|
22
24
|
# get_connector_meta - Get Connector Meta information for the given provider key
|
23
|
-
request = Operations::StackoneGetConnectorMetaRequest.new(
|
25
|
+
request = ::StackOne::Operations::StackoneGetConnectorMetaRequest.new(
|
24
26
|
|
25
27
|
provider: provider,
|
26
28
|
include: include
|
@@ -28,13 +30,13 @@ module StackOne
|
|
28
30
|
url, params = @sdk_configuration.get_server_details
|
29
31
|
base_url = Utils.template_url(url, params)
|
30
32
|
url = Utils.generate_url(
|
31
|
-
Operations::StackoneGetConnectorMetaRequest,
|
33
|
+
::StackOne::Operations::StackoneGetConnectorMetaRequest,
|
32
34
|
base_url,
|
33
35
|
'/connectors/meta/{provider}',
|
34
36
|
request
|
35
37
|
)
|
36
38
|
headers = {}
|
37
|
-
query_params = Utils.get_query_params(Operations::StackoneGetConnectorMetaRequest, request)
|
39
|
+
query_params = Utils.get_query_params(::StackOne::Operations::StackoneGetConnectorMetaRequest, request)
|
38
40
|
headers['Accept'] = 'application/json'
|
39
41
|
headers['user-agent'] = @sdk_configuration.user_agent
|
40
42
|
|
@@ -46,12 +48,12 @@ module StackOne
|
|
46
48
|
|
47
49
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
48
50
|
|
49
|
-
res = Operations::StackoneGetConnectorMetaResponse.new(
|
51
|
+
res = ::StackOne::Operations::StackoneGetConnectorMetaResponse.new(
|
50
52
|
status_code: r.status, content_type: content_type, raw_response: r
|
51
53
|
)
|
52
54
|
if r.status == 200
|
53
55
|
if Utils.match_content_type(content_type, 'application/json')
|
54
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::ConnectorsMeta)
|
56
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ConnectorsMeta)
|
55
57
|
res.connectors_meta = out
|
56
58
|
end
|
57
59
|
elsif [400, 403, 404, 429, 500, 501].include?(r.status)
|
@@ -59,10 +61,11 @@ module StackOne
|
|
59
61
|
res
|
60
62
|
end
|
61
63
|
|
62
|
-
|
64
|
+
|
65
|
+
sig { params(include: T.nilable(::String)).returns(Utils::FieldAugmented) }
|
63
66
|
def list_connectors_meta(include = nil)
|
64
67
|
# list_connectors_meta - List Connectors Meta Information for all providers
|
65
|
-
request = Operations::StackoneListConnectorsMetaRequest.new(
|
68
|
+
request = ::StackOne::Operations::StackoneListConnectorsMetaRequest.new(
|
66
69
|
|
67
70
|
include: include
|
68
71
|
)
|
@@ -70,7 +73,7 @@ module StackOne
|
|
70
73
|
base_url = Utils.template_url(url, params)
|
71
74
|
url = "#{base_url}/connectors/meta"
|
72
75
|
headers = {}
|
73
|
-
query_params = Utils.get_query_params(Operations::StackoneListConnectorsMetaRequest, request)
|
76
|
+
query_params = Utils.get_query_params(::StackOne::Operations::StackoneListConnectorsMetaRequest, request)
|
74
77
|
headers['Accept'] = 'application/json'
|
75
78
|
headers['user-agent'] = @sdk_configuration.user_agent
|
76
79
|
|
@@ -82,12 +85,12 @@ module StackOne
|
|
82
85
|
|
83
86
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
84
87
|
|
85
|
-
res = Operations::StackoneListConnectorsMetaResponse.new(
|
88
|
+
res = ::StackOne::Operations::StackoneListConnectorsMetaResponse.new(
|
86
89
|
status_code: r.status, content_type: content_type, raw_response: r
|
87
90
|
)
|
88
91
|
if r.status == 200
|
89
92
|
if Utils.match_content_type(content_type, 'application/json')
|
90
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::ConnectorsMeta])
|
93
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::StackOne::Shared::ConnectorsMeta])
|
91
94
|
res.connectors_metas = out
|
92
95
|
end
|
93
96
|
elsif [400, 403, 429, 500, 501].include?(r.status)
|