diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e2f2c074..3cf71e62 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.17" + ".": "0.1.0-alpha.18" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index c72261be..b63f6b19 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 71ef7171..6f36c25b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index cfeb6cb0..61347f18 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/README.md b/README.md index ddbe24bd..51701d52 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "finch-api", "~> 0.1.0.pre.alpha.17" +gem "finch-api", "~> 0.1.0.pre.alpha.18" ``` diff --git a/lib/finch_api/models/hris/employment_data.rb b/lib/finch_api/models/hris/employment_data.rb index d04898ec..7370f73c 100644 --- a/lib/finch_api/models/hris/employment_data.rb +++ b/lib/finch_api/models/hris/employment_data.rb @@ -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] @@ -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. # @@ -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. @@ -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, 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 diff --git a/lib/finch_api/version.rb b/lib/finch_api/version.rb index 4d3582a9..e5497cfb 100644 --- a/lib/finch_api/version.rb +++ b/lib/finch_api/version.rb @@ -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 diff --git a/rbi/finch_api/models/hris/employment_data.rbi b/rbi/finch_api/models/hris/employment_data.rbi index c6dc67f5..011235c4 100644 --- a/rbi/finch_api/models/hris/employment_data.rbi +++ b/rbi/finch_api/models/hris/employment_data.rbi @@ -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 @@ -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, @@ -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( @@ -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:, @@ -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 @@ -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 diff --git a/sig/finch_api/models/hris/employment_data.rbs b/sig/finch_api/models/hris/employment_data.rbs index 2b51ce9e..0d2b6a4b 100644 --- a/sig/finch_api/models/hris/employment_data.rbs +++ b/sig/finch_api/models/hris/employment_data.rbs @@ -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 @@ -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? @@ -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?, @@ -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 =