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
@@ -521,18 +521,18 @@ const ProductsApiAxiosParamCreator = function (configuration) {
521
521
  * Returns data about all products.
522
522
  * @summary Get all products
523
523
  * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
524
- * @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.
524
+ * @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.
525
+ * @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.
525
526
  * @param {number} [filter_id] The ID of the filter to use
526
527
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
527
528
  * @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.
528
529
  * @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;.
529
530
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
530
531
  * @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.
531
- * @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.
532
532
 
533
533
  * @throws {RequiredError}
534
534
  */
535
- getProducts: (owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields) => __awaiter(this, void 0, void 0, function* () {
535
+ getProducts: (owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since) => __awaiter(this, void 0, void 0, function* () {
536
536
  const localVarPath = `/products`;
537
537
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
538
538
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -551,8 +551,11 @@ const ProductsApiAxiosParamCreator = function (configuration) {
551
551
  if (owner_id !== undefined) {
552
552
  localVarQueryParameter['owner_id'] = owner_id;
553
553
  }
554
- if (ids !== undefined) {
555
- localVarQueryParameter['ids'] = ids;
554
+ if (ids) {
555
+ localVarQueryParameter['ids'] = Array.from(ids).join(base_1.COLLECTION_FORMATS.csv);
556
+ }
557
+ if (custom_fields) {
558
+ localVarQueryParameter['custom_fields'] = Array.from(custom_fields).join(base_1.COLLECTION_FORMATS.csv);
556
559
  }
557
560
  if (filter_id !== undefined) {
558
561
  localVarQueryParameter['filter_id'] = filter_id;
@@ -572,9 +575,6 @@ const ProductsApiAxiosParamCreator = function (configuration) {
572
575
  if (updated_since !== undefined) {
573
576
  localVarQueryParameter['updated_since'] = updated_since;
574
577
  }
575
- if (custom_fields !== undefined) {
576
- localVarQueryParameter['custom_fields'] = custom_fields;
577
- }
578
578
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
579
579
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
580
580
  localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
@@ -996,20 +996,20 @@ const ProductsApiFp = function (configuration) {
996
996
  * Returns data about all products.
997
997
  * @summary Get all products
998
998
  * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
999
- * @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.
999
+ * @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.
1000
+ * @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.
1000
1001
  * @param {number} [filter_id] The ID of the filter to use
1001
1002
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
1002
1003
  * @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.
1003
1004
  * @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;.
1004
1005
  * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
1005
1006
  * @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.
1006
- * @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.
1007
1007
 
1008
1008
  * @throws {RequiredError}
1009
1009
  */
1010
- getProducts(owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields) {
1010
+ getProducts(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since) {
1011
1011
  return __awaiter(this, void 0, void 0, function* () {
1012
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getProducts(owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, updated_since, custom_fields);
1012
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProducts(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since);
1013
1013
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1014
1014
  });
1015
1015
  },
@@ -1236,7 +1236,7 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1236
1236
  * @throws {RequiredError}
1237
1237
  */
1238
1238
  getProducts(requestParameters = {}) {
1239
- 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));
1239
+ 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));
1240
1240
  },
1241
1241
  /**
1242
1242
  * 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.
@@ -1450,7 +1450,7 @@ class ProductsApi extends base_1.BaseAPI {
1450
1450
  * @memberof ProductsApi
1451
1451
  */
1452
1452
  getProducts(requestParameters = {}) {
1453
- return (0, exports.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));
1453
+ return (0, exports.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));
1454
1454
  }
1455
1455
  /**
1456
1456
  * 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "33.9.0",
3
+ "version": "34.0.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "homepage": "https://developers.pipedrive.com",