Skip to content

Commit 18e633b

Browse files
Release v30.9.0 from PR #692
2 parents ca1cb3d + fd0313c commit 18e633b

9 files changed

Lines changed: 236 additions & 4 deletions

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
88

99
## [Unreleased]
1010

11+
## [30.9.0] - 2026-01-27
12+
### Added
13+
- Added `GET /api/v2/persons/{id}/picture` endpoint to retrieve picture information for a specific person, including ID, file size, and URLs for both 128x128 (thumbnail) and 512x512 (full-size) versions of the person's profile picture
14+
1115
## [30.8.1] - 2026-01-27
1216
### Fixed
1317
- Removed `is_selected` from `/api/v2/pipelines` response, the field was never returned
@@ -1054,7 +1058,8 @@ Those fields will be formatted as "2020-07-13" instead of "2020-07-13T00:00:00.0
10541058
* Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
10551059
* Fixed typo in lead example response (`crrency` to `currency`)
10561060

1057-
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v30.8.1...HEAD
1061+
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v30.9.0...HEAD
1062+
[30.9.0]: https://github.com/pipedrive/api-docs/compare/v30.8.1...v30.9.0
10581063
[30.8.1]: https://github.com/pipedrive/api-docs/compare/v30.8.0...v30.8.1
10591064
[30.8.0]: https://github.com/pipedrive/api-docs/compare/v30.7.0...v30.8.0
10601065
[30.7.0]: https://github.com/pipedrive/api-docs/compare/v30.6.0...v30.7.0

docs/v2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ PersonsApi | deletePersonFollower | **DELETE** /persons/{id}/followers/{follower
9797
PersonsApi | getPerson | **GET** /persons/{id} | Get details of a person
9898
PersonsApi | getPersonFollowers | **GET** /persons/{id}/followers | List followers of a person
9999
PersonsApi | getPersonFollowersChangelog | **GET** /persons/{id}/followers/changelog | List followers changelog of a person
100+
PersonsApi | getPersonPicture | **GET** /persons/{id}/picture | Get picture of a person
100101
PersonsApi | getPersons | **GET** /persons | Get all persons
101102
PersonsApi | searchPersons | **GET** /persons/search | Search persons
102103
PersonsApi | updatePerson | **PATCH** /persons/{id} | Update a person

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pipedrive",
3-
"version": "30.8.1",
3+
"version": "30.9.0",
44
"description": "Pipedrive REST client for NodeJS",
55
"license": "MIT",
66
"homepage": "https://developers.pipedrive.com",

src/versions/v2/api/persons-api.ts

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ import { GetFollowerChangelogsResponse } from '../models';
3636
// @ts-ignore
3737
import { GetFollowersResponse } from '../models';
3838
// @ts-ignore
39+
import { GetPersonPictureResponse } from '../models';
40+
// @ts-ignore
3941
import { GetPersonSearchResponse } from '../models';
4042
// @ts-ignore
4143
import { GetPersonsResponse } from '../models';
@@ -365,6 +367,47 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati
365367

366368

367369

370+
setSearchParams(localVarUrlObj, localVarQueryParameter);
371+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
372+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, };
373+
374+
return {
375+
url: toPathString(localVarUrlObj),
376+
options: localVarRequestOptions,
377+
};
378+
},
379+
/**
380+
* Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
381+
* @summary Get picture of a person
382+
* @param {number} id The ID of the person
383+
384+
* @throws {RequiredError}
385+
*/
386+
getPersonPicture: async (id: number, ): Promise<RequestArgs> => {
387+
// verify required parameter 'id' is not null or undefined
388+
assertParamExists('getPersonPicture', 'id', id)
389+
const localVarPath = `/persons/{id}/picture`
390+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
391+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
392+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
393+
let baseOptions;
394+
if (configuration) {
395+
baseOptions = configuration.baseOptions;
396+
}
397+
398+
const localVarRequestOptions = { method: 'GET', ...baseOptions };
399+
const localVarHeaderParameter = {} as any;
400+
const localVarQueryParameter = {} as any;
401+
402+
// authentication api_key required
403+
await setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration)
404+
405+
// authentication oauth2 required
406+
// oauth required
407+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration)
408+
409+
410+
368411
setSearchParams(localVarUrlObj, localVarQueryParameter);
369412
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
370413
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, };
@@ -691,6 +734,17 @@ export const PersonsApiFp = function(configuration?: Configuration) {
691734
const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonFollowersChangelog(id, limit, cursor, );
692735
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
693736
},
737+
/**
738+
* Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
739+
* @summary Get picture of a person
740+
* @param {number} id The ID of the person
741+
742+
* @throws {RequiredError}
743+
*/
744+
async getPersonPicture(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonPictureResponse>> {
745+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonPicture(id, );
746+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
747+
},
694748
/**
695749
* Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
696750
* @summary Get all persons
@@ -823,6 +877,16 @@ export const PersonsApiFactory = function (configuration?: Configuration, basePa
823877
getPersonFollowersChangelog(requestParameters: PersonsApiGetPersonFollowersChangelogRequest, ): Promise<GetFollowerChangelogsResponse> {
824878
return localVarFp.getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath));
825879
},
880+
/**
881+
* Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
882+
* @summary Get picture of a person
883+
* @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
884+
885+
* @throws {RequiredError}
886+
*/
887+
getPersonPicture(requestParameters: PersonsApiGetPersonPictureRequest, ): Promise<GetPersonPictureResponse> {
888+
return localVarFp.getPersonPicture(requestParameters.id, ).then((request) => request(axios, basePath));
889+
},
826890
/**
827891
* Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
828892
* @summary Get all persons
@@ -1010,6 +1074,20 @@ export interface PersonsApiGetPersonFollowersChangelogRequest {
10101074
readonly cursor?: string
10111075
}
10121076

1077+
/**
1078+
* Request parameters for getPersonPicture operation in PersonsApi.
1079+
* @export
1080+
* @interface PersonsApiGetPersonPictureRequest
1081+
*/
1082+
export interface PersonsApiGetPersonPictureRequest {
1083+
/**
1084+
* The ID of the person
1085+
* @type {number}
1086+
* @memberof PersonsApiGetPersonPicture
1087+
*/
1088+
readonly id: number
1089+
}
1090+
10131091
/**
10141092
* Request parameters for getPersons operation in PersonsApi.
10151093
* @export
@@ -1276,6 +1354,18 @@ export class PersonsApi extends BaseAPI {
12761354
return PersonsApiFp(this.configuration).getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath));
12771355
}
12781356

1357+
/**
1358+
* Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
1359+
* @summary Get picture of a person
1360+
* @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
1361+
1362+
* @throws {RequiredError}
1363+
* @memberof PersonsApi
1364+
*/
1365+
public getPersonPicture(requestParameters: PersonsApiGetPersonPictureRequest, ) {
1366+
return PersonsApiFp(this.configuration).getPersonPicture(requestParameters.id, ).then((request) => request(this.axios, this.basePath));
1367+
}
1368+
12791369
/**
12801370
* Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
12811371
* @summary Get all persons
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
17+
/**
18+
* Picture URLs indexed by size.
19+
* @export
20+
* @interface GetPersonPictureResponseDataPictures
21+
*/
22+
export interface GetPersonPictureResponseDataPictures {
23+
/**
24+
* The URL of the 128x128 picture.
25+
* @type {string}
26+
*/
27+
'128'?: string;
28+
/**
29+
* The URL of the 512x512 picture.
30+
* @type {string}
31+
*/
32+
'512'?: string;
33+
}
34+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { GetPersonPictureResponseDataPictures } from './get-person-picture-response-data-pictures';
19+
20+
/**
21+
*
22+
* @export
23+
* @interface GetPersonPictureResponseData
24+
*/
25+
export interface GetPersonPictureResponseData {
26+
/**
27+
* The ID of the picture.
28+
* @type {number}
29+
*/
30+
'id'?: number;
31+
/**
32+
* The type of item the picture is associated with.
33+
* @type {string}
34+
*/
35+
'item_type'?: string;
36+
/**
37+
* The ID of the person this picture belongs to.
38+
* @type {number}
39+
*/
40+
'item_id'?: number;
41+
/**
42+
* The ID of the user who added the picture.
43+
* @type {number}
44+
*/
45+
'added_by_user_id'?: number;
46+
/**
47+
* Whether the picture is active or not.
48+
* @type {boolean}
49+
*/
50+
'active_flag'?: boolean;
51+
/**
52+
* The file size in bytes.
53+
* @type {number}
54+
*/
55+
'file_size'?: number;
56+
/**
57+
*
58+
* @type {GetPersonPictureResponseDataPictures}
59+
*/
60+
'pictures'?: GetPersonPictureResponseDataPictures;
61+
}
62+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { GetPersonPictureResponseData } from './get-person-picture-response-data';
19+
20+
/**
21+
*
22+
* @export
23+
* @interface GetPersonPictureResponse
24+
*/
25+
export interface GetPersonPictureResponse {
26+
/**
27+
* If the response is successful or not
28+
* @type {boolean}
29+
*/
30+
'success'?: boolean;
31+
/**
32+
*
33+
* @type {GetPersonPictureResponseData}
34+
*/
35+
'data'?: GetPersonPictureResponseData;
36+
}
37+

src/versions/v2/models/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ export * from './get-person-fields200-response-data-inner-important-fields';
170170
export * from './get-person-fields200-response-data-inner-required-fields';
171171
export * from './get-person-fields200-response-data-inner-ui-visibility';
172172
export * from './get-person-fields200-response-data-inner-ui-visibility-show-in-add-deal-dialog';
173+
export * from './get-person-picture-response';
174+
export * from './get-person-picture-response-data';
175+
export * from './get-person-picture-response-data-pictures';
173176
export * from './get-person-search-response';
174177
export * from './get-person-search-response-all-of';
175178
export * from './get-person-search-response-all-of-data';

0 commit comments

Comments
 (0)