diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 597ded99..097e1a7e 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 482384cc-3b98-4ced-bd0b-14aa8b3e0053 management: - docChecksum: 79baa45f541967c6ae2a170ad9d2c410 + docChecksum: fd87ee2f666440f0d1521a4f0b0ea26f docVersion: 1.0.0 - speakeasyVersion: 1.408.0 - generationVersion: 2.429.0 - releaseVersion: 0.2.42 - configChecksum: ff0f2b5c834fb31050f5dfede57bb77e + speakeasyVersion: 1.418.2 + generationVersion: 2.438.3 + releaseVersion: 0.2.43 + configChecksum: e8cb4a49ce56dd93e51e21b842d3119e repoURL: https://github.com/StackOneHQ/stackone-client-ruby.git repoSubDirectory: . installationURL: https://github.com/StackOneHQ/stackone-client-ruby diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 0f3ea4f0..7a536bc0 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.408.0 +speakeasyVersion: 1.418.2 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:62fa16fdd34f4e88be12642cb31595f2e7c683e33a6ba0495ba1c5548d1d3185 - sourceBlobDigest: sha256:51767f3a54205e5ed8a68f64c5147fdc25768b8b2cdd0712cc9be629291a5b96 + sourceRevisionDigest: sha256:1b705b3332ef02888be686ee30bb88bca2823456d55c138b2f6d2d2ed2ddecb0 + sourceBlobDigest: sha256:0c1ff578825d2efe803d92b3d9ce9d7e68e4e132bb3084e5e297bfb666f660df tags: - latest - main @@ -11,8 +11,8 @@ targets: StackOneRubyClient: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:62fa16fdd34f4e88be12642cb31595f2e7c683e33a6ba0495ba1c5548d1d3185 - sourceBlobDigest: sha256:51767f3a54205e5ed8a68f64c5147fdc25768b8b2cdd0712cc9be629291a5b96 + sourceRevisionDigest: sha256:1b705b3332ef02888be686ee30bb88bca2823456d55c138b2f6d2d2ed2ddecb0 + sourceBlobDigest: sha256:0c1ff578825d2efe803d92b3d9ce9d7e68e4e132bb3084e5e297bfb666f660df workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index c6465709..eb21edb0 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -498,4 +498,14 @@ Based on: ### Generated - [ruby v0.2.42] . ### Releases -- [Ruby Gems v0.2.42] https://rubygems.org/gems/stackone_client/versions/0.2.42 - . \ No newline at end of file +- [Ruby Gems v0.2.42] https://rubygems.org/gems/stackone_client/versions/0.2.42 - . + +## 2024-10-14 09:01:24 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.418.2 (2.438.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.43] . +### Releases +- [Ruby Gems v0.2.43] https://rubygems.org/gems/stackone_client/versions/0.2.43 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 5c2994b2..7c1ecd4b 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -80,7 +80,7 @@ actions: x-codeSamples: - lang: ruby label: ats_update_application - source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.ats.update_application(id=\"\", x_account_id=\"\", ats_update_application_request_dto=::StackOne::Shared::AtsUpdateApplicationRequestDto.new(\n passthrough: {\n \"other_known_names\": \"John Doe\",\n },\n rejected_reason_id: \"f223d7f6-908b-48f0-9237-b201c307f609\",\n custom_fields: [\n ::StackOne::Shared::ApplicationCustomFields.new(\n id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n remote_id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"Training Completion Status\",\n value: \"Completed\",\n value_id: \"value_456\",\n remote_value_id: \"e3cb75bf-aa84-466e-a6c1-b8322b257a48\",\n ),\n ],\n application_status: ::StackOne::Shared::AtsUpdateApplicationRequestDtoApplicationStatus.new(\n value: ::StackOne::Shared::AtsUpdateApplicationRequestDtoValue::HIRED,\n source_value: \"Hired\",\n ),\n source: ::StackOne::Shared::AtsUpdateApplicationRequestDtoSource.new(\n id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"LinkedIn\",\n ),\n interview_stage_id: \"18bcbb1b-3cbc-4198-a999-460861d19480\",\n))\n\nif ! res.update_result.nil?\n # handle response\nend" + source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.ats.update_application(id=\"\", x_account_id=\"\", ats_update_application_request_dto=::StackOne::Shared::AtsUpdateApplicationRequestDto.new(\n passthrough: {\n \"other_known_names\": \"John Doe\",\n },\n custom_fields: [\n ::StackOne::Shared::ApplicationCustomFields.new(\n id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n remote_id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"Training Completion Status\",\n value: \"Completed\",\n value_id: \"value_456\",\n remote_value_id: \"e3cb75bf-aa84-466e-a6c1-b8322b257a48\",\n ),\n ],\n application_status: ::StackOne::Shared::AtsUpdateApplicationRequestDtoApplicationStatus.new(\n value: ::StackOne::Shared::AtsUpdateApplicationRequestDtoValue::HIRED,\n source_value: \"Hired\",\n ),\n source: ::StackOne::Shared::AtsUpdateApplicationRequestDtoSource.new(\n id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"LinkedIn\",\n ),\n interview_stage_id: \"18bcbb1b-3cbc-4198-a999-460861d19480\",\n))\n\nif ! res.update_result.nil?\n # handle response\nend" - target: $["paths"]["/unified/ats/applications/{id}/documents"]["get"] update: x-codeSamples: diff --git a/docs/models/shared/atsupdateapplicationrequestdto.md b/docs/models/shared/atsupdateapplicationrequestdto.md index a17048cb..89d3f37f 100644 --- a/docs/models/shared/atsupdateapplicationrequestdto.md +++ b/docs/models/shared/atsupdateapplicationrequestdto.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `application_status` | [T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoApplicationStatus)](../../models/shared/atsupdateapplicationrequestdtoapplicationstatus.md) | :heavy_minus_sign: | N/A | | -| `custom_fields` | T::Array<[::StackOne::Shared::ApplicationCustomFields](../../models/shared/applicationcustomfields.md)> | :heavy_minus_sign: | The application custom fields | | -| `interview_stage_id` | *T.nilable(::String)* | :heavy_minus_sign: | Unique identifier of the interview stage | 18bcbb1b-3cbc-4198-a999-460861d19480 | -| `passthrough` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Value to pass through to the provider | {
"other_known_names": "John Doe"
} | -| `rejected_reason_id` | *T.nilable(::String)* | :heavy_minus_sign: | Unique identifier of the rejection reason | f223d7f6-908b-48f0-9237-b201c307f609 | -| `source` | [T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoSource)](../../models/shared/atsupdateapplicationrequestdtosource.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `application_status` | [T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoApplicationStatus)](../../models/shared/atsupdateapplicationrequestdtoapplicationstatus.md) | :heavy_minus_sign: | N/A | | +| `custom_fields` | T::Array<[::StackOne::Shared::ApplicationCustomFields](../../models/shared/applicationcustomfields.md)> | :heavy_minus_sign: | The application custom fields | | +| `interview_stage_id` | *T.nilable(::String)* | :heavy_minus_sign: | Unique identifier of the interview stage | 18bcbb1b-3cbc-4198-a999-460861d19480 | +| `passthrough` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Value to pass through to the provider | {
"other_known_names": "John Doe"
} | +| ~~`rejected_reason_id`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Unique identifier of the rejection reason | f223d7f6-908b-48f0-9237-b201c307f609 | +| `source` | [T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoSource)](../../models/shared/atsupdateapplicationrequestdtosource.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/costcenters.md b/docs/models/shared/costcenters.md index 3299c818..fc7778e9 100644 --- a/docs/models/shared/costcenters.md +++ b/docs/models/shared/costcenters.md @@ -3,7 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | -| `distribution_percentage` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | 100 | -| `name` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | R&D | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `distribution_percentage` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | 100 | +| `id` | *T.nilable(::String)* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `name` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | R&D | +| `remote_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | \ No newline at end of file diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md index 63a4ef5e..0658d822 100644 --- a/docs/sdks/ats/README.md +++ b/docs/sdks/ats/README.md @@ -2670,7 +2670,6 @@ res = s.ats.update_application(ats_update_application_request_dto=::StackOne::Sh passthrough: { "other_known_names": "John Doe", }, - rejected_reason_id: "f223d7f6-908b-48f0-9237-b201c307f609", source: ::StackOne::Shared::AtsUpdateApplicationRequestDtoSource.new( id: "8187e5da-dc77-475e-9949-af0f1fa4e4e3", name: "LinkedIn", diff --git a/gen.yaml b/gen.yaml index d025f389..928a5953 100644 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false ruby: - version: 0.2.42 + version: 0.2.43 author: StackOne description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb b/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb index a164f329..b5b22660 100644 --- a/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +++ b/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb @@ -20,6 +20,8 @@ class AtsUpdateApplicationRequestDto < ::StackOne::Utils::FieldAugmented # Value to pass through to the provider field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } } # Unique identifier of the rejection reason + # + # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible. field :rejected_reason_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('rejected_reason_id') } } field :source, T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoSource), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source') } } diff --git a/lib/stack_one/models/shared/costcenters.rb b/lib/stack_one/models/shared/costcenters.rb index 4bffb2ef..6ce3bb82 100644 --- a/lib/stack_one/models/shared/costcenters.rb +++ b/lib/stack_one/models/shared/costcenters.rb @@ -13,14 +13,20 @@ class CostCenters < ::StackOne::Utils::FieldAugmented field :distribution_percentage, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('distribution_percentage') } } + # Unique identifier + field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } } + # Provider's unique identifier + field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } } - sig { params(distribution_percentage: T.nilable(::Float), name: T.nilable(::String)).void } - def initialize(distribution_percentage: nil, name: nil) + sig { params(distribution_percentage: T.nilable(::Float), id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String)).void } + def initialize(distribution_percentage: nil, id: nil, name: nil, remote_id: nil) @distribution_percentage = distribution_percentage + @id = id @name = name + @remote_id = remote_id end end end diff --git a/lib/stack_one/sdkconfiguration.rb b/lib/stack_one/sdkconfiguration.rb index 1784a723..035b2462 100644 --- a/lib/stack_one/sdkconfiguration.rb +++ b/lib/stack_one/sdkconfiguration.rb @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx) @security = security @language = 'ruby' @openapi_doc_version = '1.0.0' - @sdk_version = '0.2.42' - @gen_version = '2.429.0' - @user_agent = 'speakeasy-sdk/ruby 0.2.42 2.429.0 1.0.0 stackone_client' + @sdk_version = '0.2.43' + @gen_version = '2.438.3' + @user_agent = 'speakeasy-sdk/ruby 0.2.43 2.438.3 1.0.0 stackone_client' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/stackone_client.gemspec b/stackone_client.gemspec index 831f0fdc..8272da0f 100644 --- a/stackone_client.gemspec +++ b/stackone_client.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'stackone_client' - s.version = '0.2.42' + s.version = '0.2.43' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = ''