pipedrive 33.5.0 → 33.6.1
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/permission-sets-api.d.ts +6 -6
- package/dist/esm/versions/v1/api/permission-sets-api.js +2 -2
- 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/permission-set.d.ts +2 -0
- package/dist/esm/versions/v1/models/permission-set.js +3 -1
- package/dist/esm/versions/v1/models/user-access.d.ts +1 -0
- package/dist/esm/versions/v1/models/user-access.js +2 -1
- package/dist/esm/versions/v1/models/user-access1.d.ts +1 -0
- package/dist/esm/versions/v1/models/user-access1.js +2 -1
- 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/permission-sets-api.d.ts +6 -6
- package/dist/versions/v1/api/permission-sets-api.js +2 -2
- package/dist/versions/v1/common.d.ts +1 -1
- package/dist/versions/v1/common.js +2 -0
- package/dist/versions/v1/models/permission-set.d.ts +2 -0
- package/dist/versions/v1/models/permission-set.js +3 -1
- package/dist/versions/v1/models/user-access.d.ts +1 -0
- package/dist/versions/v1/models/user-access.js +2 -1
- package/dist/versions/v1/models/user-access1.d.ts +1 -0
- package/dist/versions/v1/models/user-access1.js +2 -1
- 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
|
@@ -20,7 +20,7 @@ export interface AddOrganizationRequest {
|
|
|
20
20
|
* The name of the organization
|
|
21
21
|
* @type {string}
|
|
22
22
|
*/
|
|
23
|
-
'name'
|
|
23
|
+
'name': string;
|
|
24
24
|
/**
|
|
25
25
|
* The ID of the user who owns the organization
|
|
26
26
|
* @type {number}
|
|
@@ -32,11 +32,6 @@ export interface AddOrganizationRequest {
|
|
|
32
32
|
*/
|
|
33
33
|
'add_time'?: string;
|
|
34
34
|
/**
|
|
35
|
-
* The last updated date and time of the organization
|
|
36
|
-
* @type {string}
|
|
37
|
-
*/
|
|
38
|
-
'update_time'?: string;
|
|
39
|
-
/**
|
|
40
35
|
* The visibility of the organization
|
|
41
36
|
* @type {number}
|
|
42
37
|
*/
|
|
@@ -52,6 +47,31 @@ export interface AddOrganizationRequest {
|
|
|
52
47
|
*/
|
|
53
48
|
'address'?: OrganizationItemAddress;
|
|
54
49
|
/**
|
|
50
|
+
* The website of the organization
|
|
51
|
+
* @type {string}
|
|
52
|
+
*/
|
|
53
|
+
'website'?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The LinkedIn profile URL of the organization
|
|
56
|
+
* @type {string}
|
|
57
|
+
*/
|
|
58
|
+
'linkedin'?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The industry the organization belongs to
|
|
61
|
+
* @type {number}
|
|
62
|
+
*/
|
|
63
|
+
'industry'?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
* The annual revenue of the organization
|
|
66
|
+
* @type {number}
|
|
67
|
+
*/
|
|
68
|
+
'annual_revenue'?: number | null;
|
|
69
|
+
/**
|
|
70
|
+
* The number of employees in the organization
|
|
71
|
+
* @type {number}
|
|
72
|
+
*/
|
|
73
|
+
'employee_count'?: number | null;
|
|
74
|
+
/**
|
|
55
75
|
* 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
76
|
* @type {{ [key: string]: any | undefined; }}
|
|
57
77
|
*/
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
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';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
16
18
|
* @export
|
|
@@ -38,20 +40,15 @@ export interface AddPersonRequest {
|
|
|
38
40
|
*/
|
|
39
41
|
'add_time'?: string;
|
|
40
42
|
/**
|
|
41
|
-
* The last updated date and time of the person
|
|
42
|
-
* @type {string}
|
|
43
|
-
*/
|
|
44
|
-
'update_time'?: string;
|
|
45
|
-
/**
|
|
46
43
|
* The emails of the person
|
|
47
|
-
* @type {Array<
|
|
44
|
+
* @type {Array<PersonItemEmail>}
|
|
48
45
|
*/
|
|
49
|
-
'emails'?: Array<
|
|
46
|
+
'emails'?: Array<PersonItemEmail>;
|
|
50
47
|
/**
|
|
51
48
|
* The phones of the person
|
|
52
|
-
* @type {Array<
|
|
49
|
+
* @type {Array<PersonItemPhone>}
|
|
53
50
|
*/
|
|
54
|
-
'phones'?: Array<
|
|
51
|
+
'phones'?: Array<PersonItemPhone>;
|
|
55
52
|
/**
|
|
56
53
|
* The visibility of the person
|
|
57
54
|
* @type {number}
|
|
@@ -63,6 +60,31 @@ export interface AddPersonRequest {
|
|
|
63
60
|
*/
|
|
64
61
|
'label_ids'?: Array<number>;
|
|
65
62
|
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {PersonItemAddress}
|
|
65
|
+
*/
|
|
66
|
+
'postal_address'?: PersonItemAddress;
|
|
67
|
+
/**
|
|
68
|
+
* Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company
|
|
69
|
+
* @type {string}
|
|
70
|
+
*/
|
|
71
|
+
'notes'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The instant messaging accounts of the person, included if contact sync is enabled for the company
|
|
74
|
+
* @type {Array<PersonItemIm>}
|
|
75
|
+
*/
|
|
76
|
+
'im'?: Array<PersonItemIm>;
|
|
77
|
+
/**
|
|
78
|
+
* The birthday of the person, included if contact sync is enabled for the company
|
|
79
|
+
* @type {string}
|
|
80
|
+
*/
|
|
81
|
+
'birthday'?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The job title of the person, included if contact sync is enabled for the company
|
|
84
|
+
* @type {string}
|
|
85
|
+
*/
|
|
86
|
+
'job_title'?: string;
|
|
87
|
+
/**
|
|
66
88
|
* 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>
|
|
67
89
|
* @type {string}
|
|
68
90
|
*/
|
|
@@ -42,8 +42,6 @@ export * from './add-person-field-request-required-fields';
|
|
|
42
42
|
export * from './add-person-field-request-ui-visibility';
|
|
43
43
|
export * from './add-person-field-request-ui-visibility-show-in-add-deal-dialog';
|
|
44
44
|
export * from './add-person-request';
|
|
45
|
-
export * from './add-person-request-emails-inner';
|
|
46
|
-
export * from './add-person-request-phones-inner';
|
|
47
45
|
export * from './add-pipeline-request';
|
|
48
46
|
export * from './add-product-field-request';
|
|
49
47
|
export * from './add-product-field-request-ui-visibility';
|
|
@@ -254,8 +252,10 @@ export * from './lead-search-item-item-person';
|
|
|
254
252
|
export * from './organization-item';
|
|
255
253
|
export * from './organization-item-address';
|
|
256
254
|
export * from './person';
|
|
257
|
-
export * from './person-
|
|
258
|
-
export * from './person-
|
|
255
|
+
export * from './person-item-address';
|
|
256
|
+
export * from './person-item-email';
|
|
257
|
+
export * from './person-item-im';
|
|
258
|
+
export * from './person-item-phone';
|
|
259
259
|
export * from './prices-array';
|
|
260
260
|
export * from './prices-array-prices-inner';
|
|
261
261
|
export * from './product-request';
|
|
@@ -275,6 +275,7 @@ export * from './update-installment-response';
|
|
|
275
275
|
export * from './update-organization-field-request';
|
|
276
276
|
export * from './update-organization-request';
|
|
277
277
|
export * from './update-person-field-request';
|
|
278
|
+
export * from './update-person-request';
|
|
278
279
|
export * from './update-pipeline-request';
|
|
279
280
|
export * from './update-product-field-request';
|
|
280
281
|
export * from './update-product-image-response';
|
|
@@ -58,8 +58,6 @@ __exportStar(require("./add-person-field-request-required-fields"), exports);
|
|
|
58
58
|
__exportStar(require("./add-person-field-request-ui-visibility"), exports);
|
|
59
59
|
__exportStar(require("./add-person-field-request-ui-visibility-show-in-add-deal-dialog"), exports);
|
|
60
60
|
__exportStar(require("./add-person-request"), exports);
|
|
61
|
-
__exportStar(require("./add-person-request-emails-inner"), exports);
|
|
62
|
-
__exportStar(require("./add-person-request-phones-inner"), exports);
|
|
63
61
|
__exportStar(require("./add-pipeline-request"), exports);
|
|
64
62
|
__exportStar(require("./add-product-field-request"), exports);
|
|
65
63
|
__exportStar(require("./add-product-field-request-ui-visibility"), exports);
|
|
@@ -270,8 +268,10 @@ __exportStar(require("./lead-search-item-item-person"), exports);
|
|
|
270
268
|
__exportStar(require("./organization-item"), exports);
|
|
271
269
|
__exportStar(require("./organization-item-address"), exports);
|
|
272
270
|
__exportStar(require("./person"), exports);
|
|
273
|
-
__exportStar(require("./person-
|
|
274
|
-
__exportStar(require("./person-
|
|
271
|
+
__exportStar(require("./person-item-address"), exports);
|
|
272
|
+
__exportStar(require("./person-item-email"), exports);
|
|
273
|
+
__exportStar(require("./person-item-im"), exports);
|
|
274
|
+
__exportStar(require("./person-item-phone"), exports);
|
|
275
275
|
__exportStar(require("./prices-array"), exports);
|
|
276
276
|
__exportStar(require("./prices-array-prices-inner"), exports);
|
|
277
277
|
__exportStar(require("./product-request"), exports);
|
|
@@ -291,6 +291,7 @@ __exportStar(require("./update-installment-response"), exports);
|
|
|
291
291
|
__exportStar(require("./update-organization-field-request"), exports);
|
|
292
292
|
__exportStar(require("./update-organization-request"), exports);
|
|
293
293
|
__exportStar(require("./update-person-field-request"), exports);
|
|
294
|
+
__exportStar(require("./update-person-request"), exports);
|
|
294
295
|
__exportStar(require("./update-pipeline-request"), exports);
|
|
295
296
|
__exportStar(require("./update-product-field-request"), exports);
|
|
296
297
|
__exportStar(require("./update-product-image-response"), exports);
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Postal address of the person, included if contact sync is enabled for the company
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface PersonItemAddress
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface PersonItemAddress {
|
|
18
18
|
/**
|
|
19
19
|
* The full address of the person
|
|
20
20
|
* @type {string}
|
package/dist/versions/v2/models/{add-person-request-emails-inner.d.ts → person-item-email.d.ts}
RENAMED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface PersonItemEmail
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface PersonItemEmail {
|
|
18
18
|
/**
|
|
19
19
|
* The email address of the person
|
|
20
20
|
* @type {string}
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface PersonItemPhone
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface PersonItemPhone {
|
|
18
18
|
/**
|
|
19
19
|
* The phone number of the person
|
|
20
20
|
* @type {string}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
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
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -61,14 +61,14 @@ export interface Person {
|
|
|
61
61
|
'update_time'?: string;
|
|
62
62
|
/**
|
|
63
63
|
* The emails of the person
|
|
64
|
-
* @type {Array<
|
|
64
|
+
* @type {Array<PersonItemEmail>}
|
|
65
65
|
*/
|
|
66
|
-
'emails'?: Array<
|
|
66
|
+
'emails'?: Array<PersonItemEmail>;
|
|
67
67
|
/**
|
|
68
68
|
* The phones of the person
|
|
69
|
-
* @type {Array<
|
|
69
|
+
* @type {Array<PersonItemPhone>}
|
|
70
70
|
*/
|
|
71
|
-
'phones'?: Array<
|
|
71
|
+
'phones'?: Array<PersonItemPhone>;
|
|
72
72
|
/**
|
|
73
73
|
* Whether the person is deleted or not
|
|
74
74
|
* @type {boolean}
|
|
@@ -91,9 +91,9 @@ export interface Person {
|
|
|
91
91
|
'picture_id'?: number;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
|
-
* @type {
|
|
94
|
+
* @type {PersonItemAddress}
|
|
95
95
|
*/
|
|
96
|
-
'postal_address'?:
|
|
96
|
+
'postal_address'?: PersonItemAddress;
|
|
97
97
|
/**
|
|
98
98
|
* Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company
|
|
99
99
|
* @type {string}
|
|
@@ -101,9 +101,9 @@ export interface Person {
|
|
|
101
101
|
'notes'?: string;
|
|
102
102
|
/**
|
|
103
103
|
* The instant messaging accounts of the person, included if contact sync is enabled for the company
|
|
104
|
-
* @type {Array<
|
|
104
|
+
* @type {Array<PersonItemIm>}
|
|
105
105
|
*/
|
|
106
|
-
'im'?: Array<
|
|
106
|
+
'im'?: Array<PersonItemIm>;
|
|
107
107
|
/**
|
|
108
108
|
* The birthday of the person, included if contact sync is enabled for the company
|
|
109
109
|
* @type {string}
|
|
@@ -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
|