Skip to content

Commit a047130

Browse files
author
pipedrive-bot
committed
Build 312 - version-minor
1 parent 2e514b5 commit a047130

16 files changed

+292
-29
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
77
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).
88

99
## [Unreleased]
10+
### Fixed
11+
- Fixed `GET /v1/deals/{id}/participants` and `POST /v1/deals/{id}/participants` response schemas to accurately represent the API response structure. Added `DealParticipantItem` schema with proper nesting of `email` and `phone` fields within `person_id` object, replacing incorrect `PersonItem` reference.
1012

1113
## [31.3.0] - 2026-02-06
1214
### Added

src/versions/v1/models/add-participants-response.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
// May contain unused imports in some cases
1717
// @ts-ignore
18-
import { AddParticipantsResponseData } from './add-participants-response-data';
18+
import { AddParticipantsResponseRelatedObjects } from './add-participants-response-related-objects';
1919
// May contain unused imports in some cases
2020
// @ts-ignore
21-
import { AddParticipantsResponseRelatedObjects } from './add-participants-response-related-objects';
21+
import { DealParticipantItem } from './deal-participant-item';
2222

2323
/**
2424
*
@@ -33,9 +33,9 @@ export interface AddParticipantsResponse {
3333
'success'?: boolean;
3434
/**
3535
*
36-
* @type {AddParticipantsResponseData}
36+
* @type {DealParticipantItem}
3737
*/
38-
'data'?: AddParticipantsResponseData;
38+
'data'?: DealParticipantItem;
3939
/**
4040
*
4141
* @type {AddParticipantsResponseRelatedObjects}

src/versions/v1/models/add-person-request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { BasicPersonRequest } from './basic-person-request';
2424
import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner';
2525
// May contain unused imports in some cases
2626
// @ts-ignore
27-
import { PersonAllOfPhoneInner } from './person-all-of-phone-inner';
27+
import { DealParticipantItemPersonIdPhoneInner } from './deal-participant-item-person-id-phone-inner';
2828

2929
/**
3030
* @type AddPersonRequest

src/versions/v1/models/basic-person-request.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner';
1919
// May contain unused imports in some cases
2020
// @ts-ignore
21-
import { PersonAllOfPhoneInner } from './person-all-of-phone-inner';
21+
import { DealParticipantItemPersonIdPhoneInner } from './deal-participant-item-person-id-phone-inner';
2222

2323
/**
2424
*
@@ -43,9 +43,9 @@ export interface BasicPersonRequest {
4343
'email'?: Array<BasicPersonRequestEmailInner>;
4444
/**
4545
* A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required.
46-
* @type {Array<PersonAllOfPhoneInner>}
46+
* @type {Array<DealParticipantItemPersonIdPhoneInner>}
4747
*/
48-
'phone'?: Array<PersonAllOfPhoneInner>;
48+
'phone'?: Array<DealParticipantItemPersonIdPhoneInner>;
4949
/**
5050
* The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value.
5151
* @type {number}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v1
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.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+
*
19+
* @export
20+
* @interface DealParticipantItemPersonIdEmailInner
21+
*/
22+
export interface DealParticipantItemPersonIdEmailInner {
23+
/**
24+
* The email address
25+
* @type {string}
26+
*/
27+
'value'?: string;
28+
/**
29+
* Boolean that indicates if email is primary for the person or not
30+
* @type {boolean}
31+
*/
32+
'primary'?: boolean;
33+
/**
34+
* The label that indicates the type of the email. (Possible values - work, home or other)
35+
* @type {string}
36+
*/
37+
'label'?: string;
38+
}
39+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v1
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.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+
*
19+
* @export
20+
* @interface DealParticipantItemPersonIdPhoneInner
21+
*/
22+
export interface DealParticipantItemPersonIdPhoneInner {
23+
/**
24+
* The phone number
25+
* @type {string}
26+
*/
27+
'value'?: string;
28+
/**
29+
* Boolean that indicates if phone number is primary for the person or not
30+
* @type {boolean}
31+
*/
32+
'primary'?: boolean;
33+
/**
34+
* The label that indicates the type of the phone number. (Possible values - work, home, mobile or other)
35+
* @type {string}
36+
*/
37+
'label'?: string;
38+
}
39+
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v1
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.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 { DealParticipantItemPersonIdEmailInner } from './deal-participant-item-person-id-email-inner';
19+
// May contain unused imports in some cases
20+
// @ts-ignore
21+
import { DealParticipantItemPersonIdPhoneInner } from './deal-participant-item-person-id-phone-inner';
22+
23+
/**
24+
* The person data associated with the participant
25+
* @export
26+
* @interface DealParticipantItemPersonId
27+
*/
28+
export interface DealParticipantItemPersonId {
29+
/**
30+
* Whether the person is active or not
31+
* @type {boolean}
32+
*/
33+
'active_flag'?: boolean;
34+
/**
35+
* The name of the person
36+
* @type {string}
37+
*/
38+
'name'?: string;
39+
/**
40+
* An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required.
41+
* @type {Array<DealParticipantItemPersonIdEmailInner>}
42+
*/
43+
'email'?: Array<DealParticipantItemPersonIdEmailInner>;
44+
/**
45+
* A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required.
46+
* @type {Array<DealParticipantItemPersonIdPhoneInner>}
47+
*/
48+
'phone'?: Array<DealParticipantItemPersonIdPhoneInner>;
49+
/**
50+
* The ID of the owner of the person
51+
* @type {number}
52+
*/
53+
'owner_id'?: number;
54+
/**
55+
* The ID of the company related to the person
56+
* @type {number}
57+
*/
58+
'company_id'?: number;
59+
/**
60+
* The ID of the person
61+
* @type {number}
62+
*/
63+
'value'?: number;
64+
}
65+
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 v1
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.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+
* Information about the related deal
19+
* @export
20+
* @interface DealParticipantItemRelatedItemData
21+
*/
22+
export interface DealParticipantItemRelatedItemData {
23+
/**
24+
* The ID of the deal
25+
* @type {number}
26+
*/
27+
'deal_id'?: number;
28+
/**
29+
* The title of the deal
30+
* @type {string}
31+
*/
32+
'title'?: string;
33+
}
34+
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v1
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.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 { DealParticipantItemPersonId } from './deal-participant-item-person-id';
19+
// May contain unused imports in some cases
20+
// @ts-ignore
21+
import { DealParticipantItemRelatedItemData } from './deal-participant-item-related-item-data';
22+
// May contain unused imports in some cases
23+
// @ts-ignore
24+
import { GetUserResponse } from './get-user-response';
25+
// May contain unused imports in some cases
26+
// @ts-ignore
27+
import { Person } from './person';
28+
29+
/**
30+
*
31+
* @export
32+
* @interface DealParticipantItem
33+
*/
34+
export interface DealParticipantItem {
35+
/**
36+
* The ID of the participant
37+
* @type {number}
38+
*/
39+
'id'?: number;
40+
/**
41+
*
42+
* @type {DealParticipantItemPersonId}
43+
*/
44+
'person_id'?: DealParticipantItemPersonId;
45+
/**
46+
* The date and time when the participant was added. Format: YYYY-MM-DD HH:MM:SS
47+
* @type {string}
48+
*/
49+
'add_time'?: string;
50+
/**
51+
* Whether the participant is active or not
52+
* @type {boolean}
53+
*/
54+
'active_flag'?: boolean;
55+
/**
56+
*
57+
* @type {DealParticipantItemRelatedItemData}
58+
*/
59+
'related_item_data'?: DealParticipantItemRelatedItemData;
60+
/**
61+
*
62+
* @type {Person}
63+
*/
64+
'person'?: Person;
65+
/**
66+
*
67+
* @type {GetUserResponse}
68+
*/
69+
'added_by_user_id'?: GetUserResponse;
70+
/**
71+
* The type of the related item
72+
* @type {string}
73+
*/
74+
'related_item_type'?: string;
75+
/**
76+
* The ID of the related item
77+
* @type {number}
78+
*/
79+
'related_item_id'?: number;
80+
}
81+

src/versions/v1/models/get-deal-participants-response.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515

1616
// May contain unused imports in some cases
1717
// @ts-ignore
18-
import { GetDealsResponseRelatedObjects } from './get-deals-response-related-objects';
18+
import { DealParticipantItem } from './deal-participant-item';
1919
// May contain unused imports in some cases
2020
// @ts-ignore
21-
import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data';
21+
import { GetDealsResponseRelatedObjects } from './get-deals-response-related-objects';
2222
// May contain unused imports in some cases
2323
// @ts-ignore
24-
import { Person } from './person';
24+
import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data';
2525

2626
/**
2727
*
@@ -36,9 +36,9 @@ export interface GetDealParticipantsResponse {
3636
'success'?: boolean;
3737
/**
3838
* The array of participants
39-
* @type {Array<Person>}
39+
* @type {Array<DealParticipantItem>}
4040
*/
41-
'data'?: Array<Person>;
41+
'data'?: Array<DealParticipantItem>;
4242
/**
4343
*
4444
* @type {GetFieldsResponseAllOfAdditionalData}

0 commit comments

Comments
 (0)