Skip to content

Commit a5a6be8

Browse files
author
pipedrive-bot
committed
Build 334 - version-patch
1 parent 645f360 commit a5a6be8

7 files changed

Lines changed: 45 additions & 14 deletions

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ 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 `option_id` field type in v2 field schemas (`ActivityField`, `DealField`, `OrganizationField`, `PersonField`, `ProductField`, `ProjectField`) — changed from `integer` to `integer | string` to reflect that built-in fields use string IDs
12+
- Removed `description` from the required fields list in `DealField` and `DealFieldItem` schemas, aligning with the rest of the v2 field schemas
1013

1114
## [33.4.2] - 2026-06-04
1215
### Fixed

src/versions/v2/models/add-deal-field-request-required-fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface AddDealFieldRequestRequiredFields {
3333
*/
3434
'stage_ids'?: Array<number>;
3535
/**
36-
* Pipeline-specific status requirements for when deals are won or lost. Keys are pipeline IDs (as strings), values are arrays of status strings (\'won\', \'lost\'). Example - {\"1\":[\"won\",\"lost\"],\"2\":[\"won\"]} means the field is required when marking deals as won or lost in pipeline 1, and only when won in pipeline 2. Must reference valid, active pipelines.
36+
* Pipeline-specific status requirements for when deals are won or lost. Keys are pipeline IDs (as strings), values are arrays of status strings (\'won\', \'lost\'). Example - `{\"1\":[\"won\",\"lost\"],\"2\":[\"won\"]}` means the field is required when marking deals as won or lost in pipeline 1, and only when won in pipeline 2. Must reference valid, active pipelines.
3737
* @type {{ [key: string]: Array<string> | undefined; }}
3838
*/
3939
'statuses'?: { [key: string]: Array<string> | undefined; };

src/versions/v2/models/delete-deal-field200-response-data.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ export interface DeleteDealField200ResponseData {
3131
*/
3232
'field_code': string;
3333
/**
34-
* The description of the field
35-
* @type {string}
36-
*/
37-
'description': string;
38-
/**
3934
* The type of the field
4035
* @type {string}
4136
*/
@@ -51,6 +46,11 @@ export interface DeleteDealField200ResponseData {
5146
*/
5247
'is_optional_response_field': boolean;
5348
/**
49+
* The description of the field
50+
* @type {string}
51+
*/
52+
'description'?: string;
53+
/**
5454
* Array of available options for enum/set fields, null for other field types
5555
* @type {Array<object>}
5656
*/
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
* @type GetActivityFields200ResponseDataInnerOptionsInnerId
19+
* The option ID (integer for custom fields, string for built-in fields)
20+
* @export
21+
*/
22+
export type GetActivityFields200ResponseDataInnerOptionsInnerId = number | string;
23+
24+

src/versions/v2/models/get-activity-fields200-response-data-inner-options-inner.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
*/
1414

1515

16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { GetActivityFields200ResponseDataInnerOptionsInnerId } from './get-activity-fields200-response-data-inner-options-inner-id';
1619

1720
/**
1821
*
@@ -21,10 +24,10 @@
2124
*/
2225
export interface GetActivityFields200ResponseDataInnerOptionsInner {
2326
/**
24-
* The option ID
25-
* @type {number}
27+
*
28+
* @type {GetActivityFields200ResponseDataInnerOptionsInnerId}
2629
*/
27-
'id'?: number;
30+
'id'?: GetActivityFields200ResponseDataInnerOptionsInnerId;
2831
/**
2932
* The option display label
3033
* @type {string}

src/versions/v2/models/get-deal-fields200-response-data-inner.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ export interface GetDealFields200ResponseDataInner {
4646
*/
4747
'field_code': string;
4848
/**
49-
* The description of the field
50-
* @type {string}
51-
*/
52-
'description': string;
53-
/**
5449
* The type of the field
5550
* @type {string}
5651
*/
@@ -66,6 +61,11 @@ export interface GetDealFields200ResponseDataInner {
6661
*/
6762
'is_optional_response_field': boolean;
6863
/**
64+
* The description of the field
65+
* @type {string}
66+
*/
67+
'description'?: string;
68+
/**
6969
* Array of available options for enum/set fields, null for other field types
7070
* @type {Array<GetActivityFields200ResponseDataInnerOptionsInner>}
7171
*/

src/versions/v2/models/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export * from './get-activity-fields200-response';
125125
export * from './get-activity-fields200-response-additional-data';
126126
export * from './get-activity-fields200-response-data-inner';
127127
export * from './get-activity-fields200-response-data-inner-options-inner';
128+
export * from './get-activity-fields200-response-data-inner-options-inner-id';
128129
export * from './get-activity-fields200-response-data-inner-subfields-inner';
129130
export * from './get-activity-fields200-response-data-inner-ui-visibility';
130131
export * from './get-additional-discounts-response';

0 commit comments

Comments
 (0)