pipedrive 33.4.3 → 33.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/versions/v1/api/deals-api.d.ts +10 -2
- package/dist/esm/versions/v1/api/deals-api.js +10 -5
- package/dist/esm/versions/v1/api/organizations-api.d.ts +10 -2
- package/dist/esm/versions/v1/api/organizations-api.js +10 -5
- package/dist/esm/versions/v1/api/persons-api.d.ts +10 -2
- package/dist/esm/versions/v1/api/persons-api.js +10 -5
- package/dist/esm/versions/v1/common.d.ts +1 -1
- package/dist/esm/versions/v1/common.js +2 -0
- package/dist/esm/versions/v1/models/mail-message-data.d.ts +5 -0
- package/dist/esm/versions/v2/api/persons-api.d.ts +15 -14
- package/dist/esm/versions/v2/api/persons-api.js +16 -16
- package/dist/esm/versions/v2/common.d.ts +1 -1
- package/dist/esm/versions/v2/common.js +2 -0
- package/dist/esm/versions/v2/models/add-organization-request.d.ts +26 -6
- package/dist/esm/versions/v2/models/add-person-request.d.ts +33 -11
- package/dist/esm/versions/v2/models/index.d.ts +5 -4
- package/dist/esm/versions/v2/models/index.js +5 -4
- package/dist/esm/versions/v2/models/{person-postal-address.d.ts → person-item-address.d.ts} +2 -2
- package/dist/esm/versions/v2/models/{add-person-request-emails-inner.d.ts → person-item-email.d.ts} +2 -2
- package/dist/{versions/v2/models/person-im-inner.d.ts → esm/versions/v2/models/person-item-im.d.ts} +2 -2
- package/dist/{versions/v2/models/add-person-request-phones-inner.d.ts → esm/versions/v2/models/person-item-phone.d.ts} +2 -2
- package/dist/esm/versions/v2/models/person.d.ts +12 -12
- package/dist/esm/versions/v2/models/update-organization-request.d.ts +25 -10
- package/dist/esm/versions/v2/models/update-person-request.d.ts +101 -0
- package/dist/esm/versions/v2/models/update-person-request.js +19 -0
- package/dist/versions/v1/api/deals-api.d.ts +10 -2
- package/dist/versions/v1/api/deals-api.js +10 -5
- package/dist/versions/v1/api/organizations-api.d.ts +10 -2
- package/dist/versions/v1/api/organizations-api.js +10 -5
- package/dist/versions/v1/api/persons-api.d.ts +10 -2
- package/dist/versions/v1/api/persons-api.js +10 -5
- package/dist/versions/v1/common.d.ts +1 -1
- package/dist/versions/v1/common.js +2 -0
- package/dist/versions/v1/models/mail-message-data.d.ts +5 -0
- package/dist/versions/v2/api/persons-api.d.ts +15 -14
- package/dist/versions/v2/api/persons-api.js +16 -16
- package/dist/versions/v2/common.d.ts +1 -1
- package/dist/versions/v2/common.js +2 -0
- package/dist/versions/v2/models/add-organization-request.d.ts +26 -6
- package/dist/versions/v2/models/add-person-request.d.ts +33 -11
- package/dist/versions/v2/models/index.d.ts +5 -4
- package/dist/versions/v2/models/index.js +5 -4
- package/dist/versions/v2/models/{person-postal-address.d.ts → person-item-address.d.ts} +2 -2
- package/dist/versions/v2/models/{add-person-request-emails-inner.d.ts → person-item-email.d.ts} +2 -2
- package/dist/{esm/versions/v2/models/person-im-inner.d.ts → versions/v2/models/person-item-im.d.ts} +2 -2
- package/dist/{esm/versions/v2/models/add-person-request-phones-inner.d.ts → versions/v2/models/person-item-phone.d.ts} +2 -2
- package/dist/versions/v2/models/person.d.ts +12 -12
- package/dist/versions/v2/models/update-organization-request.d.ts +25 -10
- package/dist/versions/v2/models/update-person-request.d.ts +101 -0
- package/dist/versions/v2/models/update-person-request.js +22 -0
- package/package.json +1 -1
- /package/dist/esm/versions/v2/models/{add-person-request-emails-inner.js → person-item-address.js} +0 -0
- /package/dist/esm/versions/v2/models/{add-person-request-phones-inner.js → person-item-email.js} +0 -0
- /package/dist/esm/versions/v2/models/{person-im-inner.js → person-item-im.js} +0 -0
- /package/dist/esm/versions/v2/models/{person-postal-address.js → person-item-phone.js} +0 -0
- /package/dist/versions/v2/models/{add-person-request-emails-inner.js → person-item-address.js} +0 -0
- /package/dist/versions/v2/models/{add-person-request-phones-inner.js → person-item-email.js} +0 -0
- /package/dist/versions/v2/models/{person-im-inner.js → person-item-im.js} +0 -0
- /package/dist/versions/v2/models/{person-postal-address.js → person-item-phone.js} +0 -0
|
@@ -27,16 +27,6 @@ export interface UpdateOrganizationRequest {
|
|
|
27
27
|
*/
|
|
28
28
|
'owner_id'?: number;
|
|
29
29
|
/**
|
|
30
|
-
* The creation date and time of the organization
|
|
31
|
-
* @type {string}
|
|
32
|
-
*/
|
|
33
|
-
'add_time'?: string;
|
|
34
|
-
/**
|
|
35
|
-
* The last updated date and time of the organization
|
|
36
|
-
* @type {string}
|
|
37
|
-
*/
|
|
38
|
-
'update_time'?: string;
|
|
39
|
-
/**
|
|
40
30
|
* The visibility of the organization
|
|
41
31
|
* @type {number}
|
|
42
32
|
*/
|
|
@@ -52,6 +42,31 @@ export interface UpdateOrganizationRequest {
|
|
|
52
42
|
*/
|
|
53
43
|
'address'?: OrganizationItemAddress;
|
|
54
44
|
/**
|
|
45
|
+
* The website of the organization
|
|
46
|
+
* @type {string}
|
|
47
|
+
*/
|
|
48
|
+
'website'?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The LinkedIn profile URL of the organization
|
|
51
|
+
* @type {string}
|
|
52
|
+
*/
|
|
53
|
+
'linkedin'?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The industry the organization belongs to
|
|
56
|
+
* @type {number}
|
|
57
|
+
*/
|
|
58
|
+
'industry'?: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* The annual revenue of the organization
|
|
61
|
+
* @type {number}
|
|
62
|
+
*/
|
|
63
|
+
'annual_revenue'?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
* The number of employees in the organization
|
|
66
|
+
* @type {number}
|
|
67
|
+
*/
|
|
68
|
+
'employee_count'?: number | null;
|
|
69
|
+
/**
|
|
55
70
|
* 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.
|
|
56
71
|
* @type {{ [key: string]: any | undefined; }}
|
|
57
72
|
*/
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { PersonItemAddress } from './person-item-address';
|
|
13
|
+
import { PersonItemEmail } from './person-item-email';
|
|
14
|
+
import { PersonItemIm } from './person-item-im';
|
|
15
|
+
import { PersonItemPhone } from './person-item-phone';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdatePersonRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdatePersonRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The name of the person
|
|
24
|
+
* @type {string}
|
|
25
|
+
*/
|
|
26
|
+
'name'?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The ID of the user who owns the person
|
|
29
|
+
* @type {number}
|
|
30
|
+
*/
|
|
31
|
+
'owner_id'?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the organization linked to the person
|
|
34
|
+
* @type {number}
|
|
35
|
+
*/
|
|
36
|
+
'org_id'?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The emails of the person
|
|
39
|
+
* @type {Array<PersonItemEmail>}
|
|
40
|
+
*/
|
|
41
|
+
'emails'?: Array<PersonItemEmail>;
|
|
42
|
+
/**
|
|
43
|
+
* The phones of the person
|
|
44
|
+
* @type {Array<PersonItemPhone>}
|
|
45
|
+
*/
|
|
46
|
+
'phones'?: Array<PersonItemPhone>;
|
|
47
|
+
/**
|
|
48
|
+
* The visibility of the person
|
|
49
|
+
* @type {number}
|
|
50
|
+
*/
|
|
51
|
+
'visible_to'?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The IDs of labels assigned to the person
|
|
54
|
+
* @type {Array<number>}
|
|
55
|
+
*/
|
|
56
|
+
'label_ids'?: Array<number>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {PersonItemAddress}
|
|
60
|
+
*/
|
|
61
|
+
'postal_address'?: PersonItemAddress;
|
|
62
|
+
/**
|
|
63
|
+
* Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company
|
|
64
|
+
* @type {string}
|
|
65
|
+
*/
|
|
66
|
+
'notes'?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The instant messaging accounts of the person, included if contact sync is enabled for the company
|
|
69
|
+
* @type {Array<PersonItemIm>}
|
|
70
|
+
*/
|
|
71
|
+
'im'?: Array<PersonItemIm>;
|
|
72
|
+
/**
|
|
73
|
+
* The birthday of the person, included if contact sync is enabled for the company
|
|
74
|
+
* @type {string}
|
|
75
|
+
*/
|
|
76
|
+
'birthday'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The job title of the person, included if contact sync is enabled for the company
|
|
79
|
+
* @type {string}
|
|
80
|
+
*/
|
|
81
|
+
'job_title'?: string;
|
|
82
|
+
/**
|
|
83
|
+
* If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table>
|
|
84
|
+
* @type {string}
|
|
85
|
+
*/
|
|
86
|
+
'marketing_status'?: UpdatePersonRequestMarketingStatusConst;
|
|
87
|
+
/**
|
|
88
|
+
* 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.
|
|
89
|
+
* @type {{ [key: string]: any | undefined; }}
|
|
90
|
+
*/
|
|
91
|
+
'custom_fields'?: {
|
|
92
|
+
[key: string]: any | undefined;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export declare const UpdatePersonRequestMarketingStatusConst: {
|
|
96
|
+
readonly no_consent: "no_consent";
|
|
97
|
+
readonly unsubscribed: "unsubscribed";
|
|
98
|
+
readonly subscribed: "subscribed";
|
|
99
|
+
readonly archived: "archived";
|
|
100
|
+
};
|
|
101
|
+
export type UpdatePersonRequestMarketingStatusConst = typeof UpdatePersonRequestMarketingStatusConst[keyof typeof UpdatePersonRequestMarketingStatusConst];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pipedrive API v2
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdatePersonRequestMarketingStatusConst = void 0;
|
|
17
|
+
exports.UpdatePersonRequestMarketingStatusConst = {
|
|
18
|
+
no_consent: 'no_consent',
|
|
19
|
+
unsubscribed: 'unsubscribed',
|
|
20
|
+
subscribed: 'subscribed',
|
|
21
|
+
archived: 'archived'
|
|
22
|
+
};
|
package/package.json
CHANGED
/package/dist/esm/versions/v2/models/{add-person-request-emails-inner.js → person-item-address.js}
RENAMED
|
File without changes
|
/package/dist/esm/versions/v2/models/{add-person-request-phones-inner.js → person-item-email.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/versions/v2/models/{add-person-request-emails-inner.js → person-item-address.js}
RENAMED
|
File without changes
|
/package/dist/versions/v2/models/{add-person-request-phones-inner.js → person-item-email.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|