stackone_client 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/accounts.rb +5 -5
  3. data/lib/stack_one/ats.rb +37 -37
  4. data/lib/stack_one/connect_sessions.rb +2 -2
  5. data/lib/stack_one/connectors.rb +2 -2
  6. data/lib/stack_one/crm.rb +12 -12
  7. data/lib/stack_one/hris.rb +248 -21
  8. data/lib/stack_one/marketing.rb +16 -16
  9. data/lib/stack_one/models/operations/ats_get_application_document_request.rb +1 -1
  10. data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +1 -1
  11. data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +1 -1
  12. data/lib/stack_one/models/operations/ats_get_application_request.rb +1 -1
  13. data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +1 -1
  14. data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +1 -1
  15. data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +1 -1
  16. data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +1 -1
  17. data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +1 -1
  18. data/lib/stack_one/models/operations/ats_get_candidate_request.rb +1 -1
  19. data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +1 -1
  20. data/lib/stack_one/models/operations/ats_get_department_request.rb +1 -1
  21. data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +1 -1
  22. data/lib/stack_one/models/operations/ats_get_interview_request.rb +1 -1
  23. data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +1 -1
  24. data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +1 -1
  25. data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +1 -1
  26. data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +1 -1
  27. data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +1 -1
  28. data/lib/stack_one/models/operations/ats_get_job_request.rb +1 -1
  29. data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +1 -1
  30. data/lib/stack_one/models/operations/ats_get_location_request.rb +1 -1
  31. data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +1 -1
  32. data/lib/stack_one/models/operations/ats_get_offer_request.rb +1 -1
  33. data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +1 -1
  34. data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +1 -1
  35. data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +1 -1
  36. data/lib/stack_one/models/operations/ats_get_user_request.rb +1 -1
  37. data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +1 -1
  38. data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +1 -1
  39. data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +1 -1
  40. data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +1 -1
  41. data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +1 -1
  42. data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +1 -1
  43. data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +1 -1
  44. data/lib/stack_one/models/operations/ats_list_applications_request.rb +1 -1
  45. data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +1 -1
  46. data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +1 -1
  47. data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +1 -1
  48. data/lib/stack_one/models/operations/ats_list_candidates_request.rb +1 -1
  49. data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +1 -1
  50. data/lib/stack_one/models/operations/ats_list_departments_request.rb +1 -1
  51. data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +1 -1
  52. data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +1 -1
  53. data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +1 -1
  54. data/lib/stack_one/models/operations/ats_list_interviews_request.rb +1 -1
  55. data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +1 -1
  56. data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +1 -1
  57. data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +1 -1
  58. data/lib/stack_one/models/operations/ats_list_jobs_request.rb +1 -1
  59. data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +1 -1
  60. data/lib/stack_one/models/operations/ats_list_locations_request.rb +1 -1
  61. data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +1 -1
  62. data/lib/stack_one/models/operations/ats_list_offers_request.rb +1 -1
  63. data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +1 -1
  64. data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +1 -1
  65. data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +1 -1
  66. data/lib/stack_one/models/operations/ats_list_users_request.rb +1 -1
  67. data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +1 -1
  68. data/lib/stack_one/models/operations/crm_get_account_request.rb +1 -1
  69. data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +1 -1
  70. data/lib/stack_one/models/operations/crm_get_contact_request.rb +1 -1
  71. data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +1 -1
  72. data/lib/stack_one/models/operations/crm_get_list_request.rb +1 -1
  73. data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +1 -1
  74. data/lib/stack_one/models/operations/crm_list_accounts_request.rb +1 -1
  75. data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +1 -1
  76. data/lib/stack_one/models/operations/crm_list_contacts_request.rb +1 -1
  77. data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +1 -1
  78. data/lib/stack_one/models/operations/crm_list_lists_request.rb +1 -1
  79. data/lib/stack_one/models/operations/hris_create_employee_document_request.rb +30 -0
  80. data/lib/stack_one/models/operations/hris_create_employee_document_response.rb +33 -0
  81. data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_request.rb +30 -0
  82. data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_response.rb +33 -0
  83. data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +1 -1
  84. data/lib/stack_one/models/operations/hris_get_benefit_request.rb +1 -1
  85. data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +1 -1
  86. data/lib/stack_one/models/operations/hris_get_company_request.rb +1 -1
  87. data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +1 -1
  88. data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +1 -1
  89. data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +1 -1
  90. data/lib/stack_one/models/operations/hris_get_employee_request.rb +1 -1
  91. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +1 -1
  92. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +1 -1
  93. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_queryparam_proxy.rb +20 -0
  94. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +53 -0
  95. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_response.rb +33 -0
  96. data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +1 -1
  97. data/lib/stack_one/models/operations/hris_get_employment_request.rb +1 -1
  98. data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +1 -1
  99. data/lib/stack_one/models/operations/hris_get_location_request.rb +1 -1
  100. data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +1 -1
  101. data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +1 -1
  102. data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +1 -1
  103. data/lib/stack_one/models/operations/hris_list_benefits_request.rb +1 -1
  104. data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +1 -1
  105. data/lib/stack_one/models/operations/hris_list_companies_request.rb +1 -1
  106. data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +1 -1
  107. data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +1 -1
  108. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +1 -1
  109. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +1 -1
  110. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_queryparam_proxy.rb +20 -0
  111. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +50 -0
  112. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_response.rb +33 -0
  113. data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +1 -1
  114. data/lib/stack_one/models/operations/hris_list_employees_request.rb +1 -1
  115. data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +1 -1
  116. data/lib/stack_one/models/operations/hris_list_employments_request.rb +1 -1
  117. data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +1 -1
  118. data/lib/stack_one/models/operations/hris_list_locations_request.rb +1 -1
  119. data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +1 -1
  120. data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +1 -1
  121. data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_request.rb +33 -0
  122. data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_response.rb +30 -0
  123. data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +1 -1
  124. data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +1 -1
  125. data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +1 -1
  126. data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +1 -1
  127. data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +1 -1
  128. data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +1 -1
  129. data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +1 -1
  130. data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +1 -1
  131. data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +1 -1
  132. data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +1 -1
  133. data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +1 -1
  134. data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +1 -1
  135. data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +1 -1
  136. data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +1 -1
  137. data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +1 -1
  138. data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +1 -1
  139. data/lib/stack_one/models/operations/proxy.rb +1 -1
  140. data/lib/stack_one/models/operations/queryparam_proxy.rb +1 -1
  141. data/lib/stack_one/models/operations.rb +12 -0
  142. data/lib/stack_one/models/shared/categories.rb +1 -0
  143. data/lib/stack_one/models/shared/category.rb +1 -0
  144. data/lib/stack_one/models/shared/company.rb +3 -3
  145. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
  146. data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +1 -0
  147. data/lib/stack_one/models/shared/createdocumentresult.rb +30 -0
  148. data/lib/stack_one/models/shared/createworkeligibilityresult.rb +30 -0
  149. data/lib/stack_one/models/shared/emailmessages_value.rb +20 -0
  150. data/lib/stack_one/models/shared/employee.rb +8 -5
  151. data/lib/stack_one/models/shared/employee_company.rb +36 -0
  152. data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +0 -2
  153. data/lib/stack_one/models/shared/employment_schemas_value.rb +0 -2
  154. data/lib/stack_one/models/shared/hrisbenefit.rb +3 -3
  155. data/lib/stack_one/models/shared/hrisbenefit_value.rb +4 -0
  156. data/lib/stack_one/models/shared/hriscreatedocumentrequestdto.rb +33 -0
  157. data/lib/stack_one/models/shared/hriscreatedocumentrequestdto_type.rb +27 -0
  158. data/lib/stack_one/models/shared/hriscreatedocumentrequestdto_value.rb +28 -0
  159. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
  160. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +0 -2
  161. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +8 -0
  162. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +3 -0
  163. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto.rb +42 -0
  164. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_value.rb +22 -0
  165. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_type.rb +27 -0
  166. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_value.rb +266 -0
  167. data/lib/stack_one/models/shared/issued_by.rb +27 -0
  168. data/lib/stack_one/models/shared/job.rb +2 -2
  169. data/lib/stack_one/models/shared/{response.rb → job_schemas_status.rb} +1 -1
  170. data/lib/stack_one/models/shared/jobposting_schemas_status_value.rb +1 -0
  171. data/lib/stack_one/models/shared/jobposting_schemas_value.rb +0 -2
  172. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
  173. data/lib/stack_one/models/shared/message_message_type.rb +2 -2
  174. data/lib/stack_one/models/shared/message_type.rb +2 -2
  175. data/lib/stack_one/models/shared/message_value.rb +20 -0
  176. data/lib/stack_one/models/shared/pushmessages_message_type.rb +2 -2
  177. data/lib/stack_one/models/shared/pushmessages_value.rb +20 -0
  178. data/lib/stack_one/models/shared/rawresponse.rb +2 -2
  179. data/lib/stack_one/models/shared/timeoff_schemas_value.rb +8 -0
  180. data/lib/stack_one/models/shared/timeoff_value.rb +3 -0
  181. data/lib/stack_one/models/shared/workeligibility.rb +8 -5
  182. data/lib/stack_one/models/shared/workeligibility_document.rb +39 -0
  183. data/lib/stack_one/models/shared/workeligibility_issued_by.rb +27 -0
  184. data/lib/stack_one/models/shared/workeligibility_schemas_value.rb +22 -0
  185. data/lib/stack_one/models/shared/workeligibility_type.rb +2 -2
  186. data/lib/stack_one/models/shared/workeligibility_value.rb +250 -6
  187. data/lib/stack_one/models/shared/workeligibilitypaginated.rb +33 -0
  188. data/lib/stack_one/models/shared/workeligibilityresult.rb +27 -0
  189. data/lib/stack_one/models/shared.rb +27 -8
  190. data/lib/stack_one/proxy.rb +1 -1
  191. data/lib/stack_one/sdkconfiguration.rb +10 -11
  192. data/lib/stack_one/stackone.rb +21 -20
  193. data/lib/stack_one/utils/metadata_fields.rb +8 -12
  194. data/lib/stack_one/utils/t.rb +59 -0
  195. data/lib/stack_one/utils/utils.rb +8 -13
  196. data/lib/stackone_client.rb +5 -3
  197. metadata +35 -3
@@ -15,10 +15,14 @@ module StackOne
15
15
  field :avatar, T.nilable(::StackOne::Shared::Avatar), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('avatar') } }
16
16
  # The employee avatar Url
17
17
  field :avatar_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('avatar_url') } }
18
+ # Current benefits of the employee
19
+ field :benefits, T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('benefits') } }
18
20
  # The employee birthday
19
21
  field :birthday, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('birthday'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
22
  # The citizenships of the Employee
21
23
  field :citizenships, T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('citizenships') } }
24
+ # The employee company
25
+ field :company, T.nilable(::StackOne::Shared::EmployeeCompany), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company') } }
22
26
  # The employee company name
23
27
  field :company_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_name') } }
24
28
  # The employee cost centers
@@ -79,8 +83,6 @@ module StackOne
79
83
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
80
84
  # The employee work anniversary
81
85
  field :work_anniversary, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_anniversary'), 'decoder': Utils.datetime_from_iso_format(true) } }
82
- # The employee work eligibility
83
- field :work_eligibility, T.nilable(T::Array[::StackOne::Shared::WorkEligibility]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_eligibility') } }
84
86
  # The employee work email
85
87
  field :work_email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_email') } }
86
88
  # The employee work location
@@ -89,12 +91,14 @@ module StackOne
89
91
  field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
90
92
 
91
93
 
92
- sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_eligibility: T.nilable(T::Array[::StackOne::Shared::WorkEligibility]), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
93
- def initialize(avatar: nil, avatar_url: nil, birthday: nil, citizenships: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_eligibility: nil, work_email: nil, work_location: nil, work_phone_number: nil)
94
+ sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
95
+ def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
94
96
  @avatar = avatar
95
97
  @avatar_url = avatar_url
98
+ @benefits = benefits
96
99
  @birthday = birthday
97
100
  @citizenships = citizenships
101
+ @company = company
98
102
  @company_name = company_name
99
103
  @cost_centers = cost_centers
100
104
  @created_at = created_at
@@ -125,7 +129,6 @@ module StackOne
125
129
  @termination_date = termination_date
126
130
  @updated_at = updated_at
127
131
  @work_anniversary = work_anniversary
128
- @work_eligibility = work_eligibility
129
132
  @work_email = work_email
130
133
  @work_location = work_location
131
134
  @work_phone_number = work_phone_number
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # The employee company
11
+ class EmployeeCompany < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The created_at date
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
+ # The display name of the company
17
+ field :display_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('display_name') } }
18
+ # The identifier of the company
19
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
20
+ # The name of the company
21
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
22
+ # The updated_at date
23
+ field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
24
+
25
+
26
+ sig { params(created_at: T.nilable(::DateTime), display_name: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
27
+ def initialize(created_at: nil, display_name: nil, id: nil, name: nil, updated_at: nil)
28
+ @created_at = created_at
29
+ @display_name = display_name
30
+ @id = id
31
+ @name = name
32
+ @updated_at = updated_at
33
+ end
34
+ end
35
+ end
36
+ end
@@ -10,8 +10,6 @@ module StackOne
10
10
  # EmployeeSchemasEmploymentTypeValue - The type of the employment.
11
11
  class EmployeeSchemasEmploymentTypeValue < T::Enum
12
12
  enums do
13
- FULL_TIME = new('full_time')
14
- PART_TIME = new('part_time')
15
13
  CONTRACTOR = new('contractor')
16
14
  INTERN = new('intern')
17
15
  PERMANENT = new('permanent')
@@ -10,8 +10,6 @@ module StackOne
10
10
  # EmploymentSchemasValue - The type of the employment.
11
11
  class EmploymentSchemasValue < T::Enum
12
12
  enums do
13
- FULL_TIME = new('full_time')
14
- PART_TIME = new('part_time')
15
13
  CONTRACTOR = new('contractor')
16
14
  INTERN = new('intern')
17
15
  PERMANENT = new('permanent')
@@ -14,7 +14,7 @@ module StackOne
14
14
  # The type of the benefit
15
15
  field :benefit_type, T.nilable(::StackOne::Shared::BenefitType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('benefit_type') } }
16
16
  # The date and time the benefit was created
17
- field :created_at, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at') } }
17
+ field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
18
18
  # The description of the benefit
19
19
  field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
20
20
  # The unique ID of the benefit
@@ -24,10 +24,10 @@ module StackOne
24
24
  # The provider of the benefit
25
25
  field :provider, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
26
26
  # The date and time the benefit was last updated
27
- field :updated_at, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at') } }
27
+ field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
28
28
 
29
29
 
30
- sig { params(benefit_type: T.nilable(::StackOne::Shared::BenefitType), created_at: T.nilable(::String), description: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), provider: T.nilable(::String), updated_at: T.nilable(::String)).void }
30
+ sig { params(benefit_type: T.nilable(::StackOne::Shared::BenefitType), created_at: T.nilable(::DateTime), description: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), provider: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
31
31
  def initialize(benefit_type: nil, created_at: nil, description: nil, id: nil, name: nil, provider: nil, updated_at: nil)
32
32
  @benefit_type = benefit_type
33
33
  @created_at = created_at
@@ -10,7 +10,11 @@ module StackOne
10
10
  # HRISBenefitValue - The type of the benefit
11
11
  class HRISBenefitValue < T::Enum
12
12
  enums do
13
+ RETIREMENT_SAVINGS = new('retirement_savings')
14
+ HEALTH_SAVINGS = new('health_savings')
13
15
  OTHER = new('other')
16
+ HEALTH_INSURANCE = new('health_insurance')
17
+ INSURANCE = new('insurance')
14
18
  end
15
19
  end
16
20
 
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class HrisCreateDocumentRequestDto < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The content of the file
15
+ field :content, ::StackOne::Shared::Content, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content') } }
16
+ # The name of the file
17
+ field :name, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
18
+ # The path where the file is stored
19
+ field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
20
+ # The content type of the document
21
+ field :type, T.nilable(::StackOne::Shared::HrisCreateDocumentRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
22
+
23
+
24
+ sig { params(content: ::StackOne::Shared::Content, name: ::String, path: T.nilable(::String), type: T.nilable(::StackOne::Shared::HrisCreateDocumentRequestDtoType)).void }
25
+ def initialize(content: nil, name: nil, path: nil, type: nil)
26
+ @content = content
27
+ @name = name
28
+ @path = path
29
+ @type = type
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # The content type of the document
11
+ class HrisCreateDocumentRequestDtoType < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+
17
+ field :value, T.nilable(::StackOne::Shared::HrisCreateDocumentRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateDocumentRequestDtoValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateDocumentRequestDtoValue)).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,28 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class HrisCreateDocumentRequestDtoValue < T::Enum
12
+ enums do
13
+ RESUME = new('resume')
14
+ AVATAR = new('avatar')
15
+ COVER_LETTER = new('cover_letter')
16
+ PROFILE_PICTURE = new('profile_picture')
17
+ PASSPORT = new('passport')
18
+ TAKE_HOME_TEST = new('take_home_test')
19
+ OFFER_LETTER = new('offer_letter')
20
+ SIGNED_OFFER_LETTER = new('signed_offer_letter')
21
+ OFFER_PACKET = new('offer_packet')
22
+ OTHER = new('other')
23
+ UNMAPPED_VALUE = new('unmapped_value')
24
+ end
25
+ end
26
+
27
+ end
28
+ end
@@ -15,6 +15,8 @@ module StackOne
15
15
  field :avatar, T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoAvatar), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('avatar') } }
16
16
  # The employee avatar Url
17
17
  field :avatar_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('avatar_url') } }
18
+ # Current benefits of the employee
19
+ field :benefits, T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('benefits') } }
18
20
  # The employee birthday
19
21
  field :birthday, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('birthday'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
22
  # The citizenships of the Employee
@@ -77,10 +79,11 @@ module StackOne
77
79
  field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
78
80
 
79
81
 
80
- sig { params(avatar: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoAvatar), avatar_url: T.nilable(::String), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company_name: T.nilable(::String), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentContractType), employment_status: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentStatus), employment_type: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEthnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoGender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoHomeLocation), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoMaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoWorkLocation), work_phone_number: T.nilable(::String)).void }
81
- def initialize(avatar: nil, avatar_url: nil, birthday: nil, citizenships: nil, company_name: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, start_date: nil, tenure: nil, termination_date: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
82
+ sig { params(avatar: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoAvatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company_name: T.nilable(::String), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentContractType), employment_status: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentStatus), employment_type: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoEthnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoGender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoHomeLocation), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoMaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoWorkLocation), work_phone_number: T.nilable(::String)).void }
83
+ def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company_name: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, start_date: nil, tenure: nil, termination_date: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
82
84
  @avatar = avatar
83
85
  @avatar_url = avatar_url
86
+ @benefits = benefits
84
87
  @birthday = birthday
85
88
  @citizenships = citizenships
86
89
  @company_name = company_name
@@ -10,8 +10,6 @@ module StackOne
10
10
  # HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue - The type of the employment.
11
11
  class HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue < T::Enum
12
12
  enums do
13
- FULL_TIME = new('full_time')
14
- PART_TIME = new('part_time')
15
13
  CONTRACTOR = new('contractor')
16
14
  INTERN = new('intern')
17
15
  PERMANENT = new('permanent')
@@ -13,6 +13,14 @@ module StackOne
13
13
  SICK = new('sick')
14
14
  UNMAPPED_VALUE = new('unmapped_value')
15
15
  VACATION = new('vacation')
16
+ LONG_TERM_DISABILITY = new('long_term_disability')
17
+ SHORT_TERM_DISABILITY = new('short_term_disability')
18
+ ABSENT = new('absent')
19
+ COMP_TIME = new('comp_time')
20
+ TRAINING = new('training')
21
+ ANNUAL_LEAVE = new('annual_leave')
22
+ LEAVE_OF_ABSENCE = new('leave_of_absence')
23
+ CHILD_CARE_LEAVE = new('child_care_leave')
16
24
  end
17
25
  end
18
26
 
@@ -11,6 +11,9 @@ module StackOne
11
11
  class HrisCreateTimeOffRequestDtoValue < T::Enum
12
12
  enums do
13
13
  APPROVED = new('approved')
14
+ CANCELLED = new('cancelled')
15
+ REJECTED = new('rejected')
16
+ PENDING = new('pending')
14
17
  UNMAPPED_VALUE = new('unmapped_value')
15
18
  end
16
19
  end
@@ -0,0 +1,42 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class HrisCreateWorkEligibilityRequestDto < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :document, T.nilable(::StackOne::Shared::Document), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('document') } }
16
+ # The country code of the issued by authority
17
+ field :issued_by, T.nilable(::StackOne::Shared::IssuedBy), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('issued_by') } }
18
+
19
+ field :number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('number') } }
20
+
21
+ field :sub_type, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_type') } }
22
+
23
+ field :type, T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
24
+
25
+ field :valid_from, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('valid_from'), 'decoder': Utils.datetime_from_iso_format(true) } }
26
+
27
+ field :valid_to, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('valid_to'), 'decoder': Utils.datetime_from_iso_format(true) } }
28
+
29
+
30
+ sig { params(document: T.nilable(::StackOne::Shared::Document), issued_by: T.nilable(::StackOne::Shared::IssuedBy), number: T.nilable(::String), sub_type: T.nilable(::String), type: T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoType), valid_from: T.nilable(::DateTime), valid_to: T.nilable(::DateTime)).void }
31
+ def initialize(document: nil, issued_by: nil, number: nil, sub_type: nil, type: nil, valid_from: nil, valid_to: nil)
32
+ @document = document
33
+ @issued_by = issued_by
34
+ @number = number
35
+ @sub_type = sub_type
36
+ @type = type
37
+ @valid_from = valid_from
38
+ @valid_to = valid_to
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,22 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class HrisCreateWorkEligibilityRequestDtoSchemasValue < T::Enum
12
+ enums do
13
+ VISA = new('visa')
14
+ PASSPORT = new('passport')
15
+ DRIVER_LICENSE = new('driver_license')
16
+ BIRTH_CERTIFICATE = new('birth_certificate')
17
+ OTHER = new('other')
18
+ end
19
+ end
20
+
21
+ end
22
+ end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class HrisCreateWorkEligibilityRequestDtoType < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_type, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } }
16
+
17
+ field :value, T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoSchemasValue, true) } }
18
+
19
+
20
+ sig { params(source_type: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateWorkEligibilityRequestDtoSchemasValue)).void }
21
+ def initialize(source_type: nil, value: nil)
22
+ @source_type = source_type
23
+ @value = value
24
+ end
25
+ end
26
+ end
27
+ end