Skip to content
Open
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pipedrive",
"version": "32.2.1",
"version": "32.2.2",
"description": "Pipedrive REST client for NodeJS",
"license": "MIT",
"homepage": "https://developers.pipedrive.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* 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 GetPersonsResponseAllOfDataInnerEmailsInner
*/
export interface GetPersonsResponseAllOfDataInnerEmailsInner {
/**
* The email address of the person
* @type {string}
*/
value?: string;
/**
* Whether the email is primary or not
* @type {boolean}
*/
primary?: boolean;
/**
* The email address classification label
* @type {string}
*/
label?: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* 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 GetPersonsResponseAllOfDataInnerImInner
*/
export interface GetPersonsResponseAllOfDataInnerImInner {
/**
* The instant messaging account of the person
* @type {string}
*/
value?: string;
/**
* Whether the instant messaging account is primary or not
* @type {boolean}
*/
primary?: boolean;
/**
* The instant messaging account classification label
* @type {string}
*/
label?: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* 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 GetPersonsResponseAllOfDataInnerPhonesInner
*/
export interface GetPersonsResponseAllOfDataInnerPhonesInner {
/**
* The phone number of the person
* @type {string}
*/
value?: string;
/**
* Whether the phone number is primary or not
* @type {boolean}
*/
primary?: boolean;
/**
* The phone number classification label
* @type {string}
*/
label?: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/**
* 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.
*/
/**
* Postal address of the person, included if contact sync is enabled for the company
* @export
* @interface GetPersonsResponseAllOfDataInnerPostalAddress
*/
export interface GetPersonsResponseAllOfDataInnerPostalAddress {
/**
* The full address of the person
* @type {string}
*/
value?: string;
/**
* Country of the person
* @type {string}
*/
country?: string;
/**
* Admin area level 1 (e.g. state) of the person
* @type {string}
*/
admin_area_level_1?: string;
/**
* Admin area level 2 (e.g. county) of the person
* @type {string}
*/
admin_area_level_2?: string;
/**
* Locality (e.g. city) of the person
* @type {string}
*/
locality?: string;
/**
* Sublocality (e.g. neighborhood) of the person
* @type {string}
*/
sublocality?: string;
/**
* Route (e.g. street) of the person
* @type {string}
*/
route?: string;
/**
* Street number of the person
* @type {string}
*/
street_number?: string;
/**
* Subpremise (e.g. apartment/suite number) of the person
* @type {string}
*/
subpremise?: string;
/**
* Postal code of the person
* @type {string}
*/
postal_code?: string;
}
36 changes: 17 additions & 19 deletions src/versions/v2/models/get-persons-response-all-of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,34 @@
* 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 { GetActivitiesResponseAllOfAdditionalData } from './get-activities-response-all-of-additional-data';
import { GetActivitiesResponseAllOfAdditionalData } from "./get-activities-response-all-of-additional-data";
// May contain unused imports in some cases
// @ts-ignore
import { OrganizationItem } from './organization-item';
import { Person } from "./person";

/**
*
* @export
* @interface GetPersonsResponseAllOf
*/
*
* @export
* @interface GetPersonsResponseAllOf
*/
export interface GetPersonsResponseAllOf {
/**
* Persons array
* @type {Array<OrganizationItem>}
*/
'data'?: Array<OrganizationItem>;
/**
*
* @type {GetActivitiesResponseAllOfAdditionalData}
*/
'additional_data'?: GetActivitiesResponseAllOfAdditionalData;
/**
* Persons array
* @type {Array<Person>}
*/
data?: Array<Person>;
/**
*
* @type {GetActivitiesResponseAllOfAdditionalData}
*/
additional_data?: GetActivitiesResponseAllOfAdditionalData;
}

117 changes: 117 additions & 0 deletions src/versions/v2/models/person.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/* tslint:disable */
/* eslint-disable */

import { GetPersonsResponseAllOfDataInnerEmailsInner } from "./get-persons-response-all-of-data-inner-emails-inner";
import { GetPersonsResponseAllOfDataInnerImInner } from "./get-persons-response-all-of-data-inner-im-inner";
import { GetPersonsResponseAllOfDataInnerPhonesInner } from "./get-persons-response-all-of-data-inner-phones-inner";
import { GetPersonsResponseAllOfDataInnerPostalAddress } from "./get-persons-response-all-of-data-inner-postal-address";

/**
*
* @export
* @interface Person
*/
export interface Person {
/**
* The ID of the person
* @type {number}
*/
id?: number;
/**
* The name of the person
* @type {string}
*/
name?: string;
/**
* The first name of the person
* @type {string}
*/
first_name?: string;
/**
* The last name of the person
* @type {string}
*/
last_name?: string;
/**
* The ID of the user who owns the person
* @type {number}
*/
owner_id?: number;
/**
* The ID of the organization linked to the person
* @type {number}
*/
org_id?: number;
/**
* The creation date and time of the person
* @type {string}
*/
add_time?: string;
/**
* The last updated date and time of the person
* @type {string}
*/
update_time?: string;
/**
* The emails of the person
* @type {Array<GetPersonsResponseAllOfDataInnerEmailsInner>}
*/
emails?: Array<GetPersonsResponseAllOfDataInnerEmailsInner>;
/**
* The phones of the person
* @type {Array<GetPersonsResponseAllOfDataInnerPhonesInner>}
*/
phones?: Array<GetPersonsResponseAllOfDataInnerPhonesInner>;
/**
* Whether the person is deleted or not
* @type {boolean}
*/
is_deleted?: boolean;
/**
* The visibility of the person
* @type {number}
*/
visible_to?: number;
/**
* The IDs of labels assigned to the person
* @type {Array<number>}
*/
label_ids?: Array<number>;
/**
* The ID of the picture associated with the person
* @type {number}
*/
picture_id?: number;
/**
*
* @type {GetPersonsResponseAllOfDataInnerPostalAddress}
*/
postal_address?: GetPersonsResponseAllOfDataInnerPostalAddress;
/**
* Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company
* @type {string}
*/
notes?: string;
/**
* The instant messaging accounts of the person, included if contact sync is enabled for the company
* @type {Array<GetPersonsResponseAllOfDataInnerImInner>}
*/
im?: Array<GetPersonsResponseAllOfDataInnerImInner>;
/**
* The birthday of the person, included if contact sync is enabled for the company
* @type {string}
*/
birthday?: string;
/**
* The job title of the person, included if contact sync is enabled for the company
* @type {string}
*/
job_title?: string;
/**
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes
* @type {{ [key: string]: any | undefined; }}
*/
custom_fields?: {
[key: string]: any | undefined;
};
}
24 changes: 11 additions & 13 deletions src/versions/v2/models/upsert-person-response-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,26 @@
* 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 { OrganizationItem } from './organization-item';
import { Person } from "./person";

/**
*
* @export
* @interface UpsertPersonResponseData
*/
*
* @export
* @interface UpsertPersonResponseData
*/
export interface UpsertPersonResponseData {
/**
*
* @type {OrganizationItem}
*/
'data'?: OrganizationItem;
/**
*
* @type {Person}
*/
data?: Person;
}

Loading