pipedrive 33.2.0 → 33.3.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.
@@ -34,10 +34,11 @@ export declare const FilesApiAxiosParamCreator: (configuration?: Configuration)
34
34
  * @param {number} [product_id] The ID of the product to associate file(s) with
35
35
  * @param {number} [activity_id] The ID of the activity to associate file(s) with
36
36
  * @param {string} [lead_id] The ID of the lead to associate file(s) with
37
+ * @param {number} [project_id] The ID of the project to associate file(s) with
37
38
 
38
39
  * @throws {RequiredError}
39
40
  */
40
- addFile: (file: File, deal_id?: number, person_id?: number, org_id?: number, product_id?: number, activity_id?: number, lead_id?: string) => Promise<RequestArgs>;
41
+ 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<RequestArgs>;
41
42
  /**
42
43
  * 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>.
43
44
  * @summary Create a remote file and link it to an item
@@ -121,10 +122,11 @@ export declare const FilesApiFp: (configuration?: Configuration) => {
121
122
  * @param {number} [product_id] The ID of the product to associate file(s) with
122
123
  * @param {number} [activity_id] The ID of the activity to associate file(s) with
123
124
  * @param {string} [lead_id] The ID of the lead to associate file(s) with
125
+ * @param {number} [project_id] The ID of the project to associate file(s) with
124
126
 
125
127
  * @throws {RequiredError}
126
128
  */
127
- 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>>;
129
+ 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>>;
128
130
  /**
129
131
  * 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>.
130
132
  * @summary Create a remote file and link it to an item
@@ -311,6 +313,12 @@ export interface FilesApiAddFileRequest {
311
313
  * @memberof FilesApiAddFile
312
314
  */
313
315
  readonly lead_id?: string;
316
+ /**
317
+ * The ID of the project to associate file(s) with
318
+ * @type {number}
319
+ * @memberof FilesApiAddFile
320
+ */
321
+ readonly project_id?: number;
314
322
  }
315
323
  /**
316
324
  * Request parameters for addFileAndLinkIt operation in FilesApi.
@@ -42,10 +42,11 @@ export const FilesApiAxiosParamCreator = function (configuration) {
42
42
  * @param {number} [product_id] The ID of the product to associate file(s) with
43
43
  * @param {number} [activity_id] The ID of the activity to associate file(s) with
44
44
  * @param {string} [lead_id] The ID of the lead to associate file(s) with
45
+ * @param {number} [project_id] The ID of the project to associate file(s) with
45
46
 
46
47
  * @throws {RequiredError}
47
48
  */
48
- addFile: (file, deal_id, person_id, org_id, product_id, activity_id, lead_id) => __awaiter(this, void 0, void 0, function* () {
49
+ addFile: (file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id) => __awaiter(this, void 0, void 0, function* () {
49
50
  // verify required parameter 'file' is not null or undefined
50
51
  assertParamExists('addFile', 'file', file);
51
52
  const localVarPath = `/files`;
@@ -85,6 +86,9 @@ export const FilesApiAxiosParamCreator = function (configuration) {
85
86
  if (lead_id !== undefined) {
86
87
  localVarFormParams.append('lead_id', lead_id);
87
88
  }
89
+ if (project_id !== undefined) {
90
+ localVarFormParams.append('project_id', project_id);
91
+ }
88
92
  localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
89
93
  setSearchParams(localVarUrlObj, localVarQueryParameter);
90
94
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -423,12 +427,13 @@ export const FilesApiFp = function (configuration) {
423
427
  * @param {number} [product_id] The ID of the product to associate file(s) with
424
428
  * @param {number} [activity_id] The ID of the activity to associate file(s) with
425
429
  * @param {string} [lead_id] The ID of the lead to associate file(s) with
430
+ * @param {number} [project_id] The ID of the project to associate file(s) with
426
431
 
427
432
  * @throws {RequiredError}
428
433
  */
429
- addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id) {
434
+ addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id) {
430
435
  return __awaiter(this, void 0, void 0, function* () {
431
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id);
436
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id);
432
437
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
433
438
  });
434
439
  },
@@ -551,7 +556,7 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
551
556
  * @throws {RequiredError}
552
557
  */
553
558
  addFile(requestParameters) {
554
- 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));
559
+ 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));
555
560
  },
556
561
  /**
557
562
  * 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>.
@@ -641,7 +646,7 @@ export class FilesApi extends BaseAPI {
641
646
  * @memberof FilesApi
642
647
  */
643
648
  addFile(requestParameters) {
644
- 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));
649
+ 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));
645
650
  }
646
651
  /**
647
652
  * 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>.
@@ -56,6 +56,11 @@ export interface GetFilesResponseDataInner {
56
56
  */
57
57
  'lead_id'?: string;
58
58
  /**
59
+ * The ID of the project to associate the file with
60
+ * @type {number}
61
+ */
62
+ 'project_id'?: number;
63
+ /**
59
64
  * The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS
60
65
  * @type {string}
61
66
  */
@@ -141,6 +146,11 @@ export interface GetFilesResponseDataInner {
141
146
  */
142
147
  'lead_name'?: string;
143
148
  /**
149
+ * The name of the project associated with the file
150
+ * @type {string}
151
+ */
152
+ 'project_name'?: string;
153
+ /**
144
154
  * The URL of the download file
145
155
  * @type {string}
146
156
  */
@@ -34,10 +34,11 @@ export declare const FilesApiAxiosParamCreator: (configuration?: Configuration)
34
34
  * @param {number} [product_id] The ID of the product to associate file(s) with
35
35
  * @param {number} [activity_id] The ID of the activity to associate file(s) with
36
36
  * @param {string} [lead_id] The ID of the lead to associate file(s) with
37
+ * @param {number} [project_id] The ID of the project to associate file(s) with
37
38
 
38
39
  * @throws {RequiredError}
39
40
  */
40
- addFile: (file: File, deal_id?: number, person_id?: number, org_id?: number, product_id?: number, activity_id?: number, lead_id?: string) => Promise<RequestArgs>;
41
+ 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<RequestArgs>;
41
42
  /**
42
43
  * 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>.
43
44
  * @summary Create a remote file and link it to an item
@@ -121,10 +122,11 @@ export declare const FilesApiFp: (configuration?: Configuration) => {
121
122
  * @param {number} [product_id] The ID of the product to associate file(s) with
122
123
  * @param {number} [activity_id] The ID of the activity to associate file(s) with
123
124
  * @param {string} [lead_id] The ID of the lead to associate file(s) with
125
+ * @param {number} [project_id] The ID of the project to associate file(s) with
124
126
 
125
127
  * @throws {RequiredError}
126
128
  */
127
- 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>>;
129
+ 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>>;
128
130
  /**
129
131
  * 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>.
130
132
  * @summary Create a remote file and link it to an item
@@ -311,6 +313,12 @@ export interface FilesApiAddFileRequest {
311
313
  * @memberof FilesApiAddFile
312
314
  */
313
315
  readonly lead_id?: string;
316
+ /**
317
+ * The ID of the project to associate file(s) with
318
+ * @type {number}
319
+ * @memberof FilesApiAddFile
320
+ */
321
+ readonly project_id?: number;
314
322
  }
315
323
  /**
316
324
  * Request parameters for addFileAndLinkIt operation in FilesApi.
@@ -48,10 +48,11 @@ const FilesApiAxiosParamCreator = function (configuration) {
48
48
  * @param {number} [product_id] The ID of the product to associate file(s) with
49
49
  * @param {number} [activity_id] The ID of the activity to associate file(s) with
50
50
  * @param {string} [lead_id] The ID of the lead to associate file(s) with
51
+ * @param {number} [project_id] The ID of the project to associate file(s) with
51
52
 
52
53
  * @throws {RequiredError}
53
54
  */
54
- addFile: (file, deal_id, person_id, org_id, product_id, activity_id, lead_id) => __awaiter(this, void 0, void 0, function* () {
55
+ addFile: (file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id) => __awaiter(this, void 0, void 0, function* () {
55
56
  // verify required parameter 'file' is not null or undefined
56
57
  (0, common_1.assertParamExists)('addFile', 'file', file);
57
58
  const localVarPath = `/files`;
@@ -91,6 +92,9 @@ const FilesApiAxiosParamCreator = function (configuration) {
91
92
  if (lead_id !== undefined) {
92
93
  localVarFormParams.append('lead_id', lead_id);
93
94
  }
95
+ if (project_id !== undefined) {
96
+ localVarFormParams.append('project_id', project_id);
97
+ }
94
98
  localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
95
99
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
96
100
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -430,12 +434,13 @@ const FilesApiFp = function (configuration) {
430
434
  * @param {number} [product_id] The ID of the product to associate file(s) with
431
435
  * @param {number} [activity_id] The ID of the activity to associate file(s) with
432
436
  * @param {string} [lead_id] The ID of the lead to associate file(s) with
437
+ * @param {number} [project_id] The ID of the project to associate file(s) with
433
438
 
434
439
  * @throws {RequiredError}
435
440
  */
436
- addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id) {
441
+ addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id) {
437
442
  return __awaiter(this, void 0, void 0, function* () {
438
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id);
443
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id);
439
444
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
440
445
  });
441
446
  },
@@ -559,7 +564,7 @@ const FilesApiFactory = function (configuration, basePath, axios) {
559
564
  * @throws {RequiredError}
560
565
  */
561
566
  addFile(requestParameters) {
562
- 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));
567
+ 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));
563
568
  },
564
569
  /**
565
570
  * 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>.
@@ -650,7 +655,7 @@ class FilesApi extends base_1.BaseAPI {
650
655
  * @memberof FilesApi
651
656
  */
652
657
  addFile(requestParameters) {
653
- return (0, exports.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));
658
+ return (0, exports.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));
654
659
  }
655
660
  /**
656
661
  * 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>.
@@ -56,6 +56,11 @@ export interface GetFilesResponseDataInner {
56
56
  */
57
57
  'lead_id'?: string;
58
58
  /**
59
+ * The ID of the project to associate the file with
60
+ * @type {number}
61
+ */
62
+ 'project_id'?: number;
63
+ /**
59
64
  * The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS
60
65
  * @type {string}
61
66
  */
@@ -141,6 +146,11 @@ export interface GetFilesResponseDataInner {
141
146
  */
142
147
  'lead_name'?: string;
143
148
  /**
149
+ * The name of the project associated with the file
150
+ * @type {string}
151
+ */
152
+ 'project_name'?: string;
153
+ /**
144
154
  * The URL of the download file
145
155
  * @type {string}
146
156
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "33.2.0",
3
+ "version": "33.3.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "homepage": "https://developers.pipedrive.com",