Skip to content

Commit faacace

Browse files
Release v33.3.0 from PR #734
2 parents d0492bd + 2ccb9cb commit faacace

5 files changed

Lines changed: 38 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
88

99
## [Unreleased]
1010

11+
## [33.3.0] - 2026-05-29
12+
### Added
13+
- Added `project_id` parameter to `POST /v1/files` endpoint
14+
- Added `project_id` & `project_name` properties to responses in `/v1/files/*` endpoints
15+
1116
## [33.2.0] - 2026-05-29
1217
### Added
1318
- Added `website`, `linkedin`, `industry`, `annual_revenue`, and `employee_count` fields to v2 organization response schema (`GET /api/v2/organizations`, `GET /api/v2/organizations/{id}`) — all nullable, not included by default
@@ -1265,7 +1270,8 @@ Those fields will be formatted as "2020-07-13" instead of "2020-07-13T00:00:00.0
12651270
* Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
12661271
* Fixed typo in lead example response (`crrency` to `currency`)
12671272

1268-
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v33.2.0...HEAD
1273+
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v33.3.0...HEAD
1274+
[33.3.0]: https://github.com/pipedrive/api-docs/compare/v33.2.0...v33.3.0
12691275
[33.2.0]: https://github.com/pipedrive/api-docs/compare/v33.1.1...v33.2.0
12701276
[33.1.1]: https://github.com/pipedrive/api-docs/compare/v33.1.0...v33.1.1
12711277
[33.1.0]: https://github.com/pipedrive/api-docs/compare/v33.0.1...v33.1.0

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pipedrive",
3-
"version": "33.2.0",
3+
"version": "33.3.0",
44
"description": "Pipedrive REST client for NodeJS",
55
"license": "MIT",
66
"homepage": "https://developers.pipedrive.com",

src/versions/v1/api/files-api.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration
5151
* @param {number} [product_id] The ID of the product to associate file(s) with
5252
* @param {number} [activity_id] The ID of the activity to associate file(s) with
5353
* @param {string} [lead_id] The ID of the lead to associate file(s) with
54+
* @param {number} [project_id] The ID of the project to associate file(s) with
5455
5556
* @throws {RequiredError}
5657
*/
57-
addFile: async (file: File, deal_id?: number, person_id?: number, org_id?: number, product_id?: number, activity_id?: number, lead_id?: string, ): Promise<RequestArgs> => {
58+
addFile: async (file: File, deal_id?: number, person_id?: number, org_id?: number, product_id?: number, activity_id?: number, lead_id?: string, project_id?: number, ): Promise<RequestArgs> => {
5859
// verify required parameter 'file' is not null or undefined
5960
assertParamExists('addFile', 'file', file)
6061
const localVarPath = `/files`;
@@ -106,6 +107,10 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration
106107
localVarFormParams.append('lead_id', lead_id as any);
107108
}
108109

110+
if (project_id !== undefined) {
111+
localVarFormParams.append('project_id', project_id as any);
112+
}
113+
109114

110115
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
111116

@@ -515,11 +520,12 @@ export const FilesApiFp = function(configuration?: Configuration) {
515520
* @param {number} [product_id] The ID of the product to associate file(s) with
516521
* @param {number} [activity_id] The ID of the activity to associate file(s) with
517522
* @param {string} [lead_id] The ID of the lead to associate file(s) with
523+
* @param {number} [project_id] The ID of the project to associate file(s) with
518524
519525
* @throws {RequiredError}
520526
*/
521-
async addFile(file: File, deal_id?: number, person_id?: number, org_id?: number, product_id?: number, activity_id?: number, lead_id?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFileResponse>> {
522-
const localVarAxiosArgs = await localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, );
527+
async addFile(file: File, deal_id?: number, person_id?: number, org_id?: number, product_id?: number, activity_id?: number, lead_id?: string, project_id?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFileResponse>> {
528+
const localVarAxiosArgs = await localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id, );
523529
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
524530
},
525531
/**
@@ -628,7 +634,7 @@ export const FilesApiFactory = function (configuration?: Configuration, basePath
628634
* @throws {RequiredError}
629635
*/
630636
addFile(requestParameters: FilesApiAddFileRequest, ): Promise<AddFileResponse> {
631-
return localVarFp.addFile(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, ).then((request) => request(axios, basePath));
637+
return localVarFp.addFile(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, requestParameters.project_id, ).then((request) => request(axios, basePath));
632638
},
633639
/**
634640
* Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>.
@@ -757,6 +763,13 @@ export interface FilesApiAddFileRequest {
757763
* @memberof FilesApiAddFile
758764
*/
759765
readonly lead_id?: string
766+
767+
/**
768+
* The ID of the project to associate file(s) with
769+
* @type {number}
770+
* @memberof FilesApiAddFile
771+
*/
772+
readonly project_id?: number
760773
}
761774

762775
/**
@@ -950,7 +963,7 @@ export class FilesApi extends BaseAPI {
950963
* @memberof FilesApi
951964
*/
952965
public addFile(requestParameters: FilesApiAddFileRequest, ) {
953-
return FilesApiFp(this.configuration).addFile(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, ).then((request) => request(this.axios, this.basePath));
966+
return FilesApiFp(this.configuration).addFile(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, requestParameters.project_id, ).then((request) => request(this.axios, this.basePath));
954967
}
955968

956969
/**

src/versions/v1/models/get-files-response-data-inner.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ export interface GetFilesResponseDataInner {
6161
*/
6262
'lead_id'?: string;
6363
/**
64+
* The ID of the project to associate the file with
65+
* @type {number}
66+
*/
67+
'project_id'?: number;
68+
/**
6469
* The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS
6570
* @type {string}
6671
*/
@@ -146,6 +151,11 @@ export interface GetFilesResponseDataInner {
146151
*/
147152
'lead_name'?: string;
148153
/**
154+
* The name of the project associated with the file
155+
* @type {string}
156+
*/
157+
'project_name'?: string;
158+
/**
149159
* The URL of the download file
150160
* @type {string}
151161
*/

0 commit comments

Comments
 (0)