pipedrive 33.9.0 → 34.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 (41) hide show
  1. package/dist/esm/versions/v2/api/activities-api.d.ts +16 -16
  2. package/dist/esm/versions/v2/api/activities-api.js +13 -13
  3. package/dist/esm/versions/v2/api/activity-fields-api.d.ts +12 -12
  4. package/dist/esm/versions/v2/api/activity-fields-api.js +9 -9
  5. package/dist/esm/versions/v2/api/deal-fields-api.d.ts +12 -12
  6. package/dist/esm/versions/v2/api/deal-fields-api.js +9 -9
  7. package/dist/esm/versions/v2/api/deals-api.d.ts +38 -38
  8. package/dist/esm/versions/v2/api/deals-api.js +33 -33
  9. package/dist/esm/versions/v2/api/organization-fields-api.d.ts +12 -12
  10. package/dist/esm/versions/v2/api/organization-fields-api.js +9 -9
  11. package/dist/esm/versions/v2/api/organizations-api.d.ts +24 -24
  12. package/dist/esm/versions/v2/api/organizations-api.js +21 -21
  13. package/dist/esm/versions/v2/api/person-fields-api.d.ts +12 -12
  14. package/dist/esm/versions/v2/api/person-fields-api.js +9 -9
  15. package/dist/esm/versions/v2/api/persons-api.d.ts +24 -24
  16. package/dist/esm/versions/v2/api/persons-api.js +21 -21
  17. package/dist/esm/versions/v2/api/product-fields-api.d.ts +12 -12
  18. package/dist/esm/versions/v2/api/product-fields-api.js +9 -9
  19. package/dist/esm/versions/v2/api/products-api.d.ts +14 -14
  20. package/dist/esm/versions/v2/api/products-api.js +15 -15
  21. package/dist/versions/v2/api/activities-api.d.ts +16 -16
  22. package/dist/versions/v2/api/activities-api.js +12 -12
  23. package/dist/versions/v2/api/activity-fields-api.d.ts +12 -12
  24. package/dist/versions/v2/api/activity-fields-api.js +8 -8
  25. package/dist/versions/v2/api/deal-fields-api.d.ts +12 -12
  26. package/dist/versions/v2/api/deal-fields-api.js +8 -8
  27. package/dist/versions/v2/api/deals-api.d.ts +38 -38
  28. package/dist/versions/v2/api/deals-api.js +32 -32
  29. package/dist/versions/v2/api/organization-fields-api.d.ts +12 -12
  30. package/dist/versions/v2/api/organization-fields-api.js +8 -8
  31. package/dist/versions/v2/api/organizations-api.d.ts +24 -24
  32. package/dist/versions/v2/api/organizations-api.js +20 -20
  33. package/dist/versions/v2/api/person-fields-api.d.ts +12 -12
  34. package/dist/versions/v2/api/person-fields-api.js +8 -8
  35. package/dist/versions/v2/api/persons-api.d.ts +24 -24
  36. package/dist/versions/v2/api/persons-api.js +20 -20
  37. package/dist/versions/v2/api/product-fields-api.d.ts +12 -12
  38. package/dist/versions/v2/api/product-fields-api.js +8 -8
  39. package/dist/versions/v2/api/products-api.d.ts +14 -14
  40. package/dist/versions/v2/api/products-api.js +14 -14
  41. package/package.json +1 -1
@@ -25,7 +25,7 @@ import globalAxios from 'axios';
25
25
  // @ts-ignore
26
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
27
  // @ts-ignore
28
- import { BASE_PATH, BaseAPI } from '../base';
28
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
29
29
  /**
30
30
  * ProductsApi - axios parameter creator
31
31
  * @export
@@ -515,18 +515,18 @@ 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 {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<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.
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.
519
520
  * @param {number} [filter_id] The ID of the filter to use
520
521
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
521
522
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
522
523
  * @param {'id' | 'name' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;name&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
523
524
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
524
525
  * @param {string} [updated_since] If set, only products with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
525
- * @param {string} [custom_fields] 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 a smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
526
526
 
527
527
  * @throws {RequiredError}
528
528
  */
529
- getProducts: (owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields) => __awaiter(this, void 0, void 0, function* () {
529
+ getProducts: (owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since) => __awaiter(this, void 0, void 0, function* () {
530
530
  const localVarPath = `/products`;
531
531
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
532
532
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -545,8 +545,11 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
545
545
  if (owner_id !== undefined) {
546
546
  localVarQueryParameter['owner_id'] = owner_id;
547
547
  }
548
- if (ids !== undefined) {
549
- localVarQueryParameter['ids'] = ids;
548
+ if (ids) {
549
+ localVarQueryParameter['ids'] = Array.from(ids).join(COLLECTION_FORMATS.csv);
550
+ }
551
+ if (custom_fields) {
552
+ localVarQueryParameter['custom_fields'] = Array.from(custom_fields).join(COLLECTION_FORMATS.csv);
550
553
  }
551
554
  if (filter_id !== undefined) {
552
555
  localVarQueryParameter['filter_id'] = filter_id;
@@ -566,9 +569,6 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
566
569
  if (updated_since !== undefined) {
567
570
  localVarQueryParameter['updated_since'] = updated_since;
568
571
  }
569
- if (custom_fields !== undefined) {
570
- localVarQueryParameter['custom_fields'] = custom_fields;
571
- }
572
572
  setSearchParams(localVarUrlObj, localVarQueryParameter);
573
573
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
574
574
  localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
@@ -989,20 +989,20 @@ 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 {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<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.
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.
993
994
  * @param {number} [filter_id] The ID of the filter to use
994
995
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
995
996
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
996
997
  * @param {'id' | 'name' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;name&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
997
998
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
998
999
  * @param {string} [updated_since] If set, only products with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
999
- * @param {string} [custom_fields] 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 a smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
1000
1000
 
1001
1001
  * @throws {RequiredError}
1002
1002
  */
1003
- getProducts(owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields) {
1003
+ getProducts(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since) {
1004
1004
  return __awaiter(this, void 0, void 0, function* () {
1005
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getProducts(owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields);
1005
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProducts(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since);
1006
1006
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1007
1007
  });
1008
1008
  },
@@ -1228,7 +1228,7 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
1228
1228
  * @throws {RequiredError}
1229
1229
  */
1230
1230
  getProducts(requestParameters = {}) {
1231
- return localVarFp.getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since, requestParameters.custom_fields).then((request) => request(axios, basePath));
1231
+ return localVarFp.getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(axios, basePath));
1232
1232
  },
1233
1233
  /**
1234
1234
  * 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.
@@ -1441,7 +1441,7 @@ export class ProductsApi extends BaseAPI {
1441
1441
  * @memberof ProductsApi
1442
1442
  */
1443
1443
  getProducts(requestParameters = {}) {
1444
- return ProductsApiFp(this.configuration).getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
1444
+ return ProductsApiFp(this.configuration).getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(this.axios, this.basePath));
1445
1445
  }
1446
1446
  /**
1447
1447
  * 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.
@@ -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 {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<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.
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.
@@ -52,22 +52,22 @@ export declare const ActivitiesApiAxiosParamCreator: (configuration?: Configurat
52
52
  * @param {string} [updated_until] If set, only activities with an &#x60;update_time&#x60; earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
53
53
  * @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;update_time&#x60;, &#x60;add_time&#x60;, &#x60;due_date&#x60;.
54
54
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
55
- * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
55
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
56
56
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
57
57
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
58
58
 
59
59
  * @throws {RequiredError}
60
60
  */
61
- getActivities: (filter_id?: number, ids?: 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?: 'attendees', limit?: number, cursor?: string) => Promise<RequestArgs>;
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>;
62
62
  /**
63
63
  * Returns the details of a specific activity.
64
64
  * @summary Get details of an activity
65
65
  * @param {number} id The ID of the activity
66
- * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
66
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
67
67
 
68
68
  * @throws {RequiredError}
69
69
  */
70
- getActivity: (id: number, include_fields?: 'attendees') => Promise<RequestArgs>;
70
+ getActivity: (id: number, include_fields?: Set<'attendees'>) => Promise<RequestArgs>;
71
71
  /**
72
72
  * Updates the properties of an activity.
73
73
  * @summary Update 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 {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<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.
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.
@@ -114,22 +114,22 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
114
114
  * @param {string} [updated_until] If set, only activities with an &#x60;update_time&#x60; earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
115
115
  * @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;update_time&#x60;, &#x60;add_time&#x60;, &#x60;due_date&#x60;.
116
116
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
117
- * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
117
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
118
118
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
119
119
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
120
120
 
121
121
  * @throws {RequiredError}
122
122
  */
123
- getActivities(filter_id?: number, ids?: 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?: 'attendees', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivitiesResponse>>;
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>>;
124
124
  /**
125
125
  * Returns the details of a specific activity.
126
126
  * @summary Get details of an activity
127
127
  * @param {number} id The ID of the activity
128
- * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
128
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
129
129
 
130
130
  * @throws {RequiredError}
131
131
  */
132
- getActivity(id: number, include_fields?: 'attendees'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertActivityResponse>>;
132
+ getActivity(id: number, include_fields?: Set<'attendees'>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertActivityResponse>>;
133
133
  /**
134
134
  * Updates the properties of an activity.
135
135
  * @summary Update an activity
@@ -226,10 +226,10 @@ export interface ActivitiesApiGetActivitiesRequest {
226
226
  readonly filter_id?: number;
227
227
  /**
228
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 {string}
229
+ * @type {Set<string>}
230
230
  * @memberof ActivitiesApiGetActivities
231
231
  */
232
- readonly ids?: string;
232
+ readonly ids?: Set<string>;
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}
@@ -292,10 +292,10 @@ export interface ActivitiesApiGetActivitiesRequest {
292
292
  readonly sort_direction?: 'asc' | 'desc';
293
293
  /**
294
294
  * Optional comma separated string array of additional fields to include
295
- * @type {'attendees'}
295
+ * @type {Set<'attendees'>}
296
296
  * @memberof ActivitiesApiGetActivities
297
297
  */
298
- readonly include_fields?: 'attendees';
298
+ readonly include_fields?: Set<'attendees'>;
299
299
  /**
300
300
  * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
301
301
  * @type {number}
@@ -323,10 +323,10 @@ export interface ActivitiesApiGetActivityRequest {
323
323
  readonly id: number;
324
324
  /**
325
325
  * Optional comma separated string array of additional fields to include
326
- * @type {'attendees'}
326
+ * @type {Set<'attendees'>}
327
327
  * @memberof ActivitiesApiGetActivity
328
328
  */
329
- readonly include_fields?: 'attendees';
329
+ readonly include_fields?: Set<'attendees'>;
330
330
  }
331
331
  /**
332
332
  * Request parameters for updateActivity operation in ActivitiesApi.
@@ -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 {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<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.
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.
@@ -120,7 +120,7 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
120
120
  * @param {string} [updated_until] If set, only activities with an &#x60;update_time&#x60; earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
121
121
  * @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;update_time&#x60;, &#x60;add_time&#x60;, &#x60;due_date&#x60;.
122
122
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
123
- * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
123
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
124
124
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
125
125
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
126
126
 
@@ -145,8 +145,8 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
145
145
  if (filter_id !== undefined) {
146
146
  localVarQueryParameter['filter_id'] = filter_id;
147
147
  }
148
- if (ids !== undefined) {
149
- localVarQueryParameter['ids'] = ids;
148
+ if (ids) {
149
+ localVarQueryParameter['ids'] = Array.from(ids).join(base_1.COLLECTION_FORMATS.csv);
150
150
  }
151
151
  if (owner_id !== undefined) {
152
152
  localVarQueryParameter['owner_id'] = owner_id;
@@ -178,8 +178,8 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
178
178
  if (sort_direction !== undefined) {
179
179
  localVarQueryParameter['sort_direction'] = sort_direction;
180
180
  }
181
- if (include_fields !== undefined) {
182
- localVarQueryParameter['include_fields'] = include_fields;
181
+ if (include_fields) {
182
+ localVarQueryParameter['include_fields'] = Array.from(include_fields).join(base_1.COLLECTION_FORMATS.csv);
183
183
  }
184
184
  if (limit !== undefined) {
185
185
  localVarQueryParameter['limit'] = limit;
@@ -199,7 +199,7 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
199
199
  * Returns the details of a specific activity.
200
200
  * @summary Get details of an activity
201
201
  * @param {number} id The ID of the activity
202
- * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
202
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
203
203
 
204
204
  * @throws {RequiredError}
205
205
  */
@@ -222,8 +222,8 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
222
222
  // authentication oauth2 required
223
223
  // oauth required
224
224
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration);
225
- if (include_fields !== undefined) {
226
- localVarQueryParameter['include_fields'] = include_fields;
225
+ if (include_fields) {
226
+ localVarQueryParameter['include_fields'] = Array.from(include_fields).join(base_1.COLLECTION_FORMATS.csv);
227
227
  }
228
228
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
229
229
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -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 {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<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.
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.
@@ -321,7 +321,7 @@ const ActivitiesApiFp = function (configuration) {
321
321
  * @param {string} [updated_until] If set, only activities with an &#x60;update_time&#x60; earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
322
322
  * @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;update_time&#x60;, &#x60;add_time&#x60;, &#x60;due_date&#x60;.
323
323
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
324
- * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
324
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
325
325
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
326
326
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
327
327
 
@@ -337,7 +337,7 @@ const ActivitiesApiFp = function (configuration) {
337
337
  * Returns the details of a specific activity.
338
338
  * @summary Get details of an activity
339
339
  * @param {number} id The ID of the activity
340
- * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include
340
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
341
341
 
342
342
  * @throws {RequiredError}
343
343
  */
@@ -23,21 +23,21 @@ export declare const ActivityFieldsApiAxiosParamCreator: (configuration?: Config
23
23
  * Returns metadata about a specific activity field.
24
24
  * @summary Get one activity field
25
25
  * @param {string} field_code The unique code identifying the field
26
- * @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
26
+ * @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
27
27
 
28
28
  * @throws {RequiredError}
29
29
  */
30
- getActivityField: (field_code: string, include_fields?: 'ui_visibility') => Promise<RequestArgs>;
30
+ getActivityField: (field_code: string, include_fields?: Set<'ui_visibility'>) => Promise<RequestArgs>;
31
31
  /**
32
32
  * Returns metadata about all activity fields in the company.
33
33
  * @summary Get all activity fields
34
- * @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
34
+ * @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
35
35
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
36
36
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
37
37
 
38
38
  * @throws {RequiredError}
39
39
  */
40
- getActivityFields: (include_fields?: 'ui_visibility', limit?: number, cursor?: string) => Promise<RequestArgs>;
40
+ getActivityFields: (include_fields?: Set<'ui_visibility'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
41
41
  };
42
42
  /**
43
43
  * ActivityFieldsApi - functional programming interface
@@ -48,21 +48,21 @@ export declare const ActivityFieldsApiFp: (configuration?: Configuration) => {
48
48
  * Returns metadata about a specific activity field.
49
49
  * @summary Get one activity field
50
50
  * @param {string} field_code The unique code identifying the field
51
- * @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
51
+ * @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
52
52
 
53
53
  * @throws {RequiredError}
54
54
  */
55
- getActivityField(field_code: string, include_fields?: 'ui_visibility'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivityField200Response>>;
55
+ getActivityField(field_code: string, include_fields?: Set<'ui_visibility'>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivityField200Response>>;
56
56
  /**
57
57
  * Returns metadata about all activity fields in the company.
58
58
  * @summary Get all activity fields
59
- * @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
59
+ * @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
60
60
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
61
61
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
62
62
 
63
63
  * @throws {RequiredError}
64
64
  */
65
- getActivityFields(include_fields?: 'ui_visibility', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivityFields200Response>>;
65
+ getActivityFields(include_fields?: Set<'ui_visibility'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivityFields200Response>>;
66
66
  };
67
67
  /**
68
68
  * ActivityFieldsApi - factory interface
@@ -100,10 +100,10 @@ export interface ActivityFieldsApiGetActivityFieldRequest {
100
100
  readonly field_code: string;
101
101
  /**
102
102
  * Optional comma separated string array of additional data namespaces to include in response
103
- * @type {'ui_visibility'}
103
+ * @type {Set<'ui_visibility'>}
104
104
  * @memberof ActivityFieldsApiGetActivityField
105
105
  */
106
- readonly include_fields?: 'ui_visibility';
106
+ readonly include_fields?: Set<'ui_visibility'>;
107
107
  }
108
108
  /**
109
109
  * Request parameters for getActivityFields operation in ActivityFieldsApi.
@@ -113,10 +113,10 @@ export interface ActivityFieldsApiGetActivityFieldRequest {
113
113
  export interface ActivityFieldsApiGetActivityFieldsRequest {
114
114
  /**
115
115
  * Optional comma separated string array of additional data namespaces to include in response
116
- * @type {'ui_visibility'}
116
+ * @type {Set<'ui_visibility'>}
117
117
  * @memberof ActivityFieldsApiGetActivityFields
118
118
  */
119
- readonly include_fields?: 'ui_visibility';
119
+ readonly include_fields?: Set<'ui_visibility'>;
120
120
  /**
121
121
  * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
122
122
  * @type {number}
@@ -42,7 +42,7 @@ const ActivityFieldsApiAxiosParamCreator = function (configuration) {
42
42
  * Returns metadata about a specific activity field.
43
43
  * @summary Get one activity field
44
44
  * @param {string} field_code The unique code identifying the field
45
- * @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
45
+ * @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
46
46
 
47
47
  * @throws {RequiredError}
48
48
  */
@@ -65,8 +65,8 @@ const ActivityFieldsApiAxiosParamCreator = function (configuration) {
65
65
  // authentication oauth2 required
66
66
  // oauth required
67
67
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["admin"], configuration);
68
- if (include_fields !== undefined) {
69
- localVarQueryParameter['include_fields'] = include_fields;
68
+ if (include_fields) {
69
+ localVarQueryParameter['include_fields'] = Array.from(include_fields).join(base_1.COLLECTION_FORMATS.csv);
70
70
  }
71
71
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
72
72
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -79,7 +79,7 @@ const ActivityFieldsApiAxiosParamCreator = function (configuration) {
79
79
  /**
80
80
  * Returns metadata about all activity fields in the company.
81
81
  * @summary Get all activity fields
82
- * @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
82
+ * @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
83
83
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
84
84
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
85
85
 
@@ -101,8 +101,8 @@ const ActivityFieldsApiAxiosParamCreator = function (configuration) {
101
101
  // authentication oauth2 required
102
102
  // oauth required
103
103
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["admin"], configuration);
104
- if (include_fields !== undefined) {
105
- localVarQueryParameter['include_fields'] = include_fields;
104
+ if (include_fields) {
105
+ localVarQueryParameter['include_fields'] = Array.from(include_fields).join(base_1.COLLECTION_FORMATS.csv);
106
106
  }
107
107
  if (limit !== undefined) {
108
108
  localVarQueryParameter['limit'] = limit;
@@ -132,7 +132,7 @@ const ActivityFieldsApiFp = function (configuration) {
132
132
  * Returns metadata about a specific activity field.
133
133
  * @summary Get one activity field
134
134
  * @param {string} field_code The unique code identifying the field
135
- * @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
135
+ * @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
136
136
 
137
137
  * @throws {RequiredError}
138
138
  */
@@ -145,7 +145,7 @@ const ActivityFieldsApiFp = function (configuration) {
145
145
  /**
146
146
  * Returns metadata about all activity fields in the company.
147
147
  * @summary Get all activity fields
148
- * @param {'ui_visibility'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
148
+ * @param {Set<'ui_visibility'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
149
149
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
150
150
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
151
151
 
@@ -64,21 +64,21 @@ export declare const DealFieldsApiAxiosParamCreator: (configuration?: Configurat
64
64
  * Returns metadata about a specific deal field.
65
65
  * @summary Get one deal field
66
66
  * @param {string} field_code The unique code identifying the field
67
- * @param {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
67
+ * @param {Set<'ui_visibility' | 'important_fields' | 'required_fields'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
68
68
 
69
69
  * @throws {RequiredError}
70
70
  */
71
- getDealField: (field_code: string, include_fields?: 'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields') => Promise<RequestArgs>;
71
+ getDealField: (field_code: string, include_fields?: Set<'ui_visibility' | 'important_fields' | 'required_fields'>) => Promise<RequestArgs>;
72
72
  /**
73
73
  * Returns metadata about all deal fields in the company.
74
74
  * @summary Get all deal fields
75
- * @param {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
75
+ * @param {Set<'ui_visibility' | 'important_fields' | 'required_fields'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
76
76
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
77
77
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
78
78
 
79
79
  * @throws {RequiredError}
80
80
  */
81
- getDealFields: (include_fields?: 'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields', limit?: number, cursor?: string) => Promise<RequestArgs>;
81
+ getDealFields: (include_fields?: Set<'ui_visibility' | 'important_fields' | 'required_fields'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
82
82
  /**
83
83
  * Updates a deal custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
84
84
  * @summary Update one deal field
@@ -141,21 +141,21 @@ export declare const DealFieldsApiFp: (configuration?: Configuration) => {
141
141
  * Returns metadata about a specific deal field.
142
142
  * @summary Get one deal field
143
143
  * @param {string} field_code The unique code identifying the field
144
- * @param {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
144
+ * @param {Set<'ui_visibility' | 'important_fields' | 'required_fields'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
145
145
 
146
146
  * @throws {RequiredError}
147
147
  */
148
- getDealField(field_code: string, include_fields?: 'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddDealField200Response>>;
148
+ getDealField(field_code: string, include_fields?: Set<'ui_visibility' | 'important_fields' | 'required_fields'>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddDealField200Response>>;
149
149
  /**
150
150
  * Returns metadata about all deal fields in the company.
151
151
  * @summary Get all deal fields
152
- * @param {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
152
+ * @param {Set<'ui_visibility' | 'important_fields' | 'required_fields'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
153
153
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
154
154
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
155
155
 
156
156
  * @throws {RequiredError}
157
157
  */
158
- getDealFields(include_fields?: 'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealFields200Response>>;
158
+ getDealFields(include_fields?: Set<'ui_visibility' | 'important_fields' | 'required_fields'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealFields200Response>>;
159
159
  /**
160
160
  * Updates a deal custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
161
161
  * @summary Update one deal field
@@ -323,10 +323,10 @@ export interface DealFieldsApiGetDealFieldRequest {
323
323
  readonly field_code: string;
324
324
  /**
325
325
  * Optional comma separated string array of additional data namespaces to include in response
326
- * @type {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'}
326
+ * @type {Set<'ui_visibility' | 'important_fields' | 'required_fields'>}
327
327
  * @memberof DealFieldsApiGetDealField
328
328
  */
329
- readonly include_fields?: 'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields';
329
+ readonly include_fields?: Set<'ui_visibility' | 'important_fields' | 'required_fields'>;
330
330
  }
331
331
  /**
332
332
  * Request parameters for getDealFields operation in DealFieldsApi.
@@ -336,10 +336,10 @@ export interface DealFieldsApiGetDealFieldRequest {
336
336
  export interface DealFieldsApiGetDealFieldsRequest {
337
337
  /**
338
338
  * Optional comma separated string array of additional data namespaces to include in response
339
- * @type {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'}
339
+ * @type {Set<'ui_visibility' | 'important_fields' | 'required_fields'>}
340
340
  * @memberof DealFieldsApiGetDealFields
341
341
  */
342
- readonly include_fields?: 'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields';
342
+ readonly include_fields?: Set<'ui_visibility' | 'important_fields' | 'required_fields'>;
343
343
  /**
344
344
  * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
345
345
  * @type {number}
@@ -189,7 +189,7 @@ const DealFieldsApiAxiosParamCreator = function (configuration) {
189
189
  * Returns metadata about a specific deal field.
190
190
  * @summary Get one deal field
191
191
  * @param {string} field_code The unique code identifying the field
192
- * @param {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
192
+ * @param {Set<'ui_visibility' | 'important_fields' | 'required_fields'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
193
193
 
194
194
  * @throws {RequiredError}
195
195
  */
@@ -212,8 +212,8 @@ const DealFieldsApiAxiosParamCreator = function (configuration) {
212
212
  // authentication oauth2 required
213
213
  // oauth required
214
214
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin", "deal-fields:full"], configuration);
215
- if (include_fields !== undefined) {
216
- localVarQueryParameter['include_fields'] = include_fields;
215
+ if (include_fields) {
216
+ localVarQueryParameter['include_fields'] = Array.from(include_fields).join(base_1.COLLECTION_FORMATS.csv);
217
217
  }
218
218
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
219
219
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -226,7 +226,7 @@ const DealFieldsApiAxiosParamCreator = function (configuration) {
226
226
  /**
227
227
  * Returns metadata about all deal fields in the company.
228
228
  * @summary Get all deal fields
229
- * @param {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
229
+ * @param {Set<'ui_visibility' | 'important_fields' | 'required_fields'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
230
230
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
231
231
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
232
232
 
@@ -248,8 +248,8 @@ const DealFieldsApiAxiosParamCreator = function (configuration) {
248
248
  // authentication oauth2 required
249
249
  // oauth required
250
250
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin", "deal-fields:full"], configuration);
251
- if (include_fields !== undefined) {
252
- localVarQueryParameter['include_fields'] = include_fields;
251
+ if (include_fields) {
252
+ localVarQueryParameter['include_fields'] = Array.from(include_fields).join(base_1.COLLECTION_FORMATS.csv);
253
253
  }
254
254
  if (limit !== undefined) {
255
255
  localVarQueryParameter['limit'] = limit;
@@ -411,7 +411,7 @@ const DealFieldsApiFp = function (configuration) {
411
411
  * Returns metadata about a specific deal field.
412
412
  * @summary Get one deal field
413
413
  * @param {string} field_code The unique code identifying the field
414
- * @param {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
414
+ * @param {Set<'ui_visibility' | 'important_fields' | 'required_fields'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
415
415
 
416
416
  * @throws {RequiredError}
417
417
  */
@@ -424,7 +424,7 @@ const DealFieldsApiFp = function (configuration) {
424
424
  /**
425
425
  * Returns metadata about all deal fields in the company.
426
426
  * @summary Get all deal fields
427
- * @param {'ui_visibility' | 'important_fields' | 'required_fields' | 'ui_visibility,important_fields' | 'ui_visibility,required_fields' | 'important_fields,required_fields' | 'ui_visibility,important_fields,required_fields'} [include_fields] Optional comma separated string array of additional data namespaces to include in response
427
+ * @param {Set<'ui_visibility' | 'important_fields' | 'required_fields'>} [include_fields] Optional comma separated string array of additional data namespaces to include in response
428
428
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
429
429
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
430
430