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
@@ -1,34 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
-
12
- class InterviewStagesPaginated < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :data, T::Array[Shared::InterviewStage], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
17
-
18
- field :next_, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
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': ::StackOne::Utils.field_name('next_page') } }
21
-
22
- field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
23
-
24
-
25
- sig { params(data: T::Array[Shared::InterviewStage], next_: T.nilable(String), next_page: T.nilable(String), raw: T.nilable(T::Array[Shared::RawResponse])).void }
26
- def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
27
- @data = data
28
- @next_ = next_
29
- @next_page = next_page
30
- @raw = raw
31
- end
32
- end
33
- end
34
- end
@@ -1,96 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
-
12
- class Confidential < T::Enum
13
- enums do
14
- TRUE = new('true')
15
- FALSE = new('false')
16
- end
17
- end
18
-
19
-
20
- # JobValue - The status of the job.
21
- class JobValue < T::Enum
22
- enums do
23
- PUBLISHED = new('published')
24
- DRAFT = new('draft')
25
- PENDING = new('pending')
26
- INTERNAL = new('internal')
27
- ARCHIVED = new('archived')
28
- CLOSED = new('closed')
29
- OPEN = new('open')
30
- UNMAPPED_VALUE = new('unmapped_value')
31
- end
32
- end
33
-
34
-
35
-
36
- class JobStatus < ::StackOne::Utils::FieldAugmented
37
- extend T::Sig
38
-
39
- # The source value of the job status.
40
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
41
- # The status of the job.
42
- field :value, T.nilable(Shared::JobValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobValue, true) } }
43
-
44
-
45
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::JobValue)).void }
46
- def initialize(source_value: nil, value: nil)
47
- @source_value = source_value
48
- @value = value
49
- end
50
- end
51
-
52
-
53
- class Job < ::StackOne::Utils::FieldAugmented
54
- extend T::Sig
55
-
56
-
57
- field :code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('code') } }
58
-
59
- field :confidential, T.nilable(Shared::Confidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential'), 'decoder': Utils.enum_from_string(Shared::Confidential, true) } }
60
- # Date of creation
61
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
62
-
63
- field :department_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department_ids') } }
64
-
65
- field :hiring_team, T.nilable(T::Array[Shared::JobHiringTeam]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hiring_team') } }
66
-
67
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
68
-
69
- field :job_status, T.nilable(Shared::JobStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_status') } }
70
-
71
- field :location_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_ids') } }
72
-
73
- field :status, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
74
-
75
- field :title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
76
- # Date of last update
77
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
78
-
79
-
80
- sig { params(code: T.nilable(String), confidential: T.nilable(Shared::Confidential), created_at: T.nilable(DateTime), department_ids: T.nilable(T::Array[String]), hiring_team: T.nilable(T::Array[Shared::JobHiringTeam]), id: T.nilable(String), job_status: T.nilable(Shared::JobStatus), location_ids: T.nilable(T::Array[String]), status: T.nilable(String), title: T.nilable(String), updated_at: T.nilable(DateTime)).void }
81
- def initialize(code: nil, confidential: nil, created_at: nil, department_ids: nil, hiring_team: nil, id: nil, job_status: nil, location_ids: nil, status: nil, title: nil, updated_at: nil)
82
- @code = code
83
- @confidential = confidential
84
- @created_at = created_at
85
- @department_ids = department_ids
86
- @hiring_team = hiring_team
87
- @id = id
88
- @job_status = job_status
89
- @location_ids = location_ids
90
- @status = status
91
- @title = title
92
- @updated_at = updated_at
93
- end
94
- end
95
- end
96
- end
@@ -1,37 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
-
12
- class JobHiringTeam < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :email, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
17
-
18
- field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
19
-
20
- field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
21
-
22
- field :role, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('role') } }
23
-
24
- field :user_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } }
25
-
26
-
27
- sig { params(email: T.nilable(String), first_name: T.nilable(String), last_name: T.nilable(String), role: T.nilable(String), user_id: T.nilable(String)).void }
28
- def initialize(email: nil, first_name: nil, last_name: nil, role: nil, user_id: nil)
29
- @email = email
30
- @first_name = first_name
31
- @last_name = last_name
32
- @role = role
33
- @user_id = user_id
34
- end
35
- end
36
- end
37
- end
@@ -1,189 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
-
12
- class JobPostingContent < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :html, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('html') } }
17
-
18
- field :plain, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('plain') } }
19
-
20
-
21
- sig { params(html: T.nilable(String), plain: T.nilable(String)).void }
22
- def initialize(html: nil, plain: nil)
23
- @html = html
24
- @plain = plain
25
- end
26
- end
27
-
28
- # JobPostingValue - The employment contract type.
29
- class JobPostingValue < T::Enum
30
- enums do
31
- FULL_TIME = new('full_time')
32
- SHIFTS = new('shifts')
33
- PART_TIME = new('part_time')
34
- UNMAPPED_VALUE = new('unmapped_value')
35
- end
36
- end
37
-
38
-
39
-
40
- class JobPostingEmploymentContractType < ::StackOne::Utils::FieldAugmented
41
- extend T::Sig
42
-
43
- # The source value of the employment contract type.
44
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
45
- # The employment contract type.
46
- field :value, T.nilable(Shared::JobPostingValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobPostingValue, true) } }
47
-
48
-
49
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::JobPostingValue)).void }
50
- def initialize(source_value: nil, value: nil)
51
- @source_value = source_value
52
- @value = value
53
- end
54
- end
55
-
56
- # JobPostingSchemasValue - The type of the employment.
57
- class JobPostingSchemasValue < T::Enum
58
- enums do
59
- FULL_TIME = new('full_time')
60
- PART_TIME = new('part_time')
61
- CONTRACTOR = new('contractor')
62
- INTERN = new('intern')
63
- PERMANENT = new('permanent')
64
- APPRENTICE = new('apprentice')
65
- FREELANCE = new('freelance')
66
- TERMINATED = new('terminated')
67
- TEMPORARY = new('temporary')
68
- SEASONAL = new('seasonal')
69
- VOLUNTEER = new('volunteer')
70
- PROBATION = new('probation')
71
- INTERNAL = new('internal')
72
- EXTERNAL = new('external')
73
- EMPLOYER_OF_RECORD = new('employer_of_record')
74
- UNMAPPED_VALUE = new('unmapped_value')
75
- end
76
- end
77
-
78
-
79
-
80
- class JobPostingEmploymentType < ::StackOne::Utils::FieldAugmented
81
- extend T::Sig
82
-
83
- # The source value of the employment type.
84
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
85
- # The type of the employment.
86
- field :value, T.nilable(Shared::JobPostingSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobPostingSchemasValue, true) } }
87
-
88
-
89
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::JobPostingSchemasValue)).void }
90
- def initialize(source_value: nil, value: nil)
91
- @source_value = source_value
92
- @value = value
93
- end
94
- end
95
-
96
-
97
- class Internal < T::Enum
98
- enums do
99
- TRUE = new('true')
100
- FALSE = new('false')
101
- end
102
- end
103
-
104
-
105
- # JobPostingSchemasStatusValue - The status of the job postings.
106
- class JobPostingSchemasStatusValue < T::Enum
107
- enums do
108
- LIVE = new('live')
109
- DRAFT = new('draft')
110
- CLOSED = new('closed')
111
- UNMAPPED_VALUE = new('unmapped_value')
112
- end
113
- end
114
-
115
-
116
-
117
- class JobPostingStatus < ::StackOne::Utils::FieldAugmented
118
- extend T::Sig
119
-
120
- # The source value of the job postings status.
121
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
122
- # The status of the job postings.
123
- field :value, T.nilable(Shared::JobPostingSchemasStatusValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobPostingSchemasStatusValue, true) } }
124
-
125
-
126
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::JobPostingSchemasStatusValue)).void }
127
- def initialize(source_value: nil, value: nil)
128
- @source_value = source_value
129
- @value = value
130
- end
131
- end
132
-
133
-
134
- class JobPosting < ::StackOne::Utils::FieldAugmented
135
- extend T::Sig
136
-
137
-
138
- field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
139
-
140
- field :compensation, T.nilable(T::Array[Shared::JobPostingCompensation]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('compensation') } }
141
-
142
- field :content, T.nilable(Shared::JobPostingContent), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content') } }
143
- # Date of creation
144
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
145
-
146
- field :employment_contract_type, T.nilable(Shared::JobPostingEmploymentContractType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_contract_type') } }
147
-
148
- field :employment_type, T.nilable(Shared::JobPostingEmploymentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_type') } }
149
-
150
- field :external_apply_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('external_apply_url') } }
151
-
152
- field :external_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('external_url') } }
153
-
154
- field :internal, T.nilable(Shared::Internal), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('internal'), 'decoder': Utils.enum_from_string(Shared::Internal, true) } }
155
-
156
- field :job_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_id') } }
157
-
158
- field :locations, T.nilable(T::Array[Shared::JobPostingLocation]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('locations') } }
159
-
160
- field :questionnaires, T.nilable(T::Array[Shared::JobPostingQuestionnaire]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('questionnaires') } }
161
-
162
- field :status, T.nilable(Shared::JobPostingStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
163
-
164
- field :title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
165
- # Date of last update
166
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
167
-
168
-
169
- sig { params(id: String, compensation: T.nilable(T::Array[Shared::JobPostingCompensation]), content: T.nilable(Shared::JobPostingContent), created_at: T.nilable(DateTime), employment_contract_type: T.nilable(Shared::JobPostingEmploymentContractType), employment_type: T.nilable(Shared::JobPostingEmploymentType), external_apply_url: T.nilable(String), external_url: T.nilable(String), internal: T.nilable(Shared::Internal), job_id: T.nilable(String), locations: T.nilable(T::Array[Shared::JobPostingLocation]), questionnaires: T.nilable(T::Array[Shared::JobPostingQuestionnaire]), status: T.nilable(Shared::JobPostingStatus), title: T.nilable(String), updated_at: T.nilable(DateTime)).void }
170
- def initialize(id: nil, compensation: nil, content: nil, created_at: nil, employment_contract_type: nil, employment_type: nil, external_apply_url: nil, external_url: nil, internal: nil, job_id: nil, locations: nil, questionnaires: nil, status: nil, title: nil, updated_at: nil)
171
- @id = id
172
- @compensation = compensation
173
- @content = content
174
- @created_at = created_at
175
- @employment_contract_type = employment_contract_type
176
- @employment_type = employment_type
177
- @external_apply_url = external_apply_url
178
- @external_url = external_url
179
- @internal = internal
180
- @job_id = job_id
181
- @locations = locations
182
- @questionnaires = questionnaires
183
- @status = status
184
- @title = title
185
- @updated_at = updated_at
186
- end
187
- end
188
- end
189
- end
@@ -1,149 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
- # JobPostingCompensationValue - The pay frequency of the job postings.
12
- class JobPostingCompensationValue < T::Enum
13
- enums do
14
- HOURLY = new('hourly')
15
- WEEKLY = new('weekly')
16
- BI_WEEKLY = new('bi_weekly')
17
- FOUR_WEEKLY = new('four_weekly')
18
- SEMI_MONTHLY = new('semi_monthly')
19
- MONTHLY = new('monthly')
20
- BI_MONTHLY = new('bi_monthly')
21
- QUARTERLY = new('quarterly')
22
- SEMI_ANNUALLY = new('semi_annually')
23
- YEARLY = new('yearly')
24
- THIRTEEN_MONTHLY = new('thirteen_monthly')
25
- PRO_RATA = new('pro_rata')
26
- UNMAPPED_VALUE = new('unmapped_value')
27
- HALF_YEARLY = new('half_yearly')
28
- end
29
- end
30
-
31
-
32
-
33
- class JobPostingCompensationPayFrequency < ::StackOne::Utils::FieldAugmented
34
- extend T::Sig
35
-
36
- # The source value of the pay frequency.
37
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
38
- # The pay frequency of the job postings.
39
- field :value, T.nilable(Shared::JobPostingCompensationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobPostingCompensationValue, true) } }
40
-
41
-
42
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::JobPostingCompensationValue)).void }
43
- def initialize(source_value: nil, value: nil)
44
- @source_value = source_value
45
- @value = value
46
- end
47
- end
48
-
49
- # JobPostingCompensationSchemasValue - The pay period of the job postings.
50
- class JobPostingCompensationSchemasValue < T::Enum
51
- enums do
52
- HOUR = new('hour')
53
- DAY = new('day')
54
- WEEK = new('week')
55
- EVERY_TWO_WEEKS = new('every_two_weeks')
56
- MONTH = new('month')
57
- QUARTER = new('quarter')
58
- EVERY_SIX_MONTHS = new('every_six_months')
59
- YEAR = new('year')
60
- NONE = new('none')
61
- UNMAPPED_VALUE = new('unmapped_value')
62
- end
63
- end
64
-
65
-
66
-
67
- class JobPostingCompensationPayPeriod < ::StackOne::Utils::FieldAugmented
68
- extend T::Sig
69
-
70
- # The source value of the pay period.
71
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
72
- # The pay period of the job postings.
73
- field :value, T.nilable(Shared::JobPostingCompensationSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobPostingCompensationSchemasValue, true) } }
74
-
75
-
76
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::JobPostingCompensationSchemasValue)).void }
77
- def initialize(source_value: nil, value: nil)
78
- @source_value = source_value
79
- @value = value
80
- end
81
- end
82
-
83
- # JobPostingCompensationSchemasTypeValue - The type of the compensation.
84
- class JobPostingCompensationSchemasTypeValue < T::Enum
85
- enums do
86
- SALARY = new('salary')
87
- HOURLY = new('hourly')
88
- COMMISSION = new('commission')
89
- BONUS = new('bonus')
90
- EQUITY = new('equity')
91
- OTHER = new('other')
92
- UNMAPPED_VALUE = new('unmapped_value')
93
- end
94
- end
95
-
96
-
97
-
98
- class JobPostingCompensationType < ::StackOne::Utils::FieldAugmented
99
- extend T::Sig
100
-
101
- # The source value of the compensation type.
102
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
103
- # The type of the compensation.
104
- field :value, T.nilable(Shared::JobPostingCompensationSchemasTypeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobPostingCompensationSchemasTypeValue, true) } }
105
-
106
-
107
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::JobPostingCompensationSchemasTypeValue)).void }
108
- def initialize(source_value: nil, value: nil)
109
- @source_value = source_value
110
- @value = value
111
- end
112
- end
113
-
114
-
115
- class JobPostingCompensation < ::StackOne::Utils::FieldAugmented
116
- extend T::Sig
117
-
118
-
119
- field :currency, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('currency') } }
120
-
121
- field :max_value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('max_value') } }
122
-
123
- field :min_value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('min_value') } }
124
-
125
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
126
-
127
- field :pay_frequency, T.nilable(Shared::JobPostingCompensationPayFrequency), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_frequency') } }
128
-
129
- field :pay_period, T.nilable(Shared::JobPostingCompensationPayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
130
-
131
- field :type, T.nilable(Shared::JobPostingCompensationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
132
-
133
- field :value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
134
-
135
-
136
- sig { params(currency: T.nilable(String), max_value: T.nilable(String), min_value: T.nilable(String), name: T.nilable(String), pay_frequency: T.nilable(Shared::JobPostingCompensationPayFrequency), pay_period: T.nilable(Shared::JobPostingCompensationPayPeriod), type: T.nilable(Shared::JobPostingCompensationType), value: T.nilable(String)).void }
137
- def initialize(currency: nil, max_value: nil, min_value: nil, name: nil, pay_frequency: nil, pay_period: nil, type: nil, value: nil)
138
- @currency = currency
139
- @max_value = max_value
140
- @min_value = min_value
141
- @name = name
142
- @pay_frequency = pay_frequency
143
- @pay_period = pay_period
144
- @type = type
145
- @value = value
146
- end
147
- end
148
- end
149
- end
@@ -1,28 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
-
12
- class JobPostingLocation < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
17
-
18
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
19
-
20
-
21
- sig { params(id: T.nilable(String), name: T.nilable(String)).void }
22
- def initialize(id: nil, name: nil)
23
- @id = id
24
- @name = name
25
- end
26
- end
27
- end
28
- end
@@ -1,34 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
-
12
- class JobPostingQuestionnaire < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
17
-
18
- field :internal, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('internal') } }
19
-
20
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
21
-
22
- field :questions, T.nilable(T::Array[Shared::Question]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('questions') } }
23
-
24
-
25
- sig { params(id: T.nilable(String), internal: T.nilable(T::Boolean), name: T.nilable(String), questions: T.nilable(T::Array[Shared::Question])).void }
26
- def initialize(id: nil, internal: nil, name: nil, questions: nil)
27
- @id = id
28
- @internal = internal
29
- @name = name
30
- @questions = questions
31
- end
32
- end
33
- end
34
- end
@@ -1,29 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
- require_relative '../shared/jobposting'
9
-
10
- module StackOne
11
- module Shared
12
-
13
- class JobPostingResult < ::StackOne::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :data, Shared::JobPosting, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
18
-
19
- field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
20
-
21
-
22
- sig { params(data: Shared::JobPosting, raw: T.nilable(T::Array[Shared::RawResponse])).void }
23
- def initialize(data: nil, raw: nil)
24
- @data = data
25
- @raw = raw
26
- end
27
- end
28
- end
29
- end
@@ -1,34 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module StackOne
10
- module Shared
11
-
12
- class JobPostingsPaginated < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :data, T::Array[Shared::JobPosting], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
17
-
18
- field :next_, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
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': ::StackOne::Utils.field_name('next_page') } }
21
-
22
- field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
23
-
24
-
25
- sig { params(data: T::Array[Shared::JobPosting], next_: T.nilable(String), next_page: T.nilable(String), raw: T.nilable(T::Array[Shared::RawResponse])).void }
26
- def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
27
- @data = data
28
- @next_ = next_
29
- @next_page = next_page
30
- @raw = raw
31
- end
32
- end
33
- end
34
- end
@@ -1,29 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
- require_relative '../shared/job'
9
-
10
- module StackOne
11
- module Shared
12
-
13
- class JobResult < ::StackOne::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :job, Shared::Job, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job') } }
18
-
19
- field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
20
-
21
-
22
- sig { params(job: Shared::Job, raw: T.nilable(T::Array[Shared::RawResponse])).void }
23
- def initialize(job: nil, raw: nil)
24
- @job = job
25
- @raw = raw
26
- end
27
- end
28
- end
29
- end