From 333e39e3a71609159c7c60fcdfe264e20df91b15 Mon Sep 17 00:00:00 2001 From: pipedrive-bot Date: Mon, 3 Nov 2025 11:47:33 +0000 Subject: [PATCH] Build 290 - version-patch --- CHANGELOG.md | 2 ++ docs/versions/v1/Model/FieldResponse.md | 2 +- docs/versions/v1/Model/FieldResponseAllOf.md | 2 +- lib/versions/v1/Api/ChannelsApi.php | 20 ++++++++++++++++++++ lib/versions/v1/Configuration.php | 4 ++-- lib/versions/v1/Model/FieldResponse.php | 6 +++--- lib/versions/v1/Model/FieldResponseAllOf.php | 6 +++--- lib/versions/v2/Configuration.php | 4 ++-- 8 files changed, 34 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03e749d..cd3a2fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Fixed return type for `filesApi.downloadFile` function ## Added - Added `is_archived` field in search response schemas for deals and leads ### Fixed diff --git a/docs/versions/v1/Model/FieldResponse.md b/docs/versions/v1/Model/FieldResponse.md index c94f3a9..d44e796 100644 --- a/docs/versions/v1/Model/FieldResponse.md +++ b/docs/versions/v1/Model/FieldResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | If the response is successful or not | [optional] -**data** | [**\Pipedrive\versions\v1\Model\Field**](Field.md) | | [optional] +**data** | [**\Pipedrive\versions\v1\Model\GetField**](GetField.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/versions/v1/Model/FieldResponseAllOf.md b/docs/versions/v1/Model/FieldResponseAllOf.md index ab15850..8aba12c 100644 --- a/docs/versions/v1/Model/FieldResponseAllOf.md +++ b/docs/versions/v1/Model/FieldResponseAllOf.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**\Pipedrive\versions\v1\Model\Field**](Field.md) | | [optional] +**data** | [**\Pipedrive\versions\v1\Model\GetField**](GetField.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/versions/v1/Api/ChannelsApi.php b/lib/versions/v1/Api/ChannelsApi.php index d825aa3..4dbbf8e 100644 --- a/lib/versions/v1/Api/ChannelsApi.php +++ b/lib/versions/v1/Api/ChannelsApi.php @@ -132,6 +132,7 @@ public function getConfig(): Configuration * @throws ApiException on non-2xx response * @throws InvalidArgumentException|GuzzleException * @return \Pipedrive\versions\v1\Model\ChannelObjectResponse|\Pipedrive\versions\v1\Model\AddChannelBadRequestResponse|\Pipedrive\versions\v1\Model\AddChannelForbiddenErrorResponse + * @deprecated */ public function addChannel($channel_object = null) { @@ -149,6 +150,7 @@ public function addChannel($channel_object = null) * @throws ApiException on non-2xx response * @throws InvalidArgumentException|GuzzleException * @return array of \Pipedrive\versions\v1\Model\ChannelObjectResponse|\Pipedrive\versions\v1\Model\AddChannelBadRequestResponse|\Pipedrive\versions\v1\Model\AddChannelForbiddenErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @deprecated */ public function addChannelWithHttpInfo($channel_object = null) { @@ -291,6 +293,7 @@ public function addChannelWithHttpInfo($channel_object = null) * * @throws InvalidArgumentException|OAuthProviderException * @return PromiseInterface + * @deprecated */ public function addChannelAsync($channel_object = null): PromiseInterface { @@ -311,6 +314,7 @@ function ($response) { * * @throws InvalidArgumentException|OAuthProviderException * @return PromiseInterface + * @deprecated */ public function addChannelAsyncWithHttpInfo($channel_object = null): PromiseInterface { @@ -358,6 +362,7 @@ function ($exception) { * * @throws InvalidArgumentException|OAuthProviderException * @return Request + * @deprecated */ public function addChannelRequest($channel_object = null): Request { @@ -461,6 +466,7 @@ public function addChannelRequest($channel_object = null): Request * @throws ApiException on non-2xx response * @throws InvalidArgumentException|GuzzleException * @return \Pipedrive\versions\v1\Model\DeleteChannelSuccess|\Pipedrive\versions\v1\Model\AddChannelBadRequestResponse + * @deprecated */ public function deleteChannel($id) { @@ -478,6 +484,7 @@ public function deleteChannel($id) * @throws ApiException on non-2xx response * @throws InvalidArgumentException|GuzzleException * @return array of \Pipedrive\versions\v1\Model\DeleteChannelSuccess|\Pipedrive\versions\v1\Model\AddChannelBadRequestResponse, HTTP status code, HTTP response headers (array of strings) + * @deprecated */ public function deleteChannelWithHttpInfo($id) { @@ -599,6 +606,7 @@ public function deleteChannelWithHttpInfo($id) * * @throws InvalidArgumentException|OAuthProviderException * @return PromiseInterface + * @deprecated */ public function deleteChannelAsync($id): PromiseInterface { @@ -619,6 +627,7 @@ function ($response) { * * @throws InvalidArgumentException|OAuthProviderException * @return PromiseInterface + * @deprecated */ public function deleteChannelAsyncWithHttpInfo($id): PromiseInterface { @@ -666,6 +675,7 @@ function ($exception) { * * @throws InvalidArgumentException|OAuthProviderException * @return Request + * @deprecated */ public function deleteChannelRequest($id): Request { @@ -779,6 +789,7 @@ public function deleteChannelRequest($id): Request * @throws ApiException on non-2xx response * @throws InvalidArgumentException|GuzzleException * @return \Pipedrive\versions\v1\Model\DeleteConversationSuccess|\Pipedrive\versions\v1\Model\DeleteConversationForbiddenErrorResponse|\Pipedrive\versions\v1\Model\DeleteConversationNotFoundErrorResponse + * @deprecated */ public function deleteConversation($channel_id, $conversation_id) { @@ -797,6 +808,7 @@ public function deleteConversation($channel_id, $conversation_id) * @throws ApiException on non-2xx response * @throws InvalidArgumentException|GuzzleException * @return array of \Pipedrive\versions\v1\Model\DeleteConversationSuccess|\Pipedrive\versions\v1\Model\DeleteConversationForbiddenErrorResponse|\Pipedrive\versions\v1\Model\DeleteConversationNotFoundErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @deprecated */ public function deleteConversationWithHttpInfo($channel_id, $conversation_id) { @@ -940,6 +952,7 @@ public function deleteConversationWithHttpInfo($channel_id, $conversation_id) * * @throws InvalidArgumentException|OAuthProviderException * @return PromiseInterface + * @deprecated */ public function deleteConversationAsync($channel_id, $conversation_id): PromiseInterface { @@ -961,6 +974,7 @@ function ($response) { * * @throws InvalidArgumentException|OAuthProviderException * @return PromiseInterface + * @deprecated */ public function deleteConversationAsyncWithHttpInfo($channel_id, $conversation_id): PromiseInterface { @@ -1009,6 +1023,7 @@ function ($exception) { * * @throws InvalidArgumentException|OAuthProviderException * @return Request + * @deprecated */ public function deleteConversationRequest($channel_id, $conversation_id): Request { @@ -1136,6 +1151,7 @@ public function deleteConversationRequest($channel_id, $conversation_id): Reques * @throws ApiException on non-2xx response * @throws InvalidArgumentException|GuzzleException * @return \Pipedrive\versions\v1\Model\GetReceiveMessageSuccessResponse|\Pipedrive\versions\v1\Model\ReceiveMessageBadRequestErrorResponse + * @deprecated */ public function receiveMessage($message_object = null) { @@ -1153,6 +1169,7 @@ public function receiveMessage($message_object = null) * @throws ApiException on non-2xx response * @throws InvalidArgumentException|GuzzleException * @return array of \Pipedrive\versions\v1\Model\GetReceiveMessageSuccessResponse|\Pipedrive\versions\v1\Model\ReceiveMessageBadRequestErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @deprecated */ public function receiveMessageWithHttpInfo($message_object = null) { @@ -1274,6 +1291,7 @@ public function receiveMessageWithHttpInfo($message_object = null) * * @throws InvalidArgumentException|OAuthProviderException * @return PromiseInterface + * @deprecated */ public function receiveMessageAsync($message_object = null): PromiseInterface { @@ -1294,6 +1312,7 @@ function ($response) { * * @throws InvalidArgumentException|OAuthProviderException * @return PromiseInterface + * @deprecated */ public function receiveMessageAsyncWithHttpInfo($message_object = null): PromiseInterface { @@ -1341,6 +1360,7 @@ function ($exception) { * * @throws InvalidArgumentException|OAuthProviderException * @return Request + * @deprecated */ public function receiveMessageRequest($message_object = null): Request { diff --git a/lib/versions/v1/Configuration.php b/lib/versions/v1/Configuration.php index bdda3a5..0a88676 100644 --- a/lib/versions/v1/Configuration.php +++ b/lib/versions/v1/Configuration.php @@ -111,11 +111,11 @@ class Configuration */ protected string $host = 'https://api.pipedrive.com/v1'; /** - * User agent of the HTTP request, set to "Pipedrive-SDK-PHP-13.x" by default + * User agent of the HTTP request, set to "Pipedrive-SDK-PHP-14.x" by default * * @var string */ - protected string $userAgent = 'Pipedrive-SDK-PHP-13.x'; + protected string $userAgent = 'Pipedrive-SDK-PHP-14.x'; /** * Debug switch (default set to false) diff --git a/lib/versions/v1/Model/FieldResponse.php b/lib/versions/v1/Model/FieldResponse.php index 78833d3..2af1c28 100644 --- a/lib/versions/v1/Model/FieldResponse.php +++ b/lib/versions/v1/Model/FieldResponse.php @@ -67,7 +67,7 @@ class FieldResponse implements ModelInterface, ArrayAccess, JsonSerializable */ protected static array $openAPITypes = [ 'success' => 'bool', - 'data' => '\Pipedrive\versions\v1\Model\Field' + 'data' => '\Pipedrive\versions\v1\Model\GetField' ]; /** @@ -261,7 +261,7 @@ public function setSuccess($success): self /** * Gets data * - * @return \Pipedrive\versions\v1\Model\Field|null + * @return \Pipedrive\versions\v1\Model\GetField|null */ public function getData() { @@ -271,7 +271,7 @@ public function getData() /** * Sets data * - * @param \Pipedrive\versions\v1\Model\Field|null $data data + * @param \Pipedrive\versions\v1\Model\GetField|null $data data * * @return self */ diff --git a/lib/versions/v1/Model/FieldResponseAllOf.php b/lib/versions/v1/Model/FieldResponseAllOf.php index 8e0cdc6..3daba19 100644 --- a/lib/versions/v1/Model/FieldResponseAllOf.php +++ b/lib/versions/v1/Model/FieldResponseAllOf.php @@ -66,7 +66,7 @@ class FieldResponseAllOf implements ModelInterface, ArrayAccess, JsonSerializabl * @phpsalm-var array */ protected static array $openAPITypes = [ - 'data' => '\Pipedrive\versions\v1\Model\Field' + 'data' => '\Pipedrive\versions\v1\Model\GetField' ]; /** @@ -231,7 +231,7 @@ public function valid(): bool /** * Gets data * - * @return \Pipedrive\versions\v1\Model\Field|null + * @return \Pipedrive\versions\v1\Model\GetField|null */ public function getData() { @@ -241,7 +241,7 @@ public function getData() /** * Sets data * - * @param \Pipedrive\versions\v1\Model\Field|null $data data + * @param \Pipedrive\versions\v1\Model\GetField|null $data data * * @return self */ diff --git a/lib/versions/v2/Configuration.php b/lib/versions/v2/Configuration.php index a94eade..1a2ebb3 100644 --- a/lib/versions/v2/Configuration.php +++ b/lib/versions/v2/Configuration.php @@ -111,11 +111,11 @@ class Configuration */ protected string $host = 'https://api.pipedrive.com/api/v2'; /** - * User agent of the HTTP request, set to "Pipedrive-SDK-PHP-13.x" by default + * User agent of the HTTP request, set to "Pipedrive-SDK-PHP-14.x" by default * * @var string */ - protected string $userAgent = 'Pipedrive-SDK-PHP-13.x'; + protected string $userAgent = 'Pipedrive-SDK-PHP-14.x'; /** * Debug switch (default set to false)