stackone_client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (272) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{stackone → stack_one}/accounts.rb +32 -26
  3. data/lib/{stackone → stack_one}/connect_sessions.rb +10 -7
  4. data/lib/{stackone → stack_one}/connectors.rb +15 -12
  5. data/lib/{stackone → stack_one}/hris.rb +109 -89
  6. data/lib/stack_one/models/operations/hris_create_employee_request.rb +27 -0
  7. data/lib/stack_one/models/operations/hris_create_employee_response.rb +33 -0
  8. data/lib/stack_one/models/operations/hris_create_employee_time_off_request_request.rb +30 -0
  9. data/lib/stack_one/models/operations/hris_create_employee_time_off_request_response.rb +33 -0
  10. data/lib/stack_one/models/operations/hris_create_time_off_request_request.rb +27 -0
  11. data/lib/stack_one/models/operations/hris_create_time_off_request_response.rb +33 -0
  12. data/lib/stack_one/models/operations/hris_get_company_request.rb +50 -0
  13. data/lib/stack_one/models/operations/hris_get_company_response.rb +33 -0
  14. data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +20 -0
  15. data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +53 -0
  16. data/lib/stack_one/models/operations/hris_get_employee_document_response.rb +33 -0
  17. data/lib/stack_one/models/operations/hris_get_employee_request.rb +56 -0
  18. data/lib/stack_one/models/operations/hris_get_employee_response.rb +33 -0
  19. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +20 -0
  20. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +53 -0
  21. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_response.rb +33 -0
  22. data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +20 -0
  23. data/lib/stack_one/models/operations/hris_get_employment_request.rb +50 -0
  24. data/lib/stack_one/models/operations/hris_get_employment_response.rb +33 -0
  25. data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +20 -0
  26. data/lib/stack_one/models/operations/hris_get_location_request.rb +50 -0
  27. data/lib/stack_one/models/operations/hris_get_location_response.rb +33 -0
  28. data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +20 -0
  29. data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +50 -0
  30. data/lib/stack_one/models/operations/hris_get_time_off_request_response.rb +33 -0
  31. data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +20 -0
  32. data/lib/stack_one/models/operations/hris_list_companies_request.rb +47 -0
  33. data/lib/stack_one/models/operations/hris_list_companies_response.rb +33 -0
  34. data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +20 -0
  35. data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +50 -0
  36. data/lib/stack_one/models/operations/hris_list_employee_documents_response.rb +33 -0
  37. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +20 -0
  38. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +50 -0
  39. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_response.rb +33 -0
  40. data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +20 -0
  41. data/lib/stack_one/models/operations/hris_list_employees_request.rb +53 -0
  42. data/lib/stack_one/models/operations/hris_list_employees_response.rb +33 -0
  43. data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +20 -0
  44. data/lib/stack_one/models/operations/hris_list_employments_request.rb +47 -0
  45. data/lib/stack_one/models/operations/hris_list_employments_response.rb +33 -0
  46. data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +20 -0
  47. data/lib/stack_one/models/operations/hris_list_locations_request.rb +47 -0
  48. data/lib/stack_one/models/operations/hris_list_locations_response.rb +33 -0
  49. data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +20 -0
  50. data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +47 -0
  51. data/lib/stack_one/models/operations/hris_list_time_off_requests_response.rb +33 -0
  52. data/lib/stack_one/models/operations/hris_update_employee_request.rb +30 -0
  53. data/lib/stack_one/models/operations/hris_update_employee_response.rb +33 -0
  54. data/lib/stack_one/models/operations/hris_update_time_off_request_request.rb +30 -0
  55. data/lib/stack_one/models/operations/hris_update_time_off_request_response.rb +33 -0
  56. data/lib/stack_one/models/operations/proxy.rb +20 -0
  57. data/lib/stack_one/models/operations/queryparam_proxy.rb +20 -0
  58. data/lib/{stackone/models/operations/stackone_authenticate_connect_session.rb → stack_one/models/operations/stackone_authenticate_connect_session_response.rb} +6 -8
  59. data/lib/{stackone/models/operations/stackone_create_connect_session.rb → stack_one/models/operations/stackone_create_connect_session_response.rb} +6 -8
  60. data/lib/stack_one/models/operations/stackone_delete_account_request.rb +24 -0
  61. data/lib/{stackone/models/operations/stackone_delete_account.rb → stack_one/models/operations/stackone_delete_account_response.rb} +6 -22
  62. data/lib/stack_one/models/operations/stackone_get_account_meta_info_request.rb +24 -0
  63. data/lib/{stackone/models/operations/stackone_get_account_meta_info.rb → stack_one/models/operations/stackone_get_account_meta_info_response.rb} +6 -22
  64. data/lib/stack_one/models/operations/stackone_get_account_request.rb +24 -0
  65. data/lib/{stackone/models/operations/stackone_get_account.rb → stack_one/models/operations/stackone_get_account_response.rb} +6 -22
  66. data/lib/stack_one/models/operations/stackone_get_connector_meta_request.rb +27 -0
  67. data/lib/stack_one/models/operations/stackone_get_connector_meta_response.rb +33 -0
  68. data/lib/stack_one/models/operations/stackone_list_connectors_meta_request.rb +24 -0
  69. data/lib/stack_one/models/operations/stackone_list_connectors_meta_response.rb +33 -0
  70. data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +27 -0
  71. data/lib/stack_one/models/operations/stackone_list_linked_accounts_response.rb +33 -0
  72. data/lib/stack_one/models/operations/stackone_proxy_request_request.rb +27 -0
  73. data/lib/stack_one/models/operations/stackone_proxy_request_response.rb +30 -0
  74. data/lib/stack_one/models/operations/stackone_update_account_request.rb +27 -0
  75. data/lib/stack_one/models/operations/stackone_update_account_response.rb +33 -0
  76. data/lib/stack_one/models/operations.rb +79 -0
  77. data/lib/stack_one/models/shared/avatar.rb +27 -0
  78. data/lib/stack_one/models/shared/body.rb +20 -0
  79. data/lib/stack_one/models/shared/categories.rb +23 -0
  80. data/lib/stack_one/models/shared/category.rb +23 -0
  81. data/lib/stack_one/models/shared/companiespaginated.rb +33 -0
  82. data/lib/stack_one/models/shared/company.rb +36 -0
  83. data/lib/stack_one/models/shared/companyresult.rb +27 -0
  84. data/lib/stack_one/models/shared/connectorsmeta.rb +39 -0
  85. data/lib/stack_one/models/shared/connectsession.rb +54 -0
  86. data/lib/{stackone → stack_one}/models/shared/connectsessionauthenticate.rb +3 -4
  87. data/lib/stack_one/models/shared/connectsessioncreate.rb +51 -0
  88. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +23 -0
  89. data/lib/stack_one/models/shared/connectsessiontoken.rb +57 -0
  90. data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +23 -0
  91. data/lib/{stackone → stack_one}/models/shared/content.rb +4 -6
  92. data/lib/{stackone → stack_one}/models/shared/costcenters.rb +4 -5
  93. data/lib/stack_one/models/shared/country.rb +27 -0
  94. data/lib/stack_one/models/shared/countrycodeenum.rb +27 -0
  95. data/lib/stack_one/models/shared/createemployeeresult.rb +30 -0
  96. data/lib/stack_one/models/shared/createtimeoffresult.rb +30 -0
  97. data/lib/stack_one/models/shared/credentials.rb +20 -0
  98. data/lib/stack_one/models/shared/document.rb +39 -0
  99. data/lib/stack_one/models/shared/documentapimodel.rb +42 -0
  100. data/lib/stack_one/models/shared/documentapimodel_value.rb +28 -0
  101. data/lib/stack_one/models/shared/documentresult.rb +27 -0
  102. data/lib/stack_one/models/shared/documentspaginated.rb +33 -0
  103. data/lib/stack_one/models/shared/employee.rb +135 -0
  104. data/lib/stack_one/models/shared/employee_country.rb +27 -0
  105. data/lib/stack_one/models/shared/employee_location_type.rb +27 -0
  106. data/lib/stack_one/models/shared/employee_schemas_country.rb +27 -0
  107. data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +33 -0
  108. data/lib/stack_one/models/shared/employee_schemas_ethnicity_value.rb +27 -0
  109. data/lib/stack_one/models/shared/employee_schemas_gender_value.rb +24 -0
  110. data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +20 -0
  111. data/lib/stack_one/models/shared/employee_schemas_home_location_value.rb +266 -0
  112. data/lib/stack_one/models/shared/employee_schemas_location_type.rb +27 -0
  113. data/lib/stack_one/models/shared/employee_schemas_marital_status_value.rb +27 -0
  114. data/lib/stack_one/models/shared/employee_schemas_value.rb +24 -0
  115. data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +20 -0
  116. data/lib/stack_one/models/shared/employee_schemas_work_location_value.rb +266 -0
  117. data/lib/stack_one/models/shared/employee_value.rb +21 -0
  118. data/lib/stack_one/models/shared/employeecustomfields.rb +42 -0
  119. data/lib/stack_one/models/shared/employeecustomfields_schemas_value.rb +23 -0
  120. data/lib/stack_one/models/shared/employeecustomfields_type.rb +27 -0
  121. data/lib/stack_one/models/shared/employeecustomfields_value.rb +20 -0
  122. data/lib/stack_one/models/shared/employeeresult.rb +27 -0
  123. data/lib/stack_one/models/shared/employeespaginated.rb +33 -0
  124. data/lib/stack_one/models/shared/employment.rb +57 -0
  125. data/lib/stack_one/models/shared/employment_contract_type.rb +27 -0
  126. data/lib/stack_one/models/shared/employment_employment_contract_type.rb +27 -0
  127. data/lib/stack_one/models/shared/employment_employment_type.rb +27 -0
  128. data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +33 -0
  129. data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +26 -0
  130. data/lib/stack_one/models/shared/employment_schemas_value.rb +33 -0
  131. data/lib/stack_one/models/shared/employment_status.rb +27 -0
  132. data/lib/stack_one/models/shared/employment_type.rb +27 -0
  133. data/lib/stack_one/models/shared/employment_value.rb +21 -0
  134. data/lib/stack_one/models/shared/employmentresult.rb +27 -0
  135. data/lib/stack_one/models/shared/employmentspaginated.rb +33 -0
  136. data/lib/stack_one/models/shared/ethnicity.rb +27 -0
  137. data/lib/stack_one/models/shared/fileformatenum.rb +27 -0
  138. data/lib/stack_one/models/shared/fileformatenum_value.rb +34 -0
  139. data/lib/stack_one/models/shared/gender.rb +27 -0
  140. data/lib/stack_one/models/shared/headers.rb +20 -0
  141. data/lib/stack_one/models/shared/home_location.rb +60 -0
  142. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +117 -0
  143. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_avatar.rb +27 -0
  144. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_country.rb +27 -0
  145. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_contract_type.rb +27 -0
  146. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb +27 -0
  147. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +27 -0
  148. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_ethnicity.rb +27 -0
  149. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_gender.rb +27 -0
  150. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +45 -0
  151. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_marital_status.rb +27 -0
  152. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb +27 -0
  153. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +33 -0
  154. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb +27 -0
  155. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_gender_value.rb +24 -0
  156. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +3841 -0
  157. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_value.rb +266 -0
  158. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_marital_status_value.rb +27 -0
  159. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_value.rb +24 -0
  160. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +3841 -0
  161. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb +266 -0
  162. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +27 -0
  163. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_value.rb +21 -0
  164. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +45 -0
  165. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +39 -0
  166. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +20 -0
  167. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb +27 -0
  168. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +19 -0
  169. data/lib/stack_one/models/shared/hrislocation.rb +60 -0
  170. data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +20 -0
  171. data/lib/{stackone/models/shared/hrislocation.rb → stack_one/models/shared/hrislocation_value.rb} +1 -96
  172. data/lib/stack_one/models/shared/hrislocationresult.rb +27 -0
  173. data/lib/stack_one/models/shared/hrislocationspaginated.rb +33 -0
  174. data/lib/stack_one/models/shared/images.rb +27 -0
  175. data/lib/stack_one/models/shared/job_description.rb +24 -0
  176. data/lib/stack_one/models/shared/linkedaccount.rb +54 -0
  177. data/lib/stack_one/models/shared/linkedaccountmeta.rb +30 -0
  178. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +23 -0
  179. data/lib/stack_one/models/shared/location_type.rb +27 -0
  180. data/lib/stack_one/models/shared/marital_status.rb +27 -0
  181. data/lib/stack_one/models/shared/metadata.rb +20 -0
  182. data/lib/stack_one/models/shared/method.rb +22 -0
  183. data/lib/{stackone → stack_one}/models/shared/patchaccountdto.rb +1 -2
  184. data/lib/stack_one/models/shared/pay_frequency.rb +27 -0
  185. data/lib/stack_one/models/shared/pay_period.rb +27 -0
  186. data/lib/stack_one/models/shared/proxyrequestbody.rb +36 -0
  187. data/lib/stack_one/models/shared/rawresponse.rb +33 -0
  188. data/lib/stack_one/models/shared/resources.rb +24 -0
  189. data/lib/stack_one/models/shared/response.rb +20 -0
  190. data/lib/stack_one/models/shared/security.rb +27 -0
  191. data/lib/stack_one/models/shared/setup_information.rb +20 -0
  192. data/lib/stack_one/models/shared/state.rb +27 -0
  193. data/lib/stack_one/models/shared/status.rb +27 -0
  194. data/lib/stack_one/models/shared/timeoff.rb +48 -0
  195. data/lib/stack_one/models/shared/timeoff_schemas_value.rb +20 -0
  196. data/lib/stack_one/models/shared/timeoff_status.rb +27 -0
  197. data/lib/stack_one/models/shared/timeoff_type.rb +27 -0
  198. data/lib/stack_one/models/shared/timeoff_value.rb +19 -0
  199. data/lib/stack_one/models/shared/timeoffpaginated.rb +33 -0
  200. data/lib/stack_one/models/shared/timeoffresult.rb +27 -0
  201. data/lib/stack_one/models/shared/type.rb +27 -0
  202. data/lib/{stackone/models/shared/countrycodeenum.rb → stack_one/models/shared/value.rb} +1 -19
  203. data/lib/stack_one/models/shared/work_location.rb +60 -0
  204. data/lib/stack_one/models/shared/workeligibility.rb +42 -0
  205. data/lib/stack_one/models/shared/workeligibility_type.rb +27 -0
  206. data/lib/stack_one/models/shared/workeligibility_value.rb +22 -0
  207. data/lib/stack_one/models/shared.rb +139 -0
  208. data/lib/{stackone → stack_one}/proxy.rb +6 -4
  209. data/lib/{stackone → stack_one}/sdkconfiguration.rb +4 -4
  210. data/lib/{stackone/sdk.rb → stack_one/stackone.rb} +1 -1
  211. data/lib/stackone_client.rb +11 -79
  212. metadata +213 -80
  213. data/lib/stackone/models/operations/hris_create_employee.rb +0 -53
  214. data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +0 -56
  215. data/lib/stackone/models/operations/hris_create_time_off_request.rb +0 -53
  216. data/lib/stackone/models/operations/hris_get_company.rb +0 -88
  217. data/lib/stackone/models/operations/hris_get_employee.rb +0 -94
  218. data/lib/stackone/models/operations/hris_get_employee_document.rb +0 -91
  219. data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +0 -91
  220. data/lib/stackone/models/operations/hris_get_employment.rb +0 -88
  221. data/lib/stackone/models/operations/hris_get_location.rb +0 -88
  222. data/lib/stackone/models/operations/hris_get_time_off_request.rb +0 -88
  223. data/lib/stackone/models/operations/hris_list_companies.rb +0 -85
  224. data/lib/stackone/models/operations/hris_list_employee_documents.rb +0 -88
  225. data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +0 -88
  226. data/lib/stackone/models/operations/hris_list_employees.rb +0 -91
  227. data/lib/stackone/models/operations/hris_list_employments.rb +0 -85
  228. data/lib/stackone/models/operations/hris_list_locations.rb +0 -85
  229. data/lib/stackone/models/operations/hris_list_time_off_requests.rb +0 -85
  230. data/lib/stackone/models/operations/hris_update_employee.rb +0 -56
  231. data/lib/stackone/models/operations/hris_update_time_off_request.rb +0 -56
  232. data/lib/stackone/models/operations/stackone_get_connector_meta.rb +0 -52
  233. data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +0 -48
  234. data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +0 -51
  235. data/lib/stackone/models/operations/stackone_proxy_request.rb +0 -49
  236. data/lib/stackone/models/operations/stackone_update_account.rb +0 -53
  237. data/lib/stackone/models/shared/companiespaginated.rb +0 -34
  238. data/lib/stackone/models/shared/company.rb +0 -37
  239. data/lib/stackone/models/shared/companyresult.rb +0 -29
  240. data/lib/stackone/models/shared/connectorsmeta.rb +0 -84
  241. data/lib/stackone/models/shared/connectsession.rb +0 -68
  242. data/lib/stackone/models/shared/connectsessioncreate.rb +0 -75
  243. data/lib/stackone/models/shared/connectsessiontoken.rb +0 -71
  244. data/lib/stackone/models/shared/createemployeeresult.rb +0 -31
  245. data/lib/stackone/models/shared/createtimeoffresult.rb +0 -31
  246. data/lib/stackone/models/shared/documentapimodel.rb +0 -44
  247. data/lib/stackone/models/shared/documentresult.rb +0 -29
  248. data/lib/stackone/models/shared/documentspaginated.rb +0 -34
  249. data/lib/stackone/models/shared/documenttypeenum.rb +0 -40
  250. data/lib/stackone/models/shared/employee.rb +0 -1065
  251. data/lib/stackone/models/shared/employeecustomfields.rb +0 -83
  252. data/lib/stackone/models/shared/employeeresult.rb +0 -29
  253. data/lib/stackone/models/shared/employeespaginated.rb +0 -34
  254. data/lib/stackone/models/shared/employment.rb +0 -199
  255. data/lib/stackone/models/shared/employmentresult.rb +0 -29
  256. data/lib/stackone/models/shared/employmentspaginated.rb +0 -34
  257. data/lib/stackone/models/shared/fileformatenum.rb +0 -52
  258. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +0 -8645
  259. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +0 -93
  260. data/lib/stackone/models/shared/hrislocationresult.rb +0 -29
  261. data/lib/stackone/models/shared/hrislocationspaginated.rb +0 -34
  262. data/lib/stackone/models/shared/linkedaccount.rb +0 -75
  263. data/lib/stackone/models/shared/linkedaccountmeta.rb +0 -44
  264. data/lib/stackone/models/shared/proxyrequestbody.rb +0 -69
  265. data/lib/stackone/models/shared/rawresponse.rb +0 -44
  266. data/lib/stackone/models/shared/security.rb +0 -28
  267. data/lib/stackone/models/shared/timeoff.rb +0 -102
  268. data/lib/stackone/models/shared/timeoffpaginated.rb +0 -34
  269. data/lib/stackone/models/shared/timeoffresult.rb +0 -29
  270. data/lib/stackone/models/shared/workeligibility.rb +0 -101
  271. /data/lib/{stackone → stack_one}/utils/metadata_fields.rb +0 -0
  272. /data/lib/{stackone → stack_one}/utils/utils.rb +0 -0
@@ -1,1065 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
- # The employee avatar
12
- class Avatar < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :base64, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('base64') } }
17
-
18
- field :url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
19
-
20
-
21
- sig { params(base64: T.nilable(String), url: T.nilable(String)).void }
22
- def initialize(base64: nil, url: nil)
23
- @base64 = base64
24
- @url = url
25
- end
26
- end
27
-
28
-
29
- class EmployeeValue < T::Enum
30
- enums do
31
- FULL_TIME = new('full_time')
32
- SHIFTS = new('shifts')
33
- PART_TIME = new('part_time')
34
- UNMAPPED_VALUE = new('unmapped_value')
35
- end
36
- end
37
-
38
-
39
- # The employment work schedule type (e.g., full-time, part-time)
40
- class EmploymentContractType < ::StackOne::Utils::FieldAugmented
41
- extend T::Sig
42
-
43
-
44
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
45
-
46
- field :value, T.nilable(Shared::EmployeeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeValue, true) } }
47
-
48
-
49
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeValue)).void }
50
- def initialize(source_value: nil, value: nil)
51
- @source_value = source_value
52
- @value = value
53
- end
54
- end
55
-
56
-
57
- class EmployeeSchemasValue < T::Enum
58
- enums do
59
- ACTIVE = new('active')
60
- PENDING = new('pending')
61
- TERMINATED = new('terminated')
62
- LEAVE = new('leave')
63
- INACTIVE = new('inactive')
64
- UNKNOWN = new('unknown')
65
- UNMAPPED_VALUE = new('unmapped_value')
66
- end
67
- end
68
-
69
-
70
- # The employee employment status
71
- class EmploymentStatus < ::StackOne::Utils::FieldAugmented
72
- extend T::Sig
73
-
74
-
75
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
76
-
77
- field :value, T.nilable(Shared::EmployeeSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasValue, true) } }
78
-
79
-
80
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasValue)).void }
81
- def initialize(source_value: nil, value: nil)
82
- @source_value = source_value
83
- @value = value
84
- end
85
- end
86
-
87
-
88
- class EmployeeSchemasEmploymentTypeValue < T::Enum
89
- enums do
90
- FULL_TIME = new('full_time')
91
- PART_TIME = new('part_time')
92
- CONTRACTOR = new('contractor')
93
- INTERN = new('intern')
94
- PERMANENT = new('permanent')
95
- APPRENTICE = new('apprentice')
96
- FREELANCE = new('freelance')
97
- TERMINATED = new('terminated')
98
- TEMPORARY = new('temporary')
99
- SEASONAL = new('seasonal')
100
- VOLUNTEER = new('volunteer')
101
- PROBATION = new('probation')
102
- INTERNAL = new('internal')
103
- EXTERNAL = new('external')
104
- EMPLOYER_OF_RECORD = new('employer_of_record')
105
- UNMAPPED_VALUE = new('unmapped_value')
106
- end
107
- end
108
-
109
-
110
- # The employee employment type
111
- class EmploymentType < ::StackOne::Utils::FieldAugmented
112
- extend T::Sig
113
-
114
-
115
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
116
-
117
- field :value, T.nilable(Shared::EmployeeSchemasEmploymentTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEmploymentTypeValue, true) } }
118
-
119
-
120
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasEmploymentTypeValue)).void }
121
- def initialize(source_value: nil, value: nil)
122
- @source_value = source_value
123
- @value = value
124
- end
125
- end
126
-
127
-
128
- class EmployeeSchemasEthnicityValue < T::Enum
129
- enums do
130
- WHITE = new('white')
131
- BLACK_OR_AFRICAN_AMERICAN = new('black_or_african_american')
132
- ASIAN = new('asian')
133
- HISPANIC_OR_LATINO = new('hispanic_or_latino')
134
- AMERICAN_INDIAN_OR_ALASKA_NATIVE = new('american_indian_or_alaska_native')
135
- NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = new('native_hawaiian_or_pacific_islander')
136
- TWO_OR_MORE_RACES = new('two_or_more_races')
137
- NOT_DISCLOSED = new('not_disclosed')
138
- OTHER = new('other')
139
- UNMAPPED_VALUE = new('unmapped_value')
140
- end
141
- end
142
-
143
-
144
- # The employee ethnicity
145
- class Ethnicity < ::StackOne::Utils::FieldAugmented
146
- extend T::Sig
147
-
148
-
149
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
150
-
151
- field :value, T.nilable(Shared::EmployeeSchemasEthnicityValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEthnicityValue, true) } }
152
-
153
-
154
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasEthnicityValue)).void }
155
- def initialize(source_value: nil, value: nil)
156
- @source_value = source_value
157
- @value = value
158
- end
159
- end
160
-
161
-
162
- class EmployeeSchemasGenderValue < T::Enum
163
- enums do
164
- MALE = new('male')
165
- FEMALE = new('female')
166
- NON_BINARY = new('non_binary')
167
- OTHER = new('other')
168
- NOT_DISCLOSED = new('not_disclosed')
169
- DIVERSE = new('diverse')
170
- UNMAPPED_VALUE = new('unmapped_value')
171
- end
172
- end
173
-
174
-
175
- # The employee gender
176
- class Gender < ::StackOne::Utils::FieldAugmented
177
- extend T::Sig
178
-
179
-
180
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
181
-
182
- field :value, T.nilable(Shared::EmployeeSchemasGenderValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasGenderValue, true) } }
183
-
184
-
185
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasGenderValue)).void }
186
- def initialize(source_value: nil, value: nil)
187
- @source_value = source_value
188
- @value = value
189
- end
190
- end
191
-
192
- # EmployeeSchemasHomeLocationValue - The ISO3166-1 Alpha2 Code of the Country
193
- class EmployeeSchemasHomeLocationValue < T::Enum
194
- enums do
195
- AF = new('AF')
196
- AL = new('AL')
197
- DZ = new('DZ')
198
- AS = new('AS')
199
- AD = new('AD')
200
- AO = new('AO')
201
- AI = new('AI')
202
- AQ = new('AQ')
203
- AG = new('AG')
204
- AR = new('AR')
205
- AM = new('AM')
206
- AW = new('AW')
207
- AU = new('AU')
208
- AT = new('AT')
209
- AZ = new('AZ')
210
- BS = new('BS')
211
- BH = new('BH')
212
- BD = new('BD')
213
- BB = new('BB')
214
- BY = new('BY')
215
- BE = new('BE')
216
- BZ = new('BZ')
217
- BJ = new('BJ')
218
- BM = new('BM')
219
- BT = new('BT')
220
- BO = new('BO')
221
- BQ = new('BQ')
222
- BA = new('BA')
223
- BW = new('BW')
224
- BV = new('BV')
225
- BR = new('BR')
226
- IO = new('IO')
227
- BN = new('BN')
228
- BG = new('BG')
229
- BF = new('BF')
230
- BI = new('BI')
231
- KH = new('KH')
232
- CM = new('CM')
233
- CA = new('CA')
234
- CV = new('CV')
235
- KY = new('KY')
236
- CF = new('CF')
237
- TD = new('TD')
238
- CL = new('CL')
239
- CN = new('CN')
240
- CX = new('CX')
241
- CC = new('CC')
242
- CO = new('CO')
243
- KM = new('KM')
244
- CG = new('CG')
245
- CD = new('CD')
246
- CK = new('CK')
247
- CR = new('CR')
248
- HR = new('HR')
249
- CU = new('CU')
250
- CW = new('CW')
251
- CY = new('CY')
252
- CZ = new('CZ')
253
- CI = new('CI')
254
- DK = new('DK')
255
- DJ = new('DJ')
256
- DM = new('DM')
257
- DO = new('DO')
258
- EC = new('EC')
259
- EG = new('EG')
260
- SV = new('SV')
261
- GQ = new('GQ')
262
- ER = new('ER')
263
- EE = new('EE')
264
- ET = new('ET')
265
- FK = new('FK')
266
- FO = new('FO')
267
- FJ = new('FJ')
268
- FI = new('FI')
269
- FR = new('FR')
270
- GF = new('GF')
271
- PF = new('PF')
272
- TF = new('TF')
273
- GA = new('GA')
274
- GM = new('GM')
275
- GE = new('GE')
276
- DE = new('DE')
277
- GH = new('GH')
278
- GI = new('GI')
279
- GR = new('GR')
280
- GL = new('GL')
281
- GD = new('GD')
282
- GP = new('GP')
283
- GU = new('GU')
284
- GT = new('GT')
285
- GG = new('GG')
286
- GN = new('GN')
287
- GW = new('GW')
288
- GY = new('GY')
289
- HT = new('HT')
290
- HM = new('HM')
291
- VA = new('VA')
292
- HN = new('HN')
293
- HK = new('HK')
294
- HU = new('HU')
295
- IS = new('IS')
296
- IN = new('IN')
297
- ID = new('ID')
298
- IR = new('IR')
299
- IQ = new('IQ')
300
- IE = new('IE')
301
- IM = new('IM')
302
- IL = new('IL')
303
- IT = new('IT')
304
- JM = new('JM')
305
- JP = new('JP')
306
- JE = new('JE')
307
- JO = new('JO')
308
- KZ = new('KZ')
309
- KE = new('KE')
310
- KI = new('KI')
311
- KP = new('KP')
312
- KR = new('KR')
313
- KW = new('KW')
314
- KG = new('KG')
315
- LA = new('LA')
316
- LV = new('LV')
317
- LB = new('LB')
318
- LS = new('LS')
319
- LR = new('LR')
320
- LY = new('LY')
321
- LI = new('LI')
322
- LT = new('LT')
323
- LU = new('LU')
324
- MO = new('MO')
325
- MK = new('MK')
326
- MG = new('MG')
327
- MW = new('MW')
328
- MY = new('MY')
329
- MV = new('MV')
330
- ML = new('ML')
331
- MT = new('MT')
332
- MH = new('MH')
333
- MQ = new('MQ')
334
- MR = new('MR')
335
- MU = new('MU')
336
- YT = new('YT')
337
- MX = new('MX')
338
- FM = new('FM')
339
- MD = new('MD')
340
- MC = new('MC')
341
- MN = new('MN')
342
- ME = new('ME')
343
- MS = new('MS')
344
- MA = new('MA')
345
- MZ = new('MZ')
346
- MM = new('MM')
347
- NA = new('NA')
348
- NR = new('NR')
349
- NP = new('NP')
350
- NL = new('NL')
351
- NC = new('NC')
352
- NZ = new('NZ')
353
- NI = new('NI')
354
- NE = new('NE')
355
- NG = new('NG')
356
- NU = new('NU')
357
- NF = new('NF')
358
- MP = new('MP')
359
- NO = new('NO')
360
- OM = new('OM')
361
- PK = new('PK')
362
- PW = new('PW')
363
- PS = new('PS')
364
- PA = new('PA')
365
- PG = new('PG')
366
- PY = new('PY')
367
- PE = new('PE')
368
- PH = new('PH')
369
- PN = new('PN')
370
- PL = new('PL')
371
- PT = new('PT')
372
- PR = new('PR')
373
- QA = new('QA')
374
- RO = new('RO')
375
- RU = new('RU')
376
- RW = new('RW')
377
- RE = new('RE')
378
- BL = new('BL')
379
- SH = new('SH')
380
- KN = new('KN')
381
- LC = new('LC')
382
- MF = new('MF')
383
- PM = new('PM')
384
- VC = new('VC')
385
- WS = new('WS')
386
- SM = new('SM')
387
- ST = new('ST')
388
- SA = new('SA')
389
- SN = new('SN')
390
- RS = new('RS')
391
- SC = new('SC')
392
- SL = new('SL')
393
- SG = new('SG')
394
- SX = new('SX')
395
- SK = new('SK')
396
- SI = new('SI')
397
- SB = new('SB')
398
- SO = new('SO')
399
- ZA = new('ZA')
400
- GS = new('GS')
401
- SS = new('SS')
402
- ES = new('ES')
403
- LK = new('LK')
404
- SD = new('SD')
405
- SR = new('SR')
406
- SJ = new('SJ')
407
- SZ = new('SZ')
408
- SE = new('SE')
409
- CH = new('CH')
410
- SY = new('SY')
411
- TW = new('TW')
412
- TJ = new('TJ')
413
- TZ = new('TZ')
414
- TH = new('TH')
415
- TL = new('TL')
416
- TG = new('TG')
417
- TK = new('TK')
418
- TO = new('TO')
419
- TT = new('TT')
420
- TN = new('TN')
421
- TR = new('TR')
422
- TM = new('TM')
423
- TC = new('TC')
424
- TV = new('TV')
425
- UG = new('UG')
426
- UA = new('UA')
427
- AE = new('AE')
428
- GB = new('GB')
429
- US = new('US')
430
- UM = new('UM')
431
- UY = new('UY')
432
- UZ = new('UZ')
433
- VU = new('VU')
434
- VE = new('VE')
435
- VN = new('VN')
436
- VG = new('VG')
437
- VI = new('VI')
438
- WF = new('WF')
439
- EH = new('EH')
440
- YE = new('YE')
441
- ZM = new('ZM')
442
- ZW = new('ZW')
443
- UNMAPPED_VALUE = new('unmapped_value')
444
- end
445
- end
446
-
447
-
448
- # The country code
449
- class EmployeeSchemasCountry < ::StackOne::Utils::FieldAugmented
450
- extend T::Sig
451
-
452
-
453
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
454
- # The ISO3166-1 Alpha2 Code of the Country
455
- field :value, T.nilable(Shared::EmployeeSchemasHomeLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationValue, true) } }
456
-
457
-
458
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasHomeLocationValue)).void }
459
- def initialize(source_value: nil, value: nil)
460
- @source_value = source_value
461
- @value = value
462
- end
463
- end
464
-
465
-
466
- class EmployeeSchemasHomeLocationLocationTypeValue < T::Enum
467
- enums do
468
- HOME = new('home')
469
- WORK = new('work')
470
- UNMAPPED_VALUE = new('unmapped_value')
471
- end
472
- end
473
-
474
-
475
- # The location type
476
- class EmployeeSchemasLocationType < ::StackOne::Utils::FieldAugmented
477
- extend T::Sig
478
-
479
-
480
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
481
-
482
- field :value, T.nilable(Shared::EmployeeSchemasHomeLocationLocationTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationLocationTypeValue, true) } }
483
-
484
-
485
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasHomeLocationLocationTypeValue)).void }
486
- def initialize(source_value: nil, value: nil)
487
- @source_value = source_value
488
- @value = value
489
- end
490
- end
491
-
492
- # The employee home location
493
- class HomeLocation < ::StackOne::Utils::FieldAugmented
494
- extend T::Sig
495
-
496
- # The city where the location is situated
497
- field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
498
- # The country code
499
- field :country, T.nilable(Shared::EmployeeSchemasCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
500
- # The created_at date
501
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
502
- # The employee ID
503
- field :employee_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
504
- # The unique ID of the location
505
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
506
- # The location type
507
- field :location_type, T.nilable(Shared::EmployeeSchemasLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
508
- # The name of the location
509
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
510
- # The phone number of the location
511
- field :phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
512
- # The state where the location is situated
513
- field :state, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
514
- # The first line of the address
515
- field :street_1, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
516
- # The second line of the address
517
- field :street_2, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
518
- # The updated_at date
519
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
520
- # The ZIP code/Postal code of the location
521
- field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
522
-
523
-
524
- sig { params(city: T.nilable(String), country: T.nilable(Shared::EmployeeSchemasCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::EmployeeSchemasLocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
525
- def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, updated_at: nil, zip_code: nil)
526
- @city = city
527
- @country = country
528
- @created_at = created_at
529
- @employee_id = employee_id
530
- @id = id
531
- @location_type = location_type
532
- @name = name
533
- @phone_number = phone_number
534
- @state = state
535
- @street_1 = street_1
536
- @street_2 = street_2
537
- @updated_at = updated_at
538
- @zip_code = zip_code
539
- end
540
- end
541
-
542
- # The employee job description
543
- class JobDescription < ::StackOne::Utils::FieldAugmented
544
- extend T::Sig
545
-
546
-
547
- field :text, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('text') } }
548
-
549
-
550
- sig { params(text: T.nilable(String)).void }
551
- def initialize(text: nil)
552
- @text = text
553
- end
554
- end
555
-
556
-
557
- class EmployeeSchemasMaritalStatusValue < T::Enum
558
- enums do
559
- SINGLE = new('single')
560
- MARRIED = new('married')
561
- COMMON_LAW = new('common_law')
562
- DIVORCED = new('divorced')
563
- WIDOWED = new('widowed')
564
- DOMESTIC_PARTNERSHIP = new('domestic_partnership')
565
- SEPARATED = new('separated')
566
- OTHER = new('other')
567
- NOT_DISCLOSED = new('not_disclosed')
568
- UNMAPPED_VALUE = new('unmapped_value')
569
- end
570
- end
571
-
572
-
573
- # The employee marital status
574
- class MaritalStatus < ::StackOne::Utils::FieldAugmented
575
- extend T::Sig
576
-
577
-
578
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
579
-
580
- field :value, T.nilable(Shared::EmployeeSchemasMaritalStatusValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasMaritalStatusValue, true) } }
581
-
582
-
583
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasMaritalStatusValue)).void }
584
- def initialize(source_value: nil, value: nil)
585
- @source_value = source_value
586
- @value = value
587
- end
588
- end
589
-
590
- # EmployeeSchemasWorkLocationValue - The ISO3166-1 Alpha2 Code of the Country
591
- class EmployeeSchemasWorkLocationValue < T::Enum
592
- enums do
593
- AF = new('AF')
594
- AL = new('AL')
595
- DZ = new('DZ')
596
- AS = new('AS')
597
- AD = new('AD')
598
- AO = new('AO')
599
- AI = new('AI')
600
- AQ = new('AQ')
601
- AG = new('AG')
602
- AR = new('AR')
603
- AM = new('AM')
604
- AW = new('AW')
605
- AU = new('AU')
606
- AT = new('AT')
607
- AZ = new('AZ')
608
- BS = new('BS')
609
- BH = new('BH')
610
- BD = new('BD')
611
- BB = new('BB')
612
- BY = new('BY')
613
- BE = new('BE')
614
- BZ = new('BZ')
615
- BJ = new('BJ')
616
- BM = new('BM')
617
- BT = new('BT')
618
- BO = new('BO')
619
- BQ = new('BQ')
620
- BA = new('BA')
621
- BW = new('BW')
622
- BV = new('BV')
623
- BR = new('BR')
624
- IO = new('IO')
625
- BN = new('BN')
626
- BG = new('BG')
627
- BF = new('BF')
628
- BI = new('BI')
629
- KH = new('KH')
630
- CM = new('CM')
631
- CA = new('CA')
632
- CV = new('CV')
633
- KY = new('KY')
634
- CF = new('CF')
635
- TD = new('TD')
636
- CL = new('CL')
637
- CN = new('CN')
638
- CX = new('CX')
639
- CC = new('CC')
640
- CO = new('CO')
641
- KM = new('KM')
642
- CG = new('CG')
643
- CD = new('CD')
644
- CK = new('CK')
645
- CR = new('CR')
646
- HR = new('HR')
647
- CU = new('CU')
648
- CW = new('CW')
649
- CY = new('CY')
650
- CZ = new('CZ')
651
- CI = new('CI')
652
- DK = new('DK')
653
- DJ = new('DJ')
654
- DM = new('DM')
655
- DO = new('DO')
656
- EC = new('EC')
657
- EG = new('EG')
658
- SV = new('SV')
659
- GQ = new('GQ')
660
- ER = new('ER')
661
- EE = new('EE')
662
- ET = new('ET')
663
- FK = new('FK')
664
- FO = new('FO')
665
- FJ = new('FJ')
666
- FI = new('FI')
667
- FR = new('FR')
668
- GF = new('GF')
669
- PF = new('PF')
670
- TF = new('TF')
671
- GA = new('GA')
672
- GM = new('GM')
673
- GE = new('GE')
674
- DE = new('DE')
675
- GH = new('GH')
676
- GI = new('GI')
677
- GR = new('GR')
678
- GL = new('GL')
679
- GD = new('GD')
680
- GP = new('GP')
681
- GU = new('GU')
682
- GT = new('GT')
683
- GG = new('GG')
684
- GN = new('GN')
685
- GW = new('GW')
686
- GY = new('GY')
687
- HT = new('HT')
688
- HM = new('HM')
689
- VA = new('VA')
690
- HN = new('HN')
691
- HK = new('HK')
692
- HU = new('HU')
693
- IS = new('IS')
694
- IN = new('IN')
695
- ID = new('ID')
696
- IR = new('IR')
697
- IQ = new('IQ')
698
- IE = new('IE')
699
- IM = new('IM')
700
- IL = new('IL')
701
- IT = new('IT')
702
- JM = new('JM')
703
- JP = new('JP')
704
- JE = new('JE')
705
- JO = new('JO')
706
- KZ = new('KZ')
707
- KE = new('KE')
708
- KI = new('KI')
709
- KP = new('KP')
710
- KR = new('KR')
711
- KW = new('KW')
712
- KG = new('KG')
713
- LA = new('LA')
714
- LV = new('LV')
715
- LB = new('LB')
716
- LS = new('LS')
717
- LR = new('LR')
718
- LY = new('LY')
719
- LI = new('LI')
720
- LT = new('LT')
721
- LU = new('LU')
722
- MO = new('MO')
723
- MK = new('MK')
724
- MG = new('MG')
725
- MW = new('MW')
726
- MY = new('MY')
727
- MV = new('MV')
728
- ML = new('ML')
729
- MT = new('MT')
730
- MH = new('MH')
731
- MQ = new('MQ')
732
- MR = new('MR')
733
- MU = new('MU')
734
- YT = new('YT')
735
- MX = new('MX')
736
- FM = new('FM')
737
- MD = new('MD')
738
- MC = new('MC')
739
- MN = new('MN')
740
- ME = new('ME')
741
- MS = new('MS')
742
- MA = new('MA')
743
- MZ = new('MZ')
744
- MM = new('MM')
745
- NA = new('NA')
746
- NR = new('NR')
747
- NP = new('NP')
748
- NL = new('NL')
749
- NC = new('NC')
750
- NZ = new('NZ')
751
- NI = new('NI')
752
- NE = new('NE')
753
- NG = new('NG')
754
- NU = new('NU')
755
- NF = new('NF')
756
- MP = new('MP')
757
- NO = new('NO')
758
- OM = new('OM')
759
- PK = new('PK')
760
- PW = new('PW')
761
- PS = new('PS')
762
- PA = new('PA')
763
- PG = new('PG')
764
- PY = new('PY')
765
- PE = new('PE')
766
- PH = new('PH')
767
- PN = new('PN')
768
- PL = new('PL')
769
- PT = new('PT')
770
- PR = new('PR')
771
- QA = new('QA')
772
- RO = new('RO')
773
- RU = new('RU')
774
- RW = new('RW')
775
- RE = new('RE')
776
- BL = new('BL')
777
- SH = new('SH')
778
- KN = new('KN')
779
- LC = new('LC')
780
- MF = new('MF')
781
- PM = new('PM')
782
- VC = new('VC')
783
- WS = new('WS')
784
- SM = new('SM')
785
- ST = new('ST')
786
- SA = new('SA')
787
- SN = new('SN')
788
- RS = new('RS')
789
- SC = new('SC')
790
- SL = new('SL')
791
- SG = new('SG')
792
- SX = new('SX')
793
- SK = new('SK')
794
- SI = new('SI')
795
- SB = new('SB')
796
- SO = new('SO')
797
- ZA = new('ZA')
798
- GS = new('GS')
799
- SS = new('SS')
800
- ES = new('ES')
801
- LK = new('LK')
802
- SD = new('SD')
803
- SR = new('SR')
804
- SJ = new('SJ')
805
- SZ = new('SZ')
806
- SE = new('SE')
807
- CH = new('CH')
808
- SY = new('SY')
809
- TW = new('TW')
810
- TJ = new('TJ')
811
- TZ = new('TZ')
812
- TH = new('TH')
813
- TL = new('TL')
814
- TG = new('TG')
815
- TK = new('TK')
816
- TO = new('TO')
817
- TT = new('TT')
818
- TN = new('TN')
819
- TR = new('TR')
820
- TM = new('TM')
821
- TC = new('TC')
822
- TV = new('TV')
823
- UG = new('UG')
824
- UA = new('UA')
825
- AE = new('AE')
826
- GB = new('GB')
827
- US = new('US')
828
- UM = new('UM')
829
- UY = new('UY')
830
- UZ = new('UZ')
831
- VU = new('VU')
832
- VE = new('VE')
833
- VN = new('VN')
834
- VG = new('VG')
835
- VI = new('VI')
836
- WF = new('WF')
837
- EH = new('EH')
838
- YE = new('YE')
839
- ZM = new('ZM')
840
- ZW = new('ZW')
841
- UNMAPPED_VALUE = new('unmapped_value')
842
- end
843
- end
844
-
845
-
846
- # The country code
847
- class EmployeeCountry < ::StackOne::Utils::FieldAugmented
848
- extend T::Sig
849
-
850
-
851
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
852
- # The ISO3166-1 Alpha2 Code of the Country
853
- field :value, T.nilable(Shared::EmployeeSchemasWorkLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationValue, true) } }
854
-
855
-
856
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasWorkLocationValue)).void }
857
- def initialize(source_value: nil, value: nil)
858
- @source_value = source_value
859
- @value = value
860
- end
861
- end
862
-
863
-
864
- class EmployeeSchemasWorkLocationLocationTypeValue < T::Enum
865
- enums do
866
- HOME = new('home')
867
- WORK = new('work')
868
- UNMAPPED_VALUE = new('unmapped_value')
869
- end
870
- end
871
-
872
-
873
- # The location type
874
- class EmployeeLocationType < ::StackOne::Utils::FieldAugmented
875
- extend T::Sig
876
-
877
-
878
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
879
-
880
- field :value, T.nilable(Shared::EmployeeSchemasWorkLocationLocationTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationLocationTypeValue, true) } }
881
-
882
-
883
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasWorkLocationLocationTypeValue)).void }
884
- def initialize(source_value: nil, value: nil)
885
- @source_value = source_value
886
- @value = value
887
- end
888
- end
889
-
890
- # The employee work location
891
- class WorkLocation < ::StackOne::Utils::FieldAugmented
892
- extend T::Sig
893
-
894
- # The city where the location is situated
895
- field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
896
- # The country code
897
- field :country, T.nilable(Shared::EmployeeCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
898
- # The created_at date
899
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
900
- # The employee ID
901
- field :employee_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
902
- # The unique ID of the location
903
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
904
- # The location type
905
- field :location_type, T.nilable(Shared::EmployeeLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
906
- # The name of the location
907
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
908
- # The phone number of the location
909
- field :phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
910
- # The state where the location is situated
911
- field :state, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
912
- # The first line of the address
913
- field :street_1, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
914
- # The second line of the address
915
- field :street_2, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
916
- # The updated_at date
917
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
918
- # The ZIP code/Postal code of the location
919
- field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
920
-
921
-
922
- sig { params(city: T.nilable(String), country: T.nilable(Shared::EmployeeCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::EmployeeLocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
923
- def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, updated_at: nil, zip_code: nil)
924
- @city = city
925
- @country = country
926
- @created_at = created_at
927
- @employee_id = employee_id
928
- @id = id
929
- @location_type = location_type
930
- @name = name
931
- @phone_number = phone_number
932
- @state = state
933
- @street_1 = street_1
934
- @street_2 = street_2
935
- @updated_at = updated_at
936
- @zip_code = zip_code
937
- end
938
- end
939
-
940
-
941
- class Employee < ::StackOne::Utils::FieldAugmented
942
- extend T::Sig
943
-
944
- # The employee first name
945
- field :first_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
946
- # The employee ID
947
- field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
948
- # The employee last name
949
- field :last_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
950
- # The employee work email
951
- field :work_email, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_email') } }
952
- # The employee avatar
953
- field :avatar, T.nilable(Shared::Avatar), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('avatar') } }
954
- # The employee avatar Url
955
- field :avatar_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('avatar_url') } }
956
- # The employee birthday
957
- field :birthday, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('birthday'), 'decoder': Utils.datetime_from_iso_format(true) } }
958
- # The citizenships of the Employee
959
- field :citizenships, T.nilable(T::Array[Shared::CountryCodeEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('citizenships') } }
960
- # The employee company name
961
- field :company_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_name') } }
962
- # The employee cost centers
963
- field :cost_centers, T.nilable(T::Array[Shared::CostCenters]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('cost_centers') } }
964
- # The created_at date
965
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
966
- # The employee custom fields
967
- field :custom_fields, T.nilable(T::Array[Shared::EmployeeCustomFields]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_fields') } }
968
- # The employee date_of_birth
969
- field :date_of_birth, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('date_of_birth'), 'decoder': Utils.datetime_from_iso_format(true) } }
970
- # The employee department
971
- field :department, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department') } }
972
- # The employee display name
973
- field :display_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('display_name') } }
974
- # The employment work schedule type (e.g., full-time, part-time)
975
- field :employment_contract_type, T.nilable(Shared::EmploymentContractType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_contract_type') } }
976
- # The employee employment status
977
- field :employment_status, T.nilable(Shared::EmploymentStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_status') } }
978
- # The employee employment type
979
- field :employment_type, T.nilable(Shared::EmploymentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_type') } }
980
- # The employee employments
981
- field :employments, T.nilable(T::Array[Shared::Employment]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employments') } }
982
- # The employee ethnicity
983
- field :ethnicity, T.nilable(Shared::Ethnicity), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('ethnicity') } }
984
- # The employee gender
985
- field :gender, T.nilable(Shared::Gender), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('gender') } }
986
- # The employee hire date
987
- field :hire_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hire_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
988
- # The employee home location
989
- field :home_location, T.nilable(Shared::HomeLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('home_location') } }
990
- # The employee job description
991
- field :job_description, T.nilable(Shared::JobDescription), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_description') } }
992
- # The employee job title
993
- field :job_title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_title') } }
994
- # The employee manager ID
995
- field :manager_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('manager_id') } }
996
- # The employee marital status
997
- field :marital_status, T.nilable(Shared::MaritalStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('marital_status') } }
998
- # The employee name
999
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
1000
- # The employee personal email
1001
- field :personal_email, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('personal_email') } }
1002
- # The employee personal phone number
1003
- field :personal_phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('personal_phone_number') } }
1004
- # The employee start date
1005
- field :start_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
1006
- # The employee tenure
1007
- field :tenure, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tenure') } }
1008
- # The employee termination date
1009
- field :termination_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('termination_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
1010
- # The updated_at date
1011
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
1012
- # The employee work anniversary
1013
- field :work_anniversary, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_anniversary'), 'decoder': Utils.datetime_from_iso_format(true) } }
1014
- # The employee work eligibility
1015
- field :work_eligibility, T.nilable(T::Array[Shared::WorkEligibility]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_eligibility') } }
1016
- # The employee work location
1017
- field :work_location, T.nilable(Shared::WorkLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_location') } }
1018
- # The employee work phone number
1019
- field :work_phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
1020
-
1021
-
1022
- sig { params(first_name: String, id: String, last_name: String, work_email: String, avatar: T.nilable(Shared::Avatar), avatar_url: T.nilable(String), birthday: T.nilable(DateTime), citizenships: T.nilable(T::Array[Shared::CountryCodeEnum]), company_name: T.nilable(String), cost_centers: T.nilable(T::Array[Shared::CostCenters]), created_at: T.nilable(DateTime), custom_fields: T.nilable(T::Array[Shared::EmployeeCustomFields]), date_of_birth: T.nilable(DateTime), department: T.nilable(String), display_name: T.nilable(String), employment_contract_type: T.nilable(Shared::EmploymentContractType), employment_status: T.nilable(Shared::EmploymentStatus), employment_type: T.nilable(Shared::EmploymentType), employments: T.nilable(T::Array[Shared::Employment]), ethnicity: T.nilable(Shared::Ethnicity), gender: T.nilable(Shared::Gender), hire_date: T.nilable(DateTime), home_location: T.nilable(Shared::HomeLocation), job_description: T.nilable(Shared::JobDescription), job_title: T.nilable(String), manager_id: T.nilable(String), marital_status: T.nilable(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[Shared::WorkEligibility]), work_location: T.nilable(Shared::WorkLocation), work_phone_number: T.nilable(String)).void }
1023
- def initialize(first_name: nil, id: nil, last_name: nil, work_email: nil, 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, gender: nil, hire_date: nil, home_location: nil, job_description: nil, job_title: 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_location: nil, work_phone_number: nil)
1024
- @first_name = first_name
1025
- @id = id
1026
- @last_name = last_name
1027
- @work_email = work_email
1028
- @avatar = avatar
1029
- @avatar_url = avatar_url
1030
- @birthday = birthday
1031
- @citizenships = citizenships
1032
- @company_name = company_name
1033
- @cost_centers = cost_centers
1034
- @created_at = created_at
1035
- @custom_fields = custom_fields
1036
- @date_of_birth = date_of_birth
1037
- @department = department
1038
- @display_name = display_name
1039
- @employment_contract_type = employment_contract_type
1040
- @employment_status = employment_status
1041
- @employment_type = employment_type
1042
- @employments = employments
1043
- @ethnicity = ethnicity
1044
- @gender = gender
1045
- @hire_date = hire_date
1046
- @home_location = home_location
1047
- @job_description = job_description
1048
- @job_title = job_title
1049
- @manager_id = manager_id
1050
- @marital_status = marital_status
1051
- @name = name
1052
- @personal_email = personal_email
1053
- @personal_phone_number = personal_phone_number
1054
- @start_date = start_date
1055
- @tenure = tenure
1056
- @termination_date = termination_date
1057
- @updated_at = updated_at
1058
- @work_anniversary = work_anniversary
1059
- @work_eligibility = work_eligibility
1060
- @work_location = work_location
1061
- @work_phone_number = work_phone_number
1062
- end
1063
- end
1064
- end
1065
- end