stackone_client 0.9.1 → 0.10.1
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 +4 -4
- data/lib/stack_one/hris.rb +12 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_queryparam_filter.rb +7 -3
- data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_time_off_policies_queryparam_filter.rb +7 -3
- data/lib/stack_one/models/operations/hris_list_time_off_policies_request.rb +1 -1
- data/lib/stack_one/models/operations/queryparam_type.rb +35 -0
- data/lib/stack_one/models/operations/type.rb +35 -0
- data/lib/stack_one/models/operations.rb +2 -0
- data/lib/stack_one/models/shared/answer_value.rb +1 -0
- data/lib/stack_one/models/shared/createanswer_value.rb +1 -0
- data/lib/stack_one/models/shared/employment.rb +6 -2
- data/lib/stack_one/models/shared/question_value.rb +1 -0
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 915a8514b78a0362e51230780e0a06065b7b6498e747fb4601331eb5d665a737
|
4
|
+
data.tar.gz: '08451c5c4117209c10c34e3403bd41765a59afa17205e195f52a2c77df63f9f6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aec7b7244fd0fe7515c704cc25139b338316c890cccc2118643d6ea08397fec6a3e8f17790924c465db1f5c4ca79ad324849068e394d5cffb9534ee439b62ab3
|
7
|
+
data.tar.gz: 7a737ddb721446efc844d008eee10a2553a6ff2758bad6b9512c11e5aa35bb75548ed2e28ecdfa889b72293e1956ede424a0fa08d773158769c3df3d5cfb1322
|
data/lib/stack_one/hris.rb
CHANGED
@@ -427,6 +427,18 @@ module StackOne
|
|
427
427
|
else
|
428
428
|
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
429
429
|
end
|
430
|
+
elsif Utils.match_status_code(http_response.status, ['204'])
|
431
|
+
http_response = @sdk_configuration.hooks.after_success(
|
432
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
433
|
+
hook_ctx: hook_ctx
|
434
|
+
),
|
435
|
+
response: http_response
|
436
|
+
)
|
437
|
+
return Models::Operations::HrisCancelEmployeeTimeOffRequestResponse.new(
|
438
|
+
status_code: http_response.status,
|
439
|
+
content_type: content_type,
|
440
|
+
raw_response: http_response
|
441
|
+
)
|
430
442
|
elsif Utils.match_status_code(http_response.status, ['400'])
|
431
443
|
if Utils.match_content_type(content_type, 'application/json')
|
432
444
|
http_response = @sdk_configuration.hooks.after_success(
|
data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_queryparam_filter.rb
CHANGED
@@ -8,22 +8,26 @@ module StackOne
|
|
8
8
|
module Models
|
9
9
|
module Operations
|
10
10
|
|
11
|
-
#
|
11
|
+
# HRIS Time-Off Policies filters
|
12
12
|
class HrisListEmployeeTimeOffPoliciesQueryParamFilter
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
|
+
# Filter to select time-off policies by type
|
17
|
+
field :type, T.nilable(Models::Operations::Type), { 'query_param': { 'field_name': 'type' } }
|
16
18
|
# Use a string with a date to only select results updated after that given date
|
17
19
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
18
20
|
|
19
21
|
|
20
|
-
sig { params(updated_after: T.nilable(::String)).void }
|
21
|
-
def initialize(updated_after: nil)
|
22
|
+
sig { params(type: T.nilable(Models::Operations::Type), updated_after: T.nilable(::String)).void }
|
23
|
+
def initialize(type: nil, updated_after: nil)
|
24
|
+
@type = type
|
22
25
|
@updated_after = updated_after
|
23
26
|
end
|
24
27
|
|
25
28
|
def ==(other)
|
26
29
|
return false unless other.is_a? self.class
|
30
|
+
return false unless @type == other.type
|
27
31
|
return false unless @updated_after == other.updated_after
|
28
32
|
true
|
29
33
|
end
|
@@ -19,7 +19,7 @@ module StackOne
|
|
19
19
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
20
20
|
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
21
21
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
22
|
-
#
|
22
|
+
# HRIS Time-Off Policies filters
|
23
23
|
field :filter, T.nilable(Models::Operations::HrisListEmployeeTimeOffPoliciesQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
24
24
|
# The unified cursor
|
25
25
|
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
@@ -8,22 +8,26 @@ module StackOne
|
|
8
8
|
module Models
|
9
9
|
module Operations
|
10
10
|
|
11
|
-
#
|
11
|
+
# HRIS Time-Off Policies filters
|
12
12
|
class HrisListTimeOffPoliciesQueryParamFilter
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
|
+
# Filter to select time-off policies by type
|
17
|
+
field :type, T.nilable(Models::Operations::QueryParamType), { 'query_param': { 'field_name': 'type' } }
|
16
18
|
# Use a string with a date to only select results updated after that given date
|
17
19
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
18
20
|
|
19
21
|
|
20
|
-
sig { params(updated_after: T.nilable(::String)).void }
|
21
|
-
def initialize(updated_after: nil)
|
22
|
+
sig { params(type: T.nilable(Models::Operations::QueryParamType), updated_after: T.nilable(::String)).void }
|
23
|
+
def initialize(type: nil, updated_after: nil)
|
24
|
+
@type = type
|
22
25
|
@updated_after = updated_after
|
23
26
|
end
|
24
27
|
|
25
28
|
def ==(other)
|
26
29
|
return false unless other.is_a? self.class
|
30
|
+
return false unless @type == other.type
|
27
31
|
return false unless @updated_after == other.updated_after
|
28
32
|
true
|
29
33
|
end
|
@@ -17,7 +17,7 @@ module StackOne
|
|
17
17
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
18
|
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
19
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
-
#
|
20
|
+
# HRIS Time-Off Policies filters
|
21
21
|
field :filter, T.nilable(Models::Operations::HrisListTimeOffPoliciesQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
22
22
|
# The unified cursor
|
23
23
|
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
# QueryParamType - Filter to select time-off policies by type
|
12
|
+
class QueryParamType < T::Enum
|
13
|
+
enums do
|
14
|
+
SICK = new('sick')
|
15
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
16
|
+
VACATION = new('vacation')
|
17
|
+
LONG_TERM_DISABILITY = new('long_term_disability')
|
18
|
+
SHORT_TERM_DISABILITY = new('short_term_disability')
|
19
|
+
ABSENT = new('absent')
|
20
|
+
COMP_TIME = new('comp_time')
|
21
|
+
TRAINING = new('training')
|
22
|
+
ANNUAL_LEAVE = new('annual_leave')
|
23
|
+
LEAVE_OF_ABSENCE = new('leave_of_absence')
|
24
|
+
BREAK = new('break')
|
25
|
+
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
|
+
MATERNITY_LEAVE = new('maternity_leave')
|
27
|
+
JURY_DUTY = new('jury_duty')
|
28
|
+
BEREAVEMENT_LEAVE = new('bereavement_leave')
|
29
|
+
SABBATICAL = new('sabbatical')
|
30
|
+
ACCIDENT = new('accident')
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
# Type - Filter to select time-off policies by type
|
12
|
+
class Type < T::Enum
|
13
|
+
enums do
|
14
|
+
SICK = new('sick')
|
15
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
16
|
+
VACATION = new('vacation')
|
17
|
+
LONG_TERM_DISABILITY = new('long_term_disability')
|
18
|
+
SHORT_TERM_DISABILITY = new('short_term_disability')
|
19
|
+
ABSENT = new('absent')
|
20
|
+
COMP_TIME = new('comp_time')
|
21
|
+
TRAINING = new('training')
|
22
|
+
ANNUAL_LEAVE = new('annual_leave')
|
23
|
+
LEAVE_OF_ABSENCE = new('leave_of_absence')
|
24
|
+
BREAK = new('break')
|
25
|
+
CHILD_CARE_LEAVE = new('child_care_leave')
|
26
|
+
MATERNITY_LEAVE = new('maternity_leave')
|
27
|
+
JURY_DUTY = new('jury_duty')
|
28
|
+
BEREAVEMENT_LEAVE = new('bereavement_leave')
|
29
|
+
SABBATICAL = new('sabbatical')
|
30
|
+
ACCIDENT = new('accident')
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -505,6 +505,7 @@ module StackOne
|
|
505
505
|
autoload :QueryParamOrderBy, 'stack_one/models/operations/queryparam_order_by.rb'
|
506
506
|
autoload :QueryParamOrderDirection, 'stack_one/models/operations/queryparam_order_direction.rb'
|
507
507
|
autoload :QueryParamStatus, 'stack_one/models/operations/queryparam_status.rb'
|
508
|
+
autoload :QueryParamType, 'stack_one/models/operations/queryparam_type.rb'
|
508
509
|
autoload :StackoneAuthenticateConnectSessionResponse, 'stack_one/models/operations/stackone_authenticate_connect_session_response.rb'
|
509
510
|
autoload :StackoneCreateConnectSessionResponse, 'stack_one/models/operations/stackone_create_connect_session_response.rb'
|
510
511
|
autoload :StackoneDeleteAccountRequest, 'stack_one/models/operations/stackone_delete_account_request.rb'
|
@@ -535,6 +536,7 @@ module StackOne
|
|
535
536
|
autoload :StackoneUpdateAccountRequest, 'stack_one/models/operations/stackone_update_account_request.rb'
|
536
537
|
autoload :StackoneUpdateAccountResponse, 'stack_one/models/operations/stackone_update_account_response.rb'
|
537
538
|
autoload :Status, 'stack_one/models/operations/status.rb'
|
539
|
+
autoload :Type, 'stack_one/models/operations/type.rb'
|
538
540
|
end
|
539
541
|
end
|
540
542
|
end
|
@@ -43,6 +43,8 @@ module StackOne
|
|
43
43
|
field :employment_type, T.nilable(Models::Shared::EmploymentEmploymentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_type') } }
|
44
44
|
# The end_date of employment
|
45
45
|
field :end_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
46
|
+
# the employee’s working percentage relative to a full-time employee
|
47
|
+
field :fte, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('fte') } }
|
46
48
|
# Unique identifier
|
47
49
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
48
50
|
# The job of employee
|
@@ -77,8 +79,8 @@ module StackOne
|
|
77
79
|
field :work_time, T.nilable(Models::Shared::EmploymentWorkTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_time') } }
|
78
80
|
|
79
81
|
|
80
|
-
sig { params(active: T.nilable(T::Boolean), contract_type: T.nilable(Models::Shared::ContractType), cost_center: T.nilable(Models::Shared::CostCenter), cost_centers: T.nilable(T::Array[Models::Shared::HRISCostCenter]), created_at: T.nilable(::DateTime), department: T.nilable(Models::Shared::EmploymentDepartment), division: T.nilable(Models::Shared::Division), effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(Models::Shared::EmploymentEmploymentContractType), employment_type: T.nilable(Models::Shared::EmploymentEmploymentType), end_date: T.nilable(::DateTime), id: T.nilable(::String), job: T.nilable(Models::Shared::EmploymentJob), job_title: T.nilable(::String), manager: T.nilable(T::Array[Models::Shared::EmploymentManagerApiModel]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::EmploymentPayFrequency), pay_period: T.nilable(Models::Shared::EmploymentPayPeriod), pay_rate: T.nilable(::String), remote_employee_id: T.nilable(::String), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), type: T.nilable(Models::Shared::EmploymentSchemasType), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime), work_time: T.nilable(Models::Shared::EmploymentWorkTime)).void }
|
81
|
-
def initialize(active: nil, contract_type: nil, cost_center: nil, cost_centers: nil, created_at: nil, department: nil, division: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, id: nil, job: nil, job_title: nil, manager: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, remote_employee_id: nil, remote_id: nil, start_date: nil, type: nil, unified_custom_fields: nil, updated_at: nil, work_time: nil)
|
82
|
+
sig { params(active: T.nilable(T::Boolean), contract_type: T.nilable(Models::Shared::ContractType), cost_center: T.nilable(Models::Shared::CostCenter), cost_centers: T.nilable(T::Array[Models::Shared::HRISCostCenter]), created_at: T.nilable(::DateTime), department: T.nilable(Models::Shared::EmploymentDepartment), division: T.nilable(Models::Shared::Division), effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(Models::Shared::EmploymentEmploymentContractType), employment_type: T.nilable(Models::Shared::EmploymentEmploymentType), end_date: T.nilable(::DateTime), fte: T.nilable(::Float), id: T.nilable(::String), job: T.nilable(Models::Shared::EmploymentJob), job_title: T.nilable(::String), manager: T.nilable(T::Array[Models::Shared::EmploymentManagerApiModel]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::EmploymentPayFrequency), pay_period: T.nilable(Models::Shared::EmploymentPayPeriod), pay_rate: T.nilable(::String), remote_employee_id: T.nilable(::String), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), type: T.nilable(Models::Shared::EmploymentSchemasType), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime), work_time: T.nilable(Models::Shared::EmploymentWorkTime)).void }
|
83
|
+
def initialize(active: nil, contract_type: nil, cost_center: nil, cost_centers: nil, created_at: nil, department: nil, division: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, fte: nil, id: nil, job: nil, job_title: nil, manager: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, remote_employee_id: nil, remote_id: nil, start_date: nil, type: nil, unified_custom_fields: nil, updated_at: nil, work_time: nil)
|
82
84
|
@active = active
|
83
85
|
@contract_type = contract_type
|
84
86
|
@cost_center = cost_center
|
@@ -91,6 +93,7 @@ module StackOne
|
|
91
93
|
@employment_contract_type = employment_contract_type
|
92
94
|
@employment_type = employment_type
|
93
95
|
@end_date = end_date
|
96
|
+
@fte = fte
|
94
97
|
@id = id
|
95
98
|
@job = job
|
96
99
|
@job_title = job_title
|
@@ -122,6 +125,7 @@ module StackOne
|
|
122
125
|
return false unless @employment_contract_type == other.employment_contract_type
|
123
126
|
return false unless @employment_type == other.employment_type
|
124
127
|
return false unless @end_date == other.end_date
|
128
|
+
return false unless @fte == other.fte
|
125
129
|
return false unless @id == other.id
|
126
130
|
return false unless @job == other.job
|
127
131
|
return false unless @job_title == other.job_title
|
@@ -63,9 +63,9 @@ module StackOne
|
|
63
63
|
end
|
64
64
|
@language = 'ruby'
|
65
65
|
@openapi_doc_version = '1.0.0'
|
66
|
-
@sdk_version = '0.
|
66
|
+
@sdk_version = '0.10.1'
|
67
67
|
@gen_version = '2.570.4'
|
68
|
-
@user_agent = 'speakeasy-sdk/ruby 0.
|
68
|
+
@user_agent = 'speakeasy-sdk/ruby 0.10.1 2.570.4 1.0.0 stackone_client'
|
69
69
|
end
|
70
70
|
|
71
71
|
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.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StackOne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -713,6 +713,7 @@ files:
|
|
713
713
|
- lib/stack_one/models/operations/queryparam_order_by.rb
|
714
714
|
- lib/stack_one/models/operations/queryparam_order_direction.rb
|
715
715
|
- lib/stack_one/models/operations/queryparam_status.rb
|
716
|
+
- lib/stack_one/models/operations/queryparam_type.rb
|
716
717
|
- lib/stack_one/models/operations/stackone_authenticate_connect_session_response.rb
|
717
718
|
- lib/stack_one/models/operations/stackone_create_connect_session_response.rb
|
718
719
|
- lib/stack_one/models/operations/stackone_delete_account_request.rb
|
@@ -743,6 +744,7 @@ files:
|
|
743
744
|
- lib/stack_one/models/operations/stackone_update_account_request.rb
|
744
745
|
- lib/stack_one/models/operations/stackone_update_account_response.rb
|
745
746
|
- lib/stack_one/models/operations/status.rb
|
747
|
+
- lib/stack_one/models/operations/type.rb
|
746
748
|
- lib/stack_one/models/shared.rb
|
747
749
|
- lib/stack_one/models/shared/account.rb
|
748
750
|
- lib/stack_one/models/shared/accountaddress.rb
|