stackone_client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stackone/models/operations/ats_get_application.rb +12 -2
  3. data/lib/stackone/models/operations/ats_get_application_offer.rb +12 -2
  4. data/lib/stackone/models/operations/ats_get_application_scorecard.rb +12 -2
  5. data/lib/stackone/models/operations/ats_get_candidate.rb +12 -2
  6. data/lib/stackone/models/operations/ats_get_candidate_note.rb +12 -2
  7. data/lib/stackone/models/operations/ats_get_department.rb +12 -2
  8. data/lib/stackone/models/operations/ats_get_interview.rb +12 -2
  9. data/lib/stackone/models/operations/ats_get_interview_stage.rb +12 -2
  10. data/lib/stackone/models/operations/ats_get_job.rb +12 -2
  11. data/lib/stackone/models/operations/ats_get_job_posting.rb +12 -2
  12. data/lib/stackone/models/operations/ats_get_location.rb +12 -2
  13. data/lib/stackone/models/operations/ats_get_offer.rb +12 -2
  14. data/lib/stackone/models/operations/ats_get_rejected_reason.rb +12 -2
  15. data/lib/stackone/models/operations/ats_get_user.rb +12 -2
  16. data/lib/stackone/models/operations/ats_list_application_scorecards.rb +12 -2
  17. data/lib/stackone/models/operations/ats_list_applications.rb +12 -2
  18. data/lib/stackone/models/operations/ats_list_applications_offers.rb +12 -2
  19. data/lib/stackone/models/operations/ats_list_candidate_notes.rb +12 -2
  20. data/lib/stackone/models/operations/ats_list_candidates.rb +12 -2
  21. data/lib/stackone/models/operations/ats_list_departments.rb +12 -2
  22. data/lib/stackone/models/operations/ats_list_interview_stages.rb +12 -2
  23. data/lib/stackone/models/operations/ats_list_interviews.rb +12 -2
  24. data/lib/stackone/models/operations/ats_list_job_postings.rb +12 -2
  25. data/lib/stackone/models/operations/ats_list_jobs.rb +12 -2
  26. data/lib/stackone/models/operations/ats_list_locations.rb +12 -2
  27. data/lib/stackone/models/operations/ats_list_offers.rb +12 -2
  28. data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +12 -2
  29. data/lib/stackone/models/operations/ats_list_users.rb +12 -2
  30. data/lib/stackone/models/operations/crm_get_account.rb +12 -2
  31. data/lib/stackone/models/operations/crm_get_contact.rb +12 -2
  32. data/lib/stackone/models/operations/crm_get_list.rb +12 -2
  33. data/lib/stackone/models/operations/crm_list_accounts.rb +12 -2
  34. data/lib/stackone/models/operations/crm_list_contacts.rb +12 -2
  35. data/lib/stackone/models/operations/crm_list_lists.rb +12 -2
  36. data/lib/stackone/models/operations/hris_get_company.rb +12 -2
  37. data/lib/stackone/models/operations/hris_get_employee.rb +12 -2
  38. data/lib/stackone/models/operations/hris_get_employee_document.rb +12 -2
  39. data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +12 -2
  40. data/lib/stackone/models/operations/hris_get_employment.rb +12 -2
  41. data/lib/stackone/models/operations/hris_get_location.rb +12 -2
  42. data/lib/stackone/models/operations/hris_get_time_off_request.rb +12 -2
  43. data/lib/stackone/models/operations/hris_list_companies.rb +12 -2
  44. data/lib/stackone/models/operations/hris_list_employee_documents.rb +12 -2
  45. data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +12 -2
  46. data/lib/stackone/models/operations/hris_list_employees.rb +12 -2
  47. data/lib/stackone/models/operations/hris_list_employments.rb +12 -2
  48. data/lib/stackone/models/operations/hris_list_locations.rb +12 -2
  49. data/lib/stackone/models/operations/hris_list_time_off_requests.rb +12 -2
  50. data/lib/stackone/models/operations/marketing_get_campaign.rb +12 -2
  51. data/lib/stackone/models/operations/marketing_get_email_template.rb +12 -2
  52. data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +12 -2
  53. data/lib/stackone/models/operations/marketing_get_push_template.rb +12 -2
  54. data/lib/stackone/models/operations/marketing_list_campaigns.rb +12 -2
  55. data/lib/stackone/models/operations/marketing_list_email_templates.rb +12 -2
  56. data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +12 -2
  57. data/lib/stackone/models/operations/marketing_list_push_templates.rb +12 -2
  58. data/lib/stackone/models/shared/accountaddress.rb +6 -6
  59. data/lib/stackone/models/shared/answer.rb +7 -7
  60. data/lib/stackone/models/shared/application.rb +92 -9
  61. data/lib/stackone/models/shared/applicationattachment.rb +2 -2
  62. data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +65 -8
  63. data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +15 -15
  64. data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +7 -7
  65. data/lib/stackone/models/shared/atscreateofferrequestdto.rb +41 -10
  66. data/lib/stackone/models/shared/atslocation.rb +3 -3
  67. data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +62 -5
  68. data/lib/stackone/models/shared/attachmenttype.rb +5 -5
  69. data/lib/stackone/models/shared/campaign.rb +11 -11
  70. data/lib/stackone/models/shared/candidate.rb +25 -25
  71. data/lib/stackone/models/shared/candidateemail.rb +3 -3
  72. data/lib/stackone/models/shared/channelsenum.rb +3 -3
  73. data/lib/stackone/models/shared/connectsession.rb +5 -5
  74. data/lib/stackone/models/shared/connectsessiontoken.rb +5 -5
  75. data/lib/stackone/models/shared/content.rb +9 -8
  76. data/lib/stackone/models/shared/costcenters.rb +25 -0
  77. data/lib/stackone/models/shared/countrycodeenum.rb +4 -4
  78. data/lib/stackone/models/shared/createtimeoffresult.rb +4 -4
  79. data/lib/stackone/models/shared/department.rb +3 -3
  80. data/lib/stackone/models/shared/documentfileformatenum.rb +40 -0
  81. data/lib/stackone/models/shared/documenttypeenum.rb +3 -3
  82. data/lib/stackone/models/shared/emailmessages.rb +10 -10
  83. data/lib/stackone/models/shared/employee.rb +48 -35
  84. data/lib/stackone/models/shared/employeecustomfields.rb +3 -3
  85. data/lib/stackone/models/shared/employment.rb +25 -18
  86. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +40 -33
  87. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +6 -6
  88. data/lib/stackone/models/shared/hrislocation.rb +7 -7
  89. data/lib/stackone/models/shared/interview.rb +46 -20
  90. data/lib/stackone/models/shared/interviewer.rb +6 -6
  91. data/lib/stackone/models/shared/interviewstage.rb +7 -7
  92. data/lib/stackone/models/shared/job.rb +49 -18
  93. data/lib/stackone/models/shared/{hiringteam.rb → jobhiringteam.rb} +1 -1
  94. data/lib/stackone/models/shared/jobposting.rb +21 -14
  95. data/lib/stackone/models/shared/{compensation.rb → jobpostingcompensation.rb} +23 -23
  96. data/lib/stackone/models/shared/{location.rb → jobpostinglocation.rb} +1 -1
  97. data/lib/stackone/models/shared/jobpostingquestionnaire.rb +34 -0
  98. data/lib/stackone/models/shared/list.rb +3 -3
  99. data/lib/stackone/models/shared/message.rb +7 -7
  100. data/lib/stackone/models/shared/note.rb +7 -7
  101. data/lib/stackone/models/shared/offer.rb +43 -12
  102. data/lib/stackone/models/shared/offerhistory.rb +5 -5
  103. data/lib/stackone/models/shared/pushmessages.rb +5 -5
  104. data/lib/stackone/models/shared/question.rb +73 -0
  105. data/lib/stackone/models/shared/questionmultiplechoiceanswers.rb +28 -0
  106. data/lib/stackone/models/shared/questionnaire.rb +2 -2
  107. data/lib/stackone/models/shared/rejectedreason.rb +33 -5
  108. data/lib/stackone/models/shared/sociallink.rb +3 -3
  109. data/lib/stackone/models/shared/timeoff.rb +6 -6
  110. data/lib/stackone/models/shared/user.rb +8 -8
  111. data/lib/stackone/sdkconfiguration.rb +3 -3
  112. data/lib/stackone_client.rb +9 -9
  113. metadata +10 -10
  114. data/lib/stackone/models/shared/applicationcandidate.rb +0 -31
  115. data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +0 -50
  116. data/lib/stackone/models/shared/jobstatusenum.rb +0 -43
  117. data/lib/stackone/models/shared/offerstatusenum.rb +0 -43
  118. data/lib/stackone/models/shared/rejectedreasontypeenum.rb +0 -40
@@ -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
@@ -13,24 +13,24 @@ module StackOne
13
13
  extend T::Sig
14
14
 
15
15
 
16
- field :body, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
16
+ field :body, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
17
17
 
18
- field :from, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('from') } }
19
-
20
- field :subject, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('subject') } }
18
+ field :from, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('from') } }
21
19
 
22
20
  field :preheader, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('preheader') } }
23
21
 
24
22
  field :reply_to, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('reply-to') } }
25
23
 
24
+ field :subject, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('subject') } }
25
+
26
26
 
27
- sig { params(body: String, from: String, subject: String, preheader: T.nilable(String), reply_to: T.nilable(String)).void }
28
- def initialize(body: nil, from: nil, subject: nil, preheader: nil, reply_to: nil)
27
+ sig { params(body: T.nilable(String), from: T.nilable(String), preheader: T.nilable(String), reply_to: T.nilable(String), subject: T.nilable(String)).void }
28
+ def initialize(body: nil, from: nil, preheader: nil, reply_to: nil, subject: nil)
29
29
  @body = body
30
30
  @from = from
31
- @subject = subject
32
31
  @preheader = preheader
33
32
  @reply_to = reply_to
33
+ @subject = subject
34
34
  end
35
35
  end
36
36
 
@@ -55,12 +55,12 @@ module StackOne
55
55
  extend T::Sig
56
56
 
57
57
 
58
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
58
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
59
59
 
60
- field :value, Shared::EmailMessagesValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmailMessagesValue, false) } }
60
+ field :value, T.nilable(Shared::EmailMessagesValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmailMessagesValue, true) } }
61
61
 
62
62
 
63
- sig { params(source_value: String, value: Shared::EmailMessagesValue).void }
63
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmailMessagesValue)).void }
64
64
  def initialize(source_value: nil, value: nil)
65
65
  @source_value = source_value
66
66
  @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,12 +72,12 @@ 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
@@ -87,14 +87,21 @@ module StackOne
87
87
  # EmployeeSchemasEmploymentTypeValue - The type of the employment.
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
@@ -105,12 +112,12 @@ module StackOne
105
112
  extend T::Sig
106
113
 
107
114
  # The source value of the employment type.
108
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
115
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
109
116
  # 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) } }
117
+ field :value, T.nilable(Shared::EmployeeSchemasEmploymentTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEmploymentTypeValue, true) } }
111
118
 
112
119
 
113
- sig { params(source_value: String, value: Shared::EmployeeSchemasEmploymentTypeValue).void }
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
@@ -442,13 +449,13 @@ module StackOne
442
449
  class EmployeeCountry < ::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
@@ -470,12 +477,12 @@ module StackOne
470
477
  extend T::Sig
471
478
 
472
479
  # The source value of the location type.
473
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
480
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
474
481
  # 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) } }
482
+ field :value, T.nilable(Shared::EmployeeSchemasHomeLocationLocationTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationLocationTypeValue, true) } }
476
483
 
477
484
 
478
- sig { params(source_value: String, value: Shared::EmployeeSchemasHomeLocationLocationTypeValue).void }
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
@@ -554,12 +561,12 @@ module StackOne
554
561
  extend T::Sig
555
562
 
556
563
 
557
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
564
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
558
565
 
559
- field :value, Shared::EmployeeSchemasMaritalStatusValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasMaritalStatusValue, false) } }
566
+ field :value, T.nilable(Shared::EmployeeSchemasMaritalStatusValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasMaritalStatusValue, true) } }
560
567
 
561
568
 
562
- sig { params(source_value: String, value: Shared::EmployeeSchemasMaritalStatusValue).void }
569
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasMaritalStatusValue)).void }
563
570
  def initialize(source_value: nil, value: nil)
564
571
  @source_value = source_value
565
572
  @value = value
@@ -826,13 +833,13 @@ module StackOne
826
833
  class EmployeeSchemasCountry < ::StackOne::Utils::FieldAugmented
827
834
  extend T::Sig
828
835
 
829
- # The name of citizenship
830
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
836
+
837
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
831
838
  # 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) } }
839
+ field :value, T.nilable(Shared::EmployeeSchemasWorkLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationValue, true) } }
833
840
 
834
841
 
835
- sig { params(source_value: String, value: Shared::EmployeeSchemasWorkLocationValue).void }
842
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasWorkLocationValue)).void }
836
843
  def initialize(source_value: nil, value: nil)
837
844
  @source_value = source_value
838
845
  @value = value
@@ -854,12 +861,12 @@ module StackOne
854
861
  extend T::Sig
855
862
 
856
863
  # The source value of the location type.
857
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
864
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
858
865
  # 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) } }
866
+ field :value, T.nilable(Shared::EmployeeSchemasWorkLocationLocationTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationLocationTypeValue, true) } }
860
867
 
861
868
 
862
- sig { params(source_value: String, value: Shared::EmployeeSchemasWorkLocationLocationTypeValue).void }
869
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmployeeSchemasWorkLocationLocationTypeValue)).void }
863
870
  def initialize(source_value: nil, value: nil)
864
871
  @source_value = source_value
865
872
  @value = value
@@ -938,6 +945,8 @@ module StackOne
938
945
  field :citizenships, T.nilable(T::Array[Shared::CountryCodeEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('citizenships') } }
939
946
  # The employee company name
940
947
  field :company_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_name') } }
948
+ # The employee cost centers
949
+ field :cost_centers, T.nilable(T::Array[Shared::CostCenters]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('cost_centers') } }
941
950
  # The created_at date
942
951
  field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
943
952
  # The employee custom fields
@@ -964,6 +973,8 @@ module StackOne
964
973
  field :hire_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hire_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
965
974
  # The employee home location
966
975
  field :home_location, T.nilable(Shared::HomeLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('home_location') } }
976
+ # The employee job description
977
+ field :job_description, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_description') } }
967
978
  # The employee job title
968
979
  field :job_title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_title') } }
969
980
  # The employee manager ID
@@ -992,8 +1003,8 @@ module StackOne
992
1003
  field :work_phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
993
1004
 
994
1005
 
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)
1006
+ 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(String), 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 }
1007
+ 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_location: nil, work_phone_number: nil)
997
1008
  @first_name = first_name
998
1009
  @id = id
999
1010
  @last_name = last_name
@@ -1003,6 +1014,7 @@ module StackOne
1003
1014
  @birthday = birthday
1004
1015
  @citizenships = citizenships
1005
1016
  @company_name = company_name
1017
+ @cost_centers = cost_centers
1006
1018
  @created_at = created_at
1007
1019
  @custom_fields = custom_fields
1008
1020
  @date_of_birth = date_of_birth
@@ -1016,6 +1028,7 @@ module StackOne
1016
1028
  @gender = gender
1017
1029
  @hire_date = hire_date
1018
1030
  @home_location = home_location
1031
+ @job_description = job_description
1019
1032
  @job_title = job_title
1020
1033
  @manager_id = manager_id
1021
1034
  @marital_status = marital_status
@@ -26,12 +26,12 @@ module StackOne
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
@@ -24,12 +24,12 @@ module StackOne
24
24
  extend T::Sig
25
25
 
26
26
 
27
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
27
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
28
28
 
29
- field :value, Shared::EmploymentValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentValue, false) } }
29
+ field :value, T.nilable(Shared::EmploymentValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentValue, true) } }
30
30
 
31
31
 
32
- sig { params(source_value: String, value: Shared::EmploymentValue).void }
32
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmploymentValue)).void }
33
33
  def initialize(source_value: nil, value: nil)
34
34
  @source_value = source_value
35
35
  @value = value
@@ -39,14 +39,21 @@ module StackOne
39
39
  # EmploymentSchemasValue - The type of the employment.
40
40
  class EmploymentSchemasValue < T::Enum
41
41
  enums do
42
- PERMANENT = new('permanent')
42
+ FULL_TIME = new('full_time')
43
+ PART_TIME = new('part_time')
43
44
  CONTRACTOR = new('contractor')
44
45
  INTERN = new('intern')
46
+ PERMANENT = new('permanent')
45
47
  APPRENTICE = new('apprentice')
46
48
  FREELANCE = new('freelance')
49
+ TERMINATED = new('terminated')
47
50
  TEMPORARY = new('temporary')
48
51
  SEASONAL = new('seasonal')
49
52
  VOLUNTEER = new('volunteer')
53
+ PROBATION = new('probation')
54
+ INTERNAL = new('internal')
55
+ EXTERNAL = new('external')
56
+ EMPLOYER_OF_RECORD = new('employer_of_record')
50
57
  UNMAPPED_VALUE = new('unmapped_value')
51
58
  end
52
59
  end
@@ -57,12 +64,12 @@ module StackOne
57
64
  extend T::Sig
58
65
 
59
66
  # The source value of the employment type.
60
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
67
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
61
68
  # The type of the employment.
62
- field :value, Shared::EmploymentSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasValue, false) } }
69
+ field :value, T.nilable(Shared::EmploymentSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasValue, true) } }
63
70
 
64
71
 
65
- sig { params(source_value: String, value: Shared::EmploymentSchemasValue).void }
72
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmploymentSchemasValue)).void }
66
73
  def initialize(source_value: nil, value: nil)
67
74
  @source_value = source_value
68
75
  @value = value
@@ -91,16 +98,16 @@ module StackOne
91
98
 
92
99
 
93
100
  # The pay frequency
94
- class EmploymentPayFrequency < ::StackOne::Utils::FieldAugmented
101
+ class PayFrequency < ::StackOne::Utils::FieldAugmented
95
102
  extend T::Sig
96
103
 
97
104
  # The source value of the pay frequency.
98
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
105
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
99
106
  # The pay frequency of the job postings.
100
- field :value, Shared::EmploymentSchemasPayFrequencyValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasPayFrequencyValue, false) } }
107
+ field :value, T.nilable(Shared::EmploymentSchemasPayFrequencyValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasPayFrequencyValue, true) } }
101
108
 
102
109
 
103
- sig { params(source_value: String, value: Shared::EmploymentSchemasPayFrequencyValue).void }
110
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmploymentSchemasPayFrequencyValue)).void }
104
111
  def initialize(source_value: nil, value: nil)
105
112
  @source_value = source_value
106
113
  @value = value
@@ -125,16 +132,16 @@ module StackOne
125
132
 
126
133
 
127
134
  # The pay period
128
- class EmploymentPayPeriod < ::StackOne::Utils::FieldAugmented
135
+ class PayPeriod < ::StackOne::Utils::FieldAugmented
129
136
  extend T::Sig
130
137
 
131
138
  # The source value of the pay period.
132
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
139
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
133
140
  # The pay period of the job postings.
134
- field :value, Shared::EmploymentSchemasPayPeriodValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasPayPeriodValue, false) } }
141
+ field :value, T.nilable(Shared::EmploymentSchemasPayPeriodValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasPayPeriodValue, true) } }
135
142
 
136
143
 
137
- sig { params(source_value: String, value: Shared::EmploymentSchemasPayPeriodValue).void }
144
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmploymentSchemasPayPeriodValue)).void }
138
145
  def initialize(source_value: nil, value: nil)
139
146
  @source_value = source_value
140
147
  @value = value
@@ -162,16 +169,16 @@ module StackOne
162
169
  # The currency used for pay
163
170
  field :pay_currency, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_currency') } }
164
171
  # The pay frequency
165
- field :pay_frequency, T.nilable(Shared::EmploymentPayFrequency), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_frequency') } }
172
+ field :pay_frequency, T.nilable(Shared::PayFrequency), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_frequency') } }
166
173
  # The pay period
167
- field :pay_period, T.nilable(Shared::EmploymentPayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
174
+ field :pay_period, T.nilable(Shared::PayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
168
175
  # The pay rate for the employee
169
176
  field :pay_rate, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_rate') } }
170
177
  # The updated_at date
171
178
  field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
172
179
 
173
180
 
174
- sig { params(employee_id: String, created_at: T.nilable(DateTime), effective_date: T.nilable(DateTime), employment_contract_type: T.nilable(Shared::EmploymentEmploymentContractType), employment_type: T.nilable(Shared::EmploymentEmploymentType), id: T.nilable(String), job_title: T.nilable(String), pay_currency: T.nilable(String), pay_frequency: T.nilable(Shared::EmploymentPayFrequency), pay_period: T.nilable(Shared::EmploymentPayPeriod), pay_rate: T.nilable(String), updated_at: T.nilable(DateTime)).void }
181
+ sig { params(employee_id: String, created_at: T.nilable(DateTime), effective_date: T.nilable(DateTime), employment_contract_type: T.nilable(Shared::EmploymentEmploymentContractType), employment_type: T.nilable(Shared::EmploymentEmploymentType), id: T.nilable(String), job_title: T.nilable(String), pay_currency: T.nilable(String), pay_frequency: T.nilable(Shared::PayFrequency), pay_period: T.nilable(Shared::PayPeriod), pay_rate: T.nilable(String), updated_at: T.nilable(DateTime)).void }
175
182
  def initialize(employee_id: nil, created_at: nil, effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, updated_at: nil)
176
183
  @employee_id = employee_id
177
184
  @created_at = created_at