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
|
@@ -26,15 +26,30 @@ export interface GetFiltersResponseAllOfDataInner {
|
|
|
26
26
|
*/
|
|
27
27
|
'name'?: string;
|
|
28
28
|
/**
|
|
29
|
+
* The system code of the filter
|
|
30
|
+
* @type {string}
|
|
31
|
+
*/
|
|
32
|
+
'filter_code'?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the filter can be edited by the requesting user
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
*/
|
|
37
|
+
'is_editable'?: boolean;
|
|
38
|
+
/**
|
|
29
39
|
* The active flag of the filter
|
|
30
40
|
* @type {boolean}
|
|
31
41
|
*/
|
|
32
42
|
'active_flag'?: boolean;
|
|
33
43
|
/**
|
|
34
|
-
*
|
|
44
|
+
*
|
|
35
45
|
* @type {string}
|
|
36
46
|
*/
|
|
37
|
-
'type'?:
|
|
47
|
+
'type'?: GetFiltersResponseAllOfDataInnerTypeConst;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the filter is temporary
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
*/
|
|
52
|
+
'temporary_flag'?: boolean | null;
|
|
38
53
|
/**
|
|
39
54
|
* The owner of the filter
|
|
40
55
|
* @type {number}
|
|
@@ -49,15 +64,37 @@ export interface GetFiltersResponseAllOfDataInner {
|
|
|
49
64
|
* The date and time when the filter was updated
|
|
50
65
|
* @type {string}
|
|
51
66
|
*/
|
|
52
|
-
'update_time'?: string;
|
|
67
|
+
'update_time'?: string | null;
|
|
53
68
|
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
*/
|
|
72
|
+
'visible_to'?: GetFiltersResponseAllOfDataInnerVisibleToConst;
|
|
73
|
+
/**
|
|
74
|
+
* The date and time when the filter was last used
|
|
75
|
+
* @type {string}
|
|
56
76
|
*/
|
|
57
|
-
'
|
|
77
|
+
'last_used_time'?: string | null;
|
|
58
78
|
/**
|
|
59
|
-
*
|
|
79
|
+
* The custom view ID linked to the filter
|
|
60
80
|
* @type {number}
|
|
61
81
|
*/
|
|
62
|
-
'custom_view_id'?: number;
|
|
82
|
+
'custom_view_id'?: number | null;
|
|
63
83
|
}
|
|
84
|
+
export declare const GetFiltersResponseAllOfDataInnerTypeConst: {
|
|
85
|
+
readonly deals: "deals";
|
|
86
|
+
readonly leads: "leads";
|
|
87
|
+
readonly org: "org";
|
|
88
|
+
readonly people: "people";
|
|
89
|
+
readonly products: "products";
|
|
90
|
+
readonly activity: "activity";
|
|
91
|
+
readonly projects: "projects";
|
|
92
|
+
};
|
|
93
|
+
export type GetFiltersResponseAllOfDataInnerTypeConst = typeof GetFiltersResponseAllOfDataInnerTypeConst[keyof typeof GetFiltersResponseAllOfDataInnerTypeConst];
|
|
94
|
+
export declare const GetFiltersResponseAllOfDataInnerVisibleToConst: {
|
|
95
|
+
readonly _1: "1";
|
|
96
|
+
readonly _3: "3";
|
|
97
|
+
readonly _5: "5";
|
|
98
|
+
readonly _7: "7";
|
|
99
|
+
};
|
|
100
|
+
export type GetFiltersResponseAllOfDataInnerVisibleToConst = typeof GetFiltersResponseAllOfDataInnerVisibleToConst[keyof typeof GetFiltersResponseAllOfDataInnerVisibleToConst];
|
|
@@ -11,4 +11,18 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
export {
|
|
14
|
+
export const GetFiltersResponseAllOfDataInnerTypeConst = {
|
|
15
|
+
deals: 'deals',
|
|
16
|
+
leads: 'leads',
|
|
17
|
+
org: 'org',
|
|
18
|
+
people: 'people',
|
|
19
|
+
products: 'products',
|
|
20
|
+
activity: 'activity',
|
|
21
|
+
projects: 'projects'
|
|
22
|
+
};
|
|
23
|
+
export const GetFiltersResponseAllOfDataInnerVisibleToConst = {
|
|
24
|
+
_1: '1',
|
|
25
|
+
_3: '3',
|
|
26
|
+
_5: '5',
|
|
27
|
+
_7: '7'
|
|
28
|
+
};
|
|
@@ -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,28 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pipedrive API v1
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export const GetFiltersResponse1AllOfDataTypeConst = {
|
|
15
|
+
deals: 'deals',
|
|
16
|
+
leads: 'leads',
|
|
17
|
+
org: 'org',
|
|
18
|
+
people: 'people',
|
|
19
|
+
products: 'products',
|
|
20
|
+
activity: 'activity',
|
|
21
|
+
projects: 'projects'
|
|
22
|
+
};
|
|
23
|
+
export const GetFiltersResponse1AllOfDataVisibleToConst = {
|
|
24
|
+
_1: '1',
|
|
25
|
+
_3: '3',
|
|
26
|
+
_5: '5',
|
|
27
|
+
_7: '7'
|
|
28
|
+
};
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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
|
|
@@ -480,11 +480,11 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
480
480
|
* 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.
|
|
481
481
|
* @summary Update a person
|
|
482
482
|
* @param {number} id The ID of the person
|
|
483
|
-
* @param {
|
|
483
|
+
* @param {AddPersonRequest} [AddPersonRequest]
|
|
484
484
|
|
|
485
485
|
* @throws {RequiredError}
|
|
486
486
|
*/
|
|
487
|
-
updatePerson: (id,
|
|
487
|
+
updatePerson: (id, AddPersonRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
488
488
|
// verify required parameter 'id' is not null or undefined
|
|
489
489
|
assertParamExists('updatePerson', 'id', id);
|
|
490
490
|
const localVarPath = `/persons/{id}`
|
|
@@ -507,7 +507,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
507
507
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
508
508
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
509
509
|
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
510
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
510
|
+
localVarRequestOptions.data = serializeDataIfNeeded(AddPersonRequest, localVarRequestOptions, configuration);
|
|
511
511
|
return {
|
|
512
512
|
url: toPathString(localVarUrlObj),
|
|
513
513
|
options: localVarRequestOptions,
|
|
@@ -682,13 +682,13 @@ export const PersonsApiFp = function (configuration) {
|
|
|
682
682
|
* 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.
|
|
683
683
|
* @summary Update a person
|
|
684
684
|
* @param {number} id The ID of the person
|
|
685
|
-
* @param {
|
|
685
|
+
* @param {AddPersonRequest} [AddPersonRequest]
|
|
686
686
|
|
|
687
687
|
* @throws {RequiredError}
|
|
688
688
|
*/
|
|
689
|
-
updatePerson(id,
|
|
689
|
+
updatePerson(id, AddPersonRequest) {
|
|
690
690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
691
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePerson(id,
|
|
691
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePerson(id, AddPersonRequest);
|
|
692
692
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
693
693
|
});
|
|
694
694
|
},
|
|
@@ -809,7 +809,7 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
|
|
|
809
809
|
* @throws {RequiredError}
|
|
810
810
|
*/
|
|
811
811
|
updatePerson(requestParameters) {
|
|
812
|
-
return localVarFp.updatePerson(requestParameters.id, requestParameters.
|
|
812
|
+
return localVarFp.updatePerson(requestParameters.id, requestParameters.AddPersonRequest).then((request) => request(axios, basePath));
|
|
813
813
|
},
|
|
814
814
|
};
|
|
815
815
|
};
|
|
@@ -939,6 +939,6 @@ export class PersonsApi extends BaseAPI {
|
|
|
939
939
|
* @memberof PersonsApi
|
|
940
940
|
*/
|
|
941
941
|
updatePerson(requestParameters) {
|
|
942
|
-
return PersonsApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.
|
|
942
|
+
return PersonsApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.AddPersonRequest).then((request) => request(this.axios, this.basePath));
|
|
943
943
|
}
|
|
944
944
|
}
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -27,11 +27,12 @@ export declare const FiltersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
27
27
|
/**
|
|
28
28
|
* Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with \'AND\', and only two second level condition groups are supported of which one must be glued with \'AND\' and the second with \'OR\'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
|
|
29
29
|
* @summary Add a new filter
|
|
30
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
30
31
|
* @param {AddFilterRequest} [AddFilterRequest]
|
|
31
32
|
|
|
32
33
|
* @throws {RequiredError}
|
|
33
34
|
*/
|
|
34
|
-
addFilter: (AddFilterRequest?: AddFilterRequest) => Promise<RequestArgs>;
|
|
35
|
+
addFilter: (include_field_code?: boolean, AddFilterRequest?: AddFilterRequest) => Promise<RequestArgs>;
|
|
35
36
|
/**
|
|
36
37
|
* Marks a filter as deleted.
|
|
37
38
|
* @summary Delete a filter
|
|
@@ -52,10 +53,11 @@ export declare const FiltersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
52
53
|
* Returns data about a specific filter. Note that this also returns the condition lines of the filter.
|
|
53
54
|
* @summary Get one filter
|
|
54
55
|
* @param {number} id The ID of the filter
|
|
56
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
55
57
|
|
|
56
58
|
* @throws {RequiredError}
|
|
57
59
|
*/
|
|
58
|
-
getFilter: (id: number) => Promise<RequestArgs>;
|
|
60
|
+
getFilter: (id: number, include_field_code?: boolean) => Promise<RequestArgs>;
|
|
59
61
|
/**
|
|
60
62
|
* Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
|
|
61
63
|
* @summary Get all filter helpers
|
|
@@ -75,11 +77,12 @@ export declare const FiltersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
75
77
|
* Updates an existing filter.
|
|
76
78
|
* @summary Update filter
|
|
77
79
|
* @param {number} id The ID of the filter
|
|
80
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
78
81
|
* @param {UpdateFilterRequest} [UpdateFilterRequest]
|
|
79
82
|
|
|
80
83
|
* @throws {RequiredError}
|
|
81
84
|
*/
|
|
82
|
-
updateFilter: (id: number, UpdateFilterRequest?: UpdateFilterRequest) => Promise<RequestArgs>;
|
|
85
|
+
updateFilter: (id: number, include_field_code?: boolean, UpdateFilterRequest?: UpdateFilterRequest) => Promise<RequestArgs>;
|
|
83
86
|
};
|
|
84
87
|
/**
|
|
85
88
|
* FiltersApi - functional programming interface
|
|
@@ -89,11 +92,12 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
89
92
|
/**
|
|
90
93
|
* Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with \'AND\', and only two second level condition groups are supported of which one must be glued with \'AND\' and the second with \'OR\'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
|
|
91
94
|
* @summary Add a new filter
|
|
95
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
92
96
|
* @param {AddFilterRequest} [AddFilterRequest]
|
|
93
97
|
|
|
94
98
|
* @throws {RequiredError}
|
|
95
99
|
*/
|
|
96
|
-
addFilter(AddFilterRequest?: AddFilterRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFiltersResponse>>;
|
|
100
|
+
addFilter(include_field_code?: boolean, AddFilterRequest?: AddFilterRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFiltersResponse>>;
|
|
97
101
|
/**
|
|
98
102
|
* Marks a filter as deleted.
|
|
99
103
|
* @summary Delete a filter
|
|
@@ -114,10 +118,11 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
114
118
|
* Returns data about a specific filter. Note that this also returns the condition lines of the filter.
|
|
115
119
|
* @summary Get one filter
|
|
116
120
|
* @param {number} id The ID of the filter
|
|
121
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
117
122
|
|
|
118
123
|
* @throws {RequiredError}
|
|
119
124
|
*/
|
|
120
|
-
getFilter(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFiltersResponse1>>;
|
|
125
|
+
getFilter(id: number, include_field_code?: boolean): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFiltersResponse1>>;
|
|
121
126
|
/**
|
|
122
127
|
* Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
|
|
123
128
|
* @summary Get all filter helpers
|
|
@@ -137,11 +142,12 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
137
142
|
* Updates an existing filter.
|
|
138
143
|
* @summary Update filter
|
|
139
144
|
* @param {number} id The ID of the filter
|
|
145
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
140
146
|
* @param {UpdateFilterRequest} [UpdateFilterRequest]
|
|
141
147
|
|
|
142
148
|
* @throws {RequiredError}
|
|
143
149
|
*/
|
|
144
|
-
updateFilter(id: number, UpdateFilterRequest?: UpdateFilterRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFiltersResponse>>;
|
|
150
|
+
updateFilter(id: number, include_field_code?: boolean, UpdateFilterRequest?: UpdateFilterRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFiltersResponse>>;
|
|
145
151
|
};
|
|
146
152
|
/**
|
|
147
153
|
* FiltersApi - factory interface
|
|
@@ -210,6 +216,12 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
210
216
|
* @interface FiltersApiAddFilterRequest
|
|
211
217
|
*/
|
|
212
218
|
export interface FiltersApiAddFilterRequest {
|
|
219
|
+
/**
|
|
220
|
+
* If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
221
|
+
* @type {boolean}
|
|
222
|
+
* @memberof FiltersApiAddFilter
|
|
223
|
+
*/
|
|
224
|
+
readonly include_field_code?: boolean;
|
|
213
225
|
/**
|
|
214
226
|
*
|
|
215
227
|
* @type {AddFilterRequest}
|
|
@@ -255,6 +267,12 @@ export interface FiltersApiGetFilterRequest {
|
|
|
255
267
|
* @memberof FiltersApiGetFilter
|
|
256
268
|
*/
|
|
257
269
|
readonly id: number;
|
|
270
|
+
/**
|
|
271
|
+
* If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
272
|
+
* @type {boolean}
|
|
273
|
+
* @memberof FiltersApiGetFilter
|
|
274
|
+
*/
|
|
275
|
+
readonly include_field_code?: boolean;
|
|
258
276
|
}
|
|
259
277
|
/**
|
|
260
278
|
* Request parameters for getFilters operation in FiltersApi.
|
|
@@ -281,6 +299,12 @@ export interface FiltersApiUpdateFilterRequest {
|
|
|
281
299
|
* @memberof FiltersApiUpdateFilter
|
|
282
300
|
*/
|
|
283
301
|
readonly id: number;
|
|
302
|
+
/**
|
|
303
|
+
* If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
304
|
+
* @type {boolean}
|
|
305
|
+
* @memberof FiltersApiUpdateFilter
|
|
306
|
+
*/
|
|
307
|
+
readonly include_field_code?: boolean;
|
|
284
308
|
/**
|
|
285
309
|
*
|
|
286
310
|
* @type {UpdateFilterRequest}
|