pipedrive 35.1.2 → 36.0.1

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 (73) hide show
  1. package/dist/esm/versions/v1/api/leads-api.d.ts +7 -7
  2. package/dist/esm/versions/v1/api/leads-api.js +2 -2
  3. package/dist/esm/versions/v1/models/deal-all-of.d.ts +6 -6
  4. package/dist/esm/versions/v1/models/index.d.ts +0 -3
  5. package/dist/esm/versions/v1/models/index.js +0 -3
  6. package/dist/esm/versions/v1/models/note-deal.d.ts +11 -5
  7. package/dist/esm/versions/v2/api/activities-api.d.ts +7 -7
  8. package/dist/esm/versions/v2/api/activities-api.js +2 -2
  9. package/dist/esm/versions/v2/api/deals-api.d.ts +14 -14
  10. package/dist/esm/versions/v2/api/deals-api.js +4 -4
  11. package/dist/esm/versions/v2/api/organizations-api.d.ts +7 -7
  12. package/dist/esm/versions/v2/api/organizations-api.js +2 -2
  13. package/dist/esm/versions/v2/api/persons-api.d.ts +7 -7
  14. package/dist/esm/versions/v2/api/persons-api.js +2 -2
  15. package/dist/esm/versions/v2/api/products-api.d.ts +7 -7
  16. package/dist/esm/versions/v2/api/products-api.js +2 -2
  17. package/dist/esm/versions/v2/models/index.d.ts +2 -5
  18. package/dist/esm/versions/v2/models/index.js +2 -5
  19. package/dist/esm/versions/v2/models/prices-array.d.ts +3 -3
  20. package/dist/esm/versions/v2/models/{product-request-prices-inner-all-of.d.ts → product-price-request.d.ts} +12 -2
  21. package/dist/{versions/v2/models/prices-array-prices-inner-all-of.d.ts → esm/versions/v2/models/product-price.d.ts} +12 -2
  22. package/dist/esm/versions/v2/models/product-request.d.ts +3 -3
  23. package/dist/versions/v1/api/leads-api.d.ts +7 -7
  24. package/dist/versions/v1/api/leads-api.js +2 -2
  25. package/dist/versions/v1/models/deal-all-of.d.ts +6 -6
  26. package/dist/versions/v1/models/index.d.ts +0 -3
  27. package/dist/versions/v1/models/index.js +0 -3
  28. package/dist/versions/v1/models/note-deal.d.ts +11 -5
  29. package/dist/versions/v2/api/activities-api.d.ts +7 -7
  30. package/dist/versions/v2/api/activities-api.js +2 -2
  31. package/dist/versions/v2/api/deals-api.d.ts +14 -14
  32. package/dist/versions/v2/api/deals-api.js +4 -4
  33. package/dist/versions/v2/api/organizations-api.d.ts +7 -7
  34. package/dist/versions/v2/api/organizations-api.js +2 -2
  35. package/dist/versions/v2/api/persons-api.d.ts +7 -7
  36. package/dist/versions/v2/api/persons-api.js +2 -2
  37. package/dist/versions/v2/api/products-api.d.ts +7 -7
  38. package/dist/versions/v2/api/products-api.js +2 -2
  39. package/dist/versions/v2/models/index.d.ts +2 -5
  40. package/dist/versions/v2/models/index.js +2 -5
  41. package/dist/versions/v2/models/prices-array.d.ts +3 -3
  42. package/dist/versions/v2/models/{product-request-prices-inner-all-of.d.ts → product-price-request.d.ts} +12 -2
  43. package/dist/{esm/versions/v2/models/prices-array-prices-inner-all-of.d.ts → versions/v2/models/product-price.d.ts} +12 -2
  44. package/dist/versions/v2/models/product-request.d.ts +3 -3
  45. package/package.json +1 -1
  46. package/dist/esm/versions/v1/models/deal-all-of-org-id.d.ts +0 -17
  47. package/dist/esm/versions/v1/models/deal-all-of-org-id.js +0 -14
  48. package/dist/esm/versions/v1/models/deal-all-of-person-id.d.ts +0 -17
  49. package/dist/esm/versions/v1/models/deal-all-of-person-id.js +0 -14
  50. package/dist/esm/versions/v1/models/note-deal-all-of.d.ts +0 -23
  51. package/dist/esm/versions/v1/models/note-deal-all-of.js +0 -14
  52. package/dist/esm/versions/v2/models/prices-array-prices-inner.d.ts +0 -18
  53. package/dist/esm/versions/v2/models/product-price-base.d.ts +0 -28
  54. package/dist/esm/versions/v2/models/product-price-base.js +0 -14
  55. package/dist/esm/versions/v2/models/product-request-prices-inner-all-of.js +0 -14
  56. package/dist/esm/versions/v2/models/product-request-prices-inner.d.ts +0 -18
  57. package/dist/esm/versions/v2/models/product-request-prices-inner.js +0 -14
  58. package/dist/versions/v1/models/deal-all-of-org-id.d.ts +0 -17
  59. package/dist/versions/v1/models/deal-all-of-org-id.js +0 -15
  60. package/dist/versions/v1/models/deal-all-of-person-id.d.ts +0 -17
  61. package/dist/versions/v1/models/deal-all-of-person-id.js +0 -15
  62. package/dist/versions/v1/models/note-deal-all-of.d.ts +0 -23
  63. package/dist/versions/v1/models/note-deal-all-of.js +0 -15
  64. package/dist/versions/v2/models/prices-array-prices-inner.d.ts +0 -18
  65. package/dist/versions/v2/models/product-price-base.d.ts +0 -28
  66. package/dist/versions/v2/models/product-price-base.js +0 -15
  67. package/dist/versions/v2/models/product-request-prices-inner-all-of.js +0 -15
  68. package/dist/versions/v2/models/product-request-prices-inner.d.ts +0 -18
  69. package/dist/versions/v2/models/product-request-prices-inner.js +0 -15
  70. /package/dist/esm/versions/v2/models/{prices-array-prices-inner-all-of.js → product-price-request.js} +0 -0
  71. /package/dist/esm/versions/v2/models/{prices-array-prices-inner.js → product-price.js} +0 -0
  72. /package/dist/versions/v2/models/{prices-array-prices-inner-all-of.js → product-price-request.js} +0 -0
  73. /package/dist/versions/v2/models/{prices-array-prices-inner.js → product-price.js} +0 -0
@@ -156,7 +156,7 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
156
156
  * Returns data about all products.
157
157
  * @summary Get all products
158
158
  * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
159
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
159
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
160
160
  * @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
161
161
  * @param {number} [filter_id] The ID of the filter to use
162
162
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -167,7 +167,7 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
167
167
 
168
168
  * @throws {RequiredError}
169
169
  */
170
- getProducts: (owner_id?: number, ids?: Set<string>, custom_fields?: Set<string>, filter_id?: number, cursor?: string, limit?: number, sort_by?: 'id' | 'name' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', updated_since?: string) => Promise<RequestArgs>;
170
+ getProducts: (owner_id?: number, ids?: Set<number>, custom_fields?: Set<string>, filter_id?: number, cursor?: string, limit?: number, sort_by?: 'id' | 'name' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', updated_since?: string) => Promise<RequestArgs>;
171
171
  /**
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
@@ -342,7 +342,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
342
342
  * Returns data about all products.
343
343
  * @summary Get all products
344
344
  * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
345
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
345
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
346
346
  * @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
347
347
  * @param {number} [filter_id] The ID of the filter to use
348
348
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -353,7 +353,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
353
353
 
354
354
  * @throws {RequiredError}
355
355
  */
356
- getProducts(owner_id?: number, ids?: Set<string>, custom_fields?: Set<string>, filter_id?: number, cursor?: string, limit?: number, sort_by?: 'id' | 'name' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', updated_since?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductsResponse>>;
356
+ getProducts(owner_id?: number, ids?: Set<number>, custom_fields?: Set<string>, filter_id?: number, cursor?: string, limit?: number, sort_by?: 'id' | 'name' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', updated_since?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductsResponse>>;
357
357
  /**
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
@@ -805,11 +805,11 @@ export interface ProductsApiGetProductsRequest {
805
805
  */
806
806
  readonly owner_id?: number;
807
807
  /**
808
- * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
809
- * @type {Set<string>}
808
+ * Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
809
+ * @type {Set<number>}
810
810
  * @memberof ProductsApiGetProducts
811
811
  */
812
- readonly ids?: Set<string>;
812
+ readonly ids?: Set<number>;
813
813
  /**
814
814
  * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
815
815
  * @type {Set<string>}
@@ -515,7 +515,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
515
515
  * Returns data about all products.
516
516
  * @summary Get all products
517
517
  * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
518
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
518
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
519
519
  * @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
520
520
  * @param {number} [filter_id] The ID of the filter to use
521
521
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -989,7 +989,7 @@ export const ProductsApiFp = function (configuration) {
989
989
  * Returns data about all products.
990
990
  * @summary Get all products
991
991
  * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
992
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
992
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
993
993
  * @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
994
994
  * @param {number} [filter_id] The ID of the filter to use
995
995
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -261,12 +261,9 @@ export * from './person-item-email';
261
261
  export * from './person-item-im';
262
262
  export * from './person-item-phone';
263
263
  export * from './prices-array';
264
- export * from './prices-array-prices-inner';
265
- export * from './prices-array-prices-inner-all-of';
266
- export * from './product-price-base';
264
+ export * from './product-price';
265
+ export * from './product-price-request';
267
266
  export * from './product-request';
268
- export * from './product-request-prices-inner';
269
- export * from './product-request-prices-inner-all-of';
270
267
  export * from './project';
271
268
  export * from './project-template';
272
269
  export * from './stage-item';
@@ -261,12 +261,9 @@ export * from './person-item-email';
261
261
  export * from './person-item-im';
262
262
  export * from './person-item-phone';
263
263
  export * from './prices-array';
264
- export * from './prices-array-prices-inner';
265
- export * from './prices-array-prices-inner-all-of';
266
- export * from './product-price-base';
264
+ export * from './product-price';
265
+ export * from './product-price-request';
267
266
  export * from './product-request';
268
- export * from './product-request-prices-inner';
269
- export * from './product-request-prices-inner-all-of';
270
267
  export * from './project';
271
268
  export * from './project-template';
272
269
  export * from './stage-item';
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { PricesArrayPricesInner } from './prices-array-prices-inner';
12
+ import { ProductPrice } from './product-price';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,7 +18,7 @@ import { PricesArrayPricesInner } from './prices-array-prices-inner';
18
18
  export interface PricesArray {
19
19
  /**
20
20
  * The prices of the product in different currencies
21
- * @type {Array<PricesArrayPricesInner>}
21
+ * @type {Array<ProductPrice>}
22
22
  */
23
- 'prices'?: Array<PricesArrayPricesInner>;
23
+ 'prices'?: Array<ProductPrice>;
24
24
  }
@@ -12,15 +12,25 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface ProductRequestPricesInnerAllOf
15
+ * @interface ProductPriceRequest
16
16
  */
17
- export interface ProductRequestPricesInnerAllOf {
17
+ export interface ProductPriceRequest {
18
+ /**
19
+ * The price of the product
20
+ * @type {number}
21
+ */
22
+ 'price': number;
18
23
  /**
19
24
  * The currency of the price
20
25
  * @type {string}
21
26
  */
22
27
  'currency': string;
23
28
  /**
29
+ * The cost of the product
30
+ * @type {number}
31
+ */
32
+ 'cost'?: number;
33
+ /**
24
34
  * The direct cost of the product
25
35
  * @type {number}
26
36
  */
@@ -12,9 +12,19 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface PricesArrayPricesInnerAllOf
15
+ * @interface ProductPrice
16
16
  */
17
- export interface PricesArrayPricesInnerAllOf {
17
+ export interface ProductPrice {
18
+ /**
19
+ * The price of the product
20
+ * @type {number}
21
+ */
22
+ 'price'?: number;
23
+ /**
24
+ * The cost of the product
25
+ * @type {number}
26
+ */
27
+ 'cost'?: number;
18
28
  /**
19
29
  * The ID of the product
20
30
  * @type {number}
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ProductRequestPricesInner } from './product-request-prices-inner';
12
+ import { ProductPriceRequest } from './product-price-request';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -58,9 +58,9 @@ export interface ProductRequest {
58
58
  'visible_to'?: ProductRequestVisibleToConst;
59
59
  /**
60
60
  * The prices of the product in different currencies. Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and the user\'s default currency will be assigned.
61
- * @type {Array<ProductRequestPricesInner>}
61
+ * @type {Array<ProductPriceRequest>}
62
62
  */
63
- 'prices'?: Array<ProductRequestPricesInner>;
63
+ 'prices'?: Array<ProductPriceRequest>;
64
64
  /**
65
65
  * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error.
66
66
  * @type {{ [key: string]: any | undefined; }}
@@ -80,11 +80,11 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
80
80
  * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
81
81
  * @param {number} [filter_id] The ID of the filter to use
82
82
  * @param {string} [updated_since] If set, only leads with an &#x60;update_time&#x60; later than or equal to this time are returned. In ISO 8601 format, e.g. 2025-01-01T10:20:00Z.
83
- * @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
83
+ * @param {string} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys). Supported fields: id, title, owner_id, creator_id, label_ids, value, source_name, was_seen, expected_close_date, next_activity_id, add_time, update_time, visible_to, and custom fields.
84
84
 
85
85
  * @throws {RequiredError}
86
86
  */
87
- getLeads: (limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, updated_since?: string, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time') => Promise<RequestArgs>;
87
+ getLeads: (limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, updated_since?: string, sort?: string) => Promise<RequestArgs>;
88
88
  /**
89
89
  * Searches all leads by title, 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 leads can be filtered by the person ID and the organization ID.
90
90
  * @summary Search leads
@@ -171,11 +171,11 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
171
171
  * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
172
172
  * @param {number} [filter_id] The ID of the filter to use
173
173
  * @param {string} [updated_since] If set, only leads with an &#x60;update_time&#x60; later than or equal to this time are returned. In ISO 8601 format, e.g. 2025-01-01T10:20:00Z.
174
- * @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
174
+ * @param {string} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys). Supported fields: id, title, owner_id, creator_id, label_ids, value, source_name, was_seen, expected_close_date, next_activity_id, add_time, update_time, visible_to, and custom fields.
175
175
 
176
176
  * @throws {RequiredError}
177
177
  */
178
- getLeads(limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, updated_since?: string, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadsResponse>>;
178
+ getLeads(limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, updated_since?: string, sort?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadsResponse>>;
179
179
  /**
180
180
  * Searches all leads by title, 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 leads can be filtered by the person ID and the organization ID.
181
181
  * @summary Search leads
@@ -421,11 +421,11 @@ export interface LeadsApiGetLeadsRequest {
421
421
  */
422
422
  readonly updated_since?: string;
423
423
  /**
424
- * The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
425
- * @type {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'}
424
+ * The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys). Supported fields: id, title, owner_id, creator_id, label_ids, value, source_name, was_seen, expected_close_date, next_activity_id, add_time, update_time, visible_to, and custom fields.
425
+ * @type {string}
426
426
  * @memberof LeadsApiGetLeads
427
427
  */
428
- readonly sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time';
428
+ readonly sort?: string;
429
429
  }
430
430
  /**
431
431
  * Request parameters for searchLeads operation in LeadsApi.
@@ -241,7 +241,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
241
241
  * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
242
242
  * @param {number} [filter_id] The ID of the filter to use
243
243
  * @param {string} [updated_since] If set, only leads with an &#x60;update_time&#x60; later than or equal to this time are returned. In ISO 8601 format, e.g. 2025-01-01T10:20:00Z.
244
- * @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
244
+ * @param {string} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys). Supported fields: id, title, owner_id, creator_id, label_ids, value, source_name, was_seen, expected_close_date, next_activity_id, add_time, update_time, visible_to, and custom fields.
245
245
 
246
246
  * @throws {RequiredError}
247
247
  */
@@ -485,7 +485,7 @@ const LeadsApiFp = function (configuration) {
485
485
  * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
486
486
  * @param {number} [filter_id] The ID of the filter to use
487
487
  * @param {string} [updated_since] If set, only leads with an &#x60;update_time&#x60; later than or equal to this time are returned. In ISO 8601 format, e.g. 2025-01-01T10:20:00Z.
488
- * @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
488
+ * @param {string} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys). Supported fields: id, title, owner_id, creator_id, label_ids, value, source_name, was_seen, expected_close_date, next_activity_id, add_time, update_time, visible_to, and custom fields.
489
489
 
490
490
  * @throws {RequiredError}
491
491
  */
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id';
13
- import { DealAllOfOrgId } from './deal-all-of-org-id';
14
- import { DealAllOfPersonId } from './deal-all-of-person-id';
13
+ import { DealOrganizationDataWithId } from './deal-organization-data-with-id';
14
+ import { DealPersonDataWithId } from './deal-person-data-with-id';
15
15
  import { DealUserDataWithId } from './deal-user-data-with-id';
16
16
  /**
17
17
  *
@@ -36,12 +36,12 @@ export interface DealAllOf {
36
36
  'user_id'?: DealUserDataWithId;
37
37
  /**
38
38
  *
39
- * @type {DealAllOfPersonId}
39
+ * @type {DealPersonDataWithId}
40
40
  */
41
- 'person_id'?: DealAllOfPersonId | null;
41
+ 'person_id'?: DealPersonDataWithId | null;
42
42
  /**
43
43
  *
44
- * @type {DealAllOfOrgId}
44
+ * @type {DealOrganizationDataWithId}
45
45
  */
46
- 'org_id'?: DealAllOfOrgId | null;
46
+ 'org_id'?: DealOrganizationDataWithId | null;
47
47
  }
@@ -96,8 +96,6 @@ export * from './create-field-request-all-of1';
96
96
  export * from './deal';
97
97
  export * from './deal-all-of';
98
98
  export * from './deal-all-of-creator-user-id';
99
- export * from './deal-all-of-org-id';
100
- export * from './deal-all-of-person-id';
101
99
  export * from './deal-count-and-activity-info';
102
100
  export * from './deal-count-and-activity-info-all-of';
103
101
  export * from './deal-count-and-activity-info-all-of1';
@@ -440,7 +438,6 @@ export * from './merge-persons-response';
440
438
  export * from './merge-persons-response-all-of';
441
439
  export * from './note';
442
440
  export * from './note-deal';
443
- export * from './note-deal-all-of';
444
441
  export * from './note-organization';
445
442
  export * from './note-person';
446
443
  export * from './note-project';
@@ -112,8 +112,6 @@ __exportStar(require("./create-field-request-all-of1"), exports);
112
112
  __exportStar(require("./deal"), exports);
113
113
  __exportStar(require("./deal-all-of"), exports);
114
114
  __exportStar(require("./deal-all-of-creator-user-id"), exports);
115
- __exportStar(require("./deal-all-of-org-id"), exports);
116
- __exportStar(require("./deal-all-of-person-id"), exports);
117
115
  __exportStar(require("./deal-count-and-activity-info"), exports);
118
116
  __exportStar(require("./deal-count-and-activity-info-all-of"), exports);
119
117
  __exportStar(require("./deal-count-and-activity-info-all-of1"), exports);
@@ -456,7 +454,6 @@ __exportStar(require("./merge-persons-response"), exports);
456
454
  __exportStar(require("./merge-persons-response-all-of"), exports);
457
455
  __exportStar(require("./note"), exports);
458
456
  __exportStar(require("./note-deal"), exports);
459
- __exportStar(require("./note-deal-all-of"), exports);
460
457
  __exportStar(require("./note-organization"), exports);
461
458
  __exportStar(require("./note-person"), exports);
462
459
  __exportStar(require("./note-project"), exports);
@@ -9,9 +9,15 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { NoteDealAllOf } from './note-deal-all-of';
13
12
  /**
14
- * @type NoteDeal
15
- * @export
16
- */
17
- export type NoteDeal = NoteDealAllOf;
13
+ * The deal this note is attached to
14
+ * @export
15
+ * @interface NoteDeal
16
+ */
17
+ export interface NoteDeal {
18
+ /**
19
+ * The title of the deal this note is attached to
20
+ * @type {string}
21
+ */
22
+ 'title'?: string;
23
+ }
@@ -41,7 +41,7 @@ export declare const ActivitiesApiAxiosParamCreator: (configuration?: Configurat
41
41
  * Returns data about all activities.
42
42
  * @summary Get all activities
43
43
  * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
44
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
44
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
45
45
  * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
46
46
  * @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
47
47
  * @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
@@ -58,7 +58,7 @@ export declare const ActivitiesApiAxiosParamCreator: (configuration?: Configurat
58
58
 
59
59
  * @throws {RequiredError}
60
60
  */
61
- getActivities: (filter_id?: number, ids?: Set<string>, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: Set<'attendees'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
61
+ getActivities: (filter_id?: number, ids?: Set<number>, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: Set<'attendees'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
62
62
  /**
63
63
  * Returns the details of a specific activity.
64
64
  * @summary Get details of an activity
@@ -103,7 +103,7 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
103
103
  * Returns data about all activities.
104
104
  * @summary Get all activities
105
105
  * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
106
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
106
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
107
107
  * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
108
108
  * @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
109
109
  * @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
@@ -120,7 +120,7 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
120
120
 
121
121
  * @throws {RequiredError}
122
122
  */
123
- getActivities(filter_id?: number, ids?: Set<string>, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: Set<'attendees'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivitiesResponse>>;
123
+ getActivities(filter_id?: number, ids?: Set<number>, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: Set<'attendees'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivitiesResponse>>;
124
124
  /**
125
125
  * Returns the details of a specific activity.
126
126
  * @summary Get details of an activity
@@ -225,11 +225,11 @@ export interface ActivitiesApiGetActivitiesRequest {
225
225
  */
226
226
  readonly filter_id?: number;
227
227
  /**
228
- * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
229
- * @type {Set<string>}
228
+ * Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
229
+ * @type {Set<number>}
230
230
  * @memberof ActivitiesApiGetActivities
231
231
  */
232
- readonly ids?: Set<string>;
232
+ readonly ids?: Set<number>;
233
233
  /**
234
234
  * If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
235
235
  * @type {number}
@@ -109,7 +109,7 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
109
109
  * Returns data about all activities.
110
110
  * @summary Get all activities
111
111
  * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
112
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
112
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
113
113
  * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
114
114
  * @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
115
115
  * @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
@@ -310,7 +310,7 @@ const ActivitiesApiFp = function (configuration) {
310
310
  * Returns data about all activities.
311
311
  * @summary Get all activities
312
312
  * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
313
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
313
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
314
314
  * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
315
315
  * @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
316
316
  * @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
@@ -99,7 +99,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
99
99
  * Returns data about all archived deals.
100
100
  * @summary Get all archived deals
101
101
  * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
102
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
102
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
103
103
  * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
104
104
  * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
105
105
  * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
@@ -117,7 +117,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
117
117
 
118
118
  * @throws {RequiredError}
119
119
  */
120
- getArchivedDeals: (filter_id?: number, ids?: Set<string>, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: Set<'open' | 'won' | 'lost' | 'deleted'>, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>, custom_fields?: Set<string>, limit?: number, cursor?: string) => Promise<RequestArgs>;
120
+ getArchivedDeals: (filter_id?: number, ids?: Set<number>, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: Set<'open' | 'won' | 'lost' | 'deleted'>, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>, custom_fields?: Set<string>, limit?: number, cursor?: string) => Promise<RequestArgs>;
121
121
  /**
122
122
  * Returns the details of a specific deal.
123
123
  * @summary Get details of a deal
@@ -163,7 +163,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
163
163
  * Returns data about all not archived deals.
164
164
  * @summary Get all deals
165
165
  * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
166
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
166
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
167
167
  * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
168
168
  * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
169
169
  * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
@@ -183,7 +183,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
183
183
 
184
184
  * @throws {RequiredError}
185
185
  */
186
- getDeals: (filter_id?: number, ids?: Set<string>, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: Set<'open' | 'won' | 'lost' | 'deleted'>, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string) => Promise<RequestArgs>;
186
+ getDeals: (filter_id?: number, ids?: Set<number>, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: Set<'open' | 'won' | 'lost' | 'deleted'>, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string) => Promise<RequestArgs>;
187
187
  /**
188
188
  * Adds a discount to a deal, changing the deal value if the deal has one-time products attached.
189
189
  * @summary Add a discount to a deal
@@ -297,7 +297,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
297
297
  * Returns data about all archived deals.
298
298
  * @summary Get all archived deals
299
299
  * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
300
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
300
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
301
301
  * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
302
302
  * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
303
303
  * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
@@ -315,7 +315,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
315
315
 
316
316
  * @throws {RequiredError}
317
317
  */
318
- getArchivedDeals(filter_id?: number, ids?: Set<string>, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: Set<'open' | 'won' | 'lost' | 'deleted'>, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>, custom_fields?: Set<string>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsResponse>>;
318
+ getArchivedDeals(filter_id?: number, ids?: Set<number>, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: Set<'open' | 'won' | 'lost' | 'deleted'>, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>, custom_fields?: Set<string>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsResponse>>;
319
319
  /**
320
320
  * Returns the details of a specific deal.
321
321
  * @summary Get details of a deal
@@ -361,7 +361,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
361
361
  * Returns data about all not archived deals.
362
362
  * @summary Get all deals
363
363
  * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
364
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
364
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
365
365
  * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
366
366
  * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
367
367
  * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
@@ -381,7 +381,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
381
381
 
382
382
  * @throws {RequiredError}
383
383
  */
384
- getDeals(filter_id?: number, ids?: Set<string>, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: Set<'open' | 'won' | 'lost' | 'deleted'>, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsResponse>>;
384
+ getDeals(filter_id?: number, ids?: Set<number>, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: Set<'open' | 'won' | 'lost' | 'deleted'>, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>, custom_fields?: Set<string>, include_option_labels?: boolean, include_labels?: boolean, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsResponse>>;
385
385
  /**
386
386
  * Adds a discount to a deal, changing the deal value if the deal has one-time products attached.
387
387
  * @summary Add a discount to a deal
@@ -691,11 +691,11 @@ export interface DealsApiGetArchivedDealsRequest {
691
691
  */
692
692
  readonly filter_id?: number;
693
693
  /**
694
- * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
695
- * @type {Set<string>}
694
+ * Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
695
+ * @type {Set<number>}
696
696
  * @memberof DealsApiGetArchivedDeals
697
697
  */
698
- readonly ids?: Set<string>;
698
+ readonly ids?: Set<number>;
699
699
  /**
700
700
  * If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
701
701
  * @type {number}
@@ -900,11 +900,11 @@ export interface DealsApiGetDealsRequest {
900
900
  */
901
901
  readonly filter_id?: number;
902
902
  /**
903
- * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
904
- * @type {Set<string>}
903
+ * Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
904
+ * @type {Set<number>}
905
905
  * @memberof DealsApiGetDeals
906
906
  */
907
- readonly ids?: Set<string>;
907
+ readonly ids?: Set<number>;
908
908
  /**
909
909
  * If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
910
910
  * @type {number}
@@ -290,7 +290,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
290
290
  * Returns data about all archived deals.
291
291
  * @summary Get all archived deals
292
292
  * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
293
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
293
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
294
294
  * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
295
295
  * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
296
296
  * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
@@ -556,7 +556,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
556
556
  * Returns data about all not archived deals.
557
557
  * @summary Get all deals
558
558
  * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
559
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
559
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
560
560
  * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
561
561
  * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
562
562
  * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
@@ -945,7 +945,7 @@ const DealsApiFp = function (configuration) {
945
945
  * Returns data about all archived deals.
946
946
  * @summary Get all archived deals
947
947
  * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
948
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
948
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
949
949
  * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
950
950
  * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
951
951
  * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
@@ -1034,7 +1034,7 @@ const DealsApiFp = function (configuration) {
1034
1034
  * Returns data about all not archived deals.
1035
1035
  * @summary Get all deals
1036
1036
  * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
1037
- * @param {Set<string>} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
1037
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
1038
1038
  * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
1039
1039
  * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
1040
1040
  * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.