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
@@ -1,56 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
require_relative '../shared/hriscreateemployeerequestdto'
|
9
|
-
require_relative '../shared/createemployeeresult'
|
10
|
-
|
11
|
-
module StackOne
|
12
|
-
module Operations
|
13
|
-
|
14
|
-
class HrisUpdateEmployeeRequest < ::StackOne::Utils::FieldAugmented
|
15
|
-
extend T::Sig
|
16
|
-
|
17
|
-
|
18
|
-
field :hris_create_employee_request_dto, Shared::HrisCreateEmployeeRequestDto, { 'request': { 'media_type': 'application/json' } }
|
19
|
-
|
20
|
-
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
21
|
-
# The account identifier
|
22
|
-
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
23
|
-
|
24
|
-
|
25
|
-
sig { params(hris_create_employee_request_dto: Shared::HrisCreateEmployeeRequestDto, id: String, x_account_id: String).void }
|
26
|
-
def initialize(hris_create_employee_request_dto: nil, id: nil, x_account_id: nil)
|
27
|
-
@hris_create_employee_request_dto = hris_create_employee_request_dto
|
28
|
-
@id = id
|
29
|
-
@x_account_id = x_account_id
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
class HrisUpdateEmployeeResponse < ::StackOne::Utils::FieldAugmented
|
35
|
-
extend T::Sig
|
36
|
-
|
37
|
-
# HTTP response content type for this operation
|
38
|
-
field :content_type, String
|
39
|
-
# Raw HTTP response; suitable for custom response parsing
|
40
|
-
field :raw_response, Faraday::Response
|
41
|
-
# HTTP response status code for this operation
|
42
|
-
field :status_code, Integer
|
43
|
-
# Record updated successfully
|
44
|
-
field :create_employee_result, T.nilable(Shared::CreateEmployeeResult)
|
45
|
-
|
46
|
-
|
47
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, create_employee_result: T.nilable(Shared::CreateEmployeeResult)).void }
|
48
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_employee_result: nil)
|
49
|
-
@content_type = content_type
|
50
|
-
@raw_response = raw_response
|
51
|
-
@status_code = status_code
|
52
|
-
@create_employee_result = create_employee_result
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
require_relative '../shared/hriscreatetimeoffrequestdto'
|
9
|
-
require_relative '../shared/createtimeoffresult'
|
10
|
-
|
11
|
-
module StackOne
|
12
|
-
module Operations
|
13
|
-
|
14
|
-
class HrisUpdateTimeOffRequestRequest < ::StackOne::Utils::FieldAugmented
|
15
|
-
extend T::Sig
|
16
|
-
|
17
|
-
|
18
|
-
field :hris_create_time_off_request_dto, Shared::HrisCreateTimeOffRequestDto, { 'request': { 'media_type': 'application/json' } }
|
19
|
-
|
20
|
-
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
21
|
-
# The account identifier
|
22
|
-
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
23
|
-
|
24
|
-
|
25
|
-
sig { params(hris_create_time_off_request_dto: Shared::HrisCreateTimeOffRequestDto, id: String, x_account_id: String).void }
|
26
|
-
def initialize(hris_create_time_off_request_dto: nil, id: nil, x_account_id: nil)
|
27
|
-
@hris_create_time_off_request_dto = hris_create_time_off_request_dto
|
28
|
-
@id = id
|
29
|
-
@x_account_id = x_account_id
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
class HrisUpdateTimeOffRequestResponse < ::StackOne::Utils::FieldAugmented
|
35
|
-
extend T::Sig
|
36
|
-
|
37
|
-
# HTTP response content type for this operation
|
38
|
-
field :content_type, String
|
39
|
-
# Raw HTTP response; suitable for custom response parsing
|
40
|
-
field :raw_response, Faraday::Response
|
41
|
-
# HTTP response status code for this operation
|
42
|
-
field :status_code, Integer
|
43
|
-
# Record updated successfully
|
44
|
-
field :create_time_off_result, T.nilable(Shared::CreateTimeOffResult)
|
45
|
-
|
46
|
-
|
47
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, create_time_off_result: T.nilable(Shared::CreateTimeOffResult)).void }
|
48
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_time_off_result: nil)
|
49
|
-
@content_type = content_type
|
50
|
-
@raw_response = raw_response
|
51
|
-
@status_code = status_code
|
52
|
-
@create_time_off_result = create_time_off_result
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
require_relative '../shared/connectorsmeta'
|
9
|
-
|
10
|
-
module StackOne
|
11
|
-
module Operations
|
12
|
-
|
13
|
-
class StackoneGetConnectorMetaRequest < ::StackOne::Utils::FieldAugmented
|
14
|
-
extend T::Sig
|
15
|
-
|
16
|
-
|
17
|
-
field :provider, String, { 'path_param': { 'field_name': 'provider', 'style': 'simple', 'explode': false } }
|
18
|
-
# The comma separated list of data that will be included in the response
|
19
|
-
field :include, T.nilable(String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
|
20
|
-
|
21
|
-
|
22
|
-
sig { params(provider: String, include: T.nilable(String)).void }
|
23
|
-
def initialize(provider: nil, include: nil)
|
24
|
-
@provider = provider
|
25
|
-
@include = include
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
|
30
|
-
class StackoneGetConnectorMetaResponse < ::StackOne::Utils::FieldAugmented
|
31
|
-
extend T::Sig
|
32
|
-
|
33
|
-
# HTTP response content type for this operation
|
34
|
-
field :content_type, String
|
35
|
-
# Raw HTTP response; suitable for custom response parsing
|
36
|
-
field :raw_response, Faraday::Response
|
37
|
-
# HTTP response status code for this operation
|
38
|
-
field :status_code, Integer
|
39
|
-
# The connector meta information was retrieved
|
40
|
-
field :connectors_meta, T.nilable(Shared::ConnectorsMeta)
|
41
|
-
|
42
|
-
|
43
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, connectors_meta: T.nilable(Shared::ConnectorsMeta)).void }
|
44
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, connectors_meta: nil)
|
45
|
-
@content_type = content_type
|
46
|
-
@raw_response = raw_response
|
47
|
-
@status_code = status_code
|
48
|
-
@connectors_meta = connectors_meta
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
|
9
|
-
module StackOne
|
10
|
-
module Operations
|
11
|
-
|
12
|
-
class StackoneListConnectorsMetaRequest < ::StackOne::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
# The comma separated list of data that will be included in the response
|
16
|
-
field :include, T.nilable(String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
|
17
|
-
|
18
|
-
|
19
|
-
sig { params(include: T.nilable(String)).void }
|
20
|
-
def initialize(include: nil)
|
21
|
-
@include = include
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
|
26
|
-
class StackoneListConnectorsMetaResponse < ::StackOne::Utils::FieldAugmented
|
27
|
-
extend T::Sig
|
28
|
-
|
29
|
-
# HTTP response content type for this operation
|
30
|
-
field :content_type, String
|
31
|
-
# Raw HTTP response; suitable for custom response parsing
|
32
|
-
field :raw_response, Faraday::Response
|
33
|
-
# HTTP response status code for this operation
|
34
|
-
field :status_code, Integer
|
35
|
-
# The list of connectors meta information was retrieved.
|
36
|
-
field :connectors_metas, T.nilable(T::Array[Shared::ConnectorsMeta])
|
37
|
-
|
38
|
-
|
39
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, connectors_metas: T.nilable(T::Array[Shared::ConnectorsMeta])).void }
|
40
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, connectors_metas: nil)
|
41
|
-
@content_type = content_type
|
42
|
-
@raw_response = raw_response
|
43
|
-
@status_code = status_code
|
44
|
-
@connectors_metas = connectors_metas
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
|
9
|
-
module StackOne
|
10
|
-
module Operations
|
11
|
-
|
12
|
-
class StackoneListLinkedAccountsRequest < ::StackOne::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
# The origin owner identifier of the results to fetch
|
16
|
-
field :origin_owner_id, T.nilable(String), { 'query_param': { 'field_name': 'origin_owner_id', 'style': 'form', 'explode': true } }
|
17
|
-
# The provider of the results to fetch
|
18
|
-
field :provider, T.nilable(String), { 'query_param': { 'field_name': 'provider', 'style': 'form', 'explode': true } }
|
19
|
-
|
20
|
-
|
21
|
-
sig { params(origin_owner_id: T.nilable(String), provider: T.nilable(String)).void }
|
22
|
-
def initialize(origin_owner_id: nil, provider: nil)
|
23
|
-
@origin_owner_id = origin_owner_id
|
24
|
-
@provider = provider
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
class StackoneListLinkedAccountsResponse < ::StackOne::Utils::FieldAugmented
|
30
|
-
extend T::Sig
|
31
|
-
|
32
|
-
# HTTP response content type for this operation
|
33
|
-
field :content_type, String
|
34
|
-
# Raw HTTP response; suitable for custom response parsing
|
35
|
-
field :raw_response, Faraday::Response
|
36
|
-
# HTTP response status code for this operation
|
37
|
-
field :status_code, Integer
|
38
|
-
# The list of accounts was retrieved.
|
39
|
-
field :linked_accounts, T.nilable(T::Array[Shared::LinkedAccount])
|
40
|
-
|
41
|
-
|
42
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, linked_accounts: T.nilable(T::Array[Shared::LinkedAccount])).void }
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, linked_accounts: nil)
|
44
|
-
@content_type = content_type
|
45
|
-
@raw_response = raw_response
|
46
|
-
@status_code = status_code
|
47
|
-
@linked_accounts = linked_accounts
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
require_relative '../shared/proxyrequestbody'
|
9
|
-
|
10
|
-
module StackOne
|
11
|
-
module Operations
|
12
|
-
|
13
|
-
class StackoneProxyRequestRequest < ::StackOne::Utils::FieldAugmented
|
14
|
-
extend T::Sig
|
15
|
-
|
16
|
-
# The request body
|
17
|
-
field :proxy_request_body, Shared::ProxyRequestBody, { 'request': { 'media_type': 'application/json' } }
|
18
|
-
# The account identifier
|
19
|
-
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
20
|
-
|
21
|
-
|
22
|
-
sig { params(proxy_request_body: Shared::ProxyRequestBody, x_account_id: String).void }
|
23
|
-
def initialize(proxy_request_body: nil, x_account_id: nil)
|
24
|
-
@proxy_request_body = proxy_request_body
|
25
|
-
@x_account_id = x_account_id
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
|
30
|
-
class StackoneProxyRequestResponse < ::StackOne::Utils::FieldAugmented
|
31
|
-
extend T::Sig
|
32
|
-
|
33
|
-
# HTTP response content type for this operation
|
34
|
-
field :content_type, String
|
35
|
-
# Raw HTTP response; suitable for custom response parsing
|
36
|
-
field :raw_response, Faraday::Response
|
37
|
-
# HTTP response status code for this operation
|
38
|
-
field :status_code, Integer
|
39
|
-
|
40
|
-
|
41
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer).void }
|
42
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
43
|
-
@content_type = content_type
|
44
|
-
@raw_response = raw_response
|
45
|
-
@status_code = status_code
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
require_relative '../shared/patchaccountdto'
|
9
|
-
require_relative '../shared/linkedaccount'
|
10
|
-
|
11
|
-
module StackOne
|
12
|
-
module Operations
|
13
|
-
|
14
|
-
class StackoneUpdateAccountRequest < ::StackOne::Utils::FieldAugmented
|
15
|
-
extend T::Sig
|
16
|
-
|
17
|
-
|
18
|
-
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
19
|
-
|
20
|
-
field :patch_account_dto, Shared::PatchAccountDto, { 'request': { 'media_type': 'application/json' } }
|
21
|
-
|
22
|
-
|
23
|
-
sig { params(id: String, patch_account_dto: Shared::PatchAccountDto).void }
|
24
|
-
def initialize(id: nil, patch_account_dto: nil)
|
25
|
-
@id = id
|
26
|
-
@patch_account_dto = patch_account_dto
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
class StackoneUpdateAccountResponse < ::StackOne::Utils::FieldAugmented
|
32
|
-
extend T::Sig
|
33
|
-
|
34
|
-
# HTTP response content type for this operation
|
35
|
-
field :content_type, String
|
36
|
-
# Raw HTTP response; suitable for custom response parsing
|
37
|
-
field :raw_response, Faraday::Response
|
38
|
-
# HTTP response status code for this operation
|
39
|
-
field :status_code, Integer
|
40
|
-
# The account with the given identifier was updated.
|
41
|
-
field :linked_account, T.nilable(Shared::LinkedAccount)
|
42
|
-
|
43
|
-
|
44
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, linked_account: T.nilable(Shared::LinkedAccount)).void }
|
45
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, linked_account: nil)
|
46
|
-
@content_type = content_type
|
47
|
-
@raw_response = raw_response
|
48
|
-
@status_code = status_code
|
49
|
-
@linked_account = linked_account
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
|
9
|
-
module StackOne
|
10
|
-
module Shared
|
11
|
-
|
12
|
-
class CompaniesPaginated < ::StackOne::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
|
16
|
-
field :data, T::Array[Shared::Company], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
17
|
-
|
18
|
-
field :next_, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
19
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
20
|
-
field :next_page, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
|
21
|
-
|
22
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
23
|
-
|
24
|
-
|
25
|
-
sig { params(data: T::Array[Shared::Company], next_: T.nilable(String), next_page: T.nilable(String), raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
26
|
-
def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
|
27
|
-
@data = data
|
28
|
-
@next_ = next_
|
29
|
-
@next_page = next_page
|
30
|
-
@raw = raw
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
|
9
|
-
module StackOne
|
10
|
-
module Shared
|
11
|
-
|
12
|
-
class Company < ::StackOne::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
# The created_at date
|
16
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
17
|
-
|
18
|
-
field :display_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('display_name') } }
|
19
|
-
|
20
|
-
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
21
|
-
|
22
|
-
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
23
|
-
# The updated_at date
|
24
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
25
|
-
|
26
|
-
|
27
|
-
sig { params(created_at: T.nilable(DateTime), display_name: T.nilable(String), id: T.nilable(String), name: T.nilable(String), updated_at: T.nilable(DateTime)).void }
|
28
|
-
def initialize(created_at: nil, display_name: nil, id: nil, name: nil, updated_at: nil)
|
29
|
-
@created_at = created_at
|
30
|
-
@display_name = display_name
|
31
|
-
@id = id
|
32
|
-
@name = name
|
33
|
-
@updated_at = updated_at
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
require_relative '../shared/company'
|
9
|
-
|
10
|
-
module StackOne
|
11
|
-
module Shared
|
12
|
-
|
13
|
-
class CompanyResult < ::StackOne::Utils::FieldAugmented
|
14
|
-
extend T::Sig
|
15
|
-
|
16
|
-
|
17
|
-
field :data, Shared::Company, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
18
|
-
|
19
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
20
|
-
|
21
|
-
|
22
|
-
sig { params(data: Shared::Company, raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
23
|
-
def initialize(data: nil, raw: nil)
|
24
|
-
@data = data
|
25
|
-
@raw = raw
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
|
9
|
-
module StackOne
|
10
|
-
module Shared
|
11
|
-
# Category - The provider service category
|
12
|
-
class Category < T::Enum
|
13
|
-
enums do
|
14
|
-
ATS = new('ats')
|
15
|
-
HRIS = new('hris')
|
16
|
-
HRIS_LEGACY = new('hris-legacy')
|
17
|
-
CRM = new('crm')
|
18
|
-
MARKETING = new('marketing')
|
19
|
-
STACKONE = new('stackone')
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
|
24
|
-
# Image assets for this provider
|
25
|
-
class Images < ::StackOne::Utils::FieldAugmented
|
26
|
-
extend T::Sig
|
27
|
-
|
28
|
-
# URL of the square logo designed and used by StackOne for this provider
|
29
|
-
field :logo_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('logo_url') } }
|
30
|
-
# URL of the original provider logo (with logo and/or name aligned horizontally)
|
31
|
-
field :original_logo_horizontal_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('original_logo_horizontal_url') } }
|
32
|
-
|
33
|
-
|
34
|
-
sig { params(logo_url: T.nilable(String), original_logo_horizontal_url: T.nilable(String)).void }
|
35
|
-
def initialize(logo_url: nil, original_logo_horizontal_url: nil)
|
36
|
-
@logo_url = logo_url
|
37
|
-
@original_logo_horizontal_url = original_logo_horizontal_url
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
# Resources for this provider, such as image assets
|
42
|
-
class Resources < ::StackOne::Utils::FieldAugmented
|
43
|
-
extend T::Sig
|
44
|
-
|
45
|
-
# Image assets for this provider
|
46
|
-
field :images, T.nilable(Shared::Images), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('images') } }
|
47
|
-
|
48
|
-
|
49
|
-
sig { params(images: T.nilable(Shared::Images)).void }
|
50
|
-
def initialize(images: nil)
|
51
|
-
@images = images
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
|
56
|
-
class ConnectorsMeta < ::StackOne::Utils::FieldAugmented
|
57
|
-
extend T::Sig
|
58
|
-
|
59
|
-
# The provider service category
|
60
|
-
field :category, Shared::Category, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category'), 'decoder': Utils.enum_from_string(Shared::Category, false) } }
|
61
|
-
|
62
|
-
field :models, T::Hash[Symbol, Object], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('models') } }
|
63
|
-
# The provider key
|
64
|
-
field :provider, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
|
65
|
-
# The provider human-readable label
|
66
|
-
field :provider_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider_name') } }
|
67
|
-
# Whether this provider has been enabled on the integrations page for the current project
|
68
|
-
field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
69
|
-
# Resources for this provider, such as image assets
|
70
|
-
field :resources, T.nilable(Shared::Resources), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resources') } }
|
71
|
-
|
72
|
-
|
73
|
-
sig { params(category: Shared::Category, models: T::Hash[Symbol, Object], provider: String, provider_name: String, active: T.nilable(T::Boolean), resources: T.nilable(Shared::Resources)).void }
|
74
|
-
def initialize(category: nil, models: nil, provider: nil, provider_name: nil, active: nil, resources: nil)
|
75
|
-
@category = category
|
76
|
-
@models = models
|
77
|
-
@provider = provider
|
78
|
-
@provider_name = provider_name
|
79
|
-
@active = active
|
80
|
-
@resources = resources
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
@@ -1,68 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
|
-
|
9
|
-
module StackOne
|
10
|
-
module Shared
|
11
|
-
|
12
|
-
class Categories < T::Enum
|
13
|
-
enums do
|
14
|
-
ATS = new('ats')
|
15
|
-
HRIS = new('hris')
|
16
|
-
HRIS_LEGACY = new('hris-legacy')
|
17
|
-
CRM = new('crm')
|
18
|
-
MARKETING = new('marketing')
|
19
|
-
STACKONE = new('stackone')
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
class ConnectSession < ::StackOne::Utils::FieldAugmented
|
26
|
-
extend T::Sig
|
27
|
-
|
28
|
-
|
29
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
30
|
-
|
31
|
-
field :id, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
32
|
-
|
33
|
-
field :organization_id, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('organization_id') } }
|
34
|
-
|
35
|
-
field :origin_owner_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } }
|
36
|
-
|
37
|
-
field :origin_owner_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } }
|
38
|
-
|
39
|
-
field :project_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } }
|
40
|
-
|
41
|
-
field :account_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
|
42
|
-
|
43
|
-
field :categories, T.nilable(T::Array[Shared::Categories]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
|
44
|
-
|
45
|
-
field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
|
46
|
-
|
47
|
-
field :origin_username, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } }
|
48
|
-
|
49
|
-
field :provider, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
|
50
|
-
|
51
|
-
|
52
|
-
sig { params(created_at: DateTime, id: Float, organization_id: Float, origin_owner_id: String, origin_owner_name: String, project_id: String, account_id: T.nilable(String), categories: T.nilable(T::Array[Shared::Categories]), label: T.nilable(String), origin_username: T.nilable(String), provider: T.nilable(String)).void }
|
53
|
-
def initialize(created_at: nil, id: nil, organization_id: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, account_id: nil, categories: nil, label: nil, origin_username: nil, provider: nil)
|
54
|
-
@created_at = created_at
|
55
|
-
@id = id
|
56
|
-
@organization_id = organization_id
|
57
|
-
@origin_owner_id = origin_owner_id
|
58
|
-
@origin_owner_name = origin_owner_name
|
59
|
-
@project_id = project_id
|
60
|
-
@account_id = account_id
|
61
|
-
@categories = categories
|
62
|
-
@label = label
|
63
|
-
@origin_username = origin_username
|
64
|
-
@provider = provider
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|