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
@@ -129,16 +129,16 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
129
129
  * Searches all persons by name, email, phone, 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 persons can be filtered by organization ID.
130
130
  * @summary Search persons
131
131
  * @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.
132
- * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [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;.
132
+ * @param {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>} [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;.
133
133
  * @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.
134
134
  * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
135
- * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default
135
+ * @param {Set<'person.picture'>} [include_fields] Supports including optional fields in the results which are not provided by default
136
136
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
137
137
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
138
138
 
139
139
  * @throws {RequiredError}
140
140
  */
141
- searchPersons: (term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string) => Promise<RequestArgs>;
141
+ searchPersons: (term: string, fields?: Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>, exact_match?: boolean, organization_id?: number, include_fields?: Set<'person.picture'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
142
142
  /**
143
143
  * 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. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.
144
144
  * @summary Update a person
@@ -254,16 +254,16 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
254
254
  * Searches all persons by name, email, phone, 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 persons can be filtered by organization ID.
255
255
  * @summary Search persons
256
256
  * @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.
257
- * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [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;.
257
+ * @param {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>} [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;.
258
258
  * @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.
259
259
  * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
260
- * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default
260
+ * @param {Set<'person.picture'>} [include_fields] Supports including optional fields in the results which are not provided by default
261
261
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
262
262
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
263
263
 
264
264
  * @throws {RequiredError}
265
265
  */
266
- searchPersons(term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonSearchResponse>>;
266
+ searchPersons(term: string, fields?: Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>, exact_match?: boolean, organization_id?: number, include_fields?: Set<'person.picture'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonSearchResponse>>;
267
267
  /**
268
268
  * 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. <br>The `im`, `postal_address`, `notes`, `birthday` and `job_title` fields don\'t exist by default in Pipedrive and are only created when you set up your contact sync — attempting to set any of them without contact sync enabled returns a 403.
269
269
  * @summary Update a person
@@ -643,10 +643,10 @@ export interface PersonsApiSearchPersonsRequest {
643
643
  readonly term: string;
644
644
  /**
645
645
  * 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;.
646
- * @type {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'}
646
+ * @type {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>}
647
647
  * @memberof PersonsApiSearchPersons
648
648
  */
649
- readonly fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name';
649
+ readonly fields?: Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>;
650
650
  /**
651
651
  * When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
652
652
  * @type {boolean}
@@ -661,10 +661,10 @@ export interface PersonsApiSearchPersonsRequest {
661
661
  readonly organization_id?: number;
662
662
  /**
663
663
  * Supports including optional fields in the results which are not provided by default
664
- * @type {'person.picture'}
664
+ * @type {Set<'person.picture'>}
665
665
  * @memberof PersonsApiSearchPersons
666
666
  */
667
- readonly include_fields?: 'person.picture';
667
+ readonly include_fields?: Set<'person.picture'>;
668
668
  /**
669
669
  * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
670
670
  * @type {number}
@@ -436,10 +436,10 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
436
436
  * Searches all persons by name, email, phone, 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 persons can be filtered by organization ID.
437
437
  * @summary Search persons
438
438
  * @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.
439
- * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [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;.
439
+ * @param {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>} [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;.
440
440
  * @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.
441
441
  * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
442
- * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default
442
+ * @param {Set<'person.picture'>} [include_fields] Supports including optional fields in the results which are not provided by default
443
443
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
444
444
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
445
445
 
@@ -466,8 +466,8 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
466
466
  if (term !== undefined) {
467
467
  localVarQueryParameter['term'] = term;
468
468
  }
469
- if (fields !== undefined) {
470
- localVarQueryParameter['fields'] = fields;
469
+ if (fields) {
470
+ localVarQueryParameter['fields'] = Array.from(fields).join(COLLECTION_FORMATS.csv);
471
471
  }
472
472
  if (exact_match !== undefined) {
473
473
  localVarQueryParameter['exact_match'] = exact_match;
@@ -475,8 +475,8 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
475
475
  if (organization_id !== undefined) {
476
476
  localVarQueryParameter['organization_id'] = organization_id;
477
477
  }
478
- if (include_fields !== undefined) {
479
- localVarQueryParameter['include_fields'] = include_fields;
478
+ if (include_fields) {
479
+ localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
480
480
  }
481
481
  if (limit !== undefined) {
482
482
  localVarQueryParameter['limit'] = limit;
@@ -683,10 +683,10 @@ export const PersonsApiFp = function (configuration) {
683
683
  * Searches all persons by name, email, phone, 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 persons can be filtered by organization ID.
684
684
  * @summary Search persons
685
685
  * @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.
686
- * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [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;.
686
+ * @param {Set<'custom_fields' | 'email' | 'notes' | 'phone' | 'name'>} [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;.
687
687
  * @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.
688
688
  * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
689
- * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default
689
+ * @param {Set<'person.picture'>} [include_fields] Supports including optional fields in the results which are not provided by default
690
690
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
691
691
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
692
692
 
@@ -172,15 +172,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
172
172
  * Searches all products by name, code 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.
173
173
  * @summary Search products
174
174
  * @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.
175
- * @param {'code' | 'custom_fields' | 'name'} [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;.
175
+ * @param {Set<'code' | 'custom_fields' | 'name'>} [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;.
176
176
  * @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.
177
- * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default
177
+ * @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
178
178
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
179
179
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
180
180
 
181
181
  * @throws {RequiredError}
182
182
  */
183
- searchProducts: (term: string, fields?: 'code' | 'custom_fields' | 'name', exact_match?: boolean, include_fields?: 'product.price', limit?: number, cursor?: string) => Promise<RequestArgs>;
183
+ searchProducts: (term: string, fields?: Set<'code' | 'custom_fields' | 'name'>, exact_match?: boolean, include_fields?: Set<'product.price'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
184
184
  /**
185
185
  * Updates product data.
186
186
  * @summary Update a product
@@ -358,15 +358,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
358
358
  * Searches all products by name, code 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.
359
359
  * @summary Search products
360
360
  * @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.
361
- * @param {'code' | 'custom_fields' | 'name'} [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;.
361
+ * @param {Set<'code' | 'custom_fields' | 'name'>} [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;.
362
362
  * @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.
363
- * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default
363
+ * @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
364
364
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
365
365
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
366
366
 
367
367
  * @throws {RequiredError}
368
368
  */
369
- searchProducts(term: string, fields?: 'code' | 'custom_fields' | 'name', exact_match?: boolean, include_fields?: 'product.price', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductSearchResponse>>;
369
+ searchProducts(term: string, fields?: Set<'code' | 'custom_fields' | 'name'>, exact_match?: boolean, include_fields?: Set<'product.price'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductSearchResponse>>;
370
370
  /**
371
371
  * Updates product data.
372
372
  * @summary Update a product
@@ -867,10 +867,10 @@ export interface ProductsApiSearchProductsRequest {
867
867
  readonly term: string;
868
868
  /**
869
869
  * 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;.
870
- * @type {'code' | 'custom_fields' | 'name'}
870
+ * @type {Set<'code' | 'custom_fields' | 'name'>}
871
871
  * @memberof ProductsApiSearchProducts
872
872
  */
873
- readonly fields?: 'code' | 'custom_fields' | 'name';
873
+ readonly fields?: Set<'code' | 'custom_fields' | 'name'>;
874
874
  /**
875
875
  * When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
876
876
  * @type {boolean}
@@ -879,10 +879,10 @@ export interface ProductsApiSearchProductsRequest {
879
879
  readonly exact_match?: boolean;
880
880
  /**
881
881
  * Supports including optional fields in the results which are not provided by default
882
- * @type {'product.price'}
882
+ * @type {Set<'product.price'>}
883
883
  * @memberof ProductsApiSearchProducts
884
884
  */
885
- readonly include_fields?: 'product.price';
885
+ readonly include_fields?: Set<'product.price'>;
886
886
  /**
887
887
  * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
888
888
  * @type {number}
@@ -581,9 +581,9 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
581
581
  * Searches all products by name, code 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.
582
582
  * @summary Search products
583
583
  * @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.
584
- * @param {'code' | 'custom_fields' | 'name'} [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;.
584
+ * @param {Set<'code' | 'custom_fields' | 'name'>} [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;.
585
585
  * @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.
586
- * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default
586
+ * @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
587
587
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
588
588
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
589
589
 
@@ -610,14 +610,14 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
610
610
  if (term !== undefined) {
611
611
  localVarQueryParameter['term'] = term;
612
612
  }
613
- if (fields !== undefined) {
614
- localVarQueryParameter['fields'] = fields;
613
+ if (fields) {
614
+ localVarQueryParameter['fields'] = Array.from(fields).join(COLLECTION_FORMATS.csv);
615
615
  }
616
616
  if (exact_match !== undefined) {
617
617
  localVarQueryParameter['exact_match'] = exact_match;
618
618
  }
619
- if (include_fields !== undefined) {
620
- localVarQueryParameter['include_fields'] = include_fields;
619
+ if (include_fields) {
620
+ localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
621
621
  }
622
622
  if (limit !== undefined) {
623
623
  localVarQueryParameter['limit'] = limit;
@@ -1010,9 +1010,9 @@ export const ProductsApiFp = function (configuration) {
1010
1010
  * Searches all products by name, code 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.
1011
1011
  * @summary Search products
1012
1012
  * @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.
1013
- * @param {'code' | 'custom_fields' | 'name'} [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;.
1013
+ * @param {Set<'code' | 'custom_fields' | 'name'>} [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;.
1014
1014
  * @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.
1015
- * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default
1015
+ * @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
1016
1016
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
1017
1017
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
1018
1018
 
@@ -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}
@@ -25,7 +25,7 @@ import globalAxios from 'axios';
25
25
  // @ts-ignore
26
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
27
  // @ts-ignore
28
- import { BASE_PATH, BaseAPI } from '../base';
28
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
29
29
  /**
30
30
  * ProjectsApi - axios parameter creator
31
31
  * @export
@@ -361,7 +361,7 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
361
361
  * 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.
362
362
  * @summary Search projects
363
363
  * @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.
364
- * @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;.
364
+ * @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;.
365
365
  * @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.
366
366
  * @param {number} [person_id] Will filter projects by the provided person ID
367
367
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -391,8 +391,8 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
391
391
  if (term !== undefined) {
392
392
  localVarQueryParameter['term'] = term;
393
393
  }
394
- if (fields !== undefined) {
395
- localVarQueryParameter['fields'] = fields;
394
+ if (fields) {
395
+ localVarQueryParameter['fields'] = Array.from(fields).join(COLLECTION_FORMATS.csv);
396
396
  }
397
397
  if (exact_match !== undefined) {
398
398
  localVarQueryParameter['exact_match'] = exact_match;
@@ -584,7 +584,7 @@ export const ProjectsApiFp = function (configuration) {
584
584
  * 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.
585
585
  * @summary Search projects
586
586
  * @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.
587
- * @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;.
587
+ * @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;.
588
588
  * @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.
589
589
  * @param {number} [person_id] Will filter projects by the provided person ID
590
590
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -42,11 +42,11 @@ export declare const DealFieldsApiAxiosParamCreator: (configuration?: Configurat
42
42
  /**
43
43
  * Marks multiple deal fields as deleted.
44
44
  * @summary Delete multiple deal fields in bulk
45
- * @param {string} ids The comma-separated field IDs to delete
45
+ * @param {Set<number>} ids The comma-separated field IDs to delete
46
46
 
47
47
  * @throws {RequiredError}
48
48
  */
49
- deleteDealFields: (ids: string) => Promise<RequestArgs>;
49
+ deleteDealFields: (ids: Set<number>) => Promise<RequestArgs>;
50
50
  /**
51
51
  * Returns data about a specific deal field.
52
52
  * @summary Get one deal field
@@ -98,11 +98,11 @@ export declare const DealFieldsApiFp: (configuration?: Configuration) => {
98
98
  /**
99
99
  * Marks multiple deal fields as deleted.
100
100
  * @summary Delete multiple deal fields in bulk
101
- * @param {string} ids The comma-separated field IDs to delete
101
+ * @param {Set<number>} ids The comma-separated field IDs to delete
102
102
 
103
103
  * @throws {RequiredError}
104
104
  */
105
- deleteDealFields(ids: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFieldsResponse>>;
105
+ deleteDealFields(ids: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFieldsResponse>>;
106
106
  /**
107
107
  * Returns data about a specific deal field.
108
108
  * @summary Get one deal field
@@ -218,10 +218,10 @@ export interface DealFieldsApiDeleteDealFieldRequest {
218
218
  export interface DealFieldsApiDeleteDealFieldsRequest {
219
219
  /**
220
220
  * The comma-separated field IDs to delete
221
- * @type {string}
221
+ * @type {Set<number>}
222
222
  * @memberof DealFieldsApiDeleteDealFields
223
223
  */
224
- readonly ids: string;
224
+ readonly ids: Set<number>;
225
225
  }
226
226
  /**
227
227
  * Request parameters for getDealField operation in DealFieldsApi.
@@ -108,7 +108,7 @@ const DealFieldsApiAxiosParamCreator = function (configuration) {
108
108
  /**
109
109
  * Marks multiple deal fields as deleted.
110
110
  * @summary Delete multiple deal fields in bulk
111
- * @param {string} ids The comma-separated field IDs to delete
111
+ * @param {Set<number>} ids The comma-separated field IDs to delete
112
112
 
113
113
  * @throws {RequiredError}
114
114
  */
@@ -130,8 +130,8 @@ const DealFieldsApiAxiosParamCreator = function (configuration) {
130
130
  // authentication oauth2 required
131
131
  // oauth required
132
132
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deal-fields:full", "admin"], configuration);
133
- if (ids !== undefined) {
134
- localVarQueryParameter['ids'] = ids;
133
+ if (ids) {
134
+ localVarQueryParameter['ids'] = Array.from(ids).join(base_1.COLLECTION_FORMATS.csv);
135
135
  }
136
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
137
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -289,7 +289,7 @@ const DealFieldsApiFp = function (configuration) {
289
289
  /**
290
290
  * Marks multiple deal fields as deleted.
291
291
  * @summary Delete multiple deal fields in bulk
292
- * @param {string} ids The comma-separated field IDs to delete
292
+ * @param {Set<number>} ids The comma-separated field IDs to delete
293
293
 
294
294
  * @throws {RequiredError}
295
295
  */
@@ -195,11 +195,11 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
195
195
  * @param {number} [start] Pagination start
196
196
  * @param {number} [limit] Items shown per page
197
197
  * @param {string} [all_changes] Whether to show custom field updates or not. 1 &#x3D; Include custom field changes. If omitted returns changes without custom field updates.
198
- * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
198
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
199
199
 
200
200
  * @throws {RequiredError}
201
201
  */
202
- getDealUpdates: (id: number, start?: number, limit?: number, all_changes?: string, items?: string) => Promise<RequestArgs>;
202
+ getDealUpdates: (id: number, start?: number, limit?: number, all_changes?: string, items?: Set<string>) => Promise<RequestArgs>;
203
203
  /**
204
204
  * Lists the users permitted to access a deal.
205
205
  * @summary List permitted users
@@ -409,11 +409,11 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
409
409
  * @param {number} [start] Pagination start
410
410
  * @param {number} [limit] Items shown per page
411
411
  * @param {string} [all_changes] Whether to show custom field updates or not. 1 &#x3D; Include custom field changes. If omitted returns changes without custom field updates.
412
- * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
412
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
413
413
 
414
414
  * @throws {RequiredError}
415
415
  */
416
- getDealUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealUpdatesResponse>>;
416
+ getDealUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: Set<string>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealUpdatesResponse>>;
417
417
  /**
418
418
  * Lists the users permitted to access a deal.
419
419
  * @summary List permitted users
@@ -1066,10 +1066,10 @@ export interface DealsApiGetDealUpdatesRequest {
1066
1066
  readonly all_changes?: string;
1067
1067
  /**
1068
1068
  * A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
1069
- * @type {string}
1069
+ * @type {Set<string>}
1070
1070
  * @memberof DealsApiGetDealUpdates
1071
1071
  */
1072
- readonly items?: string;
1072
+ readonly items?: Set<string>;
1073
1073
  }
1074
1074
  /**
1075
1075
  * Request parameters for getDealUsers operation in DealsApi.
@@ -685,7 +685,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
685
685
  * @param {number} [start] Pagination start
686
686
  * @param {number} [limit] Items shown per page
687
687
  * @param {string} [all_changes] Whether to show custom field updates or not. 1 &#x3D; Include custom field changes. If omitted returns changes without custom field updates.
688
- * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
688
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
689
689
 
690
690
  * @throws {RequiredError}
691
691
  */
@@ -717,8 +717,8 @@ const DealsApiAxiosParamCreator = function (configuration) {
717
717
  if (all_changes !== undefined) {
718
718
  localVarQueryParameter['all_changes'] = all_changes;
719
719
  }
720
- if (items !== undefined) {
721
- localVarQueryParameter['items'] = items;
720
+ if (items) {
721
+ localVarQueryParameter['items'] = Array.from(items).join(base_1.COLLECTION_FORMATS.csv);
722
722
  }
723
723
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
724
724
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1163,7 +1163,7 @@ const DealsApiFp = function (configuration) {
1163
1163
  * @param {number} [start] Pagination start
1164
1164
  * @param {number} [limit] Items shown per page
1165
1165
  * @param {string} [all_changes] Whether to show custom field updates or not. 1 &#x3D; Include custom field changes. If omitted returns changes without custom field updates.
1166
- * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
1166
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change).
1167
1167
 
1168
1168
  * @throws {RequiredError}
1169
1169
  */
@@ -44,11 +44,11 @@ export declare const FiltersApiAxiosParamCreator: (configuration?: Configuration
44
44
  /**
45
45
  * Marks multiple filters as deleted.
46
46
  * @summary Delete multiple filters in bulk
47
- * @param {string} ids The comma-separated filter IDs to delete
47
+ * @param {Set<number>} ids The comma-separated filter IDs to delete
48
48
 
49
49
  * @throws {RequiredError}
50
50
  */
51
- deleteFilters: (ids: string) => Promise<RequestArgs>;
51
+ deleteFilters: (ids: Set<number>) => Promise<RequestArgs>;
52
52
  /**
53
53
  * Returns data about a specific filter. Note that this also returns the condition lines of the filter.
54
54
  * @summary Get one filter
@@ -109,11 +109,11 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
109
109
  /**
110
110
  * Marks multiple filters as deleted.
111
111
  * @summary Delete multiple filters in bulk
112
- * @param {string} ids The comma-separated filter IDs to delete
112
+ * @param {Set<number>} ids The comma-separated filter IDs to delete
113
113
 
114
114
  * @throws {RequiredError}
115
115
  */
116
- deleteFilters(ids: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFiltersResponse>>;
116
+ deleteFilters(ids: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFiltersResponse>>;
117
117
  /**
118
118
  * Returns data about a specific filter. Note that this also returns the condition lines of the filter.
119
119
  * @summary Get one filter
@@ -250,10 +250,10 @@ export interface FiltersApiDeleteFilterRequest {
250
250
  export interface FiltersApiDeleteFiltersRequest {
251
251
  /**
252
252
  * The comma-separated filter IDs to delete
253
- * @type {string}
253
+ * @type {Set<number>}
254
254
  * @memberof FiltersApiDeleteFilters
255
255
  */
256
- readonly ids: string;
256
+ readonly ids: Set<number>;
257
257
  }
258
258
  /**
259
259
  * Request parameters for getFilter operation in FiltersApi.
@@ -112,7 +112,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
112
112
  /**
113
113
  * Marks multiple filters as deleted.
114
114
  * @summary Delete multiple filters in bulk
115
- * @param {string} ids The comma-separated filter IDs to delete
115
+ * @param {Set<number>} ids The comma-separated filter IDs to delete
116
116
 
117
117
  * @throws {RequiredError}
118
118
  */
@@ -134,8 +134,8 @@ const FiltersApiAxiosParamCreator = function (configuration) {
134
134
  // authentication oauth2 required
135
135
  // oauth required
136
136
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration);
137
- if (ids !== undefined) {
138
- localVarQueryParameter['ids'] = ids;
137
+ if (ids) {
138
+ localVarQueryParameter['ids'] = Array.from(ids).join(base_1.COLLECTION_FORMATS.csv);
139
139
  }
140
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
141
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -328,7 +328,7 @@ const FiltersApiFp = function (configuration) {
328
328
  /**
329
329
  * Marks multiple filters as deleted.
330
330
  * @summary Delete multiple filters in bulk
331
- * @param {string} ids The comma-separated filter IDs to delete
331
+ * @param {Set<number>} ids The comma-separated filter IDs to delete
332
332
 
333
333
  * @throws {RequiredError}
334
334
  */