Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ 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 `has_pic` field type in v1 deal creator schema (`DealNonStrictModeFields`, used by `GET`/`POST /v1/deals` and related endpoints) — changed from `boolean` to `integer` since the API returns `0`/`1`, not `true`/`false`
- Fixed `code` field type in v2 product search results (`GET /api/v2/products/search`) — changed from `integer` to `string` and made nullable to match actual API responses
- Fixed `value` field type in v2 deal search results (`DealSearchItem`, used by `GET /api/v2/deals/search`) — changed from `integer` to `number` and made nullable to match actual API responses
- Marked `data` nullable in `ListProductFilesResponse` (`GET /v1/products/{id}/files`)
- Marked `update_time` nullable in v2 deal, organization, person, and stage schemas (`DealItem`, `OrganizationItem`, `PersonItem`, `StageItem`)
- Marked `next_cursor` nullable in v2 cursor pagination schema, used across all v2 cursor-paginated list endpoints
- Marked several v2 activity fields nullable (`ActivityItem`): `deal_id`, `lead_id`, `person_id`, `org_id`, `project_id`, `due_time`, `duration`, `marked_as_done_time`, `location`, and all `location` address subfields (`country`, `admin_area_level_1`, `admin_area_level_2`, `locality`, `sublocality`, `route`, `street_number`, `subpremise`, `postal_code`)
- Marked v2 `OrganizationItemAddress` and `PersonItemAddress` objects and all their subfields nullable, and marked `PersonItem.picture_id` nullable
- Marked `person` nullable in v2 lead search results (`LeadSearchItem`) and `address` nullable in v2 organization search results (`OrganizationSearchItem`)

## [33.8.0] - 2026-10-09
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions src/versions/v1/models/deal-all-of-creator-user-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export interface DealAllOfCreatorUserId {
'email'?: string;
/**
* If the creator has a picture or not
* @type {boolean}
* @type {number}
*/
'has_pic'?: boolean;
'has_pic'?: number;
/**
* The creator picture hash
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface GetAssociatedProductFilesResponseAllOf {
* The array of files
* @type {Array<GetAssociatedProductFilesResponseAllOfDataInner>}
*/
'data': Array<GetAssociatedProductFilesResponseAllOfDataInner>;
'data': Array<GetAssociatedProductFilesResponseAllOfDataInner> | null;
/**
*
* @type {GetFieldsResponseAllOfAdditionalData}
Expand Down
74 changes: 74 additions & 0 deletions src/versions/v2/models/activity-item-location.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/* tslint:disable */
/* eslint-disable */
/**
* Pipedrive API v2
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/



/**
* Location of the activity
* @export
* @interface ActivityItemLocation
*/
export interface ActivityItemLocation {
/**
* The full address of the activity
* @type {string}
*/
'value'?: string;
/**
* Country of the activity
* @type {string}
*/
'country'?: string | null;
/**
* Admin area level 1 (e.g. state) of the activity
* @type {string}
*/
'admin_area_level_1'?: string | null;
/**
* Admin area level 2 (e.g. county) of the activity
* @type {string}
*/
'admin_area_level_2'?: string | null;
/**
* Locality (e.g. city) of the activity
* @type {string}
*/
'locality'?: string | null;
/**
* Sublocality (e.g. neighborhood) of the activity
* @type {string}
*/
'sublocality'?: string | null;
/**
* Route (e.g. street) of the activity
* @type {string}
*/
'route'?: string | null;
/**
* Street number of the activity
* @type {string}
*/
'street_number'?: string | null;
/**
* Subpremise (e.g. apartment/suite number) of the activity
* @type {string}
*/
'subpremise'?: string | null;
/**
* Postal code of the activity
* @type {string}
*/
'postal_code'?: string | null;
}

24 changes: 12 additions & 12 deletions src/versions/v2/models/activity-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

// May contain unused imports in some cases
// @ts-ignore
import { AddActivityRequestAttendeesInner } from './add-activity-request-attendees-inner';
import { ActivityItemLocation } from './activity-item-location';
// May contain unused imports in some cases
// @ts-ignore
import { AddActivityRequestLocation } from './add-activity-request-location';
import { AddActivityRequestAttendeesInner } from './add-activity-request-attendees-inner';
// May contain unused imports in some cases
// @ts-ignore
import { AddActivityRequestParticipantsInner } from './add-activity-request-participants-inner';
Expand Down Expand Up @@ -73,27 +73,27 @@ export interface ActivityItem {
* The ID of the deal linked to the activity
* @type {number}
*/
'deal_id'?: number;
'deal_id'?: number | null;
/**
* The ID of the lead linked to the activity
* @type {string}
*/
'lead_id'?: string;
'lead_id'?: string | null;
/**
* The ID of the person linked to the activity
* @type {number}
*/
'person_id'?: number;
'person_id'?: number | null;
/**
* The ID of the organization linked to the activity
* @type {number}
*/
'org_id'?: number;
'org_id'?: number | null;
/**
* The ID of the project linked to the activity
* @type {number}
*/
'project_id'?: number;
'project_id'?: number | null;
/**
* The due date of the activity
* @type {string}
Expand All @@ -103,12 +103,12 @@ export interface ActivityItem {
* The due time of the activity
* @type {string}
*/
'due_time'?: string;
'due_time'?: string | null;
/**
* The duration of the activity
* @type {string}
*/
'duration'?: string;
'duration'?: string | null;
/**
* Whether the activity marks the assignee as busy or not in their calendar
* @type {boolean}
Expand All @@ -123,12 +123,12 @@ export interface ActivityItem {
* The date and time when the activity was marked as done
* @type {string}
*/
'marked_as_done_time'?: string;
'marked_as_done_time'?: string | null;
/**
*
* @type {AddActivityRequestLocation}
* @type {ActivityItemLocation}
*/
'location'?: AddActivityRequestLocation;
'location'?: ActivityItemLocation | null;
/**
* The participants of the activity
* @type {Array<AddActivityRequestParticipantsInner>}
Expand Down
2 changes: 1 addition & 1 deletion src/versions/v2/models/add-organization-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface AddOrganizationRequest {
*
* @type {OrganizationItemAddress}
*/
'address'?: OrganizationItemAddress;
'address'?: OrganizationItemAddress | null;
/**
* The website of the organization
* @type {string}
Expand Down
2 changes: 1 addition & 1 deletion src/versions/v2/models/add-person-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface AddPersonRequest {
*
* @type {PersonItemAddress}
*/
'postal_address'?: PersonItemAddress;
'postal_address'?: PersonItemAddress | null;
/**
* Contact sync notes of the person, maximum 10 000 characters. Only accepted when contact sync is enabled for the company; otherwise the request returns 403.
* @type {string}
Expand Down
2 changes: 1 addition & 1 deletion src/versions/v2/models/deal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface Deal {
* The last updated date and time of the deal
* @type {string}
*/
'update_time'?: string;
'update_time'?: string | null;
/**
* The last updated date and time of the deal stage
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export interface GetActivitiesResponseAllOfAdditionalData {
* The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned.
* @type {string}
*/
'next_cursor'?: string;
'next_cursor'?: string | null;
}

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface GetDealSearchResponseAllOfDataItemsInnerItem {
* The value of the deal
* @type {number}
*/
'value'?: number;
'value'?: number | null;
/**
* The currency of the deal
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export interface GetDealsProductsResponseAdditionalData {
* The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned.
* @type {string}
*/
'next_cursor'?: string;
'next_cursor'?: string | null;
}

Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface GetOrganizationSearchResponseAllOfDataItemsInnerItem {
* The address of the organization
* @type {string}
*/
'address'?: string;
'address'?: string | null;
/**
* The visibility of the organization
* @type {number}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export interface GetProductSearchResponseAllOfDataItemsInnerItem {
'name'?: string;
/**
* The code of the product
* @type {number}
* @type {string}
*/
'code'?: number;
'code'?: string | null;
/**
* The visibility of the product
* @type {number}
Expand Down
1 change: 1 addition & 0 deletions src/versions/v2/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './activity-item';
export * from './activity-item-location';
export * from './add-ainstallment-response';
export * from './add-activity-request';
export * from './add-activity-request-attendees-inner';
Expand Down
2 changes: 1 addition & 1 deletion src/versions/v2/models/lead-search-item-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface LeadSearchItemItem {
*
* @type {LeadSearchItemItemPerson}
*/
'person'?: LeadSearchItemItemPerson;
'person'?: LeadSearchItemItemPerson | null;
/**
*
* @type {LeadSearchItemItemOrganization}
Expand Down
18 changes: 9 additions & 9 deletions src/versions/v2/models/organization-item-address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,46 +29,46 @@ export interface OrganizationItemAddress {
* Country of the organization
* @type {string}
*/
'country'?: string;
'country'?: string | null;
/**
* Admin area level 1 (e.g. state) of the organization
* @type {string}
*/
'admin_area_level_1'?: string;
'admin_area_level_1'?: string | null;
/**
* Admin area level 2 (e.g. county) of the organization
* @type {string}
*/
'admin_area_level_2'?: string;
'admin_area_level_2'?: string | null;
/**
* Locality (e.g. city) of the organization
* @type {string}
*/
'locality'?: string;
'locality'?: string | null;
/**
* Sublocality (e.g. neighborhood) of the organization
* @type {string}
*/
'sublocality'?: string;
'sublocality'?: string | null;
/**
* Route (e.g. street) of the organization
* @type {string}
*/
'route'?: string;
'route'?: string | null;
/**
* Street number of the organization
* @type {string}
*/
'street_number'?: string;
'street_number'?: string | null;
/**
* Subpremise (e.g. apartment/suite number) of the organization
* @type {string}
*/
'subpremise'?: string;
'subpremise'?: string | null;
/**
* Postal code of the organization
* @type {string}
*/
'postal_code'?: string;
'postal_code'?: string | null;
}

4 changes: 2 additions & 2 deletions src/versions/v2/models/organization-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface OrganizationItem {
* The last updated date and time of the organization
* @type {string}
*/
'update_time'?: string;
'update_time'?: string | null;
/**
* Whether the organization is deleted or not
* @type {boolean}
Expand All @@ -62,7 +62,7 @@ export interface OrganizationItem {
*
* @type {OrganizationItemAddress}
*/
'address'?: OrganizationItemAddress;
'address'?: OrganizationItemAddress | null;
/**
* The IDs of labels assigned to the organization
* @type {Array<number>}
Expand Down
Loading
Loading