stackone_client 0.2.22 → 0.2.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b313876c6cea374c59103bdcaacf2133d09d81403e0a86fea8beaf1c43323ea3
4
- data.tar.gz: f9168248b1b24fec12a8467dc6fdfd3d51da5c0a60d16be8183b49a33bce8b8c
3
+ metadata.gz: 65143e4a1765dc3df04a1700126b33f40472568d2c690ea2b02e23a0df5d3f08
4
+ data.tar.gz: e77bb57bd0dc260c462d9c665da7292422fa3025e7c54c8201930e6598ae59bd
5
5
  SHA512:
6
- metadata.gz: 01e95ee1b29bb027421933c830dad869843e5ef31a204bbe86b4661c413b9b1fb9d30aac7561bc34f6385a5b0138e4d47f737135faec4614db3483400e7e4661
7
- data.tar.gz: 8ad0e44645fedb30cb5ddcbfe9c5a6f30c54f5527f880918a5cc3c9e392548c43e6e827f7d99fa6804fe1a1d73172d2940de75c826b81b9aeeac8a127678cd73
6
+ metadata.gz: c6fc0f81b7ee0a748ae3a5c30aa861cd53aa61916ab6c34289917ab3587b314ec13c6277ce26b43a0a57176ae9acaa204e350dd2cbde5adacc43fce4015a7bef
7
+ data.tar.gz: 82080bb843b7e86a61a0ac14efb0a7155a108be4dd78071aad78110bc564cd8ed8664c66bea2a5e4ae94877b4caae6121ff5a36fea698dc5a720b1cf1910ea5a
@@ -53,6 +53,8 @@ module StackOne
53
53
  field :first_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
54
54
  # The employee gender
55
55
  field :gender, T.nilable(::StackOne::Shared::Gender), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('gender') } }
56
+ # The employee groups
57
+ field :groups, T.nilable(::StackOne::Shared::Groups), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('groups') } }
56
58
  # The employee hire date
57
59
  field :hire_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hire_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
58
60
  # The employee home location
@@ -97,8 +99,8 @@ module StackOne
97
99
  field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
98
100
 
99
101
 
100
- sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::PreferredLanguage), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
101
- def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
102
+ sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), groups: T.nilable(::StackOne::Shared::Groups), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::PreferredLanguage), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
103
+ def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, groups: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
102
104
  @avatar = avatar
103
105
  @avatar_url = avatar_url
104
106
  @benefits = benefits
@@ -120,6 +122,7 @@ module StackOne
120
122
  @ethnicity = ethnicity
121
123
  @first_name = first_name
122
124
  @gender = gender
125
+ @groups = groups
123
126
  @hire_date = hire_date
124
127
  @home_location = home_location
125
128
  @id = id
@@ -0,0 +1,22 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class EmployeeSchemasGroupsValue < T::Enum
12
+ enums do
13
+ WORKSPACE = new('workspace')
14
+ TEAM = new('team')
15
+ DEPARTMENT = new('department')
16
+ GROUP = new('group')
17
+ UNMAPPED_VALUE = new('unmapped_value')
18
+ end
19
+ end
20
+
21
+ end
22
+ end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # The type of the group
11
+ class EmployeeType < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+
17
+ field :value, T.nilable(::StackOne::Shared::EmployeeSchemasGroupsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::EmployeeSchemasGroupsValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::EmployeeSchemasGroupsValue)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,39 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # The employee groups
11
+ class Groups < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Unique identifier
15
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
16
+ # The name of the group
17
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
18
+ # The list of group owner ids of the given group
19
+ field :owner_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('owner_ids') } }
20
+ # The list of parent group ids of the given group
21
+ field :parent_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('parent_ids') } }
22
+ # Provider's unique identifier
23
+ field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
24
+ # The type of the group
25
+ field :type, T.nilable(::StackOne::Shared::EmployeeType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
26
+
27
+
28
+ sig { params(id: T.nilable(::String), name: T.nilable(::String), owner_ids: T.nilable(T::Array[::String]), parent_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::EmployeeType)).void }
29
+ def initialize(id: nil, name: nil, owner_ids: nil, parent_ids: nil, remote_id: nil, type: nil)
30
+ @id = id
31
+ @name = name
32
+ @owner_ids = owner_ids
33
+ @parent_ids = parent_ids
34
+ @remote_id = remote_id
35
+ @type = type
36
+ end
37
+ end
38
+ end
39
+ end
@@ -17,23 +17,29 @@ module StackOne
17
17
  field :employee_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
18
18
  # The end date of the time off request
19
19
  field :end_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
+ # True if the end of the time off request ends half way through the day
21
+ field :end_half_day, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_half_day') } }
20
22
  # Value to pass through to the provider
21
23
  field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
22
24
  # The start date of the time off request
23
25
  field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
26
+ # True if the start of the time off request begins half way through the day
27
+ field :start_half_day, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_half_day') } }
24
28
  # The status of the time off request
25
29
  field :status, T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
26
30
  # The type of the time off request
27
31
  field :type, T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
28
32
 
29
33
 
30
- sig { params(approver_id: T.nilable(::String), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), passthrough: T.nilable(T::Hash[Symbol, ::Object]), start_date: T.nilable(::DateTime), status: T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoStatus), type: T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoType)).void }
31
- def initialize(approver_id: nil, employee_id: nil, end_date: nil, passthrough: nil, start_date: nil, status: nil, type: nil)
34
+ sig { params(approver_id: T.nilable(::String), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), end_half_day: T.nilable(T::Boolean), passthrough: T.nilable(T::Hash[Symbol, ::Object]), start_date: T.nilable(::DateTime), start_half_day: T.nilable(T::Boolean), status: T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoStatus), type: T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoType)).void }
35
+ def initialize(approver_id: nil, employee_id: nil, end_date: nil, end_half_day: nil, passthrough: nil, start_date: nil, start_half_day: nil, status: nil, type: nil)
32
36
  @approver_id = approver_id
33
37
  @employee_id = employee_id
34
38
  @end_date = end_date
39
+ @end_half_day = end_half_day
35
40
  @passthrough = passthrough
36
41
  @start_date = start_date
42
+ @start_half_day = start_half_day
37
43
  @status = status
38
44
  @type = type
39
45
  end
@@ -19,12 +19,16 @@ module StackOne
19
19
  field :employee_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
20
20
  # The end date of the time off request
21
21
  field :end_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
22
+ # True if the end of the time off request ends half way through the day
23
+ field :end_half_day, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_half_day') } }
22
24
  # Unique identifier
23
25
  field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
24
26
  # Provider's unique identifier
25
27
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
26
28
  # The start date of the time off request
27
29
  field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
30
+ # True if the start of the time off request begins half way through the day
31
+ field :start_half_day, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_half_day') } }
28
32
  # The status of the time off request
29
33
  field :status, T.nilable(::StackOne::Shared::TimeOffStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
30
34
  # The type of the time off request
@@ -33,15 +37,17 @@ module StackOne
33
37
  field :updated_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
34
38
 
35
39
 
36
- sig { params(approver_id: T.nilable(::String), created_date: T.nilable(::DateTime), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), id: T.nilable(::String), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), status: T.nilable(::StackOne::Shared::TimeOffStatus), type: T.nilable(::StackOne::Shared::TimeOffType), updated_date: T.nilable(::DateTime)).void }
37
- def initialize(approver_id: nil, created_date: nil, employee_id: nil, end_date: nil, id: nil, remote_id: nil, start_date: nil, status: nil, type: nil, updated_date: nil)
40
+ sig { params(approver_id: T.nilable(::String), created_date: T.nilable(::DateTime), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), end_half_day: T.nilable(T::Boolean), id: T.nilable(::String), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), start_half_day: T.nilable(T::Boolean), status: T.nilable(::StackOne::Shared::TimeOffStatus), type: T.nilable(::StackOne::Shared::TimeOffType), updated_date: T.nilable(::DateTime)).void }
41
+ def initialize(approver_id: nil, created_date: nil, employee_id: nil, end_date: nil, end_half_day: nil, id: nil, remote_id: nil, start_date: nil, start_half_day: nil, status: nil, type: nil, updated_date: nil)
38
42
  @approver_id = approver_id
39
43
  @created_date = created_date
40
44
  @employee_id = employee_id
41
45
  @end_date = end_date
46
+ @end_half_day = end_half_day
42
47
  @id = id
43
48
  @remote_id = remote_id
44
49
  @start_date = start_date
50
+ @start_half_day = start_half_day
45
51
  @status = status
46
52
  @type = type
47
53
  @updated_date = updated_date
@@ -252,6 +252,9 @@ module StackOne
252
252
  autoload :Ethnicity, 'stack_one/models/shared/ethnicity.rb'
253
253
  autoload :EmployeeSchemasGenderValue, 'stack_one/models/shared/employee_schemas_gender_value.rb'
254
254
  autoload :Gender, 'stack_one/models/shared/gender.rb'
255
+ autoload :EmployeeSchemasGroupsValue, 'stack_one/models/shared/employee_schemas_groups_value.rb'
256
+ autoload :EmployeeType, 'stack_one/models/shared/employee_type.rb'
257
+ autoload :Groups, 'stack_one/models/shared/groups.rb'
255
258
  autoload :EmployeeSchemasHomeLocationValue, 'stack_one/models/shared/employee_schemas_home_location_value.rb'
256
259
  autoload :EmployeeCountry, 'stack_one/models/shared/employee_country.rb'
257
260
  autoload :EmployeeSchemasHomeLocationLocationTypeValue, 'stack_one/models/shared/employee_schemas_home_location_location_type_value.rb'
@@ -38,9 +38,9 @@ module StackOne
38
38
  @security = security
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '1.0.0'
41
- @sdk_version = '0.2.22'
42
- @gen_version = '2.332.4'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.22 2.332.4 1.0.0 stackone_client'
41
+ @sdk_version = '0.2.23'
42
+ @gen_version = '2.333.3'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.23 2.333.3 1.0.0 stackone_client'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackone_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.22
4
+ version: 0.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - StackOne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-16 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -474,6 +474,7 @@ files:
474
474
  - lib/stack_one/models/shared/employee_schemas_employment_type_value.rb
475
475
  - lib/stack_one/models/shared/employee_schemas_ethnicity_value.rb
476
476
  - lib/stack_one/models/shared/employee_schemas_gender_value.rb
477
+ - lib/stack_one/models/shared/employee_schemas_groups_value.rb
477
478
  - lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb
478
479
  - lib/stack_one/models/shared/employee_schemas_home_location_value.rb
479
480
  - lib/stack_one/models/shared/employee_schemas_location_type.rb
@@ -482,6 +483,7 @@ files:
482
483
  - lib/stack_one/models/shared/employee_schemas_value.rb
483
484
  - lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb
484
485
  - lib/stack_one/models/shared/employee_schemas_work_location_value.rb
486
+ - lib/stack_one/models/shared/employee_type.rb
485
487
  - lib/stack_one/models/shared/employee_value.rb
486
488
  - lib/stack_one/models/shared/employeecustomfields.rb
487
489
  - lib/stack_one/models/shared/employeecustomfields_type.rb
@@ -505,6 +507,7 @@ files:
505
507
  - lib/stack_one/models/shared/field_type.rb
506
508
  - lib/stack_one/models/shared/file_format.rb
507
509
  - lib/stack_one/models/shared/gender.rb
510
+ - lib/stack_one/models/shared/groups.rb
508
511
  - lib/stack_one/models/shared/headers.rb
509
512
  - lib/stack_one/models/shared/home_location.rb
510
513
  - lib/stack_one/models/shared/hrisbenefit.rb