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
@@ -9,13 +9,13 @@ require 'faraday'
|
|
9
9
|
module StackOne
|
10
10
|
module Shared
|
11
11
|
# The employee avatar
|
12
|
-
class Avatar < StackOne::Utils::FieldAugmented
|
12
|
+
class Avatar < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :base64, T.nilable(String), { 'format_json': { 'letter_case':
|
16
|
+
field :base64, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('base64') } }
|
17
17
|
|
18
|
-
field :url, T.nilable(String), { 'format_json': { 'letter_case':
|
18
|
+
field :url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
19
19
|
|
20
20
|
|
21
21
|
sig { params(base64: T.nilable(String), url: T.nilable(String)).void }
|
@@ -37,13 +37,13 @@ module StackOne
|
|
37
37
|
|
38
38
|
|
39
39
|
# The employment work schedule type (e.g., full-time, part-time)
|
40
|
-
class EmploymentContractType < StackOne::Utils::FieldAugmented
|
40
|
+
class EmploymentContractType < ::StackOne::Utils::FieldAugmented
|
41
41
|
extend T::Sig
|
42
42
|
|
43
43
|
|
44
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
44
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
45
45
|
|
46
|
-
field :value, Shared::EmployeeValue, { 'format_json': { 'letter_case':
|
46
|
+
field :value, Shared::EmployeeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeValue, false) } }
|
47
47
|
|
48
48
|
|
49
49
|
sig { params(source_value: String, value: Shared::EmployeeValue).void }
|
@@ -68,13 +68,13 @@ module StackOne
|
|
68
68
|
|
69
69
|
|
70
70
|
# The employee employment status
|
71
|
-
class EmploymentStatus < StackOne::Utils::FieldAugmented
|
71
|
+
class EmploymentStatus < ::StackOne::Utils::FieldAugmented
|
72
72
|
extend T::Sig
|
73
73
|
|
74
74
|
|
75
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
75
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
76
76
|
|
77
|
-
field :value, Shared::EmployeeSchemasValue, { 'format_json': { 'letter_case':
|
77
|
+
field :value, Shared::EmployeeSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasValue, false) } }
|
78
78
|
|
79
79
|
|
80
80
|
sig { params(source_value: String, value: Shared::EmployeeSchemasValue).void }
|
@@ -101,13 +101,13 @@ module StackOne
|
|
101
101
|
|
102
102
|
|
103
103
|
# The employee employment type
|
104
|
-
class EmploymentType < StackOne::Utils::FieldAugmented
|
104
|
+
class EmploymentType < ::StackOne::Utils::FieldAugmented
|
105
105
|
extend T::Sig
|
106
106
|
|
107
107
|
# The source value of the employment type.
|
108
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
108
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
109
109
|
# The type of the employment.
|
110
|
-
field :value, Shared::EmployeeSchemasEmploymentTypeValue, { 'format_json': { 'letter_case':
|
110
|
+
field :value, Shared::EmployeeSchemasEmploymentTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEmploymentTypeValue, false) } }
|
111
111
|
|
112
112
|
|
113
113
|
sig { params(source_value: String, value: Shared::EmployeeSchemasEmploymentTypeValue).void }
|
@@ -135,13 +135,13 @@ module StackOne
|
|
135
135
|
|
136
136
|
|
137
137
|
# The employee ethnicity
|
138
|
-
class Ethnicity < StackOne::Utils::FieldAugmented
|
138
|
+
class Ethnicity < ::StackOne::Utils::FieldAugmented
|
139
139
|
extend T::Sig
|
140
140
|
|
141
141
|
|
142
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
142
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
143
143
|
|
144
|
-
field :value, Shared::EmployeeSchemasEthnicityValue, { 'format_json': { 'letter_case':
|
144
|
+
field :value, Shared::EmployeeSchemasEthnicityValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEthnicityValue, false) } }
|
145
145
|
|
146
146
|
|
147
147
|
sig { params(source_value: String, value: Shared::EmployeeSchemasEthnicityValue).void }
|
@@ -166,13 +166,13 @@ module StackOne
|
|
166
166
|
|
167
167
|
|
168
168
|
# The employee gender
|
169
|
-
class Gender < StackOne::Utils::FieldAugmented
|
169
|
+
class Gender < ::StackOne::Utils::FieldAugmented
|
170
170
|
extend T::Sig
|
171
171
|
|
172
172
|
|
173
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
173
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
174
174
|
|
175
|
-
field :value, Shared::EmployeeSchemasGenderValue, { 'format_json': { 'letter_case':
|
175
|
+
field :value, Shared::EmployeeSchemasGenderValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasGenderValue, false) } }
|
176
176
|
|
177
177
|
|
178
178
|
sig { params(source_value: String, value: Shared::EmployeeSchemasGenderValue).void }
|
@@ -439,13 +439,13 @@ module StackOne
|
|
439
439
|
|
440
440
|
|
441
441
|
# The country code
|
442
|
-
class EmployeeCountry < StackOne::Utils::FieldAugmented
|
442
|
+
class EmployeeCountry < ::StackOne::Utils::FieldAugmented
|
443
443
|
extend T::Sig
|
444
444
|
|
445
445
|
# The name of citizenship
|
446
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
446
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
447
447
|
# The ISO3166-1 Alpha2 Code of the Country
|
448
|
-
field :value, Shared::EmployeeSchemasHomeLocationValue, { 'format_json': { 'letter_case':
|
448
|
+
field :value, Shared::EmployeeSchemasHomeLocationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationValue, false) } }
|
449
449
|
|
450
450
|
|
451
451
|
sig { params(source_value: String, value: Shared::EmployeeSchemasHomeLocationValue).void }
|
@@ -466,13 +466,13 @@ module StackOne
|
|
466
466
|
|
467
467
|
|
468
468
|
# The location type
|
469
|
-
class EmployeeLocationType < StackOne::Utils::FieldAugmented
|
469
|
+
class EmployeeLocationType < ::StackOne::Utils::FieldAugmented
|
470
470
|
extend T::Sig
|
471
471
|
|
472
472
|
# The source value of the location type.
|
473
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
473
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
474
474
|
# The type of the location.
|
475
|
-
field :value, Shared::EmployeeSchemasHomeLocationLocationTypeValue, { 'format_json': { 'letter_case':
|
475
|
+
field :value, Shared::EmployeeSchemasHomeLocationLocationTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationLocationTypeValue, false) } }
|
476
476
|
|
477
477
|
|
478
478
|
sig { params(source_value: String, value: Shared::EmployeeSchemasHomeLocationLocationTypeValue).void }
|
@@ -483,35 +483,35 @@ module StackOne
|
|
483
483
|
end
|
484
484
|
|
485
485
|
# The employee home location
|
486
|
-
class HomeLocation < StackOne::Utils::FieldAugmented
|
486
|
+
class HomeLocation < ::StackOne::Utils::FieldAugmented
|
487
487
|
extend T::Sig
|
488
488
|
|
489
489
|
# The city where the location is situated
|
490
|
-
field :city, T.nilable(String), { 'format_json': { 'letter_case':
|
490
|
+
field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
|
491
491
|
# The country code
|
492
|
-
field :country, T.nilable(Shared::EmployeeCountry), { 'format_json': { 'letter_case':
|
492
|
+
field :country, T.nilable(Shared::EmployeeCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
|
493
493
|
# The created_at date
|
494
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
494
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
495
495
|
# The employee ID
|
496
|
-
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case':
|
496
|
+
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
497
497
|
# The unique ID of the location
|
498
|
-
field :id, T.nilable(String), { 'format_json': { 'letter_case':
|
498
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
499
499
|
# The location type
|
500
|
-
field :location_type, T.nilable(Shared::EmployeeLocationType), { 'format_json': { 'letter_case':
|
500
|
+
field :location_type, T.nilable(Shared::EmployeeLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
|
501
501
|
# The name of the location
|
502
|
-
field :name, T.nilable(String), { 'format_json': { 'letter_case':
|
502
|
+
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
503
503
|
# The phone number of the location
|
504
|
-
field :phone_number, T.nilable(String), { 'format_json': { 'letter_case':
|
504
|
+
field :phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
|
505
505
|
# The state where the location is situated
|
506
|
-
field :state, T.nilable(String), { 'format_json': { 'letter_case':
|
506
|
+
field :state, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
|
507
507
|
# The first line of the address
|
508
|
-
field :street_1, T.nilable(String), { 'format_json': { 'letter_case':
|
508
|
+
field :street_1, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
|
509
509
|
# The second line of the address
|
510
|
-
field :street_2, T.nilable(String), { 'format_json': { 'letter_case':
|
510
|
+
field :street_2, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
|
511
511
|
# The updated_at date
|
512
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
512
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
513
513
|
# The ZIP code/Postal code of the location
|
514
|
-
field :zip_code, T.nilable(String), { 'format_json': { 'letter_case':
|
514
|
+
field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
|
515
515
|
|
516
516
|
|
517
517
|
sig { params(city: T.nilable(String), country: T.nilable(Shared::EmployeeCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::EmployeeLocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
|
@@ -550,13 +550,13 @@ module StackOne
|
|
550
550
|
|
551
551
|
|
552
552
|
# The employee marital status
|
553
|
-
class MaritalStatus < StackOne::Utils::FieldAugmented
|
553
|
+
class MaritalStatus < ::StackOne::Utils::FieldAugmented
|
554
554
|
extend T::Sig
|
555
555
|
|
556
556
|
|
557
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
557
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
558
558
|
|
559
|
-
field :value, Shared::EmployeeSchemasMaritalStatusValue, { 'format_json': { 'letter_case':
|
559
|
+
field :value, Shared::EmployeeSchemasMaritalStatusValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasMaritalStatusValue, false) } }
|
560
560
|
|
561
561
|
|
562
562
|
sig { params(source_value: String, value: Shared::EmployeeSchemasMaritalStatusValue).void }
|
@@ -823,13 +823,13 @@ module StackOne
|
|
823
823
|
|
824
824
|
|
825
825
|
# The country code
|
826
|
-
class EmployeeSchemasCountry < StackOne::Utils::FieldAugmented
|
826
|
+
class EmployeeSchemasCountry < ::StackOne::Utils::FieldAugmented
|
827
827
|
extend T::Sig
|
828
828
|
|
829
829
|
# The name of citizenship
|
830
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
830
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
831
831
|
# The ISO3166-1 Alpha2 Code of the Country
|
832
|
-
field :value, Shared::EmployeeSchemasWorkLocationValue, { 'format_json': { 'letter_case':
|
832
|
+
field :value, Shared::EmployeeSchemasWorkLocationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationValue, false) } }
|
833
833
|
|
834
834
|
|
835
835
|
sig { params(source_value: String, value: Shared::EmployeeSchemasWorkLocationValue).void }
|
@@ -850,13 +850,13 @@ module StackOne
|
|
850
850
|
|
851
851
|
|
852
852
|
# The location type
|
853
|
-
class EmployeeSchemasLocationType < StackOne::Utils::FieldAugmented
|
853
|
+
class EmployeeSchemasLocationType < ::StackOne::Utils::FieldAugmented
|
854
854
|
extend T::Sig
|
855
855
|
|
856
856
|
# The source value of the location type.
|
857
|
-
field :source_value, String, { 'format_json': { 'letter_case':
|
857
|
+
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
858
858
|
# The type of the location.
|
859
|
-
field :value, Shared::EmployeeSchemasWorkLocationLocationTypeValue, { 'format_json': { 'letter_case':
|
859
|
+
field :value, Shared::EmployeeSchemasWorkLocationLocationTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationLocationTypeValue, false) } }
|
860
860
|
|
861
861
|
|
862
862
|
sig { params(source_value: String, value: Shared::EmployeeSchemasWorkLocationLocationTypeValue).void }
|
@@ -867,35 +867,35 @@ module StackOne
|
|
867
867
|
end
|
868
868
|
|
869
869
|
# The employee work location
|
870
|
-
class WorkLocation < StackOne::Utils::FieldAugmented
|
870
|
+
class WorkLocation < ::StackOne::Utils::FieldAugmented
|
871
871
|
extend T::Sig
|
872
872
|
|
873
873
|
# The city where the location is situated
|
874
|
-
field :city, T.nilable(String), { 'format_json': { 'letter_case':
|
874
|
+
field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
|
875
875
|
# The country code
|
876
|
-
field :country, T.nilable(Shared::EmployeeSchemasCountry), { 'format_json': { 'letter_case':
|
876
|
+
field :country, T.nilable(Shared::EmployeeSchemasCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
|
877
877
|
# The created_at date
|
878
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
878
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
879
879
|
# The employee ID
|
880
|
-
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case':
|
880
|
+
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
881
881
|
# The unique ID of the location
|
882
|
-
field :id, T.nilable(String), { 'format_json': { 'letter_case':
|
882
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
883
883
|
# The location type
|
884
|
-
field :location_type, T.nilable(Shared::EmployeeSchemasLocationType), { 'format_json': { 'letter_case':
|
884
|
+
field :location_type, T.nilable(Shared::EmployeeSchemasLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
|
885
885
|
# The name of the location
|
886
|
-
field :name, T.nilable(String), { 'format_json': { 'letter_case':
|
886
|
+
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
887
887
|
# The phone number of the location
|
888
|
-
field :phone_number, T.nilable(String), { 'format_json': { 'letter_case':
|
888
|
+
field :phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
|
889
889
|
# The state where the location is situated
|
890
|
-
field :state, T.nilable(String), { 'format_json': { 'letter_case':
|
890
|
+
field :state, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
|
891
891
|
# The first line of the address
|
892
|
-
field :street_1, T.nilable(String), { 'format_json': { 'letter_case':
|
892
|
+
field :street_1, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
|
893
893
|
# The second line of the address
|
894
|
-
field :street_2, T.nilable(String), { 'format_json': { 'letter_case':
|
894
|
+
field :street_2, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
|
895
895
|
# The updated_at date
|
896
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
896
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
897
897
|
# The ZIP code/Postal code of the location
|
898
|
-
field :zip_code, T.nilable(String), { 'format_json': { 'letter_case':
|
898
|
+
field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
|
899
899
|
|
900
900
|
|
901
901
|
sig { params(city: T.nilable(String), country: T.nilable(Shared::EmployeeSchemasCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::EmployeeSchemasLocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
|
@@ -917,79 +917,79 @@ module StackOne
|
|
917
917
|
end
|
918
918
|
|
919
919
|
|
920
|
-
class Employee < StackOne::Utils::FieldAugmented
|
920
|
+
class Employee < ::StackOne::Utils::FieldAugmented
|
921
921
|
extend T::Sig
|
922
922
|
|
923
923
|
# The employee first name
|
924
|
-
field :first_name, String, { 'format_json': { 'letter_case':
|
924
|
+
field :first_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
|
925
925
|
# The employee ID
|
926
|
-
field :id, String, { 'format_json': { 'letter_case':
|
926
|
+
field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
927
927
|
# The employee last name
|
928
|
-
field :last_name, String, { 'format_json': { 'letter_case':
|
928
|
+
field :last_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
|
929
929
|
# The employee work email
|
930
|
-
field :work_email, String, { 'format_json': { 'letter_case':
|
930
|
+
field :work_email, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_email') } }
|
931
931
|
# The employee avatar
|
932
|
-
field :avatar, T.nilable(Shared::Avatar), { 'format_json': { 'letter_case':
|
932
|
+
field :avatar, T.nilable(Shared::Avatar), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('avatar') } }
|
933
933
|
# The employee avatar Url
|
934
|
-
field :avatar_url, T.nilable(String), { 'format_json': { 'letter_case':
|
934
|
+
field :avatar_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('avatar_url') } }
|
935
935
|
# The employee birthday
|
936
|
-
field :birthday, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
936
|
+
field :birthday, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('birthday'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
937
937
|
# The citizenships of the Employee
|
938
|
-
field :citizenships, T.nilable(T::Array[Shared::CountryCodeEnum]), { 'format_json': { 'letter_case':
|
938
|
+
field :citizenships, T.nilable(T::Array[Shared::CountryCodeEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('citizenships') } }
|
939
939
|
# The employee company name
|
940
|
-
field :company_name, T.nilable(String), { 'format_json': { 'letter_case':
|
940
|
+
field :company_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_name') } }
|
941
941
|
# The created_at date
|
942
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
942
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
943
943
|
# The employee custom fields
|
944
|
-
field :custom_fields, T.nilable(T::Array[Shared::EmployeeCustomFields]), { 'format_json': { 'letter_case':
|
944
|
+
field :custom_fields, T.nilable(T::Array[Shared::EmployeeCustomFields]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_fields') } }
|
945
945
|
# The employee date_of_birth
|
946
|
-
field :date_of_birth, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
946
|
+
field :date_of_birth, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('date_of_birth'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
947
947
|
# The employee department
|
948
|
-
field :department, T.nilable(String), { 'format_json': { 'letter_case':
|
948
|
+
field :department, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department') } }
|
949
949
|
# The employee display name
|
950
|
-
field :display_name, T.nilable(String), { 'format_json': { 'letter_case':
|
950
|
+
field :display_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('display_name') } }
|
951
951
|
# The employment work schedule type (e.g., full-time, part-time)
|
952
|
-
field :employment_contract_type, T.nilable(Shared::EmploymentContractType), { 'format_json': { 'letter_case':
|
952
|
+
field :employment_contract_type, T.nilable(Shared::EmploymentContractType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_contract_type') } }
|
953
953
|
# The employee employment status
|
954
|
-
field :employment_status, T.nilable(Shared::EmploymentStatus), { 'format_json': { 'letter_case':
|
954
|
+
field :employment_status, T.nilable(Shared::EmploymentStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_status') } }
|
955
955
|
# The employee employment type
|
956
|
-
field :employment_type, T.nilable(Shared::EmploymentType), { 'format_json': { 'letter_case':
|
956
|
+
field :employment_type, T.nilable(Shared::EmploymentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_type') } }
|
957
957
|
# The employee employments
|
958
|
-
field :employments, T.nilable(T::Array[Shared::Employment]), { 'format_json': { 'letter_case':
|
958
|
+
field :employments, T.nilable(T::Array[Shared::Employment]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employments') } }
|
959
959
|
# The employee ethnicity
|
960
|
-
field :ethnicity, T.nilable(Shared::Ethnicity), { 'format_json': { 'letter_case':
|
960
|
+
field :ethnicity, T.nilable(Shared::Ethnicity), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('ethnicity') } }
|
961
961
|
# The employee gender
|
962
|
-
field :gender, T.nilable(Shared::Gender), { 'format_json': { 'letter_case':
|
962
|
+
field :gender, T.nilable(Shared::Gender), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('gender') } }
|
963
963
|
# The employee hire date
|
964
|
-
field :hire_date, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
964
|
+
field :hire_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hire_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
965
965
|
# The employee home location
|
966
|
-
field :home_location, T.nilable(Shared::HomeLocation), { 'format_json': { 'letter_case':
|
966
|
+
field :home_location, T.nilable(Shared::HomeLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('home_location') } }
|
967
967
|
# The employee job title
|
968
|
-
field :job_title, T.nilable(String), { 'format_json': { 'letter_case':
|
968
|
+
field :job_title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_title') } }
|
969
969
|
# The employee manager ID
|
970
|
-
field :manager_id, T.nilable(String), { 'format_json': { 'letter_case':
|
970
|
+
field :manager_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('manager_id') } }
|
971
971
|
# The employee marital status
|
972
|
-
field :marital_status, T.nilable(Shared::MaritalStatus), { 'format_json': { 'letter_case':
|
972
|
+
field :marital_status, T.nilable(Shared::MaritalStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('marital_status') } }
|
973
973
|
# The employee name
|
974
|
-
field :name, T.nilable(String), { 'format_json': { 'letter_case':
|
974
|
+
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
975
975
|
# The employee personal email
|
976
|
-
field :personal_email, T.nilable(String), { 'format_json': { 'letter_case':
|
976
|
+
field :personal_email, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('personal_email') } }
|
977
977
|
# The employee personal phone number
|
978
|
-
field :personal_phone_number, T.nilable(String), { 'format_json': { 'letter_case':
|
978
|
+
field :personal_phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('personal_phone_number') } }
|
979
979
|
# The employee start date
|
980
|
-
field :start_date, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
980
|
+
field :start_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
981
981
|
# The employee tenure
|
982
|
-
field :tenure, T.nilable(Float), { 'format_json': { 'letter_case':
|
982
|
+
field :tenure, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tenure') } }
|
983
983
|
# The employee termination date
|
984
|
-
field :termination_date, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
984
|
+
field :termination_date, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('termination_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
985
985
|
# The updated_at date
|
986
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
986
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
987
987
|
# The employee work anniversary
|
988
|
-
field :work_anniversary, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
988
|
+
field :work_anniversary, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_anniversary'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
989
989
|
# The employee work location
|
990
|
-
field :work_location, T.nilable(Shared::WorkLocation), { 'format_json': { 'letter_case':
|
990
|
+
field :work_location, T.nilable(Shared::WorkLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_location') } }
|
991
991
|
# The employee work phone number
|
992
|
-
field :work_phone_number, T.nilable(String), { 'format_json': { 'letter_case':
|
992
|
+
field :work_phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
|
993
993
|
|
994
994
|
|
995
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 }
|
@@ -22,13 +22,13 @@ module StackOne
|
|
22
22
|
|
23
23
|
|
24
24
|
# The type of the custom field.
|
25
|
-
class EmployeeCustomFieldsType < StackOne::Utils::FieldAugmented
|
25
|
+
class EmployeeCustomFieldsType < ::StackOne::Utils::FieldAugmented
|
26
26
|
extend T::Sig
|
27
27
|
|
28
28
|
|
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
|
|
31
|
-
field :value, Shared::EmployeeCustomFieldsSchemasValue, { 'format_json': { 'letter_case':
|
31
|
+
field :value, Shared::EmployeeCustomFieldsSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeCustomFieldsSchemasValue, false) } }
|
32
32
|
|
33
33
|
|
34
34
|
sig { params(source_value: String, value: Shared::EmployeeCustomFieldsSchemasValue).void }
|
@@ -39,7 +39,7 @@ module StackOne
|
|
39
39
|
end
|
40
40
|
|
41
41
|
# The value associated with the custom field.
|
42
|
-
class EmployeeCustomFieldsValue < StackOne::Utils::FieldAugmented
|
42
|
+
class EmployeeCustomFieldsValue < ::StackOne::Utils::FieldAugmented
|
43
43
|
extend T::Sig
|
44
44
|
|
45
45
|
|
@@ -49,23 +49,23 @@ module StackOne
|
|
49
49
|
end
|
50
50
|
|
51
51
|
|
52
|
-
class EmployeeCustomFields < StackOne::Utils::FieldAugmented
|
52
|
+
class EmployeeCustomFields < ::StackOne::Utils::FieldAugmented
|
53
53
|
extend T::Sig
|
54
54
|
|
55
55
|
# The description of the custom field.
|
56
|
-
field :description, T.nilable(String), { 'format_json': { 'letter_case':
|
56
|
+
field :description, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
57
57
|
# The unique identifier for the custom field, which defaults to the name property if the ID is not accessible.
|
58
|
-
field :id, T.nilable(String), { 'format_json': { 'letter_case':
|
58
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
59
59
|
# The name of the custom field.
|
60
|
-
field :name, T.nilable(String), { 'format_json': { 'letter_case':
|
60
|
+
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
61
61
|
# An array of possible options for the custom field.
|
62
|
-
field :options, T.nilable(T::Array[String]), { 'format_json': { 'letter_case':
|
62
|
+
field :options, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('options') } }
|
63
63
|
# The type of the custom field.
|
64
|
-
field :type, T.nilable(Shared::EmployeeCustomFieldsType), { 'format_json': { 'letter_case':
|
64
|
+
field :type, T.nilable(Shared::EmployeeCustomFieldsType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
65
65
|
# The value associated with the custom field.
|
66
|
-
field :value, T.nilable(Shared::EmployeeCustomFieldsValue), { 'format_json': { 'letter_case':
|
66
|
+
field :value, T.nilable(Shared::EmployeeCustomFieldsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
|
67
67
|
# The unique identifier for the value of the custom field.
|
68
|
-
field :value_id, T.nilable(String), { 'format_json': { 'letter_case':
|
68
|
+
field :value_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value_id') } }
|
69
69
|
|
70
70
|
|
71
71
|
sig { params(description: T.nilable(String), id: T.nilable(String), name: T.nilable(String), options: T.nilable(T::Array[String]), type: T.nilable(Shared::EmployeeCustomFieldsType), value: T.nilable(Shared::EmployeeCustomFieldsValue), value_id: T.nilable(String)).void }
|
@@ -10,13 +10,13 @@ require_relative '../shared/employee'
|
|
10
10
|
module StackOne
|
11
11
|
module Shared
|
12
12
|
|
13
|
-
class EmployeeResult < StackOne::Utils::FieldAugmented
|
13
|
+
class EmployeeResult < ::StackOne::Utils::FieldAugmented
|
14
14
|
extend T::Sig
|
15
15
|
|
16
16
|
|
17
|
-
field :data, Shared::Employee, { 'format_json': { 'letter_case':
|
17
|
+
field :data, Shared::Employee, { '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::Employee, 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 EmployeesPaginated < StackOne::Utils::FieldAugmented
|
12
|
+
class EmployeesPaginated < ::StackOne::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :data, T::Array[Shared::Employee], { 'format_json': { 'letter_case':
|
16
|
+
field :data, T::Array[Shared::Employee], { '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::Employee], next_: T.nilable(String), next_page: T.nilable(String), raw: T.nilable(T::Array[Shared::RawResponse])).void }
|