stackone_client 0.5.9 → 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 +97 -15
- data/lib/stack_one/ats.rb +1442 -288
- data/lib/stack_one/connect_sessions.rb +40 -6
- data/lib/stack_one/connectors.rb +40 -6
- data/lib/stack_one/crm.rb +192 -30
- data/lib/stack_one/hris.rb +1164 -234
- data/lib/stack_one/iam.rb +154 -24
- data/lib/stack_one/lms.rb +515 -81
- data/lib/stack_one/marketing.rb +496 -78
- 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/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 +1 -1
- 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_request.rb +2 -2
- 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/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/connectsessioncreate_categories.rb +2 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +2 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +4 -5
- data/lib/stack_one/models/shared/employee_company.rb +5 -2
- 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/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/state.rb +3 -3
- 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 +5 -2
- data/lib/stack_one/models/shared.rb +27 -6
- data/lib/stack_one/proxy.rb +21 -3
- data/lib/stack_one/sdkconfiguration.rb +18 -7
- data/lib/stack_one/stackone.rb +8 -3
- data/lib/stack_one/utils/retries.rb +95 -0
- metadata +60 -10
- 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
data/lib/stack_one/models/shared/hriscreateemployeerequestdto_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
|
+
# HrisCreateEmployeeRequestDtoSchemasEmploymentPayPeriodValue - The pay period of the job postings.
|
11
|
+
class HrisCreateEmployeeRequestDtoSchemasEmploymentPayPeriodValue < 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 HrisCreateEmployeeRequestDtoSchemasEmploymentType < ::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::HrisCreateEmployeeRequestDtoSchemasEmploymentEmploymentTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentEmploymentTypeValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentEmploymentTypeValue)).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
|
+
# HrisCreateEmployeeRequestDtoSchemasEmploymentValue - The pay frequency of the job postings.
|
11
|
+
class HrisCreateEmployeeRequestDtoSchemasEmploymentValue < 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::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue, true) } }
|
18
19
|
|
19
|
-
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue)).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
|
@@ -12,9 +12,9 @@ module StackOne
|
|
12
12
|
extend T::Sig
|
13
13
|
|
14
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.
|
15
17
|
field :effective_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('effective_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
16
|
-
# The employee ID associated with this employment
|
17
|
-
field :employee_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
18
18
|
# The employment work schedule type (e.g., full-time, part-time)
|
19
19
|
field :employment_contract_type, T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentContractType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_contract_type') } }
|
20
20
|
# The type of employment (e.g., contractor, permanent)
|
@@ -39,10 +39,9 @@ module StackOne
|
|
39
39
|
field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
|
40
40
|
|
41
41
|
|
42
|
-
sig { params(effective_date: T.nilable(::DateTime),
|
43
|
-
def initialize(effective_date: nil,
|
42
|
+
sig { params(effective_date: T.nilable(::DateTime), employment_contract_type: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentContractType), employment_type: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoPayFrequency), pay_period: T.nilable(::StackOne::Shared::HrisCreateEmploymentRequestDtoPayPeriod), pay_rate: T.nilable(::String), time_worked: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
|
43
|
+
def initialize(effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, passthrough: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, time_worked: nil, unified_custom_fields: nil)
|
44
44
|
@effective_date = effective_date
|
45
|
-
@employee_id = employee_id
|
46
45
|
@employment_contract_type = employment_contract_type
|
47
46
|
@employment_type = employment_type
|
48
47
|
@id = id
|
@@ -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::HrisUpdateEmployeeRequestDtoEmployment), { '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::HrisUpdateEmployeeRequestDtoEmploymentContractType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_contract_type') } }
|
44
46
|
# The employee employment status
|
@@ -83,12 +85,10 @@ module StackOne
|
|
83
85
|
field :preferred_language, T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoPreferredLanguage), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('preferred_language') } }
|
84
86
|
# The employee start date
|
85
87
|
field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
86
|
-
# The employee
|
87
|
-
field :
|
88
|
+
# The employee team id
|
89
|
+
field :team_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('team_id') } }
|
88
90
|
# The employee termination date
|
89
91
|
field :termination_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('termination_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
90
|
-
# The employee work anniversary
|
91
|
-
field :work_anniversary, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_anniversary'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
92
92
|
# The employee work email
|
93
93
|
field :work_email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_email') } }
|
94
94
|
# The employee work location
|
@@ -97,8 +97,8 @@ module StackOne
|
|
97
97
|
field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
|
98
98
|
|
99
99
|
|
100
|
-
sig { params(avatar: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoAvatar), 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::HrisUpdateEmployeeRequestDtoEmploymentContractType), employment_status: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoEmploymentStatus), employment_type: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoEmploymentType), ethnicity: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoEthnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoGender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoHomeLocation), 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::HrisUpdateEmployeeRequestDtoMaritalStatus), name: T.nilable(::String), national_identity_number: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoNationalIdentityNumber), national_identity_numbers: T.nilable(T::Array[::StackOne::Shared::NationalIdentityNumberApiModel]), passthrough: T.nilable(T::Hash[Symbol, ::Object]), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoPreferredLanguage), start_date: T.nilable(::DateTime),
|
101
|
-
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, passthrough: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, start_date: nil,
|
100
|
+
sig { params(avatar: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoAvatar), 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::HrisUpdateEmployeeRequestDtoEmployment), employment_contract_type: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoEmploymentContractType), employment_status: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoEmploymentStatus), employment_type: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoEmploymentType), ethnicity: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoEthnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoGender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoHomeLocation), 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::HrisUpdateEmployeeRequestDtoMaritalStatus), name: T.nilable(::String), national_identity_number: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoNationalIdentityNumber), national_identity_numbers: T.nilable(T::Array[::StackOne::Shared::NationalIdentityNumberApiModel]), passthrough: T.nilable(T::Hash[Symbol, ::Object]), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoPreferredLanguage), 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::HrisUpdateEmployeeRequestDtoWorkLocation), work_phone_number: T.nilable(::String)).void }
|
101
|
+
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, passthrough: 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)
|
102
102
|
@avatar = avatar
|
103
103
|
@avatar_url = avatar_url
|
104
104
|
@benefits = benefits
|
@@ -112,6 +112,7 @@ module StackOne
|
|
112
112
|
@department_id = department_id
|
113
113
|
@display_name = display_name
|
114
114
|
@employee_number = employee_number
|
115
|
+
@employment = employment
|
115
116
|
@employment_contract_type = employment_contract_type
|
116
117
|
@employment_status = employment_status
|
117
118
|
@employment_type = employment_type
|
@@ -133,9 +134,8 @@ module StackOne
|
|
133
134
|
@personal_phone_number = personal_phone_number
|
134
135
|
@preferred_language = preferred_language
|
135
136
|
@start_date = start_date
|
136
|
-
@
|
137
|
+
@team_id = team_id
|
137
138
|
@termination_date = termination_date
|
138
|
-
@work_anniversary = work_anniversary
|
139
139
|
@work_email = work_email
|
140
140
|
@work_location = work_location
|
141
141
|
@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 HrisUpdateEmployeeRequestDtoEmployment < ::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::HrisUpdateEmployeeRequestDtoSchemasEmploymentContractType), { '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::HrisUpdateEmployeeRequestDtoSchemasEmploymentType), { '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::HrisUpdateEmployeeRequestDtoPayFrequency), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_frequency') } }
|
30
|
+
# The pay period
|
31
|
+
field :pay_period, T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoPayPeriod), { '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::HrisUpdateEmployeeRequestDtoSchemasEmploymentContractType), employment_type: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoPayFrequency), pay_period: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoPayPeriod), 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 HrisUpdateEmployeeRequestDtoPayFrequency < ::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::HrisUpdateEmployeeRequestDtoSchemasEmploymentValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentValue)).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 HrisUpdateEmployeeRequestDtoPayPeriod < ::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::HrisUpdateEmployeeRequestDtoSchemasEmploymentPayPeriodValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentPayPeriodValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentPayPeriodValue)).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
|
data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type.rb
ADDED
@@ -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 HrisUpdateEmployeeRequestDtoSchemasEmploymentContractType < ::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::HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentContractTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentContractTypeValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentContractTypeValue)).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 HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentContractTypeValue < 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
|
@@ -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
|
+
# HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentTypeValue - The type of the employment.
|
11
|
+
class HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentTypeValue < 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/hrisupdateemployeerequestdto_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
|
+
# HrisUpdateEmployeeRequestDtoSchemasEmploymentPayPeriodValue - The pay period of the job postings.
|
11
|
+
class HrisUpdateEmployeeRequestDtoSchemasEmploymentPayPeriodValue < 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 HrisUpdateEmployeeRequestDtoSchemasEmploymentType < ::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::HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentTypeValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentEmploymentTypeValue)).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
|
+
# HrisUpdateEmployeeRequestDtoSchemasEmploymentValue - The pay frequency of the job postings.
|
11
|
+
class HrisUpdateEmployeeRequestDtoSchemasEmploymentValue < 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::HrisUpdateEmployeeRequestDtoSchemasWorkLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasWorkLocationStateValue, true) } }
|
18
19
|
|
19
|
-
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasWorkLocationStateValue)).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::HrisUpdateEmployeeRequestDtoSchemasHomeLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasHomeLocationStateValue, true) } }
|
18
19
|
|
19
|
-
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisUpdateEmployeeRequestDtoSchemasHomeLocationStateValue)).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::HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue, true) } }
|
18
19
|
|
19
|
-
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue)).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
|
@@ -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
|