Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.17"
".": "0.1.0-alpha.18"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 46
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-5b00a0bc705b1d5bfcb5ea79c7af544766d51ec12ccc4721825664ab397789d8.yml
openapi_spec_hash: 34891659cff31395ba7683a8153b1db5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-dbbf65e94ae7a53cd5a313974761102447ccda3096fd40967c137ad3f80f7154.yml
openapi_spec_hash: 3cc9d87b60dc27283735d610d4b51a53
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.1.0-alpha.18 (2025-05-16)

Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)

### Features

* **api:** api update ([c0514cb](https://github.com/Finch-API/finch-api-ruby/commit/c0514cb7518217869a5d8dab7771b9e29cf6aa1c))


### Chores

* **internal:** version bump ([a950bdc](https://github.com/Finch-API/finch-api-ruby/commit/a950bdccc42fa2c4fa7bd8297b74be17792cec34))

## 0.1.0-alpha.17 (2025-05-16)

Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
finch-api (0.1.0.pre.alpha.16)
finch-api (0.1.0.pre.alpha.17)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "finch-api", "~> 0.1.0.pre.alpha.17"
gem "finch-api", "~> 0.1.0.pre.alpha.18"
```

<!-- x-release-please-end -->
Expand Down
18 changes: 9 additions & 9 deletions lib/finch_api/models/hris/employment_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
# @return [String, nil]
required :middle_name, String, nil?: true

# @!attribute source_id
# The source system's unique employment identifier for this individual
#
# @return [String, nil]
required :source_id, String, nil?: true

# @!attribute start_date
#
# @return [String, nil]
Expand Down Expand Up @@ -141,7 +135,13 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Income, nil?: true] },
nil?: true

# @!method initialize(id:, class_code:, custom_fields:, department:, employment:, employment_status:, end_date:, first_name:, is_active:, last_name:, latest_rehire_date:, location:, manager:, middle_name:, source_id:, start_date:, title:, work_id:, income: nil, income_history: nil)
# @!attribute source_id
# The source system's unique employment identifier for this individual
#
# @return [String, nil]
optional :source_id, String, nil?: true

# @!method initialize(id:, class_code:, custom_fields:, department:, employment:, employment_status:, end_date:, first_name:, is_active:, last_name:, latest_rehire_date:, location:, manager:, middle_name:, start_date:, title:, work_id:, income: nil, income_history: nil, source_id: nil)
# Some parameter documentations has been truncated, see
# {FinchAPI::HRIS::EmploymentData::UnionMember0} for more details.
#
Expand Down Expand Up @@ -173,8 +173,6 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
#
# @param middle_name [String, nil] The legal middle name of the individual.
#
# @param source_id [String, nil] The source system's unique employment identifier for this individual
#
# @param start_date [String, nil]
#
# @param title [String, nil] The current title of the individual.
Expand All @@ -184,6 +182,8 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
# @param income [FinchAPI::Income, nil] The employee's income as reported by the provider. This may not always be annual
#
# @param income_history [Array<FinchAPI::Income, nil>, nil] The array of income history.
#
# @param source_id [String, nil] The source system's unique employment identifier for this individual

class CustomField < FinchAPI::Internal::Type::BaseModel
# @!attribute name
Expand Down
2 changes: 1 addition & 1 deletion lib/finch_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module FinchAPI
VERSION = "0.1.0.pre.alpha.17"
VERSION = "0.1.0.pre.alpha.18"
end
23 changes: 12 additions & 11 deletions rbi/finch_api/models/hris/employment_data.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ module FinchAPI
sig { returns(T.nilable(String)) }
attr_accessor :middle_name

# The source system's unique employment identifier for this individual
sig { returns(T.nilable(String)) }
attr_accessor :source_id

sig { returns(T.nilable(String)) }
attr_accessor :start_date

Expand All @@ -169,6 +165,10 @@ module FinchAPI
sig { returns(T.nilable(T::Array[T.nilable(FinchAPI::Income)])) }
attr_accessor :income_history

# The source system's unique employment identifier for this individual
sig { returns(T.nilable(String)) }
attr_accessor :source_id

sig do
params(
id: String,
Expand Down Expand Up @@ -202,13 +202,13 @@ module FinchAPI
FinchAPI::HRIS::EmploymentData::UnionMember0::Manager::OrHash
),
middle_name: T.nilable(String),
source_id: T.nilable(String),
start_date: T.nilable(String),
title: T.nilable(String),
work_id: T.nilable(String),
income: T.nilable(FinchAPI::Income::OrHash),
income_history:
T.nilable(T::Array[T.nilable(FinchAPI::Income::OrHash)])
T.nilable(T::Array[T.nilable(FinchAPI::Income::OrHash)]),
source_id: T.nilable(String)
).returns(T.attached_class)
end
def self.new(
Expand Down Expand Up @@ -239,8 +239,6 @@ module FinchAPI
manager:,
# The legal middle name of the individual.
middle_name:,
# The source system's unique employment identifier for this individual
source_id:,
start_date:,
# The current title of the individual.
title:,
Expand All @@ -251,7 +249,9 @@ module FinchAPI
# depending on what information the provider returns.
income: nil,
# The array of income history.
income_history: nil
income_history: nil,
# The source system's unique employment identifier for this individual
source_id: nil
)
end

Expand Down Expand Up @@ -289,12 +289,13 @@ module FinchAPI
FinchAPI::HRIS::EmploymentData::UnionMember0::Manager
),
middle_name: T.nilable(String),
source_id: T.nilable(String),
start_date: T.nilable(String),
title: T.nilable(String),
work_id: T.nilable(String),
income: T.nilable(FinchAPI::Income),
income_history: T.nilable(T::Array[T.nilable(FinchAPI::Income)])
income_history:
T.nilable(T::Array[T.nilable(FinchAPI::Income)]),
source_id: T.nilable(String)
}
)
end
Expand Down
12 changes: 6 additions & 6 deletions sig/finch_api/models/hris/employment_data.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ module FinchAPI
location: FinchAPI::Location?,
manager: FinchAPI::HRIS::EmploymentData::UnionMember0::Manager?,
middle_name: String?,
source_id: String?,
start_date: String?,
title: String?,
work_id: String?,
income: FinchAPI::Income?,
income_history: ::Array[FinchAPI::Income?]?
income_history: ::Array[FinchAPI::Income?]?,
source_id: String?
}

class UnionMember0 < FinchAPI::Internal::Type::BaseModel
Expand Down Expand Up @@ -61,8 +61,6 @@ module FinchAPI

attr_accessor middle_name: String?

attr_accessor source_id: String?

attr_accessor start_date: String?

attr_accessor title: String?
Expand All @@ -73,6 +71,8 @@ module FinchAPI

attr_accessor income_history: ::Array[FinchAPI::Income?]?

attr_accessor source_id: String?

def initialize: (
id: String,
class_code: String?,
Expand All @@ -88,12 +88,12 @@ module FinchAPI
location: FinchAPI::Location?,
manager: FinchAPI::HRIS::EmploymentData::UnionMember0::Manager?,
middle_name: String?,
source_id: String?,
start_date: String?,
title: String?,
work_id: String?,
?income: FinchAPI::Income?,
?income_history: ::Array[FinchAPI::Income?]?
?income_history: ::Array[FinchAPI::Income?]?,
?source_id: String?
) -> void

type custom_field =
Expand Down