stackone_hris_client 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e40a0f28707fb3f2b735e67f19eb103e43dfe42b3e8bb687a3d4d5227bc3173c
4
- data.tar.gz: 3d1dcda91e789187ccaadebb99285b6c4076173b071b93e2e317ca5cc614f9c6
3
+ metadata.gz: b51bed469dbe48efe770337b1bc3174edfcc49357bde2168a1586a1e588a1dec
4
+ data.tar.gz: 50138272112948faf69ec67fab204684a89b6ed8aaae024f56346c285bac0534
5
5
  SHA512:
6
- metadata.gz: 7ef6498010ca1497752c119c1714d92ff0b0d4c9d788ecc3c85c3cc8e35d12ca1daf2f335c57f7013193f30db24215bee50288ebf83c04b01d02670e040378e9
7
- data.tar.gz: 4664a655fe7f5d67def81a4f4e0c412a2441e880d5594bb37da1739bf4280dae2290430f30713caa260eb2bea5afd6a525c79c5879735550aeb64e6a801b593a
6
+ metadata.gz: b68f232cbfab9128af9a900d56af9ea63d49172a6a4678e408f0d4f5061f19287543286094a7c48ba51e076ed7a93b0e3f136d8d082b1df50f1375b6720d7992
7
+ data.tar.gz: 7d0dbcb36ea6564b88f58af1b6addb6c5ba7a378b0852e723baa19c74a7d0536e7cc293d2da3ec94f45d5a33f875d740c07cdcddede49528e662e14064e69fdc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stackone_hris_client (1.5.1)
4
+ stackone_hris_client (1.5.2)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -7,7 +7,7 @@ The documentation for the StackOne Unified API - HRIS
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 1.5.1
10
+ - Package version: 1.5.2
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build stackone_hris_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./stackone_hris_client-1.5.1.gem
26
+ gem install ./stackone_hris_client-1.5.2.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./stackone_hris_client-1.5.1.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./stackone_hris_client-1.5.2.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'stackone_hris_client', '~> 1.5.1'
35
+ gem 'stackone_hris_client', '~> 1.5.2'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -125,6 +125,7 @@ Class | Method | HTTP request | Description
125
125
  - [StackOneHRIS::EmploymentsPaginated](docs/EmploymentsPaginated.md)
126
126
  - [StackOneHRIS::EthnicityEnum](docs/EthnicityEnum.md)
127
127
  - [StackOneHRIS::GenderEnum](docs/GenderEnum.md)
128
+ - [StackOneHRIS::Image](docs/Image.md)
128
129
  - [StackOneHRIS::Location](docs/Location.md)
129
130
  - [StackOneHRIS::LocationResult](docs/LocationResult.md)
130
131
  - [StackOneHRIS::LocationTypeEnum](docs/LocationTypeEnum.md)
data/docs/Employee.md CHANGED
@@ -14,7 +14,7 @@
14
14
  | **date_of_birth** | **Time** | | [optional] |
15
15
  | **birthday** | **Time** | | [optional] |
16
16
  | **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | | [optional] |
17
- | **avatar_url** | **String** | | [optional] |
17
+ | **avatar** | [**Image**](Image.md) | | [optional] |
18
18
  | **personal_email** | **String** | | [optional] |
19
19
  | **personal_phone_number** | **String** | | |
20
20
  | **work_email** | **String** | | |
@@ -51,7 +51,7 @@ instance = StackOneHRIS::Employee.new(
51
51
  date_of_birth: null,
52
52
  birthday: null,
53
53
  marital_status: null,
54
- avatar_url: null,
54
+ avatar: null,
55
55
  personal_email: null,
56
56
  personal_phone_number: null,
57
57
  work_email: null,
data/docs/EmployeesApi.md CHANGED
@@ -32,7 +32,7 @@ opts = {
32
32
  page: 'page_example', # String | The page number of the results to fetch
33
33
  page_size: 'page_size_example', # String | The number of results per page
34
34
  raw: true, # Boolean | Indicates that the raw request result is returned
35
- fields: 'id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_status,termination_date,company_name', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
35
+ fields: 'id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_status,termination_date,company_name', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
36
36
  sync_token: 'sync_token_example', # String | The sync token to select the only updated results
37
37
  updated_after: 'updated_after_example', # String | Use a string with a date to only select results updated after that given date
38
38
  expand: 'work_location,home_location,employments' # String | The comma separated list of fields that will be expanded in the response
@@ -116,7 +116,7 @@ opts = {
116
116
  page: 'page_example', # String | The page number of the results to fetch
117
117
  page_size: 'page_size_example', # String | The number of results per page
118
118
  raw: true, # Boolean | Indicates that the raw request result is returned
119
- fields: 'id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_status,termination_date,company_name', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
119
+ fields: 'id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_status,termination_date,company_name', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
120
120
  sync_token: 'sync_token_example', # String | The sync token to select the only updated results
121
121
  updated_after: 'updated_after_example', # String | Use a string with a date to only select results updated after that given date
122
122
  expand: 'work_location,home_location,employments' # String | The comma separated list of fields that will be expanded in the response
data/docs/Image.md ADDED
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::Image
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **url** | **String** | | [optional] |
8
+ | **base64** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::Image.new(
16
+ url: null,
17
+ base64: null
18
+ )
19
+ ```
20
+
data/gem-config.yml CHANGED
@@ -10,5 +10,5 @@ additionalProperties:
10
10
  gemName: "stackone_hris_client"
11
11
  gemRequiredRubyVersion: ">= 2.7"
12
12
  gemSummary: "StackOne HRIS client gem"
13
- gemVersion: "1.5.1"
13
+ gemVersion: "1.5.2"
14
14
  library: "typhoeus"
@@ -35,7 +35,7 @@ module StackOneHRIS
35
35
 
36
36
  attr_accessor :marital_status
37
37
 
38
- attr_accessor :avatar_url
38
+ attr_accessor :avatar
39
39
 
40
40
  attr_accessor :personal_email
41
41
 
@@ -88,7 +88,7 @@ module StackOneHRIS
88
88
  :'date_of_birth' => :'date_of_birth',
89
89
  :'birthday' => :'birthday',
90
90
  :'marital_status' => :'marital_status',
91
- :'avatar_url' => :'avatar_url',
91
+ :'avatar' => :'avatar',
92
92
  :'personal_email' => :'personal_email',
93
93
  :'personal_phone_number' => :'personal_phone_number',
94
94
  :'work_email' => :'work_email',
@@ -129,7 +129,7 @@ module StackOneHRIS
129
129
  :'date_of_birth' => :'Time',
130
130
  :'birthday' => :'Time',
131
131
  :'marital_status' => :'MaritalStatusEnum',
132
- :'avatar_url' => :'String',
132
+ :'avatar' => :'Image',
133
133
  :'personal_email' => :'String',
134
134
  :'personal_phone_number' => :'String',
135
135
  :'work_email' => :'String',
@@ -213,8 +213,8 @@ module StackOneHRIS
213
213
  self.marital_status = attributes[:'marital_status']
214
214
  end
215
215
 
216
- if attributes.key?(:'avatar_url')
217
- self.avatar_url = attributes[:'avatar_url']
216
+ if attributes.key?(:'avatar')
217
+ self.avatar = attributes[:'avatar']
218
218
  end
219
219
 
220
220
  if attributes.key?(:'personal_email')
@@ -374,7 +374,7 @@ module StackOneHRIS
374
374
  date_of_birth == o.date_of_birth &&
375
375
  birthday == o.birthday &&
376
376
  marital_status == o.marital_status &&
377
- avatar_url == o.avatar_url &&
377
+ avatar == o.avatar &&
378
378
  personal_email == o.personal_email &&
379
379
  personal_phone_number == o.personal_phone_number &&
380
380
  work_email == o.work_email &&
@@ -405,7 +405,7 @@ module StackOneHRIS
405
405
  # Calculates hash code according to all attributes.
406
406
  # @return [Integer] Hash code
407
407
  def hash
408
- [id, first_name, last_name, name, display_name, gender, ethnicity, date_of_birth, birthday, marital_status, avatar_url, personal_email, personal_phone_number, work_email, work_phone_number, job_title, department, manager_id, hire_date, start_date, tenure, work_anniversary, employment_type, employment_status, termination_date, company_name, home_location, work_location, company, employments].hash
408
+ [id, first_name, last_name, name, display_name, gender, ethnicity, date_of_birth, birthday, marital_status, avatar, personal_email, personal_phone_number, work_email, work_phone_number, job_title, department, manager_id, hire_date, start_date, tenure, work_anniversary, employment_type, employment_status, termination_date, company_name, home_location, work_location, company, employments].hash
409
409
  end
410
410
 
411
411
  # Builds the object from hash
@@ -0,0 +1,226 @@
1
+ =begin
2
+ #StackOne Unified API - HRIS
3
+
4
+ #The documentation for the StackOne Unified API - HRIS
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.5.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module StackOneHRIS
17
+ class Image
18
+ attr_accessor :url
19
+
20
+ attr_accessor :base64
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'url' => :'url',
26
+ :'base64' => :'base64'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'url' => :'String',
39
+ :'base64' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::Image` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::Image`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'url')
65
+ self.url = attributes[:'url']
66
+ end
67
+
68
+ if attributes.key?(:'base64')
69
+ self.base64 = attributes[:'base64']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ url == o.url &&
92
+ base64 == o.base64
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [url, base64].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ attributes = attributes.transform_keys(&:to_sym)
120
+ self.class.openapi_types.each_pair do |key, type|
121
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
+ self.send("#{key}=", nil)
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :Time
144
+ Time.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :Boolean
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ # models (e.g. Pet) or oneOf
175
+ klass = StackOneHRIS.const_get(type)
176
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+ end
226
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.5.0
11
11
  =end
12
12
 
13
13
  module StackOneHRIS
14
- VERSION = '1.5.1'
14
+ VERSION = '1.5.2'
15
15
  end
@@ -36,6 +36,7 @@ require 'stackone_hris_client/models/employment_type_enum'
36
36
  require 'stackone_hris_client/models/employments_paginated'
37
37
  require 'stackone_hris_client/models/ethnicity_enum'
38
38
  require 'stackone_hris_client/models/gender_enum'
39
+ require 'stackone_hris_client/models/image'
39
40
  require 'stackone_hris_client/models/location'
40
41
  require 'stackone_hris_client/models/location_result'
41
42
  require 'stackone_hris_client/models/location_type_enum'
@@ -0,0 +1,40 @@
1
+ =begin
2
+ #StackOne Unified API - HRIS
3
+
4
+ #The documentation for the StackOne Unified API - HRIS
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.5.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for StackOneHRIS::Image
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe StackOneHRIS::Image do
21
+ let(:instance) { StackOneHRIS::Image.new }
22
+
23
+ describe 'test an instance of Image' do
24
+ it 'should create an instance of Image' do
25
+ expect(instance).to be_instance_of(StackOneHRIS::Image)
26
+ end
27
+ end
28
+ describe 'test attribute "url"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "base64"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackone_hris_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - StackOne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-09 00:00:00.000000000 Z
11
+ date: 2023-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -85,6 +85,7 @@ files:
85
85
  - docs/EmploymentsPaginated.md
86
86
  - docs/EthnicityEnum.md
87
87
  - docs/GenderEnum.md
88
+ - docs/Image.md
88
89
  - docs/Location.md
89
90
  - docs/LocationResult.md
90
91
  - docs/LocationTypeEnum.md
@@ -125,6 +126,7 @@ files:
125
126
  - lib/stackone_hris_client/models/employments_paginated.rb
126
127
  - lib/stackone_hris_client/models/ethnicity_enum.rb
127
128
  - lib/stackone_hris_client/models/gender_enum.rb
129
+ - lib/stackone_hris_client/models/image.rb
128
130
  - lib/stackone_hris_client/models/location.rb
129
131
  - lib/stackone_hris_client/models/location_result.rb
130
132
  - lib/stackone_hris_client/models/location_type_enum.rb
@@ -160,6 +162,7 @@ files:
160
162
  - spec/models/employments_paginated_spec.rb
161
163
  - spec/models/ethnicity_enum_spec.rb
162
164
  - spec/models/gender_enum_spec.rb
165
+ - spec/models/image_spec.rb
163
166
  - spec/models/location_result_spec.rb
164
167
  - spec/models/location_spec.rb
165
168
  - spec/models/location_type_enum_spec.rb
@@ -168,7 +171,6 @@ files:
168
171
  - spec/models/pay_frequency_enum_spec.rb
169
172
  - spec/models/pay_period_enum_spec.rb
170
173
  - spec/spec_helper.rb
171
- - stackone_hris_client-1.5.0.gem
172
174
  - stackone_hris_client.gemspec
173
175
  homepage: https://stackone.com
174
176
  licenses:
@@ -216,6 +218,7 @@ test_files:
216
218
  - spec/models/employment_spec.rb
217
219
  - spec/models/company_spec.rb
218
220
  - spec/models/ethnicity_enum_spec.rb
221
+ - spec/models/image_spec.rb
219
222
  - spec/models/pay_frequency_enum_spec.rb
220
223
  - spec/models/connect_session_authenticate_spec.rb
221
224
  - spec/models/location_spec.rb
Binary file