pipedrive 34.0.0 → 35.0.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 (99) 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/v2/api/beta-api.d.ts +6 -6
  20. package/dist/esm/versions/v2/api/beta-api.js +5 -5
  21. package/dist/esm/versions/v2/api/deal-products-api.d.ts +6 -6
  22. package/dist/esm/versions/v2/api/deal-products-api.js +4 -4
  23. package/dist/esm/versions/v2/api/deals-api.d.ts +26 -26
  24. package/dist/esm/versions/v2/api/deals-api.js +20 -20
  25. package/dist/esm/versions/v2/api/item-search-api.d.ts +14 -14
  26. package/dist/esm/versions/v2/api/item-search-api.js +13 -13
  27. package/dist/esm/versions/v2/api/leads-api.d.ts +10 -10
  28. package/dist/esm/versions/v2/api/leads-api.js +9 -9
  29. package/dist/esm/versions/v2/api/organizations-api.d.ts +6 -6
  30. package/dist/esm/versions/v2/api/organizations-api.js +4 -4
  31. package/dist/esm/versions/v2/api/persons-api.d.ts +10 -10
  32. package/dist/esm/versions/v2/api/persons-api.js +8 -8
  33. package/dist/esm/versions/v2/api/product-fields-api.d.ts +14 -14
  34. package/dist/esm/versions/v2/api/products-api.d.ts +10 -10
  35. package/dist/esm/versions/v2/api/products-api.js +8 -8
  36. package/dist/esm/versions/v2/api/projects-api.d.ts +6 -6
  37. package/dist/esm/versions/v2/api/projects-api.js +5 -5
  38. package/dist/esm/versions/v2/models/add-product-field200-response.d.ts +29 -0
  39. package/dist/esm/versions/v2/models/add-product-field200-response.js +14 -0
  40. package/dist/esm/versions/v2/models/get-activity-fields200-response-data-inner.d.ts +2 -0
  41. package/dist/esm/versions/v2/models/get-activity-fields200-response-data-inner.js +3 -1
  42. package/dist/esm/versions/v2/models/get-product-fields200-response-data-inner.d.ts +97 -0
  43. package/dist/esm/versions/v2/models/get-product-fields200-response-data-inner.js +48 -0
  44. package/dist/esm/versions/v2/models/get-product-fields200-response.d.ts +35 -0
  45. package/dist/esm/versions/v2/models/get-product-fields200-response.js +14 -0
  46. package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner.d.ts +1 -0
  47. package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner.js +2 -1
  48. package/dist/esm/versions/v2/models/index.d.ts +3 -0
  49. package/dist/esm/versions/v2/models/index.js +3 -0
  50. package/dist/versions/v1/api/deal-fields-api.d.ts +6 -6
  51. package/dist/versions/v1/api/deal-fields-api.js +4 -4
  52. package/dist/versions/v1/api/deals-api.d.ts +6 -6
  53. package/dist/versions/v1/api/deals-api.js +4 -4
  54. package/dist/versions/v1/api/filters-api.d.ts +6 -6
  55. package/dist/versions/v1/api/filters-api.js +4 -4
  56. package/dist/versions/v1/api/leads-api.d.ts +10 -10
  57. package/dist/versions/v1/api/leads-api.js +8 -8
  58. package/dist/versions/v1/api/organization-fields-api.d.ts +6 -6
  59. package/dist/versions/v1/api/organization-fields-api.js +4 -4
  60. package/dist/versions/v1/api/organizations-api.d.ts +6 -6
  61. package/dist/versions/v1/api/organizations-api.js +4 -4
  62. package/dist/versions/v1/api/person-fields-api.d.ts +6 -6
  63. package/dist/versions/v1/api/person-fields-api.js +4 -4
  64. package/dist/versions/v1/api/persons-api.d.ts +6 -6
  65. package/dist/versions/v1/api/persons-api.js +4 -4
  66. package/dist/versions/v1/api/product-fields-api.d.ts +6 -6
  67. package/dist/versions/v1/api/product-fields-api.js +4 -4
  68. package/dist/versions/v2/api/beta-api.d.ts +6 -6
  69. package/dist/versions/v2/api/beta-api.js +4 -4
  70. package/dist/versions/v2/api/deal-products-api.d.ts +6 -6
  71. package/dist/versions/v2/api/deal-products-api.js +4 -4
  72. package/dist/versions/v2/api/deals-api.d.ts +26 -26
  73. package/dist/versions/v2/api/deals-api.js +20 -20
  74. package/dist/versions/v2/api/item-search-api.d.ts +14 -14
  75. package/dist/versions/v2/api/item-search-api.js +12 -12
  76. package/dist/versions/v2/api/leads-api.d.ts +10 -10
  77. package/dist/versions/v2/api/leads-api.js +8 -8
  78. package/dist/versions/v2/api/organizations-api.d.ts +6 -6
  79. package/dist/versions/v2/api/organizations-api.js +4 -4
  80. package/dist/versions/v2/api/persons-api.d.ts +10 -10
  81. package/dist/versions/v2/api/persons-api.js +8 -8
  82. package/dist/versions/v2/api/product-fields-api.d.ts +14 -14
  83. package/dist/versions/v2/api/products-api.d.ts +10 -10
  84. package/dist/versions/v2/api/products-api.js +8 -8
  85. package/dist/versions/v2/api/projects-api.d.ts +6 -6
  86. package/dist/versions/v2/api/projects-api.js +4 -4
  87. package/dist/versions/v2/models/add-product-field200-response.d.ts +29 -0
  88. package/dist/versions/v2/models/add-product-field200-response.js +15 -0
  89. package/dist/versions/v2/models/get-activity-fields200-response-data-inner.d.ts +2 -0
  90. package/dist/versions/v2/models/get-activity-fields200-response-data-inner.js +3 -1
  91. package/dist/versions/v2/models/get-product-fields200-response-data-inner.d.ts +97 -0
  92. package/dist/versions/v2/models/get-product-fields200-response-data-inner.js +51 -0
  93. package/dist/versions/v2/models/get-product-fields200-response.d.ts +35 -0
  94. package/dist/versions/v2/models/get-product-fields200-response.js +15 -0
  95. package/dist/versions/v2/models/get-project-fields200-response-data-inner.d.ts +1 -0
  96. package/dist/versions/v2/models/get-project-fields200-response-data-inner.js +2 -1
  97. package/dist/versions/v2/models/index.d.ts +3 -0
  98. package/dist/versions/v2/models/index.js +3 -0
  99. package/package.json +1 -1
@@ -108,7 +108,7 @@ const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
108
108
  /**
109
109
  * Marks multiple fields as deleted.
110
110
  * @summary Delete multiple organization 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 OrganizationFieldsApiAxiosParamCreator = function (configuration) {
130
130
  // authentication oauth2 required
131
131
  // oauth required
132
132
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contact-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 OrganizationFieldsApiFp = function (configuration) {
289
289
  /**
290
290
  * Marks multiple fields as deleted.
291
291
  * @summary Delete multiple organization 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
  */
@@ -93,11 +93,11 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
93
93
  * @param {number} [start] Pagination start
94
94
  * @param {number} [limit] Items shown per page
95
95
  * @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.
96
- * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
96
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
97
97
 
98
98
  * @throws {RequiredError}
99
99
  */
100
- getOrganizationUpdates: (id: number, start?: number, limit?: number, all_changes?: string, items?: string) => Promise<RequestArgs>;
100
+ getOrganizationUpdates: (id: number, start?: number, limit?: number, all_changes?: string, items?: Set<string>) => Promise<RequestArgs>;
101
101
  /**
102
102
  * List users permitted to access an organization.
103
103
  * @summary List permitted users
@@ -186,11 +186,11 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
186
186
  * @param {number} [start] Pagination start
187
187
  * @param {number} [limit] Items shown per page
188
188
  * @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.
189
- * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
189
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
190
190
 
191
191
  * @throws {RequiredError}
192
192
  */
193
- getOrganizationUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetAssociatedOrganizationUpdatesResponse>>;
193
+ getOrganizationUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: Set<string>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetAssociatedOrganizationUpdatesResponse>>;
194
194
  /**
195
195
  * List users permitted to access an organization.
196
196
  * @summary List permitted users
@@ -457,10 +457,10 @@ export interface OrganizationsApiGetOrganizationUpdatesRequest {
457
457
  readonly all_changes?: string;
458
458
  /**
459
459
  * A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
460
- * @type {string}
460
+ * @type {Set<string>}
461
461
  * @memberof OrganizationsApiGetOrganizationUpdates
462
462
  */
463
- readonly items?: string;
463
+ readonly items?: Set<string>;
464
464
  }
465
465
  /**
466
466
  * Request parameters for getOrganizationUsers operation in OrganizationsApi.
@@ -288,7 +288,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
288
288
  * @param {number} [start] Pagination start
289
289
  * @param {number} [limit] Items shown per page
290
290
  * @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.
291
- * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
291
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
292
292
 
293
293
  * @throws {RequiredError}
294
294
  */
@@ -320,8 +320,8 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
320
320
  if (all_changes !== undefined) {
321
321
  localVarQueryParameter['all_changes'] = all_changes;
322
322
  }
323
- if (items !== undefined) {
324
- localVarQueryParameter['items'] = items;
323
+ if (items) {
324
+ localVarQueryParameter['items'] = Array.from(items).join(base_1.COLLECTION_FORMATS.csv);
325
325
  }
326
326
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
327
327
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -507,7 +507,7 @@ const OrganizationsApiFp = function (configuration) {
507
507
  * @param {number} [start] Pagination start
508
508
  * @param {number} [limit] Items shown per page
509
509
  * @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.
510
- * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
510
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
511
511
 
512
512
  * @throws {RequiredError}
513
513
  */
@@ -42,11 +42,11 @@ export declare const PersonFieldsApiAxiosParamCreator: (configuration?: Configur
42
42
  /**
43
43
  * Marks multiple fields as deleted.
44
44
  * @summary Delete multiple person 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
- deletePersonFields: (ids: string) => Promise<RequestArgs>;
49
+ deletePersonFields: (ids: Set<number>) => Promise<RequestArgs>;
50
50
  /**
51
51
  * Returns data about a specific person field.
52
52
  * @summary Get one person field
@@ -98,11 +98,11 @@ export declare const PersonFieldsApiFp: (configuration?: Configuration) => {
98
98
  /**
99
99
  * Marks multiple fields as deleted.
100
100
  * @summary Delete multiple person 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
- deletePersonFields(ids: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFieldsResponse>>;
105
+ deletePersonFields(ids: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFieldsResponse>>;
106
106
  /**
107
107
  * Returns data about a specific person field.
108
108
  * @summary Get one person field
@@ -218,10 +218,10 @@ export interface PersonFieldsApiDeletePersonFieldRequest {
218
218
  export interface PersonFieldsApiDeletePersonFieldsRequest {
219
219
  /**
220
220
  * The comma-separated field IDs to delete
221
- * @type {string}
221
+ * @type {Set<number>}
222
222
  * @memberof PersonFieldsApiDeletePersonFields
223
223
  */
224
- readonly ids: string;
224
+ readonly ids: Set<number>;
225
225
  }
226
226
  /**
227
227
  * Request parameters for getPersonField operation in PersonFieldsApi.
@@ -108,7 +108,7 @@ const PersonFieldsApiAxiosParamCreator = function (configuration) {
108
108
  /**
109
109
  * Marks multiple fields as deleted.
110
110
  * @summary Delete multiple person 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 PersonFieldsApiAxiosParamCreator = function (configuration) {
130
130
  // authentication oauth2 required
131
131
  // oauth required
132
132
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contact-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 PersonFieldsApiFp = function (configuration) {
289
289
  /**
290
290
  * Marks multiple fields as deleted.
291
291
  * @summary Delete multiple person 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
  */
@@ -126,11 +126,11 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
126
126
  * @param {number} [start] Pagination start
127
127
  * @param {number} [limit] Items shown per page
128
128
  * @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.
129
- * @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).
129
+ * @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).
130
130
 
131
131
  * @throws {RequiredError}
132
132
  */
133
- getPersonUpdates: (id: number, start?: number, limit?: number, all_changes?: string, items?: string) => Promise<RequestArgs>;
133
+ getPersonUpdates: (id: number, start?: number, limit?: number, all_changes?: string, items?: Set<string>) => Promise<RequestArgs>;
134
134
  /**
135
135
  * List users permitted to access a person.
136
136
  * @summary List permitted users
@@ -250,11 +250,11 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
250
250
  * @param {number} [start] Pagination start
251
251
  * @param {number} [limit] Items shown per page
252
252
  * @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.
253
- * @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).
253
+ * @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).
254
254
 
255
255
  * @throws {RequiredError}
256
256
  */
257
- getPersonUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetAssociatedPersonUpdatesResponse>>;
257
+ getPersonUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: Set<string>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetAssociatedPersonUpdatesResponse>>;
258
258
  /**
259
259
  * List users permitted to access a person.
260
260
  * @summary List permitted users
@@ -626,10 +626,10 @@ export interface PersonsApiGetPersonUpdatesRequest {
626
626
  readonly all_changes?: string;
627
627
  /**
628
628
  * 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).
629
- * @type {string}
629
+ * @type {Set<string>}
630
630
  * @memberof PersonsApiGetPersonUpdates
631
631
  */
632
- readonly items?: string;
632
+ readonly items?: Set<string>;
633
633
  }
634
634
  /**
635
635
  * Request parameters for getPersonUsers operation in PersonsApi.
@@ -423,7 +423,7 @@ const PersonsApiAxiosParamCreator = function (configuration) {
423
423
  * @param {number} [start] Pagination start
424
424
  * @param {number} [limit] Items shown per page
425
425
  * @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.
426
- * @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).
426
+ * @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).
427
427
 
428
428
  * @throws {RequiredError}
429
429
  */
@@ -455,8 +455,8 @@ const PersonsApiAxiosParamCreator = function (configuration) {
455
455
  if (all_changes !== undefined) {
456
456
  localVarQueryParameter['all_changes'] = all_changes;
457
457
  }
458
- if (items !== undefined) {
459
- localVarQueryParameter['items'] = items;
458
+ if (items) {
459
+ localVarQueryParameter['items'] = Array.from(items).join(base_1.COLLECTION_FORMATS.csv);
460
460
  }
461
461
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
462
462
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -688,7 +688,7 @@ const PersonsApiFp = function (configuration) {
688
688
  * @param {number} [start] Pagination start
689
689
  * @param {number} [limit] Items shown per page
690
690
  * @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.
691
- * @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).
691
+ * @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).
692
692
 
693
693
  * @throws {RequiredError}
694
694
  */
@@ -42,11 +42,11 @@ export declare const ProductFieldsApiAxiosParamCreator: (configuration?: Configu
42
42
  /**
43
43
  * Marks multiple fields as deleted.
44
44
  * @summary Delete multiple product 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
- deleteProductFields: (ids: string) => Promise<RequestArgs>;
49
+ deleteProductFields: (ids: Set<number>) => Promise<RequestArgs>;
50
50
  /**
51
51
  * Returns data about a specific product field.
52
52
  * @summary Get one product field
@@ -98,11 +98,11 @@ export declare const ProductFieldsApiFp: (configuration?: Configuration) => {
98
98
  /**
99
99
  * Marks multiple fields as deleted.
100
100
  * @summary Delete multiple product 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
- deleteProductFields(ids: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteProductFieldsResponse>>;
105
+ deleteProductFields(ids: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteProductFieldsResponse>>;
106
106
  /**
107
107
  * Returns data about a specific product field.
108
108
  * @summary Get one product field
@@ -218,10 +218,10 @@ export interface ProductFieldsApiDeleteProductFieldRequest {
218
218
  export interface ProductFieldsApiDeleteProductFieldsRequest {
219
219
  /**
220
220
  * The comma-separated field IDs to delete
221
- * @type {string}
221
+ * @type {Set<number>}
222
222
  * @memberof ProductFieldsApiDeleteProductFields
223
223
  */
224
- readonly ids: string;
224
+ readonly ids: Set<number>;
225
225
  }
226
226
  /**
227
227
  * Request parameters for getProductField operation in ProductFieldsApi.
@@ -108,7 +108,7 @@ const ProductFieldsApiAxiosParamCreator = function (configuration) {
108
108
  /**
109
109
  * Marks multiple fields as deleted.
110
110
  * @summary Delete multiple product 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 ProductFieldsApiAxiosParamCreator = function (configuration) {
130
130
  // authentication oauth2 required
131
131
  // oauth required
132
132
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["product-fields:full", "products:full"], 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 ProductFieldsApiFp = function (configuration) {
289
289
  /**
290
290
  * Marks multiple fields as deleted.
291
291
  * @summary Delete multiple product 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
  */
@@ -200,7 +200,7 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
200
200
  * 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.
201
201
  * @summary Search projects
202
202
  * @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.
203
- * @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;.
203
+ * @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;.
204
204
  * @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.
205
205
  * @param {number} [person_id] Will filter projects by the provided person ID
206
206
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -209,7 +209,7 @@ export declare const BetaApiAxiosParamCreator: (configuration?: Configuration) =
209
209
 
210
210
  * @throws {RequiredError}
211
211
  */
212
- searchProjects: (term: string, fields?: 'custom_fields' | 'notes' | 'title' | 'description', exact_match?: boolean, person_id?: number, organization_id?: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
212
+ 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>;
213
213
  /**
214
214
  * Updates the properties of a project board.
215
215
  * @summary Update a project board
@@ -417,7 +417,7 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
417
417
  * 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.
418
418
  * @summary Search projects
419
419
  * @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.
420
- * @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;.
420
+ * @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;.
421
421
  * @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.
422
422
  * @param {number} [person_id] Will filter projects by the provided person ID
423
423
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -426,7 +426,7 @@ export declare const BetaApiFp: (configuration?: Configuration) => {
426
426
 
427
427
  * @throws {RequiredError}
428
428
  */
429
- 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>>;
429
+ 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>>;
430
430
  /**
431
431
  * Updates the properties of a project board.
432
432
  * @summary Update a project board
@@ -959,10 +959,10 @@ export interface BetaApiSearchProjectsRequest {
959
959
  readonly term: string;
960
960
  /**
961
961
  * 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;.
962
- * @type {'custom_fields' | 'notes' | 'title' | 'description'}
962
+ * @type {Set<'custom_fields' | 'notes' | 'title' | 'description'>}
963
963
  * @memberof BetaApiSearchProjects
964
964
  */
965
- readonly fields?: 'custom_fields' | 'notes' | 'title' | 'description';
965
+ readonly fields?: Set<'custom_fields' | 'notes' | 'title' | 'description'>;
966
966
  /**
967
967
  * When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
968
968
  * @type {boolean}
@@ -694,7 +694,7 @@ const BetaApiAxiosParamCreator = function (configuration) {
694
694
  * 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.
695
695
  * @summary Search projects
696
696
  * @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.
697
- * @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;.
697
+ * @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;.
698
698
  * @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.
699
699
  * @param {number} [person_id] Will filter projects by the provided person ID
700
700
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -724,8 +724,8 @@ const BetaApiAxiosParamCreator = function (configuration) {
724
724
  if (term !== undefined) {
725
725
  localVarQueryParameter['term'] = term;
726
726
  }
727
- if (fields !== undefined) {
728
- localVarQueryParameter['fields'] = fields;
727
+ if (fields) {
728
+ localVarQueryParameter['fields'] = Array.from(fields).join(base_1.COLLECTION_FORMATS.csv);
729
729
  }
730
730
  if (exact_match !== undefined) {
731
731
  localVarQueryParameter['exact_match'] = exact_match;
@@ -1195,7 +1195,7 @@ const BetaApiFp = function (configuration) {
1195
1195
  * 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.
1196
1196
  * @summary Search projects
1197
1197
  * @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.
1198
- * @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;.
1198
+ * @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;.
1199
1199
  * @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.
1200
1200
  * @param {number} [person_id] Will filter projects by the provided person ID
1201
1201
  * @param {number} [organization_id] Will filter projects by the provided organization ID
@@ -56,11 +56,11 @@ export declare const DealProductsApiAxiosParamCreator: (configuration?: Configur
56
56
  * Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
57
57
  * @summary Delete many products from a deal
58
58
  * @param {number} id The ID of the deal
59
- * @param {string} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
59
+ * @param {Set<number>} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
60
60
 
61
61
  * @throws {RequiredError}
62
62
  */
63
- deleteManyDealProducts: (id: number, ids?: string) => Promise<RequestArgs>;
63
+ deleteManyDealProducts: (id: number, ids?: Set<number>) => Promise<RequestArgs>;
64
64
  /**
65
65
  * Lists products attached to a deal.
66
66
  * @summary List products attached to a deal
@@ -132,11 +132,11 @@ export declare const DealProductsApiFp: (configuration?: Configuration) => {
132
132
  * Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
133
133
  * @summary Delete many products from a deal
134
134
  * @param {number} id The ID of the deal
135
- * @param {string} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
135
+ * @param {Set<number>} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
136
136
 
137
137
  * @throws {RequiredError}
138
138
  */
139
- deleteManyDealProducts(id: number, ids?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteManyDealProductResponse>>;
139
+ deleteManyDealProducts(id: number, ids?: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteManyDealProductResponse>>;
140
140
  /**
141
141
  * Lists products attached to a deal.
142
142
  * @summary List products attached to a deal
@@ -305,10 +305,10 @@ export interface DealProductsApiDeleteManyDealProductsRequest {
305
305
  readonly id: number;
306
306
  /**
307
307
  * Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
308
- * @type {string}
308
+ * @type {Set<number>}
309
309
  * @memberof DealProductsApiDeleteManyDealProducts
310
310
  */
311
- readonly ids?: string;
311
+ readonly ids?: Set<number>;
312
312
  }
313
313
  /**
314
314
  * Request parameters for getDealProducts operation in DealProductsApi.
@@ -154,7 +154,7 @@ const DealProductsApiAxiosParamCreator = function (configuration) {
154
154
  * Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
155
155
  * @summary Delete many products from a deal
156
156
  * @param {number} id The ID of the deal
157
- * @param {string} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
157
+ * @param {Set<number>} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
158
158
 
159
159
  * @throws {RequiredError}
160
160
  */
@@ -177,8 +177,8 @@ const DealProductsApiAxiosParamCreator = function (configuration) {
177
177
  // authentication oauth2 required
178
178
  // oauth required
179
179
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:full", "deals:full"], configuration);
180
- if (ids !== undefined) {
181
- localVarQueryParameter['ids'] = ids;
180
+ if (ids) {
181
+ localVarQueryParameter['ids'] = Array.from(ids).join(base_1.COLLECTION_FORMATS.csv);
182
182
  }
183
183
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
184
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -387,7 +387,7 @@ const DealProductsApiFp = function (configuration) {
387
387
  * Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
388
388
  * @summary Delete many products from a deal
389
389
  * @param {number} id The ID of the deal
390
- * @param {string} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
390
+ * @param {Set<number>} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
391
391
 
392
392
  * @throws {RequiredError}
393
393
  */