stackone_client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stackone/hris.rb +74 -0
- data/lib/stackone/models/operations/ats_create_application.rb +2 -2
- data/lib/stackone/models/operations/ats_create_candidate.rb +2 -2
- data/lib/stackone/models/operations/ats_create_candidate_note.rb +2 -2
- data/lib/stackone/models/operations/ats_create_offer.rb +2 -2
- data/lib/stackone/models/operations/ats_get_application.rb +4 -14
- data/lib/stackone/models/operations/ats_get_application_offer.rb +4 -14
- data/lib/stackone/models/operations/ats_get_application_scorecard.rb +4 -14
- data/lib/stackone/models/operations/ats_get_candidate.rb +4 -14
- data/lib/stackone/models/operations/ats_get_candidate_note.rb +4 -14
- data/lib/stackone/models/operations/ats_get_department.rb +4 -14
- data/lib/stackone/models/operations/ats_get_interview.rb +4 -14
- data/lib/stackone/models/operations/ats_get_interview_stage.rb +4 -14
- data/lib/stackone/models/operations/ats_get_job.rb +4 -14
- data/lib/stackone/models/operations/ats_get_job_posting.rb +4 -14
- data/lib/stackone/models/operations/ats_get_location.rb +4 -14
- data/lib/stackone/models/operations/ats_get_offer.rb +4 -14
- data/lib/stackone/models/operations/ats_get_rejected_reason.rb +4 -14
- data/lib/stackone/models/operations/ats_get_user.rb +4 -14
- data/lib/stackone/models/operations/ats_list_application_scorecards.rb +4 -14
- data/lib/stackone/models/operations/ats_list_applications.rb +4 -14
- data/lib/stackone/models/operations/ats_list_applications_offers.rb +4 -14
- data/lib/stackone/models/operations/ats_list_candidate_notes.rb +4 -14
- data/lib/stackone/models/operations/ats_list_candidates.rb +4 -14
- data/lib/stackone/models/operations/ats_list_departments.rb +4 -14
- data/lib/stackone/models/operations/ats_list_interview_stages.rb +4 -14
- data/lib/stackone/models/operations/ats_list_interviews.rb +4 -14
- data/lib/stackone/models/operations/ats_list_job_postings.rb +4 -14
- data/lib/stackone/models/operations/ats_list_jobs.rb +4 -14
- data/lib/stackone/models/operations/ats_list_locations.rb +4 -14
- data/lib/stackone/models/operations/ats_list_offers.rb +4 -14
- data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +4 -14
- data/lib/stackone/models/operations/ats_list_users.rb +4 -14
- data/lib/stackone/models/operations/ats_update_application.rb +2 -2
- data/lib/stackone/models/operations/ats_update_candidate.rb +2 -2
- data/lib/stackone/models/operations/crm_create_contact.rb +2 -2
- data/lib/stackone/models/operations/crm_get_account.rb +4 -14
- data/lib/stackone/models/operations/crm_get_contact.rb +4 -14
- data/lib/stackone/models/operations/crm_get_list.rb +4 -14
- data/lib/stackone/models/operations/crm_list_accounts.rb +4 -14
- data/lib/stackone/models/operations/crm_list_contacts.rb +4 -14
- data/lib/stackone/models/operations/crm_list_lists.rb +4 -14
- data/lib/stackone/models/operations/crm_update_contact.rb +2 -2
- data/lib/stackone/models/operations/hris_create_employee.rb +2 -2
- data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +2 -2
- data/lib/stackone/models/operations/hris_create_time_off_request.rb +2 -2
- data/lib/stackone/models/operations/hris_get_company.rb +4 -14
- data/lib/stackone/models/operations/hris_get_employee.rb +4 -14
- data/lib/stackone/models/operations/hris_get_employee_document.rb +81 -0
- data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +4 -14
- data/lib/stackone/models/operations/hris_get_employment.rb +4 -14
- data/lib/stackone/models/operations/hris_get_location.rb +4 -14
- data/lib/stackone/models/operations/hris_get_time_off_request.rb +4 -14
- data/lib/stackone/models/operations/hris_list_companies.rb +4 -14
- data/lib/stackone/models/operations/hris_list_employee_documents.rb +78 -0
- data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +4 -14
- data/lib/stackone/models/operations/hris_list_employees.rb +4 -14
- data/lib/stackone/models/operations/hris_list_employments.rb +4 -14
- data/lib/stackone/models/operations/hris_list_locations.rb +4 -14
- data/lib/stackone/models/operations/hris_list_time_off_requests.rb +4 -14
- data/lib/stackone/models/operations/hris_update_employee.rb +2 -2
- data/lib/stackone/models/operations/hris_update_time_off_request.rb +2 -2
- data/lib/stackone/models/operations/marketing_create_email_template.rb +2 -2
- data/lib/stackone/models/operations/marketing_create_omni_channel_template.rb +2 -2
- data/lib/stackone/models/operations/marketing_create_push_template.rb +2 -2
- data/lib/stackone/models/operations/marketing_get_campaign.rb +4 -14
- data/lib/stackone/models/operations/marketing_get_email_template.rb +4 -14
- data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +4 -14
- data/lib/stackone/models/operations/marketing_get_push_template.rb +4 -14
- data/lib/stackone/models/operations/marketing_list_campaigns.rb +4 -14
- data/lib/stackone/models/operations/marketing_list_email_templates.rb +4 -14
- data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +4 -14
- data/lib/stackone/models/operations/marketing_list_push_templates.rb +4 -14
- data/lib/stackone/models/operations/marketing_update_email_template.rb +2 -2
- data/lib/stackone/models/operations/marketing_update_omni_channel_template.rb +2 -2
- data/lib/stackone/models/operations/marketing_update_push_template.rb +2 -2
- data/lib/stackone/models/operations/stackone_authenticate_connect_session.rb +1 -1
- data/lib/stackone/models/operations/stackone_create_connect_session.rb +1 -1
- data/lib/stackone/models/operations/stackone_delete_account.rb +2 -2
- data/lib/stackone/models/operations/stackone_get_account.rb +2 -2
- data/lib/stackone/models/operations/stackone_get_account_meta_info.rb +2 -2
- data/lib/stackone/models/operations/stackone_get_connector_meta.rb +2 -2
- data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +2 -2
- data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +2 -2
- data/lib/stackone/models/operations/stackone_proxy_request.rb +2 -2
- data/lib/stackone/models/operations/stackone_update_account.rb +2 -2
- data/lib/stackone/models/shared/account.rb +12 -12
- data/lib/stackone/models/shared/accountaddress.rb +14 -14
- data/lib/stackone/models/shared/accountresult.rb +3 -3
- data/lib/stackone/models/shared/accountspaginated.rb +5 -5
- data/lib/stackone/models/shared/answer.rb +7 -7
- data/lib/stackone/models/shared/application.rb +18 -18
- data/lib/stackone/models/shared/applicationattachment.rb +9 -9
- data/lib/stackone/models/shared/applicationcandidate.rb +4 -4
- data/lib/stackone/models/shared/applicationresult.rb +3 -3
- data/lib/stackone/models/shared/applicationspaginated.rb +5 -5
- data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +3 -3
- data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +8 -8
- data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +9 -9
- data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +7 -7
- data/lib/stackone/models/shared/atscreateofferrequestdto.rb +7 -7
- data/lib/stackone/models/shared/atslocation.rb +3 -3
- data/lib/stackone/models/shared/atslocationresult.rb +3 -3
- data/lib/stackone/models/shared/atslocationspaginated.rb +5 -5
- data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +9 -9
- data/lib/stackone/models/shared/atsupdatecandidatesrequestdto.rb +10 -10
- data/lib/stackone/models/shared/attachmenttype.rb +3 -3
- data/lib/stackone/models/shared/campaign.rb +21 -21
- data/lib/stackone/models/shared/campaignresult.rb +3 -3
- data/lib/stackone/models/shared/campaignspaginated.rb +5 -5
- data/lib/stackone/models/shared/candidate.rb +15 -15
- data/lib/stackone/models/shared/candidateemail.rb +3 -3
- data/lib/stackone/models/shared/candidateresult.rb +3 -3
- data/lib/stackone/models/shared/candidatespaginated.rb +5 -5
- data/lib/stackone/models/shared/channelsenum.rb +3 -3
- data/lib/stackone/models/shared/companiespaginated.rb +5 -5
- data/lib/stackone/models/shared/company.rb +6 -6
- data/lib/stackone/models/shared/companyresult.rb +3 -3
- data/lib/stackone/models/shared/compensation.rb +18 -18
- data/lib/stackone/models/shared/connectorsmeta.rb +29 -18
- data/lib/stackone/models/shared/connectsession.rb +13 -13
- data/lib/stackone/models/shared/connectsessionauthenticate.rb +2 -2
- data/lib/stackone/models/shared/connectsessioncreate.rb +16 -13
- data/lib/stackone/models/shared/connectsessiontoken.rb +14 -14
- data/lib/stackone/models/shared/contact.rb +11 -11
- data/lib/stackone/models/shared/contactresult.rb +3 -3
- data/lib/stackone/models/shared/contactspaginated.rb +5 -5
- data/lib/stackone/models/shared/content.rb +28 -0
- data/lib/stackone/models/shared/countrycodeenum.rb +3 -3
- data/lib/stackone/models/shared/createcandidatenoteresult.rb +4 -4
- data/lib/stackone/models/shared/createemployeeresult.rb +4 -4
- data/lib/stackone/models/shared/createofferresult.rb +4 -4
- data/lib/stackone/models/shared/createresult.rb +4 -4
- data/lib/stackone/models/shared/createtemplateresult.rb +4 -4
- data/lib/stackone/models/shared/createtimeoffresult.rb +4 -4
- data/lib/stackone/models/shared/crmcreatecontactrequestdto.rb +8 -8
- data/lib/stackone/models/shared/department.rb +3 -3
- data/lib/stackone/models/shared/departmentresult.rb +3 -3
- data/lib/stackone/models/shared/departmentspaginated.rb +5 -5
- data/lib/stackone/models/shared/documentapimodel.rb +44 -0
- data/lib/stackone/models/shared/documentresult.rb +29 -0
- data/lib/stackone/models/shared/documentspaginated.rb +34 -0
- data/lib/stackone/models/shared/documenttypeenum.rb +40 -0
- data/lib/stackone/models/shared/emailmessages.rb +14 -14
- data/lib/stackone/models/shared/employee.rb +97 -97
- data/lib/stackone/models/shared/employeecustomfields.rb +12 -12
- data/lib/stackone/models/shared/employeeresult.rb +3 -3
- data/lib/stackone/models/shared/employeespaginated.rb +5 -5
- data/lib/stackone/models/shared/employment.rb +25 -25
- data/lib/stackone/models/shared/employmentresult.rb +3 -3
- data/lib/stackone/models/shared/employmentspaginated.rb +5 -5
- data/lib/stackone/models/shared/field.rb +6 -6
- data/lib/stackone/models/shared/hiringteam.rb +6 -6
- data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +84 -84
- data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +13 -13
- data/lib/stackone/models/shared/hrislocation.rb +20 -20
- data/lib/stackone/models/shared/hrislocationresult.rb +3 -3
- data/lib/stackone/models/shared/hrislocationspaginated.rb +5 -5
- data/lib/stackone/models/shared/interview.rb +17 -17
- data/lib/stackone/models/shared/interviewer.rb +6 -6
- data/lib/stackone/models/shared/interviewpart.rb +7 -7
- data/lib/stackone/models/shared/interviewspaginated.rb +5 -5
- data/lib/stackone/models/shared/interviewsresult.rb +3 -3
- data/lib/stackone/models/shared/interviewstage.rb +6 -6
- data/lib/stackone/models/shared/interviewstageresult.rb +3 -3
- data/lib/stackone/models/shared/interviewstagespaginated.rb +5 -5
- data/lib/stackone/models/shared/job.rb +12 -12
- data/lib/stackone/models/shared/jobposting.rb +29 -29
- data/lib/stackone/models/shared/jobpostingresult.rb +3 -3
- data/lib/stackone/models/shared/jobpostingspaginated.rb +5 -5
- data/lib/stackone/models/shared/jobresult.rb +3 -3
- data/lib/stackone/models/shared/jobspaginated.rb +5 -5
- data/lib/stackone/models/shared/jobstatusenum.rb +3 -3
- data/lib/stackone/models/shared/linkedaccount.rb +14 -14
- data/lib/stackone/models/shared/linkedaccountmeta.rb +5 -15
- data/lib/stackone/models/shared/list.rb +10 -10
- data/lib/stackone/models/shared/listresult.rb +3 -3
- data/lib/stackone/models/shared/listspaginated.rb +5 -5
- data/lib/stackone/models/shared/location.rb +3 -3
- data/lib/stackone/models/shared/marketingcreateemailtemplaterequestdto.rb +5 -5
- data/lib/stackone/models/shared/marketingcreatepushtemplaterequestdto.rb +5 -5
- data/lib/stackone/models/shared/marketingcreatetemplaterequestdto.rb +5 -5
- data/lib/stackone/models/shared/message.rb +5 -5
- data/lib/stackone/models/shared/note.rb +11 -11
- data/lib/stackone/models/shared/notecontentapimodel.rb +2 -2
- data/lib/stackone/models/shared/noteresult.rb +3 -3
- data/lib/stackone/models/shared/notespaginated.rb +5 -5
- data/lib/stackone/models/shared/offer.rb +10 -10
- data/lib/stackone/models/shared/offerhistory.rb +6 -6
- data/lib/stackone/models/shared/offerspaginated.rb +5 -5
- data/lib/stackone/models/shared/offersresult.rb +3 -3
- data/lib/stackone/models/shared/offerstatusenum.rb +3 -3
- data/lib/stackone/models/shared/patchaccountdto.rb +1 -1
- data/lib/stackone/models/shared/proxyrequestbody.rb +8 -8
- data/lib/stackone/models/shared/pushmessages.rb +10 -10
- data/lib/stackone/models/shared/questionnaire.rb +3 -3
- data/lib/stackone/models/shared/rawresponse.rb +6 -6
- data/lib/stackone/models/shared/rejectedreason.rb +4 -4
- data/lib/stackone/models/shared/rejectedreasonresult.rb +3 -3
- data/lib/stackone/models/shared/rejectedreasonspaginated.rb +5 -5
- data/lib/stackone/models/shared/rejectedreasontypeenum.rb +3 -3
- data/lib/stackone/models/shared/resultlink.rb +3 -3
- data/lib/stackone/models/shared/scorecard.rb +11 -11
- data/lib/stackone/models/shared/scorecardsection.rb +4 -4
- data/lib/stackone/models/shared/scorecardspaginated.rb +5 -5
- data/lib/stackone/models/shared/security.rb +1 -1
- data/lib/stackone/models/shared/sociallink.rb +3 -3
- data/lib/stackone/models/shared/template.rb +6 -6
- data/lib/stackone/models/shared/templateresult.rb +3 -3
- data/lib/stackone/models/shared/templatespaginated.rb +5 -5
- data/lib/stackone/models/shared/timeoff.rb +16 -16
- data/lib/stackone/models/shared/timeoffpaginated.rb +5 -5
- data/lib/stackone/models/shared/timeoffresult.rb +3 -3
- data/lib/stackone/models/shared/updateresult.rb +4 -4
- data/lib/stackone/models/shared/user.rb +7 -7
- data/lib/stackone/models/shared/userresult.rb +3 -3
- data/lib/stackone/models/shared/userspaginated.rb +5 -5
- data/lib/stackone/sdkconfiguration.rb +5 -5
- data/lib/stackone/utils/utils.rb +2 -2
- data/lib/stackone_client.rb +228 -221
- metadata +14 -7
@@ -18,13 +18,13 @@ module StackOne
|
|
18
18
|
|
19
19
|
|
20
20
|
# The status of the time off request
|
21
|
-
class HrisCreateTimeOffRequestDtoStatus < StackOne::Utils::FieldAugmented
|
21
|
+
class HrisCreateTimeOffRequestDtoStatus < ::StackOne::Utils::FieldAugmented
|
22
22
|
extend T::Sig
|
23
23
|
|
24
24
|
|
25
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
25
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
26
26
|
|
27
|
-
field :value, Shared::HrisCreateTimeOffRequestDtoValue, { 'format_json': { 'letter_case':
|
27
|
+
field :value, Shared::HrisCreateTimeOffRequestDtoValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateTimeOffRequestDtoValue, false) } }
|
28
28
|
|
29
29
|
|
30
30
|
sig { params(source_value: String, value: Shared::HrisCreateTimeOffRequestDtoValue).void }
|
@@ -45,13 +45,13 @@ module StackOne
|
|
45
45
|
|
46
46
|
|
47
47
|
# The type of the time off request
|
48
|
-
class HrisCreateTimeOffRequestDtoType < StackOne::Utils::FieldAugmented
|
48
|
+
class HrisCreateTimeOffRequestDtoType < ::StackOne::Utils::FieldAugmented
|
49
49
|
extend T::Sig
|
50
50
|
|
51
51
|
|
52
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
52
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
53
53
|
|
54
|
-
field :value, Shared::HrisCreateTimeOffRequestDtoSchemasValue, { 'format_json': { 'letter_case':
|
54
|
+
field :value, Shared::HrisCreateTimeOffRequestDtoSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateTimeOffRequestDtoSchemasValue, false) } }
|
55
55
|
|
56
56
|
|
57
57
|
sig { params(source_value: String, value: Shared::HrisCreateTimeOffRequestDtoSchemasValue).void }
|
@@ -62,21 +62,21 @@ module StackOne
|
|
62
62
|
end
|
63
63
|
|
64
64
|
|
65
|
-
class HrisCreateTimeOffRequestDto < StackOne::Utils::FieldAugmented
|
65
|
+
class HrisCreateTimeOffRequestDto < ::StackOne::Utils::FieldAugmented
|
66
66
|
extend T::Sig
|
67
67
|
|
68
68
|
# The approver ID
|
69
|
-
field :approver_id, T.nilable(String), { 'format_json': { 'letter_case':
|
69
|
+
field :approver_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('approver_id') } }
|
70
70
|
# The employee ID
|
71
|
-
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case':
|
71
|
+
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
72
72
|
# The end date of the time off request
|
73
|
-
field :end_date, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
73
|
+
field :end_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
74
74
|
# The start date of the time off request
|
75
|
-
field :start_date, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
75
|
+
field :start_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
76
76
|
# The status of the time off request
|
77
|
-
field :status, T.nilable(Shared::HrisCreateTimeOffRequestDtoStatus), { 'format_json': { 'letter_case':
|
77
|
+
field :status, T.nilable(Shared::HrisCreateTimeOffRequestDtoStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
78
78
|
# The type of the time off request
|
79
|
-
field :type, T.nilable(Shared::HrisCreateTimeOffRequestDtoType), { 'format_json': { 'letter_case':
|
79
|
+
field :type, T.nilable(Shared::HrisCreateTimeOffRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
80
80
|
|
81
81
|
|
82
82
|
sig { params(approver_id: T.nilable(String), employee_id: T.nilable(String), end_date: T.nilable(DateTime), start_date: T.nilable(DateTime), status: T.nilable(Shared::HrisCreateTimeOffRequestDtoStatus), type: T.nilable(Shared::HrisCreateTimeOffRequestDtoType)).void }
|
@@ -265,13 +265,13 @@ module StackOne
|
|
265
265
|
|
266
266
|
|
267
267
|
# The country code
|
268
|
-
class HRISLocationCountry < StackOne::Utils::FieldAugmented
|
268
|
+
class HRISLocationCountry < ::StackOne::Utils::FieldAugmented
|
269
269
|
extend T::Sig
|
270
270
|
|
271
271
|
# The name of citizenship
|
272
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
272
|
+
field :source_value, String, { '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':
|
274
|
+
field :value, Shared::HRISLocationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationValue, false) } }
|
275
275
|
|
276
276
|
|
277
277
|
sig { params(source_value: String, value: Shared::HRISLocationValue).void }
|
@@ -292,13 +292,13 @@ module StackOne
|
|
292
292
|
|
293
293
|
|
294
294
|
# The location type
|
295
|
-
class HRISLocationLocationType < StackOne::Utils::FieldAugmented
|
295
|
+
class HRISLocationLocationType < ::StackOne::Utils::FieldAugmented
|
296
296
|
extend T::Sig
|
297
297
|
|
298
298
|
# The source value of the location type.
|
299
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
299
|
+
field :source_value, String, { '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':
|
301
|
+
field :value, Shared::HRISLocationSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationSchemasValue, false) } }
|
302
302
|
|
303
303
|
|
304
304
|
sig { params(source_value: String, value: Shared::HRISLocationSchemasValue).void }
|
@@ -309,35 +309,35 @@ module StackOne
|
|
309
309
|
end
|
310
310
|
|
311
311
|
|
312
|
-
class HRISLocation < StackOne::Utils::FieldAugmented
|
312
|
+
class HRISLocation < ::StackOne::Utils::FieldAugmented
|
313
313
|
extend T::Sig
|
314
314
|
|
315
315
|
# The city where the location is situated
|
316
|
-
field :city, T.nilable(String), { 'format_json': { 'letter_case':
|
316
|
+
field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
|
317
317
|
# The country code
|
318
|
-
field :country, T.nilable(Shared::HRISLocationCountry), { 'format_json': { 'letter_case':
|
318
|
+
field :country, T.nilable(Shared::HRISLocationCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
|
319
319
|
# The created_at date
|
320
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
320
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
321
321
|
# The employee ID
|
322
|
-
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case':
|
322
|
+
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
323
323
|
# The unique ID of the location
|
324
|
-
field :id, T.nilable(String), { 'format_json': { 'letter_case':
|
324
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
325
325
|
# The location type
|
326
|
-
field :location_type, T.nilable(Shared::HRISLocationLocationType), { 'format_json': { 'letter_case':
|
326
|
+
field :location_type, T.nilable(Shared::HRISLocationLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
|
327
327
|
# The name of the location
|
328
|
-
field :name, T.nilable(String), { 'format_json': { 'letter_case':
|
328
|
+
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
329
329
|
# The phone number of the location
|
330
|
-
field :phone_number, T.nilable(String), { 'format_json': { 'letter_case':
|
330
|
+
field :phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
|
331
331
|
# The state where the location is situated
|
332
|
-
field :state, T.nilable(String), { 'format_json': { 'letter_case':
|
332
|
+
field :state, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
|
333
333
|
# The first line of the address
|
334
|
-
field :street_1, T.nilable(String), { 'format_json': { 'letter_case':
|
334
|
+
field :street_1, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
|
335
335
|
# The second line of the address
|
336
|
-
field :street_2, T.nilable(String), { 'format_json': { 'letter_case':
|
336
|
+
field :street_2, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
|
337
337
|
# The updated_at date
|
338
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
338
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
339
339
|
# The ZIP code/Postal code of the location
|
340
|
-
field :zip_code, T.nilable(String), { 'format_json': { 'letter_case':
|
340
|
+
field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
|
341
341
|
|
342
342
|
|
343
343
|
sig { params(city: T.nilable(String), country: T.nilable(Shared::HRISLocationCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::HRISLocationLocationType), 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 }
|
@@ -10,13 +10,13 @@ require_relative '../shared/hrislocation'
|
|
10
10
|
module StackOne
|
11
11
|
module Shared
|
12
12
|
|
13
|
-
class HRISLocationResult < StackOne::Utils::FieldAugmented
|
13
|
+
class HRISLocationResult < ::StackOne::Utils::FieldAugmented
|
14
14
|
extend T::Sig
|
15
15
|
|
16
16
|
|
17
|
-
field :data, Shared::HRISLocation, { 'format_json': { 'letter_case':
|
17
|
+
field :data, Shared::HRISLocation, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
18
18
|
|
19
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case':
|
19
|
+
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
20
20
|
|
21
21
|
|
22
22
|
sig { params(data: Shared::HRISLocation, raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
@@ -9,17 +9,17 @@ require 'faraday'
|
|
9
9
|
module StackOne
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class HRISLocationsPaginated < StackOne::Utils::FieldAugmented
|
12
|
+
class HRISLocationsPaginated < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :data, T::Array[Shared::HRISLocation], { 'format_json': { 'letter_case':
|
16
|
+
field :data, T::Array[Shared::HRISLocation], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
17
17
|
|
18
|
-
field :next_, T.nilable(String), { 'format_json': { 'letter_case':
|
18
|
+
field :next_, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
19
19
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
20
|
-
field :next_page, T.nilable(String), { 'format_json': { 'letter_case':
|
20
|
+
field :next_page, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
|
21
21
|
|
22
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case':
|
22
|
+
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
23
23
|
|
24
24
|
|
25
25
|
sig { params(data: T::Array[Shared::HRISLocation], next_: T.nilable(String), next_page: T.nilable(String), raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
@@ -22,13 +22,13 @@ module StackOne
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
class InterviewStatus < StackOne::Utils::FieldAugmented
|
25
|
+
class InterviewStatus < ::StackOne::Utils::FieldAugmented
|
26
26
|
extend T::Sig
|
27
27
|
|
28
28
|
# The source value of the interview status.
|
29
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
29
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
30
30
|
# The status of the interview.
|
31
|
-
field :value, Shared::InterviewValue, { 'format_json': { 'letter_case':
|
31
|
+
field :value, Shared::InterviewValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::InterviewValue, false) } }
|
32
32
|
|
33
33
|
|
34
34
|
sig { params(source_value: String, value: Shared::InterviewValue).void }
|
@@ -39,35 +39,35 @@ module StackOne
|
|
39
39
|
end
|
40
40
|
|
41
41
|
|
42
|
-
class Interview < StackOne::Utils::FieldAugmented
|
42
|
+
class Interview < ::StackOne::Utils::FieldAugmented
|
43
43
|
extend T::Sig
|
44
44
|
|
45
45
|
|
46
|
-
field :application_id, String, { 'format_json': { 'letter_case':
|
46
|
+
field :application_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_id') } }
|
47
47
|
# Interview end date
|
48
|
-
field :end_at, DateTime, { 'format_json': { 'letter_case':
|
48
|
+
field :end_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
49
49
|
|
50
|
-
field :id, String, { 'format_json': { 'letter_case':
|
50
|
+
field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
51
51
|
|
52
|
-
field :interview_stage_id, String, { 'format_json': { 'letter_case':
|
52
|
+
field :interview_stage_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage_id') } }
|
53
53
|
|
54
|
-
field :interviewer_ids, T::Array[String], { 'format_json': { 'letter_case':
|
54
|
+
field :interviewer_ids, T::Array[String], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewer_ids') } }
|
55
55
|
# Interview start date
|
56
|
-
field :start_at, DateTime, { 'format_json': { 'letter_case':
|
56
|
+
field :start_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
57
57
|
# Interview created date
|
58
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
58
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
59
59
|
|
60
|
-
field :interview_parts, T.nilable(T::Array[Shared::InterviewPart]), { 'format_json': { 'letter_case':
|
60
|
+
field :interview_parts, T.nilable(T::Array[Shared::InterviewPart]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_parts') } }
|
61
61
|
|
62
|
-
field :interview_stage, T.nilable(T::Array[Shared::InterviewStage]), { 'format_json': { 'letter_case':
|
62
|
+
field :interview_stage, T.nilable(T::Array[Shared::InterviewStage]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage') } }
|
63
63
|
|
64
|
-
field :interview_status, T.nilable(Shared::InterviewStatus), { 'format_json': { 'letter_case':
|
64
|
+
field :interview_status, T.nilable(Shared::InterviewStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_status') } }
|
65
65
|
|
66
|
-
field :interviewers, T.nilable(T::Array[Shared::Interviewer]), { 'format_json': { 'letter_case':
|
66
|
+
field :interviewers, T.nilable(T::Array[Shared::Interviewer]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewers') } }
|
67
67
|
|
68
|
-
field :meeting_url, T.nilable(String), { 'format_json': { 'letter_case':
|
68
|
+
field :meeting_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('meeting_url') } }
|
69
69
|
# Interview updated date
|
70
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
70
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
71
71
|
|
72
72
|
|
73
73
|
sig { params(application_id: String, end_at: DateTime, id: String, interview_stage_id: String, interviewer_ids: T::Array[String], start_at: DateTime, created_at: T.nilable(DateTime), interview_parts: T.nilable(T::Array[Shared::InterviewPart]), interview_stage: T.nilable(T::Array[Shared::InterviewStage]), interview_status: T.nilable(Shared::InterviewStatus), interviewers: T.nilable(T::Array[Shared::Interviewer]), meeting_url: T.nilable(String), updated_at: T.nilable(DateTime)).void }
|
@@ -9,19 +9,19 @@ require 'faraday'
|
|
9
9
|
module StackOne
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class Interviewer < StackOne::Utils::FieldAugmented
|
12
|
+
class Interviewer < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :email, String, { 'format_json': { 'letter_case':
|
16
|
+
field :email, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
|
17
17
|
|
18
|
-
field :first_name, String, { 'format_json': { 'letter_case':
|
18
|
+
field :first_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
|
19
19
|
|
20
|
-
field :id, String, { 'format_json': { 'letter_case':
|
20
|
+
field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
21
21
|
|
22
|
-
field :last_name, String, { 'format_json': { 'letter_case':
|
22
|
+
field :last_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
|
23
23
|
|
24
|
-
field :name, String, { 'format_json': { 'letter_case':
|
24
|
+
field :name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
25
25
|
|
26
26
|
|
27
27
|
sig { params(email: String, first_name: String, id: String, last_name: String, name: String).void }
|
@@ -9,21 +9,21 @@ require 'faraday'
|
|
9
9
|
module StackOne
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class InterviewPart < StackOne::Utils::FieldAugmented
|
12
|
+
class InterviewPart < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# Interview part created date
|
16
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
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
17
|
|
18
|
-
field :id, T.nilable(String), { 'format_json': { 'letter_case':
|
18
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
19
19
|
|
20
|
-
field :interviewer_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case':
|
20
|
+
field :interviewer_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewer_ids') } }
|
21
21
|
|
22
|
-
field :meeting_provider, T.nilable(String), { 'format_json': { 'letter_case':
|
22
|
+
field :meeting_provider, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('meeting_provider') } }
|
23
23
|
|
24
|
-
field :meeting_url, T.nilable(String), { 'format_json': { 'letter_case':
|
24
|
+
field :meeting_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('meeting_url') } }
|
25
25
|
# Interview part updated date
|
26
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
26
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
27
27
|
|
28
28
|
|
29
29
|
sig { params(created_at: T.nilable(DateTime), id: T.nilable(String), interviewer_ids: T.nilable(T::Array[String]), meeting_provider: T.nilable(String), meeting_url: T.nilable(String), updated_at: T.nilable(DateTime)).void }
|
@@ -9,17 +9,17 @@ require 'faraday'
|
|
9
9
|
module StackOne
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class InterviewsPaginated < StackOne::Utils::FieldAugmented
|
12
|
+
class InterviewsPaginated < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :data, T::Array[Shared::Interview], { 'format_json': { 'letter_case':
|
16
|
+
field :data, T::Array[Shared::Interview], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
17
17
|
|
18
|
-
field :next_, T.nilable(String), { 'format_json': { 'letter_case':
|
18
|
+
field :next_, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
19
19
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
20
|
-
field :next_page, T.nilable(String), { 'format_json': { 'letter_case':
|
20
|
+
field :next_page, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
|
21
21
|
|
22
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case':
|
22
|
+
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
23
23
|
|
24
24
|
|
25
25
|
sig { params(data: T::Array[Shared::Interview], next_: T.nilable(String), next_page: T.nilable(String), raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
@@ -10,13 +10,13 @@ require_relative '../shared/interview'
|
|
10
10
|
module StackOne
|
11
11
|
module Shared
|
12
12
|
|
13
|
-
class InterviewsResult < StackOne::Utils::FieldAugmented
|
13
|
+
class InterviewsResult < ::StackOne::Utils::FieldAugmented
|
14
14
|
extend T::Sig
|
15
15
|
|
16
16
|
|
17
|
-
field :data, Shared::Interview, { 'format_json': { 'letter_case':
|
17
|
+
field :data, Shared::Interview, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
18
18
|
|
19
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case':
|
19
|
+
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
20
20
|
|
21
21
|
|
22
22
|
sig { params(data: Shared::Interview, raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
@@ -9,19 +9,19 @@ require 'faraday'
|
|
9
9
|
module StackOne
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class InterviewStage < StackOne::Utils::FieldAugmented
|
12
|
+
class InterviewStage < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :id, String, { 'format_json': { 'letter_case':
|
16
|
+
field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
17
17
|
|
18
|
-
field :name, String, { 'format_json': { 'letter_case':
|
18
|
+
field :name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
19
19
|
# Interview Stage created date
|
20
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
20
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
21
21
|
|
22
|
-
field :order, T.nilable(Float), { 'format_json': { 'letter_case':
|
22
|
+
field :order, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } }
|
23
23
|
# Interview Stage updated date
|
24
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
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
27
|
sig { params(id: String, name: String, created_at: T.nilable(DateTime), order: T.nilable(Float), updated_at: T.nilable(DateTime)).void }
|
@@ -10,13 +10,13 @@ require_relative '../shared/interviewstage'
|
|
10
10
|
module StackOne
|
11
11
|
module Shared
|
12
12
|
|
13
|
-
class InterviewStageResult < StackOne::Utils::FieldAugmented
|
13
|
+
class InterviewStageResult < ::StackOne::Utils::FieldAugmented
|
14
14
|
extend T::Sig
|
15
15
|
|
16
16
|
|
17
|
-
field :data, Shared::InterviewStage, { 'format_json': { 'letter_case':
|
17
|
+
field :data, Shared::InterviewStage, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
18
18
|
|
19
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case':
|
19
|
+
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
20
20
|
|
21
21
|
|
22
22
|
sig { params(data: Shared::InterviewStage, raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
@@ -9,17 +9,17 @@ require 'faraday'
|
|
9
9
|
module StackOne
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class InterviewStagesPaginated < StackOne::Utils::FieldAugmented
|
12
|
+
class InterviewStagesPaginated < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :data, T::Array[Shared::InterviewStage], { 'format_json': { 'letter_case':
|
16
|
+
field :data, T::Array[Shared::InterviewStage], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
17
17
|
|
18
|
-
field :next_, T.nilable(String), { 'format_json': { 'letter_case':
|
18
|
+
field :next_, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
19
19
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
20
|
-
field :next_page, T.nilable(String), { 'format_json': { 'letter_case':
|
20
|
+
field :next_page, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
|
21
21
|
|
22
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case':
|
22
|
+
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
23
23
|
|
24
24
|
|
25
25
|
sig { params(data: T::Array[Shared::InterviewStage], next_: T.nilable(String), next_page: T.nilable(String), raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
@@ -19,31 +19,31 @@ module StackOne
|
|
19
19
|
|
20
20
|
|
21
21
|
|
22
|
-
class Job < StackOne::Utils::FieldAugmented
|
22
|
+
class Job < ::StackOne::Utils::FieldAugmented
|
23
23
|
extend T::Sig
|
24
24
|
|
25
25
|
|
26
|
-
field :code, String, { 'format_json': { 'letter_case':
|
26
|
+
field :code, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('code') } }
|
27
27
|
|
28
|
-
field :company_id, String, { 'format_json': { 'letter_case':
|
28
|
+
field :company_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_id') } }
|
29
29
|
# Date of creation
|
30
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case':
|
30
|
+
field :created_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
31
31
|
|
32
|
-
field :department_ids, T::Array[String], { 'format_json': { 'letter_case':
|
32
|
+
field :department_ids, T::Array[String], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department_ids') } }
|
33
33
|
|
34
|
-
field :id, String, { 'format_json': { 'letter_case':
|
34
|
+
field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
35
35
|
|
36
|
-
field :job_status, Shared::JobStatusEnum, { 'format_json': { 'letter_case':
|
36
|
+
field :job_status, Shared::JobStatusEnum, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_status') } }
|
37
37
|
|
38
|
-
field :location_ids, T::Array[String], { 'format_json': { 'letter_case':
|
38
|
+
field :location_ids, T::Array[String], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_ids') } }
|
39
39
|
|
40
|
-
field :title, String, { 'format_json': { 'letter_case':
|
40
|
+
field :title, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
|
41
41
|
# Date of last update
|
42
|
-
field :updated_at, DateTime, { 'format_json': { 'letter_case':
|
42
|
+
field :updated_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
43
43
|
|
44
|
-
field :confidential, T.nilable(Shared::Confidential), { 'format_json': { 'letter_case':
|
44
|
+
field :confidential, T.nilable(Shared::Confidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential'), 'decoder': Utils.enum_from_string(Shared::Confidential, true) } }
|
45
45
|
|
46
|
-
field :hiring_team, T.nilable(T::Array[Shared::HiringTeam]), { 'format_json': { 'letter_case':
|
46
|
+
field :hiring_team, T.nilable(T::Array[Shared::HiringTeam]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hiring_team') } }
|
47
47
|
|
48
48
|
|
49
49
|
sig { params(code: String, company_id: String, created_at: DateTime, department_ids: T::Array[String], id: String, job_status: Shared::JobStatusEnum, location_ids: T::Array[String], title: String, updated_at: DateTime, confidential: T.nilable(Shared::Confidential), hiring_team: T.nilable(T::Array[Shared::HiringTeam])).void }
|