stackone_client 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stackone/models/operations/hris_get_company.rb +12 -2
  3. data/lib/stackone/models/operations/hris_get_employee.rb +12 -2
  4. data/lib/stackone/models/operations/hris_get_employee_document.rb +12 -2
  5. data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +12 -2
  6. data/lib/stackone/models/operations/hris_get_employment.rb +12 -2
  7. data/lib/stackone/models/operations/hris_get_location.rb +12 -2
  8. data/lib/stackone/models/operations/hris_get_time_off_request.rb +12 -2
  9. data/lib/stackone/models/operations/hris_list_companies.rb +12 -2
  10. data/lib/stackone/models/operations/hris_list_employee_documents.rb +12 -2
  11. data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +12 -2
  12. data/lib/stackone/models/operations/hris_list_employees.rb +12 -2
  13. data/lib/stackone/models/operations/hris_list_employments.rb +12 -2
  14. data/lib/stackone/models/operations/hris_list_locations.rb +12 -2
  15. data/lib/stackone/models/operations/hris_list_time_off_requests.rb +12 -2
  16. data/lib/stackone/models/shared/connectsession.rb +5 -5
  17. data/lib/stackone/models/shared/connectsessiontoken.rb +5 -5
  18. data/lib/stackone/models/shared/content.rb +9 -8
  19. data/lib/stackone/models/shared/costcenters.rb +28 -0
  20. data/lib/stackone/models/shared/countrycodeenum.rb +6 -6
  21. data/lib/stackone/models/shared/createtimeoffresult.rb +4 -4
  22. data/lib/stackone/models/shared/documentapimodel.rb +8 -8
  23. data/lib/stackone/models/shared/documenttypeenum.rb +3 -3
  24. data/lib/stackone/models/shared/employee.rb +84 -54
  25. data/lib/stackone/models/shared/employeecustomfields.rb +6 -6
  26. data/lib/stackone/models/shared/employment.rb +36 -28
  27. data/lib/stackone/models/shared/fileformatenum.rb +52 -0
  28. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +43 -36
  29. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +9 -9
  30. data/lib/stackone/models/shared/hrislocation.rb +15 -15
  31. data/lib/stackone/models/shared/timeoff.rb +6 -6
  32. data/lib/stackone/models/shared/workeligibility.rb +101 -0
  33. data/lib/stackone/sdk.rb +1 -4
  34. data/lib/stackone/sdkconfiguration.rb +3 -3
  35. data/lib/stackone_client.rb +5 -155
  36. metadata +5 -155
  37. data/lib/stackone/ats.rb +0 -1289
  38. data/lib/stackone/crm.rb +0 -323
  39. data/lib/stackone/marketing.rb +0 -584
  40. data/lib/stackone/models/operations/ats_create_application.rb +0 -53
  41. data/lib/stackone/models/operations/ats_create_candidate.rb +0 -53
  42. data/lib/stackone/models/operations/ats_create_candidate_note.rb +0 -56
  43. data/lib/stackone/models/operations/ats_create_offer.rb +0 -53
  44. data/lib/stackone/models/operations/ats_get_application.rb +0 -78
  45. data/lib/stackone/models/operations/ats_get_application_offer.rb +0 -81
  46. data/lib/stackone/models/operations/ats_get_application_scorecard.rb +0 -81
  47. data/lib/stackone/models/operations/ats_get_candidate.rb +0 -78
  48. data/lib/stackone/models/operations/ats_get_candidate_note.rb +0 -81
  49. data/lib/stackone/models/operations/ats_get_department.rb +0 -78
  50. data/lib/stackone/models/operations/ats_get_interview.rb +0 -78
  51. data/lib/stackone/models/operations/ats_get_interview_stage.rb +0 -78
  52. data/lib/stackone/models/operations/ats_get_job.rb +0 -78
  53. data/lib/stackone/models/operations/ats_get_job_posting.rb +0 -81
  54. data/lib/stackone/models/operations/ats_get_location.rb +0 -78
  55. data/lib/stackone/models/operations/ats_get_offer.rb +0 -78
  56. data/lib/stackone/models/operations/ats_get_rejected_reason.rb +0 -78
  57. data/lib/stackone/models/operations/ats_get_user.rb +0 -78
  58. data/lib/stackone/models/operations/ats_list_application_scorecards.rb +0 -78
  59. data/lib/stackone/models/operations/ats_list_applications.rb +0 -75
  60. data/lib/stackone/models/operations/ats_list_applications_offers.rb +0 -78
  61. data/lib/stackone/models/operations/ats_list_candidate_notes.rb +0 -78
  62. data/lib/stackone/models/operations/ats_list_candidates.rb +0 -75
  63. data/lib/stackone/models/operations/ats_list_departments.rb +0 -75
  64. data/lib/stackone/models/operations/ats_list_interview_stages.rb +0 -75
  65. data/lib/stackone/models/operations/ats_list_interviews.rb +0 -75
  66. data/lib/stackone/models/operations/ats_list_job_postings.rb +0 -78
  67. data/lib/stackone/models/operations/ats_list_jobs.rb +0 -75
  68. data/lib/stackone/models/operations/ats_list_locations.rb +0 -75
  69. data/lib/stackone/models/operations/ats_list_offers.rb +0 -75
  70. data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +0 -75
  71. data/lib/stackone/models/operations/ats_list_users.rb +0 -75
  72. data/lib/stackone/models/operations/ats_update_application.rb +0 -56
  73. data/lib/stackone/models/operations/ats_update_candidate.rb +0 -56
  74. data/lib/stackone/models/operations/crm_create_contact.rb +0 -53
  75. data/lib/stackone/models/operations/crm_get_account.rb +0 -78
  76. data/lib/stackone/models/operations/crm_get_contact.rb +0 -78
  77. data/lib/stackone/models/operations/crm_get_list.rb +0 -78
  78. data/lib/stackone/models/operations/crm_list_accounts.rb +0 -75
  79. data/lib/stackone/models/operations/crm_list_contacts.rb +0 -75
  80. data/lib/stackone/models/operations/crm_list_lists.rb +0 -75
  81. data/lib/stackone/models/operations/crm_update_contact.rb +0 -56
  82. data/lib/stackone/models/operations/marketing_create_email_template.rb +0 -53
  83. data/lib/stackone/models/operations/marketing_create_omni_channel_template.rb +0 -53
  84. data/lib/stackone/models/operations/marketing_create_push_template.rb +0 -53
  85. data/lib/stackone/models/operations/marketing_get_campaign.rb +0 -78
  86. data/lib/stackone/models/operations/marketing_get_email_template.rb +0 -78
  87. data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +0 -78
  88. data/lib/stackone/models/operations/marketing_get_push_template.rb +0 -78
  89. data/lib/stackone/models/operations/marketing_list_campaigns.rb +0 -75
  90. data/lib/stackone/models/operations/marketing_list_email_templates.rb +0 -75
  91. data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +0 -75
  92. data/lib/stackone/models/operations/marketing_list_push_templates.rb +0 -75
  93. data/lib/stackone/models/operations/marketing_update_email_template.rb +0 -56
  94. data/lib/stackone/models/operations/marketing_update_omni_channel_template.rb +0 -56
  95. data/lib/stackone/models/operations/marketing_update_push_template.rb +0 -56
  96. data/lib/stackone/models/shared/account.rb +0 -55
  97. data/lib/stackone/models/shared/accountaddress.rb +0 -342
  98. data/lib/stackone/models/shared/accountresult.rb +0 -29
  99. data/lib/stackone/models/shared/accountspaginated.rb +0 -34
  100. data/lib/stackone/models/shared/answer.rb +0 -64
  101. data/lib/stackone/models/shared/application.rb +0 -75
  102. data/lib/stackone/models/shared/applicationattachment.rb +0 -63
  103. data/lib/stackone/models/shared/applicationcandidate.rb +0 -31
  104. data/lib/stackone/models/shared/applicationresult.rb +0 -29
  105. data/lib/stackone/models/shared/applicationspaginated.rb +0 -34
  106. data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +0 -50
  107. data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +0 -45
  108. data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +0 -46
  109. data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +0 -57
  110. data/lib/stackone/models/shared/atscreateofferrequestdto.rb +0 -41
  111. data/lib/stackone/models/shared/atslocation.rb +0 -28
  112. data/lib/stackone/models/shared/atslocationresult.rb +0 -29
  113. data/lib/stackone/models/shared/atslocationspaginated.rb +0 -34
  114. data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +0 -48
  115. data/lib/stackone/models/shared/atsupdatecandidatesrequestdto.rb +0 -49
  116. data/lib/stackone/models/shared/attachmenttype.rb +0 -40
  117. data/lib/stackone/models/shared/campaign.rb +0 -120
  118. data/lib/stackone/models/shared/campaignresult.rb +0 -29
  119. data/lib/stackone/models/shared/campaignspaginated.rb +0 -34
  120. data/lib/stackone/models/shared/candidate.rb +0 -64
  121. data/lib/stackone/models/shared/candidateemail.rb +0 -28
  122. data/lib/stackone/models/shared/candidateresult.rb +0 -29
  123. data/lib/stackone/models/shared/candidatespaginated.rb +0 -34
  124. data/lib/stackone/models/shared/channelsenum.rb +0 -42
  125. data/lib/stackone/models/shared/compensation.rb +0 -149
  126. data/lib/stackone/models/shared/contact.rb +0 -52
  127. data/lib/stackone/models/shared/contactresult.rb +0 -29
  128. data/lib/stackone/models/shared/contactspaginated.rb +0 -34
  129. data/lib/stackone/models/shared/createcandidatenoteresult.rb +0 -31
  130. data/lib/stackone/models/shared/createofferresult.rb +0 -31
  131. data/lib/stackone/models/shared/createresult.rb +0 -31
  132. data/lib/stackone/models/shared/createtemplateresult.rb +0 -31
  133. data/lib/stackone/models/shared/crmcreatecontactrequestdto.rb +0 -43
  134. data/lib/stackone/models/shared/department.rb +0 -28
  135. data/lib/stackone/models/shared/departmentresult.rb +0 -29
  136. data/lib/stackone/models/shared/departmentspaginated.rb +0 -34
  137. data/lib/stackone/models/shared/emailmessages.rb +0 -93
  138. data/lib/stackone/models/shared/field.rb +0 -56
  139. data/lib/stackone/models/shared/hiringteam.rb +0 -37
  140. data/lib/stackone/models/shared/interview.rb +0 -91
  141. data/lib/stackone/models/shared/interviewer.rb +0 -37
  142. data/lib/stackone/models/shared/interviewpart.rb +0 -40
  143. data/lib/stackone/models/shared/interviewspaginated.rb +0 -34
  144. data/lib/stackone/models/shared/interviewsresult.rb +0 -29
  145. data/lib/stackone/models/shared/interviewstage.rb +0 -37
  146. data/lib/stackone/models/shared/interviewstageresult.rb +0 -29
  147. data/lib/stackone/models/shared/interviewstagespaginated.rb +0 -34
  148. data/lib/stackone/models/shared/job.rb +0 -65
  149. data/lib/stackone/models/shared/jobposting.rb +0 -182
  150. data/lib/stackone/models/shared/jobpostingresult.rb +0 -29
  151. data/lib/stackone/models/shared/jobpostingspaginated.rb +0 -34
  152. data/lib/stackone/models/shared/jobresult.rb +0 -29
  153. data/lib/stackone/models/shared/jobspaginated.rb +0 -34
  154. data/lib/stackone/models/shared/jobstatusenum.rb +0 -43
  155. data/lib/stackone/models/shared/list.rb +0 -67
  156. data/lib/stackone/models/shared/listresult.rb +0 -29
  157. data/lib/stackone/models/shared/listspaginated.rb +0 -34
  158. data/lib/stackone/models/shared/location.rb +0 -28
  159. data/lib/stackone/models/shared/marketingcreateemailtemplaterequestdto.rb +0 -34
  160. data/lib/stackone/models/shared/marketingcreatepushtemplaterequestdto.rb +0 -34
  161. data/lib/stackone/models/shared/marketingcreatetemplaterequestdto.rb +0 -34
  162. data/lib/stackone/models/shared/message.rb +0 -50
  163. data/lib/stackone/models/shared/note.rb +0 -69
  164. data/lib/stackone/models/shared/notecontentapimodel.rb +0 -25
  165. data/lib/stackone/models/shared/noteresult.rb +0 -29
  166. data/lib/stackone/models/shared/notespaginated.rb +0 -34
  167. data/lib/stackone/models/shared/offer.rb +0 -50
  168. data/lib/stackone/models/shared/offerhistory.rb +0 -37
  169. data/lib/stackone/models/shared/offerspaginated.rb +0 -34
  170. data/lib/stackone/models/shared/offersresult.rb +0 -29
  171. data/lib/stackone/models/shared/offerstatusenum.rb +0 -43
  172. data/lib/stackone/models/shared/pushmessages.rb +0 -81
  173. data/lib/stackone/models/shared/questionnaire.rb +0 -28
  174. data/lib/stackone/models/shared/rejectedreason.rb +0 -32
  175. data/lib/stackone/models/shared/rejectedreasonresult.rb +0 -29
  176. data/lib/stackone/models/shared/rejectedreasonspaginated.rb +0 -34
  177. data/lib/stackone/models/shared/rejectedreasontypeenum.rb +0 -40
  178. data/lib/stackone/models/shared/resultlink.rb +0 -28
  179. data/lib/stackone/models/shared/scorecard.rb +0 -65
  180. data/lib/stackone/models/shared/scorecardsection.rb +0 -31
  181. data/lib/stackone/models/shared/scorecardspaginated.rb +0 -34
  182. data/lib/stackone/models/shared/sociallink.rb +0 -28
  183. data/lib/stackone/models/shared/template.rb +0 -37
  184. data/lib/stackone/models/shared/templateresult.rb +0 -29
  185. data/lib/stackone/models/shared/templatespaginated.rb +0 -34
  186. data/lib/stackone/models/shared/updateresult.rb +0 -31
  187. data/lib/stackone/models/shared/user.rb +0 -40
  188. data/lib/stackone/models/shared/userresult.rb +0 -29
  189. data/lib/stackone/models/shared/userspaginated.rb +0 -34
@@ -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
- # CompensationValue - The pay frequency of the job postings.
12
- class CompensationValue < 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 PayFrequency < ::StackOne::Utils::FieldAugmented
34
- extend T::Sig
35
-
36
- # The source value of the pay frequency.
37
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
38
- # The pay frequency of the job postings.
39
- field :value, Shared::CompensationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationValue, false) } }
40
-
41
-
42
- sig { params(source_value: String, value: Shared::CompensationValue).void }
43
- def initialize(source_value: nil, value: nil)
44
- @source_value = source_value
45
- @value = value
46
- end
47
- end
48
-
49
- # CompensationSchemasValue - The pay period of the job postings.
50
- class CompensationSchemasValue < 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 PayPeriod < ::StackOne::Utils::FieldAugmented
68
- extend T::Sig
69
-
70
- # The source value of the pay period.
71
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
72
- # The pay period of the job postings.
73
- field :value, Shared::CompensationSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationSchemasValue, false) } }
74
-
75
-
76
- sig { params(source_value: String, value: Shared::CompensationSchemasValue).void }
77
- def initialize(source_value: nil, value: nil)
78
- @source_value = source_value
79
- @value = value
80
- end
81
- end
82
-
83
- # CompensationSchemasTypeValue - The type of the compensation.
84
- class CompensationSchemasTypeValue < 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 CompensationType < ::StackOne::Utils::FieldAugmented
99
- extend T::Sig
100
-
101
- # The source value of the compensation type.
102
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
103
- # The type of the compensation.
104
- field :value, Shared::CompensationSchemasTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationSchemasTypeValue, false) } }
105
-
106
-
107
- sig { params(source_value: String, value: Shared::CompensationSchemasTypeValue).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 Compensation < ::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::PayFrequency), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_frequency') } }
128
-
129
- field :pay_period, T.nilable(Shared::PayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
130
-
131
- field :type, T.nilable(Shared::CompensationType), { '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::PayFrequency), pay_period: T.nilable(Shared::PayPeriod), type: T.nilable(Shared::CompensationType), 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,52 +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 Contact < ::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
- # Timestamp when the contact was created
20
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
21
- # List of associated deal IDs
22
- field :deal_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('deal_ids') } }
23
- # List of contact email addresses
24
- field :emails, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
25
- # The contact first name
26
- field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
27
- # The contact ID
28
- field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
29
- # The contact last name
30
- field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
31
- # List of contact phone numbers
32
- field :phone_numbers, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_numbers') } }
33
- # Timestamp when the contact was last updated
34
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
35
-
36
-
37
- sig { params(account_ids: T.nilable(T::Array[String]), company_name: T.nilable(String), created_at: T.nilable(DateTime), deal_ids: T.nilable(T::Array[String]), emails: T.nilable(T::Array[String]), first_name: T.nilable(String), id: T.nilable(String), last_name: T.nilable(String), phone_numbers: T.nilable(T::Array[String]), updated_at: T.nilable(DateTime)).void }
38
- def initialize(account_ids: nil, company_name: nil, created_at: nil, deal_ids: nil, emails: nil, first_name: nil, id: nil, last_name: nil, phone_numbers: nil, updated_at: nil)
39
- @account_ids = account_ids
40
- @company_name = company_name
41
- @created_at = created_at
42
- @deal_ids = deal_ids
43
- @emails = emails
44
- @first_name = first_name
45
- @id = id
46
- @last_name = last_name
47
- @phone_numbers = phone_numbers
48
- @updated_at = updated_at
49
- end
50
- end
51
- end
52
- 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/contact'
9
-
10
- module StackOne
11
- module Shared
12
-
13
- class ContactResult < ::StackOne::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :data, Shared::Contact, { '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::Contact, 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 ContactsPaginated < ::StackOne::Utils::FieldAugmented
13
- extend T::Sig
14
-
15
-
16
- field :data, T::Array[Shared::Contact], { '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::Contact], 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 CreateCandidateNoteResult < ::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,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 CreateOfferResult < ::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,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 CreateResult < ::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,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, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
17
-
18
- field :name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
19
-
20
-
21
- sig { params(id: String, name: 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, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
17
-
18
- field :from, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('from') } }
19
-
20
- field :subject, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('subject') } }
21
-
22
- field :preheader, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('preheader') } }
23
-
24
- field :reply_to, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('reply-to') } }
25
-
26
-
27
- sig { params(body: String, from: String, subject: String, preheader: T.nilable(String), reply_to: T.nilable(String)).void }
28
- def initialize(body: nil, from: nil, subject: nil, preheader: nil, reply_to: nil)
29
- @body = body
30
- @from = from
31
- @subject = subject
32
- @preheader = preheader
33
- @reply_to = reply_to
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, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
59
-
60
- field :value, Shared::EmailMessagesValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::EmailMessagesValue, false) } }
61
-
62
-
63
- sig { params(source_value: String, value: 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