stackone_client 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stackone/models/operations/hris_get_company.rb +12 -2
  3. data/lib/stackone/models/operations/hris_get_employee.rb +12 -2
  4. data/lib/stackone/models/operations/hris_get_employee_document.rb +12 -2
  5. data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +12 -2
  6. data/lib/stackone/models/operations/hris_get_employment.rb +12 -2
  7. data/lib/stackone/models/operations/hris_get_location.rb +12 -2
  8. data/lib/stackone/models/operations/hris_get_time_off_request.rb +12 -2
  9. data/lib/stackone/models/operations/hris_list_companies.rb +12 -2
  10. data/lib/stackone/models/operations/hris_list_employee_documents.rb +12 -2
  11. data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +12 -2
  12. data/lib/stackone/models/operations/hris_list_employees.rb +12 -2
  13. data/lib/stackone/models/operations/hris_list_employments.rb +12 -2
  14. data/lib/stackone/models/operations/hris_list_locations.rb +12 -2
  15. data/lib/stackone/models/operations/hris_list_time_off_requests.rb +12 -2
  16. data/lib/stackone/models/shared/connectsession.rb +5 -5
  17. data/lib/stackone/models/shared/connectsessiontoken.rb +5 -5
  18. data/lib/stackone/models/shared/content.rb +9 -8
  19. data/lib/stackone/models/shared/costcenters.rb +28 -0
  20. data/lib/stackone/models/shared/countrycodeenum.rb +6 -6
  21. data/lib/stackone/models/shared/createtimeoffresult.rb +4 -4
  22. data/lib/stackone/models/shared/documentapimodel.rb +8 -8
  23. data/lib/stackone/models/shared/documenttypeenum.rb +3 -3
  24. data/lib/stackone/models/shared/employee.rb +84 -54
  25. data/lib/stackone/models/shared/employeecustomfields.rb +6 -6
  26. data/lib/stackone/models/shared/employment.rb +36 -28
  27. data/lib/stackone/models/shared/fileformatenum.rb +52 -0
  28. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +43 -36
  29. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +9 -9
  30. data/lib/stackone/models/shared/hrislocation.rb +15 -15
  31. data/lib/stackone/models/shared/timeoff.rb +6 -6
  32. data/lib/stackone/models/shared/workeligibility.rb +101 -0
  33. data/lib/stackone/sdk.rb +1 -4
  34. data/lib/stackone/sdkconfiguration.rb +3 -3
  35. data/lib/stackone_client.rb +5 -155
  36. metadata +5 -155
  37. data/lib/stackone/ats.rb +0 -1289
  38. data/lib/stackone/crm.rb +0 -323
  39. data/lib/stackone/marketing.rb +0 -584
  40. data/lib/stackone/models/operations/ats_create_application.rb +0 -53
  41. data/lib/stackone/models/operations/ats_create_candidate.rb +0 -53
  42. data/lib/stackone/models/operations/ats_create_candidate_note.rb +0 -56
  43. data/lib/stackone/models/operations/ats_create_offer.rb +0 -53
  44. data/lib/stackone/models/operations/ats_get_application.rb +0 -78
  45. data/lib/stackone/models/operations/ats_get_application_offer.rb +0 -81
  46. data/lib/stackone/models/operations/ats_get_application_scorecard.rb +0 -81
  47. data/lib/stackone/models/operations/ats_get_candidate.rb +0 -78
  48. data/lib/stackone/models/operations/ats_get_candidate_note.rb +0 -81
  49. data/lib/stackone/models/operations/ats_get_department.rb +0 -78
  50. data/lib/stackone/models/operations/ats_get_interview.rb +0 -78
  51. data/lib/stackone/models/operations/ats_get_interview_stage.rb +0 -78
  52. data/lib/stackone/models/operations/ats_get_job.rb +0 -78
  53. data/lib/stackone/models/operations/ats_get_job_posting.rb +0 -81
  54. data/lib/stackone/models/operations/ats_get_location.rb +0 -78
  55. data/lib/stackone/models/operations/ats_get_offer.rb +0 -78
  56. data/lib/stackone/models/operations/ats_get_rejected_reason.rb +0 -78
  57. data/lib/stackone/models/operations/ats_get_user.rb +0 -78
  58. data/lib/stackone/models/operations/ats_list_application_scorecards.rb +0 -78
  59. data/lib/stackone/models/operations/ats_list_applications.rb +0 -75
  60. data/lib/stackone/models/operations/ats_list_applications_offers.rb +0 -78
  61. data/lib/stackone/models/operations/ats_list_candidate_notes.rb +0 -78
  62. data/lib/stackone/models/operations/ats_list_candidates.rb +0 -75
  63. data/lib/stackone/models/operations/ats_list_departments.rb +0 -75
  64. data/lib/stackone/models/operations/ats_list_interview_stages.rb +0 -75
  65. data/lib/stackone/models/operations/ats_list_interviews.rb +0 -75
  66. data/lib/stackone/models/operations/ats_list_job_postings.rb +0 -78
  67. data/lib/stackone/models/operations/ats_list_jobs.rb +0 -75
  68. data/lib/stackone/models/operations/ats_list_locations.rb +0 -75
  69. data/lib/stackone/models/operations/ats_list_offers.rb +0 -75
  70. data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +0 -75
  71. data/lib/stackone/models/operations/ats_list_users.rb +0 -75
  72. data/lib/stackone/models/operations/ats_update_application.rb +0 -56
  73. data/lib/stackone/models/operations/ats_update_candidate.rb +0 -56
  74. data/lib/stackone/models/operations/crm_create_contact.rb +0 -53
  75. data/lib/stackone/models/operations/crm_get_account.rb +0 -78
  76. data/lib/stackone/models/operations/crm_get_contact.rb +0 -78
  77. data/lib/stackone/models/operations/crm_get_list.rb +0 -78
  78. data/lib/stackone/models/operations/crm_list_accounts.rb +0 -75
  79. data/lib/stackone/models/operations/crm_list_contacts.rb +0 -75
  80. data/lib/stackone/models/operations/crm_list_lists.rb +0 -75
  81. data/lib/stackone/models/operations/crm_update_contact.rb +0 -56
  82. data/lib/stackone/models/operations/marketing_create_email_template.rb +0 -53
  83. data/lib/stackone/models/operations/marketing_create_omni_channel_template.rb +0 -53
  84. data/lib/stackone/models/operations/marketing_create_push_template.rb +0 -53
  85. data/lib/stackone/models/operations/marketing_get_campaign.rb +0 -78
  86. data/lib/stackone/models/operations/marketing_get_email_template.rb +0 -78
  87. data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +0 -78
  88. data/lib/stackone/models/operations/marketing_get_push_template.rb +0 -78
  89. data/lib/stackone/models/operations/marketing_list_campaigns.rb +0 -75
  90. data/lib/stackone/models/operations/marketing_list_email_templates.rb +0 -75
  91. data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +0 -75
  92. data/lib/stackone/models/operations/marketing_list_push_templates.rb +0 -75
  93. data/lib/stackone/models/operations/marketing_update_email_template.rb +0 -56
  94. data/lib/stackone/models/operations/marketing_update_omni_channel_template.rb +0 -56
  95. data/lib/stackone/models/operations/marketing_update_push_template.rb +0 -56
  96. data/lib/stackone/models/shared/account.rb +0 -55
  97. data/lib/stackone/models/shared/accountaddress.rb +0 -342
  98. data/lib/stackone/models/shared/accountresult.rb +0 -29
  99. data/lib/stackone/models/shared/accountspaginated.rb +0 -34
  100. data/lib/stackone/models/shared/answer.rb +0 -64
  101. data/lib/stackone/models/shared/application.rb +0 -75
  102. data/lib/stackone/models/shared/applicationattachment.rb +0 -63
  103. data/lib/stackone/models/shared/applicationcandidate.rb +0 -31
  104. data/lib/stackone/models/shared/applicationresult.rb +0 -29
  105. data/lib/stackone/models/shared/applicationspaginated.rb +0 -34
  106. data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +0 -50
  107. data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +0 -45
  108. data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +0 -46
  109. data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +0 -57
  110. data/lib/stackone/models/shared/atscreateofferrequestdto.rb +0 -41
  111. data/lib/stackone/models/shared/atslocation.rb +0 -28
  112. data/lib/stackone/models/shared/atslocationresult.rb +0 -29
  113. data/lib/stackone/models/shared/atslocationspaginated.rb +0 -34
  114. data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +0 -48
  115. data/lib/stackone/models/shared/atsupdatecandidatesrequestdto.rb +0 -49
  116. data/lib/stackone/models/shared/attachmenttype.rb +0 -40
  117. data/lib/stackone/models/shared/campaign.rb +0 -120
  118. data/lib/stackone/models/shared/campaignresult.rb +0 -29
  119. data/lib/stackone/models/shared/campaignspaginated.rb +0 -34
  120. data/lib/stackone/models/shared/candidate.rb +0 -64
  121. data/lib/stackone/models/shared/candidateemail.rb +0 -28
  122. data/lib/stackone/models/shared/candidateresult.rb +0 -29
  123. data/lib/stackone/models/shared/candidatespaginated.rb +0 -34
  124. data/lib/stackone/models/shared/channelsenum.rb +0 -42
  125. data/lib/stackone/models/shared/compensation.rb +0 -149
  126. data/lib/stackone/models/shared/contact.rb +0 -52
  127. data/lib/stackone/models/shared/contactresult.rb +0 -29
  128. data/lib/stackone/models/shared/contactspaginated.rb +0 -34
  129. data/lib/stackone/models/shared/createcandidatenoteresult.rb +0 -31
  130. data/lib/stackone/models/shared/createofferresult.rb +0 -31
  131. data/lib/stackone/models/shared/createresult.rb +0 -31
  132. data/lib/stackone/models/shared/createtemplateresult.rb +0 -31
  133. data/lib/stackone/models/shared/crmcreatecontactrequestdto.rb +0 -43
  134. data/lib/stackone/models/shared/department.rb +0 -28
  135. data/lib/stackone/models/shared/departmentresult.rb +0 -29
  136. data/lib/stackone/models/shared/departmentspaginated.rb +0 -34
  137. data/lib/stackone/models/shared/emailmessages.rb +0 -93
  138. data/lib/stackone/models/shared/field.rb +0 -56
  139. data/lib/stackone/models/shared/hiringteam.rb +0 -37
  140. data/lib/stackone/models/shared/interview.rb +0 -91
  141. data/lib/stackone/models/shared/interviewer.rb +0 -37
  142. data/lib/stackone/models/shared/interviewpart.rb +0 -40
  143. data/lib/stackone/models/shared/interviewspaginated.rb +0 -34
  144. data/lib/stackone/models/shared/interviewsresult.rb +0 -29
  145. data/lib/stackone/models/shared/interviewstage.rb +0 -37
  146. data/lib/stackone/models/shared/interviewstageresult.rb +0 -29
  147. data/lib/stackone/models/shared/interviewstagespaginated.rb +0 -34
  148. data/lib/stackone/models/shared/job.rb +0 -65
  149. data/lib/stackone/models/shared/jobposting.rb +0 -182
  150. data/lib/stackone/models/shared/jobpostingresult.rb +0 -29
  151. data/lib/stackone/models/shared/jobpostingspaginated.rb +0 -34
  152. data/lib/stackone/models/shared/jobresult.rb +0 -29
  153. data/lib/stackone/models/shared/jobspaginated.rb +0 -34
  154. data/lib/stackone/models/shared/jobstatusenum.rb +0 -43
  155. data/lib/stackone/models/shared/list.rb +0 -67
  156. data/lib/stackone/models/shared/listresult.rb +0 -29
  157. data/lib/stackone/models/shared/listspaginated.rb +0 -34
  158. data/lib/stackone/models/shared/location.rb +0 -28
  159. data/lib/stackone/models/shared/marketingcreateemailtemplaterequestdto.rb +0 -34
  160. data/lib/stackone/models/shared/marketingcreatepushtemplaterequestdto.rb +0 -34
  161. data/lib/stackone/models/shared/marketingcreatetemplaterequestdto.rb +0 -34
  162. data/lib/stackone/models/shared/message.rb +0 -50
  163. data/lib/stackone/models/shared/note.rb +0 -69
  164. data/lib/stackone/models/shared/notecontentapimodel.rb +0 -25
  165. data/lib/stackone/models/shared/noteresult.rb +0 -29
  166. data/lib/stackone/models/shared/notespaginated.rb +0 -34
  167. data/lib/stackone/models/shared/offer.rb +0 -50
  168. data/lib/stackone/models/shared/offerhistory.rb +0 -37
  169. data/lib/stackone/models/shared/offerspaginated.rb +0 -34
  170. data/lib/stackone/models/shared/offersresult.rb +0 -29
  171. data/lib/stackone/models/shared/offerstatusenum.rb +0 -43
  172. data/lib/stackone/models/shared/pushmessages.rb +0 -81
  173. data/lib/stackone/models/shared/questionnaire.rb +0 -28
  174. data/lib/stackone/models/shared/rejectedreason.rb +0 -32
  175. data/lib/stackone/models/shared/rejectedreasonresult.rb +0 -29
  176. data/lib/stackone/models/shared/rejectedreasonspaginated.rb +0 -34
  177. data/lib/stackone/models/shared/rejectedreasontypeenum.rb +0 -40
  178. data/lib/stackone/models/shared/resultlink.rb +0 -28
  179. data/lib/stackone/models/shared/scorecard.rb +0 -65
  180. data/lib/stackone/models/shared/scorecardsection.rb +0 -31
  181. data/lib/stackone/models/shared/scorecardspaginated.rb +0 -34
  182. data/lib/stackone/models/shared/sociallink.rb +0 -28
  183. data/lib/stackone/models/shared/template.rb +0 -37
  184. data/lib/stackone/models/shared/templateresult.rb +0 -29
  185. data/lib/stackone/models/shared/templatespaginated.rb +0 -34
  186. data/lib/stackone/models/shared/updateresult.rb +0 -31
  187. data/lib/stackone/models/shared/user.rb +0 -40
  188. data/lib/stackone/models/shared/userresult.rb +0 -29
  189. data/lib/stackone/models/shared/userspaginated.rb +0 -34
@@ -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
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+
9
+ module StackOne
10
+ module Shared
11
+
12
+ class CostCenters < ::StackOne::Utils::FieldAugmented
13
+ extend T::Sig
14
+
15
+
16
+ field :distribution_percentage, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('distribution_percentage') } }
17
+
18
+ field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
19
+
20
+
21
+ sig { params(distribution_percentage: T.nilable(Float), name: T.nilable(String)).void }
22
+ def initialize(distribution_percentage: nil, name: nil)
23
+ @distribution_percentage = distribution_percentage
24
+ @name = name
25
+ end
26
+ end
27
+ end
28
+ end
@@ -8,8 +8,8 @@ require 'faraday'
8
8
 
9
9
  module StackOne
10
10
  module Shared
11
- # CountryCodeEnumValue - The ISO3166-1 Alpha2 Code of the Country
12
- class CountryCodeEnumValue < T::Enum
11
+ # Value - The ISO3166-1 Alpha2 Code of the Country
12
+ class Value < T::Enum
13
13
  enums do
14
14
  AF = new('AF')
15
15
  AL = new('AL')
@@ -268,13 +268,13 @@ module StackOne
268
268
  class CountryCodeEnum < ::StackOne::Utils::FieldAugmented
269
269
  extend T::Sig
270
270
 
271
- # The name of citizenship
272
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
271
+
272
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
273
273
  # The ISO3166-1 Alpha2 Code of the Country
274
- field :value, Shared::CountryCodeEnumValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CountryCodeEnumValue, false) } }
274
+ field :value, T.nilable(Shared::Value), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::Value, true) } }
275
275
 
276
276
 
277
- sig { params(source_value: String, value: Shared::CountryCodeEnumValue).void }
277
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::Value)).void }
278
278
  def initialize(source_value: nil, value: nil)
279
279
  @source_value = source_value
280
280
  @value = value
@@ -13,14 +13,14 @@ module StackOne
13
13
  extend T::Sig
14
14
 
15
15
 
16
- field :message, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
16
+ field :message, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
17
17
 
18
- field :status_code, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
18
+ field :status_code, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
19
19
 
20
- field :timestamp, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
20
+ field :timestamp, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(true) } }
21
21
 
22
22
 
23
- sig { params(message: String, status_code: Float, timestamp: DateTime).void }
23
+ sig { params(message: T.nilable(String), status_code: T.nilable(Float), timestamp: T.nilable(DateTime)).void }
24
24
  def initialize(message: nil, status_code: nil, timestamp: nil)
25
25
  @message = message
26
26
  @status_code = status_code
@@ -13,23 +13,23 @@ module StackOne
13
13
  class DocumentApiModel < ::StackOne::Utils::FieldAugmented
14
14
  extend T::Sig
15
15
 
16
- # The content of the document
17
- field :contents, T::Array[Shared::Content], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
18
- # The creation date of the document
16
+ # The content of the file
17
+ field :contents, T.nilable(T::Array[Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
18
+ # The creation date of the file
19
19
  field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
- # The unique ID of the document
20
+ # The unique ID of the file
21
21
  field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
22
- # The name of the document
22
+ # The name of the file
23
23
  field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
24
- # The path where the document is stored
24
+ # The path where the file is stored
25
25
  field :path, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
26
26
  # The content type of the document
27
27
  field :type, T.nilable(Shared::DocumentTypeEnum), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
28
- # The update date of the document
28
+ # The update date of the file
29
29
  field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
30
30
 
31
31
 
32
- sig { params(contents: T::Array[Shared::Content], created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), path: T.nilable(String), type: T.nilable(Shared::DocumentTypeEnum), updated_at: T.nilable(DateTime)).void }
32
+ sig { params(contents: T.nilable(T::Array[Shared::Content]), created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), path: T.nilable(String), type: T.nilable(Shared::DocumentTypeEnum), updated_at: T.nilable(DateTime)).void }
33
33
  def initialize(contents: nil, created_at: nil, id: nil, name: nil, path: nil, type: nil, updated_at: nil)
34
34
  @contents = contents
35
35
  @created_at = created_at
@@ -25,12 +25,12 @@ module StackOne
25
25
  extend T::Sig
26
26
 
27
27
 
28
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
28
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
29
29
 
30
- field :value, Shared::DocumentTypeEnumValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::DocumentTypeEnumValue, false) } }
30
+ field :value, T.nilable(Shared::DocumentTypeEnumValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::DocumentTypeEnumValue, true) } }
31
31
 
32
32
 
33
- sig { params(source_value: String, value: Shared::DocumentTypeEnumValue).void }
33
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::DocumentTypeEnumValue)).void }
34
34
  def initialize(source_value: nil, value: nil)
35
35
  @source_value = source_value
36
36
  @value = value
@@ -41,12 +41,12 @@ module StackOne
41
41
  extend T::Sig
42
42
 
43
43
 
44
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
44
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
45
45
 
46
- field :value, Shared::EmployeeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeValue, false) } }
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
47
 
48
48
 
49
- sig { params(source_value: String, value: Shared::EmployeeValue).void }
49
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeValue)).void }
50
50
  def initialize(source_value: nil, value: nil)
51
51
  @source_value = source_value
52
52
  @value = value
@@ -72,29 +72,36 @@ module StackOne
72
72
  extend T::Sig
73
73
 
74
74
 
75
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
75
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
76
76
 
77
- field :value, Shared::EmployeeSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasValue, false) } }
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
78
 
79
79
 
80
- sig { params(source_value: String, value: Shared::EmployeeSchemasValue).void }
80
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasValue)).void }
81
81
  def initialize(source_value: nil, value: nil)
82
82
  @source_value = source_value
83
83
  @value = value
84
84
  end
85
85
  end
86
86
 
87
- # EmployeeSchemasEmploymentTypeValue - The type of the employment.
87
+
88
88
  class EmployeeSchemasEmploymentTypeValue < T::Enum
89
89
  enums do
90
- PERMANENT = new('permanent')
90
+ FULL_TIME = new('full_time')
91
+ PART_TIME = new('part_time')
91
92
  CONTRACTOR = new('contractor')
92
93
  INTERN = new('intern')
94
+ PERMANENT = new('permanent')
93
95
  APPRENTICE = new('apprentice')
94
96
  FREELANCE = new('freelance')
97
+ TERMINATED = new('terminated')
95
98
  TEMPORARY = new('temporary')
96
99
  SEASONAL = new('seasonal')
97
100
  VOLUNTEER = new('volunteer')
101
+ PROBATION = new('probation')
102
+ INTERNAL = new('internal')
103
+ EXTERNAL = new('external')
104
+ EMPLOYER_OF_RECORD = new('employer_of_record')
98
105
  UNMAPPED_VALUE = new('unmapped_value')
99
106
  end
100
107
  end
@@ -104,13 +111,13 @@ module StackOne
104
111
  class EmploymentType < ::StackOne::Utils::FieldAugmented
105
112
  extend T::Sig
106
113
 
107
- # The source value of the employment type.
108
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
109
- # The type of the employment.
110
- field :value, Shared::EmployeeSchemasEmploymentTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEmploymentTypeValue, false) } }
111
114
 
115
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
112
116
 
113
- sig { params(source_value: String, value: Shared::EmployeeSchemasEmploymentTypeValue).void }
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 }
114
121
  def initialize(source_value: nil, value: nil)
115
122
  @source_value = source_value
116
123
  @value = value
@@ -139,12 +146,12 @@ module StackOne
139
146
  extend T::Sig
140
147
 
141
148
 
142
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
149
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
143
150
 
144
- field :value, Shared::EmployeeSchemasEthnicityValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEthnicityValue, false) } }
151
+ field :value, T.nilable(Shared::EmployeeSchemasEthnicityValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEthnicityValue, true) } }
145
152
 
146
153
 
147
- sig { params(source_value: String, value: Shared::EmployeeSchemasEthnicityValue).void }
154
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasEthnicityValue)).void }
148
155
  def initialize(source_value: nil, value: nil)
149
156
  @source_value = source_value
150
157
  @value = value
@@ -170,12 +177,12 @@ module StackOne
170
177
  extend T::Sig
171
178
 
172
179
 
173
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
180
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
174
181
 
175
- field :value, Shared::EmployeeSchemasGenderValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasGenderValue, false) } }
182
+ field :value, T.nilable(Shared::EmployeeSchemasGenderValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasGenderValue, true) } }
176
183
 
177
184
 
178
- sig { params(source_value: String, value: Shared::EmployeeSchemasGenderValue).void }
185
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasGenderValue)).void }
179
186
  def initialize(source_value: nil, value: nil)
180
187
  @source_value = source_value
181
188
  @value = value
@@ -439,23 +446,23 @@ module StackOne
439
446
 
440
447
 
441
448
  # The country code
442
- class EmployeeCountry < ::StackOne::Utils::FieldAugmented
449
+ class EmployeeSchemasCountry < ::StackOne::Utils::FieldAugmented
443
450
  extend T::Sig
444
451
 
445
- # The name of citizenship
446
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
452
+
453
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
447
454
  # The ISO3166-1 Alpha2 Code of the Country
448
- field :value, Shared::EmployeeSchemasHomeLocationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationValue, false) } }
455
+ field :value, T.nilable(Shared::EmployeeSchemasHomeLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationValue, true) } }
449
456
 
450
457
 
451
- sig { params(source_value: String, value: Shared::EmployeeSchemasHomeLocationValue).void }
458
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasHomeLocationValue)).void }
452
459
  def initialize(source_value: nil, value: nil)
453
460
  @source_value = source_value
454
461
  @value = value
455
462
  end
456
463
  end
457
464
 
458
- # EmployeeSchemasHomeLocationLocationTypeValue - The type of the location.
465
+
459
466
  class EmployeeSchemasHomeLocationLocationTypeValue < T::Enum
460
467
  enums do
461
468
  HOME = new('home')
@@ -466,16 +473,16 @@ module StackOne
466
473
 
467
474
 
468
475
  # The location type
469
- class EmployeeLocationType < ::StackOne::Utils::FieldAugmented
476
+ class EmployeeSchemasLocationType < ::StackOne::Utils::FieldAugmented
470
477
  extend T::Sig
471
478
 
472
- # The source value of the location type.
473
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
474
- # The type of the location.
475
- field :value, Shared::EmployeeSchemasHomeLocationLocationTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationLocationTypeValue, false) } }
476
479
 
480
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
477
481
 
478
- sig { params(source_value: String, value: Shared::EmployeeSchemasHomeLocationLocationTypeValue).void }
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 }
479
486
  def initialize(source_value: nil, value: nil)
480
487
  @source_value = source_value
481
488
  @value = value
@@ -489,7 +496,7 @@ module StackOne
489
496
  # The city where the location is situated
490
497
  field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
491
498
  # The country code
492
- field :country, T.nilable(Shared::EmployeeCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
499
+ field :country, T.nilable(Shared::EmployeeSchemasCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
493
500
  # The created_at date
494
501
  field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
495
502
  # The employee ID
@@ -497,7 +504,7 @@ module StackOne
497
504
  # The unique ID of the location
498
505
  field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
499
506
  # The location type
500
- field :location_type, T.nilable(Shared::EmployeeLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
507
+ field :location_type, T.nilable(Shared::EmployeeSchemasLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
501
508
  # The name of the location
502
509
  field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
503
510
  # The phone number of the location
@@ -514,7 +521,7 @@ module StackOne
514
521
  field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
515
522
 
516
523
 
517
- 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 }
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 }
518
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)
519
526
  @city = city
520
527
  @country = country
@@ -532,6 +539,20 @@ module StackOne
532
539
  end
533
540
  end
534
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
+
535
556
 
536
557
  class EmployeeSchemasMaritalStatusValue < T::Enum
537
558
  enums do
@@ -554,12 +575,12 @@ module StackOne
554
575
  extend T::Sig
555
576
 
556
577
 
557
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
578
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
558
579
 
559
- field :value, Shared::EmployeeSchemasMaritalStatusValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasMaritalStatusValue, false) } }
580
+ field :value, T.nilable(Shared::EmployeeSchemasMaritalStatusValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasMaritalStatusValue, true) } }
560
581
 
561
582
 
562
- sig { params(source_value: String, value: Shared::EmployeeSchemasMaritalStatusValue).void }
583
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasMaritalStatusValue)).void }
563
584
  def initialize(source_value: nil, value: nil)
564
585
  @source_value = source_value
565
586
  @value = value
@@ -823,23 +844,23 @@ module StackOne
823
844
 
824
845
 
825
846
  # The country code
826
- class EmployeeSchemasCountry < ::StackOne::Utils::FieldAugmented
847
+ class EmployeeCountry < ::StackOne::Utils::FieldAugmented
827
848
  extend T::Sig
828
849
 
829
- # The name of citizenship
830
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
850
+
851
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
831
852
  # The ISO3166-1 Alpha2 Code of the Country
832
- field :value, Shared::EmployeeSchemasWorkLocationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationValue, false) } }
853
+ field :value, T.nilable(Shared::EmployeeSchemasWorkLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationValue, true) } }
833
854
 
834
855
 
835
- sig { params(source_value: String, value: Shared::EmployeeSchemasWorkLocationValue).void }
856
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasWorkLocationValue)).void }
836
857
  def initialize(source_value: nil, value: nil)
837
858
  @source_value = source_value
838
859
  @value = value
839
860
  end
840
861
  end
841
862
 
842
- # EmployeeSchemasWorkLocationLocationTypeValue - The type of the location.
863
+
843
864
  class EmployeeSchemasWorkLocationLocationTypeValue < T::Enum
844
865
  enums do
845
866
  HOME = new('home')
@@ -850,16 +871,16 @@ module StackOne
850
871
 
851
872
 
852
873
  # The location type
853
- class EmployeeSchemasLocationType < ::StackOne::Utils::FieldAugmented
874
+ class EmployeeLocationType < ::StackOne::Utils::FieldAugmented
854
875
  extend T::Sig
855
876
 
856
- # The source value of the location type.
857
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
858
- # The type of the location.
859
- field :value, Shared::EmployeeSchemasWorkLocationLocationTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationLocationTypeValue, false) } }
860
877
 
878
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
861
879
 
862
- sig { params(source_value: String, value: Shared::EmployeeSchemasWorkLocationLocationTypeValue).void }
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 }
863
884
  def initialize(source_value: nil, value: nil)
864
885
  @source_value = source_value
865
886
  @value = value
@@ -873,7 +894,7 @@ module StackOne
873
894
  # The city where the location is situated
874
895
  field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
875
896
  # The country code
876
- field :country, T.nilable(Shared::EmployeeSchemasCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
897
+ field :country, T.nilable(Shared::EmployeeCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
877
898
  # The created_at date
878
899
  field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
879
900
  # The employee ID
@@ -881,7 +902,7 @@ module StackOne
881
902
  # The unique ID of the location
882
903
  field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
883
904
  # The location type
884
- field :location_type, T.nilable(Shared::EmployeeSchemasLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
905
+ field :location_type, T.nilable(Shared::EmployeeLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
885
906
  # The name of the location
886
907
  field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
887
908
  # The phone number of the location
@@ -898,7 +919,7 @@ module StackOne
898
919
  field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
899
920
 
900
921
 
901
- 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 }
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 }
902
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)
903
924
  @city = city
904
925
  @country = country
@@ -938,6 +959,8 @@ module StackOne
938
959
  field :citizenships, T.nilable(T::Array[Shared::CountryCodeEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('citizenships') } }
939
960
  # The employee company name
940
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') } }
941
964
  # The created_at date
942
965
  field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
943
966
  # The employee custom fields
@@ -964,6 +987,8 @@ module StackOne
964
987
  field :hire_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hire_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
965
988
  # The employee home location
966
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') } }
967
992
  # The employee job title
968
993
  field :job_title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_title') } }
969
994
  # The employee manager ID
@@ -986,14 +1011,16 @@ module StackOne
986
1011
  field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
987
1012
  # The employee work anniversary
988
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') } }
989
1016
  # The employee work location
990
1017
  field :work_location, T.nilable(Shared::WorkLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_location') } }
991
1018
  # The employee work phone number
992
1019
  field :work_phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
993
1020
 
994
1021
 
995
- 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), 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_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_location: T.nilable(Shared::WorkLocation), work_phone_number: T.nilable(String)).void }
996
- 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, 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_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_location: nil, work_phone_number: nil)
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)
997
1024
  @first_name = first_name
998
1025
  @id = id
999
1026
  @last_name = last_name
@@ -1003,6 +1030,7 @@ module StackOne
1003
1030
  @birthday = birthday
1004
1031
  @citizenships = citizenships
1005
1032
  @company_name = company_name
1033
+ @cost_centers = cost_centers
1006
1034
  @created_at = created_at
1007
1035
  @custom_fields = custom_fields
1008
1036
  @date_of_birth = date_of_birth
@@ -1016,6 +1044,7 @@ module StackOne
1016
1044
  @gender = gender
1017
1045
  @hire_date = hire_date
1018
1046
  @home_location = home_location
1047
+ @job_description = job_description
1019
1048
  @job_title = job_title
1020
1049
  @manager_id = manager_id
1021
1050
  @marital_status = marital_status
@@ -1027,6 +1056,7 @@ module StackOne
1027
1056
  @termination_date = termination_date
1028
1057
  @updated_at = updated_at
1029
1058
  @work_anniversary = work_anniversary
1059
+ @work_eligibility = work_eligibility
1030
1060
  @work_location = work_location
1031
1061
  @work_phone_number = work_phone_number
1032
1062
  end
@@ -22,16 +22,16 @@ module StackOne
22
22
 
23
23
 
24
24
  # The type of the custom field.
25
- class EmployeeCustomFieldsType < ::StackOne::Utils::FieldAugmented
25
+ class Type < ::StackOne::Utils::FieldAugmented
26
26
  extend T::Sig
27
27
 
28
28
 
29
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
29
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
30
30
 
31
- field :value, Shared::EmployeeCustomFieldsSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeCustomFieldsSchemasValue, false) } }
31
+ field :value, T.nilable(Shared::EmployeeCustomFieldsSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeCustomFieldsSchemasValue, true) } }
32
32
 
33
33
 
34
- sig { params(source_value: String, value: Shared::EmployeeCustomFieldsSchemasValue).void }
34
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeCustomFieldsSchemasValue)).void }
35
35
  def initialize(source_value: nil, value: nil)
36
36
  @source_value = source_value
37
37
  @value = value
@@ -61,14 +61,14 @@ module StackOne
61
61
  # An array of possible options for the custom field.
62
62
  field :options, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('options') } }
63
63
  # The type of the custom field.
64
- field :type, T.nilable(Shared::EmployeeCustomFieldsType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
64
+ field :type, T.nilable(Shared::Type), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
65
65
  # The value associated with the custom field.
66
66
  field :value, T.nilable(Shared::EmployeeCustomFieldsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
67
67
  # The unique identifier for the value of the custom field.
68
68
  field :value_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value_id') } }
69
69
 
70
70
 
71
- sig { params(description: T.nilable(String), id: T.nilable(String), name: T.nilable(String), options: T.nilable(T::Array[String]), type: T.nilable(Shared::EmployeeCustomFieldsType), value: T.nilable(Shared::EmployeeCustomFieldsValue), value_id: T.nilable(String)).void }
71
+ sig { params(description: T.nilable(String), id: T.nilable(String), name: T.nilable(String), options: T.nilable(T::Array[String]), type: T.nilable(Shared::Type), value: T.nilable(Shared::EmployeeCustomFieldsValue), value_id: T.nilable(String)).void }
72
72
  def initialize(description: nil, id: nil, name: nil, options: nil, type: nil, value: nil, value_id: nil)
73
73
  @description = description
74
74
  @id = id