diff --git a/CHANGELOG.md b/CHANGELOG.md index 07ae0182..7e288f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19). ## [Unreleased] +### Fixed +- Fixed return type for `filesApi.downloadFile` function ## [30.3.1] - 2025-11-03 ### Fixed diff --git a/src/versions/v1/api/files-api.ts b/src/versions/v1/api/files-api.ts index de3f1a30..5314ac25 100644 --- a/src/versions/v1/api/files-api.ts +++ b/src/versions/v1/api/files-api.ts @@ -255,7 +255,7 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarRequestOptions = { method: 'GET', responseType: 'arraybuffer' as const, ...baseOptions }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any;