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.
- checksums.yaml +4 -4
- data/lib/stackone/models/operations/ats_get_application.rb +12 -2
- data/lib/stackone/models/operations/ats_get_application_offer.rb +12 -2
- data/lib/stackone/models/operations/ats_get_application_scorecard.rb +12 -2
- data/lib/stackone/models/operations/ats_get_candidate.rb +12 -2
- data/lib/stackone/models/operations/ats_get_candidate_note.rb +12 -2
- data/lib/stackone/models/operations/ats_get_department.rb +12 -2
- data/lib/stackone/models/operations/ats_get_interview.rb +12 -2
- data/lib/stackone/models/operations/ats_get_interview_stage.rb +12 -2
- data/lib/stackone/models/operations/ats_get_job.rb +12 -2
- data/lib/stackone/models/operations/ats_get_job_posting.rb +12 -2
- data/lib/stackone/models/operations/ats_get_location.rb +12 -2
- data/lib/stackone/models/operations/ats_get_offer.rb +12 -2
- data/lib/stackone/models/operations/ats_get_rejected_reason.rb +12 -2
- data/lib/stackone/models/operations/ats_get_user.rb +12 -2
- data/lib/stackone/models/operations/ats_list_application_scorecards.rb +12 -2
- data/lib/stackone/models/operations/ats_list_applications.rb +12 -2
- data/lib/stackone/models/operations/ats_list_applications_offers.rb +12 -2
- data/lib/stackone/models/operations/ats_list_candidate_notes.rb +12 -2
- data/lib/stackone/models/operations/ats_list_candidates.rb +12 -2
- data/lib/stackone/models/operations/ats_list_departments.rb +12 -2
- data/lib/stackone/models/operations/ats_list_interview_stages.rb +12 -2
- data/lib/stackone/models/operations/ats_list_interviews.rb +12 -2
- data/lib/stackone/models/operations/ats_list_job_postings.rb +12 -2
- data/lib/stackone/models/operations/ats_list_jobs.rb +12 -2
- data/lib/stackone/models/operations/ats_list_locations.rb +12 -2
- data/lib/stackone/models/operations/ats_list_offers.rb +12 -2
- data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +12 -2
- data/lib/stackone/models/operations/ats_list_users.rb +12 -2
- data/lib/stackone/models/operations/crm_get_account.rb +12 -2
- data/lib/stackone/models/operations/crm_get_contact.rb +12 -2
- data/lib/stackone/models/operations/crm_get_list.rb +12 -2
- data/lib/stackone/models/operations/crm_list_accounts.rb +12 -2
- data/lib/stackone/models/operations/crm_list_contacts.rb +12 -2
- data/lib/stackone/models/operations/crm_list_lists.rb +12 -2
- data/lib/stackone/models/operations/hris_get_company.rb +12 -2
- data/lib/stackone/models/operations/hris_get_employee.rb +12 -2
- data/lib/stackone/models/operations/hris_get_employee_document.rb +12 -2
- data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +12 -2
- data/lib/stackone/models/operations/hris_get_employment.rb +12 -2
- data/lib/stackone/models/operations/hris_get_location.rb +12 -2
- data/lib/stackone/models/operations/hris_get_time_off_request.rb +12 -2
- data/lib/stackone/models/operations/hris_list_companies.rb +12 -2
- data/lib/stackone/models/operations/hris_list_employee_documents.rb +12 -2
- data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +12 -2
- data/lib/stackone/models/operations/hris_list_employees.rb +12 -2
- data/lib/stackone/models/operations/hris_list_employments.rb +12 -2
- data/lib/stackone/models/operations/hris_list_locations.rb +12 -2
- data/lib/stackone/models/operations/hris_list_time_off_requests.rb +12 -2
- data/lib/stackone/models/operations/marketing_get_campaign.rb +12 -2
- data/lib/stackone/models/operations/marketing_get_email_template.rb +12 -2
- data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +12 -2
- data/lib/stackone/models/operations/marketing_get_push_template.rb +12 -2
- data/lib/stackone/models/operations/marketing_list_campaigns.rb +12 -2
- data/lib/stackone/models/operations/marketing_list_email_templates.rb +12 -2
- data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +12 -2
- data/lib/stackone/models/operations/marketing_list_push_templates.rb +12 -2
- data/lib/stackone/models/shared/accountaddress.rb +6 -6
- data/lib/stackone/models/shared/answer.rb +7 -7
- data/lib/stackone/models/shared/application.rb +92 -9
- data/lib/stackone/models/shared/applicationattachment.rb +2 -2
- data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +65 -8
- data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +15 -15
- data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +7 -7
- data/lib/stackone/models/shared/atscreateofferrequestdto.rb +41 -10
- data/lib/stackone/models/shared/atslocation.rb +3 -3
- data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +62 -5
- data/lib/stackone/models/shared/attachmenttype.rb +5 -5
- data/lib/stackone/models/shared/campaign.rb +11 -11
- data/lib/stackone/models/shared/candidate.rb +25 -25
- data/lib/stackone/models/shared/candidateemail.rb +3 -3
- data/lib/stackone/models/shared/channelsenum.rb +3 -3
- data/lib/stackone/models/shared/connectsession.rb +5 -5
- data/lib/stackone/models/shared/connectsessiontoken.rb +5 -5
- data/lib/stackone/models/shared/content.rb +9 -8
- data/lib/stackone/models/shared/costcenters.rb +25 -0
- data/lib/stackone/models/shared/countrycodeenum.rb +4 -4
- data/lib/stackone/models/shared/createtimeoffresult.rb +4 -4
- data/lib/stackone/models/shared/department.rb +3 -3
- data/lib/stackone/models/shared/documentfileformatenum.rb +40 -0
- data/lib/stackone/models/shared/documenttypeenum.rb +3 -3
- data/lib/stackone/models/shared/emailmessages.rb +10 -10
- data/lib/stackone/models/shared/employee.rb +48 -35
- data/lib/stackone/models/shared/employeecustomfields.rb +3 -3
- data/lib/stackone/models/shared/employment.rb +25 -18
- data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +40 -33
- data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +6 -6
- data/lib/stackone/models/shared/hrislocation.rb +7 -7
- data/lib/stackone/models/shared/interview.rb +46 -20
- data/lib/stackone/models/shared/interviewer.rb +6 -6
- data/lib/stackone/models/shared/interviewstage.rb +7 -7
- data/lib/stackone/models/shared/job.rb +49 -18
- data/lib/stackone/models/shared/{hiringteam.rb → jobhiringteam.rb} +1 -1
- data/lib/stackone/models/shared/jobposting.rb +21 -14
- data/lib/stackone/models/shared/{compensation.rb → jobpostingcompensation.rb} +23 -23
- data/lib/stackone/models/shared/{location.rb → jobpostinglocation.rb} +1 -1
- data/lib/stackone/models/shared/jobpostingquestionnaire.rb +34 -0
- data/lib/stackone/models/shared/list.rb +3 -3
- data/lib/stackone/models/shared/message.rb +7 -7
- data/lib/stackone/models/shared/note.rb +7 -7
- data/lib/stackone/models/shared/offer.rb +43 -12
- data/lib/stackone/models/shared/offerhistory.rb +5 -5
- data/lib/stackone/models/shared/pushmessages.rb +5 -5
- data/lib/stackone/models/shared/question.rb +73 -0
- data/lib/stackone/models/shared/questionmultiplechoiceanswers.rb +28 -0
- data/lib/stackone/models/shared/questionnaire.rb +2 -2
- data/lib/stackone/models/shared/rejectedreason.rb +33 -5
- data/lib/stackone/models/shared/sociallink.rb +3 -3
- data/lib/stackone/models/shared/timeoff.rb +6 -6
- data/lib/stackone/models/shared/user.rb +8 -8
- data/lib/stackone/sdkconfiguration.rb +3 -3
- data/lib/stackone_client.rb +9 -9
- metadata +10 -10
- data/lib/stackone/models/shared/applicationcandidate.rb +0 -31
- data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +0 -50
- data/lib/stackone/models/shared/jobstatusenum.rb +0 -43
- data/lib/stackone/models/shared/offerstatusenum.rb +0 -43
- data/lib/stackone/models/shared/rejectedreasontypeenum.rb +0 -40
@@ -41,12 +41,12 @@ module StackOne
|
|
41
41
|
extend T::Sig
|
42
42
|
|
43
43
|
|
44
|
-
field :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::HrisCreateEmployeeRequestDtoValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoValue,
|
46
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoValue, true) } }
|
47
47
|
|
48
48
|
|
49
|
-
sig { params(source_value:
|
49
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoValue)).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,
|
75
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
76
76
|
|
77
|
-
field :value, Shared::HrisCreateEmployeeRequestDtoSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasValue,
|
77
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasValue, true) } }
|
78
78
|
|
79
79
|
|
80
|
-
sig { params(source_value:
|
80
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasValue)).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
|
# HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue - The type of the employment.
|
88
88
|
class HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue < T::Enum
|
89
89
|
enums do
|
90
|
-
|
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,
|
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::HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue,
|
117
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue, true) } }
|
111
118
|
|
112
119
|
|
113
|
-
sig { params(source_value:
|
120
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue)).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,
|
149
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
143
150
|
|
144
|
-
field :value, Shared::HrisCreateEmployeeRequestDtoSchemasEthnicityValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasEthnicityValue,
|
151
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasEthnicityValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasEthnicityValue, true) } }
|
145
152
|
|
146
153
|
|
147
|
-
sig { params(source_value:
|
154
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasEthnicityValue)).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,
|
180
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
174
181
|
|
175
|
-
field :value, Shared::HrisCreateEmployeeRequestDtoSchemasGenderValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasGenderValue,
|
182
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasGenderValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasGenderValue, true) } }
|
176
183
|
|
177
184
|
|
178
|
-
sig { params(source_value:
|
185
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasGenderValue)).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 HrisCreateEmployeeRequestDtoCountry < ::StackOne::Utils::FieldAugmented
|
443
450
|
extend T::Sig
|
444
451
|
|
445
|
-
|
446
|
-
field :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::HrisCreateEmployeeRequestDtoSchemasHomeLocationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationValue,
|
455
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationValue, true) } }
|
449
456
|
|
450
457
|
|
451
|
-
sig { params(source_value:
|
458
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationValue)).void }
|
452
459
|
def initialize(source_value: nil, value: nil)
|
453
460
|
@source_value = source_value
|
454
461
|
@value = value
|
@@ -4291,12 +4298,12 @@ module StackOne
|
|
4291
4298
|
extend T::Sig
|
4292
4299
|
|
4293
4300
|
|
4294
|
-
field :source_value,
|
4301
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
4295
4302
|
|
4296
|
-
field :value, Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue,
|
4303
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue, true) } }
|
4297
4304
|
|
4298
4305
|
|
4299
|
-
sig { params(source_value:
|
4306
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasHomeLocationStateValue)).void }
|
4300
4307
|
def initialize(source_value: nil, value: nil)
|
4301
4308
|
@source_value = source_value
|
4302
4309
|
@value = value
|
@@ -4360,12 +4367,12 @@ module StackOne
|
|
4360
4367
|
extend T::Sig
|
4361
4368
|
|
4362
4369
|
|
4363
|
-
field :source_value,
|
4370
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
4364
4371
|
|
4365
|
-
field :value, Shared::HrisCreateEmployeeRequestDtoSchemasMaritalStatusValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasMaritalStatusValue,
|
4372
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasMaritalStatusValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasMaritalStatusValue, true) } }
|
4366
4373
|
|
4367
4374
|
|
4368
|
-
sig { params(source_value:
|
4375
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasMaritalStatusValue)).void }
|
4369
4376
|
def initialize(source_value: nil, value: nil)
|
4370
4377
|
@source_value = source_value
|
4371
4378
|
@value = value
|
@@ -4632,13 +4639,13 @@ module StackOne
|
|
4632
4639
|
class HrisCreateEmployeeRequestDtoSchemasCountry < ::StackOne::Utils::FieldAugmented
|
4633
4640
|
extend T::Sig
|
4634
4641
|
|
4635
|
-
|
4636
|
-
field :source_value,
|
4642
|
+
|
4643
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
4637
4644
|
# The ISO3166-1 Alpha2 Code of the Country
|
4638
|
-
field :value, Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationValue,
|
4645
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationValue, true) } }
|
4639
4646
|
|
4640
4647
|
|
4641
|
-
sig { params(source_value:
|
4648
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationValue)).void }
|
4642
4649
|
def initialize(source_value: nil, value: nil)
|
4643
4650
|
@source_value = source_value
|
4644
4651
|
@value = value
|
@@ -8481,12 +8488,12 @@ module StackOne
|
|
8481
8488
|
extend T::Sig
|
8482
8489
|
|
8483
8490
|
|
8484
|
-
field :source_value,
|
8491
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
8485
8492
|
|
8486
|
-
field :value, Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue,
|
8493
|
+
field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue, true) } }
|
8487
8494
|
|
8488
8495
|
|
8489
|
-
sig { params(source_value:
|
8496
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue)).void }
|
8490
8497
|
def initialize(source_value: nil, value: nil)
|
8491
8498
|
@source_value = source_value
|
8492
8499
|
@value = value
|
@@ -22,12 +22,12 @@ module StackOne
|
|
22
22
|
extend T::Sig
|
23
23
|
|
24
24
|
|
25
|
-
field :source_value,
|
25
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
26
26
|
|
27
|
-
field :value, Shared::HrisCreateTimeOffRequestDtoValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateTimeOffRequestDtoValue,
|
27
|
+
field :value, T.nilable(Shared::HrisCreateTimeOffRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateTimeOffRequestDtoValue, true) } }
|
28
28
|
|
29
29
|
|
30
|
-
sig { params(source_value:
|
30
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateTimeOffRequestDtoValue)).void }
|
31
31
|
def initialize(source_value: nil, value: nil)
|
32
32
|
@source_value = source_value
|
33
33
|
@value = value
|
@@ -49,12 +49,12 @@ module StackOne
|
|
49
49
|
extend T::Sig
|
50
50
|
|
51
51
|
|
52
|
-
field :source_value,
|
52
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
53
53
|
|
54
|
-
field :value, Shared::HrisCreateTimeOffRequestDtoSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateTimeOffRequestDtoSchemasValue,
|
54
|
+
field :value, T.nilable(Shared::HrisCreateTimeOffRequestDtoSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateTimeOffRequestDtoSchemasValue, true) } }
|
55
55
|
|
56
56
|
|
57
|
-
sig { params(source_value:
|
57
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HrisCreateTimeOffRequestDtoSchemasValue)).void }
|
58
58
|
def initialize(source_value: nil, value: nil)
|
59
59
|
@source_value = source_value
|
60
60
|
@value = value
|
@@ -268,13 +268,13 @@ module StackOne
|
|
268
268
|
class HRISLocationCountry < ::StackOne::Utils::FieldAugmented
|
269
269
|
extend T::Sig
|
270
270
|
|
271
|
-
|
272
|
-
field :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::HRISLocationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationValue,
|
274
|
+
field :value, T.nilable(Shared::HRISLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationValue, true) } }
|
275
275
|
|
276
276
|
|
277
|
-
sig { params(source_value:
|
277
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HRISLocationValue)).void }
|
278
278
|
def initialize(source_value: nil, value: nil)
|
279
279
|
@source_value = source_value
|
280
280
|
@value = value
|
@@ -296,12 +296,12 @@ module StackOne
|
|
296
296
|
extend T::Sig
|
297
297
|
|
298
298
|
# The source value of the location type.
|
299
|
-
field :source_value,
|
299
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
300
300
|
# The type of the location.
|
301
|
-
field :value, Shared::HRISLocationSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationSchemasValue,
|
301
|
+
field :value, T.nilable(Shared::HRISLocationSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationSchemasValue, true) } }
|
302
302
|
|
303
303
|
|
304
|
-
sig { params(source_value:
|
304
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HRISLocationSchemasValue)).void }
|
305
305
|
def initialize(source_value: nil, value: nil)
|
306
306
|
@source_value = source_value
|
307
307
|
@value = value
|
@@ -8,6 +8,32 @@ require 'faraday'
|
|
8
8
|
|
9
9
|
module StackOne
|
10
10
|
module Shared
|
11
|
+
|
12
|
+
class InterviewInterviewStage < ::StackOne::Utils::FieldAugmented
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
# Interview Stage created date
|
16
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
17
|
+
|
18
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
19
|
+
|
20
|
+
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
21
|
+
|
22
|
+
field :order, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } }
|
23
|
+
# Interview Stage updated date
|
24
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
25
|
+
|
26
|
+
|
27
|
+
sig { params(created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), order: T.nilable(Float), updated_at: T.nilable(DateTime)).void }
|
28
|
+
def initialize(created_at: nil, id: nil, name: nil, order: nil, updated_at: nil)
|
29
|
+
@created_at = created_at
|
30
|
+
@id = id
|
31
|
+
@name = name
|
32
|
+
@order = order
|
33
|
+
@updated_at = updated_at
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
11
37
|
# InterviewValue - The status of the interview.
|
12
38
|
class InterviewValue < T::Enum
|
13
39
|
enums do
|
@@ -26,12 +52,12 @@ module StackOne
|
|
26
52
|
extend T::Sig
|
27
53
|
|
28
54
|
# The source value of the interview status.
|
29
|
-
field :source_value,
|
55
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
30
56
|
# The status of the interview.
|
31
|
-
field :value, Shared::InterviewValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::InterviewValue,
|
57
|
+
field :value, T.nilable(Shared::InterviewValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::InterviewValue, true) } }
|
32
58
|
|
33
59
|
|
34
|
-
sig { params(source_value:
|
60
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::InterviewValue)).void }
|
35
61
|
def initialize(source_value: nil, value: nil)
|
36
62
|
@source_value = source_value
|
37
63
|
@value = value
|
@@ -43,47 +69,47 @@ module StackOne
|
|
43
69
|
extend T::Sig
|
44
70
|
|
45
71
|
|
46
|
-
field :application_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_id') } }
|
47
|
-
# Interview end date
|
48
|
-
field :end_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
49
|
-
|
50
72
|
field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
51
73
|
|
52
|
-
field :
|
53
|
-
|
54
|
-
field :interviewer_ids, T::Array[String], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewer_ids') } }
|
55
|
-
# Interview start date
|
56
|
-
field :start_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
74
|
+
field :application_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_id') } }
|
57
75
|
# Interview created date
|
58
76
|
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
77
|
+
# Interview end date
|
78
|
+
field :end_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
59
79
|
|
60
80
|
field :interview_parts, T.nilable(T::Array[Shared::InterviewPart]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_parts') } }
|
61
81
|
|
62
|
-
field :interview_stage, T.nilable(
|
82
|
+
field :interview_stage, T.nilable(Shared::InterviewInterviewStage), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage') } }
|
83
|
+
|
84
|
+
field :interview_stage_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage_id') } }
|
63
85
|
|
64
86
|
field :interview_status, T.nilable(Shared::InterviewStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_status') } }
|
65
87
|
|
88
|
+
field :interviewer_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewer_ids') } }
|
89
|
+
|
66
90
|
field :interviewers, T.nilable(T::Array[Shared::Interviewer]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewers') } }
|
67
91
|
|
68
92
|
field :meeting_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('meeting_url') } }
|
93
|
+
# Interview start date
|
94
|
+
field :start_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
69
95
|
# Interview updated date
|
70
96
|
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
71
97
|
|
72
98
|
|
73
|
-
sig { params(
|
74
|
-
def initialize(
|
75
|
-
@application_id = application_id
|
76
|
-
@end_at = end_at
|
99
|
+
sig { params(id: String, application_id: T.nilable(String), created_at: T.nilable(DateTime), end_at: T.nilable(DateTime), interview_parts: T.nilable(T::Array[Shared::InterviewPart]), interview_stage: T.nilable(Shared::InterviewInterviewStage), interview_stage_id: T.nilable(String), interview_status: T.nilable(Shared::InterviewStatus), interviewer_ids: T.nilable(T::Array[String]), interviewers: T.nilable(T::Array[Shared::Interviewer]), meeting_url: T.nilable(String), start_at: T.nilable(DateTime), updated_at: T.nilable(DateTime)).void }
|
100
|
+
def initialize(id: nil, application_id: nil, created_at: nil, end_at: nil, interview_parts: nil, interview_stage: nil, interview_stage_id: nil, interview_status: nil, interviewer_ids: nil, interviewers: nil, meeting_url: nil, start_at: nil, updated_at: nil)
|
77
101
|
@id = id
|
78
|
-
@
|
79
|
-
@interviewer_ids = interviewer_ids
|
80
|
-
@start_at = start_at
|
102
|
+
@application_id = application_id
|
81
103
|
@created_at = created_at
|
104
|
+
@end_at = end_at
|
82
105
|
@interview_parts = interview_parts
|
83
106
|
@interview_stage = interview_stage
|
107
|
+
@interview_stage_id = interview_stage_id
|
84
108
|
@interview_status = interview_status
|
109
|
+
@interviewer_ids = interviewer_ids
|
85
110
|
@interviewers = interviewers
|
86
111
|
@meeting_url = meeting_url
|
112
|
+
@start_at = start_at
|
87
113
|
@updated_at = updated_at
|
88
114
|
end
|
89
115
|
end
|
@@ -13,18 +13,18 @@ module StackOne
|
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :email, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
|
16
|
+
field :email, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
|
17
17
|
|
18
|
-
field :first_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
|
18
|
+
field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
|
19
19
|
|
20
|
-
field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
20
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
21
21
|
|
22
|
-
field :last_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
|
22
|
+
field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
|
23
23
|
|
24
|
-
field :name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
24
|
+
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
25
25
|
|
26
26
|
|
27
|
-
sig { params(email: String, first_name: String, id: String, last_name: String, name: String).void }
|
27
|
+
sig { params(email: T.nilable(String), first_name: T.nilable(String), id: T.nilable(String), last_name: T.nilable(String), name: T.nilable(String)).void }
|
28
28
|
def initialize(email: nil, first_name: nil, id: nil, last_name: nil, name: nil)
|
29
29
|
@email = email
|
30
30
|
@first_name = first_name
|
@@ -12,23 +12,23 @@ module StackOne
|
|
12
12
|
class InterviewStage < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
|
-
|
16
|
-
field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
17
|
-
|
18
|
-
field :name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
19
15
|
# Interview Stage created date
|
20
16
|
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
21
17
|
|
18
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
19
|
+
|
20
|
+
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
21
|
+
|
22
22
|
field :order, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } }
|
23
23
|
# Interview Stage updated date
|
24
24
|
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
25
25
|
|
26
26
|
|
27
|
-
sig { params(
|
28
|
-
def initialize(
|
27
|
+
sig { params(created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), order: T.nilable(Float), updated_at: T.nilable(DateTime)).void }
|
28
|
+
def initialize(created_at: nil, id: nil, name: nil, order: nil, updated_at: nil)
|
29
|
+
@created_at = created_at
|
29
30
|
@id = id
|
30
31
|
@name = name
|
31
|
-
@created_at = created_at
|
32
32
|
@order = order
|
33
33
|
@updated_at = updated_at
|
34
34
|
end
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
require 'sorbet-runtime'
|
7
7
|
require 'faraday'
|
8
|
-
require_relative '../shared/jobstatusenum'
|
9
8
|
|
10
9
|
module StackOne
|
11
10
|
module Shared
|
@@ -18,47 +17,79 @@ module StackOne
|
|
18
17
|
end
|
19
18
|
|
20
19
|
|
20
|
+
# JobValue - The status of the job.
|
21
|
+
class JobValue < T::Enum
|
22
|
+
enums do
|
23
|
+
PUBLISHED = new('published')
|
24
|
+
DRAFT = new('draft')
|
25
|
+
PENDING = new('pending')
|
26
|
+
INTERNAL = new('internal')
|
27
|
+
ARCHIVED = new('archived')
|
28
|
+
CLOSED = new('closed')
|
29
|
+
OPEN = new('open')
|
30
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
class JobStatus < ::StackOne::Utils::FieldAugmented
|
37
|
+
extend T::Sig
|
38
|
+
|
39
|
+
# The source value of the job status.
|
40
|
+
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
41
|
+
# The status of the job.
|
42
|
+
field :value, T.nilable(Shared::JobValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobValue, true) } }
|
43
|
+
|
44
|
+
|
45
|
+
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::JobValue)).void }
|
46
|
+
def initialize(source_value: nil, value: nil)
|
47
|
+
@source_value = source_value
|
48
|
+
@value = value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
21
52
|
|
22
53
|
class Job < ::StackOne::Utils::FieldAugmented
|
23
54
|
extend T::Sig
|
24
55
|
|
25
56
|
|
26
|
-
field :code, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('code') } }
|
57
|
+
field :code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('code') } }
|
27
58
|
|
28
|
-
field :
|
59
|
+
field :confidential, T.nilable(Shared::Confidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential'), 'decoder': Utils.enum_from_string(Shared::Confidential, true) } }
|
29
60
|
# Date of creation
|
30
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(
|
61
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
31
62
|
|
32
|
-
field :department_ids, T::Array[String], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department_ids') } }
|
63
|
+
field :department_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department_ids') } }
|
33
64
|
|
34
|
-
field :
|
65
|
+
field :hiring_team, T.nilable(T::Array[Shared::JobHiringTeam]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hiring_team') } }
|
35
66
|
|
36
|
-
field :
|
67
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
37
68
|
|
38
|
-
field :
|
69
|
+
field :job_status, T.nilable(Shared::JobStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_status') } }
|
39
70
|
|
40
|
-
field :
|
41
|
-
# Date of last update
|
42
|
-
field :updated_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
71
|
+
field :location_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_ids') } }
|
43
72
|
|
44
|
-
field :
|
73
|
+
field :status, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
45
74
|
|
46
|
-
field :
|
75
|
+
field :title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
|
76
|
+
# Date of last update
|
77
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
47
78
|
|
48
79
|
|
49
|
-
sig { params(code: String,
|
50
|
-
def initialize(code: nil,
|
80
|
+
sig { params(code: T.nilable(String), confidential: T.nilable(Shared::Confidential), created_at: T.nilable(DateTime), department_ids: T.nilable(T::Array[String]), hiring_team: T.nilable(T::Array[Shared::JobHiringTeam]), id: T.nilable(String), job_status: T.nilable(Shared::JobStatus), location_ids: T.nilable(T::Array[String]), status: T.nilable(String), title: T.nilable(String), updated_at: T.nilable(DateTime)).void }
|
81
|
+
def initialize(code: nil, confidential: nil, created_at: nil, department_ids: nil, hiring_team: nil, id: nil, job_status: nil, location_ids: nil, status: nil, title: nil, updated_at: nil)
|
51
82
|
@code = code
|
52
|
-
@
|
83
|
+
@confidential = confidential
|
53
84
|
@created_at = created_at
|
54
85
|
@department_ids = department_ids
|
86
|
+
@hiring_team = hiring_team
|
55
87
|
@id = id
|
56
88
|
@job_status = job_status
|
57
89
|
@location_ids = location_ids
|
90
|
+
@status = status
|
58
91
|
@title = title
|
59
92
|
@updated_at = updated_at
|
60
|
-
@confidential = confidential
|
61
|
-
@hiring_team = hiring_team
|
62
93
|
end
|
63
94
|
end
|
64
95
|
end
|