pipedrive 30.8.0 → 30.9.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.
Files changed (25) hide show
  1. package/dist/esm/versions/v2/api/persons-api.d.ts +47 -0
  2. package/dist/esm/versions/v2/api/persons-api.js +68 -0
  3. package/dist/esm/versions/v2/models/get-person-picture-response-data-pictures.d.ts +28 -0
  4. package/dist/esm/versions/v2/models/get-person-picture-response-data-pictures.js +14 -0
  5. package/dist/esm/versions/v2/models/get-person-picture-response-data.d.ts +54 -0
  6. package/dist/esm/versions/v2/models/get-person-picture-response-data.js +14 -0
  7. package/dist/esm/versions/v2/models/get-person-picture-response.d.ts +29 -0
  8. package/dist/esm/versions/v2/models/get-person-picture-response.js +14 -0
  9. package/dist/esm/versions/v2/models/get-pipelines-response-all-of-data-inner.d.ts +0 -5
  10. package/dist/esm/versions/v2/models/index.d.ts +3 -0
  11. package/dist/esm/versions/v2/models/index.js +3 -0
  12. package/dist/esm/versions/v2/models/upsert-pipeline-response-data-data.d.ts +0 -5
  13. package/dist/versions/v2/api/persons-api.d.ts +47 -0
  14. package/dist/versions/v2/api/persons-api.js +68 -0
  15. package/dist/versions/v2/models/get-person-picture-response-data-pictures.d.ts +28 -0
  16. package/dist/versions/v2/models/get-person-picture-response-data-pictures.js +15 -0
  17. package/dist/versions/v2/models/get-person-picture-response-data.d.ts +54 -0
  18. package/dist/versions/v2/models/get-person-picture-response-data.js +15 -0
  19. package/dist/versions/v2/models/get-person-picture-response.d.ts +29 -0
  20. package/dist/versions/v2/models/get-person-picture-response.js +15 -0
  21. package/dist/versions/v2/models/get-pipelines-response-all-of-data-inner.d.ts +0 -5
  22. package/dist/versions/v2/models/index.d.ts +3 -0
  23. package/dist/versions/v2/models/index.js +3 -0
  24. package/dist/versions/v2/models/upsert-pipeline-response-data-data.d.ts +0 -5
  25. package/package.json +1 -1
@@ -19,6 +19,7 @@ import { DeleteFollowerResponse } from '../models';
19
19
  import { DeletePersonResponse } from '../models';
20
20
  import { GetFollowerChangelogsResponse } from '../models';
21
21
  import { GetFollowersResponse } from '../models';
22
+ import { GetPersonPictureResponse } from '../models';
22
23
  import { GetPersonSearchResponse } from '../models';
23
24
  import { GetPersonsResponse } from '../models';
24
25
  import { UpdatePersonRequest } from '../models';
@@ -92,6 +93,14 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
92
93
  * @throws {RequiredError}
93
94
  */
94
95
  getPersonFollowersChangelog: (id: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
96
+ /**
97
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
98
+ * @summary Get picture of a person
99
+ * @param {number} id The ID of the person
100
+
101
+ * @throws {RequiredError}
102
+ */
103
+ getPersonPicture: (id: number) => Promise<RequestArgs>;
95
104
  /**
96
105
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
97
106
  * @summary Get all persons
@@ -205,6 +214,14 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
205
214
  * @throws {RequiredError}
206
215
  */
207
216
  getPersonFollowersChangelog(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFollowerChangelogsResponse>>;
217
+ /**
218
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
219
+ * @summary Get picture of a person
220
+ * @param {number} id The ID of the person
221
+
222
+ * @throws {RequiredError}
223
+ */
224
+ getPersonPicture(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonPictureResponse>>;
208
225
  /**
209
226
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
210
227
  * @summary Get all persons
@@ -310,6 +327,14 @@ export declare const PersonsApiFactory: (configuration?: Configuration, basePath
310
327
  * @throws {RequiredError}
311
328
  */
312
329
  getPersonFollowersChangelog(requestParameters: PersonsApiGetPersonFollowersChangelogRequest): Promise<GetFollowerChangelogsResponse>;
330
+ /**
331
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
332
+ * @summary Get picture of a person
333
+ * @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
334
+
335
+ * @throws {RequiredError}
336
+ */
337
+ getPersonPicture(requestParameters: PersonsApiGetPersonPictureRequest): Promise<GetPersonPictureResponse>;
313
338
  /**
314
339
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
315
340
  * @summary Get all persons
@@ -474,6 +499,19 @@ export interface PersonsApiGetPersonFollowersChangelogRequest {
474
499
  */
475
500
  readonly cursor?: string;
476
501
  }
502
+ /**
503
+ * Request parameters for getPersonPicture operation in PersonsApi.
504
+ * @export
505
+ * @interface PersonsApiGetPersonPictureRequest
506
+ */
507
+ export interface PersonsApiGetPersonPictureRequest {
508
+ /**
509
+ * The ID of the person
510
+ * @type {number}
511
+ * @memberof PersonsApiGetPersonPicture
512
+ */
513
+ readonly id: number;
514
+ }
477
515
  /**
478
516
  * Request parameters for getPersons operation in PersonsApi.
479
517
  * @export
@@ -697,6 +735,15 @@ export declare class PersonsApi extends BaseAPI {
697
735
  * @memberof PersonsApi
698
736
  */
699
737
  getPersonFollowersChangelog(requestParameters: PersonsApiGetPersonFollowersChangelogRequest): Promise<GetFollowerChangelogsResponse>;
738
+ /**
739
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
740
+ * @summary Get picture of a person
741
+ * @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
742
+
743
+ * @throws {RequiredError}
744
+ * @memberof PersonsApi
745
+ */
746
+ getPersonPicture(requestParameters: PersonsApiGetPersonPictureRequest): Promise<GetPersonPictureResponse>;
700
747
  /**
701
748
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
702
749
  * @summary Get all persons
@@ -300,6 +300,40 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
300
300
  options: localVarRequestOptions,
301
301
  };
302
302
  }),
303
+ /**
304
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
305
+ * @summary Get picture of a person
306
+ * @param {number} id The ID of the person
307
+
308
+ * @throws {RequiredError}
309
+ */
310
+ getPersonPicture: (id) => __awaiter(this, void 0, void 0, function* () {
311
+ // verify required parameter 'id' is not null or undefined
312
+ assertParamExists('getPersonPicture', 'id', id);
313
+ const localVarPath = `/persons/{id}/picture`
314
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
316
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
317
+ let baseOptions;
318
+ if (configuration) {
319
+ baseOptions = configuration.baseOptions;
320
+ }
321
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
322
+ const localVarHeaderParameter = {};
323
+ const localVarQueryParameter = {};
324
+ // authentication api_key required
325
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
326
+ // authentication oauth2 required
327
+ // oauth required
328
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
329
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
330
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
331
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
332
+ return {
333
+ url: toPathString(localVarUrlObj),
334
+ options: localVarRequestOptions,
335
+ };
336
+ }),
303
337
  /**
304
338
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
305
339
  * @summary Get all persons
@@ -587,6 +621,19 @@ export const PersonsApiFp = function (configuration) {
587
621
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
588
622
  });
589
623
  },
624
+ /**
625
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
626
+ * @summary Get picture of a person
627
+ * @param {number} id The ID of the person
628
+
629
+ * @throws {RequiredError}
630
+ */
631
+ getPersonPicture(id) {
632
+ return __awaiter(this, void 0, void 0, function* () {
633
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPersonPicture(id);
634
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
635
+ });
636
+ },
590
637
  /**
591
638
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
592
639
  * @summary Get all persons
@@ -724,6 +771,16 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
724
771
  getPersonFollowersChangelog(requestParameters) {
725
772
  return localVarFp.getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
726
773
  },
774
+ /**
775
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
776
+ * @summary Get picture of a person
777
+ * @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
778
+
779
+ * @throws {RequiredError}
780
+ */
781
+ getPersonPicture(requestParameters) {
782
+ return localVarFp.getPersonPicture(requestParameters.id).then((request) => request(axios, basePath));
783
+ },
727
784
  /**
728
785
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
729
786
  * @summary Get all persons
@@ -840,6 +897,17 @@ export class PersonsApi extends BaseAPI {
840
897
  getPersonFollowersChangelog(requestParameters) {
841
898
  return PersonsApiFp(this.configuration).getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
842
899
  }
900
+ /**
901
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
902
+ * @summary Get picture of a person
903
+ * @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
904
+
905
+ * @throws {RequiredError}
906
+ * @memberof PersonsApi
907
+ */
908
+ getPersonPicture(requestParameters) {
909
+ return PersonsApiFp(this.configuration).getPersonPicture(requestParameters.id).then((request) => request(this.axios, this.basePath));
910
+ }
843
911
  /**
844
912
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
845
913
  * @summary Get all persons
@@ -0,0 +1,28 @@
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
+ /**
13
+ * Picture URLs indexed by size.
14
+ * @export
15
+ * @interface GetPersonPictureResponseDataPictures
16
+ */
17
+ export interface GetPersonPictureResponseDataPictures {
18
+ /**
19
+ * The URL of the 128x128 picture.
20
+ * @type {string}
21
+ */
22
+ '128'?: string;
23
+ /**
24
+ * The URL of the 512x512 picture.
25
+ * @type {string}
26
+ */
27
+ '512'?: string;
28
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pipedrive API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.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 {};
@@ -0,0 +1,54 @@
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 { GetPersonPictureResponseDataPictures } from './get-person-picture-response-data-pictures';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetPersonPictureResponseData
17
+ */
18
+ export interface GetPersonPictureResponseData {
19
+ /**
20
+ * The ID of the picture.
21
+ * @type {number}
22
+ */
23
+ 'id'?: number;
24
+ /**
25
+ * The type of item the picture is associated with.
26
+ * @type {string}
27
+ */
28
+ 'item_type'?: string;
29
+ /**
30
+ * The ID of the person this picture belongs to.
31
+ * @type {number}
32
+ */
33
+ 'item_id'?: number;
34
+ /**
35
+ * The ID of the user who added the picture.
36
+ * @type {number}
37
+ */
38
+ 'added_by_user_id'?: number;
39
+ /**
40
+ * Whether the picture is active or not.
41
+ * @type {boolean}
42
+ */
43
+ 'active_flag'?: boolean;
44
+ /**
45
+ * The file size in bytes.
46
+ * @type {number}
47
+ */
48
+ 'file_size'?: number;
49
+ /**
50
+ *
51
+ * @type {GetPersonPictureResponseDataPictures}
52
+ */
53
+ 'pictures'?: GetPersonPictureResponseDataPictures;
54
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pipedrive API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.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 {};
@@ -0,0 +1,29 @@
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 { GetPersonPictureResponseData } from './get-person-picture-response-data';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetPersonPictureResponse
17
+ */
18
+ export interface GetPersonPictureResponse {
19
+ /**
20
+ * If the response is successful or not
21
+ * @type {boolean}
22
+ */
23
+ 'success'?: boolean;
24
+ /**
25
+ *
26
+ * @type {GetPersonPictureResponseData}
27
+ */
28
+ 'data'?: GetPersonPictureResponseData;
29
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pipedrive API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.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 {};
@@ -31,11 +31,6 @@ export interface GetPipelinesResponseAllOfDataInner {
31
31
  */
32
32
  'order_nr'?: number;
33
33
  /**
34
- * Whether this pipeline is selected or not
35
- * @type {boolean}
36
- */
37
- 'is_selected'?: boolean;
38
- /**
39
34
  * Whether this pipeline is marked as deleted or not
40
35
  * @type {boolean}
41
36
  */
@@ -170,6 +170,9 @@ export * from './get-person-fields200-response-data-inner-important-fields';
170
170
  export * from './get-person-fields200-response-data-inner-required-fields';
171
171
  export * from './get-person-fields200-response-data-inner-ui-visibility';
172
172
  export * from './get-person-fields200-response-data-inner-ui-visibility-show-in-add-deal-dialog';
173
+ export * from './get-person-picture-response';
174
+ export * from './get-person-picture-response-data';
175
+ export * from './get-person-picture-response-data-pictures';
173
176
  export * from './get-person-search-response';
174
177
  export * from './get-person-search-response-all-of';
175
178
  export * from './get-person-search-response-all-of-data';
@@ -170,6 +170,9 @@ export * from './get-person-fields200-response-data-inner-important-fields';
170
170
  export * from './get-person-fields200-response-data-inner-required-fields';
171
171
  export * from './get-person-fields200-response-data-inner-ui-visibility';
172
172
  export * from './get-person-fields200-response-data-inner-ui-visibility-show-in-add-deal-dialog';
173
+ export * from './get-person-picture-response';
174
+ export * from './get-person-picture-response-data';
175
+ export * from './get-person-picture-response-data-pictures';
173
176
  export * from './get-person-search-response';
174
177
  export * from './get-person-search-response-all-of';
175
178
  export * from './get-person-search-response-all-of-data';
@@ -31,11 +31,6 @@ export interface UpsertPipelineResponseDataData {
31
31
  */
32
32
  'order_nr'?: number;
33
33
  /**
34
- * Whether this pipeline is selected or not
35
- * @type {boolean}
36
- */
37
- 'is_selected'?: boolean;
38
- /**
39
34
  * Whether this pipeline is marked as deleted or not
40
35
  * @type {boolean}
41
36
  */
@@ -19,6 +19,7 @@ import { DeleteFollowerResponse } from '../models';
19
19
  import { DeletePersonResponse } from '../models';
20
20
  import { GetFollowerChangelogsResponse } from '../models';
21
21
  import { GetFollowersResponse } from '../models';
22
+ import { GetPersonPictureResponse } from '../models';
22
23
  import { GetPersonSearchResponse } from '../models';
23
24
  import { GetPersonsResponse } from '../models';
24
25
  import { UpdatePersonRequest } from '../models';
@@ -92,6 +93,14 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
92
93
  * @throws {RequiredError}
93
94
  */
94
95
  getPersonFollowersChangelog: (id: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
96
+ /**
97
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
98
+ * @summary Get picture of a person
99
+ * @param {number} id The ID of the person
100
+
101
+ * @throws {RequiredError}
102
+ */
103
+ getPersonPicture: (id: number) => Promise<RequestArgs>;
95
104
  /**
96
105
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
97
106
  * @summary Get all persons
@@ -205,6 +214,14 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
205
214
  * @throws {RequiredError}
206
215
  */
207
216
  getPersonFollowersChangelog(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFollowerChangelogsResponse>>;
217
+ /**
218
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
219
+ * @summary Get picture of a person
220
+ * @param {number} id The ID of the person
221
+
222
+ * @throws {RequiredError}
223
+ */
224
+ getPersonPicture(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonPictureResponse>>;
208
225
  /**
209
226
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
210
227
  * @summary Get all persons
@@ -310,6 +327,14 @@ export declare const PersonsApiFactory: (configuration?: Configuration, basePath
310
327
  * @throws {RequiredError}
311
328
  */
312
329
  getPersonFollowersChangelog(requestParameters: PersonsApiGetPersonFollowersChangelogRequest): Promise<GetFollowerChangelogsResponse>;
330
+ /**
331
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
332
+ * @summary Get picture of a person
333
+ * @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
334
+
335
+ * @throws {RequiredError}
336
+ */
337
+ getPersonPicture(requestParameters: PersonsApiGetPersonPictureRequest): Promise<GetPersonPictureResponse>;
313
338
  /**
314
339
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
315
340
  * @summary Get all persons
@@ -474,6 +499,19 @@ export interface PersonsApiGetPersonFollowersChangelogRequest {
474
499
  */
475
500
  readonly cursor?: string;
476
501
  }
502
+ /**
503
+ * Request parameters for getPersonPicture operation in PersonsApi.
504
+ * @export
505
+ * @interface PersonsApiGetPersonPictureRequest
506
+ */
507
+ export interface PersonsApiGetPersonPictureRequest {
508
+ /**
509
+ * The ID of the person
510
+ * @type {number}
511
+ * @memberof PersonsApiGetPersonPicture
512
+ */
513
+ readonly id: number;
514
+ }
477
515
  /**
478
516
  * Request parameters for getPersons operation in PersonsApi.
479
517
  * @export
@@ -697,6 +735,15 @@ export declare class PersonsApi extends BaseAPI {
697
735
  * @memberof PersonsApi
698
736
  */
699
737
  getPersonFollowersChangelog(requestParameters: PersonsApiGetPersonFollowersChangelogRequest): Promise<GetFollowerChangelogsResponse>;
738
+ /**
739
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
740
+ * @summary Get picture of a person
741
+ * @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
742
+
743
+ * @throws {RequiredError}
744
+ * @memberof PersonsApi
745
+ */
746
+ getPersonPicture(requestParameters: PersonsApiGetPersonPictureRequest): Promise<GetPersonPictureResponse>;
700
747
  /**
701
748
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
702
749
  * @summary Get all persons
@@ -306,6 +306,40 @@ const PersonsApiAxiosParamCreator = function (configuration) {
306
306
  options: localVarRequestOptions,
307
307
  };
308
308
  }),
309
+ /**
310
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
311
+ * @summary Get picture of a person
312
+ * @param {number} id The ID of the person
313
+
314
+ * @throws {RequiredError}
315
+ */
316
+ getPersonPicture: (id) => __awaiter(this, void 0, void 0, function* () {
317
+ // verify required parameter 'id' is not null or undefined
318
+ (0, common_1.assertParamExists)('getPersonPicture', 'id', id);
319
+ const localVarPath = `/persons/{id}/picture`
320
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
322
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
323
+ let baseOptions;
324
+ if (configuration) {
325
+ baseOptions = configuration.baseOptions;
326
+ }
327
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
328
+ const localVarHeaderParameter = {};
329
+ const localVarQueryParameter = {};
330
+ // authentication api_key required
331
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
332
+ // authentication oauth2 required
333
+ // oauth required
334
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
335
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
338
+ return {
339
+ url: (0, common_1.toPathString)(localVarUrlObj),
340
+ options: localVarRequestOptions,
341
+ };
342
+ }),
309
343
  /**
310
344
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
311
345
  * @summary Get all persons
@@ -594,6 +628,19 @@ const PersonsApiFp = function (configuration) {
594
628
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
595
629
  });
596
630
  },
631
+ /**
632
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
633
+ * @summary Get picture of a person
634
+ * @param {number} id The ID of the person
635
+
636
+ * @throws {RequiredError}
637
+ */
638
+ getPersonPicture(id) {
639
+ return __awaiter(this, void 0, void 0, function* () {
640
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPersonPicture(id);
641
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
642
+ });
643
+ },
597
644
  /**
598
645
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
599
646
  * @summary Get all persons
@@ -732,6 +779,16 @@ const PersonsApiFactory = function (configuration, basePath, axios) {
732
779
  getPersonFollowersChangelog(requestParameters) {
733
780
  return localVarFp.getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
734
781
  },
782
+ /**
783
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
784
+ * @summary Get picture of a person
785
+ * @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
786
+
787
+ * @throws {RequiredError}
788
+ */
789
+ getPersonPicture(requestParameters) {
790
+ return localVarFp.getPersonPicture(requestParameters.id).then((request) => request(axios, basePath));
791
+ },
735
792
  /**
736
793
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
737
794
  * @summary Get all persons
@@ -849,6 +906,17 @@ class PersonsApi extends base_1.BaseAPI {
849
906
  getPersonFollowersChangelog(requestParameters) {
850
907
  return (0, exports.PersonsApiFp)(this.configuration).getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
851
908
  }
909
+ /**
910
+ * Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions.
911
+ * @summary Get picture of a person
912
+ * @param {PersonsApiGetPersonPictureRequest} requestParameters Request parameters.
913
+
914
+ * @throws {RequiredError}
915
+ * @memberof PersonsApi
916
+ */
917
+ getPersonPicture(requestParameters) {
918
+ return (0, exports.PersonsApiFp)(this.configuration).getPersonPicture(requestParameters.id).then((request) => request(this.axios, this.basePath));
919
+ }
852
920
  /**
853
921
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
854
922
  * @summary Get all persons
@@ -0,0 +1,28 @@
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
+ /**
13
+ * Picture URLs indexed by size.
14
+ * @export
15
+ * @interface GetPersonPictureResponseDataPictures
16
+ */
17
+ export interface GetPersonPictureResponseDataPictures {
18
+ /**
19
+ * The URL of the 128x128 picture.
20
+ * @type {string}
21
+ */
22
+ '128'?: string;
23
+ /**
24
+ * The URL of the 512x512 picture.
25
+ * @type {string}
26
+ */
27
+ '512'?: string;
28
+ }
@@ -0,0 +1,15 @@
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 });
@@ -0,0 +1,54 @@
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 { GetPersonPictureResponseDataPictures } from './get-person-picture-response-data-pictures';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetPersonPictureResponseData
17
+ */
18
+ export interface GetPersonPictureResponseData {
19
+ /**
20
+ * The ID of the picture.
21
+ * @type {number}
22
+ */
23
+ 'id'?: number;
24
+ /**
25
+ * The type of item the picture is associated with.
26
+ * @type {string}
27
+ */
28
+ 'item_type'?: string;
29
+ /**
30
+ * The ID of the person this picture belongs to.
31
+ * @type {number}
32
+ */
33
+ 'item_id'?: number;
34
+ /**
35
+ * The ID of the user who added the picture.
36
+ * @type {number}
37
+ */
38
+ 'added_by_user_id'?: number;
39
+ /**
40
+ * Whether the picture is active or not.
41
+ * @type {boolean}
42
+ */
43
+ 'active_flag'?: boolean;
44
+ /**
45
+ * The file size in bytes.
46
+ * @type {number}
47
+ */
48
+ 'file_size'?: number;
49
+ /**
50
+ *
51
+ * @type {GetPersonPictureResponseDataPictures}
52
+ */
53
+ 'pictures'?: GetPersonPictureResponseDataPictures;
54
+ }
@@ -0,0 +1,15 @@
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 });
@@ -0,0 +1,29 @@
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 { GetPersonPictureResponseData } from './get-person-picture-response-data';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetPersonPictureResponse
17
+ */
18
+ export interface GetPersonPictureResponse {
19
+ /**
20
+ * If the response is successful or not
21
+ * @type {boolean}
22
+ */
23
+ 'success'?: boolean;
24
+ /**
25
+ *
26
+ * @type {GetPersonPictureResponseData}
27
+ */
28
+ 'data'?: GetPersonPictureResponseData;
29
+ }
@@ -0,0 +1,15 @@
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 });
@@ -31,11 +31,6 @@ export interface GetPipelinesResponseAllOfDataInner {
31
31
  */
32
32
  'order_nr'?: number;
33
33
  /**
34
- * Whether this pipeline is selected or not
35
- * @type {boolean}
36
- */
37
- 'is_selected'?: boolean;
38
- /**
39
34
  * Whether this pipeline is marked as deleted or not
40
35
  * @type {boolean}
41
36
  */
@@ -170,6 +170,9 @@ export * from './get-person-fields200-response-data-inner-important-fields';
170
170
  export * from './get-person-fields200-response-data-inner-required-fields';
171
171
  export * from './get-person-fields200-response-data-inner-ui-visibility';
172
172
  export * from './get-person-fields200-response-data-inner-ui-visibility-show-in-add-deal-dialog';
173
+ export * from './get-person-picture-response';
174
+ export * from './get-person-picture-response-data';
175
+ export * from './get-person-picture-response-data-pictures';
173
176
  export * from './get-person-search-response';
174
177
  export * from './get-person-search-response-all-of';
175
178
  export * from './get-person-search-response-all-of-data';
@@ -186,6 +186,9 @@ __exportStar(require("./get-person-fields200-response-data-inner-important-field
186
186
  __exportStar(require("./get-person-fields200-response-data-inner-required-fields"), exports);
187
187
  __exportStar(require("./get-person-fields200-response-data-inner-ui-visibility"), exports);
188
188
  __exportStar(require("./get-person-fields200-response-data-inner-ui-visibility-show-in-add-deal-dialog"), exports);
189
+ __exportStar(require("./get-person-picture-response"), exports);
190
+ __exportStar(require("./get-person-picture-response-data"), exports);
191
+ __exportStar(require("./get-person-picture-response-data-pictures"), exports);
189
192
  __exportStar(require("./get-person-search-response"), exports);
190
193
  __exportStar(require("./get-person-search-response-all-of"), exports);
191
194
  __exportStar(require("./get-person-search-response-all-of-data"), exports);
@@ -31,11 +31,6 @@ export interface UpsertPipelineResponseDataData {
31
31
  */
32
32
  'order_nr'?: number;
33
33
  /**
34
- * Whether this pipeline is selected or not
35
- * @type {boolean}
36
- */
37
- 'is_selected'?: boolean;
38
- /**
39
34
  * Whether this pipeline is marked as deleted or not
40
35
  * @type {boolean}
41
36
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "30.8.0",
3
+ "version": "30.9.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "homepage": "https://developers.pipedrive.com",