pipedrive 12.0.2 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,35 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
6
6
 
7
7
  For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
8
8
 
9
+ ## [Unreleased]
10
+
11
+ ## 13.0.0
12
+ ### Removed
13
+ - Removed `int` type from `POST /v1/organizationFields` field_type values
14
+ - Removed `int` type from `POST /v1/personFields` field_type values
15
+ - Removed `int` type from `POST /v1/dealFields` field_type values
16
+
17
+ ## 12.2.0
18
+ ### Changed
19
+ - Changed notes and comments endpoints additional_data to match the correct pagination response
20
+ structure
21
+ * GET /notes
22
+ * GET /notes/:id/comments
23
+
24
+ ## 12.1.0
25
+ ### Removed
26
+ * Removed deprecated endpoints that were deleted:
27
+ * GET /deals/find
28
+ * GET /persons/find
29
+ * GET /organizations/find
30
+ * GET /products/find
31
+ * GET /searchResults
32
+ * GET /searchResults/field
33
+
34
+ ## 12.0.3
35
+ ### Changed
36
+ - Changed addDeal POST endpoint to include required person_id or org_id
37
+
9
38
  ## 12.0.2
10
39
  ### Fixed
11
40
  * Use /api/v1 path when accessing the API using company domain
package/README.md CHANGED
@@ -309,7 +309,6 @@ Class | Method | HTTP request | Description
309
309
  *Pipedrive.DealsApi* | [**getDealUpdates**](docs/DealsApi.md#getDealUpdates) | **GET** /deals/{id}/flow | List updates about a deal
310
310
  *Pipedrive.DealsApi* | [**getDealUsers**](docs/DealsApi.md#getDealUsers) | **GET** /deals/{id}/permittedUsers | List permitted users
311
311
  *Pipedrive.DealsApi* | [**getDeals**](docs/DealsApi.md#getDeals) | **GET** /deals | Get all deals
312
- *Pipedrive.DealsApi* | [**getDealsByName**](docs/DealsApi.md#getDealsByName) | **GET** /deals/find | Find deals by name
313
312
  *Pipedrive.DealsApi* | [**getDealsSummary**](docs/DealsApi.md#getDealsSummary) | **GET** /deals/summary | Get deals summary
314
313
  *Pipedrive.DealsApi* | [**getDealsTimeline**](docs/DealsApi.md#getDealsTimeline) | **GET** /deals/timeline | Get deals timeline
315
314
  *Pipedrive.DealsApi* | [**mergeDeals**](docs/DealsApi.md#mergeDeals) | **PUT** /deals/{id}/merge | Merge two deals
@@ -385,7 +384,6 @@ Class | Method | HTTP request | Description
385
384
  *Pipedrive.OrganizationsApi* | [**deleteOrganizations**](docs/OrganizationsApi.md#deleteOrganizations) | **DELETE** /organizations | Delete multiple organizations in bulk
386
385
  *Pipedrive.OrganizationsApi* | [**getOrganization**](docs/OrganizationsApi.md#getOrganization) | **GET** /organizations/{id} | Get details of an organization
387
386
  *Pipedrive.OrganizationsApi* | [**getOrganizationActivities**](docs/OrganizationsApi.md#getOrganizationActivities) | **GET** /organizations/{id}/activities | List activities associated with an organization
388
- *Pipedrive.OrganizationsApi* | [**getOrganizationByName**](docs/OrganizationsApi.md#getOrganizationByName) | **GET** /organizations/find | Find organizations by name
389
387
  *Pipedrive.OrganizationsApi* | [**getOrganizationDeals**](docs/OrganizationsApi.md#getOrganizationDeals) | **GET** /organizations/{id}/deals | List deals associated with an organization
390
388
  *Pipedrive.OrganizationsApi* | [**getOrganizationFiles**](docs/OrganizationsApi.md#getOrganizationFiles) | **GET** /organizations/{id}/files | List files attached to an organization
391
389
  *Pipedrive.OrganizationsApi* | [**getOrganizationFollowers**](docs/OrganizationsApi.md#getOrganizationFollowers) | **GET** /organizations/{id}/followers | List followers of an organization
@@ -413,7 +411,6 @@ Class | Method | HTTP request | Description
413
411
  *Pipedrive.PersonsApi* | [**deletePersonFollower**](docs/PersonsApi.md#deletePersonFollower) | **DELETE** /persons/{id}/followers/{follower_id} | Deletes a follower from a person.
414
412
  *Pipedrive.PersonsApi* | [**deletePersonPicture**](docs/PersonsApi.md#deletePersonPicture) | **DELETE** /persons/{id}/picture | Delete person picture
415
413
  *Pipedrive.PersonsApi* | [**deletePersons**](docs/PersonsApi.md#deletePersons) | **DELETE** /persons | Delete multiple persons in bulk
416
- *Pipedrive.PersonsApi* | [**findPersonByName**](docs/PersonsApi.md#findPersonByName) | **GET** /persons/find | Find persons by name
417
414
  *Pipedrive.PersonsApi* | [**getPerson**](docs/PersonsApi.md#getPerson) | **GET** /persons/{id} | Get details of a person
418
415
  *Pipedrive.PersonsApi* | [**getPersonActivities**](docs/PersonsApi.md#getPersonActivities) | **GET** /persons/{id}/activities | List activities associated with a person
419
416
  *Pipedrive.PersonsApi* | [**getPersonDeals**](docs/PersonsApi.md#getPersonDeals) | **GET** /persons/{id}/deals | List deals associated with a person
@@ -445,7 +442,6 @@ Class | Method | HTTP request | Description
445
442
  *Pipedrive.ProductsApi* | [**addProductFollower**](docs/ProductsApi.md#addProductFollower) | **POST** /products/{id}/followers | Add a follower to a product
446
443
  *Pipedrive.ProductsApi* | [**deleteProduct**](docs/ProductsApi.md#deleteProduct) | **DELETE** /products/{id} | Delete a product
447
444
  *Pipedrive.ProductsApi* | [**deleteProductFollower**](docs/ProductsApi.md#deleteProductFollower) | **DELETE** /products/{id}/followers/{follower_id} | Delete a follower from a product
448
- *Pipedrive.ProductsApi* | [**findProductsByName**](docs/ProductsApi.md#findProductsByName) | **GET** /products/find | Find products by name
449
445
  *Pipedrive.ProductsApi* | [**getProduct**](docs/ProductsApi.md#getProduct) | **GET** /products/{id} | Get one product
450
446
  *Pipedrive.ProductsApi* | [**getProductDeals**](docs/ProductsApi.md#getProductDeals) | **GET** /products/{id}/deals | Get deals where a product is attached to
451
447
  *Pipedrive.ProductsApi* | [**getProductFiles**](docs/ProductsApi.md#getProductFiles) | **GET** /products/{id}/files | List files attached to a product
@@ -466,8 +462,6 @@ Class | Method | HTTP request | Description
466
462
  *Pipedrive.RolesApi* | [**getRoleSubRoles**](docs/RolesApi.md#getRoleSubRoles) | **GET** /roles/{id}/roles | List role sub-roles
467
463
  *Pipedrive.RolesApi* | [**getRoles**](docs/RolesApi.md#getRoles) | **GET** /roles | Get all roles
468
464
  *Pipedrive.RolesApi* | [**updateRole**](docs/RolesApi.md#updateRole) | **PUT** /roles/{id} | Update role details
469
- *Pipedrive.SearchResultsApi* | [**search**](docs/SearchResultsApi.md#search) | **GET** /searchResults | Perform a search
470
- *Pipedrive.SearchResultsApi* | [**searchByField**](docs/SearchResultsApi.md#searchByField) | **GET** /searchResults/field | Perform a search using a specific field value
471
465
  *Pipedrive.StagesApi* | [**addStage**](docs/StagesApi.md#addStage) | **POST** /stages | Add a new stage
472
466
  *Pipedrive.StagesApi* | [**deleteStage**](docs/StagesApi.md#deleteStage) | **DELETE** /stages/{id} | Delete a stage
473
467
  *Pipedrive.StagesApi* | [**deleteStages**](docs/StagesApi.md#deleteStages) | **DELETE** /stages | Delete multiple stages in bulk
@@ -569,6 +563,7 @@ Class | Method | HTTP request | Description
569
563
  - [Pipedrive.AddedDealFollowerData](docs/AddedDealFollowerData.md)
570
564
  - [Pipedrive.AdditionalBaseOrganizationItemInfo](docs/AdditionalBaseOrganizationItemInfo.md)
571
565
  - [Pipedrive.AdditionalData](docs/AdditionalData.md)
566
+ - [Pipedrive.AdditionalDataWithPagination](docs/AdditionalDataWithPagination.md)
572
567
  - [Pipedrive.AdditionalDataWithPaginationDetails](docs/AdditionalDataWithPaginationDetails.md)
573
568
  - [Pipedrive.AdditionalMergePersonInfo](docs/AdditionalMergePersonInfo.md)
574
569
  - [Pipedrive.AdditionalPersonInfo](docs/AdditionalPersonInfo.md)
@@ -684,6 +679,7 @@ Class | Method | HTTP request | Description
684
679
  - [Pipedrive.DealSummaryPerStages](docs/DealSummaryPerStages.md)
685
680
  - [Pipedrive.DealSummaryPerStagesSTAGEID](docs/DealSummaryPerStagesSTAGEID.md)
686
681
  - [Pipedrive.DealSummaryPerStagesSTAGEIDCURRENCYID](docs/DealSummaryPerStagesSTAGEIDCURRENCYID.md)
682
+ - [Pipedrive.DealTitleParameter](docs/DealTitleParameter.md)
687
683
  - [Pipedrive.DealUserData](docs/DealUserData.md)
688
684
  - [Pipedrive.DealUserDataWithId](docs/DealUserDataWithId.md)
689
685
  - [Pipedrive.DealUserDataWithIdAllOf](docs/DealUserDataWithIdAllOf.md)
@@ -775,8 +771,6 @@ Class | Method | HTTP request | Description
775
771
  - [Pipedrive.FiltersPostResponseAllOf](docs/FiltersPostResponseAllOf.md)
776
772
  - [Pipedrive.FiltersPostResponseAllOfData](docs/FiltersPostResponseAllOfData.md)
777
773
  - [Pipedrive.FindGoalResponse](docs/FindGoalResponse.md)
778
- - [Pipedrive.FindProductsByNameResponse](docs/FindProductsByNameResponse.md)
779
- - [Pipedrive.FindProductsByNameResponseData](docs/FindProductsByNameResponseData.md)
780
774
  - [Pipedrive.FollowerData](docs/FollowerData.md)
781
775
  - [Pipedrive.FollowerDataWithID](docs/FollowerDataWithID.md)
782
776
  - [Pipedrive.FollowerDataWithIDAllOf](docs/FollowerDataWithIDAllOf.md)
@@ -799,9 +793,6 @@ Class | Method | HTTP request | Description
799
793
  - [Pipedrive.GetDeal](docs/GetDeal.md)
800
794
  - [Pipedrive.GetDealAdditionalData](docs/GetDealAdditionalData.md)
801
795
  - [Pipedrive.GetDeals](docs/GetDeals.md)
802
- - [Pipedrive.GetDealsByName](docs/GetDealsByName.md)
803
- - [Pipedrive.GetDealsByNameAdditionalData](docs/GetDealsByNameAdditionalData.md)
804
- - [Pipedrive.GetDealsByNameData](docs/GetDealsByNameData.md)
805
796
  - [Pipedrive.GetDealsConversionRatesInPipeline](docs/GetDealsConversionRatesInPipeline.md)
806
797
  - [Pipedrive.GetDealsConversionRatesInPipelineAllOf](docs/GetDealsConversionRatesInPipelineAllOf.md)
807
798
  - [Pipedrive.GetDealsConversionRatesInPipelineAllOfData](docs/GetDealsConversionRatesInPipelineAllOfData.md)
@@ -1118,6 +1109,7 @@ Class | Method | HTTP request | Description
1118
1109
  - [Pipedrive.RelationshipOrganizationInfoItem](docs/RelationshipOrganizationInfoItem.md)
1119
1110
  - [Pipedrive.RelationshipOrganizationInfoItemAllOf](docs/RelationshipOrganizationInfoItemAllOf.md)
1120
1111
  - [Pipedrive.RelationshipOrganizationInfoItemWithActiveFlag](docs/RelationshipOrganizationInfoItemWithActiveFlag.md)
1112
+ - [Pipedrive.RequredTitleParameter](docs/RequredTitleParameter.md)
1121
1113
  - [Pipedrive.ResponseCallLogObject](docs/ResponseCallLogObject.md)
1122
1114
  - [Pipedrive.ResponseCallLogObjectAllOf](docs/ResponseCallLogObjectAllOf.md)
1123
1115
  - [Pipedrive.RoleAssignment](docs/RoleAssignment.md)
@@ -1149,6 +1141,7 @@ Class | Method | HTTP request | Description
1149
1141
  - [Pipedrive.TeamsAllOf](docs/TeamsAllOf.md)
1150
1142
  - [Pipedrive.Unauthorized](docs/Unauthorized.md)
1151
1143
  - [Pipedrive.UpdateActivityResponse200](docs/UpdateActivityResponse200.md)
1144
+ - [Pipedrive.UpdateDealRequest](docs/UpdateDealRequest.md)
1152
1145
  - [Pipedrive.UpdateFile](docs/UpdateFile.md)
1153
1146
  - [Pipedrive.UpdateFilterRequest](docs/UpdateFilterRequest.md)
1154
1147
  - [Pipedrive.UpdateLeadLabelRequest](docs/UpdateLeadLabelRequest.md)
@@ -21,8 +21,6 @@ var _AddDealParticipantRequest = _interopRequireDefault(require("../model/AddDea
21
21
 
22
22
  var _AddedDealFollower = _interopRequireDefault(require("../model/AddedDealFollower"));
23
23
 
24
- var _BasicDeal = _interopRequireDefault(require("../model/BasicDeal"));
25
-
26
24
  var _BasicDealProduct = _interopRequireDefault(require("../model/BasicDealProduct"));
27
25
 
28
26
  var _DealFlowResponse = _interopRequireDefault(require("../model/DealFlowResponse"));
@@ -51,8 +49,6 @@ var _GetDeal = _interopRequireDefault(require("../model/GetDeal"));
51
49
 
52
50
  var _GetDeals = _interopRequireDefault(require("../model/GetDeals"));
53
51
 
54
- var _GetDealsByName = _interopRequireDefault(require("../model/GetDealsByName"));
55
-
56
52
  var _GetDealsSummary = _interopRequireDefault(require("../model/GetDealsSummary"));
57
53
 
58
54
  var _GetDealsTimeline = _interopRequireDefault(require("../model/GetDealsTimeline"));
@@ -85,6 +81,8 @@ var _NumberBoolean = _interopRequireDefault(require("../model/NumberBoolean"));
85
81
 
86
82
  var _PostDealParticipants = _interopRequireDefault(require("../model/PostDealParticipants"));
87
83
 
84
+ var _UpdateDealRequest = _interopRequireDefault(require("../model/UpdateDealRequest"));
85
+
88
86
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
89
87
 
90
88
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -1437,71 +1435,6 @@ var DealsApi = /*#__PURE__*/function () {
1437
1435
  return response_and_data;
1438
1436
  });
1439
1437
  }
1440
- /**
1441
- * Find deals by name
1442
- * This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1//Deals#searchDeals\">/v1/deals/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Searches all deals by their title.
1443
- * @param {String} term Search term to look for
1444
- * @param {Object} opts Optional parameters
1445
- * @param {Number} opts.personId ID of the person the Deal is associated with.
1446
- * @param {Number} opts.orgId ID of the organization the Deal is associated with.
1447
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDealsByName} and HTTP response
1448
- */
1449
-
1450
- }, {
1451
- key: "getDealsByNameWithHttpInfo",
1452
- value: function getDealsByNameWithHttpInfo(term, opts) {
1453
- opts = opts || {};
1454
- var postBody = null; // verify the required parameter 'term' is set
1455
-
1456
- if (term === undefined || term === null) {
1457
- throw new Error("Missing the required parameter 'term' when calling getDealsByName");
1458
- }
1459
-
1460
- var pathParams = {};
1461
- var queryParams = {
1462
- 'term': term,
1463
- 'person_id': opts['personId'],
1464
- 'org_id': opts['orgId']
1465
- };
1466
- var headerParams = {};
1467
- var formParams = {};
1468
- var formParamArray = [];
1469
- var contentTypes = [];
1470
- var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
1471
- var isJSON = contentTypes.includes('application/json');
1472
-
1473
- if (isJSON) {
1474
- postBody = _objectSpread(_objectSpread({}, postBody), opts);
1475
- } else if (isURLEncoded) {
1476
- for (var key in opts) {
1477
- if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
1478
- formParams[key] = opts[key];
1479
- }
1480
- }
1481
- }
1482
-
1483
- var authNames = ['api_key', 'oauth2'];
1484
- var accepts = ['application/json'];
1485
- var returnType = _GetDealsByName["default"];
1486
- return this.apiClient.callApi('/deals/find', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1487
- }
1488
- /**
1489
- * Find deals by name
1490
- * This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1//Deals#searchDeals\">/v1/deals/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Searches all deals by their title.
1491
- * @param {String} term Search term to look for
1492
- * @param {Object} opts Optional parameters
1493
- * @param {Number} opts.personId ID of the person the Deal is associated with.
1494
- * @param {Number} opts.orgId ID of the organization the Deal is associated with.
1495
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDealsByName}
1496
- */
1497
-
1498
- }, {
1499
- key: "getDealsByName",
1500
- value: function getDealsByName(term, opts) {
1501
- return this.getDealsByNameWithHttpInfo(term, opts).then(function (response_and_data) {
1502
- return response_and_data;
1503
- });
1504
- }
1505
1438
  /**
1506
1439
  * Get deals summary
1507
1440
  * Returns summary of all the deals.
@@ -1812,7 +1745,7 @@ var DealsApi = /*#__PURE__*/function () {
1812
1745
  * Updates the properties of a deal. For more information on how to update a deal, see <a href=\"https://pipedrive.readme.io/docs/updating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
1813
1746
  * @param {Number} id ID of the deal
1814
1747
  * @param {Object} opts Optional parameters
1815
- * @param {module:model/BasicDeal} opts.basicDeal
1748
+ * @param {module:model/UpdateDealRequest} opts.updateDealRequest
1816
1749
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddedDeal} and HTTP response
1817
1750
  */
1818
1751
 
@@ -1820,7 +1753,7 @@ var DealsApi = /*#__PURE__*/function () {
1820
1753
  key: "updateDealWithHttpInfo",
1821
1754
  value: function updateDealWithHttpInfo(id, opts) {
1822
1755
  opts = opts || {};
1823
- var postBody = opts['basicDeal']; // verify the required parameter 'id' is set
1756
+ var postBody = opts['updateDealRequest']; // verify the required parameter 'id' is set
1824
1757
 
1825
1758
  if (id === undefined || id === null) {
1826
1759
  throw new Error("Missing the required parameter 'id' when calling updateDeal");
@@ -1857,7 +1790,7 @@ var DealsApi = /*#__PURE__*/function () {
1857
1790
  * Updates the properties of a deal. For more information on how to update a deal, see <a href=\"https://pipedrive.readme.io/docs/updating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
1858
1791
  * @param {Number} id ID of the deal
1859
1792
  * @param {Object} opts Optional parameters
1860
- * @param {module:model/BasicDeal} opts.basicDeal
1793
+ * @param {module:model/UpdateDealRequest} opts.updateDealRequest
1861
1794
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddedDeal}
1862
1795
  */
1863
1796
 
@@ -504,71 +504,6 @@ var OrganizationsApi = /*#__PURE__*/function () {
504
504
  return response_and_data;
505
505
  });
506
506
  }
507
- /**
508
- * Find organizations by name
509
- * This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Organizations#searchOrganization\">/v1/organizations/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Searches all organizations by their name.
510
- * @param {String} term Search term to look for
511
- * @param {Object} opts Optional parameters
512
- * @param {Number} opts.start Pagination start (default to 0)
513
- * @param {Number} opts.limit Items shown per page
514
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
515
- */
516
-
517
- }, {
518
- key: "getOrganizationByNameWithHttpInfo",
519
- value: function getOrganizationByNameWithHttpInfo(term, opts) {
520
- opts = opts || {};
521
- var postBody = null; // verify the required parameter 'term' is set
522
-
523
- if (term === undefined || term === null) {
524
- throw new Error("Missing the required parameter 'term' when calling getOrganizationByName");
525
- }
526
-
527
- var pathParams = {};
528
- var queryParams = {
529
- 'term': term,
530
- 'start': opts['start'],
531
- 'limit': opts['limit']
532
- };
533
- var headerParams = {};
534
- var formParams = {};
535
- var formParamArray = [];
536
- var contentTypes = [];
537
- var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
538
- var isJSON = contentTypes.includes('application/json');
539
-
540
- if (isJSON) {
541
- postBody = _objectSpread(_objectSpread({}, postBody), opts);
542
- } else if (isURLEncoded) {
543
- for (var key in opts) {
544
- if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
545
- formParams[key] = opts[key];
546
- }
547
- }
548
- }
549
-
550
- var authNames = ['api_key', 'oauth2'];
551
- var accepts = ['application/json'];
552
- var returnType = Object;
553
- return this.apiClient.callApi('/organizations/find', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
554
- }
555
- /**
556
- * Find organizations by name
557
- * This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Organizations#searchOrganization\">/v1/organizations/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Searches all organizations by their name.
558
- * @param {String} term Search term to look for
559
- * @param {Object} opts Optional parameters
560
- * @param {Number} opts.start Pagination start (default to 0)
561
- * @param {Number} opts.limit Items shown per page
562
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
563
- */
564
-
565
- }, {
566
- key: "getOrganizationByName",
567
- value: function getOrganizationByName(term, opts) {
568
- return this.getOrganizationByNameWithHttpInfo(term, opts).then(function (response_and_data) {
569
- return response_and_data;
570
- });
571
- }
572
507
  /**
573
508
  * List deals associated with an organization
574
509
  * Lists deals associated with an organization.
@@ -509,77 +509,6 @@ var PersonsApi = /*#__PURE__*/function () {
509
509
  return response_and_data;
510
510
  });
511
511
  }
512
- /**
513
- * Find persons by name
514
- * This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Persons#searchPersons\">/v1/persons/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Searches all persons by their name.
515
- * @param {String} term Search term to look for
516
- * @param {Object} opts Optional parameters
517
- * @param {Number} opts.orgId ID of the organization person is associated with.
518
- * @param {Number} opts.start Pagination start (default to 0)
519
- * @param {Number} opts.limit Items shown per page
520
- * @param {module:model/NumberBoolean} opts.searchByEmail When enabled, term will only be matched against email addresses of people. Default: false
521
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
522
- */
523
-
524
- }, {
525
- key: "findPersonByNameWithHttpInfo",
526
- value: function findPersonByNameWithHttpInfo(term, opts) {
527
- opts = opts || {};
528
- var postBody = null; // verify the required parameter 'term' is set
529
-
530
- if (term === undefined || term === null) {
531
- throw new Error("Missing the required parameter 'term' when calling findPersonByName");
532
- }
533
-
534
- var pathParams = {};
535
- var queryParams = {
536
- 'term': term,
537
- 'org_id': opts['orgId'],
538
- 'start': opts['start'],
539
- 'limit': opts['limit'],
540
- 'search_by_email': opts['searchByEmail']
541
- };
542
- var headerParams = {};
543
- var formParams = {};
544
- var formParamArray = [];
545
- var contentTypes = [];
546
- var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
547
- var isJSON = contentTypes.includes('application/json');
548
-
549
- if (isJSON) {
550
- postBody = _objectSpread(_objectSpread({}, postBody), opts);
551
- } else if (isURLEncoded) {
552
- for (var key in opts) {
553
- if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
554
- formParams[key] = opts[key];
555
- }
556
- }
557
- }
558
-
559
- var authNames = ['api_key', 'oauth2'];
560
- var accepts = ['application/json'];
561
- var returnType = Object;
562
- return this.apiClient.callApi('/persons/find', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
563
- }
564
- /**
565
- * Find persons by name
566
- * This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Persons#searchPersons\">/v1/persons/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Searches all persons by their name.
567
- * @param {String} term Search term to look for
568
- * @param {Object} opts Optional parameters
569
- * @param {Number} opts.orgId ID of the organization person is associated with.
570
- * @param {Number} opts.start Pagination start (default to 0)
571
- * @param {Number} opts.limit Items shown per page
572
- * @param {module:model/NumberBoolean} opts.searchByEmail When enabled, term will only be matched against email addresses of people. Default: false
573
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
574
- */
575
-
576
- }, {
577
- key: "findPersonByName",
578
- value: function findPersonByName(term, opts) {
579
- return this.findPersonByNameWithHttpInfo(term, opts).then(function (response_and_data) {
580
- return response_and_data;
581
- });
582
- }
583
512
  /**
584
513
  * Get details of a person
585
514
  * Returns details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
@@ -19,14 +19,10 @@ var _AddProductFollowerRequest = _interopRequireDefault(require("../model/AddPro
19
19
 
20
20
  var _AddProductRequestBody = _interopRequireDefault(require("../model/AddProductRequestBody"));
21
21
 
22
- var _BasicDeal = _interopRequireDefault(require("../model/BasicDeal"));
23
-
24
22
  var _DeleteProductFollowerResponse = _interopRequireDefault(require("../model/DeleteProductFollowerResponse"));
25
23
 
26
24
  var _DeleteProductResponse = _interopRequireDefault(require("../model/DeleteProductResponse"));
27
25
 
28
- var _FindProductsByNameResponse = _interopRequireDefault(require("../model/FindProductsByNameResponse"));
29
-
30
26
  var _ListFilesResponse = _interopRequireDefault(require("../model/ListFilesResponse"));
31
27
 
32
28
  var _ListProductFollowersResponse = _interopRequireDefault(require("../model/ListProductFollowersResponse"));
@@ -43,6 +39,8 @@ var _ProductSearchResponse = _interopRequireDefault(require("../model/ProductSea
43
39
 
44
40
  var _ProductsResponse = _interopRequireDefault(require("../model/ProductsResponse"));
45
41
 
42
+ var _UpdateDealRequest = _interopRequireDefault(require("../model/UpdateDealRequest"));
43
+
46
44
  var _UpdateProductResponse = _interopRequireDefault(require("../model/UpdateProductResponse"));
47
45
 
48
46
  var _UserIDs = _interopRequireDefault(require("../model/UserIDs"));
@@ -304,74 +302,6 @@ var ProductsApi = /*#__PURE__*/function () {
304
302
  return response_and_data;
305
303
  });
306
304
  }
307
- /**
308
- * Find products by name
309
- * This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Products#searchProducts\">/v1/products/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Returns data about the products that were found. If currency was set in request, prices in that currency are served back.
310
- * @param {String} term Search term to look for, minimum 3 characters.
311
- * @param {Object} opts Optional parameters
312
- * @param {String} opts.currency Currency code in which prices should be returned in. If omitted, prices in user's default currency will be returned.
313
- * @param {Number} opts.start Pagination start (default to 0)
314
- * @param {Number} opts.limit Items shown per page
315
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FindProductsByNameResponse} and HTTP response
316
- */
317
-
318
- }, {
319
- key: "findProductsByNameWithHttpInfo",
320
- value: function findProductsByNameWithHttpInfo(term, opts) {
321
- opts = opts || {};
322
- var postBody = null; // verify the required parameter 'term' is set
323
-
324
- if (term === undefined || term === null) {
325
- throw new Error("Missing the required parameter 'term' when calling findProductsByName");
326
- }
327
-
328
- var pathParams = {};
329
- var queryParams = {
330
- 'term': term,
331
- 'currency': opts['currency'],
332
- 'start': opts['start'],
333
- 'limit': opts['limit']
334
- };
335
- var headerParams = {};
336
- var formParams = {};
337
- var formParamArray = [];
338
- var contentTypes = [];
339
- var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
340
- var isJSON = contentTypes.includes('application/json');
341
-
342
- if (isJSON) {
343
- postBody = _objectSpread(_objectSpread({}, postBody), opts);
344
- } else if (isURLEncoded) {
345
- for (var key in opts) {
346
- if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
347
- formParams[key] = opts[key];
348
- }
349
- }
350
- }
351
-
352
- var authNames = ['api_key', 'oauth2'];
353
- var accepts = ['application/json'];
354
- var returnType = _FindProductsByNameResponse["default"];
355
- return this.apiClient.callApi('/products/find', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
356
- }
357
- /**
358
- * Find products by name
359
- * This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/Products#searchProducts\">/v1/products/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Returns data about the products that were found. If currency was set in request, prices in that currency are served back.
360
- * @param {String} term Search term to look for, minimum 3 characters.
361
- * @param {Object} opts Optional parameters
362
- * @param {String} opts.currency Currency code in which prices should be returned in. If omitted, prices in user's default currency will be returned.
363
- * @param {Number} opts.start Pagination start (default to 0)
364
- * @param {Number} opts.limit Items shown per page
365
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FindProductsByNameResponse}
366
- */
367
-
368
- }, {
369
- key: "findProductsByName",
370
- value: function findProductsByName(term, opts) {
371
- return this.findProductsByNameWithHttpInfo(term, opts).then(function (response_and_data) {
372
- return response_and_data;
373
- });
374
- }
375
305
  /**
376
306
  * Get one product
377
307
  * Returns data about a specific product.
@@ -437,7 +367,7 @@ var ProductsApi = /*#__PURE__*/function () {
437
367
  * @param {Number} opts.start Pagination start (default to 0)
438
368
  * @param {Number} opts.limit Items shown per page
439
369
  * @param {module:model/String} opts.status Only fetch deals with specific status. If omitted, all not deleted deals are fetched. (default to 'all_not_deleted')
440
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BasicDeal} and HTTP response
370
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDealRequest} and HTTP response
441
371
  */
442
372
 
443
373
  }, {
@@ -477,7 +407,7 @@ var ProductsApi = /*#__PURE__*/function () {
477
407
 
478
408
  var authNames = ['api_key', 'oauth2'];
479
409
  var accepts = ['application/json'];
480
- var returnType = _BasicDeal["default"];
410
+ var returnType = _UpdateDealRequest["default"];
481
411
  return this.apiClient.callApi('/products/{id}/deals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
482
412
  }
483
413
  /**
@@ -488,7 +418,7 @@ var ProductsApi = /*#__PURE__*/function () {
488
418
  * @param {Number} opts.start Pagination start (default to 0)
489
419
  * @param {Number} opts.limit Items shown per page
490
420
  * @param {module:model/String} opts.status Only fetch deals with specific status. If omitted, all not deleted deals are fetched. (default to 'all_not_deleted')
491
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BasicDeal}
421
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDealRequest}
492
422
  */
493
423
 
494
424
  }, {