pipedrive 34.0.1 → 35.1.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 (77) hide show
  1. package/dist/esm/versions/v1/api/deal-fields-api.d.ts +6 -6
  2. package/dist/esm/versions/v1/api/deal-fields-api.js +5 -5
  3. package/dist/esm/versions/v1/api/deals-api.d.ts +6 -6
  4. package/dist/esm/versions/v1/api/deals-api.js +5 -5
  5. package/dist/esm/versions/v1/api/filters-api.d.ts +6 -6
  6. package/dist/esm/versions/v1/api/filters-api.js +5 -5
  7. package/dist/esm/versions/v1/api/leads-api.d.ts +10 -10
  8. package/dist/esm/versions/v1/api/leads-api.js +9 -9
  9. package/dist/esm/versions/v1/api/organization-fields-api.d.ts +6 -6
  10. package/dist/esm/versions/v1/api/organization-fields-api.js +5 -5
  11. package/dist/esm/versions/v1/api/organizations-api.d.ts +6 -6
  12. package/dist/esm/versions/v1/api/organizations-api.js +5 -5
  13. package/dist/esm/versions/v1/api/person-fields-api.d.ts +6 -6
  14. package/dist/esm/versions/v1/api/person-fields-api.js +5 -5
  15. package/dist/esm/versions/v1/api/persons-api.d.ts +6 -6
  16. package/dist/esm/versions/v1/api/persons-api.js +5 -5
  17. package/dist/esm/versions/v1/api/product-fields-api.d.ts +6 -6
  18. package/dist/esm/versions/v1/api/product-fields-api.js +5 -5
  19. package/dist/esm/versions/v1/models/lead.d.ts +5 -0
  20. package/dist/esm/versions/v1/models/update-lead-request.d.ts +5 -0
  21. package/dist/esm/versions/v2/api/beta-api.d.ts +6 -6
  22. package/dist/esm/versions/v2/api/beta-api.js +5 -5
  23. package/dist/esm/versions/v2/api/deal-products-api.d.ts +6 -6
  24. package/dist/esm/versions/v2/api/deal-products-api.js +4 -4
  25. package/dist/esm/versions/v2/api/deals-api.d.ts +26 -26
  26. package/dist/esm/versions/v2/api/deals-api.js +20 -20
  27. package/dist/esm/versions/v2/api/item-search-api.d.ts +14 -14
  28. package/dist/esm/versions/v2/api/item-search-api.js +13 -13
  29. package/dist/esm/versions/v2/api/leads-api.d.ts +10 -10
  30. package/dist/esm/versions/v2/api/leads-api.js +9 -9
  31. package/dist/esm/versions/v2/api/organizations-api.d.ts +6 -6
  32. package/dist/esm/versions/v2/api/organizations-api.js +4 -4
  33. package/dist/esm/versions/v2/api/persons-api.d.ts +10 -10
  34. package/dist/esm/versions/v2/api/persons-api.js +8 -8
  35. package/dist/esm/versions/v2/api/products-api.d.ts +10 -10
  36. package/dist/esm/versions/v2/api/products-api.js +8 -8
  37. package/dist/esm/versions/v2/api/projects-api.d.ts +6 -6
  38. package/dist/esm/versions/v2/api/projects-api.js +5 -5
  39. package/dist/versions/v1/api/deal-fields-api.d.ts +6 -6
  40. package/dist/versions/v1/api/deal-fields-api.js +4 -4
  41. package/dist/versions/v1/api/deals-api.d.ts +6 -6
  42. package/dist/versions/v1/api/deals-api.js +4 -4
  43. package/dist/versions/v1/api/filters-api.d.ts +6 -6
  44. package/dist/versions/v1/api/filters-api.js +4 -4
  45. package/dist/versions/v1/api/leads-api.d.ts +10 -10
  46. package/dist/versions/v1/api/leads-api.js +8 -8
  47. package/dist/versions/v1/api/organization-fields-api.d.ts +6 -6
  48. package/dist/versions/v1/api/organization-fields-api.js +4 -4
  49. package/dist/versions/v1/api/organizations-api.d.ts +6 -6
  50. package/dist/versions/v1/api/organizations-api.js +4 -4
  51. package/dist/versions/v1/api/person-fields-api.d.ts +6 -6
  52. package/dist/versions/v1/api/person-fields-api.js +4 -4
  53. package/dist/versions/v1/api/persons-api.d.ts +6 -6
  54. package/dist/versions/v1/api/persons-api.js +4 -4
  55. package/dist/versions/v1/api/product-fields-api.d.ts +6 -6
  56. package/dist/versions/v1/api/product-fields-api.js +4 -4
  57. package/dist/versions/v1/models/lead.d.ts +5 -0
  58. package/dist/versions/v1/models/update-lead-request.d.ts +5 -0
  59. package/dist/versions/v2/api/beta-api.d.ts +6 -6
  60. package/dist/versions/v2/api/beta-api.js +4 -4
  61. package/dist/versions/v2/api/deal-products-api.d.ts +6 -6
  62. package/dist/versions/v2/api/deal-products-api.js +4 -4
  63. package/dist/versions/v2/api/deals-api.d.ts +26 -26
  64. package/dist/versions/v2/api/deals-api.js +20 -20
  65. package/dist/versions/v2/api/item-search-api.d.ts +14 -14
  66. package/dist/versions/v2/api/item-search-api.js +12 -12
  67. package/dist/versions/v2/api/leads-api.d.ts +10 -10
  68. package/dist/versions/v2/api/leads-api.js +8 -8
  69. package/dist/versions/v2/api/organizations-api.d.ts +6 -6
  70. package/dist/versions/v2/api/organizations-api.js +4 -4
  71. package/dist/versions/v2/api/persons-api.d.ts +10 -10
  72. package/dist/versions/v2/api/persons-api.js +8 -8
  73. package/dist/versions/v2/api/products-api.d.ts +10 -10
  74. package/dist/versions/v2/api/products-api.js +8 -8
  75. package/dist/versions/v2/api/projects-api.d.ts +6 -6
  76. package/dist/versions/v2/api/projects-api.js +4 -4
  77. package/package.json +1 -1
@@ -106,7 +106,7 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
106
106
  * Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
107
107
  * @summary Search projects
108
108
  * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using &#x60;exact_match&#x60;). Please note that the search term has to be URL encoded.
109
- * @param {'custom_fields' | 'notes' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
109
+ * @param {Set<'custom_fields' | 'notes' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
110
110
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
111
111
  * @param {number} [person_id] Will filter projects by the provided person ID
112
112
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -115,7 +115,7 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
115
115
 
116
116
  * @throws {RequiredError}
117
117
  */
118
- searchProjects: (term: string, fields?: 'custom_fields' | 'notes' | 'title' | 'description', exact_match?: boolean, person_id?: number, organization_id?: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
118
+ searchProjects: (term: string, fields?: Set<'custom_fields' | 'notes' | 'title' | 'description'>, exact_match?: boolean, person_id?: number, organization_id?: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
119
119
  /**
120
120
  * Updates the properties of a project.
121
121
  * @summary Update a project
@@ -212,7 +212,7 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
212
212
  * Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
213
213
  * @summary Search projects
214
214
  * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using &#x60;exact_match&#x60;). Please note that the search term has to be URL encoded.
215
- * @param {'custom_fields' | 'notes' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
215
+ * @param {Set<'custom_fields' | 'notes' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
216
216
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
217
217
  * @param {number} [person_id] Will filter projects by the provided person ID
218
218
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -221,7 +221,7 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
221
221
 
222
222
  * @throws {RequiredError}
223
223
  */
224
- searchProjects(term: string, fields?: 'custom_fields' | 'notes' | 'title' | 'description', exact_match?: boolean, person_id?: number, organization_id?: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProjectSearchResponse>>;
224
+ searchProjects(term: string, fields?: Set<'custom_fields' | 'notes' | 'title' | 'description'>, exact_match?: boolean, person_id?: number, organization_id?: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProjectSearchResponse>>;
225
225
  /**
226
226
  * Updates the properties of a project.
227
227
  * @summary Update a project
@@ -514,10 +514,10 @@ export interface ProjectsApiSearchProjectsRequest {
514
514
  readonly term: string;
515
515
  /**
516
516
  * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
517
- * @type {'custom_fields' | 'notes' | 'title' | 'description'}
517
+ * @type {Set<'custom_fields' | 'notes' | 'title' | 'description'>}
518
518
  * @memberof ProjectsApiSearchProjects
519
519
  */
520
- readonly fields?: 'custom_fields' | 'notes' | 'title' | 'description';
520
+ readonly fields?: Set<'custom_fields' | 'notes' | 'title' | 'description'>;
521
521
  /**
522
522
  * When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
523
523
  * @type {boolean}
@@ -367,7 +367,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
367
367
  * Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
368
368
  * @summary Search projects
369
369
  * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using &#x60;exact_match&#x60;). Please note that the search term has to be URL encoded.
370
- * @param {'custom_fields' | 'notes' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
370
+ * @param {Set<'custom_fields' | 'notes' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
371
371
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
372
372
  * @param {number} [person_id] Will filter projects by the provided person ID
373
373
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -397,8 +397,8 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
397
397
  if (term !== undefined) {
398
398
  localVarQueryParameter['term'] = term;
399
399
  }
400
- if (fields !== undefined) {
401
- localVarQueryParameter['fields'] = fields;
400
+ if (fields) {
401
+ localVarQueryParameter['fields'] = Array.from(fields).join(base_1.COLLECTION_FORMATS.csv);
402
402
  }
403
403
  if (exact_match !== undefined) {
404
404
  localVarQueryParameter['exact_match'] = exact_match;
@@ -591,7 +591,7 @@ const ProjectsApiFp = function (configuration) {
591
591
  * Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
592
592
  * @summary Search projects
593
593
  * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using &#x60;exact_match&#x60;). Please note that the search term has to be URL encoded.
594
- * @param {'custom_fields' | 'notes' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
594
+ * @param {Set<'custom_fields' | 'notes' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
595
595
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
596
596
  * @param {number} [person_id] Will filter projects by the provided person ID
597
597
  * @param {number} [organization_id] Will filter projects by the provided organization ID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "34.0.1",
3
+ "version": "35.1.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "homepage": "https://developers.pipedrive.com",