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,81 +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 PushMessagesMessageContent < ::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
-
19
- sig { params(body: T.nilable(String)).void }
20
- def initialize(body: nil)
21
- @body = body
22
- end
23
- end
24
-
25
-
26
- class PushMessagesValue < T::Enum
27
- enums do
28
- EMAIL = new('email')
29
- SMS = new('sms')
30
- WEB_PUSH = new('web_push')
31
- IOS_PUSH = new('ios_push')
32
- ANDROID_PUSH = new('android_push')
33
- APP_PUSH = new('app_push')
34
- OMNI_CHANNEL = new('omni_channel')
35
- UNKNOWN = new('unknown')
36
- UNMAPPED_VALUE = new('unmapped_value')
37
- end
38
- end
39
-
40
-
41
-
42
- class PushMessagesMessageType < ::StackOne::Utils::FieldAugmented
43
- extend T::Sig
44
-
45
-
46
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
47
-
48
- field :value, T.nilable(Shared::PushMessagesValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::PushMessagesValue, true) } }
49
-
50
-
51
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::PushMessagesValue)).void }
52
- def initialize(source_value: nil, value: nil)
53
- @source_value = source_value
54
- @value = value
55
- end
56
- end
57
-
58
-
59
- class PushMessages < ::StackOne::Utils::FieldAugmented
60
- extend T::Sig
61
-
62
-
63
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
64
-
65
- field :message_content, T.nilable(Shared::PushMessagesMessageContent), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message_content') } }
66
-
67
- field :message_type, T.nilable(Shared::PushMessagesMessageType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message_type') } }
68
-
69
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
70
-
71
-
72
- sig { params(id: T.nilable(String), message_content: T.nilable(Shared::PushMessagesMessageContent), message_type: T.nilable(Shared::PushMessagesMessageType), name: T.nilable(String)).void }
73
- def initialize(id: nil, message_content: nil, message_type: nil, name: nil)
74
- @id = id
75
- @message_content = message_content
76
- @message_type = message_type
77
- @name = name
78
- end
79
- end
80
- end
81
- end
@@ -1,73 +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
- # QuestionValue - The type of the questions.
12
- class QuestionValue < T::Enum
13
- enums do
14
- SHORT_TEXT = new('short_text')
15
- LONG_TEXT = new('long_text')
16
- ATTACHMENT = new('attachment')
17
- MULTI_SELECT = new('multi_select')
18
- SINGLE_SELECT = new('single_select')
19
- BOOLEAN = new('boolean')
20
- NUMBER = new('number')
21
- DATE = new('date')
22
- VIDEO = new('video')
23
- end
24
- end
25
-
26
-
27
-
28
- class QuestionType < ::StackOne::Utils::FieldAugmented
29
- extend T::Sig
30
-
31
- # The source value of the questions type.
32
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
33
- # The type of the questions.
34
- field :value, T.nilable(Shared::QuestionValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::QuestionValue, true) } }
35
-
36
-
37
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::QuestionValue)).void }
38
- def initialize(source_value: nil, value: nil)
39
- @source_value = source_value
40
- @value = value
41
- end
42
- end
43
-
44
-
45
- class Question < ::StackOne::Utils::FieldAugmented
46
- extend T::Sig
47
-
48
-
49
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
50
-
51
- field :multiple_choice_answers, T.nilable(T::Array[Shared::QuestionMultipleChoiceAnswers]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('multiple_choice_answers') } }
52
-
53
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
54
-
55
- field :required, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('required') } }
56
-
57
- field :text, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('text') } }
58
-
59
- field :type, T.nilable(Shared::QuestionType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
60
-
61
-
62
- sig { params(id: T.nilable(String), multiple_choice_answers: T.nilable(T::Array[Shared::QuestionMultipleChoiceAnswers]), name: T.nilable(String), required: T.nilable(T::Boolean), text: T.nilable(String), type: T.nilable(Shared::QuestionType)).void }
63
- def initialize(id: nil, multiple_choice_answers: nil, name: nil, required: nil, text: nil, type: nil)
64
- @id = id
65
- @multiple_choice_answers = multiple_choice_answers
66
- @name = name
67
- @required = required
68
- @text = text
69
- @type = type
70
- end
71
- end
72
- end
73
- 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 QuestionMultipleChoiceAnswers < ::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 :text, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('text') } }
19
-
20
-
21
- sig { params(id: T.nilable(String), text: T.nilable(String)).void }
22
- def initialize(id: nil, text: nil)
23
- @id = id
24
- @text = text
25
- end
26
- end
27
- end
28
- 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 Questionnaire < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :answers, T.nilable(T::Array[Shared::Answer]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('answers') } }
17
- # Unique identifier of the questionnaire
18
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
19
-
20
-
21
- sig { params(answers: T.nilable(T::Array[Shared::Answer]), id: T.nilable(String)).void }
22
- def initialize(answers: nil, id: nil)
23
- @answers = answers
24
- @id = id
25
- end
26
- end
27
- end
28
- end
@@ -1,60 +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
- # RejectedReasonValue - The type of the rejected reason.
12
- class RejectedReasonValue < T::Enum
13
- enums do
14
- REJECTED_BY_CANDIDATE = new('rejected_by_candidate')
15
- REJECTED_BY_ORGANIZATION = new('rejected_by_organization')
16
- OTHER = new('other')
17
- UNKNOWN = new('unknown')
18
- UNMAPPED_VALUE = new('unmapped_value')
19
- end
20
- end
21
-
22
-
23
-
24
- class RejectedReasonType < ::StackOne::Utils::FieldAugmented
25
- extend T::Sig
26
-
27
- # The source value of the rejected reason type.
28
- field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
29
- # The type of the rejected reason.
30
- field :value, T.nilable(Shared::RejectedReasonValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::RejectedReasonValue, true) } }
31
-
32
-
33
- sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::RejectedReasonValue)).void }
34
- def initialize(source_value: nil, value: nil)
35
- @source_value = source_value
36
- @value = value
37
- end
38
- end
39
-
40
-
41
- class RejectedReason < ::StackOne::Utils::FieldAugmented
42
- extend T::Sig
43
-
44
- # The ID of the rejected reason.
45
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
46
- # The label of the rejected reason.
47
- field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
48
-
49
- field :rejected_reason_type, T.nilable(Shared::RejectedReasonType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('rejected_reason_type') } }
50
-
51
-
52
- sig { params(id: T.nilable(String), label: T.nilable(String), rejected_reason_type: T.nilable(Shared::RejectedReasonType)).void }
53
- def initialize(id: nil, label: nil, rejected_reason_type: nil)
54
- @id = id
55
- @label = label
56
- @rejected_reason_type = rejected_reason_type
57
- end
58
- end
59
- end
60
- 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/rejectedreason'
9
-
10
- module StackOne
11
- module Shared
12
-
13
- class RejectedReasonResult < ::StackOne::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :data, Shared::RejectedReason, { '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::RejectedReason, 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 RejectedReasonsPaginated < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :data, T::Array[Shared::RejectedReason], { '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::RejectedReason], 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,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 ResultLink < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
- # The URL of the result link.
16
- field :url, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
17
- # The label of the result link.
18
- field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
19
-
20
-
21
- sig { params(url: String, label: T.nilable(String)).void }
22
- def initialize(url: nil, label: nil)
23
- @url = url
24
- @label = label
25
- end
26
- end
27
- end
28
- end
@@ -1,65 +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
- # OverallRecommendation - The overall recommendation
12
- class OverallRecommendation < T::Enum
13
- enums do
14
- STRONG_YES = new('strong_yes')
15
- YES = new('yes')
16
- NO = new('no')
17
- STRONG_NO = new('strong_no')
18
- NO_DECISION = new('no_decision')
19
- UNMAPPED_VALUE = new('unmapped_value')
20
- end
21
- end
22
-
23
-
24
-
25
- class Scorecard < ::StackOne::Utils::FieldAugmented
26
- extend T::Sig
27
-
28
- # The application ID associated with the scorecard
29
- field :application_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_id') } }
30
- # The author ID of the scorecard
31
- field :author_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('author_id') } }
32
- # The candidate ID associated with the scorecard
33
- field :candidate_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate_id') } }
34
- # The creation date of the scorecard
35
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
36
- # The scorecard ID
37
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
38
- # The interview ID associated with the scorecard
39
- field :interview_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_id') } }
40
- # The label of the scorecard
41
- field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
42
- # The overall recommendation
43
- field :overall_recommendation, T.nilable(Shared::OverallRecommendation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('overall_recommendation'), 'decoder': Utils.enum_from_string(Shared::OverallRecommendation, true) } }
44
- # The sections in the scorecard
45
- field :sections, T.nilable(T::Array[Shared::ScorecardSection]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sections') } }
46
- # The update date of the scorecard
47
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
48
-
49
-
50
- sig { params(application_id: T.nilable(String), author_id: T.nilable(String), candidate_id: T.nilable(String), created_at: T.nilable(DateTime), id: T.nilable(String), interview_id: T.nilable(String), label: T.nilable(String), overall_recommendation: T.nilable(Shared::OverallRecommendation), sections: T.nilable(T::Array[Shared::ScorecardSection]), updated_at: T.nilable(DateTime)).void }
51
- def initialize(application_id: nil, author_id: nil, candidate_id: nil, created_at: nil, id: nil, interview_id: nil, label: nil, overall_recommendation: nil, sections: nil, updated_at: nil)
52
- @application_id = application_id
53
- @author_id = author_id
54
- @candidate_id = candidate_id
55
- @created_at = created_at
56
- @id = id
57
- @interview_id = interview_id
58
- @label = label
59
- @overall_recommendation = overall_recommendation
60
- @sections = sections
61
- @updated_at = updated_at
62
- end
63
- end
64
- end
65
- end
@@ -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 ScorecardSection < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
- # The fields within the section
16
- field :fields, T.nilable(T::Array[Shared::Field]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('fields') } }
17
- # The ID of the section
18
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
19
- # The label of the section
20
- field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
21
-
22
-
23
- sig { params(fields: T.nilable(T::Array[Shared::Field]), id: T.nilable(String), label: T.nilable(String)).void }
24
- def initialize(fields: nil, id: nil, label: nil)
25
- @fields = fields
26
- @id = id
27
- @label = label
28
- end
29
- end
30
- end
31
- 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 ScorecardsPaginated < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :data, T::Array[Shared::Scorecard], { '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::Scorecard], 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,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 SocialLink < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
- # Type of the social link
16
- field :type, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
17
- # URL of the social link
18
- field :url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
19
-
20
-
21
- sig { params(type: T.nilable(String), url: T.nilable(String)).void }
22
- def initialize(type: nil, url: nil)
23
- @type = type
24
- @url = url
25
- end
26
- end
27
- end
28
- 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 Template < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
- # Date of creation
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 :tags, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tags') } }
23
- # Date of last update
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), tags: T.nilable(T::Array[String]), updated_at: T.nilable(DateTime)).void }
28
- def initialize(created_at: nil, id: nil, name: nil, tags: nil, updated_at: nil)
29
- @created_at = created_at
30
- @id = id
31
- @name = name
32
- @tags = tags
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/template'
9
-
10
- module StackOne
11
- module Shared
12
-
13
- class TemplateResult < ::StackOne::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :data, Shared::Template, { '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::Template, 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 TemplatesPaginated < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :data, T::Array[Shared::Template], { '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::Template], 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,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 UpdateResult < ::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