pipedrive 32.1.0 → 32.2.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/filters-api.d.ts +30 -6
- package/dist/esm/versions/v1/api/filters-api.js +30 -15
- package/dist/esm/versions/v1/models/filter-conditions-conditions-inner-conditions-inner.d.ts +53 -0
- package/dist/esm/versions/v1/models/filter-conditions-conditions-inner-conditions-inner.js +14 -0
- package/dist/esm/versions/v1/models/filter-conditions-conditions-inner.d.ts +34 -0
- package/dist/esm/versions/{v2/models/update-person-request.js → v1/models/filter-conditions-conditions-inner.js} +5 -7
- package/dist/esm/versions/v1/models/filter-conditions.d.ts +33 -0
- package/dist/esm/versions/v1/models/filter-conditions.js +16 -0
- package/dist/esm/versions/v1/models/filter.d.ts +40 -17
- package/dist/esm/versions/v1/models/filter.js +6 -0
- package/dist/esm/versions/v1/models/get-filters-response-all-of-data-inner.d.ts +45 -8
- package/dist/esm/versions/v1/models/get-filters-response-all-of-data-inner.js +15 -1
- package/dist/esm/versions/v1/models/get-filters-response1-all-of-data.d.ts +106 -0
- package/dist/esm/versions/v1/models/get-filters-response1-all-of-data.js +28 -0
- package/dist/esm/versions/v1/models/get-filters-response1-all-of.d.ts +3 -3
- package/dist/esm/versions/v1/models/index.d.ts +4 -0
- package/dist/esm/versions/v1/models/index.js +4 -0
- package/dist/esm/versions/v1/models/user-access.d.ts +3 -3
- package/dist/esm/versions/v1/models/user-access1.d.ts +3 -3
- package/dist/esm/versions/v2/api/persons-api.d.ts +6 -7
- package/dist/esm/versions/v2/api/persons-api.js +8 -8
- package/dist/esm/versions/v2/models/add-organization-field-request.d.ts +0 -5
- package/dist/esm/versions/v2/models/add-person-field-request.d.ts +0 -5
- package/dist/esm/versions/v2/models/add-product-field-request.d.ts +0 -5
- package/dist/esm/versions/v2/models/create-many-deal-product-request.d.ts +1 -1
- package/dist/esm/versions/v2/models/index.d.ts +0 -1
- package/dist/esm/versions/v2/models/index.js +0 -1
- package/dist/esm/versions/v2/models/update-person-field-request.d.ts +0 -5
- package/dist/esm/versions/v2/models/update-product-field-request.d.ts +0 -5
- package/dist/versions/v1/api/filters-api.d.ts +30 -6
- package/dist/versions/v1/api/filters-api.js +30 -15
- package/dist/versions/v1/models/filter-conditions-conditions-inner-conditions-inner.d.ts +53 -0
- package/dist/versions/v1/models/filter-conditions-conditions-inner-conditions-inner.js +15 -0
- package/dist/versions/v1/models/filter-conditions-conditions-inner.d.ts +34 -0
- package/dist/versions/{v2/models/update-person-request.js → v1/models/filter-conditions-conditions-inner.js} +6 -8
- package/dist/versions/v1/models/filter-conditions.d.ts +33 -0
- package/dist/versions/v1/models/filter-conditions.js +19 -0
- package/dist/versions/v1/models/filter.d.ts +40 -17
- package/dist/versions/v1/models/filter.js +7 -1
- package/dist/versions/v1/models/get-filters-response-all-of-data-inner.d.ts +45 -8
- package/dist/versions/v1/models/get-filters-response-all-of-data-inner.js +16 -0
- package/dist/versions/v1/models/get-filters-response1-all-of-data.d.ts +106 -0
- package/dist/versions/v1/models/get-filters-response1-all-of-data.js +31 -0
- package/dist/versions/v1/models/get-filters-response1-all-of.d.ts +3 -3
- package/dist/versions/v1/models/index.d.ts +4 -0
- package/dist/versions/v1/models/index.js +4 -0
- package/dist/versions/v1/models/user-access.d.ts +3 -3
- package/dist/versions/v1/models/user-access1.d.ts +3 -3
- package/dist/versions/v2/api/persons-api.d.ts +6 -7
- package/dist/versions/v2/api/persons-api.js +8 -8
- package/dist/versions/v2/models/add-organization-field-request.d.ts +0 -5
- package/dist/versions/v2/models/add-person-field-request.d.ts +0 -5
- package/dist/versions/v2/models/add-product-field-request.d.ts +0 -5
- package/dist/versions/v2/models/create-many-deal-product-request.d.ts +1 -1
- package/dist/versions/v2/models/index.d.ts +0 -1
- package/dist/versions/v2/models/index.js +0 -1
- package/dist/versions/v2/models/update-person-field-request.d.ts +0 -5
- package/dist/versions/v2/models/update-product-field-request.d.ts +0 -5
- package/package.json +1 -1
- package/dist/esm/versions/v2/models/update-person-request.d.ts +0 -84
- package/dist/versions/v2/models/update-person-request.d.ts +0 -84
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v1
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 { FilterConditions } from './filter-conditions';
|
|
13
|
+
/**
|
|
14
|
+
* The filter object including conditions
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetFiltersResponse1AllOfData
|
|
17
|
+
*/
|
|
18
|
+
export interface GetFiltersResponse1AllOfData {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the filter
|
|
21
|
+
* @type {number}
|
|
22
|
+
*/
|
|
23
|
+
'id'?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the filter
|
|
26
|
+
* @type {string}
|
|
27
|
+
*/
|
|
28
|
+
'name'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The system code of the filter
|
|
31
|
+
* @type {string}
|
|
32
|
+
*/
|
|
33
|
+
'filter_code'?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the filter can be edited by the requesting user
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
*/
|
|
38
|
+
'is_editable'?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The active flag of the filter
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
*/
|
|
43
|
+
'active_flag'?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
*/
|
|
48
|
+
'type'?: GetFiltersResponse1AllOfDataTypeConst;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the filter is temporary
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
*/
|
|
53
|
+
'temporary_flag'?: boolean | null;
|
|
54
|
+
/**
|
|
55
|
+
* The owner of the filter
|
|
56
|
+
* @type {number}
|
|
57
|
+
*/
|
|
58
|
+
'user_id'?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The date and time when the filter was added
|
|
61
|
+
* @type {string}
|
|
62
|
+
*/
|
|
63
|
+
'add_time'?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The date and time when the filter was updated
|
|
66
|
+
* @type {string}
|
|
67
|
+
*/
|
|
68
|
+
'update_time'?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
*/
|
|
73
|
+
'visible_to'?: GetFiltersResponse1AllOfDataVisibleToConst;
|
|
74
|
+
/**
|
|
75
|
+
* The date and time when the filter was last used
|
|
76
|
+
* @type {string}
|
|
77
|
+
*/
|
|
78
|
+
'last_used_time'?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* The custom view ID linked to the filter
|
|
81
|
+
* @type {number}
|
|
82
|
+
*/
|
|
83
|
+
'custom_view_id'?: number | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {FilterConditions}
|
|
87
|
+
*/
|
|
88
|
+
'conditions'?: FilterConditions;
|
|
89
|
+
}
|
|
90
|
+
export declare const GetFiltersResponse1AllOfDataTypeConst: {
|
|
91
|
+
readonly deals: "deals";
|
|
92
|
+
readonly leads: "leads";
|
|
93
|
+
readonly org: "org";
|
|
94
|
+
readonly people: "people";
|
|
95
|
+
readonly products: "products";
|
|
96
|
+
readonly activity: "activity";
|
|
97
|
+
readonly projects: "projects";
|
|
98
|
+
};
|
|
99
|
+
export type GetFiltersResponse1AllOfDataTypeConst = typeof GetFiltersResponse1AllOfDataTypeConst[keyof typeof GetFiltersResponse1AllOfDataTypeConst];
|
|
100
|
+
export declare const GetFiltersResponse1AllOfDataVisibleToConst: {
|
|
101
|
+
readonly _1: "1";
|
|
102
|
+
readonly _3: "3";
|
|
103
|
+
readonly _5: "5";
|
|
104
|
+
readonly _7: "7";
|
|
105
|
+
};
|
|
106
|
+
export type GetFiltersResponse1AllOfDataVisibleToConst = typeof GetFiltersResponse1AllOfDataVisibleToConst[keyof typeof GetFiltersResponse1AllOfDataVisibleToConst];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pipedrive API v1
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.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.GetFiltersResponse1AllOfDataVisibleToConst = exports.GetFiltersResponse1AllOfDataTypeConst = void 0;
|
|
17
|
+
exports.GetFiltersResponse1AllOfDataTypeConst = {
|
|
18
|
+
deals: 'deals',
|
|
19
|
+
leads: 'leads',
|
|
20
|
+
org: 'org',
|
|
21
|
+
people: 'people',
|
|
22
|
+
products: 'products',
|
|
23
|
+
activity: 'activity',
|
|
24
|
+
projects: 'projects'
|
|
25
|
+
};
|
|
26
|
+
exports.GetFiltersResponse1AllOfDataVisibleToConst = {
|
|
27
|
+
_1: '1',
|
|
28
|
+
_3: '3',
|
|
29
|
+
_5: '5',
|
|
30
|
+
_7: '7'
|
|
31
|
+
};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { GetFiltersResponse1AllOfData } from './get-filters-response1-all-of-data';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,7 +18,7 @@ import { GetFiltersResponseAllOfDataInner } from './get-filters-response-all-of-
|
|
|
18
18
|
export interface GetFiltersResponse1AllOf {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {GetFiltersResponse1AllOfData}
|
|
22
22
|
*/
|
|
23
|
-
'data':
|
|
23
|
+
'data': GetFiltersResponse1AllOfData;
|
|
24
24
|
}
|
|
@@ -179,6 +179,9 @@ export * from './delete-webhook403-response-all-of';
|
|
|
179
179
|
export * from './fail-response';
|
|
180
180
|
export * from './field';
|
|
181
181
|
export * from './filter';
|
|
182
|
+
export * from './filter-conditions';
|
|
183
|
+
export * from './filter-conditions-conditions-inner';
|
|
184
|
+
export * from './filter-conditions-conditions-inner-conditions-inner';
|
|
182
185
|
export * from './full-role';
|
|
183
186
|
export * from './full-role-all-of';
|
|
184
187
|
export * from './get-activities-collection-response';
|
|
@@ -253,6 +256,7 @@ export * from './get-files-response-data-inner';
|
|
|
253
256
|
export * from './get-filters-response';
|
|
254
257
|
export * from './get-filters-response1';
|
|
255
258
|
export * from './get-filters-response1-all-of';
|
|
259
|
+
export * from './get-filters-response1-all-of-data';
|
|
256
260
|
export * from './get-filters-response-all-of';
|
|
257
261
|
export * from './get-filters-response-all-of-data-inner';
|
|
258
262
|
export * from './get-goal-result-response';
|
|
@@ -195,6 +195,9 @@ __exportStar(require("./delete-webhook403-response-all-of"), exports);
|
|
|
195
195
|
__exportStar(require("./fail-response"), exports);
|
|
196
196
|
__exportStar(require("./field"), exports);
|
|
197
197
|
__exportStar(require("./filter"), exports);
|
|
198
|
+
__exportStar(require("./filter-conditions"), exports);
|
|
199
|
+
__exportStar(require("./filter-conditions-conditions-inner"), exports);
|
|
200
|
+
__exportStar(require("./filter-conditions-conditions-inner-conditions-inner"), exports);
|
|
198
201
|
__exportStar(require("./full-role"), exports);
|
|
199
202
|
__exportStar(require("./full-role-all-of"), exports);
|
|
200
203
|
__exportStar(require("./get-activities-collection-response"), exports);
|
|
@@ -269,6 +272,7 @@ __exportStar(require("./get-files-response-data-inner"), exports);
|
|
|
269
272
|
__exportStar(require("./get-filters-response"), exports);
|
|
270
273
|
__exportStar(require("./get-filters-response1"), exports);
|
|
271
274
|
__exportStar(require("./get-filters-response1-all-of"), exports);
|
|
275
|
+
__exportStar(require("./get-filters-response1-all-of-data"), exports);
|
|
272
276
|
__exportStar(require("./get-filters-response-all-of"), exports);
|
|
273
277
|
__exportStar(require("./get-filters-response-all-of-data-inner"), exports);
|
|
274
278
|
__exportStar(require("./get-goal-result-response"), exports);
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UserAccess {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The granular app access level
|
|
20
20
|
* @type {string}
|
|
21
21
|
*/
|
|
22
22
|
'app'?: UserAccessAppConst;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Whether the user has admin access or not
|
|
25
25
|
* @type {boolean}
|
|
26
26
|
*/
|
|
27
27
|
'admin'?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The ID of the permission set
|
|
30
30
|
* @type {string}
|
|
31
31
|
*/
|
|
32
32
|
'permission_set_id'?: string;
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UserAccess1 {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The granular app access level
|
|
20
20
|
* @type {string}
|
|
21
21
|
*/
|
|
22
22
|
'app': UserAccess1AppConst;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Whether the user has admin access or not
|
|
25
25
|
* @type {boolean}
|
|
26
26
|
*/
|
|
27
27
|
'admin'?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The ID of the permission set
|
|
30
30
|
* @type {string}
|
|
31
31
|
*/
|
|
32
32
|
'permission_set_id'?: string;
|
|
@@ -22,7 +22,6 @@ import { GetFollowersResponse } from '../models';
|
|
|
22
22
|
import { GetPersonPictureResponse } from '../models';
|
|
23
23
|
import { GetPersonSearchResponse } from '../models';
|
|
24
24
|
import { GetPersonsResponse } from '../models';
|
|
25
|
-
import { UpdatePersonRequest } from '../models';
|
|
26
25
|
import { UpsertPersonResponse } from '../models';
|
|
27
26
|
/**
|
|
28
27
|
* PersonsApi - axios parameter creator
|
|
@@ -139,11 +138,11 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
139
138
|
* Updates the properties of a person. <br>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.
|
|
140
139
|
* @summary Update a person
|
|
141
140
|
* @param {number} id The ID of the person
|
|
142
|
-
* @param {
|
|
141
|
+
* @param {AddPersonRequest} [AddPersonRequest]
|
|
143
142
|
|
|
144
143
|
* @throws {RequiredError}
|
|
145
144
|
*/
|
|
146
|
-
updatePerson: (id: number,
|
|
145
|
+
updatePerson: (id: number, AddPersonRequest?: AddPersonRequest) => Promise<RequestArgs>;
|
|
147
146
|
};
|
|
148
147
|
/**
|
|
149
148
|
* PersonsApi - functional programming interface
|
|
@@ -260,11 +259,11 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
|
|
|
260
259
|
* Updates the properties of a person. <br>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.
|
|
261
260
|
* @summary Update a person
|
|
262
261
|
* @param {number} id The ID of the person
|
|
263
|
-
* @param {
|
|
262
|
+
* @param {AddPersonRequest} [AddPersonRequest]
|
|
264
263
|
|
|
265
264
|
* @throws {RequiredError}
|
|
266
265
|
*/
|
|
267
|
-
updatePerson(id: number,
|
|
266
|
+
updatePerson(id: number, AddPersonRequest?: AddPersonRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertPersonResponse>>;
|
|
268
267
|
};
|
|
269
268
|
/**
|
|
270
269
|
* PersonsApi - factory interface
|
|
@@ -660,10 +659,10 @@ export interface PersonsApiUpdatePersonRequest {
|
|
|
660
659
|
readonly id: number;
|
|
661
660
|
/**
|
|
662
661
|
*
|
|
663
|
-
* @type {
|
|
662
|
+
* @type {AddPersonRequest}
|
|
664
663
|
* @memberof PersonsApiUpdatePerson
|
|
665
664
|
*/
|
|
666
|
-
readonly
|
|
665
|
+
readonly AddPersonRequest?: AddPersonRequest;
|
|
667
666
|
}
|
|
668
667
|
/**
|
|
669
668
|
* PersonsApi - object-oriented interface
|
|
@@ -486,11 +486,11 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
486
486
|
* Updates the properties of a person. <br>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.
|
|
487
487
|
* @summary Update a person
|
|
488
488
|
* @param {number} id The ID of the person
|
|
489
|
-
* @param {
|
|
489
|
+
* @param {AddPersonRequest} [AddPersonRequest]
|
|
490
490
|
|
|
491
491
|
* @throws {RequiredError}
|
|
492
492
|
*/
|
|
493
|
-
updatePerson: (id,
|
|
493
|
+
updatePerson: (id, AddPersonRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
494
494
|
// verify required parameter 'id' is not null or undefined
|
|
495
495
|
(0, common_1.assertParamExists)('updatePerson', 'id', id);
|
|
496
496
|
const localVarPath = `/persons/{id}`
|
|
@@ -513,7 +513,7 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
513
513
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
514
514
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
515
|
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
516
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
516
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddPersonRequest, localVarRequestOptions, configuration);
|
|
517
517
|
return {
|
|
518
518
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
519
519
|
options: localVarRequestOptions,
|
|
@@ -689,13 +689,13 @@ const PersonsApiFp = function (configuration) {
|
|
|
689
689
|
* Updates the properties of a person. <br>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.
|
|
690
690
|
* @summary Update a person
|
|
691
691
|
* @param {number} id The ID of the person
|
|
692
|
-
* @param {
|
|
692
|
+
* @param {AddPersonRequest} [AddPersonRequest]
|
|
693
693
|
|
|
694
694
|
* @throws {RequiredError}
|
|
695
695
|
*/
|
|
696
|
-
updatePerson(id,
|
|
696
|
+
updatePerson(id, AddPersonRequest) {
|
|
697
697
|
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePerson(id,
|
|
698
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePerson(id, AddPersonRequest);
|
|
699
699
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
700
700
|
});
|
|
701
701
|
},
|
|
@@ -817,7 +817,7 @@ const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
|
817
817
|
* @throws {RequiredError}
|
|
818
818
|
*/
|
|
819
819
|
updatePerson(requestParameters) {
|
|
820
|
-
return localVarFp.updatePerson(requestParameters.id, requestParameters.
|
|
820
|
+
return localVarFp.updatePerson(requestParameters.id, requestParameters.AddPersonRequest).then((request) => request(axios, basePath));
|
|
821
821
|
},
|
|
822
822
|
};
|
|
823
823
|
};
|
|
@@ -948,7 +948,7 @@ class PersonsApi extends base_1.BaseAPI {
|
|
|
948
948
|
* @memberof PersonsApi
|
|
949
949
|
*/
|
|
950
950
|
updatePerson(requestParameters) {
|
|
951
|
-
return (0, exports.PersonsApiFp)(this.configuration).updatePerson(requestParameters.id, requestParameters.
|
|
951
|
+
return (0, exports.PersonsApiFp)(this.configuration).updatePerson(requestParameters.id, requestParameters.AddPersonRequest).then((request) => request(this.axios, this.basePath));
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
exports.PersonsApi = PersonsApi;
|
|
@@ -49,11 +49,6 @@ export interface AddOrganizationFieldRequest {
|
|
|
49
49
|
* @type {AddOrganizationFieldRequestRequiredFields}
|
|
50
50
|
*/
|
|
51
51
|
'required_fields'?: AddOrganizationFieldRequestRequiredFields;
|
|
52
|
-
/**
|
|
53
|
-
* Field description
|
|
54
|
-
* @type {string}
|
|
55
|
-
*/
|
|
56
|
-
'description'?: string | null;
|
|
57
52
|
}
|
|
58
53
|
export declare const AddOrganizationFieldRequestFieldTypeConst: {
|
|
59
54
|
readonly varchar: "varchar";
|
|
@@ -49,11 +49,6 @@ export interface AddPersonFieldRequest {
|
|
|
49
49
|
* @type {AddPersonFieldRequestRequiredFields}
|
|
50
50
|
*/
|
|
51
51
|
'required_fields'?: AddPersonFieldRequestRequiredFields;
|
|
52
|
-
/**
|
|
53
|
-
* Field description
|
|
54
|
-
* @type {string}
|
|
55
|
-
*/
|
|
56
|
-
'description'?: string | null;
|
|
57
52
|
}
|
|
58
53
|
export declare const AddPersonFieldRequestFieldTypeConst: {
|
|
59
54
|
readonly varchar: "varchar";
|
|
@@ -37,11 +37,6 @@ export interface AddProductFieldRequest {
|
|
|
37
37
|
* @type {AddProductFieldRequestUiVisibility}
|
|
38
38
|
*/
|
|
39
39
|
'ui_visibility'?: AddProductFieldRequestUiVisibility;
|
|
40
|
-
/**
|
|
41
|
-
* Field description
|
|
42
|
-
* @type {string}
|
|
43
|
-
*/
|
|
44
|
-
'description'?: string | null;
|
|
45
40
|
}
|
|
46
41
|
export declare const AddProductFieldRequestFieldTypeConst: {
|
|
47
42
|
readonly varchar: "varchar";
|
|
@@ -17,7 +17,7 @@ import { AddDealProductRequest } from './add-deal-product-request';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateManyDealProductRequest {
|
|
19
19
|
/**
|
|
20
|
-
* Array of products to attach to the deal.
|
|
20
|
+
* Array of products to attach to the deal. Each product object may have the following properties.
|
|
21
21
|
* @type {Array<AddDealProductRequest>}
|
|
22
22
|
*/
|
|
23
23
|
'data': Array<AddDealProductRequest>;
|
|
@@ -220,7 +220,6 @@ export * from './update-installment-response';
|
|
|
220
220
|
export * from './update-organization-field-request';
|
|
221
221
|
export * from './update-organization-request';
|
|
222
222
|
export * from './update-person-field-request';
|
|
223
|
-
export * from './update-person-request';
|
|
224
223
|
export * from './update-pipeline-request';
|
|
225
224
|
export * from './update-product-field-request';
|
|
226
225
|
export * from './update-product-image-response';
|
|
@@ -236,7 +236,6 @@ __exportStar(require("./update-installment-response"), exports);
|
|
|
236
236
|
__exportStar(require("./update-organization-field-request"), exports);
|
|
237
237
|
__exportStar(require("./update-organization-request"), exports);
|
|
238
238
|
__exportStar(require("./update-person-field-request"), exports);
|
|
239
|
-
__exportStar(require("./update-person-request"), exports);
|
|
240
239
|
__exportStar(require("./update-pipeline-request"), exports);
|
|
241
240
|
__exportStar(require("./update-product-field-request"), exports);
|
|
242
241
|
__exportStar(require("./update-product-image-response"), exports);
|
package/package.json
CHANGED
|
@@ -1,84 +0,0 @@
|
|
|
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 { AddPersonRequestEmailsInner } from './add-person-request-emails-inner';
|
|
13
|
-
import { AddPersonRequestPhonesInner } from './add-person-request-phones-inner';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface UpdatePersonRequest
|
|
18
|
-
*/
|
|
19
|
-
export interface UpdatePersonRequest {
|
|
20
|
-
/**
|
|
21
|
-
* The name of the person
|
|
22
|
-
* @type {string}
|
|
23
|
-
*/
|
|
24
|
-
'name'?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The ID of the user who owns the person
|
|
27
|
-
* @type {number}
|
|
28
|
-
*/
|
|
29
|
-
'owner_id'?: number;
|
|
30
|
-
/**
|
|
31
|
-
* The ID of the organization linked to the person
|
|
32
|
-
* @type {number}
|
|
33
|
-
*/
|
|
34
|
-
'org_id'?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The creation date and time of the person
|
|
37
|
-
* @type {string}
|
|
38
|
-
*/
|
|
39
|
-
'add_time'?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The last updated date and time of the person
|
|
42
|
-
* @type {string}
|
|
43
|
-
*/
|
|
44
|
-
'update_time'?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The emails of the person
|
|
47
|
-
* @type {Array<AddPersonRequestEmailsInner>}
|
|
48
|
-
*/
|
|
49
|
-
'emails'?: Array<AddPersonRequestEmailsInner>;
|
|
50
|
-
/**
|
|
51
|
-
* The phones of the person
|
|
52
|
-
* @type {Array<AddPersonRequestPhonesInner>}
|
|
53
|
-
*/
|
|
54
|
-
'phones'?: Array<AddPersonRequestPhonesInner>;
|
|
55
|
-
/**
|
|
56
|
-
* The visibility of the person
|
|
57
|
-
* @type {number}
|
|
58
|
-
*/
|
|
59
|
-
'visible_to'?: number;
|
|
60
|
-
/**
|
|
61
|
-
* The IDs of labels assigned to the person
|
|
62
|
-
* @type {Array<number>}
|
|
63
|
-
*/
|
|
64
|
-
'label_ids'?: Array<number>;
|
|
65
|
-
/**
|
|
66
|
-
* 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
|
-
* @type {string}
|
|
68
|
-
*/
|
|
69
|
-
'marketing_status'?: UpdatePersonRequestMarketingStatusConst;
|
|
70
|
-
/**
|
|
71
|
-
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes
|
|
72
|
-
* @type {{ [key: string]: any | undefined; }}
|
|
73
|
-
*/
|
|
74
|
-
'custom_fields'?: {
|
|
75
|
-
[key: string]: any | undefined;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
export declare const UpdatePersonRequestMarketingStatusConst: {
|
|
79
|
-
readonly no_consent: "no_consent";
|
|
80
|
-
readonly unsubscribed: "unsubscribed";
|
|
81
|
-
readonly subscribed: "subscribed";
|
|
82
|
-
readonly archived: "archived";
|
|
83
|
-
};
|
|
84
|
-
export type UpdatePersonRequestMarketingStatusConst = typeof UpdatePersonRequestMarketingStatusConst[keyof typeof UpdatePersonRequestMarketingStatusConst];
|
|
@@ -1,84 +0,0 @@
|
|
|
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 { AddPersonRequestEmailsInner } from './add-person-request-emails-inner';
|
|
13
|
-
import { AddPersonRequestPhonesInner } from './add-person-request-phones-inner';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface UpdatePersonRequest
|
|
18
|
-
*/
|
|
19
|
-
export interface UpdatePersonRequest {
|
|
20
|
-
/**
|
|
21
|
-
* The name of the person
|
|
22
|
-
* @type {string}
|
|
23
|
-
*/
|
|
24
|
-
'name'?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The ID of the user who owns the person
|
|
27
|
-
* @type {number}
|
|
28
|
-
*/
|
|
29
|
-
'owner_id'?: number;
|
|
30
|
-
/**
|
|
31
|
-
* The ID of the organization linked to the person
|
|
32
|
-
* @type {number}
|
|
33
|
-
*/
|
|
34
|
-
'org_id'?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The creation date and time of the person
|
|
37
|
-
* @type {string}
|
|
38
|
-
*/
|
|
39
|
-
'add_time'?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The last updated date and time of the person
|
|
42
|
-
* @type {string}
|
|
43
|
-
*/
|
|
44
|
-
'update_time'?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The emails of the person
|
|
47
|
-
* @type {Array<AddPersonRequestEmailsInner>}
|
|
48
|
-
*/
|
|
49
|
-
'emails'?: Array<AddPersonRequestEmailsInner>;
|
|
50
|
-
/**
|
|
51
|
-
* The phones of the person
|
|
52
|
-
* @type {Array<AddPersonRequestPhonesInner>}
|
|
53
|
-
*/
|
|
54
|
-
'phones'?: Array<AddPersonRequestPhonesInner>;
|
|
55
|
-
/**
|
|
56
|
-
* The visibility of the person
|
|
57
|
-
* @type {number}
|
|
58
|
-
*/
|
|
59
|
-
'visible_to'?: number;
|
|
60
|
-
/**
|
|
61
|
-
* The IDs of labels assigned to the person
|
|
62
|
-
* @type {Array<number>}
|
|
63
|
-
*/
|
|
64
|
-
'label_ids'?: Array<number>;
|
|
65
|
-
/**
|
|
66
|
-
* 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
|
-
* @type {string}
|
|
68
|
-
*/
|
|
69
|
-
'marketing_status'?: UpdatePersonRequestMarketingStatusConst;
|
|
70
|
-
/**
|
|
71
|
-
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes
|
|
72
|
-
* @type {{ [key: string]: any | undefined; }}
|
|
73
|
-
*/
|
|
74
|
-
'custom_fields'?: {
|
|
75
|
-
[key: string]: any | undefined;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
export declare const UpdatePersonRequestMarketingStatusConst: {
|
|
79
|
-
readonly no_consent: "no_consent";
|
|
80
|
-
readonly unsubscribed: "unsubscribed";
|
|
81
|
-
readonly subscribed: "subscribed";
|
|
82
|
-
readonly archived: "archived";
|
|
83
|
-
};
|
|
84
|
-
export type UpdatePersonRequestMarketingStatusConst = typeof UpdatePersonRequestMarketingStatusConst[keyof typeof UpdatePersonRequestMarketingStatusConst];
|