stackone_client 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stackone/models/operations/hris_get_company.rb +3 -3
  3. data/lib/stackone/models/operations/hris_get_employee.rb +3 -3
  4. data/lib/stackone/models/shared/content.rb +4 -4
  5. data/lib/stackone/models/shared/costcenters.rb +5 -2
  6. data/lib/stackone/models/shared/countrycodeenum.rb +4 -4
  7. data/lib/stackone/models/shared/documentapimodel.rb +8 -8
  8. data/lib/stackone/models/shared/employee.rb +39 -22
  9. data/lib/stackone/models/shared/employeecustomfields.rb +3 -3
  10. data/lib/stackone/models/shared/employment.rb +11 -10
  11. data/lib/stackone/models/shared/{documentfileformatenum.rb → fileformatenum.rb} +16 -4
  12. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +3 -3
  13. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +3 -3
  14. data/lib/stackone/models/shared/hrislocation.rb +8 -8
  15. data/lib/stackone/models/shared/workeligibility.rb +101 -0
  16. data/lib/stackone/sdk.rb +1 -4
  17. data/lib/stackone/sdkconfiguration.rb +3 -3
  18. data/lib/stackone_client.rb +4 -154
  19. metadata +3 -153
  20. data/lib/stackone/ats.rb +0 -1289
  21. data/lib/stackone/crm.rb +0 -323
  22. data/lib/stackone/marketing.rb +0 -584
  23. data/lib/stackone/models/operations/ats_create_application.rb +0 -53
  24. data/lib/stackone/models/operations/ats_create_candidate.rb +0 -53
  25. data/lib/stackone/models/operations/ats_create_candidate_note.rb +0 -56
  26. data/lib/stackone/models/operations/ats_create_offer.rb +0 -53
  27. data/lib/stackone/models/operations/ats_get_application.rb +0 -88
  28. data/lib/stackone/models/operations/ats_get_application_offer.rb +0 -91
  29. data/lib/stackone/models/operations/ats_get_application_scorecard.rb +0 -91
  30. data/lib/stackone/models/operations/ats_get_candidate.rb +0 -88
  31. data/lib/stackone/models/operations/ats_get_candidate_note.rb +0 -91
  32. data/lib/stackone/models/operations/ats_get_department.rb +0 -88
  33. data/lib/stackone/models/operations/ats_get_interview.rb +0 -88
  34. data/lib/stackone/models/operations/ats_get_interview_stage.rb +0 -88
  35. data/lib/stackone/models/operations/ats_get_job.rb +0 -88
  36. data/lib/stackone/models/operations/ats_get_job_posting.rb +0 -91
  37. data/lib/stackone/models/operations/ats_get_location.rb +0 -88
  38. data/lib/stackone/models/operations/ats_get_offer.rb +0 -88
  39. data/lib/stackone/models/operations/ats_get_rejected_reason.rb +0 -88
  40. data/lib/stackone/models/operations/ats_get_user.rb +0 -88
  41. data/lib/stackone/models/operations/ats_list_application_scorecards.rb +0 -88
  42. data/lib/stackone/models/operations/ats_list_applications.rb +0 -85
  43. data/lib/stackone/models/operations/ats_list_applications_offers.rb +0 -88
  44. data/lib/stackone/models/operations/ats_list_candidate_notes.rb +0 -88
  45. data/lib/stackone/models/operations/ats_list_candidates.rb +0 -85
  46. data/lib/stackone/models/operations/ats_list_departments.rb +0 -85
  47. data/lib/stackone/models/operations/ats_list_interview_stages.rb +0 -85
  48. data/lib/stackone/models/operations/ats_list_interviews.rb +0 -85
  49. data/lib/stackone/models/operations/ats_list_job_postings.rb +0 -88
  50. data/lib/stackone/models/operations/ats_list_jobs.rb +0 -85
  51. data/lib/stackone/models/operations/ats_list_locations.rb +0 -85
  52. data/lib/stackone/models/operations/ats_list_offers.rb +0 -85
  53. data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +0 -85
  54. data/lib/stackone/models/operations/ats_list_users.rb +0 -85
  55. data/lib/stackone/models/operations/ats_update_application.rb +0 -56
  56. data/lib/stackone/models/operations/ats_update_candidate.rb +0 -56
  57. data/lib/stackone/models/operations/crm_create_contact.rb +0 -53
  58. data/lib/stackone/models/operations/crm_get_account.rb +0 -88
  59. data/lib/stackone/models/operations/crm_get_contact.rb +0 -88
  60. data/lib/stackone/models/operations/crm_get_list.rb +0 -88
  61. data/lib/stackone/models/operations/crm_list_accounts.rb +0 -85
  62. data/lib/stackone/models/operations/crm_list_contacts.rb +0 -85
  63. data/lib/stackone/models/operations/crm_list_lists.rb +0 -85
  64. data/lib/stackone/models/operations/crm_update_contact.rb +0 -56
  65. data/lib/stackone/models/operations/marketing_create_email_template.rb +0 -53
  66. data/lib/stackone/models/operations/marketing_create_omni_channel_template.rb +0 -53
  67. data/lib/stackone/models/operations/marketing_create_push_template.rb +0 -53
  68. data/lib/stackone/models/operations/marketing_get_campaign.rb +0 -88
  69. data/lib/stackone/models/operations/marketing_get_email_template.rb +0 -88
  70. data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +0 -88
  71. data/lib/stackone/models/operations/marketing_get_push_template.rb +0 -88
  72. data/lib/stackone/models/operations/marketing_list_campaigns.rb +0 -85
  73. data/lib/stackone/models/operations/marketing_list_email_templates.rb +0 -85
  74. data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +0 -85
  75. data/lib/stackone/models/operations/marketing_list_push_templates.rb +0 -85
  76. data/lib/stackone/models/operations/marketing_update_email_template.rb +0 -56
  77. data/lib/stackone/models/operations/marketing_update_omni_channel_template.rb +0 -56
  78. data/lib/stackone/models/operations/marketing_update_push_template.rb +0 -56
  79. data/lib/stackone/models/shared/account.rb +0 -55
  80. data/lib/stackone/models/shared/accountaddress.rb +0 -342
  81. data/lib/stackone/models/shared/accountresult.rb +0 -29
  82. data/lib/stackone/models/shared/accountspaginated.rb +0 -34
  83. data/lib/stackone/models/shared/answer.rb +0 -64
  84. data/lib/stackone/models/shared/application.rb +0 -158
  85. data/lib/stackone/models/shared/applicationattachment.rb +0 -63
  86. data/lib/stackone/models/shared/applicationresult.rb +0 -29
  87. data/lib/stackone/models/shared/applicationspaginated.rb +0 -34
  88. data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +0 -102
  89. data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +0 -46
  90. data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +0 -57
  91. data/lib/stackone/models/shared/atscreateofferrequestdto.rb +0 -72
  92. data/lib/stackone/models/shared/atslocation.rb +0 -28
  93. data/lib/stackone/models/shared/atslocationresult.rb +0 -29
  94. data/lib/stackone/models/shared/atslocationspaginated.rb +0 -34
  95. data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +0 -105
  96. data/lib/stackone/models/shared/atsupdatecandidatesrequestdto.rb +0 -49
  97. data/lib/stackone/models/shared/attachmenttype.rb +0 -40
  98. data/lib/stackone/models/shared/campaign.rb +0 -120
  99. data/lib/stackone/models/shared/campaignresult.rb +0 -29
  100. data/lib/stackone/models/shared/campaignspaginated.rb +0 -34
  101. data/lib/stackone/models/shared/candidate.rb +0 -64
  102. data/lib/stackone/models/shared/candidateemail.rb +0 -28
  103. data/lib/stackone/models/shared/candidateresult.rb +0 -29
  104. data/lib/stackone/models/shared/candidatespaginated.rb +0 -34
  105. data/lib/stackone/models/shared/channelsenum.rb +0 -42
  106. data/lib/stackone/models/shared/contact.rb +0 -52
  107. data/lib/stackone/models/shared/contactresult.rb +0 -29
  108. data/lib/stackone/models/shared/contactspaginated.rb +0 -34
  109. data/lib/stackone/models/shared/createcandidatenoteresult.rb +0 -31
  110. data/lib/stackone/models/shared/createofferresult.rb +0 -31
  111. data/lib/stackone/models/shared/createresult.rb +0 -31
  112. data/lib/stackone/models/shared/createtemplateresult.rb +0 -31
  113. data/lib/stackone/models/shared/crmcreatecontactrequestdto.rb +0 -43
  114. data/lib/stackone/models/shared/department.rb +0 -28
  115. data/lib/stackone/models/shared/departmentresult.rb +0 -29
  116. data/lib/stackone/models/shared/departmentspaginated.rb +0 -34
  117. data/lib/stackone/models/shared/emailmessages.rb +0 -93
  118. data/lib/stackone/models/shared/field.rb +0 -56
  119. data/lib/stackone/models/shared/interview.rb +0 -117
  120. data/lib/stackone/models/shared/interviewer.rb +0 -37
  121. data/lib/stackone/models/shared/interviewpart.rb +0 -40
  122. data/lib/stackone/models/shared/interviewspaginated.rb +0 -34
  123. data/lib/stackone/models/shared/interviewsresult.rb +0 -29
  124. data/lib/stackone/models/shared/interviewstage.rb +0 -37
  125. data/lib/stackone/models/shared/interviewstageresult.rb +0 -29
  126. data/lib/stackone/models/shared/interviewstagespaginated.rb +0 -34
  127. data/lib/stackone/models/shared/job.rb +0 -96
  128. data/lib/stackone/models/shared/jobhiringteam.rb +0 -37
  129. data/lib/stackone/models/shared/jobposting.rb +0 -189
  130. data/lib/stackone/models/shared/jobpostingcompensation.rb +0 -149
  131. data/lib/stackone/models/shared/jobpostinglocation.rb +0 -28
  132. data/lib/stackone/models/shared/jobpostingquestionnaire.rb +0 -34
  133. data/lib/stackone/models/shared/jobpostingresult.rb +0 -29
  134. data/lib/stackone/models/shared/jobpostingspaginated.rb +0 -34
  135. data/lib/stackone/models/shared/jobresult.rb +0 -29
  136. data/lib/stackone/models/shared/jobspaginated.rb +0 -34
  137. data/lib/stackone/models/shared/list.rb +0 -67
  138. data/lib/stackone/models/shared/listresult.rb +0 -29
  139. data/lib/stackone/models/shared/listspaginated.rb +0 -34
  140. data/lib/stackone/models/shared/marketingcreateemailtemplaterequestdto.rb +0 -34
  141. data/lib/stackone/models/shared/marketingcreatepushtemplaterequestdto.rb +0 -34
  142. data/lib/stackone/models/shared/marketingcreatetemplaterequestdto.rb +0 -34
  143. data/lib/stackone/models/shared/message.rb +0 -50
  144. data/lib/stackone/models/shared/note.rb +0 -69
  145. data/lib/stackone/models/shared/notecontentapimodel.rb +0 -25
  146. data/lib/stackone/models/shared/noteresult.rb +0 -29
  147. data/lib/stackone/models/shared/notespaginated.rb +0 -34
  148. data/lib/stackone/models/shared/offer.rb +0 -81
  149. data/lib/stackone/models/shared/offerhistory.rb +0 -37
  150. data/lib/stackone/models/shared/offerspaginated.rb +0 -34
  151. data/lib/stackone/models/shared/offersresult.rb +0 -29
  152. data/lib/stackone/models/shared/pushmessages.rb +0 -81
  153. data/lib/stackone/models/shared/question.rb +0 -73
  154. data/lib/stackone/models/shared/questionmultiplechoiceanswers.rb +0 -28
  155. data/lib/stackone/models/shared/questionnaire.rb +0 -28
  156. data/lib/stackone/models/shared/rejectedreason.rb +0 -60
  157. data/lib/stackone/models/shared/rejectedreasonresult.rb +0 -29
  158. data/lib/stackone/models/shared/rejectedreasonspaginated.rb +0 -34
  159. data/lib/stackone/models/shared/resultlink.rb +0 -28
  160. data/lib/stackone/models/shared/scorecard.rb +0 -65
  161. data/lib/stackone/models/shared/scorecardsection.rb +0 -31
  162. data/lib/stackone/models/shared/scorecardspaginated.rb +0 -34
  163. data/lib/stackone/models/shared/sociallink.rb +0 -28
  164. data/lib/stackone/models/shared/template.rb +0 -37
  165. data/lib/stackone/models/shared/templateresult.rb +0 -29
  166. data/lib/stackone/models/shared/templatespaginated.rb +0 -34
  167. data/lib/stackone/models/shared/updateresult.rb +0 -31
  168. data/lib/stackone/models/shared/user.rb +0 -40
  169. data/lib/stackone/models/shared/userresult.rb +0 -29
  170. data/lib/stackone/models/shared/userspaginated.rb +0 -34
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d3b75f3a4984f5aa0bb2ae5d603cbe9c97ece14e1d16b0071648e8492ed6fea
4
- data.tar.gz: 2ddc5e915001b379b4627018f59fb42bf98b549b0fd0039e0e244a82f9170f37
3
+ metadata.gz: 15ed9f67376f771d14979088ee92ec81d82128f1e68b80da1dd93b32c72473d8
4
+ data.tar.gz: f7f3273b82fecbf7ae86617defe7d654efbe38f9969a36fbae0c0e971948d6e6
5
5
  SHA512:
6
- metadata.gz: cab909462436059993f863e0cb4c2250fb2164386dd5edf46de1f5b35c3f88d43b9a68ae8922fbcd7fb9b2eabab55a6e87a56c738726bc06005c4a9f024aceb0
7
- data.tar.gz: aead7041b600ed8f8d65762a1be270d2de7d54b09f1094fef7c4cf8acf25c1b1b8a7f0ceb91bf3d54d7323112ed50238d371044d07ea4ead5a3d71013ba6baa6
6
+ metadata.gz: d0b7564a8bae5fbda6aead499f945e7bc6e06c6c60baae4b9a5449c6ecbb20fad2b6652e96f6df5fa42fb352f5d6b3251a706e542b0e019f925c1598403b0177
7
+ data.tar.gz: f99eac64c65caaf52d034a4ee4988c5d07fbd6a4069b5139ab3710b7ebb64077050272d889490e10bec1d8aaad71e41cd5d39b1c633ba724a81dccfc9444b006
@@ -10,7 +10,7 @@ require_relative '../shared/companyresult'
10
10
  module StackOne
11
11
  module Operations
12
12
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
13
- class HrisGetCompanyQueryParamProxy < ::StackOne::Utils::FieldAugmented
13
+ class Proxy < ::StackOne::Utils::FieldAugmented
14
14
  extend T::Sig
15
15
 
16
16
 
@@ -38,7 +38,7 @@ module StackOne
38
38
  # The number of results per page
39
39
  field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
40
40
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
41
- field :proxy, T.nilable(Operations::HrisGetCompanyQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
41
+ field :proxy, T.nilable(Operations::Proxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
42
42
  # Indicates that the raw request result is returned
43
43
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
44
44
  # The sync token to select the only updated results
@@ -47,7 +47,7 @@ module StackOne
47
47
  field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
48
48
 
49
49
 
50
- sig { params(id: String, x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisGetCompanyQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
50
+ sig { params(id: String, x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::Proxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
51
51
  def initialize(id: nil, x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
52
52
  @id = id
53
53
  @x_account_id = x_account_id
@@ -10,7 +10,7 @@ require_relative '../shared/employeeresult'
10
10
  module StackOne
11
11
  module Operations
12
12
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
13
- class HrisGetEmployeeQueryParamProxy < ::StackOne::Utils::FieldAugmented
13
+ class QueryParamProxy < ::StackOne::Utils::FieldAugmented
14
14
  extend T::Sig
15
15
 
16
16
 
@@ -42,7 +42,7 @@ module StackOne
42
42
  # The number of results per page
43
43
  field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
44
44
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
45
- field :proxy, T.nilable(Operations::HrisGetEmployeeQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
45
+ field :proxy, T.nilable(Operations::QueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
46
46
  # Indicates that the raw request result is returned
47
47
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
48
48
  # The sync token to select the only updated results
@@ -51,7 +51,7 @@ module StackOne
51
51
  field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
52
52
 
53
53
 
54
- sig { params(id: String, x_account_id: String, expand: T.nilable(String), fields: T.nilable(String), include: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisGetEmployeeQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
54
+ sig { params(id: String, x_account_id: String, expand: T.nilable(String), fields: T.nilable(String), include: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::QueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
55
55
  def initialize(id: nil, x_account_id: nil, expand: nil, fields: nil, include: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
56
56
  @id = id
57
57
  @x_account_id = x_account_id
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'sorbet-runtime'
7
7
  require 'faraday'
8
- require_relative '../shared/documentfileformatenum'
8
+ require_relative '../shared/fileformatenum'
9
9
 
10
10
  module StackOne
11
11
  module Shared
@@ -13,13 +13,13 @@ module StackOne
13
13
  class Content < ::StackOne::Utils::FieldAugmented
14
14
  extend T::Sig
15
15
 
16
- # The file format of the document
17
- field :file_format, T.nilable(Shared::DocumentFileFormatEnum), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
16
+ # The file format of the file
17
+ field :file_format, T.nilable(Shared::FileFormatEnum), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
18
18
  # URL where the file content is located
19
19
  field :url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
20
20
 
21
21
 
22
- sig { params(file_format: T.nilable(Shared::DocumentFileFormatEnum), url: T.nilable(String)).void }
22
+ sig { params(file_format: T.nilable(Shared::FileFormatEnum), url: T.nilable(String)).void }
23
23
  def initialize(file_format: nil, url: nil)
24
24
  @file_format = file_format
25
25
  @url = url
@@ -13,11 +13,14 @@ module StackOne
13
13
  extend T::Sig
14
14
 
15
15
 
16
+ field :distribution_percentage, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('distribution_percentage') } }
17
+
16
18
  field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
17
19
 
18
20
 
19
- sig { params(name: T.nilable(String)).void }
20
- def initialize(name: nil)
21
+ sig { params(distribution_percentage: T.nilable(Float), name: T.nilable(String)).void }
22
+ def initialize(distribution_percentage: nil, name: nil)
23
+ @distribution_percentage = distribution_percentage
21
24
  @name = name
22
25
  end
23
26
  end
@@ -8,8 +8,8 @@ require 'faraday'
8
8
 
9
9
  module StackOne
10
10
  module Shared
11
- # CountryCodeEnumValue - The ISO3166-1 Alpha2 Code of the Country
12
- class CountryCodeEnumValue < T::Enum
11
+ # Value - The ISO3166-1 Alpha2 Code of the Country
12
+ class Value < T::Enum
13
13
  enums do
14
14
  AF = new('AF')
15
15
  AL = new('AL')
@@ -271,10 +271,10 @@ module StackOne
271
271
 
272
272
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
273
273
  # The ISO3166-1 Alpha2 Code of the Country
274
- field :value, T.nilable(Shared::CountryCodeEnumValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CountryCodeEnumValue, true) } }
274
+ field :value, T.nilable(Shared::Value), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::Value, true) } }
275
275
 
276
276
 
277
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::CountryCodeEnumValue)).void }
277
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::Value)).void }
278
278
  def initialize(source_value: nil, value: nil)
279
279
  @source_value = source_value
280
280
  @value = value
@@ -13,23 +13,23 @@ module StackOne
13
13
  class DocumentApiModel < ::StackOne::Utils::FieldAugmented
14
14
  extend T::Sig
15
15
 
16
- # The content of the document
17
- field :contents, T::Array[Shared::Content], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
18
- # The creation date of the document
16
+ # The content of the file
17
+ field :contents, T.nilable(T::Array[Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
18
+ # The creation date of the file
19
19
  field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
- # The unique ID of the document
20
+ # The unique ID of the file
21
21
  field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
22
- # The name of the document
22
+ # The name of the file
23
23
  field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
24
- # The path where the document is stored
24
+ # The path where the file is stored
25
25
  field :path, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
26
26
  # The content type of the document
27
27
  field :type, T.nilable(Shared::DocumentTypeEnum), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
28
- # The update date of the document
28
+ # The update date of the file
29
29
  field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
30
30
 
31
31
 
32
- sig { params(contents: T::Array[Shared::Content], created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), path: T.nilable(String), type: T.nilable(Shared::DocumentTypeEnum), updated_at: T.nilable(DateTime)).void }
32
+ sig { params(contents: T.nilable(T::Array[Shared::Content]), created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), path: T.nilable(String), type: T.nilable(Shared::DocumentTypeEnum), updated_at: T.nilable(DateTime)).void }
33
33
  def initialize(contents: nil, created_at: nil, id: nil, name: nil, path: nil, type: nil, updated_at: nil)
34
34
  @contents = contents
35
35
  @created_at = created_at
@@ -84,7 +84,7 @@ module StackOne
84
84
  end
85
85
  end
86
86
 
87
- # EmployeeSchemasEmploymentTypeValue - The type of the employment.
87
+
88
88
  class EmployeeSchemasEmploymentTypeValue < T::Enum
89
89
  enums do
90
90
  FULL_TIME = new('full_time')
@@ -111,9 +111,9 @@ module StackOne
111
111
  class EmploymentType < ::StackOne::Utils::FieldAugmented
112
112
  extend T::Sig
113
113
 
114
- # The source value of the employment type.
114
+
115
115
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
116
- # The type of the employment.
116
+
117
117
  field :value, T.nilable(Shared::EmployeeSchemasEmploymentTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasEmploymentTypeValue, true) } }
118
118
 
119
119
 
@@ -446,7 +446,7 @@ module StackOne
446
446
 
447
447
 
448
448
  # The country code
449
- class EmployeeCountry < ::StackOne::Utils::FieldAugmented
449
+ class EmployeeSchemasCountry < ::StackOne::Utils::FieldAugmented
450
450
  extend T::Sig
451
451
 
452
452
 
@@ -462,7 +462,7 @@ module StackOne
462
462
  end
463
463
  end
464
464
 
465
- # EmployeeSchemasHomeLocationLocationTypeValue - The type of the location.
465
+
466
466
  class EmployeeSchemasHomeLocationLocationTypeValue < T::Enum
467
467
  enums do
468
468
  HOME = new('home')
@@ -473,12 +473,12 @@ module StackOne
473
473
 
474
474
 
475
475
  # The location type
476
- class EmployeeLocationType < ::StackOne::Utils::FieldAugmented
476
+ class EmployeeSchemasLocationType < ::StackOne::Utils::FieldAugmented
477
477
  extend T::Sig
478
478
 
479
- # The source value of the location type.
479
+
480
480
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
481
- # The type of the location.
481
+
482
482
  field :value, T.nilable(Shared::EmployeeSchemasHomeLocationLocationTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasHomeLocationLocationTypeValue, true) } }
483
483
 
484
484
 
@@ -496,7 +496,7 @@ module StackOne
496
496
  # The city where the location is situated
497
497
  field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
498
498
  # The country code
499
- field :country, T.nilable(Shared::EmployeeCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
499
+ field :country, T.nilable(Shared::EmployeeSchemasCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
500
500
  # The created_at date
501
501
  field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
502
502
  # The employee ID
@@ -504,7 +504,7 @@ module StackOne
504
504
  # The unique ID of the location
505
505
  field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
506
506
  # The location type
507
- field :location_type, T.nilable(Shared::EmployeeLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
507
+ field :location_type, T.nilable(Shared::EmployeeSchemasLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
508
508
  # The name of the location
509
509
  field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
510
510
  # The phone number of the location
@@ -521,7 +521,7 @@ module StackOne
521
521
  field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
522
522
 
523
523
 
524
- sig { params(city: T.nilable(String), country: T.nilable(Shared::EmployeeCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::EmployeeLocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
524
+ sig { params(city: T.nilable(String), country: T.nilable(Shared::EmployeeSchemasCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::EmployeeSchemasLocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
525
525
  def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, updated_at: nil, zip_code: nil)
526
526
  @city = city
527
527
  @country = country
@@ -539,6 +539,20 @@ module StackOne
539
539
  end
540
540
  end
541
541
 
542
+ # The employee job description
543
+ class JobDescription < ::StackOne::Utils::FieldAugmented
544
+ extend T::Sig
545
+
546
+
547
+ field :text, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('text') } }
548
+
549
+
550
+ sig { params(text: T.nilable(String)).void }
551
+ def initialize(text: nil)
552
+ @text = text
553
+ end
554
+ end
555
+
542
556
 
543
557
  class EmployeeSchemasMaritalStatusValue < T::Enum
544
558
  enums do
@@ -830,7 +844,7 @@ module StackOne
830
844
 
831
845
 
832
846
  # The country code
833
- class EmployeeSchemasCountry < ::StackOne::Utils::FieldAugmented
847
+ class EmployeeCountry < ::StackOne::Utils::FieldAugmented
834
848
  extend T::Sig
835
849
 
836
850
 
@@ -846,7 +860,7 @@ module StackOne
846
860
  end
847
861
  end
848
862
 
849
- # EmployeeSchemasWorkLocationLocationTypeValue - The type of the location.
863
+
850
864
  class EmployeeSchemasWorkLocationLocationTypeValue < T::Enum
851
865
  enums do
852
866
  HOME = new('home')
@@ -857,12 +871,12 @@ module StackOne
857
871
 
858
872
 
859
873
  # The location type
860
- class EmployeeSchemasLocationType < ::StackOne::Utils::FieldAugmented
874
+ class EmployeeLocationType < ::StackOne::Utils::FieldAugmented
861
875
  extend T::Sig
862
876
 
863
- # The source value of the location type.
877
+
864
878
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
865
- # The type of the location.
879
+
866
880
  field :value, T.nilable(Shared::EmployeeSchemasWorkLocationLocationTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmployeeSchemasWorkLocationLocationTypeValue, true) } }
867
881
 
868
882
 
@@ -880,7 +894,7 @@ module StackOne
880
894
  # The city where the location is situated
881
895
  field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
882
896
  # The country code
883
- field :country, T.nilable(Shared::EmployeeSchemasCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
897
+ field :country, T.nilable(Shared::EmployeeCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
884
898
  # The created_at date
885
899
  field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
886
900
  # The employee ID
@@ -888,7 +902,7 @@ module StackOne
888
902
  # The unique ID of the location
889
903
  field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
890
904
  # The location type
891
- field :location_type, T.nilable(Shared::EmployeeSchemasLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
905
+ field :location_type, T.nilable(Shared::EmployeeLocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
892
906
  # The name of the location
893
907
  field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
894
908
  # The phone number of the location
@@ -905,7 +919,7 @@ module StackOne
905
919
  field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
906
920
 
907
921
 
908
- sig { params(city: T.nilable(String), country: T.nilable(Shared::EmployeeSchemasCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::EmployeeSchemasLocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
922
+ sig { params(city: T.nilable(String), country: T.nilable(Shared::EmployeeCountry), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::EmployeeLocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
909
923
  def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, updated_at: nil, zip_code: nil)
910
924
  @city = city
911
925
  @country = country
@@ -974,7 +988,7 @@ module StackOne
974
988
  # The employee home location
975
989
  field :home_location, T.nilable(Shared::HomeLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('home_location') } }
976
990
  # The employee job description
977
- field :job_description, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_description') } }
991
+ field :job_description, T.nilable(Shared::JobDescription), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_description') } }
978
992
  # The employee job title
979
993
  field :job_title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_title') } }
980
994
  # The employee manager ID
@@ -997,14 +1011,16 @@ module StackOne
997
1011
  field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
998
1012
  # The employee work anniversary
999
1013
  field :work_anniversary, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_anniversary'), 'decoder': Utils.datetime_from_iso_format(true) } }
1014
+ # The employee work eligibility
1015
+ field :work_eligibility, T.nilable(T::Array[Shared::WorkEligibility]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_eligibility') } }
1000
1016
  # The employee work location
1001
1017
  field :work_location, T.nilable(Shared::WorkLocation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_location') } }
1002
1018
  # The employee work phone number
1003
1019
  field :work_phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
1004
1020
 
1005
1021
 
1006
- sig { params(first_name: String, id: String, last_name: String, work_email: String, avatar: T.nilable(Shared::Avatar), avatar_url: T.nilable(String), birthday: T.nilable(DateTime), citizenships: T.nilable(T::Array[Shared::CountryCodeEnum]), company_name: T.nilable(String), cost_centers: T.nilable(T::Array[Shared::CostCenters]), created_at: T.nilable(DateTime), custom_fields: T.nilable(T::Array[Shared::EmployeeCustomFields]), date_of_birth: T.nilable(DateTime), department: T.nilable(String), display_name: T.nilable(String), employment_contract_type: T.nilable(Shared::EmploymentContractType), employment_status: T.nilable(Shared::EmploymentStatus), employment_type: T.nilable(Shared::EmploymentType), employments: T.nilable(T::Array[Shared::Employment]), ethnicity: T.nilable(Shared::Ethnicity), gender: T.nilable(Shared::Gender), hire_date: T.nilable(DateTime), home_location: T.nilable(Shared::HomeLocation), job_description: T.nilable(String), job_title: T.nilable(String), manager_id: T.nilable(String), marital_status: T.nilable(Shared::MaritalStatus), name: T.nilable(String), personal_email: T.nilable(String), personal_phone_number: T.nilable(String), start_date: T.nilable(DateTime), tenure: T.nilable(Float), termination_date: T.nilable(DateTime), updated_at: T.nilable(DateTime), work_anniversary: T.nilable(DateTime), work_location: T.nilable(Shared::WorkLocation), work_phone_number: T.nilable(String)).void }
1007
- def initialize(first_name: nil, id: nil, last_name: nil, work_email: nil, avatar: nil, avatar_url: nil, birthday: nil, citizenships: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, gender: nil, hire_date: nil, home_location: nil, job_description: nil, job_title: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_location: nil, work_phone_number: nil)
1022
+ sig { params(first_name: String, id: String, last_name: String, work_email: String, avatar: T.nilable(Shared::Avatar), avatar_url: T.nilable(String), birthday: T.nilable(DateTime), citizenships: T.nilable(T::Array[Shared::CountryCodeEnum]), company_name: T.nilable(String), cost_centers: T.nilable(T::Array[Shared::CostCenters]), created_at: T.nilable(DateTime), custom_fields: T.nilable(T::Array[Shared::EmployeeCustomFields]), date_of_birth: T.nilable(DateTime), department: T.nilable(String), display_name: T.nilable(String), employment_contract_type: T.nilable(Shared::EmploymentContractType), employment_status: T.nilable(Shared::EmploymentStatus), employment_type: T.nilable(Shared::EmploymentType), employments: T.nilable(T::Array[Shared::Employment]), ethnicity: T.nilable(Shared::Ethnicity), gender: T.nilable(Shared::Gender), hire_date: T.nilable(DateTime), home_location: T.nilable(Shared::HomeLocation), job_description: T.nilable(Shared::JobDescription), job_title: T.nilable(String), manager_id: T.nilable(String), marital_status: T.nilable(Shared::MaritalStatus), name: T.nilable(String), personal_email: T.nilable(String), personal_phone_number: T.nilable(String), start_date: T.nilable(DateTime), tenure: T.nilable(Float), termination_date: T.nilable(DateTime), updated_at: T.nilable(DateTime), work_anniversary: T.nilable(DateTime), work_eligibility: T.nilable(T::Array[Shared::WorkEligibility]), work_location: T.nilable(Shared::WorkLocation), work_phone_number: T.nilable(String)).void }
1023
+ def initialize(first_name: nil, id: nil, last_name: nil, work_email: nil, avatar: nil, avatar_url: nil, birthday: nil, citizenships: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, gender: nil, hire_date: nil, home_location: nil, job_description: nil, job_title: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_eligibility: nil, work_location: nil, work_phone_number: nil)
1008
1024
  @first_name = first_name
1009
1025
  @id = id
1010
1026
  @last_name = last_name
@@ -1040,6 +1056,7 @@ module StackOne
1040
1056
  @termination_date = termination_date
1041
1057
  @updated_at = updated_at
1042
1058
  @work_anniversary = work_anniversary
1059
+ @work_eligibility = work_eligibility
1043
1060
  @work_location = work_location
1044
1061
  @work_phone_number = work_phone_number
1045
1062
  end
@@ -22,7 +22,7 @@ module StackOne
22
22
 
23
23
 
24
24
  # The type of the custom field.
25
- class EmployeeCustomFieldsType < ::StackOne::Utils::FieldAugmented
25
+ class Type < ::StackOne::Utils::FieldAugmented
26
26
  extend T::Sig
27
27
 
28
28
 
@@ -61,14 +61,14 @@ module StackOne
61
61
  # An array of possible options for the custom field.
62
62
  field :options, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('options') } }
63
63
  # The type of the custom field.
64
- field :type, T.nilable(Shared::EmployeeCustomFieldsType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
64
+ field :type, T.nilable(Shared::Type), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
65
65
  # The value associated with the custom field.
66
66
  field :value, T.nilable(Shared::EmployeeCustomFieldsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
67
67
  # The unique identifier for the value of the custom field.
68
68
  field :value_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value_id') } }
69
69
 
70
70
 
71
- sig { params(description: T.nilable(String), id: T.nilable(String), name: T.nilable(String), options: T.nilable(T::Array[String]), type: T.nilable(Shared::EmployeeCustomFieldsType), value: T.nilable(Shared::EmployeeCustomFieldsValue), value_id: T.nilable(String)).void }
71
+ sig { params(description: T.nilable(String), id: T.nilable(String), name: T.nilable(String), options: T.nilable(T::Array[String]), type: T.nilable(Shared::Type), value: T.nilable(Shared::EmployeeCustomFieldsValue), value_id: T.nilable(String)).void }
72
72
  def initialize(description: nil, id: nil, name: nil, options: nil, type: nil, value: nil, value_id: nil)
73
73
  @description = description
74
74
  @id = id
@@ -36,7 +36,7 @@ module StackOne
36
36
  end
37
37
  end
38
38
 
39
- # EmploymentSchemasValue - The type of the employment.
39
+
40
40
  class EmploymentSchemasValue < T::Enum
41
41
  enums do
42
42
  FULL_TIME = new('full_time')
@@ -63,9 +63,9 @@ module StackOne
63
63
  class EmploymentEmploymentType < ::StackOne::Utils::FieldAugmented
64
64
  extend T::Sig
65
65
 
66
- # The source value of the employment type.
66
+
67
67
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
68
- # The type of the employment.
68
+
69
69
  field :value, T.nilable(Shared::EmploymentSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasValue, true) } }
70
70
 
71
71
 
@@ -76,7 +76,7 @@ module StackOne
76
76
  end
77
77
  end
78
78
 
79
- # EmploymentSchemasPayFrequencyValue - The pay frequency of the job postings.
79
+
80
80
  class EmploymentSchemasPayFrequencyValue < T::Enum
81
81
  enums do
82
82
  HOURLY = new('hourly')
@@ -93,6 +93,8 @@ module StackOne
93
93
  PRO_RATA = new('pro_rata')
94
94
  UNMAPPED_VALUE = new('unmapped_value')
95
95
  HALF_YEARLY = new('half_yearly')
96
+ DAILY = new('daily')
97
+ FIXED = new('fixed')
96
98
  end
97
99
  end
98
100
 
@@ -101,9 +103,9 @@ module StackOne
101
103
  class PayFrequency < ::StackOne::Utils::FieldAugmented
102
104
  extend T::Sig
103
105
 
104
- # The source value of the pay frequency.
106
+
105
107
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
106
- # The pay frequency of the job postings.
108
+
107
109
  field :value, T.nilable(Shared::EmploymentSchemasPayFrequencyValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasPayFrequencyValue, true) } }
108
110
 
109
111
 
@@ -114,7 +116,7 @@ module StackOne
114
116
  end
115
117
  end
116
118
 
117
- # EmploymentSchemasPayPeriodValue - The pay period of the job postings.
119
+
118
120
  class EmploymentSchemasPayPeriodValue < T::Enum
119
121
  enums do
120
122
  HOUR = new('hour')
@@ -125,7 +127,6 @@ module StackOne
125
127
  QUARTER = new('quarter')
126
128
  EVERY_SIX_MONTHS = new('every_six_months')
127
129
  YEAR = new('year')
128
- NONE = new('none')
129
130
  UNMAPPED_VALUE = new('unmapped_value')
130
131
  end
131
132
  end
@@ -135,9 +136,9 @@ module StackOne
135
136
  class PayPeriod < ::StackOne::Utils::FieldAugmented
136
137
  extend T::Sig
137
138
 
138
- # The source value of the pay period.
139
+
139
140
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
140
- # The pay period of the job postings.
141
+
141
142
  field :value, T.nilable(Shared::EmploymentSchemasPayPeriodValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmploymentSchemasPayPeriodValue, true) } }
142
143
 
143
144
 
@@ -9,28 +9,40 @@ require 'faraday'
9
9
  module StackOne
10
10
  module Shared
11
11
 
12
- class DocumentFileFormatEnumValue < T::Enum
12
+ class FileFormatEnumValue < T::Enum
13
13
  enums do
14
14
  PDF = new('pdf')
15
15
  JPG = new('jpg')
16
+ CSV = new('csv')
17
+ XLSX = new('xlsx')
18
+ XLS = new('xls')
19
+ PPT = new('ppt')
16
20
  PNG = new('png')
17
21
  DOC = new('doc')
22
+ HTM = new('htm')
23
+ MLE = new('mle')
24
+ RTF = new('rtf')
25
+ BMP = new('bmp')
26
+ DOCX = new('docx')
27
+ PPTX = new('pptx')
28
+ TXT = new('txt')
29
+ JPEG = new('jpeg')
18
30
  UNMAPPED_VALUE = new('unmapped_value')
19
31
  end
20
32
  end
21
33
 
22
34
 
23
35
 
24
- class DocumentFileFormatEnum < ::StackOne::Utils::FieldAugmented
36
+ class FileFormatEnum < ::StackOne::Utils::FieldAugmented
25
37
  extend T::Sig
26
38
 
27
39
 
28
40
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
29
41
 
30
- field :value, T.nilable(Shared::DocumentFileFormatEnumValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::DocumentFileFormatEnumValue, true) } }
42
+ field :value, T.nilable(Shared::FileFormatEnumValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::FileFormatEnumValue, true) } }
31
43
 
32
44
 
33
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::DocumentFileFormatEnumValue)).void }
45
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::FileFormatEnumValue)).void }
34
46
  def initialize(source_value: nil, value: nil)
35
47
  @source_value = source_value
36
48
  @value = value
@@ -84,7 +84,7 @@ module StackOne
84
84
  end
85
85
  end
86
86
 
87
- # HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue - The type of the employment.
87
+
88
88
  class HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue < T::Enum
89
89
  enums do
90
90
  FULL_TIME = new('full_time')
@@ -111,9 +111,9 @@ module StackOne
111
111
  class HrisCreateEmployeeRequestDtoEmploymentType < ::StackOne::Utils::FieldAugmented
112
112
  extend T::Sig
113
113
 
114
- # The source value of the employment type.
114
+
115
115
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
116
- # The type of the employment.
116
+
117
117
  field :value, T.nilable(Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue, true) } }
118
118
 
119
119
 
@@ -18,7 +18,7 @@ module StackOne
18
18
 
19
19
 
20
20
  # The status of the time off request
21
- class HrisCreateTimeOffRequestDtoStatus < ::StackOne::Utils::FieldAugmented
21
+ class Status < ::StackOne::Utils::FieldAugmented
22
22
  extend T::Sig
23
23
 
24
24
 
@@ -74,12 +74,12 @@ module StackOne
74
74
  # The start date of the time off request
75
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': ::StackOne::Utils.field_name('status') } }
77
+ field :status, T.nilable(Shared::Status), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
78
78
  # The type of the time off request
79
79
  field :type, T.nilable(Shared::HrisCreateTimeOffRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
80
80
 
81
81
 
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 }
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::Status), type: T.nilable(Shared::HrisCreateTimeOffRequestDtoType)).void }
83
83
  def initialize(approver_id: nil, employee_id: nil, end_date: nil, start_date: nil, status: nil, type: nil)
84
84
  @approver_id = approver_id
85
85
  @employee_id = employee_id
@@ -265,7 +265,7 @@ module StackOne
265
265
 
266
266
 
267
267
  # The country code
268
- class HRISLocationCountry < ::StackOne::Utils::FieldAugmented
268
+ class Country < ::StackOne::Utils::FieldAugmented
269
269
  extend T::Sig
270
270
 
271
271
 
@@ -281,7 +281,7 @@ module StackOne
281
281
  end
282
282
  end
283
283
 
284
- # HRISLocationSchemasValue - The type of the location.
284
+
285
285
  class HRISLocationSchemasValue < T::Enum
286
286
  enums do
287
287
  HOME = new('home')
@@ -292,12 +292,12 @@ module StackOne
292
292
 
293
293
 
294
294
  # The location type
295
- class HRISLocationLocationType < ::StackOne::Utils::FieldAugmented
295
+ class LocationType < ::StackOne::Utils::FieldAugmented
296
296
  extend T::Sig
297
297
 
298
- # The source value of the location type.
298
+
299
299
  field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
300
- # The type of the location.
300
+
301
301
  field :value, T.nilable(Shared::HRISLocationSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationSchemasValue, true) } }
302
302
 
303
303
 
@@ -315,7 +315,7 @@ module StackOne
315
315
  # The city where the location is situated
316
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': ::StackOne::Utils.field_name('country') } }
318
+ field :country, T.nilable(Shared::Country), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
319
319
  # The created_at date
320
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
@@ -323,7 +323,7 @@ module StackOne
323
323
  # The unique ID of the location
324
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': ::StackOne::Utils.field_name('location_type') } }
326
+ field :location_type, T.nilable(Shared::LocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
327
327
  # The name of the location
328
328
  field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
329
329
  # The phone number of the location
@@ -340,7 +340,7 @@ module StackOne
340
340
  field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
341
341
 
342
342
 
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 }
343
+ sig { params(city: T.nilable(String), country: T.nilable(Shared::Country), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::LocationType), 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 }
344
344
  def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, updated_at: nil, zip_code: nil)
345
345
  @city = city
346
346
  @country = country