From c02be54620915205b602f783845c6826ed2705ab Mon Sep 17 00:00:00 2001 From: pipedrive-bot Date: Thu, 3 Sep 2026 08:28:03 +0000 Subject: [PATCH 1/2] Build 340 - version-patch --- CHANGELOG.md | 3 ++ src/versions/v1/models/base-deal.ts | 34 +++++++------- src/versions/v1/models/base-stage.ts | 2 +- src/versions/v1/models/deal-all-of-org-id.ts | 26 ++++++++++ .../v1/models/deal-all-of-person-id.ts | 32 +++++++++++++ src/versions/v1/models/deal-all-of.ts | 12 ++--- src/versions/v1/models/deal-strict-all-of.ts | 4 +- src/versions/v1/models/deal.ts | 4 +- ...s-response-all-of-data-inner-dealiddeal.ts | 26 +++++----- src/versions/v1/models/index.ts | 3 ++ src/versions/v1/models/note-deal-all-of.ts | 29 ++++++++++++ src/versions/v1/models/note-deal.ts | 19 ++++---- src/versions/v1/models/note-user.ts | 2 +- src/versions/v1/models/note.ts | 24 +++++----- src/versions/v2/models/add-deal-request.ts | 12 ++--- src/versions/v2/models/add-product-request.ts | 3 ++ src/versions/v2/models/add-stage-request.ts | 2 +- src/versions/v2/models/deal.ts | 12 ++--- src/versions/v2/models/index.ts | 4 ++ .../prices-array-prices-inner-all-of.ts | 44 +++++++++++++++++ .../v2/models/prices-array-prices-inner.ts | 47 +++++-------------- src/versions/v2/models/product-price-base.ts | 34 ++++++++++++++ .../product-request-prices-inner-all-of.ts | 39 +++++++++++++++ .../v2/models/product-request-prices-inner.ts | 29 ++++++++++++ src/versions/v2/models/product-request.ts | 9 ++-- src/versions/v2/models/update-deal-request.ts | 12 ++--- .../v2/models/update-product-request.ts | 3 ++ .../v2/models/update-stage-request.ts | 2 +- 28 files changed, 348 insertions(+), 124 deletions(-) create mode 100644 src/versions/v1/models/deal-all-of-org-id.ts create mode 100644 src/versions/v1/models/deal-all-of-person-id.ts create mode 100644 src/versions/v1/models/note-deal-all-of.ts create mode 100644 src/versions/v2/models/prices-array-prices-inner-all-of.ts create mode 100644 src/versions/v2/models/product-price-base.ts create mode 100644 src/versions/v2/models/product-request-prices-inner-all-of.ts create mode 100644 src/versions/v2/models/product-request-prices-inner.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 5542981b..68f739b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ 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 +- Added missing `nova` value to the `UserAccess.app` enum (`GET /v1/users`) — accounts with Nova enabled were returning `"app": "nova"` in `user_access` entries, causing generated SDKs to throw an error during response deserialization +- Added missing `partnership` and `nova` values to the `PermissionSetsItem.app` enum and the `app` query parameter enum (`GET /permissionSets`) — same class of error for accounts with a permission set for those apps ## [33.6.1] - 2026-08-13 ### Fixed diff --git a/src/versions/v1/models/base-deal.ts b/src/versions/v1/models/base-deal.ts index 4e459606..05aa0834 100644 --- a/src/versions/v1/models/base-deal.ts +++ b/src/versions/v1/models/base-deal.ts @@ -49,12 +49,12 @@ export interface BaseDeal { * 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} */ - 'stage_change_time'?: string; + 'stage_change_time'?: string | null; /** * Whether the deal is active or not * @type {boolean} @@ -84,12 +84,12 @@ export interface BaseDeal { * The date of the next activity associated with the deal * @type {string} */ - 'next_activity_date'?: string; + 'next_activity_date'?: string | null; /** * The time of the next activity associated with the deal * @type {string} */ - 'next_activity_time'?: string; + 'next_activity_time'?: string | null; /** * The ID of the next activity associated with the deal * @type {number} @@ -129,17 +129,17 @@ export interface BaseDeal { * The date and time of changing the deal status as won * @type {string} */ - 'won_time'?: string; + 'won_time'?: string | null; /** * The date and time of the first time changing the deal status as won * @type {string} */ - 'first_won_time'?: string; + 'first_won_time'?: string | null; /** * The date and time of changing the deal status as lost * @type {string} */ - 'lost_time'?: string; + 'lost_time'?: string | null; /** * The number of products associated with the deal * @type {number} @@ -189,22 +189,22 @@ export interface BaseDeal { * The expected close date of the deal * @type {string} */ - 'expected_close_date'?: string; + 'expected_close_date'?: string | null; /** * The date and time of the last incoming email associated with the deal * @type {string} */ - 'last_incoming_mail_time'?: string; + 'last_incoming_mail_time'?: string | null; /** * The date and time of the last outgoing email associated with the deal * @type {string} */ - 'last_outgoing_mail_time'?: string; + 'last_outgoing_mail_time'?: string | null; /** * The label or multiple labels assigned to the deal * @type {string} */ - 'label'?: string; + 'label'?: string | null; /** * The order number of the deal stage associated with the deal * @type {number} @@ -214,32 +214,32 @@ export interface BaseDeal { * The name of the person associated with the deal * @type {string} */ - 'person_name'?: string; + 'person_name'?: string | null; /** * The name of the organization associated with the deal * @type {string} */ - 'org_name'?: string; + 'org_name'?: string | null; /** * The subject of the next activity associated with the deal * @type {string} */ - 'next_activity_subject'?: string; + 'next_activity_subject'?: string | null; /** * The type of the next activity associated with the deal * @type {string} */ - 'next_activity_type'?: string; + 'next_activity_type'?: string | null; /** * The duration of the next activity associated with the deal * @type {string} */ - 'next_activity_duration'?: string; + 'next_activity_duration'?: string | null; /** * The note of the next activity associated with the deal * @type {string} */ - 'next_activity_note'?: string; + 'next_activity_note'?: string | null; /** * The deal value formatted with selected currency. E.g. US$500 * @type {string} diff --git a/src/versions/v1/models/base-stage.ts b/src/versions/v1/models/base-stage.ts index 5989d55e..3079552d 100644 --- a/src/versions/v1/models/base-stage.ts +++ b/src/versions/v1/models/base-stage.ts @@ -59,7 +59,7 @@ export interface BaseStage { * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. * @type {number} */ - 'rotten_days'?: number; + 'rotten_days'?: number | null; /** * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. * @type {string} diff --git a/src/versions/v1/models/deal-all-of-org-id.ts b/src/versions/v1/models/deal-all-of-org-id.ts new file mode 100644 index 00000000..62d93137 --- /dev/null +++ b/src/versions/v1/models/deal-all-of-org-id.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealOrganizationDataWithId } from './deal-organization-data-with-id'; + +/** + * @type DealAllOfOrgId + * @export + */ +export type DealAllOfOrgId = DealOrganizationDataWithId; + + diff --git a/src/versions/v1/models/deal-all-of-person-id.ts b/src/versions/v1/models/deal-all-of-person-id.ts new file mode 100644 index 00000000..46789370 --- /dev/null +++ b/src/versions/v1/models/deal-all-of-person-id.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithId } from './deal-person-data-with-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithIdAllOfEmailInner } from './deal-person-data-with-id-all-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithIdAllOfPhoneInner } from './deal-person-data-with-id-all-of-phone-inner'; + +/** + * @type DealAllOfPersonId + * @export + */ +export type DealAllOfPersonId = DealPersonDataWithId; + + diff --git a/src/versions/v1/models/deal-all-of.ts b/src/versions/v1/models/deal-all-of.ts index a290d64f..bc77741b 100644 --- a/src/versions/v1/models/deal-all-of.ts +++ b/src/versions/v1/models/deal-all-of.ts @@ -18,10 +18,10 @@ import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id'; // May contain unused imports in some cases // @ts-ignore -import { DealOrganizationDataWithId } from './deal-organization-data-with-id'; +import { DealAllOfOrgId } from './deal-all-of-org-id'; // May contain unused imports in some cases // @ts-ignore -import { DealPersonDataWithId } from './deal-person-data-with-id'; +import { DealAllOfPersonId } from './deal-all-of-person-id'; // May contain unused imports in some cases // @ts-ignore import { DealUserDataWithId } from './deal-user-data-with-id'; @@ -49,13 +49,13 @@ export interface DealAllOf { 'user_id'?: DealUserDataWithId; /** * - * @type {DealPersonDataWithId} + * @type {DealAllOfPersonId} */ - 'person_id'?: DealPersonDataWithId; + 'person_id'?: DealAllOfPersonId | null; /** * - * @type {DealOrganizationDataWithId} + * @type {DealAllOfOrgId} */ - 'org_id'?: DealOrganizationDataWithId; + 'org_id'?: DealAllOfOrgId | null; } diff --git a/src/versions/v1/models/deal-strict-all-of.ts b/src/versions/v1/models/deal-strict-all-of.ts index 84ebd817..ff63848a 100644 --- a/src/versions/v1/models/deal-strict-all-of.ts +++ b/src/versions/v1/models/deal-strict-all-of.ts @@ -39,11 +39,11 @@ export interface DealStrictAllOf { * The ID of the person associated with the deal * @type {number} */ - 'person_id'?: number; + 'person_id'?: number | null; /** * The ID of the organization associated with the deal * @type {number} */ - 'org_id'?: number; + 'org_id'?: number | null; } diff --git a/src/versions/v1/models/deal.ts b/src/versions/v1/models/deal.ts index add9a4f4..1997175d 100644 --- a/src/versions/v1/models/deal.ts +++ b/src/versions/v1/models/deal.ts @@ -24,10 +24,10 @@ import { DealAllOf } from './deal-all-of'; import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id'; // May contain unused imports in some cases // @ts-ignore -import { DealOrganizationDataWithId } from './deal-organization-data-with-id'; +import { DealAllOfOrgId } from './deal-all-of-org-id'; // May contain unused imports in some cases // @ts-ignore -import { DealPersonDataWithId } from './deal-person-data-with-id'; +import { DealAllOfPersonId } from './deal-all-of-person-id'; // May contain unused imports in some cases // @ts-ignore import { DealUserDataWithId } from './deal-user-data-with-id'; diff --git a/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealiddeal.ts b/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealiddeal.ts index 719ab553..59a590d2 100644 --- a/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealiddeal.ts +++ b/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealiddeal.ts @@ -44,12 +44,12 @@ export interface GetPersonProductsResponseAllOfDataInnerDEALIDDeal { * The ID of the person associated with the deal * @type {number} */ - 'person_id'?: number; + 'person_id'?: number | null; /** * The ID of the organization associated with the deal * @type {number} */ - 'org_id'?: number; + 'org_id'?: number | null; /** * The ID of the deal stage * @type {number} @@ -84,12 +84,12 @@ export interface GetPersonProductsResponseAllOfDataInnerDEALIDDeal { * 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} */ - 'stage_change_time'?: string; + 'stage_change_time'?: string | null; /** * Whether the deal is active or not * @type {boolean} @@ -114,12 +114,12 @@ export interface GetPersonProductsResponseAllOfDataInnerDEALIDDeal { * The date of the next activity associated with the deal * @type {string} */ - 'next_activity_date'?: string; + 'next_activity_date'?: string | null; /** * The time of the next activity associated with the deal * @type {string} */ - 'next_activity_time'?: string; + 'next_activity_time'?: string | null; /** * The ID of the next activity associated with the deal * @type {number} @@ -159,17 +159,17 @@ export interface GetPersonProductsResponseAllOfDataInnerDEALIDDeal { * The date and time of changing the deal status as won * @type {string} */ - 'won_time'?: string; + 'won_time'?: string | null; /** * The date and time of the first time changing the deal status as won * @type {string} */ - 'first_won_time'?: string; + 'first_won_time'?: string | null; /** * The date and time of changing the deal status as lost * @type {string} */ - 'lost_time'?: string; + 'lost_time'?: string | null; /** * The number of products associated with the deal * @type {number} @@ -219,21 +219,21 @@ export interface GetPersonProductsResponseAllOfDataInnerDEALIDDeal { * The expected close date of the deal * @type {string} */ - 'expected_close_date'?: string; + 'expected_close_date'?: string | null; /** * The date and time of the last incoming email associated with the deal * @type {string} */ - 'last_incoming_mail_time'?: string; + 'last_incoming_mail_time'?: string | null; /** * The date and time of the last outgoing email associated with the deal * @type {string} */ - 'last_outgoing_mail_time'?: string; + 'last_outgoing_mail_time'?: string | null; /** * The label or multiple labels assigned to the deal * @type {string} */ - 'label'?: string; + 'label'?: string | null; } diff --git a/src/versions/v1/models/index.ts b/src/versions/v1/models/index.ts index 8b75e89e..4b03088d 100644 --- a/src/versions/v1/models/index.ts +++ b/src/versions/v1/models/index.ts @@ -96,6 +96,8 @@ export * from './create-field-request-all-of1'; export * from './deal'; export * from './deal-all-of'; export * from './deal-all-of-creator-user-id'; +export * from './deal-all-of-org-id'; +export * from './deal-all-of-person-id'; export * from './deal-count-and-activity-info'; export * from './deal-count-and-activity-info-all-of'; export * from './deal-count-and-activity-info-all-of1'; @@ -438,6 +440,7 @@ export * from './merge-persons-response'; export * from './merge-persons-response-all-of'; export * from './note'; export * from './note-deal'; +export * from './note-deal-all-of'; export * from './note-organization'; export * from './note-person'; export * from './note-project'; diff --git a/src/versions/v1/models/note-deal-all-of.ts b/src/versions/v1/models/note-deal-all-of.ts new file mode 100644 index 00000000..e7845903 --- /dev/null +++ b/src/versions/v1/models/note-deal-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.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. + */ + + + +/** +* The deal this note is attached to +* @export +* @interface NoteDealAllOf +*/ +export interface NoteDealAllOf { + /** + * The title of the deal this note is attached to + * @type {string} + */ + 'title'?: string; +} + diff --git a/src/versions/v1/models/note-deal.ts b/src/versions/v1/models/note-deal.ts index e5cd2ce0..f43f60b3 100644 --- a/src/versions/v1/models/note-deal.ts +++ b/src/versions/v1/models/note-deal.ts @@ -13,17 +13,14 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { NoteDealAllOf } from './note-deal-all-of'; /** -* The deal this note is attached to -* @export -* @interface NoteDeal -*/ -export interface NoteDeal { - /** - * The title of the deal this note is attached to - * @type {string} - */ - 'title'?: string; -} + * @type NoteDeal + * @export + */ +export type NoteDeal = NoteDealAllOf; + diff --git a/src/versions/v1/models/note-user.ts b/src/versions/v1/models/note-user.ts index b92b381e..7b653521 100644 --- a/src/versions/v1/models/note-user.ts +++ b/src/versions/v1/models/note-user.ts @@ -29,7 +29,7 @@ export interface NoteUser { * The URL of the note creator avatar picture * @type {string} */ - 'icon_url'?: string; + 'icon_url'?: string | null; /** * Whether the note is created by you or not * @type {boolean} diff --git a/src/versions/v1/models/note.ts b/src/versions/v1/models/note.ts index 203e8f30..9f25079c 100644 --- a/src/versions/v1/models/note.ts +++ b/src/versions/v1/models/note.ts @@ -62,62 +62,62 @@ export interface Note { * * @type {NoteDeal} */ - 'deal'?: NoteDeal; + 'deal'?: NoteDeal | null; /** * The ID of the lead the note is attached to * @type {string} */ - 'lead_id'?: string; + 'lead_id'?: string | null; /** * The ID of the deal the note is attached to * @type {number} */ - 'deal_id'?: number; + 'deal_id'?: number | null; /** * The ID of the user who last updated the note * @type {number} */ - 'last_update_user_id'?: number; + 'last_update_user_id'?: number | null; /** * The ID of the organization the note is attached to * @type {number} */ - 'org_id'?: number; + 'org_id'?: number | null; /** * * @type {NoteOrganization} */ - 'organization'?: NoteOrganization; + 'organization'?: NoteOrganization | null; /** * * @type {NotePerson} */ - 'person'?: NotePerson; + 'person'?: NotePerson | null; /** * The ID of the person the note is attached to * @type {number} */ - 'person_id'?: number; + 'person_id'?: number | null; /** * The ID of the project the note is attached to * @type {number} */ - 'project_id'?: number; + 'project_id'?: number | null; /** * * @type {NoteProject} */ - 'project'?: NoteProject; + 'project'?: NoteProject | null; /** * The ID of the task the note is attached to * @type {number} */ - 'task_id'?: number; + 'task_id'?: number | null; /** * * @type {NoteTask} */ - 'task'?: NoteTask; + 'task'?: NoteTask | null; /** * If true, the results are filtered by note to deal pinning state * @type {boolean} diff --git a/src/versions/v2/models/add-deal-request.ts b/src/versions/v2/models/add-deal-request.ts index d5a610fc..5e1fb5b6 100644 --- a/src/versions/v2/models/add-deal-request.ts +++ b/src/versions/v2/models/add-deal-request.ts @@ -34,12 +34,12 @@ export interface AddDealRequest { * The ID of the person linked to the deal * @type {number} */ - 'person_id'?: number; + 'person_id'?: number | null; /** * The ID of the organization linked to the deal * @type {number} */ - 'org_id'?: number; + 'org_id'?: number | null; /** * The ID of the pipeline associated with the deal * @type {number} @@ -74,7 +74,7 @@ export interface AddDealRequest { * The optional date and time of archiving the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. If omitted and `is_archived` is true, it will be set to the current date and time. * @type {string} */ - 'archive_time'?: string; + 'archive_time'?: string | null; /** * The status of the deal * @type {string} @@ -84,12 +84,12 @@ export interface AddDealRequest { * The success probability percentage of the deal * @type {number} */ - 'probability'?: number | null; + 'probability'?: number; /** * The reason for losing the deal. Can only be set if deal status is lost. * @type {string} */ - 'lost_reason'?: string | null; + 'lost_reason'?: string; /** * The visibility of the deal * @type {number} @@ -99,7 +99,7 @@ export interface AddDealRequest { * The date and time of closing the deal. Can only be set if deal status is won or lost. * @type {string} */ - 'close_time'?: string | null; + 'close_time'?: string; /** * The date and time of changing the deal status as won. Can only be set if deal status is won. * @type {string} diff --git a/src/versions/v2/models/add-product-request.ts b/src/versions/v2/models/add-product-request.ts index afe04c7d..f96edd22 100644 --- a/src/versions/v2/models/add-product-request.ts +++ b/src/versions/v2/models/add-product-request.ts @@ -25,6 +25,9 @@ import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-re // May contain unused imports in some cases // @ts-ignore import { ProductRequest } from './product-request'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductRequestPricesInner } from './product-request-prices-inner'; /** * @type AddProductRequest diff --git a/src/versions/v2/models/add-stage-request.ts b/src/versions/v2/models/add-stage-request.ts index 745971a7..ed9d3b55 100644 --- a/src/versions/v2/models/add-stage-request.ts +++ b/src/versions/v2/models/add-stage-request.ts @@ -44,6 +44,6 @@ export interface AddStageRequest { * The number of days the deals not updated in this stage would become rotten. Applies only if the `is_deal_rot_enabled` is set. * @type {number} */ - 'days_to_rotten'?: number; + 'days_to_rotten'?: number | null; } diff --git a/src/versions/v2/models/deal.ts b/src/versions/v2/models/deal.ts index 24040fa4..7c29168e 100644 --- a/src/versions/v2/models/deal.ts +++ b/src/versions/v2/models/deal.ts @@ -39,12 +39,12 @@ export interface Deal { * The ID of the person linked to the deal * @type {number} */ - 'person_id'?: number; + 'person_id'?: number | null; /** * The ID of the organization linked to the deal * @type {number} */ - 'org_id'?: number; + 'org_id'?: number | null; /** * The ID of the pipeline associated with the deal * @type {number} @@ -79,7 +79,7 @@ export interface Deal { * The last updated date and time of the deal stage * @type {string} */ - 'stage_change_time'?: string; + 'stage_change_time'?: string | null; /** * Whether the deal is deleted or not * @type {boolean} @@ -119,17 +119,17 @@ export interface Deal { * The date and time of changing the deal status as won * @type {string} */ - 'won_time'?: string; + 'won_time'?: string | null; /** * The date and time of changing the deal status as lost * @type {string} */ - 'lost_time'?: string; + 'lost_time'?: string | null; /** * The expected close date of the deal * @type {string} */ - 'expected_close_date'?: string; + 'expected_close_date'?: string | null; /** * The IDs of labels assigned to the deal * @type {Array} diff --git a/src/versions/v2/models/index.ts b/src/versions/v2/models/index.ts index 2f59e781..ed20a801 100644 --- a/src/versions/v2/models/index.ts +++ b/src/versions/v2/models/index.ts @@ -258,7 +258,11 @@ export * from './person-item-im'; export * from './person-item-phone'; export * from './prices-array'; export * from './prices-array-prices-inner'; +export * from './prices-array-prices-inner-all-of'; +export * from './product-price-base'; export * from './product-request'; +export * from './product-request-prices-inner'; +export * from './product-request-prices-inner-all-of'; export * from './project'; export * from './project-template'; export * from './stage-item'; diff --git a/src/versions/v2/models/prices-array-prices-inner-all-of.ts b/src/versions/v2/models/prices-array-prices-inner-all-of.ts new file mode 100644 index 00000000..419b7165 --- /dev/null +++ b/src/versions/v2/models/prices-array-prices-inner-all-of.ts @@ -0,0 +1,44 @@ +/* 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. + */ + + + +/** +* +* @export +* @interface PricesArrayPricesInnerAllOf +*/ +export interface PricesArrayPricesInnerAllOf { + /** + * The ID of the product + * @type {number} + */ + 'product_id'?: number | null; + /** + * The currency of the price + * @type {string} + */ + 'currency'?: string | null; + /** + * The direct cost of the product + * @type {number} + */ + 'direct_cost'?: number | null; + /** + * The notes about the price + * @type {string} + */ + 'notes'?: string; +} + diff --git a/src/versions/v2/models/prices-array-prices-inner.ts b/src/versions/v2/models/prices-array-prices-inner.ts index 517e216e..54362e3e 100644 --- a/src/versions/v2/models/prices-array-prices-inner.ts +++ b/src/versions/v2/models/prices-array-prices-inner.ts @@ -13,42 +13,17 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { PricesArrayPricesInnerAllOf } from './prices-array-prices-inner-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductPriceBase } from './product-price-base'; /** -* -* @export -* @interface PricesArrayPricesInner -*/ -export interface PricesArrayPricesInner { - /** - * The ID of the product - * @type {number} - */ - 'product_id'?: number; - /** - * The price of the product - * @type {number} - */ - 'price'?: number; - /** - * The currency of the price - * @type {string} - */ - 'currency'?: string; - /** - * The cost of the product - * @type {number} - */ - 'cost'?: number; - /** - * The direct cost of the product - * @type {number} - */ - 'direct_cost'?: number | null; - /** - * The notes about the price - * @type {string} - */ - 'notes'?: string; -} + * @type PricesArrayPricesInner + * @export + */ +export type PricesArrayPricesInner = PricesArrayPricesInnerAllOf & ProductPriceBase; + diff --git a/src/versions/v2/models/product-price-base.ts b/src/versions/v2/models/product-price-base.ts new file mode 100644 index 00000000..2976a378 --- /dev/null +++ b/src/versions/v2/models/product-price-base.ts @@ -0,0 +1,34 @@ +/* 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. + */ + + + +/** +* +* @export +* @interface ProductPriceBase +*/ +export interface ProductPriceBase { + /** + * The price of the product + * @type {number} + */ + 'price'?: number; + /** + * The cost of the product + * @type {number} + */ + 'cost'?: number; +} + diff --git a/src/versions/v2/models/product-request-prices-inner-all-of.ts b/src/versions/v2/models/product-request-prices-inner-all-of.ts new file mode 100644 index 00000000..eae989b4 --- /dev/null +++ b/src/versions/v2/models/product-request-prices-inner-all-of.ts @@ -0,0 +1,39 @@ +/* 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. + */ + + + +/** +* +* @export +* @interface ProductRequestPricesInnerAllOf +*/ +export interface ProductRequestPricesInnerAllOf { + /** + * The currency of the price + * @type {string} + */ + 'currency': string; + /** + * The direct cost of the product + * @type {number} + */ + 'direct_cost'?: number; + /** + * The notes about the price + * @type {string} + */ + 'notes'?: string; +} + diff --git a/src/versions/v2/models/product-request-prices-inner.ts b/src/versions/v2/models/product-request-prices-inner.ts new file mode 100644 index 00000000..aaefd5df --- /dev/null +++ b/src/versions/v2/models/product-request-prices-inner.ts @@ -0,0 +1,29 @@ +/* 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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProductPriceBase } from './product-price-base'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductRequestPricesInnerAllOf } from './product-request-prices-inner-all-of'; + +/** + * @type ProductRequestPricesInner + * @export + */ +export type ProductRequestPricesInner = ProductPriceBase & ProductRequestPricesInnerAllOf; + + diff --git a/src/versions/v2/models/product-request.ts b/src/versions/v2/models/product-request.ts index dcd214a7..440e007a 100644 --- a/src/versions/v2/models/product-request.ts +++ b/src/versions/v2/models/product-request.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { ProductRequestPricesInner } from './product-request-prices-inner'; /** * @@ -61,10 +64,10 @@ export interface ProductRequest { */ 'visible_to'?: ProductRequestVisibleToConst; /** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `direct_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and the user\'s default currency will be assigned. - * @type {Array} + * The prices of the product in different currencies. Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and the user\'s default currency will be assigned. + * @type {Array} */ - 'prices'?: Array; + 'prices'?: Array; /** * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error. * @type {{ [key: string]: any | undefined; }} diff --git a/src/versions/v2/models/update-deal-request.ts b/src/versions/v2/models/update-deal-request.ts index f2251ac4..72992fdb 100644 --- a/src/versions/v2/models/update-deal-request.ts +++ b/src/versions/v2/models/update-deal-request.ts @@ -34,12 +34,12 @@ export interface UpdateDealRequest { * The ID of the person linked to the deal * @type {number} */ - 'person_id'?: number; + 'person_id'?: number | null; /** * The ID of the organization linked to the deal * @type {number} */ - 'org_id'?: number; + 'org_id'?: number | null; /** * The ID of the pipeline associated with the deal * @type {number} @@ -74,7 +74,7 @@ export interface UpdateDealRequest { * The optional date and time of archiving the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. If omitted and `is_archived` is true, it will be set to the current date and time. * @type {string} */ - 'archive_time'?: string; + 'archive_time'?: string | null; /** * The status of the deal * @type {string} @@ -84,12 +84,12 @@ export interface UpdateDealRequest { * The success probability percentage of the deal * @type {number} */ - 'probability'?: number | null; + 'probability'?: number; /** * The reason for losing the deal. Can only be set if deal status is lost. * @type {string} */ - 'lost_reason'?: string | null; + 'lost_reason'?: string; /** * The visibility of the deal * @type {number} @@ -99,7 +99,7 @@ export interface UpdateDealRequest { * The date and time of closing the deal. Can only be set if deal status is won or lost. * @type {string} */ - 'close_time'?: string | null; + 'close_time'?: string; /** * The date and time of changing the deal status as won. Can only be set if deal status is won. * @type {string} diff --git a/src/versions/v2/models/update-product-request.ts b/src/versions/v2/models/update-product-request.ts index 6754477c..04910271 100644 --- a/src/versions/v2/models/update-product-request.ts +++ b/src/versions/v2/models/update-product-request.ts @@ -21,6 +21,9 @@ import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-re import { ProductRequest } from './product-request'; // May contain unused imports in some cases // @ts-ignore +import { ProductRequestPricesInner } from './product-request-prices-inner'; +// May contain unused imports in some cases +// @ts-ignore import { UpdateProductRequestAllOf } from './update-product-request-all-of'; // May contain unused imports in some cases // @ts-ignore diff --git a/src/versions/v2/models/update-stage-request.ts b/src/versions/v2/models/update-stage-request.ts index 4ebc6254..3f7c035c 100644 --- a/src/versions/v2/models/update-stage-request.ts +++ b/src/versions/v2/models/update-stage-request.ts @@ -44,6 +44,6 @@ export interface UpdateStageRequest { * The number of days the deals not updated in this stage would become rotten. Applies only if the `is_deal_rot_enabled` is set. * @type {number} */ - 'days_to_rotten'?: number; + 'days_to_rotten'?: number | null; } From 093f9b33c3930385515dd29c3216f462dcea52cc Mon Sep 17 00:00:00 2001 From: Siiri Mangus Date: Tue, 8 Sep 2026 11:51:03 +0300 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68f739b7..ef1fb70b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +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 -- Added missing `nova` value to the `UserAccess.app` enum (`GET /v1/users`) — accounts with Nova enabled were returning `"app": "nova"` in `user_access` entries, causing generated SDKs to throw an error during response deserialization -- Added missing `partnership` and `nova` values to the `PermissionSetsItem.app` enum and the `app` query parameter enum (`GET /permissionSets`) — same class of error for accounts with a permission set for those apps +### Changed +- Updated Deals, Notes and Stages endpoints to document nullable fields. ## [33.6.1] - 2026-08-13 ### Fixed