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,31 +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 CreateTemplateResult < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :message, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
17
-
18
- field :status_code, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
19
-
20
- field :timestamp, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
21
-
22
-
23
- sig { params(message: String, status_code: Float, timestamp: DateTime).void }
24
- def initialize(message: nil, status_code: nil, timestamp: nil)
25
- @message = message
26
- @status_code = status_code
27
- @timestamp = timestamp
28
- end
29
- end
30
- end
31
- end
@@ -1,43 +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 CrmCreateContactRequestDto < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
- # List of associated account IDs
16
- field :account_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_ids') } }
17
- # The contact company name
18
- field :company_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_name') } }
19
- # List of associated deal IDs
20
- field :deal_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('deal_ids') } }
21
- # List of contact email addresses
22
- field :emails, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
23
- # The contact first name
24
- field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
25
- # The contact last name
26
- field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
27
- # List of contact phone numbers
28
- field :phone_numbers, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_numbers') } }
29
-
30
-
31
- sig { params(account_ids: T.nilable(T::Array[String]), company_name: T.nilable(String), deal_ids: T.nilable(T::Array[String]), emails: T.nilable(T::Array[String]), first_name: T.nilable(String), last_name: T.nilable(String), phone_numbers: T.nilable(T::Array[String])).void }
32
- def initialize(account_ids: nil, company_name: nil, deal_ids: nil, emails: nil, first_name: nil, last_name: nil, phone_numbers: nil)
33
- @account_ids = account_ids
34
- @company_name = company_name
35
- @deal_ids = deal_ids
36
- @emails = emails
37
- @first_name = first_name
38
- @last_name = last_name
39
- @phone_numbers = phone_numbers
40
- end
41
- end
42
- end
43
- 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 Department < ::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,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/department'
9
-
10
- module StackOne
11
- module Shared
12
-
13
- class DepartmentResult < ::StackOne::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :data, Shared::Department, { '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::Department, 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 DepartmentsPaginated < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :data, T::Array[Shared::Department], { '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::Department], 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,93 +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 MessageContent < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :body, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
17
-
18
- field :from, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('from') } }
19
-
20
- field :preheader, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('preheader') } }
21
-
22
- field :reply_to, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('reply-to') } }
23
-
24
- field :subject, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('subject') } }
25
-
26
-
27
- sig { params(body: T.nilable(String), from: T.nilable(String), preheader: T.nilable(String), reply_to: T.nilable(String), subject: T.nilable(String)).void }
28
- def initialize(body: nil, from: nil, preheader: nil, reply_to: nil, subject: nil)
29
- @body = body
30
- @from = from
31
- @preheader = preheader
32
- @reply_to = reply_to
33
- @subject = subject
34
- end
35
- end
36
-
37
-
38
- class EmailMessagesValue < T::Enum
39
- enums do
40
- EMAIL = new('email')
41
- SMS = new('sms')
42
- WEB_PUSH = new('web_push')
43
- IOS_PUSH = new('ios_push')
44
- ANDROID_PUSH = new('android_push')
45
- APP_PUSH = new('app_push')
46
- OMNI_CHANNEL = new('omni_channel')
47
- UNKNOWN = new('unknown')
48
- UNMAPPED_VALUE = new('unmapped_value')
49
- end
50
- end
51
-
52
-
53
-
54
- class MessageType < ::StackOne::Utils::FieldAugmented
55
- extend T::Sig
56
-
57
-
58
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
59
-
60
- field :value, T.nilable(Shared::EmailMessagesValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmailMessagesValue, true) } }
61
-
62
-
63
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::EmailMessagesValue)).void }
64
- def initialize(source_value: nil, value: nil)
65
- @source_value = source_value
66
- @value = value
67
- end
68
- end
69
-
70
-
71
- class EmailMessages < ::StackOne::Utils::FieldAugmented
72
- extend T::Sig
73
-
74
-
75
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
76
-
77
- field :message_content, T.nilable(Shared::MessageContent), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message_content') } }
78
-
79
- field :message_type, T.nilable(Shared::MessageType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message_type') } }
80
-
81
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
82
-
83
-
84
- sig { params(id: T.nilable(String), message_content: T.nilable(Shared::MessageContent), message_type: T.nilable(Shared::MessageType), name: T.nilable(String)).void }
85
- def initialize(id: nil, message_content: nil, message_type: nil, name: nil)
86
- @id = id
87
- @message_content = message_content
88
- @message_type = message_type
89
- @name = name
90
- end
91
- end
92
- end
93
- end
@@ -1,56 +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
- # FieldType - The type of the field
12
- class FieldType < T::Enum
13
- enums do
14
- SHORT_TEXT = new('short_text')
15
- LONG_TEXT = new('long_text')
16
- MULTI_SELECT = new('multi_select')
17
- SINGLE_SELECT = new('single_select')
18
- BOOLEAN = new('boolean')
19
- NUMBER = new('number')
20
- DATE = new('date')
21
- PHONE = new('phone')
22
- EMAIL = new('email')
23
- SCORE = new('score')
24
- LOCATION = new('location')
25
- UNMAPPED_VALUE = new('unmapped_value')
26
- end
27
- end
28
-
29
-
30
-
31
- class Field < ::StackOne::Utils::FieldAugmented
32
- extend T::Sig
33
-
34
- # The ID of the field
35
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
36
- # The label of the field
37
- field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
38
- # Indicates if the field is required
39
- field :required, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('required') } }
40
- # The type of the field
41
- field :type, T.nilable(Shared::FieldType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Shared::FieldType, true) } }
42
- # The possible values for the field
43
- field :values, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('values') } }
44
-
45
-
46
- sig { params(id: T.nilable(String), label: T.nilable(String), required: T.nilable(T::Boolean), type: T.nilable(Shared::FieldType), values: T.nilable(T::Array[String])).void }
47
- def initialize(id: nil, label: nil, required: nil, type: nil, values: nil)
48
- @id = id
49
- @label = label
50
- @required = required
51
- @type = type
52
- @values = values
53
- end
54
- end
55
- end
56
- end
@@ -1,117 +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 InterviewInterviewStage < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
- # Interview Stage created date
16
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
17
-
18
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
19
-
20
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
21
-
22
- field :order, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } }
23
- # Interview Stage updated date
24
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
25
-
26
-
27
- sig { params(created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), order: T.nilable(Float), updated_at: T.nilable(DateTime)).void }
28
- def initialize(created_at: nil, id: nil, name: nil, order: nil, updated_at: nil)
29
- @created_at = created_at
30
- @id = id
31
- @name = name
32
- @order = order
33
- @updated_at = updated_at
34
- end
35
- end
36
-
37
- # InterviewValue - The status of the interview.
38
- class InterviewValue < T::Enum
39
- enums do
40
- UNSCHEDULED = new('unscheduled')
41
- SCHEDULED = new('scheduled')
42
- COMPLETED = new('completed')
43
- CANCELLED = new('cancelled')
44
- PENDING_FEEDBACK = new('pending_feedback')
45
- UNMAPPED_VALUE = new('unmapped_value')
46
- end
47
- end
48
-
49
-
50
-
51
- class InterviewStatus < ::StackOne::Utils::FieldAugmented
52
- extend T::Sig
53
-
54
- # The source value of the interview status.
55
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
56
- # The status of the interview.
57
- field :value, T.nilable(Shared::InterviewValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::InterviewValue, true) } }
58
-
59
-
60
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::InterviewValue)).void }
61
- def initialize(source_value: nil, value: nil)
62
- @source_value = source_value
63
- @value = value
64
- end
65
- end
66
-
67
-
68
- class Interview < ::StackOne::Utils::FieldAugmented
69
- extend T::Sig
70
-
71
-
72
- field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
73
-
74
- field :application_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_id') } }
75
- # Interview created date
76
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
77
- # Interview end date
78
- field :end_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
79
-
80
- field :interview_parts, T.nilable(T::Array[Shared::InterviewPart]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_parts') } }
81
-
82
- field :interview_stage, T.nilable(Shared::InterviewInterviewStage), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage') } }
83
-
84
- field :interview_stage_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage_id') } }
85
-
86
- field :interview_status, T.nilable(Shared::InterviewStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_status') } }
87
-
88
- field :interviewer_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewer_ids') } }
89
-
90
- field :interviewers, T.nilable(T::Array[Shared::Interviewer]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewers') } }
91
-
92
- field :meeting_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('meeting_url') } }
93
- # Interview start date
94
- field :start_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
95
- # Interview updated date
96
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
97
-
98
-
99
- sig { params(id: String, application_id: T.nilable(String), created_at: T.nilable(DateTime), end_at: T.nilable(DateTime), interview_parts: T.nilable(T::Array[Shared::InterviewPart]), interview_stage: T.nilable(Shared::InterviewInterviewStage), interview_stage_id: T.nilable(String), interview_status: T.nilable(Shared::InterviewStatus), interviewer_ids: T.nilable(T::Array[String]), interviewers: T.nilable(T::Array[Shared::Interviewer]), meeting_url: T.nilable(String), start_at: T.nilable(DateTime), updated_at: T.nilable(DateTime)).void }
100
- def initialize(id: nil, application_id: nil, created_at: nil, end_at: nil, interview_parts: nil, interview_stage: nil, interview_stage_id: nil, interview_status: nil, interviewer_ids: nil, interviewers: nil, meeting_url: nil, start_at: nil, updated_at: nil)
101
- @id = id
102
- @application_id = application_id
103
- @created_at = created_at
104
- @end_at = end_at
105
- @interview_parts = interview_parts
106
- @interview_stage = interview_stage
107
- @interview_stage_id = interview_stage_id
108
- @interview_status = interview_status
109
- @interviewer_ids = interviewer_ids
110
- @interviewers = interviewers
111
- @meeting_url = meeting_url
112
- @start_at = start_at
113
- @updated_at = updated_at
114
- end
115
- end
116
- end
117
- 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 Interviewer < ::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 :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
21
-
22
- field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
23
-
24
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
25
-
26
-
27
- sig { params(email: T.nilable(String), first_name: T.nilable(String), id: T.nilable(String), last_name: T.nilable(String), name: T.nilable(String)).void }
28
- def initialize(email: nil, first_name: nil, id: nil, last_name: nil, name: nil)
29
- @email = email
30
- @first_name = first_name
31
- @id = id
32
- @last_name = last_name
33
- @name = name
34
- end
35
- end
36
- end
37
- end
@@ -1,40 +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 InterviewPart < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
- # Interview part created date
16
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
17
-
18
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
19
-
20
- field :interviewer_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interviewer_ids') } }
21
-
22
- field :meeting_provider, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('meeting_provider') } }
23
-
24
- field :meeting_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('meeting_url') } }
25
- # Interview part updated date
26
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
27
-
28
-
29
- sig { params(created_at: T.nilable(DateTime), id: T.nilable(String), interviewer_ids: T.nilable(T::Array[String]), meeting_provider: T.nilable(String), meeting_url: T.nilable(String), updated_at: T.nilable(DateTime)).void }
30
- def initialize(created_at: nil, id: nil, interviewer_ids: nil, meeting_provider: nil, meeting_url: nil, updated_at: nil)
31
- @created_at = created_at
32
- @id = id
33
- @interviewer_ids = interviewer_ids
34
- @meeting_provider = meeting_provider
35
- @meeting_url = meeting_url
36
- @updated_at = updated_at
37
- end
38
- end
39
- end
40
- 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 InterviewsPaginated < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :data, T::Array[Shared::Interview], { '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::Interview], 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/interview'
9
-
10
- module StackOne
11
- module Shared
12
-
13
- class InterviewsResult < ::StackOne::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :data, Shared::Interview, { '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::Interview, 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,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 InterviewStage < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
- # Interview Stage created date
16
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
17
-
18
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
19
-
20
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
21
-
22
- field :order, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } }
23
- # Interview Stage updated date
24
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
25
-
26
-
27
- sig { params(created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), order: T.nilable(Float), updated_at: T.nilable(DateTime)).void }
28
- def initialize(created_at: nil, id: nil, name: nil, order: nil, updated_at: nil)
29
- @created_at = created_at
30
- @id = id
31
- @name = name
32
- @order = order
33
- @updated_at = updated_at
34
- end
35
- end
36
- end
37
- 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/interviewstage'
9
-
10
- module StackOne
11
- module Shared
12
-
13
- class InterviewStageResult < ::StackOne::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :data, Shared::InterviewStage, { '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::InterviewStage, 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