From 463e920b83f4975149b7f9a367120116bc5a6257 Mon Sep 17 00:00:00 2001 From: pipedrive-bot Date: Mon, 14 Sep 2026 08:19:03 +0000 Subject: [PATCH] Build 345 - version-minor --- CHANGELOG.md | 10 +++ src/versions/v1/api/legacy-teams-api.ts | 64 ++++++++-------- .../v1/models/deal-all-of-creator-user-id.ts | 4 +- ...ssociated-product-files-response-all-of.ts | 2 +- src/versions/v2/api/deal-installments-api.ts | 6 +- src/versions/v2/api/deals-api.ts | 6 +- src/versions/v2/api/persons-api.ts | 16 ++-- .../v2/models/activity-item-location.ts | 74 +++++++++++++++++++ src/versions/v2/models/activity-item.ts | 24 +++--- .../v2/models/add-activity-request.ts | 7 +- .../v2/models/add-organization-request.ts | 2 +- src/versions/v2/models/add-person-request.ts | 12 +-- src/versions/v2/models/deal.ts | 2 +- ...ivities-response-all-of-additional-data.ts | 2 +- ...h-response-all-of-data-items-inner-item.ts | 2 +- ...deals-products-response-additional-data.ts | 2 +- ...h-response-all-of-data-items-inner-item.ts | 2 +- ...h-response-all-of-data-items-inner-item.ts | 4 +- src/versions/v2/models/index.ts | 1 + .../v2/models/lead-search-item-item.ts | 2 +- .../v2/models/organization-item-address.ts | 18 ++--- src/versions/v2/models/organization-item.ts | 4 +- src/versions/v2/models/person-item-address.ts | 18 ++--- src/versions/v2/models/person.ts | 6 +- src/versions/v2/models/stage-item.ts | 2 +- src/versions/v2/models/stage-item1.ts | 2 +- .../v2/models/update-organization-request.ts | 2 +- .../v2/models/update-person-request.ts | 10 +-- 28 files changed, 193 insertions(+), 113 deletions(-) create mode 100644 src/versions/v2/models/activity-item-location.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index ff5ba862..ed85d79c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.7.0] - 2026-09-08 ### Added diff --git a/src/versions/v1/api/legacy-teams-api.ts b/src/versions/v1/api/legacy-teams-api.ts index c7bd6e2b..485d086d 100644 --- a/src/versions/v1/api/legacy-teams-api.ts +++ b/src/versions/v1/api/legacy-teams-api.ts @@ -47,7 +47,7 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu * Adds a new team to the company and returns the created object. * @summary Add a new team * @param {AddTeamRequest1} [AddTeamRequest1] - * @deprecated + * @throws {RequiredError} */ addTeam: async (AddTeamRequest1?: AddTeamRequest1, ): Promise => { @@ -89,7 +89,7 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu * @summary Add users to a team * @param {number} id The ID of the team * @param {AddTeamUserRequest} [AddTeamUserRequest] - * @deprecated + * @throws {RequiredError} */ addTeamUser: async (id: number, AddTeamUserRequest?: AddTeamUserRequest, ): Promise => { @@ -134,7 +134,7 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu * @summary Delete users from a team * @param {number} id The ID of the team * @param {DeleteTeamUserRequest} [DeleteTeamUserRequest] - * @deprecated + * @throws {RequiredError} */ deleteTeamUser: async (id: number, DeleteTeamUserRequest?: DeleteTeamUserRequest, ): Promise => { @@ -179,7 +179,7 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu * @summary Get a single team * @param {number} id The ID of the team * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users - * @deprecated + * @throws {RequiredError} */ getTeam: async (id: number, skip_users?: 0 | 1, ): Promise => { @@ -224,7 +224,7 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu * Returns a list of all user IDs within a team. * @summary Get all users in a team * @param {number} id The ID of the team - * @deprecated + * @throws {RequiredError} */ getTeamUsers: async (id: number, ): Promise => { @@ -266,7 +266,7 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu * @summary Get all teams * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users - * @deprecated + * @throws {RequiredError} */ getTeams: async (order_by?: 'id' | 'name' | 'manager_id' | 'active_flag', skip_users?: 0 | 1, ): Promise => { @@ -314,7 +314,7 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu * @param {number} id The ID of the user * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users - * @deprecated + * @throws {RequiredError} */ getUserTeams: async (id: number, order_by?: 'id' | 'name' | 'manager_id' | 'active_flag', skip_users?: 0 | 1, ): Promise => { @@ -364,7 +364,7 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu * @summary Update a team * @param {number} id The ID of the team * @param {UpdateTeamRequest} [UpdateTeamRequest] - * @deprecated + * @throws {RequiredError} */ updateTeam: async (id: number, UpdateTeamRequest?: UpdateTeamRequest, ): Promise => { @@ -419,7 +419,7 @@ export const LegacyTeamsApiFp = function(configuration?: Configuration) { * Adds a new team to the company and returns the created object. * @summary Add a new team * @param {AddTeamRequest1} [AddTeamRequest1] - * @deprecated + * @throws {RequiredError} */ async addTeam(AddTeamRequest1?: AddTeamRequest1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -431,7 +431,7 @@ export const LegacyTeamsApiFp = function(configuration?: Configuration) { * @summary Add users to a team * @param {number} id The ID of the team * @param {AddTeamUserRequest} [AddTeamUserRequest] - * @deprecated + * @throws {RequiredError} */ async addTeamUser(id: number, AddTeamUserRequest?: AddTeamUserRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -443,7 +443,7 @@ export const LegacyTeamsApiFp = function(configuration?: Configuration) { * @summary Delete users from a team * @param {number} id The ID of the team * @param {DeleteTeamUserRequest} [DeleteTeamUserRequest] - * @deprecated + * @throws {RequiredError} */ async deleteTeamUser(id: number, DeleteTeamUserRequest?: DeleteTeamUserRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -455,7 +455,7 @@ export const LegacyTeamsApiFp = function(configuration?: Configuration) { * @summary Get a single team * @param {number} id The ID of the team * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users - * @deprecated + * @throws {RequiredError} */ async getTeam(id: number, skip_users?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -466,7 +466,7 @@ export const LegacyTeamsApiFp = function(configuration?: Configuration) { * Returns a list of all user IDs within a team. * @summary Get all users in a team * @param {number} id The ID of the team - * @deprecated + * @throws {RequiredError} */ async getTeamUsers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -478,7 +478,7 @@ export const LegacyTeamsApiFp = function(configuration?: Configuration) { * @summary Get all teams * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users - * @deprecated + * @throws {RequiredError} */ async getTeams(order_by?: 'id' | 'name' | 'manager_id' | 'active_flag', skip_users?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -491,7 +491,7 @@ export const LegacyTeamsApiFp = function(configuration?: Configuration) { * @param {number} id The ID of the user * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users - * @deprecated + * @throws {RequiredError} */ async getUserTeams(id: number, order_by?: 'id' | 'name' | 'manager_id' | 'active_flag', skip_users?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -503,7 +503,7 @@ export const LegacyTeamsApiFp = function(configuration?: Configuration) { * @summary Update a team * @param {number} id The ID of the team * @param {UpdateTeamRequest} [UpdateTeamRequest] - * @deprecated + * @throws {RequiredError} */ async updateTeam(id: number, UpdateTeamRequest?: UpdateTeamRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -524,7 +524,7 @@ export const LegacyTeamsApiFactory = function (configuration?: Configuration, ba * Adds a new team to the company and returns the created object. * @summary Add a new team * @param {LegacyTeamsApiAddTeamRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} */ addTeam(requestParameters: LegacyTeamsApiAddTeamRequest = {}, ): Promise { @@ -534,7 +534,7 @@ export const LegacyTeamsApiFactory = function (configuration?: Configuration, ba * Adds users to an existing team. * @summary Add users to a team * @param {LegacyTeamsApiAddTeamUserRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} */ addTeamUser(requestParameters: LegacyTeamsApiAddTeamUserRequest, ): Promise { @@ -544,7 +544,7 @@ export const LegacyTeamsApiFactory = function (configuration?: Configuration, ba * Deletes users from an existing team. * @summary Delete users from a team * @param {LegacyTeamsApiDeleteTeamUserRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} */ deleteTeamUser(requestParameters: LegacyTeamsApiDeleteTeamUserRequest, ): Promise { @@ -554,7 +554,7 @@ export const LegacyTeamsApiFactory = function (configuration?: Configuration, ba * Returns data about a specific team. * @summary Get a single team * @param {LegacyTeamsApiGetTeamRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} */ getTeam(requestParameters: LegacyTeamsApiGetTeamRequest, ): Promise { @@ -564,7 +564,7 @@ export const LegacyTeamsApiFactory = function (configuration?: Configuration, ba * Returns a list of all user IDs within a team. * @summary Get all users in a team * @param {LegacyTeamsApiGetTeamUsersRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} */ getTeamUsers(requestParameters: LegacyTeamsApiGetTeamUsersRequest, ): Promise { @@ -574,7 +574,7 @@ export const LegacyTeamsApiFactory = function (configuration?: Configuration, ba * Returns data about teams within the company. * @summary Get all teams * @param {LegacyTeamsApiGetTeamsRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} */ getTeams(requestParameters: LegacyTeamsApiGetTeamsRequest = {}, ): Promise { @@ -584,7 +584,7 @@ export const LegacyTeamsApiFactory = function (configuration?: Configuration, ba * Returns data about all teams which have the specified user as a member. * @summary Get all teams of a user * @param {LegacyTeamsApiGetUserTeamsRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} */ getUserTeams(requestParameters: LegacyTeamsApiGetUserTeamsRequest, ): Promise { @@ -594,7 +594,7 @@ export const LegacyTeamsApiFactory = function (configuration?: Configuration, ba * Updates an existing team and returns the updated object. * @summary Update a team * @param {LegacyTeamsApiUpdateTeamRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} */ updateTeam(requestParameters: LegacyTeamsApiUpdateTeamRequest, ): Promise { @@ -775,7 +775,7 @@ export class LegacyTeamsApi extends BaseAPI { * Adds a new team to the company and returns the created object. * @summary Add a new team * @param {LegacyTeamsApiAddTeamRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} * @memberof LegacyTeamsApi */ @@ -787,7 +787,7 @@ export class LegacyTeamsApi extends BaseAPI { * Adds users to an existing team. * @summary Add users to a team * @param {LegacyTeamsApiAddTeamUserRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} * @memberof LegacyTeamsApi */ @@ -799,7 +799,7 @@ export class LegacyTeamsApi extends BaseAPI { * Deletes users from an existing team. * @summary Delete users from a team * @param {LegacyTeamsApiDeleteTeamUserRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} * @memberof LegacyTeamsApi */ @@ -811,7 +811,7 @@ export class LegacyTeamsApi extends BaseAPI { * Returns data about a specific team. * @summary Get a single team * @param {LegacyTeamsApiGetTeamRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} * @memberof LegacyTeamsApi */ @@ -823,7 +823,7 @@ export class LegacyTeamsApi extends BaseAPI { * Returns a list of all user IDs within a team. * @summary Get all users in a team * @param {LegacyTeamsApiGetTeamUsersRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} * @memberof LegacyTeamsApi */ @@ -835,7 +835,7 @@ export class LegacyTeamsApi extends BaseAPI { * Returns data about teams within the company. * @summary Get all teams * @param {LegacyTeamsApiGetTeamsRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} * @memberof LegacyTeamsApi */ @@ -847,7 +847,7 @@ export class LegacyTeamsApi extends BaseAPI { * Returns data about all teams which have the specified user as a member. * @summary Get all teams of a user * @param {LegacyTeamsApiGetUserTeamsRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} * @memberof LegacyTeamsApi */ @@ -859,7 +859,7 @@ export class LegacyTeamsApi extends BaseAPI { * Updates an existing team and returns the updated object. * @summary Update a team * @param {LegacyTeamsApiUpdateTeamRequest} requestParameters Request parameters. - * @deprecated + * @throws {RequiredError} * @memberof LegacyTeamsApi */ diff --git a/src/versions/v1/models/deal-all-of-creator-user-id.ts b/src/versions/v1/models/deal-all-of-creator-user-id.ts index dd8d7af7..adb18a6f 100644 --- a/src/versions/v1/models/deal-all-of-creator-user-id.ts +++ b/src/versions/v1/models/deal-all-of-creator-user-id.ts @@ -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} diff --git a/src/versions/v1/models/get-associated-product-files-response-all-of.ts b/src/versions/v1/models/get-associated-product-files-response-all-of.ts index 903d1c9f..4648f8b4 100644 --- a/src/versions/v1/models/get-associated-product-files-response-all-of.ts +++ b/src/versions/v1/models/get-associated-product-files-response-all-of.ts @@ -30,7 +30,7 @@ export interface GetAssociatedProductFilesResponseAllOf { * The array of files * @type {Array} */ - 'data': Array; + 'data': Array | null; /** * * @type {GetFieldsResponseAllOfAdditionalData} diff --git a/src/versions/v2/api/deal-installments-api.ts b/src/versions/v2/api/deal-installments-api.ts index 2d6137a3..28405dbf 100644 --- a/src/versions/v2/api/deal-installments-api.ts +++ b/src/versions/v2/api/deal-installments-api.ts @@ -71,7 +71,7 @@ export const DealInstallmentsApiAxiosParamCreator = function (configuration?: Co // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) @@ -177,7 +177,7 @@ export const DealInstallmentsApiAxiosParamCreator = function (configuration?: Co // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) @@ -226,7 +226,7 @@ export const DealInstallmentsApiAxiosParamCreator = function (configuration?: Co // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) diff --git a/src/versions/v2/api/deals-api.ts b/src/versions/v2/api/deals-api.ts index d7a4c191..7e2f7139 100644 --- a/src/versions/v2/api/deals-api.ts +++ b/src/versions/v2/api/deals-api.ts @@ -226,7 +226,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) @@ -847,7 +847,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) @@ -980,7 +980,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration // authentication oauth2 required // oauth required - await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) diff --git a/src/versions/v2/api/persons-api.ts b/src/versions/v2/api/persons-api.ts index f6520679..44d34ce8 100644 --- a/src/versions/v2/api/persons-api.ts +++ b/src/versions/v2/api/persons-api.ts @@ -52,7 +52,7 @@ import { UpsertPersonResponse } from '../models'; export const PersonsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * Adds a new person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don’t exist by default in Pipedrive and are only created when you set up your contact sync. + * Adds a new person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. * @summary Add a new person * @param {AddPersonRequest} [AddPersonRequest] @@ -614,7 +614,7 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * Updates the properties of a person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don’t exist by default in Pipedrive and are only created when you set up your contact sync. + * Updates the properties of a person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. * @summary Update a person * @param {number} id The ID of the person * @param {UpdatePersonRequest} [UpdatePersonRequest] @@ -670,7 +670,7 @@ export const PersonsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration) return { /** - * Adds a new person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don’t exist by default in Pipedrive and are only created when you set up your contact sync. + * Adds a new person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. * @summary Add a new person * @param {AddPersonRequest} [AddPersonRequest] @@ -810,7 +810,7 @@ export const PersonsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Updates the properties of a person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don’t exist by default in Pipedrive and are only created when you set up your contact sync. + * Updates the properties of a person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. * @summary Update a person * @param {number} id The ID of the person * @param {UpdatePersonRequest} [UpdatePersonRequest] @@ -832,7 +832,7 @@ export const PersonsApiFactory = function (configuration?: Configuration, basePa const localVarFp = PersonsApiFp(configuration) return { /** - * Adds a new person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don’t exist by default in Pipedrive and are only created when you set up your contact sync. + * Adds a new person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. * @summary Add a new person * @param {PersonsApiAddPersonRequest} requestParameters Request parameters. @@ -932,7 +932,7 @@ export const PersonsApiFactory = function (configuration?: Configuration, basePa return localVarFp.searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); }, /** - * Updates the properties of a person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don’t exist by default in Pipedrive and are only created when you set up your contact sync. + * Updates the properties of a person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. * @summary Update a person * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters. @@ -1323,7 +1323,7 @@ export interface PersonsApiUpdatePersonRequest { */ export class PersonsApi extends BaseAPI { /** - * Adds a new person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don’t exist by default in Pipedrive and are only created when you set up your contact sync. + * Adds a new person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. * @summary Add a new person * @param {PersonsApiAddPersonRequest} requestParameters Request parameters. @@ -1443,7 +1443,7 @@ export class PersonsApi extends BaseAPI { } /** - * Updates the properties of a person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don’t exist by default in Pipedrive and are only created when you set up your contact sync. + * Updates the properties of a person.
If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403. * @summary Update a person * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters. diff --git a/src/versions/v2/models/activity-item-location.ts b/src/versions/v2/models/activity-item-location.ts new file mode 100644 index 00000000..d68e00bb --- /dev/null +++ b/src/versions/v2/models/activity-item-location.ts @@ -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; +} + diff --git a/src/versions/v2/models/activity-item.ts b/src/versions/v2/models/activity-item.ts index 1cfea13b..edfae524 100644 --- a/src/versions/v2/models/activity-item.ts +++ b/src/versions/v2/models/activity-item.ts @@ -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'; @@ -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} @@ -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} @@ -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} diff --git a/src/versions/v2/models/add-activity-request.ts b/src/versions/v2/models/add-activity-request.ts index 80a74bf1..76ac0ec0 100644 --- a/src/versions/v2/models/add-activity-request.ts +++ b/src/versions/v2/models/add-activity-request.ts @@ -55,11 +55,6 @@ export interface AddActivityRequest { */ 'lead_id'?: string; /** - * The ID of the person linked to the activity - * @type {number} - */ - 'person_id'?: number; - /** * The ID of the organization linked to the activity * @type {number} */ @@ -100,7 +95,7 @@ export interface AddActivityRequest { */ 'location'?: AddActivityRequestLocation; /** - * The participants of the activity + * The participants of the activity. Use this to set the activity\'s person — a primary participant (`primary: true`) sets `person_id` on the activity. * @type {Array} */ 'participants'?: Array; diff --git a/src/versions/v2/models/add-organization-request.ts b/src/versions/v2/models/add-organization-request.ts index 645b1a82..c1aeda37 100644 --- a/src/versions/v2/models/add-organization-request.ts +++ b/src/versions/v2/models/add-organization-request.ts @@ -52,7 +52,7 @@ export interface AddOrganizationRequest { * * @type {OrganizationItemAddress} */ - 'address'?: OrganizationItemAddress; + 'address'?: OrganizationItemAddress | null; /** * The website of the organization * @type {string} diff --git a/src/versions/v2/models/add-person-request.ts b/src/versions/v2/models/add-person-request.ts index 4a7afe63..c73a12c3 100644 --- a/src/versions/v2/models/add-person-request.ts +++ b/src/versions/v2/models/add-person-request.ts @@ -36,7 +36,7 @@ export interface AddPersonRequest { * The name of the person * @type {string} */ - 'name'?: string; + 'name': string; /** * The ID of the user who owns the person * @type {number} @@ -76,24 +76,24 @@ export interface AddPersonRequest { * * @type {PersonItemAddress} */ - 'postal_address'?: PersonItemAddress; + 'postal_address'?: PersonItemAddress | null; /** - * Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company + * 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} */ 'notes'?: string; /** - * The instant messaging accounts of the person, included if contact sync is enabled for the company + * The instant messaging accounts of the person. Only accepted when contact sync is enabled for the company; otherwise the request returns 403. * @type {Array} */ 'im'?: Array; /** - * The birthday of the person, included if contact sync is enabled for the company + * The birthday of the person. Only accepted when contact sync is enabled for the company; otherwise the request returns 403. * @type {string} */ 'birthday'?: string; /** - * The job title of the person, included if contact sync is enabled for the company + * The job title of the person. Only accepted when contact sync is enabled for the company; otherwise the request returns 403. * @type {string} */ 'job_title'?: string; diff --git a/src/versions/v2/models/deal.ts b/src/versions/v2/models/deal.ts index 7c29168e..6db41fdf 100644 --- a/src/versions/v2/models/deal.ts +++ b/src/versions/v2/models/deal.ts @@ -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} diff --git a/src/versions/v2/models/get-activities-response-all-of-additional-data.ts b/src/versions/v2/models/get-activities-response-all-of-additional-data.ts index 288283ec..0351b8bf 100644 --- a/src/versions/v2/models/get-activities-response-all-of-additional-data.ts +++ b/src/versions/v2/models/get-activities-response-all-of-additional-data.ts @@ -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; } diff --git a/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.ts b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.ts index 7141cbfa..bfba5997 100644 --- a/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.ts +++ b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.ts @@ -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} diff --git a/src/versions/v2/models/get-deals-products-response-additional-data.ts b/src/versions/v2/models/get-deals-products-response-additional-data.ts index 19baca9b..9bd23bd7 100644 --- a/src/versions/v2/models/get-deals-products-response-additional-data.ts +++ b/src/versions/v2/models/get-deals-products-response-additional-data.ts @@ -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; } diff --git a/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.ts b/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.ts index 34379150..f5545cc7 100644 --- a/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.ts +++ b/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.ts @@ -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} diff --git a/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.ts b/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.ts index ec96c6e4..09efb3e5 100644 --- a/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.ts +++ b/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.ts @@ -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} diff --git a/src/versions/v2/models/index.ts b/src/versions/v2/models/index.ts index ed20a801..8fbdfbd7 100644 --- a/src/versions/v2/models/index.ts +++ b/src/versions/v2/models/index.ts @@ -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'; diff --git a/src/versions/v2/models/lead-search-item-item.ts b/src/versions/v2/models/lead-search-item-item.ts index 257dacc0..519215e7 100644 --- a/src/versions/v2/models/lead-search-item-item.ts +++ b/src/versions/v2/models/lead-search-item-item.ts @@ -53,7 +53,7 @@ export interface LeadSearchItemItem { * * @type {LeadSearchItemItemPerson} */ - 'person'?: LeadSearchItemItemPerson; + 'person'?: LeadSearchItemItemPerson | null; /** * * @type {LeadSearchItemItemOrganization} diff --git a/src/versions/v2/models/organization-item-address.ts b/src/versions/v2/models/organization-item-address.ts index efbc42b1..babed9dc 100644 --- a/src/versions/v2/models/organization-item-address.ts +++ b/src/versions/v2/models/organization-item-address.ts @@ -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; } diff --git a/src/versions/v2/models/organization-item.ts b/src/versions/v2/models/organization-item.ts index 64059c77..12fb858c 100644 --- a/src/versions/v2/models/organization-item.ts +++ b/src/versions/v2/models/organization-item.ts @@ -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} @@ -62,7 +62,7 @@ export interface OrganizationItem { * * @type {OrganizationItemAddress} */ - 'address'?: OrganizationItemAddress; + 'address'?: OrganizationItemAddress | null; /** * The IDs of labels assigned to the organization * @type {Array} diff --git a/src/versions/v2/models/person-item-address.ts b/src/versions/v2/models/person-item-address.ts index 7417be7b..bff40de1 100644 --- a/src/versions/v2/models/person-item-address.ts +++ b/src/versions/v2/models/person-item-address.ts @@ -29,46 +29,46 @@ export interface PersonItemAddress { * Country of the person * @type {string} */ - 'country'?: string; + 'country'?: string | null; /** * Admin area level 1 (e.g. state) of the person * @type {string} */ - 'admin_area_level_1'?: string; + 'admin_area_level_1'?: string | null; /** * Admin area level 2 (e.g. county) of the person * @type {string} */ - 'admin_area_level_2'?: string; + 'admin_area_level_2'?: string | null; /** * Locality (e.g. city) of the person * @type {string} */ - 'locality'?: string; + 'locality'?: string | null; /** * Sublocality (e.g. neighborhood) of the person * @type {string} */ - 'sublocality'?: string; + 'sublocality'?: string | null; /** * Route (e.g. street) of the person * @type {string} */ - 'route'?: string; + 'route'?: string | null; /** * Street number of the person * @type {string} */ - 'street_number'?: string; + 'street_number'?: string | null; /** * Subpremise (e.g. apartment/suite number) of the person * @type {string} */ - 'subpremise'?: string; + 'subpremise'?: string | null; /** * Postal code of the person * @type {string} */ - 'postal_code'?: string; + 'postal_code'?: string | null; } diff --git a/src/versions/v2/models/person.ts b/src/versions/v2/models/person.ts index 0fe033f2..aa9e0283 100644 --- a/src/versions/v2/models/person.ts +++ b/src/versions/v2/models/person.ts @@ -71,7 +71,7 @@ export interface Person { * The last updated date and time of the person * @type {string} */ - 'update_time'?: string; + 'update_time'?: string | null; /** * The emails of the person * @type {Array} @@ -101,12 +101,12 @@ export interface Person { * The ID of the picture associated with the person * @type {number} */ - 'picture_id'?: number; + 'picture_id'?: number | null; /** * * @type {PersonItemAddress} */ - 'postal_address'?: PersonItemAddress; + 'postal_address'?: PersonItemAddress | null; /** * Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company * @type {string} diff --git a/src/versions/v2/models/stage-item.ts b/src/versions/v2/models/stage-item.ts index c58eef1c..2b37d5c7 100644 --- a/src/versions/v2/models/stage-item.ts +++ b/src/versions/v2/models/stage-item.ts @@ -69,6 +69,6 @@ export interface StageItem { * The stage update time * @type {string} */ - 'update_time'?: string; + 'update_time'?: string | null; } diff --git a/src/versions/v2/models/stage-item1.ts b/src/versions/v2/models/stage-item1.ts index 2e5f7d1b..ffe8faca 100644 --- a/src/versions/v2/models/stage-item1.ts +++ b/src/versions/v2/models/stage-item1.ts @@ -69,6 +69,6 @@ export interface StageItem1 { * The stage update time * @type {string} */ - 'update_time'?: string; + 'update_time'?: string | null; } diff --git a/src/versions/v2/models/update-organization-request.ts b/src/versions/v2/models/update-organization-request.ts index 6ed190b0..cbe0df42 100644 --- a/src/versions/v2/models/update-organization-request.ts +++ b/src/versions/v2/models/update-organization-request.ts @@ -47,7 +47,7 @@ export interface UpdateOrganizationRequest { * * @type {OrganizationItemAddress} */ - 'address'?: OrganizationItemAddress; + 'address'?: OrganizationItemAddress | null; /** * The website of the organization * @type {string} diff --git a/src/versions/v2/models/update-person-request.ts b/src/versions/v2/models/update-person-request.ts index 80ea5643..001dc207 100644 --- a/src/versions/v2/models/update-person-request.ts +++ b/src/versions/v2/models/update-person-request.ts @@ -71,24 +71,24 @@ export interface UpdatePersonRequest { * * @type {PersonItemAddress} */ - 'postal_address'?: PersonItemAddress; + 'postal_address'?: PersonItemAddress | null; /** - * Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company + * 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} */ 'notes'?: string; /** - * The instant messaging accounts of the person, included if contact sync is enabled for the company + * The instant messaging accounts of the person. Only accepted when contact sync is enabled for the company; otherwise the request returns 403. * @type {Array} */ 'im'?: Array; /** - * The birthday of the person, included if contact sync is enabled for the company + * The birthday of the person. Only accepted when contact sync is enabled for the company; otherwise the request returns 403. * @type {string} */ 'birthday'?: string; /** - * The job title of the person, included if contact sync is enabled for the company + * The job title of the person. Only accepted when contact sync is enabled for the company; otherwise the request returns 403. * @type {string} */ 'job_title'?: string;