stackone_client 0.5.8 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stack_one/accounts.rb +107 -20
- data/lib/stack_one/ats.rb +1677 -350
- data/lib/stack_one/connect_sessions.rb +44 -8
- data/lib/stack_one/connectors.rb +44 -8
- data/lib/stack_one/crm.rb +212 -40
- data/lib/stack_one/hris.rb +1354 -282
- data/lib/stack_one/iam.rb +170 -32
- data/lib/stack_one/lms.rb +569 -108
- data/lib/stack_one/marketing.rb +548 -104
- data/lib/stack_one/models/operations/ats_delete_background_check_package_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_delete_background_check_package_response.rb +36 -0
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_note_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scheduled_interview_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_package_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_request_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_result_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_package_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_request_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_result_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_department_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_list_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_notes_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_scheduled_interviews_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_assessments_packages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_background_check_packages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_background_check_request_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidate_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_update_background_check_package_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_update_background_check_package_response.rb +36 -0
- data/lib/stack_one/models/operations/crm_get_account_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_list_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_company_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_cost_center_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_department_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_document_category_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_employment_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_skill_request.rb +39 -0
- data/lib/stack_one/models/operations/hris_get_employee_skill_response.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_employee_time_off_balance_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_job_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_response.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_team_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_entries_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_policy_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_type_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_department_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_categories_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_employments_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_skills_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_employee_skills_request.rb +55 -0
- data/lib/stack_one/models/operations/hris_list_employee_skills_response.rb +36 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_balances_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_jobs_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_response.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_team_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_entries_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_policies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_types_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_get_group_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_policy_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_role_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_list_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_policies_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_roles_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_get_assignment_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_category_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_completion_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_content_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_course_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_skill_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_assignment_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_completion_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_list_assignments_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_categories_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_completions_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_content_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_courses_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_skills_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_user_assignments_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_user_completions_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_content_block_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_in_app_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_sms_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_content_blocks_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_in_app_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_sms_templates_request.rb +2 -2
- data/lib/stack_one/models/operations.rb +9 -0
- data/lib/stack_one/models/shared/atsupdatebackgroundcheckpackagesrequestdto.rb +33 -0
- data/lib/stack_one/models/shared/balance_unit.rb +1 -1
- data/lib/stack_one/models/shared/categories.rb +2 -0
- data/lib/stack_one/models/shared/company.rb +5 -2
- data/lib/stack_one/models/shared/connectorsmeta_category.rb +2 -0
- data/lib/stack_one/models/shared/connectsession.rb +5 -2
- data/lib/stack_one/models/shared/connectsessioncreate.rb +2 -2
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +2 -0
- data/lib/stack_one/models/shared/connectsessioncreate_metadata.rb +20 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink.rb +5 -2
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +2 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_metadata.rb +20 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +4 -5
- data/lib/stack_one/models/shared/duration_unit.rb +27 -0
- data/lib/stack_one/models/shared/employee.rb +5 -2
- data/lib/stack_one/models/shared/employee_company.rb +5 -2
- data/lib/stack_one/models/shared/entityskillresult.rb +27 -0
- data/lib/stack_one/models/shared/entityskills.rb +42 -0
- data/lib/stack_one/models/shared/entityskills_language.rb +27 -0
- data/lib/stack_one/models/shared/entityskills_schemas_minimum_proficiency_value.rb +21 -0
- data/lib/stack_one/models/shared/entityskills_schemas_value.rb +21 -0
- data/lib/stack_one/models/shared/{localisationmodel_value.rb → entityskills_value.rb} +2 -2
- data/lib/stack_one/models/shared/entityskillscreaterequestdto.rb +3 -3
- data/lib/stack_one/models/shared/entityskillscreaterequestdto_maximum_proficiency.rb +36 -0
- data/lib/stack_one/models/shared/entityskillscreaterequestdto_minimum_proficiency.rb +36 -0
- data/lib/stack_one/models/shared/entityskillspaginated.rb +30 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +10 -8
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +56 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +3 -3
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +4 -5
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +8 -2
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_reason.rb +30 -0
- data/lib/stack_one/models/shared/hrisdepartment_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto.rb +8 -8
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +56 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_state.rb +3 -3
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_state.rb +3 -3
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +2 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +5 -5
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +5 -2
- data/lib/stack_one/models/shared/{localisationmodel.rb → localizationmodel.rb} +4 -4
- data/lib/stack_one/models/shared/{localisationmodel_language.rb → localizationmodel_language.rb} +4 -4
- data/lib/stack_one/models/shared/localizationmodel_value.rb +426 -0
- data/lib/stack_one/models/shared/maximum_proficiency.rb +2 -2
- data/lib/stack_one/models/shared/metadata.rb +1 -1
- data/lib/stack_one/models/shared/minimum_proficiency.rb +2 -2
- data/lib/stack_one/models/shared/patchaccountexternaldto.rb +5 -2
- data/lib/stack_one/models/shared/patchaccountexternaldto_metadata.rb +20 -0
- data/lib/stack_one/models/shared/policy.rb +8 -2
- data/lib/stack_one/models/shared/reason.rb +30 -0
- data/lib/stack_one/models/shared/state.rb +3 -3
- data/lib/stack_one/models/shared/timeoff.rb +11 -2
- data/lib/stack_one/models/shared/timeoff_reason.rb +30 -0
- data/lib/stack_one/models/shared/timeoffbalances_duration_unit.rb +27 -0
- data/lib/stack_one/models/shared/timeoffbalances_schemas_policy_value.rb +26 -0
- data/lib/stack_one/models/shared/timeoffbalances_schemas_value.rb +8 -11
- data/lib/stack_one/models/shared/timeoffbalances_type.rb +2 -2
- data/lib/stack_one/models/shared/timeoffbalances_value.rb +1 -1
- data/lib/stack_one/models/shared/timeoffpolicies.rb +8 -2
- data/lib/stack_one/models/shared/timeoffpolicies_schemas_value.rb +26 -0
- data/lib/stack_one/models/shared/timeoffpolicies_type.rb +2 -2
- data/lib/stack_one/models/shared/timeoffpolicies_value.rb +8 -11
- data/lib/stack_one/models/shared/updateemployeeapimodel.rb +8 -8
- data/lib/stack_one/models/shared/updateemployeeapimodel_employment.rb +56 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_state.rb +3 -3
- data/lib/stack_one/models/shared/updateemployeeapimodel_state.rb +3 -3
- data/lib/stack_one/models/shared/updatepackage.rb +30 -0
- data/lib/stack_one/models/shared.rb +55 -13
- data/lib/stack_one/proxy.rb +23 -4
- data/lib/stack_one/sdkconfiguration.rb +24 -8
- data/lib/stack_one/stackone.rb +28 -36
- data/lib/stack_one/utils/retries.rb +95 -0
- metadata +93 -13
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_work_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_work_location_state_value.rb +0 -3840
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class TimeOffReason < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Unique identifier
|
15
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
|
+
|
17
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
18
|
+
# Provider's unique identifier
|
19
|
+
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String)).void }
|
23
|
+
def initialize(id: nil, name: nil, remote_id: nil)
|
24
|
+
@id = id
|
25
|
+
@name = name
|
26
|
+
@remote_id = remote_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The duration unit of the current policy
|
11
|
+
class TimeOffBalancesDurationUnit < ::Crystalline::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
|
+
# The unified value for the duration unit. If the provider does not specify this unit, the value will be set to unknown
|
17
|
+
field :value, T.nilable(::StackOne::Shared::TimeOffBalancesSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::TimeOffBalancesSchemasValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::TimeOffBalancesSchemasValue)).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,26 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# TimeOffBalancesSchemasPolicyValue - The unified value for the type of the time off policy. If the provider does not specify this unit, the value will be set to unmapped_value
|
11
|
+
class TimeOffBalancesSchemasPolicyValue < T::Enum
|
12
|
+
enums do
|
13
|
+
PAID = new('paid')
|
14
|
+
UNPAID = new('unpaid')
|
15
|
+
HOLIDAY = new('holiday')
|
16
|
+
VACATION = new('vacation')
|
17
|
+
SICK = new('sick')
|
18
|
+
PERSONAL = new('personal')
|
19
|
+
IN_LIEU = new('in_lieu')
|
20
|
+
BEREAVEMENT = new('bereavement')
|
21
|
+
JURY_DUTY = new('jury_duty')
|
22
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -7,19 +7,16 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
# TimeOffBalancesSchemasValue - The unified value for the
|
10
|
+
# TimeOffBalancesSchemasValue - The unified value for the duration unit. If the provider does not specify this unit, the value will be set to unknown
|
11
11
|
class TimeOffBalancesSchemasValue < T::Enum
|
12
12
|
enums do
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
BEREAVEMENT = new('bereavement')
|
21
|
-
JURY_DUTY = new('jury_duty')
|
22
|
-
UNMAPPED_VALUE = new('unmapped_value')
|
13
|
+
MINUTES = new('minutes')
|
14
|
+
HOURS = new('hours')
|
15
|
+
DAYS = new('days')
|
16
|
+
WEEKS = new('weeks')
|
17
|
+
MONTHS = new('months')
|
18
|
+
YEARS = new('years')
|
19
|
+
UNKNOWN = new('unknown')
|
23
20
|
end
|
24
21
|
end
|
25
22
|
end
|
@@ -14,10 +14,10 @@ module StackOne
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
# The unified value for the type of the time off policy. If the provider does not specify this unit, the value will be set to unmapped_value
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
17
|
+
field :value, T.nilable(::StackOne::Shared::TimeOffBalancesSchemasPolicyValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::TimeOffBalancesSchemasPolicyValue, true) } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::TimeOffBalancesSchemasPolicyValue)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
# TimeOffBalancesValue - The unified value for the duration unit
|
10
|
+
# TimeOffBalancesValue - The unified value for the duration unit. If the provider does not specify this unit, the value will be set to unknown
|
11
11
|
class TimeOffBalancesValue < T::Enum
|
12
12
|
enums do
|
13
13
|
MINUTES = new('minutes')
|
@@ -15,10 +15,14 @@ module StackOne
|
|
15
15
|
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
16
16
|
# The description of this policy
|
17
17
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
18
|
+
# The duration unit of the current policy
|
19
|
+
field :duration_unit, T.nilable(::StackOne::Shared::DurationUnit), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration_unit') } }
|
18
20
|
# Unique identifier
|
19
21
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
20
22
|
# The name of this policy
|
21
23
|
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
24
|
+
|
25
|
+
field :reasons, T.nilable(T::Array[::StackOne::Shared::Reason]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('reasons') } }
|
22
26
|
# Provider's unique identifier
|
23
27
|
field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
24
28
|
# The type of this policy
|
@@ -27,12 +31,14 @@ module StackOne
|
|
27
31
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
28
32
|
|
29
33
|
|
30
|
-
sig { params(created_at: T.nilable(::DateTime), description: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::TimeOffPoliciesType), updated_at: T.nilable(::DateTime)).void }
|
31
|
-
def initialize(created_at: nil, description: nil, id: nil, name: nil, remote_id: nil, type: nil, updated_at: nil)
|
34
|
+
sig { params(created_at: T.nilable(::DateTime), description: T.nilable(::String), duration_unit: T.nilable(::StackOne::Shared::DurationUnit), id: T.nilable(::String), name: T.nilable(::String), reasons: T.nilable(T::Array[::StackOne::Shared::Reason]), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::TimeOffPoliciesType), updated_at: T.nilable(::DateTime)).void }
|
35
|
+
def initialize(created_at: nil, description: nil, duration_unit: nil, id: nil, name: nil, reasons: nil, remote_id: nil, type: nil, updated_at: nil)
|
32
36
|
@created_at = created_at
|
33
37
|
@description = description
|
38
|
+
@duration_unit = duration_unit
|
34
39
|
@id = id
|
35
40
|
@name = name
|
41
|
+
@reasons = reasons
|
36
42
|
@remote_id = remote_id
|
37
43
|
@type = type
|
38
44
|
@updated_at = updated_at
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# TimeOffPoliciesSchemasValue - The unified value for the type of the time off policy. If the provider does not specify this unit, the value will be set to unmapped_value
|
11
|
+
class TimeOffPoliciesSchemasValue < T::Enum
|
12
|
+
enums do
|
13
|
+
PAID = new('paid')
|
14
|
+
UNPAID = new('unpaid')
|
15
|
+
HOLIDAY = new('holiday')
|
16
|
+
VACATION = new('vacation')
|
17
|
+
SICK = new('sick')
|
18
|
+
PERSONAL = new('personal')
|
19
|
+
IN_LIEU = new('in_lieu')
|
20
|
+
BEREAVEMENT = new('bereavement')
|
21
|
+
JURY_DUTY = new('jury_duty')
|
22
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -14,10 +14,10 @@ module StackOne
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
16
|
# The unified value for the type of the time off policy. If the provider does not specify this unit, the value will be set to unmapped_value
|
17
|
-
field :value, T.nilable(::StackOne::Shared::
|
17
|
+
field :value, T.nilable(::StackOne::Shared::TimeOffPoliciesSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::TimeOffPoliciesSchemasValue, true) } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::TimeOffPoliciesSchemasValue)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|
@@ -7,19 +7,16 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
# TimeOffPoliciesValue - The unified value for the
|
10
|
+
# TimeOffPoliciesValue - The unified value for the duration unit. If the provider does not specify this unit, the value will be set to unknown
|
11
11
|
class TimeOffPoliciesValue < T::Enum
|
12
12
|
enums do
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
BEREAVEMENT = new('bereavement')
|
21
|
-
JURY_DUTY = new('jury_duty')
|
22
|
-
UNMAPPED_VALUE = new('unmapped_value')
|
13
|
+
MINUTES = new('minutes')
|
14
|
+
HOURS = new('hours')
|
15
|
+
DAYS = new('days')
|
16
|
+
WEEKS = new('weeks')
|
17
|
+
MONTHS = new('months')
|
18
|
+
YEARS = new('years')
|
19
|
+
UNKNOWN = new('unknown')
|
23
20
|
end
|
24
21
|
end
|
25
22
|
end
|
@@ -39,6 +39,8 @@ module StackOne
|
|
39
39
|
field :display_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('display_name') } }
|
40
40
|
# The assigned employee number
|
41
41
|
field :employee_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_number') } }
|
42
|
+
# The employee employment
|
43
|
+
field :employment, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmployment), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment') } }
|
42
44
|
# The employment work schedule type (e.g., full-time, part-time)
|
43
45
|
field :employment_contract_type, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmploymentContractType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_contract_type') } }
|
44
46
|
# The employee employment status
|
@@ -81,12 +83,10 @@ module StackOne
|
|
81
83
|
field :preferred_language, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelPreferredLanguage), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('preferred_language') } }
|
82
84
|
# The employee start date
|
83
85
|
field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
84
|
-
# The employee
|
85
|
-
field :
|
86
|
+
# The employee team id
|
87
|
+
field :team_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('team_id') } }
|
86
88
|
# The employee termination date
|
87
89
|
field :termination_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('termination_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
88
|
-
# The employee work anniversary
|
89
|
-
field :work_anniversary, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_anniversary'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
90
90
|
# The employee work email
|
91
91
|
field :work_email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_email') } }
|
92
92
|
# The employee work location
|
@@ -95,8 +95,8 @@ module StackOne
|
|
95
95
|
field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
|
96
96
|
|
97
97
|
|
98
|
-
sig { params(avatar: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelAvatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::CreateHRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company_id: T.nilable(::String), company_name: T.nilable(::String), custom_fields: T.nilable(T::Array[::StackOne::Shared::CustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), department_id: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmploymentContractType), employment_status: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmploymentStatus), employment_type: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmploymentType), ethnicity: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEthnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelGender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelHomeLocation), job_id: T.nilable(::String), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelMaritalStatus), name: T.nilable(::String), national_identity_number: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelNationalIdentityNumber), national_identity_numbers: T.nilable(T::Array[::StackOne::Shared::NationalIdentityNumberApiModel]), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelPreferredLanguage), start_date: T.nilable(::DateTime),
|
99
|
-
def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company_id: nil, company_name: nil, custom_fields: nil, date_of_birth: nil, department: nil, department_id: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, job_id: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, national_identity_number: nil, national_identity_numbers: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, start_date: nil,
|
98
|
+
sig { params(avatar: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelAvatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::CreateHRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company_id: T.nilable(::String), company_name: T.nilable(::String), custom_fields: T.nilable(T::Array[::StackOne::Shared::CustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), department_id: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmployment), employment_contract_type: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmploymentContractType), employment_status: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmploymentStatus), employment_type: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEmploymentType), ethnicity: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelEthnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelGender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelHomeLocation), job_id: T.nilable(::String), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelMaritalStatus), name: T.nilable(::String), national_identity_number: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelNationalIdentityNumber), national_identity_numbers: T.nilable(T::Array[::StackOne::Shared::NationalIdentityNumberApiModel]), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelPreferredLanguage), start_date: T.nilable(::DateTime), team_id: T.nilable(::String), termination_date: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelWorkLocation), work_phone_number: T.nilable(::String)).void }
|
99
|
+
def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company_id: nil, company_name: nil, custom_fields: nil, date_of_birth: nil, department: nil, department_id: nil, display_name: nil, employee_number: nil, employment: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, job_id: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, national_identity_number: nil, national_identity_numbers: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, start_date: nil, team_id: nil, termination_date: nil, work_email: nil, work_location: nil, work_phone_number: nil)
|
100
100
|
@avatar = avatar
|
101
101
|
@avatar_url = avatar_url
|
102
102
|
@benefits = benefits
|
@@ -110,6 +110,7 @@ module StackOne
|
|
110
110
|
@department_id = department_id
|
111
111
|
@display_name = display_name
|
112
112
|
@employee_number = employee_number
|
113
|
+
@employment = employment
|
113
114
|
@employment_contract_type = employment_contract_type
|
114
115
|
@employment_status = employment_status
|
115
116
|
@employment_type = employment_type
|
@@ -130,9 +131,8 @@ module StackOne
|
|
130
131
|
@personal_phone_number = personal_phone_number
|
131
132
|
@preferred_language = preferred_language
|
132
133
|
@start_date = start_date
|
133
|
-
@
|
134
|
+
@team_id = team_id
|
134
135
|
@termination_date = termination_date
|
135
|
-
@work_anniversary = work_anniversary
|
136
136
|
@work_email = work_email
|
137
137
|
@work_location = work_location
|
138
138
|
@work_phone_number = work_phone_number
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The employee employment
|
11
|
+
class UpdateEmployeeApiModelEmployment < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The effective date of the employment contract
|
15
|
+
#
|
16
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
17
|
+
field :effective_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('effective_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
18
|
+
# The employment work schedule type (e.g., full-time, part-time)
|
19
|
+
field :employment_contract_type, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentContractType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_contract_type') } }
|
20
|
+
# The type of employment (e.g., contractor, permanent)
|
21
|
+
field :employment_type, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_type') } }
|
22
|
+
# Unique identifier
|
23
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
24
|
+
# The job title of the employee
|
25
|
+
field :job_title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_title') } }
|
26
|
+
# The currency used for pay
|
27
|
+
field :pay_currency, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_currency') } }
|
28
|
+
# The pay frequency
|
29
|
+
field :pay_frequency, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelPayFrequency), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_frequency') } }
|
30
|
+
# The pay period
|
31
|
+
field :pay_period, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelPayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
|
32
|
+
# The pay rate for the employee
|
33
|
+
field :pay_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_rate') } }
|
34
|
+
# The time worked for the employee in ISO 8601 duration format
|
35
|
+
field :time_worked, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('time_worked') } }
|
36
|
+
# Custom Unified Fields configured in your StackOne project
|
37
|
+
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(effective_date: T.nilable(::DateTime), employment_contract_type: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentContractType), employment_type: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelPayFrequency), pay_period: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelPayPeriod), pay_rate: T.nilable(::String), time_worked: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
41
|
+
def initialize(effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, time_worked: nil, unified_custom_fields: nil)
|
42
|
+
@effective_date = effective_date
|
43
|
+
@employment_contract_type = employment_contract_type
|
44
|
+
@employment_type = employment_type
|
45
|
+
@id = id
|
46
|
+
@job_title = job_title
|
47
|
+
@pay_currency = pay_currency
|
48
|
+
@pay_frequency = pay_frequency
|
49
|
+
@pay_period = pay_period
|
50
|
+
@pay_rate = pay_rate
|
51
|
+
@time_worked = time_worked
|
52
|
+
@unified_custom_fields = unified_custom_fields
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The pay frequency
|
11
|
+
class UpdateEmployeeApiModelPayFrequency < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The source value of the pay frequency.
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# The pay frequency of the job postings.
|
17
|
+
field :value, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentValue)).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://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The pay period
|
11
|
+
class UpdateEmployeeApiModelPayPeriod < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The source value of the pay period.
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# The pay period of the job postings.
|
17
|
+
field :value, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentPayPeriodValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentPayPeriodValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentPayPeriodValue)).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://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The employment work schedule type (e.g., full-time, part-time)
|
11
|
+
class UpdateEmployeeApiModelSchemasEmploymentContractType < ::Crystalline::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::UpdateEmployeeApiModelSchemasEmploymentEmploymentContractTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentEmploymentContractTypeValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentEmploymentContractTypeValue)).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,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class UpdateEmployeeApiModelSchemasEmploymentEmploymentContractTypeValue < T::Enum
|
12
|
+
enums do
|
13
|
+
FULL_TIME = new('full_time')
|
14
|
+
SHIFTS = new('shifts')
|
15
|
+
PART_TIME = new('part_time')
|
16
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_type_value.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# UpdateEmployeeApiModelSchemasEmploymentEmploymentTypeValue - The type of the employment.
|
11
|
+
class UpdateEmployeeApiModelSchemasEmploymentEmploymentTypeValue < T::Enum
|
12
|
+
enums do
|
13
|
+
CONTRACTOR = new('contractor')
|
14
|
+
INTERN = new('intern')
|
15
|
+
PERMANENT = new('permanent')
|
16
|
+
APPRENTICE = new('apprentice')
|
17
|
+
FREELANCE = new('freelance')
|
18
|
+
TERMINATED = new('terminated')
|
19
|
+
TEMPORARY = new('temporary')
|
20
|
+
SEASONAL = new('seasonal')
|
21
|
+
VOLUNTEER = new('volunteer')
|
22
|
+
PROBATION = new('probation')
|
23
|
+
INTERNAL = new('internal')
|
24
|
+
EXTERNAL = new('external')
|
25
|
+
EXPATRIATE = new('expatriate')
|
26
|
+
EMPLOYER_OF_RECORD = new('employer_of_record')
|
27
|
+
CASUAL = new('casual')
|
28
|
+
PROGRAMME = new('Programme')
|
29
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_pay_period_value.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# UpdateEmployeeApiModelSchemasEmploymentPayPeriodValue - The pay period of the job postings.
|
11
|
+
class UpdateEmployeeApiModelSchemasEmploymentPayPeriodValue < T::Enum
|
12
|
+
enums do
|
13
|
+
HOUR = new('hour')
|
14
|
+
DAY = new('day')
|
15
|
+
WEEK = new('week')
|
16
|
+
EVERY_TWO_WEEKS = new('every_two_weeks')
|
17
|
+
MONTH = new('month')
|
18
|
+
TWICE_A_MONTH = new('twice_a_month')
|
19
|
+
EVERY_TWO_MONTHS = new('every_two_months')
|
20
|
+
QUARTER = new('quarter')
|
21
|
+
EVERY_SIX_MONTHS = new('every_six_months')
|
22
|
+
YEAR = new('year')
|
23
|
+
ONE_OFF = new('one_off')
|
24
|
+
NONE = new('none')
|
25
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). 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 employment (e.g., contractor, permanent)
|
11
|
+
class UpdateEmployeeApiModelSchemasEmploymentType < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The source value of the employment type.
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# The type of the employment.
|
17
|
+
field :value, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentEmploymentTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentEmploymentTypeValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasEmploymentEmploymentTypeValue)).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,31 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# UpdateEmployeeApiModelSchemasEmploymentValue - The pay frequency of the job postings.
|
11
|
+
class UpdateEmployeeApiModelSchemasEmploymentValue < T::Enum
|
12
|
+
enums do
|
13
|
+
HOURLY = new('hourly')
|
14
|
+
WEEKLY = new('weekly')
|
15
|
+
BI_WEEKLY = new('bi_weekly')
|
16
|
+
FOUR_WEEKLY = new('four_weekly')
|
17
|
+
SEMI_MONTHLY = new('semi_monthly')
|
18
|
+
MONTHLY = new('monthly')
|
19
|
+
BI_MONTHLY = new('bi_monthly')
|
20
|
+
QUARTERLY = new('quarterly')
|
21
|
+
SEMI_ANNUALLY = new('semi_annually')
|
22
|
+
YEARLY = new('yearly')
|
23
|
+
THIRTEEN_MONTHLY = new('thirteen_monthly')
|
24
|
+
PRO_RATA = new('pro_rata')
|
25
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
26
|
+
HALF_YEARLY = new('half_yearly')
|
27
|
+
DAILY = new('daily')
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -13,11 +13,11 @@ module StackOne
|
|
13
13
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# state (ISO3166-2 Sub Division Code) - value must be a valid enum value
|
17
|
+
field :value, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
|
16
18
|
|
17
|
-
field :value, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasWorkLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::UpdateEmployeeApiModelSchemasWorkLocationStateValue, true) } }
|
18
19
|
|
19
|
-
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasWorkLocationStateValue)).void }
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::String)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|
@@ -13,11 +13,11 @@ module StackOne
|
|
13
13
|
|
14
14
|
|
15
15
|
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
# state (ISO3166-2 Sub Division Code) - value must be a valid enum value
|
17
|
+
field :value, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
|
16
18
|
|
17
|
-
field :value, T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasHomeLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::UpdateEmployeeApiModelSchemasHomeLocationStateValue, true) } }
|
18
19
|
|
19
|
-
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::UpdateEmployeeApiModelSchemasHomeLocationStateValue)).void }
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::String)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|