open_api_smart_recruiters_sdk 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/Gemfile.lock +1 -1
  4. data/lib/.DS_Store +0 -0
  5. data/lib/smart_recruiters/.DS_Store +0 -0
  6. data/lib/smart_recruiters/api/interview_types_api.rb +169 -0
  7. data/lib/smart_recruiters/api/interviews_api.rb +296 -0
  8. data/lib/smart_recruiters/api/messages_api.rb +187 -0
  9. data/lib/smart_recruiters/api/statuses_api.rb +215 -0
  10. data/lib/smart_recruiters/api/timeslots_api.rb +261 -0
  11. data/lib/smart_recruiters/configuration.rb +1 -1
  12. data/lib/smart_recruiters/models/applications.rb +192 -0
  13. data/lib/smart_recruiters/models/attendee_status.rb +202 -0
  14. data/lib/smart_recruiters/models/attendee_status_value.rb +21 -0
  15. data/lib/smart_recruiters/models/candidate_attendee_status_value.rb +22 -0
  16. data/lib/smart_recruiters/models/context.rb +197 -0
  17. data/lib/smart_recruiters/models/interview.rb +305 -0
  18. data/lib/smart_recruiters/models/interview_to_update_input.rb +216 -0
  19. data/lib/smart_recruiters/models/interview_type.rb +188 -0
  20. data/lib/smart_recruiters/models/interview_types.rb +192 -0
  21. data/lib/smart_recruiters/models/interviewer.rb +216 -0
  22. data/lib/smart_recruiters/models/interviewers.rb +192 -0
  23. data/lib/smart_recruiters/models/interviews_list.rb +199 -0
  24. data/lib/smart_recruiters/models/message.rb +222 -0
  25. data/lib/smart_recruiters/models/message_details.rb +206 -0
  26. data/lib/smart_recruiters/models/message_view.rb +233 -0
  27. data/lib/smart_recruiters/models/messages_view.rb +192 -0
  28. data/lib/smart_recruiters/models/share_with.rb +233 -0
  29. data/lib/smart_recruiters/models/timeslot.rb +275 -0
  30. data/lib/smart_recruiters/models/timeslots.rb +192 -0
  31. data/lib/smart_recruiters/models/user_id.rb +189 -0
  32. data/lib/smart_recruiters/models/uuid_read_only.rb +188 -0
  33. data/lib/smart_recruiters/models/visibility.rb +21 -0
  34. data/lib/smart_recruiters/version.rb +1 -1
  35. data/lib/smart_recruiters.rb +2 -19
  36. metadata +31 -1
@@ -0,0 +1,188 @@
1
+
2
+
3
+ require 'date'
4
+
5
+ module SmartRecruiters
6
+ class UuidReadOnly
7
+ # Attribute mapping from ruby-style variable name to JSON key.
8
+ def self.attribute_map
9
+ {
10
+ }
11
+ end
12
+
13
+ # Attribute type mapping.
14
+ def self.openapi_types
15
+ {
16
+ }
17
+ end
18
+
19
+ # List of attributes with nullable: true
20
+ def self.openapi_nullable
21
+ Set.new([
22
+ ])
23
+ end
24
+
25
+ # Initializes the object
26
+ # @param [Hash] attributes Model attributes in the form of hash
27
+ def initialize(attributes = {})
28
+ if (!attributes.is_a?(Hash))
29
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmartRecruiters::UuidReadOnly` initialize method"
30
+ end
31
+
32
+ # check to see if the attribute exists and convert string to symbol for hash key
33
+ attributes = attributes.each_with_object({}) { |(k, v), h|
34
+ if (!self.class.attribute_map.key?(k.to_sym))
35
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmartRecruiters::UuidReadOnly`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
36
+ end
37
+ h[k.to_sym] = v
38
+ }
39
+ end
40
+
41
+ # Show invalid properties with the reasons. Usually used together with valid?
42
+ # @return Array for valid properties with the reasons
43
+ def list_invalid_properties
44
+ invalid_properties = Array.new
45
+ invalid_properties
46
+ end
47
+
48
+ # Check to see if the all the properties in the model are valid
49
+ # @return true if the model is valid
50
+ def valid?
51
+ true
52
+ end
53
+
54
+ # Checks equality by comparing each attribute.
55
+ # @param [Object] Object to be compared
56
+ def ==(o)
57
+ return true if self.equal?(o)
58
+ self.class == o.class
59
+ end
60
+
61
+ # @see the `==` method
62
+ # @param [Object] Object to be compared
63
+ def eql?(o)
64
+ self == o
65
+ end
66
+
67
+ # Calculates hash code according to all attributes.
68
+ # @return [Integer] Hash code
69
+ def hash
70
+ [].hash
71
+ end
72
+
73
+ # Builds the object from hash
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ # @return [Object] Returns the model itself
76
+ def self.build_from_hash(attributes)
77
+ new.build_from_hash(attributes)
78
+ end
79
+
80
+ # Builds the object from hash
81
+ # @param [Hash] attributes Model attributes in the form of hash
82
+ # @return [Object] Returns the model itself
83
+ def build_from_hash(attributes)
84
+ return nil unless attributes.is_a?(Hash)
85
+ self.class.openapi_types.each_pair do |key, type|
86
+ if type =~ /\AArray<(.*)>/i
87
+ # check to ensure the input is an array given that the attribute
88
+ # is documented as an array but the input is not
89
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
90
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
91
+ end
92
+ elsif !attributes[self.class.attribute_map[key]].nil?
93
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
94
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
95
+ self.send("#{key}=", nil)
96
+ end
97
+ end
98
+
99
+ self
100
+ end
101
+
102
+ # Deserializes the data based on type
103
+ # @param string type Data type
104
+ # @param string value Value to be deserialized
105
+ # @return [Object] Deserialized data
106
+ def _deserialize(type, value)
107
+ case type.to_sym
108
+ when :DateTime
109
+ DateTime.parse(value)
110
+ when :Date
111
+ Date.parse(value)
112
+ when :String
113
+ value.to_s
114
+ when :Integer
115
+ value.to_i
116
+ when :Float
117
+ value.to_f
118
+ when :Boolean
119
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
120
+ true
121
+ else
122
+ false
123
+ end
124
+ when :Object
125
+ # generic object (usually a Hash), return directly
126
+ value
127
+ when /\AArray<(?<inner_type>.+)>\z/
128
+ inner_type = Regexp.last_match[:inner_type]
129
+ value.map { |v| _deserialize(inner_type, v) }
130
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
131
+ k_type = Regexp.last_match[:k_type]
132
+ v_type = Regexp.last_match[:v_type]
133
+ {}.tap do |hash|
134
+ value.each do |k, v|
135
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
136
+ end
137
+ end
138
+ else # model
139
+ SmartRecruiters.const_get(type).build_from_hash(value)
140
+ end
141
+ end
142
+
143
+ # Returns the string representation of the object
144
+ # @return [String] String presentation of the object
145
+ def to_s
146
+ to_hash.to_s
147
+ end
148
+
149
+ # to_body is an alias to to_hash (backward compatibility)
150
+ # @return [Hash] Returns the object in the form of hash
151
+ def to_body
152
+ to_hash
153
+ end
154
+
155
+ # Returns the object in the form of hash
156
+ # @return [Hash] Returns the object in the form of hash
157
+ def to_hash
158
+ hash = {}
159
+ self.class.attribute_map.each_pair do |attr, param|
160
+ value = self.send(attr)
161
+ if value.nil?
162
+ is_nullable = self.class.openapi_nullable.include?(attr)
163
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
164
+ end
165
+
166
+ hash[param] = _to_hash(value)
167
+ end
168
+ hash
169
+ end
170
+
171
+ # Outputs non-array value in the form of hash
172
+ # For object, use to_hash. Otherwise, just return the value
173
+ # @param [Object] value Any valid value
174
+ # @return [Hash] Returns the value in the form of hash
175
+ def _to_hash(value)
176
+ if value.is_a?(Array)
177
+ value.compact.map { |v| _to_hash(v) }
178
+ elsif value.is_a?(Hash)
179
+ {}.tap do |hash|
180
+ value.each { |k, v| hash[k] = _to_hash(v) }
181
+ end
182
+ elsif value.respond_to? :to_hash
183
+ value.to_hash
184
+ else
185
+ value
186
+ end
187
+ end end
188
+ end
@@ -0,0 +1,21 @@
1
+
2
+
3
+ require 'date'
4
+
5
+ module SmartRecruiters
6
+ class Visibility
7
+ PRIVATE = 'PRIVATE'.freeze
8
+ DIRECT = 'DIRECT'.freeze
9
+ OPEN = 'OPEN'.freeze
10
+ EVERYONE = 'EVERYONE'.freeze
11
+
12
+ # Builds the enum from string
13
+ # @param [String] The enum value in the form of the string
14
+ # @return [String] The enum value
15
+ def build_from_hash(value)
16
+ constantValues = Visibility.constants.select { |c| Visibility::const_get(c) == value }
17
+ raise "Invalid ENUM value #{value} for class #Visibility" if constantValues.empty?
18
+ value
19
+ end
20
+ end
21
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmartRecruiters
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
@@ -6,27 +6,10 @@ require 'smart_recruiters/configuration'
6
6
  require 'smart_recruiters/authorization'
7
7
 
8
8
  # Models
9
- require 'smart_recruiters/models/answer_record'
10
- require 'smart_recruiters/models/application_status_info'
11
- require 'smart_recruiters/models/apply_api_error'
12
- require 'smart_recruiters/models/apply_api_request'
13
- require 'smart_recruiters/models/apply_api_response'
14
- require 'smart_recruiters/models/apply_configuration'
15
- require 'smart_recruiters/models/apply_settings'
16
- require 'smart_recruiters/models/attachment'
17
- require 'smart_recruiters/models/education'
18
- require 'smart_recruiters/models/employment'
19
- require 'smart_recruiters/models/field_value'
20
- require 'smart_recruiters/models/location'
21
- require 'smart_recruiters/models/privacy_policy'
22
- require 'smart_recruiters/models/screening_question'
23
- require 'smart_recruiters/models/screening_question_answer'
24
- require 'smart_recruiters/models/screening_question_field'
25
- require 'smart_recruiters/models/source_details'
26
- require 'smart_recruiters/models/web'
9
+ Dir[File.join(__dir__, 'smart_recruiters/models', '*.rb')].each { |file| require file }
27
10
 
28
11
  # APIs
29
- require 'smart_recruiters/api/application_api'
12
+ Dir[File.join(__dir__, 'smart_recruiters/api', '*.rb')].each { |file| require file }
30
13
 
31
14
  module SmartRecruiters
32
15
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_api_smart_recruiters_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - OneNeptune
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".DS_Store"
104
105
  - ".rspec"
105
106
  - ".rubocop.yml"
106
107
  - Gemfile
@@ -108,13 +109,20 @@ files:
108
109
  - LICENSE.txt
109
110
  - README.md
110
111
  - Rakefile
112
+ - lib/.DS_Store
111
113
  - lib/smart_recruiters.rb
114
+ - lib/smart_recruiters/.DS_Store
112
115
  - lib/smart_recruiters/api/application_api.rb
113
116
  - lib/smart_recruiters/api/candidates_api.rb
114
117
  - lib/smart_recruiters/api/configuration_api.rb
118
+ - lib/smart_recruiters/api/interview_types_api.rb
119
+ - lib/smart_recruiters/api/interviews_api.rb
115
120
  - lib/smart_recruiters/api/job_applications_api.rb
116
121
  - lib/smart_recruiters/api/jobs_api.rb
122
+ - lib/smart_recruiters/api/messages_api.rb
123
+ - lib/smart_recruiters/api/statuses_api.rb
117
124
  - lib/smart_recruiters/api/subscriptions_api.rb
125
+ - lib/smart_recruiters/api/timeslots_api.rb
118
126
  - lib/smart_recruiters/api_client.rb
119
127
  - lib/smart_recruiters/api_error.rb
120
128
  - lib/smart_recruiters/authorization.rb
@@ -131,6 +139,7 @@ files:
131
139
  - lib/smart_recruiters/models/application_status_info.rb
132
140
  - lib/smart_recruiters/models/application_url.rb
133
141
  - lib/smart_recruiters/models/application_webhook_payload.rb
142
+ - lib/smart_recruiters/models/applications.rb
134
143
  - lib/smart_recruiters/models/apply_api_error.rb
135
144
  - lib/smart_recruiters/models/apply_api_request.rb
136
145
  - lib/smart_recruiters/models/apply_api_response.rb
@@ -141,6 +150,8 @@ files:
141
150
  - lib/smart_recruiters/models/attachment.rb
142
151
  - lib/smart_recruiters/models/attachment_actions.rb
143
152
  - lib/smart_recruiters/models/attachments.rb
153
+ - lib/smart_recruiters/models/attendee_status.rb
154
+ - lib/smart_recruiters/models/attendee_status_value.rb
144
155
  - lib/smart_recruiters/models/callback_authentication.rb
145
156
  - lib/smart_recruiters/models/callback_basic_auth.rb
146
157
  - lib/smart_recruiters/models/callback_header_auth.rb
@@ -155,6 +166,7 @@ files:
155
166
  - lib/smart_recruiters/models/candidate_attachment_for_job.rb
156
167
  - lib/smart_recruiters/models/candidate_attachment_for_job_actions.rb
157
168
  - lib/smart_recruiters/models/candidate_attachments_for_job.rb
169
+ - lib/smart_recruiters/models/candidate_attendee_status_value.rb
158
170
  - lib/smart_recruiters/models/candidate_consent.rb
159
171
  - lib/smart_recruiters/models/candidate_consent_decisions.rb
160
172
  - lib/smart_recruiters/models/candidate_consent_status.rb
@@ -199,6 +211,7 @@ files:
199
211
  - lib/smart_recruiters/models/consent_requests_results.rb
200
212
  - lib/smart_recruiters/models/consent_scope.rb
201
213
  - lib/smart_recruiters/models/consent_status.rb
214
+ - lib/smart_recruiters/models/context.rb
202
215
  - lib/smart_recruiters/models/department.rb
203
216
  - lib/smart_recruiters/models/departments.rb
204
217
  - lib/smart_recruiters/models/dependent_job_properties.rb
@@ -230,6 +243,13 @@ files:
230
243
  - lib/smart_recruiters/models/id_attachments_body.rb
231
244
  - lib/smart_recruiters/models/identifiable.rb
232
245
  - lib/smart_recruiters/models/industry.rb
246
+ - lib/smart_recruiters/models/interview.rb
247
+ - lib/smart_recruiters/models/interview_to_update_input.rb
248
+ - lib/smart_recruiters/models/interview_type.rb
249
+ - lib/smart_recruiters/models/interview_types.rb
250
+ - lib/smart_recruiters/models/interviewer.rb
251
+ - lib/smart_recruiters/models/interviewers.rb
252
+ - lib/smart_recruiters/models/interviews_list.rb
233
253
  - lib/smart_recruiters/models/job.rb
234
254
  - lib/smart_recruiters/models/job_ad.rb
235
255
  - lib/smart_recruiters/models/job_ad_content.rb
@@ -285,6 +305,10 @@ files:
285
305
  - lib/smart_recruiters/models/language.rb
286
306
  - lib/smart_recruiters/models/language_code.rb
287
307
  - lib/smart_recruiters/models/location.rb
308
+ - lib/smart_recruiters/models/message.rb
309
+ - lib/smart_recruiters/models/message_details.rb
310
+ - lib/smart_recruiters/models/message_view.rb
311
+ - lib/smart_recruiters/models/messages_view.rb
288
312
  - lib/smart_recruiters/models/model_when.rb
289
313
  - lib/smart_recruiters/models/offer_approval_webhook_payload.rb
290
314
  - lib/smart_recruiters/models/offer_properties_category.rb
@@ -318,6 +342,7 @@ files:
318
342
  - lib/smart_recruiters/models/screening_question_field.rb
319
343
  - lib/smart_recruiters/models/screening_questions_answers_webhook_payload.rb
320
344
  - lib/smart_recruiters/models/secret_key_payload.rb
345
+ - lib/smart_recruiters/models/share_with.rb
321
346
  - lib/smart_recruiters/models/source.rb
322
347
  - lib/smart_recruiters/models/source_actions.rb
323
348
  - lib/smart_recruiters/models/source_definition.rb
@@ -329,9 +354,14 @@ files:
329
354
  - lib/smart_recruiters/models/subscription.rb
330
355
  - lib/smart_recruiters/models/subscription_request.rb
331
356
  - lib/smart_recruiters/models/subscriptions.rb
357
+ - lib/smart_recruiters/models/timeslot.rb
358
+ - lib/smart_recruiters/models/timeslots.rb
359
+ - lib/smart_recruiters/models/user_id.rb
332
360
  - lib/smart_recruiters/models/user_identity.rb
333
361
  - lib/smart_recruiters/models/uuid.rb
362
+ - lib/smart_recruiters/models/uuid_read_only.rb
334
363
  - lib/smart_recruiters/models/valid_job_status.rb
364
+ - lib/smart_recruiters/models/visibility.rb
335
365
  - lib/smart_recruiters/models/web.rb
336
366
  - lib/smart_recruiters/models/web_profile.rb
337
367
  - lib/smart_recruiters/version.rb